]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ldns/configure
arm64 pmap: Convert panic()s to KASSERT()s
[FreeBSD/FreeBSD.git] / contrib / ldns / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for ldns 1.8.3.
4 #
5 # Report bugs to <libdns@nlnetlabs.nl>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else $as_nop
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" ""        $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # Find who we are.  Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90   *[\\/]* ) as_myself=$0 ;;
91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94   IFS=$as_save_IFS
95   case $as_dir in #(((
96     '') as_dir=./ ;;
97     */) ;;
98     *) as_dir=$as_dir/ ;;
99   esac
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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118   # into an infinite loop, continuously re-executing ourselves.
119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120     _as_can_reexec=no; export _as_can_reexec;
121     # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129   *v*x* | *x*v* ) as_opts=-vx ;;
130   *v* ) as_opts=-v ;;
131   *x* ) as_opts=-x ;;
132   * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139   fi
140   # We don't want this to propagate to other subprocesses.
141           { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146   emulate sh
147   NULLCMD=:
148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149   # is contrary to our usage.  Disable this feature.
150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
151   setopt NO_GLOB_SUBST
152 else \$as_nop
153   case \`(set -o) 2>/dev/null\` in #(
154   *posix*) :
155     set -o posix ;; #(
156   *) :
157      ;;
158 esac
159 fi
160 "
161   as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176   exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191     PATH=/empty FPATH=/empty; export PATH FPATH
192     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195   if (eval "$as_required") 2>/dev/null
196 then :
197   as_have_required=yes
198 else $as_nop
199   as_have_required=no
200 fi
201   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209   IFS=$as_save_IFS
210   case $as_dir in #(((
211     '') as_dir=./ ;;
212     */) ;;
213     *) as_dir=$as_dir/ ;;
214   esac
215   as_found=:
216   case $as_dir in #(
217          /*)
218            for as_base in sh bash ksh sh5; do
219              # Try only shells that exist, to save several forks.
220              as_shell=$as_dir$as_base
221              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227   break 2
228 fi
229 fi
230            done;;
231        esac
232   as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242   CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247       if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno
271 then :
272   printf "%s\n" "$0: This script requires a shell more modern than all"
273   printf "%s\n" "$0: the shells that I found on your system."
274   if test ${ZSH_VERSION+y} ; then
275     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277   else
278     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: libdns@nlnetlabs.nl about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312   return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320   set +e
321   as_fn_set_status $1
322   exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329   return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339   case $as_dir in #(
340   -*) as_dir=./$as_dir;;
341   esac
342   test -d "$as_dir" || eval $as_mkdir_p || {
343     as_dirs=
344     while :; do
345       case $as_dir in #(
346       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347       *) as_qdir=$as_dir;;
348       esac
349       as_dirs="'$as_qdir' $as_dirs"
350       as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352          X"$as_dir" : 'X\(//\)[^/]' \| \
353          X"$as_dir" : 'X\(//\)$' \| \
354          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357             s//\1/
358             q
359           }
360           /^X\(\/\/\)[^/].*/{
361             s//\1/
362             q
363           }
364           /^X\(\/\/\)$/{
365             s//\1/
366             q
367           }
368           /^X\(\/\).*/{
369             s//\1/
370             q
371           }
372           s/.*/./; q'`
373       test -d "$as_dir" && break
374     done
375     test -z "$as_dirs" || eval "mkdir $as_dirs"
376   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386   test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396   eval 'as_fn_append ()
397   {
398     eval $1+=\$2
399   }'
400 else $as_nop
401   as_fn_append ()
402   {
403     eval $1=\$$1\$2
404   }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414   eval 'as_fn_arith ()
415   {
416     as_val=$(( $* ))
417   }'
418 else $as_nop
419   as_fn_arith ()
420   {
421     as_val=`expr "$@" || test $? -eq 1`
422   }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430   return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441   as_status=$1; test $as_status -eq 0 && as_status=1
442   if test "$4"; then
443     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445   fi
446   printf "%s\n" "$as_me: error: $2" >&2
447   as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451    test "X`expr 00001 : '.*\(...\)'`" = X001; then
452   as_expr=expr
453 else
454   as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458   as_basename=basename
459 else
460   as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464   as_dirname=dirname
465 else
466   as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471          X"$0" : 'X\(//\)$' \| \
472          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474     sed '/^.*\/\([^/][^/]*\)\/*$/{
475             s//\1/
476             q
477           }
478           /^X\/\(\/\/\)$/{
479             s//\1/
480             q
481           }
482           /^X\/\(\/\).*/{
483             s//\1/
484             q
485           }
486           s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496   as_lineno_1=$LINENO as_lineno_1a=$LINENO
497   as_lineno_2=$LINENO as_lineno_2a=$LINENO
498   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501   sed -n '
502     p
503     /[$]LINENO/=
504   ' <$as_myself |
505     sed '
506       s/[$]LINENO.*/&-/
507       t lineno
508       b
509       :lineno
510       N
511       :loop
512       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513       t loop
514       s/-\n.*//
515     ' >$as_me.lineno &&
516   chmod +x "$as_me.lineno" ||
517     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520   # already done that, so ensure we don't try to do so again and fall
521   # in an infinite loop.  This has already happened in practice.
522   _as_can_reexec=no; export _as_can_reexec
523   # Don't try to exec as it changes $[0], causing all sort of problems
524   # (the dirname of $[0] is not the place where we might find the
525   # original and so on.  Autoconf is especially sensitive to this).
526   . "./$as_me.lineno"
527   # Exit status is that of the last command.
528   exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538   case `echo 'xy\c'` in
539   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
540   xy)  ECHO_C='\c';;
541   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542        ECHO_T=' ';;
543   esac;;
544 *)
545   ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n.  New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557   rm -f conf$$.dir/conf$$.file
558 else
559   rm -f conf$$.dir
560   mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563   if ln -s conf$$.file conf$$ 2>/dev/null; then
564     as_ln_s='ln -s'
565     # ... but there are two gotchas:
566     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568     # In both cases, we have to default to `cp -pR'.
569     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570       as_ln_s='cp -pR'
571   elif ln conf$$.file conf$$ 2>/dev/null; then
572     as_ln_s=ln
573   else
574     as_ln_s='cp -pR'
575   fi
576 else
577   as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583   as_mkdir_p='mkdir -p "$as_dir"'
584 else
585   test -d ./-p && rmdir ./-p
586   as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='ldns'
623 PACKAGE_TARNAME='libdns'
624 PACKAGE_VERSION='1.8.3'
625 PACKAGE_STRING='ldns 1.8.3'
626 PACKAGE_BUGREPORT='libdns@nlnetlabs.nl'
627 PACKAGE_URL=''
628
629 ac_unique_file="packet.c"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_func_c_list=
663 ac_subst_vars='LTLIBOBJS
664 CONFIG_FILES
665 ldns_build_config_have_attr_unused
666 ldns_build_config_have_attr_format
667 ldns_build_config_have_ssl
668 DEFAULT_CAPATH
669 DEFAULT_CAFILE
670 LDNS_TRUST_ANCHOR_FILE
671 WINDRES
672 ldns_build_config_have_b32_pton
673 ldns_build_config_have_b32_ntop
674 LIBOBJS
675 ldns_build_config_have_socklen_t
676 LIBPCAP_LIBS
677 include_unistd_h
678 include_systypes_h
679 include_inttypes_h
680 ldns_build_config_have_inttypes_h
681 include_sys_socket_h
682 LIBSSL_SSL_LIBS
683 LIBSSL_LIBS
684 LIBSSL_LDFLAGS
685 LIBSSL_CPPFLAGS
686 ldns_build_config_use_dane_ta_usage
687 ldns_build_config_use_dane_verify
688 ldns_build_config_use_dane
689 ldns_build_config_use_ed448
690 ldns_build_config_use_ed25519
691 ldns_build_config_use_dsa
692 RUNTIME_PATH
693 HAVE_SSL
694 libtool
695 CLEAN_P5_DNS_LDNS
696 UNINSTALL_P5_DNS_LDNS
697 INSTALL_P5_DNS_LDNS
698 TEST_P5_DNS_LDNS
699 P5_DNS_LDNS
700 PERL
701 PYLDNSXUNINST
702 PYLDNSXINST
703 PYLDNSUNINST
704 PYLDNSINST
705 PYLDNSX
706 PYTHON_X_CFLAGS
707 swig
708 PYLDNS
709 SWIG_LIB
710 SWIG
711 SWIGPY3
712 PYTHON_EXTRA_LDFLAGS
713 PYTHON_EXTRA_LIBS
714 PYTHON_SITE_PKG
715 PYTHON_LIBS
716 PYTHON_CPPFLAGS
717 PYTHON
718 PYTHON_VERSION
719 UNINSTALL_CONFIG_MANPAGE
720 UNINSTALL_CONFIG
721 INSTALL_CONFIG_MANPAGE
722 INSTALL_CONFIG
723 LINT_EXAMPLES
724 CLEAN_EXAMPLES
725 UNINSTALL_EXAMPLES
726 INSTALL_EXAMPLES
727 EXAMPLES
728 LINT_DRILL
729 CLEAN_DRILL
730 UNINSTALL_DRILL
731 INSTALL_DRILL
732 DRILL
733 doxygen
734 LINTFLAGS
735 SET_MAKE
736 DEPFLAG
737 LT_SYS_LIBRARY_PATH
738 OTOOL64
739 OTOOL
740 LIPO
741 NMEDIT
742 DSYMUTIL
743 MANIFEST_TOOL
744 AWK
745 RANLIB
746 STRIP
747 ac_ct_AR
748 AR
749 DLLTOOL
750 OBJDUMP
751 LN_S
752 NM
753 ac_ct_DUMPBIN
754 DUMPBIN
755 LD
756 FGREP
757 EGREP
758 GREP
759 SED
760 host_os
761 host_vendor
762 host_cpu
763 host
764 build_os
765 build_vendor
766 build_cpu
767 build
768 LIBTOOL
769 OBJEXT
770 EXEEXT
771 ac_ct_CC
772 CPPFLAGS
773 LDFLAGS
774 CFLAGS
775 CC
776 VERSION_INFO
777 LDNS_VERSION_MICRO
778 LDNS_VERSION_MINOR
779 LDNS_VERSION_MAJOR
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL'
818 ac_subst_files=''
819 ac_user_opts='
820 enable_option_checking
821 enable_shared
822 enable_static
823 with_pic
824 enable_fast_install
825 with_aix_soname
826 with_gnu_ld
827 with_sysroot
828 enable_libtool_lock
829 with_drill
830 with_examples
831 enable_ldns_config
832 enable_stderr_msgs
833 enable_poll
834 with_pyldns
835 with_pyldnsx
836 with_p5_dns_ldns
837 with_ssl
838 enable_sha2
839 enable_gost
840 enable_gost_anyway
841 enable_ecdsa
842 enable_dsa
843 enable_ed25519
844 enable_ed448
845 enable_dane
846 enable_dane_verify
847 enable_dane_ta_usage
848 enable_full_dane
849 enable_no_dane_ta_usage
850 enable_no_dane_verify
851 enable_rrtype_ninfo
852 enable_rrtype_rkey
853 enable_rrtype_openpgpkey
854 enable_rrtype_ta
855 enable_rrtype_avc
856 enable_rrtype_doa
857 enable_rrtype_amtrelay
858 enable_rrtype_svcb_https
859 enable_rpath
860 with_xcode_sdk
861 with_trust_anchor
862 with_ca_file
863 with_ca_path
864 '
865       ac_precious_vars='build_alias
866 host_alias
867 target_alias
868 CC
869 CFLAGS
870 LDFLAGS
871 LIBS
872 CPPFLAGS
873 LT_SYS_LIBRARY_PATH
874 PYTHON_VERSION'
875
876
877 # Initialize some variables set by options.
878 ac_init_help=
879 ac_init_version=false
880 ac_unrecognized_opts=
881 ac_unrecognized_sep=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
916 infodir='${datarootdir}/info'
917 htmldir='${docdir}'
918 dvidir='${docdir}'
919 pdfdir='${docdir}'
920 psdir='${docdir}'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
924
925 ac_prev=
926 ac_dashdash=
927 for ac_option
928 do
929   # If the previous option needs an argument, assign it.
930   if test -n "$ac_prev"; then
931     eval $ac_prev=\$ac_option
932     ac_prev=
933     continue
934   fi
935
936   case $ac_option in
937   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938   *=)   ac_optarg= ;;
939   *)    ac_optarg=yes ;;
940   esac
941
942   case $ac_dashdash$ac_option in
943   --)
944     ac_dashdash=yes ;;
945
946   -bindir | --bindir | --bindi | --bind | --bin | --bi)
947     ac_prev=bindir ;;
948   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949     bindir=$ac_optarg ;;
950
951   -build | --build | --buil | --bui | --bu)
952     ac_prev=build_alias ;;
953   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954     build_alias=$ac_optarg ;;
955
956   -cache-file | --cache-file | --cache-fil | --cache-fi \
957   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958     ac_prev=cache_file ;;
959   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961     cache_file=$ac_optarg ;;
962
963   --config-cache | -C)
964     cache_file=config.cache ;;
965
966   -datadir | --datadir | --datadi | --datad)
967     ac_prev=datadir ;;
968   -datadir=* | --datadir=* | --datadi=* | --datad=*)
969     datadir=$ac_optarg ;;
970
971   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972   | --dataroo | --dataro | --datar)
973     ac_prev=datarootdir ;;
974   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976     datarootdir=$ac_optarg ;;
977
978   -disable-* | --disable-*)
979     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982       as_fn_error $? "invalid feature name: \`$ac_useropt'"
983     ac_useropt_orig=$ac_useropt
984     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
985     case $ac_user_opts in
986       *"
987 "enable_$ac_useropt"
988 "*) ;;
989       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
990          ac_unrecognized_sep=', ';;
991     esac
992     eval enable_$ac_useropt=no ;;
993
994   -docdir | --docdir | --docdi | --doc | --do)
995     ac_prev=docdir ;;
996   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997     docdir=$ac_optarg ;;
998
999   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000     ac_prev=dvidir ;;
1001   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002     dvidir=$ac_optarg ;;
1003
1004   -enable-* | --enable-*)
1005     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1006     # Reject names that are not valid shell variable names.
1007     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1009     ac_useropt_orig=$ac_useropt
1010     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1011     case $ac_user_opts in
1012       *"
1013 "enable_$ac_useropt"
1014 "*) ;;
1015       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016          ac_unrecognized_sep=', ';;
1017     esac
1018     eval enable_$ac_useropt=\$ac_optarg ;;
1019
1020   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022   | --exec | --exe | --ex)
1023     ac_prev=exec_prefix ;;
1024   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026   | --exec=* | --exe=* | --ex=*)
1027     exec_prefix=$ac_optarg ;;
1028
1029   -gas | --gas | --ga | --g)
1030     # Obsolete; use --with-gas.
1031     with_gas=yes ;;
1032
1033   -help | --help | --hel | --he | -h)
1034     ac_init_help=long ;;
1035   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036     ac_init_help=recursive ;;
1037   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038     ac_init_help=short ;;
1039
1040   -host | --host | --hos | --ho)
1041     ac_prev=host_alias ;;
1042   -host=* | --host=* | --hos=* | --ho=*)
1043     host_alias=$ac_optarg ;;
1044
1045   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046     ac_prev=htmldir ;;
1047   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048   | --ht=*)
1049     htmldir=$ac_optarg ;;
1050
1051   -includedir | --includedir | --includedi | --included | --include \
1052   | --includ | --inclu | --incl | --inc)
1053     ac_prev=includedir ;;
1054   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055   | --includ=* | --inclu=* | --incl=* | --inc=*)
1056     includedir=$ac_optarg ;;
1057
1058   -infodir | --infodir | --infodi | --infod | --info | --inf)
1059     ac_prev=infodir ;;
1060   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061     infodir=$ac_optarg ;;
1062
1063   -libdir | --libdir | --libdi | --libd)
1064     ac_prev=libdir ;;
1065   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066     libdir=$ac_optarg ;;
1067
1068   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069   | --libexe | --libex | --libe)
1070     ac_prev=libexecdir ;;
1071   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072   | --libexe=* | --libex=* | --libe=*)
1073     libexecdir=$ac_optarg ;;
1074
1075   -localedir | --localedir | --localedi | --localed | --locale)
1076     ac_prev=localedir ;;
1077   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078     localedir=$ac_optarg ;;
1079
1080   -localstatedir | --localstatedir | --localstatedi | --localstated \
1081   | --localstate | --localstat | --localsta | --localst | --locals)
1082     ac_prev=localstatedir ;;
1083   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085     localstatedir=$ac_optarg ;;
1086
1087   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088     ac_prev=mandir ;;
1089   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090     mandir=$ac_optarg ;;
1091
1092   -nfp | --nfp | --nf)
1093     # Obsolete; use --without-fp.
1094     with_fp=no ;;
1095
1096   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097   | --no-cr | --no-c | -n)
1098     no_create=yes ;;
1099
1100   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102     no_recursion=yes ;;
1103
1104   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106   | --oldin | --oldi | --old | --ol | --o)
1107     ac_prev=oldincludedir ;;
1108   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111     oldincludedir=$ac_optarg ;;
1112
1113   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114     ac_prev=prefix ;;
1115   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116     prefix=$ac_optarg ;;
1117
1118   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119   | --program-pre | --program-pr | --program-p)
1120     ac_prev=program_prefix ;;
1121   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123     program_prefix=$ac_optarg ;;
1124
1125   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126   | --program-suf | --program-su | --program-s)
1127     ac_prev=program_suffix ;;
1128   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130     program_suffix=$ac_optarg ;;
1131
1132   -program-transform-name | --program-transform-name \
1133   | --program-transform-nam | --program-transform-na \
1134   | --program-transform-n | --program-transform- \
1135   | --program-transform | --program-transfor \
1136   | --program-transfo | --program-transf \
1137   | --program-trans | --program-tran \
1138   | --progr-tra | --program-tr | --program-t)
1139     ac_prev=program_transform_name ;;
1140   -program-transform-name=* | --program-transform-name=* \
1141   | --program-transform-nam=* | --program-transform-na=* \
1142   | --program-transform-n=* | --program-transform-=* \
1143   | --program-transform=* | --program-transfor=* \
1144   | --program-transfo=* | --program-transf=* \
1145   | --program-trans=* | --program-tran=* \
1146   | --progr-tra=* | --program-tr=* | --program-t=*)
1147     program_transform_name=$ac_optarg ;;
1148
1149   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150     ac_prev=pdfdir ;;
1151   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152     pdfdir=$ac_optarg ;;
1153
1154   -psdir | --psdir | --psdi | --psd | --ps)
1155     ac_prev=psdir ;;
1156   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157     psdir=$ac_optarg ;;
1158
1159   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160   | -silent | --silent | --silen | --sile | --sil)
1161     silent=yes ;;
1162
1163   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164     ac_prev=sbindir ;;
1165   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166   | --sbi=* | --sb=*)
1167     sbindir=$ac_optarg ;;
1168
1169   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171   | --sharedst | --shareds | --shared | --share | --shar \
1172   | --sha | --sh)
1173     ac_prev=sharedstatedir ;;
1174   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177   | --sha=* | --sh=*)
1178     sharedstatedir=$ac_optarg ;;
1179
1180   -site | --site | --sit)
1181     ac_prev=site ;;
1182   -site=* | --site=* | --sit=*)
1183     site=$ac_optarg ;;
1184
1185   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186     ac_prev=srcdir ;;
1187   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188     srcdir=$ac_optarg ;;
1189
1190   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191   | --syscon | --sysco | --sysc | --sys | --sy)
1192     ac_prev=sysconfdir ;;
1193   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195     sysconfdir=$ac_optarg ;;
1196
1197   -target | --target | --targe | --targ | --tar | --ta | --t)
1198     ac_prev=target_alias ;;
1199   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200     target_alias=$ac_optarg ;;
1201
1202   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203     verbose=yes ;;
1204
1205   -version | --version | --versio | --versi | --vers | -V)
1206     ac_init_version=: ;;
1207
1208   -with-* | --with-*)
1209     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212       as_fn_error $? "invalid package name: \`$ac_useropt'"
1213     ac_useropt_orig=$ac_useropt
1214     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215     case $ac_user_opts in
1216       *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220          ac_unrecognized_sep=', ';;
1221     esac
1222     eval with_$ac_useropt=\$ac_optarg ;;
1223
1224   -without-* | --without-*)
1225     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226     # Reject names that are not valid shell variable names.
1227     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228       as_fn_error $? "invalid package name: \`$ac_useropt'"
1229     ac_useropt_orig=$ac_useropt
1230     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1231     case $ac_user_opts in
1232       *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236          ac_unrecognized_sep=', ';;
1237     esac
1238     eval with_$ac_useropt=no ;;
1239
1240   --x)
1241     # Obsolete; use --with-x.
1242     with_x=yes ;;
1243
1244   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245   | --x-incl | --x-inc | --x-in | --x-i)
1246     ac_prev=x_includes ;;
1247   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249     x_includes=$ac_optarg ;;
1250
1251   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253     ac_prev=x_libraries ;;
1254   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256     x_libraries=$ac_optarg ;;
1257
1258   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1260     ;;
1261
1262   *=*)
1263     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264     # Reject names that are not valid shell variable names.
1265     case $ac_envvar in #(
1266       '' | [0-9]* | *[!_$as_cr_alnum]* )
1267       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268     esac
1269     eval $ac_envvar=\$ac_optarg
1270     export $ac_envvar ;;
1271
1272   *)
1273     # FIXME: should be removed in autoconf 3.0.
1274     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1275     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1277     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1278     ;;
1279
1280   esac
1281 done
1282
1283 if test -n "$ac_prev"; then
1284   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285   as_fn_error $? "missing argument to $ac_option"
1286 fi
1287
1288 if test -n "$ac_unrecognized_opts"; then
1289   case $enable_option_checking in
1290     no) ;;
1291     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293   esac
1294 fi
1295
1296 # Check all directory arguments for consistency.
1297 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298                 datadir sysconfdir sharedstatedir localstatedir includedir \
1299                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300                 libdir localedir mandir
1301 do
1302   eval ac_val=\$$ac_var
1303   # Remove trailing slashes.
1304   case $ac_val in
1305     */ )
1306       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307       eval $ac_var=\$ac_val;;
1308   esac
1309   # Be sure to have absolute directory names.
1310   case $ac_val in
1311     [\\/$]* | ?:[\\/]* )  continue;;
1312     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313   esac
1314   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315 done
1316
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1320 build=$build_alias
1321 host=$host_alias
1322 target=$target_alias
1323
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326   if test "x$build_alias" = x; then
1327     cross_compiling=maybe
1328   elif test "x$build_alias" != "x$host_alias"; then
1329     cross_compiling=yes
1330   fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342   as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344   as_fn_error $? "pwd does not report name of working directory"
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349   ac_srcdir_defaulted=yes
1350   # Try the directory containing this script, then the parent directory.
1351   ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353          X"$as_myself" : 'X\(//\)[^/]' \| \
1354          X"$as_myself" : 'X\(//\)$' \| \
1355          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 printf "%s\n" X"$as_myself" |
1357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\/\)[^/].*/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\).*/{
1370             s//\1/
1371             q
1372           }
1373           s/.*/./; q'`
1374   srcdir=$ac_confdir
1375   if test ! -r "$srcdir/$ac_unique_file"; then
1376     srcdir=..
1377   fi
1378 else
1379   ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388         pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391   srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_env_${ac_var}_value=\$${ac_var}
1402   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410   # Omit some internal or obsolete options to make the list less imposing.
1411   # This message is too long to be a string in the A/UX 3.1 sh.
1412   cat <<_ACEOF
1413 \`configure' configures ldns 1.8.3 to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423   -h, --help              display this help and exit
1424       --help=short        display options specific to this package
1425       --help=recursive    display the short help of all the included packages
1426   -V, --version           display version information and exit
1427   -q, --quiet, --silent   do not print \`checking ...' messages
1428       --cache-file=FILE   cache test results in FILE [disabled]
1429   -C, --config-cache      alias for \`--cache-file=config.cache'
1430   -n, --no-create         do not create output files
1431       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434   --prefix=PREFIX         install architecture-independent files in PREFIX
1435                           [$ac_default_prefix]
1436   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                           [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447   --bindir=DIR            user executables [EPREFIX/bin]
1448   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1449   --libexecdir=DIR        program executables [EPREFIX/libexec]
1450   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1451   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1452   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1453   --libdir=DIR            object code libraries [EPREFIX/lib]
1454   --includedir=DIR        C header files [PREFIX/include]
1455   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1456   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1457   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1458   --infodir=DIR           info documentation [DATAROOTDIR/info]
1459   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1460   --mandir=DIR            man documentation [DATAROOTDIR/man]
1461   --docdir=DIR            documentation root [DATAROOTDIR/doc/libdns]
1462   --htmldir=DIR           html documentation [DOCDIR]
1463   --dvidir=DIR            dvi documentation [DOCDIR]
1464   --pdfdir=DIR            pdf documentation [DOCDIR]
1465   --psdir=DIR             ps documentation [DOCDIR]
1466 _ACEOF
1467
1468   cat <<\_ACEOF
1469
1470 System types:
1471   --build=BUILD     configure for building on BUILD [guessed]
1472   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477   case $ac_init_help in
1478      short | recursive ) echo "Configuration of ldns 1.8.3:";;
1479    esac
1480   cat <<\_ACEOF
1481
1482 Optional Features:
1483   --disable-option-checking  ignore unrecognized --enable/--with options
1484   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486   --enable-shared[=PKGS]  build shared libraries [default=yes]
1487   --enable-static[=PKGS]  build static libraries [default=yes]
1488   --enable-fast-install[=PKGS]
1489                           optimize for fast installation [default=yes]
1490   --disable-libtool-lock  avoid locking (might break parallel builds)
1491   --disable-ldns-config   disable installation of ldns-config
1492                           (default=enabled)
1493   --enable-stderr-msgs    Enable printing to stderr (default=disabled)
1494   --enable-poll           This platform supports poll(7)
1495   --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1496   --disable-gost          Disable GOST support
1497   --enable-gost-anyway    Enable GOST even without a GOST engine installed
1498   --disable-ecdsa         Disable ECDSA support
1499   --disable-dsa           Disable DSA support
1500   --disable-ed25519       Disable (experimental) ED25519 support. Default is
1501                           detect
1502   --disable-ed448         Disable (experimental) ED448 support. Default is
1503                           detect
1504   --disable-dane          Disable DANE support
1505   --disable-dane-verify   Disable DANE verify support
1506   --disable-dane-ta-usage Disable DANE-TA usage type support
1507
1508   --enable-rrtype-ninfo   Enable draft RR type ninfo.
1509   --enable-rrtype-rkey    Enable draft RR type rkey.
1510   --disable-rrtype-openpgpkey
1511                           Disable openpgpkey RR type.
1512   --enable-rrtype-ta      Enable draft RR type ta.
1513   --enable-rrtype-avc     Enable draft RR type avc.
1514   --enable-rrtype-doa     Enable draft RR type DOA.
1515   --enable-rrtype-amtrelay
1516                           Enable draft RR type AMTRELAY.
1517   --disable-rrtype-svcb-https
1518                           Disable RR types SVCB and HTTPS.
1519   --disable-rpath         disable hardcoded rpath (default=enabled)
1520
1521 Optional Packages:
1522   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1523   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1524   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1525                           both]
1526   --with-aix-soname=aix|svr4|both
1527                           shared library versioning (aka "SONAME") variant to
1528                           provide on AIX, [default=aix].
1529   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1530   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1531                           compiler's sysroot if not specified).
1532   --with-drill            Also build drill.
1533   --with-examples         Also build examples.
1534   --with-pyldns           generate python library, or --without-pyldns to
1535                           disable Python support.
1536   --without-pyldnsx       Do not install the ldnsx python module, or
1537                           --with-pyldnsx to install it.
1538   --with-p5-dns-ldns      generate DNS::LDNS perl bindings
1539   --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1540                           /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1541                           /usr)
1542   --with-xcode-sdk        Set xcode SDK version. Default is autodetect
1543   --with-trust-anchor=KEYFILE
1544                           Default location of the trust anchor file for drill
1545                           and ldns-dane. [default=SYSCONFDIR/unbound/root.key]
1546   --with-ca-file=CAFILE   File containing CA certificates for ldns-dane
1547   --with-ca-path=CAPATH   Directory containing CA certificate files for
1548                           ldns-dane
1549
1550 Some influential environment variables:
1551   CC          C compiler command
1552   CFLAGS      C compiler flags
1553   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1554               nonstandard directory <lib dir>
1555   LIBS        libraries to pass to the linker, e.g. -l<library>
1556   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557               you have headers in a nonstandard directory <include dir>
1558   LT_SYS_LIBRARY_PATH
1559               User-defined run-time library search path.
1560   PYTHON_VERSION
1561               The installed Python version to use, for example '2.3'. This
1562               string will be appended to the Python interpreter canonical
1563               name.
1564
1565 Use these variables to override the choices made by `configure' or to help
1566 it to find libraries and programs with nonstandard names/locations.
1567
1568 Report bugs to <libdns@nlnetlabs.nl>.
1569 _ACEOF
1570 ac_status=$?
1571 fi
1572
1573 if test "$ac_init_help" = "recursive"; then
1574   # If there are subdirs, report their specific --help.
1575   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576     test -d "$ac_dir" ||
1577       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578       continue
1579     ac_builddir=.
1580
1581 case "$ac_dir" in
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *)
1584   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1585   # A ".." for each directory in $ac_dir_suffix.
1586   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587   case $ac_top_builddir_sub in
1588   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590   esac ;;
1591 esac
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1596
1597 case $srcdir in
1598   .)  # We are building in place.
1599     ac_srcdir=.
1600     ac_top_srcdir=$ac_top_builddir_sub
1601     ac_abs_top_srcdir=$ac_pwd ;;
1602   [\\/]* | ?:[\\/]* )  # Absolute name.
1603     ac_srcdir=$srcdir$ac_dir_suffix;
1604     ac_top_srcdir=$srcdir
1605     ac_abs_top_srcdir=$srcdir ;;
1606   *) # Relative name.
1607     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608     ac_top_srcdir=$ac_top_build_prefix$srcdir
1609     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 esac
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
1613     cd "$ac_dir" || { ac_status=$?; continue; }
1614     # Check for configure.gnu first; this name is used for a wrapper for
1615     # Metaconfig's "Configure" on case-insensitive file systems.
1616     if test -f "$ac_srcdir/configure.gnu"; then
1617       echo &&
1618       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619     elif test -f "$ac_srcdir/configure"; then
1620       echo &&
1621       $SHELL "$ac_srcdir/configure" --help=recursive
1622     else
1623       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624     fi || ac_status=$?
1625     cd "$ac_pwd" || { ac_status=$?; break; }
1626   done
1627 fi
1628
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1631   cat <<\_ACEOF
1632 ldns configure 1.8.3
1633 generated by GNU Autoconf 2.71
1634
1635 Copyright (C) 2021 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1638 _ACEOF
1639   exit
1640 fi
1641
1642 ## ------------------------ ##
1643 ## Autoconf initialization. ##
1644 ## ------------------------ ##
1645
1646 # ac_fn_c_try_compile LINENO
1647 # --------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_compile ()
1650 {
1651   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652   rm -f conftest.$ac_objext conftest.beam
1653   if { { ac_try="$ac_compile"
1654 case "(($ac_try" in
1655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656   *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 printf "%s\n" "$ac_try_echo"; } >&5
1660   (eval "$ac_compile") 2>conftest.err
1661   ac_status=$?
1662   if test -s conftest.err; then
1663     grep -v '^ *+' conftest.err >conftest.er1
1664     cat conftest.er1 >&5
1665     mv -f conftest.er1 conftest.err
1666   fi
1667   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668   test $ac_status = 0; } && {
1669          test -z "$ac_c_werror_flag" ||
1670          test ! -s conftest.err
1671        } && test -s conftest.$ac_objext
1672 then :
1673   ac_retval=0
1674 else $as_nop
1675   printf "%s\n" "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678         ac_retval=1
1679 fi
1680   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681   as_fn_set_status $ac_retval
1682
1683 } # ac_fn_c_try_compile
1684
1685 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1686 # -------------------------------------------------------
1687 # Tests whether HEADER exists and can be compiled using the include files in
1688 # INCLUDES, setting the cache variable VAR accordingly.
1689 ac_fn_c_check_header_compile ()
1690 {
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 printf %s "checking for $2... " >&6; }
1694 if eval test \${$3+y}
1695 then :
1696   printf %s "(cached) " >&6
1697 else $as_nop
1698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h.  */
1700 $4
1701 #include <$2>
1702 _ACEOF
1703 if ac_fn_c_try_compile "$LINENO"
1704 then :
1705   eval "$3=yes"
1706 else $as_nop
1707   eval "$3=no"
1708 fi
1709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1710 fi
1711 eval ac_res=\$$3
1712                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 printf "%s\n" "$ac_res" >&6; }
1714   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715
1716 } # ac_fn_c_check_header_compile
1717
1718 # ac_fn_c_try_link LINENO
1719 # -----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_link ()
1722 {
1723   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1725   if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728   *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 printf "%s\n" "$ac_try_echo"; } >&5
1732   (eval "$ac_link") 2>conftest.err
1733   ac_status=$?
1734   if test -s conftest.err; then
1735     grep -v '^ *+' conftest.err >conftest.er1
1736     cat conftest.er1 >&5
1737     mv -f conftest.er1 conftest.err
1738   fi
1739   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740   test $ac_status = 0; } && {
1741          test -z "$ac_c_werror_flag" ||
1742          test ! -s conftest.err
1743        } && test -s conftest$ac_exeext && {
1744          test "$cross_compiling" = yes ||
1745          test -x conftest$ac_exeext
1746        }
1747 then :
1748   ac_retval=0
1749 else $as_nop
1750   printf "%s\n" "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753         ac_retval=1
1754 fi
1755   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757   # interfere with the next link command; also delete a directory that is
1758   # left behind by Apple's compiler.  We do this before executing the actions.
1759   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761   as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_link
1764
1765 # ac_fn_c_check_func LINENO FUNC VAR
1766 # ----------------------------------
1767 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1768 ac_fn_c_check_func ()
1769 {
1770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 printf %s "checking for $2... " >&6; }
1773 if eval test \${$3+y}
1774 then :
1775   printf %s "(cached) " >&6
1776 else $as_nop
1777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h.  */
1779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1781 #define $2 innocuous_$2
1782
1783 /* System header to define __stub macros and hopefully few prototypes,
1784    which can conflict with char $2 (); below.  */
1785
1786 #include <limits.h>
1787 #undef $2
1788
1789 /* Override any GCC internal prototype to avoid an error.
1790    Use char because int might match the return type of a GCC
1791    builtin and then its argument prototype would still apply.  */
1792 #ifdef __cplusplus
1793 extern "C"
1794 #endif
1795 char $2 ();
1796 /* The GNU C library defines this for functions which it implements
1797     to always fail with ENOSYS.  Some functions are actually named
1798     something starting with __ and the normal name is an alias.  */
1799 #if defined __stub_$2 || defined __stub___$2
1800 choke me
1801 #endif
1802
1803 int
1804 main (void)
1805 {
1806 return $2 ();
1807   ;
1808   return 0;
1809 }
1810 _ACEOF
1811 if ac_fn_c_try_link "$LINENO"
1812 then :
1813   eval "$3=yes"
1814 else $as_nop
1815   eval "$3=no"
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1818     conftest$ac_exeext conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 printf "%s\n" "$ac_res" >&6; }
1823   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825 } # ac_fn_c_check_func
1826
1827 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1828 # -------------------------------------------
1829 # Tests whether TYPE exists after having included INCLUDES, setting cache
1830 # variable VAR accordingly.
1831 ac_fn_c_check_type ()
1832 {
1833   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 printf %s "checking for $2... " >&6; }
1836 if eval test \${$3+y}
1837 then :
1838   printf %s "(cached) " >&6
1839 else $as_nop
1840   eval "$3=no"
1841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h.  */
1843 $4
1844 int
1845 main (void)
1846 {
1847 if (sizeof ($2))
1848          return 0;
1849   ;
1850   return 0;
1851 }
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"
1854 then :
1855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h.  */
1857 $4
1858 int
1859 main (void)
1860 {
1861 if (sizeof (($2)))
1862             return 0;
1863   ;
1864   return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"
1868 then :
1869
1870 else $as_nop
1871   eval "$3=yes"
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1874 fi
1875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1876 fi
1877 eval ac_res=\$$3
1878                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 printf "%s\n" "$ac_res" >&6; }
1880   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882 } # ac_fn_c_check_type
1883
1884 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1885 # ------------------------------------------------------------------
1886 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1887 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1888 ac_fn_check_decl ()
1889 {
1890   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891   as_decl_name=`echo $2|sed 's/ *(.*//'`
1892   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1893 printf %s "checking whether $as_decl_name is declared... " >&6; }
1894 if eval test \${$3+y}
1895 then :
1896   printf %s "(cached) " >&6
1897 else $as_nop
1898   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1899   eval ac_save_FLAGS=\$$6
1900   as_fn_append $6 " $5"
1901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h.  */
1903 $4
1904 int
1905 main (void)
1906 {
1907 #ifndef $as_decl_name
1908 #ifdef __cplusplus
1909   (void) $as_decl_use;
1910 #else
1911   (void) $as_decl_name;
1912 #endif
1913 #endif
1914
1915   ;
1916   return 0;
1917 }
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"
1920 then :
1921   eval "$3=yes"
1922 else $as_nop
1923   eval "$3=no"
1924 fi
1925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1926   eval $6=\$ac_save_FLAGS
1927
1928 fi
1929 eval ac_res=\$$3
1930                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 printf "%s\n" "$ac_res" >&6; }
1932   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933
1934 } # ac_fn_check_decl
1935
1936 # ac_fn_c_try_run LINENO
1937 # ----------------------
1938 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1939 # executables *can* be run.
1940 ac_fn_c_try_run ()
1941 {
1942   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943   if { { ac_try="$ac_link"
1944 case "(($ac_try" in
1945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946   *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 printf "%s\n" "$ac_try_echo"; } >&5
1950   (eval "$ac_link") 2>&5
1951   ac_status=$?
1952   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1954   { { case "(($ac_try" in
1955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956   *) ac_try_echo=$ac_try;;
1957 esac
1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959 printf "%s\n" "$ac_try_echo"; } >&5
1960   (eval "$ac_try") 2>&5
1961   ac_status=$?
1962   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963   test $ac_status = 0; }; }
1964 then :
1965   ac_retval=0
1966 else $as_nop
1967   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1968        printf "%s\n" "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1970
1971        ac_retval=$ac_status
1972 fi
1973   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1974   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975   as_fn_set_status $ac_retval
1976
1977 } # ac_fn_c_try_run
1978
1979 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1980 # --------------------------------------------
1981 # Tries to find the compile-time value of EXPR in a program that includes
1982 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1983 # computed
1984 ac_fn_c_compute_int ()
1985 {
1986   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987   if test "$cross_compiling" = yes; then
1988     # Depending upon the size, compute the lo and hi bounds.
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h.  */
1991 $4
1992 int
1993 main (void)
1994 {
1995 static int test_array [1 - 2 * !(($2) >= 0)];
1996 test_array [0] = 0;
1997 return test_array [0];
1998
1999   ;
2000   return 0;
2001 }
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"
2004 then :
2005   ac_lo=0 ac_mid=0
2006   while :; do
2007     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h.  */
2009 $4
2010 int
2011 main (void)
2012 {
2013 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2014 test_array [0] = 0;
2015 return test_array [0];
2016
2017   ;
2018   return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"
2022 then :
2023   ac_hi=$ac_mid; break
2024 else $as_nop
2025   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2026                         if test $ac_lo -le $ac_mid; then
2027                           ac_lo= ac_hi=
2028                           break
2029                         fi
2030                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2033   done
2034 else $as_nop
2035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 $4
2038 int
2039 main (void)
2040 {
2041 static int test_array [1 - 2 * !(($2) < 0)];
2042 test_array [0] = 0;
2043 return test_array [0];
2044
2045   ;
2046   return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"
2050 then :
2051   ac_hi=-1 ac_mid=-1
2052   while :; do
2053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h.  */
2055 $4
2056 int
2057 main (void)
2058 {
2059 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2060 test_array [0] = 0;
2061 return test_array [0];
2062
2063   ;
2064   return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"
2068 then :
2069   ac_lo=$ac_mid; break
2070 else $as_nop
2071   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2072                         if test $ac_mid -le $ac_hi; then
2073                           ac_lo= ac_hi=
2074                           break
2075                         fi
2076                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2079   done
2080 else $as_nop
2081   ac_lo= ac_hi=
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2086 # Binary search between lo and hi bounds.
2087 while test "x$ac_lo" != "x$ac_hi"; do
2088   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h.  */
2091 $4
2092 int
2093 main (void)
2094 {
2095 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2096 test_array [0] = 0;
2097 return test_array [0];
2098
2099   ;
2100   return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"
2104 then :
2105   ac_hi=$ac_mid
2106 else $as_nop
2107   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2110 done
2111 case $ac_lo in #((
2112 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2113 '') ac_retval=1 ;;
2114 esac
2115   else
2116     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h.  */
2118 $4
2119 static long int longval (void) { return $2; }
2120 static unsigned long int ulongval (void) { return $2; }
2121 #include <stdio.h>
2122 #include <stdlib.h>
2123 int
2124 main (void)
2125 {
2126
2127   FILE *f = fopen ("conftest.val", "w");
2128   if (! f)
2129     return 1;
2130   if (($2) < 0)
2131     {
2132       long int i = longval ();
2133       if (i != ($2))
2134         return 1;
2135       fprintf (f, "%ld", i);
2136     }
2137   else
2138     {
2139       unsigned long int i = ulongval ();
2140       if (i != ($2))
2141         return 1;
2142       fprintf (f, "%lu", i);
2143     }
2144   /* Do not output a trailing newline, as this causes \r\n confusion
2145      on some platforms.  */
2146   return ferror (f) || fclose (f) != 0;
2147
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 if ac_fn_c_try_run "$LINENO"
2153 then :
2154   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2155 else $as_nop
2156   ac_retval=1
2157 fi
2158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2159   conftest.$ac_objext conftest.beam conftest.$ac_ext
2160 rm -f conftest.val
2161
2162   fi
2163   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164   as_fn_set_status $ac_retval
2165
2166 } # ac_fn_c_compute_int
2167
2168 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2169 # ----------------------------------------------------
2170 # Tries to find if the field MEMBER exists in type AGGR, after including
2171 # INCLUDES, setting cache variable VAR accordingly.
2172 ac_fn_c_check_member ()
2173 {
2174   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2176 printf %s "checking for $2.$3... " >&6; }
2177 if eval test \${$4+y}
2178 then :
2179   printf %s "(cached) " >&6
2180 else $as_nop
2181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h.  */
2183 $5
2184 int
2185 main (void)
2186 {
2187 static $2 ac_aggr;
2188 if (ac_aggr.$3)
2189 return 0;
2190   ;
2191   return 0;
2192 }
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"
2195 then :
2196   eval "$4=yes"
2197 else $as_nop
2198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h.  */
2200 $5
2201 int
2202 main (void)
2203 {
2204 static $2 ac_aggr;
2205 if (sizeof ac_aggr.$3)
2206 return 0;
2207   ;
2208   return 0;
2209 }
2210 _ACEOF
2211 if ac_fn_c_try_compile "$LINENO"
2212 then :
2213   eval "$4=yes"
2214 else $as_nop
2215   eval "$4=no"
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2218 fi
2219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2220 fi
2221 eval ac_res=\$$4
2222                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2223 printf "%s\n" "$ac_res" >&6; }
2224   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225
2226 } # ac_fn_c_check_member
2227 ac_configure_args_raw=
2228 for ac_arg
2229 do
2230   case $ac_arg in
2231   *\'*)
2232     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2233   esac
2234   as_fn_append ac_configure_args_raw " '$ac_arg'"
2235 done
2236
2237 case $ac_configure_args_raw in
2238   *$as_nl*)
2239     ac_safe_unquote= ;;
2240   *)
2241     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2242     ac_unsafe_a="$ac_unsafe_z#~"
2243     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2244     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2245 esac
2246
2247 cat >config.log <<_ACEOF
2248 This file contains any messages produced by compilers while
2249 running configure, to aid debugging if configure makes a mistake.
2250
2251 It was created by ldns $as_me 1.8.3, which was
2252 generated by GNU Autoconf 2.71.  Invocation command line was
2253
2254   $ $0$ac_configure_args_raw
2255
2256 _ACEOF
2257 exec 5>>config.log
2258 {
2259 cat <<_ASUNAME
2260 ## --------- ##
2261 ## Platform. ##
2262 ## --------- ##
2263
2264 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2265 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2266 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2267 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2268 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2269
2270 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2271 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2272
2273 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2274 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2275 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2276 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2277 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2278 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2279 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2280
2281 _ASUNAME
2282
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   case $as_dir in #(((
2288     '') as_dir=./ ;;
2289     */) ;;
2290     *) as_dir=$as_dir/ ;;
2291   esac
2292     printf "%s\n" "PATH: $as_dir"
2293   done
2294 IFS=$as_save_IFS
2295
2296 } >&5
2297
2298 cat >&5 <<_ACEOF
2299
2300
2301 ## ----------- ##
2302 ## Core tests. ##
2303 ## ----------- ##
2304
2305 _ACEOF
2306
2307
2308 # Keep a trace of the command line.
2309 # Strip out --no-create and --no-recursion so they do not pile up.
2310 # Strip out --silent because we don't want to record it for future runs.
2311 # Also quote any args containing shell meta-characters.
2312 # Make two passes to allow for proper duplicate-argument suppression.
2313 ac_configure_args=
2314 ac_configure_args0=
2315 ac_configure_args1=
2316 ac_must_keep_next=false
2317 for ac_pass in 1 2
2318 do
2319   for ac_arg
2320   do
2321     case $ac_arg in
2322     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2323     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2324     | -silent | --silent | --silen | --sile | --sil)
2325       continue ;;
2326     *\'*)
2327       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2328     esac
2329     case $ac_pass in
2330     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2331     2)
2332       as_fn_append ac_configure_args1 " '$ac_arg'"
2333       if test $ac_must_keep_next = true; then
2334         ac_must_keep_next=false # Got value, back to normal.
2335       else
2336         case $ac_arg in
2337           *=* | --config-cache | -C | -disable-* | --disable-* \
2338           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2339           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2340           | -with-* | --with-* | -without-* | --without-* | --x)
2341             case "$ac_configure_args0 " in
2342               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2343             esac
2344             ;;
2345           -* ) ac_must_keep_next=true ;;
2346         esac
2347       fi
2348       as_fn_append ac_configure_args " '$ac_arg'"
2349       ;;
2350     esac
2351   done
2352 done
2353 { ac_configure_args0=; unset ac_configure_args0;}
2354 { ac_configure_args1=; unset ac_configure_args1;}
2355
2356 # When interrupted or exit'd, cleanup temporary files, and complete
2357 # config.log.  We remove comments because anyway the quotes in there
2358 # would cause problems or look ugly.
2359 # WARNING: Use '\'' to represent an apostrophe within the trap.
2360 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2361 trap 'exit_status=$?
2362   # Sanitize IFS.
2363   IFS=" ""      $as_nl"
2364   # Save into config.log some information that might help in debugging.
2365   {
2366     echo
2367
2368     printf "%s\n" "## ---------------- ##
2369 ## Cache variables. ##
2370 ## ---------------- ##"
2371     echo
2372     # The following way of writing the cache mishandles newlines in values,
2373 (
2374   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2375     eval ac_val=\$$ac_var
2376     case $ac_val in #(
2377     *${as_nl}*)
2378       case $ac_var in #(
2379       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2380 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2381       esac
2382       case $ac_var in #(
2383       _ | IFS | as_nl) ;; #(
2384       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2385       *) { eval $ac_var=; unset $ac_var;} ;;
2386       esac ;;
2387     esac
2388   done
2389   (set) 2>&1 |
2390     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2391     *${as_nl}ac_space=\ *)
2392       sed -n \
2393         "s/'\''/'\''\\\\'\'''\''/g;
2394           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2395       ;; #(
2396     *)
2397       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2398       ;;
2399     esac |
2400     sort
2401 )
2402     echo
2403
2404     printf "%s\n" "## ----------------- ##
2405 ## Output variables. ##
2406 ## ----------------- ##"
2407     echo
2408     for ac_var in $ac_subst_vars
2409     do
2410       eval ac_val=\$$ac_var
2411       case $ac_val in
2412       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2413       esac
2414       printf "%s\n" "$ac_var='\''$ac_val'\''"
2415     done | sort
2416     echo
2417
2418     if test -n "$ac_subst_files"; then
2419       printf "%s\n" "## ------------------- ##
2420 ## File substitutions. ##
2421 ## ------------------- ##"
2422       echo
2423       for ac_var in $ac_subst_files
2424       do
2425         eval ac_val=\$$ac_var
2426         case $ac_val in
2427         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2428         esac
2429         printf "%s\n" "$ac_var='\''$ac_val'\''"
2430       done | sort
2431       echo
2432     fi
2433
2434     if test -s confdefs.h; then
2435       printf "%s\n" "## ----------- ##
2436 ## confdefs.h. ##
2437 ## ----------- ##"
2438       echo
2439       cat confdefs.h
2440       echo
2441     fi
2442     test "$ac_signal" != 0 &&
2443       printf "%s\n" "$as_me: caught signal $ac_signal"
2444     printf "%s\n" "$as_me: exit $exit_status"
2445   } >&5
2446   rm -f core *.core core.conftest.* &&
2447     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2448     exit $exit_status
2449 ' 0
2450 for ac_signal in 1 2 13 15; do
2451   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2452 done
2453 ac_signal=0
2454
2455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2456 rm -f -r conftest* confdefs.h
2457
2458 printf "%s\n" "/* confdefs.h */" > confdefs.h
2459
2460 # Predefined preprocessor variables.
2461
2462 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2463
2464 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2465
2466 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2467
2468 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2469
2470 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2471
2472 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2473
2474
2475 # Let the site file select an alternate cache file if it wants to.
2476 # Prefer an explicitly selected file to automatically selected ones.
2477 if test -n "$CONFIG_SITE"; then
2478   ac_site_files="$CONFIG_SITE"
2479 elif test "x$prefix" != xNONE; then
2480   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2481 else
2482   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2483 fi
2484
2485 for ac_site_file in $ac_site_files
2486 do
2487   case $ac_site_file in #(
2488   */*) :
2489      ;; #(
2490   *) :
2491     ac_site_file=./$ac_site_file ;;
2492 esac
2493   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2494     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2495 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2496     sed 's/^/| /' "$ac_site_file" >&5
2497     . "$ac_site_file" \
2498       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2499 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2500 as_fn_error $? "failed to load site script $ac_site_file
2501 See \`config.log' for more details" "$LINENO" 5; }
2502   fi
2503 done
2504
2505 if test -r "$cache_file"; then
2506   # Some versions of bash will fail to source /dev/null (special files
2507   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2508   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2509     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2510 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2511     case $cache_file in
2512       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2513       *)                      . "./$cache_file";;
2514     esac
2515   fi
2516 else
2517   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2518 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2519   >$cache_file
2520 fi
2521
2522 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2523 # Test code for whether the C compiler supports C89 (global declarations)
2524 ac_c_conftest_c89_globals='
2525 /* Does the compiler advertise C89 conformance?
2526    Do not test the value of __STDC__, because some compilers set it to 0
2527    while being otherwise adequately conformant. */
2528 #if !defined __STDC__
2529 # error "Compiler does not advertise C89 conformance"
2530 #endif
2531
2532 #include <stddef.h>
2533 #include <stdarg.h>
2534 struct stat;
2535 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2536 struct buf { int x; };
2537 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2538 static char *e (p, i)
2539      char **p;
2540      int i;
2541 {
2542   return p[i];
2543 }
2544 static char *f (char * (*g) (char **, int), char **p, ...)
2545 {
2546   char *s;
2547   va_list v;
2548   va_start (v,p);
2549   s = g (p, va_arg (v,int));
2550   va_end (v);
2551   return s;
2552 }
2553
2554 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2555    function prototypes and stuff, but not \xHH hex character constants.
2556    These do not provoke an error unfortunately, instead are silently treated
2557    as an "x".  The following induces an error, until -std is added to get
2558    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2559    array size at least.  It is necessary to write \x00 == 0 to get something
2560    that is true only with -std.  */
2561 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2562
2563 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2564    inside strings and character constants.  */
2565 #define FOO(x) '\''x'\''
2566 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2567
2568 int test (int i, double x);
2569 struct s1 {int (*f) (int a);};
2570 struct s2 {int (*f) (double a);};
2571 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2572                int, int);'
2573
2574 # Test code for whether the C compiler supports C89 (body of main).
2575 ac_c_conftest_c89_main='
2576 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2577 '
2578
2579 # Test code for whether the C compiler supports C99 (global declarations)
2580 ac_c_conftest_c99_globals='
2581 // Does the compiler advertise C99 conformance?
2582 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2583 # error "Compiler does not advertise C99 conformance"
2584 #endif
2585
2586 #include <stdbool.h>
2587 extern int puts (const char *);
2588 extern int printf (const char *, ...);
2589 extern int dprintf (int, const char *, ...);
2590 extern void *malloc (size_t);
2591
2592 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2593 // dprintf is used instead of fprintf to avoid needing to declare
2594 // FILE and stderr.
2595 #define debug(...) dprintf (2, __VA_ARGS__)
2596 #define showlist(...) puts (#__VA_ARGS__)
2597 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2598 static void
2599 test_varargs_macros (void)
2600 {
2601   int x = 1234;
2602   int y = 5678;
2603   debug ("Flag");
2604   debug ("X = %d\n", x);
2605   showlist (The first, second, and third items.);
2606   report (x>y, "x is %d but y is %d", x, y);
2607 }
2608
2609 // Check long long types.
2610 #define BIG64 18446744073709551615ull
2611 #define BIG32 4294967295ul
2612 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2613 #if !BIG_OK
2614   #error "your preprocessor is broken"
2615 #endif
2616 #if BIG_OK
2617 #else
2618   #error "your preprocessor is broken"
2619 #endif
2620 static long long int bignum = -9223372036854775807LL;
2621 static unsigned long long int ubignum = BIG64;
2622
2623 struct incomplete_array
2624 {
2625   int datasize;
2626   double data[];
2627 };
2628
2629 struct named_init {
2630   int number;
2631   const wchar_t *name;
2632   double average;
2633 };
2634
2635 typedef const char *ccp;
2636
2637 static inline int
2638 test_restrict (ccp restrict text)
2639 {
2640   // See if C++-style comments work.
2641   // Iterate through items via the restricted pointer.
2642   // Also check for declarations in for loops.
2643   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2644     continue;
2645   return 0;
2646 }
2647
2648 // Check varargs and va_copy.
2649 static bool
2650 test_varargs (const char *format, ...)
2651 {
2652   va_list args;
2653   va_start (args, format);
2654   va_list args_copy;
2655   va_copy (args_copy, args);
2656
2657   const char *str = "";
2658   int number = 0;
2659   float fnumber = 0;
2660
2661   while (*format)
2662     {
2663       switch (*format++)
2664         {
2665         case '\''s'\'': // string
2666           str = va_arg (args_copy, const char *);
2667           break;
2668         case '\''d'\'': // int
2669           number = va_arg (args_copy, int);
2670           break;
2671         case '\''f'\'': // float
2672           fnumber = va_arg (args_copy, double);
2673           break;
2674         default:
2675           break;
2676         }
2677     }
2678   va_end (args_copy);
2679   va_end (args);
2680
2681   return *str && number && fnumber;
2682 }
2683 '
2684
2685 # Test code for whether the C compiler supports C99 (body of main).
2686 ac_c_conftest_c99_main='
2687   // Check bool.
2688   _Bool success = false;
2689   success |= (argc != 0);
2690
2691   // Check restrict.
2692   if (test_restrict ("String literal") == 0)
2693     success = true;
2694   char *restrict newvar = "Another string";
2695
2696   // Check varargs.
2697   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2698   test_varargs_macros ();
2699
2700   // Check flexible array members.
2701   struct incomplete_array *ia =
2702     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2703   ia->datasize = 10;
2704   for (int i = 0; i < ia->datasize; ++i)
2705     ia->data[i] = i * 1.234;
2706
2707   // Check named initializers.
2708   struct named_init ni = {
2709     .number = 34,
2710     .name = L"Test wide string",
2711     .average = 543.34343,
2712   };
2713
2714   ni.number = 58;
2715
2716   int dynamic_array[ni.number];
2717   dynamic_array[0] = argv[0][0];
2718   dynamic_array[ni.number - 1] = 543;
2719
2720   // work around unused variable warnings
2721   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2722          || dynamic_array[ni.number - 1] != 543);
2723 '
2724
2725 # Test code for whether the C compiler supports C11 (global declarations)
2726 ac_c_conftest_c11_globals='
2727 // Does the compiler advertise C11 conformance?
2728 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2729 # error "Compiler does not advertise C11 conformance"
2730 #endif
2731
2732 // Check _Alignas.
2733 char _Alignas (double) aligned_as_double;
2734 char _Alignas (0) no_special_alignment;
2735 extern char aligned_as_int;
2736 char _Alignas (0) _Alignas (int) aligned_as_int;
2737
2738 // Check _Alignof.
2739 enum
2740 {
2741   int_alignment = _Alignof (int),
2742   int_array_alignment = _Alignof (int[100]),
2743   char_alignment = _Alignof (char)
2744 };
2745 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2746
2747 // Check _Noreturn.
2748 int _Noreturn does_not_return (void) { for (;;) continue; }
2749
2750 // Check _Static_assert.
2751 struct test_static_assert
2752 {
2753   int x;
2754   _Static_assert (sizeof (int) <= sizeof (long int),
2755                   "_Static_assert does not work in struct");
2756   long int y;
2757 };
2758
2759 // Check UTF-8 literals.
2760 #define u8 syntax error!
2761 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2762
2763 // Check duplicate typedefs.
2764 typedef long *long_ptr;
2765 typedef long int *long_ptr;
2766 typedef long_ptr long_ptr;
2767
2768 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2769 struct anonymous
2770 {
2771   union {
2772     struct { int i; int j; };
2773     struct { int k; long int l; } w;
2774   };
2775   int m;
2776 } v1;
2777 '
2778
2779 # Test code for whether the C compiler supports C11 (body of main).
2780 ac_c_conftest_c11_main='
2781   _Static_assert ((offsetof (struct anonymous, i)
2782                    == offsetof (struct anonymous, w.k)),
2783                   "Anonymous union alignment botch");
2784   v1.i = 2;
2785   v1.w.k = 5;
2786   ok |= v1.i != 5;
2787 '
2788
2789 # Test code for whether the C compiler supports C11 (complete).
2790 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2791 ${ac_c_conftest_c99_globals}
2792 ${ac_c_conftest_c11_globals}
2793
2794 int
2795 main (int argc, char **argv)
2796 {
2797   int ok = 0;
2798   ${ac_c_conftest_c89_main}
2799   ${ac_c_conftest_c99_main}
2800   ${ac_c_conftest_c11_main}
2801   return ok;
2802 }
2803 "
2804
2805 # Test code for whether the C compiler supports C99 (complete).
2806 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2807 ${ac_c_conftest_c99_globals}
2808
2809 int
2810 main (int argc, char **argv)
2811 {
2812   int ok = 0;
2813   ${ac_c_conftest_c89_main}
2814   ${ac_c_conftest_c99_main}
2815   return ok;
2816 }
2817 "
2818
2819 # Test code for whether the C compiler supports C89 (complete).
2820 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2821
2822 int
2823 main (int argc, char **argv)
2824 {
2825   int ok = 0;
2826   ${ac_c_conftest_c89_main}
2827   return ok;
2828 }
2829 "
2830
2831 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2832 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2833 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2834 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2835 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2836 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2837 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2838 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2839 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2840 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2841 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2842 as_fn_append ac_func_c_list " fork HAVE_FORK"
2843 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2844
2845 # Auxiliary files required by this configure script.
2846 ac_aux_files="config.guess config.sub ltmain.sh"
2847
2848 # Locations in which to look for auxiliary files.
2849 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2850
2851 # Search for a directory containing all of the required auxiliary files,
2852 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2853 # If we don't find one directory that contains all the files we need,
2854 # we report the set of missing files from the *first* directory in
2855 # $ac_aux_dir_candidates and give up.
2856 ac_missing_aux_files=""
2857 ac_first_candidate=:
2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 as_found=false
2861 for as_dir in $ac_aux_dir_candidates
2862 do
2863   IFS=$as_save_IFS
2864   case $as_dir in #(((
2865     '') as_dir=./ ;;
2866     */) ;;
2867     *) as_dir=$as_dir/ ;;
2868   esac
2869   as_found=:
2870
2871   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2872   ac_aux_dir_found=yes
2873   ac_install_sh=
2874   for ac_aux in $ac_aux_files
2875   do
2876     # As a special case, if "install-sh" is required, that requirement
2877     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2878     # and $ac_install_sh is set appropriately for whichever one is found.
2879     if test x"$ac_aux" = x"install-sh"
2880     then
2881       if test -f "${as_dir}install-sh"; then
2882         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2883         ac_install_sh="${as_dir}install-sh -c"
2884       elif test -f "${as_dir}install.sh"; then
2885         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2886         ac_install_sh="${as_dir}install.sh -c"
2887       elif test -f "${as_dir}shtool"; then
2888         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2889         ac_install_sh="${as_dir}shtool install -c"
2890       else
2891         ac_aux_dir_found=no
2892         if $ac_first_candidate; then
2893           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2894         else
2895           break
2896         fi
2897       fi
2898     else
2899       if test -f "${as_dir}${ac_aux}"; then
2900         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2901       else
2902         ac_aux_dir_found=no
2903         if $ac_first_candidate; then
2904           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2905         else
2906           break
2907         fi
2908       fi
2909     fi
2910   done
2911   if test "$ac_aux_dir_found" = yes; then
2912     ac_aux_dir="$as_dir"
2913     break
2914   fi
2915   ac_first_candidate=false
2916
2917   as_found=false
2918 done
2919 IFS=$as_save_IFS
2920 if $as_found
2921 then :
2922
2923 else $as_nop
2924   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2925 fi
2926
2927
2928 # These three variables are undocumented and unsupported,
2929 # and are intended to be withdrawn in a future Autoconf release.
2930 # They can cause serious problems if a builder's source tree is in a directory
2931 # whose full name contains unusual characters.
2932 if test -f "${ac_aux_dir}config.guess"; then
2933   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2934 fi
2935 if test -f "${ac_aux_dir}config.sub"; then
2936   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2937 fi
2938 if test -f "$ac_aux_dir/configure"; then
2939   ac_configure="$SHELL ${ac_aux_dir}configure"
2940 fi
2941
2942 # Check that the precious variables saved in the cache have kept the same
2943 # value.
2944 ac_cache_corrupted=false
2945 for ac_var in $ac_precious_vars; do
2946   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2947   eval ac_new_set=\$ac_env_${ac_var}_set
2948   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2949   eval ac_new_val=\$ac_env_${ac_var}_value
2950   case $ac_old_set,$ac_new_set in
2951     set,)
2952       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2953 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2954       ac_cache_corrupted=: ;;
2955     ,set)
2956       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2957 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2958       ac_cache_corrupted=: ;;
2959     ,);;
2960     *)
2961       if test "x$ac_old_val" != "x$ac_new_val"; then
2962         # differences in whitespace do not lead to failure.
2963         ac_old_val_w=`echo x $ac_old_val`
2964         ac_new_val_w=`echo x $ac_new_val`
2965         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2966           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2967 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2968           ac_cache_corrupted=:
2969         else
2970           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2971 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2972           eval $ac_var=\$ac_old_val
2973         fi
2974         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2975 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2976         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2977 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2978       fi;;
2979   esac
2980   # Pass precious variables to config.status.
2981   if test "$ac_new_set" = set; then
2982     case $ac_new_val in
2983     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2984     *) ac_arg=$ac_var=$ac_new_val ;;
2985     esac
2986     case " $ac_configure_args " in
2987       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2988       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2989     esac
2990   fi
2991 done
2992 if $ac_cache_corrupted; then
2993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2995   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2996 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2997   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2998             and start over" "$LINENO" 5
2999 fi
3000 ## -------------------- ##
3001 ## Main body of script. ##
3002 ## -------------------- ##
3003
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009
3010
3011
3012 # needed to build correct soname
3013 LDNS_VERSION_MAJOR=1
3014
3015 LDNS_VERSION_MINOR=8
3016
3017 LDNS_VERSION_MICRO=3
3018
3019
3020 # Library version
3021 # ---------------
3022 # current:revision:age
3023 # (binary-api-number):(which-binary-api-version):(how-many-nrs-backwardscompat)
3024 # if source code changes increment revision
3025 # if any interfaces have been added/removed/changed since last update then
3026 #   increment current and set revision to 0
3027 # if any interfaces have been added since the last public release then increment age
3028 # if any interfaces have been removed or changed since the last public release then
3029 #   set age to 0
3030 #
3031 # ldns-1.6.17 and before had a .so with version same as VERSION_INFO
3032 # ldns-1.7.0 had libversion 2:0:0
3033 # ldns-1.7.1 had libversion 3:0:0 (though it should have had 3:0:1)
3034 # ldns-1.8.0 had libversion 4:0:2 (though it should have had 4:0:1)
3035 # ldns-1.8.1 had libversion 5:0:2
3036 # ldns-1.8.1 had libversion 6:0:3
3037 # ldns-1.8.2 had libversion 7:0:4
3038 # ldns-1.8.3 has libversion 8:0:5
3039 #
3040 VERSION_INFO=8:0:5
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052 ac_ext=c
3053 ac_cpp='$CPP $CPPFLAGS'
3054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057 if test -n "$ac_tool_prefix"; then
3058   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3059 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 printf %s "checking for $ac_word... " >&6; }
3062 if test ${ac_cv_prog_CC+y}
3063 then :
3064   printf %s "(cached) " >&6
3065 else $as_nop
3066   if test -n "$CC"; then
3067   ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072   IFS=$as_save_IFS
3073   case $as_dir in #(((
3074     '') as_dir=./ ;;
3075     */) ;;
3076     *) as_dir=$as_dir/ ;;
3077   esac
3078     for ac_exec_ext in '' $ac_executable_extensions; do
3079   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3080     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3081     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3082     break 2
3083   fi
3084 done
3085   done
3086 IFS=$as_save_IFS
3087
3088 fi
3089 fi
3090 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3093 printf "%s\n" "$CC" >&6; }
3094 else
3095   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 printf "%s\n" "no" >&6; }
3097 fi
3098
3099
3100 fi
3101 if test -z "$ac_cv_prog_CC"; then
3102   ac_ct_CC=$CC
3103   # Extract the first word of "gcc", so it can be a program name with args.
3104 set dummy gcc; ac_word=$2
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 printf %s "checking for $ac_word... " >&6; }
3107 if test ${ac_cv_prog_ac_ct_CC+y}
3108 then :
3109   printf %s "(cached) " >&6
3110 else $as_nop
3111   if test -n "$ac_ct_CC"; then
3112   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117   IFS=$as_save_IFS
3118   case $as_dir in #(((
3119     '') as_dir=./ ;;
3120     */) ;;
3121     *) as_dir=$as_dir/ ;;
3122   esac
3123     for ac_exec_ext in '' $ac_executable_extensions; do
3124   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3125     ac_cv_prog_ac_ct_CC="gcc"
3126     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3127     break 2
3128   fi
3129 done
3130   done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3136 if test -n "$ac_ct_CC"; then
3137   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3138 printf "%s\n" "$ac_ct_CC" >&6; }
3139 else
3140   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 printf "%s\n" "no" >&6; }
3142 fi
3143
3144   if test "x$ac_ct_CC" = x; then
3145     CC=""
3146   else
3147     case $cross_compiling:$ac_tool_warned in
3148 yes:)
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3150 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3151 ac_tool_warned=yes ;;
3152 esac
3153     CC=$ac_ct_CC
3154   fi
3155 else
3156   CC="$ac_cv_prog_CC"
3157 fi
3158
3159 if test -z "$CC"; then
3160           if test -n "$ac_tool_prefix"; then
3161     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}cc; ac_word=$2
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 printf %s "checking for $ac_word... " >&6; }
3165 if test ${ac_cv_prog_CC+y}
3166 then :
3167   printf %s "(cached) " >&6
3168 else $as_nop
3169   if test -n "$CC"; then
3170   ac_cv_prog_CC="$CC" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175   IFS=$as_save_IFS
3176   case $as_dir in #(((
3177     '') as_dir=./ ;;
3178     */) ;;
3179     *) as_dir=$as_dir/ ;;
3180   esac
3181     for ac_exec_ext in '' $ac_executable_extensions; do
3182   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3183     ac_cv_prog_CC="${ac_tool_prefix}cc"
3184     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3185     break 2
3186   fi
3187 done
3188   done
3189 IFS=$as_save_IFS
3190
3191 fi
3192 fi
3193 CC=$ac_cv_prog_CC
3194 if test -n "$CC"; then
3195   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3196 printf "%s\n" "$CC" >&6; }
3197 else
3198   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 printf "%s\n" "no" >&6; }
3200 fi
3201
3202
3203   fi
3204 fi
3205 if test -z "$CC"; then
3206   # Extract the first word of "cc", so it can be a program name with args.
3207 set dummy cc; ac_word=$2
3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 printf %s "checking for $ac_word... " >&6; }
3210 if test ${ac_cv_prog_CC+y}
3211 then :
3212   printf %s "(cached) " >&6
3213 else $as_nop
3214   if test -n "$CC"; then
3215   ac_cv_prog_CC="$CC" # Let the user override the test.
3216 else
3217   ac_prog_rejected=no
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221   IFS=$as_save_IFS
3222   case $as_dir in #(((
3223     '') as_dir=./ ;;
3224     */) ;;
3225     *) as_dir=$as_dir/ ;;
3226   esac
3227     for ac_exec_ext in '' $ac_executable_extensions; do
3228   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3229     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3230        ac_prog_rejected=yes
3231        continue
3232      fi
3233     ac_cv_prog_CC="cc"
3234     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238   done
3239 IFS=$as_save_IFS
3240
3241 if test $ac_prog_rejected = yes; then
3242   # We found a bogon in the path, so make sure we never use it.
3243   set dummy $ac_cv_prog_CC
3244   shift
3245   if test $# != 0; then
3246     # We chose a different compiler from the bogus one.
3247     # However, it has the same basename, so the bogon will be chosen
3248     # first if we set CC to just the basename; use the full file name.
3249     shift
3250     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3251   fi
3252 fi
3253 fi
3254 fi
3255 CC=$ac_cv_prog_CC
3256 if test -n "$CC"; then
3257   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258 printf "%s\n" "$CC" >&6; }
3259 else
3260   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 printf "%s\n" "no" >&6; }
3262 fi
3263
3264
3265 fi
3266 if test -z "$CC"; then
3267   if test -n "$ac_tool_prefix"; then
3268   for ac_prog in cl.exe
3269   do
3270     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 printf %s "checking for $ac_word... " >&6; }
3274 if test ${ac_cv_prog_CC+y}
3275 then :
3276   printf %s "(cached) " >&6
3277 else $as_nop
3278   if test -n "$CC"; then
3279   ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284   IFS=$as_save_IFS
3285   case $as_dir in #(((
3286     '') as_dir=./ ;;
3287     */) ;;
3288     *) as_dir=$as_dir/ ;;
3289   esac
3290     for ac_exec_ext in '' $ac_executable_extensions; do
3291   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3292     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3293     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3294     break 2
3295   fi
3296 done
3297   done
3298 IFS=$as_save_IFS
3299
3300 fi
3301 fi
3302 CC=$ac_cv_prog_CC
3303 if test -n "$CC"; then
3304   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3305 printf "%s\n" "$CC" >&6; }
3306 else
3307   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 printf "%s\n" "no" >&6; }
3309 fi
3310
3311
3312     test -n "$CC" && break
3313   done
3314 fi
3315 if test -z "$CC"; then
3316   ac_ct_CC=$CC
3317   for ac_prog in cl.exe
3318 do
3319   # Extract the first word of "$ac_prog", so it can be a program name with args.
3320 set dummy $ac_prog; ac_word=$2
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 printf %s "checking for $ac_word... " >&6; }
3323 if test ${ac_cv_prog_ac_ct_CC+y}
3324 then :
3325   printf %s "(cached) " >&6
3326 else $as_nop
3327   if test -n "$ac_ct_CC"; then
3328   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333   IFS=$as_save_IFS
3334   case $as_dir in #(((
3335     '') as_dir=./ ;;
3336     */) ;;
3337     *) as_dir=$as_dir/ ;;
3338   esac
3339     for ac_exec_ext in '' $ac_executable_extensions; do
3340   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3341     ac_cv_prog_ac_ct_CC="$ac_prog"
3342     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3343     break 2
3344   fi
3345 done
3346   done
3347 IFS=$as_save_IFS
3348
3349 fi
3350 fi
3351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3352 if test -n "$ac_ct_CC"; then
3353   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3354 printf "%s\n" "$ac_ct_CC" >&6; }
3355 else
3356   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 printf "%s\n" "no" >&6; }
3358 fi
3359
3360
3361   test -n "$ac_ct_CC" && break
3362 done
3363
3364   if test "x$ac_ct_CC" = x; then
3365     CC=""
3366   else
3367     case $cross_compiling:$ac_tool_warned in
3368 yes:)
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3370 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3371 ac_tool_warned=yes ;;
3372 esac
3373     CC=$ac_ct_CC
3374   fi
3375 fi
3376
3377 fi
3378 if test -z "$CC"; then
3379   if test -n "$ac_tool_prefix"; then
3380   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3381 set dummy ${ac_tool_prefix}clang; ac_word=$2
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 printf %s "checking for $ac_word... " >&6; }
3384 if test ${ac_cv_prog_CC+y}
3385 then :
3386   printf %s "(cached) " >&6
3387 else $as_nop
3388   if test -n "$CC"; then
3389   ac_cv_prog_CC="$CC" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3393 do
3394   IFS=$as_save_IFS
3395   case $as_dir in #(((
3396     '') as_dir=./ ;;
3397     */) ;;
3398     *) as_dir=$as_dir/ ;;
3399   esac
3400     for ac_exec_ext in '' $ac_executable_extensions; do
3401   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3402     ac_cv_prog_CC="${ac_tool_prefix}clang"
3403     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3404     break 2
3405   fi
3406 done
3407   done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 CC=$ac_cv_prog_CC
3413 if test -n "$CC"; then
3414   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415 printf "%s\n" "$CC" >&6; }
3416 else
3417   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 printf "%s\n" "no" >&6; }
3419 fi
3420
3421
3422 fi
3423 if test -z "$ac_cv_prog_CC"; then
3424   ac_ct_CC=$CC
3425   # Extract the first word of "clang", so it can be a program name with args.
3426 set dummy clang; ac_word=$2
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 printf %s "checking for $ac_word... " >&6; }
3429 if test ${ac_cv_prog_ac_ct_CC+y}
3430 then :
3431   printf %s "(cached) " >&6
3432 else $as_nop
3433   if test -n "$ac_ct_CC"; then
3434   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439   IFS=$as_save_IFS
3440   case $as_dir in #(((
3441     '') as_dir=./ ;;
3442     */) ;;
3443     *) as_dir=$as_dir/ ;;
3444   esac
3445     for ac_exec_ext in '' $ac_executable_extensions; do
3446   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3447     ac_cv_prog_ac_ct_CC="clang"
3448     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3449     break 2
3450   fi
3451 done
3452   done
3453 IFS=$as_save_IFS
3454
3455 fi
3456 fi
3457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3458 if test -n "$ac_ct_CC"; then
3459   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3460 printf "%s\n" "$ac_ct_CC" >&6; }
3461 else
3462   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 printf "%s\n" "no" >&6; }
3464 fi
3465
3466   if test "x$ac_ct_CC" = x; then
3467     CC=""
3468   else
3469     case $cross_compiling:$ac_tool_warned in
3470 yes:)
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3472 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3473 ac_tool_warned=yes ;;
3474 esac
3475     CC=$ac_ct_CC
3476   fi
3477 else
3478   CC="$ac_cv_prog_CC"
3479 fi
3480
3481 fi
3482
3483
3484 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error $? "no acceptable C compiler found in \$PATH
3487 See \`config.log' for more details" "$LINENO" 5; }
3488
3489 # Provide some information about the compiler.
3490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3491 set X $ac_compile
3492 ac_compiler=$2
3493 for ac_option in --version -v -V -qversion -version; do
3494   { { ac_try="$ac_compiler $ac_option >&5"
3495 case "(($ac_try" in
3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497   *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 printf "%s\n" "$ac_try_echo"; } >&5
3501   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3502   ac_status=$?
3503   if test -s conftest.err; then
3504     sed '10a\
3505 ... rest of stderr output deleted ...
3506          10q' conftest.err >conftest.er1
3507     cat conftest.er1 >&5
3508   fi
3509   rm -f conftest.er1 conftest.err
3510   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511   test $ac_status = 0; }
3512 done
3513
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h.  */
3516
3517 int
3518 main (void)
3519 {
3520
3521   ;
3522   return 0;
3523 }
3524 _ACEOF
3525 ac_clean_files_save=$ac_clean_files
3526 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3527 # Try to create an executable without -o first, disregard a.out.
3528 # It will help us diagnose broken compilers, and finding out an intuition
3529 # of exeext.
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3531 printf %s "checking whether the C compiler works... " >&6; }
3532 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3533
3534 # The possible output files:
3535 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3536
3537 ac_rmfiles=
3538 for ac_file in $ac_files
3539 do
3540   case $ac_file in
3541     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3542     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3543   esac
3544 done
3545 rm -f $ac_rmfiles
3546
3547 if { { ac_try="$ac_link_default"
3548 case "(($ac_try" in
3549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550   *) ac_try_echo=$ac_try;;
3551 esac
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 printf "%s\n" "$ac_try_echo"; } >&5
3554   (eval "$ac_link_default") 2>&5
3555   ac_status=$?
3556   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557   test $ac_status = 0; }
3558 then :
3559   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3560 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3561 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3562 # so that the user can short-circuit this test for compilers unknown to
3563 # Autoconf.
3564 for ac_file in $ac_files ''
3565 do
3566   test -f "$ac_file" || continue
3567   case $ac_file in
3568     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3569         ;;
3570     [ab].out )
3571         # We found the default executable, but exeext='' is most
3572         # certainly right.
3573         break;;
3574     *.* )
3575         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3576         then :; else
3577            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3578         fi
3579         # We set ac_cv_exeext here because the later test for it is not
3580         # safe: cross compilers may not add the suffix if given an `-o'
3581         # argument, so we may need to know it at that point already.
3582         # Even if this section looks crufty: it has the advantage of
3583         # actually working.
3584         break;;
3585     * )
3586         break;;
3587   esac
3588 done
3589 test "$ac_cv_exeext" = no && ac_cv_exeext=
3590
3591 else $as_nop
3592   ac_file=''
3593 fi
3594 if test -z "$ac_file"
3595 then :
3596   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 printf "%s\n" "no" >&6; }
3598 printf "%s\n" "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3600
3601 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error 77 "C compiler cannot create executables
3604 See \`config.log' for more details" "$LINENO" 5; }
3605 else $as_nop
3606   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3607 printf "%s\n" "yes" >&6; }
3608 fi
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3610 printf %s "checking for C compiler default output file name... " >&6; }
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3612 printf "%s\n" "$ac_file" >&6; }
3613 ac_exeext=$ac_cv_exeext
3614
3615 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3616 ac_clean_files=$ac_clean_files_save
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3618 printf %s "checking for suffix of executables... " >&6; }
3619 if { { ac_try="$ac_link"
3620 case "(($ac_try" in
3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622   *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 printf "%s\n" "$ac_try_echo"; } >&5
3626   (eval "$ac_link") 2>&5
3627   ac_status=$?
3628   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629   test $ac_status = 0; }
3630 then :
3631   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3632 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3633 # work properly (i.e., refer to `conftest.exe'), while it won't with
3634 # `rm'.
3635 for ac_file in conftest.exe conftest conftest.*; do
3636   test -f "$ac_file" || continue
3637   case $ac_file in
3638     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3639     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3640           break;;
3641     * ) break;;
3642   esac
3643 done
3644 else $as_nop
3645   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3648 See \`config.log' for more details" "$LINENO" 5; }
3649 fi
3650 rm -f conftest conftest$ac_cv_exeext
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3652 printf "%s\n" "$ac_cv_exeext" >&6; }
3653
3654 rm -f conftest.$ac_ext
3655 EXEEXT=$ac_cv_exeext
3656 ac_exeext=$EXEEXT
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h.  */
3659 #include <stdio.h>
3660 int
3661 main (void)
3662 {
3663 FILE *f = fopen ("conftest.out", "w");
3664  return ferror (f) || fclose (f) != 0;
3665
3666   ;
3667   return 0;
3668 }
3669 _ACEOF
3670 ac_clean_files="$ac_clean_files conftest.out"
3671 # Check that the compiler produces executables we can run.  If not, either
3672 # the compiler is broken, or we cross compile.
3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3674 printf %s "checking whether we are cross compiling... " >&6; }
3675 if test "$cross_compiling" != yes; then
3676   { { ac_try="$ac_link"
3677 case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 printf "%s\n" "$ac_try_echo"; } >&5
3683   (eval "$ac_link") 2>&5
3684   ac_status=$?
3685   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686   test $ac_status = 0; }
3687   if { ac_try='./conftest$ac_cv_exeext'
3688   { { case "(($ac_try" in
3689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690   *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 printf "%s\n" "$ac_try_echo"; } >&5
3694   (eval "$ac_try") 2>&5
3695   ac_status=$?
3696   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697   test $ac_status = 0; }; }; then
3698     cross_compiling=no
3699   else
3700     if test "$cross_compiling" = maybe; then
3701         cross_compiling=yes
3702     else
3703         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3705 as_fn_error 77 "cannot run C compiled programs.
3706 If you meant to cross compile, use \`--host'.
3707 See \`config.log' for more details" "$LINENO" 5; }
3708     fi
3709   fi
3710 fi
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3712 printf "%s\n" "$cross_compiling" >&6; }
3713
3714 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3715 ac_clean_files=$ac_clean_files_save
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3717 printf %s "checking for suffix of object files... " >&6; }
3718 if test ${ac_cv_objext+y}
3719 then :
3720   printf %s "(cached) " >&6
3721 else $as_nop
3722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h.  */
3724
3725 int
3726 main (void)
3727 {
3728
3729   ;
3730   return 0;
3731 }
3732 _ACEOF
3733 rm -f conftest.o conftest.obj
3734 if { { ac_try="$ac_compile"
3735 case "(($ac_try" in
3736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737   *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 printf "%s\n" "$ac_try_echo"; } >&5
3741   (eval "$ac_compile") 2>&5
3742   ac_status=$?
3743   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744   test $ac_status = 0; }
3745 then :
3746   for ac_file in conftest.o conftest.obj conftest.*; do
3747   test -f "$ac_file" || continue;
3748   case $ac_file in
3749     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3750     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3751        break;;
3752   esac
3753 done
3754 else $as_nop
3755   printf "%s\n" "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3757
3758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3759 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3760 as_fn_error $? "cannot compute suffix of object files: cannot compile
3761 See \`config.log' for more details" "$LINENO" 5; }
3762 fi
3763 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3764 fi
3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3766 printf "%s\n" "$ac_cv_objext" >&6; }
3767 OBJEXT=$ac_cv_objext
3768 ac_objext=$OBJEXT
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3770 printf %s "checking whether the compiler supports GNU C... " >&6; }
3771 if test ${ac_cv_c_compiler_gnu+y}
3772 then :
3773   printf %s "(cached) " >&6
3774 else $as_nop
3775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h.  */
3777
3778 int
3779 main (void)
3780 {
3781 #ifndef __GNUC__
3782        choke me
3783 #endif
3784
3785   ;
3786   return 0;
3787 }
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"
3790 then :
3791   ac_compiler_gnu=yes
3792 else $as_nop
3793   ac_compiler_gnu=no
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3796 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3797
3798 fi
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3800 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3802
3803 if test $ac_compiler_gnu = yes; then
3804   GCC=yes
3805 else
3806   GCC=
3807 fi
3808 ac_test_CFLAGS=${CFLAGS+y}
3809 ac_save_CFLAGS=$CFLAGS
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3811 printf %s "checking whether $CC accepts -g... " >&6; }
3812 if test ${ac_cv_prog_cc_g+y}
3813 then :
3814   printf %s "(cached) " >&6
3815 else $as_nop
3816   ac_save_c_werror_flag=$ac_c_werror_flag
3817    ac_c_werror_flag=yes
3818    ac_cv_prog_cc_g=no
3819    CFLAGS="-g"
3820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h.  */
3822
3823 int
3824 main (void)
3825 {
3826
3827   ;
3828   return 0;
3829 }
3830 _ACEOF
3831 if ac_fn_c_try_compile "$LINENO"
3832 then :
3833   ac_cv_prog_cc_g=yes
3834 else $as_nop
3835   CFLAGS=""
3836       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h.  */
3838
3839 int
3840 main (void)
3841 {
3842
3843   ;
3844   return 0;
3845 }
3846 _ACEOF
3847 if ac_fn_c_try_compile "$LINENO"
3848 then :
3849
3850 else $as_nop
3851   ac_c_werror_flag=$ac_save_c_werror_flag
3852          CFLAGS="-g"
3853          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h.  */
3855
3856 int
3857 main (void)
3858 {
3859
3860   ;
3861   return 0;
3862 }
3863 _ACEOF
3864 if ac_fn_c_try_compile "$LINENO"
3865 then :
3866   ac_cv_prog_cc_g=yes
3867 fi
3868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3869 fi
3870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3871 fi
3872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3873    ac_c_werror_flag=$ac_save_c_werror_flag
3874 fi
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3876 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3877 if test $ac_test_CFLAGS; then
3878   CFLAGS=$ac_save_CFLAGS
3879 elif test $ac_cv_prog_cc_g = yes; then
3880   if test "$GCC" = yes; then
3881     CFLAGS="-g -O2"
3882   else
3883     CFLAGS="-g"
3884   fi
3885 else
3886   if test "$GCC" = yes; then
3887     CFLAGS="-O2"
3888   else
3889     CFLAGS=
3890   fi
3891 fi
3892 ac_prog_cc_stdc=no
3893 if test x$ac_prog_cc_stdc = xno
3894 then :
3895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3896 printf %s "checking for $CC option to enable C11 features... " >&6; }
3897 if test ${ac_cv_prog_cc_c11+y}
3898 then :
3899   printf %s "(cached) " >&6
3900 else $as_nop
3901   ac_cv_prog_cc_c11=no
3902 ac_save_CC=$CC
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h.  */
3905 $ac_c_conftest_c11_program
3906 _ACEOF
3907 for ac_arg in '' -std=gnu11
3908 do
3909   CC="$ac_save_CC $ac_arg"
3910   if ac_fn_c_try_compile "$LINENO"
3911 then :
3912   ac_cv_prog_cc_c11=$ac_arg
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext conftest.beam
3915   test "x$ac_cv_prog_cc_c11" != "xno" && break
3916 done
3917 rm -f conftest.$ac_ext
3918 CC=$ac_save_CC
3919 fi
3920
3921 if test "x$ac_cv_prog_cc_c11" = xno
3922 then :
3923   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3924 printf "%s\n" "unsupported" >&6; }
3925 else $as_nop
3926   if test "x$ac_cv_prog_cc_c11" = x
3927 then :
3928   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3929 printf "%s\n" "none needed" >&6; }
3930 else $as_nop
3931   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3932 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3933      CC="$CC $ac_cv_prog_cc_c11"
3934 fi
3935   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3936   ac_prog_cc_stdc=c11
3937 fi
3938 fi
3939 if test x$ac_prog_cc_stdc = xno
3940 then :
3941   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3942 printf %s "checking for $CC option to enable C99 features... " >&6; }
3943 if test ${ac_cv_prog_cc_c99+y}
3944 then :
3945   printf %s "(cached) " >&6
3946 else $as_nop
3947   ac_cv_prog_cc_c99=no
3948 ac_save_CC=$CC
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h.  */
3951 $ac_c_conftest_c99_program
3952 _ACEOF
3953 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3954 do
3955   CC="$ac_save_CC $ac_arg"
3956   if ac_fn_c_try_compile "$LINENO"
3957 then :
3958   ac_cv_prog_cc_c99=$ac_arg
3959 fi
3960 rm -f core conftest.err conftest.$ac_objext conftest.beam
3961   test "x$ac_cv_prog_cc_c99" != "xno" && break
3962 done
3963 rm -f conftest.$ac_ext
3964 CC=$ac_save_CC
3965 fi
3966
3967 if test "x$ac_cv_prog_cc_c99" = xno
3968 then :
3969   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3970 printf "%s\n" "unsupported" >&6; }
3971 else $as_nop
3972   if test "x$ac_cv_prog_cc_c99" = x
3973 then :
3974   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3975 printf "%s\n" "none needed" >&6; }
3976 else $as_nop
3977   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3978 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3979      CC="$CC $ac_cv_prog_cc_c99"
3980 fi
3981   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3982   ac_prog_cc_stdc=c99
3983 fi
3984 fi
3985 if test x$ac_prog_cc_stdc = xno
3986 then :
3987   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3988 printf %s "checking for $CC option to enable C89 features... " >&6; }
3989 if test ${ac_cv_prog_cc_c89+y}
3990 then :
3991   printf %s "(cached) " >&6
3992 else $as_nop
3993   ac_cv_prog_cc_c89=no
3994 ac_save_CC=$CC
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h.  */
3997 $ac_c_conftest_c89_program
3998 _ACEOF
3999 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4000 do
4001   CC="$ac_save_CC $ac_arg"
4002   if ac_fn_c_try_compile "$LINENO"
4003 then :
4004   ac_cv_prog_cc_c89=$ac_arg
4005 fi
4006 rm -f core conftest.err conftest.$ac_objext conftest.beam
4007   test "x$ac_cv_prog_cc_c89" != "xno" && break
4008 done
4009 rm -f conftest.$ac_ext
4010 CC=$ac_save_CC
4011 fi
4012
4013 if test "x$ac_cv_prog_cc_c89" = xno
4014 then :
4015   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4016 printf "%s\n" "unsupported" >&6; }
4017 else $as_nop
4018   if test "x$ac_cv_prog_cc_c89" = x
4019 then :
4020   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4021 printf "%s\n" "none needed" >&6; }
4022 else $as_nop
4023   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4024 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4025      CC="$CC $ac_cv_prog_cc_c89"
4026 fi
4027   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4028   ac_prog_cc_stdc=c89
4029 fi
4030 fi
4031
4032 ac_ext=c
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037
4038
4039 ac_header= ac_cache=
4040 for ac_item in $ac_header_c_list
4041 do
4042   if test $ac_cache; then
4043     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4044     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4045       printf "%s\n" "#define $ac_item 1" >> confdefs.h
4046     fi
4047     ac_header= ac_cache=
4048   elif test $ac_header; then
4049     ac_cache=$ac_item
4050   else
4051     ac_header=$ac_item
4052   fi
4053 done
4054
4055
4056
4057
4058
4059
4060
4061
4062 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4063 then :
4064
4065 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4066
4067 fi
4068
4069
4070
4071
4072
4073
4074   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4075 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4076 if test ${ac_cv_safe_to_define___extensions__+y}
4077 then :
4078   printf %s "(cached) " >&6
4079 else $as_nop
4080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h.  */
4082
4083 #         define __EXTENSIONS__ 1
4084           $ac_includes_default
4085 int
4086 main (void)
4087 {
4088
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"
4094 then :
4095   ac_cv_safe_to_define___extensions__=yes
4096 else $as_nop
4097   ac_cv_safe_to_define___extensions__=no
4098 fi
4099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4100 fi
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4102 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4103
4104   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4105 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4106 if test ${ac_cv_should_define__xopen_source+y}
4107 then :
4108   printf %s "(cached) " >&6
4109 else $as_nop
4110   ac_cv_should_define__xopen_source=no
4111     if test $ac_cv_header_wchar_h = yes
4112 then :
4113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h.  */
4115
4116           #include <wchar.h>
4117           mbstate_t x;
4118 int
4119 main (void)
4120 {
4121
4122   ;
4123   return 0;
4124 }
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"
4127 then :
4128
4129 else $as_nop
4130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h.  */
4132
4133             #define _XOPEN_SOURCE 500
4134             #include <wchar.h>
4135             mbstate_t x;
4136 int
4137 main (void)
4138 {
4139
4140   ;
4141   return 0;
4142 }
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"
4145 then :
4146   ac_cv_should_define__xopen_source=yes
4147 fi
4148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4149 fi
4150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4151 fi
4152 fi
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4154 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4155
4156   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4157
4158   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4159
4160   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4161
4162   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4163
4164   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4165
4166   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4167
4168   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4169
4170   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4171
4172   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4173
4174   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4175
4176   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4177
4178   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4179
4180   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4181
4182   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4183
4184   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4185
4186   if test $ac_cv_header_minix_config_h = yes
4187 then :
4188   MINIX=yes
4189     printf "%s\n" "#define _MINIX 1" >>confdefs.h
4190
4191     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4192
4193     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4194
4195 else $as_nop
4196   MINIX=
4197 fi
4198   if test $ac_cv_safe_to_define___extensions__ = yes
4199 then :
4200   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4201
4202 fi
4203   if test $ac_cv_should_define__xopen_source = yes
4204 then :
4205   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4206
4207 fi
4208
4209
4210 if test "$ac_cv_header_minix_config_h" = "yes"; then
4211
4212 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4213
4214 fi
4215
4216
4217 case `pwd` in
4218   *\ * | *\     *)
4219     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4220 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4221 esac
4222
4223
4224
4225 macro_version='2.4.6'
4226 macro_revision='2.4.6'
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241 ltmain=$ac_aux_dir/ltmain.sh
4242
4243
4244
4245   # Make sure we can run config.sub.
4246 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4247   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4248
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4250 printf %s "checking build system type... " >&6; }
4251 if test ${ac_cv_build+y}
4252 then :
4253   printf %s "(cached) " >&6
4254 else $as_nop
4255   ac_build_alias=$build_alias
4256 test "x$ac_build_alias" = x &&
4257   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4258 test "x$ac_build_alias" = x &&
4259   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4260 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4261   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4262
4263 fi
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4265 printf "%s\n" "$ac_cv_build" >&6; }
4266 case $ac_cv_build in
4267 *-*-*) ;;
4268 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4269 esac
4270 build=$ac_cv_build
4271 ac_save_IFS=$IFS; IFS='-'
4272 set x $ac_cv_build
4273 shift
4274 build_cpu=$1
4275 build_vendor=$2
4276 shift; shift
4277 # Remember, the first character of IFS is used to create $*,
4278 # except with old shells:
4279 build_os=$*
4280 IFS=$ac_save_IFS
4281 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4282
4283
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4285 printf %s "checking host system type... " >&6; }
4286 if test ${ac_cv_host+y}
4287 then :
4288   printf %s "(cached) " >&6
4289 else $as_nop
4290   if test "x$host_alias" = x; then
4291   ac_cv_host=$ac_cv_build
4292 else
4293   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4294     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4295 fi
4296
4297 fi
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4299 printf "%s\n" "$ac_cv_host" >&6; }
4300 case $ac_cv_host in
4301 *-*-*) ;;
4302 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4303 esac
4304 host=$ac_cv_host
4305 ac_save_IFS=$IFS; IFS='-'
4306 set x $ac_cv_host
4307 shift
4308 host_cpu=$1
4309 host_vendor=$2
4310 shift; shift
4311 # Remember, the first character of IFS is used to create $*,
4312 # except with old shells:
4313 host_os=$*
4314 IFS=$ac_save_IFS
4315 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4316
4317
4318 # Backslashify metacharacters that are still active within
4319 # double-quoted strings.
4320 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4321
4322 # Same as above, but do not quote variable references.
4323 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4324
4325 # Sed substitution to delay expansion of an escaped shell variable in a
4326 # double_quote_subst'ed string.
4327 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4328
4329 # Sed substitution to delay expansion of an escaped single quote.
4330 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4331
4332 # Sed substitution to avoid accidental globbing in evaled expressions
4333 no_glob_subst='s/\*/\\\*/g'
4334
4335 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4336 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4337 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4338
4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4340 printf %s "checking how to print strings... " >&6; }
4341 # Test print first, because it will be a builtin if present.
4342 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4343    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4344   ECHO='print -r --'
4345 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4346   ECHO='printf %s\n'
4347 else
4348   # Use this function as a fallback that always works.
4349   func_fallback_echo ()
4350   {
4351     eval 'cat <<_LTECHO_EOF
4352 $1
4353 _LTECHO_EOF'
4354   }
4355   ECHO='func_fallback_echo'
4356 fi
4357
4358 # func_echo_all arg...
4359 # Invoke $ECHO with all args, space-separated.
4360 func_echo_all ()
4361 {
4362     $ECHO ""
4363 }
4364
4365 case $ECHO in
4366   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4367 printf "%s\n" "printf" >&6; } ;;
4368   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4369 printf "%s\n" "print -r" >&6; } ;;
4370   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4371 printf "%s\n" "cat" >&6; } ;;
4372 esac
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4388 printf %s "checking for a sed that does not truncate output... " >&6; }
4389 if test ${ac_cv_path_SED+y}
4390 then :
4391   printf %s "(cached) " >&6
4392 else $as_nop
4393             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4394      for ac_i in 1 2 3 4 5 6 7; do
4395        ac_script="$ac_script$as_nl$ac_script"
4396      done
4397      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4398      { ac_script=; unset ac_script;}
4399      if test -z "$SED"; then
4400   ac_path_SED_found=false
4401   # Loop through the user's path and test for each of PROGNAME-LIST
4402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405   IFS=$as_save_IFS
4406   case $as_dir in #(((
4407     '') as_dir=./ ;;
4408     */) ;;
4409     *) as_dir=$as_dir/ ;;
4410   esac
4411     for ac_prog in sed gsed
4412    do
4413     for ac_exec_ext in '' $ac_executable_extensions; do
4414       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4415       as_fn_executable_p "$ac_path_SED" || continue
4416 # Check for GNU ac_path_SED and select it if it is found.
4417   # Check for GNU $ac_path_SED
4418 case `"$ac_path_SED" --version 2>&1` in
4419 *GNU*)
4420   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4421 *)
4422   ac_count=0
4423   printf %s 0123456789 >"conftest.in"
4424   while :
4425   do
4426     cat "conftest.in" "conftest.in" >"conftest.tmp"
4427     mv "conftest.tmp" "conftest.in"
4428     cp "conftest.in" "conftest.nl"
4429     printf "%s\n" '' >> "conftest.nl"
4430     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432     as_fn_arith $ac_count + 1 && ac_count=$as_val
4433     if test $ac_count -gt ${ac_path_SED_max-0}; then
4434       # Best one so far, save it but keep looking for a better one
4435       ac_cv_path_SED="$ac_path_SED"
4436       ac_path_SED_max=$ac_count
4437     fi
4438     # 10*(2^10) chars as input seems more than enough
4439     test $ac_count -gt 10 && break
4440   done
4441   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4442 esac
4443
4444       $ac_path_SED_found && break 3
4445     done
4446   done
4447   done
4448 IFS=$as_save_IFS
4449   if test -z "$ac_cv_path_SED"; then
4450     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4451   fi
4452 else
4453   ac_cv_path_SED=$SED
4454 fi
4455
4456 fi
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4458 printf "%s\n" "$ac_cv_path_SED" >&6; }
4459  SED="$ac_cv_path_SED"
4460   rm -f conftest.sed
4461
4462 test -z "$SED" && SED=sed
4463 Xsed="$SED -e 1s/^X//"
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4476 printf %s "checking for grep that handles long lines and -e... " >&6; }
4477 if test ${ac_cv_path_GREP+y}
4478 then :
4479   printf %s "(cached) " >&6
4480 else $as_nop
4481   if test -z "$GREP"; then
4482   ac_path_GREP_found=false
4483   # Loop through the user's path and test for each of PROGNAME-LIST
4484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4486 do
4487   IFS=$as_save_IFS
4488   case $as_dir in #(((
4489     '') as_dir=./ ;;
4490     */) ;;
4491     *) as_dir=$as_dir/ ;;
4492   esac
4493     for ac_prog in grep ggrep
4494    do
4495     for ac_exec_ext in '' $ac_executable_extensions; do
4496       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4497       as_fn_executable_p "$ac_path_GREP" || continue
4498 # Check for GNU ac_path_GREP and select it if it is found.
4499   # Check for GNU $ac_path_GREP
4500 case `"$ac_path_GREP" --version 2>&1` in
4501 *GNU*)
4502   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4503 *)
4504   ac_count=0
4505   printf %s 0123456789 >"conftest.in"
4506   while :
4507   do
4508     cat "conftest.in" "conftest.in" >"conftest.tmp"
4509     mv "conftest.tmp" "conftest.in"
4510     cp "conftest.in" "conftest.nl"
4511     printf "%s\n" 'GREP' >> "conftest.nl"
4512     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4513     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4514     as_fn_arith $ac_count + 1 && ac_count=$as_val
4515     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4516       # Best one so far, save it but keep looking for a better one
4517       ac_cv_path_GREP="$ac_path_GREP"
4518       ac_path_GREP_max=$ac_count
4519     fi
4520     # 10*(2^10) chars as input seems more than enough
4521     test $ac_count -gt 10 && break
4522   done
4523   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4524 esac
4525
4526       $ac_path_GREP_found && break 3
4527     done
4528   done
4529   done
4530 IFS=$as_save_IFS
4531   if test -z "$ac_cv_path_GREP"; then
4532     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4533   fi
4534 else
4535   ac_cv_path_GREP=$GREP
4536 fi
4537
4538 fi
4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4540 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4541  GREP="$ac_cv_path_GREP"
4542
4543
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4545 printf %s "checking for egrep... " >&6; }
4546 if test ${ac_cv_path_EGREP+y}
4547 then :
4548   printf %s "(cached) " >&6
4549 else $as_nop
4550   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4551    then ac_cv_path_EGREP="$GREP -E"
4552    else
4553      if test -z "$EGREP"; then
4554   ac_path_EGREP_found=false
4555   # Loop through the user's path and test for each of PROGNAME-LIST
4556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4558 do
4559   IFS=$as_save_IFS
4560   case $as_dir in #(((
4561     '') as_dir=./ ;;
4562     */) ;;
4563     *) as_dir=$as_dir/ ;;
4564   esac
4565     for ac_prog in egrep
4566    do
4567     for ac_exec_ext in '' $ac_executable_extensions; do
4568       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4569       as_fn_executable_p "$ac_path_EGREP" || continue
4570 # Check for GNU ac_path_EGREP and select it if it is found.
4571   # Check for GNU $ac_path_EGREP
4572 case `"$ac_path_EGREP" --version 2>&1` in
4573 *GNU*)
4574   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4575 *)
4576   ac_count=0
4577   printf %s 0123456789 >"conftest.in"
4578   while :
4579   do
4580     cat "conftest.in" "conftest.in" >"conftest.tmp"
4581     mv "conftest.tmp" "conftest.in"
4582     cp "conftest.in" "conftest.nl"
4583     printf "%s\n" 'EGREP' >> "conftest.nl"
4584     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4585     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4586     as_fn_arith $ac_count + 1 && ac_count=$as_val
4587     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4588       # Best one so far, save it but keep looking for a better one
4589       ac_cv_path_EGREP="$ac_path_EGREP"
4590       ac_path_EGREP_max=$ac_count
4591     fi
4592     # 10*(2^10) chars as input seems more than enough
4593     test $ac_count -gt 10 && break
4594   done
4595   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4596 esac
4597
4598       $ac_path_EGREP_found && break 3
4599     done
4600   done
4601   done
4602 IFS=$as_save_IFS
4603   if test -z "$ac_cv_path_EGREP"; then
4604     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4605   fi
4606 else
4607   ac_cv_path_EGREP=$EGREP
4608 fi
4609
4610    fi
4611 fi
4612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4613 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4614  EGREP="$ac_cv_path_EGREP"
4615
4616
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4618 printf %s "checking for fgrep... " >&6; }
4619 if test ${ac_cv_path_FGREP+y}
4620 then :
4621   printf %s "(cached) " >&6
4622 else $as_nop
4623   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4624    then ac_cv_path_FGREP="$GREP -F"
4625    else
4626      if test -z "$FGREP"; then
4627   ac_path_FGREP_found=false
4628   # Loop through the user's path and test for each of PROGNAME-LIST
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631 do
4632   IFS=$as_save_IFS
4633   case $as_dir in #(((
4634     '') as_dir=./ ;;
4635     */) ;;
4636     *) as_dir=$as_dir/ ;;
4637   esac
4638     for ac_prog in fgrep
4639    do
4640     for ac_exec_ext in '' $ac_executable_extensions; do
4641       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4642       as_fn_executable_p "$ac_path_FGREP" || continue
4643 # Check for GNU ac_path_FGREP and select it if it is found.
4644   # Check for GNU $ac_path_FGREP
4645 case `"$ac_path_FGREP" --version 2>&1` in
4646 *GNU*)
4647   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4648 *)
4649   ac_count=0
4650   printf %s 0123456789 >"conftest.in"
4651   while :
4652   do
4653     cat "conftest.in" "conftest.in" >"conftest.tmp"
4654     mv "conftest.tmp" "conftest.in"
4655     cp "conftest.in" "conftest.nl"
4656     printf "%s\n" 'FGREP' >> "conftest.nl"
4657     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4658     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4659     as_fn_arith $ac_count + 1 && ac_count=$as_val
4660     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4661       # Best one so far, save it but keep looking for a better one
4662       ac_cv_path_FGREP="$ac_path_FGREP"
4663       ac_path_FGREP_max=$ac_count
4664     fi
4665     # 10*(2^10) chars as input seems more than enough
4666     test $ac_count -gt 10 && break
4667   done
4668   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4669 esac
4670
4671       $ac_path_FGREP_found && break 3
4672     done
4673   done
4674   done
4675 IFS=$as_save_IFS
4676   if test -z "$ac_cv_path_FGREP"; then
4677     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4678   fi
4679 else
4680   ac_cv_path_FGREP=$FGREP
4681 fi
4682
4683    fi
4684 fi
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4686 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4687  FGREP="$ac_cv_path_FGREP"
4688
4689
4690 test -z "$GREP" && GREP=grep
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710 # Check whether --with-gnu-ld was given.
4711 if test ${with_gnu_ld+y}
4712 then :
4713   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4714 else $as_nop
4715   with_gnu_ld=no
4716 fi
4717
4718 ac_prog=ld
4719 if test yes = "$GCC"; then
4720   # Check if gcc -print-prog-name=ld gives a path.
4721   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4722 printf %s "checking for ld used by $CC... " >&6; }
4723   case $host in
4724   *-*-mingw*)
4725     # gcc leaves a trailing carriage return, which upsets mingw
4726     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4727   *)
4728     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4729   esac
4730   case $ac_prog in
4731     # Accept absolute paths.
4732     [\\/]* | ?:[\\/]*)
4733       re_direlt='/[^/][^/]*/\.\./'
4734       # Canonicalize the pathname of ld
4735       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4736       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4737         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4738       done
4739       test -z "$LD" && LD=$ac_prog
4740       ;;
4741   "")
4742     # If it fails, then pretend we aren't using GCC.
4743     ac_prog=ld
4744     ;;
4745   *)
4746     # If it is relative, then search for the first ld in PATH.
4747     with_gnu_ld=unknown
4748     ;;
4749   esac
4750 elif test yes = "$with_gnu_ld"; then
4751   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4752 printf %s "checking for GNU ld... " >&6; }
4753 else
4754   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4755 printf %s "checking for non-GNU ld... " >&6; }
4756 fi
4757 if test ${lt_cv_path_LD+y}
4758 then :
4759   printf %s "(cached) " >&6
4760 else $as_nop
4761   if test -z "$LD"; then
4762   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4763   for ac_dir in $PATH; do
4764     IFS=$lt_save_ifs
4765     test -z "$ac_dir" && ac_dir=.
4766     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4767       lt_cv_path_LD=$ac_dir/$ac_prog
4768       # Check to see if the program is GNU ld.  I'd rather use --version,
4769       # but apparently some variants of GNU ld only accept -v.
4770       # Break only if it was the GNU/non-GNU ld that we prefer.
4771       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4772       *GNU* | *'with BFD'*)
4773         test no != "$with_gnu_ld" && break
4774         ;;
4775       *)
4776         test yes != "$with_gnu_ld" && break
4777         ;;
4778       esac
4779     fi
4780   done
4781   IFS=$lt_save_ifs
4782 else
4783   lt_cv_path_LD=$LD # Let the user override the test with a path.
4784 fi
4785 fi
4786
4787 LD=$lt_cv_path_LD
4788 if test -n "$LD"; then
4789   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4790 printf "%s\n" "$LD" >&6; }
4791 else
4792   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 printf "%s\n" "no" >&6; }
4794 fi
4795 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4797 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4798 if test ${lt_cv_prog_gnu_ld+y}
4799 then :
4800   printf %s "(cached) " >&6
4801 else $as_nop
4802   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4803 case `$LD -v 2>&1 </dev/null` in
4804 *GNU* | *'with BFD'*)
4805   lt_cv_prog_gnu_ld=yes
4806   ;;
4807 *)
4808   lt_cv_prog_gnu_ld=no
4809   ;;
4810 esac
4811 fi
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4813 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4814 with_gnu_ld=$lt_cv_prog_gnu_ld
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4825 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4826 if test ${lt_cv_path_NM+y}
4827 then :
4828   printf %s "(cached) " >&6
4829 else $as_nop
4830   if test -n "$NM"; then
4831   # Let the user override the test.
4832   lt_cv_path_NM=$NM
4833 else
4834   lt_nm_to_check=${ac_tool_prefix}nm
4835   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4836     lt_nm_to_check="$lt_nm_to_check nm"
4837   fi
4838   for lt_tmp_nm in $lt_nm_to_check; do
4839     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4840     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4841       IFS=$lt_save_ifs
4842       test -z "$ac_dir" && ac_dir=.
4843       tmp_nm=$ac_dir/$lt_tmp_nm
4844       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4845         # Check to see if the nm accepts a BSD-compat flag.
4846         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4847         #   nm: unknown option "B" ignored
4848         # Tru64's nm complains that /dev/null is an invalid object file
4849         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4850         case $build_os in
4851         mingw*) lt_bad_file=conftest.nm/nofile ;;
4852         *) lt_bad_file=/dev/null ;;
4853         esac
4854         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4855         *$lt_bad_file* | *'Invalid file or object type'*)
4856           lt_cv_path_NM="$tmp_nm -B"
4857           break 2
4858           ;;
4859         *)
4860           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4861           */dev/null*)
4862             lt_cv_path_NM="$tmp_nm -p"
4863             break 2
4864             ;;
4865           *)
4866             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4867             continue # so that we can try to find one that supports BSD flags
4868             ;;
4869           esac
4870           ;;
4871         esac
4872       fi
4873     done
4874     IFS=$lt_save_ifs
4875   done
4876   : ${lt_cv_path_NM=no}
4877 fi
4878 fi
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4880 printf "%s\n" "$lt_cv_path_NM" >&6; }
4881 if test no != "$lt_cv_path_NM"; then
4882   NM=$lt_cv_path_NM
4883 else
4884   # Didn't find any BSD compatible name lister, look for dumpbin.
4885   if test -n "$DUMPBIN"; then :
4886     # Let the user override the test.
4887   else
4888     if test -n "$ac_tool_prefix"; then
4889   for ac_prog in dumpbin "link -dump"
4890   do
4891     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 printf %s "checking for $ac_word... " >&6; }
4895 if test ${ac_cv_prog_DUMPBIN+y}
4896 then :
4897   printf %s "(cached) " >&6
4898 else $as_nop
4899   if test -n "$DUMPBIN"; then
4900   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   case $as_dir in #(((
4907     '') as_dir=./ ;;
4908     */) ;;
4909     *) as_dir=$as_dir/ ;;
4910   esac
4911     for ac_exec_ext in '' $ac_executable_extensions; do
4912   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4913     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4914     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918   done
4919 IFS=$as_save_IFS
4920
4921 fi
4922 fi
4923 DUMPBIN=$ac_cv_prog_DUMPBIN
4924 if test -n "$DUMPBIN"; then
4925   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4926 printf "%s\n" "$DUMPBIN" >&6; }
4927 else
4928   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 printf "%s\n" "no" >&6; }
4930 fi
4931
4932
4933     test -n "$DUMPBIN" && break
4934   done
4935 fi
4936 if test -z "$DUMPBIN"; then
4937   ac_ct_DUMPBIN=$DUMPBIN
4938   for ac_prog in dumpbin "link -dump"
4939 do
4940   # Extract the first word of "$ac_prog", so it can be a program name with args.
4941 set dummy $ac_prog; ac_word=$2
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 printf %s "checking for $ac_word... " >&6; }
4944 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4945 then :
4946   printf %s "(cached) " >&6
4947 else $as_nop
4948   if test -n "$ac_ct_DUMPBIN"; then
4949   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   case $as_dir in #(((
4956     '') as_dir=./ ;;
4957     */) ;;
4958     *) as_dir=$as_dir/ ;;
4959   esac
4960     for ac_exec_ext in '' $ac_executable_extensions; do
4961   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4962     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4963     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967   done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4973 if test -n "$ac_ct_DUMPBIN"; then
4974   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4975 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4976 else
4977   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 printf "%s\n" "no" >&6; }
4979 fi
4980
4981
4982   test -n "$ac_ct_DUMPBIN" && break
4983 done
4984
4985   if test "x$ac_ct_DUMPBIN" = x; then
4986     DUMPBIN=":"
4987   else
4988     case $cross_compiling:$ac_tool_warned in
4989 yes:)
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4992 ac_tool_warned=yes ;;
4993 esac
4994     DUMPBIN=$ac_ct_DUMPBIN
4995   fi
4996 fi
4997
4998     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4999     *COFF*)
5000       DUMPBIN="$DUMPBIN -symbols -headers"
5001       ;;
5002     *)
5003       DUMPBIN=:
5004       ;;
5005     esac
5006   fi
5007
5008   if test : != "$DUMPBIN"; then
5009     NM=$DUMPBIN
5010   fi
5011 fi
5012 test -z "$NM" && NM=nm
5013
5014
5015
5016
5017
5018
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5020 printf %s "checking the name lister ($NM) interface... " >&6; }
5021 if test ${lt_cv_nm_interface+y}
5022 then :
5023   printf %s "(cached) " >&6
5024 else $as_nop
5025   lt_cv_nm_interface="BSD nm"
5026   echo "int some_variable = 0;" > conftest.$ac_ext
5027   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5028   (eval "$ac_compile" 2>conftest.err)
5029   cat conftest.err >&5
5030   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5031   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5032   cat conftest.err >&5
5033   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5034   cat conftest.out >&5
5035   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5036     lt_cv_nm_interface="MS dumpbin"
5037   fi
5038   rm -f conftest*
5039 fi
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5041 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5042
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5044 printf %s "checking whether ln -s works... " >&6; }
5045 LN_S=$as_ln_s
5046 if test "$LN_S" = "ln -s"; then
5047   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5048 printf "%s\n" "yes" >&6; }
5049 else
5050   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5051 printf "%s\n" "no, using $LN_S" >&6; }
5052 fi
5053
5054 # find the maximum length of command line arguments
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5056 printf %s "checking the maximum length of command line arguments... " >&6; }
5057 if test ${lt_cv_sys_max_cmd_len+y}
5058 then :
5059   printf %s "(cached) " >&6
5060 else $as_nop
5061     i=0
5062   teststring=ABCD
5063
5064   case $build_os in
5065   msdosdjgpp*)
5066     # On DJGPP, this test can blow up pretty badly due to problems in libc
5067     # (any single argument exceeding 2000 bytes causes a buffer overrun
5068     # during glob expansion).  Even if it were fixed, the result of this
5069     # check would be larger than it should be.
5070     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5071     ;;
5072
5073   gnu*)
5074     # Under GNU Hurd, this test is not required because there is
5075     # no limit to the length of command line arguments.
5076     # Libtool will interpret -1 as no limit whatsoever
5077     lt_cv_sys_max_cmd_len=-1;
5078     ;;
5079
5080   cygwin* | mingw* | cegcc*)
5081     # On Win9x/ME, this test blows up -- it succeeds, but takes
5082     # about 5 minutes as the teststring grows exponentially.
5083     # Worse, since 9x/ME are not pre-emptively multitasking,
5084     # you end up with a "frozen" computer, even though with patience
5085     # the test eventually succeeds (with a max line length of 256k).
5086     # Instead, let's just punt: use the minimum linelength reported by
5087     # all of the supported platforms: 8192 (on NT/2K/XP).
5088     lt_cv_sys_max_cmd_len=8192;
5089     ;;
5090
5091   mint*)
5092     # On MiNT this can take a long time and run out of memory.
5093     lt_cv_sys_max_cmd_len=8192;
5094     ;;
5095
5096   amigaos*)
5097     # On AmigaOS with pdksh, this test takes hours, literally.
5098     # So we just punt and use a minimum line length of 8192.
5099     lt_cv_sys_max_cmd_len=8192;
5100     ;;
5101
5102   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5103     # This has been around since 386BSD, at least.  Likely further.
5104     if test -x /sbin/sysctl; then
5105       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5106     elif test -x /usr/sbin/sysctl; then
5107       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5108     else
5109       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5110     fi
5111     # And add a safety zone
5112     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5113     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5114     ;;
5115
5116   interix*)
5117     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5118     lt_cv_sys_max_cmd_len=196608
5119     ;;
5120
5121   os2*)
5122     # The test takes a long time on OS/2.
5123     lt_cv_sys_max_cmd_len=8192
5124     ;;
5125
5126   osf*)
5127     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5128     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5129     # nice to cause kernel panics so lets avoid the loop below.
5130     # First set a reasonable default.
5131     lt_cv_sys_max_cmd_len=16384
5132     #
5133     if test -x /sbin/sysconfig; then
5134       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5135         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5136       esac
5137     fi
5138     ;;
5139   sco3.2v5*)
5140     lt_cv_sys_max_cmd_len=102400
5141     ;;
5142   sysv5* | sco5v6* | sysv4.2uw2*)
5143     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5144     if test -n "$kargmax"; then
5145       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5146     else
5147       lt_cv_sys_max_cmd_len=32768
5148     fi
5149     ;;
5150   *)
5151     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5152     if test -n "$lt_cv_sys_max_cmd_len" && \
5153        test undefined != "$lt_cv_sys_max_cmd_len"; then
5154       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5155       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5156     else
5157       # Make teststring a little bigger before we do anything with it.
5158       # a 1K string should be a reasonable start.
5159       for i in 1 2 3 4 5 6 7 8; do
5160         teststring=$teststring$teststring
5161       done
5162       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5163       # If test is not a shell built-in, we'll probably end up computing a
5164       # maximum length that is only half of the actual maximum length, but
5165       # we can't tell.
5166       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5167                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5168               test 17 != "$i" # 1/2 MB should be enough
5169       do
5170         i=`expr $i + 1`
5171         teststring=$teststring$teststring
5172       done
5173       # Only check the string length outside the loop.
5174       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5175       teststring=
5176       # Add a significant safety factor because C++ compilers can tack on
5177       # massive amounts of additional arguments before passing them to the
5178       # linker.  It appears as though 1/2 is a usable value.
5179       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5180     fi
5181     ;;
5182   esac
5183
5184 fi
5185
5186 if test -n "$lt_cv_sys_max_cmd_len"; then
5187   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5188 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5189 else
5190   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5191 printf "%s\n" "none" >&6; }
5192 fi
5193 max_cmd_len=$lt_cv_sys_max_cmd_len
5194
5195
5196
5197
5198
5199
5200 : ${CP="cp -f"}
5201 : ${MV="mv -f"}
5202 : ${RM="rm -f"}
5203
5204 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5205   lt_unset=unset
5206 else
5207   lt_unset=false
5208 fi
5209
5210
5211
5212
5213
5214 # test EBCDIC or ASCII
5215 case `echo X|tr X '\101'` in
5216  A) # ASCII based system
5217     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5218   lt_SP2NL='tr \040 \012'
5219   lt_NL2SP='tr \015\012 \040\040'
5220   ;;
5221  *) # EBCDIC based system
5222   lt_SP2NL='tr \100 \n'
5223   lt_NL2SP='tr \r\n \100\100'
5224   ;;
5225 esac
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5236 printf %s "checking how to convert $build file names to $host format... " >&6; }
5237 if test ${lt_cv_to_host_file_cmd+y}
5238 then :
5239   printf %s "(cached) " >&6
5240 else $as_nop
5241   case $host in
5242   *-*-mingw* )
5243     case $build in
5244       *-*-mingw* ) # actually msys
5245         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5246         ;;
5247       *-*-cygwin* )
5248         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5249         ;;
5250       * ) # otherwise, assume *nix
5251         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5252         ;;
5253     esac
5254     ;;
5255   *-*-cygwin* )
5256     case $build in
5257       *-*-mingw* ) # actually msys
5258         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5259         ;;
5260       *-*-cygwin* )
5261         lt_cv_to_host_file_cmd=func_convert_file_noop
5262         ;;
5263       * ) # otherwise, assume *nix
5264         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5265         ;;
5266     esac
5267     ;;
5268   * ) # unhandled hosts (and "normal" native builds)
5269     lt_cv_to_host_file_cmd=func_convert_file_noop
5270     ;;
5271 esac
5272
5273 fi
5274
5275 to_host_file_cmd=$lt_cv_to_host_file_cmd
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5277 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5278
5279
5280
5281
5282
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5284 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5285 if test ${lt_cv_to_tool_file_cmd+y}
5286 then :
5287   printf %s "(cached) " >&6
5288 else $as_nop
5289   #assume ordinary cross tools, or native build.
5290 lt_cv_to_tool_file_cmd=func_convert_file_noop
5291 case $host in
5292   *-*-mingw* )
5293     case $build in
5294       *-*-mingw* ) # actually msys
5295         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5296         ;;
5297     esac
5298     ;;
5299 esac
5300
5301 fi
5302
5303 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5305 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5306
5307
5308
5309
5310
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5312 printf %s "checking for $LD option to reload object files... " >&6; }
5313 if test ${lt_cv_ld_reload_flag+y}
5314 then :
5315   printf %s "(cached) " >&6
5316 else $as_nop
5317   lt_cv_ld_reload_flag='-r'
5318 fi
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5320 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5321 reload_flag=$lt_cv_ld_reload_flag
5322 case $reload_flag in
5323 "" | " "*) ;;
5324 *) reload_flag=" $reload_flag" ;;
5325 esac
5326 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5327 case $host_os in
5328   cygwin* | mingw* | pw32* | cegcc*)
5329     if test yes != "$GCC"; then
5330       reload_cmds=false
5331     fi
5332     ;;
5333   darwin*)
5334     if test yes = "$GCC"; then
5335       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5336     else
5337       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5338     fi
5339     ;;
5340 esac
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350 if test -n "$ac_tool_prefix"; then
5351   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5352 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 printf %s "checking for $ac_word... " >&6; }
5355 if test ${ac_cv_prog_OBJDUMP+y}
5356 then :
5357   printf %s "(cached) " >&6
5358 else $as_nop
5359   if test -n "$OBJDUMP"; then
5360   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5364 do
5365   IFS=$as_save_IFS
5366   case $as_dir in #(((
5367     '') as_dir=./ ;;
5368     */) ;;
5369     *) as_dir=$as_dir/ ;;
5370   esac
5371     for ac_exec_ext in '' $ac_executable_extensions; do
5372   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5373     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5374     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5375     break 2
5376   fi
5377 done
5378   done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 OBJDUMP=$ac_cv_prog_OBJDUMP
5384 if test -n "$OBJDUMP"; then
5385   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5386 printf "%s\n" "$OBJDUMP" >&6; }
5387 else
5388   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 printf "%s\n" "no" >&6; }
5390 fi
5391
5392
5393 fi
5394 if test -z "$ac_cv_prog_OBJDUMP"; then
5395   ac_ct_OBJDUMP=$OBJDUMP
5396   # Extract the first word of "objdump", so it can be a program name with args.
5397 set dummy objdump; ac_word=$2
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 printf %s "checking for $ac_word... " >&6; }
5400 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5401 then :
5402   printf %s "(cached) " >&6
5403 else $as_nop
5404   if test -n "$ac_ct_OBJDUMP"; then
5405   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410   IFS=$as_save_IFS
5411   case $as_dir in #(((
5412     '') as_dir=./ ;;
5413     */) ;;
5414     *) as_dir=$as_dir/ ;;
5415   esac
5416     for ac_exec_ext in '' $ac_executable_extensions; do
5417   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5418     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5419     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5420     break 2
5421   fi
5422 done
5423   done
5424 IFS=$as_save_IFS
5425
5426 fi
5427 fi
5428 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5429 if test -n "$ac_ct_OBJDUMP"; then
5430   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5431 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5432 else
5433   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 printf "%s\n" "no" >&6; }
5435 fi
5436
5437   if test "x$ac_ct_OBJDUMP" = x; then
5438     OBJDUMP="false"
5439   else
5440     case $cross_compiling:$ac_tool_warned in
5441 yes:)
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5443 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5444 ac_tool_warned=yes ;;
5445 esac
5446     OBJDUMP=$ac_ct_OBJDUMP
5447   fi
5448 else
5449   OBJDUMP="$ac_cv_prog_OBJDUMP"
5450 fi
5451
5452 test -z "$OBJDUMP" && OBJDUMP=objdump
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5463 printf %s "checking how to recognize dependent libraries... " >&6; }
5464 if test ${lt_cv_deplibs_check_method+y}
5465 then :
5466   printf %s "(cached) " >&6
5467 else $as_nop
5468   lt_cv_file_magic_cmd='$MAGIC_CMD'
5469 lt_cv_file_magic_test_file=
5470 lt_cv_deplibs_check_method='unknown'
5471 # Need to set the preceding variable on all platforms that support
5472 # interlibrary dependencies.
5473 # 'none' -- dependencies not supported.
5474 # 'unknown' -- same as none, but documents that we really don't know.
5475 # 'pass_all' -- all dependencies passed with no checks.
5476 # 'test_compile' -- check by making test program.
5477 # 'file_magic [[regex]]' -- check by looking for files in library path
5478 # that responds to the $file_magic_cmd with a given extended regex.
5479 # If you have 'file' or equivalent on your system and you're not sure
5480 # whether 'pass_all' will *always* work, you probably want this one.
5481
5482 case $host_os in
5483 aix[4-9]*)
5484   lt_cv_deplibs_check_method=pass_all
5485   ;;
5486
5487 beos*)
5488   lt_cv_deplibs_check_method=pass_all
5489   ;;
5490
5491 bsdi[45]*)
5492   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5493   lt_cv_file_magic_cmd='/usr/bin/file -L'
5494   lt_cv_file_magic_test_file=/shlib/libc.so
5495   ;;
5496
5497 cygwin*)
5498   # func_win32_libid is a shell function defined in ltmain.sh
5499   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5500   lt_cv_file_magic_cmd='func_win32_libid'
5501   ;;
5502
5503 mingw* | pw32*)
5504   # Base MSYS/MinGW do not provide the 'file' command needed by
5505   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5506   # unless we find 'file', for example because we are cross-compiling.
5507   if ( file / ) >/dev/null 2>&1; then
5508     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5509     lt_cv_file_magic_cmd='func_win32_libid'
5510   else
5511     # Keep this pattern in sync with the one in func_win32_libid.
5512     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5513     lt_cv_file_magic_cmd='$OBJDUMP -f'
5514   fi
5515   ;;
5516
5517 cegcc*)
5518   # use the weaker test based on 'objdump'. See mingw*.
5519   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5520   lt_cv_file_magic_cmd='$OBJDUMP -f'
5521   ;;
5522
5523 darwin* | rhapsody*)
5524   lt_cv_deplibs_check_method=pass_all
5525   ;;
5526
5527 freebsd* | dragonfly*)
5528   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5529     case $host_cpu in
5530     i*86 )
5531       # Not sure whether the presence of OpenBSD here was a mistake.
5532       # Let's accept both of them until this is cleared up.
5533       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5534       lt_cv_file_magic_cmd=/usr/bin/file
5535       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5536       ;;
5537     esac
5538   else
5539     lt_cv_deplibs_check_method=pass_all
5540   fi
5541   ;;
5542
5543 haiku*)
5544   lt_cv_deplibs_check_method=pass_all
5545   ;;
5546
5547 hpux10.20* | hpux11*)
5548   lt_cv_file_magic_cmd=/usr/bin/file
5549   case $host_cpu in
5550   ia64*)
5551     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5552     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5553     ;;
5554   hppa*64*)
5555     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]'
5556     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5557     ;;
5558   *)
5559     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5560     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5561     ;;
5562   esac
5563   ;;
5564
5565 interix[3-9]*)
5566   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5567   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5568   ;;
5569
5570 irix5* | irix6* | nonstopux*)
5571   case $LD in
5572   *-32|*"-32 ") libmagic=32-bit;;
5573   *-n32|*"-n32 ") libmagic=N32;;
5574   *-64|*"-64 ") libmagic=64-bit;;
5575   *) libmagic=never-match;;
5576   esac
5577   lt_cv_deplibs_check_method=pass_all
5578   ;;
5579
5580 # This must be glibc/ELF.
5581 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5582   lt_cv_deplibs_check_method=pass_all
5583   ;;
5584
5585 netbsd* | netbsdelf*-gnu)
5586   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5587     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5588   else
5589     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5590   fi
5591   ;;
5592
5593 newos6*)
5594   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5595   lt_cv_file_magic_cmd=/usr/bin/file
5596   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5597   ;;
5598
5599 *nto* | *qnx*)
5600   lt_cv_deplibs_check_method=pass_all
5601   ;;
5602
5603 openbsd* | bitrig*)
5604   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5605     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5606   else
5607     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5608   fi
5609   ;;
5610
5611 osf3* | osf4* | osf5*)
5612   lt_cv_deplibs_check_method=pass_all
5613   ;;
5614
5615 rdos*)
5616   lt_cv_deplibs_check_method=pass_all
5617   ;;
5618
5619 solaris*)
5620   lt_cv_deplibs_check_method=pass_all
5621   ;;
5622
5623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5624   lt_cv_deplibs_check_method=pass_all
5625   ;;
5626
5627 sysv4 | sysv4.3*)
5628   case $host_vendor in
5629   motorola)
5630     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]'
5631     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5632     ;;
5633   ncr)
5634     lt_cv_deplibs_check_method=pass_all
5635     ;;
5636   sequent)
5637     lt_cv_file_magic_cmd='/bin/file'
5638     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5639     ;;
5640   sni)
5641     lt_cv_file_magic_cmd='/bin/file'
5642     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5643     lt_cv_file_magic_test_file=/lib/libc.so
5644     ;;
5645   siemens)
5646     lt_cv_deplibs_check_method=pass_all
5647     ;;
5648   pc)
5649     lt_cv_deplibs_check_method=pass_all
5650     ;;
5651   esac
5652   ;;
5653
5654 tpf*)
5655   lt_cv_deplibs_check_method=pass_all
5656   ;;
5657 os2*)
5658   lt_cv_deplibs_check_method=pass_all
5659   ;;
5660 esac
5661
5662 fi
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5664 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5665
5666 file_magic_glob=
5667 want_nocaseglob=no
5668 if test "$build" = "$host"; then
5669   case $host_os in
5670   mingw* | pw32*)
5671     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5672       want_nocaseglob=yes
5673     else
5674       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5675     fi
5676     ;;
5677   esac
5678 fi
5679
5680 file_magic_cmd=$lt_cv_file_magic_cmd
5681 deplibs_check_method=$lt_cv_deplibs_check_method
5682 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705 if test -n "$ac_tool_prefix"; then
5706   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5707 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 printf %s "checking for $ac_word... " >&6; }
5710 if test ${ac_cv_prog_DLLTOOL+y}
5711 then :
5712   printf %s "(cached) " >&6
5713 else $as_nop
5714   if test -n "$DLLTOOL"; then
5715   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720   IFS=$as_save_IFS
5721   case $as_dir in #(((
5722     '') as_dir=./ ;;
5723     */) ;;
5724     *) as_dir=$as_dir/ ;;
5725   esac
5726     for ac_exec_ext in '' $ac_executable_extensions; do
5727   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5728     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5729     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5730     break 2
5731   fi
5732 done
5733   done
5734 IFS=$as_save_IFS
5735
5736 fi
5737 fi
5738 DLLTOOL=$ac_cv_prog_DLLTOOL
5739 if test -n "$DLLTOOL"; then
5740   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5741 printf "%s\n" "$DLLTOOL" >&6; }
5742 else
5743   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 printf "%s\n" "no" >&6; }
5745 fi
5746
5747
5748 fi
5749 if test -z "$ac_cv_prog_DLLTOOL"; then
5750   ac_ct_DLLTOOL=$DLLTOOL
5751   # Extract the first word of "dlltool", so it can be a program name with args.
5752 set dummy dlltool; ac_word=$2
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 printf %s "checking for $ac_word... " >&6; }
5755 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5756 then :
5757   printf %s "(cached) " >&6
5758 else $as_nop
5759   if test -n "$ac_ct_DLLTOOL"; then
5760   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765   IFS=$as_save_IFS
5766   case $as_dir in #(((
5767     '') as_dir=./ ;;
5768     */) ;;
5769     *) as_dir=$as_dir/ ;;
5770   esac
5771     for ac_exec_ext in '' $ac_executable_extensions; do
5772   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5773     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5774     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5775     break 2
5776   fi
5777 done
5778   done
5779 IFS=$as_save_IFS
5780
5781 fi
5782 fi
5783 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5784 if test -n "$ac_ct_DLLTOOL"; then
5785   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5786 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5787 else
5788   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 printf "%s\n" "no" >&6; }
5790 fi
5791
5792   if test "x$ac_ct_DLLTOOL" = x; then
5793     DLLTOOL="false"
5794   else
5795     case $cross_compiling:$ac_tool_warned in
5796 yes:)
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5800 esac
5801     DLLTOOL=$ac_ct_DLLTOOL
5802   fi
5803 else
5804   DLLTOOL="$ac_cv_prog_DLLTOOL"
5805 fi
5806
5807 test -z "$DLLTOOL" && DLLTOOL=dlltool
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5819 printf %s "checking how to associate runtime and link libraries... " >&6; }
5820 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5821 then :
5822   printf %s "(cached) " >&6
5823 else $as_nop
5824   lt_cv_sharedlib_from_linklib_cmd='unknown'
5825
5826 case $host_os in
5827 cygwin* | mingw* | pw32* | cegcc*)
5828   # two different shell functions defined in ltmain.sh;
5829   # decide which one to use based on capabilities of $DLLTOOL
5830   case `$DLLTOOL --help 2>&1` in
5831   *--identify-strict*)
5832     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5833     ;;
5834   *)
5835     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5836     ;;
5837   esac
5838   ;;
5839 *)
5840   # fallback: assume linklib IS sharedlib
5841   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5842   ;;
5843 esac
5844
5845 fi
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5847 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5848 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5849 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5850
5851
5852
5853
5854
5855
5856
5857 if test -n "$ac_tool_prefix"; then
5858   for ac_prog in ar
5859   do
5860     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 printf %s "checking for $ac_word... " >&6; }
5864 if test ${ac_cv_prog_AR+y}
5865 then :
5866   printf %s "(cached) " >&6
5867 else $as_nop
5868   if test -n "$AR"; then
5869   ac_cv_prog_AR="$AR" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   case $as_dir in #(((
5876     '') as_dir=./ ;;
5877     */) ;;
5878     *) as_dir=$as_dir/ ;;
5879   esac
5880     for ac_exec_ext in '' $ac_executable_extensions; do
5881   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5882     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5883     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5884     break 2
5885   fi
5886 done
5887   done
5888 IFS=$as_save_IFS
5889
5890 fi
5891 fi
5892 AR=$ac_cv_prog_AR
5893 if test -n "$AR"; then
5894   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5895 printf "%s\n" "$AR" >&6; }
5896 else
5897   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 printf "%s\n" "no" >&6; }
5899 fi
5900
5901
5902     test -n "$AR" && break
5903   done
5904 fi
5905 if test -z "$AR"; then
5906   ac_ct_AR=$AR
5907   for ac_prog in ar
5908 do
5909   # Extract the first word of "$ac_prog", so it can be a program name with args.
5910 set dummy $ac_prog; ac_word=$2
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912 printf %s "checking for $ac_word... " >&6; }
5913 if test ${ac_cv_prog_ac_ct_AR+y}
5914 then :
5915   printf %s "(cached) " >&6
5916 else $as_nop
5917   if test -n "$ac_ct_AR"; then
5918   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   case $as_dir in #(((
5925     '') as_dir=./ ;;
5926     */) ;;
5927     *) as_dir=$as_dir/ ;;
5928   esac
5929     for ac_exec_ext in '' $ac_executable_extensions; do
5930   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5931     ac_cv_prog_ac_ct_AR="$ac_prog"
5932     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5933     break 2
5934   fi
5935 done
5936   done
5937 IFS=$as_save_IFS
5938
5939 fi
5940 fi
5941 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5942 if test -n "$ac_ct_AR"; then
5943   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5944 printf "%s\n" "$ac_ct_AR" >&6; }
5945 else
5946   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 printf "%s\n" "no" >&6; }
5948 fi
5949
5950
5951   test -n "$ac_ct_AR" && break
5952 done
5953
5954   if test "x$ac_ct_AR" = x; then
5955     AR="false"
5956   else
5957     case $cross_compiling:$ac_tool_warned in
5958 yes:)
5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961 ac_tool_warned=yes ;;
5962 esac
5963     AR=$ac_ct_AR
5964   fi
5965 fi
5966
5967 : ${AR=ar}
5968 : ${AR_FLAGS=cr}
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5981 printf %s "checking for archiver @FILE support... " >&6; }
5982 if test ${lt_cv_ar_at_file+y}
5983 then :
5984   printf %s "(cached) " >&6
5985 else $as_nop
5986   lt_cv_ar_at_file=no
5987    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h.  */
5989
5990 int
5991 main (void)
5992 {
5993
5994   ;
5995   return 0;
5996 }
5997 _ACEOF
5998 if ac_fn_c_try_compile "$LINENO"
5999 then :
6000   echo conftest.$ac_objext > conftest.lst
6001       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6002       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6003   (eval $lt_ar_try) 2>&5
6004   ac_status=$?
6005   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6006   test $ac_status = 0; }
6007       if test 0 -eq "$ac_status"; then
6008         # Ensure the archiver fails upon bogus file names.
6009         rm -f conftest.$ac_objext libconftest.a
6010         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6011   (eval $lt_ar_try) 2>&5
6012   ac_status=$?
6013   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6014   test $ac_status = 0; }
6015         if test 0 -ne "$ac_status"; then
6016           lt_cv_ar_at_file=@
6017         fi
6018       fi
6019       rm -f conftest.* libconftest.a
6020
6021 fi
6022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6023
6024 fi
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6026 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6027
6028 if test no = "$lt_cv_ar_at_file"; then
6029   archiver_list_spec=
6030 else
6031   archiver_list_spec=$lt_cv_ar_at_file
6032 fi
6033
6034
6035
6036
6037
6038
6039
6040 if test -n "$ac_tool_prefix"; then
6041   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6042 set dummy ${ac_tool_prefix}strip; ac_word=$2
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 printf %s "checking for $ac_word... " >&6; }
6045 if test ${ac_cv_prog_STRIP+y}
6046 then :
6047   printf %s "(cached) " >&6
6048 else $as_nop
6049   if test -n "$STRIP"; then
6050   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055   IFS=$as_save_IFS
6056   case $as_dir in #(((
6057     '') as_dir=./ ;;
6058     */) ;;
6059     *) as_dir=$as_dir/ ;;
6060   esac
6061     for ac_exec_ext in '' $ac_executable_extensions; do
6062   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6063     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6064     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6065     break 2
6066   fi
6067 done
6068   done
6069 IFS=$as_save_IFS
6070
6071 fi
6072 fi
6073 STRIP=$ac_cv_prog_STRIP
6074 if test -n "$STRIP"; then
6075   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6076 printf "%s\n" "$STRIP" >&6; }
6077 else
6078   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 printf "%s\n" "no" >&6; }
6080 fi
6081
6082
6083 fi
6084 if test -z "$ac_cv_prog_STRIP"; then
6085   ac_ct_STRIP=$STRIP
6086   # Extract the first word of "strip", so it can be a program name with args.
6087 set dummy strip; ac_word=$2
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 printf %s "checking for $ac_word... " >&6; }
6090 if test ${ac_cv_prog_ac_ct_STRIP+y}
6091 then :
6092   printf %s "(cached) " >&6
6093 else $as_nop
6094   if test -n "$ac_ct_STRIP"; then
6095   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   case $as_dir in #(((
6102     '') as_dir=./ ;;
6103     */) ;;
6104     *) as_dir=$as_dir/ ;;
6105   esac
6106     for ac_exec_ext in '' $ac_executable_extensions; do
6107   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6108     ac_cv_prog_ac_ct_STRIP="strip"
6109     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6110     break 2
6111   fi
6112 done
6113   done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6119 if test -n "$ac_ct_STRIP"; then
6120   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6121 printf "%s\n" "$ac_ct_STRIP" >&6; }
6122 else
6123   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 printf "%s\n" "no" >&6; }
6125 fi
6126
6127   if test "x$ac_ct_STRIP" = x; then
6128     STRIP=":"
6129   else
6130     case $cross_compiling:$ac_tool_warned in
6131 yes:)
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6133 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6134 ac_tool_warned=yes ;;
6135 esac
6136     STRIP=$ac_ct_STRIP
6137   fi
6138 else
6139   STRIP="$ac_cv_prog_STRIP"
6140 fi
6141
6142 test -z "$STRIP" && STRIP=:
6143
6144
6145
6146
6147
6148
6149 if test -n "$ac_tool_prefix"; then
6150   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6151 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153 printf %s "checking for $ac_word... " >&6; }
6154 if test ${ac_cv_prog_RANLIB+y}
6155 then :
6156   printf %s "(cached) " >&6
6157 else $as_nop
6158   if test -n "$RANLIB"; then
6159   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
6165   case $as_dir in #(((
6166     '') as_dir=./ ;;
6167     */) ;;
6168     *) as_dir=$as_dir/ ;;
6169   esac
6170     for ac_exec_ext in '' $ac_executable_extensions; do
6171   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6172     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6173     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6174     break 2
6175   fi
6176 done
6177   done
6178 IFS=$as_save_IFS
6179
6180 fi
6181 fi
6182 RANLIB=$ac_cv_prog_RANLIB
6183 if test -n "$RANLIB"; then
6184   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6185 printf "%s\n" "$RANLIB" >&6; }
6186 else
6187   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 printf "%s\n" "no" >&6; }
6189 fi
6190
6191
6192 fi
6193 if test -z "$ac_cv_prog_RANLIB"; then
6194   ac_ct_RANLIB=$RANLIB
6195   # Extract the first word of "ranlib", so it can be a program name with args.
6196 set dummy ranlib; ac_word=$2
6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 printf %s "checking for $ac_word... " >&6; }
6199 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6200 then :
6201   printf %s "(cached) " >&6
6202 else $as_nop
6203   if test -n "$ac_ct_RANLIB"; then
6204   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209   IFS=$as_save_IFS
6210   case $as_dir in #(((
6211     '') as_dir=./ ;;
6212     */) ;;
6213     *) as_dir=$as_dir/ ;;
6214   esac
6215     for ac_exec_ext in '' $ac_executable_extensions; do
6216   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6217     ac_cv_prog_ac_ct_RANLIB="ranlib"
6218     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6219     break 2
6220   fi
6221 done
6222   done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6228 if test -n "$ac_ct_RANLIB"; then
6229   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6230 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6231 else
6232   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 printf "%s\n" "no" >&6; }
6234 fi
6235
6236   if test "x$ac_ct_RANLIB" = x; then
6237     RANLIB=":"
6238   else
6239     case $cross_compiling:$ac_tool_warned in
6240 yes:)
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6242 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6243 ac_tool_warned=yes ;;
6244 esac
6245     RANLIB=$ac_ct_RANLIB
6246   fi
6247 else
6248   RANLIB="$ac_cv_prog_RANLIB"
6249 fi
6250
6251 test -z "$RANLIB" && RANLIB=:
6252
6253
6254
6255
6256
6257
6258 # Determine commands to create old-style static archives.
6259 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6260 old_postinstall_cmds='chmod 644 $oldlib'
6261 old_postuninstall_cmds=
6262
6263 if test -n "$RANLIB"; then
6264   case $host_os in
6265   bitrig* | openbsd*)
6266     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6267     ;;
6268   *)
6269     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6270     ;;
6271   esac
6272   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6273 fi
6274
6275 case $host_os in
6276   darwin*)
6277     lock_old_archive_extraction=yes ;;
6278   *)
6279     lock_old_archive_extraction=no ;;
6280 esac
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 for ac_prog in gawk mawk nawk awk
6303 do
6304   # Extract the first word of "$ac_prog", so it can be a program name with args.
6305 set dummy $ac_prog; ac_word=$2
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 printf %s "checking for $ac_word... " >&6; }
6308 if test ${ac_cv_prog_AWK+y}
6309 then :
6310   printf %s "(cached) " >&6
6311 else $as_nop
6312   if test -n "$AWK"; then
6313   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318   IFS=$as_save_IFS
6319   case $as_dir in #(((
6320     '') as_dir=./ ;;
6321     */) ;;
6322     *) as_dir=$as_dir/ ;;
6323   esac
6324     for ac_exec_ext in '' $ac_executable_extensions; do
6325   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6326     ac_cv_prog_AWK="$ac_prog"
6327     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6328     break 2
6329   fi
6330 done
6331   done
6332 IFS=$as_save_IFS
6333
6334 fi
6335 fi
6336 AWK=$ac_cv_prog_AWK
6337 if test -n "$AWK"; then
6338   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6339 printf "%s\n" "$AWK" >&6; }
6340 else
6341   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 printf "%s\n" "no" >&6; }
6343 fi
6344
6345
6346   test -n "$AWK" && break
6347 done
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367 # If no C compiler was specified, use CC.
6368 LTCC=${LTCC-"$CC"}
6369
6370 # If no C compiler flags were specified, use CFLAGS.
6371 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6372
6373 # Allow CC to be a program name with arguments.
6374 compiler=$CC
6375
6376
6377 # Check for command to grab the raw symbol name followed by C symbol from nm.
6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6379 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6380 if test ${lt_cv_sys_global_symbol_pipe+y}
6381 then :
6382   printf %s "(cached) " >&6
6383 else $as_nop
6384
6385 # These are sane defaults that work on at least a few old systems.
6386 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6387
6388 # Character class describing NM global symbol codes.
6389 symcode='[BCDEGRST]'
6390
6391 # Regexp to match symbols that can be accessed directly from C.
6392 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6393
6394 # Define system-specific variables.
6395 case $host_os in
6396 aix*)
6397   symcode='[BCDT]'
6398   ;;
6399 cygwin* | mingw* | pw32* | cegcc*)
6400   symcode='[ABCDGISTW]'
6401   ;;
6402 hpux*)
6403   if test ia64 = "$host_cpu"; then
6404     symcode='[ABCDEGRST]'
6405   fi
6406   ;;
6407 irix* | nonstopux*)
6408   symcode='[BCDEGRST]'
6409   ;;
6410 osf*)
6411   symcode='[BCDEGQRST]'
6412   ;;
6413 solaris*)
6414   symcode='[BDRT]'
6415   ;;
6416 sco3.2v5*)
6417   symcode='[DT]'
6418   ;;
6419 sysv4.2uw2*)
6420   symcode='[DT]'
6421   ;;
6422 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6423   symcode='[ABDT]'
6424   ;;
6425 sysv4)
6426   symcode='[DFNSTU]'
6427   ;;
6428 esac
6429
6430 # If we're using GNU nm, then use its standard symbol codes.
6431 case `$NM -V 2>&1` in
6432 *GNU* | *'with BFD'*)
6433   symcode='[ABCDGIRSTW]' ;;
6434 esac
6435
6436 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6437   # Gets list of data symbols to import.
6438   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6439   # Adjust the below global symbol transforms to fixup imported variables.
6440   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6441   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6442   lt_c_name_lib_hook="\
6443   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6444   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6445 else
6446   # Disable hooks by default.
6447   lt_cv_sys_global_symbol_to_import=
6448   lt_cdecl_hook=
6449   lt_c_name_hook=
6450   lt_c_name_lib_hook=
6451 fi
6452
6453 # Transform an extracted symbol line into a proper C declaration.
6454 # Some systems (esp. on ia64) link data and code symbols differently,
6455 # so use this general approach.
6456 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6457 $lt_cdecl_hook\
6458 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6459 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6460
6461 # Transform an extracted symbol line into symbol name and symbol address
6462 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6463 $lt_c_name_hook\
6464 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6465 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6466
6467 # Transform an extracted symbol line into symbol name with lib prefix and
6468 # symbol address.
6469 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6470 $lt_c_name_lib_hook\
6471 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6472 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6473 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6474
6475 # Handle CRLF in mingw tool chain
6476 opt_cr=
6477 case $build_os in
6478 mingw*)
6479   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6480   ;;
6481 esac
6482
6483 # Try without a prefix underscore, then with it.
6484 for ac_symprfx in "" "_"; do
6485
6486   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6487   symxfrm="\\1 $ac_symprfx\\2 \\2"
6488
6489   # Write the raw and C identifiers.
6490   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6491     # Fake it for dumpbin and say T for any non-static function,
6492     # D for any global variable and I for any imported variable.
6493     # Also find C++ and __fastcall symbols from MSVC++,
6494     # which start with @ or ?.
6495     lt_cv_sys_global_symbol_pipe="$AWK '"\
6496 "     {last_section=section; section=\$ 3};"\
6497 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6498 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6499 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6500 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6501 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6502 "     \$ 0!~/External *\|/{next};"\
6503 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6504 "     {if(hide[section]) next};"\
6505 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6506 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6507 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6508 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6509 "     ' prfx=^$ac_symprfx"
6510   else
6511     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6512   fi
6513   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6514
6515   # Check to see that the pipe works correctly.
6516   pipe_works=no
6517
6518   rm -f conftest*
6519   cat > conftest.$ac_ext <<_LT_EOF
6520 #ifdef __cplusplus
6521 extern "C" {
6522 #endif
6523 char nm_test_var;
6524 void nm_test_func(void);
6525 void nm_test_func(void){}
6526 #ifdef __cplusplus
6527 }
6528 #endif
6529 int main(){nm_test_var='a';nm_test_func();return(0);}
6530 _LT_EOF
6531
6532   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6533   (eval $ac_compile) 2>&5
6534   ac_status=$?
6535   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6536   test $ac_status = 0; }; then
6537     # Now try to grab the symbols.
6538     nlist=conftest.nm
6539     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6540     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6541       # Try sorting and uniquifying the output.
6542       if sort "$nlist" | uniq > "$nlist"T; then
6543         mv -f "$nlist"T "$nlist"
6544       else
6545         rm -f "$nlist"T
6546       fi
6547
6548       # Make sure that we snagged all the symbols we need.
6549       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6550         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6551           cat <<_LT_EOF > conftest.$ac_ext
6552 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6553 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6554 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6555    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6556 # define LT_DLSYM_CONST
6557 #elif defined __osf__
6558 /* This system does not cope well with relocations in const data.  */
6559 # define LT_DLSYM_CONST
6560 #else
6561 # define LT_DLSYM_CONST const
6562 #endif
6563
6564 #ifdef __cplusplus
6565 extern "C" {
6566 #endif
6567
6568 _LT_EOF
6569           # Now generate the symbol file.
6570           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6571
6572           cat <<_LT_EOF >> conftest.$ac_ext
6573
6574 /* The mapping between symbol names and symbols.  */
6575 LT_DLSYM_CONST struct {
6576   const char *name;
6577   void       *address;
6578 }
6579 lt__PROGRAM__LTX_preloaded_symbols[] =
6580 {
6581   { "@PROGRAM@", (void *) 0 },
6582 _LT_EOF
6583           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6584           cat <<\_LT_EOF >> conftest.$ac_ext
6585   {0, (void *) 0}
6586 };
6587
6588 /* This works around a problem in FreeBSD linker */
6589 #ifdef FREEBSD_WORKAROUND
6590 static const void *lt_preloaded_setup() {
6591   return lt__PROGRAM__LTX_preloaded_symbols;
6592 }
6593 #endif
6594
6595 #ifdef __cplusplus
6596 }
6597 #endif
6598 _LT_EOF
6599           # Now try linking the two files.
6600           mv conftest.$ac_objext conftstm.$ac_objext
6601           lt_globsym_save_LIBS=$LIBS
6602           lt_globsym_save_CFLAGS=$CFLAGS
6603           LIBS=conftstm.$ac_objext
6604           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6605           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6606   (eval $ac_link) 2>&5
6607   ac_status=$?
6608   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6610             pipe_works=yes
6611           fi
6612           LIBS=$lt_globsym_save_LIBS
6613           CFLAGS=$lt_globsym_save_CFLAGS
6614         else
6615           echo "cannot find nm_test_func in $nlist" >&5
6616         fi
6617       else
6618         echo "cannot find nm_test_var in $nlist" >&5
6619       fi
6620     else
6621       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6622     fi
6623   else
6624     echo "$progname: failed program was:" >&5
6625     cat conftest.$ac_ext >&5
6626   fi
6627   rm -rf conftest* conftst*
6628
6629   # Do not use the global_symbol_pipe unless it works.
6630   if test yes = "$pipe_works"; then
6631     break
6632   else
6633     lt_cv_sys_global_symbol_pipe=
6634   fi
6635 done
6636
6637 fi
6638
6639 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6640   lt_cv_sys_global_symbol_to_cdecl=
6641 fi
6642 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6643   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6644 printf "%s\n" "failed" >&6; }
6645 else
6646   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6647 printf "%s\n" "ok" >&6; }
6648 fi
6649
6650 # Response file support.
6651 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6652   nm_file_list_spec='@'
6653 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6654   nm_file_list_spec='@'
6655 fi
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6694 printf %s "checking for sysroot... " >&6; }
6695
6696 # Check whether --with-sysroot was given.
6697 if test ${with_sysroot+y}
6698 then :
6699   withval=$with_sysroot;
6700 else $as_nop
6701   with_sysroot=no
6702 fi
6703
6704
6705 lt_sysroot=
6706 case $with_sysroot in #(
6707  yes)
6708    if test yes = "$GCC"; then
6709      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6710    fi
6711    ;; #(
6712  /*)
6713    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6714    ;; #(
6715  no|'')
6716    ;; #(
6717  *)
6718    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6719 printf "%s\n" "$with_sysroot" >&6; }
6720    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6721    ;;
6722 esac
6723
6724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6725 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6726
6727
6728
6729
6730
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6732 printf %s "checking for a working dd... " >&6; }
6733 if test ${ac_cv_path_lt_DD+y}
6734 then :
6735   printf %s "(cached) " >&6
6736 else $as_nop
6737   printf 0123456789abcdef0123456789abcdef >conftest.i
6738 cat conftest.i conftest.i >conftest2.i
6739 : ${lt_DD:=$DD}
6740 if test -z "$lt_DD"; then
6741   ac_path_lt_DD_found=false
6742   # Loop through the user's path and test for each of PROGNAME-LIST
6743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746   IFS=$as_save_IFS
6747   case $as_dir in #(((
6748     '') as_dir=./ ;;
6749     */) ;;
6750     *) as_dir=$as_dir/ ;;
6751   esac
6752     for ac_prog in dd
6753    do
6754     for ac_exec_ext in '' $ac_executable_extensions; do
6755       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6756       as_fn_executable_p "$ac_path_lt_DD" || continue
6757 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6758   cmp -s conftest.i conftest.out \
6759   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6760 fi
6761       $ac_path_lt_DD_found && break 3
6762     done
6763   done
6764   done
6765 IFS=$as_save_IFS
6766   if test -z "$ac_cv_path_lt_DD"; then
6767     :
6768   fi
6769 else
6770   ac_cv_path_lt_DD=$lt_DD
6771 fi
6772
6773 rm -f conftest.i conftest2.i conftest.out
6774 fi
6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6776 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6777
6778
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6780 printf %s "checking how to truncate binary pipes... " >&6; }
6781 if test ${lt_cv_truncate_bin+y}
6782 then :
6783   printf %s "(cached) " >&6
6784 else $as_nop
6785   printf 0123456789abcdef0123456789abcdef >conftest.i
6786 cat conftest.i conftest.i >conftest2.i
6787 lt_cv_truncate_bin=
6788 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6789   cmp -s conftest.i conftest.out \
6790   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6791 fi
6792 rm -f conftest.i conftest2.i conftest.out
6793 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6794 fi
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6796 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6797
6798
6799
6800
6801
6802
6803
6804 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6805 func_cc_basename ()
6806 {
6807     for cc_temp in $*""; do
6808       case $cc_temp in
6809         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6810         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6811         \-*) ;;
6812         *) break;;
6813       esac
6814     done
6815     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6816 }
6817
6818 # Check whether --enable-libtool-lock was given.
6819 if test ${enable_libtool_lock+y}
6820 then :
6821   enableval=$enable_libtool_lock;
6822 fi
6823
6824 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6825
6826 # Some flags need to be propagated to the compiler or linker for good
6827 # libtool support.
6828 case $host in
6829 ia64-*-hpux*)
6830   # Find out what ABI is being produced by ac_compile, and set mode
6831   # options accordingly.
6832   echo 'int i;' > conftest.$ac_ext
6833   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6834   (eval $ac_compile) 2>&5
6835   ac_status=$?
6836   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6837   test $ac_status = 0; }; then
6838     case `/usr/bin/file conftest.$ac_objext` in
6839       *ELF-32*)
6840         HPUX_IA64_MODE=32
6841         ;;
6842       *ELF-64*)
6843         HPUX_IA64_MODE=64
6844         ;;
6845     esac
6846   fi
6847   rm -rf conftest*
6848   ;;
6849 *-*-irix6*)
6850   # Find out what ABI is being produced by ac_compile, and set linker
6851   # options accordingly.
6852   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6853   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6854   (eval $ac_compile) 2>&5
6855   ac_status=$?
6856   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6857   test $ac_status = 0; }; then
6858     if test yes = "$lt_cv_prog_gnu_ld"; then
6859       case `/usr/bin/file conftest.$ac_objext` in
6860         *32-bit*)
6861           LD="${LD-ld} -melf32bsmip"
6862           ;;
6863         *N32*)
6864           LD="${LD-ld} -melf32bmipn32"
6865           ;;
6866         *64-bit*)
6867           LD="${LD-ld} -melf64bmip"
6868         ;;
6869       esac
6870     else
6871       case `/usr/bin/file conftest.$ac_objext` in
6872         *32-bit*)
6873           LD="${LD-ld} -32"
6874           ;;
6875         *N32*)
6876           LD="${LD-ld} -n32"
6877           ;;
6878         *64-bit*)
6879           LD="${LD-ld} -64"
6880           ;;
6881       esac
6882     fi
6883   fi
6884   rm -rf conftest*
6885   ;;
6886
6887 mips64*-*linux*)
6888   # Find out what ABI is being produced by ac_compile, and set linker
6889   # options accordingly.
6890   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6891   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6892   (eval $ac_compile) 2>&5
6893   ac_status=$?
6894   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895   test $ac_status = 0; }; then
6896     emul=elf
6897     case `/usr/bin/file conftest.$ac_objext` in
6898       *32-bit*)
6899         emul="${emul}32"
6900         ;;
6901       *64-bit*)
6902         emul="${emul}64"
6903         ;;
6904     esac
6905     case `/usr/bin/file conftest.$ac_objext` in
6906       *MSB*)
6907         emul="${emul}btsmip"
6908         ;;
6909       *LSB*)
6910         emul="${emul}ltsmip"
6911         ;;
6912     esac
6913     case `/usr/bin/file conftest.$ac_objext` in
6914       *N32*)
6915         emul="${emul}n32"
6916         ;;
6917     esac
6918     LD="${LD-ld} -m $emul"
6919   fi
6920   rm -rf conftest*
6921   ;;
6922
6923 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6924 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6925   # Find out what ABI is being produced by ac_compile, and set linker
6926   # options accordingly.  Note that the listed cases only cover the
6927   # situations where additional linker options are needed (such as when
6928   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6929   # vice versa); the common cases where no linker options are needed do
6930   # not appear in the list.
6931   echo 'int i;' > conftest.$ac_ext
6932   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6933   (eval $ac_compile) 2>&5
6934   ac_status=$?
6935   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6936   test $ac_status = 0; }; then
6937     case `/usr/bin/file conftest.o` in
6938       *32-bit*)
6939         case $host in
6940           x86_64-*kfreebsd*-gnu)
6941             LD="${LD-ld} -m elf_i386_fbsd"
6942             ;;
6943           x86_64-*linux*)
6944             case `/usr/bin/file conftest.o` in
6945               *x86-64*)
6946                 LD="${LD-ld} -m elf32_x86_64"
6947                 ;;
6948               *)
6949                 LD="${LD-ld} -m elf_i386"
6950                 ;;
6951             esac
6952             ;;
6953           powerpc64le-*linux*)
6954             LD="${LD-ld} -m elf32lppclinux"
6955             ;;
6956           powerpc64-*linux*)
6957             LD="${LD-ld} -m elf32ppclinux"
6958             ;;
6959           s390x-*linux*)
6960             LD="${LD-ld} -m elf_s390"
6961             ;;
6962           sparc64-*linux*)
6963             LD="${LD-ld} -m elf32_sparc"
6964             ;;
6965         esac
6966         ;;
6967       *64-bit*)
6968         case $host in
6969           x86_64-*kfreebsd*-gnu)
6970             LD="${LD-ld} -m elf_x86_64_fbsd"
6971             ;;
6972           x86_64-*linux*)
6973             LD="${LD-ld} -m elf_x86_64"
6974             ;;
6975           powerpcle-*linux*)
6976             LD="${LD-ld} -m elf64lppc"
6977             ;;
6978           powerpc-*linux*)
6979             LD="${LD-ld} -m elf64ppc"
6980             ;;
6981           s390*-*linux*|s390*-*tpf*)
6982             LD="${LD-ld} -m elf64_s390"
6983             ;;
6984           sparc*-*linux*)
6985             LD="${LD-ld} -m elf64_sparc"
6986             ;;
6987         esac
6988         ;;
6989     esac
6990   fi
6991   rm -rf conftest*
6992   ;;
6993
6994 *-*-sco3.2v5*)
6995   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6996   SAVE_CFLAGS=$CFLAGS
6997   CFLAGS="$CFLAGS -belf"
6998   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6999 printf %s "checking whether the C compiler needs -belf... " >&6; }
7000 if test ${lt_cv_cc_needs_belf+y}
7001 then :
7002   printf %s "(cached) " >&6
7003 else $as_nop
7004   ac_ext=c
7005 ac_cpp='$CPP $CPPFLAGS'
7006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7009
7010      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h.  */
7012
7013 int
7014 main (void)
7015 {
7016
7017   ;
7018   return 0;
7019 }
7020 _ACEOF
7021 if ac_fn_c_try_link "$LINENO"
7022 then :
7023   lt_cv_cc_needs_belf=yes
7024 else $as_nop
7025   lt_cv_cc_needs_belf=no
7026 fi
7027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7028     conftest$ac_exeext conftest.$ac_ext
7029      ac_ext=c
7030 ac_cpp='$CPP $CPPFLAGS'
7031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7034
7035 fi
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7037 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7038   if test yes != "$lt_cv_cc_needs_belf"; then
7039     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7040     CFLAGS=$SAVE_CFLAGS
7041   fi
7042   ;;
7043 *-*solaris*)
7044   # Find out what ABI is being produced by ac_compile, and set linker
7045   # options accordingly.
7046   echo 'int i;' > conftest.$ac_ext
7047   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7048   (eval $ac_compile) 2>&5
7049   ac_status=$?
7050   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051   test $ac_status = 0; }; then
7052     case `/usr/bin/file conftest.o` in
7053     *64-bit*)
7054       case $lt_cv_prog_gnu_ld in
7055       yes*)
7056         case $host in
7057         i?86-*-solaris*|x86_64-*-solaris*)
7058           LD="${LD-ld} -m elf_x86_64"
7059           ;;
7060         sparc*-*-solaris*)
7061           LD="${LD-ld} -m elf64_sparc"
7062           ;;
7063         esac
7064         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7065         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7066           LD=${LD-ld}_sol2
7067         fi
7068         ;;
7069       *)
7070         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7071           LD="${LD-ld} -64"
7072         fi
7073         ;;
7074       esac
7075       ;;
7076     esac
7077   fi
7078   rm -rf conftest*
7079   ;;
7080 esac
7081
7082 need_locks=$enable_libtool_lock
7083
7084 if test -n "$ac_tool_prefix"; then
7085   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}mt; ac_word=$2
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088 printf %s "checking for $ac_word... " >&6; }
7089 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7090 then :
7091   printf %s "(cached) " >&6
7092 else $as_nop
7093   if test -n "$MANIFEST_TOOL"; then
7094   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099   IFS=$as_save_IFS
7100   case $as_dir in #(((
7101     '') as_dir=./ ;;
7102     */) ;;
7103     *) as_dir=$as_dir/ ;;
7104   esac
7105     for ac_exec_ext in '' $ac_executable_extensions; do
7106   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7107     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7108     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7109     break 2
7110   fi
7111 done
7112   done
7113 IFS=$as_save_IFS
7114
7115 fi
7116 fi
7117 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7118 if test -n "$MANIFEST_TOOL"; then
7119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7120 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7121 else
7122   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 printf "%s\n" "no" >&6; }
7124 fi
7125
7126
7127 fi
7128 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7129   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7130   # Extract the first word of "mt", so it can be a program name with args.
7131 set dummy mt; ac_word=$2
7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 printf %s "checking for $ac_word... " >&6; }
7134 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7135 then :
7136   printf %s "(cached) " >&6
7137 else $as_nop
7138   if test -n "$ac_ct_MANIFEST_TOOL"; then
7139   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144   IFS=$as_save_IFS
7145   case $as_dir in #(((
7146     '') as_dir=./ ;;
7147     */) ;;
7148     *) as_dir=$as_dir/ ;;
7149   esac
7150     for ac_exec_ext in '' $ac_executable_extensions; do
7151   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7152     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7153     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7154     break 2
7155   fi
7156 done
7157   done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7163 if test -n "$ac_ct_MANIFEST_TOOL"; then
7164   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7165 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7166 else
7167   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 printf "%s\n" "no" >&6; }
7169 fi
7170
7171   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7172     MANIFEST_TOOL=":"
7173   else
7174     case $cross_compiling:$ac_tool_warned in
7175 yes:)
7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7179 esac
7180     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7181   fi
7182 else
7183   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7184 fi
7185
7186 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7188 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7189 if test ${lt_cv_path_mainfest_tool+y}
7190 then :
7191   printf %s "(cached) " >&6
7192 else $as_nop
7193   lt_cv_path_mainfest_tool=no
7194   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7195   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7196   cat conftest.err >&5
7197   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7198     lt_cv_path_mainfest_tool=yes
7199   fi
7200   rm -f conftest*
7201 fi
7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7203 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7204 if test yes != "$lt_cv_path_mainfest_tool"; then
7205   MANIFEST_TOOL=:
7206 fi
7207
7208
7209
7210
7211
7212
7213   case $host_os in
7214     rhapsody* | darwin*)
7215     if test -n "$ac_tool_prefix"; then
7216   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7217 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219 printf %s "checking for $ac_word... " >&6; }
7220 if test ${ac_cv_prog_DSYMUTIL+y}
7221 then :
7222   printf %s "(cached) " >&6
7223 else $as_nop
7224   if test -n "$DSYMUTIL"; then
7225   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   case $as_dir in #(((
7232     '') as_dir=./ ;;
7233     */) ;;
7234     *) as_dir=$as_dir/ ;;
7235   esac
7236     for ac_exec_ext in '' $ac_executable_extensions; do
7237   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7238     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7239     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7240     break 2
7241   fi
7242 done
7243   done
7244 IFS=$as_save_IFS
7245
7246 fi
7247 fi
7248 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7249 if test -n "$DSYMUTIL"; then
7250   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7251 printf "%s\n" "$DSYMUTIL" >&6; }
7252 else
7253   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 printf "%s\n" "no" >&6; }
7255 fi
7256
7257
7258 fi
7259 if test -z "$ac_cv_prog_DSYMUTIL"; then
7260   ac_ct_DSYMUTIL=$DSYMUTIL
7261   # Extract the first word of "dsymutil", so it can be a program name with args.
7262 set dummy dsymutil; ac_word=$2
7263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 printf %s "checking for $ac_word... " >&6; }
7265 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7266 then :
7267   printf %s "(cached) " >&6
7268 else $as_nop
7269   if test -n "$ac_ct_DSYMUTIL"; then
7270   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   case $as_dir in #(((
7277     '') as_dir=./ ;;
7278     */) ;;
7279     *) as_dir=$as_dir/ ;;
7280   esac
7281     for ac_exec_ext in '' $ac_executable_extensions; do
7282   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7283     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7284     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7285     break 2
7286   fi
7287 done
7288   done
7289 IFS=$as_save_IFS
7290
7291 fi
7292 fi
7293 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7294 if test -n "$ac_ct_DSYMUTIL"; then
7295   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7296 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7297 else
7298   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 printf "%s\n" "no" >&6; }
7300 fi
7301
7302   if test "x$ac_ct_DSYMUTIL" = x; then
7303     DSYMUTIL=":"
7304   else
7305     case $cross_compiling:$ac_tool_warned in
7306 yes:)
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7308 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7309 ac_tool_warned=yes ;;
7310 esac
7311     DSYMUTIL=$ac_ct_DSYMUTIL
7312   fi
7313 else
7314   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7315 fi
7316
7317     if test -n "$ac_tool_prefix"; then
7318   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7319 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 printf %s "checking for $ac_word... " >&6; }
7322 if test ${ac_cv_prog_NMEDIT+y}
7323 then :
7324   printf %s "(cached) " >&6
7325 else $as_nop
7326   if test -n "$NMEDIT"; then
7327   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7328 else
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 for as_dir in $PATH
7331 do
7332   IFS=$as_save_IFS
7333   case $as_dir in #(((
7334     '') as_dir=./ ;;
7335     */) ;;
7336     *) as_dir=$as_dir/ ;;
7337   esac
7338     for ac_exec_ext in '' $ac_executable_extensions; do
7339   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7340     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7341     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7342     break 2
7343   fi
7344 done
7345   done
7346 IFS=$as_save_IFS
7347
7348 fi
7349 fi
7350 NMEDIT=$ac_cv_prog_NMEDIT
7351 if test -n "$NMEDIT"; then
7352   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7353 printf "%s\n" "$NMEDIT" >&6; }
7354 else
7355   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 printf "%s\n" "no" >&6; }
7357 fi
7358
7359
7360 fi
7361 if test -z "$ac_cv_prog_NMEDIT"; then
7362   ac_ct_NMEDIT=$NMEDIT
7363   # Extract the first word of "nmedit", so it can be a program name with args.
7364 set dummy nmedit; ac_word=$2
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 printf %s "checking for $ac_word... " >&6; }
7367 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7368 then :
7369   printf %s "(cached) " >&6
7370 else $as_nop
7371   if test -n "$ac_ct_NMEDIT"; then
7372   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   case $as_dir in #(((
7379     '') as_dir=./ ;;
7380     */) ;;
7381     *) as_dir=$as_dir/ ;;
7382   esac
7383     for ac_exec_ext in '' $ac_executable_extensions; do
7384   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7385     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7386     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7387     break 2
7388   fi
7389 done
7390   done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
7395 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7396 if test -n "$ac_ct_NMEDIT"; then
7397   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7398 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7399 else
7400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 printf "%s\n" "no" >&6; }
7402 fi
7403
7404   if test "x$ac_ct_NMEDIT" = x; then
7405     NMEDIT=":"
7406   else
7407     case $cross_compiling:$ac_tool_warned in
7408 yes:)
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411 ac_tool_warned=yes ;;
7412 esac
7413     NMEDIT=$ac_ct_NMEDIT
7414   fi
7415 else
7416   NMEDIT="$ac_cv_prog_NMEDIT"
7417 fi
7418
7419     if test -n "$ac_tool_prefix"; then
7420   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7421 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 printf %s "checking for $ac_word... " >&6; }
7424 if test ${ac_cv_prog_LIPO+y}
7425 then :
7426   printf %s "(cached) " >&6
7427 else $as_nop
7428   if test -n "$LIPO"; then
7429   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7430 else
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7433 do
7434   IFS=$as_save_IFS
7435   case $as_dir in #(((
7436     '') as_dir=./ ;;
7437     */) ;;
7438     *) as_dir=$as_dir/ ;;
7439   esac
7440     for ac_exec_ext in '' $ac_executable_extensions; do
7441   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7442     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7443     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7444     break 2
7445   fi
7446 done
7447   done
7448 IFS=$as_save_IFS
7449
7450 fi
7451 fi
7452 LIPO=$ac_cv_prog_LIPO
7453 if test -n "$LIPO"; then
7454   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7455 printf "%s\n" "$LIPO" >&6; }
7456 else
7457   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 printf "%s\n" "no" >&6; }
7459 fi
7460
7461
7462 fi
7463 if test -z "$ac_cv_prog_LIPO"; then
7464   ac_ct_LIPO=$LIPO
7465   # Extract the first word of "lipo", so it can be a program name with args.
7466 set dummy lipo; ac_word=$2
7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 printf %s "checking for $ac_word... " >&6; }
7469 if test ${ac_cv_prog_ac_ct_LIPO+y}
7470 then :
7471   printf %s "(cached) " >&6
7472 else $as_nop
7473   if test -n "$ac_ct_LIPO"; then
7474   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7478 do
7479   IFS=$as_save_IFS
7480   case $as_dir in #(((
7481     '') as_dir=./ ;;
7482     */) ;;
7483     *) as_dir=$as_dir/ ;;
7484   esac
7485     for ac_exec_ext in '' $ac_executable_extensions; do
7486   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7487     ac_cv_prog_ac_ct_LIPO="lipo"
7488     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7489     break 2
7490   fi
7491 done
7492   done
7493 IFS=$as_save_IFS
7494
7495 fi
7496 fi
7497 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7498 if test -n "$ac_ct_LIPO"; then
7499   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7500 printf "%s\n" "$ac_ct_LIPO" >&6; }
7501 else
7502   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 printf "%s\n" "no" >&6; }
7504 fi
7505
7506   if test "x$ac_ct_LIPO" = x; then
7507     LIPO=":"
7508   else
7509     case $cross_compiling:$ac_tool_warned in
7510 yes:)
7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7512 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7513 ac_tool_warned=yes ;;
7514 esac
7515     LIPO=$ac_ct_LIPO
7516   fi
7517 else
7518   LIPO="$ac_cv_prog_LIPO"
7519 fi
7520
7521     if test -n "$ac_tool_prefix"; then
7522   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7523 set dummy ${ac_tool_prefix}otool; ac_word=$2
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525 printf %s "checking for $ac_word... " >&6; }
7526 if test ${ac_cv_prog_OTOOL+y}
7527 then :
7528   printf %s "(cached) " >&6
7529 else $as_nop
7530   if test -n "$OTOOL"; then
7531   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7532 else
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 for as_dir in $PATH
7535 do
7536   IFS=$as_save_IFS
7537   case $as_dir in #(((
7538     '') as_dir=./ ;;
7539     */) ;;
7540     *) as_dir=$as_dir/ ;;
7541   esac
7542     for ac_exec_ext in '' $ac_executable_extensions; do
7543   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7544     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7545     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7546     break 2
7547   fi
7548 done
7549   done
7550 IFS=$as_save_IFS
7551
7552 fi
7553 fi
7554 OTOOL=$ac_cv_prog_OTOOL
7555 if test -n "$OTOOL"; then
7556   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7557 printf "%s\n" "$OTOOL" >&6; }
7558 else
7559   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 printf "%s\n" "no" >&6; }
7561 fi
7562
7563
7564 fi
7565 if test -z "$ac_cv_prog_OTOOL"; then
7566   ac_ct_OTOOL=$OTOOL
7567   # Extract the first word of "otool", so it can be a program name with args.
7568 set dummy otool; ac_word=$2
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 printf %s "checking for $ac_word... " >&6; }
7571 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7572 then :
7573   printf %s "(cached) " >&6
7574 else $as_nop
7575   if test -n "$ac_ct_OTOOL"; then
7576   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581   IFS=$as_save_IFS
7582   case $as_dir in #(((
7583     '') as_dir=./ ;;
7584     */) ;;
7585     *) as_dir=$as_dir/ ;;
7586   esac
7587     for ac_exec_ext in '' $ac_executable_extensions; do
7588   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7589     ac_cv_prog_ac_ct_OTOOL="otool"
7590     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7591     break 2
7592   fi
7593 done
7594   done
7595 IFS=$as_save_IFS
7596
7597 fi
7598 fi
7599 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7600 if test -n "$ac_ct_OTOOL"; then
7601   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7602 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7603 else
7604   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 printf "%s\n" "no" >&6; }
7606 fi
7607
7608   if test "x$ac_ct_OTOOL" = x; then
7609     OTOOL=":"
7610   else
7611     case $cross_compiling:$ac_tool_warned in
7612 yes:)
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7614 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7615 ac_tool_warned=yes ;;
7616 esac
7617     OTOOL=$ac_ct_OTOOL
7618   fi
7619 else
7620   OTOOL="$ac_cv_prog_OTOOL"
7621 fi
7622
7623     if test -n "$ac_tool_prefix"; then
7624   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7625 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 printf %s "checking for $ac_word... " >&6; }
7628 if test ${ac_cv_prog_OTOOL64+y}
7629 then :
7630   printf %s "(cached) " >&6
7631 else $as_nop
7632   if test -n "$OTOOL64"; then
7633   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   case $as_dir in #(((
7640     '') as_dir=./ ;;
7641     */) ;;
7642     *) as_dir=$as_dir/ ;;
7643   esac
7644     for ac_exec_ext in '' $ac_executable_extensions; do
7645   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7646     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7647     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7648     break 2
7649   fi
7650 done
7651   done
7652 IFS=$as_save_IFS
7653
7654 fi
7655 fi
7656 OTOOL64=$ac_cv_prog_OTOOL64
7657 if test -n "$OTOOL64"; then
7658   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7659 printf "%s\n" "$OTOOL64" >&6; }
7660 else
7661   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 printf "%s\n" "no" >&6; }
7663 fi
7664
7665
7666 fi
7667 if test -z "$ac_cv_prog_OTOOL64"; then
7668   ac_ct_OTOOL64=$OTOOL64
7669   # Extract the first word of "otool64", so it can be a program name with args.
7670 set dummy otool64; ac_word=$2
7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 printf %s "checking for $ac_word... " >&6; }
7673 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7674 then :
7675   printf %s "(cached) " >&6
7676 else $as_nop
7677   if test -n "$ac_ct_OTOOL64"; then
7678   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683   IFS=$as_save_IFS
7684   case $as_dir in #(((
7685     '') as_dir=./ ;;
7686     */) ;;
7687     *) as_dir=$as_dir/ ;;
7688   esac
7689     for ac_exec_ext in '' $ac_executable_extensions; do
7690   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7691     ac_cv_prog_ac_ct_OTOOL64="otool64"
7692     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7693     break 2
7694   fi
7695 done
7696   done
7697 IFS=$as_save_IFS
7698
7699 fi
7700 fi
7701 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7702 if test -n "$ac_ct_OTOOL64"; then
7703   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7704 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7705 else
7706   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 printf "%s\n" "no" >&6; }
7708 fi
7709
7710   if test "x$ac_ct_OTOOL64" = x; then
7711     OTOOL64=":"
7712   else
7713     case $cross_compiling:$ac_tool_warned in
7714 yes:)
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7718 esac
7719     OTOOL64=$ac_ct_OTOOL64
7720   fi
7721 else
7722   OTOOL64="$ac_cv_prog_OTOOL64"
7723 fi
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7752 printf %s "checking for -single_module linker flag... " >&6; }
7753 if test ${lt_cv_apple_cc_single_mod+y}
7754 then :
7755   printf %s "(cached) " >&6
7756 else $as_nop
7757   lt_cv_apple_cc_single_mod=no
7758       if test -z "$LT_MULTI_MODULE"; then
7759         # By default we will add the -single_module flag. You can override
7760         # by either setting the environment variable LT_MULTI_MODULE
7761         # non-empty at configure time, or by adding -multi_module to the
7762         # link flags.
7763         rm -rf libconftest.dylib*
7764         echo "int foo(void){return 1;}" > conftest.c
7765         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7766 -dynamiclib -Wl,-single_module conftest.c" >&5
7767         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7768           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7769         _lt_result=$?
7770         # If there is a non-empty error log, and "single_module"
7771         # appears in it, assume the flag caused a linker warning
7772         if test -s conftest.err && $GREP single_module conftest.err; then
7773           cat conftest.err >&5
7774         # Otherwise, if the output was created with a 0 exit code from
7775         # the compiler, it worked.
7776         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7777           lt_cv_apple_cc_single_mod=yes
7778         else
7779           cat conftest.err >&5
7780         fi
7781         rm -rf libconftest.dylib*
7782         rm -f conftest.*
7783       fi
7784 fi
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7786 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7787
7788     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7789 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7790 if test ${lt_cv_ld_exported_symbols_list+y}
7791 then :
7792   printf %s "(cached) " >&6
7793 else $as_nop
7794   lt_cv_ld_exported_symbols_list=no
7795       save_LDFLAGS=$LDFLAGS
7796       echo "_main" > conftest.sym
7797       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7798       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h.  */
7800
7801 int
7802 main (void)
7803 {
7804
7805   ;
7806   return 0;
7807 }
7808 _ACEOF
7809 if ac_fn_c_try_link "$LINENO"
7810 then :
7811   lt_cv_ld_exported_symbols_list=yes
7812 else $as_nop
7813   lt_cv_ld_exported_symbols_list=no
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7816     conftest$ac_exeext conftest.$ac_ext
7817         LDFLAGS=$save_LDFLAGS
7818
7819 fi
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7821 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7822
7823     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7824 printf %s "checking for -force_load linker flag... " >&6; }
7825 if test ${lt_cv_ld_force_load+y}
7826 then :
7827   printf %s "(cached) " >&6
7828 else $as_nop
7829   lt_cv_ld_force_load=no
7830       cat > conftest.c << _LT_EOF
7831 int forced_loaded() { return 2;}
7832 _LT_EOF
7833       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7834       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7835       echo "$AR cr libconftest.a conftest.o" >&5
7836       $AR cr libconftest.a conftest.o 2>&5
7837       echo "$RANLIB libconftest.a" >&5
7838       $RANLIB libconftest.a 2>&5
7839       cat > conftest.c << _LT_EOF
7840 int main() { return 0;}
7841 _LT_EOF
7842       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7843       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7844       _lt_result=$?
7845       if test -s conftest.err && $GREP force_load conftest.err; then
7846         cat conftest.err >&5
7847       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7848         lt_cv_ld_force_load=yes
7849       else
7850         cat conftest.err >&5
7851       fi
7852         rm -f conftest.err libconftest.a conftest conftest.c
7853         rm -rf conftest.dSYM
7854
7855 fi
7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7857 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7858     case $host_os in
7859     rhapsody* | darwin1.[012])
7860       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7861     darwin1.*)
7862       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7863     darwin*) # darwin 5.x on
7864       # if running on 10.5 or later, the deployment target defaults
7865       # to the OS version, if on x86, and 10.4, the deployment
7866       # target defaults to 10.4. Don't you love it?
7867       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7868         10.0,*86*-darwin8*|10.0,*-darwin[912]*)
7869           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7870         10.[012][,.]*)
7871           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7872         10.*|11.*)
7873           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7874       esac
7875     ;;
7876   esac
7877     if test yes = "$lt_cv_apple_cc_single_mod"; then
7878       _lt_dar_single_mod='$single_module'
7879     fi
7880     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7881       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7882     else
7883       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7884     fi
7885     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7886       _lt_dsymutil='~$DSYMUTIL $lib || :'
7887     else
7888       _lt_dsymutil=
7889     fi
7890     ;;
7891   esac
7892
7893 # func_munge_path_list VARIABLE PATH
7894 # -----------------------------------
7895 # VARIABLE is name of variable containing _space_ separated list of
7896 # directories to be munged by the contents of PATH, which is string
7897 # having a format:
7898 # "DIR[:DIR]:"
7899 #       string "DIR[ DIR]" will be prepended to VARIABLE
7900 # ":DIR[:DIR]"
7901 #       string "DIR[ DIR]" will be appended to VARIABLE
7902 # "DIRP[:DIRP]::[DIRA:]DIRA"
7903 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7904 #       "DIRA[ DIRA]" will be appended to VARIABLE
7905 # "DIR[:DIR]"
7906 #       VARIABLE will be replaced by "DIR[ DIR]"
7907 func_munge_path_list ()
7908 {
7909     case x$2 in
7910     x)
7911         ;;
7912     *:)
7913         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7914         ;;
7915     x:*)
7916         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7917         ;;
7918     *::*)
7919         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7920         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7921         ;;
7922     *)
7923         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7924         ;;
7925     esac
7926 }
7927
7928 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7929 "
7930 if test "x$ac_cv_header_dlfcn_h" = xyes
7931 then :
7932   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7933
7934 fi
7935
7936
7937
7938
7939
7940 # Set options
7941
7942
7943
7944         enable_dlopen=no
7945
7946
7947   enable_win32_dll=no
7948
7949
7950             # Check whether --enable-shared was given.
7951 if test ${enable_shared+y}
7952 then :
7953   enableval=$enable_shared; p=${PACKAGE-default}
7954     case $enableval in
7955     yes) enable_shared=yes ;;
7956     no) enable_shared=no ;;
7957     *)
7958       enable_shared=no
7959       # Look at the argument we got.  We use all the common list separators.
7960       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7961       for pkg in $enableval; do
7962         IFS=$lt_save_ifs
7963         if test "X$pkg" = "X$p"; then
7964           enable_shared=yes
7965         fi
7966       done
7967       IFS=$lt_save_ifs
7968       ;;
7969     esac
7970 else $as_nop
7971   enable_shared=yes
7972 fi
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982   # Check whether --enable-static was given.
7983 if test ${enable_static+y}
7984 then :
7985   enableval=$enable_static; p=${PACKAGE-default}
7986     case $enableval in
7987     yes) enable_static=yes ;;
7988     no) enable_static=no ;;
7989     *)
7990      enable_static=no
7991       # Look at the argument we got.  We use all the common list separators.
7992       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7993       for pkg in $enableval; do
7994         IFS=$lt_save_ifs
7995         if test "X$pkg" = "X$p"; then
7996           enable_static=yes
7997         fi
7998       done
7999       IFS=$lt_save_ifs
8000       ;;
8001     esac
8002 else $as_nop
8003   enable_static=yes
8004 fi
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015 # Check whether --with-pic was given.
8016 if test ${with_pic+y}
8017 then :
8018   withval=$with_pic; lt_p=${PACKAGE-default}
8019     case $withval in
8020     yes|no) pic_mode=$withval ;;
8021     *)
8022       pic_mode=default
8023       # Look at the argument we got.  We use all the common list separators.
8024       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8025       for lt_pkg in $withval; do
8026         IFS=$lt_save_ifs
8027         if test "X$lt_pkg" = "X$lt_p"; then
8028           pic_mode=yes
8029         fi
8030       done
8031       IFS=$lt_save_ifs
8032       ;;
8033     esac
8034 else $as_nop
8035   pic_mode=default
8036 fi
8037
8038
8039
8040
8041
8042
8043
8044
8045   # Check whether --enable-fast-install was given.
8046 if test ${enable_fast_install+y}
8047 then :
8048   enableval=$enable_fast_install; p=${PACKAGE-default}
8049     case $enableval in
8050     yes) enable_fast_install=yes ;;
8051     no) enable_fast_install=no ;;
8052     *)
8053       enable_fast_install=no
8054       # Look at the argument we got.  We use all the common list separators.
8055       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8056       for pkg in $enableval; do
8057         IFS=$lt_save_ifs
8058         if test "X$pkg" = "X$p"; then
8059           enable_fast_install=yes
8060         fi
8061       done
8062       IFS=$lt_save_ifs
8063       ;;
8064     esac
8065 else $as_nop
8066   enable_fast_install=yes
8067 fi
8068
8069
8070
8071
8072
8073
8074
8075
8076   shared_archive_member_spec=
8077 case $host,$enable_shared in
8078 power*-*-aix[5-9]*,yes)
8079   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8080 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8081
8082 # Check whether --with-aix-soname was given.
8083 if test ${with_aix_soname+y}
8084 then :
8085   withval=$with_aix_soname; case $withval in
8086     aix|svr4|both)
8087       ;;
8088     *)
8089       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8090       ;;
8091     esac
8092     lt_cv_with_aix_soname=$with_aix_soname
8093 else $as_nop
8094   if test ${lt_cv_with_aix_soname+y}
8095 then :
8096   printf %s "(cached) " >&6
8097 else $as_nop
8098   lt_cv_with_aix_soname=aix
8099 fi
8100
8101     with_aix_soname=$lt_cv_with_aix_soname
8102 fi
8103
8104   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8105 printf "%s\n" "$with_aix_soname" >&6; }
8106   if test aix != "$with_aix_soname"; then
8107     # For the AIX way of multilib, we name the shared archive member
8108     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8109     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8110     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8111     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8112     if test 64 = "${OBJECT_MODE-32}"; then
8113       shared_archive_member_spec=shr_64
8114     else
8115       shared_archive_member_spec=shr
8116     fi
8117   fi
8118   ;;
8119 *)
8120   with_aix_soname=aix
8121   ;;
8122 esac
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133 # This can be used to rebuild libtool when needed
8134 LIBTOOL_DEPS=$ltmain
8135
8136 # Always use our own libtool.
8137 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168 test -z "$LN_S" && LN_S="ln -s"
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183 if test -n "${ZSH_VERSION+set}"; then
8184    setopt NO_GLOB_SUBST
8185 fi
8186
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8188 printf %s "checking for objdir... " >&6; }
8189 if test ${lt_cv_objdir+y}
8190 then :
8191   printf %s "(cached) " >&6
8192 else $as_nop
8193   rm -f .libs 2>/dev/null
8194 mkdir .libs 2>/dev/null
8195 if test -d .libs; then
8196   lt_cv_objdir=.libs
8197 else
8198   # MS-DOS does not allow filenames that begin with a dot.
8199   lt_cv_objdir=_libs
8200 fi
8201 rmdir .libs 2>/dev/null
8202 fi
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8204 printf "%s\n" "$lt_cv_objdir" >&6; }
8205 objdir=$lt_cv_objdir
8206
8207
8208
8209
8210
8211 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8212
8213
8214
8215
8216 case $host_os in
8217 aix3*)
8218   # AIX sometimes has problems with the GCC collect2 program.  For some
8219   # reason, if we set the COLLECT_NAMES environment variable, the problems
8220   # vanish in a puff of smoke.
8221   if test set != "${COLLECT_NAMES+set}"; then
8222     COLLECT_NAMES=
8223     export COLLECT_NAMES
8224   fi
8225   ;;
8226 esac
8227
8228 # Global variables:
8229 ofile=libtool
8230 can_build_shared=yes
8231
8232 # All known linkers require a '.a' archive for static linking (except MSVC,
8233 # which needs '.lib').
8234 libext=a
8235
8236 with_gnu_ld=$lt_cv_prog_gnu_ld
8237
8238 old_CC=$CC
8239 old_CFLAGS=$CFLAGS
8240
8241 # Set sane defaults for various variables
8242 test -z "$CC" && CC=cc
8243 test -z "$LTCC" && LTCC=$CC
8244 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8245 test -z "$LD" && LD=ld
8246 test -z "$ac_objext" && ac_objext=o
8247
8248 func_cc_basename $compiler
8249 cc_basename=$func_cc_basename_result
8250
8251
8252 # Only perform the check for file, if the check method requires it
8253 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8254 case $deplibs_check_method in
8255 file_magic*)
8256   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8257     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8258 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8259 if test ${lt_cv_path_MAGIC_CMD+y}
8260 then :
8261   printf %s "(cached) " >&6
8262 else $as_nop
8263   case $MAGIC_CMD in
8264 [\\/*] |  ?:[\\/]*)
8265   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8266   ;;
8267 *)
8268   lt_save_MAGIC_CMD=$MAGIC_CMD
8269   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8270   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8271   for ac_dir in $ac_dummy; do
8272     IFS=$lt_save_ifs
8273     test -z "$ac_dir" && ac_dir=.
8274     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8275       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8276       if test -n "$file_magic_test_file"; then
8277         case $deplibs_check_method in
8278         "file_magic "*)
8279           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8280           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8281           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8282             $EGREP "$file_magic_regex" > /dev/null; then
8283             :
8284           else
8285             cat <<_LT_EOF 1>&2
8286
8287 *** Warning: the command libtool uses to detect shared libraries,
8288 *** $file_magic_cmd, produces output that libtool cannot recognize.
8289 *** The result is that libtool may fail to recognize shared libraries
8290 *** as such.  This will affect the creation of libtool libraries that
8291 *** depend on shared libraries, but programs linked with such libtool
8292 *** libraries will work regardless of this problem.  Nevertheless, you
8293 *** may want to report the problem to your system manager and/or to
8294 *** bug-libtool@gnu.org
8295
8296 _LT_EOF
8297           fi ;;
8298         esac
8299       fi
8300       break
8301     fi
8302   done
8303   IFS=$lt_save_ifs
8304   MAGIC_CMD=$lt_save_MAGIC_CMD
8305   ;;
8306 esac
8307 fi
8308
8309 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8310 if test -n "$MAGIC_CMD"; then
8311   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8312 printf "%s\n" "$MAGIC_CMD" >&6; }
8313 else
8314   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 printf "%s\n" "no" >&6; }
8316 fi
8317
8318
8319
8320
8321
8322 if test -z "$lt_cv_path_MAGIC_CMD"; then
8323   if test -n "$ac_tool_prefix"; then
8324     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8325 printf %s "checking for file... " >&6; }
8326 if test ${lt_cv_path_MAGIC_CMD+y}
8327 then :
8328   printf %s "(cached) " >&6
8329 else $as_nop
8330   case $MAGIC_CMD in
8331 [\\/*] |  ?:[\\/]*)
8332   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8333   ;;
8334 *)
8335   lt_save_MAGIC_CMD=$MAGIC_CMD
8336   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8337   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8338   for ac_dir in $ac_dummy; do
8339     IFS=$lt_save_ifs
8340     test -z "$ac_dir" && ac_dir=.
8341     if test -f "$ac_dir/file"; then
8342       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8343       if test -n "$file_magic_test_file"; then
8344         case $deplibs_check_method in
8345         "file_magic "*)
8346           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8347           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8348           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8349             $EGREP "$file_magic_regex" > /dev/null; then
8350             :
8351           else
8352             cat <<_LT_EOF 1>&2
8353
8354 *** Warning: the command libtool uses to detect shared libraries,
8355 *** $file_magic_cmd, produces output that libtool cannot recognize.
8356 *** The result is that libtool may fail to recognize shared libraries
8357 *** as such.  This will affect the creation of libtool libraries that
8358 *** depend on shared libraries, but programs linked with such libtool
8359 *** libraries will work regardless of this problem.  Nevertheless, you
8360 *** may want to report the problem to your system manager and/or to
8361 *** bug-libtool@gnu.org
8362
8363 _LT_EOF
8364           fi ;;
8365         esac
8366       fi
8367       break
8368     fi
8369   done
8370   IFS=$lt_save_ifs
8371   MAGIC_CMD=$lt_save_MAGIC_CMD
8372   ;;
8373 esac
8374 fi
8375
8376 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8377 if test -n "$MAGIC_CMD"; then
8378   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8379 printf "%s\n" "$MAGIC_CMD" >&6; }
8380 else
8381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 printf "%s\n" "no" >&6; }
8383 fi
8384
8385
8386   else
8387     MAGIC_CMD=:
8388   fi
8389 fi
8390
8391   fi
8392   ;;
8393 esac
8394
8395 # Use C for the default configuration in the libtool script
8396
8397 lt_save_CC=$CC
8398 ac_ext=c
8399 ac_cpp='$CPP $CPPFLAGS'
8400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8403
8404
8405 # Source file extension for C test sources.
8406 ac_ext=c
8407
8408 # Object file extension for compiled C test sources.
8409 objext=o
8410 objext=$objext
8411
8412 # Code to be used in simple compile tests
8413 lt_simple_compile_test_code="int some_variable = 0;"
8414
8415 # Code to be used in simple link tests
8416 lt_simple_link_test_code='int main(){return(0);}'
8417
8418
8419
8420
8421
8422
8423
8424 # If no C compiler was specified, use CC.
8425 LTCC=${LTCC-"$CC"}
8426
8427 # If no C compiler flags were specified, use CFLAGS.
8428 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8429
8430 # Allow CC to be a program name with arguments.
8431 compiler=$CC
8432
8433 # Save the default compiler, since it gets overwritten when the other
8434 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8435 compiler_DEFAULT=$CC
8436
8437 # save warnings/boilerplate of simple test code
8438 ac_outfile=conftest.$ac_objext
8439 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8440 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8441 _lt_compiler_boilerplate=`cat conftest.err`
8442 $RM conftest*
8443
8444 ac_outfile=conftest.$ac_objext
8445 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8446 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447 _lt_linker_boilerplate=`cat conftest.err`
8448 $RM -r conftest*
8449
8450
8451 ## CAVEAT EMPTOR:
8452 ## There is no encapsulation within the following macros, do not change
8453 ## the running order or otherwise move them around unless you know exactly
8454 ## what you are doing...
8455 if test -n "$compiler"; then
8456
8457 lt_prog_compiler_no_builtin_flag=
8458
8459 if test yes = "$GCC"; then
8460   case $cc_basename in
8461   nvcc*)
8462     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8463   *)
8464     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8465   esac
8466
8467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8468 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8469 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8470 then :
8471   printf %s "(cached) " >&6
8472 else $as_nop
8473   lt_cv_prog_compiler_rtti_exceptions=no
8474    ac_outfile=conftest.$ac_objext
8475    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8476    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8477    # Insert the option either (1) after the last *FLAGS variable, or
8478    # (2) before a word containing "conftest.", or (3) at the end.
8479    # Note that $ac_compile itself does not contain backslashes and begins
8480    # with a dollar sign (not a hyphen), so the echo should work correctly.
8481    # The option is referenced via a variable to avoid confusing sed.
8482    lt_compile=`echo "$ac_compile" | $SED \
8483    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485    -e 's:$: $lt_compiler_flag:'`
8486    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8487    (eval "$lt_compile" 2>conftest.err)
8488    ac_status=$?
8489    cat conftest.err >&5
8490    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491    if (exit $ac_status) && test -s "$ac_outfile"; then
8492      # The compiler can only warn and ignore the option if not recognized
8493      # So say no if there are warnings other than the usual output.
8494      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8495      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8496      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8497        lt_cv_prog_compiler_rtti_exceptions=yes
8498      fi
8499    fi
8500    $RM conftest*
8501
8502 fi
8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8504 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8505
8506 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8507     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8508 else
8509     :
8510 fi
8511
8512 fi
8513
8514
8515
8516
8517
8518
8519   lt_prog_compiler_wl=
8520 lt_prog_compiler_pic=
8521 lt_prog_compiler_static=
8522
8523
8524   if test yes = "$GCC"; then
8525     lt_prog_compiler_wl='-Wl,'
8526     lt_prog_compiler_static='-static'
8527
8528     case $host_os in
8529       aix*)
8530       # All AIX code is PIC.
8531       if test ia64 = "$host_cpu"; then
8532         # AIX 5 now supports IA64 processor
8533         lt_prog_compiler_static='-Bstatic'
8534       fi
8535       lt_prog_compiler_pic='-fPIC'
8536       ;;
8537
8538     amigaos*)
8539       case $host_cpu in
8540       powerpc)
8541             # see comment about AmigaOS4 .so support
8542             lt_prog_compiler_pic='-fPIC'
8543         ;;
8544       m68k)
8545             # FIXME: we need at least 68020 code to build shared libraries, but
8546             # adding the '-m68020' flag to GCC prevents building anything better,
8547             # like '-m68040'.
8548             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8549         ;;
8550       esac
8551       ;;
8552
8553     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8554       # PIC is the default for these OSes.
8555       ;;
8556
8557     mingw* | cygwin* | pw32* | os2* | cegcc*)
8558       # This hack is so that the source file can tell whether it is being
8559       # built for inclusion in a dll (and should export symbols for example).
8560       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8561       # (--disable-auto-import) libraries
8562       lt_prog_compiler_pic='-DDLL_EXPORT'
8563       case $host_os in
8564       os2*)
8565         lt_prog_compiler_static='$wl-static'
8566         ;;
8567       esac
8568       ;;
8569
8570     darwin* | rhapsody*)
8571       # PIC is the default on this platform
8572       # Common symbols not allowed in MH_DYLIB files
8573       lt_prog_compiler_pic='-fno-common'
8574       ;;
8575
8576     haiku*)
8577       # PIC is the default for Haiku.
8578       # The "-static" flag exists, but is broken.
8579       lt_prog_compiler_static=
8580       ;;
8581
8582     hpux*)
8583       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8584       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8585       # sets the default TLS model and affects inlining.
8586       case $host_cpu in
8587       hppa*64*)
8588         # +Z the default
8589         ;;
8590       *)
8591         lt_prog_compiler_pic='-fPIC'
8592         ;;
8593       esac
8594       ;;
8595
8596     interix[3-9]*)
8597       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8598       # Instead, we relocate shared libraries at runtime.
8599       ;;
8600
8601     msdosdjgpp*)
8602       # Just because we use GCC doesn't mean we suddenly get shared libraries
8603       # on systems that don't support them.
8604       lt_prog_compiler_can_build_shared=no
8605       enable_shared=no
8606       ;;
8607
8608     *nto* | *qnx*)
8609       # QNX uses GNU C++, but need to define -shared option too, otherwise
8610       # it will coredump.
8611       lt_prog_compiler_pic='-fPIC -shared'
8612       ;;
8613
8614     sysv4*MP*)
8615       if test -d /usr/nec; then
8616         lt_prog_compiler_pic=-Kconform_pic
8617       fi
8618       ;;
8619
8620     *)
8621       lt_prog_compiler_pic='-fPIC'
8622       ;;
8623     esac
8624
8625     case $cc_basename in
8626     nvcc*) # Cuda Compiler Driver 2.2
8627       lt_prog_compiler_wl='-Xlinker '
8628       if test -n "$lt_prog_compiler_pic"; then
8629         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8630       fi
8631       ;;
8632     esac
8633   else
8634     # PORTME Check for flag to pass linker flags through the system compiler.
8635     case $host_os in
8636     aix*)
8637       lt_prog_compiler_wl='-Wl,'
8638       if test ia64 = "$host_cpu"; then
8639         # AIX 5 now supports IA64 processor
8640         lt_prog_compiler_static='-Bstatic'
8641       else
8642         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8643       fi
8644       ;;
8645
8646     darwin* | rhapsody*)
8647       # PIC is the default on this platform
8648       # Common symbols not allowed in MH_DYLIB files
8649       lt_prog_compiler_pic='-fno-common'
8650       case $cc_basename in
8651       nagfor*)
8652         # NAG Fortran compiler
8653         lt_prog_compiler_wl='-Wl,-Wl,,'
8654         lt_prog_compiler_pic='-PIC'
8655         lt_prog_compiler_static='-Bstatic'
8656         ;;
8657       esac
8658       ;;
8659
8660     mingw* | cygwin* | pw32* | os2* | cegcc*)
8661       # This hack is so that the source file can tell whether it is being
8662       # built for inclusion in a dll (and should export symbols for example).
8663       lt_prog_compiler_pic='-DDLL_EXPORT'
8664       case $host_os in
8665       os2*)
8666         lt_prog_compiler_static='$wl-static'
8667         ;;
8668       esac
8669       ;;
8670
8671     hpux9* | hpux10* | hpux11*)
8672       lt_prog_compiler_wl='-Wl,'
8673       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8674       # not for PA HP-UX.
8675       case $host_cpu in
8676       hppa*64*|ia64*)
8677         # +Z the default
8678         ;;
8679       *)
8680         lt_prog_compiler_pic='+Z'
8681         ;;
8682       esac
8683       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8684       lt_prog_compiler_static='$wl-a ${wl}archive'
8685       ;;
8686
8687     irix5* | irix6* | nonstopux*)
8688       lt_prog_compiler_wl='-Wl,'
8689       # PIC (with -KPIC) is the default.
8690       lt_prog_compiler_static='-non_shared'
8691       ;;
8692
8693     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8694       case $cc_basename in
8695       # old Intel for x86_64, which still supported -KPIC.
8696       ecc*)
8697         lt_prog_compiler_wl='-Wl,'
8698         lt_prog_compiler_pic='-KPIC'
8699         lt_prog_compiler_static='-static'
8700         ;;
8701       # flang / f18. f95 an alias for gfortran or flang on Debian
8702       flang* | f18* | f95*)
8703         lt_prog_compiler_wl='-Wl,'
8704         lt_prog_compiler_pic='-fPIC'
8705         lt_prog_compiler_static='-static'
8706         ;;
8707       # icc used to be incompatible with GCC.
8708       # ICC 10 doesn't accept -KPIC any more.
8709       icc* | ifort*)
8710         lt_prog_compiler_wl='-Wl,'
8711         lt_prog_compiler_pic='-fPIC'
8712         lt_prog_compiler_static='-static'
8713         ;;
8714       # Lahey Fortran 8.1.
8715       lf95*)
8716         lt_prog_compiler_wl='-Wl,'
8717         lt_prog_compiler_pic='--shared'
8718         lt_prog_compiler_static='--static'
8719         ;;
8720       nagfor*)
8721         # NAG Fortran compiler
8722         lt_prog_compiler_wl='-Wl,-Wl,,'
8723         lt_prog_compiler_pic='-PIC'
8724         lt_prog_compiler_static='-Bstatic'
8725         ;;
8726       tcc*)
8727         # Fabrice Bellard et al's Tiny C Compiler
8728         lt_prog_compiler_wl='-Wl,'
8729         lt_prog_compiler_pic='-fPIC'
8730         lt_prog_compiler_static='-static'
8731         ;;
8732       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8733         # Portland Group compilers (*not* the Pentium gcc compiler,
8734         # which looks to be a dead project)
8735         lt_prog_compiler_wl='-Wl,'
8736         lt_prog_compiler_pic='-fpic'
8737         lt_prog_compiler_static='-Bstatic'
8738         ;;
8739       ccc*)
8740         lt_prog_compiler_wl='-Wl,'
8741         # All Alpha code is PIC.
8742         lt_prog_compiler_static='-non_shared'
8743         ;;
8744       xl* | bgxl* | bgf* | mpixl*)
8745         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8746         lt_prog_compiler_wl='-Wl,'
8747         lt_prog_compiler_pic='-qpic'
8748         lt_prog_compiler_static='-qstaticlink'
8749         ;;
8750       *)
8751         case `$CC -V 2>&1 | sed 5q` in
8752         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8753           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8754           lt_prog_compiler_pic='-KPIC'
8755           lt_prog_compiler_static='-Bstatic'
8756           lt_prog_compiler_wl=''
8757           ;;
8758         *Sun\ F* | *Sun*Fortran*)
8759           lt_prog_compiler_pic='-KPIC'
8760           lt_prog_compiler_static='-Bstatic'
8761           lt_prog_compiler_wl='-Qoption ld '
8762           ;;
8763         *Sun\ C*)
8764           # Sun C 5.9
8765           lt_prog_compiler_pic='-KPIC'
8766           lt_prog_compiler_static='-Bstatic'
8767           lt_prog_compiler_wl='-Wl,'
8768           ;;
8769         *Intel*\ [CF]*Compiler*)
8770           lt_prog_compiler_wl='-Wl,'
8771           lt_prog_compiler_pic='-fPIC'
8772           lt_prog_compiler_static='-static'
8773           ;;
8774         *Portland\ Group*)
8775           lt_prog_compiler_wl='-Wl,'
8776           lt_prog_compiler_pic='-fpic'
8777           lt_prog_compiler_static='-Bstatic'
8778           ;;
8779         esac
8780         ;;
8781       esac
8782       ;;
8783
8784     newsos6)
8785       lt_prog_compiler_pic='-KPIC'
8786       lt_prog_compiler_static='-Bstatic'
8787       ;;
8788
8789     *nto* | *qnx*)
8790       # QNX uses GNU C++, but need to define -shared option too, otherwise
8791       # it will coredump.
8792       lt_prog_compiler_pic='-fPIC -shared'
8793       ;;
8794
8795     osf3* | osf4* | osf5*)
8796       lt_prog_compiler_wl='-Wl,'
8797       # All OSF/1 code is PIC.
8798       lt_prog_compiler_static='-non_shared'
8799       ;;
8800
8801     rdos*)
8802       lt_prog_compiler_static='-non_shared'
8803       ;;
8804
8805     solaris*)
8806       lt_prog_compiler_pic='-KPIC'
8807       lt_prog_compiler_static='-Bstatic'
8808       case $cc_basename in
8809       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8810         lt_prog_compiler_wl='-Qoption ld ';;
8811       *)
8812         lt_prog_compiler_wl='-Wl,';;
8813       esac
8814       ;;
8815
8816     sunos4*)
8817       lt_prog_compiler_wl='-Qoption ld '
8818       lt_prog_compiler_pic='-PIC'
8819       lt_prog_compiler_static='-Bstatic'
8820       ;;
8821
8822     sysv4 | sysv4.2uw2* | sysv4.3*)
8823       lt_prog_compiler_wl='-Wl,'
8824       lt_prog_compiler_pic='-KPIC'
8825       lt_prog_compiler_static='-Bstatic'
8826       ;;
8827
8828     sysv4*MP*)
8829       if test -d /usr/nec; then
8830         lt_prog_compiler_pic='-Kconform_pic'
8831         lt_prog_compiler_static='-Bstatic'
8832       fi
8833       ;;
8834
8835     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8836       lt_prog_compiler_wl='-Wl,'
8837       lt_prog_compiler_pic='-KPIC'
8838       lt_prog_compiler_static='-Bstatic'
8839       ;;
8840
8841     unicos*)
8842       lt_prog_compiler_wl='-Wl,'
8843       lt_prog_compiler_can_build_shared=no
8844       ;;
8845
8846     uts4*)
8847       lt_prog_compiler_pic='-pic'
8848       lt_prog_compiler_static='-Bstatic'
8849       ;;
8850
8851     *)
8852       lt_prog_compiler_can_build_shared=no
8853       ;;
8854     esac
8855   fi
8856
8857 case $host_os in
8858   # For platforms that do not support PIC, -DPIC is meaningless:
8859   *djgpp*)
8860     lt_prog_compiler_pic=
8861     ;;
8862   *)
8863     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8864     ;;
8865 esac
8866
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8868 printf %s "checking for $compiler option to produce PIC... " >&6; }
8869 if test ${lt_cv_prog_compiler_pic+y}
8870 then :
8871   printf %s "(cached) " >&6
8872 else $as_nop
8873   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8874 fi
8875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8876 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
8877 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8878
8879 #
8880 # Check to make sure the PIC flag actually works.
8881 #
8882 if test -n "$lt_prog_compiler_pic"; then
8883   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8884 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8885 if test ${lt_cv_prog_compiler_pic_works+y}
8886 then :
8887   printf %s "(cached) " >&6
8888 else $as_nop
8889   lt_cv_prog_compiler_pic_works=no
8890    ac_outfile=conftest.$ac_objext
8891    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8892    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8893    # Insert the option either (1) after the last *FLAGS variable, or
8894    # (2) before a word containing "conftest.", or (3) at the end.
8895    # Note that $ac_compile itself does not contain backslashes and begins
8896    # with a dollar sign (not a hyphen), so the echo should work correctly.
8897    # The option is referenced via a variable to avoid confusing sed.
8898    lt_compile=`echo "$ac_compile" | $SED \
8899    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8900    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8901    -e 's:$: $lt_compiler_flag:'`
8902    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8903    (eval "$lt_compile" 2>conftest.err)
8904    ac_status=$?
8905    cat conftest.err >&5
8906    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907    if (exit $ac_status) && test -s "$ac_outfile"; then
8908      # The compiler can only warn and ignore the option if not recognized
8909      # So say no if there are warnings other than the usual output.
8910      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8911      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8912      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8913        lt_cv_prog_compiler_pic_works=yes
8914      fi
8915    fi
8916    $RM conftest*
8917
8918 fi
8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8920 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
8921
8922 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8923     case $lt_prog_compiler_pic in
8924      "" | " "*) ;;
8925      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8926      esac
8927 else
8928     lt_prog_compiler_pic=
8929      lt_prog_compiler_can_build_shared=no
8930 fi
8931
8932 fi
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944 #
8945 # Check to make sure the static flag actually works.
8946 #
8947 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8949 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8950 if test ${lt_cv_prog_compiler_static_works+y}
8951 then :
8952   printf %s "(cached) " >&6
8953 else $as_nop
8954   lt_cv_prog_compiler_static_works=no
8955    save_LDFLAGS=$LDFLAGS
8956    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8957    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8958    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8959      # The linker can only warn and ignore the option if not recognized
8960      # So say no if there are warnings
8961      if test -s conftest.err; then
8962        # Append any errors to the config.log.
8963        cat conftest.err 1>&5
8964        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8965        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8966        if diff conftest.exp conftest.er2 >/dev/null; then
8967          lt_cv_prog_compiler_static_works=yes
8968        fi
8969      else
8970        lt_cv_prog_compiler_static_works=yes
8971      fi
8972    fi
8973    $RM -r conftest*
8974    LDFLAGS=$save_LDFLAGS
8975
8976 fi
8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8978 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
8979
8980 if test yes = "$lt_cv_prog_compiler_static_works"; then
8981     :
8982 else
8983     lt_prog_compiler_static=
8984 fi
8985
8986
8987
8988
8989
8990
8991
8992   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8993 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8994 if test ${lt_cv_prog_compiler_c_o+y}
8995 then :
8996   printf %s "(cached) " >&6
8997 else $as_nop
8998   lt_cv_prog_compiler_c_o=no
8999    $RM -r conftest 2>/dev/null
9000    mkdir conftest
9001    cd conftest
9002    mkdir out
9003    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9004
9005    lt_compiler_flag="-o out/conftest2.$ac_objext"
9006    # Insert the option either (1) after the last *FLAGS variable, or
9007    # (2) before a word containing "conftest.", or (3) at the end.
9008    # Note that $ac_compile itself does not contain backslashes and begins
9009    # with a dollar sign (not a hyphen), so the echo should work correctly.
9010    lt_compile=`echo "$ac_compile" | $SED \
9011    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9012    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9013    -e 's:$: $lt_compiler_flag:'`
9014    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9015    (eval "$lt_compile" 2>out/conftest.err)
9016    ac_status=$?
9017    cat out/conftest.err >&5
9018    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9020    then
9021      # The compiler can only warn and ignore the option if not recognized
9022      # So say no if there are warnings
9023      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9024      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9025      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9026        lt_cv_prog_compiler_c_o=yes
9027      fi
9028    fi
9029    chmod u+w . 2>&5
9030    $RM conftest*
9031    # SGI C++ compiler will create directory out/ii_files/ for
9032    # template instantiation
9033    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9034    $RM out/* && rmdir out
9035    cd ..
9036    $RM -r conftest
9037    $RM conftest*
9038
9039 fi
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9041 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9042
9043
9044
9045
9046
9047
9048   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9049 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9050 if test ${lt_cv_prog_compiler_c_o+y}
9051 then :
9052   printf %s "(cached) " >&6
9053 else $as_nop
9054   lt_cv_prog_compiler_c_o=no
9055    $RM -r conftest 2>/dev/null
9056    mkdir conftest
9057    cd conftest
9058    mkdir out
9059    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9060
9061    lt_compiler_flag="-o out/conftest2.$ac_objext"
9062    # Insert the option either (1) after the last *FLAGS variable, or
9063    # (2) before a word containing "conftest.", or (3) at the end.
9064    # Note that $ac_compile itself does not contain backslashes and begins
9065    # with a dollar sign (not a hyphen), so the echo should work correctly.
9066    lt_compile=`echo "$ac_compile" | $SED \
9067    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9068    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9069    -e 's:$: $lt_compiler_flag:'`
9070    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9071    (eval "$lt_compile" 2>out/conftest.err)
9072    ac_status=$?
9073    cat out/conftest.err >&5
9074    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9076    then
9077      # The compiler can only warn and ignore the option if not recognized
9078      # So say no if there are warnings
9079      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9080      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9081      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9082        lt_cv_prog_compiler_c_o=yes
9083      fi
9084    fi
9085    chmod u+w . 2>&5
9086    $RM conftest*
9087    # SGI C++ compiler will create directory out/ii_files/ for
9088    # template instantiation
9089    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9090    $RM out/* && rmdir out
9091    cd ..
9092    $RM -r conftest
9093    $RM conftest*
9094
9095 fi
9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9097 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9098
9099
9100
9101
9102 hard_links=nottested
9103 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9104   # do not overwrite the value of need_locks provided by the user
9105   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9106 printf %s "checking if we can lock with hard links... " >&6; }
9107   hard_links=yes
9108   $RM conftest*
9109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9110   touch conftest.a
9111   ln conftest.a conftest.b 2>&5 || hard_links=no
9112   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9113   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9114 printf "%s\n" "$hard_links" >&6; }
9115   if test no = "$hard_links"; then
9116     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9117 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9118     need_locks=warn
9119   fi
9120 else
9121   need_locks=no
9122 fi
9123
9124
9125
9126
9127
9128
9129   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9130 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9131
9132   runpath_var=
9133   allow_undefined_flag=
9134   always_export_symbols=no
9135   archive_cmds=
9136   archive_expsym_cmds=
9137   compiler_needs_object=no
9138   enable_shared_with_static_runtimes=no
9139   export_dynamic_flag_spec=
9140   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9141   hardcode_automatic=no
9142   hardcode_direct=no
9143   hardcode_direct_absolute=no
9144   hardcode_libdir_flag_spec=
9145   hardcode_libdir_separator=
9146   hardcode_minus_L=no
9147   hardcode_shlibpath_var=unsupported
9148   inherit_rpath=no
9149   link_all_deplibs=unknown
9150   module_cmds=
9151   module_expsym_cmds=
9152   old_archive_from_new_cmds=
9153   old_archive_from_expsyms_cmds=
9154   thread_safe_flag_spec=
9155   whole_archive_flag_spec=
9156   # include_expsyms should be a list of space-separated symbols to be *always*
9157   # included in the symbol list
9158   include_expsyms=
9159   # exclude_expsyms can be an extended regexp of symbols to exclude
9160   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9161   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9162   # as well as any symbol that contains 'd'.
9163   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9164   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9165   # platforms (ab)use it in PIC code, but their linkers get confused if
9166   # the symbol is explicitly referenced.  Since portable code cannot
9167   # rely on this symbol name, it's probably fine to never include it in
9168   # preloaded symbol tables.
9169   # Exclude shared library initialization/finalization symbols.
9170   extract_expsyms_cmds=
9171
9172   case $host_os in
9173   cygwin* | mingw* | pw32* | cegcc*)
9174     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9175     # When not using gcc, we currently assume that we are using
9176     # Microsoft Visual C++.
9177     if test yes != "$GCC"; then
9178       with_gnu_ld=no
9179     fi
9180     ;;
9181   interix*)
9182     # we just hope/assume this is gcc and not c89 (= MSVC++)
9183     with_gnu_ld=yes
9184     ;;
9185   openbsd* | bitrig*)
9186     with_gnu_ld=no
9187     ;;
9188   linux* | k*bsd*-gnu | gnu*)
9189     link_all_deplibs=no
9190     ;;
9191   esac
9192
9193   ld_shlibs=yes
9194
9195   # On some targets, GNU ld is compatible enough with the native linker
9196   # that we're better off using the native interface for both.
9197   lt_use_gnu_ld_interface=no
9198   if test yes = "$with_gnu_ld"; then
9199     case $host_os in
9200       aix*)
9201         # The AIX port of GNU ld has always aspired to compatibility
9202         # with the native linker.  However, as the warning in the GNU ld
9203         # block says, versions before 2.19.5* couldn't really create working
9204         # shared libraries, regardless of the interface used.
9205         case `$LD -v 2>&1` in
9206           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9207           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9208           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9209           *)
9210             lt_use_gnu_ld_interface=yes
9211             ;;
9212         esac
9213         ;;
9214       *)
9215         lt_use_gnu_ld_interface=yes
9216         ;;
9217     esac
9218   fi
9219
9220   if test yes = "$lt_use_gnu_ld_interface"; then
9221     # If archive_cmds runs LD, not CC, wlarc should be empty
9222     wlarc='$wl'
9223
9224     # Set some defaults for GNU ld with shared library support. These
9225     # are reset later if shared libraries are not supported. Putting them
9226     # here allows them to be overridden if necessary.
9227     runpath_var=LD_RUN_PATH
9228     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9229     export_dynamic_flag_spec='$wl--export-dynamic'
9230     # ancient GNU ld didn't support --whole-archive et. al.
9231     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9232       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9233     else
9234       whole_archive_flag_spec=
9235     fi
9236     supports_anon_versioning=no
9237     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9238       *GNU\ gold*) supports_anon_versioning=yes ;;
9239       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9240       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9241       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9242       *\ 2.11.*) ;; # other 2.11 versions
9243       *) supports_anon_versioning=yes ;;
9244     esac
9245
9246     # See if GNU ld supports shared libraries.
9247     case $host_os in
9248     aix[3-9]*)
9249       # On AIX/PPC, the GNU linker is very broken
9250       if test ia64 != "$host_cpu"; then
9251         ld_shlibs=no
9252         cat <<_LT_EOF 1>&2
9253
9254 *** Warning: the GNU linker, at least up to release 2.19, is reported
9255 *** to be unable to reliably create shared libraries on AIX.
9256 *** Therefore, libtool is disabling shared libraries support.  If you
9257 *** really care for shared libraries, you may want to install binutils
9258 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9259 *** You will then need to restart the configuration process.
9260
9261 _LT_EOF
9262       fi
9263       ;;
9264
9265     amigaos*)
9266       case $host_cpu in
9267       powerpc)
9268             # see comment about AmigaOS4 .so support
9269             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9270             archive_expsym_cmds=''
9271         ;;
9272       m68k)
9273             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)'
9274             hardcode_libdir_flag_spec='-L$libdir'
9275             hardcode_minus_L=yes
9276         ;;
9277       esac
9278       ;;
9279
9280     beos*)
9281       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9282         allow_undefined_flag=unsupported
9283         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9284         # support --undefined.  This deserves some investigation.  FIXME
9285         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9286       else
9287         ld_shlibs=no
9288       fi
9289       ;;
9290
9291     cygwin* | mingw* | pw32* | cegcc*)
9292       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9293       # as there is no search path for DLLs.
9294       hardcode_libdir_flag_spec='-L$libdir'
9295       export_dynamic_flag_spec='$wl--export-all-symbols'
9296       allow_undefined_flag=unsupported
9297       always_export_symbols=no
9298       enable_shared_with_static_runtimes=yes
9299       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'
9300       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9301
9302       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9303         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9304         # If the export-symbols file already is a .def file, use it as
9305         # is; otherwise, prepend EXPORTS...
9306         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9307           cp $export_symbols $output_objdir/$soname.def;
9308         else
9309           echo EXPORTS > $output_objdir/$soname.def;
9310           cat $export_symbols >> $output_objdir/$soname.def;
9311         fi~
9312         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9313       else
9314         ld_shlibs=no
9315       fi
9316       ;;
9317
9318     haiku*)
9319       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9320       link_all_deplibs=yes
9321       ;;
9322
9323     os2*)
9324       hardcode_libdir_flag_spec='-L$libdir'
9325       hardcode_minus_L=yes
9326       allow_undefined_flag=unsupported
9327       shrext_cmds=.dll
9328       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9329         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9330         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9331         $ECHO EXPORTS >> $output_objdir/$libname.def~
9332         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9333         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9334         emximp -o $lib $output_objdir/$libname.def'
9335       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9336         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9337         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9338         $ECHO EXPORTS >> $output_objdir/$libname.def~
9339         prefix_cmds="$SED"~
9340         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9341           prefix_cmds="$prefix_cmds -e 1d";
9342         fi~
9343         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9344         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9345         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9346         emximp -o $lib $output_objdir/$libname.def'
9347       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9348       enable_shared_with_static_runtimes=yes
9349       ;;
9350
9351     interix[3-9]*)
9352       hardcode_direct=no
9353       hardcode_shlibpath_var=no
9354       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9355       export_dynamic_flag_spec='$wl-E'
9356       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9357       # Instead, shared libraries are loaded at an image base (0x10000000 by
9358       # default) and relocated if they conflict, which is a slow very memory
9359       # consuming and fragmenting process.  To avoid this, we pick a random,
9360       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9361       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9362       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9363       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'
9364       ;;
9365
9366     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9367       tmp_diet=no
9368       if test linux-dietlibc = "$host_os"; then
9369         case $cc_basename in
9370           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9371         esac
9372       fi
9373       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9374          && test no = "$tmp_diet"
9375       then
9376         tmp_addflag=' $pic_flag'
9377         tmp_sharedflag='-shared'
9378         case $cc_basename,$host_cpu in
9379         pgcc*)                          # Portland Group C compiler
9380           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'
9381           tmp_addflag=' $pic_flag'
9382           ;;
9383         pgf77* | pgf90* | pgf95* | pgfortran*)
9384                                         # Portland Group f77 and f90 compilers
9385           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'
9386           tmp_addflag=' $pic_flag -Mnomain' ;;
9387         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9388           tmp_addflag=' -i_dynamic' ;;
9389         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9390           tmp_addflag=' -i_dynamic -nofor_main' ;;
9391         ifc* | ifort*)                  # Intel Fortran compiler
9392           tmp_addflag=' -nofor_main' ;;
9393         lf95*)                          # Lahey Fortran 8.1
9394           whole_archive_flag_spec=
9395           tmp_sharedflag='--shared' ;;
9396         nagfor*)                        # NAGFOR 5.3
9397           tmp_sharedflag='-Wl,-shared' ;;
9398         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9399           tmp_sharedflag='-qmkshrobj'
9400           tmp_addflag= ;;
9401         nvcc*)  # Cuda Compiler Driver 2.2
9402           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'
9403           compiler_needs_object=yes
9404           ;;
9405         esac
9406         case `$CC -V 2>&1 | sed 5q` in
9407         *Sun\ C*)                       # Sun C 5.9
9408           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'
9409           compiler_needs_object=yes
9410           tmp_sharedflag='-G' ;;
9411         *Sun\ F*)                       # Sun Fortran 8.3
9412           tmp_sharedflag='-G' ;;
9413         esac
9414         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9415
9416         if test yes = "$supports_anon_versioning"; then
9417           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9418             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9419             echo "local: *; };" >> $output_objdir/$libname.ver~
9420             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9421         fi
9422
9423         case $cc_basename in
9424         tcc*)
9425           export_dynamic_flag_spec='-rdynamic'
9426           ;;
9427         xlf* | bgf* | bgxlf* | mpixlf*)
9428           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9429           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9430           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9431           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9432           if test yes = "$supports_anon_versioning"; then
9433             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9434               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9435               echo "local: *; };" >> $output_objdir/$libname.ver~
9436               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9437           fi
9438           ;;
9439         esac
9440       else
9441         ld_shlibs=no
9442       fi
9443       ;;
9444
9445     netbsd* | netbsdelf*-gnu)
9446       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9447         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9448         wlarc=
9449       else
9450         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9451         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9452       fi
9453       ;;
9454
9455     solaris*)
9456       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9457         ld_shlibs=no
9458         cat <<_LT_EOF 1>&2
9459
9460 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9461 *** create shared libraries on Solaris systems.  Therefore, libtool
9462 *** is disabling shared libraries support.  We urge you to upgrade GNU
9463 *** binutils to release 2.9.1 or newer.  Another option is to modify
9464 *** your PATH or compiler configuration so that the native linker is
9465 *** used, and then restart.
9466
9467 _LT_EOF
9468       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9469         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9470         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9471       else
9472         ld_shlibs=no
9473       fi
9474       ;;
9475
9476     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9477       case `$LD -v 2>&1` in
9478         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9479         ld_shlibs=no
9480         cat <<_LT_EOF 1>&2
9481
9482 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9483 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9484 *** is disabling shared libraries support.  We urge you to upgrade GNU
9485 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9486 *** your PATH or compiler configuration so that the native linker is
9487 *** used, and then restart.
9488
9489 _LT_EOF
9490         ;;
9491         *)
9492           # For security reasons, it is highly recommended that you always
9493           # use absolute paths for naming shared libraries, and exclude the
9494           # DT_RUNPATH tag from executables and libraries.  But doing so
9495           # requires that you compile everything twice, which is a pain.
9496           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9497             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9498             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9499             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9500           else
9501             ld_shlibs=no
9502           fi
9503         ;;
9504       esac
9505       ;;
9506
9507     sunos4*)
9508       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9509       wlarc=
9510       hardcode_direct=yes
9511       hardcode_shlibpath_var=no
9512       ;;
9513
9514     *)
9515       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9516         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9517         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9518       else
9519         ld_shlibs=no
9520       fi
9521       ;;
9522     esac
9523
9524     if test no = "$ld_shlibs"; then
9525       runpath_var=
9526       hardcode_libdir_flag_spec=
9527       export_dynamic_flag_spec=
9528       whole_archive_flag_spec=
9529     fi
9530   else
9531     # PORTME fill in a description of your system's linker (not GNU ld)
9532     case $host_os in
9533     aix3*)
9534       allow_undefined_flag=unsupported
9535       always_export_symbols=yes
9536       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'
9537       # Note: this linker hardcodes the directories in LIBPATH if there
9538       # are no directories specified by -L.
9539       hardcode_minus_L=yes
9540       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9541         # Neither direct hardcoding nor static linking is supported with a
9542         # broken collect2.
9543         hardcode_direct=unsupported
9544       fi
9545       ;;
9546
9547     aix[4-9]*)
9548       if test ia64 = "$host_cpu"; then
9549         # On IA64, the linker does run time linking by default, so we don't
9550         # have to do anything special.
9551         aix_use_runtimelinking=no
9552         exp_sym_flag='-Bexport'
9553         no_entry_flag=
9554       else
9555         # If we're using GNU nm, then we don't want the "-C" option.
9556         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9557         # Without the "-l" option, or with the "-B" option, AIX nm treats
9558         # weak defined symbols like other global defined symbols, whereas
9559         # GNU nm marks them as "W".
9560         # While the 'weak' keyword is ignored in the Export File, we need
9561         # it in the Import File for the 'aix-soname' feature, so we have
9562         # to replace the "-B" option with "-P" for AIX nm.
9563         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9564           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9565         else
9566           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9567         fi
9568         aix_use_runtimelinking=no
9569
9570         # Test if we are trying to use run time linking or normal
9571         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9572         # have runtime linking enabled, and use it for executables.
9573         # For shared libraries, we enable/disable runtime linking
9574         # depending on the kind of the shared library created -
9575         # when "with_aix_soname,aix_use_runtimelinking" is:
9576         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9577         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9578         #            lib.a           static archive
9579         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9580         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9581         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9582         #            lib.a(lib.so.V) shared, rtl:no
9583         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9584         #            lib.a           static archive
9585         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9586           for ld_flag in $LDFLAGS; do
9587           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9588             aix_use_runtimelinking=yes
9589             break
9590           fi
9591           done
9592           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9593             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9594             # so we don't have lib.a shared libs to link our executables.
9595             # We have to force runtime linking in this case.
9596             aix_use_runtimelinking=yes
9597             LDFLAGS="$LDFLAGS -Wl,-brtl"
9598           fi
9599           ;;
9600         esac
9601
9602         exp_sym_flag='-bexport'
9603         no_entry_flag='-bnoentry'
9604       fi
9605
9606       # When large executables or shared objects are built, AIX ld can
9607       # have problems creating the table of contents.  If linking a library
9608       # or program results in "error TOC overflow" add -mminimal-toc to
9609       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9610       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9611
9612       archive_cmds=''
9613       hardcode_direct=yes
9614       hardcode_direct_absolute=yes
9615       hardcode_libdir_separator=':'
9616       link_all_deplibs=yes
9617       file_list_spec='$wl-f,'
9618       case $with_aix_soname,$aix_use_runtimelinking in
9619       aix,*) ;; # traditional, no import file
9620       svr4,* | *,yes) # use import file
9621         # The Import File defines what to hardcode.
9622         hardcode_direct=no
9623         hardcode_direct_absolute=no
9624         ;;
9625       esac
9626
9627       if test yes = "$GCC"; then
9628         case $host_os in aix4.[012]|aix4.[012].*)
9629         # We only want to do this on AIX 4.2 and lower, the check
9630         # below for broken collect2 doesn't work under 4.3+
9631           collect2name=`$CC -print-prog-name=collect2`
9632           if test -f "$collect2name" &&
9633            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9634           then
9635           # We have reworked collect2
9636           :
9637           else
9638           # We have old collect2
9639           hardcode_direct=unsupported
9640           # It fails to find uninstalled libraries when the uninstalled
9641           # path is not listed in the libpath.  Setting hardcode_minus_L
9642           # to unsupported forces relinking
9643           hardcode_minus_L=yes
9644           hardcode_libdir_flag_spec='-L$libdir'
9645           hardcode_libdir_separator=
9646           fi
9647           ;;
9648         esac
9649         shared_flag='-shared'
9650         if test yes = "$aix_use_runtimelinking"; then
9651           shared_flag="$shared_flag "'$wl-G'
9652         fi
9653         # Need to ensure runtime linking is disabled for the traditional
9654         # shared library, or the linker may eventually find shared libraries
9655         # /with/ Import File - we do not want to mix them.
9656         shared_flag_aix='-shared'
9657         shared_flag_svr4='-shared $wl-G'
9658       else
9659         # not using gcc
9660         if test ia64 = "$host_cpu"; then
9661         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9662         # chokes on -Wl,-G. The following line is correct:
9663           shared_flag='-G'
9664         else
9665           if test yes = "$aix_use_runtimelinking"; then
9666             shared_flag='$wl-G'
9667           else
9668             shared_flag='$wl-bM:SRE'
9669           fi
9670           shared_flag_aix='$wl-bM:SRE'
9671           shared_flag_svr4='$wl-G'
9672         fi
9673       fi
9674
9675       export_dynamic_flag_spec='$wl-bexpall'
9676       # It seems that -bexpall does not export symbols beginning with
9677       # underscore (_), so it is better to generate a list of symbols to export.
9678       always_export_symbols=yes
9679       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9680         # Warning - without using the other runtime loading flags (-brtl),
9681         # -berok will link without error, but may produce a broken library.
9682         allow_undefined_flag='-berok'
9683         # Determine the default libpath from the value encoded in an
9684         # empty executable.
9685         if test set = "${lt_cv_aix_libpath+set}"; then
9686   aix_libpath=$lt_cv_aix_libpath
9687 else
9688   if test ${lt_cv_aix_libpath_+y}
9689 then :
9690   printf %s "(cached) " >&6
9691 else $as_nop
9692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h.  */
9694
9695 int
9696 main (void)
9697 {
9698
9699   ;
9700   return 0;
9701 }
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"
9704 then :
9705
9706   lt_aix_libpath_sed='
9707       /Import File Strings/,/^$/ {
9708           /^0/ {
9709               s/^0  *\([^ ]*\) *$/\1/
9710               p
9711           }
9712       }'
9713   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9714   # Check for a 64-bit object if we didn't find anything.
9715   if test -z "$lt_cv_aix_libpath_"; then
9716     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9717   fi
9718 fi
9719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9720     conftest$ac_exeext conftest.$ac_ext
9721   if test -z "$lt_cv_aix_libpath_"; then
9722     lt_cv_aix_libpath_=/usr/lib:/lib
9723   fi
9724
9725 fi
9726
9727   aix_libpath=$lt_cv_aix_libpath_
9728 fi
9729
9730         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9731         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9732       else
9733         if test ia64 = "$host_cpu"; then
9734           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9735           allow_undefined_flag="-z nodefs"
9736           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"
9737         else
9738          # Determine the default libpath from the value encoded in an
9739          # empty executable.
9740          if test set = "${lt_cv_aix_libpath+set}"; then
9741   aix_libpath=$lt_cv_aix_libpath
9742 else
9743   if test ${lt_cv_aix_libpath_+y}
9744 then :
9745   printf %s "(cached) " >&6
9746 else $as_nop
9747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h.  */
9749
9750 int
9751 main (void)
9752 {
9753
9754   ;
9755   return 0;
9756 }
9757 _ACEOF
9758 if ac_fn_c_try_link "$LINENO"
9759 then :
9760
9761   lt_aix_libpath_sed='
9762       /Import File Strings/,/^$/ {
9763           /^0/ {
9764               s/^0  *\([^ ]*\) *$/\1/
9765               p
9766           }
9767       }'
9768   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9769   # Check for a 64-bit object if we didn't find anything.
9770   if test -z "$lt_cv_aix_libpath_"; then
9771     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9772   fi
9773 fi
9774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9775     conftest$ac_exeext conftest.$ac_ext
9776   if test -z "$lt_cv_aix_libpath_"; then
9777     lt_cv_aix_libpath_=/usr/lib:/lib
9778   fi
9779
9780 fi
9781
9782   aix_libpath=$lt_cv_aix_libpath_
9783 fi
9784
9785          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9786           # Warning - without using the other run time loading flags,
9787           # -berok will link without error, but may produce a broken library.
9788           no_undefined_flag=' $wl-bernotok'
9789           allow_undefined_flag=' $wl-berok'
9790           if test yes = "$with_gnu_ld"; then
9791             # We only use this code for GNU lds that support --whole-archive.
9792             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9793           else
9794             # Exported symbols can be pulled into shared objects from archives
9795             whole_archive_flag_spec='$convenience'
9796           fi
9797           archive_cmds_need_lc=yes
9798           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9799           # -brtl affects multiple linker settings, -berok does not and is overridden later
9800           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9801           if test svr4 != "$with_aix_soname"; then
9802             # This is similar to how AIX traditionally builds its shared libraries.
9803             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9804           fi
9805           if test aix != "$with_aix_soname"; then
9806             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9807           else
9808             # used by -dlpreopen to get the symbols
9809             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9810           fi
9811           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9812         fi
9813       fi
9814       ;;
9815
9816     amigaos*)
9817       case $host_cpu in
9818       powerpc)
9819             # see comment about AmigaOS4 .so support
9820             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9821             archive_expsym_cmds=''
9822         ;;
9823       m68k)
9824             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)'
9825             hardcode_libdir_flag_spec='-L$libdir'
9826             hardcode_minus_L=yes
9827         ;;
9828       esac
9829       ;;
9830
9831     bsdi[45]*)
9832       export_dynamic_flag_spec=-rdynamic
9833       ;;
9834
9835     cygwin* | mingw* | pw32* | cegcc*)
9836       # When not using gcc, we currently assume that we are using
9837       # Microsoft Visual C++.
9838       # hardcode_libdir_flag_spec is actually meaningless, as there is
9839       # no search path for DLLs.
9840       case $cc_basename in
9841       cl*)
9842         # Native MSVC
9843         hardcode_libdir_flag_spec=' '
9844         allow_undefined_flag=unsupported
9845         always_export_symbols=yes
9846         file_list_spec='@'
9847         # Tell ltmain to make .lib files, not .a files.
9848         libext=lib
9849         # Tell ltmain to make .dll files, not .so files.
9850         shrext_cmds=.dll
9851         # FIXME: Setting linknames here is a bad hack.
9852         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9853         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9854             cp "$export_symbols" "$output_objdir/$soname.def";
9855             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9856           else
9857             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9858           fi~
9859           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9860           linknames='
9861         # The linker will not automatically build a static lib if we build a DLL.
9862         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9863         enable_shared_with_static_runtimes=yes
9864         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9865         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9866         # Don't use ranlib
9867         old_postinstall_cmds='chmod 644 $oldlib'
9868         postlink_cmds='lt_outputfile="@OUTPUT@"~
9869           lt_tool_outputfile="@TOOL_OUTPUT@"~
9870           case $lt_outputfile in
9871             *.exe|*.EXE) ;;
9872             *)
9873               lt_outputfile=$lt_outputfile.exe
9874               lt_tool_outputfile=$lt_tool_outputfile.exe
9875               ;;
9876           esac~
9877           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9878             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9879             $RM "$lt_outputfile.manifest";
9880           fi'
9881         ;;
9882       *)
9883         # Assume MSVC wrapper
9884         hardcode_libdir_flag_spec=' '
9885         allow_undefined_flag=unsupported
9886         # Tell ltmain to make .lib files, not .a files.
9887         libext=lib
9888         # Tell ltmain to make .dll files, not .so files.
9889         shrext_cmds=.dll
9890         # FIXME: Setting linknames here is a bad hack.
9891         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9892         # The linker will automatically build a .lib file if we build a DLL.
9893         old_archive_from_new_cmds='true'
9894         # FIXME: Should let the user specify the lib program.
9895         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9896         enable_shared_with_static_runtimes=yes
9897         ;;
9898       esac
9899       ;;
9900
9901     darwin* | rhapsody*)
9902
9903
9904   archive_cmds_need_lc=no
9905   hardcode_direct=no
9906   hardcode_automatic=yes
9907   hardcode_shlibpath_var=unsupported
9908   if test yes = "$lt_cv_ld_force_load"; then
9909     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\"`'
9910
9911   else
9912     whole_archive_flag_spec=''
9913   fi
9914   link_all_deplibs=yes
9915   allow_undefined_flag=$_lt_dar_allow_undefined
9916   case $cc_basename in
9917      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9918      *) _lt_dar_can_shared=$GCC ;;
9919   esac
9920   if test yes = "$_lt_dar_can_shared"; then
9921     output_verbose_link_cmd=func_echo_all
9922     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9923     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9924     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"
9925     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"
9926
9927   else
9928   ld_shlibs=no
9929   fi
9930
9931       ;;
9932
9933     dgux*)
9934       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9935       hardcode_libdir_flag_spec='-L$libdir'
9936       hardcode_shlibpath_var=no
9937       ;;
9938
9939     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9940     # support.  Future versions do this automatically, but an explicit c++rt0.o
9941     # does not break anything, and helps significantly (at the cost of a little
9942     # extra space).
9943     freebsd2.2*)
9944       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9945       hardcode_libdir_flag_spec='-R$libdir'
9946       hardcode_direct=yes
9947       hardcode_shlibpath_var=no
9948       ;;
9949
9950     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9951     freebsd2.*)
9952       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9953       hardcode_direct=yes
9954       hardcode_minus_L=yes
9955       hardcode_shlibpath_var=no
9956       ;;
9957
9958     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9959     freebsd* | dragonfly*)
9960       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9961       hardcode_libdir_flag_spec='-R$libdir'
9962       hardcode_direct=yes
9963       hardcode_shlibpath_var=no
9964       ;;
9965
9966     hpux9*)
9967       if test yes = "$GCC"; then
9968         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9969       else
9970         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9971       fi
9972       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9973       hardcode_libdir_separator=:
9974       hardcode_direct=yes
9975
9976       # hardcode_minus_L: Not really in the search PATH,
9977       # but as the default location of the library.
9978       hardcode_minus_L=yes
9979       export_dynamic_flag_spec='$wl-E'
9980       ;;
9981
9982     hpux10*)
9983       if test yes,no = "$GCC,$with_gnu_ld"; then
9984         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9985       else
9986         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9987       fi
9988       if test no = "$with_gnu_ld"; then
9989         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9990         hardcode_libdir_separator=:
9991         hardcode_direct=yes
9992         hardcode_direct_absolute=yes
9993         export_dynamic_flag_spec='$wl-E'
9994         # hardcode_minus_L: Not really in the search PATH,
9995         # but as the default location of the library.
9996         hardcode_minus_L=yes
9997       fi
9998       ;;
9999
10000     hpux11*)
10001       if test yes,no = "$GCC,$with_gnu_ld"; then
10002         case $host_cpu in
10003         hppa*64*)
10004           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10005           ;;
10006         ia64*)
10007           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10008           ;;
10009         *)
10010           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10011           ;;
10012         esac
10013       else
10014         case $host_cpu in
10015         hppa*64*)
10016           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10017           ;;
10018         ia64*)
10019           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10020           ;;
10021         *)
10022
10023           # Older versions of the 11.00 compiler do not understand -b yet
10024           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10025           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10026 printf %s "checking if $CC understands -b... " >&6; }
10027 if test ${lt_cv_prog_compiler__b+y}
10028 then :
10029   printf %s "(cached) " >&6
10030 else $as_nop
10031   lt_cv_prog_compiler__b=no
10032    save_LDFLAGS=$LDFLAGS
10033    LDFLAGS="$LDFLAGS -b"
10034    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10035    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10036      # The linker can only warn and ignore the option if not recognized
10037      # So say no if there are warnings
10038      if test -s conftest.err; then
10039        # Append any errors to the config.log.
10040        cat conftest.err 1>&5
10041        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10042        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10043        if diff conftest.exp conftest.er2 >/dev/null; then
10044          lt_cv_prog_compiler__b=yes
10045        fi
10046      else
10047        lt_cv_prog_compiler__b=yes
10048      fi
10049    fi
10050    $RM -r conftest*
10051    LDFLAGS=$save_LDFLAGS
10052
10053 fi
10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10055 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10056
10057 if test yes = "$lt_cv_prog_compiler__b"; then
10058     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10059 else
10060     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10061 fi
10062
10063           ;;
10064         esac
10065       fi
10066       if test no = "$with_gnu_ld"; then
10067         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10068         hardcode_libdir_separator=:
10069
10070         case $host_cpu in
10071         hppa*64*|ia64*)
10072           hardcode_direct=no
10073           hardcode_shlibpath_var=no
10074           ;;
10075         *)
10076           hardcode_direct=yes
10077           hardcode_direct_absolute=yes
10078           export_dynamic_flag_spec='$wl-E'
10079
10080           # hardcode_minus_L: Not really in the search PATH,
10081           # but as the default location of the library.
10082           hardcode_minus_L=yes
10083           ;;
10084         esac
10085       fi
10086       ;;
10087
10088     irix5* | irix6* | nonstopux*)
10089       if test yes = "$GCC"; then
10090         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'
10091         # Try to use the -exported_symbol ld option, if it does not
10092         # work, assume that -exports_file does not work either and
10093         # implicitly export all symbols.
10094         # This should be the same for all languages, so no per-tag cache variable.
10095         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10096 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10097 if test ${lt_cv_irix_exported_symbol+y}
10098 then :
10099   printf %s "(cached) " >&6
10100 else $as_nop
10101   save_LDFLAGS=$LDFLAGS
10102            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10103            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h.  */
10105 int foo (void) { return 0; }
10106 _ACEOF
10107 if ac_fn_c_try_link "$LINENO"
10108 then :
10109   lt_cv_irix_exported_symbol=yes
10110 else $as_nop
10111   lt_cv_irix_exported_symbol=no
10112 fi
10113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10114     conftest$ac_exeext conftest.$ac_ext
10115            LDFLAGS=$save_LDFLAGS
10116 fi
10117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10118 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10119         if test yes = "$lt_cv_irix_exported_symbol"; then
10120           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'
10121         fi
10122         link_all_deplibs=no
10123       else
10124         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'
10125         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'
10126       fi
10127       archive_cmds_need_lc='no'
10128       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10129       hardcode_libdir_separator=:
10130       inherit_rpath=yes
10131       link_all_deplibs=yes
10132       ;;
10133
10134     linux*)
10135       case $cc_basename in
10136       tcc*)
10137         # Fabrice Bellard et al's Tiny C Compiler
10138         ld_shlibs=yes
10139         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10140         ;;
10141       esac
10142       ;;
10143
10144     netbsd* | netbsdelf*-gnu)
10145       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10146         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10147       else
10148         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10149       fi
10150       hardcode_libdir_flag_spec='-R$libdir'
10151       hardcode_direct=yes
10152       hardcode_shlibpath_var=no
10153       ;;
10154
10155     newsos6)
10156       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157       hardcode_direct=yes
10158       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10159       hardcode_libdir_separator=:
10160       hardcode_shlibpath_var=no
10161       ;;
10162
10163     *nto* | *qnx*)
10164       ;;
10165
10166     openbsd* | bitrig*)
10167       if test -f /usr/libexec/ld.so; then
10168         hardcode_direct=yes
10169         hardcode_shlibpath_var=no
10170         hardcode_direct_absolute=yes
10171         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10172           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10173           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10174           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10175           export_dynamic_flag_spec='$wl-E'
10176         else
10177           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10178           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10179         fi
10180       else
10181         ld_shlibs=no
10182       fi
10183       ;;
10184
10185     os2*)
10186       hardcode_libdir_flag_spec='-L$libdir'
10187       hardcode_minus_L=yes
10188       allow_undefined_flag=unsupported
10189       shrext_cmds=.dll
10190       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10191         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10192         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10193         $ECHO EXPORTS >> $output_objdir/$libname.def~
10194         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10195         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10196         emximp -o $lib $output_objdir/$libname.def'
10197       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10198         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10199         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10200         $ECHO EXPORTS >> $output_objdir/$libname.def~
10201         prefix_cmds="$SED"~
10202         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10203           prefix_cmds="$prefix_cmds -e 1d";
10204         fi~
10205         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10206         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10207         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10208         emximp -o $lib $output_objdir/$libname.def'
10209       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10210       enable_shared_with_static_runtimes=yes
10211       ;;
10212
10213     osf3*)
10214       if test yes = "$GCC"; then
10215         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10216         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'
10217       else
10218         allow_undefined_flag=' -expect_unresolved \*'
10219         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'
10220       fi
10221       archive_cmds_need_lc='no'
10222       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10223       hardcode_libdir_separator=:
10224       ;;
10225
10226     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10227       if test yes = "$GCC"; then
10228         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10229         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'
10230         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10231       else
10232         allow_undefined_flag=' -expect_unresolved \*'
10233         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'
10234         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~
10235           $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'
10236
10237         # Both c and cxx compiler support -rpath directly
10238         hardcode_libdir_flag_spec='-rpath $libdir'
10239       fi
10240       archive_cmds_need_lc='no'
10241       hardcode_libdir_separator=:
10242       ;;
10243
10244     solaris*)
10245       no_undefined_flag=' -z defs'
10246       if test yes = "$GCC"; then
10247         wlarc='$wl'
10248         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10249         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10250           $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'
10251       else
10252         case `$CC -V 2>&1` in
10253         *"Compilers 5.0"*)
10254           wlarc=''
10255           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10256           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10257             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10258           ;;
10259         *)
10260           wlarc='$wl'
10261           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10262           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10263             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10264           ;;
10265         esac
10266       fi
10267       hardcode_libdir_flag_spec='-R$libdir'
10268       hardcode_shlibpath_var=no
10269       case $host_os in
10270       solaris2.[0-5] | solaris2.[0-5].*) ;;
10271       *)
10272         # The compiler driver will combine and reorder linker options,
10273         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10274         # but is careful enough not to reorder.
10275         # Supported since Solaris 2.6 (maybe 2.5.1?)
10276         if test yes = "$GCC"; then
10277           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10278         else
10279           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10280         fi
10281         ;;
10282       esac
10283       link_all_deplibs=yes
10284       ;;
10285
10286     sunos4*)
10287       if test sequent = "$host_vendor"; then
10288         # Use $CC to link under sequent, because it throws in some extra .o
10289         # files that make .init and .fini sections work.
10290         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10291       else
10292         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10293       fi
10294       hardcode_libdir_flag_spec='-L$libdir'
10295       hardcode_direct=yes
10296       hardcode_minus_L=yes
10297       hardcode_shlibpath_var=no
10298       ;;
10299
10300     sysv4)
10301       case $host_vendor in
10302         sni)
10303           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304           hardcode_direct=yes # is this really true???
10305         ;;
10306         siemens)
10307           ## LD is ld it makes a PLAMLIB
10308           ## CC just makes a GrossModule.
10309           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10310           reload_cmds='$CC -r -o $output$reload_objs'
10311           hardcode_direct=no
10312         ;;
10313         motorola)
10314           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10316         ;;
10317       esac
10318       runpath_var='LD_RUN_PATH'
10319       hardcode_shlibpath_var=no
10320       ;;
10321
10322     sysv4.3*)
10323       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10324       hardcode_shlibpath_var=no
10325       export_dynamic_flag_spec='-Bexport'
10326       ;;
10327
10328     sysv4*MP*)
10329       if test -d /usr/nec; then
10330         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10331         hardcode_shlibpath_var=no
10332         runpath_var=LD_RUN_PATH
10333         hardcode_runpath_var=yes
10334         ld_shlibs=yes
10335       fi
10336       ;;
10337
10338     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10339       no_undefined_flag='$wl-z,text'
10340       archive_cmds_need_lc=no
10341       hardcode_shlibpath_var=no
10342       runpath_var='LD_RUN_PATH'
10343
10344       if test yes = "$GCC"; then
10345         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10346         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10347       else
10348         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10349         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10350       fi
10351       ;;
10352
10353     sysv5* | sco3.2v5* | sco5v6*)
10354       # Note: We CANNOT use -z defs as we might desire, because we do not
10355       # link with -lc, and that would cause any symbols used from libc to
10356       # always be unresolved, which means just about no library would
10357       # ever link correctly.  If we're not using GNU ld we use -z text
10358       # though, which does catch some bad symbols but isn't as heavy-handed
10359       # as -z defs.
10360       no_undefined_flag='$wl-z,text'
10361       allow_undefined_flag='$wl-z,nodefs'
10362       archive_cmds_need_lc=no
10363       hardcode_shlibpath_var=no
10364       hardcode_libdir_flag_spec='$wl-R,$libdir'
10365       hardcode_libdir_separator=':'
10366       link_all_deplibs=yes
10367       export_dynamic_flag_spec='$wl-Bexport'
10368       runpath_var='LD_RUN_PATH'
10369
10370       if test yes = "$GCC"; then
10371         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10372         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10373       else
10374         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10375         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10376       fi
10377       ;;
10378
10379     uts4*)
10380       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10381       hardcode_libdir_flag_spec='-L$libdir'
10382       hardcode_shlibpath_var=no
10383       ;;
10384
10385     *)
10386       ld_shlibs=no
10387       ;;
10388     esac
10389
10390     if test sni = "$host_vendor"; then
10391       case $host in
10392       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10393         export_dynamic_flag_spec='$wl-Blargedynsym'
10394         ;;
10395       esac
10396     fi
10397   fi
10398
10399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10400 printf "%s\n" "$ld_shlibs" >&6; }
10401 test no = "$ld_shlibs" && can_build_shared=no
10402
10403 with_gnu_ld=$with_gnu_ld
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419 #
10420 # Do we need to explicitly link libc?
10421 #
10422 case "x$archive_cmds_need_lc" in
10423 x|xyes)
10424   # Assume -lc should be added
10425   archive_cmds_need_lc=yes
10426
10427   if test yes,yes = "$GCC,$enable_shared"; then
10428     case $archive_cmds in
10429     *'~'*)
10430       # FIXME: we may have to deal with multi-command sequences.
10431       ;;
10432     '$CC '*)
10433       # Test whether the compiler implicitly links with -lc since on some
10434       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10435       # to ld, don't add -lc before -lgcc.
10436       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10437 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10438 if test ${lt_cv_archive_cmds_need_lc+y}
10439 then :
10440   printf %s "(cached) " >&6
10441 else $as_nop
10442   $RM conftest*
10443         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10444
10445         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10446   (eval $ac_compile) 2>&5
10447   ac_status=$?
10448   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10449   test $ac_status = 0; } 2>conftest.err; then
10450           soname=conftest
10451           lib=conftest
10452           libobjs=conftest.$ac_objext
10453           deplibs=
10454           wl=$lt_prog_compiler_wl
10455           pic_flag=$lt_prog_compiler_pic
10456           compiler_flags=-v
10457           linker_flags=-v
10458           verstring=
10459           output_objdir=.
10460           libname=conftest
10461           lt_save_allow_undefined_flag=$allow_undefined_flag
10462           allow_undefined_flag=
10463           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10464   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10465   ac_status=$?
10466   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10467   test $ac_status = 0; }
10468           then
10469             lt_cv_archive_cmds_need_lc=no
10470           else
10471             lt_cv_archive_cmds_need_lc=yes
10472           fi
10473           allow_undefined_flag=$lt_save_allow_undefined_flag
10474         else
10475           cat conftest.err 1>&5
10476         fi
10477         $RM conftest*
10478
10479 fi
10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10481 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10482       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10483       ;;
10484     esac
10485   fi
10486   ;;
10487 esac
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10641 printf %s "checking dynamic linker characteristics... " >&6; }
10642
10643 if test yes = "$GCC"; then
10644   case $host_os in
10645     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10646     *) lt_awk_arg='/^libraries:/' ;;
10647   esac
10648   case $host_os in
10649     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10650     *) lt_sed_strip_eq='s|=/|/|g' ;;
10651   esac
10652   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10653   case $lt_search_path_spec in
10654   *\;*)
10655     # if the path contains ";" then we assume it to be the separator
10656     # otherwise default to the standard path separator (i.e. ":") - it is
10657     # assumed that no part of a normal pathname contains ";" but that should
10658     # okay in the real world where ";" in dirpaths is itself problematic.
10659     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10660     ;;
10661   *)
10662     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10663     ;;
10664   esac
10665   # Ok, now we have the path, separated by spaces, we can step through it
10666   # and add multilib dir if necessary...
10667   lt_tmp_lt_search_path_spec=
10668   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10669   # ...but if some path component already ends with the multilib dir we assume
10670   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10671   case "$lt_multi_os_dir; $lt_search_path_spec " in
10672   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10673     lt_multi_os_dir=
10674     ;;
10675   esac
10676   for lt_sys_path in $lt_search_path_spec; do
10677     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10678       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10679     elif test -n "$lt_multi_os_dir"; then
10680       test -d "$lt_sys_path" && \
10681         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10682     fi
10683   done
10684   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10685 BEGIN {RS = " "; FS = "/|\n";} {
10686   lt_foo = "";
10687   lt_count = 0;
10688   for (lt_i = NF; lt_i > 0; lt_i--) {
10689     if ($lt_i != "" && $lt_i != ".") {
10690       if ($lt_i == "..") {
10691         lt_count++;
10692       } else {
10693         if (lt_count == 0) {
10694           lt_foo = "/" $lt_i lt_foo;
10695         } else {
10696           lt_count--;
10697         }
10698       }
10699     }
10700   }
10701   if (lt_foo != "") { lt_freq[lt_foo]++; }
10702   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10703 }'`
10704   # AWK program above erroneously prepends '/' to C:/dos/paths
10705   # for these hosts.
10706   case $host_os in
10707     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10708       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10709   esac
10710   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10711 else
10712   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10713 fi
10714 library_names_spec=
10715 libname_spec='lib$name'
10716 soname_spec=
10717 shrext_cmds=.so
10718 postinstall_cmds=
10719 postuninstall_cmds=
10720 finish_cmds=
10721 finish_eval=
10722 shlibpath_var=
10723 shlibpath_overrides_runpath=unknown
10724 version_type=none
10725 dynamic_linker="$host_os ld.so"
10726 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10727 need_lib_prefix=unknown
10728 hardcode_into_libs=no
10729
10730 # when you set need_version to no, make sure it does not cause -set_version
10731 # flags to be left without arguments
10732 need_version=unknown
10733
10734
10735
10736 case $host_os in
10737 aix3*)
10738   version_type=linux # correct to gnu/linux during the next big refactor
10739   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10740   shlibpath_var=LIBPATH
10741
10742   # AIX 3 has no versioning support, so we append a major version to the name.
10743   soname_spec='$libname$release$shared_ext$major'
10744   ;;
10745
10746 aix[4-9]*)
10747   version_type=linux # correct to gnu/linux during the next big refactor
10748   need_lib_prefix=no
10749   need_version=no
10750   hardcode_into_libs=yes
10751   if test ia64 = "$host_cpu"; then
10752     # AIX 5 supports IA64
10753     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10754     shlibpath_var=LD_LIBRARY_PATH
10755   else
10756     # With GCC up to 2.95.x, collect2 would create an import file
10757     # for dependence libraries.  The import file would start with
10758     # the line '#! .'.  This would cause the generated library to
10759     # depend on '.', always an invalid library.  This was fixed in
10760     # development snapshots of GCC prior to 3.0.
10761     case $host_os in
10762       aix4 | aix4.[01] | aix4.[01].*)
10763       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10764            echo ' yes '
10765            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10766         :
10767       else
10768         can_build_shared=no
10769       fi
10770       ;;
10771     esac
10772     # Using Import Files as archive members, it is possible to support
10773     # filename-based versioning of shared library archives on AIX. While
10774     # this would work for both with and without runtime linking, it will
10775     # prevent static linking of such archives. So we do filename-based
10776     # shared library versioning with .so extension only, which is used
10777     # when both runtime linking and shared linking is enabled.
10778     # Unfortunately, runtime linking may impact performance, so we do
10779     # not want this to be the default eventually. Also, we use the
10780     # versioned .so libs for executables only if there is the -brtl
10781     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10782     # To allow for filename-based versioning support, we need to create
10783     # libNAME.so.V as an archive file, containing:
10784     # *) an Import File, referring to the versioned filename of the
10785     #    archive as well as the shared archive member, telling the
10786     #    bitwidth (32 or 64) of that shared object, and providing the
10787     #    list of exported symbols of that shared object, eventually
10788     #    decorated with the 'weak' keyword
10789     # *) the shared object with the F_LOADONLY flag set, to really avoid
10790     #    it being seen by the linker.
10791     # At run time we better use the real file rather than another symlink,
10792     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10793
10794     case $with_aix_soname,$aix_use_runtimelinking in
10795     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10796     # soname into executable. Probably we can add versioning support to
10797     # collect2, so additional links can be useful in future.
10798     aix,yes) # traditional libtool
10799       dynamic_linker='AIX unversionable lib.so'
10800       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10801       # instead of lib<name>.a to let people know that these are not
10802       # typical AIX shared libraries.
10803       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10804       ;;
10805     aix,no) # traditional AIX only
10806       dynamic_linker='AIX lib.a(lib.so.V)'
10807       # We preserve .a as extension for shared libraries through AIX4.2
10808       # and later when we are not doing run time linking.
10809       library_names_spec='$libname$release.a $libname.a'
10810       soname_spec='$libname$release$shared_ext$major'
10811       ;;
10812     svr4,*) # full svr4 only
10813       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10814       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10815       # We do not specify a path in Import Files, so LIBPATH fires.
10816       shlibpath_overrides_runpath=yes
10817       ;;
10818     *,yes) # both, prefer svr4
10819       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10820       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10821       # unpreferred sharedlib libNAME.a needs extra handling
10822       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10823       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10824       # We do not specify a path in Import Files, so LIBPATH fires.
10825       shlibpath_overrides_runpath=yes
10826       ;;
10827     *,no) # both, prefer aix
10828       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10829       library_names_spec='$libname$release.a $libname.a'
10830       soname_spec='$libname$release$shared_ext$major'
10831       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10832       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10833       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10834       ;;
10835     esac
10836     shlibpath_var=LIBPATH
10837   fi
10838   ;;
10839
10840 amigaos*)
10841   case $host_cpu in
10842   powerpc)
10843     # Since July 2007 AmigaOS4 officially supports .so libraries.
10844     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10845     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10846     ;;
10847   m68k)
10848     library_names_spec='$libname.ixlibrary $libname.a'
10849     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10850     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10851     ;;
10852   esac
10853   ;;
10854
10855 beos*)
10856   library_names_spec='$libname$shared_ext'
10857   dynamic_linker="$host_os ld.so"
10858   shlibpath_var=LIBRARY_PATH
10859   ;;
10860
10861 bsdi[45]*)
10862   version_type=linux # correct to gnu/linux during the next big refactor
10863   need_version=no
10864   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10865   soname_spec='$libname$release$shared_ext$major'
10866   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10867   shlibpath_var=LD_LIBRARY_PATH
10868   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10869   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10870   # the default ld.so.conf also contains /usr/contrib/lib and
10871   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10872   # libtool to hard-code these into programs
10873   ;;
10874
10875 cygwin* | mingw* | pw32* | cegcc*)
10876   version_type=windows
10877   shrext_cmds=.dll
10878   need_version=no
10879   need_lib_prefix=no
10880
10881   case $GCC,$cc_basename in
10882   yes,*)
10883     # gcc
10884     library_names_spec='$libname.dll.a'
10885     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10886     postinstall_cmds='base_file=`basename \$file`~
10887       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10888       dldir=$destdir/`dirname \$dlpath`~
10889       test -d \$dldir || mkdir -p \$dldir~
10890       $install_prog $dir/$dlname \$dldir/$dlname~
10891       chmod a+x \$dldir/$dlname~
10892       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10893         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10894       fi'
10895     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10896       dlpath=$dir/\$dldll~
10897        $RM \$dlpath'
10898     shlibpath_overrides_runpath=yes
10899
10900     case $host_os in
10901     cygwin*)
10902       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10903       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10904
10905       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10906       ;;
10907     mingw* | cegcc*)
10908       # MinGW DLLs use traditional 'lib' prefix
10909       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10910       ;;
10911     pw32*)
10912       # pw32 DLLs use 'pw' prefix rather than 'lib'
10913       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10914       ;;
10915     esac
10916     dynamic_linker='Win32 ld.exe'
10917     ;;
10918
10919   *,cl*)
10920     # Native MSVC
10921     libname_spec='$name'
10922     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10923     library_names_spec='$libname.dll.lib'
10924
10925     case $build_os in
10926     mingw*)
10927       sys_lib_search_path_spec=
10928       lt_save_ifs=$IFS
10929       IFS=';'
10930       for lt_path in $LIB
10931       do
10932         IFS=$lt_save_ifs
10933         # Let DOS variable expansion print the short 8.3 style file name.
10934         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10935         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10936       done
10937       IFS=$lt_save_ifs
10938       # Convert to MSYS style.
10939       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10940       ;;
10941     cygwin*)
10942       # Convert to unix form, then to dos form, then back to unix form
10943       # but this time dos style (no spaces!) so that the unix form looks
10944       # like /cygdrive/c/PROGRA~1:/cygdr...
10945       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10946       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10947       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10948       ;;
10949     *)
10950       sys_lib_search_path_spec=$LIB
10951       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10952         # It is most probably a Windows format PATH.
10953         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10954       else
10955         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10956       fi
10957       # FIXME: find the short name or the path components, as spaces are
10958       # common. (e.g. "Program Files" -> "PROGRA~1")
10959       ;;
10960     esac
10961
10962     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10963     postinstall_cmds='base_file=`basename \$file`~
10964       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10965       dldir=$destdir/`dirname \$dlpath`~
10966       test -d \$dldir || mkdir -p \$dldir~
10967       $install_prog $dir/$dlname \$dldir/$dlname'
10968     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10969       dlpath=$dir/\$dldll~
10970        $RM \$dlpath'
10971     shlibpath_overrides_runpath=yes
10972     dynamic_linker='Win32 link.exe'
10973     ;;
10974
10975   *)
10976     # Assume MSVC wrapper
10977     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10978     dynamic_linker='Win32 ld.exe'
10979     ;;
10980   esac
10981   # FIXME: first we should search . and the directory the executable is in
10982   shlibpath_var=PATH
10983   ;;
10984
10985 darwin* | rhapsody*)
10986   dynamic_linker="$host_os dyld"
10987   version_type=darwin
10988   need_lib_prefix=no
10989   need_version=no
10990   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10991   soname_spec='$libname$release$major$shared_ext'
10992   shlibpath_overrides_runpath=yes
10993   shlibpath_var=DYLD_LIBRARY_PATH
10994   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10995
10996   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10997   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10998   ;;
10999
11000 dgux*)
11001   version_type=linux # correct to gnu/linux during the next big refactor
11002   need_lib_prefix=no
11003   need_version=no
11004   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11005   soname_spec='$libname$release$shared_ext$major'
11006   shlibpath_var=LD_LIBRARY_PATH
11007   ;;
11008
11009 freebsd* | dragonfly*)
11010   # DragonFly does not have aout.  When/if they implement a new
11011   # versioning mechanism, adjust this.
11012   if test -x /usr/bin/objformat; then
11013     objformat=`/usr/bin/objformat`
11014   else
11015     case $host_os in
11016     freebsd[23].*) objformat=aout ;;
11017     *) objformat=elf ;;
11018     esac
11019   fi
11020   version_type=freebsd-$objformat
11021   case $version_type in
11022     freebsd-elf*)
11023       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11024       soname_spec='$libname$release$shared_ext$major'
11025       need_version=no
11026       need_lib_prefix=no
11027       ;;
11028     freebsd-*)
11029       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11030       need_version=yes
11031       ;;
11032   esac
11033   shlibpath_var=LD_LIBRARY_PATH
11034   case $host_os in
11035   freebsd2.*)
11036     shlibpath_overrides_runpath=yes
11037     ;;
11038   freebsd3.[01]* | freebsdelf3.[01]*)
11039     shlibpath_overrides_runpath=yes
11040     hardcode_into_libs=yes
11041     ;;
11042   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11043   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11044     shlibpath_overrides_runpath=no
11045     hardcode_into_libs=yes
11046     ;;
11047   *) # from 4.6 on, and DragonFly
11048     shlibpath_overrides_runpath=yes
11049     hardcode_into_libs=yes
11050     ;;
11051   esac
11052   ;;
11053
11054 haiku*)
11055   version_type=linux # correct to gnu/linux during the next big refactor
11056   need_lib_prefix=no
11057   need_version=no
11058   dynamic_linker="$host_os runtime_loader"
11059   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11060   soname_spec='$libname$release$shared_ext$major'
11061   shlibpath_var=LIBRARY_PATH
11062   shlibpath_overrides_runpath=no
11063   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11064   hardcode_into_libs=yes
11065   ;;
11066
11067 hpux9* | hpux10* | hpux11*)
11068   # Give a soname corresponding to the major version so that dld.sl refuses to
11069   # link against other versions.
11070   version_type=sunos
11071   need_lib_prefix=no
11072   need_version=no
11073   case $host_cpu in
11074   ia64*)
11075     shrext_cmds='.so'
11076     hardcode_into_libs=yes
11077     dynamic_linker="$host_os dld.so"
11078     shlibpath_var=LD_LIBRARY_PATH
11079     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11080     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11081     soname_spec='$libname$release$shared_ext$major'
11082     if test 32 = "$HPUX_IA64_MODE"; then
11083       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11084       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11085     else
11086       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11087       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11088     fi
11089     ;;
11090   hppa*64*)
11091     shrext_cmds='.sl'
11092     hardcode_into_libs=yes
11093     dynamic_linker="$host_os dld.sl"
11094     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11095     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11096     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11097     soname_spec='$libname$release$shared_ext$major'
11098     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11099     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11100     ;;
11101   *)
11102     shrext_cmds='.sl'
11103     dynamic_linker="$host_os dld.sl"
11104     shlibpath_var=SHLIB_PATH
11105     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11106     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11107     soname_spec='$libname$release$shared_ext$major'
11108     ;;
11109   esac
11110   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11111   postinstall_cmds='chmod 555 $lib'
11112   # or fails outright, so override atomically:
11113   install_override_mode=555
11114   ;;
11115
11116 interix[3-9]*)
11117   version_type=linux # correct to gnu/linux during the next big refactor
11118   need_lib_prefix=no
11119   need_version=no
11120   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11121   soname_spec='$libname$release$shared_ext$major'
11122   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11123   shlibpath_var=LD_LIBRARY_PATH
11124   shlibpath_overrides_runpath=no
11125   hardcode_into_libs=yes
11126   ;;
11127
11128 irix5* | irix6* | nonstopux*)
11129   case $host_os in
11130     nonstopux*) version_type=nonstopux ;;
11131     *)
11132         if test yes = "$lt_cv_prog_gnu_ld"; then
11133                 version_type=linux # correct to gnu/linux during the next big refactor
11134         else
11135                 version_type=irix
11136         fi ;;
11137   esac
11138   need_lib_prefix=no
11139   need_version=no
11140   soname_spec='$libname$release$shared_ext$major'
11141   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11142   case $host_os in
11143   irix5* | nonstopux*)
11144     libsuff= shlibsuff=
11145     ;;
11146   *)
11147     case $LD in # libtool.m4 will add one of these switches to LD
11148     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11149       libsuff= shlibsuff= libmagic=32-bit;;
11150     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11151       libsuff=32 shlibsuff=N32 libmagic=N32;;
11152     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11153       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11154     *) libsuff= shlibsuff= libmagic=never-match;;
11155     esac
11156     ;;
11157   esac
11158   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11159   shlibpath_overrides_runpath=no
11160   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11161   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11162   hardcode_into_libs=yes
11163   ;;
11164
11165 # No shared lib support for Linux oldld, aout, or coff.
11166 linux*oldld* | linux*aout* | linux*coff*)
11167   dynamic_linker=no
11168   ;;
11169
11170 linux*android*)
11171   version_type=none # Android doesn't support versioned libraries.
11172   need_lib_prefix=no
11173   need_version=no
11174   library_names_spec='$libname$release$shared_ext'
11175   soname_spec='$libname$release$shared_ext'
11176   finish_cmds=
11177   shlibpath_var=LD_LIBRARY_PATH
11178   shlibpath_overrides_runpath=yes
11179
11180   # This implies no fast_install, which is unacceptable.
11181   # Some rework will be needed to allow for fast_install
11182   # before this can be enabled.
11183   hardcode_into_libs=yes
11184
11185   dynamic_linker='Android linker'
11186   # Don't embed -rpath directories since the linker doesn't support them.
11187   hardcode_libdir_flag_spec='-L$libdir'
11188   ;;
11189
11190 # This must be glibc/ELF.
11191 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11192   version_type=linux # correct to gnu/linux during the next big refactor
11193   need_lib_prefix=no
11194   need_version=no
11195   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11196   soname_spec='$libname$release$shared_ext$major'
11197   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11198   shlibpath_var=LD_LIBRARY_PATH
11199   shlibpath_overrides_runpath=no
11200
11201   # Some binutils ld are patched to set DT_RUNPATH
11202   if test ${lt_cv_shlibpath_overrides_runpath+y}
11203 then :
11204   printf %s "(cached) " >&6
11205 else $as_nop
11206   lt_cv_shlibpath_overrides_runpath=no
11207     save_LDFLAGS=$LDFLAGS
11208     save_libdir=$libdir
11209     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11210          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11211     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11212 /* end confdefs.h.  */
11213
11214 int
11215 main (void)
11216 {
11217
11218   ;
11219   return 0;
11220 }
11221 _ACEOF
11222 if ac_fn_c_try_link "$LINENO"
11223 then :
11224   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11225 then :
11226   lt_cv_shlibpath_overrides_runpath=yes
11227 fi
11228 fi
11229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11230     conftest$ac_exeext conftest.$ac_ext
11231     LDFLAGS=$save_LDFLAGS
11232     libdir=$save_libdir
11233
11234 fi
11235
11236   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11237
11238   # This implies no fast_install, which is unacceptable.
11239   # Some rework will be needed to allow for fast_install
11240   # before this can be enabled.
11241   hardcode_into_libs=yes
11242
11243   # Ideally, we could use ldconfig to report *all* directores which are
11244   # searched for libraries, however this is still not possible.  Aside from not
11245   # being certain /sbin/ldconfig is available, command
11246   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11247   # even though it is searched at run-time.  Try to do the best guess by
11248   # appending ld.so.conf contents (and includes) to the search path.
11249   if test -f /etc/ld.so.conf; then
11250     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' ' '`
11251     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11252   fi
11253
11254   # We used to test for /lib/ld.so.1 and disable shared libraries on
11255   # powerpc, because MkLinux only supported shared libraries with the
11256   # GNU dynamic linker.  Since this was broken with cross compilers,
11257   # most powerpc-linux boxes support dynamic linking these days and
11258   # people can always --disable-shared, the test was removed, and we
11259   # assume the GNU/Linux dynamic linker is in use.
11260   dynamic_linker='GNU/Linux ld.so'
11261   ;;
11262
11263 netbsdelf*-gnu)
11264   version_type=linux
11265   need_lib_prefix=no
11266   need_version=no
11267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11268   soname_spec='${libname}${release}${shared_ext}$major'
11269   shlibpath_var=LD_LIBRARY_PATH
11270   shlibpath_overrides_runpath=no
11271   hardcode_into_libs=yes
11272   dynamic_linker='NetBSD ld.elf_so'
11273   ;;
11274
11275 netbsd*)
11276   version_type=sunos
11277   need_lib_prefix=no
11278   need_version=no
11279   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11280     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11281     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11282     dynamic_linker='NetBSD (a.out) ld.so'
11283   else
11284     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11285     soname_spec='$libname$release$shared_ext$major'
11286     dynamic_linker='NetBSD ld.elf_so'
11287   fi
11288   shlibpath_var=LD_LIBRARY_PATH
11289   shlibpath_overrides_runpath=yes
11290   hardcode_into_libs=yes
11291   ;;
11292
11293 newsos6)
11294   version_type=linux # correct to gnu/linux during the next big refactor
11295   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11296   shlibpath_var=LD_LIBRARY_PATH
11297   shlibpath_overrides_runpath=yes
11298   ;;
11299
11300 *nto* | *qnx*)
11301   version_type=qnx
11302   need_lib_prefix=no
11303   need_version=no
11304   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11305   soname_spec='$libname$release$shared_ext$major'
11306   shlibpath_var=LD_LIBRARY_PATH
11307   shlibpath_overrides_runpath=no
11308   hardcode_into_libs=yes
11309   dynamic_linker='ldqnx.so'
11310   ;;
11311
11312 openbsd* | bitrig*)
11313   version_type=sunos
11314   sys_lib_dlsearch_path_spec=/usr/lib
11315   need_lib_prefix=no
11316   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11317     need_version=no
11318   else
11319     need_version=yes
11320   fi
11321   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11322   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11323   shlibpath_var=LD_LIBRARY_PATH
11324   shlibpath_overrides_runpath=yes
11325   ;;
11326
11327 os2*)
11328   libname_spec='$name'
11329   version_type=windows
11330   shrext_cmds=.dll
11331   need_version=no
11332   need_lib_prefix=no
11333   # OS/2 can only load a DLL with a base name of 8 characters or less.
11334   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11335     v=$($ECHO $release$versuffix | tr -d .-);
11336     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11337     $ECHO $n$v`$shared_ext'
11338   library_names_spec='${libname}_dll.$libext'
11339   dynamic_linker='OS/2 ld.exe'
11340   shlibpath_var=BEGINLIBPATH
11341   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11342   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11343   postinstall_cmds='base_file=`basename \$file`~
11344     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11345     dldir=$destdir/`dirname \$dlpath`~
11346     test -d \$dldir || mkdir -p \$dldir~
11347     $install_prog $dir/$dlname \$dldir/$dlname~
11348     chmod a+x \$dldir/$dlname~
11349     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11350       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11351     fi'
11352   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11353     dlpath=$dir/\$dldll~
11354     $RM \$dlpath'
11355   ;;
11356
11357 osf3* | osf4* | osf5*)
11358   version_type=osf
11359   need_lib_prefix=no
11360   need_version=no
11361   soname_spec='$libname$release$shared_ext$major'
11362   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11363   shlibpath_var=LD_LIBRARY_PATH
11364   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11365   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11366   ;;
11367
11368 rdos*)
11369   dynamic_linker=no
11370   ;;
11371
11372 solaris*)
11373   version_type=linux # correct to gnu/linux during the next big refactor
11374   need_lib_prefix=no
11375   need_version=no
11376   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11377   soname_spec='$libname$release$shared_ext$major'
11378   shlibpath_var=LD_LIBRARY_PATH
11379   shlibpath_overrides_runpath=yes
11380   hardcode_into_libs=yes
11381   # ldd complains unless libraries are executable
11382   postinstall_cmds='chmod +x $lib'
11383   ;;
11384
11385 sunos4*)
11386   version_type=sunos
11387   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11388   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11389   shlibpath_var=LD_LIBRARY_PATH
11390   shlibpath_overrides_runpath=yes
11391   if test yes = "$with_gnu_ld"; then
11392     need_lib_prefix=no
11393   fi
11394   need_version=yes
11395   ;;
11396
11397 sysv4 | sysv4.3*)
11398   version_type=linux # correct to gnu/linux during the next big refactor
11399   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11400   soname_spec='$libname$release$shared_ext$major'
11401   shlibpath_var=LD_LIBRARY_PATH
11402   case $host_vendor in
11403     sni)
11404       shlibpath_overrides_runpath=no
11405       need_lib_prefix=no
11406       runpath_var=LD_RUN_PATH
11407       ;;
11408     siemens)
11409       need_lib_prefix=no
11410       ;;
11411     motorola)
11412       need_lib_prefix=no
11413       need_version=no
11414       shlibpath_overrides_runpath=no
11415       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11416       ;;
11417   esac
11418   ;;
11419
11420 sysv4*MP*)
11421   if test -d /usr/nec; then
11422     version_type=linux # correct to gnu/linux during the next big refactor
11423     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11424     soname_spec='$libname$shared_ext.$major'
11425     shlibpath_var=LD_LIBRARY_PATH
11426   fi
11427   ;;
11428
11429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11430   version_type=sco
11431   need_lib_prefix=no
11432   need_version=no
11433   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11434   soname_spec='$libname$release$shared_ext$major'
11435   shlibpath_var=LD_LIBRARY_PATH
11436   shlibpath_overrides_runpath=yes
11437   hardcode_into_libs=yes
11438   if test yes = "$with_gnu_ld"; then
11439     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11440   else
11441     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11442     case $host_os in
11443       sco3.2v5*)
11444         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11445         ;;
11446     esac
11447   fi
11448   sys_lib_dlsearch_path_spec='/usr/lib'
11449   ;;
11450
11451 tpf*)
11452   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11453   version_type=linux # correct to gnu/linux during the next big refactor
11454   need_lib_prefix=no
11455   need_version=no
11456   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11457   shlibpath_var=LD_LIBRARY_PATH
11458   shlibpath_overrides_runpath=no
11459   hardcode_into_libs=yes
11460   ;;
11461
11462 uts4*)
11463   version_type=linux # correct to gnu/linux during the next big refactor
11464   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11465   soname_spec='$libname$release$shared_ext$major'
11466   shlibpath_var=LD_LIBRARY_PATH
11467   ;;
11468
11469 *)
11470   dynamic_linker=no
11471   ;;
11472 esac
11473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11474 printf "%s\n" "$dynamic_linker" >&6; }
11475 test no = "$dynamic_linker" && can_build_shared=no
11476
11477 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11478 if test yes = "$GCC"; then
11479   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11480 fi
11481
11482 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11483   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11484 fi
11485
11486 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11487   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11488 fi
11489
11490 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11491 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11492
11493 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11494 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11495
11496 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11497 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11596 printf %s "checking how to hardcode library paths into programs... " >&6; }
11597 hardcode_action=
11598 if test -n "$hardcode_libdir_flag_spec" ||
11599    test -n "$runpath_var" ||
11600    test yes = "$hardcode_automatic"; then
11601
11602   # We can hardcode non-existent directories.
11603   if test no != "$hardcode_direct" &&
11604      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11605      # have to relink, otherwise we might link with an installed library
11606      # when we should be linking with a yet-to-be-installed one
11607      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11608      test no != "$hardcode_minus_L"; then
11609     # Linking always hardcodes the temporary library directory.
11610     hardcode_action=relink
11611   else
11612     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11613     hardcode_action=immediate
11614   fi
11615 else
11616   # We cannot hardcode anything, or else we can only hardcode existing
11617   # directories.
11618   hardcode_action=unsupported
11619 fi
11620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11621 printf "%s\n" "$hardcode_action" >&6; }
11622
11623 if test relink = "$hardcode_action" ||
11624    test yes = "$inherit_rpath"; then
11625   # Fast installation is not supported
11626   enable_fast_install=no
11627 elif test yes = "$shlibpath_overrides_runpath" ||
11628      test no = "$enable_shared"; then
11629   # Fast installation is not necessary
11630   enable_fast_install=needless
11631 fi
11632
11633
11634
11635
11636
11637
11638   if test yes != "$enable_dlopen"; then
11639   enable_dlopen=unknown
11640   enable_dlopen_self=unknown
11641   enable_dlopen_self_static=unknown
11642 else
11643   lt_cv_dlopen=no
11644   lt_cv_dlopen_libs=
11645
11646   case $host_os in
11647   beos*)
11648     lt_cv_dlopen=load_add_on
11649     lt_cv_dlopen_libs=
11650     lt_cv_dlopen_self=yes
11651     ;;
11652
11653   mingw* | pw32* | cegcc*)
11654     lt_cv_dlopen=LoadLibrary
11655     lt_cv_dlopen_libs=
11656     ;;
11657
11658   cygwin*)
11659     lt_cv_dlopen=dlopen
11660     lt_cv_dlopen_libs=
11661     ;;
11662
11663   darwin*)
11664     # if libdl is installed we need to link against it
11665     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11666 printf %s "checking for dlopen in -ldl... " >&6; }
11667 if test ${ac_cv_lib_dl_dlopen+y}
11668 then :
11669   printf %s "(cached) " >&6
11670 else $as_nop
11671   ac_check_lib_save_LIBS=$LIBS
11672 LIBS="-ldl  $LIBS"
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h.  */
11675
11676 /* Override any GCC internal prototype to avoid an error.
11677    Use char because int might match the return type of a GCC
11678    builtin and then its argument prototype would still apply.  */
11679 char dlopen ();
11680 int
11681 main (void)
11682 {
11683 return dlopen ();
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 if ac_fn_c_try_link "$LINENO"
11689 then :
11690   ac_cv_lib_dl_dlopen=yes
11691 else $as_nop
11692   ac_cv_lib_dl_dlopen=no
11693 fi
11694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11695     conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_check_lib_save_LIBS
11697 fi
11698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11699 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11700 if test "x$ac_cv_lib_dl_dlopen" = xyes
11701 then :
11702   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11703 else $as_nop
11704
11705     lt_cv_dlopen=dyld
11706     lt_cv_dlopen_libs=
11707     lt_cv_dlopen_self=yes
11708
11709 fi
11710
11711     ;;
11712
11713   tpf*)
11714     # Don't try to run any link tests for TPF.  We know it's impossible
11715     # because TPF is a cross-compiler, and we know how we open DSOs.
11716     lt_cv_dlopen=dlopen
11717     lt_cv_dlopen_libs=
11718     lt_cv_dlopen_self=no
11719     ;;
11720
11721   *)
11722     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11723 if test "x$ac_cv_func_shl_load" = xyes
11724 then :
11725   lt_cv_dlopen=shl_load
11726 else $as_nop
11727   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11728 printf %s "checking for shl_load in -ldld... " >&6; }
11729 if test ${ac_cv_lib_dld_shl_load+y}
11730 then :
11731   printf %s "(cached) " >&6
11732 else $as_nop
11733   ac_check_lib_save_LIBS=$LIBS
11734 LIBS="-ldld  $LIBS"
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h.  */
11737
11738 /* Override any GCC internal prototype to avoid an error.
11739    Use char because int might match the return type of a GCC
11740    builtin and then its argument prototype would still apply.  */
11741 char shl_load ();
11742 int
11743 main (void)
11744 {
11745 return shl_load ();
11746   ;
11747   return 0;
11748 }
11749 _ACEOF
11750 if ac_fn_c_try_link "$LINENO"
11751 then :
11752   ac_cv_lib_dld_shl_load=yes
11753 else $as_nop
11754   ac_cv_lib_dld_shl_load=no
11755 fi
11756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11757     conftest$ac_exeext conftest.$ac_ext
11758 LIBS=$ac_check_lib_save_LIBS
11759 fi
11760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11761 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
11762 if test "x$ac_cv_lib_dld_shl_load" = xyes
11763 then :
11764   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11765 else $as_nop
11766   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11767 if test "x$ac_cv_func_dlopen" = xyes
11768 then :
11769   lt_cv_dlopen=dlopen
11770 else $as_nop
11771   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11772 printf %s "checking for dlopen in -ldl... " >&6; }
11773 if test ${ac_cv_lib_dl_dlopen+y}
11774 then :
11775   printf %s "(cached) " >&6
11776 else $as_nop
11777   ac_check_lib_save_LIBS=$LIBS
11778 LIBS="-ldl  $LIBS"
11779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780 /* end confdefs.h.  */
11781
11782 /* Override any GCC internal prototype to avoid an error.
11783    Use char because int might match the return type of a GCC
11784    builtin and then its argument prototype would still apply.  */
11785 char dlopen ();
11786 int
11787 main (void)
11788 {
11789 return dlopen ();
11790   ;
11791   return 0;
11792 }
11793 _ACEOF
11794 if ac_fn_c_try_link "$LINENO"
11795 then :
11796   ac_cv_lib_dl_dlopen=yes
11797 else $as_nop
11798   ac_cv_lib_dl_dlopen=no
11799 fi
11800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11801     conftest$ac_exeext conftest.$ac_ext
11802 LIBS=$ac_check_lib_save_LIBS
11803 fi
11804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11805 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11806 if test "x$ac_cv_lib_dl_dlopen" = xyes
11807 then :
11808   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11809 else $as_nop
11810   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11811 printf %s "checking for dlopen in -lsvld... " >&6; }
11812 if test ${ac_cv_lib_svld_dlopen+y}
11813 then :
11814   printf %s "(cached) " >&6
11815 else $as_nop
11816   ac_check_lib_save_LIBS=$LIBS
11817 LIBS="-lsvld  $LIBS"
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h.  */
11820
11821 /* Override any GCC internal prototype to avoid an error.
11822    Use char because int might match the return type of a GCC
11823    builtin and then its argument prototype would still apply.  */
11824 char dlopen ();
11825 int
11826 main (void)
11827 {
11828 return dlopen ();
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 if ac_fn_c_try_link "$LINENO"
11834 then :
11835   ac_cv_lib_svld_dlopen=yes
11836 else $as_nop
11837   ac_cv_lib_svld_dlopen=no
11838 fi
11839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11840     conftest$ac_exeext conftest.$ac_ext
11841 LIBS=$ac_check_lib_save_LIBS
11842 fi
11843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11844 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
11845 if test "x$ac_cv_lib_svld_dlopen" = xyes
11846 then :
11847   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11848 else $as_nop
11849   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11850 printf %s "checking for dld_link in -ldld... " >&6; }
11851 if test ${ac_cv_lib_dld_dld_link+y}
11852 then :
11853   printf %s "(cached) " >&6
11854 else $as_nop
11855   ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-ldld  $LIBS"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h.  */
11859
11860 /* Override any GCC internal prototype to avoid an error.
11861    Use char because int might match the return type of a GCC
11862    builtin and then its argument prototype would still apply.  */
11863 char dld_link ();
11864 int
11865 main (void)
11866 {
11867 return dld_link ();
11868   ;
11869   return 0;
11870 }
11871 _ACEOF
11872 if ac_fn_c_try_link "$LINENO"
11873 then :
11874   ac_cv_lib_dld_dld_link=yes
11875 else $as_nop
11876   ac_cv_lib_dld_dld_link=no
11877 fi
11878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11879     conftest$ac_exeext conftest.$ac_ext
11880 LIBS=$ac_check_lib_save_LIBS
11881 fi
11882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11883 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
11884 if test "x$ac_cv_lib_dld_dld_link" = xyes
11885 then :
11886   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11887 fi
11888
11889
11890 fi
11891
11892
11893 fi
11894
11895
11896 fi
11897
11898
11899 fi
11900
11901
11902 fi
11903
11904     ;;
11905   esac
11906
11907   if test no = "$lt_cv_dlopen"; then
11908     enable_dlopen=no
11909   else
11910     enable_dlopen=yes
11911   fi
11912
11913   case $lt_cv_dlopen in
11914   dlopen)
11915     save_CPPFLAGS=$CPPFLAGS
11916     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11917
11918     save_LDFLAGS=$LDFLAGS
11919     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11920
11921     save_LIBS=$LIBS
11922     LIBS="$lt_cv_dlopen_libs $LIBS"
11923
11924     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11925 printf %s "checking whether a program can dlopen itself... " >&6; }
11926 if test ${lt_cv_dlopen_self+y}
11927 then :
11928   printf %s "(cached) " >&6
11929 else $as_nop
11930           if test yes = "$cross_compiling"; then :
11931   lt_cv_dlopen_self=cross
11932 else
11933   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11934   lt_status=$lt_dlunknown
11935   cat > conftest.$ac_ext <<_LT_EOF
11936 #line $LINENO "configure"
11937 #include "confdefs.h"
11938
11939 #if HAVE_DLFCN_H
11940 #include <dlfcn.h>
11941 #endif
11942
11943 #include <stdio.h>
11944
11945 #ifdef RTLD_GLOBAL
11946 #  define LT_DLGLOBAL           RTLD_GLOBAL
11947 #else
11948 #  ifdef DL_GLOBAL
11949 #    define LT_DLGLOBAL         DL_GLOBAL
11950 #  else
11951 #    define LT_DLGLOBAL         0
11952 #  endif
11953 #endif
11954
11955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11956    find out it does not work in some platform. */
11957 #ifndef LT_DLLAZY_OR_NOW
11958 #  ifdef RTLD_LAZY
11959 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11960 #  else
11961 #    ifdef DL_LAZY
11962 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11963 #    else
11964 #      ifdef RTLD_NOW
11965 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11966 #      else
11967 #        ifdef DL_NOW
11968 #          define LT_DLLAZY_OR_NOW      DL_NOW
11969 #        else
11970 #          define LT_DLLAZY_OR_NOW      0
11971 #        endif
11972 #      endif
11973 #    endif
11974 #  endif
11975 #endif
11976
11977 /* When -fvisibility=hidden is used, assume the code has been annotated
11978    correspondingly for the symbols needed.  */
11979 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11980 int fnord () __attribute__((visibility("default")));
11981 #endif
11982
11983 int fnord () { return 42; }
11984 int main ()
11985 {
11986   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11987   int status = $lt_dlunknown;
11988
11989   if (self)
11990     {
11991       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11992       else
11993         {
11994           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11995           else puts (dlerror ());
11996         }
11997       /* dlclose (self); */
11998     }
11999   else
12000     puts (dlerror ());
12001
12002   return status;
12003 }
12004 _LT_EOF
12005   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12006   (eval $ac_link) 2>&5
12007   ac_status=$?
12008   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12009   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12010     (./conftest; exit; ) >&5 2>/dev/null
12011     lt_status=$?
12012     case x$lt_status in
12013       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12014       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12015       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12016     esac
12017   else :
12018     # compilation failed
12019     lt_cv_dlopen_self=no
12020   fi
12021 fi
12022 rm -fr conftest*
12023
12024
12025 fi
12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12027 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12028
12029     if test yes = "$lt_cv_dlopen_self"; then
12030       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12031       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12032 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12033 if test ${lt_cv_dlopen_self_static+y}
12034 then :
12035   printf %s "(cached) " >&6
12036 else $as_nop
12037           if test yes = "$cross_compiling"; then :
12038   lt_cv_dlopen_self_static=cross
12039 else
12040   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12041   lt_status=$lt_dlunknown
12042   cat > conftest.$ac_ext <<_LT_EOF
12043 #line $LINENO "configure"
12044 #include "confdefs.h"
12045
12046 #if HAVE_DLFCN_H
12047 #include <dlfcn.h>
12048 #endif
12049
12050 #include <stdio.h>
12051
12052 #ifdef RTLD_GLOBAL
12053 #  define LT_DLGLOBAL           RTLD_GLOBAL
12054 #else
12055 #  ifdef DL_GLOBAL
12056 #    define LT_DLGLOBAL         DL_GLOBAL
12057 #  else
12058 #    define LT_DLGLOBAL         0
12059 #  endif
12060 #endif
12061
12062 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12063    find out it does not work in some platform. */
12064 #ifndef LT_DLLAZY_OR_NOW
12065 #  ifdef RTLD_LAZY
12066 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12067 #  else
12068 #    ifdef DL_LAZY
12069 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12070 #    else
12071 #      ifdef RTLD_NOW
12072 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12073 #      else
12074 #        ifdef DL_NOW
12075 #          define LT_DLLAZY_OR_NOW      DL_NOW
12076 #        else
12077 #          define LT_DLLAZY_OR_NOW      0
12078 #        endif
12079 #      endif
12080 #    endif
12081 #  endif
12082 #endif
12083
12084 /* When -fvisibility=hidden is used, assume the code has been annotated
12085    correspondingly for the symbols needed.  */
12086 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12087 int fnord () __attribute__((visibility("default")));
12088 #endif
12089
12090 int fnord () { return 42; }
12091 int main ()
12092 {
12093   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12094   int status = $lt_dlunknown;
12095
12096   if (self)
12097     {
12098       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12099       else
12100         {
12101           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12102           else puts (dlerror ());
12103         }
12104       /* dlclose (self); */
12105     }
12106   else
12107     puts (dlerror ());
12108
12109   return status;
12110 }
12111 _LT_EOF
12112   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12113   (eval $ac_link) 2>&5
12114   ac_status=$?
12115   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12116   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12117     (./conftest; exit; ) >&5 2>/dev/null
12118     lt_status=$?
12119     case x$lt_status in
12120       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12121       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12122       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12123     esac
12124   else :
12125     # compilation failed
12126     lt_cv_dlopen_self_static=no
12127   fi
12128 fi
12129 rm -fr conftest*
12130
12131
12132 fi
12133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12134 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12135     fi
12136
12137     CPPFLAGS=$save_CPPFLAGS
12138     LDFLAGS=$save_LDFLAGS
12139     LIBS=$save_LIBS
12140     ;;
12141   esac
12142
12143   case $lt_cv_dlopen_self in
12144   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12145   *) enable_dlopen_self=unknown ;;
12146   esac
12147
12148   case $lt_cv_dlopen_self_static in
12149   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12150   *) enable_dlopen_self_static=unknown ;;
12151   esac
12152 fi
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170 striplib=
12171 old_striplib=
12172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12173 printf %s "checking whether stripping libraries is possible... " >&6; }
12174 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12175   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12176   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12177   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12178 printf "%s\n" "yes" >&6; }
12179 else
12180 # FIXME - insert some real tests, host_os isn't really good enough
12181   case $host_os in
12182   darwin*)
12183     if test -n "$STRIP"; then
12184       striplib="$STRIP -x"
12185       old_striplib="$STRIP -S"
12186       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12187 printf "%s\n" "yes" >&6; }
12188     else
12189       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 printf "%s\n" "no" >&6; }
12191     fi
12192     ;;
12193   *)
12194     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 printf "%s\n" "no" >&6; }
12196     ;;
12197   esac
12198 fi
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211   # Report what library types will actually be built
12212   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12213 printf %s "checking if libtool supports shared libraries... " >&6; }
12214   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12215 printf "%s\n" "$can_build_shared" >&6; }
12216
12217   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12218 printf %s "checking whether to build shared libraries... " >&6; }
12219   test no = "$can_build_shared" && enable_shared=no
12220
12221   # On AIX, shared libraries and static libraries use the same namespace, and
12222   # are all built from PIC.
12223   case $host_os in
12224   aix3*)
12225     test yes = "$enable_shared" && enable_static=no
12226     if test -n "$RANLIB"; then
12227       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12228       postinstall_cmds='$RANLIB $lib'
12229     fi
12230     ;;
12231
12232   aix[4-9]*)
12233     if test ia64 != "$host_cpu"; then
12234       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12235       yes,aix,yes) ;;                   # shared object as lib.so file only
12236       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12237       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12238       esac
12239     fi
12240     ;;
12241   esac
12242   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12243 printf "%s\n" "$enable_shared" >&6; }
12244
12245   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12246 printf %s "checking whether to build static libraries... " >&6; }
12247   # Make sure either enable_shared or enable_static is yes.
12248   test yes = "$enable_shared" || enable_static=yes
12249   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12250 printf "%s\n" "$enable_static" >&6; }
12251
12252
12253
12254
12255 fi
12256 ac_ext=c
12257 ac_cpp='$CPP $CPPFLAGS'
12258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12261
12262 CC=$lt_save_CC
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278         ac_config_commands="$ac_config_commands libtool"
12279
12280
12281
12282
12283 # Only expand once:
12284
12285
12286
12287
12288 OURCPPFLAGS=''
12289 CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
12290 CFLAGS="$CFLAGS"
12291
12292 # Checks for programs.
12293 ac_ext=c
12294 ac_cpp='$CPP $CPPFLAGS'
12295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12298 if test -n "$ac_tool_prefix"; then
12299   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12300 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302 printf %s "checking for $ac_word... " >&6; }
12303 if test ${ac_cv_prog_CC+y}
12304 then :
12305   printf %s "(cached) " >&6
12306 else $as_nop
12307   if test -n "$CC"; then
12308   ac_cv_prog_CC="$CC" # Let the user override the test.
12309 else
12310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311 for as_dir in $PATH
12312 do
12313   IFS=$as_save_IFS
12314   case $as_dir in #(((
12315     '') as_dir=./ ;;
12316     */) ;;
12317     *) as_dir=$as_dir/ ;;
12318   esac
12319     for ac_exec_ext in '' $ac_executable_extensions; do
12320   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12321     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12322     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12323     break 2
12324   fi
12325 done
12326   done
12327 IFS=$as_save_IFS
12328
12329 fi
12330 fi
12331 CC=$ac_cv_prog_CC
12332 if test -n "$CC"; then
12333   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12334 printf "%s\n" "$CC" >&6; }
12335 else
12336   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 printf "%s\n" "no" >&6; }
12338 fi
12339
12340
12341 fi
12342 if test -z "$ac_cv_prog_CC"; then
12343   ac_ct_CC=$CC
12344   # Extract the first word of "gcc", so it can be a program name with args.
12345 set dummy gcc; ac_word=$2
12346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347 printf %s "checking for $ac_word... " >&6; }
12348 if test ${ac_cv_prog_ac_ct_CC+y}
12349 then :
12350   printf %s "(cached) " >&6
12351 else $as_nop
12352   if test -n "$ac_ct_CC"; then
12353   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12354 else
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12357 do
12358   IFS=$as_save_IFS
12359   case $as_dir in #(((
12360     '') as_dir=./ ;;
12361     */) ;;
12362     *) as_dir=$as_dir/ ;;
12363   esac
12364     for ac_exec_ext in '' $ac_executable_extensions; do
12365   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12366     ac_cv_prog_ac_ct_CC="gcc"
12367     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12368     break 2
12369   fi
12370 done
12371   done
12372 IFS=$as_save_IFS
12373
12374 fi
12375 fi
12376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12377 if test -n "$ac_ct_CC"; then
12378   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12379 printf "%s\n" "$ac_ct_CC" >&6; }
12380 else
12381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 printf "%s\n" "no" >&6; }
12383 fi
12384
12385   if test "x$ac_ct_CC" = x; then
12386     CC=""
12387   else
12388     case $cross_compiling:$ac_tool_warned in
12389 yes:)
12390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12391 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12392 ac_tool_warned=yes ;;
12393 esac
12394     CC=$ac_ct_CC
12395   fi
12396 else
12397   CC="$ac_cv_prog_CC"
12398 fi
12399
12400 if test -z "$CC"; then
12401           if test -n "$ac_tool_prefix"; then
12402     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12403 set dummy ${ac_tool_prefix}cc; ac_word=$2
12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 printf %s "checking for $ac_word... " >&6; }
12406 if test ${ac_cv_prog_CC+y}
12407 then :
12408   printf %s "(cached) " >&6
12409 else $as_nop
12410   if test -n "$CC"; then
12411   ac_cv_prog_CC="$CC" # Let the user override the test.
12412 else
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12415 do
12416   IFS=$as_save_IFS
12417   case $as_dir in #(((
12418     '') as_dir=./ ;;
12419     */) ;;
12420     *) as_dir=$as_dir/ ;;
12421   esac
12422     for ac_exec_ext in '' $ac_executable_extensions; do
12423   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12424     ac_cv_prog_CC="${ac_tool_prefix}cc"
12425     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12426     break 2
12427   fi
12428 done
12429   done
12430 IFS=$as_save_IFS
12431
12432 fi
12433 fi
12434 CC=$ac_cv_prog_CC
12435 if test -n "$CC"; then
12436   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12437 printf "%s\n" "$CC" >&6; }
12438 else
12439   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 printf "%s\n" "no" >&6; }
12441 fi
12442
12443
12444   fi
12445 fi
12446 if test -z "$CC"; then
12447   # Extract the first word of "cc", so it can be a program name with args.
12448 set dummy cc; ac_word=$2
12449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12450 printf %s "checking for $ac_word... " >&6; }
12451 if test ${ac_cv_prog_CC+y}
12452 then :
12453   printf %s "(cached) " >&6
12454 else $as_nop
12455   if test -n "$CC"; then
12456   ac_cv_prog_CC="$CC" # Let the user override the test.
12457 else
12458   ac_prog_rejected=no
12459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12461 do
12462   IFS=$as_save_IFS
12463   case $as_dir in #(((
12464     '') as_dir=./ ;;
12465     */) ;;
12466     *) as_dir=$as_dir/ ;;
12467   esac
12468     for ac_exec_ext in '' $ac_executable_extensions; do
12469   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12470     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12471        ac_prog_rejected=yes
12472        continue
12473      fi
12474     ac_cv_prog_CC="cc"
12475     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12476     break 2
12477   fi
12478 done
12479   done
12480 IFS=$as_save_IFS
12481
12482 if test $ac_prog_rejected = yes; then
12483   # We found a bogon in the path, so make sure we never use it.
12484   set dummy $ac_cv_prog_CC
12485   shift
12486   if test $# != 0; then
12487     # We chose a different compiler from the bogus one.
12488     # However, it has the same basename, so the bogon will be chosen
12489     # first if we set CC to just the basename; use the full file name.
12490     shift
12491     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
12492   fi
12493 fi
12494 fi
12495 fi
12496 CC=$ac_cv_prog_CC
12497 if test -n "$CC"; then
12498   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12499 printf "%s\n" "$CC" >&6; }
12500 else
12501   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 printf "%s\n" "no" >&6; }
12503 fi
12504
12505
12506 fi
12507 if test -z "$CC"; then
12508   if test -n "$ac_tool_prefix"; then
12509   for ac_prog in cl.exe
12510   do
12511     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514 printf %s "checking for $ac_word... " >&6; }
12515 if test ${ac_cv_prog_CC+y}
12516 then :
12517   printf %s "(cached) " >&6
12518 else $as_nop
12519   if test -n "$CC"; then
12520   ac_cv_prog_CC="$CC" # Let the user override the test.
12521 else
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12524 do
12525   IFS=$as_save_IFS
12526   case $as_dir in #(((
12527     '') as_dir=./ ;;
12528     */) ;;
12529     *) as_dir=$as_dir/ ;;
12530   esac
12531     for ac_exec_ext in '' $ac_executable_extensions; do
12532   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12533     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12534     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12535     break 2
12536   fi
12537 done
12538   done
12539 IFS=$as_save_IFS
12540
12541 fi
12542 fi
12543 CC=$ac_cv_prog_CC
12544 if test -n "$CC"; then
12545   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12546 printf "%s\n" "$CC" >&6; }
12547 else
12548   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 printf "%s\n" "no" >&6; }
12550 fi
12551
12552
12553     test -n "$CC" && break
12554   done
12555 fi
12556 if test -z "$CC"; then
12557   ac_ct_CC=$CC
12558   for ac_prog in cl.exe
12559 do
12560   # Extract the first word of "$ac_prog", so it can be a program name with args.
12561 set dummy $ac_prog; ac_word=$2
12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12563 printf %s "checking for $ac_word... " >&6; }
12564 if test ${ac_cv_prog_ac_ct_CC+y}
12565 then :
12566   printf %s "(cached) " >&6
12567 else $as_nop
12568   if test -n "$ac_ct_CC"; then
12569   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12570 else
12571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12572 for as_dir in $PATH
12573 do
12574   IFS=$as_save_IFS
12575   case $as_dir in #(((
12576     '') as_dir=./ ;;
12577     */) ;;
12578     *) as_dir=$as_dir/ ;;
12579   esac
12580     for ac_exec_ext in '' $ac_executable_extensions; do
12581   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12582     ac_cv_prog_ac_ct_CC="$ac_prog"
12583     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12584     break 2
12585   fi
12586 done
12587   done
12588 IFS=$as_save_IFS
12589
12590 fi
12591 fi
12592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12593 if test -n "$ac_ct_CC"; then
12594   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12595 printf "%s\n" "$ac_ct_CC" >&6; }
12596 else
12597   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598 printf "%s\n" "no" >&6; }
12599 fi
12600
12601
12602   test -n "$ac_ct_CC" && break
12603 done
12604
12605   if test "x$ac_ct_CC" = x; then
12606     CC=""
12607   else
12608     case $cross_compiling:$ac_tool_warned in
12609 yes:)
12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12611 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12612 ac_tool_warned=yes ;;
12613 esac
12614     CC=$ac_ct_CC
12615   fi
12616 fi
12617
12618 fi
12619 if test -z "$CC"; then
12620   if test -n "$ac_tool_prefix"; then
12621   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
12622 set dummy ${ac_tool_prefix}clang; ac_word=$2
12623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12624 printf %s "checking for $ac_word... " >&6; }
12625 if test ${ac_cv_prog_CC+y}
12626 then :
12627   printf %s "(cached) " >&6
12628 else $as_nop
12629   if test -n "$CC"; then
12630   ac_cv_prog_CC="$CC" # Let the user override the test.
12631 else
12632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12633 for as_dir in $PATH
12634 do
12635   IFS=$as_save_IFS
12636   case $as_dir in #(((
12637     '') as_dir=./ ;;
12638     */) ;;
12639     *) as_dir=$as_dir/ ;;
12640   esac
12641     for ac_exec_ext in '' $ac_executable_extensions; do
12642   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12643     ac_cv_prog_CC="${ac_tool_prefix}clang"
12644     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12645     break 2
12646   fi
12647 done
12648   done
12649 IFS=$as_save_IFS
12650
12651 fi
12652 fi
12653 CC=$ac_cv_prog_CC
12654 if test -n "$CC"; then
12655   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12656 printf "%s\n" "$CC" >&6; }
12657 else
12658   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 printf "%s\n" "no" >&6; }
12660 fi
12661
12662
12663 fi
12664 if test -z "$ac_cv_prog_CC"; then
12665   ac_ct_CC=$CC
12666   # Extract the first word of "clang", so it can be a program name with args.
12667 set dummy clang; ac_word=$2
12668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12669 printf %s "checking for $ac_word... " >&6; }
12670 if test ${ac_cv_prog_ac_ct_CC+y}
12671 then :
12672   printf %s "(cached) " >&6
12673 else $as_nop
12674   if test -n "$ac_ct_CC"; then
12675   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12676 else
12677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678 for as_dir in $PATH
12679 do
12680   IFS=$as_save_IFS
12681   case $as_dir in #(((
12682     '') as_dir=./ ;;
12683     */) ;;
12684     *) as_dir=$as_dir/ ;;
12685   esac
12686     for ac_exec_ext in '' $ac_executable_extensions; do
12687   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12688     ac_cv_prog_ac_ct_CC="clang"
12689     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12690     break 2
12691   fi
12692 done
12693   done
12694 IFS=$as_save_IFS
12695
12696 fi
12697 fi
12698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12699 if test -n "$ac_ct_CC"; then
12700   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12701 printf "%s\n" "$ac_ct_CC" >&6; }
12702 else
12703   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 printf "%s\n" "no" >&6; }
12705 fi
12706
12707   if test "x$ac_ct_CC" = x; then
12708     CC=""
12709   else
12710     case $cross_compiling:$ac_tool_warned in
12711 yes:)
12712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12713 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12714 ac_tool_warned=yes ;;
12715 esac
12716     CC=$ac_ct_CC
12717   fi
12718 else
12719   CC="$ac_cv_prog_CC"
12720 fi
12721
12722 fi
12723
12724
12725 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12726 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12727 as_fn_error $? "no acceptable C compiler found in \$PATH
12728 See \`config.log' for more details" "$LINENO" 5; }
12729
12730 # Provide some information about the compiler.
12731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12732 set X $ac_compile
12733 ac_compiler=$2
12734 for ac_option in --version -v -V -qversion -version; do
12735   { { ac_try="$ac_compiler $ac_option >&5"
12736 case "(($ac_try" in
12737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738   *) ac_try_echo=$ac_try;;
12739 esac
12740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12741 printf "%s\n" "$ac_try_echo"; } >&5
12742   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12743   ac_status=$?
12744   if test -s conftest.err; then
12745     sed '10a\
12746 ... rest of stderr output deleted ...
12747          10q' conftest.err >conftest.er1
12748     cat conftest.er1 >&5
12749   fi
12750   rm -f conftest.er1 conftest.err
12751   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12752   test $ac_status = 0; }
12753 done
12754
12755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
12756 printf %s "checking whether the compiler supports GNU C... " >&6; }
12757 if test ${ac_cv_c_compiler_gnu+y}
12758 then :
12759   printf %s "(cached) " >&6
12760 else $as_nop
12761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h.  */
12763
12764 int
12765 main (void)
12766 {
12767 #ifndef __GNUC__
12768        choke me
12769 #endif
12770
12771   ;
12772   return 0;
12773 }
12774 _ACEOF
12775 if ac_fn_c_try_compile "$LINENO"
12776 then :
12777   ac_compiler_gnu=yes
12778 else $as_nop
12779   ac_compiler_gnu=no
12780 fi
12781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12782 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12783
12784 fi
12785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12786 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
12787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12788
12789 if test $ac_compiler_gnu = yes; then
12790   GCC=yes
12791 else
12792   GCC=
12793 fi
12794 ac_test_CFLAGS=${CFLAGS+y}
12795 ac_save_CFLAGS=$CFLAGS
12796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12797 printf %s "checking whether $CC accepts -g... " >&6; }
12798 if test ${ac_cv_prog_cc_g+y}
12799 then :
12800   printf %s "(cached) " >&6
12801 else $as_nop
12802   ac_save_c_werror_flag=$ac_c_werror_flag
12803    ac_c_werror_flag=yes
12804    ac_cv_prog_cc_g=no
12805    CFLAGS="-g"
12806    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h.  */
12808
12809 int
12810 main (void)
12811 {
12812
12813   ;
12814   return 0;
12815 }
12816 _ACEOF
12817 if ac_fn_c_try_compile "$LINENO"
12818 then :
12819   ac_cv_prog_cc_g=yes
12820 else $as_nop
12821   CFLAGS=""
12822       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h.  */
12824
12825 int
12826 main (void)
12827 {
12828
12829   ;
12830   return 0;
12831 }
12832 _ACEOF
12833 if ac_fn_c_try_compile "$LINENO"
12834 then :
12835
12836 else $as_nop
12837   ac_c_werror_flag=$ac_save_c_werror_flag
12838          CFLAGS="-g"
12839          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h.  */
12841
12842 int
12843 main (void)
12844 {
12845
12846   ;
12847   return 0;
12848 }
12849 _ACEOF
12850 if ac_fn_c_try_compile "$LINENO"
12851 then :
12852   ac_cv_prog_cc_g=yes
12853 fi
12854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12855 fi
12856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12857 fi
12858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12859    ac_c_werror_flag=$ac_save_c_werror_flag
12860 fi
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12862 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
12863 if test $ac_test_CFLAGS; then
12864   CFLAGS=$ac_save_CFLAGS
12865 elif test $ac_cv_prog_cc_g = yes; then
12866   if test "$GCC" = yes; then
12867     CFLAGS="-g -O2"
12868   else
12869     CFLAGS="-g"
12870   fi
12871 else
12872   if test "$GCC" = yes; then
12873     CFLAGS="-O2"
12874   else
12875     CFLAGS=
12876   fi
12877 fi
12878 ac_prog_cc_stdc=no
12879 if test x$ac_prog_cc_stdc = xno
12880 then :
12881   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
12882 printf %s "checking for $CC option to enable C11 features... " >&6; }
12883 if test ${ac_cv_prog_cc_c11+y}
12884 then :
12885   printf %s "(cached) " >&6
12886 else $as_nop
12887   ac_cv_prog_cc_c11=no
12888 ac_save_CC=$CC
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h.  */
12891 $ac_c_conftest_c11_program
12892 _ACEOF
12893 for ac_arg in '' -std=gnu11
12894 do
12895   CC="$ac_save_CC $ac_arg"
12896   if ac_fn_c_try_compile "$LINENO"
12897 then :
12898   ac_cv_prog_cc_c11=$ac_arg
12899 fi
12900 rm -f core conftest.err conftest.$ac_objext conftest.beam
12901   test "x$ac_cv_prog_cc_c11" != "xno" && break
12902 done
12903 rm -f conftest.$ac_ext
12904 CC=$ac_save_CC
12905 fi
12906
12907 if test "x$ac_cv_prog_cc_c11" = xno
12908 then :
12909   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12910 printf "%s\n" "unsupported" >&6; }
12911 else $as_nop
12912   if test "x$ac_cv_prog_cc_c11" = x
12913 then :
12914   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12915 printf "%s\n" "none needed" >&6; }
12916 else $as_nop
12917   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
12918 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
12919      CC="$CC $ac_cv_prog_cc_c11"
12920 fi
12921   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
12922   ac_prog_cc_stdc=c11
12923 fi
12924 fi
12925 if test x$ac_prog_cc_stdc = xno
12926 then :
12927   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
12928 printf %s "checking for $CC option to enable C99 features... " >&6; }
12929 if test ${ac_cv_prog_cc_c99+y}
12930 then :
12931   printf %s "(cached) " >&6
12932 else $as_nop
12933   ac_cv_prog_cc_c99=no
12934 ac_save_CC=$CC
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h.  */
12937 $ac_c_conftest_c99_program
12938 _ACEOF
12939 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
12940 do
12941   CC="$ac_save_CC $ac_arg"
12942   if ac_fn_c_try_compile "$LINENO"
12943 then :
12944   ac_cv_prog_cc_c99=$ac_arg
12945 fi
12946 rm -f core conftest.err conftest.$ac_objext conftest.beam
12947   test "x$ac_cv_prog_cc_c99" != "xno" && break
12948 done
12949 rm -f conftest.$ac_ext
12950 CC=$ac_save_CC
12951 fi
12952
12953 if test "x$ac_cv_prog_cc_c99" = xno
12954 then :
12955   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12956 printf "%s\n" "unsupported" >&6; }
12957 else $as_nop
12958   if test "x$ac_cv_prog_cc_c99" = x
12959 then :
12960   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12961 printf "%s\n" "none needed" >&6; }
12962 else $as_nop
12963   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12964 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
12965      CC="$CC $ac_cv_prog_cc_c99"
12966 fi
12967   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
12968   ac_prog_cc_stdc=c99
12969 fi
12970 fi
12971 if test x$ac_prog_cc_stdc = xno
12972 then :
12973   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
12974 printf %s "checking for $CC option to enable C89 features... " >&6; }
12975 if test ${ac_cv_prog_cc_c89+y}
12976 then :
12977   printf %s "(cached) " >&6
12978 else $as_nop
12979   ac_cv_prog_cc_c89=no
12980 ac_save_CC=$CC
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h.  */
12983 $ac_c_conftest_c89_program
12984 _ACEOF
12985 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12986 do
12987   CC="$ac_save_CC $ac_arg"
12988   if ac_fn_c_try_compile "$LINENO"
12989 then :
12990   ac_cv_prog_cc_c89=$ac_arg
12991 fi
12992 rm -f core conftest.err conftest.$ac_objext conftest.beam
12993   test "x$ac_cv_prog_cc_c89" != "xno" && break
12994 done
12995 rm -f conftest.$ac_ext
12996 CC=$ac_save_CC
12997 fi
12998
12999 if test "x$ac_cv_prog_cc_c89" = xno
13000 then :
13001   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13002 printf "%s\n" "unsupported" >&6; }
13003 else $as_nop
13004   if test "x$ac_cv_prog_cc_c89" = x
13005 then :
13006   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13007 printf "%s\n" "none needed" >&6; }
13008 else $as_nop
13009   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13010 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13011      CC="$CC $ac_cv_prog_cc_c89"
13012 fi
13013   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13014   ac_prog_cc_stdc=c89
13015 fi
13016 fi
13017
13018 ac_ext=c
13019 ac_cpp='$CPP $CPPFLAGS'
13020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13023
13024
13025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
13026 printf %s "checking $CC dependency flag... " >&6; }
13027 echo 'void f(){}' >conftest.c
13028 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
13029         DEPFLAG="-MM"
13030 else
13031   if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
13032         DEPFLAG="-xM1"
13033   else
13034         DEPFLAG="-MM"  # dunno do something
13035   fi
13036 fi
13037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
13038 printf "%s\n" "$DEPFLAG" >&6; }
13039 rm -f conftest.c
13040
13041
13042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13043 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13044 set x ${MAKE-make}
13045 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13046 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
13047 then :
13048   printf %s "(cached) " >&6
13049 else $as_nop
13050   cat >conftest.make <<\_ACEOF
13051 SHELL = /bin/sh
13052 all:
13053         @echo '@@@%%%=$(MAKE)=@@@%%%'
13054 _ACEOF
13055 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13056 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13057   *@@@%%%=?*=@@@%%%*)
13058     eval ac_cv_prog_make_${ac_make}_set=yes;;
13059   *)
13060     eval ac_cv_prog_make_${ac_make}_set=no;;
13061 esac
13062 rm -f conftest.make
13063 fi
13064 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13065   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13066 printf "%s\n" "yes" >&6; }
13067   SET_MAKE=
13068 else
13069   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 printf "%s\n" "no" >&6; }
13071   SET_MAKE="MAKE=${MAKE-make}"
13072 fi
13073
13074
13075 # Extra (sp)lint flags for NetBSD
13076
13077 case "$host_os" in
13078         netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS"
13079                  ;;
13080         *)       LINTFLAGS="$LINTFLAGS"
13081                  ;;
13082 esac
13083
13084
13085
13086 printf "%s\n" "#define WINVER 0x0502" >>confdefs.h
13087
13088
13089
13090
13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
13092 printf %s "checking whether $CC supports -std=c99... " >&6; }
13093 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
13094 if eval test \${cv_prog_cc_flag_$cache+y}
13095 then :
13096   printf %s "(cached) " >&6
13097 else $as_nop
13098
13099 echo 'void f(void){}' >conftest.c
13100 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
13101 eval "cv_prog_cc_flag_$cache=yes"
13102 else
13103 eval "cv_prog_cc_flag_$cache=no"
13104 fi
13105 rm -f conftest conftest.o conftest.c
13106
13107 fi
13108
13109 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13111 printf "%s\n" "yes" >&6; }
13112 :
13113 C99FLAG="-std=c99"
13114 else
13115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 printf "%s\n" "no" >&6; }
13117 :
13118
13119 fi
13120
13121
13122
13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
13124 printf %s "checking whether $CC supports -xc99... " >&6; }
13125 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
13126 if eval test \${cv_prog_cc_flag_$cache+y}
13127 then :
13128   printf %s "(cached) " >&6
13129 else $as_nop
13130
13131 echo 'void f(void){}' >conftest.c
13132 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
13133 eval "cv_prog_cc_flag_$cache=yes"
13134 else
13135 eval "cv_prog_cc_flag_$cache=no"
13136 fi
13137 rm -f conftest conftest.o conftest.c
13138
13139 fi
13140
13141 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13143 printf "%s\n" "yes" >&6; }
13144 :
13145 C99FLAG="-xc99"
13146 else
13147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 printf "%s\n" "no" >&6; }
13149 :
13150
13151 fi
13152
13153
13154 # routine to copy files
13155 # argument 1 is a list of files (relative to the source dir)
13156 # argument 2 is a destination directory (relative to the current
13157 # working directory
13158
13159
13160 # copy all .h files in the dir at argument 1
13161 # (relative to source) to the dir at argument 2
13162 # (relative to current dir)
13163
13164
13165 # Checks for typedefs, structures, and compiler characteristics.
13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13167 printf %s "checking for an ANSI C-conforming const... " >&6; }
13168 if test ${ac_cv_c_const+y}
13169 then :
13170   printf %s "(cached) " >&6
13171 else $as_nop
13172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h.  */
13174
13175 int
13176 main (void)
13177 {
13178
13179 #ifndef __cplusplus
13180   /* Ultrix mips cc rejects this sort of thing.  */
13181   typedef int charset[2];
13182   const charset cs = { 0, 0 };
13183   /* SunOS 4.1.1 cc rejects this.  */
13184   char const *const *pcpcc;
13185   char **ppc;
13186   /* NEC SVR4.0.2 mips cc rejects this.  */
13187   struct point {int x, y;};
13188   static struct point const zero = {0,0};
13189   /* IBM XL C 1.02.0.0 rejects this.
13190      It does not let you subtract one const X* pointer from another in
13191      an arm of an if-expression whose if-part is not a constant
13192      expression */
13193   const char *g = "string";
13194   pcpcc = &g + (g ? g-g : 0);
13195   /* HPUX 7.0 cc rejects these. */
13196   ++pcpcc;
13197   ppc = (char**) pcpcc;
13198   pcpcc = (char const *const *) ppc;
13199   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13200     char tx;
13201     char *t = &tx;
13202     char const *s = 0 ? (char *) 0 : (char const *) 0;
13203
13204     *t++ = 0;
13205     if (s) return 0;
13206   }
13207   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13208     int x[] = {25, 17};
13209     const int *foo = &x[0];
13210     ++foo;
13211   }
13212   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13213     typedef const int *iptr;
13214     iptr p = 0;
13215     ++p;
13216   }
13217   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13218        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13219     struct s { int j; const int *ap[3]; } bx;
13220     struct s *b = &bx; b->j = 5;
13221   }
13222   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13223     const int foo = 10;
13224     if (!foo) return 0;
13225   }
13226   return !cs[0] && !zero.x;
13227 #endif
13228
13229   ;
13230   return 0;
13231 }
13232 _ACEOF
13233 if ac_fn_c_try_compile "$LINENO"
13234 then :
13235   ac_cv_c_const=yes
13236 else $as_nop
13237   ac_cv_c_const=no
13238 fi
13239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13240 fi
13241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13242 printf "%s\n" "$ac_cv_c_const" >&6; }
13243 if test $ac_cv_c_const = no; then
13244
13245 printf "%s\n" "#define const /**/" >>confdefs.h
13246
13247 fi
13248
13249 ac_ext=c
13250 ac_cpp='$CPP $CPPFLAGS'
13251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13254
13255 if test "x$CFLAGS" = "x" ; then
13256
13257
13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
13259 printf %s "checking whether $CC supports -g... " >&6; }
13260 cache=`echo g | sed 'y%.=/+-%___p_%'`
13261 if eval test \${cv_prog_cc_flag_$cache+y}
13262 then :
13263   printf %s "(cached) " >&6
13264 else $as_nop
13265
13266 echo 'void f(void){}' >conftest.c
13267 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
13268 eval "cv_prog_cc_flag_$cache=yes"
13269 else
13270 eval "cv_prog_cc_flag_$cache=no"
13271 fi
13272 rm -f conftest conftest.o conftest.c
13273
13274 fi
13275
13276 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13278 printf "%s\n" "yes" >&6; }
13279 :
13280 CFLAGS="-g"
13281 else
13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 printf "%s\n" "no" >&6; }
13284 :
13285
13286 fi
13287
13288
13289
13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
13291 printf %s "checking whether $CC supports -O2... " >&6; }
13292 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
13293 if eval test \${cv_prog_cc_flag_$cache+y}
13294 then :
13295   printf %s "(cached) " >&6
13296 else $as_nop
13297
13298 echo 'void f(void){}' >conftest.c
13299 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
13300 eval "cv_prog_cc_flag_$cache=yes"
13301 else
13302 eval "cv_prog_cc_flag_$cache=no"
13303 fi
13304 rm -f conftest conftest.o conftest.c
13305
13306 fi
13307
13308 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13310 printf "%s\n" "yes" >&6; }
13311 :
13312 CFLAGS="-O2 $CFLAGS"
13313 else
13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 printf "%s\n" "no" >&6; }
13316 :
13317
13318 fi
13319
13320 fi
13321
13322
13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
13324 printf %s "checking whether $CC supports -Wall... " >&6; }
13325 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
13326 if eval test \${cv_prog_cc_flag_$cache+y}
13327 then :
13328   printf %s "(cached) " >&6
13329 else $as_nop
13330
13331 echo 'void f(void){}' >conftest.c
13332 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
13333 eval "cv_prog_cc_flag_$cache=yes"
13334 else
13335 eval "cv_prog_cc_flag_$cache=no"
13336 fi
13337 rm -f conftest conftest.o conftest.c
13338
13339 fi
13340
13341 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13343 printf "%s\n" "yes" >&6; }
13344 :
13345 CFLAGS="-Wall $CFLAGS"
13346 else
13347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348 printf "%s\n" "no" >&6; }
13349 :
13350
13351 fi
13352
13353
13354
13355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
13356 printf %s "checking whether $CC supports -W... " >&6; }
13357 cache=`echo W | sed 'y%.=/+-%___p_%'`
13358 if eval test \${cv_prog_cc_flag_$cache+y}
13359 then :
13360   printf %s "(cached) " >&6
13361 else $as_nop
13362
13363 echo 'void f(void){}' >conftest.c
13364 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
13365 eval "cv_prog_cc_flag_$cache=yes"
13366 else
13367 eval "cv_prog_cc_flag_$cache=no"
13368 fi
13369 rm -f conftest conftest.o conftest.c
13370
13371 fi
13372
13373 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13375 printf "%s\n" "yes" >&6; }
13376 :
13377 CFLAGS="-W $CFLAGS"
13378 else
13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380 printf "%s\n" "no" >&6; }
13381 :
13382
13383 fi
13384
13385
13386
13387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5
13388 printf %s "checking whether $CC supports -Wwrite-strings... " >&6; }
13389 cache=`echo Wwrite-strings | sed 'y%.=/+-%___p_%'`
13390 if eval test \${cv_prog_cc_flag_$cache+y}
13391 then :
13392   printf %s "(cached) " >&6
13393 else $as_nop
13394
13395 echo 'void f(void){}' >conftest.c
13396 if test -z "`$CC $CPPFLAGS $CFLAGS -Wwrite-strings -c conftest.c 2>&1`"; then
13397 eval "cv_prog_cc_flag_$cache=yes"
13398 else
13399 eval "cv_prog_cc_flag_$cache=no"
13400 fi
13401 rm -f conftest conftest.o conftest.c
13402
13403 fi
13404
13405 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13407 printf "%s\n" "yes" >&6; }
13408 :
13409 CFLAGS="-Wwrite-strings $CFLAGS"
13410 else
13411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412 printf "%s\n" "no" >&6; }
13413 :
13414
13415 fi
13416
13417
13418
13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes" >&5
13420 printf %s "checking whether $CC supports -Wstrict-prototypes... " >&6; }
13421 cache=`echo Wstrict-prototypes | sed 'y%.=/+-%___p_%'`
13422 if eval test \${cv_prog_cc_flag_$cache+y}
13423 then :
13424   printf %s "(cached) " >&6
13425 else $as_nop
13426
13427 echo 'void f(void){}' >conftest.c
13428 if test -z "`$CC $CPPFLAGS $CFLAGS -Wstrict-prototypes -c conftest.c 2>&1`"; then
13429 eval "cv_prog_cc_flag_$cache=yes"
13430 else
13431 eval "cv_prog_cc_flag_$cache=no"
13432 fi
13433 rm -f conftest conftest.o conftest.c
13434
13435 fi
13436
13437 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13439 printf "%s\n" "yes" >&6; }
13440 :
13441 CFLAGS="-Wstrict-prototypes $CFLAGS"
13442 else
13443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13444 printf "%s\n" "no" >&6; }
13445 :
13446
13447 fi
13448
13449 #ACX_CHECK_COMPILER_FLAG(Wshadow, [CFLAGS="-Wshadow $CFLAGS"])
13450
13451
13452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-function" >&5
13453 printf %s "checking whether $CC supports -Wunused-function... " >&6; }
13454 cache=`echo Wunused-function | sed 'y%.=/+-%___p_%'`
13455 if eval test \${cv_prog_cc_flag_$cache+y}
13456 then :
13457   printf %s "(cached) " >&6
13458 else $as_nop
13459
13460 echo 'void f(void){}' >conftest.c
13461 if test -z "`$CC $CPPFLAGS $CFLAGS -Wunused-function -c conftest.c 2>&1`"; then
13462 eval "cv_prog_cc_flag_$cache=yes"
13463 else
13464 eval "cv_prog_cc_flag_$cache=no"
13465 fi
13466 rm -f conftest conftest.o conftest.c
13467
13468 fi
13469
13470 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13472 printf "%s\n" "yes" >&6; }
13473 :
13474 CFLAGS="-Wunused-function $CFLAGS"
13475 else
13476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 printf "%s\n" "no" >&6; }
13478 :
13479
13480 fi
13481
13482
13483
13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-prototypes" >&5
13485 printf %s "checking whether $CC supports -Wmissing-prototypes... " >&6; }
13486 cache=`echo Wmissing-prototypes | sed 'y%.=/+-%___p_%'`
13487 if eval test \${cv_prog_cc_flag_$cache+y}
13488 then :
13489   printf %s "(cached) " >&6
13490 else $as_nop
13491
13492 echo 'void f(void){}' >conftest.c
13493 if test -z "`$CC $CPPFLAGS $CFLAGS -Wmissing-prototypes -c conftest.c 2>&1`"; then
13494 eval "cv_prog_cc_flag_$cache=yes"
13495 else
13496 eval "cv_prog_cc_flag_$cache=no"
13497 fi
13498 rm -f conftest conftest.o conftest.c
13499
13500 fi
13501
13502 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13504 printf "%s\n" "yes" >&6; }
13505 :
13506 CFLAGS="-Wmissing-prototypes $CFLAGS"
13507 else
13508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509 printf "%s\n" "no" >&6; }
13510 :
13511
13512 fi
13513
13514
13515
13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
13517 printf %s "checking whether $CC supports -fno-strict-aliasing... " >&6; }
13518 cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'`
13519 if eval test \${cv_prog_cc_flag_$cache+y}
13520 then :
13521   printf %s "(cached) " >&6
13522 else $as_nop
13523
13524 echo 'void f(void){}' >conftest.c
13525 if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then
13526 eval "cv_prog_cc_flag_$cache=yes"
13527 else
13528 eval "cv_prog_cc_flag_$cache=no"
13529 fi
13530 rm -f conftest conftest.o conftest.c
13531
13532 fi
13533
13534 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13536 printf "%s\n" "yes" >&6; }
13537 :
13538 CFLAGS="-fno-strict-aliasing $CFLAGS"
13539 else
13540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541 printf "%s\n" "no" >&6; }
13542 :
13543
13544 fi
13545
13546
13547 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default
13548 "
13549 if test "x$ac_cv_header_getopt_h" = xyes
13550 then :
13551   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
13552
13553 fi
13554 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default
13555 "
13556 if test "x$ac_cv_header_time_h" = xyes
13557 then :
13558   printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
13559
13560 fi
13561
13562
13563 # MinGW32 tests
13564 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
13565 "
13566 if test "x$ac_cv_header_winsock2_h" = xyes
13567 then :
13568   printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
13569
13570 fi
13571 ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default
13572 "
13573 if test "x$ac_cv_header_ws2tcpip_h" = xyes
13574 then :
13575   printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
13576
13577 fi
13578
13579 # end mingw32 tests
13580
13581 # Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
13582 ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default"
13583 if test "x$ac_cv_header_TargetConditionals_h" = xyes
13584 then :
13585   printf "%s\n" "#define HAVE_TARGETCONDITIONALS_H 1" >>confdefs.h
13586
13587 fi
13588
13589
13590
13591
13592
13593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
13594 printf %s "checking whether $CC supports -Werror... " >&6; }
13595 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
13596 if eval test \${cv_prog_cc_flag_$cache+y}
13597 then :
13598   printf %s "(cached) " >&6
13599 else $as_nop
13600
13601 echo 'void f(void){}' >conftest.c
13602 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
13603 eval "cv_prog_cc_flag_$cache=yes"
13604 else
13605 eval "cv_prog_cc_flag_$cache=no"
13606 fi
13607 rm -f conftest conftest.o conftest.c
13608
13609 fi
13610
13611 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13613 printf "%s\n" "yes" >&6; }
13614 :
13615 ERRFLAG="-Werror"
13616 else
13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 printf "%s\n" "no" >&6; }
13619 :
13620 ERRFLAG="-errwarn"
13621 fi
13622
13623
13624
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
13626 printf %s "checking whether $CC supports -Wall... " >&6; }
13627 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
13628 if eval test \${cv_prog_cc_flag_$cache+y}
13629 then :
13630   printf %s "(cached) " >&6
13631 else $as_nop
13632
13633 echo 'void f(void){}' >conftest.c
13634 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
13635 eval "cv_prog_cc_flag_$cache=yes"
13636 else
13637 eval "cv_prog_cc_flag_$cache=no"
13638 fi
13639 rm -f conftest conftest.o conftest.c
13640
13641 fi
13642
13643 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13645 printf "%s\n" "yes" >&6; }
13646 :
13647 ERRFLAG="$ERRFLAG -Wall"
13648 else
13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 printf "%s\n" "no" >&6; }
13651 :
13652 ERRFLAG="$ERRFLAG -errfmt"
13653 fi
13654
13655
13656
13657
13658
13659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
13660 printf %s "checking whether $CC supports -std=c99... " >&6; }
13661 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
13662 if eval test \${cv_prog_cc_flag_$cache+y}
13663 then :
13664   printf %s "(cached) " >&6
13665 else $as_nop
13666
13667 echo 'void f(void){}' >conftest.c
13668 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
13669 eval "cv_prog_cc_flag_$cache=yes"
13670 else
13671 eval "cv_prog_cc_flag_$cache=no"
13672 fi
13673 rm -f conftest conftest.o conftest.c
13674
13675 fi
13676
13677 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13679 printf "%s\n" "yes" >&6; }
13680 :
13681 C99FLAG="-std=c99"
13682 else
13683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 printf "%s\n" "no" >&6; }
13685 :
13686
13687 fi
13688
13689
13690
13691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
13692 printf %s "checking whether $CC supports -xc99... " >&6; }
13693 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
13694 if eval test \${cv_prog_cc_flag_$cache+y}
13695 then :
13696   printf %s "(cached) " >&6
13697 else $as_nop
13698
13699 echo 'void f(void){}' >conftest.c
13700 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
13701 eval "cv_prog_cc_flag_$cache=yes"
13702 else
13703 eval "cv_prog_cc_flag_$cache=no"
13704 fi
13705 rm -f conftest conftest.o conftest.c
13706
13707 fi
13708
13709 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13711 printf "%s\n" "yes" >&6; }
13712 :
13713 C99FLAG="-xc99"
13714 else
13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716 printf "%s\n" "no" >&6; }
13717 :
13718
13719 fi
13720
13721
13722 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default
13723 "
13724 if test "x$ac_cv_header_getopt_h" = xyes
13725 then :
13726   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
13727
13728 fi
13729 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default
13730 "
13731 if test "x$ac_cv_header_time_h" = xyes
13732 then :
13733   printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
13734
13735 fi
13736
13737
13738
13739
13740
13741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
13742 printf %s "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
13743 cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
13744 if eval test \${cv_prog_cc_flag_needed_$cache+y}
13745 then :
13746   printf %s "(cached) " >&6
13747 else $as_nop
13748
13749 echo '
13750 #include "confdefs.h"
13751 #include <stdlib.h>
13752 #include <ctype.h>
13753 #include <sys/time.h>
13754 #ifdef HAVE_TIME_H
13755 #include <time.h>
13756 #endif
13757 #include <unistd.h>
13758 #include <netdb.h>
13759 #ifdef HAVE_GETOPT_H
13760 #include <getopt.h>
13761 #endif
13762
13763 int test() {
13764         int a;
13765         char **opts = NULL;
13766         struct timeval tv;
13767         char *t;
13768         time_t time = 0;
13769         char *buf = NULL;
13770         const char* str = NULL;
13771         struct msghdr msg;
13772         msg.msg_control = 0;
13773         t = ctime_r(&time, buf);
13774         tv.tv_usec = 10;
13775         srandom(32);
13776         a = getopt(2, opts, "a");
13777         a = isascii(32);
13778         str = gai_strerror(0);
13779         if(str && t && tv.tv_usec && msg.msg_control)
13780                 a = 0;
13781         return a;
13782 }
13783 ' > conftest.c
13784 echo 'void f(){}' >>conftest.c
13785 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13786 eval "cv_prog_cc_flag_needed_$cache=no"
13787 else
13788
13789 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
13790 eval "cv_prog_cc_flag_needed_$cache=yes"
13791 else
13792 eval "cv_prog_cc_flag_needed_$cache=fail"
13793 #echo 'Test with flag fails too!'
13794 #cat conftest.c
13795 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
13796 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
13797 #exit 1
13798 fi
13799
13800 fi
13801 rm -f conftest conftest.c conftest.o
13802
13803 fi
13804
13805 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13807 printf "%s\n" "yes" >&6; }
13808 :
13809 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
13810 else
13811 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813 printf "%s\n" "no" >&6; }
13814 #echo 'Test with flag is no!'
13815 #cat conftest.c
13816 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
13817 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
13818 #exit 1
13819 :
13820
13821 else
13822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13823 printf "%s\n" "failed" >&6; }
13824 :
13825
13826 fi
13827 fi
13828
13829
13830
13831
13832
13833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
13834 printf %s "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
13835 cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
13836 if eval test \${cv_prog_cc_flag_needed_$cache+y}
13837 then :
13838   printf %s "(cached) " >&6
13839 else $as_nop
13840
13841 echo '
13842 #include "confdefs.h"
13843 #include <stdlib.h>
13844 #include <ctype.h>
13845 #include <sys/time.h>
13846 #ifdef HAVE_TIME_H
13847 #include <time.h>
13848 #endif
13849 #include <unistd.h>
13850 #include <netdb.h>
13851 #ifdef HAVE_GETOPT_H
13852 #include <getopt.h>
13853 #endif
13854
13855 int test() {
13856         int a;
13857         char **opts = NULL;
13858         struct timeval tv;
13859         char *t;
13860         time_t time = 0;
13861         char *buf = NULL;
13862         const char* str = NULL;
13863         struct msghdr msg;
13864         msg.msg_control = 0;
13865         t = ctime_r(&time, buf);
13866         tv.tv_usec = 10;
13867         srandom(32);
13868         a = getopt(2, opts, "a");
13869         a = isascii(32);
13870         str = gai_strerror(0);
13871         if(str && t && tv.tv_usec && msg.msg_control)
13872                 a = 0;
13873         return a;
13874 }
13875 ' > conftest.c
13876 echo 'void f(){}' >>conftest.c
13877 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13878 eval "cv_prog_cc_flag_needed_$cache=no"
13879 else
13880
13881 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
13882 eval "cv_prog_cc_flag_needed_$cache=yes"
13883 else
13884 eval "cv_prog_cc_flag_needed_$cache=fail"
13885 #echo 'Test with flag fails too!'
13886 #cat conftest.c
13887 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
13888 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
13889 #exit 1
13890 fi
13891
13892 fi
13893 rm -f conftest conftest.c conftest.o
13894
13895 fi
13896
13897 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13899 printf "%s\n" "yes" >&6; }
13900 :
13901 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
13902 else
13903 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13905 printf "%s\n" "no" >&6; }
13906 #echo 'Test with flag is no!'
13907 #cat conftest.c
13908 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
13909 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
13910 #exit 1
13911 :
13912
13913 else
13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13915 printf "%s\n" "failed" >&6; }
13916 :
13917
13918 fi
13919 fi
13920
13921
13922
13923
13924
13925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
13926 printf %s "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
13927 cache=`printf "%s\n" "$C99FLAG" | $as_tr_sh`
13928 if eval test \${cv_prog_cc_flag_needed_$cache+y}
13929 then :
13930   printf %s "(cached) " >&6
13931 else $as_nop
13932
13933 echo '
13934 #include <stdbool.h>
13935 #include <ctype.h>
13936 int test() {
13937         int a = 0;
13938         return a;
13939 }
13940 ' > conftest.c
13941 echo 'void f(){}' >>conftest.c
13942 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13943 eval "cv_prog_cc_flag_needed_$cache=no"
13944 else
13945
13946 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
13947 eval "cv_prog_cc_flag_needed_$cache=yes"
13948 else
13949 eval "cv_prog_cc_flag_needed_$cache=fail"
13950 #echo 'Test with flag fails too!'
13951 #cat conftest.c
13952 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
13953 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
13954 #exit 1
13955 fi
13956
13957 fi
13958 rm -f conftest conftest.c conftest.o
13959
13960 fi
13961
13962 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13964 printf "%s\n" "yes" >&6; }
13965 :
13966 CFLAGS="$CFLAGS $C99FLAG"
13967 else
13968 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970 printf "%s\n" "no" >&6; }
13971 #echo 'Test with flag is no!'
13972 #cat conftest.c
13973 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
13974 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
13975 #exit 1
13976 :
13977
13978 else
13979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13980 printf "%s\n" "failed" >&6; }
13981 :
13982
13983 fi
13984 fi
13985
13986
13987
13988
13989
13990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
13991 printf %s "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
13992 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
13993 if eval test \${cv_prog_cc_flag_needed_$cache+y}
13994 then :
13995   printf %s "(cached) " >&6
13996 else $as_nop
13997
13998 echo '
13999 #include <ctype.h>
14000
14001 int test() {
14002         int a;
14003         a = isascii(32);
14004         return a;
14005 }
14006 ' > conftest.c
14007 echo 'void f(){}' >>conftest.c
14008 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14009 eval "cv_prog_cc_flag_needed_$cache=no"
14010 else
14011
14012 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
14013 eval "cv_prog_cc_flag_needed_$cache=yes"
14014 else
14015 eval "cv_prog_cc_flag_needed_$cache=fail"
14016 #echo 'Test with flag fails too!'
14017 #cat conftest.c
14018 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
14019 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
14020 #exit 1
14021 fi
14022
14023 fi
14024 rm -f conftest conftest.c conftest.o
14025
14026 fi
14027
14028 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14030 printf "%s\n" "yes" >&6; }
14031 :
14032 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
14033 else
14034 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14036 printf "%s\n" "no" >&6; }
14037 #echo 'Test with flag is no!'
14038 #cat conftest.c
14039 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
14040 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
14041 #exit 1
14042 :
14043
14044 else
14045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14046 printf "%s\n" "failed" >&6; }
14047 :
14048
14049 fi
14050 fi
14051
14052
14053
14054
14055
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
14057 printf %s "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
14058 cache=_D_GNU_SOURCE
14059 if eval test \${cv_prog_cc_flag_needed_$cache+y}
14060 then :
14061   printf %s "(cached) " >&6
14062 else $as_nop
14063
14064 echo '
14065 #include <netinet/in.h>
14066
14067 int test() {
14068         struct in6_pktinfo inf;
14069         int a = (int)sizeof(inf);
14070         return a;
14071 }
14072 ' > conftest.c
14073 echo 'void f(){}' >>conftest.c
14074 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14075 eval "cv_prog_cc_flag_needed_$cache=no"
14076 else
14077
14078 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
14079 eval "cv_prog_cc_flag_needed_$cache=yes"
14080 else
14081 eval "cv_prog_cc_flag_needed_$cache=fail"
14082 #echo 'Test with flag fails too!'
14083 #cat conftest.c
14084 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
14085 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
14086 #exit 1
14087 fi
14088
14089 fi
14090 rm -f conftest conftest.c conftest.o
14091
14092 fi
14093
14094 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14096 printf "%s\n" "yes" >&6; }
14097 :
14098 CFLAGS="$CFLAGS -D_GNU_SOURCE"
14099 else
14100 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14102 printf "%s\n" "no" >&6; }
14103 #echo 'Test with flag is no!'
14104 #cat conftest.c
14105 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
14106 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
14107 #exit 1
14108 :
14109
14110 else
14111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14112 printf "%s\n" "failed" >&6; }
14113 :
14114
14115 fi
14116 fi
14117
14118
14119 # check again for GNU_SOURCE for setresgid. May fail if setresgid
14120 # is not available at all. -D_FRSRESGID is to make this check unique.
14121 # otherwise we would get the previous cached result.
14122
14123
14124
14125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
14126 printf %s "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
14127 cache=_D_GNU_SOURCE__D_FRSRESGID
14128 if eval test \${cv_prog_cc_flag_needed_$cache+y}
14129 then :
14130   printf %s "(cached) " >&6
14131 else $as_nop
14132
14133 echo '
14134 #include <unistd.h>
14135
14136 int test() {
14137         int a = setresgid(0,0,0);
14138         a = setresuid(0,0,0);
14139         return a;
14140 }
14141 ' > conftest.c
14142 echo 'void f(){}' >>conftest.c
14143 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14144 eval "cv_prog_cc_flag_needed_$cache=no"
14145 else
14146
14147 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
14148 eval "cv_prog_cc_flag_needed_$cache=yes"
14149 else
14150 eval "cv_prog_cc_flag_needed_$cache=fail"
14151 #echo 'Test with flag fails too!'
14152 #cat conftest.c
14153 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
14154 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
14155 #exit 1
14156 fi
14157
14158 fi
14159 rm -f conftest conftest.c conftest.o
14160
14161 fi
14162
14163 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14165 printf "%s\n" "yes" >&6; }
14166 :
14167 CFLAGS="$CFLAGS -D_GNU_SOURCE"
14168 else
14169 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14171 printf "%s\n" "no" >&6; }
14172 #echo 'Test with flag is no!'
14173 #cat conftest.c
14174 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
14175 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
14176 #exit 1
14177 :
14178
14179 else
14180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14181 printf "%s\n" "failed" >&6; }
14182 :
14183
14184 fi
14185 fi
14186
14187
14188
14189
14190
14191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
14192 printf %s "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
14193 cache=_D_POSIX_C_SOURCE_200112
14194 if eval test \${cv_prog_cc_flag_needed_$cache+y}
14195 then :
14196   printf %s "(cached) " >&6
14197 else $as_nop
14198
14199 echo '
14200 #include "confdefs.h"
14201 #ifdef HAVE_TIME_H
14202 #include <time.h>
14203 #endif
14204 #include <netdb.h>
14205
14206 int test() {
14207         int a = 0;
14208         char *t;
14209         time_t time = 0;
14210         char *buf = NULL;
14211         const char* str = NULL;
14212         t = ctime_r(&time, buf);
14213         str = gai_strerror(0);
14214         if(t && str)
14215                 a = 0;
14216         return a;
14217 }
14218 ' > conftest.c
14219 echo 'void f(){}' >>conftest.c
14220 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14221 eval "cv_prog_cc_flag_needed_$cache=no"
14222 else
14223
14224 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
14225 eval "cv_prog_cc_flag_needed_$cache=yes"
14226 else
14227 eval "cv_prog_cc_flag_needed_$cache=fail"
14228 #echo 'Test with flag fails too!'
14229 #cat conftest.c
14230 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
14231 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
14232 #exit 1
14233 fi
14234
14235 fi
14236 rm -f conftest conftest.c conftest.o
14237
14238 fi
14239
14240 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14242 printf "%s\n" "yes" >&6; }
14243 :
14244 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
14245 else
14246 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248 printf "%s\n" "no" >&6; }
14249 #echo 'Test with flag is no!'
14250 #cat conftest.c
14251 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
14252 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
14253 #exit 1
14254 :
14255
14256 else
14257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14258 printf "%s\n" "failed" >&6; }
14259 :
14260
14261 fi
14262 fi
14263
14264
14265
14266
14267
14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
14269 printf %s "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
14270 cache=_D__EXTENSIONS__
14271 if eval test \${cv_prog_cc_flag_needed_$cache+y}
14272 then :
14273   printf %s "(cached) " >&6
14274 else $as_nop
14275
14276 echo '
14277 #include "confdefs.h"
14278 #include <stdlib.h>
14279 #include <ctype.h>
14280 #include <sys/time.h>
14281 #ifdef HAVE_TIME_H
14282 #include <time.h>
14283 #endif
14284 #include <unistd.h>
14285 #ifdef HAVE_GETOPT_H
14286 #include <getopt.h>
14287 #endif
14288
14289 int test() {
14290         int a;
14291         char **opts = NULL;
14292         struct timeval tv;
14293         tv.tv_usec = 10;
14294         srandom(32);
14295         a = getopt(2, opts, "a");
14296         a = isascii(32);
14297         if(tv.tv_usec)
14298                 a = 0;
14299         return a;
14300 }
14301 ' > conftest.c
14302 echo 'void f(){}' >>conftest.c
14303 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14304 eval "cv_prog_cc_flag_needed_$cache=no"
14305 else
14306
14307 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
14308 eval "cv_prog_cc_flag_needed_$cache=yes"
14309 else
14310 eval "cv_prog_cc_flag_needed_$cache=fail"
14311 #echo 'Test with flag fails too!'
14312 #cat conftest.c
14313 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
14314 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
14315 #exit 1
14316 fi
14317
14318 fi
14319 rm -f conftest conftest.c conftest.o
14320
14321 fi
14322
14323 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14325 printf "%s\n" "yes" >&6; }
14326 :
14327 CFLAGS="$CFLAGS -D__EXTENSIONS__"
14328 else
14329 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331 printf "%s\n" "no" >&6; }
14332 #echo 'Test with flag is no!'
14333 #cat conftest.c
14334 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
14335 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
14336 #exit 1
14337 :
14338
14339 else
14340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14341 printf "%s\n" "failed" >&6; }
14342 :
14343
14344 fi
14345 fi
14346
14347
14348
14349
14350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14351 printf %s "checking for inline... " >&6; }
14352 if test ${ac_cv_c_inline+y}
14353 then :
14354   printf %s "(cached) " >&6
14355 else $as_nop
14356   ac_cv_c_inline=no
14357 for ac_kw in inline __inline__ __inline; do
14358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h.  */
14360 #ifndef __cplusplus
14361 typedef int foo_t;
14362 static $ac_kw foo_t static_foo (void) {return 0; }
14363 $ac_kw foo_t foo (void) {return 0; }
14364 #endif
14365
14366 _ACEOF
14367 if ac_fn_c_try_compile "$LINENO"
14368 then :
14369   ac_cv_c_inline=$ac_kw
14370 fi
14371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14372   test "$ac_cv_c_inline" != no && break
14373 done
14374
14375 fi
14376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14377 printf "%s\n" "$ac_cv_c_inline" >&6; }
14378
14379 case $ac_cv_c_inline in
14380   inline | yes) ;;
14381   *)
14382     case $ac_cv_c_inline in
14383       no) ac_val=;;
14384       *) ac_val=$ac_cv_c_inline;;
14385     esac
14386     cat >>confdefs.h <<_ACEOF
14387 #ifndef __cplusplus
14388 #define inline $ac_val
14389 #endif
14390 _ACEOF
14391     ;;
14392 esac
14393
14394 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14395 if test "x$ac_cv_type_int8_t" = xyes
14396 then :
14397
14398 else $as_nop
14399
14400 printf "%s\n" "#define int8_t char" >>confdefs.h
14401
14402 fi
14403
14404 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14405 if test "x$ac_cv_type_int16_t" = xyes
14406 then :
14407
14408 else $as_nop
14409
14410 printf "%s\n" "#define int16_t short" >>confdefs.h
14411
14412 fi
14413
14414 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14415 if test "x$ac_cv_type_int32_t" = xyes
14416 then :
14417
14418 else $as_nop
14419
14420 printf "%s\n" "#define int32_t int" >>confdefs.h
14421
14422 fi
14423
14424 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14425 if test "x$ac_cv_type_int64_t" = xyes
14426 then :
14427
14428 else $as_nop
14429
14430 printf "%s\n" "#define int64_t long long" >>confdefs.h
14431
14432 fi
14433
14434 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14435 if test "x$ac_cv_type_uint8_t" = xyes
14436 then :
14437
14438 else $as_nop
14439
14440 printf "%s\n" "#define uint8_t unsigned char" >>confdefs.h
14441
14442 fi
14443
14444 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14445 if test "x$ac_cv_type_uint16_t" = xyes
14446 then :
14447
14448 else $as_nop
14449
14450 printf "%s\n" "#define uint16_t unsigned short" >>confdefs.h
14451
14452 fi
14453
14454 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14455 if test "x$ac_cv_type_uint32_t" = xyes
14456 then :
14457
14458 else $as_nop
14459
14460 printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h
14461
14462 fi
14463
14464 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14465 if test "x$ac_cv_type_uint64_t" = xyes
14466 then :
14467
14468 else $as_nop
14469
14470 printf "%s\n" "#define uint64_t unsigned long long" >>confdefs.h
14471
14472 fi
14473
14474
14475 # my own checks
14476 # Extract the first word of "doxygen", so it can be a program name with args.
14477 set dummy doxygen; ac_word=$2
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479 printf %s "checking for $ac_word... " >&6; }
14480 if test ${ac_cv_prog_doxygen+y}
14481 then :
14482   printf %s "(cached) " >&6
14483 else $as_nop
14484   if test -n "$doxygen"; then
14485   ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
14486 else
14487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14488 for as_dir in $PATH
14489 do
14490   IFS=$as_save_IFS
14491   case $as_dir in #(((
14492     '') as_dir=./ ;;
14493     */) ;;
14494     *) as_dir=$as_dir/ ;;
14495   esac
14496     for ac_exec_ext in '' $ac_executable_extensions; do
14497   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14498     ac_cv_prog_doxygen="doxygen"
14499     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14500     break 2
14501   fi
14502 done
14503   done
14504 IFS=$as_save_IFS
14505
14506 fi
14507 fi
14508 doxygen=$ac_cv_prog_doxygen
14509 if test -n "$doxygen"; then
14510   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
14511 printf "%s\n" "$doxygen" >&6; }
14512 else
14513   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 printf "%s\n" "no" >&6; }
14515 fi
14516
14517
14518
14519 # check to see if libraries are needed for these functions.
14520 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14521 if test "x$ac_cv_func_socket" = xyes
14522 then :
14523
14524 else $as_nop
14525   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14526 printf %s "checking for library containing socket... " >&6; }
14527 if test ${ac_cv_search_socket+y}
14528 then :
14529   printf %s "(cached) " >&6
14530 else $as_nop
14531   ac_func_search_save_LIBS=$LIBS
14532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h.  */
14534
14535 /* Override any GCC internal prototype to avoid an error.
14536    Use char because int might match the return type of a GCC
14537    builtin and then its argument prototype would still apply.  */
14538 char socket ();
14539 int
14540 main (void)
14541 {
14542 return socket ();
14543   ;
14544   return 0;
14545 }
14546 _ACEOF
14547 for ac_lib in '' socket
14548 do
14549   if test -z "$ac_lib"; then
14550     ac_res="none required"
14551   else
14552     ac_res=-l$ac_lib
14553     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14554   fi
14555   if ac_fn_c_try_link "$LINENO"
14556 then :
14557   ac_cv_search_socket=$ac_res
14558 fi
14559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14560     conftest$ac_exeext
14561   if test ${ac_cv_search_socket+y}
14562 then :
14563   break
14564 fi
14565 done
14566 if test ${ac_cv_search_socket+y}
14567 then :
14568
14569 else $as_nop
14570   ac_cv_search_socket=no
14571 fi
14572 rm conftest.$ac_ext
14573 LIBS=$ac_func_search_save_LIBS
14574 fi
14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14576 printf "%s\n" "$ac_cv_search_socket" >&6; }
14577 ac_res=$ac_cv_search_socket
14578 if test "$ac_res" != no
14579 then :
14580   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14581
14582 fi
14583
14584
14585 fi
14586
14587
14588 # modern Linux provides inet_ntop in -lsocket.
14589 # modern OS X provides inet_ntop in -lc.
14590 # modern Solaris provides inet_ntop in -lsocket -lnsl.
14591 # older Solaris provides inet_ntop in -lresolv.
14592 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14593 if test "x$ac_cv_func_inet_ntop" = xyes
14594 then :
14595
14596 else $as_nop
14597   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
14598 printf %s "checking for library containing inet_ntop... " >&6; }
14599 if test ${ac_cv_search_inet_ntop+y}
14600 then :
14601   printf %s "(cached) " >&6
14602 else $as_nop
14603   ac_func_search_save_LIBS=$LIBS
14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h.  */
14606
14607 /* Override any GCC internal prototype to avoid an error.
14608    Use char because int might match the return type of a GCC
14609    builtin and then its argument prototype would still apply.  */
14610 char inet_ntop ();
14611 int
14612 main (void)
14613 {
14614 return inet_ntop ();
14615   ;
14616   return 0;
14617 }
14618 _ACEOF
14619 for ac_lib in '' socket c nsl resolv
14620 do
14621   if test -z "$ac_lib"; then
14622     ac_res="none required"
14623   else
14624     ac_res=-l$ac_lib
14625     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14626   fi
14627   if ac_fn_c_try_link "$LINENO"
14628 then :
14629   ac_cv_search_inet_ntop=$ac_res
14630 fi
14631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14632     conftest$ac_exeext
14633   if test ${ac_cv_search_inet_ntop+y}
14634 then :
14635   break
14636 fi
14637 done
14638 if test ${ac_cv_search_inet_ntop+y}
14639 then :
14640
14641 else $as_nop
14642   ac_cv_search_inet_ntop=no
14643 fi
14644 rm conftest.$ac_ext
14645 LIBS=$ac_func_search_save_LIBS
14646 fi
14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
14648 printf "%s\n" "$ac_cv_search_inet_ntop" >&6; }
14649 ac_res=$ac_cv_search_inet_ntop
14650 if test "$ac_res" != no
14651 then :
14652   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14653   ac_cv_func_inet_ntop=yes
14654 fi
14655
14656
14657 fi
14658
14659
14660 # modern Linux provides inet_pton in -lsocket.
14661 # modern OS X provides inet_pton in -lc.
14662 # modern Solaris provides inet_pton in -lsocket -lnsl.
14663 # older Solaris provides inet_pton in -lresolv.
14664 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
14665 if test "x$ac_cv_func_inet_pton" = xyes
14666 then :
14667
14668 else $as_nop
14669   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14670 printf %s "checking for library containing inet_pton... " >&6; }
14671 if test ${ac_cv_search_inet_pton+y}
14672 then :
14673   printf %s "(cached) " >&6
14674 else $as_nop
14675   ac_func_search_save_LIBS=$LIBS
14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h.  */
14678
14679 /* Override any GCC internal prototype to avoid an error.
14680    Use char because int might match the return type of a GCC
14681    builtin and then its argument prototype would still apply.  */
14682 char inet_pton ();
14683 int
14684 main (void)
14685 {
14686 return inet_pton ();
14687   ;
14688   return 0;
14689 }
14690 _ACEOF
14691 for ac_lib in '' socket c nsl resolv
14692 do
14693   if test -z "$ac_lib"; then
14694     ac_res="none required"
14695   else
14696     ac_res=-l$ac_lib
14697     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14698   fi
14699   if ac_fn_c_try_link "$LINENO"
14700 then :
14701   ac_cv_search_inet_pton=$ac_res
14702 fi
14703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14704     conftest$ac_exeext
14705   if test ${ac_cv_search_inet_pton+y}
14706 then :
14707   break
14708 fi
14709 done
14710 if test ${ac_cv_search_inet_pton+y}
14711 then :
14712
14713 else $as_nop
14714   ac_cv_search_inet_pton=no
14715 fi
14716 rm conftest.$ac_ext
14717 LIBS=$ac_func_search_save_LIBS
14718 fi
14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14720 printf "%s\n" "$ac_cv_search_inet_pton" >&6; }
14721 ac_res=$ac_cv_search_inet_pton
14722 if test "$ac_res" != no
14723 then :
14724   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14725   ac_cv_func_inet_pton=yes
14726 fi
14727
14728
14729 fi
14730
14731
14732
14733
14734 # Check whether --with-drill was given.
14735 if test ${with_drill+y}
14736 then :
14737   withval=$with_drill;
14738 else $as_nop
14739   with_drill="no"
14740 fi
14741
14742 if test x_$with_drill != x_no ; then
14743         DRILL=drill
14744
14745         INSTALL_DRILL=install-drill
14746
14747         UNINSTALL_DRILL=uninstall-drill
14748
14749         CLEAN_DRILL=clean-drill
14750
14751         LINT_DRILL=lint-drill
14752
14753         if test -e $srcdir/drill/config.h -o -e drill/config.h ; then
14754                 as_fn_error $? "
14755 A config.h was detected in the drill subdirectory.
14756 This does not work with the --with-drill option.
14757 Please remove the config.h from the drill subdirectory
14758 or do not use the --with-drill option." "$LINENO" 5
14759         fi
14760 else
14761         DRILL=""
14762
14763         INSTALL_DRILL=""
14764
14765         UNINSTALL_DRILL=""
14766
14767         CLEAN_DRILL=""
14768
14769         LINT_DRILL=""
14770
14771 fi
14772
14773
14774
14775 # Check whether --with-examples was given.
14776 if test ${with_examples+y}
14777 then :
14778   withval=$with_examples;
14779 else $as_nop
14780   with_examples="no"
14781 fi
14782
14783 if test x_$with_examples != x_no ; then
14784         EXAMPLES=examples
14785
14786         INSTALL_EXAMPLES=install-examples
14787
14788         UNINSTALL_EXAMPLES=uninstall-examples
14789
14790         CLEAN_EXAMPLES=clean-examples
14791
14792         LINT_EXAMPLES=lint-examples
14793
14794         if test -e $srcdir/examples/config.h -o -e examples/config.h ; then
14795                 as_fn_error $? "
14796 A config.h was detected in the examples subdirectory.
14797 This does not work with the --with-examples option.
14798 Please remove the config.h from the examples subdirectory
14799 or do not use the --with-examples option." "$LINENO" 5
14800         fi
14801 else
14802         EXAMPLES=""
14803
14804         INSTALL_EXAMPLES=""
14805
14806         UNINSTALL_EXAMPLES=""
14807
14808         CLEAN_EXAMPLES=""
14809
14810         LINT_EXAMPLES=""
14811
14812 fi
14813
14814 # add option to disable installation of ldns-config script
14815 # Check whether --enable-ldns-config was given.
14816 if test ${enable_ldns_config+y}
14817 then :
14818   enableval=$enable_ldns_config; enable_ldns_config=$enableval
14819 else $as_nop
14820   enable_ldns_config=yes
14821 fi
14822
14823 if test "x$enable_ldns_config" = xyes; then
14824         INSTALL_CONFIG=install-config
14825
14826         INSTALL_CONFIG_MANPAGE=install-config-manpage
14827
14828         UNINSTALL_CONFIG=uninstall-config
14829
14830         UNINSTALL_CONFIG_MANPAGE=uninstall-config-manpage
14831
14832 else
14833         INSTALL_CONFIG=""
14834
14835         INSTALL_CONFIG_MANPAGE=""
14836
14837         UNINSTALL_CONFIG=""
14838
14839         UNINSTALL_CONFIG_MANPAGE=""
14840
14841 fi
14842
14843 # add option to disable library printing to stderr
14844 # Check whether --enable-stderr-msgs was given.
14845 if test ${enable_stderr_msgs+y}
14846 then :
14847   enableval=$enable_stderr_msgs; enable_stderr_msgs=$enableval
14848 else $as_nop
14849   enable_stderr_msgs=no
14850 fi
14851
14852 case "$enable_stderr_msgs" in
14853     no)         ;;
14854     *)
14855
14856 printf "%s\n" "#define STDERR_MSGS 1" >>confdefs.h
14857
14858         ;;
14859 esac
14860
14861   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poll(2)" >&5
14862 printf %s "checking for poll(2)... " >&6; }
14863   if test ${ax_cv_have_poll+y}
14864 then :
14865   printf %s "(cached) " >&6
14866 else $as_nop
14867       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h.  */
14869       #include <poll.h>
14870 int
14871 main (void)
14872 {
14873 int rc; rc = poll((struct pollfd *)(0), 0, 0);
14874   ;
14875   return 0;
14876 }
14877 _ACEOF
14878 if ac_fn_c_try_link "$LINENO"
14879 then :
14880   ax_cv_have_poll=yes
14881 else $as_nop
14882   ax_cv_have_poll=no
14883 fi
14884 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14885     conftest$ac_exeext conftest.$ac_ext
14886 fi
14887
14888   if test "${ax_cv_have_poll}" = "yes"
14889 then :
14890   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14891 printf "%s\n" "yes" >&6; }
14892    ax_config_feature_poll=yes
14893
14894 else $as_nop
14895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896 printf "%s\n" "no" >&6; }
14897    ax_config_feature_poll=no
14898
14899 fi
14900
14901
14902 # Check whether --enable-poll was given.
14903 if test ${enable_poll+y}
14904 then :
14905   enableval=$enable_poll;
14906 case "${enableval}" in
14907    yes)
14908      ax_config_feature_poll="yes"
14909      ;;
14910    no)
14911      ax_config_feature_poll="no"
14912      ;;
14913    *)
14914      as_fn_error $? "bad value ${enableval} for feature --poll" "$LINENO" 5
14915      ;;
14916 esac
14917
14918 fi
14919
14920
14921 if test "$ax_config_feature_poll" = yes
14922 then :
14923      printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
14924
14925
14926   if test "$ax_config_feature_verbose" = yes
14927 then :
14928        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Feature poll is enabled" >&5
14929 printf "%s\n" "$as_me: Feature poll is enabled" >&6;}
14930
14931 fi
14932
14933 else $as_nop
14934
14935   if test "$ax_config_feature_verbose" = yes
14936 then :
14937        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Feature poll is disabled" >&5
14938 printf "%s\n" "$as_me: Feature poll is disabled" >&6;}
14939
14940 fi
14941
14942 fi
14943
14944
14945
14946
14947
14948 # check for python
14949 PYTHON_X_CFLAGS=""
14950 ldns_with_pyldns=no
14951 ldns_with_pyldnsx=no
14952
14953 # Check whether --with-pyldns was given.
14954 if test ${with_pyldns+y}
14955 then :
14956   withval=$with_pyldns;
14957 else $as_nop
14958    withval="no"
14959 fi
14960
14961 ldns_have_python=no
14962 if test x_$withval != x_no; then
14963    # ===========================================================================
14964 #     https://www.gnu.org/software/autoconf-archive/ax_python_devel.html
14965 # ===========================================================================
14966 #
14967 # SYNOPSIS
14968 #
14969 #   AX_PYTHON_DEVEL([version])
14970 #
14971 # DESCRIPTION
14972 #
14973 #   Note: Defines as a precious variable "PYTHON_VERSION". Don't override it
14974 #   in your configure.ac.
14975 #
14976 #   This macro checks for Python and tries to get the include path to
14977 #   'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LIBS) output
14978 #   variables. It also exports $(PYTHON_EXTRA_LIBS) and
14979 #   $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
14980 #
14981 #   You can search for some particular version of Python by passing a
14982 #   parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please
14983 #   note that you *have* to pass also an operator along with the version to
14984 #   match, and pay special attention to the single quotes surrounding the
14985 #   version number. Don't use "PYTHON_VERSION" for this: that environment
14986 #   variable is declared as precious and thus reserved for the end-user.
14987 #
14988 #   This macro should work for all versions of Python >= 2.1.0. As an end
14989 #   user, you can disable the check for the python version by setting the
14990 #   PYTHON_NOVERSIONCHECK environment variable to something else than the
14991 #   empty string.
14992 #
14993 #   If you need to use this macro for an older Python version, please
14994 #   contact the authors. We're always open for feedback.
14995 #
14996 # LICENSE
14997 #
14998 #   Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
14999 #   Copyright (c) 2009 Alan W. Irwin
15000 #   Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
15001 #   Copyright (c) 2009 Andrew Collier
15002 #   Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
15003 #   Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
15004 #   Copyright (c) 2013 Daniel Mullner <muellner@math.stanford.edu>
15005 #
15006 #   This program is free software: you can redistribute it and/or modify it
15007 #   under the terms of the GNU General Public License as published by the
15008 #   Free Software Foundation, either version 3 of the License, or (at your
15009 #   option) any later version.
15010 #
15011 #   This program is distributed in the hope that it will be useful, but
15012 #   WITHOUT ANY WARRANTY; without even the implied warranty of
15013 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15014 #   Public License for more details.
15015 #
15016 #   You should have received a copy of the GNU General Public License along
15017 #   with this program. If not, see <https://www.gnu.org/licenses/>.
15018 #
15019 #   As a special exception, the respective Autoconf Macro's copyright owner
15020 #   gives unlimited permission to copy, distribute and modify the configure
15021 #   scripts that are the output of Autoconf when processing the Macro. You
15022 #   need not follow the terms of the GNU General Public License when using
15023 #   or distributing such scripts, even though portions of the text of the
15024 #   Macro appear in them. The GNU General Public License (GPL) does govern
15025 #   all other use of the material that constitutes the Autoconf Macro.
15026 #
15027 #   This special exception to the GPL applies to versions of the Autoconf
15028 #   Macro released by the Autoconf Archive. When you make and distribute a
15029 #   modified version of the Autoconf Macro, you may extend this special
15030 #   exception to the GPL to apply to your modified version as well.
15031
15032 #serial 21
15033
15034 # This is what autoupdate's m4 run will expand.  It fires the warning
15035 # (with _au_warn_XXX), outputs it into the updated configure.ac (with
15036 # m4_warn), and then outputs the replacement expansion.  We need extra
15037 # quotation around the m4_warn and dnl so they will be written
15038 # unexpanded into the updated configure.ac.
15039
15040
15041 # This is an auxiliary macro that is also run when
15042 # autoupdate runs m4.  It simply calls m4_warning, but
15043 # we need a wrapper so that each warning is emitted only
15044 # once.  We break the quoting in m4_warning's argument in
15045 # order to expand this macro's arguments, not AU_DEFUN's.
15046
15047
15048 # Finally, this is the expansion that is picked up by
15049 # autoconf, causing NAME to expand to NEW-CODE, plus
15050 # (if SILENT is not "silent") a m4_warning telling the
15051 # maintainer to run autoupdate.  We don't issue MESSAGE
15052 # from autoconf, because that's instructions for what
15053 # to do *after* running autoupdate.
15054
15055
15056
15057    ac_save_LIBS="$LIBS"
15058
15059         #
15060         # Allow the use of a (user set) custom python version
15061         #
15062
15063
15064         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15065 set dummy python$PYTHON_VERSION; ac_word=$2
15066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15067 printf %s "checking for $ac_word... " >&6; }
15068 if test ${ac_cv_path_PYTHON+y}
15069 then :
15070   printf %s "(cached) " >&6
15071 else $as_nop
15072   case $PYTHON in
15073   [\\/]* | ?:[\\/]*)
15074   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15075   ;;
15076   *)
15077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15078 for as_dir in $PATH
15079 do
15080   IFS=$as_save_IFS
15081   case $as_dir in #(((
15082     '') as_dir=./ ;;
15083     */) ;;
15084     *) as_dir=$as_dir/ ;;
15085   esac
15086     for ac_exec_ext in '' $ac_executable_extensions; do
15087   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15088     ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
15089     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15090     break 2
15091   fi
15092 done
15093   done
15094 IFS=$as_save_IFS
15095
15096   ;;
15097 esac
15098 fi
15099 PYTHON=$ac_cv_path_PYTHON
15100 if test -n "$PYTHON"; then
15101   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15102 printf "%s\n" "$PYTHON" >&6; }
15103 else
15104   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15105 printf "%s\n" "no" >&6; }
15106 fi
15107
15108
15109         if test -z "$PYTHON"; then
15110            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15111            PYTHON_VERSION=""
15112         fi
15113
15114         #
15115         # Check for a version of Python >= 2.1.0
15116         #
15117         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
15118 printf %s "checking for a version of Python >= '2.1.0'... " >&6; }
15119         ac_supports_python_ver=`$PYTHON -c "import sys; \
15120                 ver = sys.version.split ()[0]; \
15121                 print (ver >= '2.1.0')"`
15122         if test "$ac_supports_python_ver" != "True"; then
15123                 if test -z "$PYTHON_NOVERSIONCHECK"; then
15124                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15125 printf "%s\n" "no" >&6; }
15126                         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15127 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15128 as_fn_error $? "
15129 This version of the AC_PYTHON_DEVEL macro
15130 doesn't work properly with versions of Python before
15131 2.1.0. You may need to re-run configure, setting the
15132 variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG,
15133 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
15134 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
15135 to something else than an empty string.
15136
15137 See \`config.log' for more details" "$LINENO" 5; }
15138                 else
15139                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
15140 printf "%s\n" "skip at user request" >&6; }
15141                 fi
15142         else
15143                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15144 printf "%s\n" "yes" >&6; }
15145         fi
15146
15147         #
15148         # if the macro parameter ``version'' is set, honour it
15149         #
15150         if test -n ">= '2.4.0'"; then
15151                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4.0'" >&5
15152 printf %s "checking for a version of Python >= '2.4.0'... " >&6; }
15153                 ac_supports_python_ver=`$PYTHON -c "import sys; \
15154                         ver = sys.version.split ()[0]; \
15155                         print (ver >= '2.4.0')"`
15156                 if test "$ac_supports_python_ver" = "True"; then
15157                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15158 printf "%s\n" "yes" >&6; }
15159                 else
15160                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161 printf "%s\n" "no" >&6; }
15162                         as_fn_error $? "this package requires Python >= '2.4.0'.
15163 If you have it installed, but it isn't the default Python
15164 interpreter in your system path, please pass the PYTHON_VERSION
15165 variable to configure. See \`\`configure --help'' for reference.
15166 " "$LINENO" 5
15167                         PYTHON_VERSION=""
15168                 fi
15169         fi
15170
15171         #
15172         # Check if you have distutils, else fail
15173         #
15174         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15175 printf %s "checking for the distutils Python package... " >&6; }
15176         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15177         if test $? -eq 0; then
15178                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15179 printf "%s\n" "yes" >&6; }
15180         else
15181                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15182 printf "%s\n" "no" >&6; }
15183                 as_fn_error $? "cannot import Python module \"distutils\".
15184 Please check your Python installation. The error was:
15185 $ac_distutils_result" "$LINENO" 5
15186                 PYTHON_VERSION=""
15187         fi
15188
15189         #
15190         # Check for Python include path
15191         #
15192         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15193 printf %s "checking for Python include path... " >&6; }
15194         if test -z "$PYTHON_CPPFLAGS"; then
15195                 python_path=`$PYTHON -c "import distutils.sysconfig; \
15196                         print (distutils.sysconfig.get_python_inc ());"`
15197                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
15198                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
15199                 if test -n "${python_path}"; then
15200                         if test "${plat_python_path}" != "${python_path}"; then
15201                                 python_path="-I$python_path -I$plat_python_path"
15202                         else
15203                                 python_path="-I$python_path"
15204                         fi
15205                 fi
15206                 PYTHON_CPPFLAGS=$python_path
15207         fi
15208         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15209 printf "%s\n" "$PYTHON_CPPFLAGS" >&6; }
15210
15211
15212         #
15213         # Check for Python library path
15214         #
15215         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15216 printf %s "checking for Python library path... " >&6; }
15217         if test -z "$PYTHON_LIBS"; then
15218                 # (makes two attempts to ensure we've got a version number
15219                 # from the interpreter)
15220                 ac_python_version=`cat<<EOD | $PYTHON -
15221
15222 # join all versioning strings, on some systems
15223 # major/minor numbers could be in different list elements
15224 from distutils.sysconfig import *
15225 e = get_config_var('VERSION')
15226 if e is not None:
15227         print(e)
15228 EOD`
15229
15230                 if test -z "$ac_python_version"; then
15231                         if test -n "$PYTHON_VERSION"; then
15232                                 ac_python_version=$PYTHON_VERSION
15233                         else
15234                                 ac_python_version=`$PYTHON -c "import sys; \
15235                                         print (sys.version[:3])"`
15236                         fi
15237                 fi
15238
15239                 # Make the versioning information available to the compiler
15240
15241 printf "%s\n" "#define HAVE_PYTHON \"$ac_python_version\"" >>confdefs.h
15242
15243
15244                 # First, the library directory:
15245                 ac_python_libdir=`cat<<EOD | $PYTHON -
15246
15247 # There should be only one
15248 import distutils.sysconfig
15249 e = distutils.sysconfig.get_config_var('LIBDIR')
15250 if e is not None:
15251         print (e)
15252 EOD`
15253
15254                 # Now, for the library:
15255                 ac_python_library=`cat<<EOD | $PYTHON -
15256
15257 import distutils.sysconfig
15258 c = distutils.sysconfig.get_config_vars()
15259 if 'LDVERSION' in c:
15260         print ('python'+c['LDVERSION'])
15261 else:
15262         print ('python'+c['VERSION'])
15263 EOD`
15264
15265                 # This small piece shamelessly adapted from PostgreSQL python macro;
15266                 # credits goes to momjian, I think. I'd like to put the right name
15267                 # in the credits, if someone can point me in the right direction... ?
15268                 #
15269                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
15270                 then
15271                         # use the official shared library
15272                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
15273                         PYTHON_LIBS="-L$ac_python_libdir -l$ac_python_library"
15274                 else
15275                         # old way: use libpython from python_configdir
15276                         ac_python_libdir=`$PYTHON -c \
15277                           "from distutils.sysconfig import get_python_lib as f; \
15278                           import os; \
15279                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
15280                         PYTHON_LIBS="-L$ac_python_libdir -lpython$ac_python_version"
15281                 fi
15282
15283                 if test -z "PYTHON_LIBS"; then
15284                         as_fn_error $? "
15285   Cannot determine location of your Python DSO. Please check it was installed with
15286   dynamic libraries enabled, or try setting PYTHON_LIBS by hand.
15287                         " "$LINENO" 5
15288                 fi
15289         fi
15290         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBS" >&5
15291 printf "%s\n" "$PYTHON_LIBS" >&6; }
15292
15293
15294         #
15295         # Check for site packages
15296         #
15297         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15298 printf %s "checking for Python site-packages path... " >&6; }
15299         if test -z "$PYTHON_SITE_PKG"; then
15300                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15301                         print (distutils.sysconfig.get_python_lib(1,0));"`
15302         fi
15303         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15304 printf "%s\n" "$PYTHON_SITE_PKG" >&6; }
15305
15306
15307         #
15308         # libraries which must be linked in when embedding
15309         #
15310         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
15311 printf %s "checking python extra libraries... " >&6; }
15312         if test -z "$PYTHON_EXTRA_LIBS"; then
15313            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
15314                 conf = distutils.sysconfig.get_config_var; \
15315                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
15316         fi
15317         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
15318 printf "%s\n" "$PYTHON_EXTRA_LIBS" >&6; }
15319
15320
15321         #
15322         # linking flags needed when embedding
15323         #
15324         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
15325 printf %s "checking python extra linking flags... " >&6; }
15326         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
15327                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
15328                         conf = distutils.sysconfig.get_config_var; \
15329                         print (conf('LINKFORSHARED'))"`
15330         fi
15331         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
15332 printf "%s\n" "$PYTHON_EXTRA_LDFLAGS" >&6; }
15333
15334
15335         #
15336         # final check to see if everything compiles alright
15337         #
15338         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
15339 printf %s "checking consistency of all components of python development environment... " >&6; }
15340         # save current global flags
15341         ac_save_LIBS="$LIBS"
15342         ac_save_LDFLAGS="$LDFLAGS"
15343         ac_save_CPPFLAGS="$CPPFLAGS"
15344         LIBS="$ac_save_LIBS $PYTHON_LIBS $PYTHON_EXTRA_LIBS $PYTHON_EXTRA_LIBS"
15345         LDFLAGS="$ac_save_LDFLAGS $PYTHON_EXTRA_LDFLAGS"
15346         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
15347         ac_ext=c
15348 ac_cpp='$CPP $CPPFLAGS'
15349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15352
15353         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h.  */
15355
15356                 #include <Python.h>
15357 int
15358 main (void)
15359 {
15360 Py_Initialize();
15361   ;
15362   return 0;
15363 }
15364
15365 _ACEOF
15366 if ac_fn_c_try_link "$LINENO"
15367 then :
15368   pythonexists=yes
15369 else $as_nop
15370   pythonexists=no
15371 fi
15372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15373     conftest$ac_exeext conftest.$ac_ext
15374         ac_ext=c
15375 ac_cpp='$CPP $CPPFLAGS'
15376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15379
15380         # turn back to default flags
15381         CPPFLAGS="$ac_save_CPPFLAGS"
15382         LIBS="$ac_save_LIBS"
15383         LDFLAGS="$ac_save_LDFLAGS"
15384
15385         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
15386 printf "%s\n" "$pythonexists" >&6; }
15387
15388         if test ! "x$pythonexists" = "xyes"; then
15389            { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15390 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15391 as_fn_error $? "
15392   Could not link test program to Python. Maybe the main Python library has been
15393   installed in some non-standard library path. If so, pass it to configure,
15394   via the LIBS environment variable.
15395   Example: ./configure LIBS=\"-L/usr/non-standard-path/python/lib\"
15396   ============================================================================
15397    ERROR!
15398    You probably have to install the development version of the Python package
15399    for your distribution.  The exact name of this package varies among them.
15400   ============================================================================
15401
15402 See \`config.log' for more details" "$LINENO" 5; }
15403           PYTHON_VERSION=""
15404         fi
15405
15406         #
15407         # all done!
15408         #
15409
15410    if test ! -z "$ac_python_version"; then
15411         ldns_have_python=yes
15412    fi
15413
15414    # pass additional Python 3 option to SWIG
15415    if test `$PYTHON -c "import sys; \
15416        ver = sys.version.split()[0]; \
15417        print(ver >= '3')"` = "True"; then
15418        SWIGPY3="-py3 -DPY3"
15419
15420    fi
15421
15422    # check for SWIG
15423    if test x_$ldns_have_python != x_no; then
15424         # ===========================================================================
15425 #       https://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html
15426 # ===========================================================================
15427 #
15428 # SYNOPSIS
15429 #
15430 #   AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found])
15431 #
15432 # DESCRIPTION
15433 #
15434 #   This macro searches for a SWIG installation on your system. If found,
15435 #   then SWIG is AC_SUBST'd; if not found, then $SWIG is empty.  If SWIG is
15436 #   found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd.
15437 #
15438 #   You can use the optional first argument to check if the version of the
15439 #   available SWIG is greater than or equal to the value of the argument. It
15440 #   should have the format: N[.N[.N]] (N is a number between 0 and 999. Only
15441 #   the first N is mandatory.) If the version argument is given (e.g.
15442 #   1.3.17), AX_PKG_SWIG checks that the swig package is this version number
15443 #   or higher.
15444 #
15445 #   As usual, action-if-found is executed if SWIG is found, otherwise
15446 #   action-if-not-found is executed.
15447 #
15448 #   In configure.in, use as:
15449 #
15450 #     AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ])
15451 #     AX_SWIG_ENABLE_CXX
15452 #     AX_SWIG_MULTI_MODULE_SUPPORT
15453 #     AX_SWIG_PYTHON
15454 #
15455 # LICENSE
15456 #
15457 #   Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de>
15458 #   Copyright (c) 2008 Alan W. Irwin
15459 #   Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net>
15460 #   Copyright (c) 2008 Andrew Collier
15461 #   Copyright (c) 2011 Murray Cumming <murrayc@openismus.com>
15462 #
15463 #   This program is free software; you can redistribute it and/or modify it
15464 #   under the terms of the GNU General Public License as published by the
15465 #   Free Software Foundation; either version 2 of the License, or (at your
15466 #   option) any later version.
15467 #
15468 #   This program is distributed in the hope that it will be useful, but
15469 #   WITHOUT ANY WARRANTY; without even the implied warranty of
15470 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15471 #   Public License for more details.
15472 #
15473 #   You should have received a copy of the GNU General Public License along
15474 #   with this program. If not, see <https://www.gnu.org/licenses/>.
15475 #
15476 #   As a special exception, the respective Autoconf Macro's copyright owner
15477 #   gives unlimited permission to copy, distribute and modify the configure
15478 #   scripts that are the output of Autoconf when processing the Macro. You
15479 #   need not follow the terms of the GNU General Public License when using
15480 #   or distributing such scripts, even though portions of the text of the
15481 #   Macro appear in them. The GNU General Public License (GPL) does govern
15482 #   all other use of the material that constitutes the Autoconf Macro.
15483 #
15484 #   This special exception to the GPL applies to versions of the Autoconf
15485 #   Macro released by the Autoconf Archive. When you make and distribute a
15486 #   modified version of the Autoconf Macro, you may extend this special
15487 #   exception to the GPL to apply to your modified version as well.
15488
15489 #serial 13
15490
15491
15492
15493
15494         # check for >=SWIG-2.0.4 if Python 3.2 used
15495         if test `$PYTHON -c "import sys; \
15496             ver = sys.version.split()[0]; \
15497             print(ver >= '3.2')"` = "True"; then
15498
15499         # Find path to the "swig" executable.
15500         for ac_prog in swig swig3.0 swig2.0
15501 do
15502   # Extract the first word of "$ac_prog", so it can be a program name with args.
15503 set dummy $ac_prog; ac_word=$2
15504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15505 printf %s "checking for $ac_word... " >&6; }
15506 if test ${ac_cv_path_SWIG+y}
15507 then :
15508   printf %s "(cached) " >&6
15509 else $as_nop
15510   case $SWIG in
15511   [\\/]* | ?:[\\/]*)
15512   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
15513   ;;
15514   *)
15515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15516 for as_dir in $PATH
15517 do
15518   IFS=$as_save_IFS
15519   case $as_dir in #(((
15520     '') as_dir=./ ;;
15521     */) ;;
15522     *) as_dir=$as_dir/ ;;
15523   esac
15524     for ac_exec_ext in '' $ac_executable_extensions; do
15525   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15526     ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext"
15527     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15528     break 2
15529   fi
15530 done
15531   done
15532 IFS=$as_save_IFS
15533
15534   ;;
15535 esac
15536 fi
15537 SWIG=$ac_cv_path_SWIG
15538 if test -n "$SWIG"; then
15539   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
15540 printf "%s\n" "$SWIG" >&6; }
15541 else
15542   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15543 printf "%s\n" "no" >&6; }
15544 fi
15545
15546
15547   test -n "$SWIG" && break
15548 done
15549
15550         if test -z "$SWIG" ; then
15551                 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
15552         elif test -n "2.0.4" ; then
15553                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
15554 printf %s "checking SWIG version... " >&6; }
15555                 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'`
15556                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
15557 printf "%s\n" "$swig_version" >&6; }
15558                 if test -n "$swig_version" ; then
15559                         # Calculate the required version number components
15560                         required=2.0.4
15561                         required_major=`echo $required | sed 's/[^0-9].*//'`
15562                         if test -z "$required_major" ; then
15563                                 required_major=0
15564                         fi
15565                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15566                         required_minor=`echo $required | sed 's/[^0-9].*//'`
15567                         if test -z "$required_minor" ; then
15568                                 required_minor=0
15569                         fi
15570                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15571                         required_patch=`echo $required | sed 's/[^0-9].*//'`
15572                         if test -z "$required_patch" ; then
15573                                 required_patch=0
15574                         fi
15575                         # Calculate the available version number components
15576                         available=$swig_version
15577                         available_major=`echo $available | sed 's/[^0-9].*//'`
15578                         if test -z "$available_major" ; then
15579                                 available_major=0
15580                         fi
15581                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15582                         available_minor=`echo $available | sed 's/[^0-9].*//'`
15583                         if test -z "$available_minor" ; then
15584                                 available_minor=0
15585                         fi
15586                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15587                         available_patch=`echo $available | sed 's/[^0-9].*//'`
15588                         if test -z "$available_patch" ; then
15589                                 available_patch=0
15590                         fi
15591                         # Convert the version tuple into a single number for easier comparison.
15592                         # Using base 100 should be safe since SWIG internally uses BCD values
15593                         # to encode its version number.
15594                         required_swig_vernum=`expr $required_major \* 10000 \
15595                             \+ $required_minor \* 100 \+ $required_patch`
15596                         available_swig_vernum=`expr $available_major \* 10000 \
15597                             \+ $available_minor \* 100 \+ $available_patch`
15598
15599                         if test $available_swig_vernum -lt $required_swig_vernum; then
15600                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.4 is required.  You have $swig_version." >&5
15601 printf "%s\n" "$as_me: WARNING: SWIG version >= 2.0.4 is required.  You have $swig_version." >&2;}
15602                                 SWIG=''
15603                                 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
15604                         else
15605                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
15606 printf %s "checking for SWIG library... " >&6; }
15607                                 SWIG_LIB=`$SWIG -swiglib`
15608                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
15609 printf "%s\n" "$SWIG_LIB" >&6; }
15610
15611                         fi
15612                 else
15613                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
15614 printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;}
15615                         SWIG=''
15616                         as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
15617                 fi
15618         fi
15619
15620
15621         else
15622
15623         # Find path to the "swig" executable.
15624         for ac_prog in swig swig3.0 swig2.0
15625 do
15626   # Extract the first word of "$ac_prog", so it can be a program name with args.
15627 set dummy $ac_prog; ac_word=$2
15628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15629 printf %s "checking for $ac_word... " >&6; }
15630 if test ${ac_cv_path_SWIG+y}
15631 then :
15632   printf %s "(cached) " >&6
15633 else $as_nop
15634   case $SWIG in
15635   [\\/]* | ?:[\\/]*)
15636   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
15637   ;;
15638   *)
15639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15640 for as_dir in $PATH
15641 do
15642   IFS=$as_save_IFS
15643   case $as_dir in #(((
15644     '') as_dir=./ ;;
15645     */) ;;
15646     *) as_dir=$as_dir/ ;;
15647   esac
15648     for ac_exec_ext in '' $ac_executable_extensions; do
15649   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15650     ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext"
15651     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15652     break 2
15653   fi
15654 done
15655   done
15656 IFS=$as_save_IFS
15657
15658   ;;
15659 esac
15660 fi
15661 SWIG=$ac_cv_path_SWIG
15662 if test -n "$SWIG"; then
15663   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
15664 printf "%s\n" "$SWIG" >&6; }
15665 else
15666   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667 printf "%s\n" "no" >&6; }
15668 fi
15669
15670
15671   test -n "$SWIG" && break
15672 done
15673
15674         if test -z "$SWIG" ; then
15675                 :
15676         elif test -n "" ; then
15677                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
15678 printf %s "checking SWIG version... " >&6; }
15679                 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'`
15680                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
15681 printf "%s\n" "$swig_version" >&6; }
15682                 if test -n "$swig_version" ; then
15683                         # Calculate the required version number components
15684                         required=
15685                         required_major=`echo $required | sed 's/[^0-9].*//'`
15686                         if test -z "$required_major" ; then
15687                                 required_major=0
15688                         fi
15689                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15690                         required_minor=`echo $required | sed 's/[^0-9].*//'`
15691                         if test -z "$required_minor" ; then
15692                                 required_minor=0
15693                         fi
15694                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15695                         required_patch=`echo $required | sed 's/[^0-9].*//'`
15696                         if test -z "$required_patch" ; then
15697                                 required_patch=0
15698                         fi
15699                         # Calculate the available version number components
15700                         available=$swig_version
15701                         available_major=`echo $available | sed 's/[^0-9].*//'`
15702                         if test -z "$available_major" ; then
15703                                 available_major=0
15704                         fi
15705                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15706                         available_minor=`echo $available | sed 's/[^0-9].*//'`
15707                         if test -z "$available_minor" ; then
15708                                 available_minor=0
15709                         fi
15710                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15711                         available_patch=`echo $available | sed 's/[^0-9].*//'`
15712                         if test -z "$available_patch" ; then
15713                                 available_patch=0
15714                         fi
15715                         # Convert the version tuple into a single number for easier comparison.
15716                         # Using base 100 should be safe since SWIG internally uses BCD values
15717                         # to encode its version number.
15718                         required_swig_vernum=`expr $required_major \* 10000 \
15719                             \+ $required_minor \* 100 \+ $required_patch`
15720                         available_swig_vernum=`expr $available_major \* 10000 \
15721                             \+ $available_minor \* 100 \+ $available_patch`
15722
15723                         if test $available_swig_vernum -lt $required_swig_vernum; then
15724                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version." >&5
15725 printf "%s\n" "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version." >&2;}
15726                                 SWIG=''
15727
15728                         else
15729                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
15730 printf %s "checking for SWIG library... " >&6; }
15731                                 SWIG_LIB=`$SWIG -swiglib`
15732                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
15733 printf "%s\n" "$SWIG_LIB" >&6; }
15734
15735                         fi
15736                 else
15737                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
15738 printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;}
15739                         SWIG=''
15740
15741                 fi
15742         fi
15743
15744
15745         fi
15746
15747         if test ! -x "$SWIG"; then
15748                 as_fn_error $? "failed to find SWIG tool, install it, or do not build pyldns" "$LINENO" 5
15749         else
15750
15751 printf "%s\n" "#define HAVE_SWIG 1" >>confdefs.h
15752
15753                 PYLDNS="pyldns"
15754
15755                 swig="$SWIG"
15756
15757                 ldns_with_pyldns=yes
15758         fi
15759    else
15760         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** don't have Python, skipping SWIG, no pyldns ***" >&5
15761 printf "%s\n" "*** don't have Python, skipping SWIG, no pyldns ***" >&6; } # '
15762    fi
15763
15764    # xtra cflags for pyldns
15765    if test x_$ldns_have_python != x_no; then
15766
15767
15768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
15769 printf %s "checking whether $CC supports -fno-strict-aliasing... " >&6; }
15770 cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'`
15771 if eval test \${cv_prog_cc_flag_$cache+y}
15772 then :
15773   printf %s "(cached) " >&6
15774 else $as_nop
15775
15776 echo 'void f(void){}' >conftest.c
15777 if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then
15778 eval "cv_prog_cc_flag_$cache=yes"
15779 else
15780 eval "cv_prog_cc_flag_$cache=no"
15781 fi
15782 rm -f conftest conftest.o conftest.c
15783
15784 fi
15785
15786 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15788 printf "%s\n" "yes" >&6; }
15789 :
15790 PYTHON_X_CFLAGS="-fno-strict-aliasing"
15791 else
15792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15793 printf "%s\n" "no" >&6; }
15794 :
15795
15796 fi
15797
15798
15799
15800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5
15801 printf %s "checking whether $CC supports -Wno-missing-field-initializers... " >&6; }
15802 cache=`echo Wno-missing-field-initializers | sed 'y%.=/+-%___p_%'`
15803 if eval test \${cv_prog_cc_flag_$cache+y}
15804 then :
15805   printf %s "(cached) " >&6
15806 else $as_nop
15807
15808 echo 'void f(void){}' >conftest.c
15809 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-missing-field-initializers -c conftest.c 2>&1`"; then
15810 eval "cv_prog_cc_flag_$cache=yes"
15811 else
15812 eval "cv_prog_cc_flag_$cache=no"
15813 fi
15814 rm -f conftest conftest.o conftest.c
15815
15816 fi
15817
15818 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15820 printf "%s\n" "yes" >&6; }
15821 :
15822 PYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS"
15823 else
15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15825 printf "%s\n" "no" >&6; }
15826 :
15827
15828 fi
15829
15830
15831
15832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
15833 printf %s "checking whether $CC supports -Wno-unused-parameter... " >&6; }
15834 cache=`echo Wno-unused-parameter | sed 'y%.=/+-%___p_%'`
15835 if eval test \${cv_prog_cc_flag_$cache+y}
15836 then :
15837   printf %s "(cached) " >&6
15838 else $as_nop
15839
15840 echo 'void f(void){}' >conftest.c
15841 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-parameter -c conftest.c 2>&1`"; then
15842 eval "cv_prog_cc_flag_$cache=yes"
15843 else
15844 eval "cv_prog_cc_flag_$cache=no"
15845 fi
15846 rm -f conftest conftest.o conftest.c
15847
15848 fi
15849
15850 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15852 printf "%s\n" "yes" >&6; }
15853 :
15854 PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS"
15855 else
15856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15857 printf "%s\n" "no" >&6; }
15858 :
15859
15860 fi
15861
15862
15863
15864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-variable" >&5
15865 printf %s "checking whether $CC supports -Wno-unused-variable... " >&6; }
15866 cache=`echo Wno-unused-variable | sed 'y%.=/+-%___p_%'`
15867 if eval test \${cv_prog_cc_flag_$cache+y}
15868 then :
15869   printf %s "(cached) " >&6
15870 else $as_nop
15871
15872 echo 'void f(void){}' >conftest.c
15873 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-variable -c conftest.c 2>&1`"; then
15874 eval "cv_prog_cc_flag_$cache=yes"
15875 else
15876 eval "cv_prog_cc_flag_$cache=no"
15877 fi
15878 rm -f conftest conftest.o conftest.c
15879
15880 fi
15881
15882 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15884 printf "%s\n" "yes" >&6; }
15885 :
15886 PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS"
15887 else
15888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15889 printf "%s\n" "no" >&6; }
15890 :
15891
15892 fi
15893
15894    fi
15895 fi
15896
15897
15898 # Check for pyldnsx
15899
15900 # Check whether --with-pyldnsx was given.
15901 if test ${with_pyldnsx+y}
15902 then :
15903   withval=$with_pyldnsx;
15904 else $as_nop
15905    withval="with_pyldns"
15906 fi
15907
15908 if test x_$withval != x_no; then
15909   if test x_$ldns_with_pyldns != x_no; then
15910     PYLDNSX="pyldnsx"
15911
15912     ldns_with_pyldnsx=yes
15913   else
15914     if test x_$withval != x_with_pyldns; then
15915       as_fn_error $? "--with-pyldns is needed for the ldnsx python module" "$LINENO" 5
15916     fi
15917   fi
15918 fi
15919
15920 if test x_$ldns_with_pyldns != x_no; then
15921   PYLDNSINST="install-pyldns"
15922   PYLDNSUNINST="uninstall-pyldns"
15923
15924 else
15925   PYLDNSINST=""
15926   PYLDNSUNINST=""
15927
15928 fi
15929 if test x_$ldns_with_pyldnsx != x_no; then
15930   PYLDNSXINST="install-pyldnsx"
15931   PYLDNSXUNINST="uninstall-pyldnsx"
15932
15933 else
15934   PYLDNSXINST=""
15935   PYLDNSXUNINST=""
15936
15937 fi
15938
15939 # check for perl
15940 ldns_with_p5_dns_ldns=no
15941
15942 # Check whether --with-p5-dns-ldns was given.
15943 if test ${with_p5_dns_ldns+y}
15944 then :
15945   withval=$with_p5_dns_ldns;
15946 else $as_nop
15947    withval="no"
15948 fi
15949
15950 ldns_have_perl=no
15951 if test x_$withval != x_no; then
15952    # Extract the first word of "perl", so it can be a program name with args.
15953 set dummy perl; ac_word=$2
15954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15955 printf %s "checking for $ac_word... " >&6; }
15956 if test ${ac_cv_path_PERL+y}
15957 then :
15958   printf %s "(cached) " >&6
15959 else $as_nop
15960   case $PERL in
15961   [\\/]* | ?:[\\/]*)
15962   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15963   ;;
15964   *)
15965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15966 for as_dir in $PATH
15967 do
15968   IFS=$as_save_IFS
15969   case $as_dir in #(((
15970     '') as_dir=./ ;;
15971     */) ;;
15972     *) as_dir=$as_dir/ ;;
15973   esac
15974     for ac_exec_ext in '' $ac_executable_extensions; do
15975   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15976     ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
15977     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15978     break 2
15979   fi
15980 done
15981   done
15982 IFS=$as_save_IFS
15983
15984   ;;
15985 esac
15986 fi
15987 PERL=$ac_cv_path_PERL
15988 if test -n "$PERL"; then
15989   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15990 printf "%s\n" "$PERL" >&6; }
15991 else
15992   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15993 printf "%s\n" "no" >&6; }
15994 fi
15995
15996
15997    if test -z "$PERL"; then
15998       as_fn_error $? "Cannot find perl in your system path" "$LINENO" 5
15999    fi
16000    P5_DNS_LDNS="p5-dns-ldns"
16001    TEST_P5_DNS_LDNS="test-p5-dns-ldns"
16002    INSTALL_P5_DNS_LDNS="install-p5-dns-ldns"
16003    UNINSTALL_P5_DNS_LDNS="uninstall-p5-dns-ldns"
16004    CLEAN_P5_DNS_LDNS="clean-p5-dns-ldns"
16005
16006 else
16007    P5_DNS_LDNS=""
16008    TEST_P5_DNS_LDNS=""
16009    INSTALL_P5_DNS_LDNS=""
16010    UNINSTALL_P5_DNS_LDNS=""
16011    CLEAN_P5_DNS_LDNS=""
16012
16013 fi
16014
16015 # Use libtool
16016
16017 # skip these tests, we do not need them.
16018
16019
16020
16021
16022
16023
16024
16025
16026 # always use ./libtool unless override from commandline (libtool=mylibtool)
16027 if test -z "$libtool"; then
16028         libtool="./libtool"
16029 fi
16030
16031 # avoid libtool max commandline length test on systems that fork slowly.
16032
16033 if echo "$host_os" | grep "sunos4" >/dev/null; then
16034         lt_cv_sys_max_cmd_len=32750;
16035 fi
16036 if test -n "$ac_tool_prefix"; then
16037   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16038 set dummy ${ac_tool_prefix}ar; ac_word=$2
16039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16040 printf %s "checking for $ac_word... " >&6; }
16041 if test ${ac_cv_path_AR+y}
16042 then :
16043   printf %s "(cached) " >&6
16044 else $as_nop
16045   case $AR in
16046   [\\/]* | ?:[\\/]*)
16047   ac_cv_path_AR="$AR" # Let the user override the test with a path.
16048   ;;
16049   *)
16050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16051 for as_dir in $PATH
16052 do
16053   IFS=$as_save_IFS
16054   case $as_dir in #(((
16055     '') as_dir=./ ;;
16056     */) ;;
16057     *) as_dir=$as_dir/ ;;
16058   esac
16059     for ac_exec_ext in '' $ac_executable_extensions; do
16060   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16061     ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
16062     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16063     break 2
16064   fi
16065 done
16066   done
16067 IFS=$as_save_IFS
16068
16069   ;;
16070 esac
16071 fi
16072 AR=$ac_cv_path_AR
16073 if test -n "$AR"; then
16074   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16075 printf "%s\n" "$AR" >&6; }
16076 else
16077   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16078 printf "%s\n" "no" >&6; }
16079 fi
16080
16081
16082 fi
16083 if test -z "$ac_cv_path_AR"; then
16084   ac_pt_AR=$AR
16085   # Extract the first word of "ar", so it can be a program name with args.
16086 set dummy ar; ac_word=$2
16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16088 printf %s "checking for $ac_word... " >&6; }
16089 if test ${ac_cv_path_ac_pt_AR+y}
16090 then :
16091   printf %s "(cached) " >&6
16092 else $as_nop
16093   case $ac_pt_AR in
16094   [\\/]* | ?:[\\/]*)
16095   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
16096   ;;
16097   *)
16098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16099 for as_dir in $PATH
16100 do
16101   IFS=$as_save_IFS
16102   case $as_dir in #(((
16103     '') as_dir=./ ;;
16104     */) ;;
16105     *) as_dir=$as_dir/ ;;
16106   esac
16107     for ac_exec_ext in '' $ac_executable_extensions; do
16108   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16109     ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
16110     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16111     break 2
16112   fi
16113 done
16114   done
16115 IFS=$as_save_IFS
16116
16117   ;;
16118 esac
16119 fi
16120 ac_pt_AR=$ac_cv_path_ac_pt_AR
16121 if test -n "$ac_pt_AR"; then
16122   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
16123 printf "%s\n" "$ac_pt_AR" >&6; }
16124 else
16125   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 printf "%s\n" "no" >&6; }
16127 fi
16128
16129   if test "x$ac_pt_AR" = x; then
16130     AR="false"
16131   else
16132     case $cross_compiling:$ac_tool_warned in
16133 yes:)
16134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16135 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16136 ac_tool_warned=yes ;;
16137 esac
16138     AR=$ac_pt_AR
16139   fi
16140 else
16141   AR="$ac_cv_path_AR"
16142 fi
16143
16144 if test $AR = false; then
16145         as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
16146 fi
16147
16148
16149
16150
16151
16152
16153 tmp_CPPFLAGS=$CPPFLAGS
16154 tmp_LDFLAGS=$LDFLAGS
16155 tmp_LIBS=$LIBS
16156
16157
16158
16159 # Check whether --with-ssl was given.
16160 if test ${with_ssl+y}
16161 then :
16162   withval=$with_ssl;
16163
16164 else $as_nop
16165
16166             withval="yes"
16167
16168 fi
16169
16170
16171     withval=$withval
16172     if test x_$withval != x_no; then
16173         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16174 printf %s "checking for SSL... " >&6; }
16175         if test x_$withval = x_ -o x_$withval = x_yes; then
16176             withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16177         fi
16178         for dir in $withval; do
16179             ssldir="$dir"
16180             if test -f "$dir/include/openssl/ssl.h"; then
16181                 found_ssl="yes"
16182
16183 printf "%s\n" "#define HAVE_SSL /**/" >>confdefs.h
16184
16185                                 if test "$ssldir" != "/usr"; then
16186                         CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16187                         LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16188                 fi
16189                 break;
16190             fi
16191         done
16192         if test x_$found_ssl != x_yes; then
16193             as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16194         else
16195             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16196 printf "%s\n" "found in $ssldir" >&6; }
16197             HAVE_SSL=yes
16198                         if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16199                 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
16200                         LDFLAGS="$LDFLAGS -L$ssldir/lib64"
16201                         LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib64"
16202
16203         if test "x$enable_rpath" = xyes; then
16204                 if echo "$ssldir/lib64" | grep "^/" >/dev/null; then
16205                         RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib64"
16206                 fi
16207         fi
16208
16209                 else
16210                         LDFLAGS="$LDFLAGS -L$ssldir/lib"
16211                         LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16212
16213         if test "x$enable_rpath" = xyes; then
16214                 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16215                         RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16216                 fi
16217         fi
16218
16219                 fi
16220             fi
16221
16222             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
16223 printf %s "checking for EVP_sha256 in -lcrypto... " >&6; }
16224             LIBS="$LIBS -lcrypto"
16225             LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16226             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h.  */
16228
16229 int
16230 main (void)
16231 {
16232
16233                 int EVP_sha256(void);
16234                 (void)EVP_sha256();
16235
16236   ;
16237   return 0;
16238 }
16239 _ACEOF
16240 if ac_fn_c_try_link "$LINENO"
16241 then :
16242
16243                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16244 printf "%s\n" "yes" >&6; }
16245
16246 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
16247
16248
16249 else $as_nop
16250
16251                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16252 printf "%s\n" "no" >&6; }
16253                 # check if -lwsock32 or -lgdi32 are needed.
16254                 BAKLIBS="$LIBS"
16255                 BAKSSLLIBS="$LIBSSL_LIBS"
16256                 LIBS="$LIBS -lgdi32 -lws2_32"
16257                 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
16258                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16259 printf %s "checking if -lcrypto needs -lgdi32... " >&6; }
16260                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16261 /* end confdefs.h.  */
16262
16263 int
16264 main (void)
16265 {
16266
16267                     int EVP_sha256(void);
16268                     (void)EVP_sha256();
16269
16270   ;
16271   return 0;
16272 }
16273 _ACEOF
16274 if ac_fn_c_try_link "$LINENO"
16275 then :
16276
16277
16278 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
16279
16280                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16281 printf "%s\n" "yes" >&6; }
16282
16283 else $as_nop
16284
16285                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286 printf "%s\n" "no" >&6; }
16287                     LIBS="$BAKLIBS"
16288                     LIBSSL_LIBS="$BAKSSLLIBS"
16289                     LIBS="$LIBS -ldl"
16290                     LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16291                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16292 printf %s "checking if -lcrypto needs -ldl... " >&6; }
16293                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294 /* end confdefs.h.  */
16295
16296 int
16297 main (void)
16298 {
16299
16300                         int EVP_sha256(void);
16301                         (void)EVP_sha256();
16302
16303   ;
16304   return 0;
16305 }
16306 _ACEOF
16307 if ac_fn_c_try_link "$LINENO"
16308 then :
16309
16310
16311 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
16312
16313                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16314 printf "%s\n" "yes" >&6; }
16315
16316 else $as_nop
16317
16318                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16319 printf "%s\n" "no" >&6; }
16320                         LIBS="$BAKLIBS"
16321                         LIBSSL_LIBS="$BAKSSLLIBS"
16322                         LIBS="$LIBS -ldl -pthread"
16323                         LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
16324                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
16325 printf %s "checking if -lcrypto needs -ldl -pthread... " >&6; }
16326                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h.  */
16328
16329 int
16330 main (void)
16331 {
16332
16333                             int EVP_sha256(void);
16334                             (void)EVP_sha256();
16335
16336   ;
16337   return 0;
16338 }
16339 _ACEOF
16340 if ac_fn_c_try_link "$LINENO"
16341 then :
16342
16343
16344 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
16345
16346                             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16347 printf "%s\n" "yes" >&6; }
16348
16349 else $as_nop
16350
16351                             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16352 printf "%s\n" "no" >&6; }
16353                             as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16354
16355 fi
16356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16357     conftest$ac_exeext conftest.$ac_ext
16358
16359 fi
16360 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16361     conftest$ac_exeext conftest.$ac_ext
16362
16363 fi
16364 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16365     conftest$ac_exeext conftest.$ac_ext
16366
16367 fi
16368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16369     conftest$ac_exeext conftest.$ac_ext
16370         fi
16371
16372
16373     fi
16374 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16375 "
16376 if test "x$ac_cv_header_openssl_ssl_h" = xyes
16377 then :
16378   printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
16379
16380 fi
16381
16382 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16383 "
16384 if test "x$ac_cv_header_openssl_err_h" = xyes
16385 then :
16386   printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
16387
16388 fi
16389
16390 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16391 "
16392 if test "x$ac_cv_header_openssl_rand_h" = xyes
16393 then :
16394   printf "%s\n" "#define HAVE_OPENSSL_RAND_H 1" >>confdefs.h
16395
16396 fi
16397
16398
16399
16400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
16401 printf %s "checking for LibreSSL... " >&6; }
16402 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
16403         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16404 printf "%s\n" "yes" >&6; }
16405
16406 printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
16407
16408 else
16409         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16410 printf "%s\n" "no" >&6; }
16411 fi
16412 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
16413 if test "x$ac_cv_header_openssl_ssl_h" = xyes
16414 then :
16415   printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
16416
16417 fi
16418 ac_fn_c_check_header_compile "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
16419 if test "x$ac_cv_header_openssl_evp_h" = xyes
16420 then :
16421   printf "%s\n" "#define HAVE_OPENSSL_EVP_H 1" >>confdefs.h
16422
16423 fi
16424 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
16425 if test "x$ac_cv_header_openssl_engine_h" = xyes
16426 then :
16427   printf "%s\n" "#define HAVE_OPENSSL_ENGINE_H 1" >>confdefs.h
16428
16429 fi
16430 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default"
16431 if test "x$ac_cv_header_openssl_conf_h" = xyes
16432 then :
16433   printf "%s\n" "#define HAVE_OPENSSL_CONF_H 1" >>confdefs.h
16434
16435 fi
16436
16437 ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
16438 if test "x$ac_cv_func_EVP_sha256" = xyes
16439 then :
16440   printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
16441
16442 fi
16443 ac_fn_c_check_func "$LINENO" "EVP_sha384" "ac_cv_func_EVP_sha384"
16444 if test "x$ac_cv_func_EVP_sha384" = xyes
16445 then :
16446   printf "%s\n" "#define HAVE_EVP_SHA384 1" >>confdefs.h
16447
16448 fi
16449 ac_fn_c_check_func "$LINENO" "EVP_sha512" "ac_cv_func_EVP_sha512"
16450 if test "x$ac_cv_func_EVP_sha512" = xyes
16451 then :
16452   printf "%s\n" "#define HAVE_EVP_SHA512 1" >>confdefs.h
16453
16454 fi
16455 ac_fn_c_check_func "$LINENO" "EVP_PKEY_keygen" "ac_cv_func_EVP_PKEY_keygen"
16456 if test "x$ac_cv_func_EVP_PKEY_keygen" = xyes
16457 then :
16458   printf "%s\n" "#define HAVE_EVP_PKEY_KEYGEN 1" >>confdefs.h
16459
16460 fi
16461 ac_fn_c_check_func "$LINENO" "ECDSA_SIG_get0" "ac_cv_func_ECDSA_SIG_get0"
16462 if test "x$ac_cv_func_ECDSA_SIG_get0" = xyes
16463 then :
16464   printf "%s\n" "#define HAVE_ECDSA_SIG_GET0 1" >>confdefs.h
16465
16466 fi
16467 ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_new" "ac_cv_func_EVP_MD_CTX_new"
16468 if test "x$ac_cv_func_EVP_MD_CTX_new" = xyes
16469 then :
16470   printf "%s\n" "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h
16471
16472 fi
16473 ac_fn_c_check_func "$LINENO" "DSA_SIG_set0" "ac_cv_func_DSA_SIG_set0"
16474 if test "x$ac_cv_func_DSA_SIG_set0" = xyes
16475 then :
16476   printf "%s\n" "#define HAVE_DSA_SIG_SET0 1" >>confdefs.h
16477
16478 fi
16479 ac_fn_c_check_func "$LINENO" "DSA_SIG_get0" "ac_cv_func_DSA_SIG_get0"
16480 if test "x$ac_cv_func_DSA_SIG_get0" = xyes
16481 then :
16482   printf "%s\n" "#define HAVE_DSA_SIG_GET0 1" >>confdefs.h
16483
16484 fi
16485 ac_fn_c_check_func "$LINENO" "EVP_dss1" "ac_cv_func_EVP_dss1"
16486 if test "x$ac_cv_func_EVP_dss1" = xyes
16487 then :
16488   printf "%s\n" "#define HAVE_EVP_DSS1 1" >>confdefs.h
16489
16490 fi
16491 ac_fn_c_check_func "$LINENO" "DSA_get0_pqg" "ac_cv_func_DSA_get0_pqg"
16492 if test "x$ac_cv_func_DSA_get0_pqg" = xyes
16493 then :
16494   printf "%s\n" "#define HAVE_DSA_GET0_PQG 1" >>confdefs.h
16495
16496 fi
16497 ac_fn_c_check_func "$LINENO" "DSA_get0_key" "ac_cv_func_DSA_get0_key"
16498 if test "x$ac_cv_func_DSA_get0_key" = xyes
16499 then :
16500   printf "%s\n" "#define HAVE_DSA_GET0_KEY 1" >>confdefs.h
16501
16502 fi
16503 ac_fn_c_check_func "$LINENO" "EVP_cleanup" "ac_cv_func_EVP_cleanup"
16504 if test "x$ac_cv_func_EVP_cleanup" = xyes
16505 then :
16506   printf "%s\n" "#define HAVE_EVP_CLEANUP 1" >>confdefs.h
16507
16508 fi
16509 ac_fn_c_check_func "$LINENO" "ENGINE_cleanup" "ac_cv_func_ENGINE_cleanup"
16510 if test "x$ac_cv_func_ENGINE_cleanup" = xyes
16511 then :
16512   printf "%s\n" "#define HAVE_ENGINE_CLEANUP 1" >>confdefs.h
16513
16514 fi
16515 ac_fn_c_check_func "$LINENO" "ENGINE_free" "ac_cv_func_ENGINE_free"
16516 if test "x$ac_cv_func_ENGINE_free" = xyes
16517 then :
16518   printf "%s\n" "#define HAVE_ENGINE_FREE 1" >>confdefs.h
16519
16520 fi
16521 ac_fn_c_check_func "$LINENO" "CRYPTO_cleanup_all_ex_data" "ac_cv_func_CRYPTO_cleanup_all_ex_data"
16522 if test "x$ac_cv_func_CRYPTO_cleanup_all_ex_data" = xyes
16523 then :
16524   printf "%s\n" "#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1" >>confdefs.h
16525
16526 fi
16527 ac_fn_c_check_func "$LINENO" "ERR_free_strings" "ac_cv_func_ERR_free_strings"
16528 if test "x$ac_cv_func_ERR_free_strings" = xyes
16529 then :
16530   printf "%s\n" "#define HAVE_ERR_FREE_STRINGS 1" >>confdefs.h
16531
16532 fi
16533 ac_fn_c_check_func "$LINENO" "CONF_modules_unload" "ac_cv_func_CONF_modules_unload"
16534 if test "x$ac_cv_func_CONF_modules_unload" = xyes
16535 then :
16536   printf "%s\n" "#define HAVE_CONF_MODULES_UNLOAD 1" >>confdefs.h
16537
16538 fi
16539 ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
16540 if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes
16541 then :
16542   printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h
16543
16544 fi
16545 ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto"
16546 if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes
16547 then :
16548   printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h
16549
16550 fi
16551 ac_fn_c_check_func "$LINENO" "ERR_load_crypto_strings" "ac_cv_func_ERR_load_crypto_strings"
16552 if test "x$ac_cv_func_ERR_load_crypto_strings" = xyes
16553 then :
16554   printf "%s\n" "#define HAVE_ERR_LOAD_CRYPTO_STRINGS 1" >>confdefs.h
16555
16556 fi
16557 ac_fn_c_check_func "$LINENO" "CRYPTO_memcmp" "ac_cv_func_CRYPTO_memcmp"
16558 if test "x$ac_cv_func_CRYPTO_memcmp" = xyes
16559 then :
16560   printf "%s\n" "#define HAVE_CRYPTO_MEMCMP 1" >>confdefs.h
16561
16562 fi
16563 ac_fn_c_check_func "$LINENO" "EVP_PKEY_get_base_id" "ac_cv_func_EVP_PKEY_get_base_id"
16564 if test "x$ac_cv_func_EVP_PKEY_get_base_id" = xyes
16565 then :
16566   printf "%s\n" "#define HAVE_EVP_PKEY_GET_BASE_ID 1" >>confdefs.h
16567
16568 fi
16569
16570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16571 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16572 if test ${ac_cv_c_undeclared_builtin_options+y}
16573 then :
16574   printf %s "(cached) " >&6
16575 else $as_nop
16576   ac_save_CFLAGS=$CFLAGS
16577    ac_cv_c_undeclared_builtin_options='cannot detect'
16578    for ac_arg in '' -fno-builtin; do
16579      CFLAGS="$ac_save_CFLAGS $ac_arg"
16580      # This test program should *not* compile successfully.
16581      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h.  */
16583
16584 int
16585 main (void)
16586 {
16587 (void) strchr;
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 if ac_fn_c_try_compile "$LINENO"
16593 then :
16594
16595 else $as_nop
16596   # This test program should compile successfully.
16597         # No library function is consistently available on
16598         # freestanding implementations, so test against a dummy
16599         # declaration.  Include always-available headers on the
16600         # off chance that they somehow elicit warnings.
16601         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h.  */
16603 #include <float.h>
16604 #include <limits.h>
16605 #include <stdarg.h>
16606 #include <stddef.h>
16607 extern void ac_decl (int, char *);
16608
16609 int
16610 main (void)
16611 {
16612 (void) ac_decl (0, (char *) 0);
16613   (void) ac_decl;
16614
16615   ;
16616   return 0;
16617 }
16618 _ACEOF
16619 if ac_fn_c_try_compile "$LINENO"
16620 then :
16621   if test x"$ac_arg" = x
16622 then :
16623   ac_cv_c_undeclared_builtin_options='none needed'
16624 else $as_nop
16625   ac_cv_c_undeclared_builtin_options=$ac_arg
16626 fi
16627           break
16628 fi
16629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16630 fi
16631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16632     done
16633     CFLAGS=$ac_save_CFLAGS
16634
16635 fi
16636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
16637 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
16638   case $ac_cv_c_undeclared_builtin_options in #(
16639   'cannot detect') :
16640     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16641 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16642 as_fn_error $? "cannot make $CC report undeclared builtins
16643 See \`config.log' for more details" "$LINENO" 5; } ;; #(
16644   'none needed') :
16645     ac_c_undeclared_builtin_options='' ;; #(
16646   *) :
16647     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
16648 esac
16649
16650 ac_fn_check_decl "$LINENO" "EVP_PKEY_base_id" "ac_cv_have_decl_EVP_PKEY_base_id" "$ac_includes_default
16651 #include <openssl/evp.h>
16652
16653 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16654 if test "x$ac_cv_have_decl_EVP_PKEY_base_id" = xyes
16655 then :
16656   ac_have_decl=1
16657 else $as_nop
16658   ac_have_decl=0
16659 fi
16660 printf "%s\n" "#define HAVE_DECL_EVP_PKEY_BASE_ID $ac_have_decl" >>confdefs.h
16661 if test $ac_have_decl = 1
16662 then :
16663
16664
16665 printf "%s\n" "#define HAVE_EVP_PKEY_BASE_ID 1" >>confdefs.h
16666
16667
16668 fi
16669
16670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Checking for OpenSSL >= 3.0.0" >&5
16671 printf %s "checking Checking for OpenSSL >= 3.0.0... " >&6; }
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h.  */
16674
16675 #include <openssl/ssl.h>
16676 #if OPENSSL_VERSION_MAJOR >= 3
16677 #define SOMETHING
16678 #else
16679 This fails compiling.
16680 So either no OpenSSL at all (the include already failed), or the version < 3.0.0
16681 #endif
16682
16683 int
16684 main (void)
16685 {
16686
16687
16688   ;
16689   return 0;
16690 }
16691 _ACEOF
16692 if ac_fn_c_try_compile "$LINENO"
16693 then :
16694
16695         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16696 printf "%s\n" "yes" >&6; }
16697         CFLAGS="-DOPENSSL_API_COMPAT=10100 $CFLAGS"
16698
16699 else $as_nop
16700         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16701 printf "%s\n" "no" >&6; }
16702
16703 fi
16704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16705
16706
16707 # for macosx, see if glibtool exists and use that
16708 # BSD's need to know the version...
16709 #AC_CHECK_PROG(glibtool, glibtool, [glibtool], )
16710 #AC_CHECK_PROGS(libtool, [libtool15 libtool], [./libtool])
16711
16712 # Check whether --enable-sha2 was given.
16713 if test ${enable_sha2+y}
16714 then :
16715   enableval=$enable_sha2;
16716 fi
16717
16718 case "$enable_sha2" in
16719     no)
16720         ;;
16721     yes|*)
16722         if test "x$HAVE_SSL" != "xyes"; then
16723             as_fn_error $? "SHA2 enabled, but no SSL support" "$LINENO" 5
16724         fi
16725         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA256 and SHA512" >&5
16726 printf %s "checking for SHA256 and SHA512... " >&6; }
16727         ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init"
16728 if test "x$ac_cv_func_SHA256_Init" = xyes
16729 then :
16730
16731 else $as_nop
16732
16733                 as_fn_error $? "No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-sha2" "$LINENO" 5
16734
16735 fi
16736
16737
16738 printf "%s\n" "#define USE_SHA2 1" >>confdefs.h
16739
16740         ;;
16741 esac
16742
16743 # check whether gost also works
16744
16745 # Check whether --enable-gost was given.
16746 if test ${enable_gost+y}
16747 then :
16748   enableval=$enable_gost;
16749 fi
16750
16751 case "$enable_gost" in
16752     no)
16753         ;;
16754     *)          if test "x$HAVE_SSL" != "xyes"; then
16755             as_fn_error $? "GOST enabled, but no SSL support" "$LINENO" 5
16756         fi
16757         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GOST" >&5
16758 printf %s "checking for GOST... " >&6; }
16759         ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16760 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes
16761 then :
16762
16763 else $as_nop
16764   as_fn_error $? "OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost" "$LINENO" 5
16765 fi
16766
16767         ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16768 if test "x$ac_cv_func_EC_KEY_new" = xyes
16769 then :
16770
16771 else $as_nop
16772   as_fn_error $? "No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost" "$LINENO" 5
16773 fi
16774
16775
16776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16777 printf %s "checking if GOST works... " >&6; }
16778 if test c${cross_compiling} = cno; then
16779 BAKCFLAGS="$CFLAGS"
16780 if test -n "$ssldir"; then
16781     if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
16782         CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib64"
16783     else
16784         CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
16785     fi
16786 fi
16787 if test "$cross_compiling" = yes
16788 then :
16789   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16790 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16791 as_fn_error $? "cannot run test program while cross compiling
16792 See \`config.log' for more details" "$LINENO" 5; }
16793 else $as_nop
16794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795 /* end confdefs.h.  */
16796
16797 #include <string.h>
16798 #ifdef HAVE_OPENSSL_SSL_H
16799 #include <openssl/ssl.h>
16800 #endif
16801 #ifdef HAVE_OPENSSL_EVP_H
16802 #include <openssl/evp.h>
16803 #endif
16804 #ifdef HAVE_OPENSSL_ENGINE_H
16805 #include <openssl/engine.h>
16806 #endif
16807 #ifdef HAVE_OPENSSL_CONF_H
16808 #include <openssl/conf.h>
16809 #endif
16810 /* routine to load gost (from sldns) */
16811 int load_gost_id(void)
16812 {
16813         static int gost_id = 0;
16814         const EVP_PKEY_ASN1_METHOD* meth;
16815         ENGINE* e;
16816
16817         if(gost_id) return gost_id;
16818
16819         /* see if configuration loaded gost implementation from other engine*/
16820         meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16821         if(meth) {
16822                 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16823                 return gost_id;
16824         }
16825
16826         /* see if engine can be loaded already */
16827         e = ENGINE_by_id("gost");
16828         if(!e) {
16829                 /* load it ourself, in case statically linked */
16830                 ENGINE_load_builtin_engines();
16831                 ENGINE_load_dynamic();
16832                 e = ENGINE_by_id("gost");
16833         }
16834         if(!e) {
16835                 /* no gost engine in openssl */
16836                 return 0;
16837         }
16838         if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16839                 ENGINE_finish(e);
16840                 ENGINE_free(e);
16841                 return 0;
16842         }
16843
16844         meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16845         if(!meth) {
16846                 /* algo not found */
16847                 ENGINE_finish(e);
16848                 ENGINE_free(e);
16849                 return 0;
16850         }
16851         EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16852         return gost_id;
16853 }
16854 int main(void) {
16855         EVP_MD_CTX* ctx;
16856         const EVP_MD* md;
16857         unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16858         const char* str = "Hello world";
16859         const unsigned char check[] = {
16860                 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16861                 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16862                 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16863                 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16864         };
16865         OPENSSL_config(NULL);
16866         (void)load_gost_id();
16867         md = EVP_get_digestbyname("md_gost94");
16868         if(!md) return 1;
16869         memset(digest, 0, sizeof(digest));
16870         ctx = EVP_MD_CTX_create();
16871         if(!ctx) return 2;
16872         if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16873         if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16874         if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16875         /* uncomment to see the hash calculated.
16876                 {int i;
16877                 for(i=0; i<32; i++)
16878                         printf(" %2.2x", (int)digest[i]);
16879                 printf("\n");}
16880         */
16881         if(memcmp(digest, check, sizeof(check)) != 0)
16882                 return 6;
16883         return 0;
16884 }
16885
16886 _ACEOF
16887 if ac_fn_c_try_run "$LINENO"
16888 then :
16889   eval "ac_cv_c_gost_works=yes"
16890 else $as_nop
16891   eval "ac_cv_c_gost_works=no"
16892 fi
16893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16894   conftest.$ac_objext conftest.beam conftest.$ac_ext
16895 fi
16896
16897 CFLAGS="$BAKCFLAGS"
16898 else
16899 eval "ac_cv_c_gost_works=maybe"
16900 fi
16901
16902         # Check whether --enable-gost-anyway was given.
16903 if test ${enable_gost_anyway+y}
16904 then :
16905   enableval=$enable_gost_anyway;
16906 fi
16907
16908         if test "$ac_cv_c_gost_works" != "no" -o "$enable_gost_anyway" = "yes"; then
16909                 if test "$ac_cv_c_gost_works" = "no"; then
16910                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, but compiling with GOST support anyway" >&5
16911 printf "%s\n" "no, but compiling with GOST support anyway" >&6; }
16912                 else
16913                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16914 printf "%s\n" "yes" >&6; }
16915                 fi
16916                 use_gost="yes"
16917
16918 printf "%s\n" "#define USE_GOST 1" >>confdefs.h
16919
16920         else
16921                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16922 printf "%s\n" "no" >&6; }
16923                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Gost support does not work because the engine is missing." >&5
16924 printf "%s\n" "$as_me: WARNING: Gost support does not work because the engine is missing." >&2;}
16925                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Install gost-engine first or use the --enable-gost-anyway to compile with GOST support anyway" >&5
16926 printf "%s\n" "$as_me: WARNING: Install gost-engine first or use the --enable-gost-anyway to compile with GOST support anyway" >&2;}
16927                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: See also https://github.com/gost-engine/engine/wiki for information about gost-engine" >&5
16928 printf "%s\n" "$as_me: WARNING: See also https://github.com/gost-engine/engine/wiki for information about gost-engine" >&2;}
16929         fi
16930         ;;
16931 esac
16932
16933 # Check whether --enable-ecdsa was given.
16934 if test ${enable_ecdsa+y}
16935 then :
16936   enableval=$enable_ecdsa;
16937 fi
16938
16939 case "$enable_ecdsa" in
16940     no)
16941       ;;
16942     *)       if test "x$HAVE_SSL" != "xyes"; then
16943         as_fn_error $? "ECDSA enabled, but no SSL support" "$LINENO" 5
16944       fi
16945       ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
16946 if test "x$ac_cv_func_ECDSA_sign" = xyes
16947 then :
16948
16949 else $as_nop
16950   as_fn_error $? "OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
16951 fi
16952
16953       ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
16954 if test "x$ac_cv_func_SHA384_Init" = xyes
16955 then :
16956
16957 else $as_nop
16958   as_fn_error $? "OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
16959 fi
16960
16961       ac_fn_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
16962 #include <openssl/evp.h>
16963
16964 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16965 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes
16966 then :
16967   ac_have_decl=1
16968 else $as_nop
16969   ac_have_decl=0
16970 fi
16971 printf "%s\n" "#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl" >>confdefs.h
16972 if test $ac_have_decl = 1
16973 then :
16974
16975 else $as_nop
16976   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
16977 fi
16978 ac_fn_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
16979 #include <openssl/evp.h>
16980
16981 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16982 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes
16983 then :
16984   ac_have_decl=1
16985 else $as_nop
16986   ac_have_decl=0
16987 fi
16988 printf "%s\n" "#define HAVE_DECL_NID_SECP384R1 $ac_have_decl" >>confdefs.h
16989 if test $ac_have_decl = 1
16990 then :
16991
16992 else $as_nop
16993   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
16994 fi
16995
16996       # we now know we have ECDSA and the required curves.
16997
16998 printf "%s\n" "#define USE_ECDSA 1" >>confdefs.h
16999
17000       ;;
17001 esac
17002
17003 # Check whether --enable-dsa was given.
17004 if test ${enable_dsa+y}
17005 then :
17006   enableval=$enable_dsa;
17007 fi
17008
17009 case "$enable_dsa" in
17010     no)
17011       ldns_build_config_use_dsa=0
17012
17013       ;;
17014     *)       # detect if DSA is supported, and turn it off if not.
17015       ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
17016 if test "x$ac_cv_func_DSA_SIG_new" = xyes
17017 then :
17018
17019
17020 printf "%s\n" "#define USE_DSA 1" >>confdefs.h
17021
17022         ldns_build_config_use_dsa=1
17023
17024
17025 else $as_nop
17026   if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
17027           fi
17028           ldns_build_config_use_dsa=0
17029
17030 fi
17031
17032       ;;
17033 esac
17034
17035 # Check whether --enable-ed25519 was given.
17036 if test ${enable_ed25519+y}
17037 then :
17038   enableval=$enable_ed25519;
17039 fi
17040
17041 case "$enable_ed25519" in
17042     no)
17043       ldns_build_config_use_ed25519=0
17044
17045       ;;
17046     *)       ac_fn_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
17047 #include <openssl/evp.h>
17048
17049 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17050 if test "x$ac_cv_have_decl_NID_ED25519" = xyes
17051 then :
17052   ac_have_decl=1
17053 else $as_nop
17054   ac_have_decl=0
17055 fi
17056 printf "%s\n" "#define HAVE_DECL_NID_ED25519 $ac_have_decl" >>confdefs.h
17057 if test $ac_have_decl = 1
17058 then :
17059
17060
17061 printf "%s\n" "#define USE_ED25519 1" >>confdefs.h
17062
17063         ldns_build_config_use_ed25519=1
17064
17065
17066 else $as_nop
17067   if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
17068           fi
17069           ldns_build_config_use_ed25519=0
17070
17071 fi
17072
17073       ;;
17074 esac
17075
17076 # Check whether --enable-ed448 was given.
17077 if test ${enable_ed448+y}
17078 then :
17079   enableval=$enable_ed448;
17080 fi
17081
17082 case "$enable_ed448" in
17083     no)
17084       ldns_build_config_use_ed448=0
17085
17086       ;;
17087     *)       ac_fn_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
17088 #include <openssl/evp.h>
17089
17090 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17091 if test "x$ac_cv_have_decl_NID_ED448" = xyes
17092 then :
17093   ac_have_decl=1
17094 else $as_nop
17095   ac_have_decl=0
17096 fi
17097 printf "%s\n" "#define HAVE_DECL_NID_ED448 $ac_have_decl" >>confdefs.h
17098 if test $ac_have_decl = 1
17099 then :
17100
17101
17102 printf "%s\n" "#define USE_ED448 1" >>confdefs.h
17103
17104         ldns_build_config_use_ed448=1
17105
17106
17107 else $as_nop
17108   if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
17109           fi
17110           ldns_build_config_use_ed448=0
17111
17112 fi
17113
17114       ;;
17115 esac
17116
17117 # Check whether --enable-dane was given.
17118 if test ${enable_dane+y}
17119 then :
17120   enableval=$enable_dane;
17121 fi
17122
17123 # Check whether --enable-dane-verify was given.
17124 if test ${enable_dane_verify+y}
17125 then :
17126   enableval=$enable_dane_verify;
17127 fi
17128
17129 # Check whether --enable-dane-ta-usage was given.
17130 if test ${enable_dane_ta_usage+y}
17131 then :
17132   enableval=$enable_dane_ta_usage;
17133 fi
17134
17135
17136 # Check whether --enable-full-dane was given.
17137 if test ${enable_full_dane+y}
17138 then :
17139   enableval=$enable_full_dane;
17140         enable_dane_ta_usage=yes
17141         enable_dane_verify=yes
17142         enable_dane=yes
17143
17144 fi
17145
17146 # Check whether --enable-no-dane-ta-usage was given.
17147 if test ${enable_no_dane_ta_usage+y}
17148 then :
17149   enableval=$enable_no_dane_ta_usage;
17150         enable_dane_ta_usage=no
17151         enable_dane_verify=yes
17152         enable_dane=yes
17153
17154 fi
17155
17156 # Check whether --enable-no-dane-verify was given.
17157 if test ${enable_no_dane_verify+y}
17158 then :
17159   enableval=$enable_no_dane_verify;
17160         enable_dane_ta_usage=no
17161         enable_dane_verify=no
17162         enable_dane=yes
17163
17164 fi
17165
17166 case "$enable_dane" in
17167     no)
17168       ldns_build_config_use_dane=0
17169
17170       ldns_build_config_use_dane_verify=0
17171
17172       ldns_build_config_use_dane_ta_usage=0
17173
17174       ;;
17175     *)       if test "x$HAVE_SSL" != "xyes"; then
17176         as_fn_error $? "DANE enabled, but no SSL support" "$LINENO" 5
17177       fi
17178       ac_fn_c_check_func "$LINENO" "X509_check_ca" "ac_cv_func_X509_check_ca"
17179 if test "x$ac_cv_func_X509_check_ca" = xyes
17180 then :
17181
17182 else $as_nop
17183   as_fn_error $? "OpenSSL does not support DANE: please upgrade OpenSSL or rerun with --disable-dane" "$LINENO" 5
17184 fi
17185
17186       ldns_build_config_use_dane=1
17187
17188
17189 printf "%s\n" "#define USE_DANE 1" >>confdefs.h
17190
17191       case "$enable_dane_verify" in
17192           no)
17193             ldns_build_config_use_dane_verify=0
17194
17195             ldns_build_config_use_dane_ta_usage=0
17196
17197             ;;
17198           *)
17199             ldns_build_config_use_dane_verify=1
17200
17201
17202 printf "%s\n" "#define USE_DANE_VERIFY 1" >>confdefs.h
17203
17204             case "$enable_dane_ta_usage" in
17205                 no)
17206                   ldns_build_config_use_dane_ta_usage=0
17207
17208                   ;;
17209                 *)                danetmpLIBS="$LIBS"
17210                   LIBS="-lssl -lcrypto $LIBS"
17211                   ac_fn_c_check_func "$LINENO" "SSL_get0_dane" "ac_cv_func_SSL_get0_dane"
17212 if test "x$ac_cv_func_SSL_get0_dane" = xyes
17213 then :
17214
17215 else $as_nop
17216   as_fn_error $? "OpenSSL does not support offline DANE verification (Needed for the DANE-TA usage type).  Please upgrade OpenSSL to version >= 1.1.0 or rerun with --disable-dane-verify or --disable-dane-ta-usage" "$LINENO" 5
17217 fi
17218
17219                   LIBSSL_LIBS="-lssl $LIBSSL_LIBS"
17220                   LIBS="$danetmpLIBS"
17221                   ldns_build_config_use_dane_ta_usage=1
17222
17223
17224 printf "%s\n" "#define USE_DANE_TA_USAGE 1" >>confdefs.h
17225
17226                   ;;
17227             esac
17228       esac
17229       ;;
17230 esac
17231
17232 # Check whether --enable-rrtype-ninfo was given.
17233 if test ${enable_rrtype_ninfo+y}
17234 then :
17235   enableval=$enable_rrtype_ninfo;
17236 fi
17237
17238 case "$enable_rrtype_ninfo" in
17239         yes)
17240
17241 printf "%s\n" "#define RRTYPE_NINFO /**/" >>confdefs.h
17242
17243                 ;;
17244         no|*)
17245                 ;;
17246 esac
17247 # Check whether --enable-rrtype-rkey was given.
17248 if test ${enable_rrtype_rkey+y}
17249 then :
17250   enableval=$enable_rrtype_rkey;
17251 fi
17252
17253 case "$enable_rrtype_rkey" in
17254         yes)
17255
17256 printf "%s\n" "#define RRTYPE_RKEY /**/" >>confdefs.h
17257
17258                 ;;
17259         no|*)
17260                 ;;
17261 esac
17262 # Check whether --enable-rrtype-openpgpkey was given.
17263 if test ${enable_rrtype_openpgpkey+y}
17264 then :
17265   enableval=$enable_rrtype_openpgpkey;
17266 fi
17267
17268 case "$enable_rrtype_openpgpkey" in
17269         no)
17270                 ;;
17271         yes|*)
17272
17273 printf "%s\n" "#define RRTYPE_OPENPGPKEY /**/" >>confdefs.h
17274
17275                 ;;
17276 esac
17277 # Check whether --enable-rrtype-ta was given.
17278 if test ${enable_rrtype_ta+y}
17279 then :
17280   enableval=$enable_rrtype_ta;
17281 fi
17282
17283 case "$enable_rrtype_ta" in
17284         yes)
17285
17286 printf "%s\n" "#define RRTYPE_TA /**/" >>confdefs.h
17287
17288                 ;;
17289         no|*)
17290                 ;;
17291 esac
17292 # Check whether --enable-rrtype-avc was given.
17293 if test ${enable_rrtype_avc+y}
17294 then :
17295   enableval=$enable_rrtype_avc;
17296 fi
17297
17298 case "$enable_rrtype_avc" in
17299         yes)
17300
17301 printf "%s\n" "#define RRTYPE_AVC /**/" >>confdefs.h
17302
17303                 ;;
17304         no|*)
17305                 ;;
17306 esac
17307 # Check whether --enable-rrtype-doa was given.
17308 if test ${enable_rrtype_doa+y}
17309 then :
17310   enableval=$enable_rrtype_doa;
17311 fi
17312
17313 case "$enable_rrtype_doa" in
17314         yes)
17315
17316 printf "%s\n" "#define RRTYPE_DOA /**/" >>confdefs.h
17317
17318                 ;;
17319         no|*)
17320                 ;;
17321 esac
17322 # Check whether --enable-rrtype-amtrelay was given.
17323 if test ${enable_rrtype_amtrelay+y}
17324 then :
17325   enableval=$enable_rrtype_amtrelay;
17326 fi
17327
17328 case "$enable_rrtype_amtrelay" in
17329         yes)
17330
17331 printf "%s\n" "#define RRTYPE_AMTRELAY /**/" >>confdefs.h
17332
17333                 ;;
17334         no|*)
17335                 ;;
17336 esac
17337 # Check whether --enable-rrtype-svcb-https was given.
17338 if test ${enable_rrtype_svcb_https+y}
17339 then :
17340   enableval=$enable_rrtype_svcb_https;
17341 fi
17342
17343 case "$enable_rrtype_svcb_https" in
17344         no)
17345                 ;;
17346         yes|*)
17347
17348 printf "%s\n" "#define RRTYPE_SVCB_HTTPS /**/" >>confdefs.h
17349
17350                 ;;
17351 esac
17352
17353
17354
17355
17356
17357
17358 if test "x$HAVE_SSL" = "xyes"; then
17359     if echo "$LIBSSL_LIBS" | grep -- "-lssl" >/dev/null 2>&1; then
17360         LIBSSL_SSL_LIBS="$LIBSSL_LIBS"
17361     else
17362         LIBSSL_SSL_LIBS="-lssl $LIBSSL_LIBS"
17363     fi
17364     LIBSSL_SSL_LIBS="$LIBSSL_SSL_LIBS"
17365
17366 fi
17367 CPPFLAGS=$tmp_CPPFLAGS
17368 LDFLAGS=$tmp_LDFLAGS
17369 LIBS=$tmp_LIBS
17370
17371
17372 # add option to disable the evil rpath
17373
17374 # Check whether --enable-rpath was given.
17375 if test ${enable_rpath+y}
17376 then :
17377   enableval=$enable_rpath; enable_rpath=$enableval
17378 else $as_nop
17379   enable_rpath=yes
17380 fi
17381
17382 if test "x$enable_rpath" = xno; then
17383                 ac_config_commands="$ac_config_commands disable-rpath"
17384
17385 fi
17386
17387
17388 #AC_RUN_IFELSE([AC_LANG_SOURCE(
17389 #[
17390 #int main()
17391 #{
17392 #short one = 1;
17393 #char *cp = (char*)&one;
17394 #if ( *cp == 0 )
17395 #return(0);
17396 #else
17397 #return(1);
17398 #}
17399 #])], [],[
17400 #AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian])
17401 #],[])
17402
17403 # should define WORDS_BIGENDIAN if the system is big-endian
17404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17405 printf %s "checking whether byte ordering is bigendian... " >&6; }
17406 if test ${ac_cv_c_bigendian+y}
17407 then :
17408   printf %s "(cached) " >&6
17409 else $as_nop
17410   ac_cv_c_bigendian=unknown
17411     # See if we're dealing with a universal compiler.
17412     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h.  */
17414 #ifndef __APPLE_CC__
17415                not a universal capable compiler
17416              #endif
17417              typedef int dummy;
17418
17419 _ACEOF
17420 if ac_fn_c_try_compile "$LINENO"
17421 then :
17422
17423         # Check for potential -arch flags.  It is not universal unless
17424         # there are at least two -arch flags with different values.
17425         ac_arch=
17426         ac_prev=
17427         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17428          if test -n "$ac_prev"; then
17429            case $ac_word in
17430              i?86 | x86_64 | ppc | ppc64)
17431                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17432                  ac_arch=$ac_word
17433                else
17434                  ac_cv_c_bigendian=universal
17435                  break
17436                fi
17437                ;;
17438            esac
17439            ac_prev=
17440          elif test "x$ac_word" = "x-arch"; then
17441            ac_prev=arch
17442          fi
17443        done
17444 fi
17445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17446     if test $ac_cv_c_bigendian = unknown; then
17447       # See if sys/param.h defines the BYTE_ORDER macro.
17448       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449 /* end confdefs.h.  */
17450 #include <sys/types.h>
17451              #include <sys/param.h>
17452
17453 int
17454 main (void)
17455 {
17456 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17457                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17458                      && LITTLE_ENDIAN)
17459               bogus endian macros
17460              #endif
17461
17462   ;
17463   return 0;
17464 }
17465 _ACEOF
17466 if ac_fn_c_try_compile "$LINENO"
17467 then :
17468   # It does; now see whether it defined to BIG_ENDIAN or not.
17469          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h.  */
17471 #include <sys/types.h>
17472                 #include <sys/param.h>
17473
17474 int
17475 main (void)
17476 {
17477 #if BYTE_ORDER != BIG_ENDIAN
17478                  not big endian
17479                 #endif
17480
17481   ;
17482   return 0;
17483 }
17484 _ACEOF
17485 if ac_fn_c_try_compile "$LINENO"
17486 then :
17487   ac_cv_c_bigendian=yes
17488 else $as_nop
17489   ac_cv_c_bigendian=no
17490 fi
17491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17492 fi
17493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17494     fi
17495     if test $ac_cv_c_bigendian = unknown; then
17496       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17497       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17498 /* end confdefs.h.  */
17499 #include <limits.h>
17500
17501 int
17502 main (void)
17503 {
17504 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17505               bogus endian macros
17506              #endif
17507
17508   ;
17509   return 0;
17510 }
17511 _ACEOF
17512 if ac_fn_c_try_compile "$LINENO"
17513 then :
17514   # It does; now see whether it defined to _BIG_ENDIAN or not.
17515          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516 /* end confdefs.h.  */
17517 #include <limits.h>
17518
17519 int
17520 main (void)
17521 {
17522 #ifndef _BIG_ENDIAN
17523                  not big endian
17524                 #endif
17525
17526   ;
17527   return 0;
17528 }
17529 _ACEOF
17530 if ac_fn_c_try_compile "$LINENO"
17531 then :
17532   ac_cv_c_bigendian=yes
17533 else $as_nop
17534   ac_cv_c_bigendian=no
17535 fi
17536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17537 fi
17538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17539     fi
17540     if test $ac_cv_c_bigendian = unknown; then
17541       # Compile a test program.
17542       if test "$cross_compiling" = yes
17543 then :
17544   # Try to guess by grepping values from an object file.
17545          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h.  */
17547 unsigned short int ascii_mm[] =
17548                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17549                 unsigned short int ascii_ii[] =
17550                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17551                 int use_ascii (int i) {
17552                   return ascii_mm[i] + ascii_ii[i];
17553                 }
17554                 unsigned short int ebcdic_ii[] =
17555                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17556                 unsigned short int ebcdic_mm[] =
17557                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17558                 int use_ebcdic (int i) {
17559                   return ebcdic_mm[i] + ebcdic_ii[i];
17560                 }
17561                 extern int foo;
17562
17563 int
17564 main (void)
17565 {
17566 return use_ascii (foo) == use_ebcdic (foo);
17567   ;
17568   return 0;
17569 }
17570 _ACEOF
17571 if ac_fn_c_try_compile "$LINENO"
17572 then :
17573   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17574               ac_cv_c_bigendian=yes
17575             fi
17576             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17577               if test "$ac_cv_c_bigendian" = unknown; then
17578                 ac_cv_c_bigendian=no
17579               else
17580                 # finding both strings is unlikely to happen, but who knows?
17581                 ac_cv_c_bigendian=unknown
17582               fi
17583             fi
17584 fi
17585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17586 else $as_nop
17587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17588 /* end confdefs.h.  */
17589 $ac_includes_default
17590 int
17591 main (void)
17592 {
17593
17594              /* Are we little or big endian?  From Harbison&Steele.  */
17595              union
17596              {
17597                long int l;
17598                char c[sizeof (long int)];
17599              } u;
17600              u.l = 1;
17601              return u.c[sizeof (long int) - 1] == 1;
17602
17603   ;
17604   return 0;
17605 }
17606 _ACEOF
17607 if ac_fn_c_try_run "$LINENO"
17608 then :
17609   ac_cv_c_bigendian=no
17610 else $as_nop
17611   ac_cv_c_bigendian=yes
17612 fi
17613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17614   conftest.$ac_objext conftest.beam conftest.$ac_ext
17615 fi
17616
17617     fi
17618 fi
17619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17620 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
17621  case $ac_cv_c_bigendian in #(
17622    yes)
17623      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
17624 ;; #(
17625    no)
17626       ;; #(
17627    universal)
17628
17629 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17630
17631      ;; #(
17632    *)
17633      as_fn_error $? "unknown endianness
17634  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17635  esac
17636
17637
17638 # Checks for header files.
17639 # Autoupdate added the next two lines to ensure that your configure
17640 # script's behavior did not change.  They are probably safe to remove.
17641
17642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
17643 printf %s "checking for egrep... " >&6; }
17644 if test ${ac_cv_path_EGREP+y}
17645 then :
17646   printf %s "(cached) " >&6
17647 else $as_nop
17648   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17649    then ac_cv_path_EGREP="$GREP -E"
17650    else
17651      if test -z "$EGREP"; then
17652   ac_path_EGREP_found=false
17653   # Loop through the user's path and test for each of PROGNAME-LIST
17654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17656 do
17657   IFS=$as_save_IFS
17658   case $as_dir in #(((
17659     '') as_dir=./ ;;
17660     */) ;;
17661     *) as_dir=$as_dir/ ;;
17662   esac
17663     for ac_prog in egrep
17664    do
17665     for ac_exec_ext in '' $ac_executable_extensions; do
17666       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
17667       as_fn_executable_p "$ac_path_EGREP" || continue
17668 # Check for GNU ac_path_EGREP and select it if it is found.
17669   # Check for GNU $ac_path_EGREP
17670 case `"$ac_path_EGREP" --version 2>&1` in
17671 *GNU*)
17672   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17673 *)
17674   ac_count=0
17675   printf %s 0123456789 >"conftest.in"
17676   while :
17677   do
17678     cat "conftest.in" "conftest.in" >"conftest.tmp"
17679     mv "conftest.tmp" "conftest.in"
17680     cp "conftest.in" "conftest.nl"
17681     printf "%s\n" 'EGREP' >> "conftest.nl"
17682     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17683     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17684     as_fn_arith $ac_count + 1 && ac_count=$as_val
17685     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17686       # Best one so far, save it but keep looking for a better one
17687       ac_cv_path_EGREP="$ac_path_EGREP"
17688       ac_path_EGREP_max=$ac_count
17689     fi
17690     # 10*(2^10) chars as input seems more than enough
17691     test $ac_count -gt 10 && break
17692   done
17693   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17694 esac
17695
17696       $ac_path_EGREP_found && break 3
17697     done
17698   done
17699   done
17700 IFS=$as_save_IFS
17701   if test -z "$ac_cv_path_EGREP"; then
17702     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
17703   fi
17704 else
17705   ac_cv_path_EGREP=$EGREP
17706 fi
17707
17708    fi
17709 fi
17710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
17711 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
17712  EGREP="$ac_cv_path_EGREP"
17713
17714
17715
17716 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17717 if test "x$ac_cv_type__Bool" = xyes
17718 then :
17719
17720 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
17721
17722
17723 fi
17724
17725    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17726 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
17727 if test ${ac_cv_header_stdbool_h+y}
17728 then :
17729   printf %s "(cached) " >&6
17730 else $as_nop
17731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732 /* end confdefs.h.  */
17733 #include <stdbool.h>
17734
17735              #ifndef __bool_true_false_are_defined
17736                #error "__bool_true_false_are_defined is not defined"
17737              #endif
17738              char a[__bool_true_false_are_defined == 1 ? 1 : -1];
17739
17740              /* Regardless of whether this is C++ or "_Bool" is a
17741                 valid type name, "true" and "false" should be usable
17742                 in #if expressions and integer constant expressions,
17743                 and "bool" should be a valid type name.  */
17744
17745              #if !true
17746                #error "'true' is not true"
17747              #endif
17748              #if true != 1
17749                #error "'true' is not equal to 1"
17750              #endif
17751              char b[true == 1 ? 1 : -1];
17752              char c[true];
17753
17754              #if false
17755                #error "'false' is not false"
17756              #endif
17757              #if false != 0
17758                #error "'false' is not equal to 0"
17759              #endif
17760              char d[false == 0 ? 1 : -1];
17761
17762              enum { e = false, f = true, g = false * true, h = true * 256 };
17763
17764              char i[(bool) 0.5 == true ? 1 : -1];
17765              char j[(bool) 0.0 == false ? 1 : -1];
17766              char k[sizeof (bool) > 0 ? 1 : -1];
17767
17768              struct sb { bool s: 1; bool t; } s;
17769              char l[sizeof s.t > 0 ? 1 : -1];
17770
17771              /* The following fails for
17772                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17773              bool m[h];
17774              char n[sizeof m == h * sizeof m[0] ? 1 : -1];
17775              char o[-1 - (bool) 0 < 0 ? 1 : -1];
17776              /* Catch a bug in an HP-UX C compiler.  See
17777          https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17778          https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17779               */
17780              bool p = true;
17781              bool *pp = &p;
17782
17783              /* C 1999 specifies that bool, true, and false are to be
17784                 macros, but C++ 2011 and later overrule this.  */
17785              #if __cplusplus < 201103
17786               #ifndef bool
17787                #error "bool is not defined"
17788               #endif
17789               #ifndef false
17790                #error "false is not defined"
17791               #endif
17792               #ifndef true
17793                #error "true is not defined"
17794               #endif
17795              #endif
17796
17797              /* If _Bool is available, repeat with it all the tests
17798                 above that used bool.  */
17799              #ifdef HAVE__BOOL
17800                struct sB { _Bool s: 1; _Bool t; } t;
17801
17802                char q[(_Bool) 0.5 == true ? 1 : -1];
17803                char r[(_Bool) 0.0 == false ? 1 : -1];
17804                char u[sizeof (_Bool) > 0 ? 1 : -1];
17805                char v[sizeof t.t > 0 ? 1 : -1];
17806
17807                _Bool w[h];
17808                char x[sizeof m == h * sizeof m[0] ? 1 : -1];
17809                char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
17810                _Bool z = true;
17811                _Bool *pz = &p;
17812              #endif
17813
17814 int
17815 main (void)
17816 {
17817
17818              bool ps = &s;
17819              *pp |= p;
17820              *pp |= ! p;
17821
17822              #ifdef HAVE__BOOL
17823                _Bool pt = &t;
17824                *pz |= z;
17825                *pz |= ! z;
17826              #endif
17827
17828              /* Refer to every declared value, so they cannot be
17829                 discarded as unused.  */
17830              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
17831                      + !l + !m + !n + !o + !p + !pp + !ps
17832              #ifdef HAVE__BOOL
17833                      + !q + !r + !u + !v + !w + !x + !y + !z + !pt
17834              #endif
17835                     );
17836
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 if ac_fn_c_try_compile "$LINENO"
17842 then :
17843   ac_cv_header_stdbool_h=yes
17844 else $as_nop
17845   ac_cv_header_stdbool_h=no
17846 fi
17847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17848 fi
17849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17850 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
17851
17852 if test $ac_cv_header_stdbool_h = yes; then
17853
17854 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
17855
17856 fi
17857
17858 #AC_HEADER_SYS_WAIT
17859 #AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h])
17860 # do the very minimum - we can always extend this
17861 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default
17862 "
17863 if test "x$ac_cv_header_getopt_h" = xyes
17864 then :
17865   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
17866
17867 fi
17868 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default
17869 "
17870 if test "x$ac_cv_header_stdarg_h" = xyes
17871 then :
17872   printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
17873
17874 fi
17875 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
17876 "
17877 if test "x$ac_cv_header_openssl_ssl_h" = xyes
17878 then :
17879   printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
17880
17881 fi
17882 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default
17883 "
17884 if test "x$ac_cv_header_netinet_in_h" = xyes
17885 then :
17886   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
17887
17888 fi
17889 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default
17890 "
17891 if test "x$ac_cv_header_time_h" = xyes
17892 then :
17893   printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
17894
17895 fi
17896 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default
17897 "
17898 if test "x$ac_cv_header_arpa_inet_h" = xyes
17899 then :
17900   printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
17901
17902 fi
17903 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default
17904 "
17905 if test "x$ac_cv_header_netdb_h" = xyes
17906 then :
17907   printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
17908
17909 fi
17910
17911 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default
17912
17913    #if HAVE_SYS_PARAM_H
17914    # include <sys/param.h>
17915    #endif
17916
17917
17918 "
17919 if test "x$ac_cv_header_sys_param_h" = xyes
17920 then :
17921   printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
17922
17923 fi
17924 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default
17925
17926    #if HAVE_SYS_PARAM_H
17927    # include <sys/param.h>
17928    #endif
17929
17930
17931 "
17932 if test "x$ac_cv_header_sys_mount_h" = xyes
17933 then :
17934   printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
17935
17936 fi
17937
17938 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
17939
17940    #if HAVE_SYS_PARAM_H
17941    # include <sys/param.h>
17942    #endif
17943
17944
17945 "
17946 if test "x$ac_cv_header_sys_socket_h" = xyes
17947 then :
17948
17949 include_sys_socket_h='#include <sys/socket.h>'
17950
17951 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
17952
17953
17954 else $as_nop
17955
17956 include_sys_socket_h=''
17957
17958 fi
17959
17960
17961 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default
17962
17963 "
17964 if test "x$ac_cv_header_inttypes_h" = xyes
17965 then :
17966
17967 include_inttypes_h='#include <inttypes.h>'
17968
17969 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
17970
17971 ldns_build_config_have_inttypes_h=1
17972
17973
17974 else $as_nop
17975
17976 include_inttypes_h=''
17977 ldns_build_config_have_inttypes_h=0
17978
17979
17980 fi
17981
17982
17983 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default
17984
17985 "
17986 if test "x$ac_cv_header_sys_types_h" = xyes
17987 then :
17988
17989 include_systypes_h='#include <sys/types.h>'
17990
17991 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
17992
17993
17994 else $as_nop
17995
17996 include_systypes_h=''
17997
17998 fi
17999
18000
18001 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
18002
18003 "
18004 if test "x$ac_cv_header_unistd_h" = xyes
18005 then :
18006
18007 include_unistd_h='#include <unistd.h>'
18008
18009 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
18010
18011
18012 else $as_nop
18013
18014 include_unistd_h=''
18015
18016 fi
18017
18018
18019
18020 # The cast to long int works around a bug in the HP C Compiler
18021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18023 # This bug is HP SR number 8606223364.
18024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
18025 printf %s "checking size of time_t... " >&6; }
18026 if test ${ac_cv_sizeof_time_t+y}
18027 then :
18028   printf %s "(cached) " >&6
18029 else $as_nop
18030   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
18031 $ac_includes_default
18032 #ifdef TIME_WITH_SYS_TIME
18033 # include <sys/time.h>
18034 # include <time.h>
18035 #else
18036 # ifdef HAVE_SYS_TIME_H
18037 #  include <sys/time.h>
18038 # else
18039 #  include <time.h>
18040 # endif
18041 #endif
18042
18043 "
18044 then :
18045
18046 else $as_nop
18047   if test "$ac_cv_type_time_t" = yes; then
18048      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18049 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18050 as_fn_error 77 "cannot compute sizeof (time_t)
18051 See \`config.log' for more details" "$LINENO" 5; }
18052    else
18053      ac_cv_sizeof_time_t=0
18054    fi
18055 fi
18056
18057 fi
18058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
18059 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
18060
18061
18062
18063 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
18064
18065
18066
18067 if test x_$with_examples != x_no; then
18068 ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default
18069 "
18070 if test "x$ac_cv_header_pcap_h" = xyes
18071 then :
18072   printf "%s\n" "#define HAVE_PCAP_H 1" >>confdefs.h
18073
18074 fi
18075
18076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline in -lpcap" >&5
18077 printf %s "checking for pcap_open_offline in -lpcap... " >&6; }
18078 if test ${ac_cv_lib_pcap_pcap_open_offline+y}
18079 then :
18080   printf %s "(cached) " >&6
18081 else $as_nop
18082   ac_check_lib_save_LIBS=$LIBS
18083 LIBS="-lpcap  $LIBS"
18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h.  */
18086
18087 /* Override any GCC internal prototype to avoid an error.
18088    Use char because int might match the return type of a GCC
18089    builtin and then its argument prototype would still apply.  */
18090 char pcap_open_offline ();
18091 int
18092 main (void)
18093 {
18094 return pcap_open_offline ();
18095   ;
18096   return 0;
18097 }
18098 _ACEOF
18099 if ac_fn_c_try_link "$LINENO"
18100 then :
18101   ac_cv_lib_pcap_pcap_open_offline=yes
18102 else $as_nop
18103   ac_cv_lib_pcap_pcap_open_offline=no
18104 fi
18105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18106     conftest$ac_exeext conftest.$ac_ext
18107 LIBS=$ac_check_lib_save_LIBS
18108 fi
18109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_offline" >&5
18110 printf "%s\n" "$ac_cv_lib_pcap_pcap_open_offline" >&6; }
18111 if test "x$ac_cv_lib_pcap_pcap_open_offline" = xyes
18112 then :
18113
18114
18115 printf "%s\n" "#define HAVE_LIBPCAP 1" >>confdefs.h
18116         LIBPCAP_LIBS=-lpcap
18117
18118
18119 else $as_nop
18120
18121         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&5
18122 printf "%s\n" "$as_me: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&2;}
18123
18124
18125 fi
18126
18127 ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "
18128 $ac_includes_default
18129 #ifdef HAVE_NETINET_IN_SYSTM_H
18130 #include <netinet/in_systm.h>
18131 #endif
18132 #ifdef HAVE_NETINET_IN_H
18133 #include <netinet/in.h>
18134 #endif
18135 #ifdef HAVE_SYS_SOCKET_H
18136 #include <sys/socket.h>
18137 #endif
18138 #ifdef HAVE_NET_IF_H
18139 #include <net/if.h>
18140 #endif
18141 "
18142 if test "x$ac_cv_header_netinet_in_systm_h" = xyes
18143 then :
18144   printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h
18145
18146 fi
18147 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
18148 $ac_includes_default
18149 #ifdef HAVE_NETINET_IN_SYSTM_H
18150 #include <netinet/in_systm.h>
18151 #endif
18152 #ifdef HAVE_NETINET_IN_H
18153 #include <netinet/in.h>
18154 #endif
18155 #ifdef HAVE_SYS_SOCKET_H
18156 #include <sys/socket.h>
18157 #endif
18158 #ifdef HAVE_NET_IF_H
18159 #include <net/if.h>
18160 #endif
18161 "
18162 if test "x$ac_cv_header_net_if_h" = xyes
18163 then :
18164   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
18165
18166 fi
18167 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "
18168 $ac_includes_default
18169 #ifdef HAVE_NETINET_IN_SYSTM_H
18170 #include <netinet/in_systm.h>
18171 #endif
18172 #ifdef HAVE_NETINET_IN_H
18173 #include <netinet/in.h>
18174 #endif
18175 #ifdef HAVE_SYS_SOCKET_H
18176 #include <sys/socket.h>
18177 #endif
18178 #ifdef HAVE_NET_IF_H
18179 #include <net/if.h>
18180 #endif
18181 "
18182 if test "x$ac_cv_header_netinet_ip_h" = xyes
18183 then :
18184   printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h
18185
18186 fi
18187 ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "
18188 $ac_includes_default
18189 #ifdef HAVE_NETINET_IN_SYSTM_H
18190 #include <netinet/in_systm.h>
18191 #endif
18192 #ifdef HAVE_NETINET_IN_H
18193 #include <netinet/in.h>
18194 #endif
18195 #ifdef HAVE_SYS_SOCKET_H
18196 #include <sys/socket.h>
18197 #endif
18198 #ifdef HAVE_NET_IF_H
18199 #include <net/if.h>
18200 #endif
18201 "
18202 if test "x$ac_cv_header_netinet_udp_h" = xyes
18203 then :
18204   printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h
18205
18206 fi
18207 ac_fn_c_check_header_compile "$LINENO" "netinet/igmp.h" "ac_cv_header_netinet_igmp_h" "
18208 $ac_includes_default
18209 #ifdef HAVE_NETINET_IN_SYSTM_H
18210 #include <netinet/in_systm.h>
18211 #endif
18212 #ifdef HAVE_NETINET_IN_H
18213 #include <netinet/in.h>
18214 #endif
18215 #ifdef HAVE_SYS_SOCKET_H
18216 #include <sys/socket.h>
18217 #endif
18218 #ifdef HAVE_NET_IF_H
18219 #include <net/if.h>
18220 #endif
18221 "
18222 if test "x$ac_cv_header_netinet_igmp_h" = xyes
18223 then :
18224   printf "%s\n" "#define HAVE_NETINET_IGMP_H 1" >>confdefs.h
18225
18226 fi
18227 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "
18228 $ac_includes_default
18229 #ifdef HAVE_NETINET_IN_SYSTM_H
18230 #include <netinet/in_systm.h>
18231 #endif
18232 #ifdef HAVE_NETINET_IN_H
18233 #include <netinet/in.h>
18234 #endif
18235 #ifdef HAVE_SYS_SOCKET_H
18236 #include <sys/socket.h>
18237 #endif
18238 #ifdef HAVE_NET_IF_H
18239 #include <net/if.h>
18240 #endif
18241 "
18242 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
18243 then :
18244   printf "%s\n" "#define HAVE_NETINET_IF_ETHER_H 1" >>confdefs.h
18245
18246 fi
18247 ac_fn_c_check_header_compile "$LINENO" "netinet/ip6.h" "ac_cv_header_netinet_ip6_h" "
18248 $ac_includes_default
18249 #ifdef HAVE_NETINET_IN_SYSTM_H
18250 #include <netinet/in_systm.h>
18251 #endif
18252 #ifdef HAVE_NETINET_IN_H
18253 #include <netinet/in.h>
18254 #endif
18255 #ifdef HAVE_SYS_SOCKET_H
18256 #include <sys/socket.h>
18257 #endif
18258 #ifdef HAVE_NET_IF_H
18259 #include <net/if.h>
18260 #endif
18261 "
18262 if test "x$ac_cv_header_netinet_ip6_h" = xyes
18263 then :
18264   printf "%s\n" "#define HAVE_NETINET_IP6_H 1" >>confdefs.h
18265
18266 fi
18267 ac_fn_c_check_header_compile "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" "
18268 $ac_includes_default
18269 #ifdef HAVE_NETINET_IN_SYSTM_H
18270 #include <netinet/in_systm.h>
18271 #endif
18272 #ifdef HAVE_NETINET_IN_H
18273 #include <netinet/in.h>
18274 #endif
18275 #ifdef HAVE_SYS_SOCKET_H
18276 #include <sys/socket.h>
18277 #endif
18278 #ifdef HAVE_NET_IF_H
18279 #include <net/if.h>
18280 #endif
18281 "
18282 if test "x$ac_cv_header_net_ethernet_h" = xyes
18283 then :
18284   printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h
18285
18286 fi
18287 ac_fn_c_check_header_compile "$LINENO" "netinet/ip_compat.h" "ac_cv_header_netinet_ip_compat_h" "
18288 $ac_includes_default
18289 #ifdef HAVE_NETINET_IN_SYSTM_H
18290 #include <netinet/in_systm.h>
18291 #endif
18292 #ifdef HAVE_NETINET_IN_H
18293 #include <netinet/in.h>
18294 #endif
18295 #ifdef HAVE_SYS_SOCKET_H
18296 #include <sys/socket.h>
18297 #endif
18298 #ifdef HAVE_NET_IF_H
18299 #include <net/if.h>
18300 #endif
18301 "
18302 if test "x$ac_cv_header_netinet_ip_compat_h" = xyes
18303 then :
18304   printf "%s\n" "#define HAVE_NETINET_IP_COMPAT_H 1" >>confdefs.h
18305
18306 fi
18307
18308 fi
18309
18310
18311 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
18312 $ac_includes_default
18313 #ifdef HAVE_SYS_SOCKET_H
18314 #  include <sys/socket.h>
18315 #endif
18316 #ifdef HAVE_WS2TCPIP_H
18317 #  include <ws2tcpip.h>
18318 #endif
18319
18320 "
18321 if test "x$ac_cv_type_socklen_t" = xyes
18322 then :
18323
18324 else $as_nop
18325
18326 printf "%s\n" "#define socklen_t int" >>confdefs.h
18327
18328 fi
18329
18330 if test "x$ac_cv_type_socklen_t" = xyes; then
18331   ldns_build_config_have_socklen_t=1
18332
18333 else
18334   ldns_build_config_have_socklen_t=0
18335
18336 fi
18337 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18338 if test "x$ac_cv_type_size_t" = xyes
18339 then :
18340
18341 else $as_nop
18342
18343 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
18344
18345 fi
18346
18347 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
18348 if test "x$ac_cv_type_ssize_t" = xyes
18349 then :
18350
18351 else $as_nop
18352
18353 printf "%s\n" "#define ssize_t int" >>confdefs.h
18354
18355 fi
18356
18357 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
18358 if test "x$ac_cv_type_intptr_t" = xyes
18359 then :
18360
18361 else $as_nop
18362
18363 printf "%s\n" "#define intptr_t size_t" >>confdefs.h
18364
18365 fi
18366
18367 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
18368 #if HAVE_SYS_TYPES_H
18369 # include <sys/types.h>
18370 #endif
18371 #if HAVE_NETINET_IN_H
18372 # include <netinet/in.h>
18373 #endif
18374 "
18375 if test "x$ac_cv_type_in_addr_t" = xyes
18376 then :
18377
18378 else $as_nop
18379
18380 printf "%s\n" "#define in_addr_t uint32_t" >>confdefs.h
18381
18382 fi
18383
18384 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
18385 #if HAVE_SYS_TYPES_H
18386 # include <sys/types.h>
18387 #endif
18388 #if HAVE_NETINET_IN_H
18389 # include <netinet/in.h>
18390 #endif
18391 "
18392 if test "x$ac_cv_type_in_port_t" = xyes
18393 then :
18394
18395 else $as_nop
18396
18397 printf "%s\n" "#define in_port_t uint16_t" >>confdefs.h
18398
18399 fi
18400
18401 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default
18402 #ifdef HAVE_NETINET_IN_H
18403 #include <netinet/in.h>
18404 #endif
18405 #ifdef HAVE_SYS_SOCKET_H
18406 #include <sys/socket.h>
18407 #endif
18408 #ifdef HAVE_NETDB_H
18409 #include <netdb.h>
18410 #endif
18411 #ifdef HAVE_ARPA_INET_H
18412 #include <arpa/inet.h>
18413 #endif
18414
18415 "
18416 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
18417 then :
18418
18419 else $as_nop
18420
18421         ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default
18422 #ifdef HAVE_NETINET_IN_H
18423 #include <netinet/in.h>
18424 #endif
18425 #ifdef HAVE_SYS_SOCKET_H
18426 #include <sys/socket.h>
18427 #endif
18428 #ifdef HAVE_NETDB_H
18429 #include <netdb.h>
18430 #endif
18431 #ifdef HAVE_ARPA_INET_H
18432 #include <arpa/inet.h>
18433 #endif
18434
18435 "
18436 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes
18437 then :
18438
18439
18440 printf "%s\n" "#define ss_family __ss_family" >>confdefs.h
18441
18442
18443 fi
18444
18445
18446 fi
18447
18448
18449 # AC_FUNC_MALLOC suffers false failures and causes Asan failures.
18450 # AC_FUNC_MALLOC
18451 # AC_FUNC_REALLOC
18452
18453 ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton"
18454 if test "x$ac_cv_func_b64_pton" = xyes
18455 then :
18456   printf "%s\n" "#define HAVE_B64_PTON 1" >>confdefs.h
18457
18458 else $as_nop
18459   case " $LIBOBJS " in
18460   *" b64_pton.$ac_objext "* ) ;;
18461   *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext"
18462  ;;
18463 esac
18464
18465 fi
18466
18467 ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop"
18468 if test "x$ac_cv_func_b64_ntop" = xyes
18469 then :
18470   printf "%s\n" "#define HAVE_B64_NTOP 1" >>confdefs.h
18471
18472 else $as_nop
18473   case " $LIBOBJS " in
18474   *" b64_ntop.$ac_objext "* ) ;;
18475   *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext"
18476  ;;
18477 esac
18478
18479 fi
18480
18481 ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
18482 if test "x$ac_cv_func_calloc" = xyes
18483 then :
18484   printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
18485
18486 else $as_nop
18487   case " $LIBOBJS " in
18488   *" calloc.$ac_objext "* ) ;;
18489   *) LIBOBJS="$LIBOBJS calloc.$ac_objext"
18490  ;;
18491 esac
18492
18493 fi
18494
18495 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
18496 if test "x$ac_cv_func_timegm" = xyes
18497 then :
18498   printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
18499
18500 else $as_nop
18501   case " $LIBOBJS " in
18502   *" timegm.$ac_objext "* ) ;;
18503   *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
18504  ;;
18505 esac
18506
18507 fi
18508
18509 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18510 if test "x$ac_cv_func_gmtime_r" = xyes
18511 then :
18512   printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
18513
18514 else $as_nop
18515   case " $LIBOBJS " in
18516   *" gmtime_r.$ac_objext "* ) ;;
18517   *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
18518  ;;
18519 esac
18520
18521 fi
18522
18523 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
18524 if test "x$ac_cv_func_ctime_r" = xyes
18525 then :
18526   printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
18527
18528 else $as_nop
18529   case " $LIBOBJS " in
18530   *" ctime_r.$ac_objext "* ) ;;
18531   *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
18532  ;;
18533 esac
18534
18535 fi
18536
18537 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
18538 if test "x$ac_cv_func_localtime_r" = xyes
18539 then :
18540   printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
18541
18542 else $as_nop
18543   case " $LIBOBJS " in
18544   *" localtime_r.$ac_objext "* ) ;;
18545   *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
18546  ;;
18547 esac
18548
18549 fi
18550
18551 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
18552 if test "x$ac_cv_func_isblank" = xyes
18553 then :
18554   printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h
18555
18556 else $as_nop
18557   case " $LIBOBJS " in
18558   *" isblank.$ac_objext "* ) ;;
18559   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
18560  ;;
18561 esac
18562
18563 fi
18564
18565 ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
18566 if test "x$ac_cv_func_isascii" = xyes
18567 then :
18568   printf "%s\n" "#define HAVE_ISASCII 1" >>confdefs.h
18569
18570 else $as_nop
18571   case " $LIBOBJS " in
18572   *" isascii.$ac_objext "* ) ;;
18573   *) LIBOBJS="$LIBOBJS isascii.$ac_objext"
18574  ;;
18575 esac
18576
18577 fi
18578
18579 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
18580 if test "x$ac_cv_func_inet_aton" = xyes
18581 then :
18582   printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
18583
18584 else $as_nop
18585   case " $LIBOBJS " in
18586   *" inet_aton.$ac_objext "* ) ;;
18587   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
18588  ;;
18589 esac
18590
18591 fi
18592
18593 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
18594 if test "x$ac_cv_func_inet_pton" = xyes
18595 then :
18596   printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
18597
18598 else $as_nop
18599   case " $LIBOBJS " in
18600   *" inet_pton.$ac_objext "* ) ;;
18601   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
18602  ;;
18603 esac
18604
18605 fi
18606
18607 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
18608 if test "x$ac_cv_func_inet_ntop" = xyes
18609 then :
18610   printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
18611
18612 else $as_nop
18613   case " $LIBOBJS " in
18614   *" inet_ntop.$ac_objext "* ) ;;
18615   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
18616  ;;
18617 esac
18618
18619 fi
18620
18621 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18622 if test "x$ac_cv_func_snprintf" = xyes
18623 then :
18624   printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
18625
18626 else $as_nop
18627   case " $LIBOBJS " in
18628   *" snprintf.$ac_objext "* ) ;;
18629   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18630  ;;
18631 esac
18632
18633 fi
18634
18635 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18636 if test "x$ac_cv_func_strlcpy" = xyes
18637 then :
18638   printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
18639
18640 else $as_nop
18641   case " $LIBOBJS " in
18642   *" strlcpy.$ac_objext "* ) ;;
18643   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
18644  ;;
18645 esac
18646
18647 fi
18648
18649 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18650 if test "x$ac_cv_func_memmove" = xyes
18651 then :
18652   printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
18653
18654 else $as_nop
18655   case " $LIBOBJS " in
18656   *" memmove.$ac_objext "* ) ;;
18657   *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
18658  ;;
18659 esac
18660
18661 fi
18662
18663
18664   ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
18665 "
18666 if test "x$ac_cv_type_pid_t" = xyes
18667 then :
18668
18669 else $as_nop
18670                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h.  */
18672
18673           #if defined _WIN64 && !defined __CYGWIN__
18674           LLP64
18675           #endif
18676
18677 int
18678 main (void)
18679 {
18680
18681   ;
18682   return 0;
18683 }
18684
18685 _ACEOF
18686 if ac_fn_c_try_compile "$LINENO"
18687 then :
18688   ac_pid_type='int'
18689 else $as_nop
18690   ac_pid_type='__int64'
18691 fi
18692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18693
18694 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
18695
18696
18697 fi
18698
18699
18700
18701 ac_func=
18702 for ac_item in $ac_func_c_list
18703 do
18704   if test $ac_func; then
18705     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
18706     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
18707       echo "#define $ac_item 1" >> confdefs.h
18708     fi
18709     ac_func=
18710   else
18711     ac_func=$ac_item
18712   fi
18713 done
18714
18715
18716
18717 if test "x$ac_cv_func_fork" = xyes; then
18718   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18719 printf %s "checking for working fork... " >&6; }
18720 if test ${ac_cv_func_fork_works+y}
18721 then :
18722   printf %s "(cached) " >&6
18723 else $as_nop
18724   if test "$cross_compiling" = yes
18725 then :
18726   ac_cv_func_fork_works=cross
18727 else $as_nop
18728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18729 /* end confdefs.h.  */
18730 $ac_includes_default
18731 int
18732 main (void)
18733 {
18734
18735           /* By Ruediger Kuhlmann. */
18736           return fork () < 0;
18737
18738   ;
18739   return 0;
18740 }
18741 _ACEOF
18742 if ac_fn_c_try_run "$LINENO"
18743 then :
18744   ac_cv_func_fork_works=yes
18745 else $as_nop
18746   ac_cv_func_fork_works=no
18747 fi
18748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18749   conftest.$ac_objext conftest.beam conftest.$ac_ext
18750 fi
18751
18752 fi
18753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18754 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
18755
18756 else
18757   ac_cv_func_fork_works=$ac_cv_func_fork
18758 fi
18759 if test "x$ac_cv_func_fork_works" = xcross; then
18760   case $host in
18761     *-*-amigaos* | *-*-msdosdjgpp*)
18762       # Override, as these systems have only a dummy fork() stub
18763       ac_cv_func_fork_works=no
18764       ;;
18765     *)
18766       ac_cv_func_fork_works=yes
18767       ;;
18768   esac
18769   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18770 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18771 fi
18772 ac_cv_func_vfork_works=$ac_cv_func_vfork
18773 if test "x$ac_cv_func_vfork" = xyes; then
18774   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18775 printf %s "checking for working vfork... " >&6; }
18776 if test ${ac_cv_func_vfork_works+y}
18777 then :
18778   printf %s "(cached) " >&6
18779 else $as_nop
18780   if test "$cross_compiling" = yes
18781 then :
18782   ac_cv_func_vfork_works=cross
18783 else $as_nop
18784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785 /* end confdefs.h.  */
18786 /* Thanks to Paul Eggert for this test.  */
18787 $ac_includes_default
18788 #include <signal.h>
18789 #include <sys/wait.h>
18790 #ifdef HAVE_VFORK_H
18791 # include <vfork.h>
18792 #endif
18793
18794 static void
18795 do_nothing (int sig)
18796 {
18797   (void) sig;
18798 }
18799
18800 /* On some sparc systems, changes by the child to local and incoming
18801    argument registers are propagated back to the parent.  The compiler
18802    is told about this with #include <vfork.h>, but some compilers
18803    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
18804    static variable whose address is put into a register that is
18805    clobbered by the vfork.  */
18806 static void
18807 sparc_address_test (int arg)
18808 {
18809   static pid_t child;
18810   if (!child) {
18811     child = vfork ();
18812     if (child < 0) {
18813       perror ("vfork");
18814       _exit(2);
18815     }
18816     if (!child) {
18817       arg = getpid();
18818       write(-1, "", 0);
18819       _exit (arg);
18820     }
18821   }
18822 }
18823
18824 int
18825 main (void)
18826 {
18827   pid_t parent = getpid ();
18828   pid_t child;
18829
18830   sparc_address_test (0);
18831
18832   /* On Solaris 2.4, changes by the child to the signal handler
18833      also munge signal handlers in the parent.  To detect this,
18834      start by putting the parent's handler in a known state.  */
18835   signal (SIGTERM, SIG_DFL);
18836
18837   child = vfork ();
18838
18839   if (child == 0) {
18840     /* Here is another test for sparc vfork register problems.  This
18841        test uses lots of local variables, at least as many local
18842        variables as main has allocated so far including compiler
18843        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
18844        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
18845        reuse the register of parent for one of the local variables,
18846        since it will think that parent can't possibly be used any more
18847        in this routine.  Assigning to the local variable will thus
18848        munge parent in the parent process.  */
18849     pid_t
18850       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18851       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18852     /* Convince the compiler that p..p7 are live; otherwise, it might
18853        use the same hardware register for all 8 local variables.  */
18854     if (p != p1 || p != p2 || p != p3 || p != p4
18855         || p != p5 || p != p6 || p != p7)
18856       _exit(1);
18857
18858     /* Alter the child's signal handler.  */
18859     if (signal (SIGTERM, do_nothing) != SIG_DFL)
18860       _exit(1);
18861
18862     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18863        from child file descriptors.  If the child closes a descriptor
18864        before it execs or exits, this munges the parent's descriptor
18865        as well.  Test for this by closing stdout in the child.  */
18866     _exit(close(fileno(stdout)) != 0);
18867   } else {
18868     int status;
18869     struct stat st;
18870
18871     while (wait(&status) != child)
18872       ;
18873     return (
18874          /* Was there some problem with vforking?  */
18875          child < 0
18876
18877          /* Did the child munge the parent's signal handler?  */
18878          || signal (SIGTERM, SIG_DFL) != SIG_DFL
18879
18880          /* Did the child fail?  (This shouldn't happen.)  */
18881          || status
18882
18883          /* Did the vfork/compiler bug occur?  */
18884          || parent != getpid()
18885
18886          /* Did the file descriptor bug occur?  */
18887          || fstat(fileno(stdout), &st) != 0
18888          );
18889   }
18890 }
18891 _ACEOF
18892 if ac_fn_c_try_run "$LINENO"
18893 then :
18894   ac_cv_func_vfork_works=yes
18895 else $as_nop
18896   ac_cv_func_vfork_works=no
18897 fi
18898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18899   conftest.$ac_objext conftest.beam conftest.$ac_ext
18900 fi
18901
18902 fi
18903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18904 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
18905
18906 fi;
18907 if test "x$ac_cv_func_fork_works" = xcross; then
18908   ac_cv_func_vfork_works=$ac_cv_func_vfork
18909   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18910 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18911 fi
18912
18913 if test "x$ac_cv_func_vfork_works" = xyes; then
18914
18915 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18916
18917 else
18918
18919 printf "%s\n" "#define vfork fork" >>confdefs.h
18920
18921 fi
18922 if test "x$ac_cv_func_fork_works" = xyes; then
18923
18924 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
18925
18926 fi
18927
18928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compile of fork" >&5
18929 printf %s "checking compile of fork... " >&6; }
18930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18931 /* end confdefs.h.  */
18932
18933 #include <unistd.h>
18934
18935 int
18936 main (void)
18937 {
18938
18939         (void)fork();
18940
18941   ;
18942   return 0;
18943 }
18944 _ACEOF
18945 if ac_fn_c_try_compile "$LINENO"
18946 then :
18947
18948         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18949 printf "%s\n" "yes" >&6; }
18950
18951 printf "%s\n" "#define HAVE_FORK_AVAILABLE 1" >>confdefs.h
18952
18953
18954 else $as_nop
18955         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18956 printf "%s\n" "no" >&6; }
18957
18958 fi
18959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18960 ac_fn_c_check_func "$LINENO" "endprotoent" "ac_cv_func_endprotoent"
18961 if test "x$ac_cv_func_endprotoent" = xyes
18962 then :
18963   printf "%s\n" "#define HAVE_ENDPROTOENT 1" >>confdefs.h
18964
18965 fi
18966 ac_fn_c_check_func "$LINENO" "endservent" "ac_cv_func_endservent"
18967 if test "x$ac_cv_func_endservent" = xyes
18968 then :
18969   printf "%s\n" "#define HAVE_ENDSERVENT 1" >>confdefs.h
18970
18971 fi
18972 ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep"
18973 if test "x$ac_cv_func_sleep" = xyes
18974 then :
18975   printf "%s\n" "#define HAVE_SLEEP 1" >>confdefs.h
18976
18977 fi
18978 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
18979 if test "x$ac_cv_func_random" = xyes
18980 then :
18981   printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
18982
18983 fi
18984 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
18985 if test "x$ac_cv_func_fcntl" = xyes
18986 then :
18987   printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
18988
18989 fi
18990 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
18991 if test "x$ac_cv_func_strtoul" = xyes
18992 then :
18993   printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
18994
18995 fi
18996 ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
18997 if test "x$ac_cv_func_bzero" = xyes
18998 then :
18999   printf "%s\n" "#define HAVE_BZERO 1" >>confdefs.h
19000
19001 fi
19002 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
19003 if test "x$ac_cv_func_memset" = xyes
19004 then :
19005   printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
19006
19007 fi
19008 ac_fn_c_check_func "$LINENO" "b32_ntop" "ac_cv_func_b32_ntop"
19009 if test "x$ac_cv_func_b32_ntop" = xyes
19010 then :
19011   printf "%s\n" "#define HAVE_B32_NTOP 1" >>confdefs.h
19012
19013 fi
19014 ac_fn_c_check_func "$LINENO" "b32_pton" "ac_cv_func_b32_pton"
19015 if test "x$ac_cv_func_b32_pton" = xyes
19016 then :
19017   printf "%s\n" "#define HAVE_B32_PTON 1" >>confdefs.h
19018
19019 fi
19020
19021 if test "x$HAVE_B32_NTOP" = "xyes"; then
19022         ldns_build_config_have_b32_ntop=1
19023
19024 else
19025         ldns_build_config_have_b32_ntop=0
19026
19027 fi
19028 if test "x$HAVE_B32_PTON" = "xyes"; then
19029         ldns_build_config_have_b32_pton=1
19030
19031 else
19032         ldns_build_config_have_b32_pton=0
19033
19034 fi
19035
19036
19037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
19038 printf %s "checking for getaddrinfo... " >&6; }
19039 ac_cv_func_getaddrinfo=no
19040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19041 /* end confdefs.h.  */
19042
19043 #ifdef __cplusplus
19044 extern "C"
19045 {
19046 #endif
19047 char* getaddrinfo();
19048 char* (*f) () = getaddrinfo;
19049 #ifdef __cplusplus
19050 }
19051 #endif
19052 int main() {
19053         ;
19054         return 0;
19055 }
19056
19057 _ACEOF
19058 if ac_fn_c_try_link "$LINENO"
19059 then :
19060   ac_cv_func_getaddrinfo="yes"
19061 if test "$ac_cv_header_windows_h" = "yes"; then
19062
19063 printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h
19064
19065         USE_WINSOCK="1"
19066         if echo $LIBS | grep 'lws2_32' >/dev/null; then
19067                 :
19068         else
19069                 LIBS="$LIBS -lws2_32"
19070         fi
19071 fi
19072
19073 else $as_nop
19074   ORIGLIBS="$LIBS"
19075 LIBS="$LIBS -lws2_32"
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h.  */
19078
19079 #ifdef HAVE_WS2TCPIP_H
19080 #include <ws2tcpip.h>
19081 #endif
19082
19083 int
19084 main (void)
19085 {
19086
19087         (void)getaddrinfo(NULL, NULL, NULL, NULL);
19088
19089
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 if ac_fn_c_try_link "$LINENO"
19095 then :
19096
19097 ac_cv_func_getaddrinfo="yes"
19098
19099 printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h
19100
19101 USE_WINSOCK="1"
19102
19103 else $as_nop
19104
19105 ac_cv_func_getaddrinfo="no"
19106 LIBS="$ORIGLIBS"
19107
19108 fi
19109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19110     conftest$ac_exeext conftest.$ac_ext
19111
19112 fi
19113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19114     conftest$ac_exeext conftest.$ac_ext
19115
19116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
19117 printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; }
19118 if test $ac_cv_func_getaddrinfo = yes; then
19119
19120 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
19121
19122 fi
19123
19124 if test $ac_cv_func_getaddrinfo = no; then
19125         case " $LIBOBJS " in
19126   *" fake-rfc2553.$ac_objext "* ) ;;
19127   *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
19128  ;;
19129 esac
19130
19131 fi
19132 if test "$USE_WINSOCK" = 1; then
19133         if test -n "$ac_tool_prefix"; then
19134   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19135 set dummy ${ac_tool_prefix}windres; ac_word=$2
19136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19137 printf %s "checking for $ac_word... " >&6; }
19138 if test ${ac_cv_prog_WINDRES+y}
19139 then :
19140   printf %s "(cached) " >&6
19141 else $as_nop
19142   if test -n "$WINDRES"; then
19143   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19144 else
19145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19146 for as_dir in $PATH
19147 do
19148   IFS=$as_save_IFS
19149   case $as_dir in #(((
19150     '') as_dir=./ ;;
19151     */) ;;
19152     *) as_dir=$as_dir/ ;;
19153   esac
19154     for ac_exec_ext in '' $ac_executable_extensions; do
19155   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19156     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19157     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19158     break 2
19159   fi
19160 done
19161   done
19162 IFS=$as_save_IFS
19163
19164 fi
19165 fi
19166 WINDRES=$ac_cv_prog_WINDRES
19167 if test -n "$WINDRES"; then
19168   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19169 printf "%s\n" "$WINDRES" >&6; }
19170 else
19171   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19172 printf "%s\n" "no" >&6; }
19173 fi
19174
19175
19176 fi
19177 if test -z "$ac_cv_prog_WINDRES"; then
19178   ac_ct_WINDRES=$WINDRES
19179   # Extract the first word of "windres", so it can be a program name with args.
19180 set dummy windres; ac_word=$2
19181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19182 printf %s "checking for $ac_word... " >&6; }
19183 if test ${ac_cv_prog_ac_ct_WINDRES+y}
19184 then :
19185   printf %s "(cached) " >&6
19186 else $as_nop
19187   if test -n "$ac_ct_WINDRES"; then
19188   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19189 else
19190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19191 for as_dir in $PATH
19192 do
19193   IFS=$as_save_IFS
19194   case $as_dir in #(((
19195     '') as_dir=./ ;;
19196     */) ;;
19197     *) as_dir=$as_dir/ ;;
19198   esac
19199     for ac_exec_ext in '' $ac_executable_extensions; do
19200   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19201     ac_cv_prog_ac_ct_WINDRES="windres"
19202     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19203     break 2
19204   fi
19205 done
19206   done
19207 IFS=$as_save_IFS
19208
19209 fi
19210 fi
19211 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19212 if test -n "$ac_ct_WINDRES"; then
19213   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19214 printf "%s\n" "$ac_ct_WINDRES" >&6; }
19215 else
19216   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19217 printf "%s\n" "no" >&6; }
19218 fi
19219
19220   if test "x$ac_ct_WINDRES" = x; then
19221     WINDRES=""
19222   else
19223     case $cross_compiling:$ac_tool_warned in
19224 yes:)
19225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19226 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19227 ac_tool_warned=yes ;;
19228 esac
19229     WINDRES=$ac_ct_WINDRES
19230   fi
19231 else
19232   WINDRES="$ac_cv_prog_WINDRES"
19233 fi
19234
19235 fi
19236
19237 # check ioctlsocket
19238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
19239 printf %s "checking for ioctlsocket... " >&6; }
19240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19241 /* end confdefs.h.  */
19242
19243 #ifdef HAVE_WINSOCK2_H
19244 #include <winsock2.h>
19245 #endif
19246
19247 int
19248 main (void)
19249 {
19250
19251         (void)ioctlsocket(0, 0, NULL);
19252
19253   ;
19254   return 0;
19255 }
19256 _ACEOF
19257 if ac_fn_c_try_link "$LINENO"
19258 then :
19259
19260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19261 printf "%s\n" "yes" >&6; }
19262
19263 printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
19264
19265
19266 else $as_nop
19267   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19268 printf "%s\n" "no" >&6; }
19269 fi
19270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19271     conftest$ac_exeext conftest.$ac_ext
19272
19273
19274 #AC_SEARCH_LIBS(RSA_new, [crypto])
19275
19276
19277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
19278 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
19279 if test ${ac_cv_c_format_attribute+y}
19280 then :
19281   printf %s "(cached) " >&6
19282 else $as_nop
19283   ac_cv_c_format_attribute=no
19284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19285 /* end confdefs.h.  */
19286 #include <stdio.h>
19287 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
19288 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
19289
19290 int
19291 main (void)
19292 {
19293
19294    f ("%s", "str");
19295
19296   ;
19297   return 0;
19298 }
19299 _ACEOF
19300 if ac_fn_c_try_compile "$LINENO"
19301 then :
19302   ac_cv_c_format_attribute="yes"
19303 else $as_nop
19304   ac_cv_c_format_attribute="no"
19305 fi
19306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19307
19308 fi
19309
19310
19311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
19312 printf "%s\n" "$ac_cv_c_format_attribute" >&6; }
19313 if test $ac_cv_c_format_attribute = yes; then
19314
19315 printf "%s\n" "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
19316
19317 fi
19318
19319
19320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
19321 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
19322 if test ${ac_cv_c_unused_attribute+y}
19323 then :
19324   printf %s "(cached) " >&6
19325 else $as_nop
19326   ac_cv_c_unused_attribute=no
19327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19328 /* end confdefs.h.  */
19329 #include <stdio.h>
19330 void f (char *u __attribute__((unused)));
19331
19332 int
19333 main (void)
19334 {
19335
19336    f ("x");
19337
19338   ;
19339   return 0;
19340 }
19341 _ACEOF
19342 if ac_fn_c_try_compile "$LINENO"
19343 then :
19344   ac_cv_c_unused_attribute="yes"
19345 else $as_nop
19346   ac_cv_c_unused_attribute="no"
19347 fi
19348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19349
19350 fi
19351
19352
19353
19354
19355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
19356 printf "%s\n" "$ac_cv_c_unused_attribute" >&6; }
19357 if test $ac_cv_c_unused_attribute = yes; then
19358
19359 printf "%s\n" "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
19360
19361 fi
19362
19363
19364
19365 # Check whether --with-xcode-sdk was given.
19366 if test ${with_xcode_sdk+y}
19367 then :
19368   withval=$with_xcode_sdk;
19369 else $as_nop
19370   with_xcode_sdk="yes"
19371 fi
19372
19373 if test "x_$with_xcode_sdk" != "x_no" ; then
19374    # check OSX deployment target, if needed
19375    if echo $target_os | grep darwin > /dev/null; then
19376      sdk_p=`xcode-select -print-path`;
19377      if test "x_$with_xcode_sdk" = "x_yes" ; then
19378         sdk_v="$( /usr/bin/xcrun --show-sdk-version 2>/dev/null )"
19379      else
19380         sdk_v="$with_xcode_sdk"
19381      fi
19382      # xcrun only got that option in 10.7
19383      if test -z "$sdk_v" ; then
19384         sdk_c="10.6"
19385         sdk_v="10.6"
19386      fi
19387      SYSROOT="$( find ${sdk_p} -name MacOSX${sdk_v}.sdk )"
19388      case $sdk_v in
19389           10.9|10.8)   sdk_c="10.7";;
19390           10.11|10.10|*) sdk_c="10.10";;
19391      esac
19392      export MACOSX_DEPLOYMENT_TARGET="${sdk_c}";
19393      export CFLAGS="$CFLAGS -mmacosx-version-min=${sdk_c} -isysroot ${SYSROOT}"
19394    fi
19395 fi
19396
19397
19398 printf "%s\n" "#define SYSCONFDIR sysconfdir" >>confdefs.h
19399
19400
19401
19402 # Check whether --with-trust-anchor was given.
19403 if test ${with_trust_anchor+y}
19404 then :
19405   withval=$with_trust_anchor;
19406  LDNS_TRUST_ANCHOR_FILE="$withval"
19407
19408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Default trust anchor: $withval" >&5
19409 printf "%s\n" "$as_me: Default trust anchor: $withval" >&6;}
19410
19411 else $as_nop
19412
19413  LDNS_TRUST_ANCHOR_FILE="\$(sysconfdir)/unbound/root.key"
19414
19415
19416 fi
19417
19418
19419
19420 # Check whether --with-ca-file was given.
19421 if test ${with_ca_file+y}
19422 then :
19423   withval=$with_ca_file;
19424
19425 printf "%s\n" "#define HAVE_DANE_CA_FILE 1" >>confdefs.h
19426
19427
19428 printf "%s\n" "#define LDNS_DANE_CA_FILE \"$withval\"" >>confdefs.h
19429
19430  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using CAfile: $withval" >&5
19431 printf "%s\n" "$as_me: Using CAfile: $withval" >&6;}
19432  DEFAULT_CAFILE="Default is $withval"
19433
19434
19435 else $as_nop
19436
19437
19438 printf "%s\n" "#define HAVE_DANE_CA_FILE 0" >>confdefs.h
19439
19440
19441
19442 fi
19443
19444
19445
19446 # Check whether --with-ca-path was given.
19447 if test ${with_ca_path+y}
19448 then :
19449   withval=$with_ca_path;
19450
19451 printf "%s\n" "#define HAVE_DANE_CA_PATH 1" >>confdefs.h
19452
19453
19454 printf "%s\n" "#define LDNS_DANE_CA_PATH \"$withval\"" >>confdefs.h
19455
19456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using CApath: $withval" >&5
19457 printf "%s\n" "$as_me: Using CApath: $withval" >&6;}
19458  DEFAULT_CAPATH="Default is $withval"
19459
19460
19461 else $as_nop
19462
19463
19464 printf "%s\n" "#define HAVE_DANE_CA_PATH 0" >>confdefs.h
19465
19466
19467
19468 fi
19469
19470
19471
19472
19473
19474
19475 if test "x$HAVE_SSL" = "xyes"; then
19476         ldns_build_config_have_ssl=1
19477
19478 else
19479         ldns_build_config_have_ssl=0
19480
19481 fi
19482 if test "x$ac_cv_c_format_attribute" = "xyes"; then
19483   ldns_build_config_have_attr_format=1
19484
19485 else
19486   ldns_build_config_have_attr_format=0
19487
19488 fi
19489 if test "x$ac_cv_c_unused_attribute" = "xyes"; then
19490   ldns_build_config_have_attr_unused=1
19491
19492 else
19493   ldns_build_config_have_attr_unused=0
19494
19495 fi
19496
19497 CONFIG_FILES="Makefile libdns.doxygen ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-config"
19498
19499 ac_config_files="$ac_config_files $CONFIG_FILES"
19500
19501
19502 ac_config_headers="$ac_config_headers ldns/config.h"
19503
19504 cat >confcache <<\_ACEOF
19505 # This file is a shell script that caches the results of configure
19506 # tests run on this system so they can be shared between configure
19507 # scripts and configure runs, see configure's option --config-cache.
19508 # It is not useful on other systems.  If it contains results you don't
19509 # want to keep, you may remove or edit it.
19510 #
19511 # config.status only pays attention to the cache file if you give it
19512 # the --recheck option to rerun configure.
19513 #
19514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19516 # following values.
19517
19518 _ACEOF
19519
19520 # The following way of writing the cache mishandles newlines in values,
19521 # but we know of no workaround that is simple, portable, and efficient.
19522 # So, we kill variables containing newlines.
19523 # Ultrix sh set writes to stderr and can't be redirected directly,
19524 # and sets the high bit in the cache file unless we assign to the vars.
19525 (
19526   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19527     eval ac_val=\$$ac_var
19528     case $ac_val in #(
19529     *${as_nl}*)
19530       case $ac_var in #(
19531       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19532 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19533       esac
19534       case $ac_var in #(
19535       _ | IFS | as_nl) ;; #(
19536       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19537       *) { eval $ac_var=; unset $ac_var;} ;;
19538       esac ;;
19539     esac
19540   done
19541
19542   (set) 2>&1 |
19543     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19544     *${as_nl}ac_space=\ *)
19545       # `set' does not quote correctly, so add quotes: double-quote
19546       # substitution turns \\\\ into \\, and sed turns \\ into \.
19547       sed -n \
19548         "s/'/'\\\\''/g;
19549           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19550       ;; #(
19551     *)
19552       # `set' quotes correctly as required by POSIX, so do not add quotes.
19553       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19554       ;;
19555     esac |
19556     sort
19557 ) |
19558   sed '
19559      /^ac_cv_env_/b end
19560      t clear
19561      :clear
19562      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19563      t end
19564      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19565      :end' >>confcache
19566 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19567   if test -w "$cache_file"; then
19568     if test "x$cache_file" != "x/dev/null"; then
19569       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19570 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19571       if test ! -f "$cache_file" || test -h "$cache_file"; then
19572         cat confcache >"$cache_file"
19573       else
19574         case $cache_file in #(
19575         */* | ?:*)
19576           mv -f confcache "$cache_file"$$ &&
19577           mv -f "$cache_file"$$ "$cache_file" ;; #(
19578         *)
19579           mv -f confcache "$cache_file" ;;
19580         esac
19581       fi
19582     fi
19583   else
19584     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19585 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19586   fi
19587 fi
19588 rm -f confcache
19589
19590 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19591 # Let make expand exec_prefix.
19592 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19593
19594 DEFS=-DHAVE_CONFIG_H
19595
19596 ac_libobjs=
19597 ac_ltlibobjs=
19598 U=
19599 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19600   # 1. Remove the extension, and $U if already installed.
19601   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19602   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19603   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19604   #    will be set to the directory where LIBOBJS objects are built.
19605   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19606   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19607 done
19608 LIBOBJS=$ac_libobjs
19609
19610 LTLIBOBJS=$ac_ltlibobjs
19611
19612
19613
19614
19615 : "${CONFIG_STATUS=./config.status}"
19616 ac_write_fail=0
19617 ac_clean_files_save=$ac_clean_files
19618 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19620 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19621 as_write_fail=0
19622 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19623 #! $SHELL
19624 # Generated by $as_me.
19625 # Run this file to recreate the current configuration.
19626 # Compiler output produced by configure, useful for debugging
19627 # configure, is in config.log if it exists.
19628
19629 debug=false
19630 ac_cs_recheck=false
19631 ac_cs_silent=false
19632
19633 SHELL=\${CONFIG_SHELL-$SHELL}
19634 export SHELL
19635 _ASEOF
19636 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19637 ## -------------------- ##
19638 ## M4sh Initialization. ##
19639 ## -------------------- ##
19640
19641 # Be more Bourne compatible
19642 DUALCASE=1; export DUALCASE # for MKS sh
19643 as_nop=:
19644 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19645 then :
19646   emulate sh
19647   NULLCMD=:
19648   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19649   # is contrary to our usage.  Disable this feature.
19650   alias -g '${1+"$@"}'='"$@"'
19651   setopt NO_GLOB_SUBST
19652 else $as_nop
19653   case `(set -o) 2>/dev/null` in #(
19654   *posix*) :
19655     set -o posix ;; #(
19656   *) :
19657      ;;
19658 esac
19659 fi
19660
19661
19662
19663 # Reset variables that may have inherited troublesome values from
19664 # the environment.
19665
19666 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19667 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19668 # side effect of setting IFS to empty, thus disabling word splitting.)
19669 # Quoting is to prevent editors from complaining about space-tab.
19670 as_nl='
19671 '
19672 export as_nl
19673 IFS=" ""        $as_nl"
19674
19675 PS1='$ '
19676 PS2='> '
19677 PS4='+ '
19678
19679 # Ensure predictable behavior from utilities with locale-dependent output.
19680 LC_ALL=C
19681 export LC_ALL
19682 LANGUAGE=C
19683 export LANGUAGE
19684
19685 # We cannot yet rely on "unset" to work, but we need these variables
19686 # to be unset--not just set to an empty or harmless value--now, to
19687 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19688 # also avoids known problems related to "unset" and subshell syntax
19689 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19690 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19691 do eval test \${$as_var+y} \
19692   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19693 done
19694
19695 # Ensure that fds 0, 1, and 2 are open.
19696 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19697 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19698 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19699
19700 # The user is always right.
19701 if ${PATH_SEPARATOR+false} :; then
19702   PATH_SEPARATOR=:
19703   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19704     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19705       PATH_SEPARATOR=';'
19706   }
19707 fi
19708
19709
19710 # Find who we are.  Look in the path if we contain no directory separator.
19711 as_myself=
19712 case $0 in #((
19713   *[\\/]* ) as_myself=$0 ;;
19714   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19715 for as_dir in $PATH
19716 do
19717   IFS=$as_save_IFS
19718   case $as_dir in #(((
19719     '') as_dir=./ ;;
19720     */) ;;
19721     *) as_dir=$as_dir/ ;;
19722   esac
19723     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19724   done
19725 IFS=$as_save_IFS
19726
19727      ;;
19728 esac
19729 # We did not find ourselves, most probably we were run as `sh COMMAND'
19730 # in which case we are not to be found in the path.
19731 if test "x$as_myself" = x; then
19732   as_myself=$0
19733 fi
19734 if test ! -f "$as_myself"; then
19735   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19736   exit 1
19737 fi
19738
19739
19740
19741 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19742 # ----------------------------------------
19743 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19744 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19745 # script with STATUS, using 1 if that was 0.
19746 as_fn_error ()
19747 {
19748   as_status=$1; test $as_status -eq 0 && as_status=1
19749   if test "$4"; then
19750     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19751     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19752   fi
19753   printf "%s\n" "$as_me: error: $2" >&2
19754   as_fn_exit $as_status
19755 } # as_fn_error
19756
19757
19758
19759 # as_fn_set_status STATUS
19760 # -----------------------
19761 # Set $? to STATUS, without forking.
19762 as_fn_set_status ()
19763 {
19764   return $1
19765 } # as_fn_set_status
19766
19767 # as_fn_exit STATUS
19768 # -----------------
19769 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19770 as_fn_exit ()
19771 {
19772   set +e
19773   as_fn_set_status $1
19774   exit $1
19775 } # as_fn_exit
19776
19777 # as_fn_unset VAR
19778 # ---------------
19779 # Portably unset VAR.
19780 as_fn_unset ()
19781 {
19782   { eval $1=; unset $1;}
19783 }
19784 as_unset=as_fn_unset
19785
19786 # as_fn_append VAR VALUE
19787 # ----------------------
19788 # Append the text in VALUE to the end of the definition contained in VAR. Take
19789 # advantage of any shell optimizations that allow amortized linear growth over
19790 # repeated appends, instead of the typical quadratic growth present in naive
19791 # implementations.
19792 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19793 then :
19794   eval 'as_fn_append ()
19795   {
19796     eval $1+=\$2
19797   }'
19798 else $as_nop
19799   as_fn_append ()
19800   {
19801     eval $1=\$$1\$2
19802   }
19803 fi # as_fn_append
19804
19805 # as_fn_arith ARG...
19806 # ------------------
19807 # Perform arithmetic evaluation on the ARGs, and store the result in the
19808 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19809 # must be portable across $(()) and expr.
19810 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19811 then :
19812   eval 'as_fn_arith ()
19813   {
19814     as_val=$(( $* ))
19815   }'
19816 else $as_nop
19817   as_fn_arith ()
19818   {
19819     as_val=`expr "$@" || test $? -eq 1`
19820   }
19821 fi # as_fn_arith
19822
19823
19824 if expr a : '\(a\)' >/dev/null 2>&1 &&
19825    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19826   as_expr=expr
19827 else
19828   as_expr=false
19829 fi
19830
19831 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19832   as_basename=basename
19833 else
19834   as_basename=false
19835 fi
19836
19837 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19838   as_dirname=dirname
19839 else
19840   as_dirname=false
19841 fi
19842
19843 as_me=`$as_basename -- "$0" ||
19844 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19845          X"$0" : 'X\(//\)$' \| \
19846          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19847 printf "%s\n" X/"$0" |
19848     sed '/^.*\/\([^/][^/]*\)\/*$/{
19849             s//\1/
19850             q
19851           }
19852           /^X\/\(\/\/\)$/{
19853             s//\1/
19854             q
19855           }
19856           /^X\/\(\/\).*/{
19857             s//\1/
19858             q
19859           }
19860           s/.*/./; q'`
19861
19862 # Avoid depending upon Character Ranges.
19863 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19864 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19865 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19866 as_cr_digits='0123456789'
19867 as_cr_alnum=$as_cr_Letters$as_cr_digits
19868
19869
19870 # Determine whether it's possible to make 'echo' print without a newline.
19871 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19872 # for compatibility with existing Makefiles.
19873 ECHO_C= ECHO_N= ECHO_T=
19874 case `echo -n x` in #(((((
19875 -n*)
19876   case `echo 'xy\c'` in
19877   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19878   xy)  ECHO_C='\c';;
19879   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19880        ECHO_T=' ';;
19881   esac;;
19882 *)
19883   ECHO_N='-n';;
19884 esac
19885
19886 # For backward compatibility with old third-party macros, we provide
19887 # the shell variables $as_echo and $as_echo_n.  New code should use
19888 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19889 as_echo='printf %s\n'
19890 as_echo_n='printf %s'
19891
19892 rm -f conf$$ conf$$.exe conf$$.file
19893 if test -d conf$$.dir; then
19894   rm -f conf$$.dir/conf$$.file
19895 else
19896   rm -f conf$$.dir
19897   mkdir conf$$.dir 2>/dev/null
19898 fi
19899 if (echo >conf$$.file) 2>/dev/null; then
19900   if ln -s conf$$.file conf$$ 2>/dev/null; then
19901     as_ln_s='ln -s'
19902     # ... but there are two gotchas:
19903     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19904     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19905     # In both cases, we have to default to `cp -pR'.
19906     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19907       as_ln_s='cp -pR'
19908   elif ln conf$$.file conf$$ 2>/dev/null; then
19909     as_ln_s=ln
19910   else
19911     as_ln_s='cp -pR'
19912   fi
19913 else
19914   as_ln_s='cp -pR'
19915 fi
19916 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19917 rmdir conf$$.dir 2>/dev/null
19918
19919
19920 # as_fn_mkdir_p
19921 # -------------
19922 # Create "$as_dir" as a directory, including parents if necessary.
19923 as_fn_mkdir_p ()
19924 {
19925
19926   case $as_dir in #(
19927   -*) as_dir=./$as_dir;;
19928   esac
19929   test -d "$as_dir" || eval $as_mkdir_p || {
19930     as_dirs=
19931     while :; do
19932       case $as_dir in #(
19933       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19934       *) as_qdir=$as_dir;;
19935       esac
19936       as_dirs="'$as_qdir' $as_dirs"
19937       as_dir=`$as_dirname -- "$as_dir" ||
19938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19939          X"$as_dir" : 'X\(//\)[^/]' \| \
19940          X"$as_dir" : 'X\(//\)$' \| \
19941          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19942 printf "%s\n" X"$as_dir" |
19943     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19944             s//\1/
19945             q
19946           }
19947           /^X\(\/\/\)[^/].*/{
19948             s//\1/
19949             q
19950           }
19951           /^X\(\/\/\)$/{
19952             s//\1/
19953             q
19954           }
19955           /^X\(\/\).*/{
19956             s//\1/
19957             q
19958           }
19959           s/.*/./; q'`
19960       test -d "$as_dir" && break
19961     done
19962     test -z "$as_dirs" || eval "mkdir $as_dirs"
19963   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19964
19965
19966 } # as_fn_mkdir_p
19967 if mkdir -p . 2>/dev/null; then
19968   as_mkdir_p='mkdir -p "$as_dir"'
19969 else
19970   test -d ./-p && rmdir ./-p
19971   as_mkdir_p=false
19972 fi
19973
19974
19975 # as_fn_executable_p FILE
19976 # -----------------------
19977 # Test if FILE is an executable regular file.
19978 as_fn_executable_p ()
19979 {
19980   test -f "$1" && test -x "$1"
19981 } # as_fn_executable_p
19982 as_test_x='test -x'
19983 as_executable_p=as_fn_executable_p
19984
19985 # Sed expression to map a string onto a valid CPP name.
19986 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19987
19988 # Sed expression to map a string onto a valid variable name.
19989 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19990
19991
19992 exec 6>&1
19993 ## ----------------------------------- ##
19994 ## Main body of $CONFIG_STATUS script. ##
19995 ## ----------------------------------- ##
19996 _ASEOF
19997 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19998
19999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20000 # Save the log message, to keep $0 and so on meaningful, and to
20001 # report actual input values of CONFIG_FILES etc. instead of their
20002 # values after options handling.
20003 ac_log="
20004 This file was extended by ldns $as_me 1.8.3, which was
20005 generated by GNU Autoconf 2.71.  Invocation command line was
20006
20007   CONFIG_FILES    = $CONFIG_FILES
20008   CONFIG_HEADERS  = $CONFIG_HEADERS
20009   CONFIG_LINKS    = $CONFIG_LINKS
20010   CONFIG_COMMANDS = $CONFIG_COMMANDS
20011   $ $0 $@
20012
20013 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20014 "
20015
20016 _ACEOF
20017
20018 case $ac_config_files in *"
20019 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20020 esac
20021
20022 case $ac_config_headers in *"
20023 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20024 esac
20025
20026
20027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20028 # Files that config.status was made for.
20029 config_files="$ac_config_files"
20030 config_headers="$ac_config_headers"
20031 config_commands="$ac_config_commands"
20032
20033 _ACEOF
20034
20035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20036 ac_cs_usage="\
20037 \`$as_me' instantiates files and other configuration actions
20038 from templates according to the current configuration.  Unless the files
20039 and actions are specified as TAGs, all are instantiated by default.
20040
20041 Usage: $0 [OPTION]... [TAG]...
20042
20043   -h, --help       print this help, then exit
20044   -V, --version    print version number and configuration settings, then exit
20045       --config     print configuration, then exit
20046   -q, --quiet, --silent
20047                    do not print progress messages
20048   -d, --debug      don't remove temporary files
20049       --recheck    update $as_me by reconfiguring in the same conditions
20050       --file=FILE[:TEMPLATE]
20051                    instantiate the configuration file FILE
20052       --header=FILE[:TEMPLATE]
20053                    instantiate the configuration header FILE
20054
20055 Configuration files:
20056 $config_files
20057
20058 Configuration headers:
20059 $config_headers
20060
20061 Configuration commands:
20062 $config_commands
20063
20064 Report bugs to <libdns@nlnetlabs.nl>."
20065
20066 _ACEOF
20067 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20068 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20070 ac_cs_config='$ac_cs_config_escaped'
20071 ac_cs_version="\\
20072 ldns config.status 1.8.3
20073 configured by $0, generated by GNU Autoconf 2.71,
20074   with options \\"\$ac_cs_config\\"
20075
20076 Copyright (C) 2021 Free Software Foundation, Inc.
20077 This config.status script is free software; the Free Software Foundation
20078 gives unlimited permission to copy, distribute and modify it."
20079
20080 ac_pwd='$ac_pwd'
20081 srcdir='$srcdir'
20082 AWK='$AWK'
20083 test -n "\$AWK" || AWK=awk
20084 _ACEOF
20085
20086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20087 # The default lists apply if the user does not specify any file.
20088 ac_need_defaults=:
20089 while test $# != 0
20090 do
20091   case $1 in
20092   --*=?*)
20093     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20094     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20095     ac_shift=:
20096     ;;
20097   --*=)
20098     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20099     ac_optarg=
20100     ac_shift=:
20101     ;;
20102   *)
20103     ac_option=$1
20104     ac_optarg=$2
20105     ac_shift=shift
20106     ;;
20107   esac
20108
20109   case $ac_option in
20110   # Handling of the options.
20111   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20112     ac_cs_recheck=: ;;
20113   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20114     printf "%s\n" "$ac_cs_version"; exit ;;
20115   --config | --confi | --conf | --con | --co | --c )
20116     printf "%s\n" "$ac_cs_config"; exit ;;
20117   --debug | --debu | --deb | --de | --d | -d )
20118     debug=: ;;
20119   --file | --fil | --fi | --f )
20120     $ac_shift
20121     case $ac_optarg in
20122     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20123     '') as_fn_error $? "missing file argument" ;;
20124     esac
20125     as_fn_append CONFIG_FILES " '$ac_optarg'"
20126     ac_need_defaults=false;;
20127   --header | --heade | --head | --hea )
20128     $ac_shift
20129     case $ac_optarg in
20130     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20131     esac
20132     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20133     ac_need_defaults=false;;
20134   --he | --h)
20135     # Conflict between --help and --header
20136     as_fn_error $? "ambiguous option: \`$1'
20137 Try \`$0 --help' for more information.";;
20138   --help | --hel | -h )
20139     printf "%s\n" "$ac_cs_usage"; exit ;;
20140   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20141   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20142     ac_cs_silent=: ;;
20143
20144   # This is an error.
20145   -*) as_fn_error $? "unrecognized option: \`$1'
20146 Try \`$0 --help' for more information." ;;
20147
20148   *) as_fn_append ac_config_targets " $1"
20149      ac_need_defaults=false ;;
20150
20151   esac
20152   shift
20153 done
20154
20155 ac_configure_extra_args=
20156
20157 if $ac_cs_silent; then
20158   exec 6>/dev/null
20159   ac_configure_extra_args="$ac_configure_extra_args --silent"
20160 fi
20161
20162 _ACEOF
20163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20164 if \$ac_cs_recheck; then
20165   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20166   shift
20167   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20168   CONFIG_SHELL='$SHELL'
20169   export CONFIG_SHELL
20170   exec "\$@"
20171 fi
20172
20173 _ACEOF
20174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20175 exec 5>>config.log
20176 {
20177   echo
20178   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20179 ## Running $as_me. ##
20180 _ASBOX
20181   printf "%s\n" "$ac_log"
20182 } >&5
20183
20184 _ACEOF
20185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20186 #
20187 # INIT-COMMANDS
20188 #
20189
20190
20191 # The HP-UX ksh and POSIX shell print the target directory to stdout
20192 # if CDPATH is set.
20193 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20194
20195 sed_quote_subst='$sed_quote_subst'
20196 double_quote_subst='$double_quote_subst'
20197 delay_variable_subst='$delay_variable_subst'
20198 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20199 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20200 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20201 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20202 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20203 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20204 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20205 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20206 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20207 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20208 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20209 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20210 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20211 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20212 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20213 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20214 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20215 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20216 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20217 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20218 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20219 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20220 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20221 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20222 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20223 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20224 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20225 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20226 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20227 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20228 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20229 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20230 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20231 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20232 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20233 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20234 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20235 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20236 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20237 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20238 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20239 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20240 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20241 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20242 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20243 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20244 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20245 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20246 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20247 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20248 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20249 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20250 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20251 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20252 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20253 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20254 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20255 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20256 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"`'
20257 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20258 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20259 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20260 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20261 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20262 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20263 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20264 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20265 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20266 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20267 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20268 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20269 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20270 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20271 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20272 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20273 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20274 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20275 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20276 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20277 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20278 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20279 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20280 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20281 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20282 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20283 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20284 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20285 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20286 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20287 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20288 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20289 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20290 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20291 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20292 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20293 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20294 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20295 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20296 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20297 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20298 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20299 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20300 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20301 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20302 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20303 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20304 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20305 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20306 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20307 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20308 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20309 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20310 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20311 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20312 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20313 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20314 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20315 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20316 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20317 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20318 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20319 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20320 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20321 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20322 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20323 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20324 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20325 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20326 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20327 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20328 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20329 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20330 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20331 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20332 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20333
20334 LTCC='$LTCC'
20335 LTCFLAGS='$LTCFLAGS'
20336 compiler='$compiler_DEFAULT'
20337
20338 # A function that is used when there is no print builtin or printf.
20339 func_fallback_echo ()
20340 {
20341   eval 'cat <<_LTECHO_EOF
20342 \$1
20343 _LTECHO_EOF'
20344 }
20345
20346 # Quote evaled strings.
20347 for var in SHELL \
20348 ECHO \
20349 PATH_SEPARATOR \
20350 SED \
20351 GREP \
20352 EGREP \
20353 FGREP \
20354 LD \
20355 NM \
20356 LN_S \
20357 lt_SP2NL \
20358 lt_NL2SP \
20359 reload_flag \
20360 OBJDUMP \
20361 deplibs_check_method \
20362 file_magic_cmd \
20363 file_magic_glob \
20364 want_nocaseglob \
20365 DLLTOOL \
20366 sharedlib_from_linklib_cmd \
20367 AR \
20368 AR_FLAGS \
20369 archiver_list_spec \
20370 STRIP \
20371 RANLIB \
20372 CC \
20373 CFLAGS \
20374 compiler \
20375 lt_cv_sys_global_symbol_pipe \
20376 lt_cv_sys_global_symbol_to_cdecl \
20377 lt_cv_sys_global_symbol_to_import \
20378 lt_cv_sys_global_symbol_to_c_name_address \
20379 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20380 lt_cv_nm_interface \
20381 nm_file_list_spec \
20382 lt_cv_truncate_bin \
20383 lt_prog_compiler_no_builtin_flag \
20384 lt_prog_compiler_pic \
20385 lt_prog_compiler_wl \
20386 lt_prog_compiler_static \
20387 lt_cv_prog_compiler_c_o \
20388 need_locks \
20389 MANIFEST_TOOL \
20390 DSYMUTIL \
20391 NMEDIT \
20392 LIPO \
20393 OTOOL \
20394 OTOOL64 \
20395 shrext_cmds \
20396 export_dynamic_flag_spec \
20397 whole_archive_flag_spec \
20398 compiler_needs_object \
20399 with_gnu_ld \
20400 allow_undefined_flag \
20401 no_undefined_flag \
20402 hardcode_libdir_flag_spec \
20403 hardcode_libdir_separator \
20404 exclude_expsyms \
20405 include_expsyms \
20406 file_list_spec \
20407 variables_saved_for_relink \
20408 libname_spec \
20409 library_names_spec \
20410 soname_spec \
20411 install_override_mode \
20412 finish_eval \
20413 old_striplib \
20414 striplib; do
20415     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20416     *[\\\\\\\`\\"\\\$]*)
20417       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20418       ;;
20419     *)
20420       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20421       ;;
20422     esac
20423 done
20424
20425 # Double-quote double-evaled strings.
20426 for var in reload_cmds \
20427 old_postinstall_cmds \
20428 old_postuninstall_cmds \
20429 old_archive_cmds \
20430 extract_expsyms_cmds \
20431 old_archive_from_new_cmds \
20432 old_archive_from_expsyms_cmds \
20433 archive_cmds \
20434 archive_expsym_cmds \
20435 module_cmds \
20436 module_expsym_cmds \
20437 export_symbols_cmds \
20438 prelink_cmds \
20439 postlink_cmds \
20440 postinstall_cmds \
20441 postuninstall_cmds \
20442 finish_cmds \
20443 sys_lib_search_path_spec \
20444 configure_time_dlsearch_path \
20445 configure_time_lt_sys_library_path; do
20446     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20447     *[\\\\\\\`\\"\\\$]*)
20448       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20449       ;;
20450     *)
20451       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20452       ;;
20453     esac
20454 done
20455
20456 ac_aux_dir='$ac_aux_dir'
20457
20458 # See if we are running on zsh, and set the options that allow our
20459 # commands through without removal of \ escapes INIT.
20460 if test -n "\${ZSH_VERSION+set}"; then
20461    setopt NO_GLOB_SUBST
20462 fi
20463
20464
20465     PACKAGE='$PACKAGE'
20466     VERSION='$VERSION'
20467     RM='$RM'
20468     ofile='$ofile'
20469
20470
20471
20472
20473 _ACEOF
20474
20475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20476
20477 # Handling of arguments.
20478 for ac_config_target in $ac_config_targets
20479 do
20480   case $ac_config_target in
20481     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20482     "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
20483     "$CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES" ;;
20484     "ldns/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ldns/config.h" ;;
20485
20486   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20487   esac
20488 done
20489
20490
20491 # If the user did not use the arguments to specify the items to instantiate,
20492 # then the envvar interface is used.  Set only those that are not.
20493 # We use the long form for the default assignment because of an extremely
20494 # bizarre bug on SunOS 4.1.3.
20495 if $ac_need_defaults; then
20496   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20497   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20498   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20499 fi
20500
20501 # Have a temporary directory for convenience.  Make it in the build tree
20502 # simply because there is no reason against having it here, and in addition,
20503 # creating and moving files from /tmp can sometimes cause problems.
20504 # Hook for its removal unless debugging.
20505 # Note that there is a small window in which the directory will not be cleaned:
20506 # after its creation but before its name has been assigned to `$tmp'.
20507 $debug ||
20508 {
20509   tmp= ac_tmp=
20510   trap 'exit_status=$?
20511   : "${ac_tmp:=$tmp}"
20512   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20513 ' 0
20514   trap 'as_fn_exit 1' 1 2 13 15
20515 }
20516 # Create a (secure) tmp directory for tmp files.
20517
20518 {
20519   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20520   test -d "$tmp"
20521 }  ||
20522 {
20523   tmp=./conf$$-$RANDOM
20524   (umask 077 && mkdir "$tmp")
20525 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20526 ac_tmp=$tmp
20527
20528 # Set up the scripts for CONFIG_FILES section.
20529 # No need to generate them if there are no CONFIG_FILES.
20530 # This happens for instance with `./config.status config.h'.
20531 if test -n "$CONFIG_FILES"; then
20532
20533
20534 ac_cr=`echo X | tr X '\015'`
20535 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20536 # But we know of no other shell where ac_cr would be empty at this
20537 # point, so we can use a bashism as a fallback.
20538 if test "x$ac_cr" = x; then
20539   eval ac_cr=\$\'\\r\'
20540 fi
20541 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20542 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20543   ac_cs_awk_cr='\\r'
20544 else
20545   ac_cs_awk_cr=$ac_cr
20546 fi
20547
20548 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20549 _ACEOF
20550
20551
20552 {
20553   echo "cat >conf$$subs.awk <<_ACEOF" &&
20554   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20555   echo "_ACEOF"
20556 } >conf$$subs.sh ||
20557   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20558 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20559 ac_delim='%!_!# '
20560 for ac_last_try in false false false false false :; do
20561   . ./conf$$subs.sh ||
20562     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20563
20564   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20565   if test $ac_delim_n = $ac_delim_num; then
20566     break
20567   elif $ac_last_try; then
20568     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20569   else
20570     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20571   fi
20572 done
20573 rm -f conf$$subs.sh
20574
20575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20576 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20577 _ACEOF
20578 sed -n '
20579 h
20580 s/^/S["/; s/!.*/"]=/
20581 p
20582 g
20583 s/^[^!]*!//
20584 :repl
20585 t repl
20586 s/'"$ac_delim"'$//
20587 t delim
20588 :nl
20589 h
20590 s/\(.\{148\}\)..*/\1/
20591 t more1
20592 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20593 p
20594 n
20595 b repl
20596 :more1
20597 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20598 p
20599 g
20600 s/.\{148\}//
20601 t nl
20602 :delim
20603 h
20604 s/\(.\{148\}\)..*/\1/
20605 t more2
20606 s/["\\]/\\&/g; s/^/"/; s/$/"/
20607 p
20608 b
20609 :more2
20610 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20611 p
20612 g
20613 s/.\{148\}//
20614 t delim
20615 ' <conf$$subs.awk | sed '
20616 /^[^""]/{
20617   N
20618   s/\n//
20619 }
20620 ' >>$CONFIG_STATUS || ac_write_fail=1
20621 rm -f conf$$subs.awk
20622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20623 _ACAWK
20624 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20625   for (key in S) S_is_set[key] = 1
20626   FS = "\a"
20627
20628 }
20629 {
20630   line = $ 0
20631   nfields = split(line, field, "@")
20632   substed = 0
20633   len = length(field[1])
20634   for (i = 2; i < nfields; i++) {
20635     key = field[i]
20636     keylen = length(key)
20637     if (S_is_set[key]) {
20638       value = S[key]
20639       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20640       len += length(value) + length(field[++i])
20641       substed = 1
20642     } else
20643       len += 1 + keylen
20644   }
20645
20646   print line
20647 }
20648
20649 _ACAWK
20650 _ACEOF
20651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20652 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20653   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20654 else
20655   cat
20656 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20657   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20658 _ACEOF
20659
20660 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20661 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20662 # trailing colons and then remove the whole line if VPATH becomes empty
20663 # (actually we leave an empty line to preserve line numbers).
20664 if test "x$srcdir" = x.; then
20665   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20666 h
20667 s///
20668 s/^/:/
20669 s/[      ]*$/:/
20670 s/:\$(srcdir):/:/g
20671 s/:\${srcdir}:/:/g
20672 s/:@srcdir@:/:/g
20673 s/^:*//
20674 s/:*$//
20675 x
20676 s/\(=[   ]*\).*/\1/
20677 G
20678 s/\n//
20679 s/^[^=]*=[       ]*$//
20680 }'
20681 fi
20682
20683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20684 fi # test -n "$CONFIG_FILES"
20685
20686 # Set up the scripts for CONFIG_HEADERS section.
20687 # No need to generate them if there are no CONFIG_HEADERS.
20688 # This happens for instance with `./config.status Makefile'.
20689 if test -n "$CONFIG_HEADERS"; then
20690 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20691 BEGIN {
20692 _ACEOF
20693
20694 # Transform confdefs.h into an awk script `defines.awk', embedded as
20695 # here-document in config.status, that substitutes the proper values into
20696 # config.h.in to produce config.h.
20697
20698 # Create a delimiter string that does not exist in confdefs.h, to ease
20699 # handling of long lines.
20700 ac_delim='%!_!# '
20701 for ac_last_try in false false :; do
20702   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20703   if test -z "$ac_tt"; then
20704     break
20705   elif $ac_last_try; then
20706     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20707   else
20708     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20709   fi
20710 done
20711
20712 # For the awk script, D is an array of macro values keyed by name,
20713 # likewise P contains macro parameters if any.  Preserve backslash
20714 # newline sequences.
20715
20716 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20717 sed -n '
20718 s/.\{148\}/&'"$ac_delim"'/g
20719 t rset
20720 :rset
20721 s/^[     ]*#[    ]*define[       ][      ]*/ /
20722 t def
20723 d
20724 :def
20725 s/\\$//
20726 t bsnl
20727 s/["\\]/\\&/g
20728 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20729 D["\1"]=" \3"/p
20730 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20731 d
20732 :bsnl
20733 s/["\\]/\\&/g
20734 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20735 D["\1"]=" \3\\\\\\n"\\/p
20736 t cont
20737 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20738 t cont
20739 d
20740 :cont
20741 n
20742 s/.\{148\}/&'"$ac_delim"'/g
20743 t clear
20744 :clear
20745 s/\\$//
20746 t bsnlc
20747 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20748 d
20749 :bsnlc
20750 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20751 b cont
20752 ' <confdefs.h | sed '
20753 s/'"$ac_delim"'/"\\\
20754 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20755
20756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20757   for (key in D) D_is_set[key] = 1
20758   FS = "\a"
20759 }
20760 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20761   line = \$ 0
20762   split(line, arg, " ")
20763   if (arg[1] == "#") {
20764     defundef = arg[2]
20765     mac1 = arg[3]
20766   } else {
20767     defundef = substr(arg[1], 2)
20768     mac1 = arg[2]
20769   }
20770   split(mac1, mac2, "(") #)
20771   macro = mac2[1]
20772   prefix = substr(line, 1, index(line, defundef) - 1)
20773   if (D_is_set[macro]) {
20774     # Preserve the white space surrounding the "#".
20775     print prefix "define", macro P[macro] D[macro]
20776     next
20777   } else {
20778     # Replace #undef with comments.  This is necessary, for example,
20779     # in the case of _POSIX_SOURCE, which is predefined and required
20780     # on some systems where configure will not decide to define it.
20781     if (defundef == "undef") {
20782       print "/*", prefix defundef, macro, "*/"
20783       next
20784     }
20785   }
20786 }
20787 { print }
20788 _ACAWK
20789 _ACEOF
20790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20791   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20792 fi # test -n "$CONFIG_HEADERS"
20793
20794
20795 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20796 shift
20797 for ac_tag
20798 do
20799   case $ac_tag in
20800   :[FHLC]) ac_mode=$ac_tag; continue;;
20801   esac
20802   case $ac_mode$ac_tag in
20803   :[FHL]*:*);;
20804   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20805   :[FH]-) ac_tag=-:-;;
20806   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20807   esac
20808   ac_save_IFS=$IFS
20809   IFS=:
20810   set x $ac_tag
20811   IFS=$ac_save_IFS
20812   shift
20813   ac_file=$1
20814   shift
20815
20816   case $ac_mode in
20817   :L) ac_source=$1;;
20818   :[FH])
20819     ac_file_inputs=
20820     for ac_f
20821     do
20822       case $ac_f in
20823       -) ac_f="$ac_tmp/stdin";;
20824       *) # Look for the file first in the build tree, then in the source tree
20825          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20826          # because $ac_f cannot contain `:'.
20827          test -f "$ac_f" ||
20828            case $ac_f in
20829            [\\/$]*) false;;
20830            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20831            esac ||
20832            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20833       esac
20834       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20835       as_fn_append ac_file_inputs " '$ac_f'"
20836     done
20837
20838     # Let's still pretend it is `configure' which instantiates (i.e., don't
20839     # use $as_me), people would be surprised to read:
20840     #    /* config.h.  Generated by config.status.  */
20841     configure_input='Generated from '`
20842           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20843         `' by configure.'
20844     if test x"$ac_file" != x-; then
20845       configure_input="$ac_file.  $configure_input"
20846       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20847 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20848     fi
20849     # Neutralize special characters interpreted by sed in replacement strings.
20850     case $configure_input in #(
20851     *\&* | *\|* | *\\* )
20852        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20853        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20854     *) ac_sed_conf_input=$configure_input;;
20855     esac
20856
20857     case $ac_tag in
20858     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20859       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20860     esac
20861     ;;
20862   esac
20863
20864   ac_dir=`$as_dirname -- "$ac_file" ||
20865 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20866          X"$ac_file" : 'X\(//\)[^/]' \| \
20867          X"$ac_file" : 'X\(//\)$' \| \
20868          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20869 printf "%s\n" X"$ac_file" |
20870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20871             s//\1/
20872             q
20873           }
20874           /^X\(\/\/\)[^/].*/{
20875             s//\1/
20876             q
20877           }
20878           /^X\(\/\/\)$/{
20879             s//\1/
20880             q
20881           }
20882           /^X\(\/\).*/{
20883             s//\1/
20884             q
20885           }
20886           s/.*/./; q'`
20887   as_dir="$ac_dir"; as_fn_mkdir_p
20888   ac_builddir=.
20889
20890 case "$ac_dir" in
20891 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20892 *)
20893   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20894   # A ".." for each directory in $ac_dir_suffix.
20895   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20896   case $ac_top_builddir_sub in
20897   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20898   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20899   esac ;;
20900 esac
20901 ac_abs_top_builddir=$ac_pwd
20902 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20903 # for backward compatibility:
20904 ac_top_builddir=$ac_top_build_prefix
20905
20906 case $srcdir in
20907   .)  # We are building in place.
20908     ac_srcdir=.
20909     ac_top_srcdir=$ac_top_builddir_sub
20910     ac_abs_top_srcdir=$ac_pwd ;;
20911   [\\/]* | ?:[\\/]* )  # Absolute name.
20912     ac_srcdir=$srcdir$ac_dir_suffix;
20913     ac_top_srcdir=$srcdir
20914     ac_abs_top_srcdir=$srcdir ;;
20915   *) # Relative name.
20916     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20917     ac_top_srcdir=$ac_top_build_prefix$srcdir
20918     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20919 esac
20920 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20921
20922
20923   case $ac_mode in
20924   :F)
20925   #
20926   # CONFIG_FILE
20927   #
20928
20929 _ACEOF
20930
20931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20932 # If the template does not know about datarootdir, expand it.
20933 # FIXME: This hack should be removed a few years after 2.60.
20934 ac_datarootdir_hack=; ac_datarootdir_seen=
20935 ac_sed_dataroot='
20936 /datarootdir/ {
20937   p
20938   q
20939 }
20940 /@datadir@/p
20941 /@docdir@/p
20942 /@infodir@/p
20943 /@localedir@/p
20944 /@mandir@/p'
20945 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20946 *datarootdir*) ac_datarootdir_seen=yes;;
20947 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20948   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20949 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20950 _ACEOF
20951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20952   ac_datarootdir_hack='
20953   s&@datadir@&$datadir&g
20954   s&@docdir@&$docdir&g
20955   s&@infodir@&$infodir&g
20956   s&@localedir@&$localedir&g
20957   s&@mandir@&$mandir&g
20958   s&\\\${datarootdir}&$datarootdir&g' ;;
20959 esac
20960 _ACEOF
20961
20962 # Neutralize VPATH when `$srcdir' = `.'.
20963 # Shell code in configure.ac might set extrasub.
20964 # FIXME: do we really want to maintain this feature?
20965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20966 ac_sed_extra="$ac_vpsub
20967 $extrasub
20968 _ACEOF
20969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20970 :t
20971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20972 s|@configure_input@|$ac_sed_conf_input|;t t
20973 s&@top_builddir@&$ac_top_builddir_sub&;t t
20974 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20975 s&@srcdir@&$ac_srcdir&;t t
20976 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20977 s&@top_srcdir@&$ac_top_srcdir&;t t
20978 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20979 s&@builddir@&$ac_builddir&;t t
20980 s&@abs_builddir@&$ac_abs_builddir&;t t
20981 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20982 $ac_datarootdir_hack
20983 "
20984 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20985   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20986
20987 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20988   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20989   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20990       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20991   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20992 which seems to be undefined.  Please make sure it is defined" >&5
20993 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20994 which seems to be undefined.  Please make sure it is defined" >&2;}
20995
20996   rm -f "$ac_tmp/stdin"
20997   case $ac_file in
20998   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20999   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21000   esac \
21001   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21002  ;;
21003   :H)
21004   #
21005   # CONFIG_HEADER
21006   #
21007   if test x"$ac_file" != x-; then
21008     {
21009       printf "%s\n" "/* $configure_input  */" >&1 \
21010       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21011     } >"$ac_tmp/config.h" \
21012       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21013     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21014       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21015 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21016     else
21017       rm -f "$ac_file"
21018       mv "$ac_tmp/config.h" "$ac_file" \
21019         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21020     fi
21021   else
21022     printf "%s\n" "/* $configure_input  */" >&1 \
21023       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21024       || as_fn_error $? "could not create -" "$LINENO" 5
21025   fi
21026  ;;
21027
21028   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21029 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21030  ;;
21031   esac
21032
21033
21034   case $ac_file$ac_mode in
21035     "libtool":C)
21036
21037     # See if we are running on zsh, and set the options that allow our
21038     # commands through without removal of \ escapes.
21039     if test -n "${ZSH_VERSION+set}"; then
21040       setopt NO_GLOB_SUBST
21041     fi
21042
21043     cfgfile=${ofile}T
21044     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21045     $RM "$cfgfile"
21046
21047     cat <<_LT_EOF >> "$cfgfile"
21048 #! $SHELL
21049 # Generated automatically by $as_me ($PACKAGE) $VERSION
21050 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21051
21052 # Provide generalized library-building support services.
21053 # Written by Gordon Matzigkeit, 1996
21054
21055 # Copyright (C) 2014 Free Software Foundation, Inc.
21056 # This is free software; see the source for copying conditions.  There is NO
21057 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21058
21059 # GNU Libtool is free software; you can redistribute it and/or modify
21060 # it under the terms of the GNU General Public License as published by
21061 # the Free Software Foundation; either version 2 of of the License, or
21062 # (at your option) any later version.
21063 #
21064 # As a special exception to the GNU General Public License, if you
21065 # distribute this file as part of a program or library that is built
21066 # using GNU Libtool, you may include this file under the  same
21067 # distribution terms that you use for the rest of that program.
21068 #
21069 # GNU Libtool is distributed in the hope that it will be useful, but
21070 # WITHOUT ANY WARRANTY; without even the implied warranty of
21071 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21072 # GNU General Public License for more details.
21073 #
21074 # You should have received a copy of the GNU General Public License
21075 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
21076
21077
21078 # The names of the tagged configurations supported by this script.
21079 available_tags=''
21080
21081 # Configured defaults for sys_lib_dlsearch_path munging.
21082 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21083
21084 # ### BEGIN LIBTOOL CONFIG
21085
21086 # Which release of libtool.m4 was used?
21087 macro_version=$macro_version
21088 macro_revision=$macro_revision
21089
21090 # Whether or not to build shared libraries.
21091 build_libtool_libs=$enable_shared
21092
21093 # Whether or not to build static libraries.
21094 build_old_libs=$enable_static
21095
21096 # What type of objects to build.
21097 pic_mode=$pic_mode
21098
21099 # Whether or not to optimize for fast installation.
21100 fast_install=$enable_fast_install
21101
21102 # Shared archive member basename,for filename based shared library versioning on AIX.
21103 shared_archive_member_spec=$shared_archive_member_spec
21104
21105 # Shell to use when invoking shell scripts.
21106 SHELL=$lt_SHELL
21107
21108 # An echo program that protects backslashes.
21109 ECHO=$lt_ECHO
21110
21111 # The PATH separator for the build system.
21112 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21113
21114 # The host system.
21115 host_alias=$host_alias
21116 host=$host
21117 host_os=$host_os
21118
21119 # The build system.
21120 build_alias=$build_alias
21121 build=$build
21122 build_os=$build_os
21123
21124 # A sed program that does not truncate output.
21125 SED=$lt_SED
21126
21127 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21128 Xsed="\$SED -e 1s/^X//"
21129
21130 # A grep program that handles long lines.
21131 GREP=$lt_GREP
21132
21133 # An ERE matcher.
21134 EGREP=$lt_EGREP
21135
21136 # A literal string matcher.
21137 FGREP=$lt_FGREP
21138
21139 # A BSD- or MS-compatible name lister.
21140 NM=$lt_NM
21141
21142 # Whether we need soft or hard links.
21143 LN_S=$lt_LN_S
21144
21145 # What is the maximum length of a command?
21146 max_cmd_len=$max_cmd_len
21147
21148 # Object file suffix (normally "o").
21149 objext=$ac_objext
21150
21151 # Executable file suffix (normally "").
21152 exeext=$exeext
21153
21154 # whether the shell understands "unset".
21155 lt_unset=$lt_unset
21156
21157 # turn spaces into newlines.
21158 SP2NL=$lt_lt_SP2NL
21159
21160 # turn newlines into spaces.
21161 NL2SP=$lt_lt_NL2SP
21162
21163 # convert \$build file names to \$host format.
21164 to_host_file_cmd=$lt_cv_to_host_file_cmd
21165
21166 # convert \$build files to toolchain format.
21167 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21168
21169 # An object symbol dumper.
21170 OBJDUMP=$lt_OBJDUMP
21171
21172 # Method to check whether dependent libraries are shared objects.
21173 deplibs_check_method=$lt_deplibs_check_method
21174
21175 # Command to use when deplibs_check_method = "file_magic".
21176 file_magic_cmd=$lt_file_magic_cmd
21177
21178 # How to find potential files when deplibs_check_method = "file_magic".
21179 file_magic_glob=$lt_file_magic_glob
21180
21181 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21182 want_nocaseglob=$lt_want_nocaseglob
21183
21184 # DLL creation program.
21185 DLLTOOL=$lt_DLLTOOL
21186
21187 # Command to associate shared and link libraries.
21188 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21189
21190 # The archiver.
21191 AR=$lt_AR
21192
21193 # Flags to create an archive.
21194 AR_FLAGS=$lt_AR_FLAGS
21195
21196 # How to feed a file listing to the archiver.
21197 archiver_list_spec=$lt_archiver_list_spec
21198
21199 # A symbol stripping program.
21200 STRIP=$lt_STRIP
21201
21202 # Commands used to install an old-style archive.
21203 RANLIB=$lt_RANLIB
21204 old_postinstall_cmds=$lt_old_postinstall_cmds
21205 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21206
21207 # Whether to use a lock for old archive extraction.
21208 lock_old_archive_extraction=$lock_old_archive_extraction
21209
21210 # A C compiler.
21211 LTCC=$lt_CC
21212
21213 # LTCC compiler flags.
21214 LTCFLAGS=$lt_CFLAGS
21215
21216 # Take the output of nm and produce a listing of raw symbols and C names.
21217 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21218
21219 # Transform the output of nm in a proper C declaration.
21220 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21221
21222 # Transform the output of nm into a list of symbols to manually relocate.
21223 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21224
21225 # Transform the output of nm in a C name address pair.
21226 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21227
21228 # Transform the output of nm in a C name address pair when lib prefix is needed.
21229 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21230
21231 # The name lister interface.
21232 nm_interface=$lt_lt_cv_nm_interface
21233
21234 # Specify filename containing input files for \$NM.
21235 nm_file_list_spec=$lt_nm_file_list_spec
21236
21237 # The root where to search for dependent libraries,and where our libraries should be installed.
21238 lt_sysroot=$lt_sysroot
21239
21240 # Command to truncate a binary pipe.
21241 lt_truncate_bin=$lt_lt_cv_truncate_bin
21242
21243 # The name of the directory that contains temporary libtool files.
21244 objdir=$objdir
21245
21246 # Used to examine libraries when file_magic_cmd begins with "file".
21247 MAGIC_CMD=$MAGIC_CMD
21248
21249 # Must we lock files when doing compilation?
21250 need_locks=$lt_need_locks
21251
21252 # Manifest tool.
21253 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21254
21255 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21256 DSYMUTIL=$lt_DSYMUTIL
21257
21258 # Tool to change global to local symbols on Mac OS X.
21259 NMEDIT=$lt_NMEDIT
21260
21261 # Tool to manipulate fat objects and archives on Mac OS X.
21262 LIPO=$lt_LIPO
21263
21264 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21265 OTOOL=$lt_OTOOL
21266
21267 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21268 OTOOL64=$lt_OTOOL64
21269
21270 # Old archive suffix (normally "a").
21271 libext=$libext
21272
21273 # Shared library suffix (normally ".so").
21274 shrext_cmds=$lt_shrext_cmds
21275
21276 # The commands to extract the exported symbol list from a shared archive.
21277 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21278
21279 # Variables whose values should be saved in libtool wrapper scripts and
21280 # restored at link time.
21281 variables_saved_for_relink=$lt_variables_saved_for_relink
21282
21283 # Do we need the "lib" prefix for modules?
21284 need_lib_prefix=$need_lib_prefix
21285
21286 # Do we need a version for libraries?
21287 need_version=$need_version
21288
21289 # Library versioning type.
21290 version_type=$version_type
21291
21292 # Shared library runtime path variable.
21293 runpath_var=$runpath_var
21294
21295 # Shared library path variable.
21296 shlibpath_var=$shlibpath_var
21297
21298 # Is shlibpath searched before the hard-coded library search path?
21299 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21300
21301 # Format of library name prefix.
21302 libname_spec=$lt_libname_spec
21303
21304 # List of archive names.  First name is the real one, the rest are links.
21305 # The last name is the one that the linker finds with -lNAME
21306 library_names_spec=$lt_library_names_spec
21307
21308 # The coded name of the library, if different from the real name.
21309 soname_spec=$lt_soname_spec
21310
21311 # Permission mode override for installation of shared libraries.
21312 install_override_mode=$lt_install_override_mode
21313
21314 # Command to use after installation of a shared archive.
21315 postinstall_cmds=$lt_postinstall_cmds
21316
21317 # Command to use after uninstallation of a shared archive.
21318 postuninstall_cmds=$lt_postuninstall_cmds
21319
21320 # Commands used to finish a libtool library installation in a directory.
21321 finish_cmds=$lt_finish_cmds
21322
21323 # As "finish_cmds", except a single script fragment to be evaled but
21324 # not shown.
21325 finish_eval=$lt_finish_eval
21326
21327 # Whether we should hardcode library paths into libraries.
21328 hardcode_into_libs=$hardcode_into_libs
21329
21330 # Compile-time system search path for libraries.
21331 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21332
21333 # Detected run-time system search path for libraries.
21334 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21335
21336 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21337 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21338
21339 # Whether dlopen is supported.
21340 dlopen_support=$enable_dlopen
21341
21342 # Whether dlopen of programs is supported.
21343 dlopen_self=$enable_dlopen_self
21344
21345 # Whether dlopen of statically linked programs is supported.
21346 dlopen_self_static=$enable_dlopen_self_static
21347
21348 # Commands to strip libraries.
21349 old_striplib=$lt_old_striplib
21350 striplib=$lt_striplib
21351
21352
21353 # The linker used to build libraries.
21354 LD=$lt_LD
21355
21356 # How to create reloadable object files.
21357 reload_flag=$lt_reload_flag
21358 reload_cmds=$lt_reload_cmds
21359
21360 # Commands used to build an old-style archive.
21361 old_archive_cmds=$lt_old_archive_cmds
21362
21363 # A language specific compiler.
21364 CC=$lt_compiler
21365
21366 # Is the compiler the GNU compiler?
21367 with_gcc=$GCC
21368
21369 # Compiler flag to turn off builtin functions.
21370 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21371
21372 # Additional compiler flags for building library objects.
21373 pic_flag=$lt_lt_prog_compiler_pic
21374
21375 # How to pass a linker flag through the compiler.
21376 wl=$lt_lt_prog_compiler_wl
21377
21378 # Compiler flag to prevent dynamic linking.
21379 link_static_flag=$lt_lt_prog_compiler_static
21380
21381 # Does compiler simultaneously support -c and -o options?
21382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21383
21384 # Whether or not to add -lc for building shared libraries.
21385 build_libtool_need_lc=$archive_cmds_need_lc
21386
21387 # Whether or not to disallow shared libs when runtime libs are static.
21388 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21389
21390 # Compiler flag to allow reflexive dlopens.
21391 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21392
21393 # Compiler flag to generate shared objects directly from archives.
21394 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21395
21396 # Whether the compiler copes with passing no objects directly.
21397 compiler_needs_object=$lt_compiler_needs_object
21398
21399 # Create an old-style archive from a shared archive.
21400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21401
21402 # Create a temporary old-style archive to link instead of a shared archive.
21403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21404
21405 # Commands used to build a shared archive.
21406 archive_cmds=$lt_archive_cmds
21407 archive_expsym_cmds=$lt_archive_expsym_cmds
21408
21409 # Commands used to build a loadable module if different from building
21410 # a shared archive.
21411 module_cmds=$lt_module_cmds
21412 module_expsym_cmds=$lt_module_expsym_cmds
21413
21414 # Whether we are building with GNU ld or not.
21415 with_gnu_ld=$lt_with_gnu_ld
21416
21417 # Flag that allows shared libraries with undefined symbols to be built.
21418 allow_undefined_flag=$lt_allow_undefined_flag
21419
21420 # Flag that enforces no undefined symbols.
21421 no_undefined_flag=$lt_no_undefined_flag
21422
21423 # Flag to hardcode \$libdir into a binary during linking.
21424 # This must work even if \$libdir does not exist
21425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21426
21427 # Whether we need a single "-rpath" flag with a separated argument.
21428 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21429
21430 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21431 # DIR into the resulting binary.
21432 hardcode_direct=$hardcode_direct
21433
21434 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21435 # DIR into the resulting binary and the resulting library dependency is
21436 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21437 # library is relocated.
21438 hardcode_direct_absolute=$hardcode_direct_absolute
21439
21440 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21441 # into the resulting binary.
21442 hardcode_minus_L=$hardcode_minus_L
21443
21444 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21445 # into the resulting binary.
21446 hardcode_shlibpath_var=$hardcode_shlibpath_var
21447
21448 # Set to "yes" if building a shared library automatically hardcodes DIR
21449 # into the library and all subsequent libraries and executables linked
21450 # against it.
21451 hardcode_automatic=$hardcode_automatic
21452
21453 # Set to yes if linker adds runtime paths of dependent libraries
21454 # to runtime path list.
21455 inherit_rpath=$inherit_rpath
21456
21457 # Whether libtool must link a program against all its dependency libraries.
21458 link_all_deplibs=$link_all_deplibs
21459
21460 # Set to "yes" if exported symbols are required.
21461 always_export_symbols=$always_export_symbols
21462
21463 # The commands to list exported symbols.
21464 export_symbols_cmds=$lt_export_symbols_cmds
21465
21466 # Symbols that should not be listed in the preloaded symbols.
21467 exclude_expsyms=$lt_exclude_expsyms
21468
21469 # Symbols that must always be exported.
21470 include_expsyms=$lt_include_expsyms
21471
21472 # Commands necessary for linking programs (against libraries) with templates.
21473 prelink_cmds=$lt_prelink_cmds
21474
21475 # Commands necessary for finishing linking programs.
21476 postlink_cmds=$lt_postlink_cmds
21477
21478 # Specify filename containing input files.
21479 file_list_spec=$lt_file_list_spec
21480
21481 # How to hardcode a shared library path into an executable.
21482 hardcode_action=$hardcode_action
21483
21484 # ### END LIBTOOL CONFIG
21485
21486 _LT_EOF
21487
21488     cat <<'_LT_EOF' >> "$cfgfile"
21489
21490 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21491
21492 # func_munge_path_list VARIABLE PATH
21493 # -----------------------------------
21494 # VARIABLE is name of variable containing _space_ separated list of
21495 # directories to be munged by the contents of PATH, which is string
21496 # having a format:
21497 # "DIR[:DIR]:"
21498 #       string "DIR[ DIR]" will be prepended to VARIABLE
21499 # ":DIR[:DIR]"
21500 #       string "DIR[ DIR]" will be appended to VARIABLE
21501 # "DIRP[:DIRP]::[DIRA:]DIRA"
21502 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21503 #       "DIRA[ DIRA]" will be appended to VARIABLE
21504 # "DIR[:DIR]"
21505 #       VARIABLE will be replaced by "DIR[ DIR]"
21506 func_munge_path_list ()
21507 {
21508     case x$2 in
21509     x)
21510         ;;
21511     *:)
21512         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21513         ;;
21514     x:*)
21515         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21516         ;;
21517     *::*)
21518         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21519         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21520         ;;
21521     *)
21522         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21523         ;;
21524     esac
21525 }
21526
21527
21528 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21529 func_cc_basename ()
21530 {
21531     for cc_temp in $*""; do
21532       case $cc_temp in
21533         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21534         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21535         \-*) ;;
21536         *) break;;
21537       esac
21538     done
21539     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21540 }
21541
21542
21543 # ### END FUNCTIONS SHARED WITH CONFIGURE
21544
21545 _LT_EOF
21546
21547   case $host_os in
21548   aix3*)
21549     cat <<\_LT_EOF >> "$cfgfile"
21550 # AIX sometimes has problems with the GCC collect2 program.  For some
21551 # reason, if we set the COLLECT_NAMES environment variable, the problems
21552 # vanish in a puff of smoke.
21553 if test set != "${COLLECT_NAMES+set}"; then
21554   COLLECT_NAMES=
21555   export COLLECT_NAMES
21556 fi
21557 _LT_EOF
21558     ;;
21559   esac
21560
21561
21562
21563 ltmain=$ac_aux_dir/ltmain.sh
21564
21565
21566   # We use sed instead of cat because bash on DJGPP gets confused if
21567   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21568   # text mode, it properly converts lines to CR/LF.  This bash problem
21569   # is reportedly fixed, but why not run on old versions too?
21570   sed '$q' "$ltmain" >> "$cfgfile" \
21571      || (rm -f "$cfgfile"; exit 1)
21572
21573    mv -f "$cfgfile" "$ofile" ||
21574     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21575   chmod +x "$ofile"
21576
21577  ;;
21578     "disable-rpath":C)
21579         sed < libtool > libtool-2 \
21580         's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
21581         mv libtool-2 libtool
21582         chmod 755 libtool
21583         libtool="./libtool"
21584          ;;
21585
21586   esac
21587 done # for ac_tag
21588
21589
21590 as_fn_exit 0
21591 _ACEOF
21592 ac_clean_files=$ac_clean_files_save
21593
21594 test $ac_write_fail = 0 ||
21595   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21596
21597
21598 # configure is writing to config.log, and then calls config.status.
21599 # config.status does its own redirection, appending to config.log.
21600 # Unfortunately, on DOS this fails, as config.log is still kept open
21601 # by configure, so config.status won't be able to write to it; its
21602 # output is simply discarded.  So we exec the FD to /dev/null,
21603 # effectively closing config.log, so it can be properly (re)opened and
21604 # appended to by config.status.  When coming back to configure, we
21605 # need to make the FD available again.
21606 if test "$no_create" != yes; then
21607   ac_cs_success=:
21608   ac_config_status_args=
21609   test "$silent" = yes &&
21610     ac_config_status_args="$ac_config_status_args --quiet"
21611   exec 5>/dev/null
21612   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21613   exec 5>>config.log
21614   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21615   # would make configure fail if this is the last instruction.
21616   $ac_cs_success || as_fn_exit 1
21617 fi
21618 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21619   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21620 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21621 fi
21622
21623
21624 echo "copying header files"
21625
21626 for file in $srcdir/ldns//*.h; do
21627         sh $srcdir/install-sh -m 644 $file ldns/
21628 done
21629
21630
21631
21632