Home | History | Annotate | Line # | Download | only in dist
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.71 for unbound 1.25.1.
      4 #
      5 # Report bugs to <unbound-bugs (at] nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
      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 test \$(( 1 + 1 )) = 2 || exit 1
    187 
    188   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    189     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    190     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    191     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    192     PATH=/empty FPATH=/empty; export PATH FPATH
    193     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
    194       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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 (at] gnu.org and
    279 $0: unbound-bugs (at] nlnetlabs.nl or
    280 $0: https://github.com/NLnetLabs/unbound/issues about your
    281 $0: system, including any error possibly output before this
    282 $0: message. Then install a modern shell, or manually run
    283 $0: the script under such a shell if you do have one."
    284   fi
    285   exit 1
    286 fi
    287 fi
    288 fi
    289 SHELL=${CONFIG_SHELL-/bin/sh}
    290 export SHELL
    291 # Unset more variables known to interfere with behavior of common tools.
    292 CLICOLOR_FORCE= GREP_OPTIONS=
    293 unset CLICOLOR_FORCE GREP_OPTIONS
    294 
    295 ## --------------------- ##
    296 ## M4sh Shell Functions. ##
    297 ## --------------------- ##
    298 # as_fn_unset VAR
    299 # ---------------
    300 # Portably unset VAR.
    301 as_fn_unset ()
    302 {
    303   { eval $1=; unset $1;}
    304 }
    305 as_unset=as_fn_unset
    306 
    307 
    308 # as_fn_set_status STATUS
    309 # -----------------------
    310 # Set $? to STATUS, without forking.
    311 as_fn_set_status ()
    312 {
    313   return $1
    314 } # as_fn_set_status
    315 
    316 # as_fn_exit STATUS
    317 # -----------------
    318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    319 as_fn_exit ()
    320 {
    321   set +e
    322   as_fn_set_status $1
    323   exit $1
    324 } # as_fn_exit
    325 # as_fn_nop
    326 # ---------
    327 # Do nothing but, unlike ":", preserve the value of $?.
    328 as_fn_nop ()
    329 {
    330   return $?
    331 }
    332 as_nop=as_fn_nop
    333 
    334 # as_fn_mkdir_p
    335 # -------------
    336 # Create "$as_dir" as a directory, including parents if necessary.
    337 as_fn_mkdir_p ()
    338 {
    339 
    340   case $as_dir in #(
    341   -*) as_dir=./$as_dir;;
    342   esac
    343   test -d "$as_dir" || eval $as_mkdir_p || {
    344     as_dirs=
    345     while :; do
    346       case $as_dir in #(
    347       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    348       *) as_qdir=$as_dir;;
    349       esac
    350       as_dirs="'$as_qdir' $as_dirs"
    351       as_dir=`$as_dirname -- "$as_dir" ||
    352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    353 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    354 	 X"$as_dir" : 'X\(//\)$' \| \
    355 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    356 printf "%s\n" X"$as_dir" |
    357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    358 	    s//\1/
    359 	    q
    360 	  }
    361 	  /^X\(\/\/\)[^/].*/{
    362 	    s//\1/
    363 	    q
    364 	  }
    365 	  /^X\(\/\/\)$/{
    366 	    s//\1/
    367 	    q
    368 	  }
    369 	  /^X\(\/\).*/{
    370 	    s//\1/
    371 	    q
    372 	  }
    373 	  s/.*/./; q'`
    374       test -d "$as_dir" && break
    375     done
    376     test -z "$as_dirs" || eval "mkdir $as_dirs"
    377   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    378 
    379 
    380 } # as_fn_mkdir_p
    381 
    382 # as_fn_executable_p FILE
    383 # -----------------------
    384 # Test if FILE is an executable regular file.
    385 as_fn_executable_p ()
    386 {
    387   test -f "$1" && test -x "$1"
    388 } # as_fn_executable_p
    389 # as_fn_append VAR VALUE
    390 # ----------------------
    391 # Append the text in VALUE to the end of the definition contained in VAR. Take
    392 # advantage of any shell optimizations that allow amortized linear growth over
    393 # repeated appends, instead of the typical quadratic growth present in naive
    394 # implementations.
    395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
    396 then :
    397   eval 'as_fn_append ()
    398   {
    399     eval $1+=\$2
    400   }'
    401 else $as_nop
    402   as_fn_append ()
    403   {
    404     eval $1=\$$1\$2
    405   }
    406 fi # as_fn_append
    407 
    408 # as_fn_arith ARG...
    409 # ------------------
    410 # Perform arithmetic evaluation on the ARGs, and store the result in the
    411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    412 # must be portable across $(()) and expr.
    413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
    414 then :
    415   eval 'as_fn_arith ()
    416   {
    417     as_val=$(( $* ))
    418   }'
    419 else $as_nop
    420   as_fn_arith ()
    421   {
    422     as_val=`expr "$@" || test $? -eq 1`
    423   }
    424 fi # as_fn_arith
    425 
    426 # as_fn_nop
    427 # ---------
    428 # Do nothing but, unlike ":", preserve the value of $?.
    429 as_fn_nop ()
    430 {
    431   return $?
    432 }
    433 as_nop=as_fn_nop
    434 
    435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    436 # ----------------------------------------
    437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    439 # script with STATUS, using 1 if that was 0.
    440 as_fn_error ()
    441 {
    442   as_status=$1; test $as_status -eq 0 && as_status=1
    443   if test "$4"; then
    444     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    445     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    446   fi
    447   printf "%s\n" "$as_me: error: $2" >&2
    448   as_fn_exit $as_status
    449 } # as_fn_error
    450 
    451 if expr a : '\(a\)' >/dev/null 2>&1 &&
    452    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    453   as_expr=expr
    454 else
    455   as_expr=false
    456 fi
    457 
    458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    459   as_basename=basename
    460 else
    461   as_basename=false
    462 fi
    463 
    464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    465   as_dirname=dirname
    466 else
    467   as_dirname=false
    468 fi
    469 
    470 as_me=`$as_basename -- "$0" ||
    471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    472 	 X"$0" : 'X\(//\)$' \| \
    473 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    474 printf "%s\n" X/"$0" |
    475     sed '/^.*\/\([^/][^/]*\)\/*$/{
    476 	    s//\1/
    477 	    q
    478 	  }
    479 	  /^X\/\(\/\/\)$/{
    480 	    s//\1/
    481 	    q
    482 	  }
    483 	  /^X\/\(\/\).*/{
    484 	    s//\1/
    485 	    q
    486 	  }
    487 	  s/.*/./; q'`
    488 
    489 # Avoid depending upon Character Ranges.
    490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    493 as_cr_digits='0123456789'
    494 as_cr_alnum=$as_cr_Letters$as_cr_digits
    495 
    496 
    497   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    498   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    499   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    500   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    501   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    502   sed -n '
    503     p
    504     /[$]LINENO/=
    505   ' <$as_myself |
    506     sed '
    507       s/[$]LINENO.*/&-/
    508       t lineno
    509       b
    510       :lineno
    511       N
    512       :loop
    513       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    514       t loop
    515       s/-\n.*//
    516     ' >$as_me.lineno &&
    517   chmod +x "$as_me.lineno" ||
    518     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    519 
    520   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    521   # already done that, so ensure we don't try to do so again and fall
    522   # in an infinite loop.  This has already happened in practice.
    523   _as_can_reexec=no; export _as_can_reexec
    524   # Don't try to exec as it changes $[0], causing all sort of problems
    525   # (the dirname of $[0] is not the place where we might find the
    526   # original and so on.  Autoconf is especially sensitive to this).
    527   . "./$as_me.lineno"
    528   # Exit status is that of the last command.
    529   exit
    530 }
    531 
    532 
    533 # Determine whether it's possible to make 'echo' print without a newline.
    534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
    535 # for compatibility with existing Makefiles.
    536 ECHO_C= ECHO_N= ECHO_T=
    537 case `echo -n x` in #(((((
    538 -n*)
    539   case `echo 'xy\c'` in
    540   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    541   xy)  ECHO_C='\c';;
    542   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    543        ECHO_T='	';;
    544   esac;;
    545 *)
    546   ECHO_N='-n';;
    547 esac
    548 
    549 # For backward compatibility with old third-party macros, we provide
    550 # the shell variables $as_echo and $as_echo_n.  New code should use
    551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
    552 as_echo='printf %s\n'
    553 as_echo_n='printf %s'
    554 
    555 
    556 rm -f conf$$ conf$$.exe conf$$.file
    557 if test -d conf$$.dir; then
    558   rm -f conf$$.dir/conf$$.file
    559 else
    560   rm -f conf$$.dir
    561   mkdir conf$$.dir 2>/dev/null
    562 fi
    563 if (echo >conf$$.file) 2>/dev/null; then
    564   if ln -s conf$$.file conf$$ 2>/dev/null; then
    565     as_ln_s='ln -s'
    566     # ... but there are two gotchas:
    567     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    568     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    569     # In both cases, we have to default to `cp -pR'.
    570     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    571       as_ln_s='cp -pR'
    572   elif ln conf$$.file conf$$ 2>/dev/null; then
    573     as_ln_s=ln
    574   else
    575     as_ln_s='cp -pR'
    576   fi
    577 else
    578   as_ln_s='cp -pR'
    579 fi
    580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    581 rmdir conf$$.dir 2>/dev/null
    582 
    583 if mkdir -p . 2>/dev/null; then
    584   as_mkdir_p='mkdir -p "$as_dir"'
    585 else
    586   test -d ./-p && rmdir ./-p
    587   as_mkdir_p=false
    588 fi
    589 
    590 as_test_x='test -x'
    591 as_executable_p=as_fn_executable_p
    592 
    593 # Sed expression to map a string onto a valid CPP name.
    594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    595 
    596 # Sed expression to map a string onto a valid variable name.
    597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    598 
    599 SHELL=${CONFIG_SHELL-/bin/sh}
    600 
    601 
    602 test -n "$DJDIR" || exec 7<&0 </dev/null
    603 exec 6>&1
    604 
    605 # Name of the host.
    606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    607 # so uname gets run too.
    608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    609 
    610 #
    611 # Initializations.
    612 #
    613 ac_default_prefix=/usr/local
    614 ac_clean_files=
    615 ac_config_libobj_dir=.
    616 LIBOBJS=
    617 cross_compiling=no
    618 subdirs=
    619 MFLAGS=
    620 MAKEFLAGS=
    621 
    622 # Identity of this package.
    623 PACKAGE_NAME='unbound'
    624 PACKAGE_TARNAME='unbound'
    625 PACKAGE_VERSION='1.25.1'
    626 PACKAGE_STRING='unbound 1.25.1'
    627 PACKAGE_BUGREPORT='unbound-bugs (at] nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues'
    628 PACKAGE_URL=''
    629 
    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 date
    665 version
    666 INSTALLTARGET
    667 ALLTARGET
    668 SOURCEFILE
    669 SOURCEDETERMINE
    670 IPSET_OBJ
    671 IPSET_SRC
    672 IPSECMOD_HEADER
    673 IPSECMOD_OBJ
    674 CACHEDB_OBJ
    675 CACHEDB_SRC
    676 DNSCRYPT_OBJ
    677 DNSCRYPT_SRC
    678 ENABLE_DNSCRYPT
    679 ENABLE_DNSCRYPT_XCHACHA20
    680 DNSTAP_OBJ
    681 DNSTAP_SRC
    682 DNSTAP_SOCKET_TESTBIN
    683 DNSTAP_SOCKET_PATH
    684 opt_dnstap_socket_path
    685 ENABLE_DNSTAP
    686 PROTOBUFC_LIBS
    687 PROTOBUFC_CFLAGS
    688 PROTOC_GEN_C
    689 PROTOC_C
    690 PROTOC
    691 UBSYMS
    692 EXTRALINK
    693 COMMON_OBJ_ALL_SYMBOLS
    694 LIBOBJ_WITHOUT_CTIME
    695 LIBOBJ_WITHOUT_CTIMEARC4
    696 WIN_CHECKCONF_OBJ_LINK
    697 WIN_CONTROL_OBJ_LINK
    698 WIN_UBANCHOR_OBJ_LINK
    699 WIN_HOST_OBJ_LINK
    700 WIN_DAEMON_OBJ_LINK
    701 WIN_DAEMON_OBJ
    702 WIN_DAEMON_SRC
    703 WINAPPS
    704 WINDRES
    705 CHECKLOCK_OBJ
    706 staticexe
    707 PC_LIBEVENT_DEPENDENCY
    708 UNBOUND_EVENT_UNINSTALL
    709 UNBOUND_EVENT_INSTALL
    710 SUBNET_HEADER
    711 SUBNET_OBJ
    712 PC_LIBBSD_DEPENDENCY
    713 SSLLIB
    714 HAVE_SSL
    715 PC_CRYPTO_DEPENDENCY
    716 CONFIG_DATE
    717 SOURCE_DATE_EPOCH
    718 GCC_DOCKER_LINTFLAGS
    719 NETBSD_LINTFLAGS
    720 PYUNBOUND_UNINSTALL
    721 PYUNBOUND_INSTALL
    722 PYUNBOUND_TARGET
    723 PYUNBOUND_OBJ
    724 WITH_PYUNBOUND
    725 PYTHONMOD_UNINSTALL
    726 PYTHONMOD_INSTALL
    727 PYTHONMOD_HEADER
    728 PYTHONMOD_OBJ
    729 WITH_PYTHONMODULE
    730 swig
    731 SWIG_LIB
    732 SWIG
    733 PC_PY_DEPENDENCY
    734 PYTHON_LIBS
    735 PY_MAJOR_VERSION
    736 PYTHON_SITE_PKG
    737 PYTHON_LDFLAGS
    738 PYTHON_CPPFLAGS
    739 PYTHON
    740 PYTHON_VERSION
    741 DYNLIBMOD_EXTRALIBS
    742 DYNLIBMOD_HEADER
    743 DYNLIBMOD_OBJ
    744 WITH_DYNLIBMODULE
    745 PTHREAD_CFLAGS_ONLY
    746 PTHREAD_CFLAGS
    747 PTHREAD_LIBS
    748 PTHREAD_CXX
    749 PTHREAD_CC
    750 ax_pthread_config
    751 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ
    752 SLDNS_ALLOCCHECK_EXTRA_OBJ
    753 USE_SYSTEMD_FALSE
    754 USE_SYSTEMD_TRUE
    755 SYSTEMD_DAEMON_LIBS
    756 SYSTEMD_DAEMON_CFLAGS
    757 SYSTEMD_LIBS
    758 SYSTEMD_CFLAGS
    759 RUNTIME_PATH
    760 LIBOBJS
    761 CPP
    762 PKG_CONFIG_LIBDIR
    763 PKG_CONFIG_PATH
    764 PKG_CONFIG
    765 LT_SYS_LIBRARY_PATH
    766 OTOOL64
    767 OTOOL
    768 LIPO
    769 NMEDIT
    770 DSYMUTIL
    771 MANIFEST_TOOL
    772 AWK
    773 RANLIB
    774 ac_ct_AR
    775 DLLTOOL
    776 OBJDUMP
    777 FILECMD
    778 LN_S
    779 NM
    780 ac_ct_DUMPBIN
    781 DUMPBIN
    782 LD
    783 FGREP
    784 EGREP
    785 SED
    786 LIBTOOL
    787 AR
    788 host_os
    789 host_vendor
    790 host_cpu
    791 host
    792 build_os
    793 build_vendor
    794 build_cpu
    795 build
    796 libtool
    797 STRIP
    798 doxygen
    799 YFLAGS
    800 YACC
    801 LEXLIB
    802 LEX_OUTPUT_ROOT
    803 LEX
    804 debug_enabled
    805 DEPFLAG
    806 GREP
    807 UNBOUND_USERNAME
    808 UNBOUND_ROOTCERT_FILE
    809 UNBOUND_ROOTKEY_FILE
    810 UNBOUND_PIDFILE
    811 UNBOUND_SHARE_DIR
    812 UNBOUND_CHROOT_DIR
    813 UNBOUND_RUN_DIR
    814 ub_conf_dir
    815 ub_conf_file
    816 UNBOUND_LOCALSTATE_DIR
    817 UNBOUND_SYSCONF_DIR
    818 UNBOUND_SBIN_DIR
    819 OBJEXT
    820 EXEEXT
    821 ac_ct_CC
    822 CPPFLAGS
    823 LDFLAGS
    824 CFLAGS
    825 CC
    826 LIBUNBOUND_AGE
    827 LIBUNBOUND_REVISION
    828 LIBUNBOUND_CURRENT
    829 UNBOUND_VERSION_MICRO
    830 UNBOUND_VERSION_MINOR
    831 UNBOUND_VERSION_MAJOR
    832 target_alias
    833 host_alias
    834 build_alias
    835 LIBS
    836 ECHO_T
    837 ECHO_N
    838 ECHO_C
    839 DEFS
    840 mandir
    841 localedir
    842 libdir
    843 psdir
    844 pdfdir
    845 dvidir
    846 htmldir
    847 infodir
    848 docdir
    849 oldincludedir
    850 includedir
    851 runstatedir
    852 localstatedir
    853 sharedstatedir
    854 sysconfdir
    855 datadir
    856 datarootdir
    857 libexecdir
    858 sbindir
    859 bindir
    860 program_transform_name
    861 prefix
    862 exec_prefix
    863 PACKAGE_URL
    864 PACKAGE_BUGREPORT
    865 PACKAGE_STRING
    866 PACKAGE_VERSION
    867 PACKAGE_TARNAME
    868 PACKAGE_NAME
    869 PATH_SEPARATOR
    870 SHELL'
    871 ac_subst_files=''
    872 ac_user_opts='
    873 enable_option_checking
    874 with_conf_file
    875 with_run_dir
    876 with_chroot_dir
    877 with_share_dir
    878 with_pidfile
    879 with_rootkey_file
    880 with_rootcert_file
    881 with_username
    882 enable_checking
    883 enable_debug
    884 enable_flto
    885 enable_pie
    886 enable_relro_now
    887 enable_shared
    888 enable_static
    889 enable_pic
    890 with_pic
    891 enable_fast_install
    892 enable_aix_soname
    893 with_aix_soname
    894 with_gnu_ld
    895 with_sysroot
    896 enable_libtool_lock
    897 enable_rpath
    898 enable_largefile
    899 enable_systemd
    900 enable_alloc_checks
    901 enable_alloc_lite
    902 enable_alloc_nonregional
    903 with_pthreads
    904 with_solaris_threads
    905 with_syslog_facility
    906 with_dynlibmodule
    907 with_pyunbound
    908 with_pythonmodule
    909 enable_swig_version_check
    910 with_nss
    911 with_nettle
    912 with_ssl
    913 with_libbsd
    914 enable_sha1
    915 enable_sha2
    916 enable_subnet
    917 enable_gost
    918 enable_ecdsa
    919 enable_dsa
    920 with_deprecate_rsa_1024
    921 enable_ed25519
    922 enable_ed448
    923 enable_event_api
    924 enable_tfo_client
    925 enable_tfo_server
    926 with_libevent
    927 with_libexpat
    928 with_libhiredis
    929 with_libnghttp2
    930 with_libngtcp2
    931 enable_static_exe
    932 enable_fully_static
    933 enable_lock_checks
    934 enable_allsymbols
    935 enable_dnstap
    936 with_dnstap_socket_path
    937 with_protobuf_c
    938 enable_dnscrypt
    939 with_libsodium
    940 enable_cachedb
    941 enable_ipsecmod
    942 enable_ipset
    943 with_libmnl
    944 enable_explicit_port_randomisation
    945 enable_linux_ip_local_port_range
    946 with_libunbound_only
    947 '
    948       ac_precious_vars='build_alias
    949 host_alias
    950 target_alias
    951 CC
    952 CFLAGS
    953 LDFLAGS
    954 LIBS
    955 CPPFLAGS
    956 YACC
    957 YFLAGS
    958 LT_SYS_LIBRARY_PATH
    959 PKG_CONFIG
    960 PKG_CONFIG_PATH
    961 PKG_CONFIG_LIBDIR
    962 CPP
    963 SYSTEMD_CFLAGS
    964 SYSTEMD_LIBS
    965 SYSTEMD_DAEMON_CFLAGS
    966 SYSTEMD_DAEMON_LIBS
    967 PYTHON_VERSION
    968 SOURCE_DATE_EPOCH
    969 PROTOBUFC_CFLAGS
    970 PROTOBUFC_LIBS'
    971 
    972 
    973 # Initialize some variables set by options.
    974 ac_init_help=
    975 ac_init_version=false
    976 ac_unrecognized_opts=
    977 ac_unrecognized_sep=
    978 # The variables have the same names as the options, with
    979 # dashes changed to underlines.
    980 cache_file=/dev/null
    981 exec_prefix=NONE
    982 no_create=
    983 no_recursion=
    984 prefix=NONE
    985 program_prefix=NONE
    986 program_suffix=NONE
    987 program_transform_name=s,x,x,
    988 silent=
    989 site=
    990 srcdir=
    991 verbose=
    992 x_includes=NONE
    993 x_libraries=NONE
    994 
    995 # Installation directory options.
    996 # These are left unexpanded so users can "make install exec_prefix=/foo"
    997 # and all the variables that are supposed to be based on exec_prefix
    998 # by default will actually change.
    999 # Use braces instead of parens because sh, perl, etc. also accept them.
   1000 # (The list follows the same order as the GNU Coding Standards.)
   1001 bindir='${exec_prefix}/bin'
   1002 sbindir='${exec_prefix}/sbin'
   1003 libexecdir='${exec_prefix}/libexec'
   1004 datarootdir='${prefix}/share'
   1005 datadir='${datarootdir}'
   1006 sysconfdir='${prefix}/etc'
   1007 sharedstatedir='${prefix}/com'
   1008 localstatedir='${prefix}/var'
   1009 runstatedir='${localstatedir}/run'
   1010 includedir='${prefix}/include'
   1011 oldincludedir='/usr/include'
   1012 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   1013 infodir='${datarootdir}/info'
   1014 htmldir='${docdir}'
   1015 dvidir='${docdir}'
   1016 pdfdir='${docdir}'
   1017 psdir='${docdir}'
   1018 libdir='${exec_prefix}/lib'
   1019 localedir='${datarootdir}/locale'
   1020 mandir='${datarootdir}/man'
   1021 
   1022 ac_prev=
   1023 ac_dashdash=
   1024 for ac_option
   1025 do
   1026   # If the previous option needs an argument, assign it.
   1027   if test -n "$ac_prev"; then
   1028     eval $ac_prev=\$ac_option
   1029     ac_prev=
   1030     continue
   1031   fi
   1032 
   1033   case $ac_option in
   1034   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1035   *=)   ac_optarg= ;;
   1036   *)    ac_optarg=yes ;;
   1037   esac
   1038 
   1039   case $ac_dashdash$ac_option in
   1040   --)
   1041     ac_dashdash=yes ;;
   1042 
   1043   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1044     ac_prev=bindir ;;
   1045   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1046     bindir=$ac_optarg ;;
   1047 
   1048   -build | --build | --buil | --bui | --bu)
   1049     ac_prev=build_alias ;;
   1050   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1051     build_alias=$ac_optarg ;;
   1052 
   1053   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1054   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1055     ac_prev=cache_file ;;
   1056   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1057   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1058     cache_file=$ac_optarg ;;
   1059 
   1060   --config-cache | -C)
   1061     cache_file=config.cache ;;
   1062 
   1063   -datadir | --datadir | --datadi | --datad)
   1064     ac_prev=datadir ;;
   1065   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1066     datadir=$ac_optarg ;;
   1067 
   1068   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1069   | --dataroo | --dataro | --datar)
   1070     ac_prev=datarootdir ;;
   1071   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1072   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1073     datarootdir=$ac_optarg ;;
   1074 
   1075   -disable-* | --disable-*)
   1076     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1077     # Reject names that are not valid shell variable names.
   1078     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1079       as_fn_error $? "invalid feature name: \`$ac_useropt'"
   1080     ac_useropt_orig=$ac_useropt
   1081     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1082     case $ac_user_opts in
   1083       *"
   1084 "enable_$ac_useropt"
   1085 "*) ;;
   1086       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1087 	 ac_unrecognized_sep=', ';;
   1088     esac
   1089     eval enable_$ac_useropt=no ;;
   1090 
   1091   -docdir | --docdir | --docdi | --doc | --do)
   1092     ac_prev=docdir ;;
   1093   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1094     docdir=$ac_optarg ;;
   1095 
   1096   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1097     ac_prev=dvidir ;;
   1098   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1099     dvidir=$ac_optarg ;;
   1100 
   1101   -enable-* | --enable-*)
   1102     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1103     # Reject names that are not valid shell variable names.
   1104     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1105       as_fn_error $? "invalid feature name: \`$ac_useropt'"
   1106     ac_useropt_orig=$ac_useropt
   1107     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1108     case $ac_user_opts in
   1109       *"
   1110 "enable_$ac_useropt"
   1111 "*) ;;
   1112       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1113 	 ac_unrecognized_sep=', ';;
   1114     esac
   1115     eval enable_$ac_useropt=\$ac_optarg ;;
   1116 
   1117   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1118   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1119   | --exec | --exe | --ex)
   1120     ac_prev=exec_prefix ;;
   1121   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1122   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1123   | --exec=* | --exe=* | --ex=*)
   1124     exec_prefix=$ac_optarg ;;
   1125 
   1126   -gas | --gas | --ga | --g)
   1127     # Obsolete; use --with-gas.
   1128     with_gas=yes ;;
   1129 
   1130   -help | --help | --hel | --he | -h)
   1131     ac_init_help=long ;;
   1132   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1133     ac_init_help=recursive ;;
   1134   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1135     ac_init_help=short ;;
   1136 
   1137   -host | --host | --hos | --ho)
   1138     ac_prev=host_alias ;;
   1139   -host=* | --host=* | --hos=* | --ho=*)
   1140     host_alias=$ac_optarg ;;
   1141 
   1142   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1143     ac_prev=htmldir ;;
   1144   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1145   | --ht=*)
   1146     htmldir=$ac_optarg ;;
   1147 
   1148   -includedir | --includedir | --includedi | --included | --include \
   1149   | --includ | --inclu | --incl | --inc)
   1150     ac_prev=includedir ;;
   1151   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1152   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1153     includedir=$ac_optarg ;;
   1154 
   1155   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1156     ac_prev=infodir ;;
   1157   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1158     infodir=$ac_optarg ;;
   1159 
   1160   -libdir | --libdir | --libdi | --libd)
   1161     ac_prev=libdir ;;
   1162   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1163     libdir=$ac_optarg ;;
   1164 
   1165   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1166   | --libexe | --libex | --libe)
   1167     ac_prev=libexecdir ;;
   1168   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1169   | --libexe=* | --libex=* | --libe=*)
   1170     libexecdir=$ac_optarg ;;
   1171 
   1172   -localedir | --localedir | --localedi | --localed | --locale)
   1173     ac_prev=localedir ;;
   1174   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1175     localedir=$ac_optarg ;;
   1176 
   1177   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1178   | --localstate | --localstat | --localsta | --localst | --locals)
   1179     ac_prev=localstatedir ;;
   1180   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1181   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1182     localstatedir=$ac_optarg ;;
   1183 
   1184   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1185     ac_prev=mandir ;;
   1186   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1187     mandir=$ac_optarg ;;
   1188 
   1189   -nfp | --nfp | --nf)
   1190     # Obsolete; use --without-fp.
   1191     with_fp=no ;;
   1192 
   1193   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1194   | --no-cr | --no-c | -n)
   1195     no_create=yes ;;
   1196 
   1197   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1198   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1199     no_recursion=yes ;;
   1200 
   1201   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1202   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1203   | --oldin | --oldi | --old | --ol | --o)
   1204     ac_prev=oldincludedir ;;
   1205   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1206   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1207   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1208     oldincludedir=$ac_optarg ;;
   1209 
   1210   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1211     ac_prev=prefix ;;
   1212   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1213     prefix=$ac_optarg ;;
   1214 
   1215   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1216   | --program-pre | --program-pr | --program-p)
   1217     ac_prev=program_prefix ;;
   1218   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1219   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1220     program_prefix=$ac_optarg ;;
   1221 
   1222   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1223   | --program-suf | --program-su | --program-s)
   1224     ac_prev=program_suffix ;;
   1225   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1226   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1227     program_suffix=$ac_optarg ;;
   1228 
   1229   -program-transform-name | --program-transform-name \
   1230   | --program-transform-nam | --program-transform-na \
   1231   | --program-transform-n | --program-transform- \
   1232   | --program-transform | --program-transfor \
   1233   | --program-transfo | --program-transf \
   1234   | --program-trans | --program-tran \
   1235   | --progr-tra | --program-tr | --program-t)
   1236     ac_prev=program_transform_name ;;
   1237   -program-transform-name=* | --program-transform-name=* \
   1238   | --program-transform-nam=* | --program-transform-na=* \
   1239   | --program-transform-n=* | --program-transform-=* \
   1240   | --program-transform=* | --program-transfor=* \
   1241   | --program-transfo=* | --program-transf=* \
   1242   | --program-trans=* | --program-tran=* \
   1243   | --progr-tra=* | --program-tr=* | --program-t=*)
   1244     program_transform_name=$ac_optarg ;;
   1245 
   1246   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1247     ac_prev=pdfdir ;;
   1248   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1249     pdfdir=$ac_optarg ;;
   1250 
   1251   -psdir | --psdir | --psdi | --psd | --ps)
   1252     ac_prev=psdir ;;
   1253   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1254     psdir=$ac_optarg ;;
   1255 
   1256   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1257   | -silent | --silent | --silen | --sile | --sil)
   1258     silent=yes ;;
   1259 
   1260   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1261   | --runstate | --runstat | --runsta | --runst | --runs \
   1262   | --run | --ru | --r)
   1263     ac_prev=runstatedir ;;
   1264   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1265   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1266   | --run=* | --ru=* | --r=*)
   1267     runstatedir=$ac_optarg ;;
   1268 
   1269   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1270     ac_prev=sbindir ;;
   1271   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1272   | --sbi=* | --sb=*)
   1273     sbindir=$ac_optarg ;;
   1274 
   1275   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1276   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1277   | --sharedst | --shareds | --shared | --share | --shar \
   1278   | --sha | --sh)
   1279     ac_prev=sharedstatedir ;;
   1280   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1281   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1282   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1283   | --sha=* | --sh=*)
   1284     sharedstatedir=$ac_optarg ;;
   1285 
   1286   -site | --site | --sit)
   1287     ac_prev=site ;;
   1288   -site=* | --site=* | --sit=*)
   1289     site=$ac_optarg ;;
   1290 
   1291   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1292     ac_prev=srcdir ;;
   1293   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1294     srcdir=$ac_optarg ;;
   1295 
   1296   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1297   | --syscon | --sysco | --sysc | --sys | --sy)
   1298     ac_prev=sysconfdir ;;
   1299   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1300   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1301     sysconfdir=$ac_optarg ;;
   1302 
   1303   -target | --target | --targe | --targ | --tar | --ta | --t)
   1304     ac_prev=target_alias ;;
   1305   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1306     target_alias=$ac_optarg ;;
   1307 
   1308   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1309     verbose=yes ;;
   1310 
   1311   -version | --version | --versio | --versi | --vers | -V)
   1312     ac_init_version=: ;;
   1313 
   1314   -with-* | --with-*)
   1315     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1316     # Reject names that are not valid shell variable names.
   1317     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1318       as_fn_error $? "invalid package name: \`$ac_useropt'"
   1319     ac_useropt_orig=$ac_useropt
   1320     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1321     case $ac_user_opts in
   1322       *"
   1323 "with_$ac_useropt"
   1324 "*) ;;
   1325       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1326 	 ac_unrecognized_sep=', ';;
   1327     esac
   1328     eval with_$ac_useropt=\$ac_optarg ;;
   1329 
   1330   -without-* | --without-*)
   1331     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1332     # Reject names that are not valid shell variable names.
   1333     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1334       as_fn_error $? "invalid package name: \`$ac_useropt'"
   1335     ac_useropt_orig=$ac_useropt
   1336     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1337     case $ac_user_opts in
   1338       *"
   1339 "with_$ac_useropt"
   1340 "*) ;;
   1341       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1342 	 ac_unrecognized_sep=', ';;
   1343     esac
   1344     eval with_$ac_useropt=no ;;
   1345 
   1346   --x)
   1347     # Obsolete; use --with-x.
   1348     with_x=yes ;;
   1349 
   1350   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1351   | --x-incl | --x-inc | --x-in | --x-i)
   1352     ac_prev=x_includes ;;
   1353   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1354   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1355     x_includes=$ac_optarg ;;
   1356 
   1357   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1358   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1359     ac_prev=x_libraries ;;
   1360   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1361   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1362     x_libraries=$ac_optarg ;;
   1363 
   1364   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1365 Try \`$0 --help' for more information"
   1366     ;;
   1367 
   1368   *=*)
   1369     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1370     # Reject names that are not valid shell variable names.
   1371     case $ac_envvar in #(
   1372       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1373       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1374     esac
   1375     eval $ac_envvar=\$ac_optarg
   1376     export $ac_envvar ;;
   1377 
   1378   *)
   1379     # FIXME: should be removed in autoconf 3.0.
   1380     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
   1381     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1382       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
   1383     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1384     ;;
   1385 
   1386   esac
   1387 done
   1388 
   1389 if test -n "$ac_prev"; then
   1390   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1391   as_fn_error $? "missing argument to $ac_option"
   1392 fi
   1393 
   1394 if test -n "$ac_unrecognized_opts"; then
   1395   case $enable_option_checking in
   1396     no) ;;
   1397     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1398     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1399   esac
   1400 fi
   1401 
   1402 # Check all directory arguments for consistency.
   1403 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1404 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1405 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1406 		libdir localedir mandir runstatedir
   1407 do
   1408   eval ac_val=\$$ac_var
   1409   # Remove trailing slashes.
   1410   case $ac_val in
   1411     */ )
   1412       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1413       eval $ac_var=\$ac_val;;
   1414   esac
   1415   # Be sure to have absolute directory names.
   1416   case $ac_val in
   1417     [\\/$]* | ?:[\\/]* )  continue;;
   1418     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1419   esac
   1420   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1421 done
   1422 
   1423 # There might be people who depend on the old broken behavior: `$host'
   1424 # used to hold the argument of --host etc.
   1425 # FIXME: To remove some day.
   1426 build=$build_alias
   1427 host=$host_alias
   1428 target=$target_alias
   1429 
   1430 # FIXME: To remove some day.
   1431 if test "x$host_alias" != x; then
   1432   if test "x$build_alias" = x; then
   1433     cross_compiling=maybe
   1434   elif test "x$build_alias" != "x$host_alias"; then
   1435     cross_compiling=yes
   1436   fi
   1437 fi
   1438 
   1439 ac_tool_prefix=
   1440 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1441 
   1442 test "$silent" = yes && exec 6>/dev/null
   1443 
   1444 
   1445 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1446 ac_ls_di=`ls -di .` &&
   1447 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1448   as_fn_error $? "working directory cannot be determined"
   1449 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1450   as_fn_error $? "pwd does not report name of working directory"
   1451 
   1452 
   1453 # Find the source files, if location was not specified.
   1454 if test -z "$srcdir"; then
   1455   ac_srcdir_defaulted=yes
   1456   # Try the directory containing this script, then the parent directory.
   1457   ac_confdir=`$as_dirname -- "$as_myself" ||
   1458 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1459 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1460 	 X"$as_myself" : 'X\(//\)$' \| \
   1461 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1462 printf "%s\n" X"$as_myself" |
   1463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1464 	    s//\1/
   1465 	    q
   1466 	  }
   1467 	  /^X\(\/\/\)[^/].*/{
   1468 	    s//\1/
   1469 	    q
   1470 	  }
   1471 	  /^X\(\/\/\)$/{
   1472 	    s//\1/
   1473 	    q
   1474 	  }
   1475 	  /^X\(\/\).*/{
   1476 	    s//\1/
   1477 	    q
   1478 	  }
   1479 	  s/.*/./; q'`
   1480   srcdir=$ac_confdir
   1481   if test ! -r "$srcdir/$ac_unique_file"; then
   1482     srcdir=..
   1483   fi
   1484 else
   1485   ac_srcdir_defaulted=no
   1486 fi
   1487 if test ! -r "$srcdir/$ac_unique_file"; then
   1488   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1489   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1490 fi
   1491 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1492 ac_abs_confdir=`(
   1493 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1494 	pwd)`
   1495 # When building in place, set srcdir=.
   1496 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1497   srcdir=.
   1498 fi
   1499 # Remove unnecessary trailing slashes from srcdir.
   1500 # Double slashes in file names in object file debugging info
   1501 # mess up M-x gdb in Emacs.
   1502 case $srcdir in
   1503 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1504 esac
   1505 for ac_var in $ac_precious_vars; do
   1506   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1507   eval ac_env_${ac_var}_value=\$${ac_var}
   1508   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1509   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1510 done
   1511 
   1512 #
   1513 # Report the --help message.
   1514 #
   1515 if test "$ac_init_help" = "long"; then
   1516   # Omit some internal or obsolete options to make the list less imposing.
   1517   # This message is too long to be a string in the A/UX 3.1 sh.
   1518   cat <<_ACEOF
   1519 \`configure' configures unbound 1.25.1 to adapt to many kinds of systems.
   1520 
   1521 Usage: $0 [OPTION]... [VAR=VALUE]...
   1522 
   1523 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1524 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1525 
   1526 Defaults for the options are specified in brackets.
   1527 
   1528 Configuration:
   1529   -h, --help              display this help and exit
   1530       --help=short        display options specific to this package
   1531       --help=recursive    display the short help of all the included packages
   1532   -V, --version           display version information and exit
   1533   -q, --quiet, --silent   do not print \`checking ...' messages
   1534       --cache-file=FILE   cache test results in FILE [disabled]
   1535   -C, --config-cache      alias for \`--cache-file=config.cache'
   1536   -n, --no-create         do not create output files
   1537       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1538 
   1539 Installation directories:
   1540   --prefix=PREFIX         install architecture-independent files in PREFIX
   1541                           [$ac_default_prefix]
   1542   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1543                           [PREFIX]
   1544 
   1545 By default, \`make install' will install all the files in
   1546 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1547 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1548 for instance \`--prefix=\$HOME'.
   1549 
   1550 For better control, use the options below.
   1551 
   1552 Fine tuning of the installation directories:
   1553   --bindir=DIR            user executables [EPREFIX/bin]
   1554   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1555   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1556   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1557   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1558   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1559   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1560   --libdir=DIR            object code libraries [EPREFIX/lib]
   1561   --includedir=DIR        C header files [PREFIX/include]
   1562   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1563   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1564   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1565   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1566   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1567   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1568   --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
   1569   --htmldir=DIR           html documentation [DOCDIR]
   1570   --dvidir=DIR            dvi documentation [DOCDIR]
   1571   --pdfdir=DIR            pdf documentation [DOCDIR]
   1572   --psdir=DIR             ps documentation [DOCDIR]
   1573 _ACEOF
   1574 
   1575   cat <<\_ACEOF
   1576 
   1577 System types:
   1578   --build=BUILD     configure for building on BUILD [guessed]
   1579   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1580 _ACEOF
   1581 fi
   1582 
   1583 if test -n "$ac_init_help"; then
   1584   case $ac_init_help in
   1585      short | recursive ) echo "Configuration of unbound 1.25.1:";;
   1586    esac
   1587   cat <<\_ACEOF
   1588 
   1589 Optional Features:
   1590   --disable-option-checking  ignore unrecognized --enable/--with options
   1591   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1592   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1593   --enable-checking       Enable warnings, asserts, makefile-dependencies
   1594   --enable-debug          same as enable-checking
   1595   --disable-flto          Disable link-time optimization (gcc specific option)
   1596   --enable-pie            Enable Position-Independent Executable (eg. to fully
   1597                           benefit from ASLR, small performance penalty)
   1598   --enable-relro-now      Enable full relocation binding at load-time (RELRO
   1599                           NOW, to protect GOT and .dtor areas)
   1600   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1601   --enable-static[=PKGS]  build static libraries [default=yes]
   1602   --enable-pic[=PKGS]     try to use only PIC/non-PIC objects [default=use
   1603                           both]
   1604   --enable-fast-install[=PKGS]
   1605                           optimize for fast installation [default=yes]
   1606   --enable-aix-soname=aix|svr4|both
   1607                           shared library versioning (aka "SONAME") variant to
   1608                           provide on AIX, [default=aix].
   1609   --disable-libtool-lock  avoid locking (might break parallel builds)
   1610   --disable-rpath         disable hardcoded rpath (default=enabled)
   1611   --disable-largefile     omit support for large files
   1612   --enable-systemd        compile with systemd support (requires libsystemd,
   1613                           pkg-config)
   1614   --enable-alloc-checks   enable to memory allocation statistics, for debug
   1615                           purposes
   1616   --enable-alloc-lite     enable for lightweight alloc assertions, for debug
   1617                           purposes
   1618   --enable-alloc-nonregional
   1619                           enable nonregional allocs, slow but exposes regional
   1620                           allocations to other memory purifiers, for debug
   1621                           purposes
   1622   --disable-swig-version-check
   1623                           Disable swig version check to build python modules
   1624                           with older swig even though that is unreliable
   1625   --disable-sha1          Disable SHA1 RRSIG support, does not disable nsec3
   1626                           support
   1627   --disable-sha2          Disable SHA256 and SHA512 RRSIG support
   1628   --enable-subnet         Enable client subnet
   1629   --disable-gost          Disable GOST support
   1630   --disable-ecdsa         Disable ECDSA support
   1631   --disable-dsa           Disable DSA support
   1632   --disable-ed25519       Disable ED25519 support
   1633   --disable-ed448         Disable ED448 support
   1634   --enable-event-api      Enable (experimental) pluggable event base
   1635                           libunbound API installed to unbound-event.h
   1636   --enable-tfo-client     Enable TCP Fast Open for client mode
   1637   --enable-tfo-server     Enable TCP Fast Open for server mode
   1638   --enable-static-exe     enable to compile executables statically against
   1639                           (event) uninstalled libs, for debug purposes
   1640   --enable-fully-static   enable to compile fully static
   1641   --enable-lock-checks    enable to check lock and unlock calls, for debug
   1642                           purposes
   1643   --enable-allsymbols     export all symbols from libunbound and link binaries
   1644                           to it, smaller install size but libunbound export
   1645                           table is polluted by internal symbols
   1646   --enable-dnstap         Enable dnstap support (requires protobuf-c)
   1647   --enable-dnscrypt       Enable dnscrypt support (requires libsodium)
   1648   --enable-cachedb        enable cachedb module that can use external cache
   1649                           storage
   1650   --enable-ipsecmod       Enable ipsecmod module that facilitates
   1651                           opportunistic IPsec
   1652   --enable-ipset          enable ipset module
   1653   --disable-explicit-port-randomisation
   1654                           disable explicit source port randomisation and rely
   1655                           on the kernel to provide random source ports
   1656   --enable-linux-ip-local-port-range
   1657                           Define this to enable use of
   1658                           /proc/sys/net/ipv4/ip_local_port_range as a default
   1659                           outgoing port range. This is only for the libunbound
   1660                           on Linux and does not affect unbound resolving
   1661                           daemon itself. This may severely limit the number of
   1662                           available outgoing ports and thus decrease
   1663                           randomness. Define this only when the target system
   1664                           restricts (e.g. some of SELinux enabled
   1665                           distributions) the use of non-ephemeral ports.
   1666 
   1667 Optional Packages:
   1668   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1669   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1670   --with-conf-file=path   Pathname to the Unbound configuration file
   1671   --with-run-dir=path     set default directory to chdir to (by default dir
   1672                           part of cfg file)
   1673   --with-chroot-dir=path  set default directory to chroot to (by default same
   1674                           as run-dir)
   1675   --with-share-dir=path   set default directory with shared data (by default
   1676                           same as share/unbound)
   1677   --with-pidfile=filename set default pathname to unbound pidfile (default
   1678                           run-dir/unbound.pid)
   1679   --with-rootkey-file=filename
   1680                           set default pathname to root key file (default
   1681                           run-dir/root.key). This file is read and written.
   1682   --with-rootcert-file=filename
   1683                           set default pathname to root update certificate file
   1684                           (default run-dir/icannbundle.pem). This file need
   1685                           not exist if you are content with the builtin.
   1686   --with-username=user    set default user that unbound changes to (default
   1687                           user is unbound)
   1688   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1689   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1690                           compiler's sysroot if not specified).
   1691   --with-pthreads         use pthreads library, or --without-pthreads to
   1692                           disable threading support.
   1693   --with-solaris-threads  use solaris native thread library.
   1694   --with-syslog-facility=LOCAL0 - LOCAL7
   1695                           set SYSLOG_FACILITY, default DAEMON
   1696   --with-dynlibmodule     build dynamic library module, or
   1697                           --without-dynlibmodule to disable it. (default=no)
   1698   --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
   1699                           (default=no)
   1700   --with-pythonmodule     build Python module, or --without-pythonmodule to
   1701                           disable script engine. (default=no)
   1702   --with-nss=path         use libnss instead of openssl, installed at path.
   1703   --with-nettle=path      use libnettle as crypto library, installed at path.
   1704   --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
   1705                           /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
   1706                           /usr or specify like /usr/include/openssl11)
   1707   --with-libbsd           Use portable libbsd functions
   1708   --with-deprecate-rsa-1024
   1709                           Deprecate RSA 1024 bit length, makes that an
   1710                           unsupported key, for use when OpenSSL FIPS refuses
   1711                           1024 bit verification
   1712   --with-libevent=pathname
   1713                           use libevent (will check /usr/local /opt/local
   1714                           /usr/lib /usr/pkg /usr/sfw /usr or you can specify
   1715                           an explicit path). Slower, but allows use of large
   1716                           outgoing port ranges.
   1717   --with-libexpat=path    specify explicit path for libexpat.
   1718   --with-libhiredis=path  specify explicit path for libhiredis.
   1719   --with-libnghttp2=path  specify explicit path for libnghttp2.
   1720   --with-libngtcp2=path   specify explicit path for libngtcp2, for QUIC.
   1721   --with-dnstap-socket-path=pathname
   1722                           set default dnstap socket path
   1723   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
   1724   --with-libsodium=path   Path where libsodium is installed, for dnscrypt
   1725   --with-libmnl=path      specify explicit path for libmnl.
   1726   --with-libunbound-only  do not build daemon and tool programs
   1727 
   1728 Some influential environment variables:
   1729   CC          C compiler command
   1730   CFLAGS      C compiler flags
   1731   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1732               nonstandard directory <lib dir>
   1733   LIBS        libraries to pass to the linker, e.g. -l<library>
   1734   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1735               you have headers in a nonstandard directory <include dir>
   1736   YACC        The `Yet Another Compiler Compiler' implementation to use.
   1737               Defaults to the first program found out of: `bison -y', `byacc',
   1738               `yacc'.
   1739   YFLAGS      The list of arguments that will be passed by default to $YACC.
   1740               This script will default YFLAGS to the empty string to avoid a
   1741               default value of `-d' given by some make applications.
   1742   LT_SYS_LIBRARY_PATH
   1743               User-defined run-time library search path.
   1744   PKG_CONFIG  path to pkg-config utility
   1745   PKG_CONFIG_PATH
   1746               directories to add to pkg-config's search path
   1747   PKG_CONFIG_LIBDIR
   1748               path overriding pkg-config's built-in search path
   1749   CPP         C preprocessor
   1750   SYSTEMD_CFLAGS
   1751               C compiler flags for SYSTEMD, overriding pkg-config
   1752   SYSTEMD_LIBS
   1753               linker flags for SYSTEMD, overriding pkg-config
   1754   SYSTEMD_DAEMON_CFLAGS
   1755               C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
   1756   SYSTEMD_DAEMON_LIBS
   1757               linker flags for SYSTEMD_DAEMON, overriding pkg-config
   1758   PYTHON_VERSION
   1759               The installed Python version to use, for example '2.3'. This
   1760               string will be appended to the Python interpreter canonical
   1761               name.
   1762   SOURCE_DATE_EPOCH
   1763               If it is set, it uses the value of that variable instead of the
   1764               current time as the build timestamp. The format is a unix
   1765               timestamp. This enables reproducible build output.
   1766   PROTOBUFC_CFLAGS
   1767               C compiler flags for PROTOBUFC, overriding pkg-config
   1768   PROTOBUFC_LIBS
   1769               linker flags for PROTOBUFC, overriding pkg-config
   1770 
   1771 Use these variables to override the choices made by `configure' or to help
   1772 it to find libraries and programs with nonstandard names/locations.
   1773 
   1774 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
   1775 _ACEOF
   1776 ac_status=$?
   1777 fi
   1778 
   1779 if test "$ac_init_help" = "recursive"; then
   1780   # If there are subdirs, report their specific --help.
   1781   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1782     test -d "$ac_dir" ||
   1783       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1784       continue
   1785     ac_builddir=.
   1786 
   1787 case "$ac_dir" in
   1788 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1789 *)
   1790   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   1791   # A ".." for each directory in $ac_dir_suffix.
   1792   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1793   case $ac_top_builddir_sub in
   1794   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1795   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1796   esac ;;
   1797 esac
   1798 ac_abs_top_builddir=$ac_pwd
   1799 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1800 # for backward compatibility:
   1801 ac_top_builddir=$ac_top_build_prefix
   1802 
   1803 case $srcdir in
   1804   .)  # We are building in place.
   1805     ac_srcdir=.
   1806     ac_top_srcdir=$ac_top_builddir_sub
   1807     ac_abs_top_srcdir=$ac_pwd ;;
   1808   [\\/]* | ?:[\\/]* )  # Absolute name.
   1809     ac_srcdir=$srcdir$ac_dir_suffix;
   1810     ac_top_srcdir=$srcdir
   1811     ac_abs_top_srcdir=$srcdir ;;
   1812   *) # Relative name.
   1813     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1814     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1815     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1816 esac
   1817 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1818 
   1819     cd "$ac_dir" || { ac_status=$?; continue; }
   1820     # Check for configure.gnu first; this name is used for a wrapper for
   1821     # Metaconfig's "Configure" on case-insensitive file systems.
   1822     if test -f "$ac_srcdir/configure.gnu"; then
   1823       echo &&
   1824       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1825     elif test -f "$ac_srcdir/configure"; then
   1826       echo &&
   1827       $SHELL "$ac_srcdir/configure" --help=recursive
   1828     else
   1829       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1830     fi || ac_status=$?
   1831     cd "$ac_pwd" || { ac_status=$?; break; }
   1832   done
   1833 fi
   1834 
   1835 test -n "$ac_init_help" && exit $ac_status
   1836 if $ac_init_version; then
   1837   cat <<\_ACEOF
   1838 unbound configure 1.25.1
   1839 generated by GNU Autoconf 2.71
   1840 
   1841 Copyright (C) 2021 Free Software Foundation, Inc.
   1842 This configure script is free software; the Free Software Foundation
   1843 gives unlimited permission to copy, distribute and modify it.
   1844 _ACEOF
   1845   exit
   1846 fi
   1847 
   1848 ## ------------------------ ##
   1849 ## Autoconf initialization. ##
   1850 ## ------------------------ ##
   1851 
   1852 # ac_fn_c_try_compile LINENO
   1853 # --------------------------
   1854 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1855 ac_fn_c_try_compile ()
   1856 {
   1857   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1858   rm -f conftest.$ac_objext conftest.beam
   1859   if { { ac_try="$ac_compile"
   1860 case "(($ac_try" in
   1861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1862   *) ac_try_echo=$ac_try;;
   1863 esac
   1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1865 printf "%s\n" "$ac_try_echo"; } >&5
   1866   (eval "$ac_compile") 2>conftest.err
   1867   ac_status=$?
   1868   if test -s conftest.err; then
   1869     grep -v '^ *+' conftest.err >conftest.er1
   1870     cat conftest.er1 >&5
   1871     mv -f conftest.er1 conftest.err
   1872   fi
   1873   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1874   test $ac_status = 0; } && {
   1875 	 test -z "$ac_c_werror_flag" ||
   1876 	 test ! -s conftest.err
   1877        } && test -s conftest.$ac_objext
   1878 then :
   1879   ac_retval=0
   1880 else $as_nop
   1881   printf "%s\n" "$as_me: failed program was:" >&5
   1882 sed 's/^/| /' conftest.$ac_ext >&5
   1883 
   1884 	ac_retval=1
   1885 fi
   1886   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1887   as_fn_set_status $ac_retval
   1888 
   1889 } # ac_fn_c_try_compile
   1890 
   1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1892 # -------------------------------------------------------
   1893 # Tests whether HEADER exists and can be compiled using the include files in
   1894 # INCLUDES, setting the cache variable VAR accordingly.
   1895 ac_fn_c_check_header_compile ()
   1896 {
   1897   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1898   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1899 printf %s "checking for $2... " >&6; }
   1900 if eval test \${$3+y}
   1901 then :
   1902   printf %s "(cached) " >&6
   1903 else $as_nop
   1904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1905 /* end confdefs.h.  */
   1906 $4
   1907 #include <$2>
   1908 _ACEOF
   1909 if ac_fn_c_try_compile "$LINENO"
   1910 then :
   1911   eval "$3=yes"
   1912 else $as_nop
   1913   eval "$3=no"
   1914 fi
   1915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1916 fi
   1917 eval ac_res=\$$3
   1918 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1919 printf "%s\n" "$ac_res" >&6; }
   1920   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1921 
   1922 } # ac_fn_c_check_header_compile
   1923 
   1924 # ac_fn_c_try_link LINENO
   1925 # -----------------------
   1926 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1927 ac_fn_c_try_link ()
   1928 {
   1929   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1930   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
   1931   if { { ac_try="$ac_link"
   1932 case "(($ac_try" in
   1933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1934   *) ac_try_echo=$ac_try;;
   1935 esac
   1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1937 printf "%s\n" "$ac_try_echo"; } >&5
   1938   (eval "$ac_link") 2>conftest.err
   1939   ac_status=$?
   1940   if test -s conftest.err; then
   1941     grep -v '^ *+' conftest.err >conftest.er1
   1942     cat conftest.er1 >&5
   1943     mv -f conftest.er1 conftest.err
   1944   fi
   1945   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1946   test $ac_status = 0; } && {
   1947 	 test -z "$ac_c_werror_flag" ||
   1948 	 test ! -s conftest.err
   1949        } && test -s conftest$ac_exeext && {
   1950 	 test "$cross_compiling" = yes ||
   1951 	 test -x conftest$ac_exeext
   1952        }
   1953 then :
   1954   ac_retval=0
   1955 else $as_nop
   1956   printf "%s\n" "$as_me: failed program was:" >&5
   1957 sed 's/^/| /' conftest.$ac_ext >&5
   1958 
   1959 	ac_retval=1
   1960 fi
   1961   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1962   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1963   # interfere with the next link command; also delete a directory that is
   1964   # left behind by Apple's compiler.  We do this before executing the actions.
   1965   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1966   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1967   as_fn_set_status $ac_retval
   1968 
   1969 } # ac_fn_c_try_link
   1970 
   1971 # ac_fn_c_check_func LINENO FUNC VAR
   1972 # ----------------------------------
   1973 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1974 ac_fn_c_check_func ()
   1975 {
   1976   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1977   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1978 printf %s "checking for $2... " >&6; }
   1979 if eval test \${$3+y}
   1980 then :
   1981   printf %s "(cached) " >&6
   1982 else $as_nop
   1983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1984 /* end confdefs.h.  */
   1985 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1987 #define $2 innocuous_$2
   1988 
   1989 /* System header to define __stub macros and hopefully few prototypes,
   1990    which can conflict with char $2 (); below.  */
   1991 
   1992 #include <limits.h>
   1993 #undef $2
   1994 
   1995 /* Override any GCC internal prototype to avoid an error.
   1996    Use char because int might match the return type of a GCC
   1997    builtin and then its argument prototype would still apply.  */
   1998 #ifdef __cplusplus
   1999 extern "C"
   2000 #endif
   2001 char $2 ();
   2002 /* The GNU C library defines this for functions which it implements
   2003     to always fail with ENOSYS.  Some functions are actually named
   2004     something starting with __ and the normal name is an alias.  */
   2005 #if defined __stub_$2 || defined __stub___$2
   2006 choke me
   2007 #endif
   2008 
   2009 int
   2010 main (void)
   2011 {
   2012 return $2 ();
   2013   ;
   2014   return 0;
   2015 }
   2016 _ACEOF
   2017 if ac_fn_c_try_link "$LINENO"
   2018 then :
   2019   eval "$3=yes"
   2020 else $as_nop
   2021   eval "$3=no"
   2022 fi
   2023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   2024     conftest$ac_exeext conftest.$ac_ext
   2025 fi
   2026 eval ac_res=\$$3
   2027 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2028 printf "%s\n" "$ac_res" >&6; }
   2029   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2030 
   2031 } # ac_fn_c_check_func
   2032 
   2033 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2034 # -------------------------------------------
   2035 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2036 # variable VAR accordingly.
   2037 ac_fn_c_check_type ()
   2038 {
   2039   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2040   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2041 printf %s "checking for $2... " >&6; }
   2042 if eval test \${$3+y}
   2043 then :
   2044   printf %s "(cached) " >&6
   2045 else $as_nop
   2046   eval "$3=no"
   2047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2048 /* end confdefs.h.  */
   2049 $4
   2050 int
   2051 main (void)
   2052 {
   2053 if (sizeof ($2))
   2054 	 return 0;
   2055   ;
   2056   return 0;
   2057 }
   2058 _ACEOF
   2059 if ac_fn_c_try_compile "$LINENO"
   2060 then :
   2061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2062 /* end confdefs.h.  */
   2063 $4
   2064 int
   2065 main (void)
   2066 {
   2067 if (sizeof (($2)))
   2068 	    return 0;
   2069   ;
   2070   return 0;
   2071 }
   2072 _ACEOF
   2073 if ac_fn_c_try_compile "$LINENO"
   2074 then :
   2075 
   2076 else $as_nop
   2077   eval "$3=yes"
   2078 fi
   2079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2080 fi
   2081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2082 fi
   2083 eval ac_res=\$$3
   2084 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2085 printf "%s\n" "$ac_res" >&6; }
   2086   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2087 
   2088 } # ac_fn_c_check_type
   2089 
   2090 # ac_fn_c_try_cpp LINENO
   2091 # ----------------------
   2092 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   2093 ac_fn_c_try_cpp ()
   2094 {
   2095   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2096   if { { ac_try="$ac_cpp conftest.$ac_ext"
   2097 case "(($ac_try" in
   2098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2099   *) ac_try_echo=$ac_try;;
   2100 esac
   2101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2102 printf "%s\n" "$ac_try_echo"; } >&5
   2103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   2104   ac_status=$?
   2105   if test -s conftest.err; then
   2106     grep -v '^ *+' conftest.err >conftest.er1
   2107     cat conftest.er1 >&5
   2108     mv -f conftest.er1 conftest.err
   2109   fi
   2110   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2111   test $ac_status = 0; } > conftest.i && {
   2112 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   2113 	 test ! -s conftest.err
   2114        }
   2115 then :
   2116   ac_retval=0
   2117 else $as_nop
   2118   printf "%s\n" "$as_me: failed program was:" >&5
   2119 sed 's/^/| /' conftest.$ac_ext >&5
   2120 
   2121     ac_retval=1
   2122 fi
   2123   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2124   as_fn_set_status $ac_retval
   2125 
   2126 } # ac_fn_c_try_cpp
   2127 
   2128 # ac_fn_c_try_run LINENO
   2129 # ----------------------
   2130 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
   2131 # executables *can* be run.
   2132 ac_fn_c_try_run ()
   2133 {
   2134   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2135   if { { ac_try="$ac_link"
   2136 case "(($ac_try" in
   2137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2138   *) ac_try_echo=$ac_try;;
   2139 esac
   2140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2141 printf "%s\n" "$ac_try_echo"; } >&5
   2142   (eval "$ac_link") 2>&5
   2143   ac_status=$?
   2144   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2145   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   2146   { { case "(($ac_try" in
   2147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2148   *) ac_try_echo=$ac_try;;
   2149 esac
   2150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2151 printf "%s\n" "$ac_try_echo"; } >&5
   2152   (eval "$ac_try") 2>&5
   2153   ac_status=$?
   2154   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2155   test $ac_status = 0; }; }
   2156 then :
   2157   ac_retval=0
   2158 else $as_nop
   2159   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
   2160        printf "%s\n" "$as_me: failed program was:" >&5
   2161 sed 's/^/| /' conftest.$ac_ext >&5
   2162 
   2163        ac_retval=$ac_status
   2164 fi
   2165   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2166   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2167   as_fn_set_status $ac_retval
   2168 
   2169 } # ac_fn_c_try_run
   2170 
   2171 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2172 # --------------------------------------------
   2173 # Tries to find the compile-time value of EXPR in a program that includes
   2174 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2175 # computed
   2176 ac_fn_c_compute_int ()
   2177 {
   2178   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2179   if test "$cross_compiling" = yes; then
   2180     # Depending upon the size, compute the lo and hi bounds.
   2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2182 /* end confdefs.h.  */
   2183 $4
   2184 int
   2185 main (void)
   2186 {
   2187 static int test_array [1 - 2 * !(($2) >= 0)];
   2188 test_array [0] = 0;
   2189 return test_array [0];
   2190 
   2191   ;
   2192   return 0;
   2193 }
   2194 _ACEOF
   2195 if ac_fn_c_try_compile "$LINENO"
   2196 then :
   2197   ac_lo=0 ac_mid=0
   2198   while :; do
   2199     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2200 /* end confdefs.h.  */
   2201 $4
   2202 int
   2203 main (void)
   2204 {
   2205 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2206 test_array [0] = 0;
   2207 return test_array [0];
   2208 
   2209   ;
   2210   return 0;
   2211 }
   2212 _ACEOF
   2213 if ac_fn_c_try_compile "$LINENO"
   2214 then :
   2215   ac_hi=$ac_mid; break
   2216 else $as_nop
   2217   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2218 			if test $ac_lo -le $ac_mid; then
   2219 			  ac_lo= ac_hi=
   2220 			  break
   2221 			fi
   2222 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2223 fi
   2224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2225   done
   2226 else $as_nop
   2227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2228 /* end confdefs.h.  */
   2229 $4
   2230 int
   2231 main (void)
   2232 {
   2233 static int test_array [1 - 2 * !(($2) < 0)];
   2234 test_array [0] = 0;
   2235 return test_array [0];
   2236 
   2237   ;
   2238   return 0;
   2239 }
   2240 _ACEOF
   2241 if ac_fn_c_try_compile "$LINENO"
   2242 then :
   2243   ac_hi=-1 ac_mid=-1
   2244   while :; do
   2245     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2246 /* end confdefs.h.  */
   2247 $4
   2248 int
   2249 main (void)
   2250 {
   2251 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2252 test_array [0] = 0;
   2253 return test_array [0];
   2254 
   2255   ;
   2256   return 0;
   2257 }
   2258 _ACEOF
   2259 if ac_fn_c_try_compile "$LINENO"
   2260 then :
   2261   ac_lo=$ac_mid; break
   2262 else $as_nop
   2263   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2264 			if test $ac_mid -le $ac_hi; then
   2265 			  ac_lo= ac_hi=
   2266 			  break
   2267 			fi
   2268 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2269 fi
   2270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2271   done
   2272 else $as_nop
   2273   ac_lo= ac_hi=
   2274 fi
   2275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2276 fi
   2277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2278 # Binary search between lo and hi bounds.
   2279 while test "x$ac_lo" != "x$ac_hi"; do
   2280   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2282 /* end confdefs.h.  */
   2283 $4
   2284 int
   2285 main (void)
   2286 {
   2287 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2288 test_array [0] = 0;
   2289 return test_array [0];
   2290 
   2291   ;
   2292   return 0;
   2293 }
   2294 _ACEOF
   2295 if ac_fn_c_try_compile "$LINENO"
   2296 then :
   2297   ac_hi=$ac_mid
   2298 else $as_nop
   2299   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2300 fi
   2301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2302 done
   2303 case $ac_lo in #((
   2304 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2305 '') ac_retval=1 ;;
   2306 esac
   2307   else
   2308     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2309 /* end confdefs.h.  */
   2310 $4
   2311 static long int longval (void) { return $2; }
   2312 static unsigned long int ulongval (void) { return $2; }
   2313 #include <stdio.h>
   2314 #include <stdlib.h>
   2315 int
   2316 main (void)
   2317 {
   2318 
   2319   FILE *f = fopen ("conftest.val", "w");
   2320   if (! f)
   2321     return 1;
   2322   if (($2) < 0)
   2323     {
   2324       long int i = longval ();
   2325       if (i != ($2))
   2326 	return 1;
   2327       fprintf (f, "%ld", i);
   2328     }
   2329   else
   2330     {
   2331       unsigned long int i = ulongval ();
   2332       if (i != ($2))
   2333 	return 1;
   2334       fprintf (f, "%lu", i);
   2335     }
   2336   /* Do not output a trailing newline, as this causes \r\n confusion
   2337      on some platforms.  */
   2338   return ferror (f) || fclose (f) != 0;
   2339 
   2340   ;
   2341   return 0;
   2342 }
   2343 _ACEOF
   2344 if ac_fn_c_try_run "$LINENO"
   2345 then :
   2346   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2347 else $as_nop
   2348   ac_retval=1
   2349 fi
   2350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2351   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2352 rm -f conftest.val
   2353 
   2354   fi
   2355   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2356   as_fn_set_status $ac_retval
   2357 
   2358 } # ac_fn_c_compute_int
   2359 
   2360 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
   2361 # ------------------------------------------------------------------
   2362 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   2363 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
   2364 ac_fn_check_decl ()
   2365 {
   2366   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2367   as_decl_name=`echo $2|sed 's/ *(.*//'`
   2368   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   2369 printf %s "checking whether $as_decl_name is declared... " >&6; }
   2370 if eval test \${$3+y}
   2371 then :
   2372   printf %s "(cached) " >&6
   2373 else $as_nop
   2374   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   2375   eval ac_save_FLAGS=\$$6
   2376   as_fn_append $6 " $5"
   2377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2378 /* end confdefs.h.  */
   2379 $4
   2380 int
   2381 main (void)
   2382 {
   2383 #ifndef $as_decl_name
   2384 #ifdef __cplusplus
   2385   (void) $as_decl_use;
   2386 #else
   2387   (void) $as_decl_name;
   2388 #endif
   2389 #endif
   2390 
   2391   ;
   2392   return 0;
   2393 }
   2394 _ACEOF
   2395 if ac_fn_c_try_compile "$LINENO"
   2396 then :
   2397   eval "$3=yes"
   2398 else $as_nop
   2399   eval "$3=no"
   2400 fi
   2401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2402   eval $6=\$ac_save_FLAGS
   2403 
   2404 fi
   2405 eval ac_res=\$$3
   2406 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2407 printf "%s\n" "$ac_res" >&6; }
   2408   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2409 
   2410 } # ac_fn_check_decl
   2411 
   2412 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2413 # ----------------------------------------------------
   2414 # Tries to find if the field MEMBER exists in type AGGR, after including
   2415 # INCLUDES, setting cache variable VAR accordingly.
   2416 ac_fn_c_check_member ()
   2417 {
   2418   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2419   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2420 printf %s "checking for $2.$3... " >&6; }
   2421 if eval test \${$4+y}
   2422 then :
   2423   printf %s "(cached) " >&6
   2424 else $as_nop
   2425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2426 /* end confdefs.h.  */
   2427 $5
   2428 int
   2429 main (void)
   2430 {
   2431 static $2 ac_aggr;
   2432 if (ac_aggr.$3)
   2433 return 0;
   2434   ;
   2435   return 0;
   2436 }
   2437 _ACEOF
   2438 if ac_fn_c_try_compile "$LINENO"
   2439 then :
   2440   eval "$4=yes"
   2441 else $as_nop
   2442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2443 /* end confdefs.h.  */
   2444 $5
   2445 int
   2446 main (void)
   2447 {
   2448 static $2 ac_aggr;
   2449 if (sizeof ac_aggr.$3)
   2450 return 0;
   2451   ;
   2452   return 0;
   2453 }
   2454 _ACEOF
   2455 if ac_fn_c_try_compile "$LINENO"
   2456 then :
   2457   eval "$4=yes"
   2458 else $as_nop
   2459   eval "$4=no"
   2460 fi
   2461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2462 fi
   2463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   2464 fi
   2465 eval ac_res=\$$4
   2466 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2467 printf "%s\n" "$ac_res" >&6; }
   2468   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2469 
   2470 } # ac_fn_c_check_member
   2471 ac_configure_args_raw=
   2472 for ac_arg
   2473 do
   2474   case $ac_arg in
   2475   *\'*)
   2476     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2477   esac
   2478   as_fn_append ac_configure_args_raw " '$ac_arg'"
   2479 done
   2480 
   2481 case $ac_configure_args_raw in
   2482   *$as_nl*)
   2483     ac_safe_unquote= ;;
   2484   *)
   2485     ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
   2486     ac_unsafe_a="$ac_unsafe_z#~"
   2487     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
   2488     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
   2489 esac
   2490 
   2491 cat >config.log <<_ACEOF
   2492 This file contains any messages produced by compilers while
   2493 running configure, to aid debugging if configure makes a mistake.
   2494 
   2495 It was created by unbound $as_me 1.25.1, which was
   2496 generated by GNU Autoconf 2.71.  Invocation command line was
   2497 
   2498   $ $0$ac_configure_args_raw
   2499 
   2500 _ACEOF
   2501 exec 5>>config.log
   2502 {
   2503 cat <<_ASUNAME
   2504 ## --------- ##
   2505 ## Platform. ##
   2506 ## --------- ##
   2507 
   2508 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2509 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2510 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2511 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2512 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2513 
   2514 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2515 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2516 
   2517 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2518 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2519 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2520 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2521 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2522 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2523 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2524 
   2525 _ASUNAME
   2526 
   2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2528 for as_dir in $PATH
   2529 do
   2530   IFS=$as_save_IFS
   2531   case $as_dir in #(((
   2532     '') as_dir=./ ;;
   2533     */) ;;
   2534     *) as_dir=$as_dir/ ;;
   2535   esac
   2536     printf "%s\n" "PATH: $as_dir"
   2537   done
   2538 IFS=$as_save_IFS
   2539 
   2540 } >&5
   2541 
   2542 cat >&5 <<_ACEOF
   2543 
   2544 
   2545 ## ----------- ##
   2546 ## Core tests. ##
   2547 ## ----------- ##
   2548 
   2549 _ACEOF
   2550 
   2551 
   2552 # Keep a trace of the command line.
   2553 # Strip out --no-create and --no-recursion so they do not pile up.
   2554 # Strip out --silent because we don't want to record it for future runs.
   2555 # Also quote any args containing shell meta-characters.
   2556 # Make two passes to allow for proper duplicate-argument suppression.
   2557 ac_configure_args=
   2558 ac_configure_args0=
   2559 ac_configure_args1=
   2560 ac_must_keep_next=false
   2561 for ac_pass in 1 2
   2562 do
   2563   for ac_arg
   2564   do
   2565     case $ac_arg in
   2566     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2567     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2568     | -silent | --silent | --silen | --sile | --sil)
   2569       continue ;;
   2570     *\'*)
   2571       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2572     esac
   2573     case $ac_pass in
   2574     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2575     2)
   2576       as_fn_append ac_configure_args1 " '$ac_arg'"
   2577       if test $ac_must_keep_next = true; then
   2578 	ac_must_keep_next=false # Got value, back to normal.
   2579       else
   2580 	case $ac_arg in
   2581 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2582 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2583 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2584 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2585 	    case "$ac_configure_args0 " in
   2586 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2587 	    esac
   2588 	    ;;
   2589 	  -* ) ac_must_keep_next=true ;;
   2590 	esac
   2591       fi
   2592       as_fn_append ac_configure_args " '$ac_arg'"
   2593       ;;
   2594     esac
   2595   done
   2596 done
   2597 { ac_configure_args0=; unset ac_configure_args0;}
   2598 { ac_configure_args1=; unset ac_configure_args1;}
   2599 
   2600 # When interrupted or exit'd, cleanup temporary files, and complete
   2601 # config.log.  We remove comments because anyway the quotes in there
   2602 # would cause problems or look ugly.
   2603 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2604 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2605 trap 'exit_status=$?
   2606   # Sanitize IFS.
   2607   IFS=" ""	$as_nl"
   2608   # Save into config.log some information that might help in debugging.
   2609   {
   2610     echo
   2611 
   2612     printf "%s\n" "## ---------------- ##
   2613 ## Cache variables. ##
   2614 ## ---------------- ##"
   2615     echo
   2616     # The following way of writing the cache mishandles newlines in values,
   2617 (
   2618   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2619     eval ac_val=\$$ac_var
   2620     case $ac_val in #(
   2621     *${as_nl}*)
   2622       case $ac_var in #(
   2623       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2624 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2625       esac
   2626       case $ac_var in #(
   2627       _ | IFS | as_nl) ;; #(
   2628       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2629       *) { eval $ac_var=; unset $ac_var;} ;;
   2630       esac ;;
   2631     esac
   2632   done
   2633   (set) 2>&1 |
   2634     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2635     *${as_nl}ac_space=\ *)
   2636       sed -n \
   2637 	"s/'\''/'\''\\\\'\'''\''/g;
   2638 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2639       ;; #(
   2640     *)
   2641       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2642       ;;
   2643     esac |
   2644     sort
   2645 )
   2646     echo
   2647 
   2648     printf "%s\n" "## ----------------- ##
   2649 ## Output variables. ##
   2650 ## ----------------- ##"
   2651     echo
   2652     for ac_var in $ac_subst_vars
   2653     do
   2654       eval ac_val=\$$ac_var
   2655       case $ac_val in
   2656       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2657       esac
   2658       printf "%s\n" "$ac_var='\''$ac_val'\''"
   2659     done | sort
   2660     echo
   2661 
   2662     if test -n "$ac_subst_files"; then
   2663       printf "%s\n" "## ------------------- ##
   2664 ## File substitutions. ##
   2665 ## ------------------- ##"
   2666       echo
   2667       for ac_var in $ac_subst_files
   2668       do
   2669 	eval ac_val=\$$ac_var
   2670 	case $ac_val in
   2671 	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2672 	esac
   2673 	printf "%s\n" "$ac_var='\''$ac_val'\''"
   2674       done | sort
   2675       echo
   2676     fi
   2677 
   2678     if test -s confdefs.h; then
   2679       printf "%s\n" "## ----------- ##
   2680 ## confdefs.h. ##
   2681 ## ----------- ##"
   2682       echo
   2683       cat confdefs.h
   2684       echo
   2685     fi
   2686     test "$ac_signal" != 0 &&
   2687       printf "%s\n" "$as_me: caught signal $ac_signal"
   2688     printf "%s\n" "$as_me: exit $exit_status"
   2689   } >&5
   2690   rm -f core *.core core.conftest.* &&
   2691     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2692     exit $exit_status
   2693 ' 0
   2694 for ac_signal in 1 2 13 15; do
   2695   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2696 done
   2697 ac_signal=0
   2698 
   2699 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2700 rm -f -r conftest* confdefs.h
   2701 
   2702 printf "%s\n" "/* confdefs.h */" > confdefs.h
   2703 
   2704 # Predefined preprocessor variables.
   2705 
   2706 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
   2707 
   2708 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
   2709 
   2710 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
   2711 
   2712 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
   2713 
   2714 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
   2715 
   2716 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
   2717 
   2718 
   2719 # Let the site file select an alternate cache file if it wants to.
   2720 # Prefer an explicitly selected file to automatically selected ones.
   2721 if test -n "$CONFIG_SITE"; then
   2722   ac_site_files="$CONFIG_SITE"
   2723 elif test "x$prefix" != xNONE; then
   2724   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
   2725 else
   2726   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   2727 fi
   2728 
   2729 for ac_site_file in $ac_site_files
   2730 do
   2731   case $ac_site_file in #(
   2732   */*) :
   2733      ;; #(
   2734   *) :
   2735     ac_site_file=./$ac_site_file ;;
   2736 esac
   2737   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
   2738     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2739 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
   2740     sed 's/^/| /' "$ac_site_file" >&5
   2741     . "$ac_site_file" \
   2742       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2743 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   2744 as_fn_error $? "failed to load site script $ac_site_file
   2745 See \`config.log' for more details" "$LINENO" 5; }
   2746   fi
   2747 done
   2748 
   2749 if test -r "$cache_file"; then
   2750   # Some versions of bash will fail to source /dev/null (special files
   2751   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2752   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2753     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2754 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
   2755     case $cache_file in
   2756       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2757       *)                      . "./$cache_file";;
   2758     esac
   2759   fi
   2760 else
   2761   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2762 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
   2763   >$cache_file
   2764 fi
   2765 
   2766 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
   2767 # Test code for whether the C compiler supports C89 (global declarations)
   2768 ac_c_conftest_c89_globals='
   2769 /* Does the compiler advertise C89 conformance?
   2770    Do not test the value of __STDC__, because some compilers set it to 0
   2771    while being otherwise adequately conformant. */
   2772 #if !defined __STDC__
   2773 # error "Compiler does not advertise C89 conformance"
   2774 #endif
   2775 
   2776 #include <stddef.h>
   2777 #include <stdarg.h>
   2778 struct stat;
   2779 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
   2780 struct buf { int x; };
   2781 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
   2782 static char *e (p, i)
   2783      char **p;
   2784      int i;
   2785 {
   2786   return p[i];
   2787 }
   2788 static char *f (char * (*g) (char **, int), char **p, ...)
   2789 {
   2790   char *s;
   2791   va_list v;
   2792   va_start (v,p);
   2793   s = g (p, va_arg (v,int));
   2794   va_end (v);
   2795   return s;
   2796 }
   2797 
   2798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2799    function prototypes and stuff, but not \xHH hex character constants.
   2800    These do not provoke an error unfortunately, instead are silently treated
   2801    as an "x".  The following induces an error, until -std is added to get
   2802    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
   2803    array size at least.  It is necessary to write \x00 == 0 to get something
   2804    that is true only with -std.  */
   2805 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
   2806 
   2807 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2808    inside strings and character constants.  */
   2809 #define FOO(x) '\''x'\''
   2810 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
   2811 
   2812 int test (int i, double x);
   2813 struct s1 {int (*f) (int a);};
   2814 struct s2 {int (*f) (double a);};
   2815 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
   2816                int, int);'
   2817 
   2818 # Test code for whether the C compiler supports C89 (body of main).
   2819 ac_c_conftest_c89_main='
   2820 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
   2821 '
   2822 
   2823 # Test code for whether the C compiler supports C99 (global declarations)
   2824 ac_c_conftest_c99_globals='
   2825 // Does the compiler advertise C99 conformance?
   2826 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
   2827 # error "Compiler does not advertise C99 conformance"
   2828 #endif
   2829 
   2830 #include <stdbool.h>
   2831 extern int puts (const char *);
   2832 extern int printf (const char *, ...);
   2833 extern int dprintf (int, const char *, ...);
   2834 extern void *malloc (size_t);
   2835 
   2836 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   2837 // dprintf is used instead of fprintf to avoid needing to declare
   2838 // FILE and stderr.
   2839 #define debug(...) dprintf (2, __VA_ARGS__)
   2840 #define showlist(...) puts (#__VA_ARGS__)
   2841 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   2842 static void
   2843 test_varargs_macros (void)
   2844 {
   2845   int x = 1234;
   2846   int y = 5678;
   2847   debug ("Flag");
   2848   debug ("X = %d\n", x);
   2849   showlist (The first, second, and third items.);
   2850   report (x>y, "x is %d but y is %d", x, y);
   2851 }
   2852 
   2853 // Check long long types.
   2854 #define BIG64 18446744073709551615ull
   2855 #define BIG32 4294967295ul
   2856 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   2857 #if !BIG_OK
   2858   #error "your preprocessor is broken"
   2859 #endif
   2860 #if BIG_OK
   2861 #else
   2862   #error "your preprocessor is broken"
   2863 #endif
   2864 static long long int bignum = -9223372036854775807LL;
   2865 static unsigned long long int ubignum = BIG64;
   2866 
   2867 struct incomplete_array
   2868 {
   2869   int datasize;
   2870   double data[];
   2871 };
   2872 
   2873 struct named_init {
   2874   int number;
   2875   const wchar_t *name;
   2876   double average;
   2877 };
   2878 
   2879 typedef const char *ccp;
   2880 
   2881 static inline int
   2882 test_restrict (ccp restrict text)
   2883 {
   2884   // See if C++-style comments work.
   2885   // Iterate through items via the restricted pointer.
   2886   // Also check for declarations in for loops.
   2887   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
   2888     continue;
   2889   return 0;
   2890 }
   2891 
   2892 // Check varargs and va_copy.
   2893 static bool
   2894 test_varargs (const char *format, ...)
   2895 {
   2896   va_list args;
   2897   va_start (args, format);
   2898   va_list args_copy;
   2899   va_copy (args_copy, args);
   2900 
   2901   const char *str = "";
   2902   int number = 0;
   2903   float fnumber = 0;
   2904 
   2905   while (*format)
   2906     {
   2907       switch (*format++)
   2908 	{
   2909 	case '\''s'\'': // string
   2910 	  str = va_arg (args_copy, const char *);
   2911 	  break;
   2912 	case '\''d'\'': // int
   2913 	  number = va_arg (args_copy, int);
   2914 	  break;
   2915 	case '\''f'\'': // float
   2916 	  fnumber = va_arg (args_copy, double);
   2917 	  break;
   2918 	default:
   2919 	  break;
   2920 	}
   2921     }
   2922   va_end (args_copy);
   2923   va_end (args);
   2924 
   2925   return *str && number && fnumber;
   2926 }
   2927 '
   2928 
   2929 # Test code for whether the C compiler supports C99 (body of main).
   2930 ac_c_conftest_c99_main='
   2931   // Check bool.
   2932   _Bool success = false;
   2933   success |= (argc != 0);
   2934 
   2935   // Check restrict.
   2936   if (test_restrict ("String literal") == 0)
   2937     success = true;
   2938   char *restrict newvar = "Another string";
   2939 
   2940   // Check varargs.
   2941   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
   2942   test_varargs_macros ();
   2943 
   2944   // Check flexible array members.
   2945   struct incomplete_array *ia =
   2946     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   2947   ia->datasize = 10;
   2948   for (int i = 0; i < ia->datasize; ++i)
   2949     ia->data[i] = i * 1.234;
   2950 
   2951   // Check named initializers.
   2952   struct named_init ni = {
   2953     .number = 34,
   2954     .name = L"Test wide string",
   2955     .average = 543.34343,
   2956   };
   2957 
   2958   ni.number = 58;
   2959 
   2960   int dynamic_array[ni.number];
   2961   dynamic_array[0] = argv[0][0];
   2962   dynamic_array[ni.number - 1] = 543;
   2963 
   2964   // work around unused variable warnings
   2965   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
   2966 	 || dynamic_array[ni.number - 1] != 543);
   2967 '
   2968 
   2969 # Test code for whether the C compiler supports C11 (global declarations)
   2970 ac_c_conftest_c11_globals='
   2971 // Does the compiler advertise C11 conformance?
   2972 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
   2973 # error "Compiler does not advertise C11 conformance"
   2974 #endif
   2975 
   2976 // Check _Alignas.
   2977 char _Alignas (double) aligned_as_double;
   2978 char _Alignas (0) no_special_alignment;
   2979 extern char aligned_as_int;
   2980 char _Alignas (0) _Alignas (int) aligned_as_int;
   2981 
   2982 // Check _Alignof.
   2983 enum
   2984 {
   2985   int_alignment = _Alignof (int),
   2986   int_array_alignment = _Alignof (int[100]),
   2987   char_alignment = _Alignof (char)
   2988 };
   2989 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
   2990 
   2991 // Check _Noreturn.
   2992 int _Noreturn does_not_return (void) { for (;;) continue; }
   2993 
   2994 // Check _Static_assert.
   2995 struct test_static_assert
   2996 {
   2997   int x;
   2998   _Static_assert (sizeof (int) <= sizeof (long int),
   2999                   "_Static_assert does not work in struct");
   3000   long int y;
   3001 };
   3002 
   3003 // Check UTF-8 literals.
   3004 #define u8 syntax error!
   3005 char const utf8_literal[] = u8"happens to be ASCII" "another string";
   3006 
   3007 // Check duplicate typedefs.
   3008 typedef long *long_ptr;
   3009 typedef long int *long_ptr;
   3010 typedef long_ptr long_ptr;
   3011 
   3012 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
   3013 struct anonymous
   3014 {
   3015   union {
   3016     struct { int i; int j; };
   3017     struct { int k; long int l; } w;
   3018   };
   3019   int m;
   3020 } v1;
   3021 '
   3022 
   3023 # Test code for whether the C compiler supports C11 (body of main).
   3024 ac_c_conftest_c11_main='
   3025   _Static_assert ((offsetof (struct anonymous, i)
   3026 		   == offsetof (struct anonymous, w.k)),
   3027 		  "Anonymous union alignment botch");
   3028   v1.i = 2;
   3029   v1.w.k = 5;
   3030   ok |= v1.i != 5;
   3031 '
   3032 
   3033 # Test code for whether the C compiler supports C11 (complete).
   3034 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
   3035 ${ac_c_conftest_c99_globals}
   3036 ${ac_c_conftest_c11_globals}
   3037 
   3038 int
   3039 main (int argc, char **argv)
   3040 {
   3041   int ok = 0;
   3042   ${ac_c_conftest_c89_main}
   3043   ${ac_c_conftest_c99_main}
   3044   ${ac_c_conftest_c11_main}
   3045   return ok;
   3046 }
   3047 "
   3048 
   3049 # Test code for whether the C compiler supports C99 (complete).
   3050 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
   3051 ${ac_c_conftest_c99_globals}
   3052 
   3053 int
   3054 main (int argc, char **argv)
   3055 {
   3056   int ok = 0;
   3057   ${ac_c_conftest_c89_main}
   3058   ${ac_c_conftest_c99_main}
   3059   return ok;
   3060 }
   3061 "
   3062 
   3063 # Test code for whether the C compiler supports C89 (complete).
   3064 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
   3065 
   3066 int
   3067 main (int argc, char **argv)
   3068 {
   3069   int ok = 0;
   3070   ${ac_c_conftest_c89_main}
   3071   return ok;
   3072 }
   3073 "
   3074 
   3075 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
   3076 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
   3077 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
   3078 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
   3079 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
   3080 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
   3081 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
   3082 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
   3083 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
   3084 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
   3085 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
   3086 as_fn_append ac_func_c_list " fork HAVE_FORK"
   3087 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
   3088 
   3089 # Auxiliary files required by this configure script.
   3090 ac_aux_files="ltmain.sh config.guess config.sub"
   3091 
   3092 # Locations in which to look for auxiliary files.
   3093 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
   3094 
   3095 # Search for a directory containing all of the required auxiliary files,
   3096 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
   3097 # If we don't find one directory that contains all the files we need,
   3098 # we report the set of missing files from the *first* directory in
   3099 # $ac_aux_dir_candidates and give up.
   3100 ac_missing_aux_files=""
   3101 ac_first_candidate=:
   3102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
   3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3104 as_found=false
   3105 for as_dir in $ac_aux_dir_candidates
   3106 do
   3107   IFS=$as_save_IFS
   3108   case $as_dir in #(((
   3109     '') as_dir=./ ;;
   3110     */) ;;
   3111     *) as_dir=$as_dir/ ;;
   3112   esac
   3113   as_found=:
   3114 
   3115   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
   3116   ac_aux_dir_found=yes
   3117   ac_install_sh=
   3118   for ac_aux in $ac_aux_files
   3119   do
   3120     # As a special case, if "install-sh" is required, that requirement
   3121     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
   3122     # and $ac_install_sh is set appropriately for whichever one is found.
   3123     if test x"$ac_aux" = x"install-sh"
   3124     then
   3125       if test -f "${as_dir}install-sh"; then
   3126         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
   3127         ac_install_sh="${as_dir}install-sh -c"
   3128       elif test -f "${as_dir}install.sh"; then
   3129         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
   3130         ac_install_sh="${as_dir}install.sh -c"
   3131       elif test -f "${as_dir}shtool"; then
   3132         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
   3133         ac_install_sh="${as_dir}shtool install -c"
   3134       else
   3135         ac_aux_dir_found=no
   3136         if $ac_first_candidate; then
   3137           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
   3138         else
   3139           break
   3140         fi
   3141       fi
   3142     else
   3143       if test -f "${as_dir}${ac_aux}"; then
   3144         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
   3145       else
   3146         ac_aux_dir_found=no
   3147         if $ac_first_candidate; then
   3148           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
   3149         else
   3150           break
   3151         fi
   3152       fi
   3153     fi
   3154   done
   3155   if test "$ac_aux_dir_found" = yes; then
   3156     ac_aux_dir="$as_dir"
   3157     break
   3158   fi
   3159   ac_first_candidate=false
   3160 
   3161   as_found=false
   3162 done
   3163 IFS=$as_save_IFS
   3164 if $as_found
   3165 then :
   3166 
   3167 else $as_nop
   3168   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
   3169 fi
   3170 
   3171 
   3172 # These three variables are undocumented and unsupported,
   3173 # and are intended to be withdrawn in a future Autoconf release.
   3174 # They can cause serious problems if a builder's source tree is in a directory
   3175 # whose full name contains unusual characters.
   3176 if test -f "${ac_aux_dir}config.guess"; then
   3177   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
   3178 fi
   3179 if test -f "${ac_aux_dir}config.sub"; then
   3180   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
   3181 fi
   3182 if test -f "$ac_aux_dir/configure"; then
   3183   ac_configure="$SHELL ${ac_aux_dir}configure"
   3184 fi
   3185 
   3186 # Check that the precious variables saved in the cache have kept the same
   3187 # value.
   3188 ac_cache_corrupted=false
   3189 for ac_var in $ac_precious_vars; do
   3190   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   3191   eval ac_new_set=\$ac_env_${ac_var}_set
   3192   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   3193   eval ac_new_val=\$ac_env_${ac_var}_value
   3194   case $ac_old_set,$ac_new_set in
   3195     set,)
   3196       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   3197 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   3198       ac_cache_corrupted=: ;;
   3199     ,set)
   3200       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   3201 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   3202       ac_cache_corrupted=: ;;
   3203     ,);;
   3204     *)
   3205       if test "x$ac_old_val" != "x$ac_new_val"; then
   3206 	# differences in whitespace do not lead to failure.
   3207 	ac_old_val_w=`echo x $ac_old_val`
   3208 	ac_new_val_w=`echo x $ac_new_val`
   3209 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   3210 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   3211 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   3212 	  ac_cache_corrupted=:
   3213 	else
   3214 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   3215 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   3216 	  eval $ac_var=\$ac_old_val
   3217 	fi
   3218 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   3219 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
   3220 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   3221 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
   3222       fi;;
   3223   esac
   3224   # Pass precious variables to config.status.
   3225   if test "$ac_new_set" = set; then
   3226     case $ac_new_val in
   3227     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   3228     *) ac_arg=$ac_var=$ac_new_val ;;
   3229     esac
   3230     case " $ac_configure_args " in
   3231       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   3232       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   3233     esac
   3234   fi
   3235 done
   3236 if $ac_cache_corrupted; then
   3237   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3238 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3239   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   3240 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
   3241   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
   3242 	    and start over" "$LINENO" 5
   3243 fi
   3244 ## -------------------- ##
   3245 ## Main body of script. ##
   3246 ## -------------------- ##
   3247 
   3248 ac_ext=c
   3249 ac_cpp='$CPP $CPPFLAGS'
   3250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3253 
   3254 
   3255 UNBOUND_VERSION_MAJOR=1
   3256 
   3257 UNBOUND_VERSION_MINOR=25
   3258 
   3259 UNBOUND_VERSION_MICRO=1
   3260 
   3261 
   3262 LIBUNBOUND_CURRENT=9
   3263 LIBUNBOUND_REVISION=37
   3264 LIBUNBOUND_AGE=1
   3265 # 1.0.0 had 0:12:0
   3266 # 1.0.1 had 0:13:0
   3267 # 1.0.2 had 0:14:0
   3268 # 1.1.0 had 0:15:0
   3269 # 1.1.1 had 0:16:0
   3270 # 1.2.0 had 0:17:0
   3271 # 1.2.1 had 0:18:0
   3272 # 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
   3273 # 1.3.1 had 1:1:0
   3274 # 1.3.2 had 1:2:0
   3275 # 1.3.3 had 1:3:0
   3276 # 1.3.4 had 1:4:0
   3277 # 1.4.0-snapshots had 1:5:0
   3278 # 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
   3279 # 1.4.1 had 2:1:0
   3280 # 1.4.2 had 2:2:0
   3281 # 1.4.3 had 2:3:0
   3282 # 1.4.4 had 2:4:0
   3283 # 1.4.5 had 2:5:0
   3284 # 1.4.6 had 2:6:0
   3285 # 1.4.7 had 2:7:0
   3286 # 1.4.8 had 2:8:0
   3287 # 1.4.9 had 2:9:0
   3288 # 1.4.10 had 2:10:0
   3289 # 1.4.11 had 2:11:0
   3290 # 1.4.12 had 2:12:0
   3291 # 1.4.13 had 2:13:0
   3292 # and 1.4.13p1 and 1.4.13.p2
   3293 # 1.4.14 had 2:14:0
   3294 # 1.4.15 had 3:0:1 # adds ub_version()
   3295 # 1.4.16 had 3:1:1
   3296 # 1.4.17 had 3:2:1
   3297 # 1.4.18 had 3:3:1
   3298 # 1.4.19 had 3:4:1
   3299 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
   3300 # 1.4.21 had 4:1:2
   3301 # 1.4.22 had 4:1:2
   3302 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
   3303 # 1.5.1 had 5:3:3
   3304 # 1.5.2 had 5:5:3
   3305 # 1.5.3 had 5:6:3
   3306 # 1.5.4 had 5:7:3
   3307 # 1.5.5 had 5:8:3
   3308 # 1.5.6 had 5:9:3
   3309 # 1.5.7 had 5:10:3
   3310 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
   3311 # 1.5.9 had 6:1:4
   3312 # 1.5.10 had 6:2:4
   3313 # 1.6.0 had 6:3:4
   3314 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
   3315 # 1.6.2 had 7:1:5
   3316 # 1.6.3 had 7:2:5
   3317 # 1.6.4 had 7:3:5
   3318 # 1.6.5 had 7:4:5
   3319 # 1.6.6 had 7:5:5
   3320 # 1.6.7 had 7:6:5
   3321 # 1.6.8 had 7:7:5
   3322 # 1.7.0 had 7:8:5
   3323 # 1.7.1 had 7:9:5
   3324 # 1.7.2 had 7:10:5
   3325 # 1.7.3 had 7:11:5
   3326 # 1.8.0 had 8:0:0 # changes the event callback function signature
   3327 # 1.8.1 had 8:1:0
   3328 # 1.8.2 had 8:2:0
   3329 # 1.8.3 had 8:3:0
   3330 # 1.9.0 had 9:0:1 # add ub_ctx_set_tls
   3331 # 1.9.1 had 9:1:1
   3332 # 1.9.2 had 9:2:1
   3333 # 1.9.3 had 9:3:1
   3334 # 1.9.4 had 9:4:1
   3335 # 1.9.5 had 9:5:1
   3336 # 1.9.6 had 9:6:1
   3337 # 1.10.0 had 9:7:1
   3338 # 1.10.1 had 9:8:1
   3339 # 1.11.0 had 9:9:1
   3340 # 1.12.0 had 9:10:1
   3341 # 1.13.0 had 9:11:1
   3342 # 1.13.1 had 9:12:1
   3343 # 1.13.2 had 9:13:1
   3344 # 1.14.0 had 9:14:1
   3345 # 1.15.0 had 9:15:1
   3346 # 1.16.0 had 9:16:1
   3347 # 1.16.1 had 9:17:1
   3348 # 1.16.2 had 9:18:1
   3349 # 1.16.3 had 9:19:1
   3350 # 1.17.0 had 9:20:1
   3351 # 1.17.1 had 9:21:1
   3352 # 1.18.0 had 9:22:1
   3353 # 1.19.0 had 9:23:1
   3354 # 1.19.1 had 9:24:1
   3355 # 1.19.2 had 9:25:1
   3356 # 1.19.3 had 9:26:1
   3357 # 1.20.0 had 9:27:1
   3358 # 1.21.0 had 9:28:1
   3359 # 1.21.1 had 9:29:1
   3360 # 1.22.0 had 9:30:1
   3361 # 1.23.0 had 9:31:1
   3362 # 1.23.1 had 9:32:1
   3363 # 1.24.0 had 9:33:1
   3364 # 1.24.1 had 9:34:1
   3365 # 1.24.2 had 9:35:1
   3366 # 1.25.0 had 9:36:1
   3367 # 1.25.1 had 9:37:1
   3368 
   3369 #   Current  -- the number of the binary API that we're implementing
   3370 #   Revision -- which iteration of the implementation of the binary
   3371 #               API are we supplying?
   3372 #   Age      -- How many previous binary API versions do we also
   3373 #               support?
   3374 #
   3375 # If we release a new version that does not change the binary API,
   3376 # increment Revision.
   3377 #
   3378 # If we release a new version that changes the binary API, but does
   3379 # not break programs compiled against the old binary API, increment
   3380 # Current and Age.  Set Revision to 0, since this is the first
   3381 # implementation of the new API.
   3382 #
   3383 # Otherwise, we're changing the binary API and breaking backward
   3384 # compatibility with old binaries.  Increment Current.  Set Age to 0,
   3385 # since we're backward compatible with no previous APIs.  Set Revision
   3386 # to 0 too.
   3387 
   3388 
   3389 
   3390 
   3391 
   3392 cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
   3393 
   3394 printf "%s\n" "#define CONFCMDLINE \"$cmdln\"" >>confdefs.h
   3395 
   3396 
   3397 CFLAGS="$CFLAGS"
   3398 
   3399 
   3400 
   3401 
   3402 
   3403 
   3404 
   3405 
   3406 
   3407 ac_ext=c
   3408 ac_cpp='$CPP $CPPFLAGS'
   3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3412 if test -n "$ac_tool_prefix"; then
   3413   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3416 printf %s "checking for $ac_word... " >&6; }
   3417 if test ${ac_cv_prog_CC+y}
   3418 then :
   3419   printf %s "(cached) " >&6
   3420 else $as_nop
   3421   if test -n "$CC"; then
   3422   ac_cv_prog_CC="$CC" # Let the user override the test.
   3423 else
   3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3425 for as_dir in $PATH
   3426 do
   3427   IFS=$as_save_IFS
   3428   case $as_dir in #(((
   3429     '') as_dir=./ ;;
   3430     */) ;;
   3431     *) as_dir=$as_dir/ ;;
   3432   esac
   3433     for ac_exec_ext in '' $ac_executable_extensions; do
   3434   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3435     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3436     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3437     break 2
   3438   fi
   3439 done
   3440   done
   3441 IFS=$as_save_IFS
   3442 
   3443 fi
   3444 fi
   3445 CC=$ac_cv_prog_CC
   3446 if test -n "$CC"; then
   3447   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3448 printf "%s\n" "$CC" >&6; }
   3449 else
   3450   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3451 printf "%s\n" "no" >&6; }
   3452 fi
   3453 
   3454 
   3455 fi
   3456 if test -z "$ac_cv_prog_CC"; then
   3457   ac_ct_CC=$CC
   3458   # Extract the first word of "gcc", so it can be a program name with args.
   3459 set dummy gcc; ac_word=$2
   3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3461 printf %s "checking for $ac_word... " >&6; }
   3462 if test ${ac_cv_prog_ac_ct_CC+y}
   3463 then :
   3464   printf %s "(cached) " >&6
   3465 else $as_nop
   3466   if test -n "$ac_ct_CC"; then
   3467   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3468 else
   3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3470 for as_dir in $PATH
   3471 do
   3472   IFS=$as_save_IFS
   3473   case $as_dir in #(((
   3474     '') as_dir=./ ;;
   3475     */) ;;
   3476     *) as_dir=$as_dir/ ;;
   3477   esac
   3478     for ac_exec_ext in '' $ac_executable_extensions; do
   3479   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3480     ac_cv_prog_ac_ct_CC="gcc"
   3481     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3482     break 2
   3483   fi
   3484 done
   3485   done
   3486 IFS=$as_save_IFS
   3487 
   3488 fi
   3489 fi
   3490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3491 if test -n "$ac_ct_CC"; then
   3492   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3493 printf "%s\n" "$ac_ct_CC" >&6; }
   3494 else
   3495   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3496 printf "%s\n" "no" >&6; }
   3497 fi
   3498 
   3499   if test "x$ac_ct_CC" = x; then
   3500     CC=""
   3501   else
   3502     case $cross_compiling:$ac_tool_warned in
   3503 yes:)
   3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3505 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3506 ac_tool_warned=yes ;;
   3507 esac
   3508     CC=$ac_ct_CC
   3509   fi
   3510 else
   3511   CC="$ac_cv_prog_CC"
   3512 fi
   3513 
   3514 if test -z "$CC"; then
   3515           if test -n "$ac_tool_prefix"; then
   3516     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3517 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3519 printf %s "checking for $ac_word... " >&6; }
   3520 if test ${ac_cv_prog_CC+y}
   3521 then :
   3522   printf %s "(cached) " >&6
   3523 else $as_nop
   3524   if test -n "$CC"; then
   3525   ac_cv_prog_CC="$CC" # Let the user override the test.
   3526 else
   3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3528 for as_dir in $PATH
   3529 do
   3530   IFS=$as_save_IFS
   3531   case $as_dir in #(((
   3532     '') as_dir=./ ;;
   3533     */) ;;
   3534     *) as_dir=$as_dir/ ;;
   3535   esac
   3536     for ac_exec_ext in '' $ac_executable_extensions; do
   3537   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3538     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3539     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3540     break 2
   3541   fi
   3542 done
   3543   done
   3544 IFS=$as_save_IFS
   3545 
   3546 fi
   3547 fi
   3548 CC=$ac_cv_prog_CC
   3549 if test -n "$CC"; then
   3550   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3551 printf "%s\n" "$CC" >&6; }
   3552 else
   3553   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3554 printf "%s\n" "no" >&6; }
   3555 fi
   3556 
   3557 
   3558   fi
   3559 fi
   3560 if test -z "$CC"; then
   3561   # Extract the first word of "cc", so it can be a program name with args.
   3562 set dummy cc; ac_word=$2
   3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3564 printf %s "checking for $ac_word... " >&6; }
   3565 if test ${ac_cv_prog_CC+y}
   3566 then :
   3567   printf %s "(cached) " >&6
   3568 else $as_nop
   3569   if test -n "$CC"; then
   3570   ac_cv_prog_CC="$CC" # Let the user override the test.
   3571 else
   3572   ac_prog_rejected=no
   3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3574 for as_dir in $PATH
   3575 do
   3576   IFS=$as_save_IFS
   3577   case $as_dir in #(((
   3578     '') as_dir=./ ;;
   3579     */) ;;
   3580     *) as_dir=$as_dir/ ;;
   3581   esac
   3582     for ac_exec_ext in '' $ac_executable_extensions; do
   3583   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3584     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3585        ac_prog_rejected=yes
   3586        continue
   3587      fi
   3588     ac_cv_prog_CC="cc"
   3589     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3590     break 2
   3591   fi
   3592 done
   3593   done
   3594 IFS=$as_save_IFS
   3595 
   3596 if test $ac_prog_rejected = yes; then
   3597   # We found a bogon in the path, so make sure we never use it.
   3598   set dummy $ac_cv_prog_CC
   3599   shift
   3600   if test $# != 0; then
   3601     # We chose a different compiler from the bogus one.
   3602     # However, it has the same basename, so the bogon will be chosen
   3603     # first if we set CC to just the basename; use the full file name.
   3604     shift
   3605     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
   3606   fi
   3607 fi
   3608 fi
   3609 fi
   3610 CC=$ac_cv_prog_CC
   3611 if test -n "$CC"; then
   3612   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3613 printf "%s\n" "$CC" >&6; }
   3614 else
   3615   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3616 printf "%s\n" "no" >&6; }
   3617 fi
   3618 
   3619 
   3620 fi
   3621 if test -z "$CC"; then
   3622   if test -n "$ac_tool_prefix"; then
   3623   for ac_prog in cl.exe
   3624   do
   3625     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3628 printf %s "checking for $ac_word... " >&6; }
   3629 if test ${ac_cv_prog_CC+y}
   3630 then :
   3631   printf %s "(cached) " >&6
   3632 else $as_nop
   3633   if test -n "$CC"; then
   3634   ac_cv_prog_CC="$CC" # Let the user override the test.
   3635 else
   3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3637 for as_dir in $PATH
   3638 do
   3639   IFS=$as_save_IFS
   3640   case $as_dir in #(((
   3641     '') as_dir=./ ;;
   3642     */) ;;
   3643     *) as_dir=$as_dir/ ;;
   3644   esac
   3645     for ac_exec_ext in '' $ac_executable_extensions; do
   3646   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3647     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3648     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3649     break 2
   3650   fi
   3651 done
   3652   done
   3653 IFS=$as_save_IFS
   3654 
   3655 fi
   3656 fi
   3657 CC=$ac_cv_prog_CC
   3658 if test -n "$CC"; then
   3659   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3660 printf "%s\n" "$CC" >&6; }
   3661 else
   3662   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3663 printf "%s\n" "no" >&6; }
   3664 fi
   3665 
   3666 
   3667     test -n "$CC" && break
   3668   done
   3669 fi
   3670 if test -z "$CC"; then
   3671   ac_ct_CC=$CC
   3672   for ac_prog in cl.exe
   3673 do
   3674   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3675 set dummy $ac_prog; ac_word=$2
   3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3677 printf %s "checking for $ac_word... " >&6; }
   3678 if test ${ac_cv_prog_ac_ct_CC+y}
   3679 then :
   3680   printf %s "(cached) " >&6
   3681 else $as_nop
   3682   if test -n "$ac_ct_CC"; then
   3683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3684 else
   3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3686 for as_dir in $PATH
   3687 do
   3688   IFS=$as_save_IFS
   3689   case $as_dir in #(((
   3690     '') as_dir=./ ;;
   3691     */) ;;
   3692     *) as_dir=$as_dir/ ;;
   3693   esac
   3694     for ac_exec_ext in '' $ac_executable_extensions; do
   3695   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3696     ac_cv_prog_ac_ct_CC="$ac_prog"
   3697     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3698     break 2
   3699   fi
   3700 done
   3701   done
   3702 IFS=$as_save_IFS
   3703 
   3704 fi
   3705 fi
   3706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3707 if test -n "$ac_ct_CC"; then
   3708   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3709 printf "%s\n" "$ac_ct_CC" >&6; }
   3710 else
   3711   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3712 printf "%s\n" "no" >&6; }
   3713 fi
   3714 
   3715 
   3716   test -n "$ac_ct_CC" && break
   3717 done
   3718 
   3719   if test "x$ac_ct_CC" = x; then
   3720     CC=""
   3721   else
   3722     case $cross_compiling:$ac_tool_warned in
   3723 yes:)
   3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3725 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3726 ac_tool_warned=yes ;;
   3727 esac
   3728     CC=$ac_ct_CC
   3729   fi
   3730 fi
   3731 
   3732 fi
   3733 if test -z "$CC"; then
   3734   if test -n "$ac_tool_prefix"; then
   3735   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
   3736 set dummy ${ac_tool_prefix}clang; ac_word=$2
   3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3738 printf %s "checking for $ac_word... " >&6; }
   3739 if test ${ac_cv_prog_CC+y}
   3740 then :
   3741   printf %s "(cached) " >&6
   3742 else $as_nop
   3743   if test -n "$CC"; then
   3744   ac_cv_prog_CC="$CC" # Let the user override the test.
   3745 else
   3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3747 for as_dir in $PATH
   3748 do
   3749   IFS=$as_save_IFS
   3750   case $as_dir in #(((
   3751     '') as_dir=./ ;;
   3752     */) ;;
   3753     *) as_dir=$as_dir/ ;;
   3754   esac
   3755     for ac_exec_ext in '' $ac_executable_extensions; do
   3756   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3757     ac_cv_prog_CC="${ac_tool_prefix}clang"
   3758     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3759     break 2
   3760   fi
   3761 done
   3762   done
   3763 IFS=$as_save_IFS
   3764 
   3765 fi
   3766 fi
   3767 CC=$ac_cv_prog_CC
   3768 if test -n "$CC"; then
   3769   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3770 printf "%s\n" "$CC" >&6; }
   3771 else
   3772   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3773 printf "%s\n" "no" >&6; }
   3774 fi
   3775 
   3776 
   3777 fi
   3778 if test -z "$ac_cv_prog_CC"; then
   3779   ac_ct_CC=$CC
   3780   # Extract the first word of "clang", so it can be a program name with args.
   3781 set dummy clang; ac_word=$2
   3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3783 printf %s "checking for $ac_word... " >&6; }
   3784 if test ${ac_cv_prog_ac_ct_CC+y}
   3785 then :
   3786   printf %s "(cached) " >&6
   3787 else $as_nop
   3788   if test -n "$ac_ct_CC"; then
   3789   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3790 else
   3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3792 for as_dir in $PATH
   3793 do
   3794   IFS=$as_save_IFS
   3795   case $as_dir in #(((
   3796     '') as_dir=./ ;;
   3797     */) ;;
   3798     *) as_dir=$as_dir/ ;;
   3799   esac
   3800     for ac_exec_ext in '' $ac_executable_extensions; do
   3801   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3802     ac_cv_prog_ac_ct_CC="clang"
   3803     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3804     break 2
   3805   fi
   3806 done
   3807   done
   3808 IFS=$as_save_IFS
   3809 
   3810 fi
   3811 fi
   3812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3813 if test -n "$ac_ct_CC"; then
   3814   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3815 printf "%s\n" "$ac_ct_CC" >&6; }
   3816 else
   3817   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3818 printf "%s\n" "no" >&6; }
   3819 fi
   3820 
   3821   if test "x$ac_ct_CC" = x; then
   3822     CC=""
   3823   else
   3824     case $cross_compiling:$ac_tool_warned in
   3825 yes:)
   3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3827 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3828 ac_tool_warned=yes ;;
   3829 esac
   3830     CC=$ac_ct_CC
   3831   fi
   3832 else
   3833   CC="$ac_cv_prog_CC"
   3834 fi
   3835 
   3836 fi
   3837 
   3838 
   3839 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3840 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3841 as_fn_error $? "no acceptable C compiler found in \$PATH
   3842 See \`config.log' for more details" "$LINENO" 5; }
   3843 
   3844 # Provide some information about the compiler.
   3845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3846 set X $ac_compile
   3847 ac_compiler=$2
   3848 for ac_option in --version -v -V -qversion -version; do
   3849   { { ac_try="$ac_compiler $ac_option >&5"
   3850 case "(($ac_try" in
   3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3852   *) ac_try_echo=$ac_try;;
   3853 esac
   3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3855 printf "%s\n" "$ac_try_echo"; } >&5
   3856   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3857   ac_status=$?
   3858   if test -s conftest.err; then
   3859     sed '10a\
   3860 ... rest of stderr output deleted ...
   3861          10q' conftest.err >conftest.er1
   3862     cat conftest.er1 >&5
   3863   fi
   3864   rm -f conftest.er1 conftest.err
   3865   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3866   test $ac_status = 0; }
   3867 done
   3868 
   3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3870 /* end confdefs.h.  */
   3871 
   3872 int
   3873 main (void)
   3874 {
   3875 
   3876   ;
   3877   return 0;
   3878 }
   3879 _ACEOF
   3880 ac_clean_files_save=$ac_clean_files
   3881 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3882 # Try to create an executable without -o first, disregard a.out.
   3883 # It will help us diagnose broken compilers, and finding out an intuition
   3884 # of exeext.
   3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3886 printf %s "checking whether the C compiler works... " >&6; }
   3887 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3888 
   3889 # The possible output files:
   3890 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3891 
   3892 ac_rmfiles=
   3893 for ac_file in $ac_files
   3894 do
   3895   case $ac_file in
   3896     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3897     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3898   esac
   3899 done
   3900 rm -f $ac_rmfiles
   3901 
   3902 if { { ac_try="$ac_link_default"
   3903 case "(($ac_try" in
   3904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3905   *) ac_try_echo=$ac_try;;
   3906 esac
   3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3908 printf "%s\n" "$ac_try_echo"; } >&5
   3909   (eval "$ac_link_default") 2>&5
   3910   ac_status=$?
   3911   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3912   test $ac_status = 0; }
   3913 then :
   3914   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3915 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3916 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3917 # so that the user can short-circuit this test for compilers unknown to
   3918 # Autoconf.
   3919 for ac_file in $ac_files ''
   3920 do
   3921   test -f "$ac_file" || continue
   3922   case $ac_file in
   3923     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3924 	;;
   3925     [ab].out )
   3926 	# We found the default executable, but exeext='' is most
   3927 	# certainly right.
   3928 	break;;
   3929     *.* )
   3930 	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
   3931 	then :; else
   3932 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3933 	fi
   3934 	# We set ac_cv_exeext here because the later test for it is not
   3935 	# safe: cross compilers may not add the suffix if given an `-o'
   3936 	# argument, so we may need to know it at that point already.
   3937 	# Even if this section looks crufty: it has the advantage of
   3938 	# actually working.
   3939 	break;;
   3940     * )
   3941 	break;;
   3942   esac
   3943 done
   3944 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3945 
   3946 else $as_nop
   3947   ac_file=''
   3948 fi
   3949 if test -z "$ac_file"
   3950 then :
   3951   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3952 printf "%s\n" "no" >&6; }
   3953 printf "%s\n" "$as_me: failed program was:" >&5
   3954 sed 's/^/| /' conftest.$ac_ext >&5
   3955 
   3956 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3957 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3958 as_fn_error 77 "C compiler cannot create executables
   3959 See \`config.log' for more details" "$LINENO" 5; }
   3960 else $as_nop
   3961   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3962 printf "%s\n" "yes" >&6; }
   3963 fi
   3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3965 printf %s "checking for C compiler default output file name... " >&6; }
   3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3967 printf "%s\n" "$ac_file" >&6; }
   3968 ac_exeext=$ac_cv_exeext
   3969 
   3970 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3971 ac_clean_files=$ac_clean_files_save
   3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3973 printf %s "checking for suffix of executables... " >&6; }
   3974 if { { ac_try="$ac_link"
   3975 case "(($ac_try" in
   3976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3977   *) ac_try_echo=$ac_try;;
   3978 esac
   3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3980 printf "%s\n" "$ac_try_echo"; } >&5
   3981   (eval "$ac_link") 2>&5
   3982   ac_status=$?
   3983   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3984   test $ac_status = 0; }
   3985 then :
   3986   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3987 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3988 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3989 # `rm'.
   3990 for ac_file in conftest.exe conftest conftest.*; do
   3991   test -f "$ac_file" || continue
   3992   case $ac_file in
   3993     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3994     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3995 	  break;;
   3996     * ) break;;
   3997   esac
   3998 done
   3999 else $as_nop
   4000   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4001 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   4002 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   4003 See \`config.log' for more details" "$LINENO" 5; }
   4004 fi
   4005 rm -f conftest conftest$ac_cv_exeext
   4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   4007 printf "%s\n" "$ac_cv_exeext" >&6; }
   4008 
   4009 rm -f conftest.$ac_ext
   4010 EXEEXT=$ac_cv_exeext
   4011 ac_exeext=$EXEEXT
   4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4013 /* end confdefs.h.  */
   4014 #include <stdio.h>
   4015 int
   4016 main (void)
   4017 {
   4018 FILE *f = fopen ("conftest.out", "w");
   4019  return ferror (f) || fclose (f) != 0;
   4020 
   4021   ;
   4022   return 0;
   4023 }
   4024 _ACEOF
   4025 ac_clean_files="$ac_clean_files conftest.out"
   4026 # Check that the compiler produces executables we can run.  If not, either
   4027 # the compiler is broken, or we cross compile.
   4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   4029 printf %s "checking whether we are cross compiling... " >&6; }
   4030 if test "$cross_compiling" != yes; then
   4031   { { ac_try="$ac_link"
   4032 case "(($ac_try" in
   4033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4034   *) ac_try_echo=$ac_try;;
   4035 esac
   4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4037 printf "%s\n" "$ac_try_echo"; } >&5
   4038   (eval "$ac_link") 2>&5
   4039   ac_status=$?
   4040   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4041   test $ac_status = 0; }
   4042   if { ac_try='./conftest$ac_cv_exeext'
   4043   { { case "(($ac_try" in
   4044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4045   *) ac_try_echo=$ac_try;;
   4046 esac
   4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4048 printf "%s\n" "$ac_try_echo"; } >&5
   4049   (eval "$ac_try") 2>&5
   4050   ac_status=$?
   4051   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4052   test $ac_status = 0; }; }; then
   4053     cross_compiling=no
   4054   else
   4055     if test "$cross_compiling" = maybe; then
   4056 	cross_compiling=yes
   4057     else
   4058 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4059 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   4060 as_fn_error 77 "cannot run C compiled programs.
   4061 If you meant to cross compile, use \`--host'.
   4062 See \`config.log' for more details" "$LINENO" 5; }
   4063     fi
   4064   fi
   4065 fi
   4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   4067 printf "%s\n" "$cross_compiling" >&6; }
   4068 
   4069 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   4070 ac_clean_files=$ac_clean_files_save
   4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   4072 printf %s "checking for suffix of object files... " >&6; }
   4073 if test ${ac_cv_objext+y}
   4074 then :
   4075   printf %s "(cached) " >&6
   4076 else $as_nop
   4077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4078 /* end confdefs.h.  */
   4079 
   4080 int
   4081 main (void)
   4082 {
   4083 
   4084   ;
   4085   return 0;
   4086 }
   4087 _ACEOF
   4088 rm -f conftest.o conftest.obj
   4089 if { { ac_try="$ac_compile"
   4090 case "(($ac_try" in
   4091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4092   *) ac_try_echo=$ac_try;;
   4093 esac
   4094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4095 printf "%s\n" "$ac_try_echo"; } >&5
   4096   (eval "$ac_compile") 2>&5
   4097   ac_status=$?
   4098   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4099   test $ac_status = 0; }
   4100 then :
   4101   for ac_file in conftest.o conftest.obj conftest.*; do
   4102   test -f "$ac_file" || continue;
   4103   case $ac_file in
   4104     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   4105     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   4106        break;;
   4107   esac
   4108 done
   4109 else $as_nop
   4110   printf "%s\n" "$as_me: failed program was:" >&5
   4111 sed 's/^/| /' conftest.$ac_ext >&5
   4112 
   4113 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4114 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   4115 as_fn_error $? "cannot compute suffix of object files: cannot compile
   4116 See \`config.log' for more details" "$LINENO" 5; }
   4117 fi
   4118 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   4119 fi
   4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   4121 printf "%s\n" "$ac_cv_objext" >&6; }
   4122 OBJEXT=$ac_cv_objext
   4123 ac_objext=$OBJEXT
   4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
   4125 printf %s "checking whether the compiler supports GNU C... " >&6; }
   4126 if test ${ac_cv_c_compiler_gnu+y}
   4127 then :
   4128   printf %s "(cached) " >&6
   4129 else $as_nop
   4130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4131 /* end confdefs.h.  */
   4132 
   4133 int
   4134 main (void)
   4135 {
   4136 #ifndef __GNUC__
   4137        choke me
   4138 #endif
   4139 
   4140   ;
   4141   return 0;
   4142 }
   4143 _ACEOF
   4144 if ac_fn_c_try_compile "$LINENO"
   4145 then :
   4146   ac_compiler_gnu=yes
   4147 else $as_nop
   4148   ac_compiler_gnu=no
   4149 fi
   4150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4151 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   4152 
   4153 fi
   4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   4155 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
   4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4157 
   4158 if test $ac_compiler_gnu = yes; then
   4159   GCC=yes
   4160 else
   4161   GCC=
   4162 fi
   4163 ac_test_CFLAGS=${CFLAGS+y}
   4164 ac_save_CFLAGS=$CFLAGS
   4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   4166 printf %s "checking whether $CC accepts -g... " >&6; }
   4167 if test ${ac_cv_prog_cc_g+y}
   4168 then :
   4169   printf %s "(cached) " >&6
   4170 else $as_nop
   4171   ac_save_c_werror_flag=$ac_c_werror_flag
   4172    ac_c_werror_flag=yes
   4173    ac_cv_prog_cc_g=no
   4174    CFLAGS="-g"
   4175    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4176 /* end confdefs.h.  */
   4177 
   4178 int
   4179 main (void)
   4180 {
   4181 
   4182   ;
   4183   return 0;
   4184 }
   4185 _ACEOF
   4186 if ac_fn_c_try_compile "$LINENO"
   4187 then :
   4188   ac_cv_prog_cc_g=yes
   4189 else $as_nop
   4190   CFLAGS=""
   4191       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4192 /* end confdefs.h.  */
   4193 
   4194 int
   4195 main (void)
   4196 {
   4197 
   4198   ;
   4199   return 0;
   4200 }
   4201 _ACEOF
   4202 if ac_fn_c_try_compile "$LINENO"
   4203 then :
   4204 
   4205 else $as_nop
   4206   ac_c_werror_flag=$ac_save_c_werror_flag
   4207 	 CFLAGS="-g"
   4208 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4209 /* end confdefs.h.  */
   4210 
   4211 int
   4212 main (void)
   4213 {
   4214 
   4215   ;
   4216   return 0;
   4217 }
   4218 _ACEOF
   4219 if ac_fn_c_try_compile "$LINENO"
   4220 then :
   4221   ac_cv_prog_cc_g=yes
   4222 fi
   4223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4224 fi
   4225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4226 fi
   4227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4228    ac_c_werror_flag=$ac_save_c_werror_flag
   4229 fi
   4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   4231 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
   4232 if test $ac_test_CFLAGS; then
   4233   CFLAGS=$ac_save_CFLAGS
   4234 elif test $ac_cv_prog_cc_g = yes; then
   4235   if test "$GCC" = yes; then
   4236     CFLAGS="-g -O2"
   4237   else
   4238     CFLAGS="-g"
   4239   fi
   4240 else
   4241   if test "$GCC" = yes; then
   4242     CFLAGS="-O2"
   4243   else
   4244     CFLAGS=
   4245   fi
   4246 fi
   4247 ac_prog_cc_stdc=no
   4248 if test x$ac_prog_cc_stdc = xno
   4249 then :
   4250   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
   4251 printf %s "checking for $CC option to enable C11 features... " >&6; }
   4252 if test ${ac_cv_prog_cc_c11+y}
   4253 then :
   4254   printf %s "(cached) " >&6
   4255 else $as_nop
   4256   ac_cv_prog_cc_c11=no
   4257 ac_save_CC=$CC
   4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4259 /* end confdefs.h.  */
   4260 $ac_c_conftest_c11_program
   4261 _ACEOF
   4262 for ac_arg in '' -std=gnu11
   4263 do
   4264   CC="$ac_save_CC $ac_arg"
   4265   if ac_fn_c_try_compile "$LINENO"
   4266 then :
   4267   ac_cv_prog_cc_c11=$ac_arg
   4268 fi
   4269 rm -f core conftest.err conftest.$ac_objext conftest.beam
   4270   test "x$ac_cv_prog_cc_c11" != "xno" && break
   4271 done
   4272 rm -f conftest.$ac_ext
   4273 CC=$ac_save_CC
   4274 fi
   4275 
   4276 if test "x$ac_cv_prog_cc_c11" = xno
   4277 then :
   4278   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4279 printf "%s\n" "unsupported" >&6; }
   4280 else $as_nop
   4281   if test "x$ac_cv_prog_cc_c11" = x
   4282 then :
   4283   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4284 printf "%s\n" "none needed" >&6; }
   4285 else $as_nop
   4286   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
   4287 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
   4288      CC="$CC $ac_cv_prog_cc_c11"
   4289 fi
   4290   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
   4291   ac_prog_cc_stdc=c11
   4292 fi
   4293 fi
   4294 if test x$ac_prog_cc_stdc = xno
   4295 then :
   4296   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
   4297 printf %s "checking for $CC option to enable C99 features... " >&6; }
   4298 if test ${ac_cv_prog_cc_c99+y}
   4299 then :
   4300   printf %s "(cached) " >&6
   4301 else $as_nop
   4302   ac_cv_prog_cc_c99=no
   4303 ac_save_CC=$CC
   4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4305 /* end confdefs.h.  */
   4306 $ac_c_conftest_c99_program
   4307 _ACEOF
   4308 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
   4309 do
   4310   CC="$ac_save_CC $ac_arg"
   4311   if ac_fn_c_try_compile "$LINENO"
   4312 then :
   4313   ac_cv_prog_cc_c99=$ac_arg
   4314 fi
   4315 rm -f core conftest.err conftest.$ac_objext conftest.beam
   4316   test "x$ac_cv_prog_cc_c99" != "xno" && break
   4317 done
   4318 rm -f conftest.$ac_ext
   4319 CC=$ac_save_CC
   4320 fi
   4321 
   4322 if test "x$ac_cv_prog_cc_c99" = xno
   4323 then :
   4324   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4325 printf "%s\n" "unsupported" >&6; }
   4326 else $as_nop
   4327   if test "x$ac_cv_prog_cc_c99" = x
   4328 then :
   4329   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4330 printf "%s\n" "none needed" >&6; }
   4331 else $as_nop
   4332   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   4333 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
   4334      CC="$CC $ac_cv_prog_cc_c99"
   4335 fi
   4336   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   4337   ac_prog_cc_stdc=c99
   4338 fi
   4339 fi
   4340 if test x$ac_prog_cc_stdc = xno
   4341 then :
   4342   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
   4343 printf %s "checking for $CC option to enable C89 features... " >&6; }
   4344 if test ${ac_cv_prog_cc_c89+y}
   4345 then :
   4346   printf %s "(cached) " >&6
   4347 else $as_nop
   4348   ac_cv_prog_cc_c89=no
   4349 ac_save_CC=$CC
   4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4351 /* end confdefs.h.  */
   4352 $ac_c_conftest_c89_program
   4353 _ACEOF
   4354 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4355 do
   4356   CC="$ac_save_CC $ac_arg"
   4357   if ac_fn_c_try_compile "$LINENO"
   4358 then :
   4359   ac_cv_prog_cc_c89=$ac_arg
   4360 fi
   4361 rm -f core conftest.err conftest.$ac_objext conftest.beam
   4362   test "x$ac_cv_prog_cc_c89" != "xno" && break
   4363 done
   4364 rm -f conftest.$ac_ext
   4365 CC=$ac_save_CC
   4366 fi
   4367 
   4368 if test "x$ac_cv_prog_cc_c89" = xno
   4369 then :
   4370   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4371 printf "%s\n" "unsupported" >&6; }
   4372 else $as_nop
   4373   if test "x$ac_cv_prog_cc_c89" = x
   4374 then :
   4375   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4376 printf "%s\n" "none needed" >&6; }
   4377 else $as_nop
   4378   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   4379 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
   4380      CC="$CC $ac_cv_prog_cc_c89"
   4381 fi
   4382   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   4383   ac_prog_cc_stdc=c89
   4384 fi
   4385 fi
   4386 
   4387 ac_ext=c
   4388 ac_cpp='$CPP $CPPFLAGS'
   4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4392 
   4393 
   4394 ac_header= ac_cache=
   4395 for ac_item in $ac_header_c_list
   4396 do
   4397   if test $ac_cache; then
   4398     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
   4399     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
   4400       printf "%s\n" "#define $ac_item 1" >> confdefs.h
   4401     fi
   4402     ac_header= ac_cache=
   4403   elif test $ac_header; then
   4404     ac_cache=$ac_item
   4405   else
   4406     ac_header=$ac_item
   4407   fi
   4408 done
   4409 
   4410 
   4411 
   4412 
   4413 
   4414 
   4415 
   4416 
   4417 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
   4418 then :
   4419 
   4420 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
   4421 
   4422 fi
   4423 
   4424 
   4425 
   4426 
   4427 
   4428 
   4429   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   4430 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4431 if test ${ac_cv_safe_to_define___extensions__+y}
   4432 then :
   4433   printf %s "(cached) " >&6
   4434 else $as_nop
   4435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4436 /* end confdefs.h.  */
   4437 
   4438 #         define __EXTENSIONS__ 1
   4439           $ac_includes_default
   4440 int
   4441 main (void)
   4442 {
   4443 
   4444   ;
   4445   return 0;
   4446 }
   4447 _ACEOF
   4448 if ac_fn_c_try_compile "$LINENO"
   4449 then :
   4450   ac_cv_safe_to_define___extensions__=yes
   4451 else $as_nop
   4452   ac_cv_safe_to_define___extensions__=no
   4453 fi
   4454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4455 fi
   4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4457 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
   4458 
   4459   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
   4460 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
   4461 if test ${ac_cv_should_define__xopen_source+y}
   4462 then :
   4463   printf %s "(cached) " >&6
   4464 else $as_nop
   4465   ac_cv_should_define__xopen_source=no
   4466     if test $ac_cv_header_wchar_h = yes
   4467 then :
   4468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4469 /* end confdefs.h.  */
   4470 
   4471           #include <wchar.h>
   4472           mbstate_t x;
   4473 int
   4474 main (void)
   4475 {
   4476 
   4477   ;
   4478   return 0;
   4479 }
   4480 _ACEOF
   4481 if ac_fn_c_try_compile "$LINENO"
   4482 then :
   4483 
   4484 else $as_nop
   4485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4486 /* end confdefs.h.  */
   4487 
   4488             #define _XOPEN_SOURCE 500
   4489             #include <wchar.h>
   4490             mbstate_t x;
   4491 int
   4492 main (void)
   4493 {
   4494 
   4495   ;
   4496   return 0;
   4497 }
   4498 _ACEOF
   4499 if ac_fn_c_try_compile "$LINENO"
   4500 then :
   4501   ac_cv_should_define__xopen_source=yes
   4502 fi
   4503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4504 fi
   4505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4506 fi
   4507 fi
   4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
   4509 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
   4510 
   4511   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
   4512 
   4513   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
   4514 
   4515   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
   4516 
   4517   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
   4518 
   4519   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
   4520 
   4521   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
   4522 
   4523   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4524 
   4525   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
   4526 
   4527   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
   4528 
   4529   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
   4530 
   4531   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
   4532 
   4533   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
   4534 
   4535   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
   4536 
   4537   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
   4538 
   4539   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
   4540 
   4541   if test $ac_cv_header_minix_config_h = yes
   4542 then :
   4543   MINIX=yes
   4544     printf "%s\n" "#define _MINIX 1" >>confdefs.h
   4545 
   4546     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
   4547 
   4548     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
   4549 
   4550 else $as_nop
   4551   MINIX=
   4552 fi
   4553   if test $ac_cv_safe_to_define___extensions__ = yes
   4554 then :
   4555   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
   4556 
   4557 fi
   4558   if test $ac_cv_should_define__xopen_source = yes
   4559 then :
   4560   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
   4561 
   4562 fi
   4563 
   4564 if test "$ac_cv_header_minix_config_h" = "yes"; then
   4565 
   4566 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
   4567 
   4568 fi
   4569 
   4570 case "$prefix" in
   4571         NONE)
   4572 		prefix="/usr/local"
   4573         ;;
   4574 esac
   4575 case "$exec_prefix" in
   4576         NONE)
   4577 		exec_prefix="$prefix"
   4578         ;;
   4579 esac
   4580 
   4581 # are we on MinGW?
   4582 if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes"
   4583 else
   4584 	if echo $host | grep mingw >/dev/null; then on_mingw="yes"
   4585 	else on_mingw="no"; fi
   4586 fi
   4587 
   4588 #
   4589 # Determine configuration file
   4590 # the eval is to evaluate shell expansion twice
   4591 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
   4592 
   4593 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
   4594 
   4595 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
   4596 
   4597 if test $on_mingw = "no"; then
   4598   ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
   4599 else
   4600   ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
   4601 fi
   4602 
   4603 # Check whether --with-conf_file was given.
   4604 if test ${with_conf_file+y}
   4605 then :
   4606   withval=$with_conf_file; ub_conf_file="$withval"
   4607 fi
   4608 
   4609 
   4610 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
   4611 
   4612 
   4613 printf "%s\n" "#define CONFIGFILE \"$hdr_config\"" >>confdefs.h
   4614 
   4615 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
   4616 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   4617 	 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
   4618 	 X"$ub_conf_file" : 'X\(//\)$' \| \
   4619 	 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
   4620 printf "%s\n" X"$ub_conf_file" |
   4621     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   4622 	    s//\1/
   4623 	    q
   4624 	  }
   4625 	  /^X\(\/\/\)[^/].*/{
   4626 	    s//\1/
   4627 	    q
   4628 	  }
   4629 	  /^X\(\/\/\)$/{
   4630 	    s//\1/
   4631 	    q
   4632 	  }
   4633 	  /^X\(\/\).*/{
   4634 	    s//\1/
   4635 	    q
   4636 	  }
   4637 	  s/.*/./; q'`
   4638 
   4639 
   4640 # Determine run, chroot directory and pidfile locations
   4641 
   4642 # Check whether --with-run-dir was given.
   4643 if test ${with_run_dir+y}
   4644 then :
   4645   withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
   4646 else $as_nop
   4647   if test $on_mingw = no; then
   4648     UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
   4649 else
   4650     UNBOUND_RUN_DIR=""
   4651 fi
   4652 
   4653 fi
   4654 
   4655 
   4656 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
   4657 
   4658 
   4659 printf "%s\n" "#define RUN_DIR \"$hdr_run\"" >>confdefs.h
   4660 
   4661 
   4662 
   4663 # Check whether --with-chroot-dir was given.
   4664 if test ${with_chroot_dir+y}
   4665 then :
   4666   withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
   4667 else $as_nop
   4668   if test $on_mingw = no; then
   4669     UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
   4670 else
   4671     UNBOUND_CHROOT_DIR=""
   4672 fi
   4673 
   4674 fi
   4675 
   4676 
   4677 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
   4678 
   4679 
   4680 printf "%s\n" "#define CHROOT_DIR \"$hdr_chroot\"" >>confdefs.h
   4681 
   4682 
   4683 
   4684 # Check whether --with-share-dir was given.
   4685 if test ${with_share_dir+y}
   4686 then :
   4687   withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
   4688 else $as_nop
   4689   UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
   4690 fi
   4691 
   4692 
   4693 
   4694 printf "%s\n" "#define SHARE_DIR \"$UNBOUND_SHARE_DIR\"" >>confdefs.h
   4695 
   4696 
   4697 
   4698 # Check whether --with-pidfile was given.
   4699 if test ${with_pidfile+y}
   4700 then :
   4701   withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
   4702 else $as_nop
   4703   if test $on_mingw = no; then
   4704     UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
   4705 else
   4706     UNBOUND_PIDFILE=""
   4707 fi
   4708 
   4709 fi
   4710 
   4711 
   4712 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
   4713 
   4714 
   4715 printf "%s\n" "#define PIDFILE \"$hdr_pid\"" >>confdefs.h
   4716 
   4717 
   4718 
   4719 # Check whether --with-rootkey-file was given.
   4720 if test ${with_rootkey_file+y}
   4721 then :
   4722   withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
   4723 else $as_nop
   4724   if test $on_mingw = no; then
   4725     UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
   4726 else
   4727     UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
   4728 fi
   4729 
   4730 fi
   4731 
   4732 
   4733 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
   4734 
   4735 
   4736 printf "%s\n" "#define ROOT_ANCHOR_FILE \"$hdr_rkey\"" >>confdefs.h
   4737 
   4738 
   4739 
   4740 # Check whether --with-rootcert-file was given.
   4741 if test ${with_rootcert_file+y}
   4742 then :
   4743   withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
   4744 else $as_nop
   4745   if test $on_mingw = no; then
   4746     UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
   4747 else
   4748     UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
   4749 fi
   4750 
   4751 fi
   4752 
   4753 
   4754 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
   4755 
   4756 
   4757 printf "%s\n" "#define ROOT_CERT_FILE \"$hdr_rpem\"" >>confdefs.h
   4758 
   4759 
   4760 
   4761 # Check whether --with-username was given.
   4762 if test ${with_username+y}
   4763 then :
   4764   withval=$with_username; UNBOUND_USERNAME="$withval"
   4765 else $as_nop
   4766   UNBOUND_USERNAME="unbound"
   4767 fi
   4768 
   4769 
   4770 
   4771 printf "%s\n" "#define UB_USERNAME \"$UNBOUND_USERNAME\"" >>confdefs.h
   4772 
   4773 
   4774 
   4775 printf "%s\n" "#define WINVER 0x0502" >>confdefs.h
   4776 
   4777 wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\).*$/\1,\2,\3,\4/' -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1,\2,\3,0/' `
   4778 
   4779 
   4780 printf "%s\n" "#define RSRC_PACKAGE_VERSION $wnvs" >>confdefs.h
   4781 
   4782 
   4783 # Check for 'grep -e' program, here, since ACX_CHECK_FLTO needs that.
   4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4785 printf %s "checking for grep that handles long lines and -e... " >&6; }
   4786 if test ${ac_cv_path_GREP+y}
   4787 then :
   4788   printf %s "(cached) " >&6
   4789 else $as_nop
   4790   if test -z "$GREP"; then
   4791   ac_path_GREP_found=false
   4792   # Loop through the user's path and test for each of PROGNAME-LIST
   4793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4795 do
   4796   IFS=$as_save_IFS
   4797   case $as_dir in #(((
   4798     '') as_dir=./ ;;
   4799     */) ;;
   4800     *) as_dir=$as_dir/ ;;
   4801   esac
   4802     for ac_prog in grep ggrep
   4803    do
   4804     for ac_exec_ext in '' $ac_executable_extensions; do
   4805       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
   4806       as_fn_executable_p "$ac_path_GREP" || continue
   4807 # Check for GNU ac_path_GREP and select it if it is found.
   4808   # Check for GNU $ac_path_GREP
   4809 case `"$ac_path_GREP" --version 2>&1` in
   4810 *GNU*)
   4811   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4812 *)
   4813   ac_count=0
   4814   printf %s 0123456789 >"conftest.in"
   4815   while :
   4816   do
   4817     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4818     mv "conftest.tmp" "conftest.in"
   4819     cp "conftest.in" "conftest.nl"
   4820     printf "%s\n" 'GREP' >> "conftest.nl"
   4821     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4822     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4823     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4824     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4825       # Best one so far, save it but keep looking for a better one
   4826       ac_cv_path_GREP="$ac_path_GREP"
   4827       ac_path_GREP_max=$ac_count
   4828     fi
   4829     # 10*(2^10) chars as input seems more than enough
   4830     test $ac_count -gt 10 && break
   4831   done
   4832   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4833 esac
   4834 
   4835       $ac_path_GREP_found && break 3
   4836     done
   4837   done
   4838   done
   4839 IFS=$as_save_IFS
   4840   if test -z "$ac_cv_path_GREP"; then
   4841     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4842   fi
   4843 else
   4844   ac_cv_path_GREP=$GREP
   4845 fi
   4846 
   4847 fi
   4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4849 printf "%s\n" "$ac_cv_path_GREP" >&6; }
   4850  GREP="$ac_cv_path_GREP"
   4851 
   4852 
   4853 
   4854 # Checks for typedefs, structures, and compiler characteristics.
   4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   4856 printf %s "checking for an ANSI C-conforming const... " >&6; }
   4857 if test ${ac_cv_c_const+y}
   4858 then :
   4859   printf %s "(cached) " >&6
   4860 else $as_nop
   4861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4862 /* end confdefs.h.  */
   4863 
   4864 int
   4865 main (void)
   4866 {
   4867 
   4868 #ifndef __cplusplus
   4869   /* Ultrix mips cc rejects this sort of thing.  */
   4870   typedef int charset[2];
   4871   const charset cs = { 0, 0 };
   4872   /* SunOS 4.1.1 cc rejects this.  */
   4873   char const *const *pcpcc;
   4874   char **ppc;
   4875   /* NEC SVR4.0.2 mips cc rejects this.  */
   4876   struct point {int x, y;};
   4877   static struct point const zero = {0,0};
   4878   /* IBM XL C 1.02.0.0 rejects this.
   4879      It does not let you subtract one const X* pointer from another in
   4880      an arm of an if-expression whose if-part is not a constant
   4881      expression */
   4882   const char *g = "string";
   4883   pcpcc = &g + (g ? g-g : 0);
   4884   /* HPUX 7.0 cc rejects these. */
   4885   ++pcpcc;
   4886   ppc = (char**) pcpcc;
   4887   pcpcc = (char const *const *) ppc;
   4888   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   4889     char tx;
   4890     char *t = &tx;
   4891     char const *s = 0 ? (char *) 0 : (char const *) 0;
   4892 
   4893     *t++ = 0;
   4894     if (s) return 0;
   4895   }
   4896   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   4897     int x[] = {25, 17};
   4898     const int *foo = &x[0];
   4899     ++foo;
   4900   }
   4901   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   4902     typedef const int *iptr;
   4903     iptr p = 0;
   4904     ++p;
   4905   }
   4906   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
   4907        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   4908     struct s { int j; const int *ap[3]; } bx;
   4909     struct s *b = &bx; b->j = 5;
   4910   }
   4911   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   4912     const int foo = 10;
   4913     if (!foo) return 0;
   4914   }
   4915   return !cs[0] && !zero.x;
   4916 #endif
   4917 
   4918   ;
   4919   return 0;
   4920 }
   4921 _ACEOF
   4922 if ac_fn_c_try_compile "$LINENO"
   4923 then :
   4924   ac_cv_c_const=yes
   4925 else $as_nop
   4926   ac_cv_c_const=no
   4927 fi
   4928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4929 fi
   4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   4931 printf "%s\n" "$ac_cv_c_const" >&6; }
   4932 if test $ac_cv_c_const = no; then
   4933 
   4934 printf "%s\n" "#define const /**/" >>confdefs.h
   4935 
   4936 fi
   4937 
   4938 ac_ext=c
   4939 ac_cpp='$CPP $CPPFLAGS'
   4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4943 
   4944 # allow user to override the -g -O2 flags.
   4945 default_cflags=no
   4946 if test "x$CFLAGS" = "x" ; then
   4947 
   4948 
   4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
   4950 printf %s "checking whether $CC supports -g... " >&6; }
   4951 cache=`echo g | sed 'y%.=/+-%___p_%'`
   4952 if eval test \${cv_prog_cc_flag_$cache+y}
   4953 then :
   4954   printf %s "(cached) " >&6
   4955 else $as_nop
   4956 
   4957 echo 'void f(void){}' >conftest.c
   4958 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
   4959 eval "cv_prog_cc_flag_$cache=yes"
   4960 else
   4961 eval "cv_prog_cc_flag_$cache=no"
   4962 fi
   4963 rm -f conftest conftest.o conftest.c
   4964 
   4965 fi
   4966 
   4967 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4969 printf "%s\n" "yes" >&6; }
   4970 :
   4971 CFLAGS="$CFLAGS -g"
   4972 else
   4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4974 printf "%s\n" "no" >&6; }
   4975 :
   4976 
   4977 fi
   4978 
   4979 
   4980 
   4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
   4982 printf %s "checking whether $CC supports -O2... " >&6; }
   4983 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
   4984 if eval test \${cv_prog_cc_flag_$cache+y}
   4985 then :
   4986   printf %s "(cached) " >&6
   4987 else $as_nop
   4988 
   4989 echo 'void f(void){}' >conftest.c
   4990 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
   4991 eval "cv_prog_cc_flag_$cache=yes"
   4992 else
   4993 eval "cv_prog_cc_flag_$cache=no"
   4994 fi
   4995 rm -f conftest conftest.o conftest.c
   4996 
   4997 fi
   4998 
   4999 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5001 printf "%s\n" "yes" >&6; }
   5002 :
   5003 CFLAGS="$CFLAGS -O2"
   5004 else
   5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5006 printf "%s\n" "no" >&6; }
   5007 :
   5008 
   5009 fi
   5010 
   5011 default_cflags=yes
   5012 fi
   5013 ac_ext=c
   5014 ac_cpp='$CPP $CPPFLAGS'
   5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5018 if test -n "$ac_tool_prefix"; then
   5019   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   5020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5022 printf %s "checking for $ac_word... " >&6; }
   5023 if test ${ac_cv_prog_CC+y}
   5024 then :
   5025   printf %s "(cached) " >&6
   5026 else $as_nop
   5027   if test -n "$CC"; then
   5028   ac_cv_prog_CC="$CC" # Let the user override the test.
   5029 else
   5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5031 for as_dir in $PATH
   5032 do
   5033   IFS=$as_save_IFS
   5034   case $as_dir in #(((
   5035     '') as_dir=./ ;;
   5036     */) ;;
   5037     *) as_dir=$as_dir/ ;;
   5038   esac
   5039     for ac_exec_ext in '' $ac_executable_extensions; do
   5040   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5041     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   5042     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5043     break 2
   5044   fi
   5045 done
   5046   done
   5047 IFS=$as_save_IFS
   5048 
   5049 fi
   5050 fi
   5051 CC=$ac_cv_prog_CC
   5052 if test -n "$CC"; then
   5053   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   5054 printf "%s\n" "$CC" >&6; }
   5055 else
   5056   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5057 printf "%s\n" "no" >&6; }
   5058 fi
   5059 
   5060 
   5061 fi
   5062 if test -z "$ac_cv_prog_CC"; then
   5063   ac_ct_CC=$CC
   5064   # Extract the first word of "gcc", so it can be a program name with args.
   5065 set dummy gcc; ac_word=$2
   5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5067 printf %s "checking for $ac_word... " >&6; }
   5068 if test ${ac_cv_prog_ac_ct_CC+y}
   5069 then :
   5070   printf %s "(cached) " >&6
   5071 else $as_nop
   5072   if test -n "$ac_ct_CC"; then
   5073   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   5074 else
   5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5076 for as_dir in $PATH
   5077 do
   5078   IFS=$as_save_IFS
   5079   case $as_dir in #(((
   5080     '') as_dir=./ ;;
   5081     */) ;;
   5082     *) as_dir=$as_dir/ ;;
   5083   esac
   5084     for ac_exec_ext in '' $ac_executable_extensions; do
   5085   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5086     ac_cv_prog_ac_ct_CC="gcc"
   5087     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5088     break 2
   5089   fi
   5090 done
   5091   done
   5092 IFS=$as_save_IFS
   5093 
   5094 fi
   5095 fi
   5096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   5097 if test -n "$ac_ct_CC"; then
   5098   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   5099 printf "%s\n" "$ac_ct_CC" >&6; }
   5100 else
   5101   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5102 printf "%s\n" "no" >&6; }
   5103 fi
   5104 
   5105   if test "x$ac_ct_CC" = x; then
   5106     CC=""
   5107   else
   5108     case $cross_compiling:$ac_tool_warned in
   5109 yes:)
   5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5111 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5112 ac_tool_warned=yes ;;
   5113 esac
   5114     CC=$ac_ct_CC
   5115   fi
   5116 else
   5117   CC="$ac_cv_prog_CC"
   5118 fi
   5119 
   5120 if test -z "$CC"; then
   5121           if test -n "$ac_tool_prefix"; then
   5122     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   5123 set dummy ${ac_tool_prefix}cc; ac_word=$2
   5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5125 printf %s "checking for $ac_word... " >&6; }
   5126 if test ${ac_cv_prog_CC+y}
   5127 then :
   5128   printf %s "(cached) " >&6
   5129 else $as_nop
   5130   if test -n "$CC"; then
   5131   ac_cv_prog_CC="$CC" # Let the user override the test.
   5132 else
   5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5134 for as_dir in $PATH
   5135 do
   5136   IFS=$as_save_IFS
   5137   case $as_dir in #(((
   5138     '') as_dir=./ ;;
   5139     */) ;;
   5140     *) as_dir=$as_dir/ ;;
   5141   esac
   5142     for ac_exec_ext in '' $ac_executable_extensions; do
   5143   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5144     ac_cv_prog_CC="${ac_tool_prefix}cc"
   5145     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5146     break 2
   5147   fi
   5148 done
   5149   done
   5150 IFS=$as_save_IFS
   5151 
   5152 fi
   5153 fi
   5154 CC=$ac_cv_prog_CC
   5155 if test -n "$CC"; then
   5156   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   5157 printf "%s\n" "$CC" >&6; }
   5158 else
   5159   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5160 printf "%s\n" "no" >&6; }
   5161 fi
   5162 
   5163 
   5164   fi
   5165 fi
   5166 if test -z "$CC"; then
   5167   # Extract the first word of "cc", so it can be a program name with args.
   5168 set dummy cc; ac_word=$2
   5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5170 printf %s "checking for $ac_word... " >&6; }
   5171 if test ${ac_cv_prog_CC+y}
   5172 then :
   5173   printf %s "(cached) " >&6
   5174 else $as_nop
   5175   if test -n "$CC"; then
   5176   ac_cv_prog_CC="$CC" # Let the user override the test.
   5177 else
   5178   ac_prog_rejected=no
   5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5180 for as_dir in $PATH
   5181 do
   5182   IFS=$as_save_IFS
   5183   case $as_dir in #(((
   5184     '') as_dir=./ ;;
   5185     */) ;;
   5186     *) as_dir=$as_dir/ ;;
   5187   esac
   5188     for ac_exec_ext in '' $ac_executable_extensions; do
   5189   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5190     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   5191        ac_prog_rejected=yes
   5192        continue
   5193      fi
   5194     ac_cv_prog_CC="cc"
   5195     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5196     break 2
   5197   fi
   5198 done
   5199   done
   5200 IFS=$as_save_IFS
   5201 
   5202 if test $ac_prog_rejected = yes; then
   5203   # We found a bogon in the path, so make sure we never use it.
   5204   set dummy $ac_cv_prog_CC
   5205   shift
   5206   if test $# != 0; then
   5207     # We chose a different compiler from the bogus one.
   5208     # However, it has the same basename, so the bogon will be chosen
   5209     # first if we set CC to just the basename; use the full file name.
   5210     shift
   5211     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
   5212   fi
   5213 fi
   5214 fi
   5215 fi
   5216 CC=$ac_cv_prog_CC
   5217 if test -n "$CC"; then
   5218   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   5219 printf "%s\n" "$CC" >&6; }
   5220 else
   5221   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5222 printf "%s\n" "no" >&6; }
   5223 fi
   5224 
   5225 
   5226 fi
   5227 if test -z "$CC"; then
   5228   if test -n "$ac_tool_prefix"; then
   5229   for ac_prog in cl.exe
   5230   do
   5231     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5234 printf %s "checking for $ac_word... " >&6; }
   5235 if test ${ac_cv_prog_CC+y}
   5236 then :
   5237   printf %s "(cached) " >&6
   5238 else $as_nop
   5239   if test -n "$CC"; then
   5240   ac_cv_prog_CC="$CC" # Let the user override the test.
   5241 else
   5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5243 for as_dir in $PATH
   5244 do
   5245   IFS=$as_save_IFS
   5246   case $as_dir in #(((
   5247     '') as_dir=./ ;;
   5248     */) ;;
   5249     *) as_dir=$as_dir/ ;;
   5250   esac
   5251     for ac_exec_ext in '' $ac_executable_extensions; do
   5252   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5253     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   5254     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5255     break 2
   5256   fi
   5257 done
   5258   done
   5259 IFS=$as_save_IFS
   5260 
   5261 fi
   5262 fi
   5263 CC=$ac_cv_prog_CC
   5264 if test -n "$CC"; then
   5265   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   5266 printf "%s\n" "$CC" >&6; }
   5267 else
   5268   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5269 printf "%s\n" "no" >&6; }
   5270 fi
   5271 
   5272 
   5273     test -n "$CC" && break
   5274   done
   5275 fi
   5276 if test -z "$CC"; then
   5277   ac_ct_CC=$CC
   5278   for ac_prog in cl.exe
   5279 do
   5280   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5281 set dummy $ac_prog; ac_word=$2
   5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5283 printf %s "checking for $ac_word... " >&6; }
   5284 if test ${ac_cv_prog_ac_ct_CC+y}
   5285 then :
   5286   printf %s "(cached) " >&6
   5287 else $as_nop
   5288   if test -n "$ac_ct_CC"; then
   5289   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   5290 else
   5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5292 for as_dir in $PATH
   5293 do
   5294   IFS=$as_save_IFS
   5295   case $as_dir in #(((
   5296     '') as_dir=./ ;;
   5297     */) ;;
   5298     *) as_dir=$as_dir/ ;;
   5299   esac
   5300     for ac_exec_ext in '' $ac_executable_extensions; do
   5301   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5302     ac_cv_prog_ac_ct_CC="$ac_prog"
   5303     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5304     break 2
   5305   fi
   5306 done
   5307   done
   5308 IFS=$as_save_IFS
   5309 
   5310 fi
   5311 fi
   5312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   5313 if test -n "$ac_ct_CC"; then
   5314   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   5315 printf "%s\n" "$ac_ct_CC" >&6; }
   5316 else
   5317   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5318 printf "%s\n" "no" >&6; }
   5319 fi
   5320 
   5321 
   5322   test -n "$ac_ct_CC" && break
   5323 done
   5324 
   5325   if test "x$ac_ct_CC" = x; then
   5326     CC=""
   5327   else
   5328     case $cross_compiling:$ac_tool_warned in
   5329 yes:)
   5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5331 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5332 ac_tool_warned=yes ;;
   5333 esac
   5334     CC=$ac_ct_CC
   5335   fi
   5336 fi
   5337 
   5338 fi
   5339 if test -z "$CC"; then
   5340   if test -n "$ac_tool_prefix"; then
   5341   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
   5342 set dummy ${ac_tool_prefix}clang; ac_word=$2
   5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5344 printf %s "checking for $ac_word... " >&6; }
   5345 if test ${ac_cv_prog_CC+y}
   5346 then :
   5347   printf %s "(cached) " >&6
   5348 else $as_nop
   5349   if test -n "$CC"; then
   5350   ac_cv_prog_CC="$CC" # Let the user override the test.
   5351 else
   5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5353 for as_dir in $PATH
   5354 do
   5355   IFS=$as_save_IFS
   5356   case $as_dir in #(((
   5357     '') as_dir=./ ;;
   5358     */) ;;
   5359     *) as_dir=$as_dir/ ;;
   5360   esac
   5361     for ac_exec_ext in '' $ac_executable_extensions; do
   5362   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5363     ac_cv_prog_CC="${ac_tool_prefix}clang"
   5364     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5365     break 2
   5366   fi
   5367 done
   5368   done
   5369 IFS=$as_save_IFS
   5370 
   5371 fi
   5372 fi
   5373 CC=$ac_cv_prog_CC
   5374 if test -n "$CC"; then
   5375   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   5376 printf "%s\n" "$CC" >&6; }
   5377 else
   5378   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5379 printf "%s\n" "no" >&6; }
   5380 fi
   5381 
   5382 
   5383 fi
   5384 if test -z "$ac_cv_prog_CC"; then
   5385   ac_ct_CC=$CC
   5386   # Extract the first word of "clang", so it can be a program name with args.
   5387 set dummy clang; ac_word=$2
   5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5389 printf %s "checking for $ac_word... " >&6; }
   5390 if test ${ac_cv_prog_ac_ct_CC+y}
   5391 then :
   5392   printf %s "(cached) " >&6
   5393 else $as_nop
   5394   if test -n "$ac_ct_CC"; then
   5395   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   5396 else
   5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5398 for as_dir in $PATH
   5399 do
   5400   IFS=$as_save_IFS
   5401   case $as_dir in #(((
   5402     '') as_dir=./ ;;
   5403     */) ;;
   5404     *) as_dir=$as_dir/ ;;
   5405   esac
   5406     for ac_exec_ext in '' $ac_executable_extensions; do
   5407   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5408     ac_cv_prog_ac_ct_CC="clang"
   5409     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5410     break 2
   5411   fi
   5412 done
   5413   done
   5414 IFS=$as_save_IFS
   5415 
   5416 fi
   5417 fi
   5418 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   5419 if test -n "$ac_ct_CC"; then
   5420   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   5421 printf "%s\n" "$ac_ct_CC" >&6; }
   5422 else
   5423   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5424 printf "%s\n" "no" >&6; }
   5425 fi
   5426 
   5427   if test "x$ac_ct_CC" = x; then
   5428     CC=""
   5429   else
   5430     case $cross_compiling:$ac_tool_warned in
   5431 yes:)
   5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5433 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5434 ac_tool_warned=yes ;;
   5435 esac
   5436     CC=$ac_ct_CC
   5437   fi
   5438 else
   5439   CC="$ac_cv_prog_CC"
   5440 fi
   5441 
   5442 fi
   5443 
   5444 
   5445 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5446 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   5447 as_fn_error $? "no acceptable C compiler found in \$PATH
   5448 See \`config.log' for more details" "$LINENO" 5; }
   5449 
   5450 # Provide some information about the compiler.
   5451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   5452 set X $ac_compile
   5453 ac_compiler=$2
   5454 for ac_option in --version -v -V -qversion -version; do
   5455   { { ac_try="$ac_compiler $ac_option >&5"
   5456 case "(($ac_try" in
   5457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5458   *) ac_try_echo=$ac_try;;
   5459 esac
   5460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   5461 printf "%s\n" "$ac_try_echo"; } >&5
   5462   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   5463   ac_status=$?
   5464   if test -s conftest.err; then
   5465     sed '10a\
   5466 ... rest of stderr output deleted ...
   5467          10q' conftest.err >conftest.er1
   5468     cat conftest.er1 >&5
   5469   fi
   5470   rm -f conftest.er1 conftest.err
   5471   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5472   test $ac_status = 0; }
   5473 done
   5474 
   5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
   5476 printf %s "checking whether the compiler supports GNU C... " >&6; }
   5477 if test ${ac_cv_c_compiler_gnu+y}
   5478 then :
   5479   printf %s "(cached) " >&6
   5480 else $as_nop
   5481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5482 /* end confdefs.h.  */
   5483 
   5484 int
   5485 main (void)
   5486 {
   5487 #ifndef __GNUC__
   5488        choke me
   5489 #endif
   5490 
   5491   ;
   5492   return 0;
   5493 }
   5494 _ACEOF
   5495 if ac_fn_c_try_compile "$LINENO"
   5496 then :
   5497   ac_compiler_gnu=yes
   5498 else $as_nop
   5499   ac_compiler_gnu=no
   5500 fi
   5501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5502 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   5503 
   5504 fi
   5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   5506 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
   5507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5508 
   5509 if test $ac_compiler_gnu = yes; then
   5510   GCC=yes
   5511 else
   5512   GCC=
   5513 fi
   5514 ac_test_CFLAGS=${CFLAGS+y}
   5515 ac_save_CFLAGS=$CFLAGS
   5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   5517 printf %s "checking whether $CC accepts -g... " >&6; }
   5518 if test ${ac_cv_prog_cc_g+y}
   5519 then :
   5520   printf %s "(cached) " >&6
   5521 else $as_nop
   5522   ac_save_c_werror_flag=$ac_c_werror_flag
   5523    ac_c_werror_flag=yes
   5524    ac_cv_prog_cc_g=no
   5525    CFLAGS="-g"
   5526    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5527 /* end confdefs.h.  */
   5528 
   5529 int
   5530 main (void)
   5531 {
   5532 
   5533   ;
   5534   return 0;
   5535 }
   5536 _ACEOF
   5537 if ac_fn_c_try_compile "$LINENO"
   5538 then :
   5539   ac_cv_prog_cc_g=yes
   5540 else $as_nop
   5541   CFLAGS=""
   5542       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5543 /* end confdefs.h.  */
   5544 
   5545 int
   5546 main (void)
   5547 {
   5548 
   5549   ;
   5550   return 0;
   5551 }
   5552 _ACEOF
   5553 if ac_fn_c_try_compile "$LINENO"
   5554 then :
   5555 
   5556 else $as_nop
   5557   ac_c_werror_flag=$ac_save_c_werror_flag
   5558 	 CFLAGS="-g"
   5559 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5560 /* end confdefs.h.  */
   5561 
   5562 int
   5563 main (void)
   5564 {
   5565 
   5566   ;
   5567   return 0;
   5568 }
   5569 _ACEOF
   5570 if ac_fn_c_try_compile "$LINENO"
   5571 then :
   5572   ac_cv_prog_cc_g=yes
   5573 fi
   5574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5575 fi
   5576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5577 fi
   5578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5579    ac_c_werror_flag=$ac_save_c_werror_flag
   5580 fi
   5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   5582 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
   5583 if test $ac_test_CFLAGS; then
   5584   CFLAGS=$ac_save_CFLAGS
   5585 elif test $ac_cv_prog_cc_g = yes; then
   5586   if test "$GCC" = yes; then
   5587     CFLAGS="-g -O2"
   5588   else
   5589     CFLAGS="-g"
   5590   fi
   5591 else
   5592   if test "$GCC" = yes; then
   5593     CFLAGS="-O2"
   5594   else
   5595     CFLAGS=
   5596   fi
   5597 fi
   5598 ac_prog_cc_stdc=no
   5599 if test x$ac_prog_cc_stdc = xno
   5600 then :
   5601   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
   5602 printf %s "checking for $CC option to enable C11 features... " >&6; }
   5603 if test ${ac_cv_prog_cc_c11+y}
   5604 then :
   5605   printf %s "(cached) " >&6
   5606 else $as_nop
   5607   ac_cv_prog_cc_c11=no
   5608 ac_save_CC=$CC
   5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5610 /* end confdefs.h.  */
   5611 $ac_c_conftest_c11_program
   5612 _ACEOF
   5613 for ac_arg in '' -std=gnu11
   5614 do
   5615   CC="$ac_save_CC $ac_arg"
   5616   if ac_fn_c_try_compile "$LINENO"
   5617 then :
   5618   ac_cv_prog_cc_c11=$ac_arg
   5619 fi
   5620 rm -f core conftest.err conftest.$ac_objext conftest.beam
   5621   test "x$ac_cv_prog_cc_c11" != "xno" && break
   5622 done
   5623 rm -f conftest.$ac_ext
   5624 CC=$ac_save_CC
   5625 fi
   5626 
   5627 if test "x$ac_cv_prog_cc_c11" = xno
   5628 then :
   5629   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5630 printf "%s\n" "unsupported" >&6; }
   5631 else $as_nop
   5632   if test "x$ac_cv_prog_cc_c11" = x
   5633 then :
   5634   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5635 printf "%s\n" "none needed" >&6; }
   5636 else $as_nop
   5637   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
   5638 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
   5639      CC="$CC $ac_cv_prog_cc_c11"
   5640 fi
   5641   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
   5642   ac_prog_cc_stdc=c11
   5643 fi
   5644 fi
   5645 if test x$ac_prog_cc_stdc = xno
   5646 then :
   5647   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
   5648 printf %s "checking for $CC option to enable C99 features... " >&6; }
   5649 if test ${ac_cv_prog_cc_c99+y}
   5650 then :
   5651   printf %s "(cached) " >&6
   5652 else $as_nop
   5653   ac_cv_prog_cc_c99=no
   5654 ac_save_CC=$CC
   5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5656 /* end confdefs.h.  */
   5657 $ac_c_conftest_c99_program
   5658 _ACEOF
   5659 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
   5660 do
   5661   CC="$ac_save_CC $ac_arg"
   5662   if ac_fn_c_try_compile "$LINENO"
   5663 then :
   5664   ac_cv_prog_cc_c99=$ac_arg
   5665 fi
   5666 rm -f core conftest.err conftest.$ac_objext conftest.beam
   5667   test "x$ac_cv_prog_cc_c99" != "xno" && break
   5668 done
   5669 rm -f conftest.$ac_ext
   5670 CC=$ac_save_CC
   5671 fi
   5672 
   5673 if test "x$ac_cv_prog_cc_c99" = xno
   5674 then :
   5675   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5676 printf "%s\n" "unsupported" >&6; }
   5677 else $as_nop
   5678   if test "x$ac_cv_prog_cc_c99" = x
   5679 then :
   5680   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5681 printf "%s\n" "none needed" >&6; }
   5682 else $as_nop
   5683   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   5684 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
   5685      CC="$CC $ac_cv_prog_cc_c99"
   5686 fi
   5687   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   5688   ac_prog_cc_stdc=c99
   5689 fi
   5690 fi
   5691 if test x$ac_prog_cc_stdc = xno
   5692 then :
   5693   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
   5694 printf %s "checking for $CC option to enable C89 features... " >&6; }
   5695 if test ${ac_cv_prog_cc_c89+y}
   5696 then :
   5697   printf %s "(cached) " >&6
   5698 else $as_nop
   5699   ac_cv_prog_cc_c89=no
   5700 ac_save_CC=$CC
   5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5702 /* end confdefs.h.  */
   5703 $ac_c_conftest_c89_program
   5704 _ACEOF
   5705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   5706 do
   5707   CC="$ac_save_CC $ac_arg"
   5708   if ac_fn_c_try_compile "$LINENO"
   5709 then :
   5710   ac_cv_prog_cc_c89=$ac_arg
   5711 fi
   5712 rm -f core conftest.err conftest.$ac_objext conftest.beam
   5713   test "x$ac_cv_prog_cc_c89" != "xno" && break
   5714 done
   5715 rm -f conftest.$ac_ext
   5716 CC=$ac_save_CC
   5717 fi
   5718 
   5719 if test "x$ac_cv_prog_cc_c89" = xno
   5720 then :
   5721   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5722 printf "%s\n" "unsupported" >&6; }
   5723 else $as_nop
   5724   if test "x$ac_cv_prog_cc_c89" = x
   5725 then :
   5726   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5727 printf "%s\n" "none needed" >&6; }
   5728 else $as_nop
   5729   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   5730 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
   5731      CC="$CC $ac_cv_prog_cc_c89"
   5732 fi
   5733   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   5734   ac_prog_cc_stdc=c89
   5735 fi
   5736 fi
   5737 
   5738 ac_ext=c
   5739 ac_cpp='$CPP $CPPFLAGS'
   5740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5743 
   5744 
   5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
   5746 printf %s "checking $CC dependency flag... " >&6; }
   5747 echo 'void f(void){}' >conftest.c
   5748 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
   5749 	DEPFLAG="-MM"
   5750 else
   5751   if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
   5752 	DEPFLAG="-xM1"
   5753   else
   5754 	DEPFLAG="-MM"  # dunno do something
   5755   fi
   5756 fi
   5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
   5758 printf "%s\n" "$DEPFLAG" >&6; }
   5759 rm -f conftest.c
   5760 
   5761 
   5762 
   5763 
   5764 
   5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
   5766 printf %s "checking whether $CC supports -Werror... " >&6; }
   5767 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
   5768 if eval test \${cv_prog_cc_flag_$cache+y}
   5769 then :
   5770   printf %s "(cached) " >&6
   5771 else $as_nop
   5772 
   5773 echo 'void f(void){}' >conftest.c
   5774 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
   5775 eval "cv_prog_cc_flag_$cache=yes"
   5776 else
   5777 eval "cv_prog_cc_flag_$cache=no"
   5778 fi
   5779 rm -f conftest conftest.o conftest.c
   5780 
   5781 fi
   5782 
   5783 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5785 printf "%s\n" "yes" >&6; }
   5786 :
   5787 ERRFLAG="-Werror"
   5788 else
   5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5790 printf "%s\n" "no" >&6; }
   5791 :
   5792 ERRFLAG="-errwarn"
   5793 fi
   5794 
   5795 
   5796 
   5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
   5798 printf %s "checking whether $CC supports -Wall... " >&6; }
   5799 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
   5800 if eval test \${cv_prog_cc_flag_$cache+y}
   5801 then :
   5802   printf %s "(cached) " >&6
   5803 else $as_nop
   5804 
   5805 echo 'void f(void){}' >conftest.c
   5806 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
   5807 eval "cv_prog_cc_flag_$cache=yes"
   5808 else
   5809 eval "cv_prog_cc_flag_$cache=no"
   5810 fi
   5811 rm -f conftest conftest.o conftest.c
   5812 
   5813 fi
   5814 
   5815 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5817 printf "%s\n" "yes" >&6; }
   5818 :
   5819 ERRFLAG="$ERRFLAG -Wall"
   5820 else
   5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5822 printf "%s\n" "no" >&6; }
   5823 :
   5824 ERRFLAG="$ERRFLAG -errfmt"
   5825 fi
   5826 
   5827 
   5828 
   5829 
   5830 
   5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
   5832 printf %s "checking whether $CC supports -std=c99... " >&6; }
   5833 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
   5834 if eval test \${cv_prog_cc_flag_$cache+y}
   5835 then :
   5836   printf %s "(cached) " >&6
   5837 else $as_nop
   5838 
   5839 echo 'void f(void){}' >conftest.c
   5840 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
   5841 eval "cv_prog_cc_flag_$cache=yes"
   5842 else
   5843 eval "cv_prog_cc_flag_$cache=no"
   5844 fi
   5845 rm -f conftest conftest.o conftest.c
   5846 
   5847 fi
   5848 
   5849 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5851 printf "%s\n" "yes" >&6; }
   5852 :
   5853 C99FLAG="-std=c99"
   5854 else
   5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5856 printf "%s\n" "no" >&6; }
   5857 :
   5858 
   5859 fi
   5860 
   5861 
   5862 
   5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
   5864 printf %s "checking whether $CC supports -xc99... " >&6; }
   5865 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
   5866 if eval test \${cv_prog_cc_flag_$cache+y}
   5867 then :
   5868   printf %s "(cached) " >&6
   5869 else $as_nop
   5870 
   5871 echo 'void f(void){}' >conftest.c
   5872 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
   5873 eval "cv_prog_cc_flag_$cache=yes"
   5874 else
   5875 eval "cv_prog_cc_flag_$cache=no"
   5876 fi
   5877 rm -f conftest conftest.o conftest.c
   5878 
   5879 fi
   5880 
   5881 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5883 printf "%s\n" "yes" >&6; }
   5884 :
   5885 C99FLAG="-xc99"
   5886 else
   5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5888 printf "%s\n" "no" >&6; }
   5889 :
   5890 
   5891 fi
   5892 
   5893 
   5894 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default
   5895 "
   5896 if test "x$ac_cv_header_getopt_h" = xyes
   5897 then :
   5898   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
   5899 
   5900 fi
   5901 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default
   5902 "
   5903 if test "x$ac_cv_header_time_h" = xyes
   5904 then :
   5905   printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
   5906 
   5907 fi
   5908 
   5909 
   5910 
   5911 
   5912 
   5913 { 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
   5914 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; }
   5915 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`
   5916 if eval test \${cv_prog_cc_flag_needed_$cache+y}
   5917 then :
   5918   printf %s "(cached) " >&6
   5919 else $as_nop
   5920 
   5921 echo '
   5922 #include "confdefs.h"
   5923 #include <stdlib.h>
   5924 #include <ctype.h>
   5925 #include <sys/time.h>
   5926 #ifdef HAVE_TIME_H
   5927 #include <time.h>
   5928 #endif
   5929 #include <unistd.h>
   5930 #include <netdb.h>
   5931 #ifdef HAVE_GETOPT_H
   5932 #include <getopt.h>
   5933 #endif
   5934 
   5935 int test(void) {
   5936 	int a;
   5937 	char **opts = NULL;
   5938 	struct timeval tv;
   5939 	char *t;
   5940 	time_t time = 0;
   5941 	char *buf = NULL;
   5942 	const char* str = NULL;
   5943 	struct msghdr msg;
   5944 	msg.msg_control = 0;
   5945 	t = ctime_r(&time, buf);
   5946 	tv.tv_usec = 10;
   5947 	srandom(32);
   5948 	a = getopt(2, opts, "a");
   5949 	a = isascii(32);
   5950 	str = gai_strerror(0);
   5951 	if(str && t && tv.tv_usec && msg.msg_control)
   5952 		a = 0;
   5953 	return a;
   5954 }
   5955 ' > conftest.c
   5956 echo 'void f(void){}' >>conftest.c
   5957 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5958 eval "cv_prog_cc_flag_needed_$cache=no"
   5959 else
   5960 
   5961 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
   5962 eval "cv_prog_cc_flag_needed_$cache=yes"
   5963 else
   5964 eval "cv_prog_cc_flag_needed_$cache=fail"
   5965 #echo 'Test with flag fails too!'
   5966 #cat conftest.c
   5967 #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"
   5968 #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`
   5969 #exit 1
   5970 fi
   5971 
   5972 fi
   5973 rm -f conftest conftest.c conftest.o
   5974 
   5975 fi
   5976 
   5977 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5979 printf "%s\n" "yes" >&6; }
   5980 :
   5981 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"
   5982 else
   5983 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5985 printf "%s\n" "no" >&6; }
   5986 #echo 'Test with flag is no!'
   5987 #cat conftest.c
   5988 #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"
   5989 #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`
   5990 #exit 1
   5991 :
   5992 
   5993 else
   5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5995 printf "%s\n" "failed" >&6; }
   5996 :
   5997 
   5998 fi
   5999 fi
   6000 
   6001 
   6002 
   6003 
   6004 
   6005 { 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
   6006 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; }
   6007 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`
   6008 if eval test \${cv_prog_cc_flag_needed_$cache+y}
   6009 then :
   6010   printf %s "(cached) " >&6
   6011 else $as_nop
   6012 
   6013 echo '
   6014 #include "confdefs.h"
   6015 #include <stdlib.h>
   6016 #include <ctype.h>
   6017 #include <sys/time.h>
   6018 #ifdef HAVE_TIME_H
   6019 #include <time.h>
   6020 #endif
   6021 #include <unistd.h>
   6022 #include <netdb.h>
   6023 #ifdef HAVE_GETOPT_H
   6024 #include <getopt.h>
   6025 #endif
   6026 
   6027 int test(void) {
   6028 	int a;
   6029 	char **opts = NULL;
   6030 	struct timeval tv;
   6031 	char *t;
   6032 	time_t time = 0;
   6033 	char *buf = NULL;
   6034 	const char* str = NULL;
   6035 	struct msghdr msg;
   6036 	msg.msg_control = 0;
   6037 	t = ctime_r(&time, buf);
   6038 	tv.tv_usec = 10;
   6039 	srandom(32);
   6040 	a = getopt(2, opts, "a");
   6041 	a = isascii(32);
   6042 	str = gai_strerror(0);
   6043 	if(str && t && tv.tv_usec && msg.msg_control)
   6044 		a = 0;
   6045 	return a;
   6046 }
   6047 ' > conftest.c
   6048 echo 'void f(void){}' >>conftest.c
   6049 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   6050 eval "cv_prog_cc_flag_needed_$cache=no"
   6051 else
   6052 
   6053 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
   6054 eval "cv_prog_cc_flag_needed_$cache=yes"
   6055 else
   6056 eval "cv_prog_cc_flag_needed_$cache=fail"
   6057 #echo 'Test with flag fails too!'
   6058 #cat conftest.c
   6059 #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"
   6060 #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`
   6061 #exit 1
   6062 fi
   6063 
   6064 fi
   6065 rm -f conftest conftest.c conftest.o
   6066 
   6067 fi
   6068 
   6069 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6071 printf "%s\n" "yes" >&6; }
   6072 :
   6073 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
   6074 else
   6075 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6077 printf "%s\n" "no" >&6; }
   6078 #echo 'Test with flag is no!'
   6079 #cat conftest.c
   6080 #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"
   6081 #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`
   6082 #exit 1
   6083 :
   6084 
   6085 else
   6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6087 printf "%s\n" "failed" >&6; }
   6088 :
   6089 
   6090 fi
   6091 fi
   6092 
   6093 
   6094 
   6095 
   6096 
   6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
   6098 printf %s "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
   6099 cache=`printf "%s\n" "$C99FLAG" | $as_tr_sh`
   6100 if eval test \${cv_prog_cc_flag_needed_$cache+y}
   6101 then :
   6102   printf %s "(cached) " >&6
   6103 else $as_nop
   6104 
   6105 echo '
   6106 #include <stdbool.h>
   6107 #include <ctype.h>
   6108 int test(void) {
   6109         int a = 0;
   6110         return a;
   6111 }
   6112 ' > conftest.c
   6113 echo 'void f(void){}' >>conftest.c
   6114 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   6115 eval "cv_prog_cc_flag_needed_$cache=no"
   6116 else
   6117 
   6118 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
   6119 eval "cv_prog_cc_flag_needed_$cache=yes"
   6120 else
   6121 eval "cv_prog_cc_flag_needed_$cache=fail"
   6122 #echo 'Test with flag fails too!'
   6123 #cat conftest.c
   6124 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
   6125 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
   6126 #exit 1
   6127 fi
   6128 
   6129 fi
   6130 rm -f conftest conftest.c conftest.o
   6131 
   6132 fi
   6133 
   6134 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6136 printf "%s\n" "yes" >&6; }
   6137 :
   6138 CFLAGS="$CFLAGS $C99FLAG"
   6139 else
   6140 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6142 printf "%s\n" "no" >&6; }
   6143 #echo 'Test with flag is no!'
   6144 #cat conftest.c
   6145 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
   6146 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
   6147 #exit 1
   6148 :
   6149 
   6150 else
   6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6152 printf "%s\n" "failed" >&6; }
   6153 :
   6154 
   6155 fi
   6156 fi
   6157 
   6158 
   6159 
   6160 
   6161 
   6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
   6163 printf %s "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
   6164 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
   6165 if eval test \${cv_prog_cc_flag_needed_$cache+y}
   6166 then :
   6167   printf %s "(cached) " >&6
   6168 else $as_nop
   6169 
   6170 echo '
   6171 #include <ctype.h>
   6172 
   6173 int test(void) {
   6174         int a;
   6175         a = isascii(32);
   6176         return a;
   6177 }
   6178 ' > conftest.c
   6179 echo 'void f(void){}' >>conftest.c
   6180 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   6181 eval "cv_prog_cc_flag_needed_$cache=no"
   6182 else
   6183 
   6184 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
   6185 eval "cv_prog_cc_flag_needed_$cache=yes"
   6186 else
   6187 eval "cv_prog_cc_flag_needed_$cache=fail"
   6188 #echo 'Test with flag fails too!'
   6189 #cat conftest.c
   6190 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
   6191 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
   6192 #exit 1
   6193 fi
   6194 
   6195 fi
   6196 rm -f conftest conftest.c conftest.o
   6197 
   6198 fi
   6199 
   6200 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6202 printf "%s\n" "yes" >&6; }
   6203 :
   6204 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
   6205 else
   6206 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6208 printf "%s\n" "no" >&6; }
   6209 #echo 'Test with flag is no!'
   6210 #cat conftest.c
   6211 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
   6212 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
   6213 #exit 1
   6214 :
   6215 
   6216 else
   6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6218 printf "%s\n" "failed" >&6; }
   6219 :
   6220 
   6221 fi
   6222 fi
   6223 
   6224 
   6225 
   6226 
   6227 
   6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
   6229 printf %s "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
   6230 cache=_D_GNU_SOURCE
   6231 if eval test \${cv_prog_cc_flag_needed_$cache+y}
   6232 then :
   6233   printf %s "(cached) " >&6
   6234 else $as_nop
   6235 
   6236 echo '
   6237 #include <netinet/in.h>
   6238 
   6239 int test(void) {
   6240         struct in6_pktinfo inf;
   6241 	int a = (int)sizeof(inf);
   6242         return a;
   6243 }
   6244 ' > conftest.c
   6245 echo 'void f(void){}' >>conftest.c
   6246 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   6247 eval "cv_prog_cc_flag_needed_$cache=no"
   6248 else
   6249 
   6250 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
   6251 eval "cv_prog_cc_flag_needed_$cache=yes"
   6252 else
   6253 eval "cv_prog_cc_flag_needed_$cache=fail"
   6254 #echo 'Test with flag fails too!'
   6255 #cat conftest.c
   6256 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
   6257 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
   6258 #exit 1
   6259 fi
   6260 
   6261 fi
   6262 rm -f conftest conftest.c conftest.o
   6263 
   6264 fi
   6265 
   6266 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6268 printf "%s\n" "yes" >&6; }
   6269 :
   6270 CFLAGS="$CFLAGS -D_GNU_SOURCE"
   6271 else
   6272 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6274 printf "%s\n" "no" >&6; }
   6275 #echo 'Test with flag is no!'
   6276 #cat conftest.c
   6277 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
   6278 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
   6279 #exit 1
   6280 :
   6281 
   6282 else
   6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6284 printf "%s\n" "failed" >&6; }
   6285 :
   6286 
   6287 fi
   6288 fi
   6289 
   6290 
   6291 # check again for GNU_SOURCE for setresgid. May fail if setresgid
   6292 # is not available at all. -D_FRSRESGID is to make this check unique.
   6293 # otherwise we would get the previous cached result.
   6294 
   6295 
   6296 
   6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
   6298 printf %s "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
   6299 cache=_D_GNU_SOURCE__D_FRSRESGID
   6300 if eval test \${cv_prog_cc_flag_needed_$cache+y}
   6301 then :
   6302   printf %s "(cached) " >&6
   6303 else $as_nop
   6304 
   6305 echo '
   6306 #include <unistd.h>
   6307 
   6308 int test(void) {
   6309 	int a = setresgid(0,0,0);
   6310 	a = setresuid(0,0,0);
   6311         return a;
   6312 }
   6313 ' > conftest.c
   6314 echo 'void f(void){}' >>conftest.c
   6315 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   6316 eval "cv_prog_cc_flag_needed_$cache=no"
   6317 else
   6318 
   6319 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
   6320 eval "cv_prog_cc_flag_needed_$cache=yes"
   6321 else
   6322 eval "cv_prog_cc_flag_needed_$cache=fail"
   6323 #echo 'Test with flag fails too!'
   6324 #cat conftest.c
   6325 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
   6326 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
   6327 #exit 1
   6328 fi
   6329 
   6330 fi
   6331 rm -f conftest conftest.c conftest.o
   6332 
   6333 fi
   6334 
   6335 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6337 printf "%s\n" "yes" >&6; }
   6338 :
   6339 CFLAGS="$CFLAGS -D_GNU_SOURCE"
   6340 else
   6341 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6343 printf "%s\n" "no" >&6; }
   6344 #echo 'Test with flag is no!'
   6345 #cat conftest.c
   6346 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
   6347 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
   6348 #exit 1
   6349 :
   6350 
   6351 else
   6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6353 printf "%s\n" "failed" >&6; }
   6354 :
   6355 
   6356 fi
   6357 fi
   6358 
   6359 
   6360 
   6361 
   6362 
   6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
   6364 printf %s "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
   6365 cache=_D_POSIX_C_SOURCE_200112
   6366 if eval test \${cv_prog_cc_flag_needed_$cache+y}
   6367 then :
   6368   printf %s "(cached) " >&6
   6369 else $as_nop
   6370 
   6371 echo '
   6372 #include "confdefs.h"
   6373 #ifdef HAVE_TIME_H
   6374 #include <time.h>
   6375 #endif
   6376 #include <netdb.h>
   6377 
   6378 int test(void) {
   6379         int a = 0;
   6380         char *t;
   6381         time_t time = 0;
   6382         char *buf = NULL;
   6383 	const char* str = NULL;
   6384         t = ctime_r(&time, buf);
   6385 	str = gai_strerror(0);
   6386 	if(t && str)
   6387 		a = 0;
   6388         return a;
   6389 }
   6390 ' > conftest.c
   6391 echo 'void f(void){}' >>conftest.c
   6392 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   6393 eval "cv_prog_cc_flag_needed_$cache=no"
   6394 else
   6395 
   6396 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
   6397 eval "cv_prog_cc_flag_needed_$cache=yes"
   6398 else
   6399 eval "cv_prog_cc_flag_needed_$cache=fail"
   6400 #echo 'Test with flag fails too!'
   6401 #cat conftest.c
   6402 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
   6403 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
   6404 #exit 1
   6405 fi
   6406 
   6407 fi
   6408 rm -f conftest conftest.c conftest.o
   6409 
   6410 fi
   6411 
   6412 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6414 printf "%s\n" "yes" >&6; }
   6415 :
   6416 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
   6417 else
   6418 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6420 printf "%s\n" "no" >&6; }
   6421 #echo 'Test with flag is no!'
   6422 #cat conftest.c
   6423 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
   6424 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
   6425 #exit 1
   6426 :
   6427 
   6428 else
   6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6430 printf "%s\n" "failed" >&6; }
   6431 :
   6432 
   6433 fi
   6434 fi
   6435 
   6436 
   6437 
   6438 
   6439 
   6440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
   6441 printf %s "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
   6442 cache=_D__EXTENSIONS__
   6443 if eval test \${cv_prog_cc_flag_needed_$cache+y}
   6444 then :
   6445   printf %s "(cached) " >&6
   6446 else $as_nop
   6447 
   6448 echo '
   6449 #include "confdefs.h"
   6450 #include <stdlib.h>
   6451 #include <ctype.h>
   6452 #include <sys/time.h>
   6453 #ifdef HAVE_TIME_H
   6454 #include <time.h>
   6455 #endif
   6456 #include <unistd.h>
   6457 #ifdef HAVE_GETOPT_H
   6458 #include <getopt.h>
   6459 #endif
   6460 
   6461 int test(void) {
   6462         int a;
   6463         char **opts = NULL;
   6464         struct timeval tv;
   6465         tv.tv_usec = 10;
   6466         srandom(32);
   6467         a = getopt(2, opts, "a");
   6468         a = isascii(32);
   6469 	if(tv.tv_usec)
   6470 		a = 0;
   6471         return a;
   6472 }
   6473 ' > conftest.c
   6474 echo 'void f(void){}' >>conftest.c
   6475 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   6476 eval "cv_prog_cc_flag_needed_$cache=no"
   6477 else
   6478 
   6479 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
   6480 eval "cv_prog_cc_flag_needed_$cache=yes"
   6481 else
   6482 eval "cv_prog_cc_flag_needed_$cache=fail"
   6483 #echo 'Test with flag fails too!'
   6484 #cat conftest.c
   6485 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
   6486 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
   6487 #exit 1
   6488 fi
   6489 
   6490 fi
   6491 rm -f conftest conftest.c conftest.o
   6492 
   6493 fi
   6494 
   6495 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6497 printf "%s\n" "yes" >&6; }
   6498 :
   6499 CFLAGS="$CFLAGS -D__EXTENSIONS__"
   6500 else
   6501 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6503 printf "%s\n" "no" >&6; }
   6504 #echo 'Test with flag is no!'
   6505 #cat conftest.c
   6506 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
   6507 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
   6508 #exit 1
   6509 :
   6510 
   6511 else
   6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6513 printf "%s\n" "failed" >&6; }
   6514 :
   6515 
   6516 fi
   6517 fi
   6518 
   6519 
   6520 
   6521 
   6522 # debug mode flags warnings
   6523 # Check whether --enable-checking was given.
   6524 if test ${enable_checking+y}
   6525 then :
   6526   enableval=$enable_checking;
   6527 fi
   6528 
   6529 # Check whether --enable-debug was given.
   6530 if test ${enable_debug+y}
   6531 then :
   6532   enableval=$enable_debug;
   6533 fi
   6534 
   6535 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
   6536 else debug_enabled="$enable_checking"; fi
   6537 
   6538 case "$debug_enabled" in
   6539         yes)
   6540 
   6541 
   6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
   6543 printf %s "checking whether $CC supports -W... " >&6; }
   6544 cache=`echo W | sed 'y%.=/+-%___p_%'`
   6545 if eval test \${cv_prog_cc_flag_$cache+y}
   6546 then :
   6547   printf %s "(cached) " >&6
   6548 else $as_nop
   6549 
   6550 echo 'void f(void){}' >conftest.c
   6551 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
   6552 eval "cv_prog_cc_flag_$cache=yes"
   6553 else
   6554 eval "cv_prog_cc_flag_$cache=no"
   6555 fi
   6556 rm -f conftest conftest.o conftest.c
   6557 
   6558 fi
   6559 
   6560 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6562 printf "%s\n" "yes" >&6; }
   6563 :
   6564 CFLAGS="$CFLAGS -W"
   6565 else
   6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6567 printf "%s\n" "no" >&6; }
   6568 :
   6569 
   6570 fi
   6571 
   6572 
   6573 
   6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
   6575 printf %s "checking whether $CC supports -Wall... " >&6; }
   6576 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
   6577 if eval test \${cv_prog_cc_flag_$cache+y}
   6578 then :
   6579   printf %s "(cached) " >&6
   6580 else $as_nop
   6581 
   6582 echo 'void f(void){}' >conftest.c
   6583 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
   6584 eval "cv_prog_cc_flag_$cache=yes"
   6585 else
   6586 eval "cv_prog_cc_flag_$cache=no"
   6587 fi
   6588 rm -f conftest conftest.o conftest.c
   6589 
   6590 fi
   6591 
   6592 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6594 printf "%s\n" "yes" >&6; }
   6595 :
   6596 CFLAGS="$CFLAGS -Wall"
   6597 else
   6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6599 printf "%s\n" "no" >&6; }
   6600 :
   6601 
   6602 fi
   6603 
   6604 
   6605 
   6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
   6607 printf %s "checking whether $CC supports -Wextra... " >&6; }
   6608 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
   6609 if eval test \${cv_prog_cc_flag_$cache+y}
   6610 then :
   6611   printf %s "(cached) " >&6
   6612 else $as_nop
   6613 
   6614 echo 'void f(void){}' >conftest.c
   6615 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
   6616 eval "cv_prog_cc_flag_$cache=yes"
   6617 else
   6618 eval "cv_prog_cc_flag_$cache=no"
   6619 fi
   6620 rm -f conftest conftest.o conftest.c
   6621 
   6622 fi
   6623 
   6624 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6626 printf "%s\n" "yes" >&6; }
   6627 :
   6628 CFLAGS="$CFLAGS -Wextra"
   6629 else
   6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6631 printf "%s\n" "no" >&6; }
   6632 :
   6633 
   6634 fi
   6635 
   6636 
   6637 
   6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
   6639 printf %s "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
   6640 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
   6641 if eval test \${cv_prog_cc_flag_$cache+y}
   6642 then :
   6643   printf %s "(cached) " >&6
   6644 else $as_nop
   6645 
   6646 echo 'void f(void){}' >conftest.c
   6647 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
   6648 eval "cv_prog_cc_flag_$cache=yes"
   6649 else
   6650 eval "cv_prog_cc_flag_$cache=no"
   6651 fi
   6652 rm -f conftest conftest.o conftest.c
   6653 
   6654 fi
   6655 
   6656 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6658 printf "%s\n" "yes" >&6; }
   6659 :
   6660 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
   6661 else
   6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6663 printf "%s\n" "no" >&6; }
   6664 :
   6665 
   6666 fi
   6667 
   6668 
   6669 printf "%s\n" "#define UNBOUND_DEBUG /**/" >>confdefs.h
   6670 
   6671 		;;
   6672 	no|*)
   6673 		# nothing to do.
   6674 		;;
   6675 esac
   6676 if test "$default_cflags" = "yes"; then
   6677 	# only when CFLAGS was "" at the start, if the users wants to
   6678 	# override we shouldn't add default cflags, because they wouldn't
   6679 	# be able to turn off these options and set the CFLAGS wanted.
   6680 
   6681     # Check whether --enable-flto was given.
   6682 if test ${enable_flto+y}
   6683 then :
   6684   enableval=$enable_flto;
   6685 fi
   6686 
   6687     if test "x$enable_flto" != "xno"
   6688 then :
   6689 
   6690         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
   6691 printf %s "checking if $CC supports -flto... " >&6; }
   6692         BAKCFLAGS="$CFLAGS"
   6693         CFLAGS="$CFLAGS -flto"
   6694         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6695 /* end confdefs.h.  */
   6696 
   6697 int
   6698 main (void)
   6699 {
   6700 
   6701   ;
   6702   return 0;
   6703 }
   6704 _ACEOF
   6705 if ac_fn_c_try_link "$LINENO"
   6706 then :
   6707 
   6708             if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
   6709                 CFLAGS="$BAKCFLAGS"
   6710                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6711 printf "%s\n" "no" >&6; }
   6712             else
   6713                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6714 printf "%s\n" "yes" >&6; }
   6715             fi
   6716             rm -f conftest conftest.c conftest.o
   6717 
   6718 else $as_nop
   6719   CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6720 printf "%s\n" "no" >&6; }
   6721 fi
   6722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6723     conftest$ac_exeext conftest.$ac_ext
   6724 
   6725 fi
   6726 
   6727 
   6728     # Check whether --enable-pie was given.
   6729 if test ${enable_pie+y}
   6730 then :
   6731   enableval=$enable_pie;
   6732 fi
   6733 
   6734     if test "x$enable_pie" = "xyes"
   6735 then :
   6736 
   6737 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
   6738 printf %s "checking if $CC supports PIE... " >&6; }
   6739 	BAKLDFLAGS="$LDFLAGS"
   6740 	BAKCFLAGS="$CFLAGS"
   6741 	LDFLAGS="$LDFLAGS -pie"
   6742 	CFLAGS="$CFLAGS -fPIE"
   6743 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6744 /* end confdefs.h.  */
   6745 
   6746 int
   6747 main (void)
   6748 {
   6749 
   6750   ;
   6751   return 0;
   6752 }
   6753 _ACEOF
   6754 if ac_fn_c_try_link "$LINENO"
   6755 then :
   6756 
   6757 	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
   6758 		LDFLAGS="$BAKLDFLAGS"
   6759 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6760 printf "%s\n" "no" >&6; }
   6761 	    else
   6762 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6763 printf "%s\n" "yes" >&6; }
   6764 	    fi
   6765 	    rm -f conftest conftest.c conftest.o
   6766 
   6767 else $as_nop
   6768   LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6769 printf "%s\n" "no" >&6; }
   6770 fi
   6771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6772     conftest$ac_exeext conftest.$ac_ext
   6773 
   6774 fi
   6775 
   6776 
   6777     # Check whether --enable-relro_now was given.
   6778 if test ${enable_relro_now+y}
   6779 then :
   6780   enableval=$enable_relro_now;
   6781 fi
   6782 
   6783     if test "x$enable_relro_now" = "xyes"
   6784 then :
   6785 
   6786 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
   6787 printf %s "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
   6788 	BAKLDFLAGS="$LDFLAGS"
   6789 	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
   6790 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6791 /* end confdefs.h.  */
   6792 
   6793 int
   6794 main (void)
   6795 {
   6796 
   6797   ;
   6798   return 0;
   6799 }
   6800 _ACEOF
   6801 if ac_fn_c_try_link "$LINENO"
   6802 then :
   6803 
   6804 	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
   6805 		LDFLAGS="$BAKLDFLAGS"
   6806 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6807 printf "%s\n" "no" >&6; }
   6808 	    else
   6809 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6810 printf "%s\n" "yes" >&6; }
   6811 	    fi
   6812 	    rm -f conftest conftest.c conftest.o
   6813 
   6814 else $as_nop
   6815   LDFLAGS="$BAKLDFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6816 printf "%s\n" "no" >&6; }
   6817 fi
   6818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6819     conftest$ac_exeext conftest.$ac_ext
   6820 
   6821 fi
   6822 
   6823 fi
   6824 
   6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   6826 printf %s "checking for inline... " >&6; }
   6827 if test ${ac_cv_c_inline+y}
   6828 then :
   6829   printf %s "(cached) " >&6
   6830 else $as_nop
   6831   ac_cv_c_inline=no
   6832 for ac_kw in inline __inline__ __inline; do
   6833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6834 /* end confdefs.h.  */
   6835 #ifndef __cplusplus
   6836 typedef int foo_t;
   6837 static $ac_kw foo_t static_foo (void) {return 0; }
   6838 $ac_kw foo_t foo (void) {return 0; }
   6839 #endif
   6840 
   6841 _ACEOF
   6842 if ac_fn_c_try_compile "$LINENO"
   6843 then :
   6844   ac_cv_c_inline=$ac_kw
   6845 fi
   6846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6847   test "$ac_cv_c_inline" != no && break
   6848 done
   6849 
   6850 fi
   6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   6852 printf "%s\n" "$ac_cv_c_inline" >&6; }
   6853 
   6854 case $ac_cv_c_inline in
   6855   inline | yes) ;;
   6856   *)
   6857     case $ac_cv_c_inline in
   6858       no) ac_val=;;
   6859       *) ac_val=$ac_cv_c_inline;;
   6860     esac
   6861     cat >>confdefs.h <<_ACEOF
   6862 #ifndef __cplusplus
   6863 #define inline $ac_val
   6864 #endif
   6865 _ACEOF
   6866     ;;
   6867 esac
   6868 
   6869 
   6870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
   6871 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
   6872 if test ${ac_cv_c_format_attribute+y}
   6873 then :
   6874   printf %s "(cached) " >&6
   6875 else $as_nop
   6876   ac_cv_c_format_attribute=no
   6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6878 /* end confdefs.h.  */
   6879 #include <stdio.h>
   6880 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
   6881 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
   6882 
   6883 int
   6884 main (void)
   6885 {
   6886 
   6887    f ("%s", "str");
   6888 
   6889   ;
   6890   return 0;
   6891 }
   6892 _ACEOF
   6893 if ac_fn_c_try_compile "$LINENO"
   6894 then :
   6895   ac_cv_c_format_attribute="yes"
   6896 else $as_nop
   6897   ac_cv_c_format_attribute="no"
   6898 fi
   6899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6900 
   6901 fi
   6902 
   6903 
   6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
   6905 printf "%s\n" "$ac_cv_c_format_attribute" >&6; }
   6906 if test $ac_cv_c_format_attribute = yes; then
   6907 
   6908 printf "%s\n" "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
   6909 
   6910 fi
   6911 
   6912 
   6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
   6914 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
   6915 if test ${ac_cv_c_unused_attribute+y}
   6916 then :
   6917   printf %s "(cached) " >&6
   6918 else $as_nop
   6919   ac_cv_c_unused_attribute=no
   6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6921 /* end confdefs.h.  */
   6922 #include <stdio.h>
   6923 void f (char *u __attribute__((unused)));
   6924 
   6925 int
   6926 main (void)
   6927 {
   6928 
   6929    f ("x");
   6930 
   6931   ;
   6932   return 0;
   6933 }
   6934 _ACEOF
   6935 if ac_fn_c_try_compile "$LINENO"
   6936 then :
   6937   ac_cv_c_unused_attribute="yes"
   6938 else $as_nop
   6939   ac_cv_c_unused_attribute="no"
   6940 fi
   6941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6942 
   6943 fi
   6944 
   6945 
   6946 
   6947 
   6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
   6949 printf "%s\n" "$ac_cv_c_unused_attribute" >&6; }
   6950 if test $ac_cv_c_unused_attribute = yes; then
   6951 
   6952 printf "%s\n" "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
   6953 
   6954 fi
   6955 
   6956 
   6957 
   6958 BAKCFLAGS="$CFLAGS"
   6959 CFLAGS="$CFLAGS $ERRFLAG"
   6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"nonstring\" attribute" >&5
   6961 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"nonstring\" attribute... " >&6; }
   6962 if test ${ac_cv_c_nonstring_attribute+y}
   6963 then :
   6964   printf %s "(cached) " >&6
   6965 else $as_nop
   6966   ac_cv_c_nonstring_attribute=no
   6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6968 /* end confdefs.h.  */
   6969 #include <stdio.h>
   6970 struct test {
   6971     char __attribute__((nonstring)) s[1];
   6972 };
   6973 
   6974 int
   6975 main (void)
   6976 {
   6977 
   6978    struct test t = { "1" };
   6979    (void) t;
   6980 
   6981   ;
   6982   return 0;
   6983 }
   6984 _ACEOF
   6985 if ac_fn_c_try_compile "$LINENO"
   6986 then :
   6987   ac_cv_c_nonstring_attribute="yes"
   6988 else $as_nop
   6989   ac_cv_c_nonstring_attribute="no"
   6990 fi
   6991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6992 CFLAGS="$BAKCFLAGS"
   6993 
   6994 fi
   6995 
   6996 
   6997 
   6998 
   6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_nonstring_attribute" >&5
   7000 printf "%s\n" "$ac_cv_c_nonstring_attribute" >&6; }
   7001 if test $ac_cv_c_nonstring_attribute = yes; then
   7002 
   7003 printf "%s\n" "#define HAVE_ATTR_NONSTRING 1" >>confdefs.h
   7004 
   7005 fi
   7006 
   7007 
   7008 
   7009 
   7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
   7011 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
   7012 if test ${ac_cv_c_weak_attribute+y}
   7013 then :
   7014   printf %s "(cached) " >&6
   7015 else $as_nop
   7016   ac_cv_c_weak_attribute=no
   7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7018 /* end confdefs.h.  */
   7019  #include <stdio.h>
   7020 __attribute__((weak)) void f(int x) { printf("%d", x); }
   7021 
   7022 int
   7023 main (void)
   7024 {
   7025 
   7026    f(1);
   7027 
   7028   ;
   7029   return 0;
   7030 }
   7031 _ACEOF
   7032 if ac_fn_c_try_compile "$LINENO"
   7033 then :
   7034   ac_cv_c_weak_attribute="yes"
   7035 else $as_nop
   7036   ac_cv_c_weak_attribute="no"
   7037 fi
   7038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7039 
   7040 fi
   7041 
   7042 
   7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
   7044 printf "%s\n" "$ac_cv_c_weak_attribute" >&6; }
   7045 if test $ac_cv_c_weak_attribute = yes; then
   7046 
   7047 printf "%s\n" "#define HAVE_ATTR_WEAK 1" >>confdefs.h
   7048 
   7049 
   7050 printf "%s\n" "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
   7051 
   7052 else
   7053 
   7054 printf "%s\n" "#define ATTR_WEAK /**/" >>confdefs.h
   7055 
   7056 fi
   7057 
   7058 
   7059 
   7060 
   7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
   7062 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
   7063 if test ${ac_cv_c_noreturn_attribute+y}
   7064 then :
   7065   printf %s "(cached) " >&6
   7066 else $as_nop
   7067   ac_cv_c_noreturn_attribute=no
   7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7069 /* end confdefs.h.  */
   7070  #include <stdio.h>
   7071 #ifdef STDC_HEADERS
   7072 # include <stdlib.h>
   7073 #else
   7074 # ifdef HAVE_STDLIB_H
   7075 #  include <stdlib.h>
   7076 # endif
   7077 #endif
   7078 __attribute__((noreturn)) void f(int x) { printf("%d", x); exit(1); }
   7079 
   7080 int
   7081 main (void)
   7082 {
   7083 
   7084    f(1);
   7085 
   7086   ;
   7087   return 0;
   7088 }
   7089 _ACEOF
   7090 if ac_fn_c_try_compile "$LINENO"
   7091 then :
   7092   ac_cv_c_noreturn_attribute="yes"
   7093 else $as_nop
   7094   ac_cv_c_noreturn_attribute="no"
   7095 fi
   7096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7097 
   7098 fi
   7099 
   7100 
   7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
   7102 printf "%s\n" "$ac_cv_c_noreturn_attribute" >&6; }
   7103 if test $ac_cv_c_noreturn_attribute = yes; then
   7104 
   7105 printf "%s\n" "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
   7106 
   7107 
   7108 printf "%s\n" "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
   7109 
   7110 else
   7111 
   7112 printf "%s\n" "#define ATTR_NORETURN /**/" >>confdefs.h
   7113 
   7114 fi
   7115 
   7116 
   7117 
   7118 
   7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"fallthrough\" attribute" >&5
   7120 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"fallthrough\" attribute... " >&6; }
   7121 BAKCFLAGS="$CFLAGS"
   7122 CFLAGS="$CFLAGS -Werror"
   7123 if test ${ac_cv_c_fallthrough_attribute+y}
   7124 then :
   7125   printf %s "(cached) " >&6
   7126 else $as_nop
   7127   ac_cv_c_fallthrough_attribute=no
   7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7129 /* end confdefs.h.  */
   7130  #include <stdio.h>
   7131 void f(int x) {
   7132 	int y = 0;
   7133 	switch(x) {
   7134 	case 1:
   7135 		y = 1;
   7136 		__attribute__((fallthrough));
   7137 		/* fallthrough */
   7138 	case 2:
   7139 		y++;
   7140 		break;
   7141 	case 3:
   7142 		y = 3;
   7143 		break;
   7144 	}
   7145 	printf("%d", y);
   7146 }
   7147 
   7148 int
   7149 main (void)
   7150 {
   7151 
   7152    f(1);
   7153 
   7154   ;
   7155   return 0;
   7156 }
   7157 _ACEOF
   7158 if ac_fn_c_try_compile "$LINENO"
   7159 then :
   7160   ac_cv_c_fallthrough_attribute="yes"
   7161 else $as_nop
   7162   ac_cv_c_fallthrough_attribute="no"
   7163 fi
   7164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7165 
   7166 fi
   7167 
   7168 CFLAGS="$BAKCFLAGS"
   7169 
   7170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fallthrough_attribute" >&5
   7171 printf "%s\n" "$ac_cv_c_fallthrough_attribute" >&6; }
   7172 if test $ac_cv_c_fallthrough_attribute = yes; then
   7173 
   7174 printf "%s\n" "#define HAVE_ATTR_FALLTHROUGH 1" >>confdefs.h
   7175 
   7176 
   7177 printf "%s\n" "#define ATTR_FALLTHROUGH __attribute__((fallthrough));" >>confdefs.h
   7178 
   7179 else
   7180 
   7181 printf "%s\n" "#define ATTR_FALLTHROUGH /**/" >>confdefs.h
   7182 
   7183 fi
   7184 
   7185 
   7186 if test "$srcdir" != "."; then
   7187 	CPPFLAGS="$CPPFLAGS -I$srcdir"
   7188 fi
   7189 
   7190 
   7191 
   7192 
   7193 
   7194 for ac_prog in flex lex
   7195 do
   7196   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7197 set dummy $ac_prog; ac_word=$2
   7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7199 printf %s "checking for $ac_word... " >&6; }
   7200 if test ${ac_cv_prog_LEX+y}
   7201 then :
   7202   printf %s "(cached) " >&6
   7203 else $as_nop
   7204   if test -n "$LEX"; then
   7205   ac_cv_prog_LEX="$LEX" # Let the user override the test.
   7206 else
   7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7208 for as_dir in $PATH
   7209 do
   7210   IFS=$as_save_IFS
   7211   case $as_dir in #(((
   7212     '') as_dir=./ ;;
   7213     */) ;;
   7214     *) as_dir=$as_dir/ ;;
   7215   esac
   7216     for ac_exec_ext in '' $ac_executable_extensions; do
   7217   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7218     ac_cv_prog_LEX="$ac_prog"
   7219     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7220     break 2
   7221   fi
   7222 done
   7223   done
   7224 IFS=$as_save_IFS
   7225 
   7226 fi
   7227 fi
   7228 LEX=$ac_cv_prog_LEX
   7229 if test -n "$LEX"; then
   7230   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
   7231 printf "%s\n" "$LEX" >&6; }
   7232 else
   7233   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7234 printf "%s\n" "no" >&6; }
   7235 fi
   7236 
   7237 
   7238   test -n "$LEX" && break
   7239 done
   7240 test -n "$LEX" || LEX=":"
   7241 
   7242   if test "x$LEX" != "x:"; then
   7243     cat >conftest.l <<_ACEOF
   7244 %{
   7245 #ifdef __cplusplus
   7246 extern "C"
   7247 #endif
   7248 int yywrap(void);
   7249 %}
   7250 %%
   7251 a { ECHO; }
   7252 b { REJECT; }
   7253 c { yymore (); }
   7254 d { yyless (1); }
   7255 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
   7256 #ifdef __cplusplus
   7257     yyless ((yyinput () != 0));
   7258 #else
   7259     yyless ((input () != 0));
   7260 #endif
   7261   }
   7262 f { unput (yytext[0]); }
   7263 . { BEGIN INITIAL; }
   7264 %%
   7265 #ifdef YYTEXT_POINTER
   7266 extern char *yytext;
   7267 #endif
   7268 int
   7269 yywrap (void)
   7270 {
   7271   return 1;
   7272 }
   7273 int
   7274 main (void)
   7275 {
   7276   return ! yylex ();
   7277 }
   7278 _ACEOF
   7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
   7280 printf %s "checking for lex output file root... " >&6; }
   7281 if test ${ac_cv_prog_lex_root+y}
   7282 then :
   7283   printf %s "(cached) " >&6
   7284 else $as_nop
   7285 
   7286 ac_cv_prog_lex_root=unknown
   7287 { { ac_try="$LEX conftest.l"
   7288 case "(($ac_try" in
   7289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7290   *) ac_try_echo=$ac_try;;
   7291 esac
   7292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   7293 printf "%s\n" "$ac_try_echo"; } >&5
   7294   (eval "$LEX conftest.l") 2>&5
   7295   ac_status=$?
   7296   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7297   test $ac_status = 0; } &&
   7298 if test -f lex.yy.c; then
   7299   ac_cv_prog_lex_root=lex.yy
   7300 elif test -f lexyy.c; then
   7301   ac_cv_prog_lex_root=lexyy
   7302 fi
   7303 fi
   7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
   7305 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
   7306 if test "$ac_cv_prog_lex_root" = unknown
   7307 then :
   7308   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
   7309 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
   7310    LEX=: LEXLIB=
   7311 fi
   7312 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
   7313 
   7314 if test ${LEXLIB+y}
   7315 then :
   7316 
   7317 else $as_nop
   7318 
   7319   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
   7320 printf %s "checking for lex library... " >&6; }
   7321 if test ${ac_cv_lib_lex+y}
   7322 then :
   7323   printf %s "(cached) " >&6
   7324 else $as_nop
   7325 
   7326     ac_save_LIBS="$LIBS"
   7327     ac_found=false
   7328     for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
   7329       case $ac_cv_lib_lex in #(
   7330   'none needed') :
   7331      ;; #(
   7332   'not found') :
   7333     break ;; #(
   7334   *) :
   7335     LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
   7336   *) :
   7337      ;;
   7338 esac
   7339 
   7340       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7341 /* end confdefs.h.  */
   7342 `cat $LEX_OUTPUT_ROOT.c`
   7343 _ACEOF
   7344 if ac_fn_c_try_link "$LINENO"
   7345 then :
   7346   ac_found=:
   7347 fi
   7348 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7349     conftest$ac_exeext conftest.$ac_ext
   7350       if $ac_found; then
   7351         break
   7352       fi
   7353     done
   7354     LIBS="$ac_save_LIBS"
   7355 
   7356 fi
   7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
   7358 printf "%s\n" "$ac_cv_lib_lex" >&6; }
   7359   if test "$ac_cv_lib_lex" = 'not found'
   7360 then :
   7361   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
   7362 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
   7363 	 LEX=: LEXLIB=
   7364 elif test "$ac_cv_lib_lex" = 'none needed'
   7365 then :
   7366   LEXLIB=''
   7367 else $as_nop
   7368   LEXLIB=$ac_cv_lib_lex
   7369 fi
   7370 
   7371 fi
   7372 
   7373 
   7374 if test "$LEX" != :
   7375 then :
   7376 
   7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
   7378 printf %s "checking whether yytext is a pointer... " >&6; }
   7379 if test ${ac_cv_prog_lex_yytext_pointer+y}
   7380 then :
   7381   printf %s "(cached) " >&6
   7382 else $as_nop
   7383   # POSIX says lex can declare yytext either as a pointer or an array; the
   7384 # default is implementation-dependent.  Figure out which it is, since
   7385 # not all implementations provide the %pointer and %array declarations.
   7386 ac_cv_prog_lex_yytext_pointer=no
   7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7388 /* end confdefs.h.  */
   7389 
   7390   #define YYTEXT_POINTER 1
   7391 `cat $LEX_OUTPUT_ROOT.c`
   7392 _ACEOF
   7393 if ac_fn_c_try_compile "$LINENO"
   7394 then :
   7395   ac_cv_prog_lex_yytext_pointer=yes
   7396 fi
   7397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7398 
   7399 fi
   7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
   7401 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
   7402 if test $ac_cv_prog_lex_yytext_pointer = yes; then
   7403 
   7404 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
   7405 
   7406 fi
   7407 
   7408 fi
   7409 rm -f conftest.l $LEX_OUTPUT_ROOT.c
   7410 
   7411 fi
   7412 if test "$LEX" != "" -a "$LEX" != ":"; then
   7413 
   7414 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
   7415 printf %s "checking for yylex_destroy... " >&6; }
   7416 	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
   7417 
   7418 printf "%s\n" "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
   7419 
   7420 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7421 printf "%s\n" "yes" >&6; }
   7422 	else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7423 printf "%s\n" "no" >&6; };
   7424 		LEX=":"
   7425 	fi
   7426 
   7427 fi
   7428 if test "$LEX" != "" -a "$LEX" != ":"; then
   7429 
   7430 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
   7431 printf %s "checking for lex %option... " >&6; }
   7432 	if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
   7433 %option nounput
   7434 %%
   7435 EOF
   7436 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7437 printf "%s\n" "yes" >&6; }
   7438 	else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7439 printf "%s\n" "no" >&6; };
   7440 		LEX=":"
   7441 	fi
   7442 
   7443 fi
   7444 if test "$LEX" = "" -o "$LEX" = ":"; then
   7445 	if test ! -f util/configlexer.c; then
   7446 		as_fn_error $? "no lex and no util/configlexer.c: need flex and bison to compile from source repository." "$LINENO" 5
   7447 	fi
   7448 fi
   7449 for ac_prog in 'bison -y' byacc
   7450 do
   7451   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7452 set dummy $ac_prog; ac_word=$2
   7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7454 printf %s "checking for $ac_word... " >&6; }
   7455 if test ${ac_cv_prog_YACC+y}
   7456 then :
   7457   printf %s "(cached) " >&6
   7458 else $as_nop
   7459   if test -n "$YACC"; then
   7460   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   7461 else
   7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7463 for as_dir in $PATH
   7464 do
   7465   IFS=$as_save_IFS
   7466   case $as_dir in #(((
   7467     '') as_dir=./ ;;
   7468     */) ;;
   7469     *) as_dir=$as_dir/ ;;
   7470   esac
   7471     for ac_exec_ext in '' $ac_executable_extensions; do
   7472   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7473     ac_cv_prog_YACC="$ac_prog"
   7474     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7475     break 2
   7476   fi
   7477 done
   7478   done
   7479 IFS=$as_save_IFS
   7480 
   7481 fi
   7482 fi
   7483 YACC=$ac_cv_prog_YACC
   7484 if test -n "$YACC"; then
   7485   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
   7486 printf "%s\n" "$YACC" >&6; }
   7487 else
   7488   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7489 printf "%s\n" "no" >&6; }
   7490 fi
   7491 
   7492 
   7493   test -n "$YACC" && break
   7494 done
   7495 test -n "$YACC" || YACC="yacc"
   7496 
   7497 if test "$YACC" = "" -o "$YACC" = ":"; then
   7498 	if test ! -f util/configparser.c; then
   7499 		as_fn_error $? "no yacc and no util/configparser.c: need flex and bison to compile from source repository." "$LINENO" 5
   7500 	fi
   7501 fi
   7502 # Extract the first word of "doxygen", so it can be a program name with args.
   7503 set dummy doxygen; ac_word=$2
   7504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7505 printf %s "checking for $ac_word... " >&6; }
   7506 if test ${ac_cv_prog_doxygen+y}
   7507 then :
   7508   printf %s "(cached) " >&6
   7509 else $as_nop
   7510   if test -n "$doxygen"; then
   7511   ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
   7512 else
   7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7514 for as_dir in $PATH
   7515 do
   7516   IFS=$as_save_IFS
   7517   case $as_dir in #(((
   7518     '') as_dir=./ ;;
   7519     */) ;;
   7520     *) as_dir=$as_dir/ ;;
   7521   esac
   7522     for ac_exec_ext in '' $ac_executable_extensions; do
   7523   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7524     ac_cv_prog_doxygen="doxygen"
   7525     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7526     break 2
   7527   fi
   7528 done
   7529   done
   7530 IFS=$as_save_IFS
   7531 
   7532 fi
   7533 fi
   7534 doxygen=$ac_cv_prog_doxygen
   7535 if test -n "$doxygen"; then
   7536   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
   7537 printf "%s\n" "$doxygen" >&6; }
   7538 else
   7539   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7540 printf "%s\n" "no" >&6; }
   7541 fi
   7542 
   7543 
   7544 if test -n "$ac_tool_prefix"; then
   7545   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   7546 set dummy ${ac_tool_prefix}strip; ac_word=$2
   7547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7548 printf %s "checking for $ac_word... " >&6; }
   7549 if test ${ac_cv_prog_STRIP+y}
   7550 then :
   7551   printf %s "(cached) " >&6
   7552 else $as_nop
   7553   if test -n "$STRIP"; then
   7554   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   7555 else
   7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7557 for as_dir in $PATH
   7558 do
   7559   IFS=$as_save_IFS
   7560   case $as_dir in #(((
   7561     '') as_dir=./ ;;
   7562     */) ;;
   7563     *) as_dir=$as_dir/ ;;
   7564   esac
   7565     for ac_exec_ext in '' $ac_executable_extensions; do
   7566   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7567     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   7568     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7569     break 2
   7570   fi
   7571 done
   7572   done
   7573 IFS=$as_save_IFS
   7574 
   7575 fi
   7576 fi
   7577 STRIP=$ac_cv_prog_STRIP
   7578 if test -n "$STRIP"; then
   7579   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   7580 printf "%s\n" "$STRIP" >&6; }
   7581 else
   7582   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7583 printf "%s\n" "no" >&6; }
   7584 fi
   7585 
   7586 
   7587 fi
   7588 if test -z "$ac_cv_prog_STRIP"; then
   7589   ac_ct_STRIP=$STRIP
   7590   # Extract the first word of "strip", so it can be a program name with args.
   7591 set dummy strip; ac_word=$2
   7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7593 printf %s "checking for $ac_word... " >&6; }
   7594 if test ${ac_cv_prog_ac_ct_STRIP+y}
   7595 then :
   7596   printf %s "(cached) " >&6
   7597 else $as_nop
   7598   if test -n "$ac_ct_STRIP"; then
   7599   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   7600 else
   7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7602 for as_dir in $PATH
   7603 do
   7604   IFS=$as_save_IFS
   7605   case $as_dir in #(((
   7606     '') as_dir=./ ;;
   7607     */) ;;
   7608     *) as_dir=$as_dir/ ;;
   7609   esac
   7610     for ac_exec_ext in '' $ac_executable_extensions; do
   7611   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7612     ac_cv_prog_ac_ct_STRIP="strip"
   7613     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7614     break 2
   7615   fi
   7616 done
   7617   done
   7618 IFS=$as_save_IFS
   7619 
   7620 fi
   7621 fi
   7622 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   7623 if test -n "$ac_ct_STRIP"; then
   7624   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   7625 printf "%s\n" "$ac_ct_STRIP" >&6; }
   7626 else
   7627   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7628 printf "%s\n" "no" >&6; }
   7629 fi
   7630 
   7631   if test "x$ac_ct_STRIP" = x; then
   7632     STRIP=""
   7633   else
   7634     case $cross_compiling:$ac_tool_warned in
   7635 yes:)
   7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7637 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7638 ac_tool_warned=yes ;;
   7639 esac
   7640     STRIP=$ac_ct_STRIP
   7641   fi
   7642 else
   7643   STRIP="$ac_cv_prog_STRIP"
   7644 fi
   7645 
   7646 
   7647 
   7648 
   7649   # Make sure we can run config.sub.
   7650 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
   7651   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
   7652 
   7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   7654 printf %s "checking build system type... " >&6; }
   7655 if test ${ac_cv_build+y}
   7656 then :
   7657   printf %s "(cached) " >&6
   7658 else $as_nop
   7659   ac_build_alias=$build_alias
   7660 test "x$ac_build_alias" = x &&
   7661   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
   7662 test "x$ac_build_alias" = x &&
   7663   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   7664 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
   7665   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
   7666 
   7667 fi
   7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   7669 printf "%s\n" "$ac_cv_build" >&6; }
   7670 case $ac_cv_build in
   7671 *-*-*) ;;
   7672 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   7673 esac
   7674 build=$ac_cv_build
   7675 ac_save_IFS=$IFS; IFS='-'
   7676 set x $ac_cv_build
   7677 shift
   7678 build_cpu=$1
   7679 build_vendor=$2
   7680 shift; shift
   7681 # Remember, the first character of IFS is used to create $*,
   7682 # except with old shells:
   7683 build_os=$*
   7684 IFS=$ac_save_IFS
   7685 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   7686 
   7687 
   7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   7689 printf %s "checking host system type... " >&6; }
   7690 if test ${ac_cv_host+y}
   7691 then :
   7692   printf %s "(cached) " >&6
   7693 else $as_nop
   7694   if test "x$host_alias" = x; then
   7695   ac_cv_host=$ac_cv_build
   7696 else
   7697   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
   7698     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
   7699 fi
   7700 
   7701 fi
   7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   7703 printf "%s\n" "$ac_cv_host" >&6; }
   7704 case $ac_cv_host in
   7705 *-*-*) ;;
   7706 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   7707 esac
   7708 host=$ac_cv_host
   7709 ac_save_IFS=$IFS; IFS='-'
   7710 set x $ac_cv_host
   7711 shift
   7712 host_cpu=$1
   7713 host_vendor=$2
   7714 shift; shift
   7715 # Remember, the first character of IFS is used to create $*,
   7716 # except with old shells:
   7717 host_os=$*
   7718 IFS=$ac_save_IFS
   7719 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   7720 
   7721 
   7722 
   7723 # skip these tests, we do not need them.
   7724 
   7725 
   7726 
   7727 
   7728 
   7729 
   7730 
   7731 
   7732 # always use ./libtool unless override from commandline (libtool=mylibtool)
   7733 if test -z "$libtool"; then
   7734 	libtool="./libtool"
   7735 fi
   7736 
   7737 # avoid libtool max commandline length test on systems that fork slowly.
   7738 
   7739 if echo "$host_os" | grep "sunos4" >/dev/null; then
   7740 	lt_cv_sys_max_cmd_len=32750;
   7741 fi
   7742 if test -n "$ac_tool_prefix"; then
   7743   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   7744 set dummy ${ac_tool_prefix}ar; ac_word=$2
   7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7746 printf %s "checking for $ac_word... " >&6; }
   7747 if test ${ac_cv_path_AR+y}
   7748 then :
   7749   printf %s "(cached) " >&6
   7750 else $as_nop
   7751   case $AR in
   7752   [\\/]* | ?:[\\/]*)
   7753   ac_cv_path_AR="$AR" # Let the user override the test with a path.
   7754   ;;
   7755   *)
   7756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7757 for as_dir in $PATH
   7758 do
   7759   IFS=$as_save_IFS
   7760   case $as_dir in #(((
   7761     '') as_dir=./ ;;
   7762     */) ;;
   7763     *) as_dir=$as_dir/ ;;
   7764   esac
   7765     for ac_exec_ext in '' $ac_executable_extensions; do
   7766   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7767     ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
   7768     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7769     break 2
   7770   fi
   7771 done
   7772   done
   7773 IFS=$as_save_IFS
   7774 
   7775   ;;
   7776 esac
   7777 fi
   7778 AR=$ac_cv_path_AR
   7779 if test -n "$AR"; then
   7780   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   7781 printf "%s\n" "$AR" >&6; }
   7782 else
   7783   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7784 printf "%s\n" "no" >&6; }
   7785 fi
   7786 
   7787 
   7788 fi
   7789 if test -z "$ac_cv_path_AR"; then
   7790   ac_pt_AR=$AR
   7791   # Extract the first word of "ar", so it can be a program name with args.
   7792 set dummy ar; ac_word=$2
   7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7794 printf %s "checking for $ac_word... " >&6; }
   7795 if test ${ac_cv_path_ac_pt_AR+y}
   7796 then :
   7797   printf %s "(cached) " >&6
   7798 else $as_nop
   7799   case $ac_pt_AR in
   7800   [\\/]* | ?:[\\/]*)
   7801   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
   7802   ;;
   7803   *)
   7804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7805 for as_dir in $PATH
   7806 do
   7807   IFS=$as_save_IFS
   7808   case $as_dir in #(((
   7809     '') as_dir=./ ;;
   7810     */) ;;
   7811     *) as_dir=$as_dir/ ;;
   7812   esac
   7813     for ac_exec_ext in '' $ac_executable_extensions; do
   7814   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7815     ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
   7816     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7817     break 2
   7818   fi
   7819 done
   7820   done
   7821 IFS=$as_save_IFS
   7822 
   7823   ;;
   7824 esac
   7825 fi
   7826 ac_pt_AR=$ac_cv_path_ac_pt_AR
   7827 if test -n "$ac_pt_AR"; then
   7828   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
   7829 printf "%s\n" "$ac_pt_AR" >&6; }
   7830 else
   7831   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7832 printf "%s\n" "no" >&6; }
   7833 fi
   7834 
   7835   if test "x$ac_pt_AR" = x; then
   7836     AR="false"
   7837   else
   7838     case $cross_compiling:$ac_tool_warned in
   7839 yes:)
   7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7841 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7842 ac_tool_warned=yes ;;
   7843 esac
   7844     AR=$ac_pt_AR
   7845   fi
   7846 else
   7847   AR="$ac_cv_path_AR"
   7848 fi
   7849 
   7850 if test $AR = false; then
   7851 	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
   7852 fi
   7853 
   7854 
   7855 case `pwd` in
   7856   *\ * | *\	*)
   7857     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   7858 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   7859 esac
   7860 
   7861 
   7862 
   7863 macro_version='2.5.4'
   7864 macro_revision='2.5.4'
   7865 
   7866 
   7867 
   7868 
   7869 
   7870 
   7871 
   7872 
   7873 
   7874 
   7875 
   7876 
   7877 
   7878 
   7879 ltmain=$ac_aux_dir/ltmain.sh
   7880 
   7881 # Backslashify metacharacters that are still active within
   7882 # double-quoted strings.
   7883 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   7884 
   7885 # Same as above, but do not quote variable references.
   7886 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   7887 
   7888 # Sed substitution to delay expansion of an escaped shell variable in a
   7889 # double_quote_subst'ed string.
   7890 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   7891 
   7892 # Sed substitution to delay expansion of an escaped single quote.
   7893 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   7894 
   7895 # Sed substitution to avoid accidental globbing in evaled expressions
   7896 no_glob_subst='s/\*/\\\*/g'
   7897 
   7898 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   7899 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   7900 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   7901 
   7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   7903 printf %s "checking how to print strings... " >&6; }
   7904 # Test print first, because it will be a builtin if present.
   7905 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   7906    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   7907   ECHO='print -r --'
   7908 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   7909   ECHO='printf %s\n'
   7910 else
   7911   # Use this function as a fallback that always works.
   7912   func_fallback_echo ()
   7913   {
   7914     eval 'cat <<_LTECHO_EOF
   7915 $1
   7916 _LTECHO_EOF'
   7917   }
   7918   ECHO='func_fallback_echo'
   7919 fi
   7920 
   7921 # func_echo_all arg...
   7922 # Invoke $ECHO with all args, space-separated.
   7923 func_echo_all ()
   7924 {
   7925     $ECHO ""
   7926 }
   7927 
   7928 case $ECHO in
   7929   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   7930 printf "%s\n" "printf" >&6; } ;;
   7931   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   7932 printf "%s\n" "print -r" >&6; } ;;
   7933   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   7934 printf "%s\n" "cat" >&6; } ;;
   7935 esac
   7936 
   7937 
   7938 
   7939 
   7940 
   7941 
   7942 
   7943 
   7944 
   7945 
   7946 
   7947 
   7948 
   7949 
   7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   7951 printf %s "checking for a sed that does not truncate output... " >&6; }
   7952 if test ${ac_cv_path_SED+y}
   7953 then :
   7954   printf %s "(cached) " >&6
   7955 else $as_nop
   7956             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   7957      for ac_i in 1 2 3 4 5 6 7; do
   7958        ac_script="$ac_script$as_nl$ac_script"
   7959      done
   7960      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   7961      { ac_script=; unset ac_script;}
   7962      if test -z "$SED"; then
   7963   ac_path_SED_found=false
   7964   # Loop through the user's path and test for each of PROGNAME-LIST
   7965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7966 for as_dir in $PATH
   7967 do
   7968   IFS=$as_save_IFS
   7969   case $as_dir in #(((
   7970     '') as_dir=./ ;;
   7971     */) ;;
   7972     *) as_dir=$as_dir/ ;;
   7973   esac
   7974     for ac_prog in sed gsed
   7975    do
   7976     for ac_exec_ext in '' $ac_executable_extensions; do
   7977       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
   7978       as_fn_executable_p "$ac_path_SED" || continue
   7979 # Check for GNU ac_path_SED and select it if it is found.
   7980   # Check for GNU $ac_path_SED
   7981 case `"$ac_path_SED" --version 2>&1` in
   7982 *GNU*)
   7983   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   7984 *)
   7985   ac_count=0
   7986   printf %s 0123456789 >"conftest.in"
   7987   while :
   7988   do
   7989     cat "conftest.in" "conftest.in" >"conftest.tmp"
   7990     mv "conftest.tmp" "conftest.in"
   7991     cp "conftest.in" "conftest.nl"
   7992     printf "%s\n" '' >> "conftest.nl"
   7993     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   7994     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   7995     as_fn_arith $ac_count + 1 && ac_count=$as_val
   7996     if test $ac_count -gt ${ac_path_SED_max-0}; then
   7997       # Best one so far, save it but keep looking for a better one
   7998       ac_cv_path_SED="$ac_path_SED"
   7999       ac_path_SED_max=$ac_count
   8000     fi
   8001     # 10*(2^10) chars as input seems more than enough
   8002     test $ac_count -gt 10 && break
   8003   done
   8004   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   8005 esac
   8006 
   8007       $ac_path_SED_found && break 3
   8008     done
   8009   done
   8010   done
   8011 IFS=$as_save_IFS
   8012   if test -z "$ac_cv_path_SED"; then
   8013     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   8014   fi
   8015 else
   8016   ac_cv_path_SED=$SED
   8017 fi
   8018 
   8019 fi
   8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   8021 printf "%s\n" "$ac_cv_path_SED" >&6; }
   8022  SED="$ac_cv_path_SED"
   8023   rm -f conftest.sed
   8024 
   8025 test -z "$SED" && SED=sed
   8026 Xsed="$SED -e 1s/^X//"
   8027 
   8028 
   8029 
   8030 
   8031 
   8032 
   8033 
   8034 
   8035 
   8036 
   8037 
   8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   8039 printf %s "checking for egrep... " >&6; }
   8040 if test ${ac_cv_path_EGREP+y}
   8041 then :
   8042   printf %s "(cached) " >&6
   8043 else $as_nop
   8044   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   8045    then ac_cv_path_EGREP="$GREP -E"
   8046    else
   8047      if test -z "$EGREP"; then
   8048   ac_path_EGREP_found=false
   8049   # Loop through the user's path and test for each of PROGNAME-LIST
   8050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8051 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   8052 do
   8053   IFS=$as_save_IFS
   8054   case $as_dir in #(((
   8055     '') as_dir=./ ;;
   8056     */) ;;
   8057     *) as_dir=$as_dir/ ;;
   8058   esac
   8059     for ac_prog in egrep
   8060    do
   8061     for ac_exec_ext in '' $ac_executable_extensions; do
   8062       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
   8063       as_fn_executable_p "$ac_path_EGREP" || continue
   8064 # Check for GNU ac_path_EGREP and select it if it is found.
   8065   # Check for GNU $ac_path_EGREP
   8066 case `"$ac_path_EGREP" --version 2>&1` in
   8067 *GNU*)
   8068   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   8069 *)
   8070   ac_count=0
   8071   printf %s 0123456789 >"conftest.in"
   8072   while :
   8073   do
   8074     cat "conftest.in" "conftest.in" >"conftest.tmp"
   8075     mv "conftest.tmp" "conftest.in"
   8076     cp "conftest.in" "conftest.nl"
   8077     printf "%s\n" 'EGREP' >> "conftest.nl"
   8078     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   8079     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   8080     as_fn_arith $ac_count + 1 && ac_count=$as_val
   8081     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   8082       # Best one so far, save it but keep looking for a better one
   8083       ac_cv_path_EGREP="$ac_path_EGREP"
   8084       ac_path_EGREP_max=$ac_count
   8085     fi
   8086     # 10*(2^10) chars as input seems more than enough
   8087     test $ac_count -gt 10 && break
   8088   done
   8089   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   8090 esac
   8091 
   8092       $ac_path_EGREP_found && break 3
   8093     done
   8094   done
   8095   done
   8096 IFS=$as_save_IFS
   8097   if test -z "$ac_cv_path_EGREP"; then
   8098     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   8099   fi
   8100 else
   8101   ac_cv_path_EGREP=$EGREP
   8102 fi
   8103 
   8104    fi
   8105 fi
   8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   8107 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
   8108  EGREP="$ac_cv_path_EGREP"
   8109 
   8110 
   8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   8112 printf %s "checking for fgrep... " >&6; }
   8113 if test ${ac_cv_path_FGREP+y}
   8114 then :
   8115   printf %s "(cached) " >&6
   8116 else $as_nop
   8117   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   8118    then ac_cv_path_FGREP="$GREP -F"
   8119    else
   8120      if test -z "$FGREP"; then
   8121   ac_path_FGREP_found=false
   8122   # Loop through the user's path and test for each of PROGNAME-LIST
   8123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   8125 do
   8126   IFS=$as_save_IFS
   8127   case $as_dir in #(((
   8128     '') as_dir=./ ;;
   8129     */) ;;
   8130     *) as_dir=$as_dir/ ;;
   8131   esac
   8132     for ac_prog in fgrep
   8133    do
   8134     for ac_exec_ext in '' $ac_executable_extensions; do
   8135       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
   8136       as_fn_executable_p "$ac_path_FGREP" || continue
   8137 # Check for GNU ac_path_FGREP and select it if it is found.
   8138   # Check for GNU $ac_path_FGREP
   8139 case `"$ac_path_FGREP" --version 2>&1` in
   8140 *GNU*)
   8141   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   8142 *)
   8143   ac_count=0
   8144   printf %s 0123456789 >"conftest.in"
   8145   while :
   8146   do
   8147     cat "conftest.in" "conftest.in" >"conftest.tmp"
   8148     mv "conftest.tmp" "conftest.in"
   8149     cp "conftest.in" "conftest.nl"
   8150     printf "%s\n" 'FGREP' >> "conftest.nl"
   8151     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   8152     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   8153     as_fn_arith $ac_count + 1 && ac_count=$as_val
   8154     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   8155       # Best one so far, save it but keep looking for a better one
   8156       ac_cv_path_FGREP="$ac_path_FGREP"
   8157       ac_path_FGREP_max=$ac_count
   8158     fi
   8159     # 10*(2^10) chars as input seems more than enough
   8160     test $ac_count -gt 10 && break
   8161   done
   8162   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   8163 esac
   8164 
   8165       $ac_path_FGREP_found && break 3
   8166     done
   8167   done
   8168   done
   8169 IFS=$as_save_IFS
   8170   if test -z "$ac_cv_path_FGREP"; then
   8171     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   8172   fi
   8173 else
   8174   ac_cv_path_FGREP=$FGREP
   8175 fi
   8176 
   8177    fi
   8178 fi
   8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   8180 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
   8181  FGREP="$ac_cv_path_FGREP"
   8182 
   8183 
   8184 test -z "$GREP" && GREP=grep
   8185 
   8186 
   8187 
   8188 
   8189 
   8190 
   8191 
   8192 
   8193 
   8194 
   8195 
   8196 
   8197 
   8198 
   8199 
   8200 
   8201 
   8202 
   8203 
   8204 # Check whether --with-gnu-ld was given.
   8205 if test ${with_gnu_ld+y}
   8206 then :
   8207   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
   8208 else $as_nop
   8209   with_gnu_ld=no
   8210 fi
   8211 
   8212 ac_prog=ld
   8213 if test yes = "$GCC"; then
   8214   # Check if gcc -print-prog-name=ld gives a path.
   8215   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   8216 printf %s "checking for ld used by $CC... " >&6; }
   8217   case $host in
   8218   *-*-mingw* | *-*-windows*)
   8219     # gcc leaves a trailing carriage return, which upsets mingw
   8220     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   8221   *)
   8222     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   8223   esac
   8224   case $ac_prog in
   8225     # Accept absolute paths.
   8226     [\\/]* | ?:[\\/]*)
   8227       re_direlt='/[^/][^/]*/\.\./'
   8228       # Canonicalize the pathname of ld
   8229       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   8230       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   8231 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   8232       done
   8233       test -z "$LD" && LD=$ac_prog
   8234       ;;
   8235   "")
   8236     # If it fails, then pretend we aren't using GCC.
   8237     ac_prog=ld
   8238     ;;
   8239   *)
   8240     # If it is relative, then search for the first ld in PATH.
   8241     with_gnu_ld=unknown
   8242     ;;
   8243   esac
   8244 elif test yes = "$with_gnu_ld"; then
   8245   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   8246 printf %s "checking for GNU ld... " >&6; }
   8247 else
   8248   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   8249 printf %s "checking for non-GNU ld... " >&6; }
   8250 fi
   8251 if test ${lt_cv_path_LD+y}
   8252 then :
   8253   printf %s "(cached) " >&6
   8254 else $as_nop
   8255   if test -z "$LD"; then
   8256   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   8257   for ac_dir in $PATH; do
   8258     IFS=$lt_save_ifs
   8259     test -z "$ac_dir" && ac_dir=.
   8260     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   8261       lt_cv_path_LD=$ac_dir/$ac_prog
   8262       # Check to see if the program is GNU ld.  I'd rather use --version,
   8263       # but apparently some variants of GNU ld only accept -v.
   8264       # Break only if it was the GNU/non-GNU ld that we prefer.
   8265       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   8266       *GNU* | *'with BFD'*)
   8267 	test no != "$with_gnu_ld" && break
   8268 	;;
   8269       *)
   8270 	test yes != "$with_gnu_ld" && break
   8271 	;;
   8272       esac
   8273     fi
   8274   done
   8275   IFS=$lt_save_ifs
   8276 else
   8277   lt_cv_path_LD=$LD # Let the user override the test with a path.
   8278 fi
   8279 fi
   8280 
   8281 LD=$lt_cv_path_LD
   8282 if test -n "$LD"; then
   8283   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   8284 printf "%s\n" "$LD" >&6; }
   8285 else
   8286   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8287 printf "%s\n" "no" >&6; }
   8288 fi
   8289 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   8291 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
   8292 if test ${lt_cv_prog_gnu_ld+y}
   8293 then :
   8294   printf %s "(cached) " >&6
   8295 else $as_nop
   8296   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   8297 case `$LD -v 2>&1 </dev/null` in
   8298 *GNU* | *'with BFD'*)
   8299   lt_cv_prog_gnu_ld=yes
   8300   ;;
   8301 *)
   8302   lt_cv_prog_gnu_ld=no
   8303   ;;
   8304 esac
   8305 fi
   8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   8307 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
   8308 with_gnu_ld=$lt_cv_prog_gnu_ld
   8309 
   8310 
   8311 
   8312 
   8313 
   8314 
   8315 
   8316 
   8317 
   8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   8319 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   8320 if test ${lt_cv_path_NM+y}
   8321 then :
   8322   printf %s "(cached) " >&6
   8323 else $as_nop
   8324   if test -n "$NM"; then
   8325   # Let the user override the test.
   8326   lt_cv_path_NM=$NM
   8327 else
   8328   lt_nm_to_check=${ac_tool_prefix}nm
   8329   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   8330     lt_nm_to_check="$lt_nm_to_check nm"
   8331   fi
   8332   for lt_tmp_nm in $lt_nm_to_check; do
   8333     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   8334     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   8335       IFS=$lt_save_ifs
   8336       test -z "$ac_dir" && ac_dir=.
   8337       tmp_nm=$ac_dir/$lt_tmp_nm
   8338       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   8339 	# Check to see if the nm accepts a BSD-compat flag.
   8340 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   8341 	#   nm: unknown option "B" ignored
   8342 	# Tru64's nm complains that /dev/null is an invalid object file
   8343 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   8344 	case $build_os in
   8345 	mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
   8346 	*) lt_bad_file=/dev/null ;;
   8347 	esac
   8348 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
   8349 	*$lt_bad_file* | *'Invalid file or object type'*)
   8350 	  lt_cv_path_NM="$tmp_nm -B"
   8351 	  break 2
   8352 	  ;;
   8353 	*)
   8354 	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
   8355 	  */dev/null*)
   8356 	    lt_cv_path_NM="$tmp_nm -p"
   8357 	    break 2
   8358 	    ;;
   8359 	  *)
   8360 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   8361 	    continue # so that we can try to find one that supports BSD flags
   8362 	    ;;
   8363 	  esac
   8364 	  ;;
   8365 	esac
   8366       fi
   8367     done
   8368     IFS=$lt_save_ifs
   8369   done
   8370   : ${lt_cv_path_NM=no}
   8371 fi
   8372 fi
   8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   8374 printf "%s\n" "$lt_cv_path_NM" >&6; }
   8375 if test no != "$lt_cv_path_NM"; then
   8376   NM=$lt_cv_path_NM
   8377 else
   8378   # Didn't find any BSD compatible name lister, look for dumpbin.
   8379   if test -n "$DUMPBIN"; then :
   8380     # Let the user override the test.
   8381   else
   8382     if test -n "$ac_tool_prefix"; then
   8383   for ac_prog in dumpbin "link -dump"
   8384   do
   8385     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   8386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8388 printf %s "checking for $ac_word... " >&6; }
   8389 if test ${ac_cv_prog_DUMPBIN+y}
   8390 then :
   8391   printf %s "(cached) " >&6
   8392 else $as_nop
   8393   if test -n "$DUMPBIN"; then
   8394   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   8395 else
   8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8397 for as_dir in $PATH
   8398 do
   8399   IFS=$as_save_IFS
   8400   case $as_dir in #(((
   8401     '') as_dir=./ ;;
   8402     */) ;;
   8403     *) as_dir=$as_dir/ ;;
   8404   esac
   8405     for ac_exec_ext in '' $ac_executable_extensions; do
   8406   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8407     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   8408     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8409     break 2
   8410   fi
   8411 done
   8412   done
   8413 IFS=$as_save_IFS
   8414 
   8415 fi
   8416 fi
   8417 DUMPBIN=$ac_cv_prog_DUMPBIN
   8418 if test -n "$DUMPBIN"; then
   8419   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   8420 printf "%s\n" "$DUMPBIN" >&6; }
   8421 else
   8422   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8423 printf "%s\n" "no" >&6; }
   8424 fi
   8425 
   8426 
   8427     test -n "$DUMPBIN" && break
   8428   done
   8429 fi
   8430 if test -z "$DUMPBIN"; then
   8431   ac_ct_DUMPBIN=$DUMPBIN
   8432   for ac_prog in dumpbin "link -dump"
   8433 do
   8434   # Extract the first word of "$ac_prog", so it can be a program name with args.
   8435 set dummy $ac_prog; ac_word=$2
   8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8437 printf %s "checking for $ac_word... " >&6; }
   8438 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
   8439 then :
   8440   printf %s "(cached) " >&6
   8441 else $as_nop
   8442   if test -n "$ac_ct_DUMPBIN"; then
   8443   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   8444 else
   8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8446 for as_dir in $PATH
   8447 do
   8448   IFS=$as_save_IFS
   8449   case $as_dir in #(((
   8450     '') as_dir=./ ;;
   8451     */) ;;
   8452     *) as_dir=$as_dir/ ;;
   8453   esac
   8454     for ac_exec_ext in '' $ac_executable_extensions; do
   8455   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8456     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   8457     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8458     break 2
   8459   fi
   8460 done
   8461   done
   8462 IFS=$as_save_IFS
   8463 
   8464 fi
   8465 fi
   8466 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   8467 if test -n "$ac_ct_DUMPBIN"; then
   8468   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   8469 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
   8470 else
   8471   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8472 printf "%s\n" "no" >&6; }
   8473 fi
   8474 
   8475 
   8476   test -n "$ac_ct_DUMPBIN" && break
   8477 done
   8478 
   8479   if test "x$ac_ct_DUMPBIN" = x; then
   8480     DUMPBIN=":"
   8481   else
   8482     case $cross_compiling:$ac_tool_warned in
   8483 yes:)
   8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8485 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8486 ac_tool_warned=yes ;;
   8487 esac
   8488     DUMPBIN=$ac_ct_DUMPBIN
   8489   fi
   8490 fi
   8491 
   8492     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
   8493     *COFF*)
   8494       DUMPBIN="$DUMPBIN -symbols -headers"
   8495       ;;
   8496     *)
   8497       DUMPBIN=:
   8498       ;;
   8499     esac
   8500   fi
   8501 
   8502   if test : != "$DUMPBIN"; then
   8503     NM=$DUMPBIN
   8504   fi
   8505 fi
   8506 test -z "$NM" && NM=nm
   8507 
   8508 
   8509 
   8510 
   8511 
   8512 
   8513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   8514 printf %s "checking the name lister ($NM) interface... " >&6; }
   8515 if test ${lt_cv_nm_interface+y}
   8516 then :
   8517   printf %s "(cached) " >&6
   8518 else $as_nop
   8519   lt_cv_nm_interface="BSD nm"
   8520   echo "int some_variable = 0;" > conftest.$ac_ext
   8521   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   8522   (eval "$ac_compile" 2>conftest.err)
   8523   cat conftest.err >&5
   8524   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   8525   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   8526   cat conftest.err >&5
   8527   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   8528   cat conftest.out >&5
   8529   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   8530     lt_cv_nm_interface="MS dumpbin"
   8531   fi
   8532   rm -f conftest*
   8533 fi
   8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   8535 printf "%s\n" "$lt_cv_nm_interface" >&6; }
   8536 
   8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   8538 printf %s "checking whether ln -s works... " >&6; }
   8539 LN_S=$as_ln_s
   8540 if test "$LN_S" = "ln -s"; then
   8541   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8542 printf "%s\n" "yes" >&6; }
   8543 else
   8544   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   8545 printf "%s\n" "no, using $LN_S" >&6; }
   8546 fi
   8547 
   8548 # find the maximum length of command line arguments
   8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   8550 printf %s "checking the maximum length of command line arguments... " >&6; }
   8551 if test ${lt_cv_sys_max_cmd_len+y}
   8552 then :
   8553   printf %s "(cached) " >&6
   8554 else $as_nop
   8555     i=0
   8556   teststring=ABCD
   8557 
   8558   case $build_os in
   8559   msdosdjgpp*)
   8560     # On DJGPP, this test can blow up pretty badly due to problems in libc
   8561     # (any single argument exceeding 2000 bytes causes a buffer overrun
   8562     # during glob expansion).  Even if it were fixed, the result of this
   8563     # check would be larger than it should be.
   8564     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   8565     ;;
   8566 
   8567   gnu* | ironclad*)
   8568     # Under GNU Hurd and Ironclad, this test is not required because there
   8569     # is no limit to the length of command line arguments.
   8570     # Libtool will interpret -1 as no limit whatsoever
   8571     lt_cv_sys_max_cmd_len=-1;
   8572     ;;
   8573 
   8574   cygwin* | mingw* | windows* | cegcc*)
   8575     # On Win9x/ME, this test blows up -- it succeeds, but takes
   8576     # about 5 minutes as the teststring grows exponentially.
   8577     # Worse, since 9x/ME are not pre-emptively multitasking,
   8578     # you end up with a "frozen" computer, even though with patience
   8579     # the test eventually succeeds (with a max line length of 256k).
   8580     # Instead, let's just punt: use the minimum linelength reported by
   8581     # all of the supported platforms: 8192 (on NT/2K/XP).
   8582     lt_cv_sys_max_cmd_len=8192;
   8583     ;;
   8584 
   8585   mint*)
   8586     # On MiNT this can take a long time and run out of memory.
   8587     lt_cv_sys_max_cmd_len=8192;
   8588     ;;
   8589 
   8590   amigaos*)
   8591     # On AmigaOS with pdksh, this test takes hours, literally.
   8592     # So we just punt and use a minimum line length of 8192.
   8593     lt_cv_sys_max_cmd_len=8192;
   8594     ;;
   8595 
   8596   darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
   8597     # This has been around since 386BSD, at least.  Likely further.
   8598     if test -x /sbin/sysctl; then
   8599       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   8600     elif test -x /usr/sbin/sysctl; then
   8601       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   8602     else
   8603       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   8604     fi
   8605     # And add a safety zone
   8606     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   8607     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   8608     ;;
   8609 
   8610   interix*)
   8611     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   8612     lt_cv_sys_max_cmd_len=196608
   8613     ;;
   8614 
   8615   os2*)
   8616     # The test takes a long time on OS/2.
   8617     lt_cv_sys_max_cmd_len=8192
   8618     ;;
   8619 
   8620   osf*)
   8621     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   8622     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   8623     # nice to cause kernel panics so lets avoid the loop below.
   8624     # First set a reasonable default.
   8625     lt_cv_sys_max_cmd_len=16384
   8626     #
   8627     if test -x /sbin/sysconfig; then
   8628       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   8629         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   8630       esac
   8631     fi
   8632     ;;
   8633   sco3.2v5*)
   8634     lt_cv_sys_max_cmd_len=102400
   8635     ;;
   8636   sysv5* | sco5v6* | sysv4.2uw2*)
   8637     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   8638     if test -n "$kargmax"; then
   8639       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
   8640     else
   8641       lt_cv_sys_max_cmd_len=32768
   8642     fi
   8643     ;;
   8644   *)
   8645     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   8646     if test -n "$lt_cv_sys_max_cmd_len" && \
   8647        test undefined != "$lt_cv_sys_max_cmd_len"; then
   8648       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   8649       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   8650     else
   8651       # Make teststring a little bigger before we do anything with it.
   8652       # a 1K string should be a reasonable start.
   8653       for i in 1 2 3 4 5 6 7 8; do
   8654         teststring=$teststring$teststring
   8655       done
   8656       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   8657       # If test is not a shell built-in, we'll probably end up computing a
   8658       # maximum length that is only half of the actual maximum length, but
   8659       # we can't tell.
   8660       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   8661 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   8662 	      test 17 != "$i" # 1/2 MB should be enough
   8663       do
   8664         i=`expr $i + 1`
   8665         teststring=$teststring$teststring
   8666       done
   8667       # Only check the string length outside the loop.
   8668       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   8669       teststring=
   8670       # Add a significant safety factor because C++ compilers can tack on
   8671       # massive amounts of additional arguments before passing them to the
   8672       # linker.  It appears as though 1/2 is a usable value.
   8673       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   8674     fi
   8675     ;;
   8676   esac
   8677 
   8678 fi
   8679 
   8680 if test -n "$lt_cv_sys_max_cmd_len"; then
   8681   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   8682 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
   8683 else
   8684   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
   8685 printf "%s\n" "none" >&6; }
   8686 fi
   8687 max_cmd_len=$lt_cv_sys_max_cmd_len
   8688 
   8689 
   8690 
   8691 
   8692 
   8693 
   8694 : ${CP="cp -f"}
   8695 : ${MV="mv -f"}
   8696 : ${RM="rm -f"}
   8697 
   8698 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   8699   lt_unset=unset
   8700 else
   8701   lt_unset=false
   8702 fi
   8703 
   8704 
   8705 
   8706 
   8707 
   8708 # test EBCDIC or ASCII
   8709 case `echo X|tr X '\101'` in
   8710  A) # ASCII based system
   8711     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   8712   lt_SP2NL='tr \040 \012'
   8713   lt_NL2SP='tr \015\012 \040\040'
   8714   ;;
   8715  *) # EBCDIC based system
   8716   lt_SP2NL='tr \100 \n'
   8717   lt_NL2SP='tr \r\n \100\100'
   8718   ;;
   8719 esac
   8720 
   8721 
   8722 
   8723 
   8724 
   8725 
   8726 
   8727 
   8728 
   8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   8730 printf %s "checking how to convert $build file names to $host format... " >&6; }
   8731 if test ${lt_cv_to_host_file_cmd+y}
   8732 then :
   8733   printf %s "(cached) " >&6
   8734 else $as_nop
   8735   case $host in
   8736   *-*-mingw* )
   8737     case $build in
   8738       *-*-mingw* | *-*-windows* ) # actually msys
   8739         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   8740         ;;
   8741       *-*-cygwin* )
   8742         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   8743         ;;
   8744       * ) # otherwise, assume *nix
   8745         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   8746         ;;
   8747     esac
   8748     ;;
   8749   *-*-cygwin* )
   8750     case $build in
   8751       *-*-mingw* | *-*-windows* ) # actually msys
   8752         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   8753         ;;
   8754       *-*-cygwin* )
   8755         lt_cv_to_host_file_cmd=func_convert_file_noop
   8756         ;;
   8757       * ) # otherwise, assume *nix
   8758         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   8759         ;;
   8760     esac
   8761     ;;
   8762   * ) # unhandled hosts (and "normal" native builds)
   8763     lt_cv_to_host_file_cmd=func_convert_file_noop
   8764     ;;
   8765 esac
   8766 
   8767 fi
   8768 
   8769 to_host_file_cmd=$lt_cv_to_host_file_cmd
   8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   8771 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
   8772 
   8773 
   8774 
   8775 
   8776 
   8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   8778 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
   8779 if test ${lt_cv_to_tool_file_cmd+y}
   8780 then :
   8781   printf %s "(cached) " >&6
   8782 else $as_nop
   8783   #assume ordinary cross tools, or native build.
   8784 lt_cv_to_tool_file_cmd=func_convert_file_noop
   8785 case $host in
   8786   *-*-mingw* | *-*-windows* )
   8787     case $build in
   8788       *-*-mingw* | *-*-windows* ) # actually msys
   8789         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   8790         ;;
   8791     esac
   8792     ;;
   8793 esac
   8794 
   8795 fi
   8796 
   8797 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   8799 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
   8800 
   8801 
   8802 
   8803 
   8804 
   8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   8806 printf %s "checking for $LD option to reload object files... " >&6; }
   8807 if test ${lt_cv_ld_reload_flag+y}
   8808 then :
   8809   printf %s "(cached) " >&6
   8810 else $as_nop
   8811   lt_cv_ld_reload_flag='-r'
   8812 fi
   8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   8814 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
   8815 reload_flag=$lt_cv_ld_reload_flag
   8816 case $reload_flag in
   8817 "" | " "*) ;;
   8818 *) reload_flag=" $reload_flag" ;;
   8819 esac
   8820 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   8821 case $host_os in
   8822   cygwin* | mingw* | windows* | pw32* | cegcc*)
   8823     if test yes != "$GCC"; then
   8824       reload_cmds=false
   8825     fi
   8826     ;;
   8827   darwin*)
   8828     if test yes = "$GCC"; then
   8829       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   8830     else
   8831       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   8832     fi
   8833     ;;
   8834 esac
   8835 
   8836 
   8837 
   8838 
   8839 
   8840 
   8841 
   8842 
   8843 
   8844 # Extract the first word of "file", so it can be a program name with args.
   8845 set dummy file; ac_word=$2
   8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8847 printf %s "checking for $ac_word... " >&6; }
   8848 if test ${ac_cv_prog_FILECMD+y}
   8849 then :
   8850   printf %s "(cached) " >&6
   8851 else $as_nop
   8852   if test -n "$FILECMD"; then
   8853   ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
   8854 else
   8855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8856 for as_dir in $PATH
   8857 do
   8858   IFS=$as_save_IFS
   8859   case $as_dir in #(((
   8860     '') as_dir=./ ;;
   8861     */) ;;
   8862     *) as_dir=$as_dir/ ;;
   8863   esac
   8864     for ac_exec_ext in '' $ac_executable_extensions; do
   8865   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8866     ac_cv_prog_FILECMD="file"
   8867     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8868     break 2
   8869   fi
   8870 done
   8871   done
   8872 IFS=$as_save_IFS
   8873 
   8874   test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
   8875 fi
   8876 fi
   8877 FILECMD=$ac_cv_prog_FILECMD
   8878 if test -n "$FILECMD"; then
   8879   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
   8880 printf "%s\n" "$FILECMD" >&6; }
   8881 else
   8882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8883 printf "%s\n" "no" >&6; }
   8884 fi
   8885 
   8886 
   8887 
   8888 
   8889 
   8890 
   8891 
   8892 
   8893 if test -n "$ac_tool_prefix"; then
   8894   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   8895 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8897 printf %s "checking for $ac_word... " >&6; }
   8898 if test ${ac_cv_prog_OBJDUMP+y}
   8899 then :
   8900   printf %s "(cached) " >&6
   8901 else $as_nop
   8902   if test -n "$OBJDUMP"; then
   8903   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   8904 else
   8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8906 for as_dir in $PATH
   8907 do
   8908   IFS=$as_save_IFS
   8909   case $as_dir in #(((
   8910     '') as_dir=./ ;;
   8911     */) ;;
   8912     *) as_dir=$as_dir/ ;;
   8913   esac
   8914     for ac_exec_ext in '' $ac_executable_extensions; do
   8915   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8916     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   8917     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8918     break 2
   8919   fi
   8920 done
   8921   done
   8922 IFS=$as_save_IFS
   8923 
   8924 fi
   8925 fi
   8926 OBJDUMP=$ac_cv_prog_OBJDUMP
   8927 if test -n "$OBJDUMP"; then
   8928   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   8929 printf "%s\n" "$OBJDUMP" >&6; }
   8930 else
   8931   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8932 printf "%s\n" "no" >&6; }
   8933 fi
   8934 
   8935 
   8936 fi
   8937 if test -z "$ac_cv_prog_OBJDUMP"; then
   8938   ac_ct_OBJDUMP=$OBJDUMP
   8939   # Extract the first word of "objdump", so it can be a program name with args.
   8940 set dummy objdump; ac_word=$2
   8941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8942 printf %s "checking for $ac_word... " >&6; }
   8943 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
   8944 then :
   8945   printf %s "(cached) " >&6
   8946 else $as_nop
   8947   if test -n "$ac_ct_OBJDUMP"; then
   8948   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   8949 else
   8950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8951 for as_dir in $PATH
   8952 do
   8953   IFS=$as_save_IFS
   8954   case $as_dir in #(((
   8955     '') as_dir=./ ;;
   8956     */) ;;
   8957     *) as_dir=$as_dir/ ;;
   8958   esac
   8959     for ac_exec_ext in '' $ac_executable_extensions; do
   8960   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8961     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   8962     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8963     break 2
   8964   fi
   8965 done
   8966   done
   8967 IFS=$as_save_IFS
   8968 
   8969 fi
   8970 fi
   8971 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   8972 if test -n "$ac_ct_OBJDUMP"; then
   8973   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   8974 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
   8975 else
   8976   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8977 printf "%s\n" "no" >&6; }
   8978 fi
   8979 
   8980   if test "x$ac_ct_OBJDUMP" = x; then
   8981     OBJDUMP="false"
   8982   else
   8983     case $cross_compiling:$ac_tool_warned in
   8984 yes:)
   8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8986 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8987 ac_tool_warned=yes ;;
   8988 esac
   8989     OBJDUMP=$ac_ct_OBJDUMP
   8990   fi
   8991 else
   8992   OBJDUMP="$ac_cv_prog_OBJDUMP"
   8993 fi
   8994 
   8995 test -z "$OBJDUMP" && OBJDUMP=objdump
   8996 
   8997 
   8998 
   8999 
   9000 
   9001 
   9002 
   9003 
   9004 
   9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   9006 printf %s "checking how to recognize dependent libraries... " >&6; }
   9007 if test ${lt_cv_deplibs_check_method+y}
   9008 then :
   9009   printf %s "(cached) " >&6
   9010 else $as_nop
   9011   lt_cv_file_magic_cmd='$MAGIC_CMD'
   9012 lt_cv_file_magic_test_file=
   9013 lt_cv_deplibs_check_method='unknown'
   9014 # Need to set the preceding variable on all platforms that support
   9015 # interlibrary dependencies.
   9016 # 'none' -- dependencies not supported.
   9017 # 'unknown' -- same as none, but documents that we really don't know.
   9018 # 'pass_all' -- all dependencies passed with no checks.
   9019 # 'file_magic [[regex]]' -- check by looking for files in library path
   9020 # that responds to the $file_magic_cmd with a given extended regex.
   9021 # If you have 'file' or equivalent on your system and you're not sure
   9022 # whether 'pass_all' will *always* work, you probably want this one.
   9023 
   9024 case $host_os in
   9025 aix[4-9]*)
   9026   lt_cv_deplibs_check_method=pass_all
   9027   ;;
   9028 
   9029 beos*)
   9030   lt_cv_deplibs_check_method=pass_all
   9031   ;;
   9032 
   9033 bsdi[45]*)
   9034   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   9035   lt_cv_file_magic_cmd='$FILECMD -L'
   9036   lt_cv_file_magic_test_file=/shlib/libc.so
   9037   ;;
   9038 
   9039 cygwin*)
   9040   # func_win32_libid is a shell function defined in ltmain.sh
   9041   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   9042   lt_cv_file_magic_cmd='func_win32_libid'
   9043   ;;
   9044 
   9045 mingw* | windows* | pw32*)
   9046   # Base MSYS/MinGW do not provide the 'file' command needed by
   9047   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   9048   # unless we find 'file', for example because we are cross-compiling.
   9049   if ( file / ) >/dev/null 2>&1; then
   9050     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   9051     lt_cv_file_magic_cmd='func_win32_libid'
   9052   else
   9053     # Keep this pattern in sync with the one in func_win32_libid.
   9054     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
   9055     lt_cv_file_magic_cmd='$OBJDUMP -f'
   9056   fi
   9057   ;;
   9058 
   9059 cegcc*)
   9060   # use the weaker test based on 'objdump'. See mingw*.
   9061   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   9062   lt_cv_file_magic_cmd='$OBJDUMP -f'
   9063   ;;
   9064 
   9065 darwin* | rhapsody*)
   9066   lt_cv_deplibs_check_method=pass_all
   9067   ;;
   9068 
   9069 freebsd* | dragonfly* | midnightbsd*)
   9070   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   9071     case $host_cpu in
   9072     i*86 )
   9073       # Not sure whether the presence of OpenBSD here was a mistake.
   9074       # Let's accept both of them until this is cleared up.
   9075       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   9076       lt_cv_file_magic_cmd=$FILECMD
   9077       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   9078       ;;
   9079     esac
   9080   else
   9081     lt_cv_deplibs_check_method=pass_all
   9082   fi
   9083   ;;
   9084 
   9085 haiku*)
   9086   lt_cv_deplibs_check_method=pass_all
   9087   ;;
   9088 
   9089 hpux10.20* | hpux11*)
   9090   lt_cv_file_magic_cmd=$FILECMD
   9091   case $host_cpu in
   9092   ia64*)
   9093     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   9094     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   9095     ;;
   9096   hppa*64*)
   9097     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]'
   9098     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   9099     ;;
   9100   *)
   9101     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   9102     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   9103     ;;
   9104   esac
   9105   ;;
   9106 
   9107 interix[3-9]*)
   9108   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   9109   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   9110   ;;
   9111 
   9112 irix5* | irix6* | nonstopux*)
   9113   case $LD in
   9114   *-32|*"-32 ") libmagic=32-bit;;
   9115   *-n32|*"-n32 ") libmagic=N32;;
   9116   *-64|*"-64 ") libmagic=64-bit;;
   9117   *) libmagic=never-match;;
   9118   esac
   9119   lt_cv_deplibs_check_method=pass_all
   9120   ;;
   9121 
   9122 # This must be glibc/ELF.
   9123 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   9124   lt_cv_deplibs_check_method=pass_all
   9125   ;;
   9126 
   9127 *-mlibc)
   9128   lt_cv_deplibs_check_method=pass_all
   9129   ;;
   9130 
   9131 netbsd* | netbsdelf*-gnu)
   9132   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   9133     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   9134   else
   9135     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   9136   fi
   9137   ;;
   9138 
   9139 newos6*)
   9140   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   9141   lt_cv_file_magic_cmd=$FILECMD
   9142   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   9143   ;;
   9144 
   9145 *nto* | *qnx*)
   9146   lt_cv_deplibs_check_method=pass_all
   9147   ;;
   9148 
   9149 openbsd*)
   9150   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   9151     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   9152   else
   9153     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   9154   fi
   9155   ;;
   9156 
   9157 osf3* | osf4* | osf5*)
   9158   lt_cv_deplibs_check_method=pass_all
   9159   ;;
   9160 
   9161 rdos*)
   9162   lt_cv_deplibs_check_method=pass_all
   9163   ;;
   9164 
   9165 serenity*)
   9166   lt_cv_deplibs_check_method=pass_all
   9167   ;;
   9168 
   9169 solaris*)
   9170   lt_cv_deplibs_check_method=pass_all
   9171   ;;
   9172 
   9173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   9174   lt_cv_deplibs_check_method=pass_all
   9175   ;;
   9176 
   9177 sysv4 | sysv4.3*)
   9178   case $host_vendor in
   9179   motorola)
   9180     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]'
   9181     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   9182     ;;
   9183   ncr)
   9184     lt_cv_deplibs_check_method=pass_all
   9185     ;;
   9186   sequent)
   9187     lt_cv_file_magic_cmd='/bin/file'
   9188     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   9189     ;;
   9190   sni)
   9191     lt_cv_file_magic_cmd='/bin/file'
   9192     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   9193     lt_cv_file_magic_test_file=/lib/libc.so
   9194     ;;
   9195   siemens)
   9196     lt_cv_deplibs_check_method=pass_all
   9197     ;;
   9198   pc)
   9199     lt_cv_deplibs_check_method=pass_all
   9200     ;;
   9201   esac
   9202   ;;
   9203 
   9204 tpf*)
   9205   lt_cv_deplibs_check_method=pass_all
   9206   ;;
   9207 os2*)
   9208   lt_cv_deplibs_check_method=pass_all
   9209   ;;
   9210 esac
   9211 
   9212 fi
   9213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   9214 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
   9215 
   9216 file_magic_glob=
   9217 want_nocaseglob=no
   9218 if test "$build" = "$host"; then
   9219   case $host_os in
   9220   mingw* | windows* | pw32*)
   9221     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   9222       want_nocaseglob=yes
   9223     else
   9224       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   9225     fi
   9226     ;;
   9227   esac
   9228 fi
   9229 
   9230 file_magic_cmd=$lt_cv_file_magic_cmd
   9231 deplibs_check_method=$lt_cv_deplibs_check_method
   9232 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   9233 
   9234 
   9235 
   9236 
   9237 
   9238 
   9239 
   9240 
   9241 
   9242 
   9243 
   9244 
   9245 
   9246 
   9247 
   9248 
   9249 
   9250 
   9251 
   9252 
   9253 
   9254 
   9255 if test -n "$ac_tool_prefix"; then
   9256   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   9257 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9259 printf %s "checking for $ac_word... " >&6; }
   9260 if test ${ac_cv_prog_DLLTOOL+y}
   9261 then :
   9262   printf %s "(cached) " >&6
   9263 else $as_nop
   9264   if test -n "$DLLTOOL"; then
   9265   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   9266 else
   9267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9268 for as_dir in $PATH
   9269 do
   9270   IFS=$as_save_IFS
   9271   case $as_dir in #(((
   9272     '') as_dir=./ ;;
   9273     */) ;;
   9274     *) as_dir=$as_dir/ ;;
   9275   esac
   9276     for ac_exec_ext in '' $ac_executable_extensions; do
   9277   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9278     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   9279     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9280     break 2
   9281   fi
   9282 done
   9283   done
   9284 IFS=$as_save_IFS
   9285 
   9286 fi
   9287 fi
   9288 DLLTOOL=$ac_cv_prog_DLLTOOL
   9289 if test -n "$DLLTOOL"; then
   9290   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   9291 printf "%s\n" "$DLLTOOL" >&6; }
   9292 else
   9293   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9294 printf "%s\n" "no" >&6; }
   9295 fi
   9296 
   9297 
   9298 fi
   9299 if test -z "$ac_cv_prog_DLLTOOL"; then
   9300   ac_ct_DLLTOOL=$DLLTOOL
   9301   # Extract the first word of "dlltool", so it can be a program name with args.
   9302 set dummy dlltool; ac_word=$2
   9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9304 printf %s "checking for $ac_word... " >&6; }
   9305 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
   9306 then :
   9307   printf %s "(cached) " >&6
   9308 else $as_nop
   9309   if test -n "$ac_ct_DLLTOOL"; then
   9310   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   9311 else
   9312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9313 for as_dir in $PATH
   9314 do
   9315   IFS=$as_save_IFS
   9316   case $as_dir in #(((
   9317     '') as_dir=./ ;;
   9318     */) ;;
   9319     *) as_dir=$as_dir/ ;;
   9320   esac
   9321     for ac_exec_ext in '' $ac_executable_extensions; do
   9322   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9323     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   9324     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9325     break 2
   9326   fi
   9327 done
   9328   done
   9329 IFS=$as_save_IFS
   9330 
   9331 fi
   9332 fi
   9333 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   9334 if test -n "$ac_ct_DLLTOOL"; then
   9335   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   9336 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
   9337 else
   9338   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9339 printf "%s\n" "no" >&6; }
   9340 fi
   9341 
   9342   if test "x$ac_ct_DLLTOOL" = x; then
   9343     DLLTOOL="false"
   9344   else
   9345     case $cross_compiling:$ac_tool_warned in
   9346 yes:)
   9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9348 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9349 ac_tool_warned=yes ;;
   9350 esac
   9351     DLLTOOL=$ac_ct_DLLTOOL
   9352   fi
   9353 else
   9354   DLLTOOL="$ac_cv_prog_DLLTOOL"
   9355 fi
   9356 
   9357 test -z "$DLLTOOL" && DLLTOOL=dlltool
   9358 
   9359 
   9360 
   9361 
   9362 
   9363 
   9364 
   9365 
   9366 
   9367 
   9368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   9369 printf %s "checking how to associate runtime and link libraries... " >&6; }
   9370 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
   9371 then :
   9372   printf %s "(cached) " >&6
   9373 else $as_nop
   9374   lt_cv_sharedlib_from_linklib_cmd='unknown'
   9375 
   9376 case $host_os in
   9377 cygwin* | mingw* | windows* | pw32* | cegcc*)
   9378   # two different shell functions defined in ltmain.sh;
   9379   # decide which one to use based on capabilities of $DLLTOOL
   9380   case `$DLLTOOL --help 2>&1` in
   9381   *--identify-strict*)
   9382     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   9383     ;;
   9384   *)
   9385     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   9386     ;;
   9387   esac
   9388   ;;
   9389 *)
   9390   # fallback: assume linklib IS sharedlib
   9391   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   9392   ;;
   9393 esac
   9394 
   9395 fi
   9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   9397 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   9398 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   9399 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   9400 
   9401 
   9402 
   9403 
   9404 
   9405 
   9406 
   9407 if test -n "$ac_tool_prefix"; then
   9408   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   9409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9411 printf %s "checking for $ac_word... " >&6; }
   9412 if test ${ac_cv_prog_RANLIB+y}
   9413 then :
   9414   printf %s "(cached) " >&6
   9415 else $as_nop
   9416   if test -n "$RANLIB"; then
   9417   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   9418 else
   9419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9420 for as_dir in $PATH
   9421 do
   9422   IFS=$as_save_IFS
   9423   case $as_dir in #(((
   9424     '') as_dir=./ ;;
   9425     */) ;;
   9426     *) as_dir=$as_dir/ ;;
   9427   esac
   9428     for ac_exec_ext in '' $ac_executable_extensions; do
   9429   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9430     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   9431     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9432     break 2
   9433   fi
   9434 done
   9435   done
   9436 IFS=$as_save_IFS
   9437 
   9438 fi
   9439 fi
   9440 RANLIB=$ac_cv_prog_RANLIB
   9441 if test -n "$RANLIB"; then
   9442   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   9443 printf "%s\n" "$RANLIB" >&6; }
   9444 else
   9445   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9446 printf "%s\n" "no" >&6; }
   9447 fi
   9448 
   9449 
   9450 fi
   9451 if test -z "$ac_cv_prog_RANLIB"; then
   9452   ac_ct_RANLIB=$RANLIB
   9453   # Extract the first word of "ranlib", so it can be a program name with args.
   9454 set dummy ranlib; ac_word=$2
   9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9456 printf %s "checking for $ac_word... " >&6; }
   9457 if test ${ac_cv_prog_ac_ct_RANLIB+y}
   9458 then :
   9459   printf %s "(cached) " >&6
   9460 else $as_nop
   9461   if test -n "$ac_ct_RANLIB"; then
   9462   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   9463 else
   9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9465 for as_dir in $PATH
   9466 do
   9467   IFS=$as_save_IFS
   9468   case $as_dir in #(((
   9469     '') as_dir=./ ;;
   9470     */) ;;
   9471     *) as_dir=$as_dir/ ;;
   9472   esac
   9473     for ac_exec_ext in '' $ac_executable_extensions; do
   9474   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9475     ac_cv_prog_ac_ct_RANLIB="ranlib"
   9476     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9477     break 2
   9478   fi
   9479 done
   9480   done
   9481 IFS=$as_save_IFS
   9482 
   9483 fi
   9484 fi
   9485 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   9486 if test -n "$ac_ct_RANLIB"; then
   9487   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   9488 printf "%s\n" "$ac_ct_RANLIB" >&6; }
   9489 else
   9490   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9491 printf "%s\n" "no" >&6; }
   9492 fi
   9493 
   9494   if test "x$ac_ct_RANLIB" = x; then
   9495     RANLIB=":"
   9496   else
   9497     case $cross_compiling:$ac_tool_warned in
   9498 yes:)
   9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9500 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9501 ac_tool_warned=yes ;;
   9502 esac
   9503     RANLIB=$ac_ct_RANLIB
   9504   fi
   9505 else
   9506   RANLIB="$ac_cv_prog_RANLIB"
   9507 fi
   9508 
   9509 if test -n "$ac_tool_prefix"; then
   9510   for ac_prog in ar
   9511   do
   9512     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   9513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   9514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9515 printf %s "checking for $ac_word... " >&6; }
   9516 if test ${ac_cv_prog_AR+y}
   9517 then :
   9518   printf %s "(cached) " >&6
   9519 else $as_nop
   9520   if test -n "$AR"; then
   9521   ac_cv_prog_AR="$AR" # Let the user override the test.
   9522 else
   9523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9524 for as_dir in $PATH
   9525 do
   9526   IFS=$as_save_IFS
   9527   case $as_dir in #(((
   9528     '') as_dir=./ ;;
   9529     */) ;;
   9530     *) as_dir=$as_dir/ ;;
   9531   esac
   9532     for ac_exec_ext in '' $ac_executable_extensions; do
   9533   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9534     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   9535     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9536     break 2
   9537   fi
   9538 done
   9539   done
   9540 IFS=$as_save_IFS
   9541 
   9542 fi
   9543 fi
   9544 AR=$ac_cv_prog_AR
   9545 if test -n "$AR"; then
   9546   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   9547 printf "%s\n" "$AR" >&6; }
   9548 else
   9549   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9550 printf "%s\n" "no" >&6; }
   9551 fi
   9552 
   9553 
   9554     test -n "$AR" && break
   9555   done
   9556 fi
   9557 if test -z "$AR"; then
   9558   ac_ct_AR=$AR
   9559   for ac_prog in ar
   9560 do
   9561   # Extract the first word of "$ac_prog", so it can be a program name with args.
   9562 set dummy $ac_prog; ac_word=$2
   9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9564 printf %s "checking for $ac_word... " >&6; }
   9565 if test ${ac_cv_prog_ac_ct_AR+y}
   9566 then :
   9567   printf %s "(cached) " >&6
   9568 else $as_nop
   9569   if test -n "$ac_ct_AR"; then
   9570   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   9571 else
   9572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9573 for as_dir in $PATH
   9574 do
   9575   IFS=$as_save_IFS
   9576   case $as_dir in #(((
   9577     '') as_dir=./ ;;
   9578     */) ;;
   9579     *) as_dir=$as_dir/ ;;
   9580   esac
   9581     for ac_exec_ext in '' $ac_executable_extensions; do
   9582   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9583     ac_cv_prog_ac_ct_AR="$ac_prog"
   9584     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9585     break 2
   9586   fi
   9587 done
   9588   done
   9589 IFS=$as_save_IFS
   9590 
   9591 fi
   9592 fi
   9593 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   9594 if test -n "$ac_ct_AR"; then
   9595   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   9596 printf "%s\n" "$ac_ct_AR" >&6; }
   9597 else
   9598   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9599 printf "%s\n" "no" >&6; }
   9600 fi
   9601 
   9602 
   9603   test -n "$ac_ct_AR" && break
   9604 done
   9605 
   9606   if test "x$ac_ct_AR" = x; then
   9607     AR="false"
   9608   else
   9609     case $cross_compiling:$ac_tool_warned in
   9610 yes:)
   9611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9612 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9613 ac_tool_warned=yes ;;
   9614 esac
   9615     AR=$ac_ct_AR
   9616   fi
   9617 fi
   9618 
   9619 : ${AR=ar}
   9620 
   9621 
   9622 
   9623 
   9624 
   9625 
   9626 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
   9627 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
   9628 # higher priority because that's what people were doing historically (setting
   9629 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
   9630 # variable obsoleted/removed.
   9631 
   9632 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
   9633 lt_ar_flags=$AR_FLAGS
   9634 
   9635 
   9636 
   9637 
   9638 
   9639 
   9640 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
   9641 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
   9642 
   9643 
   9644 
   9645 
   9646 
   9647 
   9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   9649 printf %s "checking for archiver @FILE support... " >&6; }
   9650 if test ${lt_cv_ar_at_file+y}
   9651 then :
   9652   printf %s "(cached) " >&6
   9653 else $as_nop
   9654   lt_cv_ar_at_file=no
   9655    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9656 /* end confdefs.h.  */
   9657 
   9658 int
   9659 main (void)
   9660 {
   9661 
   9662   ;
   9663   return 0;
   9664 }
   9665 _ACEOF
   9666 if ac_fn_c_try_compile "$LINENO"
   9667 then :
   9668   echo conftest.$ac_objext > conftest.lst
   9669       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   9670       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   9671   (eval $lt_ar_try) 2>&5
   9672   ac_status=$?
   9673   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9674   test $ac_status = 0; }
   9675       if test 0 -eq "$ac_status"; then
   9676 	# Ensure the archiver fails upon bogus file names.
   9677 	rm -f conftest.$ac_objext libconftest.a
   9678 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   9679   (eval $lt_ar_try) 2>&5
   9680   ac_status=$?
   9681   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9682   test $ac_status = 0; }
   9683 	if test 0 -ne "$ac_status"; then
   9684           lt_cv_ar_at_file=@
   9685         fi
   9686       fi
   9687       rm -f conftest.* libconftest.a
   9688 
   9689 fi
   9690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9691 
   9692 fi
   9693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   9694 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
   9695 
   9696 if test no = "$lt_cv_ar_at_file"; then
   9697   archiver_list_spec=
   9698 else
   9699   archiver_list_spec=$lt_cv_ar_at_file
   9700 fi
   9701 
   9702 
   9703 
   9704 
   9705 
   9706 
   9707 
   9708 if test -n "$ac_tool_prefix"; then
   9709   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   9710 set dummy ${ac_tool_prefix}strip; ac_word=$2
   9711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9712 printf %s "checking for $ac_word... " >&6; }
   9713 if test ${ac_cv_prog_STRIP+y}
   9714 then :
   9715   printf %s "(cached) " >&6
   9716 else $as_nop
   9717   if test -n "$STRIP"; then
   9718   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   9719 else
   9720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9721 for as_dir in $PATH
   9722 do
   9723   IFS=$as_save_IFS
   9724   case $as_dir in #(((
   9725     '') as_dir=./ ;;
   9726     */) ;;
   9727     *) as_dir=$as_dir/ ;;
   9728   esac
   9729     for ac_exec_ext in '' $ac_executable_extensions; do
   9730   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9731     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   9732     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9733     break 2
   9734   fi
   9735 done
   9736   done
   9737 IFS=$as_save_IFS
   9738 
   9739 fi
   9740 fi
   9741 STRIP=$ac_cv_prog_STRIP
   9742 if test -n "$STRIP"; then
   9743   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   9744 printf "%s\n" "$STRIP" >&6; }
   9745 else
   9746   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9747 printf "%s\n" "no" >&6; }
   9748 fi
   9749 
   9750 
   9751 fi
   9752 if test -z "$ac_cv_prog_STRIP"; then
   9753   ac_ct_STRIP=$STRIP
   9754   # Extract the first word of "strip", so it can be a program name with args.
   9755 set dummy strip; ac_word=$2
   9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9757 printf %s "checking for $ac_word... " >&6; }
   9758 if test ${ac_cv_prog_ac_ct_STRIP+y}
   9759 then :
   9760   printf %s "(cached) " >&6
   9761 else $as_nop
   9762   if test -n "$ac_ct_STRIP"; then
   9763   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   9764 else
   9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9766 for as_dir in $PATH
   9767 do
   9768   IFS=$as_save_IFS
   9769   case $as_dir in #(((
   9770     '') as_dir=./ ;;
   9771     */) ;;
   9772     *) as_dir=$as_dir/ ;;
   9773   esac
   9774     for ac_exec_ext in '' $ac_executable_extensions; do
   9775   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9776     ac_cv_prog_ac_ct_STRIP="strip"
   9777     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9778     break 2
   9779   fi
   9780 done
   9781   done
   9782 IFS=$as_save_IFS
   9783 
   9784 fi
   9785 fi
   9786 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   9787 if test -n "$ac_ct_STRIP"; then
   9788   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   9789 printf "%s\n" "$ac_ct_STRIP" >&6; }
   9790 else
   9791   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9792 printf "%s\n" "no" >&6; }
   9793 fi
   9794 
   9795   if test "x$ac_ct_STRIP" = x; then
   9796     STRIP=":"
   9797   else
   9798     case $cross_compiling:$ac_tool_warned in
   9799 yes:)
   9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9801 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9802 ac_tool_warned=yes ;;
   9803 esac
   9804     STRIP=$ac_ct_STRIP
   9805   fi
   9806 else
   9807   STRIP="$ac_cv_prog_STRIP"
   9808 fi
   9809 
   9810 test -z "$STRIP" && STRIP=:
   9811 
   9812 
   9813 
   9814 
   9815 
   9816 
   9817 
   9818 test -z "$RANLIB" && RANLIB=:
   9819 
   9820 
   9821 
   9822 
   9823 
   9824 
   9825 # Determine commands to create old-style static archives.
   9826 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   9827 old_postinstall_cmds='chmod 644 $oldlib'
   9828 old_postuninstall_cmds=
   9829 
   9830 if test -n "$RANLIB"; then
   9831   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   9832   old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   9833 fi
   9834 
   9835 case $host_os in
   9836   darwin*)
   9837     lock_old_archive_extraction=yes ;;
   9838   *)
   9839     lock_old_archive_extraction=no ;;
   9840 esac
   9841 
   9842 
   9843 
   9844 
   9845 
   9846 
   9847 
   9848 
   9849 
   9850 
   9851 
   9852 
   9853 
   9854 
   9855 
   9856 
   9857 
   9858 
   9859 
   9860 
   9861 
   9862 for ac_prog in gawk mawk nawk awk
   9863 do
   9864   # Extract the first word of "$ac_prog", so it can be a program name with args.
   9865 set dummy $ac_prog; ac_word=$2
   9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9867 printf %s "checking for $ac_word... " >&6; }
   9868 if test ${ac_cv_prog_AWK+y}
   9869 then :
   9870   printf %s "(cached) " >&6
   9871 else $as_nop
   9872   if test -n "$AWK"; then
   9873   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   9874 else
   9875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9876 for as_dir in $PATH
   9877 do
   9878   IFS=$as_save_IFS
   9879   case $as_dir in #(((
   9880     '') as_dir=./ ;;
   9881     */) ;;
   9882     *) as_dir=$as_dir/ ;;
   9883   esac
   9884     for ac_exec_ext in '' $ac_executable_extensions; do
   9885   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9886     ac_cv_prog_AWK="$ac_prog"
   9887     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9888     break 2
   9889   fi
   9890 done
   9891   done
   9892 IFS=$as_save_IFS
   9893 
   9894 fi
   9895 fi
   9896 AWK=$ac_cv_prog_AWK
   9897 if test -n "$AWK"; then
   9898   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   9899 printf "%s\n" "$AWK" >&6; }
   9900 else
   9901   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9902 printf "%s\n" "no" >&6; }
   9903 fi
   9904 
   9905 
   9906   test -n "$AWK" && break
   9907 done
   9908 
   9909 
   9910 
   9911 
   9912 
   9913 
   9914 
   9915 
   9916 
   9917 
   9918 
   9919 
   9920 
   9921 
   9922 
   9923 
   9924 
   9925 
   9926 
   9927 # If no C compiler was specified, use CC.
   9928 LTCC=${LTCC-"$CC"}
   9929 
   9930 # If no C compiler flags were specified, use CFLAGS.
   9931 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   9932 
   9933 # Allow CC to be a program name with arguments.
   9934 compiler=$CC
   9935 
   9936 
   9937 # Check for command to grab the raw symbol name followed by C symbol from nm.
   9938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   9939 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
   9940 if test ${lt_cv_sys_global_symbol_pipe+y}
   9941 then :
   9942   printf %s "(cached) " >&6
   9943 else $as_nop
   9944 
   9945 # These are sane defaults that work on at least a few old systems.
   9946 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   9947 
   9948 # Character class describing NM global symbol codes.
   9949 symcode='[BCDEGRST]'
   9950 
   9951 # Regexp to match symbols that can be accessed directly from C.
   9952 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   9953 
   9954 # Define system-specific variables.
   9955 case $host_os in
   9956 aix*)
   9957   symcode='[BCDT]'
   9958   ;;
   9959 cygwin* | mingw* | windows* | pw32* | cegcc*)
   9960   symcode='[ABCDGISTW]'
   9961   ;;
   9962 hpux*)
   9963   if test ia64 = "$host_cpu"; then
   9964     symcode='[ABCDEGRST]'
   9965   fi
   9966   ;;
   9967 irix* | nonstopux*)
   9968   symcode='[BCDEGRST]'
   9969   ;;
   9970 osf*)
   9971   symcode='[BCDEGQRST]'
   9972   ;;
   9973 solaris*)
   9974   symcode='[BCDRT]'
   9975   ;;
   9976 sco3.2v5*)
   9977   symcode='[DT]'
   9978   ;;
   9979 sysv4.2uw2*)
   9980   symcode='[DT]'
   9981   ;;
   9982 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   9983   symcode='[ABDT]'
   9984   ;;
   9985 sysv4)
   9986   symcode='[DFNSTU]'
   9987   ;;
   9988 esac
   9989 
   9990 # If we're using GNU nm, then use its standard symbol codes.
   9991 case `$NM -V 2>&1` in
   9992 *GNU* | *'with BFD'*)
   9993   symcode='[ABCDGIRSTW]' ;;
   9994 esac
   9995 
   9996 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   9997   # Gets list of data symbols to import.
   9998   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
   9999   # Adjust the below global symbol transforms to fixup imported variables.
   10000   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   10001   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   10002   lt_c_name_lib_hook="\
   10003   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   10004   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   10005 else
   10006   # Disable hooks by default.
   10007   lt_cv_sys_global_symbol_to_import=
   10008   lt_cdecl_hook=
   10009   lt_c_name_hook=
   10010   lt_c_name_lib_hook=
   10011 fi
   10012 
   10013 # Transform an extracted symbol line into a proper C declaration.
   10014 # Some systems (esp. on ia64) link data and code symbols differently,
   10015 # so use this general approach.
   10016 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
   10017 $lt_cdecl_hook\
   10018 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   10019 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   10020 
   10021 # Transform an extracted symbol line into symbol name and symbol address
   10022 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
   10023 $lt_c_name_hook\
   10024 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   10025 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   10026 
   10027 # Transform an extracted symbol line into symbol name with lib prefix and
   10028 # symbol address.
   10029 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
   10030 $lt_c_name_lib_hook\
   10031 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   10032 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   10033 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   10034 
   10035 # Handle CRLF in mingw tool chain
   10036 opt_cr=
   10037 case $build_os in
   10038 mingw* | windows*)
   10039   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   10040   ;;
   10041 esac
   10042 
   10043 # Try without a prefix underscore, then with it.
   10044 for ac_symprfx in "" "_"; do
   10045 
   10046   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   10047   symxfrm="\\1 $ac_symprfx\\2 \\2"
   10048 
   10049   # Write the raw and C identifiers.
   10050   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   10051     # Fake it for dumpbin and say T for any non-static function,
   10052     # D for any global variable and I for any imported variable.
   10053     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
   10054     # which start with @ or ?.
   10055     lt_cv_sys_global_symbol_pipe="$AWK '"\
   10056 "     {last_section=section; section=\$ 3};"\
   10057 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   10058 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   10059 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   10060 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   10061 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   10062 "     \$ 0!~/External *\|/{next};"\
   10063 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   10064 "     {if(hide[section]) next};"\
   10065 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   10066 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   10067 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   10068 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   10069 "     ' prfx=^$ac_symprfx"
   10070   else
   10071     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   10072   fi
   10073   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
   10074 
   10075   # Check to see that the pipe works correctly.
   10076   pipe_works=no
   10077 
   10078   rm -f conftest*
   10079   cat > conftest.$ac_ext <<_LT_EOF
   10080 #ifdef __cplusplus
   10081 extern "C" {
   10082 #endif
   10083 char nm_test_var;
   10084 void nm_test_func(void);
   10085 void nm_test_func(void){}
   10086 #ifdef __cplusplus
   10087 }
   10088 #endif
   10089 int main(void){nm_test_var='a';nm_test_func();return(0);}
   10090 _LT_EOF
   10091 
   10092   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   10093   (eval $ac_compile) 2>&5
   10094   ac_status=$?
   10095   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10096   test $ac_status = 0; }; then
   10097     # Now try to grab the symbols.
   10098     nlist=conftest.nm
   10099     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
   10100     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
   10101       # Try sorting and uniquifying the output.
   10102       if sort "$nlist" | uniq > "$nlist"T; then
   10103 	mv -f "$nlist"T "$nlist"
   10104       else
   10105 	rm -f "$nlist"T
   10106       fi
   10107 
   10108       # Make sure that we snagged all the symbols we need.
   10109       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   10110 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   10111 	  cat <<_LT_EOF > conftest.$ac_ext
   10112 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   10113 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   10114 /* DATA imports from DLLs on WIN32 can't be const, because runtime
   10115    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   10116 # define LT_DLSYM_CONST
   10117 #elif defined __osf__
   10118 /* This system does not cope well with relocations in const data.  */
   10119 # define LT_DLSYM_CONST
   10120 #else
   10121 # define LT_DLSYM_CONST const
   10122 #endif
   10123 
   10124 #ifdef __cplusplus
   10125 extern "C" {
   10126 #endif
   10127 
   10128 _LT_EOF
   10129 	  # Now generate the symbol file.
   10130 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   10131 
   10132 	  cat <<_LT_EOF >> conftest.$ac_ext
   10133 
   10134 /* The mapping between symbol names and symbols.  */
   10135 LT_DLSYM_CONST struct {
   10136   const char *name;
   10137   void       *address;
   10138 }
   10139 lt__PROGRAM__LTX_preloaded_symbols[] =
   10140 {
   10141   { "@PROGRAM@", (void *) 0 },
   10142 _LT_EOF
   10143 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   10144 	  cat <<\_LT_EOF >> conftest.$ac_ext
   10145   {0, (void *) 0}
   10146 };
   10147 
   10148 /* This works around a problem in FreeBSD linker */
   10149 #ifdef FREEBSD_WORKAROUND
   10150 static const void *lt_preloaded_setup() {
   10151   return lt__PROGRAM__LTX_preloaded_symbols;
   10152 }
   10153 #endif
   10154 
   10155 #ifdef __cplusplus
   10156 }
   10157 #endif
   10158 _LT_EOF
   10159 	  # Now try linking the two files.
   10160 	  mv conftest.$ac_objext conftstm.$ac_objext
   10161 	  lt_globsym_save_LIBS=$LIBS
   10162 	  lt_globsym_save_CFLAGS=$CFLAGS
   10163 	  LIBS=conftstm.$ac_objext
   10164 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   10165 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   10166   (eval $ac_link) 2>&5
   10167   ac_status=$?
   10168   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10169   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   10170 	    pipe_works=yes
   10171 	  fi
   10172 	  LIBS=$lt_globsym_save_LIBS
   10173 	  CFLAGS=$lt_globsym_save_CFLAGS
   10174 	else
   10175 	  echo "cannot find nm_test_func in $nlist" >&5
   10176 	fi
   10177       else
   10178 	echo "cannot find nm_test_var in $nlist" >&5
   10179       fi
   10180     else
   10181       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   10182     fi
   10183   else
   10184     echo "$progname: failed program was:" >&5
   10185     cat conftest.$ac_ext >&5
   10186   fi
   10187   rm -rf conftest* conftst*
   10188 
   10189   # Do not use the global_symbol_pipe unless it works.
   10190   if test yes = "$pipe_works"; then
   10191     break
   10192   else
   10193     lt_cv_sys_global_symbol_pipe=
   10194   fi
   10195 done
   10196 
   10197 fi
   10198 
   10199 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   10200   lt_cv_sys_global_symbol_to_cdecl=
   10201 fi
   10202 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   10203   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   10204 printf "%s\n" "failed" >&6; }
   10205 else
   10206   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   10207 printf "%s\n" "ok" >&6; }
   10208 fi
   10209 
   10210 # Response file support.
   10211 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   10212   nm_file_list_spec='@'
   10213 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   10214   nm_file_list_spec='@'
   10215 fi
   10216 
   10217 
   10218 
   10219 
   10220 
   10221 
   10222 
   10223 
   10224 
   10225 
   10226 
   10227 
   10228 
   10229 
   10230 
   10231 
   10232 
   10233 
   10234 
   10235 
   10236 
   10237 
   10238 
   10239 
   10240 
   10241 
   10242 
   10243 
   10244 
   10245 
   10246 
   10247 
   10248 
   10249 
   10250 
   10251 
   10252 
   10253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   10254 printf %s "checking for sysroot... " >&6; }
   10255 
   10256 # Check whether --with-sysroot was given.
   10257 if test ${with_sysroot+y}
   10258 then :
   10259   withval=$with_sysroot;
   10260 else $as_nop
   10261   with_sysroot=no
   10262 fi
   10263 
   10264 
   10265 lt_sysroot=
   10266 case $with_sysroot in #(
   10267  yes)
   10268    if test yes = "$GCC"; then
   10269      # Trim trailing / since we'll always append absolute paths and we want
   10270      # to avoid //, if only for less confusing output for the user.
   10271      lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
   10272    fi
   10273    ;; #(
   10274  /*)
   10275    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
   10276    ;; #(
   10277  no|'')
   10278    ;; #(
   10279  *)
   10280    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
   10281 printf "%s\n" "$with_sysroot" >&6; }
   10282    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   10283    ;;
   10284 esac
   10285 
   10286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   10287 printf "%s\n" "${lt_sysroot:-no}" >&6; }
   10288 
   10289 
   10290 
   10291 
   10292 
   10293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
   10294 printf %s "checking for a working dd... " >&6; }
   10295 if test ${ac_cv_path_lt_DD+y}
   10296 then :
   10297   printf %s "(cached) " >&6
   10298 else $as_nop
   10299   printf 0123456789abcdef0123456789abcdef >conftest.i
   10300 cat conftest.i conftest.i >conftest2.i
   10301 : ${lt_DD:=$DD}
   10302 if test -z "$lt_DD"; then
   10303   ac_path_lt_DD_found=false
   10304   # Loop through the user's path and test for each of PROGNAME-LIST
   10305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10306 for as_dir in $PATH
   10307 do
   10308   IFS=$as_save_IFS
   10309   case $as_dir in #(((
   10310     '') as_dir=./ ;;
   10311     */) ;;
   10312     *) as_dir=$as_dir/ ;;
   10313   esac
   10314     for ac_prog in dd
   10315    do
   10316     for ac_exec_ext in '' $ac_executable_extensions; do
   10317       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
   10318       as_fn_executable_p "$ac_path_lt_DD" || continue
   10319 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   10320   cmp -s conftest.i conftest.out \
   10321   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   10322 fi
   10323       $ac_path_lt_DD_found && break 3
   10324     done
   10325   done
   10326   done
   10327 IFS=$as_save_IFS
   10328   if test -z "$ac_cv_path_lt_DD"; then
   10329     :
   10330   fi
   10331 else
   10332   ac_cv_path_lt_DD=$lt_DD
   10333 fi
   10334 
   10335 rm -f conftest.i conftest2.i conftest.out
   10336 fi
   10337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
   10338 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
   10339 
   10340 
   10341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
   10342 printf %s "checking how to truncate binary pipes... " >&6; }
   10343 if test ${lt_cv_truncate_bin+y}
   10344 then :
   10345   printf %s "(cached) " >&6
   10346 else $as_nop
   10347   printf 0123456789abcdef0123456789abcdef >conftest.i
   10348 cat conftest.i conftest.i >conftest2.i
   10349 lt_cv_truncate_bin=
   10350 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   10351   cmp -s conftest.i conftest.out \
   10352   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   10353 fi
   10354 rm -f conftest.i conftest2.i conftest.out
   10355 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
   10356 fi
   10357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
   10358 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
   10359 
   10360 
   10361 
   10362 
   10363 
   10364 
   10365 
   10366 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   10367 func_cc_basename ()
   10368 {
   10369     for cc_temp in $*""; do
   10370       case $cc_temp in
   10371         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   10372         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   10373         \-*) ;;
   10374         *) break;;
   10375       esac
   10376     done
   10377     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   10378 }
   10379 
   10380 # Check whether --enable-libtool-lock was given.
   10381 if test ${enable_libtool_lock+y}
   10382 then :
   10383   enableval=$enable_libtool_lock;
   10384 fi
   10385 
   10386 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   10387 
   10388 # Some flags need to be propagated to the compiler or linker for good
   10389 # libtool support.
   10390 case $host in
   10391 ia64-*-hpux*)
   10392   # Find out what ABI is being produced by ac_compile, and set mode
   10393   # options accordingly.
   10394   echo 'int i;' > conftest.$ac_ext
   10395   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   10396   (eval $ac_compile) 2>&5
   10397   ac_status=$?
   10398   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10399   test $ac_status = 0; }; then
   10400     case `$FILECMD conftest.$ac_objext` in
   10401       *ELF-32*)
   10402 	HPUX_IA64_MODE=32
   10403 	;;
   10404       *ELF-64*)
   10405 	HPUX_IA64_MODE=64
   10406 	;;
   10407     esac
   10408   fi
   10409   rm -rf conftest*
   10410   ;;
   10411 *-*-irix6*)
   10412   # Find out what ABI is being produced by ac_compile, and set linker
   10413   # options accordingly.
   10414   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   10415   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   10416   (eval $ac_compile) 2>&5
   10417   ac_status=$?
   10418   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10419   test $ac_status = 0; }; then
   10420     if test yes = "$lt_cv_prog_gnu_ld"; then
   10421       case `$FILECMD conftest.$ac_objext` in
   10422 	*32-bit*)
   10423 	  LD="${LD-ld} -melf32bsmip"
   10424 	  ;;
   10425 	*N32*)
   10426 	  LD="${LD-ld} -melf32bmipn32"
   10427 	  ;;
   10428 	*64-bit*)
   10429 	  LD="${LD-ld} -melf64bmip"
   10430 	;;
   10431       esac
   10432     else
   10433       case `$FILECMD conftest.$ac_objext` in
   10434 	*32-bit*)
   10435 	  LD="${LD-ld} -32"
   10436 	  ;;
   10437 	*N32*)
   10438 	  LD="${LD-ld} -n32"
   10439 	  ;;
   10440 	*64-bit*)
   10441 	  LD="${LD-ld} -64"
   10442 	  ;;
   10443       esac
   10444     fi
   10445   fi
   10446   rm -rf conftest*
   10447   ;;
   10448 
   10449 mips64*-*linux*)
   10450   # Find out what ABI is being produced by ac_compile, and set linker
   10451   # options accordingly.
   10452   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   10453   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   10454   (eval $ac_compile) 2>&5
   10455   ac_status=$?
   10456   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10457   test $ac_status = 0; }; then
   10458     emul=elf
   10459     case `$FILECMD conftest.$ac_objext` in
   10460       *32-bit*)
   10461 	emul="${emul}32"
   10462 	;;
   10463       *64-bit*)
   10464 	emul="${emul}64"
   10465 	;;
   10466     esac
   10467     case `$FILECMD conftest.$ac_objext` in
   10468       *MSB*)
   10469 	emul="${emul}btsmip"
   10470 	;;
   10471       *LSB*)
   10472 	emul="${emul}ltsmip"
   10473 	;;
   10474     esac
   10475     case `$FILECMD conftest.$ac_objext` in
   10476       *N32*)
   10477 	emul="${emul}n32"
   10478 	;;
   10479     esac
   10480     LD="${LD-ld} -m $emul"
   10481   fi
   10482   rm -rf conftest*
   10483   ;;
   10484 
   10485 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   10486 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
   10487   # Find out what ABI is being produced by ac_compile, and set linker
   10488   # options accordingly.  Note that the listed cases only cover the
   10489   # situations where additional linker options are needed (such as when
   10490   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   10491   # vice versa); the common cases where no linker options are needed do
   10492   # not appear in the list.
   10493   echo 'int i;' > conftest.$ac_ext
   10494   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   10495   (eval $ac_compile) 2>&5
   10496   ac_status=$?
   10497   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10498   test $ac_status = 0; }; then
   10499     case `$FILECMD conftest.o` in
   10500       *32-bit*)
   10501 	case $host in
   10502 	  x86_64-*kfreebsd*-gnu)
   10503 	    LD="${LD-ld} -m elf_i386_fbsd"
   10504 	    ;;
   10505 	  x86_64-*linux*|x86_64-gnu*)
   10506 	    case `$FILECMD conftest.o` in
   10507 	      *x86-64*)
   10508 		LD="${LD-ld} -m elf32_x86_64"
   10509 		;;
   10510 	      *)
   10511 		LD="${LD-ld} -m elf_i386"
   10512 		;;
   10513 	    esac
   10514 	    ;;
   10515 	  powerpc64le-*linux*)
   10516 	    LD="${LD-ld} -m elf32lppclinux"
   10517 	    ;;
   10518 	  powerpc64-*linux*)
   10519 	    LD="${LD-ld} -m elf32ppclinux"
   10520 	    ;;
   10521 	  s390x-*linux*)
   10522 	    LD="${LD-ld} -m elf_s390"
   10523 	    ;;
   10524 	  sparc64-*linux*)
   10525 	    LD="${LD-ld} -m elf32_sparc"
   10526 	    ;;
   10527 	esac
   10528 	;;
   10529       *64-bit*)
   10530 	case $host in
   10531 	  x86_64-*kfreebsd*-gnu)
   10532 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   10533 	    ;;
   10534 	  x86_64-*linux*|x86_64-gnu*)
   10535 	    LD="${LD-ld} -m elf_x86_64"
   10536 	    ;;
   10537 	  powerpcle-*linux*)
   10538 	    LD="${LD-ld} -m elf64lppc"
   10539 	    ;;
   10540 	  powerpc-*linux*)
   10541 	    LD="${LD-ld} -m elf64ppc"
   10542 	    ;;
   10543 	  s390*-*linux*|s390*-*tpf*)
   10544 	    LD="${LD-ld} -m elf64_s390"
   10545 	    ;;
   10546 	  sparc*-*linux*)
   10547 	    LD="${LD-ld} -m elf64_sparc"
   10548 	    ;;
   10549 	esac
   10550 	;;
   10551     esac
   10552   fi
   10553   rm -rf conftest*
   10554   ;;
   10555 
   10556 *-*-sco3.2v5*)
   10557   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   10558   SAVE_CFLAGS=$CFLAGS
   10559   CFLAGS="$CFLAGS -belf"
   10560   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   10561 printf %s "checking whether the C compiler needs -belf... " >&6; }
   10562 if test ${lt_cv_cc_needs_belf+y}
   10563 then :
   10564   printf %s "(cached) " >&6
   10565 else $as_nop
   10566   ac_ext=c
   10567 ac_cpp='$CPP $CPPFLAGS'
   10568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   10571 
   10572      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10573 /* end confdefs.h.  */
   10574 
   10575 int
   10576 main (void)
   10577 {
   10578 
   10579   ;
   10580   return 0;
   10581 }
   10582 _ACEOF
   10583 if ac_fn_c_try_link "$LINENO"
   10584 then :
   10585   lt_cv_cc_needs_belf=yes
   10586 else $as_nop
   10587   lt_cv_cc_needs_belf=no
   10588 fi
   10589 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10590     conftest$ac_exeext conftest.$ac_ext
   10591      ac_ext=c
   10592 ac_cpp='$CPP $CPPFLAGS'
   10593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   10596 
   10597 fi
   10598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   10599 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
   10600   if test yes != "$lt_cv_cc_needs_belf"; then
   10601     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   10602     CFLAGS=$SAVE_CFLAGS
   10603   fi
   10604   ;;
   10605 *-*solaris*)
   10606   # Find out what ABI is being produced by ac_compile, and set linker
   10607   # options accordingly.
   10608   echo 'int i;' > conftest.$ac_ext
   10609   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   10610   (eval $ac_compile) 2>&5
   10611   ac_status=$?
   10612   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10613   test $ac_status = 0; }; then
   10614     case `$FILECMD conftest.o` in
   10615     *64-bit*)
   10616       case $lt_cv_prog_gnu_ld in
   10617       yes*)
   10618         case $host in
   10619         i?86-*-solaris*|x86_64-*-solaris*)
   10620           LD="${LD-ld} -m elf_x86_64"
   10621           ;;
   10622         sparc*-*-solaris*)
   10623           LD="${LD-ld} -m elf64_sparc"
   10624           ;;
   10625         esac
   10626         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   10627         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   10628           LD=${LD-ld}_sol2
   10629         fi
   10630         ;;
   10631       *)
   10632 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   10633 	  LD="${LD-ld} -64"
   10634 	fi
   10635 	;;
   10636       esac
   10637       ;;
   10638     esac
   10639   fi
   10640   rm -rf conftest*
   10641   ;;
   10642 esac
   10643 
   10644 need_locks=$enable_libtool_lock
   10645 
   10646 if test -n "$ac_tool_prefix"; then
   10647   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   10648 set dummy ${ac_tool_prefix}mt; ac_word=$2
   10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10650 printf %s "checking for $ac_word... " >&6; }
   10651 if test ${ac_cv_prog_MANIFEST_TOOL+y}
   10652 then :
   10653   printf %s "(cached) " >&6
   10654 else $as_nop
   10655   if test -n "$MANIFEST_TOOL"; then
   10656   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   10657 else
   10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10659 for as_dir in $PATH
   10660 do
   10661   IFS=$as_save_IFS
   10662   case $as_dir in #(((
   10663     '') as_dir=./ ;;
   10664     */) ;;
   10665     *) as_dir=$as_dir/ ;;
   10666   esac
   10667     for ac_exec_ext in '' $ac_executable_extensions; do
   10668   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   10669     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   10670     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   10671     break 2
   10672   fi
   10673 done
   10674   done
   10675 IFS=$as_save_IFS
   10676 
   10677 fi
   10678 fi
   10679 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   10680 if test -n "$MANIFEST_TOOL"; then
   10681   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   10682 printf "%s\n" "$MANIFEST_TOOL" >&6; }
   10683 else
   10684   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10685 printf "%s\n" "no" >&6; }
   10686 fi
   10687 
   10688 
   10689 fi
   10690 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   10691   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   10692   # Extract the first word of "mt", so it can be a program name with args.
   10693 set dummy mt; ac_word=$2
   10694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10695 printf %s "checking for $ac_word... " >&6; }
   10696 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
   10697 then :
   10698   printf %s "(cached) " >&6
   10699 else $as_nop
   10700   if test -n "$ac_ct_MANIFEST_TOOL"; then
   10701   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   10702 else
   10703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10704 for as_dir in $PATH
   10705 do
   10706   IFS=$as_save_IFS
   10707   case $as_dir in #(((
   10708     '') as_dir=./ ;;
   10709     */) ;;
   10710     *) as_dir=$as_dir/ ;;
   10711   esac
   10712     for ac_exec_ext in '' $ac_executable_extensions; do
   10713   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   10714     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   10715     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   10716     break 2
   10717   fi
   10718 done
   10719   done
   10720 IFS=$as_save_IFS
   10721 
   10722 fi
   10723 fi
   10724 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   10725 if test -n "$ac_ct_MANIFEST_TOOL"; then
   10726   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   10727 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
   10728 else
   10729   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10730 printf "%s\n" "no" >&6; }
   10731 fi
   10732 
   10733   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   10734     MANIFEST_TOOL=":"
   10735   else
   10736     case $cross_compiling:$ac_tool_warned in
   10737 yes:)
   10738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   10739 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   10740 ac_tool_warned=yes ;;
   10741 esac
   10742     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   10743   fi
   10744 else
   10745   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   10746 fi
   10747 
   10748 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   10749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   10750 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   10751 if test ${lt_cv_path_manifest_tool+y}
   10752 then :
   10753   printf %s "(cached) " >&6
   10754 else $as_nop
   10755   lt_cv_path_manifest_tool=no
   10756   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   10757   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   10758   cat conftest.err >&5
   10759   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   10760     lt_cv_path_manifest_tool=yes
   10761   fi
   10762   rm -f conftest*
   10763 fi
   10764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
   10765 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
   10766 if test yes != "$lt_cv_path_manifest_tool"; then
   10767   MANIFEST_TOOL=:
   10768 fi
   10769 
   10770 
   10771 
   10772 
   10773 
   10774 
   10775   case $host_os in
   10776     rhapsody* | darwin*)
   10777     if test -n "$ac_tool_prefix"; then
   10778   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   10779 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   10780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10781 printf %s "checking for $ac_word... " >&6; }
   10782 if test ${ac_cv_prog_DSYMUTIL+y}
   10783 then :
   10784   printf %s "(cached) " >&6
   10785 else $as_nop
   10786   if test -n "$DSYMUTIL"; then
   10787   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   10788 else
   10789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10790 for as_dir in $PATH
   10791 do
   10792   IFS=$as_save_IFS
   10793   case $as_dir in #(((
   10794     '') as_dir=./ ;;
   10795     */) ;;
   10796     *) as_dir=$as_dir/ ;;
   10797   esac
   10798     for ac_exec_ext in '' $ac_executable_extensions; do
   10799   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   10800     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   10801     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   10802     break 2
   10803   fi
   10804 done
   10805   done
   10806 IFS=$as_save_IFS
   10807 
   10808 fi
   10809 fi
   10810 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   10811 if test -n "$DSYMUTIL"; then
   10812   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   10813 printf "%s\n" "$DSYMUTIL" >&6; }
   10814 else
   10815   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10816 printf "%s\n" "no" >&6; }
   10817 fi
   10818 
   10819 
   10820 fi
   10821 if test -z "$ac_cv_prog_DSYMUTIL"; then
   10822   ac_ct_DSYMUTIL=$DSYMUTIL
   10823   # Extract the first word of "dsymutil", so it can be a program name with args.
   10824 set dummy dsymutil; ac_word=$2
   10825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10826 printf %s "checking for $ac_word... " >&6; }
   10827 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
   10828 then :
   10829   printf %s "(cached) " >&6
   10830 else $as_nop
   10831   if test -n "$ac_ct_DSYMUTIL"; then
   10832   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   10833 else
   10834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10835 for as_dir in $PATH
   10836 do
   10837   IFS=$as_save_IFS
   10838   case $as_dir in #(((
   10839     '') as_dir=./ ;;
   10840     */) ;;
   10841     *) as_dir=$as_dir/ ;;
   10842   esac
   10843     for ac_exec_ext in '' $ac_executable_extensions; do
   10844   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   10845     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   10846     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   10847     break 2
   10848   fi
   10849 done
   10850   done
   10851 IFS=$as_save_IFS
   10852 
   10853 fi
   10854 fi
   10855 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   10856 if test -n "$ac_ct_DSYMUTIL"; then
   10857   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   10858 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
   10859 else
   10860   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10861 printf "%s\n" "no" >&6; }
   10862 fi
   10863 
   10864   if test "x$ac_ct_DSYMUTIL" = x; then
   10865     DSYMUTIL=":"
   10866   else
   10867     case $cross_compiling:$ac_tool_warned in
   10868 yes:)
   10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   10870 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   10871 ac_tool_warned=yes ;;
   10872 esac
   10873     DSYMUTIL=$ac_ct_DSYMUTIL
   10874   fi
   10875 else
   10876   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   10877 fi
   10878 
   10879     if test -n "$ac_tool_prefix"; then
   10880   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   10881 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10883 printf %s "checking for $ac_word... " >&6; }
   10884 if test ${ac_cv_prog_NMEDIT+y}
   10885 then :
   10886   printf %s "(cached) " >&6
   10887 else $as_nop
   10888   if test -n "$NMEDIT"; then
   10889   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   10890 else
   10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10892 for as_dir in $PATH
   10893 do
   10894   IFS=$as_save_IFS
   10895   case $as_dir in #(((
   10896     '') as_dir=./ ;;
   10897     */) ;;
   10898     *) as_dir=$as_dir/ ;;
   10899   esac
   10900     for ac_exec_ext in '' $ac_executable_extensions; do
   10901   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   10902     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   10903     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   10904     break 2
   10905   fi
   10906 done
   10907   done
   10908 IFS=$as_save_IFS
   10909 
   10910 fi
   10911 fi
   10912 NMEDIT=$ac_cv_prog_NMEDIT
   10913 if test -n "$NMEDIT"; then
   10914   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   10915 printf "%s\n" "$NMEDIT" >&6; }
   10916 else
   10917   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10918 printf "%s\n" "no" >&6; }
   10919 fi
   10920 
   10921 
   10922 fi
   10923 if test -z "$ac_cv_prog_NMEDIT"; then
   10924   ac_ct_NMEDIT=$NMEDIT
   10925   # Extract the first word of "nmedit", so it can be a program name with args.
   10926 set dummy nmedit; ac_word=$2
   10927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10928 printf %s "checking for $ac_word... " >&6; }
   10929 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
   10930 then :
   10931   printf %s "(cached) " >&6
   10932 else $as_nop
   10933   if test -n "$ac_ct_NMEDIT"; then
   10934   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   10935 else
   10936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10937 for as_dir in $PATH
   10938 do
   10939   IFS=$as_save_IFS
   10940   case $as_dir in #(((
   10941     '') as_dir=./ ;;
   10942     */) ;;
   10943     *) as_dir=$as_dir/ ;;
   10944   esac
   10945     for ac_exec_ext in '' $ac_executable_extensions; do
   10946   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   10947     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   10948     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   10949     break 2
   10950   fi
   10951 done
   10952   done
   10953 IFS=$as_save_IFS
   10954 
   10955 fi
   10956 fi
   10957 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   10958 if test -n "$ac_ct_NMEDIT"; then
   10959   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   10960 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
   10961 else
   10962   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10963 printf "%s\n" "no" >&6; }
   10964 fi
   10965 
   10966   if test "x$ac_ct_NMEDIT" = x; then
   10967     NMEDIT=":"
   10968   else
   10969     case $cross_compiling:$ac_tool_warned in
   10970 yes:)
   10971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   10972 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   10973 ac_tool_warned=yes ;;
   10974 esac
   10975     NMEDIT=$ac_ct_NMEDIT
   10976   fi
   10977 else
   10978   NMEDIT="$ac_cv_prog_NMEDIT"
   10979 fi
   10980 
   10981     if test -n "$ac_tool_prefix"; then
   10982   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   10983 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   10984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10985 printf %s "checking for $ac_word... " >&6; }
   10986 if test ${ac_cv_prog_LIPO+y}
   10987 then :
   10988   printf %s "(cached) " >&6
   10989 else $as_nop
   10990   if test -n "$LIPO"; then
   10991   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   10992 else
   10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10994 for as_dir in $PATH
   10995 do
   10996   IFS=$as_save_IFS
   10997   case $as_dir in #(((
   10998     '') as_dir=./ ;;
   10999     */) ;;
   11000     *) as_dir=$as_dir/ ;;
   11001   esac
   11002     for ac_exec_ext in '' $ac_executable_extensions; do
   11003   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   11004     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   11005     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   11006     break 2
   11007   fi
   11008 done
   11009   done
   11010 IFS=$as_save_IFS
   11011 
   11012 fi
   11013 fi
   11014 LIPO=$ac_cv_prog_LIPO
   11015 if test -n "$LIPO"; then
   11016   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   11017 printf "%s\n" "$LIPO" >&6; }
   11018 else
   11019   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11020 printf "%s\n" "no" >&6; }
   11021 fi
   11022 
   11023 
   11024 fi
   11025 if test -z "$ac_cv_prog_LIPO"; then
   11026   ac_ct_LIPO=$LIPO
   11027   # Extract the first word of "lipo", so it can be a program name with args.
   11028 set dummy lipo; ac_word=$2
   11029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11030 printf %s "checking for $ac_word... " >&6; }
   11031 if test ${ac_cv_prog_ac_ct_LIPO+y}
   11032 then :
   11033   printf %s "(cached) " >&6
   11034 else $as_nop
   11035   if test -n "$ac_ct_LIPO"; then
   11036   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   11037 else
   11038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11039 for as_dir in $PATH
   11040 do
   11041   IFS=$as_save_IFS
   11042   case $as_dir in #(((
   11043     '') as_dir=./ ;;
   11044     */) ;;
   11045     *) as_dir=$as_dir/ ;;
   11046   esac
   11047     for ac_exec_ext in '' $ac_executable_extensions; do
   11048   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   11049     ac_cv_prog_ac_ct_LIPO="lipo"
   11050     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   11051     break 2
   11052   fi
   11053 done
   11054   done
   11055 IFS=$as_save_IFS
   11056 
   11057 fi
   11058 fi
   11059 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   11060 if test -n "$ac_ct_LIPO"; then
   11061   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   11062 printf "%s\n" "$ac_ct_LIPO" >&6; }
   11063 else
   11064   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11065 printf "%s\n" "no" >&6; }
   11066 fi
   11067 
   11068   if test "x$ac_ct_LIPO" = x; then
   11069     LIPO=":"
   11070   else
   11071     case $cross_compiling:$ac_tool_warned in
   11072 yes:)
   11073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   11074 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   11075 ac_tool_warned=yes ;;
   11076 esac
   11077     LIPO=$ac_ct_LIPO
   11078   fi
   11079 else
   11080   LIPO="$ac_cv_prog_LIPO"
   11081 fi
   11082 
   11083     if test -n "$ac_tool_prefix"; then
   11084   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   11085 set dummy ${ac_tool_prefix}otool; ac_word=$2
   11086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11087 printf %s "checking for $ac_word... " >&6; }
   11088 if test ${ac_cv_prog_OTOOL+y}
   11089 then :
   11090   printf %s "(cached) " >&6
   11091 else $as_nop
   11092   if test -n "$OTOOL"; then
   11093   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   11094 else
   11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11096 for as_dir in $PATH
   11097 do
   11098   IFS=$as_save_IFS
   11099   case $as_dir in #(((
   11100     '') as_dir=./ ;;
   11101     */) ;;
   11102     *) as_dir=$as_dir/ ;;
   11103   esac
   11104     for ac_exec_ext in '' $ac_executable_extensions; do
   11105   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   11106     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   11107     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   11108     break 2
   11109   fi
   11110 done
   11111   done
   11112 IFS=$as_save_IFS
   11113 
   11114 fi
   11115 fi
   11116 OTOOL=$ac_cv_prog_OTOOL
   11117 if test -n "$OTOOL"; then
   11118   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   11119 printf "%s\n" "$OTOOL" >&6; }
   11120 else
   11121   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11122 printf "%s\n" "no" >&6; }
   11123 fi
   11124 
   11125 
   11126 fi
   11127 if test -z "$ac_cv_prog_OTOOL"; then
   11128   ac_ct_OTOOL=$OTOOL
   11129   # Extract the first word of "otool", so it can be a program name with args.
   11130 set dummy otool; ac_word=$2
   11131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11132 printf %s "checking for $ac_word... " >&6; }
   11133 if test ${ac_cv_prog_ac_ct_OTOOL+y}
   11134 then :
   11135   printf %s "(cached) " >&6
   11136 else $as_nop
   11137   if test -n "$ac_ct_OTOOL"; then
   11138   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   11139 else
   11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11141 for as_dir in $PATH
   11142 do
   11143   IFS=$as_save_IFS
   11144   case $as_dir in #(((
   11145     '') as_dir=./ ;;
   11146     */) ;;
   11147     *) as_dir=$as_dir/ ;;
   11148   esac
   11149     for ac_exec_ext in '' $ac_executable_extensions; do
   11150   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   11151     ac_cv_prog_ac_ct_OTOOL="otool"
   11152     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   11153     break 2
   11154   fi
   11155 done
   11156   done
   11157 IFS=$as_save_IFS
   11158 
   11159 fi
   11160 fi
   11161 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   11162 if test -n "$ac_ct_OTOOL"; then
   11163   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   11164 printf "%s\n" "$ac_ct_OTOOL" >&6; }
   11165 else
   11166   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11167 printf "%s\n" "no" >&6; }
   11168 fi
   11169 
   11170   if test "x$ac_ct_OTOOL" = x; then
   11171     OTOOL=":"
   11172   else
   11173     case $cross_compiling:$ac_tool_warned in
   11174 yes:)
   11175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   11176 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   11177 ac_tool_warned=yes ;;
   11178 esac
   11179     OTOOL=$ac_ct_OTOOL
   11180   fi
   11181 else
   11182   OTOOL="$ac_cv_prog_OTOOL"
   11183 fi
   11184 
   11185     if test -n "$ac_tool_prefix"; then
   11186   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   11187 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   11188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11189 printf %s "checking for $ac_word... " >&6; }
   11190 if test ${ac_cv_prog_OTOOL64+y}
   11191 then :
   11192   printf %s "(cached) " >&6
   11193 else $as_nop
   11194   if test -n "$OTOOL64"; then
   11195   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   11196 else
   11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11198 for as_dir in $PATH
   11199 do
   11200   IFS=$as_save_IFS
   11201   case $as_dir in #(((
   11202     '') as_dir=./ ;;
   11203     */) ;;
   11204     *) as_dir=$as_dir/ ;;
   11205   esac
   11206     for ac_exec_ext in '' $ac_executable_extensions; do
   11207   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   11208     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   11209     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   11210     break 2
   11211   fi
   11212 done
   11213   done
   11214 IFS=$as_save_IFS
   11215 
   11216 fi
   11217 fi
   11218 OTOOL64=$ac_cv_prog_OTOOL64
   11219 if test -n "$OTOOL64"; then
   11220   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   11221 printf "%s\n" "$OTOOL64" >&6; }
   11222 else
   11223   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11224 printf "%s\n" "no" >&6; }
   11225 fi
   11226 
   11227 
   11228 fi
   11229 if test -z "$ac_cv_prog_OTOOL64"; then
   11230   ac_ct_OTOOL64=$OTOOL64
   11231   # Extract the first word of "otool64", so it can be a program name with args.
   11232 set dummy otool64; ac_word=$2
   11233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11234 printf %s "checking for $ac_word... " >&6; }
   11235 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
   11236 then :
   11237   printf %s "(cached) " >&6
   11238 else $as_nop
   11239   if test -n "$ac_ct_OTOOL64"; then
   11240   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   11241 else
   11242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11243 for as_dir in $PATH
   11244 do
   11245   IFS=$as_save_IFS
   11246   case $as_dir in #(((
   11247     '') as_dir=./ ;;
   11248     */) ;;
   11249     *) as_dir=$as_dir/ ;;
   11250   esac
   11251     for ac_exec_ext in '' $ac_executable_extensions; do
   11252   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   11253     ac_cv_prog_ac_ct_OTOOL64="otool64"
   11254     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   11255     break 2
   11256   fi
   11257 done
   11258   done
   11259 IFS=$as_save_IFS
   11260 
   11261 fi
   11262 fi
   11263 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   11264 if test -n "$ac_ct_OTOOL64"; then
   11265   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   11266 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
   11267 else
   11268   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11269 printf "%s\n" "no" >&6; }
   11270 fi
   11271 
   11272   if test "x$ac_ct_OTOOL64" = x; then
   11273     OTOOL64=":"
   11274   else
   11275     case $cross_compiling:$ac_tool_warned in
   11276 yes:)
   11277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   11278 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   11279 ac_tool_warned=yes ;;
   11280 esac
   11281     OTOOL64=$ac_ct_OTOOL64
   11282   fi
   11283 else
   11284   OTOOL64="$ac_cv_prog_OTOOL64"
   11285 fi
   11286 
   11287 
   11288 
   11289 
   11290 
   11291 
   11292 
   11293 
   11294 
   11295 
   11296 
   11297 
   11298 
   11299 
   11300 
   11301 
   11302 
   11303 
   11304 
   11305 
   11306 
   11307 
   11308 
   11309 
   11310 
   11311 
   11312 
   11313     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   11314 printf %s "checking for -single_module linker flag... " >&6; }
   11315 if test ${lt_cv_apple_cc_single_mod+y}
   11316 then :
   11317   printf %s "(cached) " >&6
   11318 else $as_nop
   11319   lt_cv_apple_cc_single_mod=no
   11320       if test -z "$LT_MULTI_MODULE"; then
   11321 	# By default we will add the -single_module flag. You can override
   11322 	# by either setting the environment variable LT_MULTI_MODULE
   11323 	# non-empty at configure time, or by adding -multi_module to the
   11324 	# link flags.
   11325 	rm -rf libconftest.dylib*
   11326 	echo "int foo(void){return 1;}" > conftest.c
   11327 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   11328 -dynamiclib -Wl,-single_module conftest.c" >&5
   11329 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   11330 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   11331         _lt_result=$?
   11332 	# If there is a non-empty error log, and "single_module"
   11333 	# appears in it, assume the flag caused a linker warning
   11334         if test -s conftest.err && $GREP single_module conftest.err; then
   11335 	  cat conftest.err >&5
   11336 	# Otherwise, if the output was created with a 0 exit code from
   11337 	# the compiler, it worked.
   11338 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   11339 	  lt_cv_apple_cc_single_mod=yes
   11340 	else
   11341 	  cat conftest.err >&5
   11342 	fi
   11343 	rm -rf libconftest.dylib*
   11344 	rm -f conftest.*
   11345       fi
   11346 fi
   11347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   11348 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
   11349 
   11350     # Feature test to disable chained fixups since it is not
   11351     # compatible with '-undefined dynamic_lookup'
   11352     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
   11353 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
   11354 if test ${lt_cv_support_no_fixup_chains+y}
   11355 then :
   11356   printf %s "(cached) " >&6
   11357 else $as_nop
   11358    save_LDFLAGS=$LDFLAGS
   11359         LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
   11360         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11361 /* end confdefs.h.  */
   11362 
   11363 int
   11364 main (void)
   11365 {
   11366 
   11367   ;
   11368   return 0;
   11369 }
   11370 _ACEOF
   11371 if ac_fn_c_try_link "$LINENO"
   11372 then :
   11373   lt_cv_support_no_fixup_chains=yes
   11374 else $as_nop
   11375   lt_cv_support_no_fixup_chains=no
   11376 
   11377 fi
   11378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11379     conftest$ac_exeext conftest.$ac_ext
   11380         LDFLAGS=$save_LDFLAGS
   11381 
   11382 
   11383 fi
   11384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
   11385 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
   11386 
   11387     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   11388 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
   11389 if test ${lt_cv_ld_exported_symbols_list+y}
   11390 then :
   11391   printf %s "(cached) " >&6
   11392 else $as_nop
   11393   lt_cv_ld_exported_symbols_list=no
   11394       save_LDFLAGS=$LDFLAGS
   11395       echo "_main" > conftest.sym
   11396       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   11397       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11398 /* end confdefs.h.  */
   11399 
   11400 int
   11401 main (void)
   11402 {
   11403 
   11404   ;
   11405   return 0;
   11406 }
   11407 _ACEOF
   11408 if ac_fn_c_try_link "$LINENO"
   11409 then :
   11410   lt_cv_ld_exported_symbols_list=yes
   11411 else $as_nop
   11412   lt_cv_ld_exported_symbols_list=no
   11413 fi
   11414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11415     conftest$ac_exeext conftest.$ac_ext
   11416 	LDFLAGS=$save_LDFLAGS
   11417 
   11418 fi
   11419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   11420 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
   11421 
   11422     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   11423 printf %s "checking for -force_load linker flag... " >&6; }
   11424 if test ${lt_cv_ld_force_load+y}
   11425 then :
   11426   printf %s "(cached) " >&6
   11427 else $as_nop
   11428   lt_cv_ld_force_load=no
   11429       cat > conftest.c << _LT_EOF
   11430 int forced_loaded() { return 2;}
   11431 _LT_EOF
   11432       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   11433       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   11434       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
   11435       $AR $AR_FLAGS libconftest.a conftest.o 2>&5
   11436       echo "$RANLIB libconftest.a" >&5
   11437       $RANLIB libconftest.a 2>&5
   11438       cat > conftest.c << _LT_EOF
   11439 int main(void) { return 0;}
   11440 _LT_EOF
   11441       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   11442       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   11443       _lt_result=$?
   11444       if test -s conftest.err && $GREP force_load conftest.err; then
   11445 	cat conftest.err >&5
   11446       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   11447 	lt_cv_ld_force_load=yes
   11448       else
   11449 	cat conftest.err >&5
   11450       fi
   11451         rm -f conftest.err libconftest.a conftest conftest.c
   11452         rm -rf conftest.dSYM
   11453 
   11454 fi
   11455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   11456 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
   11457     case $host_os in
   11458     rhapsody* | darwin1.[012])
   11459       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   11460     darwin1.*)
   11461       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   11462     darwin*)
   11463       case $MACOSX_DEPLOYMENT_TARGET,$host in
   11464         10.[012],*|,*powerpc*-darwin[5-8]*)
   11465           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   11466         *)
   11467           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
   11468           if test yes = "$lt_cv_support_no_fixup_chains"; then
   11469             as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
   11470           fi
   11471         ;;
   11472       esac
   11473     ;;
   11474   esac
   11475     if test yes = "$lt_cv_apple_cc_single_mod"; then
   11476       _lt_dar_single_mod='$single_module'
   11477     fi
   11478     _lt_dar_needs_single_mod=no
   11479     case $host_os in
   11480     rhapsody* | darwin1.*)
   11481       _lt_dar_needs_single_mod=yes ;;
   11482     darwin*)
   11483       # When targeting Mac OS X 10.4 (darwin 8) or later,
   11484       # -single_module is the default and -multi_module is unsupported.
   11485       # The toolchain on macOS 10.14 (darwin 18) and later cannot
   11486       # target any OS version that needs -single_module.
   11487       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   11488       10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
   11489         _lt_dar_needs_single_mod=yes ;;
   11490       esac
   11491     ;;
   11492     esac
   11493     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   11494       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   11495     else
   11496       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   11497     fi
   11498     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   11499       _lt_dsymutil='~$DSYMUTIL $lib || :'
   11500     else
   11501       _lt_dsymutil=
   11502     fi
   11503     ;;
   11504   esac
   11505 
   11506 # func_munge_path_list VARIABLE PATH
   11507 # -----------------------------------
   11508 # VARIABLE is name of variable containing _space_ separated list of
   11509 # directories to be munged by the contents of PATH, which is string
   11510 # having a format:
   11511 # "DIR[:DIR]:"
   11512 #       string "DIR[ DIR]" will be prepended to VARIABLE
   11513 # ":DIR[:DIR]"
   11514 #       string "DIR[ DIR]" will be appended to VARIABLE
   11515 # "DIRP[:DIRP]::[DIRA:]DIRA"
   11516 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   11517 #       "DIRA[ DIRA]" will be appended to VARIABLE
   11518 # "DIR[:DIR]"
   11519 #       VARIABLE will be replaced by "DIR[ DIR]"
   11520 func_munge_path_list ()
   11521 {
   11522     case x$2 in
   11523     x)
   11524         ;;
   11525     *:)
   11526         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   11527         ;;
   11528     x:*)
   11529         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   11530         ;;
   11531     *::*)
   11532         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   11533         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   11534         ;;
   11535     *)
   11536         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   11537         ;;
   11538     esac
   11539 }
   11540 
   11541 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   11542 "
   11543 if test "x$ac_cv_header_dlfcn_h" = xyes
   11544 then :
   11545   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
   11546 
   11547 fi
   11548 
   11549 
   11550 
   11551 
   11552 
   11553 
   11554 
   11555 # Set options
   11556 
   11557 
   11558 
   11559         enable_dlopen=no
   11560 
   11561 
   11562   enable_win32_dll=no
   11563 
   11564 
   11565             # Check whether --enable-shared was given.
   11566 if test ${enable_shared+y}
   11567 then :
   11568   enableval=$enable_shared; p=${PACKAGE-default}
   11569     case $enableval in
   11570     yes) enable_shared=yes ;;
   11571     no) enable_shared=no ;;
   11572     *)
   11573       enable_shared=no
   11574       # Look at the argument we got.  We use all the common list separators.
   11575       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   11576       for pkg in $enableval; do
   11577 	IFS=$lt_save_ifs
   11578 	if test "X$pkg" = "X$p"; then
   11579 	  enable_shared=yes
   11580 	fi
   11581       done
   11582       IFS=$lt_save_ifs
   11583       ;;
   11584     esac
   11585 else $as_nop
   11586   enable_shared=yes
   11587 fi
   11588 
   11589 
   11590 
   11591 
   11592 
   11593 
   11594 
   11595 
   11596 
   11597   # Check whether --enable-static was given.
   11598 if test ${enable_static+y}
   11599 then :
   11600   enableval=$enable_static; p=${PACKAGE-default}
   11601     case $enableval in
   11602     yes) enable_static=yes ;;
   11603     no) enable_static=no ;;
   11604     *)
   11605      enable_static=no
   11606       # Look at the argument we got.  We use all the common list separators.
   11607       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   11608       for pkg in $enableval; do
   11609 	IFS=$lt_save_ifs
   11610 	if test "X$pkg" = "X$p"; then
   11611 	  enable_static=yes
   11612 	fi
   11613       done
   11614       IFS=$lt_save_ifs
   11615       ;;
   11616     esac
   11617 else $as_nop
   11618   enable_static=yes
   11619 fi
   11620 
   11621 
   11622 
   11623 
   11624 
   11625 
   11626 
   11627 
   11628 
   11629   # Check whether --enable-pic was given.
   11630 if test ${enable_pic+y}
   11631 then :
   11632   enableval=$enable_pic; lt_p=${PACKAGE-default}
   11633      case $enableval in
   11634      yes|no) pic_mode=$enableval ;;
   11635      *)
   11636        pic_mode=default
   11637        # Look at the argument we got.  We use all the common list separators.
   11638        lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   11639        for lt_pkg in $enableval; do
   11640 	 IFS=$lt_save_ifs
   11641 	 if test "X$lt_pkg" = "X$lt_p"; then
   11642 	   pic_mode=yes
   11643 	 fi
   11644        done
   11645        IFS=$lt_save_ifs
   11646        ;;
   11647      esac
   11648 else $as_nop
   11649             # Check whether --with-pic was given.
   11650 if test ${with_pic+y}
   11651 then :
   11652   withval=$with_pic; lt_p=${PACKAGE-default}
   11653 	 case $withval in
   11654 	 yes|no) pic_mode=$withval ;;
   11655 	 *)
   11656 	   pic_mode=default
   11657 	   # Look at the argument we got.  We use all the common list separators.
   11658 	   lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   11659 	   for lt_pkg in $withval; do
   11660 	     IFS=$lt_save_ifs
   11661 	     if test "X$lt_pkg" = "X$lt_p"; then
   11662 	       pic_mode=yes
   11663 	     fi
   11664 	   done
   11665 	   IFS=$lt_save_ifs
   11666 	   ;;
   11667 	 esac
   11668 else $as_nop
   11669   pic_mode=default
   11670 fi
   11671 
   11672 
   11673 fi
   11674 
   11675 
   11676 
   11677 
   11678 
   11679 
   11680 
   11681 
   11682   # Check whether --enable-fast-install was given.
   11683 if test ${enable_fast_install+y}
   11684 then :
   11685   enableval=$enable_fast_install; p=${PACKAGE-default}
   11686     case $enableval in
   11687     yes) enable_fast_install=yes ;;
   11688     no) enable_fast_install=no ;;
   11689     *)
   11690       enable_fast_install=no
   11691       # Look at the argument we got.  We use all the common list separators.
   11692       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   11693       for pkg in $enableval; do
   11694 	IFS=$lt_save_ifs
   11695 	if test "X$pkg" = "X$p"; then
   11696 	  enable_fast_install=yes
   11697 	fi
   11698       done
   11699       IFS=$lt_save_ifs
   11700       ;;
   11701     esac
   11702 else $as_nop
   11703   enable_fast_install=yes
   11704 fi
   11705 
   11706 
   11707 
   11708 
   11709 
   11710 
   11711 
   11712 
   11713   shared_archive_member_spec=
   11714 case $host,$enable_shared in
   11715 power*-*-aix[5-9]*,yes)
   11716   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   11717 printf %s "checking which variant of shared library versioning to provide... " >&6; }
   11718   # Check whether --enable-aix-soname was given.
   11719 if test ${enable_aix_soname+y}
   11720 then :
   11721   enableval=$enable_aix_soname; case $enableval in
   11722      aix|svr4|both)
   11723        ;;
   11724      *)
   11725        as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
   11726        ;;
   11727      esac
   11728      lt_cv_with_aix_soname=$enable_aix_soname
   11729 else $as_nop
   11730   # Check whether --with-aix-soname was given.
   11731 if test ${with_aix_soname+y}
   11732 then :
   11733   withval=$with_aix_soname; case $withval in
   11734          aix|svr4|both)
   11735            ;;
   11736          *)
   11737            as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   11738            ;;
   11739          esac
   11740          lt_cv_with_aix_soname=$with_aix_soname
   11741 else $as_nop
   11742   if test ${lt_cv_with_aix_soname+y}
   11743 then :
   11744   printf %s "(cached) " >&6
   11745 else $as_nop
   11746   lt_cv_with_aix_soname=aix
   11747 fi
   11748 
   11749 fi
   11750 
   11751      enable_aix_soname=$lt_cv_with_aix_soname
   11752 fi
   11753 
   11754   with_aix_soname=$enable_aix_soname
   11755   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   11756 printf "%s\n" "$with_aix_soname" >&6; }
   11757   if test aix != "$with_aix_soname"; then
   11758     # For the AIX way of multilib, we name the shared archive member
   11759     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   11760     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   11761     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   11762     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   11763     if test 64 = "${OBJECT_MODE-32}"; then
   11764       shared_archive_member_spec=shr_64
   11765     else
   11766       shared_archive_member_spec=shr
   11767     fi
   11768   fi
   11769   ;;
   11770 *)
   11771   with_aix_soname=aix
   11772   ;;
   11773 esac
   11774 
   11775 
   11776 
   11777 
   11778 
   11779 
   11780 
   11781 
   11782 
   11783 
   11784 # This can be used to rebuild libtool when needed
   11785 LIBTOOL_DEPS=$ltmain
   11786 
   11787 # Always use our own libtool.
   11788 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   11789 
   11790 
   11791 
   11792 
   11793 
   11794 
   11795 
   11796 
   11797 
   11798 
   11799 
   11800 
   11801 
   11802 
   11803 
   11804 
   11805 
   11806 
   11807 
   11808 
   11809 
   11810 
   11811 
   11812 
   11813 
   11814 
   11815 
   11816 
   11817 
   11818 
   11819 test -z "$LN_S" && LN_S="ln -s"
   11820 
   11821 
   11822 
   11823 
   11824 
   11825 
   11826 
   11827 
   11828 
   11829 
   11830 
   11831 
   11832 
   11833 
   11834 if test -n "${ZSH_VERSION+set}"; then
   11835    setopt NO_GLOB_SUBST
   11836 fi
   11837 
   11838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   11839 printf %s "checking for objdir... " >&6; }
   11840 if test ${lt_cv_objdir+y}
   11841 then :
   11842   printf %s "(cached) " >&6
   11843 else $as_nop
   11844   rm -f .libs 2>/dev/null
   11845 mkdir .libs 2>/dev/null
   11846 if test -d .libs; then
   11847   lt_cv_objdir=.libs
   11848 else
   11849   # MS-DOS does not allow filenames that begin with a dot.
   11850   lt_cv_objdir=_libs
   11851 fi
   11852 rmdir .libs 2>/dev/null
   11853 fi
   11854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   11855 printf "%s\n" "$lt_cv_objdir" >&6; }
   11856 objdir=$lt_cv_objdir
   11857 
   11858 
   11859 
   11860 
   11861 
   11862 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
   11863 
   11864 
   11865 
   11866 
   11867 case $host_os in
   11868 aix3*)
   11869   # AIX sometimes has problems with the GCC collect2 program.  For some
   11870   # reason, if we set the COLLECT_NAMES environment variable, the problems
   11871   # vanish in a puff of smoke.
   11872   if test set != "${COLLECT_NAMES+set}"; then
   11873     COLLECT_NAMES=
   11874     export COLLECT_NAMES
   11875   fi
   11876   ;;
   11877 esac
   11878 
   11879 # Global variables:
   11880 ofile=libtool
   11881 can_build_shared=yes
   11882 
   11883 # All known linkers require a '.a' archive for static linking (except MSVC and
   11884 # ICC, which need '.lib').
   11885 libext=a
   11886 
   11887 with_gnu_ld=$lt_cv_prog_gnu_ld
   11888 
   11889 old_CC=$CC
   11890 old_CFLAGS=$CFLAGS
   11891 
   11892 # Set sane defaults for various variables
   11893 test -z "$CC" && CC=cc
   11894 test -z "$LTCC" && LTCC=$CC
   11895 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   11896 test -z "$LD" && LD=ld
   11897 test -z "$ac_objext" && ac_objext=o
   11898 
   11899 func_cc_basename $compiler
   11900 cc_basename=$func_cc_basename_result
   11901 
   11902 
   11903 # Only perform the check for file, if the check method requires it
   11904 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   11905 case $deplibs_check_method in
   11906 file_magic*)
   11907   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   11908     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   11909 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
   11910 if test ${lt_cv_path_MAGIC_CMD+y}
   11911 then :
   11912   printf %s "(cached) " >&6
   11913 else $as_nop
   11914   case $MAGIC_CMD in
   11915 [\\/*] |  ?:[\\/]*)
   11916   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   11917   ;;
   11918 *)
   11919   lt_save_MAGIC_CMD=$MAGIC_CMD
   11920   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   11921   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   11922   for ac_dir in $ac_dummy; do
   11923     IFS=$lt_save_ifs
   11924     test -z "$ac_dir" && ac_dir=.
   11925     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   11926       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   11927       if test -n "$file_magic_test_file"; then
   11928 	case $deplibs_check_method in
   11929 	"file_magic "*)
   11930 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   11931 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   11932 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   11933 	    $EGREP "$file_magic_regex" > /dev/null; then
   11934 	    :
   11935 	  else
   11936 	    cat <<_LT_EOF 1>&2
   11937 
   11938 *** Warning: the command libtool uses to detect shared libraries,
   11939 *** $file_magic_cmd, produces output that libtool cannot recognize.
   11940 *** The result is that libtool may fail to recognize shared libraries
   11941 *** as such.  This will affect the creation of libtool libraries that
   11942 *** depend on shared libraries, but programs linked with such libtool
   11943 *** libraries will work regardless of this problem.  Nevertheless, you
   11944 *** may want to report the problem to your system manager and/or to
   11945 *** bug-libtool@gnu.org
   11946 
   11947 _LT_EOF
   11948 	  fi ;;
   11949 	esac
   11950       fi
   11951       break
   11952     fi
   11953   done
   11954   IFS=$lt_save_ifs
   11955   MAGIC_CMD=$lt_save_MAGIC_CMD
   11956   ;;
   11957 esac
   11958 fi
   11959 
   11960 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   11961 if test -n "$MAGIC_CMD"; then
   11962   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   11963 printf "%s\n" "$MAGIC_CMD" >&6; }
   11964 else
   11965   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11966 printf "%s\n" "no" >&6; }
   11967 fi
   11968 
   11969 
   11970 
   11971 
   11972 
   11973 if test -z "$lt_cv_path_MAGIC_CMD"; then
   11974   if test -n "$ac_tool_prefix"; then
   11975     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   11976 printf %s "checking for file... " >&6; }
   11977 if test ${lt_cv_path_MAGIC_CMD+y}
   11978 then :
   11979   printf %s "(cached) " >&6
   11980 else $as_nop
   11981   case $MAGIC_CMD in
   11982 [\\/*] |  ?:[\\/]*)
   11983   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   11984   ;;
   11985 *)
   11986   lt_save_MAGIC_CMD=$MAGIC_CMD
   11987   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   11988   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   11989   for ac_dir in $ac_dummy; do
   11990     IFS=$lt_save_ifs
   11991     test -z "$ac_dir" && ac_dir=.
   11992     if test -f "$ac_dir/file"; then
   11993       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   11994       if test -n "$file_magic_test_file"; then
   11995 	case $deplibs_check_method in
   11996 	"file_magic "*)
   11997 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   11998 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   11999 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   12000 	    $EGREP "$file_magic_regex" > /dev/null; then
   12001 	    :
   12002 	  else
   12003 	    cat <<_LT_EOF 1>&2
   12004 
   12005 *** Warning: the command libtool uses to detect shared libraries,
   12006 *** $file_magic_cmd, produces output that libtool cannot recognize.
   12007 *** The result is that libtool may fail to recognize shared libraries
   12008 *** as such.  This will affect the creation of libtool libraries that
   12009 *** depend on shared libraries, but programs linked with such libtool
   12010 *** libraries will work regardless of this problem.  Nevertheless, you
   12011 *** may want to report the problem to your system manager and/or to
   12012 *** bug-libtool@gnu.org
   12013 
   12014 _LT_EOF
   12015 	  fi ;;
   12016 	esac
   12017       fi
   12018       break
   12019     fi
   12020   done
   12021   IFS=$lt_save_ifs
   12022   MAGIC_CMD=$lt_save_MAGIC_CMD
   12023   ;;
   12024 esac
   12025 fi
   12026 
   12027 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   12028 if test -n "$MAGIC_CMD"; then
   12029   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   12030 printf "%s\n" "$MAGIC_CMD" >&6; }
   12031 else
   12032   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12033 printf "%s\n" "no" >&6; }
   12034 fi
   12035 
   12036 
   12037   else
   12038     MAGIC_CMD=:
   12039   fi
   12040 fi
   12041 
   12042   fi
   12043   ;;
   12044 esac
   12045 
   12046 # Use C for the default configuration in the libtool script
   12047 
   12048 lt_save_CC=$CC
   12049 ac_ext=c
   12050 ac_cpp='$CPP $CPPFLAGS'
   12051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12054 
   12055 
   12056 # Source file extension for C test sources.
   12057 ac_ext=c
   12058 
   12059 # Object file extension for compiled C test sources.
   12060 objext=o
   12061 objext=$objext
   12062 
   12063 # Code to be used in simple compile tests
   12064 lt_simple_compile_test_code="int some_variable = 0;"
   12065 
   12066 # Code to be used in simple link tests
   12067 lt_simple_link_test_code='int main(void){return(0);}'
   12068 
   12069 
   12070 
   12071 
   12072 
   12073 
   12074 
   12075 # If no C compiler was specified, use CC.
   12076 LTCC=${LTCC-"$CC"}
   12077 
   12078 # If no C compiler flags were specified, use CFLAGS.
   12079 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   12080 
   12081 # Allow CC to be a program name with arguments.
   12082 compiler=$CC
   12083 
   12084 # Save the default compiler, since it gets overwritten when the other
   12085 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   12086 compiler_DEFAULT=$CC
   12087 
   12088 # save warnings/boilerplate of simple test code
   12089 ac_outfile=conftest.$ac_objext
   12090 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   12091 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   12092 _lt_compiler_boilerplate=`cat conftest.err`
   12093 $RM conftest*
   12094 
   12095 ac_outfile=conftest.$ac_objext
   12096 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   12097 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   12098 _lt_linker_boilerplate=`cat conftest.err`
   12099 $RM -r conftest*
   12100 
   12101 
   12102 if test -n "$compiler"; then
   12103 
   12104 lt_prog_compiler_no_builtin_flag=
   12105 
   12106 if test yes = "$GCC"; then
   12107   case $cc_basename in
   12108   nvcc*)
   12109     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   12110   *)
   12111     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   12112   esac
   12113 
   12114   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   12115 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   12116 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
   12117 then :
   12118   printf %s "(cached) " >&6
   12119 else $as_nop
   12120   lt_cv_prog_compiler_rtti_exceptions=no
   12121    ac_outfile=conftest.$ac_objext
   12122    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   12123    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   12124    # Insert the option either (1) after the last *FLAGS variable, or
   12125    # (2) before a word containing "conftest.", or (3) at the end.
   12126    # Note that $ac_compile itself does not contain backslashes and begins
   12127    # with a dollar sign (not a hyphen), so the echo should work correctly.
   12128    # The option is referenced via a variable to avoid confusing sed.
   12129    lt_compile=`echo "$ac_compile" | $SED \
   12130    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   12131    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   12132    -e 's:$: $lt_compiler_flag:'`
   12133    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   12134    (eval "$lt_compile" 2>conftest.err)
   12135    ac_status=$?
   12136    cat conftest.err >&5
   12137    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12138    if (exit $ac_status) && test -s "$ac_outfile"; then
   12139      # The compiler can only warn and ignore the option if not recognized
   12140      # So say no if there are warnings other than the usual output.
   12141      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   12142      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   12143      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   12144        lt_cv_prog_compiler_rtti_exceptions=yes
   12145      fi
   12146    fi
   12147    $RM conftest*
   12148 
   12149 fi
   12150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   12151 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   12152 
   12153 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   12154     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   12155 else
   12156     :
   12157 fi
   12158 
   12159 fi
   12160 
   12161 
   12162 
   12163 
   12164 
   12165 
   12166   lt_prog_compiler_wl=
   12167 lt_prog_compiler_pic=
   12168 lt_prog_compiler_static=
   12169 
   12170 
   12171   if test yes = "$GCC"; then
   12172     lt_prog_compiler_wl='-Wl,'
   12173     lt_prog_compiler_static='-static'
   12174 
   12175     case $host_os in
   12176       aix*)
   12177       # All AIX code is PIC.
   12178       if test ia64 = "$host_cpu"; then
   12179 	# AIX 5 now supports IA64 processor
   12180 	lt_prog_compiler_static='-Bstatic'
   12181       fi
   12182       lt_prog_compiler_pic='-fPIC'
   12183       ;;
   12184 
   12185     amigaos*)
   12186       case $host_cpu in
   12187       powerpc)
   12188             # see comment about AmigaOS4 .so support
   12189             lt_prog_compiler_pic='-fPIC'
   12190         ;;
   12191       m68k)
   12192             # FIXME: we need at least 68020 code to build shared libraries, but
   12193             # adding the '-m68020' flag to GCC prevents building anything better,
   12194             # like '-m68040'.
   12195             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   12196         ;;
   12197       esac
   12198       ;;
   12199 
   12200     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   12201       # PIC is the default for these OSes.
   12202       ;;
   12203 
   12204     mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
   12205       # This hack is so that the source file can tell whether it is being
   12206       # built for inclusion in a dll (and should export symbols for example).
   12207       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   12208       # (--disable-auto-import) libraries
   12209       lt_prog_compiler_pic='-DDLL_EXPORT'
   12210       case $host_os in
   12211       os2*)
   12212 	lt_prog_compiler_static='$wl-static'
   12213 	;;
   12214       esac
   12215       ;;
   12216 
   12217     darwin* | rhapsody*)
   12218       # PIC is the default on this platform
   12219       # Common symbols not allowed in MH_DYLIB files
   12220       lt_prog_compiler_pic='-fno-common'
   12221       ;;
   12222 
   12223     haiku*)
   12224       # PIC is the default for Haiku.
   12225       # The "-static" flag exists, but is broken.
   12226       lt_prog_compiler_static=
   12227       ;;
   12228 
   12229     hpux*)
   12230       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   12231       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   12232       # sets the default TLS model and affects inlining.
   12233       case $host_cpu in
   12234       hppa*64*)
   12235 	# +Z the default
   12236 	;;
   12237       *)
   12238 	lt_prog_compiler_pic='-fPIC'
   12239 	;;
   12240       esac
   12241       ;;
   12242 
   12243     interix[3-9]*)
   12244       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   12245       # Instead, we relocate shared libraries at runtime.
   12246       ;;
   12247 
   12248     msdosdjgpp*)
   12249       # Just because we use GCC doesn't mean we suddenly get shared libraries
   12250       # on systems that don't support them.
   12251       lt_prog_compiler_can_build_shared=no
   12252       enable_shared=no
   12253       ;;
   12254 
   12255     *nto* | *qnx*)
   12256       # QNX uses GNU C++, but need to define -shared option too, otherwise
   12257       # it will coredump.
   12258       lt_prog_compiler_pic='-fPIC -shared'
   12259       ;;
   12260 
   12261     sysv4*MP*)
   12262       if test -d /usr/nec; then
   12263 	lt_prog_compiler_pic=-Kconform_pic
   12264       fi
   12265       ;;
   12266 
   12267     *)
   12268       lt_prog_compiler_pic='-fPIC'
   12269       ;;
   12270     esac
   12271 
   12272     case $cc_basename in
   12273     nvcc*) # Cuda Compiler Driver 2.2
   12274       lt_prog_compiler_wl='-Xlinker '
   12275       if test -n "$lt_prog_compiler_pic"; then
   12276         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   12277       fi
   12278       ;;
   12279     esac
   12280   else
   12281     # PORTME Check for flag to pass linker flags through the system compiler.
   12282     case $host_os in
   12283     aix*)
   12284       lt_prog_compiler_wl='-Wl,'
   12285       if test ia64 = "$host_cpu"; then
   12286 	# AIX 5 now supports IA64 processor
   12287 	lt_prog_compiler_static='-Bstatic'
   12288       else
   12289 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   12290       fi
   12291       ;;
   12292 
   12293     darwin* | rhapsody*)
   12294       # PIC is the default on this platform
   12295       # Common symbols not allowed in MH_DYLIB files
   12296       lt_prog_compiler_pic='-fno-common'
   12297       case $cc_basename in
   12298       nagfor*)
   12299         # NAG Fortran compiler
   12300         lt_prog_compiler_wl='-Wl,-Wl,,'
   12301         lt_prog_compiler_pic='-PIC'
   12302         lt_prog_compiler_static='-Bstatic'
   12303         ;;
   12304       esac
   12305       ;;
   12306 
   12307     mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
   12308       # This hack is so that the source file can tell whether it is being
   12309       # built for inclusion in a dll (and should export symbols for example).
   12310       lt_prog_compiler_pic='-DDLL_EXPORT'
   12311       case $host_os in
   12312       os2*)
   12313 	lt_prog_compiler_static='$wl-static'
   12314 	;;
   12315       esac
   12316       ;;
   12317 
   12318     hpux9* | hpux10* | hpux11*)
   12319       lt_prog_compiler_wl='-Wl,'
   12320       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   12321       # not for PA HP-UX.
   12322       case $host_cpu in
   12323       hppa*64*|ia64*)
   12324 	# +Z the default
   12325 	;;
   12326       *)
   12327 	lt_prog_compiler_pic='+Z'
   12328 	;;
   12329       esac
   12330       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   12331       lt_prog_compiler_static='$wl-a ${wl}archive'
   12332       ;;
   12333 
   12334     irix5* | irix6* | nonstopux*)
   12335       lt_prog_compiler_wl='-Wl,'
   12336       # PIC (with -KPIC) is the default.
   12337       lt_prog_compiler_static='-non_shared'
   12338       ;;
   12339 
   12340     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   12341       case $cc_basename in
   12342       # old Intel for x86_64, which still supported -KPIC.
   12343       ecc*)
   12344 	lt_prog_compiler_wl='-Wl,'
   12345 	lt_prog_compiler_pic='-KPIC'
   12346 	lt_prog_compiler_static='-static'
   12347         ;;
   12348       *flang* | ftn | f18* | f95*)
   12349         # Flang compiler.
   12350 	lt_prog_compiler_wl='-Wl,'
   12351 	lt_prog_compiler_pic='-fPIC'
   12352 	lt_prog_compiler_static='-static'
   12353         ;;
   12354       # icc used to be incompatible with GCC.
   12355       # ICC 10 doesn't accept -KPIC any more.
   12356       icc* | ifort*)
   12357 	lt_prog_compiler_wl='-Wl,'
   12358 	lt_prog_compiler_pic='-fPIC'
   12359 	lt_prog_compiler_static='-static'
   12360         ;;
   12361       # Lahey Fortran 8.1.
   12362       lf95*)
   12363 	lt_prog_compiler_wl='-Wl,'
   12364 	lt_prog_compiler_pic='--shared'
   12365 	lt_prog_compiler_static='--static'
   12366 	;;
   12367       nagfor*)
   12368 	# NAG Fortran compiler
   12369 	lt_prog_compiler_wl='-Wl,-Wl,,'
   12370 	lt_prog_compiler_pic='-PIC'
   12371 	lt_prog_compiler_static='-Bstatic'
   12372 	;;
   12373       tcc*)
   12374 	# Fabrice Bellard et al's Tiny C Compiler
   12375 	lt_prog_compiler_wl='-Wl,'
   12376 	lt_prog_compiler_pic='-fPIC'
   12377 	lt_prog_compiler_static='-static'
   12378 	;;
   12379       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   12380         # Portland Group compilers (*not* the Pentium gcc compiler,
   12381 	# which looks to be a dead project)
   12382 	lt_prog_compiler_wl='-Wl,'
   12383 	lt_prog_compiler_pic='-fpic'
   12384 	lt_prog_compiler_static='-Bstatic'
   12385         ;;
   12386       ccc*)
   12387         lt_prog_compiler_wl='-Wl,'
   12388         # All Alpha code is PIC.
   12389         lt_prog_compiler_static='-non_shared'
   12390         ;;
   12391       xl* | bgxl* | bgf* | mpixl*)
   12392 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   12393 	lt_prog_compiler_wl='-Wl,'
   12394 	lt_prog_compiler_pic='-qpic'
   12395 	lt_prog_compiler_static='-qstaticlink'
   12396 	;;
   12397       *)
   12398 	case `$CC -V 2>&1 | $SED 5q` in
   12399 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   12400 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   12401 	  lt_prog_compiler_pic='-KPIC'
   12402 	  lt_prog_compiler_static='-Bstatic'
   12403 	  lt_prog_compiler_wl=''
   12404 	  ;;
   12405 	*Sun\ F* | *Sun*Fortran*)
   12406 	  lt_prog_compiler_pic='-KPIC'
   12407 	  lt_prog_compiler_static='-Bstatic'
   12408 	  lt_prog_compiler_wl='-Qoption ld '
   12409 	  ;;
   12410 	*Sun\ C*)
   12411 	  # Sun C 5.9
   12412 	  lt_prog_compiler_pic='-KPIC'
   12413 	  lt_prog_compiler_static='-Bstatic'
   12414 	  lt_prog_compiler_wl='-Wl,'
   12415 	  ;;
   12416         *Intel*\ [CF]*Compiler*)
   12417 	  lt_prog_compiler_wl='-Wl,'
   12418 	  lt_prog_compiler_pic='-fPIC'
   12419 	  lt_prog_compiler_static='-static'
   12420 	  ;;
   12421 	*Portland\ Group*)
   12422 	  lt_prog_compiler_wl='-Wl,'
   12423 	  lt_prog_compiler_pic='-fpic'
   12424 	  lt_prog_compiler_static='-Bstatic'
   12425 	  ;;
   12426 	esac
   12427 	;;
   12428       esac
   12429       ;;
   12430 
   12431     newsos6)
   12432       lt_prog_compiler_pic='-KPIC'
   12433       lt_prog_compiler_static='-Bstatic'
   12434       ;;
   12435 
   12436     *-mlibc)
   12437       lt_prog_compiler_wl='-Wl,'
   12438       lt_prog_compiler_pic='-fPIC'
   12439       lt_prog_compiler_static='-static'
   12440       ;;
   12441 
   12442     *nto* | *qnx*)
   12443       # QNX uses GNU C++, but need to define -shared option too, otherwise
   12444       # it will coredump.
   12445       lt_prog_compiler_pic='-fPIC -shared'
   12446       ;;
   12447 
   12448     osf3* | osf4* | osf5*)
   12449       lt_prog_compiler_wl='-Wl,'
   12450       # All OSF/1 code is PIC.
   12451       lt_prog_compiler_static='-non_shared'
   12452       ;;
   12453 
   12454     rdos*)
   12455       lt_prog_compiler_static='-non_shared'
   12456       ;;
   12457 
   12458     serenity*)
   12459       ;;
   12460 
   12461     solaris*)
   12462       lt_prog_compiler_pic='-KPIC'
   12463       lt_prog_compiler_static='-Bstatic'
   12464       case $cc_basename in
   12465       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   12466 	lt_prog_compiler_wl='-Qoption ld ';;
   12467       *)
   12468 	lt_prog_compiler_wl='-Wl,';;
   12469       esac
   12470       ;;
   12471 
   12472     sunos4*)
   12473       lt_prog_compiler_wl='-Qoption ld '
   12474       lt_prog_compiler_pic='-PIC'
   12475       lt_prog_compiler_static='-Bstatic'
   12476       ;;
   12477 
   12478     sysv4 | sysv4.2uw2* | sysv4.3*)
   12479       lt_prog_compiler_wl='-Wl,'
   12480       lt_prog_compiler_pic='-KPIC'
   12481       lt_prog_compiler_static='-Bstatic'
   12482       ;;
   12483 
   12484     sysv4*MP*)
   12485       if test -d /usr/nec; then
   12486 	lt_prog_compiler_pic='-Kconform_pic'
   12487 	lt_prog_compiler_static='-Bstatic'
   12488       fi
   12489       ;;
   12490 
   12491     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   12492       lt_prog_compiler_wl='-Wl,'
   12493       lt_prog_compiler_pic='-KPIC'
   12494       lt_prog_compiler_static='-Bstatic'
   12495       ;;
   12496 
   12497     unicos*)
   12498       lt_prog_compiler_wl='-Wl,'
   12499       lt_prog_compiler_can_build_shared=no
   12500       ;;
   12501 
   12502     uts4*)
   12503       lt_prog_compiler_pic='-pic'
   12504       lt_prog_compiler_static='-Bstatic'
   12505       ;;
   12506 
   12507     *)
   12508       lt_prog_compiler_can_build_shared=no
   12509       ;;
   12510     esac
   12511   fi
   12512 
   12513 case $host_os in
   12514   # For platforms that do not support PIC, -DPIC is meaningless:
   12515   *djgpp*)
   12516     lt_prog_compiler_pic=
   12517     ;;
   12518   *)
   12519     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   12520     ;;
   12521 esac
   12522 
   12523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   12524 printf %s "checking for $compiler option to produce PIC... " >&6; }
   12525 if test ${lt_cv_prog_compiler_pic+y}
   12526 then :
   12527   printf %s "(cached) " >&6
   12528 else $as_nop
   12529   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   12530 fi
   12531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   12532 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
   12533 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   12534 
   12535 #
   12536 # Check to make sure the PIC flag actually works.
   12537 #
   12538 if test -n "$lt_prog_compiler_pic"; then
   12539   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   12540 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   12541 if test ${lt_cv_prog_compiler_pic_works+y}
   12542 then :
   12543   printf %s "(cached) " >&6
   12544 else $as_nop
   12545   lt_cv_prog_compiler_pic_works=no
   12546    ac_outfile=conftest.$ac_objext
   12547    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   12548    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   12549    # Insert the option either (1) after the last *FLAGS variable, or
   12550    # (2) before a word containing "conftest.", or (3) at the end.
   12551    # Note that $ac_compile itself does not contain backslashes and begins
   12552    # with a dollar sign (not a hyphen), so the echo should work correctly.
   12553    # The option is referenced via a variable to avoid confusing sed.
   12554    lt_compile=`echo "$ac_compile" | $SED \
   12555    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   12556    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   12557    -e 's:$: $lt_compiler_flag:'`
   12558    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   12559    (eval "$lt_compile" 2>conftest.err)
   12560    ac_status=$?
   12561    cat conftest.err >&5
   12562    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12563    if (exit $ac_status) && test -s "$ac_outfile"; then
   12564      # The compiler can only warn and ignore the option if not recognized
   12565      # So say no if there are warnings other than the usual output.
   12566      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   12567      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   12568      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   12569        lt_cv_prog_compiler_pic_works=yes
   12570      fi
   12571    fi
   12572    $RM conftest*
   12573 
   12574 fi
   12575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   12576 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
   12577 
   12578 if test yes = "$lt_cv_prog_compiler_pic_works"; then
   12579     case $lt_prog_compiler_pic in
   12580      "" | " "*) ;;
   12581      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   12582      esac
   12583 else
   12584     lt_prog_compiler_pic=
   12585      lt_prog_compiler_can_build_shared=no
   12586 fi
   12587 
   12588 fi
   12589 
   12590 
   12591 
   12592 
   12593 
   12594 
   12595 
   12596 
   12597 
   12598 
   12599 
   12600 #
   12601 # Check to make sure the static flag actually works.
   12602 #
   12603 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   12605 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   12606 if test ${lt_cv_prog_compiler_static_works+y}
   12607 then :
   12608   printf %s "(cached) " >&6
   12609 else $as_nop
   12610   lt_cv_prog_compiler_static_works=no
   12611    save_LDFLAGS=$LDFLAGS
   12612    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   12613    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   12614    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   12615      # The linker can only warn and ignore the option if not recognized
   12616      # So say no if there are warnings
   12617      if test -s conftest.err; then
   12618        # Append any errors to the config.log.
   12619        cat conftest.err 1>&5
   12620        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   12621        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   12622        if diff conftest.exp conftest.er2 >/dev/null; then
   12623          lt_cv_prog_compiler_static_works=yes
   12624        fi
   12625      else
   12626        lt_cv_prog_compiler_static_works=yes
   12627      fi
   12628    fi
   12629    $RM -r conftest*
   12630    LDFLAGS=$save_LDFLAGS
   12631 
   12632 fi
   12633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   12634 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
   12635 
   12636 if test yes = "$lt_cv_prog_compiler_static_works"; then
   12637     :
   12638 else
   12639     lt_prog_compiler_static=
   12640 fi
   12641 
   12642 
   12643 
   12644 
   12645 
   12646 
   12647 
   12648   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   12649 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   12650 if test ${lt_cv_prog_compiler_c_o+y}
   12651 then :
   12652   printf %s "(cached) " >&6
   12653 else $as_nop
   12654   lt_cv_prog_compiler_c_o=no
   12655    $RM -r conftest 2>/dev/null
   12656    mkdir conftest
   12657    cd conftest
   12658    mkdir out
   12659    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   12660 
   12661    lt_compiler_flag="-o out/conftest2.$ac_objext"
   12662    # Insert the option either (1) after the last *FLAGS variable, or
   12663    # (2) before a word containing "conftest.", or (3) at the end.
   12664    # Note that $ac_compile itself does not contain backslashes and begins
   12665    # with a dollar sign (not a hyphen), so the echo should work correctly.
   12666    lt_compile=`echo "$ac_compile" | $SED \
   12667    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   12668    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   12669    -e 's:$: $lt_compiler_flag:'`
   12670    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   12671    (eval "$lt_compile" 2>out/conftest.err)
   12672    ac_status=$?
   12673    cat out/conftest.err >&5
   12674    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12675    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   12676    then
   12677      # The compiler can only warn and ignore the option if not recognized
   12678      # So say no if there are warnings
   12679      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   12680      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   12681      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   12682        lt_cv_prog_compiler_c_o=yes
   12683      fi
   12684    fi
   12685    chmod u+w . 2>&5
   12686    $RM conftest*
   12687    # SGI C++ compiler will create directory out/ii_files/ for
   12688    # template instantiation
   12689    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   12690    $RM out/* && rmdir out
   12691    cd ..
   12692    $RM -r conftest
   12693    $RM conftest*
   12694 
   12695 fi
   12696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   12697 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
   12698 
   12699 
   12700 
   12701 
   12702 
   12703 
   12704   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   12705 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   12706 if test ${lt_cv_prog_compiler_c_o+y}
   12707 then :
   12708   printf %s "(cached) " >&6
   12709 else $as_nop
   12710   lt_cv_prog_compiler_c_o=no
   12711    $RM -r conftest 2>/dev/null
   12712    mkdir conftest
   12713    cd conftest
   12714    mkdir out
   12715    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   12716 
   12717    lt_compiler_flag="-o out/conftest2.$ac_objext"
   12718    # Insert the option either (1) after the last *FLAGS variable, or
   12719    # (2) before a word containing "conftest.", or (3) at the end.
   12720    # Note that $ac_compile itself does not contain backslashes and begins
   12721    # with a dollar sign (not a hyphen), so the echo should work correctly.
   12722    lt_compile=`echo "$ac_compile" | $SED \
   12723    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   12724    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   12725    -e 's:$: $lt_compiler_flag:'`
   12726    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   12727    (eval "$lt_compile" 2>out/conftest.err)
   12728    ac_status=$?
   12729    cat out/conftest.err >&5
   12730    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12731    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   12732    then
   12733      # The compiler can only warn and ignore the option if not recognized
   12734      # So say no if there are warnings
   12735      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   12736      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   12737      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   12738        lt_cv_prog_compiler_c_o=yes
   12739      fi
   12740    fi
   12741    chmod u+w . 2>&5
   12742    $RM conftest*
   12743    # SGI C++ compiler will create directory out/ii_files/ for
   12744    # template instantiation
   12745    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   12746    $RM out/* && rmdir out
   12747    cd ..
   12748    $RM -r conftest
   12749    $RM conftest*
   12750 
   12751 fi
   12752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   12753 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
   12754 
   12755 
   12756 
   12757 
   12758 hard_links=nottested
   12759 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   12760   # do not overwrite the value of need_locks provided by the user
   12761   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   12762 printf %s "checking if we can lock with hard links... " >&6; }
   12763   hard_links=yes
   12764   $RM conftest*
   12765   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   12766   touch conftest.a
   12767   ln conftest.a conftest.b 2>&5 || hard_links=no
   12768   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   12769   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   12770 printf "%s\n" "$hard_links" >&6; }
   12771   if test no = "$hard_links"; then
   12772     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   12773 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   12774     need_locks=warn
   12775   fi
   12776 else
   12777   need_locks=no
   12778 fi
   12779 
   12780 
   12781 
   12782 
   12783 
   12784 
   12785   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   12786 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   12787 
   12788   runpath_var=
   12789   allow_undefined_flag=
   12790   always_export_symbols=no
   12791   archive_cmds=
   12792   archive_expsym_cmds=
   12793   compiler_needs_object=no
   12794   enable_shared_with_static_runtimes=no
   12795   export_dynamic_flag_spec=
   12796   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   12797   hardcode_automatic=no
   12798   hardcode_direct=no
   12799   hardcode_direct_absolute=no
   12800   hardcode_libdir_flag_spec=
   12801   hardcode_libdir_separator=
   12802   hardcode_minus_L=no
   12803   hardcode_shlibpath_var=unsupported
   12804   inherit_rpath=no
   12805   link_all_deplibs=unknown
   12806   module_cmds=
   12807   module_expsym_cmds=
   12808   old_archive_from_new_cmds=
   12809   old_archive_from_expsyms_cmds=
   12810   thread_safe_flag_spec=
   12811   whole_archive_flag_spec=
   12812   # include_expsyms should be a list of space-separated symbols to be *always*
   12813   # included in the symbol list
   12814   include_expsyms=
   12815   # exclude_expsyms can be an extended regexp of symbols to exclude
   12816   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   12817   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   12818   # as well as any symbol that contains 'd'.
   12819   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   12820   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   12821   # platforms (ab)use it in PIC code, but their linkers get confused if
   12822   # the symbol is explicitly referenced.  Since portable code cannot
   12823   # rely on this symbol name, it's probably fine to never include it in
   12824   # preloaded symbol tables.
   12825   # Exclude shared library initialization/finalization symbols.
   12826   extract_expsyms_cmds=
   12827 
   12828   case $host_os in
   12829   cygwin* | mingw* | windows* | pw32* | cegcc*)
   12830     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
   12831     # When not using gcc, we currently assume that we are using
   12832     # Microsoft Visual C++ or Intel C++ Compiler.
   12833     if test yes != "$GCC"; then
   12834       with_gnu_ld=no
   12835     fi
   12836     ;;
   12837   interix*)
   12838     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
   12839     with_gnu_ld=yes
   12840     ;;
   12841   esac
   12842 
   12843   ld_shlibs=yes
   12844 
   12845   # On some targets, GNU ld is compatible enough with the native linker
   12846   # that we're better off using the native interface for both.
   12847   lt_use_gnu_ld_interface=no
   12848   if test yes = "$with_gnu_ld"; then
   12849     case $host_os in
   12850       aix*)
   12851 	# The AIX port of GNU ld has always aspired to compatibility
   12852 	# with the native linker.  However, as the warning in the GNU ld
   12853 	# block says, versions before 2.19.5* couldn't really create working
   12854 	# shared libraries, regardless of the interface used.
   12855 	case `$LD -v 2>&1` in
   12856 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   12857 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   12858 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   12859 	  *)
   12860 	    lt_use_gnu_ld_interface=yes
   12861 	    ;;
   12862 	esac
   12863 	;;
   12864       *)
   12865 	lt_use_gnu_ld_interface=yes
   12866 	;;
   12867     esac
   12868   fi
   12869 
   12870   if test yes = "$lt_use_gnu_ld_interface"; then
   12871     # If archive_cmds runs LD, not CC, wlarc should be empty
   12872     wlarc='$wl'
   12873 
   12874     # Set some defaults for GNU ld with shared library support. These
   12875     # are reset later if shared libraries are not supported. Putting them
   12876     # here allows them to be overridden if necessary.
   12877     runpath_var=LD_RUN_PATH
   12878     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   12879     export_dynamic_flag_spec='$wl--export-dynamic'
   12880     # ancient GNU ld didn't support --whole-archive et. al.
   12881     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   12882       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   12883     else
   12884       whole_archive_flag_spec=
   12885     fi
   12886     supports_anon_versioning=no
   12887     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
   12888       *GNU\ gold*) supports_anon_versioning=yes ;;
   12889       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   12890       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   12891       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   12892       *\ 2.11.*) ;; # other 2.11 versions
   12893       *) supports_anon_versioning=yes ;;
   12894     esac
   12895 
   12896     # See if GNU ld supports shared libraries.
   12897     case $host_os in
   12898     aix[3-9]*)
   12899       # On AIX/PPC, the GNU linker is very broken
   12900       if test ia64 != "$host_cpu"; then
   12901 	ld_shlibs=no
   12902 	cat <<_LT_EOF 1>&2
   12903 
   12904 *** Warning: the GNU linker, at least up to release 2.19, is reported
   12905 *** to be unable to reliably create shared libraries on AIX.
   12906 *** Therefore, libtool is disabling shared libraries support.  If you
   12907 *** really care for shared libraries, you may want to install binutils
   12908 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   12909 *** You will then need to restart the configuration process.
   12910 
   12911 _LT_EOF
   12912       fi
   12913       ;;
   12914 
   12915     amigaos*)
   12916       case $host_cpu in
   12917       powerpc)
   12918             # see comment about AmigaOS4 .so support
   12919             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   12920             archive_expsym_cmds=''
   12921         ;;
   12922       m68k)
   12923             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)'
   12924             hardcode_libdir_flag_spec='-L$libdir'
   12925             hardcode_minus_L=yes
   12926         ;;
   12927       esac
   12928       ;;
   12929 
   12930     beos*)
   12931       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   12932 	allow_undefined_flag=unsupported
   12933 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   12934 	# support --undefined.  This deserves some investigation.  FIXME
   12935 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   12936       else
   12937 	ld_shlibs=no
   12938       fi
   12939       ;;
   12940 
   12941     cygwin* | mingw* | windows* | pw32* | cegcc*)
   12942       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   12943       # as there is no search path for DLLs.
   12944       hardcode_libdir_flag_spec='-L$libdir'
   12945       export_dynamic_flag_spec='$wl--export-all-symbols'
   12946       allow_undefined_flag=unsupported
   12947       always_export_symbols=no
   12948       enable_shared_with_static_runtimes=yes
   12949       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'
   12950       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   12951       file_list_spec='@'
   12952 
   12953       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   12954         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   12955 	# If the export-symbols file already is a .def file, use it as
   12956 	# is; otherwise, prepend EXPORTS...
   12957 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   12958           cp $export_symbols $output_objdir/$soname.def;
   12959         else
   12960           echo EXPORTS > $output_objdir/$soname.def;
   12961           cat $export_symbols >> $output_objdir/$soname.def;
   12962         fi~
   12963         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   12964       else
   12965 	ld_shlibs=no
   12966       fi
   12967       ;;
   12968 
   12969     haiku*)
   12970       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   12971       link_all_deplibs=no
   12972       ;;
   12973 
   12974     os2*)
   12975       hardcode_libdir_flag_spec='-L$libdir'
   12976       hardcode_minus_L=yes
   12977       allow_undefined_flag=unsupported
   12978       shrext_cmds=.dll
   12979       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   12980 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   12981 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   12982 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   12983 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   12984 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   12985 	emximp -o $lib $output_objdir/$libname.def'
   12986       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   12987 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   12988 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   12989 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   12990 	prefix_cmds="$SED"~
   12991 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   12992 	  prefix_cmds="$prefix_cmds -e 1d";
   12993 	fi~
   12994 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   12995 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   12996 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   12997 	emximp -o $lib $output_objdir/$libname.def'
   12998       old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   12999       enable_shared_with_static_runtimes=yes
   13000       file_list_spec='@'
   13001       ;;
   13002 
   13003     interix[3-9]*)
   13004       hardcode_direct=no
   13005       hardcode_shlibpath_var=no
   13006       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   13007       export_dynamic_flag_spec='$wl-E'
   13008       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   13009       # Instead, shared libraries are loaded at an image base (0x10000000 by
   13010       # default) and relocated if they conflict, which is a slow very memory
   13011       # consuming and fragmenting process.  To avoid this, we pick a random,
   13012       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   13013       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   13014       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   13015       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'
   13016       ;;
   13017 
   13018     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   13019       tmp_diet=no
   13020       if test linux-dietlibc = "$host_os"; then
   13021 	case $cc_basename in
   13022 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   13023 	esac
   13024       fi
   13025       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   13026 	 && test no = "$tmp_diet"
   13027       then
   13028 	tmp_addflag=' $pic_flag'
   13029 	tmp_sharedflag='-shared'
   13030 	case $cc_basename,$host_cpu in
   13031         pgcc*)				# Portland Group C compiler
   13032 	  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'
   13033 	  tmp_addflag=' $pic_flag'
   13034 	  ;;
   13035 	pgf77* | pgf90* | pgf95* | pgfortran*)
   13036 					# Portland Group f77 and f90 compilers
   13037 	  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'
   13038 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   13039 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   13040 	  tmp_addflag=' -i_dynamic' ;;
   13041 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   13042 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   13043 	ifc* | ifort*)			# Intel Fortran compiler
   13044 	  tmp_addflag=' -nofor_main' ;;
   13045 	lf95*)				# Lahey Fortran 8.1
   13046 	  whole_archive_flag_spec=
   13047 	  tmp_sharedflag='--shared' ;;
   13048         nagfor*)                        # NAGFOR 5.3
   13049           tmp_sharedflag='-Wl,-shared' ;;
   13050 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   13051 	  tmp_sharedflag='-qmkshrobj'
   13052 	  tmp_addflag= ;;
   13053 	nvcc*)	# Cuda Compiler Driver 2.2
   13054 	  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'
   13055 	  compiler_needs_object=yes
   13056 	  ;;
   13057 	esac
   13058 	case `$CC -V 2>&1 | $SED 5q` in
   13059 	*Sun\ C*)			# Sun C 5.9
   13060 	  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'
   13061 	  compiler_needs_object=yes
   13062 	  tmp_sharedflag='-G' ;;
   13063 	*Sun\ F*)			# Sun Fortran 8.3
   13064 	  tmp_sharedflag='-G' ;;
   13065 	esac
   13066 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   13067 
   13068         if test yes = "$supports_anon_versioning"; then
   13069           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   13070             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   13071             echo "local: *; };" >> $output_objdir/$libname.ver~
   13072             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   13073         fi
   13074 
   13075 	case $cc_basename in
   13076 	tcc*)
   13077 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   13078 	  export_dynamic_flag_spec='-rdynamic'
   13079 	  ;;
   13080 	xlf* | bgf* | bgxlf* | mpixlf*)
   13081 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   13082 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   13083 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   13084 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   13085 	  if test yes = "$supports_anon_versioning"; then
   13086 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   13087               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   13088               echo "local: *; };" >> $output_objdir/$libname.ver~
   13089               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   13090 	  fi
   13091 	  ;;
   13092 	esac
   13093       else
   13094         ld_shlibs=no
   13095       fi
   13096       ;;
   13097 
   13098     *-mlibc)
   13099 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   13100 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   13101       ;;
   13102 
   13103     netbsd* | netbsdelf*-gnu)
   13104       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   13105 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   13106 	wlarc=
   13107       else
   13108 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   13109 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   13110       fi
   13111       ;;
   13112 
   13113     solaris*)
   13114       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   13115 	ld_shlibs=no
   13116 	cat <<_LT_EOF 1>&2
   13117 
   13118 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   13119 *** create shared libraries on Solaris systems.  Therefore, libtool
   13120 *** is disabling shared libraries support.  We urge you to upgrade GNU
   13121 *** binutils to release 2.9.1 or newer.  Another option is to modify
   13122 *** your PATH or compiler configuration so that the native linker is
   13123 *** used, and then restart.
   13124 
   13125 _LT_EOF
   13126       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   13127 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   13128 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   13129       else
   13130 	ld_shlibs=no
   13131       fi
   13132       ;;
   13133 
   13134     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   13135       case `$LD -v 2>&1` in
   13136         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   13137 	ld_shlibs=no
   13138 	cat <<_LT_EOF 1>&2
   13139 
   13140 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   13141 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   13142 *** is disabling shared libraries support.  We urge you to upgrade GNU
   13143 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   13144 *** your PATH or compiler configuration so that the native linker is
   13145 *** used, and then restart.
   13146 
   13147 _LT_EOF
   13148 	;;
   13149 	*)
   13150 	  # For security reasons, it is highly recommended that you always
   13151 	  # use absolute paths for naming shared libraries, and exclude the
   13152 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   13153 	  # requires that you compile everything twice, which is a pain.
   13154 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   13155 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   13156 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   13157 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   13158 	  else
   13159 	    ld_shlibs=no
   13160 	  fi
   13161 	;;
   13162       esac
   13163       ;;
   13164 
   13165     sunos4*)
   13166       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   13167       wlarc=
   13168       hardcode_direct=yes
   13169       hardcode_shlibpath_var=no
   13170       ;;
   13171 
   13172     *)
   13173       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   13174 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   13175 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   13176       else
   13177 	ld_shlibs=no
   13178       fi
   13179       ;;
   13180     esac
   13181 
   13182     if test no = "$ld_shlibs"; then
   13183       runpath_var=
   13184       hardcode_libdir_flag_spec=
   13185       export_dynamic_flag_spec=
   13186       whole_archive_flag_spec=
   13187     fi
   13188   else
   13189     # PORTME fill in a description of your system's linker (not GNU ld)
   13190     case $host_os in
   13191     aix3*)
   13192       allow_undefined_flag=unsupported
   13193       always_export_symbols=yes
   13194       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'
   13195       # Note: this linker hardcodes the directories in LIBPATH if there
   13196       # are no directories specified by -L.
   13197       hardcode_minus_L=yes
   13198       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   13199 	# Neither direct hardcoding nor static linking is supported with a
   13200 	# broken collect2.
   13201 	hardcode_direct=unsupported
   13202       fi
   13203       ;;
   13204 
   13205     aix[4-9]*)
   13206       if test ia64 = "$host_cpu"; then
   13207 	# On IA64, the linker does run time linking by default, so we don't
   13208 	# have to do anything special.
   13209 	aix_use_runtimelinking=no
   13210 	exp_sym_flag='-Bexport'
   13211 	no_entry_flag=
   13212       else
   13213 	# If we're using GNU nm, then we don't want the "-C" option.
   13214 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   13215 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   13216 	# weak defined symbols like other global defined symbols, whereas
   13217 	# GNU nm marks them as "W".
   13218 	# While the 'weak' keyword is ignored in the Export File, we need
   13219 	# it in the Import File for the 'aix-soname' feature, so we have
   13220 	# to replace the "-B" option with "-P" for AIX nm.
   13221 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   13222 	  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'
   13223 	else
   13224 	  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 == "L") || (\$ 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'
   13225 	fi
   13226 	aix_use_runtimelinking=no
   13227 
   13228 	# Test if we are trying to use run time linking or normal
   13229 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   13230 	# have runtime linking enabled, and use it for executables.
   13231 	# For shared libraries, we enable/disable runtime linking
   13232 	# depending on the kind of the shared library created -
   13233 	# when "with_aix_soname,aix_use_runtimelinking" is:
   13234 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   13235 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   13236 	#            lib.a           static archive
   13237 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   13238 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   13239 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   13240 	#            lib.a(lib.so.V) shared, rtl:no
   13241 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   13242 	#            lib.a           static archive
   13243 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   13244 	  for ld_flag in $LDFLAGS; do
   13245 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   13246 	    aix_use_runtimelinking=yes
   13247 	    break
   13248 	  fi
   13249 	  done
   13250 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   13251 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   13252 	    # so we don't have lib.a shared libs to link our executables.
   13253 	    # We have to force runtime linking in this case.
   13254 	    aix_use_runtimelinking=yes
   13255 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   13256 	  fi
   13257 	  ;;
   13258 	esac
   13259 
   13260 	exp_sym_flag='-bexport'
   13261 	no_entry_flag='-bnoentry'
   13262       fi
   13263 
   13264       # When large executables or shared objects are built, AIX ld can
   13265       # have problems creating the table of contents.  If linking a library
   13266       # or program results in "error TOC overflow" add -mminimal-toc to
   13267       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   13268       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   13269 
   13270       archive_cmds=''
   13271       hardcode_direct=yes
   13272       hardcode_direct_absolute=yes
   13273       hardcode_libdir_separator=':'
   13274       link_all_deplibs=yes
   13275       file_list_spec='$wl-f,'
   13276       case $with_aix_soname,$aix_use_runtimelinking in
   13277       aix,*) ;; # traditional, no import file
   13278       svr4,* | *,yes) # use import file
   13279 	# The Import File defines what to hardcode.
   13280 	hardcode_direct=no
   13281 	hardcode_direct_absolute=no
   13282 	;;
   13283       esac
   13284 
   13285       if test yes = "$GCC"; then
   13286 	case $host_os in aix4.[012]|aix4.[012].*)
   13287 	# We only want to do this on AIX 4.2 and lower, the check
   13288 	# below for broken collect2 doesn't work under 4.3+
   13289 	  collect2name=`$CC -print-prog-name=collect2`
   13290 	  if test -f "$collect2name" &&
   13291 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   13292 	  then
   13293 	  # We have reworked collect2
   13294 	  :
   13295 	  else
   13296 	  # We have old collect2
   13297 	  hardcode_direct=unsupported
   13298 	  # It fails to find uninstalled libraries when the uninstalled
   13299 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   13300 	  # to unsupported forces relinking
   13301 	  hardcode_minus_L=yes
   13302 	  hardcode_libdir_flag_spec='-L$libdir'
   13303 	  hardcode_libdir_separator=
   13304 	  fi
   13305 	  ;;
   13306 	esac
   13307 	shared_flag='-shared'
   13308 	if test yes = "$aix_use_runtimelinking"; then
   13309 	  shared_flag="$shared_flag "'$wl-G'
   13310 	fi
   13311 	# Need to ensure runtime linking is disabled for the traditional
   13312 	# shared library, or the linker may eventually find shared libraries
   13313 	# /with/ Import File - we do not want to mix them.
   13314 	shared_flag_aix='-shared'
   13315 	shared_flag_svr4='-shared $wl-G'
   13316       else
   13317 	# not using gcc
   13318 	if test ia64 = "$host_cpu"; then
   13319 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   13320 	# chokes on -Wl,-G. The following line is correct:
   13321 	  shared_flag='-G'
   13322 	else
   13323 	  if test yes = "$aix_use_runtimelinking"; then
   13324 	    shared_flag='$wl-G'
   13325 	  else
   13326 	    shared_flag='$wl-bM:SRE'
   13327 	  fi
   13328 	  shared_flag_aix='$wl-bM:SRE'
   13329 	  shared_flag_svr4='$wl-G'
   13330 	fi
   13331       fi
   13332 
   13333       export_dynamic_flag_spec='$wl-bexpall'
   13334       # It seems that -bexpall does not export symbols beginning with
   13335       # underscore (_), so it is better to generate a list of symbols to export.
   13336       always_export_symbols=yes
   13337       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   13338 	# Warning - without using the other runtime loading flags (-brtl),
   13339 	# -berok will link without error, but may produce a broken library.
   13340 	allow_undefined_flag='-berok'
   13341         # Determine the default libpath from the value encoded in an
   13342         # empty executable.
   13343         if test set = "${lt_cv_aix_libpath+set}"; then
   13344   aix_libpath=$lt_cv_aix_libpath
   13345 else
   13346   if test ${lt_cv_aix_libpath_+y}
   13347 then :
   13348   printf %s "(cached) " >&6
   13349 else $as_nop
   13350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13351 /* end confdefs.h.  */
   13352 
   13353 int
   13354 main (void)
   13355 {
   13356 
   13357   ;
   13358   return 0;
   13359 }
   13360 _ACEOF
   13361 if ac_fn_c_try_link "$LINENO"
   13362 then :
   13363 
   13364   lt_aix_libpath_sed='
   13365       /Import File Strings/,/^$/ {
   13366 	  /^0/ {
   13367 	      s/^0  *\([^ ]*\) *$/\1/
   13368 	      p
   13369 	  }
   13370       }'
   13371   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   13372   # Check for a 64-bit object if we didn't find anything.
   13373   if test -z "$lt_cv_aix_libpath_"; then
   13374     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   13375   fi
   13376 fi
   13377 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13378     conftest$ac_exeext conftest.$ac_ext
   13379   if test -z "$lt_cv_aix_libpath_"; then
   13380     lt_cv_aix_libpath_=/usr/lib:/lib
   13381   fi
   13382 
   13383 fi
   13384 
   13385   aix_libpath=$lt_cv_aix_libpath_
   13386 fi
   13387 
   13388         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   13389         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
   13390       else
   13391 	if test ia64 = "$host_cpu"; then
   13392 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   13393 	  allow_undefined_flag="-z nodefs"
   13394 	  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"
   13395 	else
   13396 	 # Determine the default libpath from the value encoded in an
   13397 	 # empty executable.
   13398 	 if test set = "${lt_cv_aix_libpath+set}"; then
   13399   aix_libpath=$lt_cv_aix_libpath
   13400 else
   13401   if test ${lt_cv_aix_libpath_+y}
   13402 then :
   13403   printf %s "(cached) " >&6
   13404 else $as_nop
   13405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13406 /* end confdefs.h.  */
   13407 
   13408 int
   13409 main (void)
   13410 {
   13411 
   13412   ;
   13413   return 0;
   13414 }
   13415 _ACEOF
   13416 if ac_fn_c_try_link "$LINENO"
   13417 then :
   13418 
   13419   lt_aix_libpath_sed='
   13420       /Import File Strings/,/^$/ {
   13421 	  /^0/ {
   13422 	      s/^0  *\([^ ]*\) *$/\1/
   13423 	      p
   13424 	  }
   13425       }'
   13426   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   13427   # Check for a 64-bit object if we didn't find anything.
   13428   if test -z "$lt_cv_aix_libpath_"; then
   13429     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   13430   fi
   13431 fi
   13432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13433     conftest$ac_exeext conftest.$ac_ext
   13434   if test -z "$lt_cv_aix_libpath_"; then
   13435     lt_cv_aix_libpath_=/usr/lib:/lib
   13436   fi
   13437 
   13438 fi
   13439 
   13440   aix_libpath=$lt_cv_aix_libpath_
   13441 fi
   13442 
   13443 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   13444 	  # Warning - without using the other run time loading flags,
   13445 	  # -berok will link without error, but may produce a broken library.
   13446 	  no_undefined_flag=' $wl-bernotok'
   13447 	  allow_undefined_flag=' $wl-berok'
   13448 	  if test yes = "$with_gnu_ld"; then
   13449 	    # We only use this code for GNU lds that support --whole-archive.
   13450 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   13451 	  else
   13452 	    # Exported symbols can be pulled into shared objects from archives
   13453 	    whole_archive_flag_spec='$convenience'
   13454 	  fi
   13455 	  archive_cmds_need_lc=yes
   13456 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   13457 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   13458 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   13459 	  if test svr4 != "$with_aix_soname"; then
   13460 	    # This is similar to how AIX traditionally builds its shared libraries.
   13461 	    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'
   13462 	  fi
   13463 	  if test aix != "$with_aix_soname"; then
   13464 	    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'
   13465 	  else
   13466 	    # used by -dlpreopen to get the symbols
   13467 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   13468 	  fi
   13469 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   13470 	fi
   13471       fi
   13472       ;;
   13473 
   13474     amigaos*)
   13475       case $host_cpu in
   13476       powerpc)
   13477             # see comment about AmigaOS4 .so support
   13478             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   13479             archive_expsym_cmds=''
   13480         ;;
   13481       m68k)
   13482             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)'
   13483             hardcode_libdir_flag_spec='-L$libdir'
   13484             hardcode_minus_L=yes
   13485         ;;
   13486       esac
   13487       ;;
   13488 
   13489     bsdi[45]*)
   13490       export_dynamic_flag_spec=-rdynamic
   13491       ;;
   13492 
   13493     cygwin* | mingw* | windows* | pw32* | cegcc*)
   13494       # When not using gcc, we currently assume that we are using
   13495       # Microsoft Visual C++ or Intel C++ Compiler.
   13496       # hardcode_libdir_flag_spec is actually meaningless, as there is
   13497       # no search path for DLLs.
   13498       case $cc_basename in
   13499       cl* | icl*)
   13500 	# Native MSVC or ICC
   13501 	hardcode_libdir_flag_spec=' '
   13502 	allow_undefined_flag=unsupported
   13503 	always_export_symbols=yes
   13504 	file_list_spec='@'
   13505 	# Tell ltmain to make .lib files, not .a files.
   13506 	libext=lib
   13507 	# Tell ltmain to make .dll files, not .so files.
   13508 	shrext_cmds=.dll
   13509 	# FIXME: Setting linknames here is a bad hack.
   13510 	archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   13511 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   13512             cp "$export_symbols" "$output_objdir/$soname.def";
   13513             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   13514           else
   13515             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   13516           fi~
   13517           $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   13518           linknames='
   13519 	# The linker will not automatically build a static lib if we build a DLL.
   13520 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   13521 	enable_shared_with_static_runtimes=yes
   13522 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   13523 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   13524 	# Don't use ranlib
   13525 	old_postinstall_cmds='chmod 644 $oldlib'
   13526 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   13527           lt_tool_outputfile="@TOOL_OUTPUT@"~
   13528           case $lt_outputfile in
   13529             *.exe|*.EXE) ;;
   13530             *)
   13531               lt_outputfile=$lt_outputfile.exe
   13532               lt_tool_outputfile=$lt_tool_outputfile.exe
   13533               ;;
   13534           esac~
   13535           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   13536             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   13537             $RM "$lt_outputfile.manifest";
   13538           fi'
   13539 	;;
   13540       *)
   13541 	# Assume MSVC and ICC wrapper
   13542 	hardcode_libdir_flag_spec=' '
   13543 	allow_undefined_flag=unsupported
   13544 	# Tell ltmain to make .lib files, not .a files.
   13545 	libext=lib
   13546 	# Tell ltmain to make .dll files, not .so files.
   13547 	shrext_cmds=.dll
   13548 	# FIXME: Setting linknames here is a bad hack.
   13549 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   13550 	# The linker will automatically build a .lib file if we build a DLL.
   13551 	old_archive_from_new_cmds='true'
   13552 	# FIXME: Should let the user specify the lib program.
   13553 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   13554 	enable_shared_with_static_runtimes=yes
   13555 	;;
   13556       esac
   13557       ;;
   13558 
   13559     darwin* | rhapsody*)
   13560 
   13561 
   13562   archive_cmds_need_lc=no
   13563   hardcode_direct=no
   13564   hardcode_automatic=yes
   13565   hardcode_shlibpath_var=unsupported
   13566   if test yes = "$lt_cv_ld_force_load"; then
   13567     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\"`'
   13568 
   13569   else
   13570     whole_archive_flag_spec=''
   13571   fi
   13572   link_all_deplibs=yes
   13573   allow_undefined_flag=$_lt_dar_allow_undefined
   13574   case $cc_basename in
   13575      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   13576      *) _lt_dar_can_shared=$GCC ;;
   13577   esac
   13578   if test yes = "$_lt_dar_can_shared"; then
   13579     output_verbose_link_cmd=func_echo_all
   13580     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
   13581     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   13582     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"
   13583     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"
   13584 
   13585   else
   13586   ld_shlibs=no
   13587   fi
   13588 
   13589       ;;
   13590 
   13591     dgux*)
   13592       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   13593       hardcode_libdir_flag_spec='-L$libdir'
   13594       hardcode_shlibpath_var=no
   13595       ;;
   13596 
   13597     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   13598     # support.  Future versions do this automatically, but an explicit c++rt0.o
   13599     # does not break anything, and helps significantly (at the cost of a little
   13600     # extra space).
   13601     freebsd2.2*)
   13602       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   13603       hardcode_libdir_flag_spec='-R$libdir'
   13604       hardcode_direct=yes
   13605       hardcode_shlibpath_var=no
   13606       ;;
   13607 
   13608     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   13609     freebsd2.*)
   13610       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   13611       hardcode_direct=yes
   13612       hardcode_minus_L=yes
   13613       hardcode_shlibpath_var=no
   13614       ;;
   13615 
   13616     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   13617     freebsd* | dragonfly* | midnightbsd*)
   13618       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   13619       hardcode_libdir_flag_spec='-R$libdir'
   13620       hardcode_direct=yes
   13621       hardcode_shlibpath_var=no
   13622       ;;
   13623 
   13624     hpux9*)
   13625       if test yes = "$GCC"; then
   13626 	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'
   13627       else
   13628 	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'
   13629       fi
   13630       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   13631       hardcode_libdir_separator=:
   13632       hardcode_direct=yes
   13633 
   13634       # hardcode_minus_L: Not really in the search PATH,
   13635       # but as the default location of the library.
   13636       hardcode_minus_L=yes
   13637       export_dynamic_flag_spec='$wl-E'
   13638       ;;
   13639 
   13640     hpux10*)
   13641       if test yes,no = "$GCC,$with_gnu_ld"; then
   13642 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   13643       else
   13644 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   13645       fi
   13646       if test no = "$with_gnu_ld"; then
   13647 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   13648 	hardcode_libdir_separator=:
   13649 	hardcode_direct=yes
   13650 	hardcode_direct_absolute=yes
   13651 	export_dynamic_flag_spec='$wl-E'
   13652 	# hardcode_minus_L: Not really in the search PATH,
   13653 	# but as the default location of the library.
   13654 	hardcode_minus_L=yes
   13655       fi
   13656       ;;
   13657 
   13658     hpux11*)
   13659       if test yes,no = "$GCC,$with_gnu_ld"; then
   13660 	case $host_cpu in
   13661 	hppa*64*)
   13662 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   13663 	  ;;
   13664 	ia64*)
   13665 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   13666 	  ;;
   13667 	*)
   13668 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   13669 	  ;;
   13670 	esac
   13671       else
   13672 	case $host_cpu in
   13673 	hppa*64*)
   13674 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   13675 	  ;;
   13676 	ia64*)
   13677 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   13678 	  ;;
   13679 	*)
   13680 
   13681 	  # Older versions of the 11.00 compiler do not understand -b yet
   13682 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   13683 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   13684 printf %s "checking if $CC understands -b... " >&6; }
   13685 if test ${lt_cv_prog_compiler__b+y}
   13686 then :
   13687   printf %s "(cached) " >&6
   13688 else $as_nop
   13689   lt_cv_prog_compiler__b=no
   13690    save_LDFLAGS=$LDFLAGS
   13691    LDFLAGS="$LDFLAGS -b"
   13692    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   13693    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   13694      # The linker can only warn and ignore the option if not recognized
   13695      # So say no if there are warnings
   13696      if test -s conftest.err; then
   13697        # Append any errors to the config.log.
   13698        cat conftest.err 1>&5
   13699        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   13700        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   13701        if diff conftest.exp conftest.er2 >/dev/null; then
   13702          lt_cv_prog_compiler__b=yes
   13703        fi
   13704      else
   13705        lt_cv_prog_compiler__b=yes
   13706      fi
   13707    fi
   13708    $RM -r conftest*
   13709    LDFLAGS=$save_LDFLAGS
   13710 
   13711 fi
   13712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   13713 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
   13714 
   13715 if test yes = "$lt_cv_prog_compiler__b"; then
   13716     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   13717 else
   13718     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   13719 fi
   13720 
   13721 	  ;;
   13722 	esac
   13723       fi
   13724       if test no = "$with_gnu_ld"; then
   13725 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   13726 	hardcode_libdir_separator=:
   13727 
   13728 	case $host_cpu in
   13729 	hppa*64*|ia64*)
   13730 	  hardcode_direct=no
   13731 	  hardcode_shlibpath_var=no
   13732 	  ;;
   13733 	*)
   13734 	  hardcode_direct=yes
   13735 	  hardcode_direct_absolute=yes
   13736 	  export_dynamic_flag_spec='$wl-E'
   13737 
   13738 	  # hardcode_minus_L: Not really in the search PATH,
   13739 	  # but as the default location of the library.
   13740 	  hardcode_minus_L=yes
   13741 	  ;;
   13742 	esac
   13743       fi
   13744       ;;
   13745 
   13746     irix5* | irix6* | nonstopux*)
   13747       if test yes = "$GCC"; then
   13748 	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'
   13749 	# Try to use the -exported_symbol ld option, if it does not
   13750 	# work, assume that -exports_file does not work either and
   13751 	# implicitly export all symbols.
   13752 	# This should be the same for all languages, so no per-tag cache variable.
   13753 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   13754 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   13755 if test ${lt_cv_irix_exported_symbol+y}
   13756 then :
   13757   printf %s "(cached) " >&6
   13758 else $as_nop
   13759   save_LDFLAGS=$LDFLAGS
   13760 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   13761 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13762 /* end confdefs.h.  */
   13763 int foo (void) { return 0; }
   13764 _ACEOF
   13765 if ac_fn_c_try_link "$LINENO"
   13766 then :
   13767   lt_cv_irix_exported_symbol=yes
   13768 else $as_nop
   13769   lt_cv_irix_exported_symbol=no
   13770 fi
   13771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13772     conftest$ac_exeext conftest.$ac_ext
   13773            LDFLAGS=$save_LDFLAGS
   13774 fi
   13775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   13776 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
   13777 	if test yes = "$lt_cv_irix_exported_symbol"; then
   13778           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'
   13779 	fi
   13780       else
   13781 	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'
   13782 	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'
   13783       fi
   13784       archive_cmds_need_lc='no'
   13785       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   13786       hardcode_libdir_separator=:
   13787       inherit_rpath=yes
   13788       link_all_deplibs=yes
   13789       ;;
   13790 
   13791     linux*)
   13792       case $cc_basename in
   13793       tcc*)
   13794 	# Fabrice Bellard et al's Tiny C Compiler
   13795 	ld_shlibs=yes
   13796 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   13797 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   13798 	;;
   13799       esac
   13800       ;;
   13801 
   13802     *-mlibc)
   13803       ;;
   13804 
   13805     netbsd* | netbsdelf*-gnu)
   13806       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   13807 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   13808       else
   13809 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   13810       fi
   13811       hardcode_libdir_flag_spec='-R$libdir'
   13812       hardcode_direct=yes
   13813       hardcode_shlibpath_var=no
   13814       ;;
   13815 
   13816     newsos6)
   13817       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   13818       hardcode_direct=yes
   13819       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   13820       hardcode_libdir_separator=:
   13821       hardcode_shlibpath_var=no
   13822       ;;
   13823 
   13824     *nto* | *qnx*)
   13825       ;;
   13826 
   13827     openbsd*)
   13828       if test -f /usr/libexec/ld.so; then
   13829 	hardcode_direct=yes
   13830 	hardcode_shlibpath_var=no
   13831 	hardcode_direct_absolute=yes
   13832 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   13833 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   13834 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   13835 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   13836 	  export_dynamic_flag_spec='$wl-E'
   13837 	else
   13838 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   13839 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   13840 	fi
   13841       else
   13842 	ld_shlibs=no
   13843       fi
   13844       ;;
   13845 
   13846     os2*)
   13847       hardcode_libdir_flag_spec='-L$libdir'
   13848       hardcode_minus_L=yes
   13849       allow_undefined_flag=unsupported
   13850       shrext_cmds=.dll
   13851       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   13852 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   13853 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   13854 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   13855 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   13856 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   13857 	emximp -o $lib $output_objdir/$libname.def'
   13858       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   13859 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   13860 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   13861 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   13862 	prefix_cmds="$SED"~
   13863 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   13864 	  prefix_cmds="$prefix_cmds -e 1d";
   13865 	fi~
   13866 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   13867 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   13868 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   13869 	emximp -o $lib $output_objdir/$libname.def'
   13870       old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   13871       enable_shared_with_static_runtimes=yes
   13872       file_list_spec='@'
   13873       ;;
   13874 
   13875     osf3*)
   13876       if test yes = "$GCC"; then
   13877 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   13878 	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'
   13879       else
   13880 	allow_undefined_flag=' -expect_unresolved \*'
   13881 	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'
   13882       fi
   13883       archive_cmds_need_lc='no'
   13884       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   13885       hardcode_libdir_separator=:
   13886       ;;
   13887 
   13888     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   13889       if test yes = "$GCC"; then
   13890 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   13891 	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'
   13892 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   13893       else
   13894 	allow_undefined_flag=' -expect_unresolved \*'
   13895 	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'
   13896 	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~
   13897           $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'
   13898 
   13899 	# Both c and cxx compiler support -rpath directly
   13900 	hardcode_libdir_flag_spec='-rpath $libdir'
   13901       fi
   13902       archive_cmds_need_lc='no'
   13903       hardcode_libdir_separator=:
   13904       ;;
   13905 
   13906     serenity*)
   13907       ;;
   13908 
   13909     solaris*)
   13910       no_undefined_flag=' -z defs'
   13911       if test yes = "$GCC"; then
   13912 	wlarc='$wl'
   13913 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   13914 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   13915           $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'
   13916       else
   13917 	case `$CC -V 2>&1` in
   13918 	*"Compilers 5.0"*)
   13919 	  wlarc=''
   13920 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   13921 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   13922             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   13923 	  ;;
   13924 	*)
   13925 	  wlarc='$wl'
   13926 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   13927 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   13928             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   13929 	  ;;
   13930 	esac
   13931       fi
   13932       hardcode_libdir_flag_spec='-R$libdir'
   13933       hardcode_shlibpath_var=no
   13934       case $host_os in
   13935       solaris2.[0-5] | solaris2.[0-5].*) ;;
   13936       *)
   13937 	# The compiler driver will combine and reorder linker options,
   13938 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   13939 	# but is careful enough not to reorder.
   13940 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   13941 	if test yes = "$GCC"; then
   13942 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   13943 	else
   13944 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   13945 	fi
   13946 	;;
   13947       esac
   13948       link_all_deplibs=yes
   13949       ;;
   13950 
   13951     sunos4*)
   13952       if test sequent = "$host_vendor"; then
   13953 	# Use $CC to link under sequent, because it throws in some extra .o
   13954 	# files that make .init and .fini sections work.
   13955 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   13956       else
   13957 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   13958       fi
   13959       hardcode_libdir_flag_spec='-L$libdir'
   13960       hardcode_direct=yes
   13961       hardcode_minus_L=yes
   13962       hardcode_shlibpath_var=no
   13963       ;;
   13964 
   13965     sysv4)
   13966       case $host_vendor in
   13967 	sni)
   13968 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   13969 	  hardcode_direct=yes # is this really true???
   13970 	;;
   13971 	siemens)
   13972 	  ## LD is ld it makes a PLAMLIB
   13973 	  ## CC just makes a GrossModule.
   13974 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   13975 	  reload_cmds='$CC -r -o $output$reload_objs'
   13976 	  hardcode_direct=no
   13977         ;;
   13978 	motorola)
   13979 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   13980 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   13981 	;;
   13982       esac
   13983       runpath_var='LD_RUN_PATH'
   13984       hardcode_shlibpath_var=no
   13985       ;;
   13986 
   13987     sysv4.3*)
   13988       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   13989       hardcode_shlibpath_var=no
   13990       export_dynamic_flag_spec='-Bexport'
   13991       ;;
   13992 
   13993     sysv4*MP*)
   13994       if test -d /usr/nec; then
   13995 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   13996 	hardcode_shlibpath_var=no
   13997 	runpath_var=LD_RUN_PATH
   13998 	hardcode_runpath_var=yes
   13999 	ld_shlibs=yes
   14000       fi
   14001       ;;
   14002 
   14003     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   14004       no_undefined_flag='$wl-z,text'
   14005       archive_cmds_need_lc=no
   14006       hardcode_shlibpath_var=no
   14007       runpath_var='LD_RUN_PATH'
   14008 
   14009       if test yes = "$GCC"; then
   14010 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   14011 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   14012       else
   14013 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   14014 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   14015       fi
   14016       ;;
   14017 
   14018     sysv5* | sco3.2v5* | sco5v6*)
   14019       # Note: We CANNOT use -z defs as we might desire, because we do not
   14020       # link with -lc, and that would cause any symbols used from libc to
   14021       # always be unresolved, which means just about no library would
   14022       # ever link correctly.  If we're not using GNU ld we use -z text
   14023       # though, which does catch some bad symbols but isn't as heavy-handed
   14024       # as -z defs.
   14025       no_undefined_flag='$wl-z,text'
   14026       allow_undefined_flag='$wl-z,nodefs'
   14027       archive_cmds_need_lc=no
   14028       hardcode_shlibpath_var=no
   14029       hardcode_libdir_flag_spec='$wl-R,$libdir'
   14030       hardcode_libdir_separator=':'
   14031       link_all_deplibs=yes
   14032       export_dynamic_flag_spec='$wl-Bexport'
   14033       runpath_var='LD_RUN_PATH'
   14034 
   14035       if test yes = "$GCC"; then
   14036 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   14037 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   14038       else
   14039 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   14040 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   14041       fi
   14042       ;;
   14043 
   14044     uts4*)
   14045       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14046       hardcode_libdir_flag_spec='-L$libdir'
   14047       hardcode_shlibpath_var=no
   14048       ;;
   14049 
   14050     *)
   14051       ld_shlibs=no
   14052       ;;
   14053     esac
   14054 
   14055     if test sni = "$host_vendor"; then
   14056       case $host in
   14057       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   14058 	export_dynamic_flag_spec='$wl-Blargedynsym'
   14059 	;;
   14060       esac
   14061     fi
   14062   fi
   14063 
   14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   14065 printf "%s\n" "$ld_shlibs" >&6; }
   14066 test no = "$ld_shlibs" && can_build_shared=no
   14067 
   14068 with_gnu_ld=$with_gnu_ld
   14069 
   14070 
   14071 
   14072 
   14073 
   14074 
   14075 
   14076 
   14077 
   14078 
   14079 
   14080 
   14081 
   14082 
   14083 
   14084 #
   14085 # Do we need to explicitly link libc?
   14086 #
   14087 case "x$archive_cmds_need_lc" in
   14088 x|xyes)
   14089   # Assume -lc should be added
   14090   archive_cmds_need_lc=yes
   14091 
   14092   if test yes,yes = "$GCC,$enable_shared"; then
   14093     case $archive_cmds in
   14094     *'~'*)
   14095       # FIXME: we may have to deal with multi-command sequences.
   14096       ;;
   14097     '$CC '*)
   14098       # Test whether the compiler implicitly links with -lc since on some
   14099       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   14100       # to ld, don't add -lc before -lgcc.
   14101       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   14102 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
   14103 if test ${lt_cv_archive_cmds_need_lc+y}
   14104 then :
   14105   printf %s "(cached) " >&6
   14106 else $as_nop
   14107   $RM conftest*
   14108 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   14109 
   14110 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   14111   (eval $ac_compile) 2>&5
   14112   ac_status=$?
   14113   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14114   test $ac_status = 0; } 2>conftest.err; then
   14115 	  soname=conftest
   14116 	  lib=conftest
   14117 	  libobjs=conftest.$ac_objext
   14118 	  deplibs=
   14119 	  wl=$lt_prog_compiler_wl
   14120 	  pic_flag=$lt_prog_compiler_pic
   14121 	  compiler_flags=-v
   14122 	  linker_flags=-v
   14123 	  verstring=
   14124 	  output_objdir=.
   14125 	  libname=conftest
   14126 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   14127 	  allow_undefined_flag=
   14128 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   14129   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   14130   ac_status=$?
   14131   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14132   test $ac_status = 0; }
   14133 	  then
   14134 	    lt_cv_archive_cmds_need_lc=no
   14135 	  else
   14136 	    lt_cv_archive_cmds_need_lc=yes
   14137 	  fi
   14138 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   14139 	else
   14140 	  cat conftest.err 1>&5
   14141 	fi
   14142 	$RM conftest*
   14143 
   14144 fi
   14145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   14146 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
   14147       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   14148       ;;
   14149     esac
   14150   fi
   14151   ;;
   14152 esac
   14153 
   14154 
   14155 
   14156 
   14157 
   14158 
   14159 
   14160 
   14161 
   14162 
   14163 
   14164 
   14165 
   14166 
   14167 
   14168 
   14169 
   14170 
   14171 
   14172 
   14173 
   14174 
   14175 
   14176 
   14177 
   14178 
   14179 
   14180 
   14181 
   14182 
   14183 
   14184 
   14185 
   14186 
   14187 
   14188 
   14189 
   14190 
   14191 
   14192 
   14193 
   14194 
   14195 
   14196 
   14197 
   14198 
   14199 
   14200 
   14201 
   14202 
   14203 
   14204 
   14205 
   14206 
   14207 
   14208 
   14209 
   14210 
   14211 
   14212 
   14213 
   14214 
   14215 
   14216 
   14217 
   14218 
   14219 
   14220 
   14221 
   14222 
   14223 
   14224 
   14225 
   14226 
   14227 
   14228 
   14229 
   14230 
   14231 
   14232 
   14233 
   14234 
   14235 
   14236 
   14237 
   14238 
   14239 
   14240 
   14241 
   14242 
   14243 
   14244 
   14245 
   14246 
   14247 
   14248 
   14249 
   14250 
   14251 
   14252 
   14253 
   14254 
   14255 
   14256 
   14257 
   14258 
   14259 
   14260 
   14261 
   14262 
   14263 
   14264 
   14265 
   14266 
   14267 
   14268 
   14269 
   14270 
   14271 
   14272 
   14273 
   14274 
   14275 
   14276 
   14277 
   14278 
   14279 
   14280 
   14281 
   14282 
   14283 
   14284 
   14285 
   14286 
   14287 
   14288 
   14289 
   14290 
   14291 
   14292 
   14293 
   14294 
   14295 
   14296 
   14297 
   14298 
   14299 
   14300 
   14301 
   14302 
   14303 
   14304 
   14305   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   14306 printf %s "checking dynamic linker characteristics... " >&6; }
   14307 
   14308 if test yes = "$GCC"; then
   14309   case $host_os in
   14310     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   14311     *) lt_awk_arg='/^libraries:/' ;;
   14312   esac
   14313   case $host_os in
   14314     mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   14315     *) lt_sed_strip_eq='s|=/|/|g' ;;
   14316   esac
   14317   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   14318   case $lt_search_path_spec in
   14319   *\;*)
   14320     # if the path contains ";" then we assume it to be the separator
   14321     # otherwise default to the standard path separator (i.e. ":") - it is
   14322     # assumed that no part of a normal pathname contains ";" but that should
   14323     # okay in the real world where ";" in dirpaths is itself problematic.
   14324     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   14325     ;;
   14326   *)
   14327     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   14328     ;;
   14329   esac
   14330   # Ok, now we have the path, separated by spaces, we can step through it
   14331   # and add multilib dir if necessary...
   14332   lt_tmp_lt_search_path_spec=
   14333   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   14334   # ...but if some path component already ends with the multilib dir we assume
   14335   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   14336   case "$lt_multi_os_dir; $lt_search_path_spec " in
   14337   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   14338     lt_multi_os_dir=
   14339     ;;
   14340   esac
   14341   for lt_sys_path in $lt_search_path_spec; do
   14342     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   14343       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   14344     elif test -n "$lt_multi_os_dir"; then
   14345       test -d "$lt_sys_path" && \
   14346 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   14347     fi
   14348   done
   14349   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   14350 BEGIN {RS = " "; FS = "/|\n";} {
   14351   lt_foo = "";
   14352   lt_count = 0;
   14353   for (lt_i = NF; lt_i > 0; lt_i--) {
   14354     if ($lt_i != "" && $lt_i != ".") {
   14355       if ($lt_i == "..") {
   14356         lt_count++;
   14357       } else {
   14358         if (lt_count == 0) {
   14359           lt_foo = "/" $lt_i lt_foo;
   14360         } else {
   14361           lt_count--;
   14362         }
   14363       }
   14364     }
   14365   }
   14366   if (lt_foo != "") { lt_freq[lt_foo]++; }
   14367   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   14368 }'`
   14369   # AWK program above erroneously prepends '/' to C:/dos/paths
   14370   # for these hosts.
   14371   case $host_os in
   14372     mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   14373       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   14374   esac
   14375   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   14376 else
   14377   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   14378 fi
   14379 library_names_spec=
   14380 libname_spec='lib$name'
   14381 soname_spec=
   14382 shrext_cmds=.so
   14383 postinstall_cmds=
   14384 postuninstall_cmds=
   14385 finish_cmds=
   14386 finish_eval=
   14387 shlibpath_var=
   14388 shlibpath_overrides_runpath=unknown
   14389 version_type=none
   14390 dynamic_linker="$host_os ld.so"
   14391 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   14392 need_lib_prefix=unknown
   14393 hardcode_into_libs=no
   14394 
   14395 # when you set need_version to no, make sure it does not cause -set_version
   14396 # flags to be left without arguments
   14397 need_version=unknown
   14398 
   14399 
   14400 
   14401 case $host_os in
   14402 aix3*)
   14403   version_type=linux # correct to gnu/linux during the next big refactor
   14404   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   14405   shlibpath_var=LIBPATH
   14406 
   14407   # AIX 3 has no versioning support, so we append a major version to the name.
   14408   soname_spec='$libname$release$shared_ext$major'
   14409   ;;
   14410 
   14411 aix[4-9]*)
   14412   version_type=linux # correct to gnu/linux during the next big refactor
   14413   need_lib_prefix=no
   14414   need_version=no
   14415   hardcode_into_libs=yes
   14416   if test ia64 = "$host_cpu"; then
   14417     # AIX 5 supports IA64
   14418     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   14419     shlibpath_var=LD_LIBRARY_PATH
   14420   else
   14421     # With GCC up to 2.95.x, collect2 would create an import file
   14422     # for dependence libraries.  The import file would start with
   14423     # the line '#! .'.  This would cause the generated library to
   14424     # depend on '.', always an invalid library.  This was fixed in
   14425     # development snapshots of GCC prior to 3.0.
   14426     case $host_os in
   14427       aix4 | aix4.[01] | aix4.[01].*)
   14428       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   14429 	   echo ' yes '
   14430 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   14431 	:
   14432       else
   14433 	can_build_shared=no
   14434       fi
   14435       ;;
   14436     esac
   14437     # Using Import Files as archive members, it is possible to support
   14438     # filename-based versioning of shared library archives on AIX. While
   14439     # this would work for both with and without runtime linking, it will
   14440     # prevent static linking of such archives. So we do filename-based
   14441     # shared library versioning with .so extension only, which is used
   14442     # when both runtime linking and shared linking is enabled.
   14443     # Unfortunately, runtime linking may impact performance, so we do
   14444     # not want this to be the default eventually. Also, we use the
   14445     # versioned .so libs for executables only if there is the -brtl
   14446     # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
   14447     # To allow for filename-based versioning support, we need to create
   14448     # libNAME.so.V as an archive file, containing:
   14449     # *) an Import File, referring to the versioned filename of the
   14450     #    archive as well as the shared archive member, telling the
   14451     #    bitwidth (32 or 64) of that shared object, and providing the
   14452     #    list of exported symbols of that shared object, eventually
   14453     #    decorated with the 'weak' keyword
   14454     # *) the shared object with the F_LOADONLY flag set, to really avoid
   14455     #    it being seen by the linker.
   14456     # At run time we better use the real file rather than another symlink,
   14457     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   14458 
   14459     case $with_aix_soname,$aix_use_runtimelinking in
   14460     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   14461     # soname into executable. Probably we can add versioning support to
   14462     # collect2, so additional links can be useful in future.
   14463     aix,yes) # traditional libtool
   14464       dynamic_linker='AIX unversionable lib.so'
   14465       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   14466       # instead of lib<name>.a to let people know that these are not
   14467       # typical AIX shared libraries.
   14468       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   14469       ;;
   14470     aix,no) # traditional AIX only
   14471       dynamic_linker='AIX lib.a(lib.so.V)'
   14472       # We preserve .a as extension for shared libraries through AIX4.2
   14473       # and later when we are not doing run time linking.
   14474       library_names_spec='$libname$release.a $libname.a'
   14475       soname_spec='$libname$release$shared_ext$major'
   14476       ;;
   14477     svr4,*) # full svr4 only
   14478       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   14479       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   14480       # We do not specify a path in Import Files, so LIBPATH fires.
   14481       shlibpath_overrides_runpath=yes
   14482       ;;
   14483     *,yes) # both, prefer svr4
   14484       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   14485       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   14486       # unpreferred sharedlib libNAME.a needs extra handling
   14487       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"'
   14488       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"'
   14489       # We do not specify a path in Import Files, so LIBPATH fires.
   14490       shlibpath_overrides_runpath=yes
   14491       ;;
   14492     *,no) # both, prefer aix
   14493       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   14494       library_names_spec='$libname$release.a $libname.a'
   14495       soname_spec='$libname$release$shared_ext$major'
   14496       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   14497       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)'
   14498       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"'
   14499       ;;
   14500     esac
   14501     shlibpath_var=LIBPATH
   14502   fi
   14503   ;;
   14504 
   14505 amigaos*)
   14506   case $host_cpu in
   14507   powerpc)
   14508     # Since July 2007 AmigaOS4 officially supports .so libraries.
   14509     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   14510     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   14511     ;;
   14512   m68k)
   14513     library_names_spec='$libname.ixlibrary $libname.a'
   14514     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   14515     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'
   14516     ;;
   14517   esac
   14518   ;;
   14519 
   14520 beos*)
   14521   library_names_spec='$libname$shared_ext'
   14522   dynamic_linker="$host_os ld.so"
   14523   shlibpath_var=LIBRARY_PATH
   14524   ;;
   14525 
   14526 bsdi[45]*)
   14527   version_type=linux # correct to gnu/linux during the next big refactor
   14528   need_version=no
   14529   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   14530   soname_spec='$libname$release$shared_ext$major'
   14531   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   14532   shlibpath_var=LD_LIBRARY_PATH
   14533   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   14534   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   14535   # the default ld.so.conf also contains /usr/contrib/lib and
   14536   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   14537   # libtool to hard-code these into programs
   14538   ;;
   14539 
   14540 cygwin* | mingw* | windows* | pw32* | cegcc*)
   14541   version_type=windows
   14542   shrext_cmds=.dll
   14543   need_version=no
   14544   need_lib_prefix=no
   14545 
   14546   case $GCC,$cc_basename in
   14547   yes,*)
   14548     # gcc
   14549     library_names_spec='$libname.dll.a'
   14550     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   14551     # If user builds GCC with multilib enabled,
   14552     # it should just install on $(libdir)
   14553     # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
   14554     if test xyes = x"$multilib"; then
   14555       postinstall_cmds='base_file=`basename \$file`~
   14556         dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   14557         dldir=$destdir/`dirname \$dlpath`~
   14558         $install_prog $dir/$dlname $destdir/$dlname~
   14559         chmod a+x $destdir/$dlname~
   14560         if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   14561           eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
   14562         fi'
   14563     else
   14564       postinstall_cmds='base_file=`basename \$file`~
   14565         dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   14566         dldir=$destdir/`dirname \$dlpath`~
   14567         test -d \$dldir || mkdir -p \$dldir~
   14568         $install_prog $dir/$dlname \$dldir/$dlname~
   14569         chmod a+x \$dldir/$dlname~
   14570         if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   14571           eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   14572         fi'
   14573     fi
   14574     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   14575       dlpath=$dir/\$dldll~
   14576        $RM \$dlpath'
   14577     shlibpath_overrides_runpath=yes
   14578 
   14579     case $host_os in
   14580     cygwin*)
   14581       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   14582       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   14583 
   14584       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   14585       ;;
   14586     mingw* | windows* | cegcc*)
   14587       # MinGW DLLs use traditional 'lib' prefix
   14588       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   14589       ;;
   14590     pw32*)
   14591       # pw32 DLLs use 'pw' prefix rather than 'lib'
   14592       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   14593       ;;
   14594     esac
   14595     dynamic_linker='Win32 ld.exe'
   14596     ;;
   14597 
   14598   *,cl* | *,icl*)
   14599     # Native MSVC or ICC
   14600     libname_spec='$name'
   14601     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   14602     library_names_spec='$libname.dll.lib'
   14603 
   14604     case $build_os in
   14605     mingw* | windows*)
   14606       sys_lib_search_path_spec=
   14607       lt_save_ifs=$IFS
   14608       IFS=';'
   14609       for lt_path in $LIB
   14610       do
   14611         IFS=$lt_save_ifs
   14612         # Let DOS variable expansion print the short 8.3 style file name.
   14613         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   14614         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   14615       done
   14616       IFS=$lt_save_ifs
   14617       # Convert to MSYS style.
   14618       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   14619       ;;
   14620     cygwin*)
   14621       # Convert to unix form, then to dos form, then back to unix form
   14622       # but this time dos style (no spaces!) so that the unix form looks
   14623       # like /cygdrive/c/PROGRA~1:/cygdr...
   14624       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   14625       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   14626       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   14627       ;;
   14628     *)
   14629       sys_lib_search_path_spec=$LIB
   14630       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   14631         # It is most probably a Windows format PATH.
   14632         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   14633       else
   14634         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   14635       fi
   14636       # FIXME: find the short name or the path components, as spaces are
   14637       # common. (e.g. "Program Files" -> "PROGRA~1")
   14638       ;;
   14639     esac
   14640 
   14641     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   14642     postinstall_cmds='base_file=`basename \$file`~
   14643       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   14644       dldir=$destdir/`dirname \$dlpath`~
   14645       test -d \$dldir || mkdir -p \$dldir~
   14646       $install_prog $dir/$dlname \$dldir/$dlname'
   14647     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   14648       dlpath=$dir/\$dldll~
   14649        $RM \$dlpath'
   14650     shlibpath_overrides_runpath=yes
   14651     dynamic_linker='Win32 link.exe'
   14652     ;;
   14653 
   14654   *)
   14655     # Assume MSVC and ICC wrapper
   14656     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   14657     dynamic_linker='Win32 ld.exe'
   14658     ;;
   14659   esac
   14660   # FIXME: first we should search . and the directory the executable is in
   14661   shlibpath_var=PATH
   14662   ;;
   14663 
   14664 darwin* | rhapsody*)
   14665   dynamic_linker="$host_os dyld"
   14666   version_type=darwin
   14667   need_lib_prefix=no
   14668   need_version=no
   14669   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   14670   soname_spec='$libname$release$major$shared_ext'
   14671   shlibpath_overrides_runpath=yes
   14672   shlibpath_var=DYLD_LIBRARY_PATH
   14673   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   14674 
   14675   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   14676   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   14677   ;;
   14678 
   14679 dgux*)
   14680   version_type=linux # correct to gnu/linux during the next big refactor
   14681   need_lib_prefix=no
   14682   need_version=no
   14683   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   14684   soname_spec='$libname$release$shared_ext$major'
   14685   shlibpath_var=LD_LIBRARY_PATH
   14686   ;;
   14687 
   14688 freebsd* | dragonfly* | midnightbsd*)
   14689   # DragonFly does not have aout.  When/if they implement a new
   14690   # versioning mechanism, adjust this.
   14691   if test -x /usr/bin/objformat; then
   14692     objformat=`/usr/bin/objformat`
   14693   else
   14694     case $host_os in
   14695     freebsd[23].*) objformat=aout ;;
   14696     *) objformat=elf ;;
   14697     esac
   14698   fi
   14699   version_type=freebsd-$objformat
   14700   case $version_type in
   14701     freebsd-elf*)
   14702       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   14703       soname_spec='$libname$release$shared_ext$major'
   14704       need_version=no
   14705       need_lib_prefix=no
   14706       ;;
   14707     freebsd-*)
   14708       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   14709       need_version=yes
   14710       ;;
   14711   esac
   14712   case $host_cpu in
   14713     powerpc64)
   14714       # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
   14715       # binaries.  See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
   14716       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14717 /* end confdefs.h.  */
   14718 int test_pointer_size[sizeof (void *) - 5];
   14719 
   14720 _ACEOF
   14721 if ac_fn_c_try_compile "$LINENO"
   14722 then :
   14723   shlibpath_var=LD_LIBRARY_PATH
   14724 else $as_nop
   14725   shlibpath_var=LD_32_LIBRARY_PATH
   14726 fi
   14727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14728       ;;
   14729     *)
   14730       shlibpath_var=LD_LIBRARY_PATH
   14731       ;;
   14732   esac
   14733   case $host_os in
   14734   freebsd2.*)
   14735     shlibpath_overrides_runpath=yes
   14736     ;;
   14737   freebsd3.[01]* | freebsdelf3.[01]*)
   14738     shlibpath_overrides_runpath=yes
   14739     hardcode_into_libs=yes
   14740     ;;
   14741   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   14742   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   14743     shlibpath_overrides_runpath=no
   14744     hardcode_into_libs=yes
   14745     ;;
   14746   *) # from 4.6 on, and DragonFly
   14747     shlibpath_overrides_runpath=yes
   14748     hardcode_into_libs=yes
   14749     ;;
   14750   esac
   14751   ;;
   14752 
   14753 haiku*)
   14754   version_type=linux # correct to gnu/linux during the next big refactor
   14755   need_lib_prefix=no
   14756   need_version=no
   14757   dynamic_linker="$host_os runtime_loader"
   14758   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   14759   soname_spec='$libname$release$shared_ext$major'
   14760   shlibpath_var=LIBRARY_PATH
   14761   shlibpath_overrides_runpath=no
   14762   sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
   14763   sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
   14764   hardcode_into_libs=no
   14765   ;;
   14766 
   14767 hpux9* | hpux10* | hpux11*)
   14768   # Give a soname corresponding to the major version so that dld.sl refuses to
   14769   # link against other versions.
   14770   version_type=sunos
   14771   need_lib_prefix=no
   14772   need_version=no
   14773   case $host_cpu in
   14774   ia64*)
   14775     shrext_cmds='.so'
   14776     hardcode_into_libs=yes
   14777     dynamic_linker="$host_os dld.so"
   14778     shlibpath_var=LD_LIBRARY_PATH
   14779     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   14780     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   14781     soname_spec='$libname$release$shared_ext$major'
   14782     if test 32 = "$HPUX_IA64_MODE"; then
   14783       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   14784       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   14785     else
   14786       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   14787       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   14788     fi
   14789     ;;
   14790   hppa*64*)
   14791     shrext_cmds='.sl'
   14792     hardcode_into_libs=yes
   14793     dynamic_linker="$host_os dld.sl"
   14794     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   14795     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   14796     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   14797     soname_spec='$libname$release$shared_ext$major'
   14798     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   14799     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   14800     ;;
   14801   *)
   14802     shrext_cmds='.sl'
   14803     dynamic_linker="$host_os dld.sl"
   14804     shlibpath_var=SHLIB_PATH
   14805     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   14806     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   14807     soname_spec='$libname$release$shared_ext$major'
   14808     ;;
   14809   esac
   14810   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   14811   postinstall_cmds='chmod 555 $lib'
   14812   # or fails outright, so override atomically:
   14813   install_override_mode=555
   14814   ;;
   14815 
   14816 interix[3-9]*)
   14817   version_type=linux # correct to gnu/linux during the next big refactor
   14818   need_lib_prefix=no
   14819   need_version=no
   14820   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   14821   soname_spec='$libname$release$shared_ext$major'
   14822   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   14823   shlibpath_var=LD_LIBRARY_PATH
   14824   shlibpath_overrides_runpath=no
   14825   hardcode_into_libs=yes
   14826   ;;
   14827 
   14828 irix5* | irix6* | nonstopux*)
   14829   case $host_os in
   14830     nonstopux*) version_type=nonstopux ;;
   14831     *)
   14832 	if test yes = "$lt_cv_prog_gnu_ld"; then
   14833 		version_type=linux # correct to gnu/linux during the next big refactor
   14834 	else
   14835 		version_type=irix
   14836 	fi ;;
   14837   esac
   14838   need_lib_prefix=no
   14839   need_version=no
   14840   soname_spec='$libname$release$shared_ext$major'
   14841   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   14842   case $host_os in
   14843   irix5* | nonstopux*)
   14844     libsuff= shlibsuff=
   14845     ;;
   14846   *)
   14847     case $LD in # libtool.m4 will add one of these switches to LD
   14848     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   14849       libsuff= shlibsuff= libmagic=32-bit;;
   14850     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   14851       libsuff=32 shlibsuff=N32 libmagic=N32;;
   14852     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   14853       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   14854     *) libsuff= shlibsuff= libmagic=never-match;;
   14855     esac
   14856     ;;
   14857   esac
   14858   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   14859   shlibpath_overrides_runpath=no
   14860   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   14861   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   14862   hardcode_into_libs=yes
   14863   ;;
   14864 
   14865 # No shared lib support for Linux oldld, aout, or coff.
   14866 linux*oldld* | linux*aout* | linux*coff*)
   14867   dynamic_linker=no
   14868   ;;
   14869 
   14870 linux*android*)
   14871   version_type=none # Android doesn't support versioned libraries.
   14872   need_lib_prefix=no
   14873   need_version=no
   14874   library_names_spec='$libname$release$shared_ext $libname$shared_ext'
   14875   soname_spec='$libname$release$shared_ext'
   14876   finish_cmds=
   14877   shlibpath_var=LD_LIBRARY_PATH
   14878   shlibpath_overrides_runpath=yes
   14879 
   14880   # This implies no fast_install, which is unacceptable.
   14881   # Some rework will be needed to allow for fast_install
   14882   # before this can be enabled.
   14883   hardcode_into_libs=yes
   14884 
   14885   dynamic_linker='Android linker'
   14886   # -rpath works at least for libraries that are not overridden by
   14887   # libraries installed in system locations.
   14888   hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   14889   ;;
   14890 
   14891 # This must be glibc/ELF.
   14892 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   14893   version_type=linux # correct to gnu/linux during the next big refactor
   14894   need_lib_prefix=no
   14895   need_version=no
   14896   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   14897   soname_spec='$libname$release$shared_ext$major'
   14898   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   14899   shlibpath_var=LD_LIBRARY_PATH
   14900   shlibpath_overrides_runpath=no
   14901 
   14902   # Some binutils ld are patched to set DT_RUNPATH
   14903   if test ${lt_cv_shlibpath_overrides_runpath+y}
   14904 then :
   14905   printf %s "(cached) " >&6
   14906 else $as_nop
   14907   lt_cv_shlibpath_overrides_runpath=no
   14908     save_LDFLAGS=$LDFLAGS
   14909     save_libdir=$libdir
   14910     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   14911 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   14912     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14913 /* end confdefs.h.  */
   14914 
   14915 int
   14916 main (void)
   14917 {
   14918 
   14919   ;
   14920   return 0;
   14921 }
   14922 _ACEOF
   14923 if ac_fn_c_try_link "$LINENO"
   14924 then :
   14925   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
   14926 then :
   14927   lt_cv_shlibpath_overrides_runpath=yes
   14928 fi
   14929 fi
   14930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   14931     conftest$ac_exeext conftest.$ac_ext
   14932     LDFLAGS=$save_LDFLAGS
   14933     libdir=$save_libdir
   14934 
   14935 fi
   14936 
   14937   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   14938 
   14939   # This implies no fast_install, which is unacceptable.
   14940   # Some rework will be needed to allow for fast_install
   14941   # before this can be enabled.
   14942   hardcode_into_libs=yes
   14943 
   14944   # Add ABI-specific directories to the system library path.
   14945   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
   14946 
   14947   # Ideally, we could use ldconfig to report *all* directories which are
   14948   # searched for libraries, however this is still not possible.  Aside from not
   14949   # being certain /sbin/ldconfig is available, command
   14950   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   14951   # even though it is searched at run-time.  Try to do the best guess by
   14952   # appending ld.so.conf contents (and includes) to the search path.
   14953   if test -f /etc/ld.so.conf; then
   14954     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' ' '`
   14955     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
   14956   fi
   14957 
   14958   # We used to test for /lib/ld.so.1 and disable shared libraries on
   14959   # powerpc, because MkLinux only supported shared libraries with the
   14960   # GNU dynamic linker.  Since this was broken with cross compilers,
   14961   # most powerpc-linux boxes support dynamic linking these days and
   14962   # people can always --disable-shared, the test was removed, and we
   14963   # assume the GNU/Linux dynamic linker is in use.
   14964   dynamic_linker='GNU/Linux ld.so'
   14965   ;;
   14966 
   14967 netbsdelf*-gnu)
   14968   version_type=linux
   14969   need_lib_prefix=no
   14970   need_version=no
   14971   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   14972   soname_spec='$libname$release$shared_ext$major'
   14973   shlibpath_var=LD_LIBRARY_PATH
   14974   shlibpath_overrides_runpath=no
   14975   hardcode_into_libs=yes
   14976   dynamic_linker='NetBSD ld.elf_so'
   14977   ;;
   14978 
   14979 netbsd*)
   14980   version_type=sunos
   14981   need_lib_prefix=no
   14982   need_version=no
   14983   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   14984     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   14985     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   14986     dynamic_linker='NetBSD (a.out) ld.so'
   14987   else
   14988     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   14989     soname_spec='$libname$release$shared_ext$major'
   14990     dynamic_linker='NetBSD ld.elf_so'
   14991   fi
   14992   shlibpath_var=LD_LIBRARY_PATH
   14993   shlibpath_overrides_runpath=yes
   14994   hardcode_into_libs=yes
   14995   ;;
   14996 
   14997 *-mlibc)
   14998   version_type=linux # correct to gnu/linux during the next big refactor
   14999   need_lib_prefix=no
   15000   need_version=no
   15001   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   15002   soname_spec='$libname$release$shared_ext$major'
   15003   dynamic_linker='mlibc ld.so'
   15004   shlibpath_var=LD_LIBRARY_PATH
   15005   shlibpath_overrides_runpath=no
   15006   hardcode_into_libs=yes
   15007   ;;
   15008 
   15009 newsos6)
   15010   version_type=linux # correct to gnu/linux during the next big refactor
   15011   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   15012   shlibpath_var=LD_LIBRARY_PATH
   15013   shlibpath_overrides_runpath=yes
   15014   ;;
   15015 
   15016 *nto* | *qnx*)
   15017   version_type=qnx
   15018   need_lib_prefix=no
   15019   need_version=no
   15020   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   15021   soname_spec='$libname$release$shared_ext$major'
   15022   shlibpath_var=LD_LIBRARY_PATH
   15023   shlibpath_overrides_runpath=no
   15024   hardcode_into_libs=yes
   15025   dynamic_linker='ldqnx.so'
   15026   ;;
   15027 
   15028 openbsd*)
   15029   version_type=sunos
   15030   sys_lib_dlsearch_path_spec=/usr/lib
   15031   need_lib_prefix=no
   15032   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   15033     need_version=no
   15034   else
   15035     need_version=yes
   15036   fi
   15037   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   15038   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   15039   shlibpath_var=LD_LIBRARY_PATH
   15040   shlibpath_overrides_runpath=yes
   15041   ;;
   15042 
   15043 os2*)
   15044   libname_spec='$name'
   15045   version_type=windows
   15046   shrext_cmds=.dll
   15047   need_version=no
   15048   need_lib_prefix=no
   15049   # OS/2 can only load a DLL with a base name of 8 characters or less.
   15050   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   15051     v=$($ECHO $release$versuffix | tr -d .-);
   15052     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   15053     $ECHO $n$v`$shared_ext'
   15054   library_names_spec='${libname}_dll.$libext'
   15055   dynamic_linker='OS/2 ld.exe'
   15056   shlibpath_var=BEGINLIBPATH
   15057   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   15058   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   15059   postinstall_cmds='base_file=`basename \$file`~
   15060     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   15061     dldir=$destdir/`dirname \$dlpath`~
   15062     test -d \$dldir || mkdir -p \$dldir~
   15063     $install_prog $dir/$dlname \$dldir/$dlname~
   15064     chmod a+x \$dldir/$dlname~
   15065     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   15066       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   15067     fi'
   15068   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   15069     dlpath=$dir/\$dldll~
   15070     $RM \$dlpath'
   15071   ;;
   15072 
   15073 osf3* | osf4* | osf5*)
   15074   version_type=osf
   15075   need_lib_prefix=no
   15076   need_version=no
   15077   soname_spec='$libname$release$shared_ext$major'
   15078   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   15079   shlibpath_var=LD_LIBRARY_PATH
   15080   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   15081   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   15082   ;;
   15083 
   15084 rdos*)
   15085   dynamic_linker=no
   15086   ;;
   15087 
   15088 serenity*)
   15089   version_type=linux # correct to gnu/linux during the next big refactor
   15090   need_lib_prefix=no
   15091   need_version=no
   15092   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   15093   soname_spec='$libname$release$shared_ext$major'
   15094   shlibpath_var=LD_LIBRARY_PATH
   15095   shlibpath_overrides_runpath=no
   15096   dynamic_linker='SerenityOS LibELF'
   15097   ;;
   15098 
   15099 solaris*)
   15100   version_type=linux # correct to gnu/linux during the next big refactor
   15101   need_lib_prefix=no
   15102   need_version=no
   15103   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   15104   soname_spec='$libname$release$shared_ext$major'
   15105   shlibpath_var=LD_LIBRARY_PATH
   15106   shlibpath_overrides_runpath=yes
   15107   hardcode_into_libs=yes
   15108   # ldd complains unless libraries are executable
   15109   postinstall_cmds='chmod +x $lib'
   15110   ;;
   15111 
   15112 sunos4*)
   15113   version_type=sunos
   15114   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   15115   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   15116   shlibpath_var=LD_LIBRARY_PATH
   15117   shlibpath_overrides_runpath=yes
   15118   if test yes = "$with_gnu_ld"; then
   15119     need_lib_prefix=no
   15120   fi
   15121   need_version=yes
   15122   ;;
   15123 
   15124 sysv4 | sysv4.3*)
   15125   version_type=linux # correct to gnu/linux during the next big refactor
   15126   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   15127   soname_spec='$libname$release$shared_ext$major'
   15128   shlibpath_var=LD_LIBRARY_PATH
   15129   case $host_vendor in
   15130     sni)
   15131       shlibpath_overrides_runpath=no
   15132       need_lib_prefix=no
   15133       runpath_var=LD_RUN_PATH
   15134       ;;
   15135     siemens)
   15136       need_lib_prefix=no
   15137       ;;
   15138     motorola)
   15139       need_lib_prefix=no
   15140       need_version=no
   15141       shlibpath_overrides_runpath=no
   15142       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   15143       ;;
   15144   esac
   15145   ;;
   15146 
   15147 sysv4*MP*)
   15148   if test -d /usr/nec; then
   15149     version_type=linux # correct to gnu/linux during the next big refactor
   15150     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   15151     soname_spec='$libname$shared_ext.$major'
   15152     shlibpath_var=LD_LIBRARY_PATH
   15153   fi
   15154   ;;
   15155 
   15156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   15157   version_type=sco
   15158   need_lib_prefix=no
   15159   need_version=no
   15160   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   15161   soname_spec='$libname$release$shared_ext$major'
   15162   shlibpath_var=LD_LIBRARY_PATH
   15163   shlibpath_overrides_runpath=yes
   15164   hardcode_into_libs=yes
   15165   if test yes = "$with_gnu_ld"; then
   15166     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   15167   else
   15168     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   15169     case $host_os in
   15170       sco3.2v5*)
   15171         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   15172 	;;
   15173     esac
   15174   fi
   15175   sys_lib_dlsearch_path_spec='/usr/lib'
   15176   ;;
   15177 
   15178 tpf*)
   15179   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   15180   version_type=linux # correct to gnu/linux during the next big refactor
   15181   need_lib_prefix=no
   15182   need_version=no
   15183   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   15184   shlibpath_var=LD_LIBRARY_PATH
   15185   shlibpath_overrides_runpath=no
   15186   hardcode_into_libs=yes
   15187   ;;
   15188 
   15189 uts4*)
   15190   version_type=linux # correct to gnu/linux during the next big refactor
   15191   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   15192   soname_spec='$libname$release$shared_ext$major'
   15193   shlibpath_var=LD_LIBRARY_PATH
   15194   ;;
   15195 
   15196 emscripten*)
   15197   version_type=none
   15198   need_lib_prefix=no
   15199   need_version=no
   15200   library_names_spec='$libname$release$shared_ext'
   15201   soname_spec='$libname$release$shared_ext'
   15202   finish_cmds=
   15203   dynamic_linker="Emscripten linker"
   15204   lt_prog_compiler_wl=
   15205 lt_prog_compiler_pic=
   15206 lt_prog_compiler_static=
   15207 
   15208 
   15209   if test yes = "$GCC"; then
   15210     lt_prog_compiler_wl='-Wl,'
   15211     lt_prog_compiler_static='-static'
   15212 
   15213     case $host_os in
   15214       aix*)
   15215       # All AIX code is PIC.
   15216       if test ia64 = "$host_cpu"; then
   15217 	# AIX 5 now supports IA64 processor
   15218 	lt_prog_compiler_static='-Bstatic'
   15219       fi
   15220       lt_prog_compiler_pic='-fPIC'
   15221       ;;
   15222 
   15223     amigaos*)
   15224       case $host_cpu in
   15225       powerpc)
   15226             # see comment about AmigaOS4 .so support
   15227             lt_prog_compiler_pic='-fPIC'
   15228         ;;
   15229       m68k)
   15230             # FIXME: we need at least 68020 code to build shared libraries, but
   15231             # adding the '-m68020' flag to GCC prevents building anything better,
   15232             # like '-m68040'.
   15233             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   15234         ;;
   15235       esac
   15236       ;;
   15237 
   15238     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   15239       # PIC is the default for these OSes.
   15240       ;;
   15241 
   15242     mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
   15243       # This hack is so that the source file can tell whether it is being
   15244       # built for inclusion in a dll (and should export symbols for example).
   15245       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   15246       # (--disable-auto-import) libraries
   15247       lt_prog_compiler_pic='-DDLL_EXPORT'
   15248       case $host_os in
   15249       os2*)
   15250 	lt_prog_compiler_static='$wl-static'
   15251 	;;
   15252       esac
   15253       ;;
   15254 
   15255     darwin* | rhapsody*)
   15256       # PIC is the default on this platform
   15257       # Common symbols not allowed in MH_DYLIB files
   15258       lt_prog_compiler_pic='-fno-common'
   15259       ;;
   15260 
   15261     haiku*)
   15262       # PIC is the default for Haiku.
   15263       # The "-static" flag exists, but is broken.
   15264       lt_prog_compiler_static=
   15265       ;;
   15266 
   15267     hpux*)
   15268       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   15269       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   15270       # sets the default TLS model and affects inlining.
   15271       case $host_cpu in
   15272       hppa*64*)
   15273 	# +Z the default
   15274 	;;
   15275       *)
   15276 	lt_prog_compiler_pic='-fPIC'
   15277 	;;
   15278       esac
   15279       ;;
   15280 
   15281     interix[3-9]*)
   15282       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   15283       # Instead, we relocate shared libraries at runtime.
   15284       ;;
   15285 
   15286     msdosdjgpp*)
   15287       # Just because we use GCC doesn't mean we suddenly get shared libraries
   15288       # on systems that don't support them.
   15289       lt_prog_compiler_can_build_shared=no
   15290       enable_shared=no
   15291       ;;
   15292 
   15293     *nto* | *qnx*)
   15294       # QNX uses GNU C++, but need to define -shared option too, otherwise
   15295       # it will coredump.
   15296       lt_prog_compiler_pic='-fPIC -shared'
   15297       ;;
   15298 
   15299     sysv4*MP*)
   15300       if test -d /usr/nec; then
   15301 	lt_prog_compiler_pic=-Kconform_pic
   15302       fi
   15303       ;;
   15304 
   15305     *)
   15306       lt_prog_compiler_pic='-fPIC'
   15307       ;;
   15308     esac
   15309 
   15310     case $cc_basename in
   15311     nvcc*) # Cuda Compiler Driver 2.2
   15312       lt_prog_compiler_wl='-Xlinker '
   15313       if test -n "$lt_prog_compiler_pic"; then
   15314         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   15315       fi
   15316       ;;
   15317     esac
   15318   else
   15319     # PORTME Check for flag to pass linker flags through the system compiler.
   15320     case $host_os in
   15321     aix*)
   15322       lt_prog_compiler_wl='-Wl,'
   15323       if test ia64 = "$host_cpu"; then
   15324 	# AIX 5 now supports IA64 processor
   15325 	lt_prog_compiler_static='-Bstatic'
   15326       else
   15327 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   15328       fi
   15329       ;;
   15330 
   15331     darwin* | rhapsody*)
   15332       # PIC is the default on this platform
   15333       # Common symbols not allowed in MH_DYLIB files
   15334       lt_prog_compiler_pic='-fno-common'
   15335       case $cc_basename in
   15336       nagfor*)
   15337         # NAG Fortran compiler
   15338         lt_prog_compiler_wl='-Wl,-Wl,,'
   15339         lt_prog_compiler_pic='-PIC'
   15340         lt_prog_compiler_static='-Bstatic'
   15341         ;;
   15342       esac
   15343       ;;
   15344 
   15345     mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
   15346       # This hack is so that the source file can tell whether it is being
   15347       # built for inclusion in a dll (and should export symbols for example).
   15348       lt_prog_compiler_pic='-DDLL_EXPORT'
   15349       case $host_os in
   15350       os2*)
   15351 	lt_prog_compiler_static='$wl-static'
   15352 	;;
   15353       esac
   15354       ;;
   15355 
   15356     hpux9* | hpux10* | hpux11*)
   15357       lt_prog_compiler_wl='-Wl,'
   15358       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   15359       # not for PA HP-UX.
   15360       case $host_cpu in
   15361       hppa*64*|ia64*)
   15362 	# +Z the default
   15363 	;;
   15364       *)
   15365 	lt_prog_compiler_pic='+Z'
   15366 	;;
   15367       esac
   15368       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   15369       lt_prog_compiler_static='$wl-a ${wl}archive'
   15370       ;;
   15371 
   15372     irix5* | irix6* | nonstopux*)
   15373       lt_prog_compiler_wl='-Wl,'
   15374       # PIC (with -KPIC) is the default.
   15375       lt_prog_compiler_static='-non_shared'
   15376       ;;
   15377 
   15378     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   15379       case $cc_basename in
   15380       # old Intel for x86_64, which still supported -KPIC.
   15381       ecc*)
   15382 	lt_prog_compiler_wl='-Wl,'
   15383 	lt_prog_compiler_pic='-KPIC'
   15384 	lt_prog_compiler_static='-static'
   15385         ;;
   15386       *flang* | ftn | f18* | f95*)
   15387         # Flang compiler.
   15388 	lt_prog_compiler_wl='-Wl,'
   15389 	lt_prog_compiler_pic='-fPIC'
   15390 	lt_prog_compiler_static='-static'
   15391         ;;
   15392       # icc used to be incompatible with GCC.
   15393       # ICC 10 doesn't accept -KPIC any more.
   15394       icc* | ifort*)
   15395 	lt_prog_compiler_wl='-Wl,'
   15396 	lt_prog_compiler_pic='-fPIC'
   15397 	lt_prog_compiler_static='-static'
   15398         ;;
   15399       # Lahey Fortran 8.1.
   15400       lf95*)
   15401 	lt_prog_compiler_wl='-Wl,'
   15402 	lt_prog_compiler_pic='--shared'
   15403 	lt_prog_compiler_static='--static'
   15404 	;;
   15405       nagfor*)
   15406 	# NAG Fortran compiler
   15407 	lt_prog_compiler_wl='-Wl,-Wl,,'
   15408 	lt_prog_compiler_pic='-PIC'
   15409 	lt_prog_compiler_static='-Bstatic'
   15410 	;;
   15411       tcc*)
   15412 	# Fabrice Bellard et al's Tiny C Compiler
   15413 	lt_prog_compiler_wl='-Wl,'
   15414 	lt_prog_compiler_pic='-fPIC'
   15415 	lt_prog_compiler_static='-static'
   15416 	;;
   15417       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   15418         # Portland Group compilers (*not* the Pentium gcc compiler,
   15419 	# which looks to be a dead project)
   15420 	lt_prog_compiler_wl='-Wl,'
   15421 	lt_prog_compiler_pic='-fpic'
   15422 	lt_prog_compiler_static='-Bstatic'
   15423         ;;
   15424       ccc*)
   15425         lt_prog_compiler_wl='-Wl,'
   15426         # All Alpha code is PIC.
   15427         lt_prog_compiler_static='-non_shared'
   15428         ;;
   15429       xl* | bgxl* | bgf* | mpixl*)
   15430 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   15431 	lt_prog_compiler_wl='-Wl,'
   15432 	lt_prog_compiler_pic='-qpic'
   15433 	lt_prog_compiler_static='-qstaticlink'
   15434 	;;
   15435       *)
   15436 	case `$CC -V 2>&1 | $SED 5q` in
   15437 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   15438 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   15439 	  lt_prog_compiler_pic='-KPIC'
   15440 	  lt_prog_compiler_static='-Bstatic'
   15441 	  lt_prog_compiler_wl=''
   15442 	  ;;
   15443 	*Sun\ F* | *Sun*Fortran*)
   15444 	  lt_prog_compiler_pic='-KPIC'
   15445 	  lt_prog_compiler_static='-Bstatic'
   15446 	  lt_prog_compiler_wl='-Qoption ld '
   15447 	  ;;
   15448 	*Sun\ C*)
   15449 	  # Sun C 5.9
   15450 	  lt_prog_compiler_pic='-KPIC'
   15451 	  lt_prog_compiler_static='-Bstatic'
   15452 	  lt_prog_compiler_wl='-Wl,'
   15453 	  ;;
   15454         *Intel*\ [CF]*Compiler*)
   15455 	  lt_prog_compiler_wl='-Wl,'
   15456 	  lt_prog_compiler_pic='-fPIC'
   15457 	  lt_prog_compiler_static='-static'
   15458 	  ;;
   15459 	*Portland\ Group*)
   15460 	  lt_prog_compiler_wl='-Wl,'
   15461 	  lt_prog_compiler_pic='-fpic'
   15462 	  lt_prog_compiler_static='-Bstatic'
   15463 	  ;;
   15464 	esac
   15465 	;;
   15466       esac
   15467       ;;
   15468 
   15469     newsos6)
   15470       lt_prog_compiler_pic='-KPIC'
   15471       lt_prog_compiler_static='-Bstatic'
   15472       ;;
   15473 
   15474     *-mlibc)
   15475       lt_prog_compiler_wl='-Wl,'
   15476       lt_prog_compiler_pic='-fPIC'
   15477       lt_prog_compiler_static='-static'
   15478       ;;
   15479 
   15480     *nto* | *qnx*)
   15481       # QNX uses GNU C++, but need to define -shared option too, otherwise
   15482       # it will coredump.
   15483       lt_prog_compiler_pic='-fPIC -shared'
   15484       ;;
   15485 
   15486     osf3* | osf4* | osf5*)
   15487       lt_prog_compiler_wl='-Wl,'
   15488       # All OSF/1 code is PIC.
   15489       lt_prog_compiler_static='-non_shared'
   15490       ;;
   15491 
   15492     rdos*)
   15493       lt_prog_compiler_static='-non_shared'
   15494       ;;
   15495 
   15496     serenity*)
   15497       ;;
   15498 
   15499     solaris*)
   15500       lt_prog_compiler_pic='-KPIC'
   15501       lt_prog_compiler_static='-Bstatic'
   15502       case $cc_basename in
   15503       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   15504 	lt_prog_compiler_wl='-Qoption ld ';;
   15505       *)
   15506 	lt_prog_compiler_wl='-Wl,';;
   15507       esac
   15508       ;;
   15509 
   15510     sunos4*)
   15511       lt_prog_compiler_wl='-Qoption ld '
   15512       lt_prog_compiler_pic='-PIC'
   15513       lt_prog_compiler_static='-Bstatic'
   15514       ;;
   15515 
   15516     sysv4 | sysv4.2uw2* | sysv4.3*)
   15517       lt_prog_compiler_wl='-Wl,'
   15518       lt_prog_compiler_pic='-KPIC'
   15519       lt_prog_compiler_static='-Bstatic'
   15520       ;;
   15521 
   15522     sysv4*MP*)
   15523       if test -d /usr/nec; then
   15524 	lt_prog_compiler_pic='-Kconform_pic'
   15525 	lt_prog_compiler_static='-Bstatic'
   15526       fi
   15527       ;;
   15528 
   15529     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   15530       lt_prog_compiler_wl='-Wl,'
   15531       lt_prog_compiler_pic='-KPIC'
   15532       lt_prog_compiler_static='-Bstatic'
   15533       ;;
   15534 
   15535     unicos*)
   15536       lt_prog_compiler_wl='-Wl,'
   15537       lt_prog_compiler_can_build_shared=no
   15538       ;;
   15539 
   15540     uts4*)
   15541       lt_prog_compiler_pic='-pic'
   15542       lt_prog_compiler_static='-Bstatic'
   15543       ;;
   15544 
   15545     *)
   15546       lt_prog_compiler_can_build_shared=no
   15547       ;;
   15548     esac
   15549   fi
   15550 
   15551 case $host_os in
   15552   # For platforms that do not support PIC, -DPIC is meaningless:
   15553   *djgpp*)
   15554     lt_prog_compiler_pic=
   15555     ;;
   15556   *)
   15557     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   15558     ;;
   15559 esac
   15560 
   15561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   15562 printf %s "checking for $compiler option to produce PIC... " >&6; }
   15563 if test ${lt_cv_prog_compiler_pic+y}
   15564 then :
   15565   printf %s "(cached) " >&6
   15566 else $as_nop
   15567   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   15568 fi
   15569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   15570 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
   15571 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   15572 
   15573 #
   15574 # Check to make sure the PIC flag actually works.
   15575 #
   15576 if test -n "$lt_prog_compiler_pic"; then
   15577   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   15578 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   15579 if test ${lt_cv_prog_compiler_pic_works+y}
   15580 then :
   15581   printf %s "(cached) " >&6
   15582 else $as_nop
   15583   lt_cv_prog_compiler_pic_works=no
   15584    ac_outfile=conftest.$ac_objext
   15585    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   15586    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   15587    # Insert the option either (1) after the last *FLAGS variable, or
   15588    # (2) before a word containing "conftest.", or (3) at the end.
   15589    # Note that $ac_compile itself does not contain backslashes and begins
   15590    # with a dollar sign (not a hyphen), so the echo should work correctly.
   15591    # The option is referenced via a variable to avoid confusing sed.
   15592    lt_compile=`echo "$ac_compile" | $SED \
   15593    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   15594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   15595    -e 's:$: $lt_compiler_flag:'`
   15596    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   15597    (eval "$lt_compile" 2>conftest.err)
   15598    ac_status=$?
   15599    cat conftest.err >&5
   15600    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15601    if (exit $ac_status) && test -s "$ac_outfile"; then
   15602      # The compiler can only warn and ignore the option if not recognized
   15603      # So say no if there are warnings other than the usual output.
   15604      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   15605      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   15606      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   15607        lt_cv_prog_compiler_pic_works=yes
   15608      fi
   15609    fi
   15610    $RM conftest*
   15611 
   15612 fi
   15613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   15614 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
   15615 
   15616 if test yes = "$lt_cv_prog_compiler_pic_works"; then
   15617     case $lt_prog_compiler_pic in
   15618      "" | " "*) ;;
   15619      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   15620      esac
   15621 else
   15622     lt_prog_compiler_pic=
   15623      lt_prog_compiler_can_build_shared=no
   15624 fi
   15625 
   15626 fi
   15627 
   15628 
   15629 
   15630 
   15631 
   15632 #
   15633 # Check to make sure the static flag actually works.
   15634 #
   15635 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   15636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   15637 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   15638 if test ${lt_cv_prog_compiler_static_works+y}
   15639 then :
   15640   printf %s "(cached) " >&6
   15641 else $as_nop
   15642   lt_cv_prog_compiler_static_works=no
   15643    save_LDFLAGS=$LDFLAGS
   15644    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   15645    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   15646    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   15647      # The linker can only warn and ignore the option if not recognized
   15648      # So say no if there are warnings
   15649      if test -s conftest.err; then
   15650        # Append any errors to the config.log.
   15651        cat conftest.err 1>&5
   15652        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   15653        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   15654        if diff conftest.exp conftest.er2 >/dev/null; then
   15655          lt_cv_prog_compiler_static_works=yes
   15656        fi
   15657      else
   15658        lt_cv_prog_compiler_static_works=yes
   15659      fi
   15660    fi
   15661    $RM -r conftest*
   15662    LDFLAGS=$save_LDFLAGS
   15663 
   15664 fi
   15665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   15666 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
   15667 
   15668 if test yes = "$lt_cv_prog_compiler_static_works"; then
   15669     :
   15670 else
   15671     lt_prog_compiler_static=
   15672 fi
   15673 
   15674 
   15675 
   15676 ='-fPIC'
   15677   archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
   15678   archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
   15679   archive_cmds_need_lc=no
   15680   no_undefined_flag=
   15681   ;;
   15682 
   15683 *)
   15684   dynamic_linker=no
   15685   ;;
   15686 esac
   15687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   15688 printf "%s\n" "$dynamic_linker" >&6; }
   15689 test no = "$dynamic_linker" && can_build_shared=no
   15690 
   15691 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   15692 if test yes = "$GCC"; then
   15693   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   15694 fi
   15695 
   15696 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   15697   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   15698 fi
   15699 
   15700 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   15701   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   15702 fi
   15703 
   15704 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   15705 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   15706 
   15707 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   15708 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   15709 
   15710 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   15711 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   15712 
   15713 
   15714 
   15715 
   15716 
   15717 
   15718 
   15719 
   15720 
   15721 
   15722 
   15723 
   15724 
   15725 
   15726 
   15727 
   15728 
   15729 
   15730 
   15731 
   15732 
   15733 
   15734 
   15735 
   15736 
   15737 
   15738 
   15739 
   15740 
   15741 
   15742 
   15743 
   15744 
   15745 
   15746 
   15747 
   15748 
   15749 
   15750 
   15751 
   15752 
   15753 
   15754 
   15755 
   15756 
   15757 
   15758 
   15759 
   15760 
   15761 
   15762 
   15763 
   15764 
   15765 
   15766 
   15767 
   15768 
   15769 
   15770 
   15771 
   15772 
   15773 
   15774 
   15775 
   15776 
   15777 
   15778 
   15779 
   15780 
   15781 
   15782 
   15783 
   15784 
   15785 
   15786 
   15787 
   15788 
   15789 
   15790 
   15791 
   15792 
   15793 
   15794 
   15795 
   15796 
   15797 
   15798 
   15799 
   15800 
   15801 
   15802 
   15803 
   15804 
   15805 
   15806 
   15807 
   15808 
   15809   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   15810 printf %s "checking how to hardcode library paths into programs... " >&6; }
   15811 hardcode_action=
   15812 if test -n "$hardcode_libdir_flag_spec" ||
   15813    test -n "$runpath_var" ||
   15814    test yes = "$hardcode_automatic"; then
   15815 
   15816   # We can hardcode non-existent directories.
   15817   if test no != "$hardcode_direct" &&
   15818      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   15819      # have to relink, otherwise we might link with an installed library
   15820      # when we should be linking with a yet-to-be-installed one
   15821      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   15822      test no != "$hardcode_minus_L"; then
   15823     # Linking always hardcodes the temporary library directory.
   15824     hardcode_action=relink
   15825   else
   15826     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   15827     hardcode_action=immediate
   15828   fi
   15829 else
   15830   # We cannot hardcode anything, or else we can only hardcode existing
   15831   # directories.
   15832   hardcode_action=unsupported
   15833 fi
   15834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   15835 printf "%s\n" "$hardcode_action" >&6; }
   15836 
   15837 if test relink = "$hardcode_action" ||
   15838    test yes = "$inherit_rpath"; then
   15839   # Fast installation is not supported
   15840   enable_fast_install=no
   15841 elif test yes = "$shlibpath_overrides_runpath" ||
   15842      test no = "$enable_shared"; then
   15843   # Fast installation is not necessary
   15844   enable_fast_install=needless
   15845 fi
   15846 
   15847 
   15848 
   15849 
   15850 
   15851 
   15852   if test yes != "$enable_dlopen"; then
   15853   enable_dlopen=unknown
   15854   enable_dlopen_self=unknown
   15855   enable_dlopen_self_static=unknown
   15856 else
   15857   lt_cv_dlopen=no
   15858   lt_cv_dlopen_libs=
   15859 
   15860   case $host_os in
   15861   beos*)
   15862     lt_cv_dlopen=load_add_on
   15863     lt_cv_dlopen_libs=
   15864     lt_cv_dlopen_self=yes
   15865     ;;
   15866 
   15867   mingw* | windows* | pw32* | cegcc*)
   15868     lt_cv_dlopen=LoadLibrary
   15869     lt_cv_dlopen_libs=
   15870     ;;
   15871 
   15872   cygwin*)
   15873     lt_cv_dlopen=dlopen
   15874     lt_cv_dlopen_libs=
   15875     ;;
   15876 
   15877   darwin*)
   15878     # if libdl is installed we need to link against it
   15879     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   15880 printf %s "checking for dlopen in -ldl... " >&6; }
   15881 if test ${ac_cv_lib_dl_dlopen+y}
   15882 then :
   15883   printf %s "(cached) " >&6
   15884 else $as_nop
   15885   ac_check_lib_save_LIBS=$LIBS
   15886 LIBS="-ldl  $LIBS"
   15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15888 /* end confdefs.h.  */
   15889 
   15890 /* Override any GCC internal prototype to avoid an error.
   15891    Use char because int might match the return type of a GCC
   15892    builtin and then its argument prototype would still apply.  */
   15893 char dlopen ();
   15894 int
   15895 main (void)
   15896 {
   15897 return dlopen ();
   15898   ;
   15899   return 0;
   15900 }
   15901 _ACEOF
   15902 if ac_fn_c_try_link "$LINENO"
   15903 then :
   15904   ac_cv_lib_dl_dlopen=yes
   15905 else $as_nop
   15906   ac_cv_lib_dl_dlopen=no
   15907 fi
   15908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   15909     conftest$ac_exeext conftest.$ac_ext
   15910 LIBS=$ac_check_lib_save_LIBS
   15911 fi
   15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   15913 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
   15914 if test "x$ac_cv_lib_dl_dlopen" = xyes
   15915 then :
   15916   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   15917 else $as_nop
   15918 
   15919     lt_cv_dlopen=dyld
   15920     lt_cv_dlopen_libs=
   15921     lt_cv_dlopen_self=yes
   15922 
   15923 fi
   15924 
   15925     ;;
   15926 
   15927   tpf*)
   15928     # Don't try to run any link tests for TPF.  We know it's impossible
   15929     # because TPF is a cross-compiler, and we know how we open DSOs.
   15930     lt_cv_dlopen=dlopen
   15931     lt_cv_dlopen_libs=
   15932     lt_cv_dlopen_self=no
   15933     ;;
   15934 
   15935   *)
   15936     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   15937 if test "x$ac_cv_func_shl_load" = xyes
   15938 then :
   15939   lt_cv_dlopen=shl_load
   15940 else $as_nop
   15941   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   15942 printf %s "checking for shl_load in -ldld... " >&6; }
   15943 if test ${ac_cv_lib_dld_shl_load+y}
   15944 then :
   15945   printf %s "(cached) " >&6
   15946 else $as_nop
   15947   ac_check_lib_save_LIBS=$LIBS
   15948 LIBS="-ldld  $LIBS"
   15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15950 /* end confdefs.h.  */
   15951 
   15952 /* Override any GCC internal prototype to avoid an error.
   15953    Use char because int might match the return type of a GCC
   15954    builtin and then its argument prototype would still apply.  */
   15955 char shl_load ();
   15956 int
   15957 main (void)
   15958 {
   15959 return shl_load ();
   15960   ;
   15961   return 0;
   15962 }
   15963 _ACEOF
   15964 if ac_fn_c_try_link "$LINENO"
   15965 then :
   15966   ac_cv_lib_dld_shl_load=yes
   15967 else $as_nop
   15968   ac_cv_lib_dld_shl_load=no
   15969 fi
   15970 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   15971     conftest$ac_exeext conftest.$ac_ext
   15972 LIBS=$ac_check_lib_save_LIBS
   15973 fi
   15974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   15975 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
   15976 if test "x$ac_cv_lib_dld_shl_load" = xyes
   15977 then :
   15978   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   15979 else $as_nop
   15980   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   15981 if test "x$ac_cv_func_dlopen" = xyes
   15982 then :
   15983   lt_cv_dlopen=dlopen
   15984 else $as_nop
   15985   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   15986 printf %s "checking for dlopen in -ldl... " >&6; }
   15987 if test ${ac_cv_lib_dl_dlopen+y}
   15988 then :
   15989   printf %s "(cached) " >&6
   15990 else $as_nop
   15991   ac_check_lib_save_LIBS=$LIBS
   15992 LIBS="-ldl  $LIBS"
   15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15994 /* end confdefs.h.  */
   15995 
   15996 /* Override any GCC internal prototype to avoid an error.
   15997    Use char because int might match the return type of a GCC
   15998    builtin and then its argument prototype would still apply.  */
   15999 char dlopen ();
   16000 int
   16001 main (void)
   16002 {
   16003 return dlopen ();
   16004   ;
   16005   return 0;
   16006 }
   16007 _ACEOF
   16008 if ac_fn_c_try_link "$LINENO"
   16009 then :
   16010   ac_cv_lib_dl_dlopen=yes
   16011 else $as_nop
   16012   ac_cv_lib_dl_dlopen=no
   16013 fi
   16014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16015     conftest$ac_exeext conftest.$ac_ext
   16016 LIBS=$ac_check_lib_save_LIBS
   16017 fi
   16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   16019 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
   16020 if test "x$ac_cv_lib_dl_dlopen" = xyes
   16021 then :
   16022   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   16023 else $as_nop
   16024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   16025 printf %s "checking for dlopen in -lsvld... " >&6; }
   16026 if test ${ac_cv_lib_svld_dlopen+y}
   16027 then :
   16028   printf %s "(cached) " >&6
   16029 else $as_nop
   16030   ac_check_lib_save_LIBS=$LIBS
   16031 LIBS="-lsvld  $LIBS"
   16032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16033 /* end confdefs.h.  */
   16034 
   16035 /* Override any GCC internal prototype to avoid an error.
   16036    Use char because int might match the return type of a GCC
   16037    builtin and then its argument prototype would still apply.  */
   16038 char dlopen ();
   16039 int
   16040 main (void)
   16041 {
   16042 return dlopen ();
   16043   ;
   16044   return 0;
   16045 }
   16046 _ACEOF
   16047 if ac_fn_c_try_link "$LINENO"
   16048 then :
   16049   ac_cv_lib_svld_dlopen=yes
   16050 else $as_nop
   16051   ac_cv_lib_svld_dlopen=no
   16052 fi
   16053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16054     conftest$ac_exeext conftest.$ac_ext
   16055 LIBS=$ac_check_lib_save_LIBS
   16056 fi
   16057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   16058 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
   16059 if test "x$ac_cv_lib_svld_dlopen" = xyes
   16060 then :
   16061   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   16062 else $as_nop
   16063   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   16064 printf %s "checking for dld_link in -ldld... " >&6; }
   16065 if test ${ac_cv_lib_dld_dld_link+y}
   16066 then :
   16067   printf %s "(cached) " >&6
   16068 else $as_nop
   16069   ac_check_lib_save_LIBS=$LIBS
   16070 LIBS="-ldld  $LIBS"
   16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16072 /* end confdefs.h.  */
   16073 
   16074 /* Override any GCC internal prototype to avoid an error.
   16075    Use char because int might match the return type of a GCC
   16076    builtin and then its argument prototype would still apply.  */
   16077 char dld_link ();
   16078 int
   16079 main (void)
   16080 {
   16081 return dld_link ();
   16082   ;
   16083   return 0;
   16084 }
   16085 _ACEOF
   16086 if ac_fn_c_try_link "$LINENO"
   16087 then :
   16088   ac_cv_lib_dld_dld_link=yes
   16089 else $as_nop
   16090   ac_cv_lib_dld_dld_link=no
   16091 fi
   16092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16093     conftest$ac_exeext conftest.$ac_ext
   16094 LIBS=$ac_check_lib_save_LIBS
   16095 fi
   16096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   16097 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
   16098 if test "x$ac_cv_lib_dld_dld_link" = xyes
   16099 then :
   16100   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   16101 fi
   16102 
   16103 
   16104 fi
   16105 
   16106 
   16107 fi
   16108 
   16109 
   16110 fi
   16111 
   16112 
   16113 fi
   16114 
   16115 
   16116 fi
   16117 
   16118     ;;
   16119   esac
   16120 
   16121   if test no = "$lt_cv_dlopen"; then
   16122     enable_dlopen=no
   16123   else
   16124     enable_dlopen=yes
   16125   fi
   16126 
   16127   case $lt_cv_dlopen in
   16128   dlopen)
   16129     save_CPPFLAGS=$CPPFLAGS
   16130     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   16131 
   16132     save_LDFLAGS=$LDFLAGS
   16133     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   16134 
   16135     save_LIBS=$LIBS
   16136     LIBS="$lt_cv_dlopen_libs $LIBS"
   16137 
   16138     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   16139 printf %s "checking whether a program can dlopen itself... " >&6; }
   16140 if test ${lt_cv_dlopen_self+y}
   16141 then :
   16142   printf %s "(cached) " >&6
   16143 else $as_nop
   16144   	  if test yes = "$cross_compiling"; then :
   16145   lt_cv_dlopen_self=cross
   16146 else
   16147   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   16148   lt_status=$lt_dlunknown
   16149   cat > conftest.$ac_ext <<_LT_EOF
   16150 #line $LINENO "configure"
   16151 #include "confdefs.h"
   16152 
   16153 #if HAVE_DLFCN_H
   16154 #include <dlfcn.h>
   16155 #endif
   16156 
   16157 #include <stdio.h>
   16158 
   16159 #ifdef RTLD_GLOBAL
   16160 #  define LT_DLGLOBAL		RTLD_GLOBAL
   16161 #else
   16162 #  ifdef DL_GLOBAL
   16163 #    define LT_DLGLOBAL		DL_GLOBAL
   16164 #  else
   16165 #    define LT_DLGLOBAL		0
   16166 #  endif
   16167 #endif
   16168 
   16169 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   16170    find out it does not work in some platform. */
   16171 #ifndef LT_DLLAZY_OR_NOW
   16172 #  ifdef RTLD_LAZY
   16173 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   16174 #  else
   16175 #    ifdef DL_LAZY
   16176 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   16177 #    else
   16178 #      ifdef RTLD_NOW
   16179 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   16180 #      else
   16181 #        ifdef DL_NOW
   16182 #          define LT_DLLAZY_OR_NOW	DL_NOW
   16183 #        else
   16184 #          define LT_DLLAZY_OR_NOW	0
   16185 #        endif
   16186 #      endif
   16187 #    endif
   16188 #  endif
   16189 #endif
   16190 
   16191 /* When -fvisibility=hidden is used, assume the code has been annotated
   16192    correspondingly for the symbols needed.  */
   16193 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   16194 int fnord (void) __attribute__((visibility("default")));
   16195 #endif
   16196 
   16197 int fnord (void) { return 42; }
   16198 int main (void)
   16199 {
   16200   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   16201   int status = $lt_dlunknown;
   16202 
   16203   if (self)
   16204     {
   16205       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   16206       else
   16207         {
   16208 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   16209           else puts (dlerror ());
   16210 	}
   16211       /* dlclose (self); */
   16212     }
   16213   else
   16214     puts (dlerror ());
   16215 
   16216   return status;
   16217 }
   16218 _LT_EOF
   16219   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   16220   (eval $ac_link) 2>&5
   16221   ac_status=$?
   16222   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16223   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   16224     (./conftest; exit; ) >&5 2>/dev/null
   16225     lt_status=$?
   16226     case x$lt_status in
   16227       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   16228       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   16229       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   16230     esac
   16231   else :
   16232     # compilation failed
   16233     lt_cv_dlopen_self=no
   16234   fi
   16235 fi
   16236 rm -fr conftest*
   16237 
   16238 
   16239 fi
   16240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   16241 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
   16242 
   16243     if test yes = "$lt_cv_dlopen_self"; then
   16244       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   16245       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   16246 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
   16247 if test ${lt_cv_dlopen_self_static+y}
   16248 then :
   16249   printf %s "(cached) " >&6
   16250 else $as_nop
   16251   	  if test yes = "$cross_compiling"; then :
   16252   lt_cv_dlopen_self_static=cross
   16253 else
   16254   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   16255   lt_status=$lt_dlunknown
   16256   cat > conftest.$ac_ext <<_LT_EOF
   16257 #line $LINENO "configure"
   16258 #include "confdefs.h"
   16259 
   16260 #if HAVE_DLFCN_H
   16261 #include <dlfcn.h>
   16262 #endif
   16263 
   16264 #include <stdio.h>
   16265 
   16266 #ifdef RTLD_GLOBAL
   16267 #  define LT_DLGLOBAL		RTLD_GLOBAL
   16268 #else
   16269 #  ifdef DL_GLOBAL
   16270 #    define LT_DLGLOBAL		DL_GLOBAL
   16271 #  else
   16272 #    define LT_DLGLOBAL		0
   16273 #  endif
   16274 #endif
   16275 
   16276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   16277    find out it does not work in some platform. */
   16278 #ifndef LT_DLLAZY_OR_NOW
   16279 #  ifdef RTLD_LAZY
   16280 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   16281 #  else
   16282 #    ifdef DL_LAZY
   16283 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   16284 #    else
   16285 #      ifdef RTLD_NOW
   16286 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   16287 #      else
   16288 #        ifdef DL_NOW
   16289 #          define LT_DLLAZY_OR_NOW	DL_NOW
   16290 #        else
   16291 #          define LT_DLLAZY_OR_NOW	0
   16292 #        endif
   16293 #      endif
   16294 #    endif
   16295 #  endif
   16296 #endif
   16297 
   16298 /* When -fvisibility=hidden is used, assume the code has been annotated
   16299    correspondingly for the symbols needed.  */
   16300 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   16301 int fnord (void) __attribute__((visibility("default")));
   16302 #endif
   16303 
   16304 int fnord (void) { return 42; }
   16305 int main (void)
   16306 {
   16307   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   16308   int status = $lt_dlunknown;
   16309 
   16310   if (self)
   16311     {
   16312       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   16313       else
   16314         {
   16315 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   16316           else puts (dlerror ());
   16317 	}
   16318       /* dlclose (self); */
   16319     }
   16320   else
   16321     puts (dlerror ());
   16322 
   16323   return status;
   16324 }
   16325 _LT_EOF
   16326   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   16327   (eval $ac_link) 2>&5
   16328   ac_status=$?
   16329   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16330   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   16331     (./conftest; exit; ) >&5 2>/dev/null
   16332     lt_status=$?
   16333     case x$lt_status in
   16334       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   16335       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   16336       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   16337     esac
   16338   else :
   16339     # compilation failed
   16340     lt_cv_dlopen_self_static=no
   16341   fi
   16342 fi
   16343 rm -fr conftest*
   16344 
   16345 
   16346 fi
   16347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   16348 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
   16349     fi
   16350 
   16351     CPPFLAGS=$save_CPPFLAGS
   16352     LDFLAGS=$save_LDFLAGS
   16353     LIBS=$save_LIBS
   16354     ;;
   16355   esac
   16356 
   16357   case $lt_cv_dlopen_self in
   16358   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   16359   *) enable_dlopen_self=unknown ;;
   16360   esac
   16361 
   16362   case $lt_cv_dlopen_self_static in
   16363   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   16364   *) enable_dlopen_self_static=unknown ;;
   16365   esac
   16366 fi
   16367 
   16368 
   16369 
   16370 
   16371 
   16372 
   16373 
   16374 
   16375 
   16376 
   16377 
   16378 
   16379 
   16380 
   16381 
   16382 
   16383 
   16384 striplib=
   16385 old_striplib=
   16386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   16387 printf %s "checking whether stripping libraries is possible... " >&6; }
   16388 if test -z "$STRIP"; then
   16389   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16390 printf "%s\n" "no" >&6; }
   16391 else
   16392   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   16393     old_striplib="$STRIP --strip-debug"
   16394     striplib="$STRIP --strip-unneeded"
   16395     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16396 printf "%s\n" "yes" >&6; }
   16397   else
   16398     case $host_os in
   16399     darwin*)
   16400       # FIXME - insert some real tests, host_os isn't really good enough
   16401       striplib="$STRIP -x"
   16402       old_striplib="$STRIP -S"
   16403       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16404 printf "%s\n" "yes" >&6; }
   16405       ;;
   16406     freebsd*)
   16407       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
   16408         old_striplib="$STRIP --strip-debug"
   16409         striplib="$STRIP --strip-unneeded"
   16410         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16411 printf "%s\n" "yes" >&6; }
   16412       else
   16413         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16414 printf "%s\n" "no" >&6; }
   16415       fi
   16416       ;;
   16417     *)
   16418       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16419 printf "%s\n" "no" >&6; }
   16420       ;;
   16421     esac
   16422   fi
   16423 fi
   16424 
   16425 
   16426 
   16427 
   16428 
   16429 
   16430 
   16431 
   16432 
   16433 
   16434 
   16435 
   16436   # Report what library types will actually be built
   16437   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   16438 printf %s "checking if libtool supports shared libraries... " >&6; }
   16439   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   16440 printf "%s\n" "$can_build_shared" >&6; }
   16441 
   16442   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   16443 printf %s "checking whether to build shared libraries... " >&6; }
   16444   test no = "$can_build_shared" && enable_shared=no
   16445 
   16446   # On AIX, shared libraries and static libraries use the same namespace, and
   16447   # are all built from PIC.
   16448   case $host_os in
   16449   aix3*)
   16450     test yes = "$enable_shared" && enable_static=no
   16451     if test -n "$RANLIB"; then
   16452       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   16453       postinstall_cmds='$RANLIB $lib'
   16454     fi
   16455     ;;
   16456 
   16457   aix[4-9]*)
   16458     if test ia64 != "$host_cpu"; then
   16459       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   16460       yes,aix,yes) ;;			# shared object as lib.so file only
   16461       yes,svr4,*) ;;			# shared object as lib.so archive member only
   16462       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   16463       esac
   16464     fi
   16465     ;;
   16466   esac
   16467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   16468 printf "%s\n" "$enable_shared" >&6; }
   16469 
   16470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   16471 printf %s "checking whether to build static libraries... " >&6; }
   16472   # Make sure either enable_shared or enable_static is yes.
   16473   test yes = "$enable_shared" || enable_static=yes
   16474   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   16475 printf "%s\n" "$enable_static" >&6; }
   16476 
   16477 
   16478 
   16479 
   16480 fi
   16481 ac_ext=c
   16482 ac_cpp='$CPP $CPPFLAGS'
   16483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16486 
   16487 CC=$lt_save_CC
   16488 
   16489 
   16490 
   16491 
   16492 
   16493 
   16494 
   16495 
   16496 
   16497 
   16498 
   16499 
   16500 
   16501 
   16502 
   16503         ac_config_commands="$ac_config_commands libtool"
   16504 
   16505 
   16506 
   16507 
   16508 # Only expand once:
   16509 
   16510 
   16511 
   16512 
   16513 # pkg-config is only needed for these options, do not require it otherwise
   16514 if test "$enable_systemd" = "yes" -o "$enable_dnstap" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then
   16515 
   16516 
   16517 
   16518 
   16519 
   16520 
   16521 
   16522 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   16523 	if test -n "$ac_tool_prefix"; then
   16524   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   16525 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   16526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16527 printf %s "checking for $ac_word... " >&6; }
   16528 if test ${ac_cv_path_PKG_CONFIG+y}
   16529 then :
   16530   printf %s "(cached) " >&6
   16531 else $as_nop
   16532   case $PKG_CONFIG in
   16533   [\\/]* | ?:[\\/]*)
   16534   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   16535   ;;
   16536   *)
   16537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16538 for as_dir in $PATH
   16539 do
   16540   IFS=$as_save_IFS
   16541   case $as_dir in #(((
   16542     '') as_dir=./ ;;
   16543     */) ;;
   16544     *) as_dir=$as_dir/ ;;
   16545   esac
   16546     for ac_exec_ext in '' $ac_executable_extensions; do
   16547   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   16548     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   16549     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   16550     break 2
   16551   fi
   16552 done
   16553   done
   16554 IFS=$as_save_IFS
   16555 
   16556   ;;
   16557 esac
   16558 fi
   16559 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   16560 if test -n "$PKG_CONFIG"; then
   16561   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   16562 printf "%s\n" "$PKG_CONFIG" >&6; }
   16563 else
   16564   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16565 printf "%s\n" "no" >&6; }
   16566 fi
   16567 
   16568 
   16569 fi
   16570 if test -z "$ac_cv_path_PKG_CONFIG"; then
   16571   ac_pt_PKG_CONFIG=$PKG_CONFIG
   16572   # Extract the first word of "pkg-config", so it can be a program name with args.
   16573 set dummy pkg-config; ac_word=$2
   16574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16575 printf %s "checking for $ac_word... " >&6; }
   16576 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
   16577 then :
   16578   printf %s "(cached) " >&6
   16579 else $as_nop
   16580   case $ac_pt_PKG_CONFIG in
   16581   [\\/]* | ?:[\\/]*)
   16582   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   16583   ;;
   16584   *)
   16585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16586 for as_dir in $PATH
   16587 do
   16588   IFS=$as_save_IFS
   16589   case $as_dir in #(((
   16590     '') as_dir=./ ;;
   16591     */) ;;
   16592     *) as_dir=$as_dir/ ;;
   16593   esac
   16594     for ac_exec_ext in '' $ac_executable_extensions; do
   16595   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   16596     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   16597     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   16598     break 2
   16599   fi
   16600 done
   16601   done
   16602 IFS=$as_save_IFS
   16603 
   16604   ;;
   16605 esac
   16606 fi
   16607 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   16608 if test -n "$ac_pt_PKG_CONFIG"; then
   16609   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   16610 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
   16611 else
   16612   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16613 printf "%s\n" "no" >&6; }
   16614 fi
   16615 
   16616   if test "x$ac_pt_PKG_CONFIG" = x; then
   16617     PKG_CONFIG=""
   16618   else
   16619     case $cross_compiling:$ac_tool_warned in
   16620 yes:)
   16621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   16622 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   16623 ac_tool_warned=yes ;;
   16624 esac
   16625     PKG_CONFIG=$ac_pt_PKG_CONFIG
   16626   fi
   16627 else
   16628   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   16629 fi
   16630 
   16631 fi
   16632 if test -n "$PKG_CONFIG"; then
   16633 	_pkg_min_version=0.9.0
   16634 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   16635 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   16636 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   16637 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16638 printf "%s\n" "yes" >&6; }
   16639 	else
   16640 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16641 printf "%s\n" "no" >&6; }
   16642 		PKG_CONFIG=""
   16643 	fi
   16644 fi
   16645 if test -z "$PKG_CONFIG"; then
   16646 	as_fn_error $? "pkg-config not found" "$LINENO" 5
   16647 fi
   16648 fi
   16649 
   16650 # Checks for header files.
   16651 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default
   16652 "
   16653 if test "x$ac_cv_header_stdarg_h" = xyes
   16654 then :
   16655   printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
   16656 
   16657 fi
   16658 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default
   16659 "
   16660 if test "x$ac_cv_header_stdbool_h" = xyes
   16661 then :
   16662   printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
   16663 
   16664 fi
   16665 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default
   16666 "
   16667 if test "x$ac_cv_header_netinet_in_h" = xyes
   16668 then :
   16669   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
   16670 
   16671 fi
   16672 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
   16673 "
   16674 if test "x$ac_cv_header_netinet_tcp_h" = xyes
   16675 then :
   16676   printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
   16677 
   16678 fi
   16679 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default
   16680 "
   16681 if test "x$ac_cv_header_sys_param_h" = xyes
   16682 then :
   16683   printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
   16684 
   16685 fi
   16686 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default
   16687 "
   16688 if test "x$ac_cv_header_sys_select_h" = xyes
   16689 then :
   16690   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
   16691 
   16692 fi
   16693 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
   16694 "
   16695 if test "x$ac_cv_header_sys_socket_h" = xyes
   16696 then :
   16697   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
   16698 
   16699 fi
   16700 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default
   16701 "
   16702 if test "x$ac_cv_header_sys_un_h" = xyes
   16703 then :
   16704   printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
   16705 
   16706 fi
   16707 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default
   16708 "
   16709 if test "x$ac_cv_header_sys_uio_h" = xyes
   16710 then :
   16711   printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
   16712 
   16713 fi
   16714 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default
   16715 "
   16716 if test "x$ac_cv_header_sys_resource_h" = xyes
   16717 then :
   16718   printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
   16719 
   16720 fi
   16721 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default
   16722 "
   16723 if test "x$ac_cv_header_arpa_inet_h" = xyes
   16724 then :
   16725   printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
   16726 
   16727 fi
   16728 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default
   16729 "
   16730 if test "x$ac_cv_header_syslog_h" = xyes
   16731 then :
   16732   printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
   16733 
   16734 fi
   16735 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default
   16736 "
   16737 if test "x$ac_cv_header_netdb_h" = xyes
   16738 then :
   16739   printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
   16740 
   16741 fi
   16742 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default
   16743 "
   16744 if test "x$ac_cv_header_sys_wait_h" = xyes
   16745 then :
   16746   printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
   16747 
   16748 fi
   16749 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default
   16750 "
   16751 if test "x$ac_cv_header_pwd_h" = xyes
   16752 then :
   16753   printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
   16754 
   16755 fi
   16756 ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default
   16757 "
   16758 if test "x$ac_cv_header_glob_h" = xyes
   16759 then :
   16760   printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h
   16761 
   16762 fi
   16763 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default
   16764 "
   16765 if test "x$ac_cv_header_grp_h" = xyes
   16766 then :
   16767   printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
   16768 
   16769 fi
   16770 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default
   16771 "
   16772 if test "x$ac_cv_header_login_cap_h" = xyes
   16773 then :
   16774   printf "%s\n" "#define HAVE_LOGIN_CAP_H 1" >>confdefs.h
   16775 
   16776 fi
   16777 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
   16778 "
   16779 if test "x$ac_cv_header_winsock2_h" = xyes
   16780 then :
   16781   printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
   16782 
   16783 fi
   16784 ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default
   16785 "
   16786 if test "x$ac_cv_header_ws2tcpip_h" = xyes
   16787 then :
   16788   printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
   16789 
   16790 fi
   16791 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default
   16792 "
   16793 if test "x$ac_cv_header_endian_h" = xyes
   16794 then :
   16795   printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
   16796 
   16797 fi
   16798 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default
   16799 "
   16800 if test "x$ac_cv_header_sys_endian_h" = xyes
   16801 then :
   16802   printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
   16803 
   16804 fi
   16805 ac_fn_c_check_header_compile "$LINENO" "libkern/OSByteOrder.h" "ac_cv_header_libkern_OSByteOrder_h" "$ac_includes_default
   16806 "
   16807 if test "x$ac_cv_header_libkern_OSByteOrder_h" = xyes
   16808 then :
   16809   printf "%s\n" "#define HAVE_LIBKERN_OSBYTEORDER_H 1" >>confdefs.h
   16810 
   16811 fi
   16812 ac_fn_c_check_header_compile "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default
   16813 "
   16814 if test "x$ac_cv_header_sys_ipc_h" = xyes
   16815 then :
   16816   printf "%s\n" "#define HAVE_SYS_IPC_H 1" >>confdefs.h
   16817 
   16818 fi
   16819 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default
   16820 "
   16821 if test "x$ac_cv_header_sys_shm_h" = xyes
   16822 then :
   16823   printf "%s\n" "#define HAVE_SYS_SHM_H 1" >>confdefs.h
   16824 
   16825 fi
   16826 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
   16827 "
   16828 if test "x$ac_cv_header_ifaddrs_h" = xyes
   16829 then :
   16830   printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
   16831 
   16832 fi
   16833 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default
   16834 "
   16835 if test "x$ac_cv_header_poll_h" = xyes
   16836 then :
   16837   printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
   16838 
   16839 fi
   16840 
   16841 # net/if.h portability for Darwin see:
   16842 # https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html
   16843 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
   16844 #include <stdio.h>
   16845 #ifdef STDC_HEADERS
   16846 # include <stdlib.h>
   16847 # include <stddef.h>
   16848 #else
   16849 # ifdef HAVE_STDLIB_H
   16850 #  include <stdlib.h>
   16851 # endif
   16852 #endif
   16853 #ifdef HAVE_SYS_SOCKET_H
   16854 # include <sys/socket.h>
   16855 #endif
   16856 
   16857 "
   16858 if test "x$ac_cv_header_net_if_h" = xyes
   16859 then :
   16860   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
   16861 
   16862 fi
   16863 
   16864 
   16865 # Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
   16866 ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default
   16867 "
   16868 if test "x$ac_cv_header_TargetConditionals_h" = xyes
   16869 then :
   16870   printf "%s\n" "#define HAVE_TARGETCONDITIONALS_H 1" >>confdefs.h
   16871 
   16872 fi
   16873 
   16874 ac_fn_c_check_header_compile "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" "$ac_includes_default
   16875 #if HAVE_SYS_PARAM_H
   16876 #include <sys/param.h>
   16877 #endif
   16878 
   16879 #ifdef HAVE_SYS_SOCKET_H
   16880 #include <sys/socket.h>
   16881 #endif
   16882 
   16883 #ifdef HAVE_SYS_UIO_H
   16884 #include <sys/uio.h>
   16885 #endif
   16886 
   16887 #ifdef HAVE_NETINET_IN_H
   16888 #include <netinet/in.h>
   16889 #endif
   16890 
   16891 #ifdef HAVE_NETINET_TCP_H
   16892 #include <netinet/tcp.h>
   16893 #endif
   16894 
   16895 #ifdef HAVE_ARPA_INET_H
   16896 #include <arpa/inet.h>
   16897 #endif
   16898 
   16899 #ifdef HAVE_WINSOCK2_H
   16900 #include <winsock2.h>
   16901 #endif
   16902 
   16903 #ifdef HAVE_WS2TCPIP_H
   16904 #include <ws2tcpip.h>
   16905 #endif
   16906 
   16907 "
   16908 if test "x$ac_cv_header_netioapi_h" = xyes
   16909 then :
   16910   printf "%s\n" "#define HAVE_NETIOAPI_H 1" >>confdefs.h
   16911 
   16912 fi
   16913 
   16914 
   16915 # Check for Linux timestamping headers
   16916 ac_fn_c_check_header_compile "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default
   16917 "
   16918 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes
   16919 then :
   16920   printf "%s\n" "#define HAVE_LINUX_NET_TSTAMP_H 1" >>confdefs.h
   16921 
   16922 fi
   16923 
   16924 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default
   16925 "
   16926 if test "x$ac_cv_header_stdatomic_h" = xyes
   16927 then :
   16928   printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
   16929 
   16930 fi
   16931 
   16932 
   16933 # check for types.
   16934 # Using own tests for int64* because autoconf builtin only give 32bit.
   16935 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
   16936 if test "x$ac_cv_type_int8_t" = xyes
   16937 then :
   16938 
   16939 else $as_nop
   16940 
   16941 printf "%s\n" "#define int8_t signed char" >>confdefs.h
   16942 
   16943 fi
   16944 
   16945 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
   16946 if test "x$ac_cv_type_int16_t" = xyes
   16947 then :
   16948 
   16949 else $as_nop
   16950 
   16951 printf "%s\n" "#define int16_t short" >>confdefs.h
   16952 
   16953 fi
   16954 
   16955 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
   16956 if test "x$ac_cv_type_int32_t" = xyes
   16957 then :
   16958 
   16959 else $as_nop
   16960 
   16961 printf "%s\n" "#define int32_t int" >>confdefs.h
   16962 
   16963 fi
   16964 
   16965 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
   16966 if test "x$ac_cv_type_int64_t" = xyes
   16967 then :
   16968 
   16969 else $as_nop
   16970 
   16971 printf "%s\n" "#define int64_t long long" >>confdefs.h
   16972 
   16973 fi
   16974 
   16975 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
   16976 if test "x$ac_cv_type_uint8_t" = xyes
   16977 then :
   16978 
   16979 else $as_nop
   16980 
   16981 printf "%s\n" "#define uint8_t unsigned char" >>confdefs.h
   16982 
   16983 fi
   16984 
   16985 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
   16986 if test "x$ac_cv_type_uint16_t" = xyes
   16987 then :
   16988 
   16989 else $as_nop
   16990 
   16991 printf "%s\n" "#define uint16_t unsigned short" >>confdefs.h
   16992 
   16993 fi
   16994 
   16995 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
   16996 if test "x$ac_cv_type_uint32_t" = xyes
   16997 then :
   16998 
   16999 else $as_nop
   17000 
   17001 printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h
   17002 
   17003 fi
   17004 
   17005 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
   17006 if test "x$ac_cv_type_uint64_t" = xyes
   17007 then :
   17008 
   17009 else $as_nop
   17010 
   17011 printf "%s\n" "#define uint64_t unsigned long long" >>confdefs.h
   17012 
   17013 fi
   17014 
   17015 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   17016 if test "x$ac_cv_type_size_t" = xyes
   17017 then :
   17018 
   17019 else $as_nop
   17020 
   17021 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
   17022 
   17023 fi
   17024 
   17025 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   17026 if test "x$ac_cv_type_ssize_t" = xyes
   17027 then :
   17028 
   17029 else $as_nop
   17030 
   17031 printf "%s\n" "#define ssize_t int" >>confdefs.h
   17032 
   17033 fi
   17034 
   17035 ac_ext=c
   17036 ac_cpp='$CPP $CPPFLAGS'
   17037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   17041 printf %s "checking how to run the C preprocessor... " >&6; }
   17042 # On Suns, sometimes $CPP names a directory.
   17043 if test -n "$CPP" && test -d "$CPP"; then
   17044   CPP=
   17045 fi
   17046 if test -z "$CPP"; then
   17047   if test ${ac_cv_prog_CPP+y}
   17048 then :
   17049   printf %s "(cached) " >&6
   17050 else $as_nop
   17051       # Double quotes because $CC needs to be expanded
   17052     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
   17053     do
   17054       ac_preproc_ok=false
   17055 for ac_c_preproc_warn_flag in '' yes
   17056 do
   17057   # Use a header file that comes with gcc, so configuring glibc
   17058   # with a fresh cross-compiler works.
   17059   # On the NeXT, cc -E runs the code through the compiler's parser,
   17060   # not just through cpp. "Syntax error" is here to catch this case.
   17061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17062 /* end confdefs.h.  */
   17063 #include <limits.h>
   17064 		     Syntax error
   17065 _ACEOF
   17066 if ac_fn_c_try_cpp "$LINENO"
   17067 then :
   17068 
   17069 else $as_nop
   17070   # Broken: fails on valid input.
   17071 continue
   17072 fi
   17073 rm -f conftest.err conftest.i conftest.$ac_ext
   17074 
   17075   # OK, works on sane cases.  Now check whether nonexistent headers
   17076   # can be detected and how.
   17077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17078 /* end confdefs.h.  */
   17079 #include <ac_nonexistent.h>
   17080 _ACEOF
   17081 if ac_fn_c_try_cpp "$LINENO"
   17082 then :
   17083   # Broken: success on invalid input.
   17084 continue
   17085 else $as_nop
   17086   # Passes both tests.
   17087 ac_preproc_ok=:
   17088 break
   17089 fi
   17090 rm -f conftest.err conftest.i conftest.$ac_ext
   17091 
   17092 done
   17093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   17094 rm -f conftest.i conftest.err conftest.$ac_ext
   17095 if $ac_preproc_ok
   17096 then :
   17097   break
   17098 fi
   17099 
   17100     done
   17101     ac_cv_prog_CPP=$CPP
   17102 
   17103 fi
   17104   CPP=$ac_cv_prog_CPP
   17105 else
   17106   ac_cv_prog_CPP=$CPP
   17107 fi
   17108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   17109 printf "%s\n" "$CPP" >&6; }
   17110 ac_preproc_ok=false
   17111 for ac_c_preproc_warn_flag in '' yes
   17112 do
   17113   # Use a header file that comes with gcc, so configuring glibc
   17114   # with a fresh cross-compiler works.
   17115   # On the NeXT, cc -E runs the code through the compiler's parser,
   17116   # not just through cpp. "Syntax error" is here to catch this case.
   17117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17118 /* end confdefs.h.  */
   17119 #include <limits.h>
   17120 		     Syntax error
   17121 _ACEOF
   17122 if ac_fn_c_try_cpp "$LINENO"
   17123 then :
   17124 
   17125 else $as_nop
   17126   # Broken: fails on valid input.
   17127 continue
   17128 fi
   17129 rm -f conftest.err conftest.i conftest.$ac_ext
   17130 
   17131   # OK, works on sane cases.  Now check whether nonexistent headers
   17132   # can be detected and how.
   17133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17134 /* end confdefs.h.  */
   17135 #include <ac_nonexistent.h>
   17136 _ACEOF
   17137 if ac_fn_c_try_cpp "$LINENO"
   17138 then :
   17139   # Broken: success on invalid input.
   17140 continue
   17141 else $as_nop
   17142   # Passes both tests.
   17143 ac_preproc_ok=:
   17144 break
   17145 fi
   17146 rm -f conftest.err conftest.i conftest.$ac_ext
   17147 
   17148 done
   17149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   17150 rm -f conftest.i conftest.err conftest.$ac_ext
   17151 if $ac_preproc_ok
   17152 then :
   17153 
   17154 else $as_nop
   17155   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17156 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   17157 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   17158 See \`config.log' for more details" "$LINENO" 5; }
   17159 fi
   17160 
   17161 ac_ext=c
   17162 ac_cpp='$CPP $CPPFLAGS'
   17163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17166 
   17167 
   17168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
   17169 printf %s "checking for uid_t in sys/types.h... " >&6; }
   17170 if test ${ac_cv_type_uid_t+y}
   17171 then :
   17172   printf %s "(cached) " >&6
   17173 else $as_nop
   17174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17175 /* end confdefs.h.  */
   17176 #include <sys/types.h>
   17177 
   17178 _ACEOF
   17179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   17180   $EGREP "uid_t" >/dev/null 2>&1
   17181 then :
   17182   ac_cv_type_uid_t=yes
   17183 else $as_nop
   17184   ac_cv_type_uid_t=no
   17185 fi
   17186 rm -rf conftest*
   17187 
   17188 fi
   17189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
   17190 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
   17191 if test $ac_cv_type_uid_t = no; then
   17192 
   17193 printf "%s\n" "#define uid_t int" >>confdefs.h
   17194 
   17195 
   17196 printf "%s\n" "#define gid_t int" >>confdefs.h
   17197 
   17198 fi
   17199 
   17200 
   17201   ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
   17202 "
   17203 if test "x$ac_cv_type_pid_t" = xyes
   17204 then :
   17205 
   17206 else $as_nop
   17207                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17208 /* end confdefs.h.  */
   17209 
   17210           #if defined _WIN64 && !defined __CYGWIN__
   17211           LLP64
   17212           #endif
   17213 
   17214 int
   17215 main (void)
   17216 {
   17217 
   17218   ;
   17219   return 0;
   17220 }
   17221 
   17222 _ACEOF
   17223 if ac_fn_c_try_compile "$LINENO"
   17224 then :
   17225   ac_pid_type='int'
   17226 else $as_nop
   17227   ac_pid_type='__int64'
   17228 fi
   17229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17230 
   17231 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
   17232 
   17233 
   17234 fi
   17235 
   17236 
   17237 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
   17238 if test "x$ac_cv_type_off_t" = xyes
   17239 then :
   17240 
   17241 else $as_nop
   17242 
   17243 printf "%s\n" "#define off_t long int" >>confdefs.h
   17244 
   17245 fi
   17246 
   17247 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
   17248 $ac_includes_default
   17249 #ifdef HAVE_WINSOCK2_H
   17250 #  include <winsock2.h>
   17251 #endif
   17252 
   17253 "
   17254 if test "x$ac_cv_type_u_char" = xyes
   17255 then :
   17256 
   17257 else $as_nop
   17258 
   17259 printf "%s\n" "#define u_char unsigned char" >>confdefs.h
   17260 
   17261 fi
   17262 
   17263 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
   17264 $ac_includes_default
   17265 #ifdef HAVE_SYS_RESOURCE_H
   17266 #  include <sys/resource.h>
   17267 #endif
   17268 
   17269 "
   17270 if test "x$ac_cv_type_rlim_t" = xyes
   17271 then :
   17272 
   17273 else $as_nop
   17274 
   17275 printf "%s\n" "#define rlim_t unsigned long" >>confdefs.h
   17276 
   17277 fi
   17278 
   17279 
   17280 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
   17281 $ac_includes_default
   17282 #ifdef HAVE_SYS_SOCKET_H
   17283 #  include <sys/socket.h>
   17284 #endif
   17285 #ifdef HAVE_WS2TCPIP_H
   17286 #  include <ws2tcpip.h>
   17287 #endif
   17288 
   17289 "
   17290 if test "x$ac_cv_type_socklen_t" = xyes
   17291 then :
   17292 
   17293 else $as_nop
   17294 
   17295 printf "%s\n" "#define socklen_t int" >>confdefs.h
   17296 
   17297 fi
   17298 
   17299  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
   17300 $ac_includes_default
   17301 #ifdef HAVE_SYS_TYPES_H
   17302 # include <sys/types.h>
   17303 #endif
   17304 #ifdef HAVE_NETINET_IN_H
   17305 # include <netinet/in.h>
   17306 #endif
   17307 
   17308 "
   17309 if test "x$ac_cv_type_in_addr_t" = xyes
   17310 then :
   17311 
   17312 else $as_nop
   17313 
   17314 printf "%s\n" "#define in_addr_t uint32_t" >>confdefs.h
   17315 
   17316 fi
   17317 
   17318  ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
   17319 $ac_includes_default
   17320 #ifdef HAVE_SYS_TYPES_H
   17321 # include <sys/types.h>
   17322 #endif
   17323 #ifdef HAVE_NETINET_IN_H
   17324 # include <netinet/in.h>
   17325 #endif
   17326 
   17327 "
   17328 if test "x$ac_cv_type_in_port_t" = xyes
   17329 then :
   17330 
   17331 else $as_nop
   17332 
   17333 printf "%s\n" "#define in_port_t uint16_t" >>confdefs.h
   17334 
   17335 fi
   17336 
   17337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
   17338 printf %s "checking if memcmp compares unsigned... " >&6; }
   17339 if test "$cross_compiling" = yes
   17340 then :
   17341    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
   17342 printf "%s\n" "cross-compile no" >&6; }
   17343 
   17344 printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
   17345 
   17346   case " $LIBOBJS " in
   17347   *" memcmp.$ac_objext "* ) ;;
   17348   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
   17349  ;;
   17350 esac
   17351 
   17352 
   17353 else $as_nop
   17354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17355 /* end confdefs.h.  */
   17356 
   17357 #include <stdio.h>
   17358 #include <stdlib.h>
   17359 #include <string.h>
   17360 int main(void)
   17361 {
   17362 	char a = 255, b = 0;
   17363 	if(memcmp(&a, &b, 1) < 0)
   17364 		return 1;
   17365 	return 0;
   17366 }
   17367 
   17368 _ACEOF
   17369 if ac_fn_c_try_run "$LINENO"
   17370 then :
   17371   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17372 printf "%s\n" "yes" >&6; }
   17373 else $as_nop
   17374    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17375 printf "%s\n" "no" >&6; }
   17376 
   17377 printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
   17378 
   17379   case " $LIBOBJS " in
   17380   *" memcmp.$ac_objext "* ) ;;
   17381   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
   17382  ;;
   17383 esac
   17384 
   17385 
   17386 fi
   17387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17388   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17389 fi
   17390 
   17391 
   17392 # The cast to long int works around a bug in the HP C Compiler
   17393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   17394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   17395 # This bug is HP SR number 8606223364.
   17396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
   17397 printf %s "checking size of time_t... " >&6; }
   17398 if test ${ac_cv_sizeof_time_t+y}
   17399 then :
   17400   printf %s "(cached) " >&6
   17401 else $as_nop
   17402   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
   17403 $ac_includes_default
   17404 #ifdef TIME_WITH_SYS_TIME
   17405 # include <sys/time.h>
   17406 # include <time.h>
   17407 #else
   17408 # ifdef HAVE_SYS_TIME_H
   17409 #  include <sys/time.h>
   17410 # else
   17411 #  include <time.h>
   17412 # endif
   17413 #endif
   17414 
   17415 "
   17416 then :
   17417 
   17418 else $as_nop
   17419   if test "$ac_cv_type_time_t" = yes; then
   17420      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17421 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   17422 as_fn_error 77 "cannot compute sizeof (time_t)
   17423 See \`config.log' for more details" "$LINENO" 5; }
   17424    else
   17425      ac_cv_sizeof_time_t=0
   17426    fi
   17427 fi
   17428 
   17429 fi
   17430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
   17431 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
   17432 
   17433 
   17434 
   17435 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
   17436 
   17437 
   17438 # The cast to long int works around a bug in the HP C Compiler
   17439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   17440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   17441 # This bug is HP SR number 8606223364.
   17442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
   17443 printf %s "checking size of size_t... " >&6; }
   17444 if test ${ac_cv_sizeof_size_t+y}
   17445 then :
   17446   printf %s "(cached) " >&6
   17447 else $as_nop
   17448   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"
   17449 then :
   17450 
   17451 else $as_nop
   17452   if test "$ac_cv_type_size_t" = yes; then
   17453      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17454 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   17455 as_fn_error 77 "cannot compute sizeof (size_t)
   17456 See \`config.log' for more details" "$LINENO" 5; }
   17457    else
   17458      ac_cv_sizeof_size_t=0
   17459    fi
   17460 fi
   17461 
   17462 fi
   17463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
   17464 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
   17465 
   17466 
   17467 
   17468 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
   17469 
   17470 
   17471 
   17472 # add option to disable the evil rpath
   17473 
   17474 # Check whether --enable-rpath was given.
   17475 if test ${enable_rpath+y}
   17476 then :
   17477   enableval=$enable_rpath; enable_rpath=$enableval
   17478 else $as_nop
   17479   enable_rpath=yes
   17480 fi
   17481 
   17482 if test "x$enable_rpath" = xno; then
   17483 		ac_config_commands="$ac_config_commands disable-rpath"
   17484 
   17485 fi
   17486 
   17487 
   17488 
   17489 # check to see if libraries are needed for these functions.
   17490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
   17491 printf %s "checking for library containing inet_pton... " >&6; }
   17492 if test ${ac_cv_search_inet_pton+y}
   17493 then :
   17494   printf %s "(cached) " >&6
   17495 else $as_nop
   17496   ac_func_search_save_LIBS=$LIBS
   17497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17498 /* end confdefs.h.  */
   17499 
   17500 /* Override any GCC internal prototype to avoid an error.
   17501    Use char because int might match the return type of a GCC
   17502    builtin and then its argument prototype would still apply.  */
   17503 char inet_pton ();
   17504 int
   17505 main (void)
   17506 {
   17507 return inet_pton ();
   17508   ;
   17509   return 0;
   17510 }
   17511 _ACEOF
   17512 for ac_lib in '' nsl
   17513 do
   17514   if test -z "$ac_lib"; then
   17515     ac_res="none required"
   17516   else
   17517     ac_res=-l$ac_lib
   17518     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17519   fi
   17520   if ac_fn_c_try_link "$LINENO"
   17521 then :
   17522   ac_cv_search_inet_pton=$ac_res
   17523 fi
   17524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17525     conftest$ac_exeext
   17526   if test ${ac_cv_search_inet_pton+y}
   17527 then :
   17528   break
   17529 fi
   17530 done
   17531 if test ${ac_cv_search_inet_pton+y}
   17532 then :
   17533 
   17534 else $as_nop
   17535   ac_cv_search_inet_pton=no
   17536 fi
   17537 rm conftest.$ac_ext
   17538 LIBS=$ac_func_search_save_LIBS
   17539 fi
   17540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
   17541 printf "%s\n" "$ac_cv_search_inet_pton" >&6; }
   17542 ac_res=$ac_cv_search_inet_pton
   17543 if test "$ac_res" != no
   17544 then :
   17545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17546 
   17547 fi
   17548 
   17549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
   17550 printf %s "checking for library containing socket... " >&6; }
   17551 if test ${ac_cv_search_socket+y}
   17552 then :
   17553   printf %s "(cached) " >&6
   17554 else $as_nop
   17555   ac_func_search_save_LIBS=$LIBS
   17556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17557 /* end confdefs.h.  */
   17558 
   17559 /* Override any GCC internal prototype to avoid an error.
   17560    Use char because int might match the return type of a GCC
   17561    builtin and then its argument prototype would still apply.  */
   17562 char socket ();
   17563 int
   17564 main (void)
   17565 {
   17566 return socket ();
   17567   ;
   17568   return 0;
   17569 }
   17570 _ACEOF
   17571 for ac_lib in '' socket
   17572 do
   17573   if test -z "$ac_lib"; then
   17574     ac_res="none required"
   17575   else
   17576     ac_res=-l$ac_lib
   17577     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17578   fi
   17579   if ac_fn_c_try_link "$LINENO"
   17580 then :
   17581   ac_cv_search_socket=$ac_res
   17582 fi
   17583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17584     conftest$ac_exeext
   17585   if test ${ac_cv_search_socket+y}
   17586 then :
   17587   break
   17588 fi
   17589 done
   17590 if test ${ac_cv_search_socket+y}
   17591 then :
   17592 
   17593 else $as_nop
   17594   ac_cv_search_socket=no
   17595 fi
   17596 rm conftest.$ac_ext
   17597 LIBS=$ac_func_search_save_LIBS
   17598 fi
   17599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
   17600 printf "%s\n" "$ac_cv_search_socket" >&6; }
   17601 ac_res=$ac_cv_search_socket
   17602 if test "$ac_res" != no
   17603 then :
   17604   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17605 
   17606 fi
   17607 
   17608 
   17609 # check whether strptime also works
   17610 
   17611 # check some functions of the OS before linking libs (while still runnable).
   17612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
   17613 printf %s "checking for working chown... " >&6; }
   17614 if test ${ac_cv_func_chown_works+y}
   17615 then :
   17616   printf %s "(cached) " >&6
   17617 else $as_nop
   17618   if test "$cross_compiling" = yes
   17619 then :
   17620   case "$host_os" in # ((
   17621 			  # Guess yes on glibc systems.
   17622 		  *-gnu*) ac_cv_func_chown_works=yes ;;
   17623 			  # If we don't know, assume the worst.
   17624 		  *)      ac_cv_func_chown_works=no ;;
   17625 		esac
   17626 else $as_nop
   17627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17628 /* end confdefs.h.  */
   17629 $ac_includes_default
   17630 #include <fcntl.h>
   17631 
   17632 int
   17633 main (void)
   17634 {
   17635   char *f = "conftest.chown";
   17636   struct stat before, after;
   17637 
   17638   if (creat (f, 0600) < 0)
   17639     return 1;
   17640   if (stat (f, &before) < 0)
   17641     return 1;
   17642   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
   17643     return 1;
   17644   if (stat (f, &after) < 0)
   17645     return 1;
   17646   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
   17647 
   17648   ;
   17649   return 0;
   17650 }
   17651 _ACEOF
   17652 if ac_fn_c_try_run "$LINENO"
   17653 then :
   17654   ac_cv_func_chown_works=yes
   17655 else $as_nop
   17656   ac_cv_func_chown_works=no
   17657 fi
   17658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17659   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17660 fi
   17661 
   17662 rm -f conftest.chown
   17663 
   17664 fi
   17665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
   17666 printf "%s\n" "$ac_cv_func_chown_works" >&6; }
   17667 if test $ac_cv_func_chown_works = yes; then
   17668 
   17669 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
   17670 
   17671 fi
   17672 
   17673 
   17674 ac_func=
   17675 for ac_item in $ac_func_c_list
   17676 do
   17677   if test $ac_func; then
   17678     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
   17679     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
   17680       echo "#define $ac_item 1" >> confdefs.h
   17681     fi
   17682     ac_func=
   17683   else
   17684     ac_func=$ac_item
   17685   fi
   17686 done
   17687 
   17688 
   17689 
   17690 if test "x$ac_cv_func_fork" = xyes; then
   17691   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
   17692 printf %s "checking for working fork... " >&6; }
   17693 if test ${ac_cv_func_fork_works+y}
   17694 then :
   17695   printf %s "(cached) " >&6
   17696 else $as_nop
   17697   if test "$cross_compiling" = yes
   17698 then :
   17699   ac_cv_func_fork_works=cross
   17700 else $as_nop
   17701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17702 /* end confdefs.h.  */
   17703 $ac_includes_default
   17704 int
   17705 main (void)
   17706 {
   17707 
   17708 	  /* By Ruediger Kuhlmann. */
   17709 	  return fork () < 0;
   17710 
   17711   ;
   17712   return 0;
   17713 }
   17714 _ACEOF
   17715 if ac_fn_c_try_run "$LINENO"
   17716 then :
   17717   ac_cv_func_fork_works=yes
   17718 else $as_nop
   17719   ac_cv_func_fork_works=no
   17720 fi
   17721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17722   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17723 fi
   17724 
   17725 fi
   17726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
   17727 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
   17728 
   17729 else
   17730   ac_cv_func_fork_works=$ac_cv_func_fork
   17731 fi
   17732 if test "x$ac_cv_func_fork_works" = xcross; then
   17733   case $host in
   17734     *-*-amigaos* | *-*-msdosdjgpp*)
   17735       # Override, as these systems have only a dummy fork() stub
   17736       ac_cv_func_fork_works=no
   17737       ;;
   17738     *)
   17739       ac_cv_func_fork_works=yes
   17740       ;;
   17741   esac
   17742   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   17743 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   17744 fi
   17745 ac_cv_func_vfork_works=$ac_cv_func_vfork
   17746 if test "x$ac_cv_func_vfork" = xyes; then
   17747   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
   17748 printf %s "checking for working vfork... " >&6; }
   17749 if test ${ac_cv_func_vfork_works+y}
   17750 then :
   17751   printf %s "(cached) " >&6
   17752 else $as_nop
   17753   if test "$cross_compiling" = yes
   17754 then :
   17755   ac_cv_func_vfork_works=cross
   17756 else $as_nop
   17757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17758 /* end confdefs.h.  */
   17759 /* Thanks to Paul Eggert for this test.  */
   17760 $ac_includes_default
   17761 #include <signal.h>
   17762 #include <sys/wait.h>
   17763 #ifdef HAVE_VFORK_H
   17764 # include <vfork.h>
   17765 #endif
   17766 
   17767 static void
   17768 do_nothing (int sig)
   17769 {
   17770   (void) sig;
   17771 }
   17772 
   17773 /* On some sparc systems, changes by the child to local and incoming
   17774    argument registers are propagated back to the parent.  The compiler
   17775    is told about this with #include <vfork.h>, but some compilers
   17776    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   17777    static variable whose address is put into a register that is
   17778    clobbered by the vfork.  */
   17779 static void
   17780 sparc_address_test (int arg)
   17781 {
   17782   static pid_t child;
   17783   if (!child) {
   17784     child = vfork ();
   17785     if (child < 0) {
   17786       perror ("vfork");
   17787       _exit(2);
   17788     }
   17789     if (!child) {
   17790       arg = getpid();
   17791       write(-1, "", 0);
   17792       _exit (arg);
   17793     }
   17794   }
   17795 }
   17796 
   17797 int
   17798 main (void)
   17799 {
   17800   pid_t parent = getpid ();
   17801   pid_t child;
   17802 
   17803   sparc_address_test (0);
   17804 
   17805   /* On Solaris 2.4, changes by the child to the signal handler
   17806      also munge signal handlers in the parent.  To detect this,
   17807      start by putting the parent's handler in a known state.  */
   17808   signal (SIGTERM, SIG_DFL);
   17809 
   17810   child = vfork ();
   17811 
   17812   if (child == 0) {
   17813     /* Here is another test for sparc vfork register problems.  This
   17814        test uses lots of local variables, at least as many local
   17815        variables as main has allocated so far including compiler
   17816        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   17817        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   17818        reuse the register of parent for one of the local variables,
   17819        since it will think that parent can't possibly be used any more
   17820        in this routine.  Assigning to the local variable will thus
   17821        munge parent in the parent process.  */
   17822     pid_t
   17823       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   17824       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   17825     /* Convince the compiler that p..p7 are live; otherwise, it might
   17826        use the same hardware register for all 8 local variables.  */
   17827     if (p != p1 || p != p2 || p != p3 || p != p4
   17828 	|| p != p5 || p != p6 || p != p7)
   17829       _exit(1);
   17830 
   17831     /* Alter the child's signal handler.  */
   17832     if (signal (SIGTERM, do_nothing) != SIG_DFL)
   17833       _exit(1);
   17834 
   17835     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   17836        from child file descriptors.  If the child closes a descriptor
   17837        before it execs or exits, this munges the parent's descriptor
   17838        as well.  Test for this by closing stdout in the child.  */
   17839     _exit(close(fileno(stdout)) != 0);
   17840   } else {
   17841     int status;
   17842     struct stat st;
   17843 
   17844     while (wait(&status) != child)
   17845       ;
   17846     return (
   17847 	 /* Was there some problem with vforking?  */
   17848 	 child < 0
   17849 
   17850 	 /* Did the child munge the parent's signal handler?  */
   17851 	 || signal (SIGTERM, SIG_DFL) != SIG_DFL
   17852 
   17853 	 /* Did the child fail?  (This shouldn't happen.)  */
   17854 	 || status
   17855 
   17856 	 /* Did the vfork/compiler bug occur?  */
   17857 	 || parent != getpid()
   17858 
   17859 	 /* Did the file descriptor bug occur?  */
   17860 	 || fstat(fileno(stdout), &st) != 0
   17861 	 );
   17862   }
   17863 }
   17864 _ACEOF
   17865 if ac_fn_c_try_run "$LINENO"
   17866 then :
   17867   ac_cv_func_vfork_works=yes
   17868 else $as_nop
   17869   ac_cv_func_vfork_works=no
   17870 fi
   17871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17872   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17873 fi
   17874 
   17875 fi
   17876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
   17877 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
   17878 
   17879 fi;
   17880 if test "x$ac_cv_func_fork_works" = xcross; then
   17881   ac_cv_func_vfork_works=$ac_cv_func_vfork
   17882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   17883 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   17884 fi
   17885 
   17886 if test "x$ac_cv_func_vfork_works" = xyes; then
   17887 
   17888 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
   17889 
   17890 else
   17891 
   17892 printf "%s\n" "#define vfork fork" >>confdefs.h
   17893 
   17894 fi
   17895 if test "x$ac_cv_func_fork_works" = xyes; then
   17896 
   17897 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
   17898 
   17899 fi
   17900 
   17901 
   17902 printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h
   17903 
   17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
   17905 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
   17906 if test ${ac_cv_sys_largefile_source+y}
   17907 then :
   17908   printf %s "(cached) " >&6
   17909 else $as_nop
   17910   while :; do
   17911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17912 /* end confdefs.h.  */
   17913 #include <sys/types.h> /* for off_t */
   17914      #include <stdio.h>
   17915 int
   17916 main (void)
   17917 {
   17918 int (*fp) (FILE *, off_t, int) = fseeko;
   17919      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   17920   ;
   17921   return 0;
   17922 }
   17923 _ACEOF
   17924 if ac_fn_c_try_link "$LINENO"
   17925 then :
   17926   ac_cv_sys_largefile_source=no; break
   17927 fi
   17928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17929     conftest$ac_exeext conftest.$ac_ext
   17930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17931 /* end confdefs.h.  */
   17932 #define _LARGEFILE_SOURCE 1
   17933 #include <sys/types.h> /* for off_t */
   17934      #include <stdio.h>
   17935 int
   17936 main (void)
   17937 {
   17938 int (*fp) (FILE *, off_t, int) = fseeko;
   17939      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   17940   ;
   17941   return 0;
   17942 }
   17943 _ACEOF
   17944 if ac_fn_c_try_link "$LINENO"
   17945 then :
   17946   ac_cv_sys_largefile_source=1; break
   17947 fi
   17948 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17949     conftest$ac_exeext conftest.$ac_ext
   17950   ac_cv_sys_largefile_source=unknown
   17951   break
   17952 done
   17953 fi
   17954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
   17955 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
   17956 case $ac_cv_sys_largefile_source in #(
   17957   no | unknown) ;;
   17958   *)
   17959 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
   17960 ;;
   17961 esac
   17962 rm -rf conftest*
   17963 
   17964 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
   17965 # in glibc 2.1.3, but that breaks too many other things.
   17966 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
   17967 if test $ac_cv_sys_largefile_source != unknown; then
   17968 
   17969 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
   17970 
   17971 fi
   17972 
   17973 
   17974 # Check whether --enable-largefile was given.
   17975 if test ${enable_largefile+y}
   17976 then :
   17977   enableval=$enable_largefile;
   17978 fi
   17979 
   17980 if test "$enable_largefile" != no; then
   17981 
   17982   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   17983 printf %s "checking for special C compiler options needed for large files... " >&6; }
   17984 if test ${ac_cv_sys_largefile_CC+y}
   17985 then :
   17986   printf %s "(cached) " >&6
   17987 else $as_nop
   17988   ac_cv_sys_largefile_CC=no
   17989      if test "$GCC" != yes; then
   17990        ac_save_CC=$CC
   17991        while :; do
   17992 	 # IRIX 6.2 and later do not support large files by default,
   17993 	 # so use the C compiler's -n32 option if that helps.
   17994 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17995 /* end confdefs.h.  */
   17996 #include <sys/types.h>
   17997  /* Check that off_t can represent 2**63 - 1 correctly.
   17998     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   17999     since some C++ compilers masquerading as C compilers
   18000     incorrectly reject 9223372036854775807.  */
   18001 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   18002   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   18003 		       && LARGE_OFF_T % 2147483647 == 1)
   18004 		      ? 1 : -1];
   18005 int
   18006 main (void)
   18007 {
   18008 
   18009   ;
   18010   return 0;
   18011 }
   18012 _ACEOF
   18013 	 if ac_fn_c_try_compile "$LINENO"
   18014 then :
   18015   break
   18016 fi
   18017 rm -f core conftest.err conftest.$ac_objext conftest.beam
   18018 	 CC="$CC -n32"
   18019 	 if ac_fn_c_try_compile "$LINENO"
   18020 then :
   18021   ac_cv_sys_largefile_CC=' -n32'; break
   18022 fi
   18023 rm -f core conftest.err conftest.$ac_objext conftest.beam
   18024 	 break
   18025        done
   18026        CC=$ac_save_CC
   18027        rm -f conftest.$ac_ext
   18028     fi
   18029 fi
   18030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   18031 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
   18032   if test "$ac_cv_sys_largefile_CC" != no; then
   18033     CC=$CC$ac_cv_sys_largefile_CC
   18034   fi
   18035 
   18036   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   18037 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   18038 if test ${ac_cv_sys_file_offset_bits+y}
   18039 then :
   18040   printf %s "(cached) " >&6
   18041 else $as_nop
   18042   while :; do
   18043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18044 /* end confdefs.h.  */
   18045 #include <sys/types.h>
   18046  /* Check that off_t can represent 2**63 - 1 correctly.
   18047     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   18048     since some C++ compilers masquerading as C compilers
   18049     incorrectly reject 9223372036854775807.  */
   18050 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   18051   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   18052 		       && LARGE_OFF_T % 2147483647 == 1)
   18053 		      ? 1 : -1];
   18054 int
   18055 main (void)
   18056 {
   18057 
   18058   ;
   18059   return 0;
   18060 }
   18061 _ACEOF
   18062 if ac_fn_c_try_compile "$LINENO"
   18063 then :
   18064   ac_cv_sys_file_offset_bits=no; break
   18065 fi
   18066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18068 /* end confdefs.h.  */
   18069 #define _FILE_OFFSET_BITS 64
   18070 #include <sys/types.h>
   18071  /* Check that off_t can represent 2**63 - 1 correctly.
   18072     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   18073     since some C++ compilers masquerading as C compilers
   18074     incorrectly reject 9223372036854775807.  */
   18075 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   18076   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   18077 		       && LARGE_OFF_T % 2147483647 == 1)
   18078 		      ? 1 : -1];
   18079 int
   18080 main (void)
   18081 {
   18082 
   18083   ;
   18084   return 0;
   18085 }
   18086 _ACEOF
   18087 if ac_fn_c_try_compile "$LINENO"
   18088 then :
   18089   ac_cv_sys_file_offset_bits=64; break
   18090 fi
   18091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18092   ac_cv_sys_file_offset_bits=unknown
   18093   break
   18094 done
   18095 fi
   18096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   18097 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
   18098 case $ac_cv_sys_file_offset_bits in #(
   18099   no | unknown) ;;
   18100   *)
   18101 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
   18102 ;;
   18103 esac
   18104 rm -rf conftest*
   18105   if test $ac_cv_sys_file_offset_bits = unknown; then
   18106     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   18107 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
   18108 if test ${ac_cv_sys_large_files+y}
   18109 then :
   18110   printf %s "(cached) " >&6
   18111 else $as_nop
   18112   while :; do
   18113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18114 /* end confdefs.h.  */
   18115 #include <sys/types.h>
   18116  /* Check that off_t can represent 2**63 - 1 correctly.
   18117     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   18118     since some C++ compilers masquerading as C compilers
   18119     incorrectly reject 9223372036854775807.  */
   18120 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   18121   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   18122 		       && LARGE_OFF_T % 2147483647 == 1)
   18123 		      ? 1 : -1];
   18124 int
   18125 main (void)
   18126 {
   18127 
   18128   ;
   18129   return 0;
   18130 }
   18131 _ACEOF
   18132 if ac_fn_c_try_compile "$LINENO"
   18133 then :
   18134   ac_cv_sys_large_files=no; break
   18135 fi
   18136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18138 /* end confdefs.h.  */
   18139 #define _LARGE_FILES 1
   18140 #include <sys/types.h>
   18141  /* Check that off_t can represent 2**63 - 1 correctly.
   18142     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   18143     since some C++ compilers masquerading as C compilers
   18144     incorrectly reject 9223372036854775807.  */
   18145 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   18146   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   18147 		       && LARGE_OFF_T % 2147483647 == 1)
   18148 		      ? 1 : -1];
   18149 int
   18150 main (void)
   18151 {
   18152 
   18153   ;
   18154   return 0;
   18155 }
   18156 _ACEOF
   18157 if ac_fn_c_try_compile "$LINENO"
   18158 then :
   18159   ac_cv_sys_large_files=1; break
   18160 fi
   18161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18162   ac_cv_sys_large_files=unknown
   18163   break
   18164 done
   18165 fi
   18166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   18167 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
   18168 case $ac_cv_sys_large_files in #(
   18169   no | unknown) ;;
   18170   *)
   18171 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
   18172 ;;
   18173 esac
   18174 rm -rf conftest*
   18175   fi
   18176 fi
   18177 
   18178 
   18179 
   18180 
   18181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
   18182 printf %s "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
   18183 cache=_D_LARGEFILE_SOURCE_1
   18184 if eval test \${cv_prog_cc_flag_needed_$cache+y}
   18185 then :
   18186   printf %s "(cached) " >&6
   18187 else $as_nop
   18188 
   18189 echo '
   18190 #include <stdio.h>
   18191 int test(void) {
   18192         int a = fseeko(stdin, 0, 0);
   18193         return a;
   18194 }
   18195 ' > conftest.c
   18196 echo 'void f(void){}' >>conftest.c
   18197 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   18198 eval "cv_prog_cc_flag_needed_$cache=no"
   18199 else
   18200 
   18201 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
   18202 eval "cv_prog_cc_flag_needed_$cache=yes"
   18203 else
   18204 eval "cv_prog_cc_flag_needed_$cache=fail"
   18205 #echo 'Test with flag fails too!'
   18206 #cat conftest.c
   18207 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
   18208 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
   18209 #exit 1
   18210 fi
   18211 
   18212 fi
   18213 rm -f conftest conftest.c conftest.o
   18214 
   18215 fi
   18216 
   18217 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   18218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18219 printf "%s\n" "yes" >&6; }
   18220 :
   18221 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
   18222 else
   18223 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   18224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18225 printf "%s\n" "no" >&6; }
   18226 #echo 'Test with flag is no!'
   18227 #cat conftest.c
   18228 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
   18229 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
   18230 #exit 1
   18231 :
   18232 
   18233 else
   18234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   18235 printf "%s\n" "failed" >&6; }
   18236 :
   18237 
   18238 fi
   18239 fi
   18240 
   18241 
   18242 
   18243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
   18244 printf %s "checking if nonblocking sockets work... " >&6; }
   18245 if echo $host | grep mingw >/dev/null; then
   18246 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
   18247 printf "%s\n" "no (windows)" >&6; }
   18248 
   18249 printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
   18250 
   18251 else
   18252 if test "$cross_compiling" = yes
   18253 then :
   18254 
   18255 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
   18256 printf "%s\n" "crosscompile(yes)" >&6; }
   18257 
   18258 else $as_nop
   18259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18260 /* end confdefs.h.  */
   18261 
   18262 
   18263 #include <stdio.h>
   18264 #include <string.h>
   18265 #include <stdlib.h>
   18266 #include <fcntl.h>
   18267 #include <errno.h>
   18268 #ifdef HAVE_SYS_TYPES_H
   18269 #include <sys/types.h>
   18270 #endif
   18271 #ifdef HAVE_SYS_SELECT_H
   18272 #include <sys/select.h>
   18273 #endif
   18274 #ifdef HAVE_SYS_SOCKET_H
   18275 #include <sys/socket.h>
   18276 #endif
   18277 #ifdef HAVE_NETINET_IN_H
   18278 #include <netinet/in.h>
   18279 #endif
   18280 #ifdef HAVE_ARPA_INET_H
   18281 #include <arpa/inet.h>
   18282 #endif
   18283 #ifdef HAVE_UNISTD_H
   18284 #include <unistd.h>
   18285 #endif
   18286 #ifdef HAVE_TIME_H
   18287 #include <time.h>
   18288 #endif
   18289 
   18290 int main(void)
   18291 {
   18292 	int port;
   18293 	int sfd, cfd;
   18294 	int num = 10;
   18295 	int i, p;
   18296 	struct sockaddr_in a;
   18297 	/* test if select and nonblocking reads work well together */
   18298 	/* open port.
   18299 	   fork child to send 10 messages.
   18300 	   select to read.
   18301 	   then try to nonblocking read the 10 messages
   18302 	   then, nonblocking read must give EAGAIN
   18303 	*/
   18304 
   18305 	port = 12345 + (time(0)%32);
   18306 	sfd = socket(PF_INET, SOCK_DGRAM, 0);
   18307 	if(sfd == -1) {
   18308 		perror("socket");
   18309 		return 1;
   18310 	}
   18311 	memset(&a, 0, sizeof(a));
   18312 	a.sin_family = AF_INET;
   18313 	a.sin_port = htons(port);
   18314 	a.sin_addr.s_addr = inet_addr("127.0.0.1");
   18315 	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
   18316 		perror("bind");
   18317 		return 1;
   18318 	}
   18319 	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
   18320 		perror("fcntl");
   18321 		return 1;
   18322 	}
   18323 
   18324 	cfd = socket(PF_INET, SOCK_DGRAM, 0);
   18325 	if(cfd == -1) {
   18326 		perror("client socket");
   18327 		return 1;
   18328 	}
   18329 	a.sin_port = 0;
   18330 	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
   18331 		perror("client bind");
   18332 		return 1;
   18333 	}
   18334 	a.sin_port = htons(port);
   18335 
   18336 	/* no handler, causes exit in 10 seconds */
   18337 	alarm(10);
   18338 
   18339 	/* send and receive on the socket */
   18340 	if((p=fork()) == 0) {
   18341 		for(i=0; i<num; i++) {
   18342 			if(sendto(cfd, &i, sizeof(i), 0,
   18343 				(struct sockaddr*)&a, sizeof(a)) < 0) {
   18344 				perror("sendto");
   18345 				return 1;
   18346 			}
   18347 		}
   18348 	} else {
   18349 		/* parent */
   18350 		fd_set rset;
   18351 		int x;
   18352 		if(p == -1) {
   18353 			perror("fork");
   18354 			return 1;
   18355 		}
   18356 		FD_ZERO(&rset);
   18357 		FD_SET(sfd, &rset);
   18358 		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
   18359 			perror("select");
   18360 			return 1;
   18361 		}
   18362 		i = 0;
   18363 		while(i < num) {
   18364 			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
   18365 				if(errno == EAGAIN)
   18366 					continue;
   18367 				perror("recv");
   18368 				return 1;
   18369 			}
   18370 			i++;
   18371 		}
   18372 		/* now we want to get EAGAIN: nonblocking goodness */
   18373 		errno = 0;
   18374 		recv(sfd, &x, sizeof(x), 0);
   18375 		if(errno != EAGAIN) {
   18376 			perror("trying to recv again");
   18377 			return 1;
   18378 		}
   18379 		/* EAGAIN encountered */
   18380 	}
   18381 
   18382 	close(sfd);
   18383 	close(cfd);
   18384 	return 0;
   18385 }
   18386 
   18387 _ACEOF
   18388 if ac_fn_c_try_run "$LINENO"
   18389 then :
   18390 
   18391 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18392 printf "%s\n" "yes" >&6; }
   18393 
   18394 else $as_nop
   18395 
   18396 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18397 printf "%s\n" "no" >&6; }
   18398 
   18399 printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
   18400 
   18401 
   18402 fi
   18403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18404   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18405 fi
   18406 
   18407 fi
   18408 
   18409 
   18410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
   18411 printf %s "checking whether mkdir has one arg... " >&6; }
   18412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18413 /* end confdefs.h.  */
   18414 
   18415 #include <stdio.h>
   18416 #include <unistd.h>
   18417 #ifdef HAVE_WINSOCK2_H
   18418 #include <winsock2.h>
   18419 #endif
   18420 #ifdef HAVE_SYS_STAT_H
   18421 #include <sys/stat.h>
   18422 #endif
   18423 
   18424 int
   18425 main (void)
   18426 {
   18427 
   18428 	(void)mkdir("directory");
   18429 
   18430   ;
   18431   return 0;
   18432 }
   18433 _ACEOF
   18434 if ac_fn_c_try_compile "$LINENO"
   18435 then :
   18436   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18437 printf "%s\n" "yes" >&6; }
   18438 
   18439 printf "%s\n" "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
   18440 
   18441 
   18442 else $as_nop
   18443   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18444 printf "%s\n" "no" >&6; }
   18445 
   18446 fi
   18447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18448 
   18449 
   18450   for ac_func in strptime
   18451 do :
   18452   ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
   18453 if test "x$ac_cv_func_strptime" = xyes
   18454 then :
   18455   printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
   18456 
   18457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
   18458 printf %s "checking whether strptime works... " >&6; }
   18459 if test c${cross_compiling} = cno; then
   18460 if test "$cross_compiling" = yes
   18461 then :
   18462   eval "ac_cv_c_strptime_works=maybe"
   18463 else $as_nop
   18464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18465 /* end confdefs.h.  */
   18466 
   18467 #define _XOPEN_SOURCE 600
   18468 #include <time.h>
   18469 int main(void) { struct tm tm; char *res;
   18470 res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
   18471 if (!res) return 2;
   18472 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
   18473 if (!res) return 1; return 0; }
   18474 
   18475 _ACEOF
   18476 if ac_fn_c_try_run "$LINENO"
   18477 then :
   18478   eval "ac_cv_c_strptime_works=yes"
   18479 else $as_nop
   18480   eval "ac_cv_c_strptime_works=no"
   18481 fi
   18482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18483   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18484 fi
   18485 
   18486 else
   18487 eval "ac_cv_c_strptime_works=maybe"
   18488 fi
   18489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
   18490 printf "%s\n" "$ac_cv_c_strptime_works" >&6; }
   18491 if test $ac_cv_c_strptime_works = no; then
   18492 case " $LIBOBJS " in
   18493   *" strptime.$ac_objext "* ) ;;
   18494   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
   18495  ;;
   18496 esac
   18497 
   18498 else
   18499 
   18500 printf "%s\n" "#define STRPTIME_WORKS 1" >>confdefs.h
   18501 
   18502 fi
   18503 
   18504 else $as_nop
   18505   case " $LIBOBJS " in
   18506   *" strptime.$ac_objext "* ) ;;
   18507   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
   18508  ;;
   18509 esac
   18510 
   18511 fi
   18512 
   18513 done
   18514 
   18515 # check if we can use SO_REUSEPORT
   18516 reuseport_default=0
   18517 if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi
   18518 if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi
   18519 if test "$reuseport_default" = 1; then
   18520 
   18521 printf "%s\n" "#define REUSEPORT_DEFAULT 1" >>confdefs.h
   18522 
   18523 else
   18524 
   18525 printf "%s\n" "#define REUSEPORT_DEFAULT 0" >>confdefs.h
   18526 
   18527 fi
   18528 
   18529 # Include systemd.m4 - begin
   18530 #   macros for configuring systemd
   18531 #   Copyright 2015, Sami Kerola, CloudFlare.
   18532 #   BSD licensed.
   18533 # Check whether --enable-systemd was given.
   18534 if test ${enable_systemd+y}
   18535 then :
   18536   enableval=$enable_systemd;
   18537 else $as_nop
   18538   enable_systemd=no
   18539 fi
   18540 
   18541 have_systemd=no
   18542 if test "x$enable_systemd" != xno
   18543 then :
   18544 
   18545     if test -n "$PKG_CONFIG"; then
   18546 		have_systemd=no
   18547 
   18548 pkg_failed=no
   18549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
   18550 printf %s "checking for libsystemd... " >&6; }
   18551 
   18552 if test -n "$SYSTEMD_CFLAGS"; then
   18553     pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
   18554  elif test -n "$PKG_CONFIG"; then
   18555     if test -n "$PKG_CONFIG" && \
   18556     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
   18557   ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
   18558   ac_status=$?
   18559   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18560   test $ac_status = 0; }; then
   18561   pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
   18562 		      test "x$?" != "x0" && pkg_failed=yes
   18563 else
   18564   pkg_failed=yes
   18565 fi
   18566  else
   18567     pkg_failed=untried
   18568 fi
   18569 if test -n "$SYSTEMD_LIBS"; then
   18570     pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
   18571  elif test -n "$PKG_CONFIG"; then
   18572     if test -n "$PKG_CONFIG" && \
   18573     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
   18574   ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
   18575   ac_status=$?
   18576   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18577   test $ac_status = 0; }; then
   18578   pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
   18579 		      test "x$?" != "x0" && pkg_failed=yes
   18580 else
   18581   pkg_failed=yes
   18582 fi
   18583  else
   18584     pkg_failed=untried
   18585 fi
   18586 
   18587 
   18588 
   18589 if test $pkg_failed = yes; then
   18590         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18591 printf "%s\n" "no" >&6; }
   18592 
   18593 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18594         _pkg_short_errors_supported=yes
   18595 else
   18596         _pkg_short_errors_supported=no
   18597 fi
   18598         if test $_pkg_short_errors_supported = yes; then
   18599                 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
   18600         else
   18601                 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
   18602         fi
   18603         # Put the nasty error message in config.log where it belongs
   18604         echo "$SYSTEMD_PKG_ERRORS" >&5
   18605 
   18606         as_fn_error $? "Package requirements (libsystemd) were not met:
   18607 
   18608 $SYSTEMD_PKG_ERRORS
   18609 
   18610 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   18611 installed software in a non-standard prefix.
   18612 
   18613 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
   18614 and SYSTEMD_LIBS to avoid the need to call pkg-config.
   18615 See the pkg-config man page for more details." "$LINENO" 5
   18616 elif test $pkg_failed = untried; then
   18617         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18618 printf "%s\n" "no" >&6; }
   18619         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18620 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   18621 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   18622 is in your PATH or set the PKG_CONFIG environment variable to the full
   18623 path to pkg-config.
   18624 
   18625 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
   18626 and SYSTEMD_LIBS to avoid the need to call pkg-config.
   18627 See the pkg-config man page for more details.
   18628 
   18629 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   18630 See \`config.log' for more details" "$LINENO" 5; }
   18631 else
   18632         SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
   18633         SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
   18634         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18635 printf "%s\n" "yes" >&6; }
   18636         have_systemd=yes
   18637 fi
   18638 		if test "x$have_systemd" != "xyes"
   18639 then :
   18640 
   18641 		have_systemd_daemon=no
   18642 
   18643 pkg_failed=no
   18644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5
   18645 printf %s "checking for libsystemd-daemon... " >&6; }
   18646 
   18647 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
   18648     pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
   18649  elif test -n "$PKG_CONFIG"; then
   18650     if test -n "$PKG_CONFIG" && \
   18651     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
   18652   ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
   18653   ac_status=$?
   18654   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18655   test $ac_status = 0; }; then
   18656   pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
   18657 		      test "x$?" != "x0" && pkg_failed=yes
   18658 else
   18659   pkg_failed=yes
   18660 fi
   18661  else
   18662     pkg_failed=untried
   18663 fi
   18664 if test -n "$SYSTEMD_DAEMON_LIBS"; then
   18665     pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
   18666  elif test -n "$PKG_CONFIG"; then
   18667     if test -n "$PKG_CONFIG" && \
   18668     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
   18669   ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
   18670   ac_status=$?
   18671   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18672   test $ac_status = 0; }; then
   18673   pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
   18674 		      test "x$?" != "x0" && pkg_failed=yes
   18675 else
   18676   pkg_failed=yes
   18677 fi
   18678  else
   18679     pkg_failed=untried
   18680 fi
   18681 
   18682 
   18683 
   18684 if test $pkg_failed = yes; then
   18685         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18686 printf "%s\n" "no" >&6; }
   18687 
   18688 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18689         _pkg_short_errors_supported=yes
   18690 else
   18691         _pkg_short_errors_supported=no
   18692 fi
   18693         if test $_pkg_short_errors_supported = yes; then
   18694                 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
   18695         else
   18696                 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
   18697         fi
   18698         # Put the nasty error message in config.log where it belongs
   18699         echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
   18700 
   18701         as_fn_error $? "Package requirements (libsystemd-daemon) were not met:
   18702 
   18703 $SYSTEMD_DAEMON_PKG_ERRORS
   18704 
   18705 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   18706 installed software in a non-standard prefix.
   18707 
   18708 Alternatively, you may set the environment variables SYSTEMD_DAEMON_CFLAGS
   18709 and SYSTEMD_DAEMON_LIBS to avoid the need to call pkg-config.
   18710 See the pkg-config man page for more details." "$LINENO" 5
   18711 elif test $pkg_failed = untried; then
   18712         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18713 printf "%s\n" "no" >&6; }
   18714         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18715 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   18716 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   18717 is in your PATH or set the PKG_CONFIG environment variable to the full
   18718 path to pkg-config.
   18719 
   18720 Alternatively, you may set the environment variables SYSTEMD_DAEMON_CFLAGS
   18721 and SYSTEMD_DAEMON_LIBS to avoid the need to call pkg-config.
   18722 See the pkg-config man page for more details.
   18723 
   18724 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   18725 See \`config.log' for more details" "$LINENO" 5; }
   18726 else
   18727         SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
   18728         SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
   18729         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18730 printf "%s\n" "yes" >&6; }
   18731         have_systemd_daemon=yes
   18732 fi
   18733 		if test "x$have_systemd_daemon" = "xyes"
   18734 then :
   18735   have_systemd=yes
   18736 fi
   18737 
   18738 fi
   18739 	case $enable_systemd:$have_systemd in #(
   18740   yes:no) :
   18741     as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
   18742   *:yes) :
   18743 
   18744 printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h
   18745 
   18746 		LIBS="$LIBS $SYSTEMD_LIBS"
   18747 
   18748 	 ;; #(
   18749   *) :
   18750      ;;
   18751 esac
   18752     else
   18753     	as_fn_error $? "systemd enabled but need pkg-config to configure for it" "$LINENO" 5
   18754     fi
   18755 
   18756 fi
   18757  if test "x$have_systemd" = xyes; then
   18758   USE_SYSTEMD_TRUE=
   18759   USE_SYSTEMD_FALSE='#'
   18760 else
   18761   USE_SYSTEMD_TRUE='#'
   18762   USE_SYSTEMD_FALSE=
   18763 fi
   18764 
   18765 
   18766 # Include systemd.m4 - end
   18767 
   18768 # set memory allocation checking if requested
   18769 # Check whether --enable-alloc-checks was given.
   18770 if test ${enable_alloc_checks+y}
   18771 then :
   18772   enableval=$enable_alloc_checks;
   18773 fi
   18774 
   18775 # Check whether --enable-alloc-lite was given.
   18776 if test ${enable_alloc_lite+y}
   18777 then :
   18778   enableval=$enable_alloc_lite;
   18779 fi
   18780 
   18781 # Check whether --enable-alloc-nonregional was given.
   18782 if test ${enable_alloc_nonregional+y}
   18783 then :
   18784   enableval=$enable_alloc_nonregional;
   18785 fi
   18786 
   18787 if test x_$enable_alloc_nonregional = x_yes; then
   18788 
   18789 printf "%s\n" "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
   18790 
   18791 fi
   18792 if test x_$enable_alloc_checks = x_yes
   18793 then :
   18794 
   18795 
   18796 printf "%s\n" "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
   18797 
   18798 	SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
   18799 
   18800 	ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
   18801 
   18802 
   18803 else $as_nop
   18804 
   18805 	if test x_$enable_alloc_lite = x_yes
   18806 then :
   18807 
   18808 
   18809 printf "%s\n" "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
   18810 
   18811 
   18812 else $as_nop
   18813 
   18814 
   18815 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
   18816 printf %s "checking for GNU libc compatible malloc... " >&6; }
   18817 if test ${ac_cv_func_malloc_0_nonnull+y}
   18818 then :
   18819   printf %s "(cached) " >&6
   18820 else $as_nop
   18821 
   18822 		if test "$cross_compiling" = yes
   18823 then :
   18824   ac_cv_func_malloc_0_nonnull="no (crosscompile)"
   18825 else $as_nop
   18826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18827 /* end confdefs.h.  */
   18828 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
   18829 #include <stdlib.h>
   18830 #else
   18831 char *malloc ();
   18832 #endif
   18833 
   18834 int
   18835 main (void)
   18836 {
   18837  if(malloc(0) != 0) return 1;
   18838   ;
   18839   return 0;
   18840 }
   18841 
   18842 _ACEOF
   18843 if ac_fn_c_try_run "$LINENO"
   18844 then :
   18845   ac_cv_func_malloc_0_nonnull=no
   18846 else $as_nop
   18847   ac_cv_func_malloc_0_nonnull=yes
   18848 fi
   18849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18850   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18851 fi
   18852 
   18853 
   18854 fi
   18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
   18856 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
   18857 	if test "$ac_cv_func_malloc_0_nonnull" = yes
   18858 then :
   18859 
   18860 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
   18861 
   18862 else $as_nop
   18863 
   18864 		case " $LIBOBJS " in
   18865   *" malloc.$ac_objext "* ) ;;
   18866   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
   18867  ;;
   18868 esac
   18869 
   18870 
   18871 printf "%s\n" "#define malloc rpl_malloc_unbound" >>confdefs.h
   18872 
   18873 
   18874 fi
   18875 
   18876 
   18877 fi
   18878 
   18879 fi
   18880 
   18881 # check windows threads (we use them, not pthreads, on windows).
   18882 if test "$on_mingw" = "yes"; then
   18883 # check windows threads
   18884 	ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
   18885 "
   18886 if test "x$ac_cv_header_windows_h" = xyes
   18887 then :
   18888   printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
   18889 
   18890 fi
   18891 
   18892 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
   18893 printf %s "checking for CreateThread... " >&6; }
   18894 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18895 /* end confdefs.h.  */
   18896 
   18897 #ifdef HAVE_WINDOWS_H
   18898 #include <windows.h>
   18899 #endif
   18900 
   18901 int
   18902 main (void)
   18903 {
   18904 
   18905 	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
   18906 
   18907   ;
   18908   return 0;
   18909 }
   18910 _ACEOF
   18911 if ac_fn_c_try_compile "$LINENO"
   18912 then :
   18913   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18914 printf "%s\n" "yes" >&6; }
   18915 
   18916 printf "%s\n" "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
   18917 
   18918 
   18919 else $as_nop
   18920   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18921 printf "%s\n" "no" >&6; }
   18922 
   18923 fi
   18924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18925 
   18926 else
   18927 # not on mingw, check thread libraries.
   18928 
   18929 # check for thread library.
   18930 # check this first, so that the pthread lib does not get linked in via
   18931 # libssl or libpython, and thus distorts the tests, and we end up using
   18932 # the non-threadsafe C libraries.
   18933 
   18934 # Check whether --with-pthreads was given.
   18935 if test ${with_pthreads+y}
   18936 then :
   18937   withval=$with_pthreads;
   18938 else $as_nop
   18939    withval="yes"
   18940 fi
   18941 
   18942 ub_have_pthreads=no
   18943 if test x_$withval != x_no; then
   18944 
   18945 
   18946 
   18947 
   18948 ac_ext=c
   18949 ac_cpp='$CPP $CPPFLAGS'
   18950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   18953 
   18954 ax_pthread_ok=no
   18955 
   18956 # We used to check for pthread.h first, but this fails if pthread.h
   18957 # requires special compiler flags (e.g. on Tru64 or Sequent).
   18958 # It gets checked for in the link test anyway.
   18959 
   18960 # First of all, check if the user has set any of the PTHREAD_LIBS,
   18961 # etcetera environment variables, and if threads linking works using
   18962 # them:
   18963 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
   18964         ax_pthread_save_CC="$CC"
   18965         ax_pthread_save_CFLAGS="$CFLAGS"
   18966         ax_pthread_save_LIBS="$LIBS"
   18967         if test "x$PTHREAD_CC" != "x"
   18968 then :
   18969   CC="$PTHREAD_CC"
   18970 fi
   18971         if test "x$PTHREAD_CXX" != "x"
   18972 then :
   18973   CXX="$PTHREAD_CXX"
   18974 fi
   18975         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   18976         LIBS="$PTHREAD_LIBS $LIBS"
   18977         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
   18978 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
   18979         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18980 /* end confdefs.h.  */
   18981 
   18982 /* Override any GCC internal prototype to avoid an error.
   18983    Use char because int might match the return type of a GCC
   18984    builtin and then its argument prototype would still apply.  */
   18985 char pthread_join ();
   18986 int
   18987 main (void)
   18988 {
   18989 return pthread_join ();
   18990   ;
   18991   return 0;
   18992 }
   18993 _ACEOF
   18994 if ac_fn_c_try_link "$LINENO"
   18995 then :
   18996   ax_pthread_ok=yes
   18997 fi
   18998 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   18999     conftest$ac_exeext conftest.$ac_ext
   19000         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   19001 printf "%s\n" "$ax_pthread_ok" >&6; }
   19002         if test "x$ax_pthread_ok" = "xno"; then
   19003                 PTHREAD_LIBS=""
   19004                 PTHREAD_CFLAGS=""
   19005         fi
   19006         CC="$ax_pthread_save_CC"
   19007         CFLAGS="$ax_pthread_save_CFLAGS"
   19008         LIBS="$ax_pthread_save_LIBS"
   19009 fi
   19010 
   19011 # We must check for the threads library under a number of different
   19012 # names; the ordering is very important because some systems
   19013 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   19014 # libraries is broken (non-POSIX).
   19015 
   19016 # Create a list of thread flags to try. Items with a "," contain both
   19017 # C compiler flags (before ",") and linker flags (after ","). Other items
   19018 # starting with a "-" are C compiler flags, and remaining items are
   19019 # library names, except for "none" which indicates that we try without
   19020 # any flags at all, and "pthread-config" which is a program returning
   19021 # the flags for the Pth emulation library.
   19022 
   19023 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   19024 
   19025 # The ordering *is* (sometimes) important.  Some notes on the
   19026 # individual items follow:
   19027 
   19028 # pthreads: AIX (must check this before -lpthread)
   19029 # none: in case threads are in libc; should be tried before -Kthread and
   19030 #       other compiler flags to prevent continual compiler warnings
   19031 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   19032 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
   19033 #           (Note: HP C rejects this with "bad form for `-t' option")
   19034 # -pthreads: Solaris/gcc (Note: HP C also rejects)
   19035 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   19036 #      doesn't hurt to check since this sometimes defines pthreads and
   19037 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
   19038 #      is present but should not be used directly; and before -mthreads,
   19039 #      because the compiler interprets this as "-mt" + "-hreads")
   19040 # -mthreads: Mingw32/gcc, Lynx/gcc
   19041 # pthread: Linux, etcetera
   19042 # --thread-safe: KAI C++
   19043 # pthread-config: use pthread-config program (for GNU Pth library)
   19044 
   19045 case $host_os in
   19046 
   19047         freebsd*)
   19048 
   19049         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   19050         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   19051 
   19052         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
   19053         ;;
   19054 
   19055         hpux*)
   19056 
   19057         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
   19058         # multi-threading and also sets -lpthread."
   19059 
   19060         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
   19061         ;;
   19062 
   19063         openedition*)
   19064 
   19065         # IBM z/OS requires a feature-test macro to be defined in order to
   19066         # enable POSIX threads at all, so give the user a hint if this is
   19067         # not set. (We don't define these ourselves, as they can affect
   19068         # other portions of the system API in unpredictable ways.)
   19069 
   19070         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19071 /* end confdefs.h.  */
   19072 
   19073 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
   19074              AX_PTHREAD_ZOS_MISSING
   19075 #            endif
   19076 
   19077 _ACEOF
   19078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   19079   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
   19080 then :
   19081   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
   19082 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
   19083 fi
   19084 rm -rf conftest*
   19085 
   19086         ;;
   19087 
   19088         solaris*)
   19089 
   19090         # On Solaris (at least, for some versions), libc contains stubbed
   19091         # (non-functional) versions of the pthreads routines, so link-based
   19092         # tests will erroneously succeed. (N.B.: The stubs are missing
   19093         # pthread_cleanup_push, or rather a function called by this macro,
   19094         # so we could check for that, but who knows whether they'll stub
   19095         # that too in a future libc.)  So we'll check first for the
   19096         # standard Solaris way of linking pthreads (-mt -lpthread).
   19097 
   19098         ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
   19099         ;;
   19100 esac
   19101 
   19102 # Are we compiling with Clang?
   19103 
   19104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
   19105 printf %s "checking whether $CC is Clang... " >&6; }
   19106 if test ${ax_cv_PTHREAD_CLANG+y}
   19107 then :
   19108   printf %s "(cached) " >&6
   19109 else $as_nop
   19110   ax_cv_PTHREAD_CLANG=no
   19111      # Note that Autoconf sets GCC=yes for Clang as well as GCC
   19112      if test "x$GCC" = "xyes"; then
   19113         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19114 /* end confdefs.h.  */
   19115 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
   19116 #            if defined(__clang__) && defined(__llvm__)
   19117              AX_PTHREAD_CC_IS_CLANG
   19118 #            endif
   19119 
   19120 _ACEOF
   19121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   19122   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
   19123 then :
   19124   ax_cv_PTHREAD_CLANG=yes
   19125 fi
   19126 rm -rf conftest*
   19127 
   19128      fi
   19129 
   19130 fi
   19131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
   19132 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
   19133 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
   19134 
   19135 
   19136 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
   19137 
   19138 # Note that for GCC and Clang -pthread generally implies -lpthread,
   19139 # except when -nostdlib is passed.
   19140 # This is problematic using libtool to build C++ shared libraries with pthread:
   19141 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
   19142 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
   19143 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
   19144 # To solve this, first try -pthread together with -lpthread for GCC
   19145 
   19146 if test "x$GCC" = "xyes"
   19147 then :
   19148   ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
   19149 fi
   19150 
   19151 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
   19152 
   19153 if test "x$ax_pthread_clang" = "xyes"
   19154 then :
   19155   ax_pthread_flags="-pthread,-lpthread -pthread"
   19156 fi
   19157 
   19158 
   19159 # The presence of a feature test macro requesting re-entrant function
   19160 # definitions is, on some systems, a strong hint that pthreads support is
   19161 # correctly enabled
   19162 
   19163 case $host_os in
   19164         darwin* | hpux* | linux* | osf* | solaris*)
   19165         ax_pthread_check_macro="_REENTRANT"
   19166         ;;
   19167 
   19168         aix*)
   19169         ax_pthread_check_macro="_THREAD_SAFE"
   19170         ;;
   19171 
   19172         *)
   19173         ax_pthread_check_macro="--"
   19174         ;;
   19175 esac
   19176 if test "x$ax_pthread_check_macro" = "x--"
   19177 then :
   19178   ax_pthread_check_cond=0
   19179 else $as_nop
   19180   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
   19181 fi
   19182 
   19183 
   19184 if test "x$ax_pthread_ok" = "xno"; then
   19185 for ax_pthread_try_flag in $ax_pthread_flags; do
   19186 
   19187         case $ax_pthread_try_flag in
   19188                 none)
   19189                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   19190 printf %s "checking whether pthreads work without any flags... " >&6; }
   19191                 ;;
   19192 
   19193                 *,*)
   19194                 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
   19195                 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
   19196                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
   19197 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
   19198                 ;;
   19199 
   19200                 -*)
   19201                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
   19202 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
   19203                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
   19204                 ;;
   19205 
   19206                 pthread-config)
   19207                 # Extract the first word of "pthread-config", so it can be a program name with args.
   19208 set dummy pthread-config; ac_word=$2
   19209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19210 printf %s "checking for $ac_word... " >&6; }
   19211 if test ${ac_cv_prog_ax_pthread_config+y}
   19212 then :
   19213   printf %s "(cached) " >&6
   19214 else $as_nop
   19215   if test -n "$ax_pthread_config"; then
   19216   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   19217 else
   19218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19219 for as_dir in $PATH
   19220 do
   19221   IFS=$as_save_IFS
   19222   case $as_dir in #(((
   19223     '') as_dir=./ ;;
   19224     */) ;;
   19225     *) as_dir=$as_dir/ ;;
   19226   esac
   19227     for ac_exec_ext in '' $ac_executable_extensions; do
   19228   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   19229     ac_cv_prog_ax_pthread_config="yes"
   19230     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   19231     break 2
   19232   fi
   19233 done
   19234   done
   19235 IFS=$as_save_IFS
   19236 
   19237   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   19238 fi
   19239 fi
   19240 ax_pthread_config=$ac_cv_prog_ax_pthread_config
   19241 if test -n "$ax_pthread_config"; then
   19242   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   19243 printf "%s\n" "$ax_pthread_config" >&6; }
   19244 else
   19245   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19246 printf "%s\n" "no" >&6; }
   19247 fi
   19248 
   19249 
   19250                 if test "x$ax_pthread_config" = "xno"
   19251 then :
   19252   continue
   19253 fi
   19254                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   19255                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   19256                 ;;
   19257 
   19258                 *)
   19259                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
   19260 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
   19261                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
   19262                 ;;
   19263         esac
   19264 
   19265         ax_pthread_save_CFLAGS="$CFLAGS"
   19266         ax_pthread_save_LIBS="$LIBS"
   19267         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   19268         LIBS="$PTHREAD_LIBS $LIBS"
   19269 
   19270         # Check for various functions.  We must include pthread.h,
   19271         # since some functions may be macros.  (On the Sequent, we
   19272         # need a special flag -Kthread to make this header compile.)
   19273         # We check for pthread_join because it is in -lpthread on IRIX
   19274         # while pthread_create is in libc.  We check for pthread_attr_init
   19275         # due to DEC craziness with -lpthreads.  We check for
   19276         # pthread_cleanup_push because it is one of the few pthread
   19277         # functions on Solaris that doesn't have a non-functional libc stub.
   19278         # We try pthread_create on general principles.
   19279 
   19280         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19281 /* end confdefs.h.  */
   19282 #include <pthread.h>
   19283 #                       if $ax_pthread_check_cond
   19284 #                        error "$ax_pthread_check_macro must be defined"
   19285 #                       endif
   19286                         static void *some_global = NULL;
   19287                         static void routine(void *a)
   19288                           {
   19289                              /* To avoid any unused-parameter or
   19290                                 unused-but-set-parameter warning.  */
   19291                              some_global = a;
   19292                           }
   19293                         static void *start_routine(void *a) { return a; }
   19294 int
   19295 main (void)
   19296 {
   19297 pthread_t th; pthread_attr_t attr;
   19298                         pthread_create(&th, 0, start_routine, 0);
   19299                         pthread_join(th, 0);
   19300                         pthread_attr_init(&attr);
   19301                         pthread_cleanup_push(routine, 0);
   19302                         pthread_cleanup_pop(0) /* ; */
   19303   ;
   19304   return 0;
   19305 }
   19306 _ACEOF
   19307 if ac_fn_c_try_link "$LINENO"
   19308 then :
   19309   ax_pthread_ok=yes
   19310 fi
   19311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   19312     conftest$ac_exeext conftest.$ac_ext
   19313 
   19314         CFLAGS="$ax_pthread_save_CFLAGS"
   19315         LIBS="$ax_pthread_save_LIBS"
   19316 
   19317         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   19318 printf "%s\n" "$ax_pthread_ok" >&6; }
   19319         if test "x$ax_pthread_ok" = "xyes"
   19320 then :
   19321   break
   19322 fi
   19323 
   19324         PTHREAD_LIBS=""
   19325         PTHREAD_CFLAGS=""
   19326 done
   19327 fi
   19328 
   19329 
   19330 # Clang needs special handling, because older versions handle the -pthread
   19331 # option in a rather... idiosyncratic way
   19332 
   19333 if test "x$ax_pthread_clang" = "xyes"; then
   19334 
   19335         # Clang takes -pthread; it has never supported any other flag
   19336 
   19337         # (Note 1: This will need to be revisited if a system that Clang
   19338         # supports has POSIX threads in a separate library.  This tends not
   19339         # to be the way of modern systems, but it's conceivable.)
   19340 
   19341         # (Note 2: On some systems, notably Darwin, -pthread is not needed
   19342         # to get POSIX threads support; the API is always present and
   19343         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
   19344         # -pthread does define _REENTRANT, and while the Darwin headers
   19345         # ignore this macro, third-party headers might not.)
   19346 
   19347         # However, older versions of Clang make a point of warning the user
   19348         # that, in an invocation where only linking and no compilation is
   19349         # taking place, the -pthread option has no effect ("argument unused
   19350         # during compilation").  They expect -pthread to be passed in only
   19351         # when source code is being compiled.
   19352         #
   19353         # Problem is, this is at odds with the way Automake and most other
   19354         # C build frameworks function, which is that the same flags used in
   19355         # compilation (CFLAGS) are also used in linking.  Many systems
   19356         # supported by AX_PTHREAD require exactly this for POSIX threads
   19357         # support, and in fact it is often not straightforward to specify a
   19358         # flag that is used only in the compilation phase and not in
   19359         # linking.  Such a scenario is extremely rare in practice.
   19360         #
   19361         # Even though use of the -pthread flag in linking would only print
   19362         # a warning, this can be a nuisance for well-run software projects
   19363         # that build with -Werror.  So if the active version of Clang has
   19364         # this misfeature, we search for an option to squash it.
   19365 
   19366         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
   19367 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
   19368 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
   19369 then :
   19370   printf %s "(cached) " >&6
   19371 else $as_nop
   19372   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
   19373              # Create an alternate version of $ac_link that compiles and
   19374              # links in two steps (.c -> .o, .o -> exe) instead of one
   19375              # (.c -> exe), because the warning occurs only in the second
   19376              # step
   19377              ax_pthread_save_ac_link="$ac_link"
   19378              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
   19379              ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
   19380              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
   19381              ax_pthread_save_CFLAGS="$CFLAGS"
   19382              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
   19383                 if test "x$ax_pthread_try" = "xunknown"
   19384 then :
   19385   break
   19386 fi
   19387                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
   19388                 ac_link="$ax_pthread_save_ac_link"
   19389                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19390 /* end confdefs.h.  */
   19391 int main(void){return 0;}
   19392 _ACEOF
   19393 if ac_fn_c_try_link "$LINENO"
   19394 then :
   19395   ac_link="$ax_pthread_2step_ac_link"
   19396                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19397 /* end confdefs.h.  */
   19398 int main(void){return 0;}
   19399 _ACEOF
   19400 if ac_fn_c_try_link "$LINENO"
   19401 then :
   19402   break
   19403 fi
   19404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   19405     conftest$ac_exeext conftest.$ac_ext
   19406 
   19407 fi
   19408 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   19409     conftest$ac_exeext conftest.$ac_ext
   19410              done
   19411              ac_link="$ax_pthread_save_ac_link"
   19412              CFLAGS="$ax_pthread_save_CFLAGS"
   19413              if test "x$ax_pthread_try" = "x"
   19414 then :
   19415   ax_pthread_try=no
   19416 fi
   19417              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
   19418 
   19419 fi
   19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
   19421 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
   19422 
   19423         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
   19424                 no | unknown) ;;
   19425                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
   19426         esac
   19427 
   19428 fi # $ax_pthread_clang = yes
   19429 
   19430 
   19431 
   19432 # Various other checks:
   19433 if test "x$ax_pthread_ok" = "xyes"; then
   19434         ax_pthread_save_CFLAGS="$CFLAGS"
   19435         ax_pthread_save_LIBS="$LIBS"
   19436         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   19437         LIBS="$PTHREAD_LIBS $LIBS"
   19438 
   19439         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   19440         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   19441 printf %s "checking for joinable pthread attribute... " >&6; }
   19442 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
   19443 then :
   19444   printf %s "(cached) " >&6
   19445 else $as_nop
   19446   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
   19447              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   19448                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19449 /* end confdefs.h.  */
   19450 #include <pthread.h>
   19451 int
   19452 main (void)
   19453 {
   19454 int attr = $ax_pthread_attr; return attr /* ; */
   19455   ;
   19456   return 0;
   19457 }
   19458 _ACEOF
   19459 if ac_fn_c_try_link "$LINENO"
   19460 then :
   19461   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
   19462 fi
   19463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   19464     conftest$ac_exeext conftest.$ac_ext
   19465              done
   19466 
   19467 fi
   19468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
   19469 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
   19470         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
   19471                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
   19472                test "x$ax_pthread_joinable_attr_defined" != "xyes"
   19473 then :
   19474 
   19475 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
   19476 
   19477                ax_pthread_joinable_attr_defined=yes
   19478 
   19479 fi
   19480 
   19481         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
   19482 printf %s "checking whether more special flags are required for pthreads... " >&6; }
   19483 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
   19484 then :
   19485   printf %s "(cached) " >&6
   19486 else $as_nop
   19487   ax_cv_PTHREAD_SPECIAL_FLAGS=no
   19488              case $host_os in
   19489              solaris*)
   19490              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
   19491              ;;
   19492              esac
   19493 
   19494 fi
   19495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
   19496 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
   19497         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
   19498                test "x$ax_pthread_special_flags_added" != "xyes"
   19499 then :
   19500   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
   19501                ax_pthread_special_flags_added=yes
   19502 fi
   19503 
   19504         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   19505 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   19506 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
   19507 then :
   19508   printf %s "(cached) " >&6
   19509 else $as_nop
   19510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19511 /* end confdefs.h.  */
   19512 #include <pthread.h>
   19513 int
   19514 main (void)
   19515 {
   19516 int i = PTHREAD_PRIO_INHERIT;
   19517                                                return i;
   19518   ;
   19519   return 0;
   19520 }
   19521 _ACEOF
   19522 if ac_fn_c_try_link "$LINENO"
   19523 then :
   19524   ax_cv_PTHREAD_PRIO_INHERIT=yes
   19525 else $as_nop
   19526   ax_cv_PTHREAD_PRIO_INHERIT=no
   19527 fi
   19528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   19529     conftest$ac_exeext conftest.$ac_ext
   19530 
   19531 fi
   19532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   19533 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   19534         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
   19535                test "x$ax_pthread_prio_inherit_defined" != "xyes"
   19536 then :
   19537 
   19538 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   19539 
   19540                ax_pthread_prio_inherit_defined=yes
   19541 
   19542 fi
   19543 
   19544         CFLAGS="$ax_pthread_save_CFLAGS"
   19545         LIBS="$ax_pthread_save_LIBS"
   19546 
   19547         # More AIX lossage: compile with *_r variant
   19548         if test "x$GCC" != "xyes"; then
   19549             case $host_os in
   19550                 aix*)
   19551                 case "x/$CC" in #(
   19552   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
   19553     #handle absolute path differently from PATH based program lookup
   19554                      case "x$CC" in #(
   19555   x/*) :
   19556 
   19557 			   if as_fn_executable_p ${CC}_r
   19558 then :
   19559   PTHREAD_CC="${CC}_r"
   19560 fi
   19561 			   if test "x${CXX}" != "x"
   19562 then :
   19563   if as_fn_executable_p ${CXX}_r
   19564 then :
   19565   PTHREAD_CXX="${CXX}_r"
   19566 fi
   19567 fi
   19568 			  ;; #(
   19569   *) :
   19570 
   19571 			   for ac_prog in ${CC}_r
   19572 do
   19573   # Extract the first word of "$ac_prog", so it can be a program name with args.
   19574 set dummy $ac_prog; ac_word=$2
   19575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19576 printf %s "checking for $ac_word... " >&6; }
   19577 if test ${ac_cv_prog_PTHREAD_CC+y}
   19578 then :
   19579   printf %s "(cached) " >&6
   19580 else $as_nop
   19581   if test -n "$PTHREAD_CC"; then
   19582   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   19583 else
   19584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19585 for as_dir in $PATH
   19586 do
   19587   IFS=$as_save_IFS
   19588   case $as_dir in #(((
   19589     '') as_dir=./ ;;
   19590     */) ;;
   19591     *) as_dir=$as_dir/ ;;
   19592   esac
   19593     for ac_exec_ext in '' $ac_executable_extensions; do
   19594   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   19595     ac_cv_prog_PTHREAD_CC="$ac_prog"
   19596     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   19597     break 2
   19598   fi
   19599 done
   19600   done
   19601 IFS=$as_save_IFS
   19602 
   19603 fi
   19604 fi
   19605 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   19606 if test -n "$PTHREAD_CC"; then
   19607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   19608 printf "%s\n" "$PTHREAD_CC" >&6; }
   19609 else
   19610   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19611 printf "%s\n" "no" >&6; }
   19612 fi
   19613 
   19614 
   19615   test -n "$PTHREAD_CC" && break
   19616 done
   19617 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   19618 
   19619 			   if test "x${CXX}" != "x"
   19620 then :
   19621   for ac_prog in ${CXX}_r
   19622 do
   19623   # Extract the first word of "$ac_prog", so it can be a program name with args.
   19624 set dummy $ac_prog; ac_word=$2
   19625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19626 printf %s "checking for $ac_word... " >&6; }
   19627 if test ${ac_cv_prog_PTHREAD_CXX+y}
   19628 then :
   19629   printf %s "(cached) " >&6
   19630 else $as_nop
   19631   if test -n "$PTHREAD_CXX"; then
   19632   ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
   19633 else
   19634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19635 for as_dir in $PATH
   19636 do
   19637   IFS=$as_save_IFS
   19638   case $as_dir in #(((
   19639     '') as_dir=./ ;;
   19640     */) ;;
   19641     *) as_dir=$as_dir/ ;;
   19642   esac
   19643     for ac_exec_ext in '' $ac_executable_extensions; do
   19644   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   19645     ac_cv_prog_PTHREAD_CXX="$ac_prog"
   19646     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   19647     break 2
   19648   fi
   19649 done
   19650   done
   19651 IFS=$as_save_IFS
   19652 
   19653 fi
   19654 fi
   19655 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
   19656 if test -n "$PTHREAD_CXX"; then
   19657   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
   19658 printf "%s\n" "$PTHREAD_CXX" >&6; }
   19659 else
   19660   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19661 printf "%s\n" "no" >&6; }
   19662 fi
   19663 
   19664 
   19665   test -n "$PTHREAD_CXX" && break
   19666 done
   19667 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
   19668 
   19669 fi
   19670 
   19671                       ;;
   19672 esac
   19673                      ;; #(
   19674   *) :
   19675      ;;
   19676 esac
   19677                 ;;
   19678             esac
   19679         fi
   19680 fi
   19681 
   19682 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   19683 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
   19684 
   19685 
   19686 
   19687 
   19688 
   19689 
   19690 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   19691 if test "x$ax_pthread_ok" = "xyes"; then
   19692 
   19693 
   19694 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
   19695 
   19696 		if test -n "$PTHREAD_LIBS"; then
   19697 		  LIBS="$PTHREAD_LIBS $LIBS"
   19698 		fi
   19699 		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   19700 		CC="$PTHREAD_CC"
   19701 		ub_have_pthreads=yes
   19702 		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
   19703 "
   19704 if test "x$ac_cv_type_pthread_spinlock_t" = xyes
   19705 then :
   19706 
   19707 printf "%s\n" "#define HAVE_PTHREAD_SPINLOCK_T 1" >>confdefs.h
   19708 
   19709 
   19710 fi
   19711 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
   19712 "
   19713 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
   19714 then :
   19715 
   19716 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_T 1" >>confdefs.h
   19717 
   19718 
   19719 fi
   19720 
   19721 		# The cast to long int works around a bug in the HP C Compiler
   19722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   19723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   19724 # This bug is HP SR number 8606223364.
   19725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
   19726 printf %s "checking size of unsigned long... " >&6; }
   19727 if test ${ac_cv_sizeof_unsigned_long+y}
   19728 then :
   19729   printf %s "(cached) " >&6
   19730 else $as_nop
   19731   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"
   19732 then :
   19733 
   19734 else $as_nop
   19735   if test "$ac_cv_type_unsigned_long" = yes; then
   19736      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19737 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   19738 as_fn_error 77 "cannot compute sizeof (unsigned long)
   19739 See \`config.log' for more details" "$LINENO" 5; }
   19740    else
   19741      ac_cv_sizeof_unsigned_long=0
   19742    fi
   19743 fi
   19744 
   19745 fi
   19746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
   19747 printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
   19748 
   19749 
   19750 
   19751 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
   19752 
   19753 
   19754 		# The cast to long int works around a bug in the HP C Compiler
   19755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   19756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   19757 # This bug is HP SR number 8606223364.
   19758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
   19759 printf %s "checking size of pthread_t... " >&6; }
   19760 if test ${ac_cv_sizeof_pthread_t+y}
   19761 then :
   19762   printf %s "(cached) " >&6
   19763 else $as_nop
   19764   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default"
   19765 then :
   19766 
   19767 else $as_nop
   19768   if test "$ac_cv_type_pthread_t" = yes; then
   19769      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19770 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   19771 as_fn_error 77 "cannot compute sizeof (pthread_t)
   19772 See \`config.log' for more details" "$LINENO" 5; }
   19773    else
   19774      ac_cv_sizeof_pthread_t=0
   19775    fi
   19776 fi
   19777 
   19778 fi
   19779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
   19780 printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; }
   19781 
   19782 
   19783 
   19784 printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h
   19785 
   19786 
   19787 
   19788 		if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
   19789 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
   19790 printf %s "checking if -pthread unused during linking... " >&6; }
   19791 		# catch clang warning 'argument unused during compilation'
   19792 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19793 /* end confdefs.h.  */
   19794 $ac_includes_default
   19795 
   19796 int main(void) {return 0;}
   19797 
   19798 _ACEOF
   19799 		pthread_unused="yes"
   19800 		# first compile
   19801 		echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
   19802 		$CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
   19803 		if test $? = 0; then
   19804 			# then link
   19805 			echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
   19806 			$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
   19807 			if test $? -ne 0; then
   19808 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19809 printf "%s\n" "yes" >&6; }
   19810 				CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
   19811 				PTHREAD_CFLAGS_ONLY="-pthread"
   19812 
   19813 			else
   19814 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19815 printf "%s\n" "no" >&6; }
   19816 			fi
   19817 		else
   19818 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19819 printf "%s\n" "no" >&6; }
   19820 		fi # endif cc successful
   19821 		rm -f conftest conftest.c conftest.o
   19822 		fi # endif -pthread in CFLAGS
   19823 
   19824 
   19825         :
   19826 else
   19827         ax_pthread_ok=no
   19828 
   19829 fi
   19830 ac_ext=c
   19831 ac_cpp='$CPP $CPPFLAGS'
   19832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19835 
   19836 
   19837 fi
   19838 
   19839 if test x_$ub_have_pthreads != x_no; then
   19840 	# Long checks to support pthread_setname_np().
   19841 	# Some OSes have the extra non-portable functions in a specific
   19842 	# header file.
   19843 	ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default
   19844 "
   19845 if test "x$ac_cv_header_pthread_np_h" = xyes
   19846 then :
   19847   printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
   19848 
   19849 fi
   19850 
   19851 	BAKCFLAGS="$CFLAGS"
   19852 	CFLAGS="$CFLAGS -Werror"
   19853 	# MacOS only has 1 argument, the name.
   19854 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np has only 1 argument" >&5
   19855 printf %s "checking whether pthread_setname_np has only 1 argument... " >&6; }
   19856 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19857 /* end confdefs.h.  */
   19858 $ac_includes_default
   19859 #include <pthread.h>
   19860 #ifdef HAVE_PTHREAD_NP_H
   19861 #include <pthread_np.h>
   19862 #endif
   19863 
   19864 int
   19865 main (void)
   19866 {
   19867 
   19868 	    (void)pthread_setname_np("");
   19869 
   19870   ;
   19871   return 0;
   19872 }
   19873 _ACEOF
   19874 if ac_fn_c_try_compile "$LINENO"
   19875 then :
   19876 
   19877 	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19878 printf "%s\n" "yes" >&6; }
   19879 
   19880 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP1 1" >>confdefs.h
   19881 
   19882 
   19883 else $as_nop
   19884 
   19885 	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19886 printf "%s\n" "no" >&6; }
   19887 
   19888 fi
   19889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   19890 	# NetBSD has 3 arguments to allow for formatting of the name.
   19891 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np has 3 arguments" >&5
   19892 printf %s "checking whether pthread_setname_np has 3 arguments... " >&6; }
   19893 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19894 /* end confdefs.h.  */
   19895 $ac_includes_default
   19896 #include <pthread.h>
   19897 #ifdef HAVE_PTHREAD_NP_H
   19898 #include <pthread_np.h>
   19899 #endif
   19900 
   19901 int
   19902 main (void)
   19903 {
   19904 
   19905 	    (void)pthread_setname_np(0, "", NULL);
   19906 
   19907   ;
   19908   return 0;
   19909 }
   19910 _ACEOF
   19911 if ac_fn_c_try_compile "$LINENO"
   19912 then :
   19913 
   19914 	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19915 printf "%s\n" "yes" >&6; }
   19916 
   19917 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP3 1" >>confdefs.h
   19918 
   19919 
   19920 else $as_nop
   19921 
   19922 	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19923 printf "%s\n" "no" >&6; }
   19924 
   19925 fi
   19926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   19927 	# Most OSes have the common 2 arguments, thread and name.
   19928 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np has the common 2 arguments" >&5
   19929 printf %s "checking whether pthread_setname_np has the common 2 arguments... " >&6; }
   19930 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19931 /* end confdefs.h.  */
   19932 $ac_includes_default
   19933 #include <pthread.h>
   19934 #ifdef HAVE_PTHREAD_NP_H
   19935 #include <pthread_np.h>
   19936 #endif
   19937 
   19938 int
   19939 main (void)
   19940 {
   19941 
   19942 	    (void)pthread_setname_np(0, "");
   19943 
   19944   ;
   19945   return 0;
   19946 }
   19947 _ACEOF
   19948 if ac_fn_c_try_compile "$LINENO"
   19949 then :
   19950 
   19951 	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19952 printf "%s\n" "yes" >&6; }
   19953 
   19954 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
   19955 
   19956 
   19957 else $as_nop
   19958 
   19959 	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19960 printf "%s\n" "no" >&6; }
   19961 
   19962 fi
   19963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   19964 	# FreeBSD/OpenBSD use a slightly different function name.
   19965 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np exists as pthread_set_name_np instead" >&5
   19966 printf %s "checking whether pthread_setname_np exists as pthread_set_name_np instead... " >&6; }
   19967 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19968 /* end confdefs.h.  */
   19969 $ac_includes_default
   19970 #include <pthread.h>
   19971 #ifdef HAVE_PTHREAD_NP_H
   19972 #include <pthread_np.h>
   19973 #endif
   19974 
   19975 int
   19976 main (void)
   19977 {
   19978 
   19979 	    (void)pthread_set_name_np(0, "");
   19980 
   19981   ;
   19982   return 0;
   19983 }
   19984 _ACEOF
   19985 if ac_fn_c_try_compile "$LINENO"
   19986 then :
   19987 
   19988 	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19989 printf "%s\n" "yes" >&6; }
   19990 
   19991 printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
   19992 
   19993 
   19994 else $as_nop
   19995 
   19996 	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19997 printf "%s\n" "no" >&6; }
   19998 
   19999 fi
   20000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   20001 	CFLAGS="$BAKCFLAGS"
   20002 fi
   20003 
   20004 # check solaris thread library
   20005 
   20006 # Check whether --with-solaris-threads was given.
   20007 if test ${with_solaris_threads+y}
   20008 then :
   20009   withval=$with_solaris_threads;
   20010 else $as_nop
   20011    withval="no"
   20012 fi
   20013 
   20014 ub_have_sol_threads=no
   20015 if test x_$withval != x_no; then
   20016 	if test x_$ub_have_pthreads != x_no; then
   20017 	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
   20018 printf "%s\n" "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
   20019 	else
   20020 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
   20021 printf %s "checking for library containing thr_create... " >&6; }
   20022 if test ${ac_cv_search_thr_create+y}
   20023 then :
   20024   printf %s "(cached) " >&6
   20025 else $as_nop
   20026   ac_func_search_save_LIBS=$LIBS
   20027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20028 /* end confdefs.h.  */
   20029 
   20030 /* Override any GCC internal prototype to avoid an error.
   20031    Use char because int might match the return type of a GCC
   20032    builtin and then its argument prototype would still apply.  */
   20033 char thr_create ();
   20034 int
   20035 main (void)
   20036 {
   20037 return thr_create ();
   20038   ;
   20039   return 0;
   20040 }
   20041 _ACEOF
   20042 for ac_lib in '' thread
   20043 do
   20044   if test -z "$ac_lib"; then
   20045     ac_res="none required"
   20046   else
   20047     ac_res=-l$ac_lib
   20048     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20049   fi
   20050   if ac_fn_c_try_link "$LINENO"
   20051 then :
   20052   ac_cv_search_thr_create=$ac_res
   20053 fi
   20054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   20055     conftest$ac_exeext
   20056   if test ${ac_cv_search_thr_create+y}
   20057 then :
   20058   break
   20059 fi
   20060 done
   20061 if test ${ac_cv_search_thr_create+y}
   20062 then :
   20063 
   20064 else $as_nop
   20065   ac_cv_search_thr_create=no
   20066 fi
   20067 rm conftest.$ac_ext
   20068 LIBS=$ac_func_search_save_LIBS
   20069 fi
   20070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
   20071 printf "%s\n" "$ac_cv_search_thr_create" >&6; }
   20072 ac_res=$ac_cv_search_thr_create
   20073 if test "$ac_res" != no
   20074 then :
   20075   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20076 
   20077 
   20078 printf "%s\n" "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
   20079 
   20080 
   20081 
   20082 
   20083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
   20084 printf %s "checking whether $CC supports -mt... " >&6; }
   20085 cache=`echo mt | sed 'y%.=/+-%___p_%'`
   20086 if eval test \${cv_prog_cc_flag_$cache+y}
   20087 then :
   20088   printf %s "(cached) " >&6
   20089 else $as_nop
   20090 
   20091 echo 'void f(void){}' >conftest.c
   20092 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
   20093 eval "cv_prog_cc_flag_$cache=yes"
   20094 else
   20095 eval "cv_prog_cc_flag_$cache=no"
   20096 fi
   20097 rm -f conftest conftest.o conftest.c
   20098 
   20099 fi
   20100 
   20101 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   20102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20103 printf "%s\n" "yes" >&6; }
   20104 :
   20105 CFLAGS="$CFLAGS -mt"
   20106 else
   20107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20108 printf "%s\n" "no" >&6; }
   20109 :
   20110 CFLAGS="$CFLAGS -D_REENTRANT"
   20111 fi
   20112 
   20113 		ub_have_sol_threads=yes
   20114 
   20115 else $as_nop
   20116 
   20117 		as_fn_error $? "no solaris threads found." "$LINENO" 5
   20118 
   20119 fi
   20120 
   20121 	fi
   20122 fi
   20123 
   20124 fi # end of non-mingw check of thread libraries
   20125 
   20126 # Check for SYSLOG_FACILITY
   20127 
   20128 # Check whether --with-syslog-facility was given.
   20129 if test ${with_syslog_facility+y}
   20130 then :
   20131   withval=$with_syslog_facility;  UNBOUND_SYSLOG_FACILITY="$withval"
   20132 fi
   20133 
   20134 case "${UNBOUND_SYSLOG_FACILITY}" in
   20135 
   20136   LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
   20137 
   20138            *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
   20139 
   20140 esac
   20141 
   20142 printf "%s\n" "#define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}" >>confdefs.h
   20143 
   20144 
   20145 # Check for dynamic library module
   20146 
   20147 # Check whether --with-dynlibmodule was given.
   20148 if test ${with_dynlibmodule+y}
   20149 then :
   20150   withval=$with_dynlibmodule;
   20151 else $as_nop
   20152    withval="no"
   20153 fi
   20154 
   20155 
   20156 if test x_$withval != x_no; then
   20157 
   20158 printf "%s\n" "#define WITH_DYNLIBMODULE 1" >>confdefs.h
   20159 
   20160   WITH_DYNLIBMODULE=yes
   20161 
   20162   DYNLIBMOD_OBJ="dynlibmod.lo"
   20163 
   20164   DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h'
   20165 
   20166   if test $on_mingw = "no"; then
   20167     # link with -ldl if not already there, for all executables because
   20168     # dlopen call is in the dynlib module.  For unbound executable, also
   20169     # export symbols.
   20170     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   20171 printf %s "checking for library containing dlopen... " >&6; }
   20172 if test ${ac_cv_search_dlopen+y}
   20173 then :
   20174   printf %s "(cached) " >&6
   20175 else $as_nop
   20176   ac_func_search_save_LIBS=$LIBS
   20177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20178 /* end confdefs.h.  */
   20179 
   20180 /* Override any GCC internal prototype to avoid an error.
   20181    Use char because int might match the return type of a GCC
   20182    builtin and then its argument prototype would still apply.  */
   20183 char dlopen ();
   20184 int
   20185 main (void)
   20186 {
   20187 return dlopen ();
   20188   ;
   20189   return 0;
   20190 }
   20191 _ACEOF
   20192 for ac_lib in '' dl
   20193 do
   20194   if test -z "$ac_lib"; then
   20195     ac_res="none required"
   20196   else
   20197     ac_res=-l$ac_lib
   20198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20199   fi
   20200   if ac_fn_c_try_link "$LINENO"
   20201 then :
   20202   ac_cv_search_dlopen=$ac_res
   20203 fi
   20204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   20205     conftest$ac_exeext
   20206   if test ${ac_cv_search_dlopen+y}
   20207 then :
   20208   break
   20209 fi
   20210 done
   20211 if test ${ac_cv_search_dlopen+y}
   20212 then :
   20213 
   20214 else $as_nop
   20215   ac_cv_search_dlopen=no
   20216 fi
   20217 rm conftest.$ac_ext
   20218 LIBS=$ac_func_search_save_LIBS
   20219 fi
   20220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   20221 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
   20222 ac_res=$ac_cv_search_dlopen
   20223 if test "$ac_res" != no
   20224 then :
   20225   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20226 
   20227 fi
   20228 
   20229     DYNLIBMOD_EXTRALIBS="-export-dynamic"
   20230   else
   20231     DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a"
   20232   fi
   20233 
   20234 fi
   20235 
   20236 # Check for PyUnbound
   20237 
   20238 # Check whether --with-pyunbound was given.
   20239 if test ${with_pyunbound+y}
   20240 then :
   20241   withval=$with_pyunbound;
   20242 else $as_nop
   20243    withval="no"
   20244 fi
   20245 
   20246 
   20247 ub_test_python=no
   20248 ub_with_pyunbound=no
   20249 if test x_$withval != x_no; then
   20250    ub_with_pyunbound=yes
   20251    ub_test_python=yes
   20252 fi
   20253 
   20254 # Check for Python module
   20255 
   20256 # Check whether --with-pythonmodule was given.
   20257 if test ${with_pythonmodule+y}
   20258 then :
   20259   withval=$with_pythonmodule;
   20260 else $as_nop
   20261    withval="no"
   20262 fi
   20263 
   20264 
   20265 ub_with_pythonmod=no
   20266 if test x_$withval != x_no; then
   20267    ub_with_pythonmod=yes
   20268    ub_test_python=yes
   20269 fi
   20270 
   20271 # Check for Python & SWIG only on PyUnbound or PyModule
   20272 if test x_$ub_test_python != x_no; then
   20273 
   20274    # Check for Python
   20275    ub_have_python=no
   20276    ac_save_LIBS="$LIBS"
   20277         #
   20278         # Allow the use of a (user set) custom python version
   20279         #
   20280 
   20281 
   20282         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
   20283 set dummy python$PYTHON_VERSION; ac_word=$2
   20284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20285 printf %s "checking for $ac_word... " >&6; }
   20286 if test ${ac_cv_path_PYTHON+y}
   20287 then :
   20288   printf %s "(cached) " >&6
   20289 else $as_nop
   20290   case $PYTHON in
   20291   [\\/]* | ?:[\\/]*)
   20292   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
   20293   ;;
   20294   *)
   20295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20296 for as_dir in $PATH
   20297 do
   20298   IFS=$as_save_IFS
   20299   case $as_dir in #(((
   20300     '') as_dir=./ ;;
   20301     */) ;;
   20302     *) as_dir=$as_dir/ ;;
   20303   esac
   20304     for ac_exec_ext in '' $ac_executable_extensions; do
   20305   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   20306     ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
   20307     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   20308     break 2
   20309   fi
   20310 done
   20311   done
   20312 IFS=$as_save_IFS
   20313 
   20314   ;;
   20315 esac
   20316 fi
   20317 PYTHON=$ac_cv_path_PYTHON
   20318 if test -n "$PYTHON"; then
   20319   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
   20320 printf "%s\n" "$PYTHON" >&6; }
   20321 else
   20322   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20323 printf "%s\n" "no" >&6; }
   20324 fi
   20325 
   20326 
   20327         if test -z "$PYTHON"; then
   20328            as_fn_error $? "Cannot find 'python$PYTHON_VERSION' in your system path. You can use the environment variable 'PYTHON_VERSION=version_number' for an explicit version." "$LINENO" 5
   20329            PYTHON_VERSION=""
   20330         fi
   20331 
   20332         if test -z "$PYTHON_VERSION"; then
   20333 		PYTHON_VERSION=`$PYTHON -c "import sys; \
   20334 			print(sys.version.split()[0])"`
   20335 	fi
   20336 	# calculate the version number components.
   20337 
   20338 	v="$PYTHON_VERSION"
   20339 	PYTHON_VERSION_MAJOR=`echo $v | sed 's/[^0-9].*//'`
   20340 	if test -z "$PYTHON_VERSION_MAJOR"; then PYTHON_VERSION_MAJOR="0"; fi
   20341 	v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'`
   20342 	PYTHON_VERSION_MINOR=`echo $v | sed 's/[^0-9].*//'`
   20343 	if test -z "$PYTHON_VERSION_MINOR"; then PYTHON_VERSION_MINOR="0"; fi
   20344 	v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'`
   20345 	PYTHON_VERSION_PATCH=`echo $v | sed 's/[^0-9].*//'`
   20346 	if test -z "$PYTHON_VERSION_PATCH"; then PYTHON_VERSION_PATCH="0"; fi
   20347 
   20348 
   20349 	# For some systems, sysconfig exists, but has the wrong paths,
   20350 	# on Debian 10, for python 2.7 and 3.7. So, we check the version,
   20351 	# and for older versions try distutils.sysconfig first. For newer
   20352 	# versions>=3.10, where distutils.sysconfig is deprecated, use
   20353 	# sysconfig first and then attempt the other one.
   20354 	py_distutils_first="no"
   20355 	if test $PYTHON_VERSION_MAJOR -lt 3; then
   20356 		py_distutils_first="yes"
   20357 	fi
   20358 	if test $PYTHON_VERSION_MAJOR -eq 3 -a $PYTHON_VERSION_MINOR -lt 10; then
   20359 		py_distutils_first="yes"
   20360 	fi
   20361 
   20362 	# Check if you have the first module
   20363 	if test "$py_distutils_first" = "yes"; then m="distutils"; else m="sysconfig"; fi
   20364 	sysconfig_module=""
   20365 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the $m Python module" >&5
   20366 printf %s "checking for the $m Python module... " >&6; }
   20367         if ac_modulecheck_result1=`$PYTHON -c "import $m" 2>&1`; then
   20368                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20369 printf "%s\n" "yes" >&6; }
   20370 		sysconfig_module="$m"
   20371 	else
   20372                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20373 printf "%s\n" "no" >&6; }
   20374 	fi
   20375 
   20376 	# if not found, try the other one.
   20377 	if test -z "$sysconfig_module"; then
   20378 		if test "$py_distutils_first" = "yes"; then m2="sysconfig"; else m2="distutils"; fi
   20379 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the $m2 Python module" >&5
   20380 printf %s "checking for the $m2 Python module... " >&6; }
   20381 		if ac_modulecheck_result2=`$PYTHON -c "import $m2" 2>&1`; then
   20382 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20383 printf "%s\n" "yes" >&6; }
   20384 			sysconfig_module="$m2"
   20385 		else
   20386 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20387 printf "%s\n" "no" >&6; }
   20388 			as_fn_error $? "cannot import Python module \"$m\", or \"$m2\".
   20389 	Please check your Python installation. The errors are:
   20390 	$m
   20391 	$ac_modulecheck_result1
   20392 	$m2
   20393 	$ac_modulecheck_result2" "$LINENO" 5
   20394 			PYTHON_VERSION=""
   20395 		fi
   20396 	fi
   20397 	if test "$sysconfig_module" = "distutils"; then sysconfig_module="distutils.sysconfig"; fi
   20398 
   20399         #
   20400         # Check for Python include path
   20401         #
   20402         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
   20403 printf %s "checking for Python include path... " >&6; }
   20404         if test -z "$PYTHON_CPPFLAGS"; then
   20405 		if test "$sysconfig_module" = "sysconfig"; then
   20406 			python_path=`$PYTHON -c 'import sysconfig; \
   20407 				print(sysconfig.get_path("include"));'`
   20408 		else
   20409 			python_path=`$PYTHON -c "import distutils.sysconfig; \
   20410 				print(distutils.sysconfig.get_python_inc());"`
   20411 		fi
   20412                 if test -n "${python_path}"; then
   20413                         python_path="-I$python_path"
   20414                 fi
   20415                 PYTHON_CPPFLAGS=$python_path
   20416         fi
   20417         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
   20418 printf "%s\n" "$PYTHON_CPPFLAGS" >&6; }
   20419 
   20420 
   20421         #
   20422         # Check for Python library path
   20423         #
   20424         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
   20425 printf %s "checking for Python library path... " >&6; }
   20426         if test -z "$PYTHON_LDFLAGS"; then
   20427                 PYTHON_LDFLAGS=`$PYTHON -c "from $sysconfig_module import *; \
   20428                         print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
   20429         fi
   20430         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
   20431 printf "%s\n" "$PYTHON_LDFLAGS" >&6; }
   20432 
   20433 
   20434         if test -z "$PYTHON_LIBDIR"; then
   20435                 PYTHON_LIBDIR=`$PYTHON -c "from $sysconfig_module import *; \
   20436                         print(get_config_var('LIBDIR'));"`
   20437         fi
   20438 
   20439         #
   20440         # Check for site packages
   20441         #
   20442         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
   20443 printf %s "checking for Python site-packages path... " >&6; }
   20444         if test -z "$PYTHON_SITE_PKG"; then
   20445 		if test "$sysconfig_module" = "sysconfig"; then
   20446 			PYTHON_SITE_PKG=`$PYTHON -c 'import sysconfig; \
   20447 				print(sysconfig.get_path("platlib"));'`
   20448 		else
   20449 			PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
   20450 				print(distutils.sysconfig.get_python_lib(1,0));"`
   20451 		fi
   20452         fi
   20453         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
   20454 printf "%s\n" "$PYTHON_SITE_PKG" >&6; }
   20455 
   20456 
   20457         #
   20458         # final check to see if everything compiles alright
   20459         #
   20460         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
   20461 printf %s "checking consistency of all components of python development environment... " >&6; }
   20462         ac_ext=c
   20463 ac_cpp='$CPP $CPPFLAGS'
   20464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20467 
   20468         # save current global flags
   20469         ac_save_LIBS="$LIBS"
   20470         ac_save_CPPFLAGS="$CPPFLAGS"
   20471 
   20472         LIBS="$LIBS $PYTHON_LDFLAGS"
   20473         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
   20474         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20475 /* end confdefs.h.  */
   20476 
   20477                 #include <Python.h>
   20478 
   20479 int
   20480 main (void)
   20481 {
   20482 
   20483                 Py_Initialize();
   20484 
   20485   ;
   20486   return 0;
   20487 }
   20488 _ACEOF
   20489 if ac_fn_c_try_link "$LINENO"
   20490 then :
   20491   pythonexists=yes
   20492 else $as_nop
   20493   pythonexists=no
   20494 fi
   20495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   20496     conftest$ac_exeext conftest.$ac_ext
   20497 
   20498         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
   20499 printf "%s\n" "$pythonexists" >&6; }
   20500 
   20501         if test ! "$pythonexists" = "yes"; then
   20502            as_fn_error $? "
   20503   Could not link test program to Python. Maybe the main Python library has been
   20504   installed in some non-standard library path. If so, pass it to configure,
   20505   via the LDFLAGS environment variable.
   20506   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
   20507   ============================================================================
   20508    ERROR!
   20509    You probably have to install the development version of the Python package
   20510    for your distribution.  The exact name of this package varies among them.
   20511   ============================================================================
   20512            " "$LINENO" 5
   20513           PYTHON_VERSION=""
   20514         fi
   20515         ac_ext=c
   20516 ac_cpp='$CPP $CPPFLAGS'
   20517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20520 
   20521         # turn back to default flags
   20522         CPPFLAGS="$ac_save_CPPFLAGS"
   20523         LIBS="$ac_save_LIBS"
   20524 
   20525         #
   20526         # all done!
   20527         #
   20528 
   20529    if test ! -z "$PYTHON_VERSION"; then
   20530 	badversion="no"
   20531 	if test "$PYTHON_VERSION_MAJOR" -lt 2; then
   20532 		badversion="yes"
   20533 	fi
   20534 	if test "$PYTHON_VERSION_MAJOR" -eq 2 -a "$PYTHON_VERSION_MINOR" -lt 4; then
   20535 		badversion="yes"
   20536 	fi
   20537 	if test "$badversion" = "yes"; then
   20538 		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
   20539 	fi
   20540 
   20541       PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
   20542 
   20543       # Have Python
   20544 
   20545 printf "%s\n" "#define HAVE_PYTHON 1" >>confdefs.h
   20546 
   20547       if test x_$ub_with_pythonmod != x_no; then
   20548         if test -n "$LIBS"; then
   20549           LIBS="$PYTHON_LDFLAGS $LIBS"
   20550         else
   20551           LIBS="$PYTHON_LDFLAGS"
   20552         fi
   20553       fi
   20554       PYTHON_LIBS="$PYTHON_LDFLAGS"
   20555 
   20556       if test -n "$CPPFLAGS"; then
   20557         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
   20558       else
   20559         CPPFLAGS="$PYTHON_CPPFLAGS"
   20560       fi
   20561       if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then
   20562 
   20563 	if test "x$enable_rpath" = xyes; then
   20564 		if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then
   20565 			RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR"
   20566 		fi
   20567 	fi
   20568 
   20569       fi
   20570       ub_have_python=yes
   20571       if test -n "$PKG_CONFIG" && \
   20572     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
   20573   ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
   20574   ac_status=$?
   20575   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   20576   test $ac_status = 0; }; then
   20577   PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
   20578 else
   20579   PC_PY_DEPENDENCY="python"
   20580 fi
   20581 
   20582 
   20583       # Check for SWIG
   20584       ub_have_swig=no
   20585       # Check whether --enable-swig-version-check was given.
   20586 if test ${enable_swig_version_check+y}
   20587 then :
   20588   enableval=$enable_swig_version_check;
   20589 fi
   20590 
   20591       if test "$enable_swig_version_check" = "yes"; then
   20592 
   20593         # Find path to the "swig" executable.
   20594         for ac_prog in swig swig3.0 swig2.0
   20595 do
   20596   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20597 set dummy $ac_prog; ac_word=$2
   20598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20599 printf %s "checking for $ac_word... " >&6; }
   20600 if test ${ac_cv_path_SWIG+y}
   20601 then :
   20602   printf %s "(cached) " >&6
   20603 else $as_nop
   20604   case $SWIG in
   20605   [\\/]* | ?:[\\/]*)
   20606   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
   20607   ;;
   20608   *)
   20609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20610 for as_dir in $PATH
   20611 do
   20612   IFS=$as_save_IFS
   20613   case $as_dir in #(((
   20614     '') as_dir=./ ;;
   20615     */) ;;
   20616     *) as_dir=$as_dir/ ;;
   20617   esac
   20618     for ac_exec_ext in '' $ac_executable_extensions; do
   20619   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   20620     ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext"
   20621     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   20622     break 2
   20623   fi
   20624 done
   20625   done
   20626 IFS=$as_save_IFS
   20627 
   20628   ;;
   20629 esac
   20630 fi
   20631 SWIG=$ac_cv_path_SWIG
   20632 if test -n "$SWIG"; then
   20633   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
   20634 printf "%s\n" "$SWIG" >&6; }
   20635 else
   20636   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20637 printf "%s\n" "no" >&6; }
   20638 fi
   20639 
   20640 
   20641   test -n "$SWIG" && break
   20642 done
   20643 
   20644         if test -z "$SWIG" ; then
   20645                 :
   20646         elif test -z "2.0.1" ; then
   20647                 :
   20648 	else
   20649                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
   20650 printf %s "checking SWIG version... " >&6; }
   20651                 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'`
   20652                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
   20653 printf "%s\n" "$swig_version" >&6; }
   20654                 if test -n "$swig_version" ; then
   20655                         # Calculate the required version number components
   20656                         required=2.0.1
   20657                         required_major=`echo $required | sed 's/[^0-9].*//'`
   20658                         if test -z "$required_major" ; then
   20659                                 required_major=0
   20660                         fi
   20661                         required=`echo $required. | sed 's/[0-9]*[^0-9]//'`
   20662                         required_minor=`echo $required | sed 's/[^0-9].*//'`
   20663                         if test -z "$required_minor" ; then
   20664                                 required_minor=0
   20665                         fi
   20666                         required=`echo $required. | sed 's/[0-9]*[^0-9]//'`
   20667                         required_patch=`echo $required | sed 's/[^0-9].*//'`
   20668                         if test -z "$required_patch" ; then
   20669                                 required_patch=0
   20670                         fi
   20671                         # Calculate the available version number components
   20672                         available=$swig_version
   20673                         available_major=`echo $available | sed 's/[^0-9].*//'`
   20674                         if test -z "$available_major" ; then
   20675                                 available_major=0
   20676                         fi
   20677                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
   20678                         available_minor=`echo $available | sed 's/[^0-9].*//'`
   20679                         if test -z "$available_minor" ; then
   20680                                 available_minor=0
   20681                         fi
   20682                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
   20683                         available_patch=`echo $available | sed 's/[^0-9].*//'`
   20684                         if test -z "$available_patch" ; then
   20685                                 available_patch=0
   20686                         fi
   20687                         # Convert the version tuple into a single number for easier comparison.
   20688                         # Using base 100 should be safe since SWIG internally uses BCD values
   20689                         # to encode its version number.
   20690                         required_swig_vernum=`expr $required_major \* 10000 \
   20691                             \+ $required_minor \* 100 \+ $required_patch`
   20692                         available_swig_vernum=`expr $available_major \* 10000 \
   20693                             \+ $available_minor \* 100 \+ $available_patch`
   20694 
   20695                         if test $available_swig_vernum -lt $required_swig_vernum; then
   20696                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required.  You have $swig_version." >&5
   20697 printf "%s\n" "$as_me: WARNING: SWIG version >= 2.0.1 is required.  You have $swig_version." >&2;}
   20698                                 SWIG=''
   20699 
   20700                         else
   20701                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
   20702 printf %s "checking for SWIG library... " >&6; }
   20703                                 SWIG_LIB=`$SWIG -swiglib | tr '\r\n' '  '`
   20704                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
   20705 printf "%s\n" "$SWIG_LIB" >&6; }
   20706 
   20707                         fi
   20708                 else
   20709                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
   20710 printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;}
   20711                         SWIG=''
   20712 
   20713                 fi
   20714         fi
   20715 
   20716 
   20717       else
   20718 
   20719         # Find path to the "swig" executable.
   20720         for ac_prog in swig swig3.0 swig2.0
   20721 do
   20722   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20723 set dummy $ac_prog; ac_word=$2
   20724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20725 printf %s "checking for $ac_word... " >&6; }
   20726 if test ${ac_cv_path_SWIG+y}
   20727 then :
   20728   printf %s "(cached) " >&6
   20729 else $as_nop
   20730   case $SWIG in
   20731   [\\/]* | ?:[\\/]*)
   20732   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
   20733   ;;
   20734   *)
   20735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20736 for as_dir in $PATH
   20737 do
   20738   IFS=$as_save_IFS
   20739   case $as_dir in #(((
   20740     '') as_dir=./ ;;
   20741     */) ;;
   20742     *) as_dir=$as_dir/ ;;
   20743   esac
   20744     for ac_exec_ext in '' $ac_executable_extensions; do
   20745   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   20746     ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext"
   20747     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   20748     break 2
   20749   fi
   20750 done
   20751   done
   20752 IFS=$as_save_IFS
   20753 
   20754   ;;
   20755 esac
   20756 fi
   20757 SWIG=$ac_cv_path_SWIG
   20758 if test -n "$SWIG"; then
   20759   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
   20760 printf "%s\n" "$SWIG" >&6; }
   20761 else
   20762   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20763 printf "%s\n" "no" >&6; }
   20764 fi
   20765 
   20766 
   20767   test -n "$SWIG" && break
   20768 done
   20769 
   20770         if test -z "$SWIG" ; then
   20771                 :
   20772         elif test -z "" ; then
   20773                 :
   20774 	else
   20775                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
   20776 printf %s "checking SWIG version... " >&6; }
   20777                 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'`
   20778                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
   20779 printf "%s\n" "$swig_version" >&6; }
   20780                 if test -n "$swig_version" ; then
   20781                         # Calculate the required version number components
   20782                         required=
   20783                         required_major=`echo $required | sed 's/[^0-9].*//'`
   20784                         if test -z "$required_major" ; then
   20785                                 required_major=0
   20786                         fi
   20787                         required=`echo $required. | sed 's/[0-9]*[^0-9]//'`
   20788                         required_minor=`echo $required | sed 's/[^0-9].*//'`
   20789                         if test -z "$required_minor" ; then
   20790                                 required_minor=0
   20791                         fi
   20792                         required=`echo $required. | sed 's/[0-9]*[^0-9]//'`
   20793                         required_patch=`echo $required | sed 's/[^0-9].*//'`
   20794                         if test -z "$required_patch" ; then
   20795                                 required_patch=0
   20796                         fi
   20797                         # Calculate the available version number components
   20798                         available=$swig_version
   20799                         available_major=`echo $available | sed 's/[^0-9].*//'`
   20800                         if test -z "$available_major" ; then
   20801                                 available_major=0
   20802                         fi
   20803                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
   20804                         available_minor=`echo $available | sed 's/[^0-9].*//'`
   20805                         if test -z "$available_minor" ; then
   20806                                 available_minor=0
   20807                         fi
   20808                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
   20809                         available_patch=`echo $available | sed 's/[^0-9].*//'`
   20810                         if test -z "$available_patch" ; then
   20811                                 available_patch=0
   20812                         fi
   20813                         # Convert the version tuple into a single number for easier comparison.
   20814                         # Using base 100 should be safe since SWIG internally uses BCD values
   20815                         # to encode its version number.
   20816                         required_swig_vernum=`expr $required_major \* 10000 \
   20817                             \+ $required_minor \* 100 \+ $required_patch`
   20818                         available_swig_vernum=`expr $available_major \* 10000 \
   20819                             \+ $available_minor \* 100 \+ $available_patch`
   20820 
   20821                         if test $available_swig_vernum -lt $required_swig_vernum; then
   20822                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version." >&5
   20823 printf "%s\n" "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version." >&2;}
   20824                                 SWIG=''
   20825 
   20826                         else
   20827                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
   20828 printf %s "checking for SWIG library... " >&6; }
   20829                                 SWIG_LIB=`$SWIG -swiglib | tr '\r\n' '  '`
   20830                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
   20831 printf "%s\n" "$SWIG_LIB" >&6; }
   20832 
   20833                         fi
   20834                 else
   20835                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
   20836 printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;}
   20837                         SWIG=''
   20838 
   20839                 fi
   20840         fi
   20841 
   20842 
   20843       fi
   20844       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
   20845 printf %s "checking SWIG... " >&6; }
   20846       if test ! -x "$SWIG"; then
   20847          as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
   20848       else
   20849 
   20850 printf "%s\n" "#define HAVE_SWIG 1" >>confdefs.h
   20851 
   20852          swig="$SWIG"
   20853 
   20854          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: present" >&5
   20855 printf "%s\n" "present" >&6; }
   20856 
   20857          # If have Python & SWIG
   20858          # Declare PythonMod
   20859          if test x_$ub_with_pythonmod != x_no; then
   20860 
   20861 printf "%s\n" "#define WITH_PYTHONMODULE 1" >>confdefs.h
   20862 
   20863             WITH_PYTHONMODULE=yes
   20864 
   20865 	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
   20866 
   20867 	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
   20868 
   20869 	    PYTHONMOD_INSTALL=pythonmod-install
   20870 
   20871 	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
   20872 
   20873          fi
   20874 
   20875          # Declare PyUnbound
   20876          if test x_$ub_with_pyunbound != x_no; then
   20877 
   20878 printf "%s\n" "#define WITH_PYUNBOUND 1" >>confdefs.h
   20879 
   20880             WITH_PYUNBOUND=yes
   20881 
   20882 	    PYUNBOUND_OBJ="libunbound_wrap.lo"
   20883 
   20884 	    PYUNBOUND_TARGET="_unbound.la"
   20885 
   20886 	    PYUNBOUND_INSTALL=pyunbound-install
   20887 
   20888 	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
   20889 
   20890          fi
   20891       fi
   20892    else
   20893       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
   20894 printf "%s\n" "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
   20895       ub_with_pyunbound=no
   20896       ub_with_pythonmod=no
   20897    fi
   20898 fi
   20899 
   20900 if test "`uname`" = "NetBSD"; then
   20901 	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
   20902 
   20903 fi
   20904 
   20905 if test "`uname`" = "Linux"; then
   20906 	# splint cannot parse modern c99 header files
   20907 	GCC_DOCKER_LINTFLAGS='-syntax'
   20908 
   20909 fi
   20910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build time" >&5
   20911 printf %s "checking for build time... " >&6; }
   20912 ax_date_fmt="%Y%m%d"
   20913 if test x"$SOURCE_DATE_EPOCH" = x
   20914 then :
   20915   CONFIG_DATE=`date "+$ax_date_fmt"`
   20916 else $as_nop
   20917   ax_build_date=`date -u -d "@$SOURCE_DATE_EPOCH" "+$ax_date_fmt" 2>/dev/null \
   20918                  || date -u -r "$SOURCE_DATE_EPOCH" "+$ax_date_fmt" 2>/dev/null`
   20919   if test x"$ax_build_date" = x
   20920 then :
   20921   as_fn_error $? "malformed SOURCE_DATE_EPOCH" "$LINENO" 5
   20922 else $as_nop
   20923   CONFIG_DATE=$ax_build_date
   20924 fi
   20925 fi
   20926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONFIG_DATE" >&5
   20927 printf "%s\n" "$CONFIG_DATE" >&6; }
   20928 
   20929 
   20930 
   20931 
   20932 # Checks for libraries.
   20933 
   20934 # libnss
   20935 USE_NSS="no"
   20936 
   20937 # Check whether --with-nss was given.
   20938 if test ${with_nss+y}
   20939 then :
   20940   withval=$with_nss;
   20941 	USE_NSS="yes"
   20942 
   20943 printf "%s\n" "#define HAVE_NSS 1" >>confdefs.h
   20944 
   20945 	if test "$withval" != "" -a "$withval" != "yes"; then
   20946 		CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
   20947 		LDFLAGS="$LDFLAGS -L$withval/lib"
   20948 
   20949 	if test "x$enable_rpath" = xyes; then
   20950 		if echo "$withval/lib" | grep "^/" >/dev/null; then
   20951 			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
   20952 		fi
   20953 	fi
   20954 
   20955 		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
   20956 	else
   20957 		CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
   20958 		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
   20959 	fi
   20960         LIBS="$LIBS -lnss3 -lnspr4"
   20961 	SSLLIB=""
   20962 	PC_CRYPTO_DEPENDENCY="nss nspr"
   20963 
   20964 
   20965 
   20966 fi
   20967 
   20968 
   20969 # libnettle
   20970 USE_NETTLE="no"
   20971 
   20972 # Check whether --with-nettle was given.
   20973 if test ${with_nettle+y}
   20974 then :
   20975   withval=$with_nettle;
   20976 	USE_NETTLE="yes"
   20977 
   20978 printf "%s\n" "#define HAVE_NETTLE 1" >>confdefs.h
   20979 
   20980 	ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
   20981 "
   20982 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes
   20983 then :
   20984   printf "%s\n" "#define HAVE_NETTLE_DSA_COMPAT_H 1" >>confdefs.h
   20985 
   20986 fi
   20987 
   20988 	if test "$withval" != "" -a "$withval" != "yes"; then
   20989 		CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
   20990 		LDFLAGS="$LDFLAGS -L$withval/lib"
   20991 
   20992 	if test "x$enable_rpath" = xyes; then
   20993 		if echo "$withval/lib" | grep "^/" >/dev/null; then
   20994 			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
   20995 		fi
   20996 	fi
   20997 
   20998 	else
   20999 		CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
   21000 	fi
   21001         LIBS="$LIBS -lhogweed -lnettle -lgmp"
   21002 	SSLLIB=""
   21003 	PC_CRYPTO_DEPENDENCY="hogweed nettle"
   21004 
   21005 
   21006 
   21007 fi
   21008 
   21009 
   21010 # openssl
   21011 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   21012 
   21013 
   21014 # Check whether --with-ssl was given.
   21015 if test ${with_ssl+y}
   21016 then :
   21017   withval=$with_ssl;
   21018 
   21019 else $as_nop
   21020 
   21021             withval="yes"
   21022 
   21023 fi
   21024 
   21025     if test x_$withval = x_no; then
   21026 	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
   21027     fi
   21028 
   21029     withval=$withval
   21030     if test x_$withval != x_no; then
   21031         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
   21032 printf %s "checking for SSL... " >&6; }
   21033 	if test -n "$withval"; then
   21034 										if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then
   21035 			ssldir="$withval"
   21036 			found_ssl="yes"
   21037 			withval=""
   21038 			ssldir_include="$ssldir"
   21039 						ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'`
   21040 			if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
   21041 				: # found here
   21042 			else
   21043 				ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'`
   21044 				if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
   21045 					: # found here
   21046 				else
   21047 					as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5
   21048 				fi
   21049 			fi
   21050 		fi
   21051 	fi
   21052         if test x_$withval = x_ -o x_$withval = x_yes; then
   21053             withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
   21054         fi
   21055         for dir in $withval; do
   21056             ssldir="$dir"
   21057             if test -f "$dir/include/openssl/ssl.h"; then
   21058                 found_ssl="yes"
   21059 		ssldir_include="$ssldir/include"
   21060 		if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
   21061 			ssldir_lib="$ssldir/lib64"
   21062 		else
   21063 			ssldir_lib="$ssldir/lib"
   21064 		fi
   21065                 break;
   21066             fi
   21067         done
   21068         if test x_$found_ssl != x_yes; then
   21069             as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
   21070         else
   21071             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
   21072 printf "%s\n" "found in $ssldir" >&6; }
   21073 
   21074 printf "%s\n" "#define HAVE_SSL /**/" >>confdefs.h
   21075 
   21076             HAVE_SSL=yes
   21077 	                if test "$ssldir" != "/usr"; then
   21078 		    CPPFLAGS="$CPPFLAGS -I$ssldir_include"
   21079 		    LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include"
   21080 		    LDFLAGS="$LDFLAGS -L$ssldir_lib"
   21081 		    LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib"
   21082 
   21083 	if test "x$enable_rpath" = xyes; then
   21084 		if echo "$ssldir_lib" | grep "^/" >/dev/null; then
   21085 			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib"
   21086 		fi
   21087 	fi
   21088 
   21089 	    fi
   21090 
   21091             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
   21092 printf %s "checking for EVP_sha256 in -lcrypto... " >&6; }
   21093             LIBS="$LIBS -lcrypto"
   21094             LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
   21095             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21096 /* end confdefs.h.  */
   21097 
   21098 int
   21099 main (void)
   21100 {
   21101 
   21102                 int EVP_sha256(void);
   21103                 (void)EVP_sha256();
   21104 
   21105   ;
   21106   return 0;
   21107 }
   21108 _ACEOF
   21109 if ac_fn_c_try_link "$LINENO"
   21110 then :
   21111 
   21112                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21113 printf "%s\n" "yes" >&6; }
   21114 
   21115 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
   21116 
   21117 
   21118 else $as_nop
   21119 
   21120                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21121 printf "%s\n" "no" >&6; }
   21122                 # check if -lwsock32 or -lgdi32 are needed.
   21123                 BAKLIBS="$LIBS"
   21124                 BAKSSLLIBS="$LIBSSL_LIBS"
   21125 		LIBS="$LIBS -lgdi32 -lws2_32"
   21126 		LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
   21127                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
   21128 printf %s "checking if -lcrypto needs -lgdi32... " >&6; }
   21129                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21130 /* end confdefs.h.  */
   21131 
   21132 int
   21133 main (void)
   21134 {
   21135 
   21136                     int EVP_sha256(void);
   21137                     (void)EVP_sha256();
   21138 
   21139   ;
   21140   return 0;
   21141 }
   21142 _ACEOF
   21143 if ac_fn_c_try_link "$LINENO"
   21144 then :
   21145 
   21146 
   21147 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
   21148 
   21149                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21150 printf "%s\n" "yes" >&6; }
   21151 
   21152 else $as_nop
   21153 
   21154                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21155 printf "%s\n" "no" >&6; }
   21156                     LIBS="$BAKLIBS"
   21157                     LIBSSL_LIBS="$BAKSSLLIBS"
   21158 
   21159 		    LIBS="$LIBS -lgdi32 -lws2_32 -lcrypt32"
   21160 		    LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32 -lcrypt32"
   21161                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32" >&5
   21162 printf %s "checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32... " >&6; }
   21163 		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21164 /* end confdefs.h.  */
   21165 
   21166 int
   21167 main (void)
   21168 {
   21169 
   21170 			int EVP_sha256(void);
   21171 			(void)EVP_sha256();
   21172 
   21173   ;
   21174   return 0;
   21175 }
   21176 _ACEOF
   21177 if ac_fn_c_try_link "$LINENO"
   21178 then :
   21179 
   21180 
   21181 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
   21182 
   21183 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21184 printf "%s\n" "yes" >&6; }
   21185 
   21186 else $as_nop
   21187 
   21188 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21189 printf "%s\n" "no" >&6; }
   21190 			LIBS="$BAKLIBS"
   21191 			LIBSSL_LIBS="$BAKSSLLIBS"
   21192 
   21193 			LIBS="$LIBS -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a"
   21194 			LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a"
   21195 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a" >&5
   21196 printf %s "checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a... " >&6; }
   21197 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21198 /* end confdefs.h.  */
   21199 
   21200 int
   21201 main (void)
   21202 {
   21203 
   21204 			    int EVP_sha256(void);
   21205 			    (void)EVP_sha256();
   21206 
   21207   ;
   21208   return 0;
   21209 }
   21210 _ACEOF
   21211 if ac_fn_c_try_link "$LINENO"
   21212 then :
   21213 
   21214 
   21215 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
   21216 
   21217 			    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21218 printf "%s\n" "yes" >&6; }
   21219 
   21220 else $as_nop
   21221 
   21222 			    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21223 printf "%s\n" "no" >&6; }
   21224 			    LIBS="$BAKLIBS"
   21225 			    LIBSSL_LIBS="$BAKSSLLIBS"
   21226 
   21227 			    LIBS="$LIBS -ldl"
   21228 			    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
   21229 			    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
   21230 printf %s "checking if -lcrypto needs -ldl... " >&6; }
   21231 			    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21232 /* end confdefs.h.  */
   21233 
   21234 int
   21235 main (void)
   21236 {
   21237 
   21238 				int EVP_sha256(void);
   21239 				(void)EVP_sha256();
   21240 
   21241   ;
   21242   return 0;
   21243 }
   21244 _ACEOF
   21245 if ac_fn_c_try_link "$LINENO"
   21246 then :
   21247 
   21248 
   21249 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
   21250 
   21251 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21252 printf "%s\n" "yes" >&6; }
   21253 
   21254 else $as_nop
   21255 
   21256 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21257 printf "%s\n" "no" >&6; }
   21258 				LIBS="$BAKLIBS"
   21259 				LIBSSL_LIBS="$BAKSSLLIBS"
   21260 				LIBS="$LIBS -ldl -pthread"
   21261 				LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
   21262 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
   21263 printf %s "checking if -lcrypto needs -ldl -pthread... " >&6; }
   21264 				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21265 /* end confdefs.h.  */
   21266 
   21267 int
   21268 main (void)
   21269 {
   21270 
   21271 				    int EVP_sha256(void);
   21272 				    (void)EVP_sha256();
   21273 
   21274   ;
   21275   return 0;
   21276 }
   21277 _ACEOF
   21278 if ac_fn_c_try_link "$LINENO"
   21279 then :
   21280 
   21281 
   21282 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
   21283 
   21284 				    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21285 printf "%s\n" "yes" >&6; }
   21286 
   21287 else $as_nop
   21288 
   21289 				    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21290 printf "%s\n" "no" >&6; }
   21291 				    as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
   21292 
   21293 fi
   21294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21295     conftest$ac_exeext conftest.$ac_ext
   21296 
   21297 fi
   21298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21299     conftest$ac_exeext conftest.$ac_ext
   21300 
   21301 fi
   21302 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21303     conftest$ac_exeext conftest.$ac_ext
   21304 
   21305 fi
   21306 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21307     conftest$ac_exeext conftest.$ac_ext
   21308 
   21309 fi
   21310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21311     conftest$ac_exeext conftest.$ac_ext
   21312 
   21313 fi
   21314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21315     conftest$ac_exeext conftest.$ac_ext
   21316         fi
   21317 
   21318 
   21319     fi
   21320 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
   21321 "
   21322 if test "x$ac_cv_header_openssl_ssl_h" = xyes
   21323 then :
   21324   printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
   21325 
   21326 fi
   21327 
   21328 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
   21329 "
   21330 if test "x$ac_cv_header_openssl_err_h" = xyes
   21331 then :
   21332   printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
   21333 
   21334 fi
   21335 
   21336 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
   21337 "
   21338 if test "x$ac_cv_header_openssl_rand_h" = xyes
   21339 then :
   21340   printf "%s\n" "#define HAVE_OPENSSL_RAND_H 1" >>confdefs.h
   21341 
   21342 fi
   21343 
   21344 
   21345 
   21346 
   21347 # check if libssl needs libdl
   21348 BAKLIBS="$LIBS"
   21349 LIBS="-lssl $LIBS"
   21350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
   21351 printf %s "checking if libssl needs libdl... " >&6; }
   21352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21353 /* end confdefs.h.  */
   21354 
   21355 /* Override any GCC internal prototype to avoid an error.
   21356    Use char because int might match the return type of a GCC
   21357    builtin and then its argument prototype would still apply.  */
   21358 char SSL_CTX_new ();
   21359 int
   21360 main (void)
   21361 {
   21362 return SSL_CTX_new ();
   21363   ;
   21364   return 0;
   21365 }
   21366 _ACEOF
   21367 if ac_fn_c_try_link "$LINENO"
   21368 then :
   21369 
   21370 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21371 printf "%s\n" "no" >&6; }
   21372 	LIBS="$BAKLIBS"
   21373 
   21374 else $as_nop
   21375 
   21376 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21377 printf "%s\n" "yes" >&6; }
   21378 	LIBS="$BAKLIBS"
   21379 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   21380 printf %s "checking for library containing dlopen... " >&6; }
   21381 if test ${ac_cv_search_dlopen+y}
   21382 then :
   21383   printf %s "(cached) " >&6
   21384 else $as_nop
   21385   ac_func_search_save_LIBS=$LIBS
   21386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21387 /* end confdefs.h.  */
   21388 
   21389 /* Override any GCC internal prototype to avoid an error.
   21390    Use char because int might match the return type of a GCC
   21391    builtin and then its argument prototype would still apply.  */
   21392 char dlopen ();
   21393 int
   21394 main (void)
   21395 {
   21396 return dlopen ();
   21397   ;
   21398   return 0;
   21399 }
   21400 _ACEOF
   21401 for ac_lib in '' dl
   21402 do
   21403   if test -z "$ac_lib"; then
   21404     ac_res="none required"
   21405   else
   21406     ac_res=-l$ac_lib
   21407     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   21408   fi
   21409   if ac_fn_c_try_link "$LINENO"
   21410 then :
   21411   ac_cv_search_dlopen=$ac_res
   21412 fi
   21413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21414     conftest$ac_exeext
   21415   if test ${ac_cv_search_dlopen+y}
   21416 then :
   21417   break
   21418 fi
   21419 done
   21420 if test ${ac_cv_search_dlopen+y}
   21421 then :
   21422 
   21423 else $as_nop
   21424   ac_cv_search_dlopen=no
   21425 fi
   21426 rm conftest.$ac_ext
   21427 LIBS=$ac_func_search_save_LIBS
   21428 fi
   21429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   21430 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
   21431 ac_res=$ac_cv_search_dlopen
   21432 if test "$ac_res" != no
   21433 then :
   21434   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   21435 
   21436 fi
   21437 
   21438 
   21439 fi
   21440 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21441     conftest$ac_exeext conftest.$ac_ext
   21442 SSLLIB="-lssl"
   21443 
   21444 PC_CRYPTO_DEPENDENCY=""
   21445 
   21446 
   21447 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
   21448 BAKLIBS="$LIBS"
   21449 LIBS="-lssl $LIBS"
   21450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
   21451 printf %s "checking if libssl needs -lcrypt32... " >&6; }
   21452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21453 /* end confdefs.h.  */
   21454 
   21455 int
   21456 main (void)
   21457 {
   21458 
   21459 	int EVP_sha256(void);
   21460 	(void)EVP_sha256();
   21461 
   21462   ;
   21463   return 0;
   21464 }
   21465 _ACEOF
   21466 if ac_fn_c_try_link "$LINENO"
   21467 then :
   21468 
   21469 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21470 printf "%s\n" "no" >&6; }
   21471 	LIBS="$BAKLIBS"
   21472 
   21473 else $as_nop
   21474 
   21475 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21476 printf "%s\n" "yes" >&6; }
   21477 	LIBS="$BAKLIBS"
   21478 	LIBS="$LIBS -lcrypt32"
   21479 
   21480 fi
   21481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   21482     conftest$ac_exeext conftest.$ac_ext
   21483 
   21484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
   21485 printf %s "checking for LibreSSL... " >&6; }
   21486 if grep VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
   21487 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21488 printf "%s\n" "yes" >&6; }
   21489 
   21490 printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
   21491 
   21492 	# libressl provides these compat functions, but they may also be
   21493 	# declared by the OS in libc.  See if they have been declared.
   21494 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
   21495 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
   21496 if test ${ac_cv_c_undeclared_builtin_options+y}
   21497 then :
   21498   printf %s "(cached) " >&6
   21499 else $as_nop
   21500   ac_save_CFLAGS=$CFLAGS
   21501    ac_cv_c_undeclared_builtin_options='cannot detect'
   21502    for ac_arg in '' -fno-builtin; do
   21503      CFLAGS="$ac_save_CFLAGS $ac_arg"
   21504      # This test program should *not* compile successfully.
   21505      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21506 /* end confdefs.h.  */
   21507 
   21508 int
   21509 main (void)
   21510 {
   21511 (void) strchr;
   21512   ;
   21513   return 0;
   21514 }
   21515 _ACEOF
   21516 if ac_fn_c_try_compile "$LINENO"
   21517 then :
   21518 
   21519 else $as_nop
   21520   # This test program should compile successfully.
   21521         # No library function is consistently available on
   21522         # freestanding implementations, so test against a dummy
   21523         # declaration.  Include always-available headers on the
   21524         # off chance that they somehow elicit warnings.
   21525         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21526 /* end confdefs.h.  */
   21527 #include <float.h>
   21528 #include <limits.h>
   21529 #include <stdarg.h>
   21530 #include <stddef.h>
   21531 extern void ac_decl (int, char *);
   21532 
   21533 int
   21534 main (void)
   21535 {
   21536 (void) ac_decl (0, (char *) 0);
   21537   (void) ac_decl;
   21538 
   21539   ;
   21540   return 0;
   21541 }
   21542 _ACEOF
   21543 if ac_fn_c_try_compile "$LINENO"
   21544 then :
   21545   if test x"$ac_arg" = x
   21546 then :
   21547   ac_cv_c_undeclared_builtin_options='none needed'
   21548 else $as_nop
   21549   ac_cv_c_undeclared_builtin_options=$ac_arg
   21550 fi
   21551           break
   21552 fi
   21553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   21554 fi
   21555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   21556     done
   21557     CFLAGS=$ac_save_CFLAGS
   21558 
   21559 fi
   21560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
   21561 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
   21562   case $ac_cv_c_undeclared_builtin_options in #(
   21563   'cannot detect') :
   21564     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   21565 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   21566 as_fn_error $? "cannot make $CC report undeclared builtins
   21567 See \`config.log' for more details" "$LINENO" 5; } ;; #(
   21568   'none needed') :
   21569     ac_c_undeclared_builtin_options='' ;; #(
   21570   *) :
   21571     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
   21572 esac
   21573 
   21574 ac_fn_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
   21575 if test "x$ac_cv_have_decl_strlcpy" = xyes
   21576 then :
   21577   ac_have_decl=1
   21578 else $as_nop
   21579   ac_have_decl=0
   21580 fi
   21581 printf "%s\n" "#define HAVE_DECL_STRLCPY $ac_have_decl" >>confdefs.h
   21582 ac_fn_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
   21583 if test "x$ac_cv_have_decl_strlcat" = xyes
   21584 then :
   21585   ac_have_decl=1
   21586 else $as_nop
   21587   ac_have_decl=0
   21588 fi
   21589 printf "%s\n" "#define HAVE_DECL_STRLCAT $ac_have_decl" >>confdefs.h
   21590 ac_fn_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
   21591 if test "x$ac_cv_have_decl_arc4random" = xyes
   21592 then :
   21593   ac_have_decl=1
   21594 else $as_nop
   21595   ac_have_decl=0
   21596 fi
   21597 printf "%s\n" "#define HAVE_DECL_ARC4RANDOM $ac_have_decl" >>confdefs.h
   21598 ac_fn_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
   21599 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes
   21600 then :
   21601   ac_have_decl=1
   21602 else $as_nop
   21603   ac_have_decl=0
   21604 fi
   21605 printf "%s\n" "#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl" >>confdefs.h
   21606 
   21607 else
   21608 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21609 printf "%s\n" "no" >&6; }
   21610 fi
   21611 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
   21612 "
   21613 if test "x$ac_cv_header_openssl_conf_h" = xyes
   21614 then :
   21615   printf "%s\n" "#define HAVE_OPENSSL_CONF_H 1" >>confdefs.h
   21616 
   21617 fi
   21618 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
   21619 "
   21620 if test "x$ac_cv_header_openssl_engine_h" = xyes
   21621 then :
   21622   printf "%s\n" "#define HAVE_OPENSSL_ENGINE_H 1" >>confdefs.h
   21623 
   21624 fi
   21625 ac_fn_c_check_header_compile "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default
   21626 "
   21627 if test "x$ac_cv_header_openssl_bn_h" = xyes
   21628 then :
   21629   printf "%s\n" "#define HAVE_OPENSSL_BN_H 1" >>confdefs.h
   21630 
   21631 fi
   21632 ac_fn_c_check_header_compile "$LINENO" "openssl/dh.h" "ac_cv_header_openssl_dh_h" "$ac_includes_default
   21633 "
   21634 if test "x$ac_cv_header_openssl_dh_h" = xyes
   21635 then :
   21636   printf "%s\n" "#define HAVE_OPENSSL_DH_H 1" >>confdefs.h
   21637 
   21638 fi
   21639 ac_fn_c_check_header_compile "$LINENO" "openssl/dsa.h" "ac_cv_header_openssl_dsa_h" "$ac_includes_default
   21640 "
   21641 if test "x$ac_cv_header_openssl_dsa_h" = xyes
   21642 then :
   21643   printf "%s\n" "#define HAVE_OPENSSL_DSA_H 1" >>confdefs.h
   21644 
   21645 fi
   21646 ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default
   21647 "
   21648 if test "x$ac_cv_header_openssl_rsa_h" = xyes
   21649 then :
   21650   printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h
   21651 
   21652 fi
   21653 ac_fn_c_check_header_compile "$LINENO" "openssl/core_names.h" "ac_cv_header_openssl_core_names_h" "$ac_includes_default
   21654 "
   21655 if test "x$ac_cv_header_openssl_core_names_h" = xyes
   21656 then :
   21657   printf "%s\n" "#define HAVE_OPENSSL_CORE_NAMES_H 1" >>confdefs.h
   21658 
   21659 fi
   21660 ac_fn_c_check_header_compile "$LINENO" "openssl/param_build.h" "ac_cv_header_openssl_param_build_h" "$ac_includes_default
   21661 "
   21662 if test "x$ac_cv_header_openssl_param_build_h" = xyes
   21663 then :
   21664   printf "%s\n" "#define HAVE_OPENSSL_PARAM_BUILD_H 1" >>confdefs.h
   21665 
   21666 fi
   21667 
   21668 ac_fn_c_check_func "$LINENO" "OPENSSL_config" "ac_cv_func_OPENSSL_config"
   21669 if test "x$ac_cv_func_OPENSSL_config" = xyes
   21670 then :
   21671   printf "%s\n" "#define HAVE_OPENSSL_CONFIG 1" >>confdefs.h
   21672 
   21673 fi
   21674 ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
   21675 if test "x$ac_cv_func_EVP_sha1" = xyes
   21676 then :
   21677   printf "%s\n" "#define HAVE_EVP_SHA1 1" >>confdefs.h
   21678 
   21679 fi
   21680 ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
   21681 if test "x$ac_cv_func_EVP_sha256" = xyes
   21682 then :
   21683   printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
   21684 
   21685 fi
   21686 ac_fn_c_check_func "$LINENO" "EVP_sha512" "ac_cv_func_EVP_sha512"
   21687 if test "x$ac_cv_func_EVP_sha512" = xyes
   21688 then :
   21689   printf "%s\n" "#define HAVE_EVP_SHA512 1" >>confdefs.h
   21690 
   21691 fi
   21692 ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
   21693 if test "x$ac_cv_func_FIPS_mode" = xyes
   21694 then :
   21695   printf "%s\n" "#define HAVE_FIPS_MODE 1" >>confdefs.h
   21696 
   21697 fi
   21698 ac_fn_c_check_func "$LINENO" "EVP_default_properties_is_fips_enabled" "ac_cv_func_EVP_default_properties_is_fips_enabled"
   21699 if test "x$ac_cv_func_EVP_default_properties_is_fips_enabled" = xyes
   21700 then :
   21701   printf "%s\n" "#define HAVE_EVP_DEFAULT_PROPERTIES_IS_FIPS_ENABLED 1" >>confdefs.h
   21702 
   21703 fi
   21704 ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_new" "ac_cv_func_EVP_MD_CTX_new"
   21705 if test "x$ac_cv_func_EVP_MD_CTX_new" = xyes
   21706 then :
   21707   printf "%s\n" "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h
   21708 
   21709 fi
   21710 ac_fn_c_check_func "$LINENO" "OpenSSL_add_all_digests" "ac_cv_func_OpenSSL_add_all_digests"
   21711 if test "x$ac_cv_func_OpenSSL_add_all_digests" = xyes
   21712 then :
   21713   printf "%s\n" "#define HAVE_OPENSSL_ADD_ALL_DIGESTS 1" >>confdefs.h
   21714 
   21715 fi
   21716 ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto"
   21717 if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes
   21718 then :
   21719   printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h
   21720 
   21721 fi
   21722 ac_fn_c_check_func "$LINENO" "EVP_cleanup" "ac_cv_func_EVP_cleanup"
   21723 if test "x$ac_cv_func_EVP_cleanup" = xyes
   21724 then :
   21725   printf "%s\n" "#define HAVE_EVP_CLEANUP 1" >>confdefs.h
   21726 
   21727 fi
   21728 ac_fn_c_check_func "$LINENO" "ENGINE_cleanup" "ac_cv_func_ENGINE_cleanup"
   21729 if test "x$ac_cv_func_ENGINE_cleanup" = xyes
   21730 then :
   21731   printf "%s\n" "#define HAVE_ENGINE_CLEANUP 1" >>confdefs.h
   21732 
   21733 fi
   21734 ac_fn_c_check_func "$LINENO" "ERR_load_crypto_strings" "ac_cv_func_ERR_load_crypto_strings"
   21735 if test "x$ac_cv_func_ERR_load_crypto_strings" = xyes
   21736 then :
   21737   printf "%s\n" "#define HAVE_ERR_LOAD_CRYPTO_STRINGS 1" >>confdefs.h
   21738 
   21739 fi
   21740 ac_fn_c_check_func "$LINENO" "CRYPTO_cleanup_all_ex_data" "ac_cv_func_CRYPTO_cleanup_all_ex_data"
   21741 if test "x$ac_cv_func_CRYPTO_cleanup_all_ex_data" = xyes
   21742 then :
   21743   printf "%s\n" "#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1" >>confdefs.h
   21744 
   21745 fi
   21746 ac_fn_c_check_func "$LINENO" "ERR_free_strings" "ac_cv_func_ERR_free_strings"
   21747 if test "x$ac_cv_func_ERR_free_strings" = xyes
   21748 then :
   21749   printf "%s\n" "#define HAVE_ERR_FREE_STRINGS 1" >>confdefs.h
   21750 
   21751 fi
   21752 ac_fn_c_check_func "$LINENO" "RAND_cleanup" "ac_cv_func_RAND_cleanup"
   21753 if test "x$ac_cv_func_RAND_cleanup" = xyes
   21754 then :
   21755   printf "%s\n" "#define HAVE_RAND_CLEANUP 1" >>confdefs.h
   21756 
   21757 fi
   21758 ac_fn_c_check_func "$LINENO" "DSA_SIG_set0" "ac_cv_func_DSA_SIG_set0"
   21759 if test "x$ac_cv_func_DSA_SIG_set0" = xyes
   21760 then :
   21761   printf "%s\n" "#define HAVE_DSA_SIG_SET0 1" >>confdefs.h
   21762 
   21763 fi
   21764 ac_fn_c_check_func "$LINENO" "EVP_dss1" "ac_cv_func_EVP_dss1"
   21765 if test "x$ac_cv_func_EVP_dss1" = xyes
   21766 then :
   21767   printf "%s\n" "#define HAVE_EVP_DSS1 1" >>confdefs.h
   21768 
   21769 fi
   21770 ac_fn_c_check_func "$LINENO" "EVP_DigestVerify" "ac_cv_func_EVP_DigestVerify"
   21771 if test "x$ac_cv_func_EVP_DigestVerify" = xyes
   21772 then :
   21773   printf "%s\n" "#define HAVE_EVP_DIGESTVERIFY 1" >>confdefs.h
   21774 
   21775 fi
   21776 ac_fn_c_check_func "$LINENO" "EVP_aes_256_cbc" "ac_cv_func_EVP_aes_256_cbc"
   21777 if test "x$ac_cv_func_EVP_aes_256_cbc" = xyes
   21778 then :
   21779   printf "%s\n" "#define HAVE_EVP_AES_256_CBC 1" >>confdefs.h
   21780 
   21781 fi
   21782 ac_fn_c_check_func "$LINENO" "EVP_EncryptInit_ex" "ac_cv_func_EVP_EncryptInit_ex"
   21783 if test "x$ac_cv_func_EVP_EncryptInit_ex" = xyes
   21784 then :
   21785   printf "%s\n" "#define HAVE_EVP_ENCRYPTINIT_EX 1" >>confdefs.h
   21786 
   21787 fi
   21788 ac_fn_c_check_func "$LINENO" "HMAC_Init_ex" "ac_cv_func_HMAC_Init_ex"
   21789 if test "x$ac_cv_func_HMAC_Init_ex" = xyes
   21790 then :
   21791   printf "%s\n" "#define HAVE_HMAC_INIT_EX 1" >>confdefs.h
   21792 
   21793 fi
   21794 ac_fn_c_check_func "$LINENO" "CRYPTO_THREADID_set_callback" "ac_cv_func_CRYPTO_THREADID_set_callback"
   21795 if test "x$ac_cv_func_CRYPTO_THREADID_set_callback" = xyes
   21796 then :
   21797   printf "%s\n" "#define HAVE_CRYPTO_THREADID_SET_CALLBACK 1" >>confdefs.h
   21798 
   21799 fi
   21800 ac_fn_c_check_func "$LINENO" "EVP_MAC_CTX_set_params" "ac_cv_func_EVP_MAC_CTX_set_params"
   21801 if test "x$ac_cv_func_EVP_MAC_CTX_set_params" = xyes
   21802 then :
   21803   printf "%s\n" "#define HAVE_EVP_MAC_CTX_SET_PARAMS 1" >>confdefs.h
   21804 
   21805 fi
   21806 ac_fn_c_check_func "$LINENO" "OSSL_PARAM_BLD_new" "ac_cv_func_OSSL_PARAM_BLD_new"
   21807 if test "x$ac_cv_func_OSSL_PARAM_BLD_new" = xyes
   21808 then :
   21809   printf "%s\n" "#define HAVE_OSSL_PARAM_BLD_NEW 1" >>confdefs.h
   21810 
   21811 fi
   21812 ac_fn_c_check_func "$LINENO" "BIO_set_callback_ex" "ac_cv_func_BIO_set_callback_ex"
   21813 if test "x$ac_cv_func_BIO_set_callback_ex" = xyes
   21814 then :
   21815   printf "%s\n" "#define HAVE_BIO_SET_CALLBACK_EX 1" >>confdefs.h
   21816 
   21817 fi
   21818 
   21819 
   21820 # these check_funcs need -lssl
   21821 BAKLIBS="$LIBS"
   21822 LIBS="-lssl $LIBS"
   21823 ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
   21824 if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes
   21825 then :
   21826   printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h
   21827 
   21828 fi
   21829 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_security_level" "ac_cv_func_SSL_CTX_set_security_level"
   21830 if test "x$ac_cv_func_SSL_CTX_set_security_level" = xyes
   21831 then :
   21832   printf "%s\n" "#define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1" >>confdefs.h
   21833 
   21834 fi
   21835 ac_fn_c_check_func "$LINENO" "SSL_set1_host" "ac_cv_func_SSL_set1_host"
   21836 if test "x$ac_cv_func_SSL_set1_host" = xyes
   21837 then :
   21838   printf "%s\n" "#define HAVE_SSL_SET1_HOST 1" >>confdefs.h
   21839 
   21840 fi
   21841 ac_fn_c_check_func "$LINENO" "SSL_get0_peername" "ac_cv_func_SSL_get0_peername"
   21842 if test "x$ac_cv_func_SSL_get0_peername" = xyes
   21843 then :
   21844   printf "%s\n" "#define HAVE_SSL_GET0_PEERNAME 1" >>confdefs.h
   21845 
   21846 fi
   21847 ac_fn_c_check_func "$LINENO" "X509_VERIFY_PARAM_set1_host" "ac_cv_func_X509_VERIFY_PARAM_set1_host"
   21848 if test "x$ac_cv_func_X509_VERIFY_PARAM_set1_host" = xyes
   21849 then :
   21850   printf "%s\n" "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h
   21851 
   21852 fi
   21853 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_ciphersuites" "ac_cv_func_SSL_CTX_set_ciphersuites"
   21854 if test "x$ac_cv_func_SSL_CTX_set_ciphersuites" = xyes
   21855 then :
   21856   printf "%s\n" "#define HAVE_SSL_CTX_SET_CIPHERSUITES 1" >>confdefs.h
   21857 
   21858 fi
   21859 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_tlsext_ticket_key_evp_cb" "ac_cv_func_SSL_CTX_set_tlsext_ticket_key_evp_cb"
   21860 if test "x$ac_cv_func_SSL_CTX_set_tlsext_ticket_key_evp_cb" = xyes
   21861 then :
   21862   printf "%s\n" "#define HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB 1" >>confdefs.h
   21863 
   21864 fi
   21865 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_alpn_select_cb" "ac_cv_func_SSL_CTX_set_alpn_select_cb"
   21866 if test "x$ac_cv_func_SSL_CTX_set_alpn_select_cb" = xyes
   21867 then :
   21868   printf "%s\n" "#define HAVE_SSL_CTX_SET_ALPN_SELECT_CB 1" >>confdefs.h
   21869 
   21870 fi
   21871 ac_fn_c_check_func "$LINENO" "SSL_get0_alpn_selected" "ac_cv_func_SSL_get0_alpn_selected"
   21872 if test "x$ac_cv_func_SSL_get0_alpn_selected" = xyes
   21873 then :
   21874   printf "%s\n" "#define HAVE_SSL_GET0_ALPN_SELECTED 1" >>confdefs.h
   21875 
   21876 fi
   21877 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_alpn_protos" "ac_cv_func_SSL_CTX_set_alpn_protos"
   21878 if test "x$ac_cv_func_SSL_CTX_set_alpn_protos" = xyes
   21879 then :
   21880   printf "%s\n" "#define HAVE_SSL_CTX_SET_ALPN_PROTOS 1" >>confdefs.h
   21881 
   21882 fi
   21883 ac_fn_c_check_func "$LINENO" "SSL_get1_peer_certificate" "ac_cv_func_SSL_get1_peer_certificate"
   21884 if test "x$ac_cv_func_SSL_get1_peer_certificate" = xyes
   21885 then :
   21886   printf "%s\n" "#define HAVE_SSL_GET1_PEER_CERTIFICATE 1" >>confdefs.h
   21887 
   21888 fi
   21889 
   21890 LIBS="$BAKLIBS"
   21891 
   21892 ac_fn_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
   21893 $ac_includes_default
   21894 #ifdef HAVE_OPENSSL_ERR_H
   21895 #include <openssl/err.h>
   21896 #endif
   21897 
   21898 #ifdef HAVE_OPENSSL_RAND_H
   21899 #include <openssl/rand.h>
   21900 #endif
   21901 
   21902 #ifdef HAVE_OPENSSL_CONF_H
   21903 #include <openssl/conf.h>
   21904 #endif
   21905 
   21906 #ifdef HAVE_OPENSSL_ENGINE_H
   21907 #include <openssl/engine.h>
   21908 #endif
   21909 #include <openssl/ssl.h>
   21910 #include <openssl/evp.h>
   21911 
   21912 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   21913 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes
   21914 then :
   21915   ac_have_decl=1
   21916 else $as_nop
   21917   ac_have_decl=0
   21918 fi
   21919 printf "%s\n" "#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl" >>confdefs.h
   21920 ac_fn_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
   21921 $ac_includes_default
   21922 #ifdef HAVE_OPENSSL_ERR_H
   21923 #include <openssl/err.h>
   21924 #endif
   21925 
   21926 #ifdef HAVE_OPENSSL_RAND_H
   21927 #include <openssl/rand.h>
   21928 #endif
   21929 
   21930 #ifdef HAVE_OPENSSL_CONF_H
   21931 #include <openssl/conf.h>
   21932 #endif
   21933 
   21934 #ifdef HAVE_OPENSSL_ENGINE_H
   21935 #include <openssl/engine.h>
   21936 #endif
   21937 #include <openssl/ssl.h>
   21938 #include <openssl/evp.h>
   21939 
   21940 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   21941 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes
   21942 then :
   21943   ac_have_decl=1
   21944 else $as_nop
   21945   ac_have_decl=0
   21946 fi
   21947 printf "%s\n" "#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl" >>confdefs.h
   21948 ac_fn_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
   21949 $ac_includes_default
   21950 #ifdef HAVE_OPENSSL_ERR_H
   21951 #include <openssl/err.h>
   21952 #endif
   21953 
   21954 #ifdef HAVE_OPENSSL_RAND_H
   21955 #include <openssl/rand.h>
   21956 #endif
   21957 
   21958 #ifdef HAVE_OPENSSL_CONF_H
   21959 #include <openssl/conf.h>
   21960 #endif
   21961 
   21962 #ifdef HAVE_OPENSSL_ENGINE_H
   21963 #include <openssl/engine.h>
   21964 #endif
   21965 #include <openssl/ssl.h>
   21966 #include <openssl/evp.h>
   21967 
   21968 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   21969 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes
   21970 then :
   21971   ac_have_decl=1
   21972 else $as_nop
   21973   ac_have_decl=0
   21974 fi
   21975 printf "%s\n" "#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl" >>confdefs.h
   21976 ac_fn_check_decl "$LINENO" "SSL_CTX_set_tmp_ecdh" "ac_cv_have_decl_SSL_CTX_set_tmp_ecdh" "
   21977 $ac_includes_default
   21978 #ifdef HAVE_OPENSSL_ERR_H
   21979 #include <openssl/err.h>
   21980 #endif
   21981 
   21982 #ifdef HAVE_OPENSSL_RAND_H
   21983 #include <openssl/rand.h>
   21984 #endif
   21985 
   21986 #ifdef HAVE_OPENSSL_CONF_H
   21987 #include <openssl/conf.h>
   21988 #endif
   21989 
   21990 #ifdef HAVE_OPENSSL_ENGINE_H
   21991 #include <openssl/engine.h>
   21992 #endif
   21993 #include <openssl/ssl.h>
   21994 #include <openssl/evp.h>
   21995 
   21996 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   21997 if test "x$ac_cv_have_decl_SSL_CTX_set_tmp_ecdh" = xyes
   21998 then :
   21999   ac_have_decl=1
   22000 else $as_nop
   22001   ac_have_decl=0
   22002 fi
   22003 printf "%s\n" "#define HAVE_DECL_SSL_CTX_SET_TMP_ECDH $ac_have_decl" >>confdefs.h
   22004 
   22005 
   22006 if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
   22007 # check function return type.
   22008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
   22009 printf %s "checking the return type of HMAC_Init_ex... " >&6; }
   22010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22011 /* end confdefs.h.  */
   22012 
   22013 #ifdef HAVE_OPENSSL_ERR_H
   22014 #include <openssl/err.h>
   22015 #endif
   22016 
   22017 #ifdef HAVE_OPENSSL_RAND_H
   22018 #include <openssl/rand.h>
   22019 #endif
   22020 
   22021 #ifdef HAVE_OPENSSL_CONF_H
   22022 #include <openssl/conf.h>
   22023 #endif
   22024 
   22025 #ifdef HAVE_OPENSSL_ENGINE_H
   22026 #include <openssl/engine.h>
   22027 #endif
   22028 #include <openssl/ssl.h>
   22029 #include <openssl/evp.h>
   22030 
   22031 int
   22032 main (void)
   22033 {
   22034 
   22035 	HMAC_CTX* hmac_ctx = NULL;
   22036 	void* hmac_key = NULL;
   22037 	const EVP_MD* digest = NULL;
   22038 	int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
   22039 	(void)x;
   22040 
   22041   ;
   22042   return 0;
   22043 }
   22044 _ACEOF
   22045 if ac_fn_c_try_compile "$LINENO"
   22046 then :
   22047 
   22048 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5
   22049 printf "%s\n" "int" >&6; }
   22050 
   22051 else $as_nop
   22052 
   22053 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: void" >&5
   22054 printf "%s\n" "void" >&6; }
   22055 
   22056 printf "%s\n" "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
   22057 
   22058 
   22059 fi
   22060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   22061 fi
   22062 
   22063 fi
   22064 
   22065 
   22066 # libbsd
   22067 
   22068 # Check whether --with-libbsd was given.
   22069 if test ${with_libbsd+y}
   22070 then :
   22071   withval=$with_libbsd;
   22072 	ac_fn_c_check_header_compile "$LINENO" "bsd/string.h" "ac_cv_header_bsd_string_h" "$ac_includes_default
   22073 "
   22074 if test "x$ac_cv_header_bsd_string_h" = xyes
   22075 then :
   22076   printf "%s\n" "#define HAVE_BSD_STRING_H 1" >>confdefs.h
   22077 
   22078 fi
   22079 ac_fn_c_check_header_compile "$LINENO" "bsd/stdlib.h" "ac_cv_header_bsd_stdlib_h" "$ac_includes_default
   22080 "
   22081 if test "x$ac_cv_header_bsd_stdlib_h" = xyes
   22082 then :
   22083   printf "%s\n" "#define HAVE_BSD_STDLIB_H 1" >>confdefs.h
   22084 
   22085 fi
   22086 
   22087 	if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
   22088 		for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do
   22089 			as_ac_Search=`printf "%s\n" "ac_cv_search_$func" | $as_tr_sh`
   22090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
   22091 printf %s "checking for library containing $func... " >&6; }
   22092 if eval test \${$as_ac_Search+y}
   22093 then :
   22094   printf %s "(cached) " >&6
   22095 else $as_nop
   22096   ac_func_search_save_LIBS=$LIBS
   22097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22098 /* end confdefs.h.  */
   22099 
   22100 /* Override any GCC internal prototype to avoid an error.
   22101    Use char because int might match the return type of a GCC
   22102    builtin and then its argument prototype would still apply.  */
   22103 char $func ();
   22104 int
   22105 main (void)
   22106 {
   22107 return $func ();
   22108   ;
   22109   return 0;
   22110 }
   22111 _ACEOF
   22112 for ac_lib in '' bsd
   22113 do
   22114   if test -z "$ac_lib"; then
   22115     ac_res="none required"
   22116   else
   22117     ac_res=-l$ac_lib
   22118     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   22119   fi
   22120   if ac_fn_c_try_link "$LINENO"
   22121 then :
   22122   eval "$as_ac_Search=\$ac_res"
   22123 fi
   22124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   22125     conftest$ac_exeext
   22126   if eval test \${$as_ac_Search+y}
   22127 then :
   22128   break
   22129 fi
   22130 done
   22131 if eval test \${$as_ac_Search+y}
   22132 then :
   22133 
   22134 else $as_nop
   22135   eval "$as_ac_Search=no"
   22136 fi
   22137 rm conftest.$ac_ext
   22138 LIBS=$ac_func_search_save_LIBS
   22139 fi
   22140 eval ac_res=\$$as_ac_Search
   22141 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   22142 printf "%s\n" "$ac_res" >&6; }
   22143 eval ac_res=\$$as_ac_Search
   22144 if test "$ac_res" != no
   22145 then :
   22146   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   22147 
   22148 
   22149 printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h
   22150 
   22151 				PC_LIBBSD_DEPENDENCY=libbsd
   22152 
   22153 
   22154 fi
   22155 
   22156 		done
   22157 	fi
   22158 
   22159 fi
   22160 
   22161 
   22162 # Check whether --enable-sha1 was given.
   22163 if test ${enable_sha1+y}
   22164 then :
   22165   enableval=$enable_sha1;
   22166 fi
   22167 
   22168 case "$enable_sha1" in
   22169 	no)
   22170 	;;
   22171 	yes|*)
   22172 
   22173 printf "%s\n" "#define USE_SHA1 1" >>confdefs.h
   22174 
   22175 	;;
   22176 esac
   22177 
   22178 
   22179 # Check whether --enable-sha2 was given.
   22180 if test ${enable_sha2+y}
   22181 then :
   22182   enableval=$enable_sha2;
   22183 fi
   22184 
   22185 case "$enable_sha2" in
   22186 	no)
   22187 	;;
   22188 	yes|*)
   22189 
   22190 printf "%s\n" "#define USE_SHA2 1" >>confdefs.h
   22191 
   22192 	;;
   22193 esac
   22194 
   22195 # Check whether --enable-subnet was given.
   22196 if test ${enable_subnet+y}
   22197 then :
   22198   enableval=$enable_subnet;
   22199 fi
   22200 
   22201 case "$enable_subnet" in
   22202 	yes)
   22203 
   22204 printf "%s\n" "#define CLIENT_SUBNET 1" >>confdefs.h
   22205 
   22206 	SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
   22207 
   22208 	SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
   22209 
   22210 	;;
   22211 	no|*)
   22212 	;;
   22213 esac
   22214 
   22215 # check whether gost also works
   22216 
   22217 # Check whether --enable-gost was given.
   22218 if test ${enable_gost+y}
   22219 then :
   22220   enableval=$enable_gost;
   22221 fi
   22222 
   22223 use_gost="no"
   22224 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   22225 case "$enable_gost" in
   22226 	no)
   22227 	;;
   22228 	*)
   22229 	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
   22230 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes
   22231 then :
   22232   :
   22233 else $as_nop
   22234   as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
   22235 fi
   22236 
   22237 	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
   22238 if test "x$ac_cv_func_EC_KEY_new" = xyes
   22239 then :
   22240 
   22241 else $as_nop
   22242   as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
   22243 fi
   22244 
   22245 
   22246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
   22247 printf %s "checking if GOST works... " >&6; }
   22248 if test c${cross_compiling} = cno; then
   22249 BAKCFLAGS="$CFLAGS"
   22250 if test -n "$ssldir"; then
   22251 	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib"
   22252 fi
   22253 if test "$cross_compiling" = yes
   22254 then :
   22255   eval "ac_cv_c_gost_works=maybe"
   22256 else $as_nop
   22257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22258 /* end confdefs.h.  */
   22259 
   22260 #include <string.h>
   22261 #include <openssl/ssl.h>
   22262 #include <openssl/evp.h>
   22263 #include <openssl/engine.h>
   22264 #include <openssl/conf.h>
   22265 /* routine to load gost (from sldns) */
   22266 int load_gost_id(void)
   22267 {
   22268 	static int gost_id = 0;
   22269 	const EVP_PKEY_ASN1_METHOD* meth;
   22270 	ENGINE* e;
   22271 
   22272 	if(gost_id) return gost_id;
   22273 
   22274 	/* see if configuration loaded gost implementation from other engine*/
   22275 	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
   22276 	if(meth) {
   22277 		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
   22278 		return gost_id;
   22279 	}
   22280 
   22281 	/* see if engine can be loaded already */
   22282 	e = ENGINE_by_id("gost");
   22283 	if(!e) {
   22284 		/* load it ourself, in case statically linked */
   22285 		ENGINE_load_builtin_engines();
   22286 		ENGINE_load_dynamic();
   22287 		e = ENGINE_by_id("gost");
   22288 	}
   22289 	if(!e) {
   22290 		/* no gost engine in openssl */
   22291 		return 0;
   22292 	}
   22293 	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
   22294 		ENGINE_finish(e);
   22295 		ENGINE_free(e);
   22296 		return 0;
   22297 	}
   22298 
   22299 	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
   22300 	if(!meth) {
   22301 		/* algo not found */
   22302 		ENGINE_finish(e);
   22303 		ENGINE_free(e);
   22304 		return 0;
   22305 	}
   22306 	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
   22307 	return gost_id;
   22308 }
   22309 int main(void) {
   22310 	EVP_MD_CTX* ctx;
   22311 	const EVP_MD* md;
   22312 	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
   22313 	const char* str = "Hello world";
   22314 	const unsigned char check[] = {
   22315 		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
   22316 		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
   22317 		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
   22318 		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
   22319 	};
   22320 	OPENSSL_config(NULL);
   22321 	(void)load_gost_id();
   22322 	md = EVP_get_digestbyname("md_gost94");
   22323 	if(!md) return 1;
   22324 	memset(digest, 0, sizeof(digest));
   22325 	ctx = EVP_MD_CTX_create();
   22326 	if(!ctx) return 2;
   22327 	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
   22328 	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
   22329 	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
   22330 	/* uncomment to see the hash calculated.
   22331 		{int i;
   22332 		for(i=0; i<32; i++)
   22333 			printf(" %2.2x", (int)digest[i]);
   22334 		printf("\n");}
   22335 	*/
   22336 	if(memcmp(digest, check, sizeof(check)) != 0)
   22337 		return 6;
   22338 	return 0;
   22339 }
   22340 
   22341 _ACEOF
   22342 if ac_fn_c_try_run "$LINENO"
   22343 then :
   22344   eval "ac_cv_c_gost_works=yes"
   22345 else $as_nop
   22346   eval "ac_cv_c_gost_works=no"
   22347 fi
   22348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   22349   conftest.$ac_objext conftest.beam conftest.$ac_ext
   22350 fi
   22351 
   22352 CFLAGS="$BAKCFLAGS"
   22353 else
   22354 eval "ac_cv_c_gost_works=maybe"
   22355 fi
   22356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
   22357 printf "%s\n" "$ac_cv_c_gost_works" >&6; }
   22358 
   22359 	if test "$ac_cv_c_gost_works" != no; then
   22360 		use_gost="yes"
   22361 
   22362 printf "%s\n" "#define USE_GOST 1" >>confdefs.h
   22363 
   22364 	fi
   22365 	;;
   22366 esac
   22367 fi
   22368 # Check whether --enable-ecdsa was given.
   22369 if test ${enable_ecdsa+y}
   22370 then :
   22371   enableval=$enable_ecdsa;
   22372 fi
   22373 
   22374 use_ecdsa="no"
   22375 case "$enable_ecdsa" in
   22376     no)
   22377       ;;
   22378     *)
   22379       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   22380 	      ac_fn_c_check_func "$LINENO" "EVP_PKEY_fromdata" "ac_cv_func_EVP_PKEY_fromdata"
   22381 if test "x$ac_cv_func_EVP_PKEY_fromdata" = xyes
   22382 then :
   22383 
   22384 	          # with EVP_PKEY_fromdata, check if EC is not disabled
   22385 	          ac_fn_check_decl "$LINENO" "OPENSSL_NO_EC" "ac_cv_have_decl_OPENSSL_NO_EC" "$ac_includes_default
   22386 #include <openssl/evp.h>
   22387 
   22388 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   22389 if test "x$ac_cv_have_decl_OPENSSL_NO_EC" = xyes
   22390 then :
   22391   as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
   22392 
   22393 fi
   22394 
   22395 else $as_nop
   22396 
   22397 		  # without EVP_PKEY_fromdata, older openssl, check for support
   22398 		  ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
   22399 if test "x$ac_cv_func_ECDSA_sign" = xyes
   22400 then :
   22401 
   22402 else $as_nop
   22403   as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
   22404 fi
   22405 
   22406 		  ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
   22407 if test "x$ac_cv_func_SHA384_Init" = xyes
   22408 then :
   22409 
   22410 else $as_nop
   22411   as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
   22412 fi
   22413 
   22414 
   22415 fi
   22416 
   22417 	      ac_fn_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
   22418 #include <openssl/evp.h>
   22419 
   22420 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   22421 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes
   22422 then :
   22423   ac_have_decl=1
   22424 else $as_nop
   22425   ac_have_decl=0
   22426 fi
   22427 printf "%s\n" "#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl" >>confdefs.h
   22428 if test $ac_have_decl = 1
   22429 then :
   22430 
   22431 else $as_nop
   22432   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
   22433 fi
   22434 ac_fn_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
   22435 #include <openssl/evp.h>
   22436 
   22437 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   22438 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes
   22439 then :
   22440   ac_have_decl=1
   22441 else $as_nop
   22442   ac_have_decl=0
   22443 fi
   22444 printf "%s\n" "#define HAVE_DECL_NID_SECP384R1 $ac_have_decl" >>confdefs.h
   22445 if test $ac_have_decl = 1
   22446 then :
   22447 
   22448 else $as_nop
   22449   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
   22450 fi
   22451 
   22452 	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
   22453 	      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
   22454 printf %s "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
   22455 	      if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
   22456 		if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL 0\." >/dev/null; then
   22457 		  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22458 printf "%s\n" "no" >&6; }
   22459 
   22460 printf "%s\n" "#define USE_ECDSA_EVP_WORKAROUND 1" >>confdefs.h
   22461 
   22462 		else
   22463 		  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22464 printf "%s\n" "yes" >&6; }
   22465 		fi
   22466 	      else
   22467 		# not OpenSSL, thus likely LibreSSL, which supports it
   22468 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22469 printf "%s\n" "yes" >&6; }
   22470 	      fi
   22471       fi
   22472       # we now know we have ECDSA and the required curves.
   22473 
   22474 printf "%s\n" "#define USE_ECDSA 1" >>confdefs.h
   22475 
   22476       use_ecdsa="yes"
   22477       ;;
   22478 esac
   22479 
   22480 # Check whether --enable-dsa was given.
   22481 if test ${enable_dsa+y}
   22482 then :
   22483   enableval=$enable_dsa;
   22484 fi
   22485 
   22486 use_dsa="no"
   22487 case "$enable_dsa" in
   22488     yes)
   22489       # detect if DSA is supported, and turn it off if not.
   22490       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   22491       ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
   22492 if test "x$ac_cv_func_DSA_SIG_new" = xyes
   22493 then :
   22494 
   22495       as_ac_Type=`printf "%s\n" "ac_cv_type_DSA_SIG*" | $as_tr_sh`
   22496 ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
   22497 $ac_includes_default
   22498 #ifdef HAVE_OPENSSL_ERR_H
   22499 #include <openssl/err.h>
   22500 #endif
   22501 
   22502 #ifdef HAVE_OPENSSL_RAND_H
   22503 #include <openssl/rand.h>
   22504 #endif
   22505 
   22506 #ifdef HAVE_OPENSSL_CONF_H
   22507 #include <openssl/conf.h>
   22508 #endif
   22509 
   22510 #ifdef HAVE_OPENSSL_ENGINE_H
   22511 #include <openssl/engine.h>
   22512 #endif
   22513 
   22514 "
   22515 if eval test \"x\$"$as_ac_Type"\" = x"yes"
   22516 then :
   22517 
   22518 
   22519 printf "%s\n" "#define USE_DSA 1" >>confdefs.h
   22520 
   22521 
   22522 else $as_nop
   22523   if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
   22524                fi
   22525 fi
   22526 
   22527 
   22528 else $as_nop
   22529   if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
   22530                fi
   22531 fi
   22532 
   22533       else
   22534 
   22535 printf "%s\n" "#define USE_DSA 1" >>confdefs.h
   22536 
   22537       fi
   22538       ;;
   22539     *)
   22540       # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT
   22541       # support DSA for DNSSEC Validation.
   22542       ;;
   22543 esac
   22544 
   22545 
   22546 # Check whether --with-deprecate-rsa-1024 was given.
   22547 if test ${with_deprecate_rsa_1024+y}
   22548 then :
   22549   withval=$with_deprecate_rsa_1024;
   22550 fi
   22551 
   22552 if test "$with_deprecate_rsa_1024" = "yes"; then
   22553 
   22554 printf "%s\n" "#define DEPRECATE_RSA_1024 1" >>confdefs.h
   22555 
   22556 fi
   22557 
   22558 # Check whether --enable-ed25519 was given.
   22559 if test ${enable_ed25519+y}
   22560 then :
   22561   enableval=$enable_ed25519;
   22562 fi
   22563 
   22564 use_ed25519="no"
   22565 case "$enable_ed25519" in
   22566     no)
   22567       ;;
   22568     *)
   22569       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   22570 	      ac_fn_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
   22571 #include <openssl/evp.h>
   22572 
   22573 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   22574 if test "x$ac_cv_have_decl_NID_ED25519" = xyes
   22575 then :
   22576   ac_have_decl=1
   22577 else $as_nop
   22578   ac_have_decl=0
   22579 fi
   22580 printf "%s\n" "#define HAVE_DECL_NID_ED25519 $ac_have_decl" >>confdefs.h
   22581 if test $ac_have_decl = 1
   22582 then :
   22583 
   22584       		use_ed25519="yes"
   22585 
   22586 else $as_nop
   22587    if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
   22588 	      	fi
   22589 fi
   22590 
   22591       fi
   22592       if test $USE_NETTLE = "yes"; then
   22593 		       for ac_header in nettle/eddsa.h
   22594 do :
   22595   ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
   22596 "
   22597 if test "x$ac_cv_header_nettle_eddsa_h" = xyes
   22598 then :
   22599   printf "%s\n" "#define HAVE_NETTLE_EDDSA_H 1" >>confdefs.h
   22600  use_ed25519="yes"
   22601 fi
   22602 
   22603 done
   22604       fi
   22605       if test $use_ed25519 = "yes"; then
   22606 
   22607 printf "%s\n" "#define USE_ED25519 1" >>confdefs.h
   22608 
   22609       fi
   22610       ;;
   22611 esac
   22612 
   22613 # Check whether --enable-ed448 was given.
   22614 if test ${enable_ed448+y}
   22615 then :
   22616   enableval=$enable_ed448;
   22617 fi
   22618 
   22619 use_ed448="no"
   22620 case "$enable_ed448" in
   22621     no)
   22622       ;;
   22623     *)
   22624       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   22625 	      ac_fn_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
   22626 #include <openssl/evp.h>
   22627 
   22628 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   22629 if test "x$ac_cv_have_decl_NID_ED448" = xyes
   22630 then :
   22631   ac_have_decl=1
   22632 else $as_nop
   22633   ac_have_decl=0
   22634 fi
   22635 printf "%s\n" "#define HAVE_DECL_NID_ED448 $ac_have_decl" >>confdefs.h
   22636 if test $ac_have_decl = 1
   22637 then :
   22638 
   22639       		use_ed448="yes"
   22640 
   22641 else $as_nop
   22642    if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
   22643 	      	fi
   22644 fi
   22645 
   22646       fi
   22647       if test $use_ed448 = "yes"; then
   22648 
   22649 printf "%s\n" "#define USE_ED448 1" >>confdefs.h
   22650 
   22651       fi
   22652       ;;
   22653 esac
   22654 
   22655 # Check whether --enable-event-api was given.
   22656 if test ${enable_event_api+y}
   22657 then :
   22658   enableval=$enable_event_api;
   22659 fi
   22660 
   22661 case "$enable_event_api" in
   22662     yes)
   22663       UNBOUND_EVENT_INSTALL=unbound-event-install
   22664 
   22665       UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
   22666 
   22667       ;;
   22668     *)
   22669       ;;
   22670 esac
   22671 
   22672 # Check whether --enable-tfo-client was given.
   22673 if test ${enable_tfo_client+y}
   22674 then :
   22675   enableval=$enable_tfo_client;
   22676 fi
   22677 
   22678 case "$enable_tfo_client" in
   22679 	yes)
   22680 		case "$host_os" in
   22681 			linux*) ac_fn_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
   22682 #include <netinet/tcp.h>
   22683 
   22684 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   22685 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes
   22686 then :
   22687   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
   22688 printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
   22689 else $as_nop
   22690   as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
   22691 fi
   22692 
   22693 printf "%s\n" "#define USE_MSG_FASTOPEN 1" >>confdefs.h
   22694 
   22695 				;;
   22696 			darwin*) ac_fn_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
   22697 #include <sys/socket.h>
   22698 
   22699 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   22700 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes
   22701 then :
   22702   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
   22703 printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
   22704 else $as_nop
   22705   as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
   22706 fi
   22707 
   22708 printf "%s\n" "#define USE_OSX_MSG_FASTOPEN 1" >>confdefs.h
   22709 
   22710 				;;
   22711 		esac
   22712 		;;
   22713 	no|*)
   22714 		;;
   22715 esac
   22716 
   22717 # Check whether --enable-tfo-server was given.
   22718 if test ${enable_tfo_server+y}
   22719 then :
   22720   enableval=$enable_tfo_server;
   22721 fi
   22722 
   22723 case "$enable_tfo_server" in
   22724 	yes)
   22725 	      ac_fn_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
   22726 #include <netinet/tcp.h>
   22727 
   22728 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   22729 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes
   22730 then :
   22731   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
   22732 printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
   22733 else $as_nop
   22734   as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
   22735 fi
   22736 
   22737 printf "%s\n" "#define USE_TCP_FASTOPEN 1" >>confdefs.h
   22738 
   22739 		;;
   22740 	no|*)
   22741 		;;
   22742 esac
   22743 
   22744 # check for libevent
   22745 
   22746 # Check whether --with-libevent was given.
   22747 if test ${with_libevent+y}
   22748 then :
   22749   withval=$with_libevent;
   22750 else $as_nop
   22751    with_libevent="no"
   22752 fi
   22753 
   22754 if test "x_$with_libevent" != x_no; then
   22755 
   22756 printf "%s\n" "#define USE_LIBEVENT 1" >>confdefs.h
   22757 
   22758         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
   22759 printf %s "checking for libevent... " >&6; }
   22760         if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then
   22761             with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
   22762         fi
   22763         for dir in $with_libevent; do
   22764             thedir="$dir"
   22765             if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
   22766                 found_libevent="yes"
   22767 								if test "$thedir" != "/usr"; then
   22768 				    CPPFLAGS="$CPPFLAGS -I$thedir/include"
   22769 				fi
   22770 				break;
   22771 		    fi
   22772         done
   22773         if test x_$found_libevent != x_yes; then
   22774 		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
   22775 			# libevent source directory
   22776 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
   22777 printf "%s\n" "found in $thedir" >&6; }
   22778 			CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
   22779 			BAK_LDFLAGS_SET="1"
   22780 			BAK_LDFLAGS="$LDFLAGS"
   22781 			# remove evdns from linking
   22782 			mkdir build >/dev/null 2>&1
   22783 			mkdir build/libevent >/dev/null 2>&1
   22784 			mkdir build/libevent/.libs >/dev/null 2>&1
   22785 			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
   22786 			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
   22787 			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
   22788 			cp $ev_files_o build/libevent
   22789 			cp $ev_files_lo build/libevent
   22790 			cp $ev_files_libso build/libevent/.libs
   22791 			LATE_LDFLAGS="build/libevent/*.lo -lm"
   22792 			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
   22793 		else
   22794             as_fn_error $? "Cannot find the libevent library in $with_libevent
   22795 You can restart ./configure --with-libevent=no to use a builtin alternative.
   22796 Please note that this alternative is not as capable as libevent when using
   22797 large outgoing port ranges.  " "$LINENO" 5
   22798 		fi
   22799         else
   22800             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
   22801 printf "%s\n" "found in $thedir" >&6; }
   22802 	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
   22803 		    LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
   22804 
   22805 	if test "x$enable_rpath" = xyes; then
   22806 		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
   22807 			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
   22808 		fi
   22809 	fi
   22810 
   22811 	    else
   22812 		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
   22813 			LDFLAGS="$LDFLAGS -L$thedir/lib"
   22814 
   22815 	if test "x$enable_rpath" = xyes; then
   22816 		if echo "$thedir/lib" | grep "^/" >/dev/null; then
   22817 			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
   22818 		fi
   22819 	fi
   22820 
   22821 		    fi
   22822 	    fi
   22823         fi
   22824 	# check for library used by libevent after 1.3c
   22825 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   22826 printf %s "checking for library containing clock_gettime... " >&6; }
   22827 if test ${ac_cv_search_clock_gettime+y}
   22828 then :
   22829   printf %s "(cached) " >&6
   22830 else $as_nop
   22831   ac_func_search_save_LIBS=$LIBS
   22832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22833 /* end confdefs.h.  */
   22834 
   22835 /* Override any GCC internal prototype to avoid an error.
   22836    Use char because int might match the return type of a GCC
   22837    builtin and then its argument prototype would still apply.  */
   22838 char clock_gettime ();
   22839 int
   22840 main (void)
   22841 {
   22842 return clock_gettime ();
   22843   ;
   22844   return 0;
   22845 }
   22846 _ACEOF
   22847 for ac_lib in '' rt
   22848 do
   22849   if test -z "$ac_lib"; then
   22850     ac_res="none required"
   22851   else
   22852     ac_res=-l$ac_lib
   22853     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   22854   fi
   22855   if ac_fn_c_try_link "$LINENO"
   22856 then :
   22857   ac_cv_search_clock_gettime=$ac_res
   22858 fi
   22859 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   22860     conftest$ac_exeext
   22861   if test ${ac_cv_search_clock_gettime+y}
   22862 then :
   22863   break
   22864 fi
   22865 done
   22866 if test ${ac_cv_search_clock_gettime+y}
   22867 then :
   22868 
   22869 else $as_nop
   22870   ac_cv_search_clock_gettime=no
   22871 fi
   22872 rm conftest.$ac_ext
   22873 LIBS=$ac_func_search_save_LIBS
   22874 fi
   22875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   22876 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
   22877 ac_res=$ac_cv_search_clock_gettime
   22878 if test "$ac_res" != no
   22879 then :
   22880   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   22881 
   22882 fi
   22883 
   22884 
   22885 	# is the event.h header libev or libevent?
   22886 	ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
   22887 "
   22888 if test "x$ac_cv_header_event_h" = xyes
   22889 then :
   22890   printf "%s\n" "#define HAVE_EVENT_H 1" >>confdefs.h
   22891 
   22892 fi
   22893 
   22894 	ac_fn_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
   22895 #include <event.h>
   22896 
   22897 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   22898 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes
   22899 then :
   22900 
   22901 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
   22902 printf %s "checking for library containing event_set... " >&6; }
   22903 if test ${ac_cv_search_event_set+y}
   22904 then :
   22905   printf %s "(cached) " >&6
   22906 else $as_nop
   22907   ac_func_search_save_LIBS=$LIBS
   22908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22909 /* end confdefs.h.  */
   22910 
   22911 /* Override any GCC internal prototype to avoid an error.
   22912    Use char because int might match the return type of a GCC
   22913    builtin and then its argument prototype would still apply.  */
   22914 char event_set ();
   22915 int
   22916 main (void)
   22917 {
   22918 return event_set ();
   22919   ;
   22920   return 0;
   22921 }
   22922 _ACEOF
   22923 for ac_lib in '' ev
   22924 do
   22925   if test -z "$ac_lib"; then
   22926     ac_res="none required"
   22927   else
   22928     ac_res=-l$ac_lib
   22929     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   22930   fi
   22931   if ac_fn_c_try_link "$LINENO"
   22932 then :
   22933   ac_cv_search_event_set=$ac_res
   22934 fi
   22935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   22936     conftest$ac_exeext
   22937   if test ${ac_cv_search_event_set+y}
   22938 then :
   22939   break
   22940 fi
   22941 done
   22942 if test ${ac_cv_search_event_set+y}
   22943 then :
   22944 
   22945 else $as_nop
   22946   ac_cv_search_event_set=no
   22947 fi
   22948 rm conftest.$ac_ext
   22949 LIBS=$ac_func_search_save_LIBS
   22950 fi
   22951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
   22952 printf "%s\n" "$ac_cv_search_event_set" >&6; }
   22953 ac_res=$ac_cv_search_event_set
   22954 if test "$ac_res" != no
   22955 then :
   22956   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   22957 
   22958 fi
   22959 
   22960 
   22961 else $as_nop
   22962 
   22963 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
   22964 printf %s "checking for library containing event_set... " >&6; }
   22965 if test ${ac_cv_search_event_set+y}
   22966 then :
   22967   printf %s "(cached) " >&6
   22968 else $as_nop
   22969   ac_func_search_save_LIBS=$LIBS
   22970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22971 /* end confdefs.h.  */
   22972 
   22973 /* Override any GCC internal prototype to avoid an error.
   22974    Use char because int might match the return type of a GCC
   22975    builtin and then its argument prototype would still apply.  */
   22976 char event_set ();
   22977 int
   22978 main (void)
   22979 {
   22980 return event_set ();
   22981   ;
   22982   return 0;
   22983 }
   22984 _ACEOF
   22985 for ac_lib in '' event
   22986 do
   22987   if test -z "$ac_lib"; then
   22988     ac_res="none required"
   22989   else
   22990     ac_res=-l$ac_lib
   22991     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   22992   fi
   22993   if ac_fn_c_try_link "$LINENO"
   22994 then :
   22995   ac_cv_search_event_set=$ac_res
   22996 fi
   22997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   22998     conftest$ac_exeext
   22999   if test ${ac_cv_search_event_set+y}
   23000 then :
   23001   break
   23002 fi
   23003 done
   23004 if test ${ac_cv_search_event_set+y}
   23005 then :
   23006 
   23007 else $as_nop
   23008   ac_cv_search_event_set=no
   23009 fi
   23010 rm conftest.$ac_ext
   23011 LIBS=$ac_func_search_save_LIBS
   23012 fi
   23013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
   23014 printf "%s\n" "$ac_cv_search_event_set" >&6; }
   23015 ac_res=$ac_cv_search_event_set
   23016 if test "$ac_res" != no
   23017 then :
   23018   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   23019 
   23020 fi
   23021 
   23022 
   23023 fi
   23024 	ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
   23025 if test "x$ac_cv_func_event_base_free" = xyes
   23026 then :
   23027   printf "%s\n" "#define HAVE_EVENT_BASE_FREE 1" >>confdefs.h
   23028 
   23029 fi
   23030  # only in libevent 1.2 and later
   23031 	ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
   23032 if test "x$ac_cv_func_event_base_once" = xyes
   23033 then :
   23034   printf "%s\n" "#define HAVE_EVENT_BASE_ONCE 1" >>confdefs.h
   23035 
   23036 fi
   23037  # only in libevent 1.4.1 and later
   23038 	ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
   23039 if test "x$ac_cv_func_event_base_new" = xyes
   23040 then :
   23041   printf "%s\n" "#define HAVE_EVENT_BASE_NEW 1" >>confdefs.h
   23042 
   23043 fi
   23044  # only in libevent 1.4.1 and later
   23045 	ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
   23046 if test "x$ac_cv_func_event_base_get_method" = xyes
   23047 then :
   23048   printf "%s\n" "#define HAVE_EVENT_BASE_GET_METHOD 1" >>confdefs.h
   23049 
   23050 fi
   23051  # only in libevent 1.4.3 and later
   23052 	ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
   23053 if test "x$ac_cv_func_ev_loop" = xyes
   23054 then :
   23055   printf "%s\n" "#define HAVE_EV_LOOP 1" >>confdefs.h
   23056 
   23057 fi
   23058  # only in libev. (tested on 3.51)
   23059 	ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
   23060 if test "x$ac_cv_func_ev_default_loop" = xyes
   23061 then :
   23062   printf "%s\n" "#define HAVE_EV_DEFAULT_LOOP 1" >>confdefs.h
   23063 
   23064 fi
   23065  # only in libev. (tested on 4.00)
   23066 	ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
   23067 if test "x$ac_cv_func_event_assign" = xyes
   23068 then :
   23069   printf "%s\n" "#define HAVE_EVENT_ASSIGN 1" >>confdefs.h
   23070 
   23071 fi
   23072  # in libevent, for thread-safety
   23073 	ac_fn_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
   23074 #ifdef HAVE_EVENT_H
   23075 #  include <event.h>
   23076 #else
   23077 #  include \"event2/event.h\"
   23078 #endif
   23079 
   23080 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   23081 if test "x$ac_cv_have_decl_evsignal_assign" = xyes
   23082 then :
   23083   ac_have_decl=1
   23084 else $as_nop
   23085   ac_have_decl=0
   23086 fi
   23087 printf "%s\n" "#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl" >>confdefs.h
   23088 
   23089         PC_LIBEVENT_DEPENDENCY="libevent"
   23090 
   23091 	if test -n "$BAK_LDFLAGS_SET"; then
   23092 		LDFLAGS="$BAK_LDFLAGS"
   23093 	fi
   23094 else
   23095 
   23096 printf "%s\n" "#define USE_MINI_EVENT 1" >>confdefs.h
   23097 
   23098 fi
   23099 
   23100 # check for libexpat
   23101 
   23102 # Check whether --with-libexpat was given.
   23103 if test ${with_libexpat+y}
   23104 then :
   23105   withval=$with_libexpat;
   23106 else $as_nop
   23107    withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
   23108 fi
   23109 
   23110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
   23111 printf %s "checking for libexpat... " >&6; }
   23112 found_libexpat="no"
   23113 for dir in $withval ; do
   23114             if test -f "$dir/include/expat.h"; then
   23115 		found_libexpat="yes"
   23116 				if test "$dir" != "/usr"; then
   23117                     CPPFLAGS="$CPPFLAGS -I$dir/include"
   23118 		    LDFLAGS="$LDFLAGS -L$dir/lib"
   23119 		fi
   23120             	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
   23121 printf "%s\n" "found in $dir" >&6; }
   23122                 break;
   23123             fi
   23124 done
   23125 if test x_$found_libexpat != x_yes; then
   23126 	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
   23127 fi
   23128 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
   23129 "
   23130 if test "x$ac_cv_header_expat_h" = xyes
   23131 then :
   23132   printf "%s\n" "#define HAVE_EXPAT_H 1" >>confdefs.h
   23133 
   23134 fi
   23135 
   23136 ac_fn_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
   23137 #include <expat.h>
   23138 
   23139 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   23140 if test "x$ac_cv_have_decl_XML_StopParser" = xyes
   23141 then :
   23142   ac_have_decl=1
   23143 else $as_nop
   23144   ac_have_decl=0
   23145 fi
   23146 printf "%s\n" "#define HAVE_DECL_XML_STOPPARSER $ac_have_decl" >>confdefs.h
   23147 
   23148 
   23149 # hiredis (redis C client for cachedb)
   23150 
   23151 # Check whether --with-libhiredis was given.
   23152 if test ${with_libhiredis+y}
   23153 then :
   23154   withval=$with_libhiredis;
   23155 else $as_nop
   23156    withval="no"
   23157 fi
   23158 
   23159 found_libhiredis="no"
   23160 if test x_$withval = x_yes -o x_$withval != x_no; then
   23161    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
   23162 printf %s "checking for libhiredis... " >&6; }
   23163    if test x_$withval = x_ -o x_$withval = x_yes; then
   23164             withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
   23165    fi
   23166    for dir in $withval ; do
   23167             if test -f "$dir/include/hiredis/hiredis.h"; then
   23168 		found_libhiredis="yes"
   23169 				if test "$dir" != "/usr"; then
   23170                     CPPFLAGS="$CPPFLAGS -I$dir/include"
   23171 		    LDFLAGS="$LDFLAGS -L$dir/lib"
   23172 		fi
   23173 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
   23174 printf "%s\n" "found in $dir" >&6; }
   23175 
   23176 printf "%s\n" "#define USE_REDIS 1" >>confdefs.h
   23177 
   23178 		LIBS="$LIBS -lhiredis"
   23179                 break;
   23180             fi
   23181     done
   23182     if test x_$found_libhiredis != x_yes; then
   23183 	as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
   23184     fi
   23185     ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
   23186 "
   23187 if test "x$ac_cv_header_hiredis_hiredis_h" = xyes
   23188 then :
   23189   printf "%s\n" "#define HAVE_HIREDIS_HIREDIS_H 1" >>confdefs.h
   23190 
   23191 fi
   23192 
   23193     ac_fn_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
   23194     #include <hiredis/hiredis.h>
   23195 
   23196 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   23197 if test "x$ac_cv_have_decl_redisConnect" = xyes
   23198 then :
   23199   ac_have_decl=1
   23200 else $as_nop
   23201   ac_have_decl=0
   23202 fi
   23203 printf "%s\n" "#define HAVE_DECL_REDISCONNECT $ac_have_decl" >>confdefs.h
   23204 
   23205 fi
   23206 
   23207 # nghttp2
   23208 
   23209 # Check whether --with-libnghttp2 was given.
   23210 if test ${with_libnghttp2+y}
   23211 then :
   23212   withval=$with_libnghttp2;
   23213 else $as_nop
   23214    withval="no"
   23215 fi
   23216 
   23217 found_libnghttp2="no"
   23218 if test x_$withval = x_yes -o x_$withval != x_no; then
   23219    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5
   23220 printf %s "checking for libnghttp2... " >&6; }
   23221    if test x_$withval = x_ -o x_$withval = x_yes; then
   23222             withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
   23223    fi
   23224    for dir in $withval ; do
   23225             if test -f "$dir/include/nghttp2/nghttp2.h"; then
   23226 		found_libnghttp2="yes"
   23227 				if test "$dir" != "/usr"; then
   23228                     CPPFLAGS="$CPPFLAGS -I$dir/include"
   23229 		    LDFLAGS="$LDFLAGS -L$dir/lib"
   23230 		fi
   23231 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
   23232 printf "%s\n" "found in $dir" >&6; }
   23233 
   23234 printf "%s\n" "#define HAVE_NGHTTP2 1" >>confdefs.h
   23235 
   23236 		LIBS="$LIBS -lnghttp2"
   23237                 break;
   23238             fi
   23239     done
   23240     if test x_$found_libnghttp2 != x_yes; then
   23241 	as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5
   23242     fi
   23243     ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default
   23244 "
   23245 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
   23246 then :
   23247   printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
   23248 
   23249 fi
   23250 
   23251     ac_fn_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default
   23252     #include <nghttp2/nghttp2.h>
   23253 
   23254 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   23255 if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes
   23256 then :
   23257   ac_have_decl=1
   23258 else $as_nop
   23259   ac_have_decl=0
   23260 fi
   23261 printf "%s\n" "#define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl" >>confdefs.h
   23262 
   23263 fi
   23264 
   23265 # ngtcp2
   23266 
   23267 # Check whether --with-libngtcp2 was given.
   23268 if test ${with_libngtcp2+y}
   23269 then :
   23270   withval=$with_libngtcp2;
   23271 else $as_nop
   23272    withval="no"
   23273 fi
   23274 
   23275 found_libngtcp2="no"
   23276 if test x_$withval = x_yes -o x_$withval != x_no; then
   23277    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2" >&5
   23278 printf %s "checking for libngtcp2... " >&6; }
   23279    if test x_$withval = x_ -o x_$withval = x_yes; then
   23280             withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
   23281    fi
   23282    for dir in $withval ; do
   23283             if test -f "$dir/include/ngtcp2/ngtcp2.h"; then
   23284 		found_libngtcp2="yes"
   23285 				if test "$dir" != "/usr"; then
   23286                     CPPFLAGS="$CPPFLAGS -I$dir/include"
   23287 		    LDFLAGS="$LDFLAGS -L$dir/lib"
   23288 		fi
   23289 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
   23290 printf "%s\n" "found in $dir" >&6; }
   23291 
   23292 printf "%s\n" "#define HAVE_NGTCP2 1" >>confdefs.h
   23293 
   23294 		LIBS="$LIBS -lngtcp2"
   23295                 break;
   23296             fi
   23297     done
   23298     if test x_$found_libngtcp2 != x_yes; then
   23299 	as_fn_error $? "Could not find libngtcp2, ngtcp2.h" "$LINENO" 5
   23300     fi
   23301     ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default
   23302 "
   23303 if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes
   23304 then :
   23305   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h
   23306 
   23307 fi
   23308 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto_ossl.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_ossl_h" "$ac_includes_default
   23309 "
   23310 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_ossl_h" = xyes
   23311 then :
   23312   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_OSSL_H 1" >>confdefs.h
   23313 
   23314 fi
   23315 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto_openssl.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_openssl_h" "$ac_includes_default
   23316 "
   23317 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_openssl_h" = xyes
   23318 then :
   23319   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_OPENSSL_H 1" >>confdefs.h
   23320 
   23321 fi
   23322 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto_quictls.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_quictls_h" "$ac_includes_default
   23323 "
   23324 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_quictls_h" = xyes
   23325 then :
   23326   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_QUICTLS_H 1" >>confdefs.h
   23327 
   23328 fi
   23329 
   23330     ac_fn_check_decl "$LINENO" "ngtcp2_conn_server_new" "ac_cv_have_decl_ngtcp2_conn_server_new" "$ac_includes_default
   23331     #include <ngtcp2/ngtcp2.h>
   23332 
   23333 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   23334 if test "x$ac_cv_have_decl_ngtcp2_conn_server_new" = xyes
   23335 then :
   23336   ac_have_decl=1
   23337 else $as_nop
   23338   ac_have_decl=0
   23339 fi
   23340 printf "%s\n" "#define HAVE_DECL_NGTCP2_CONN_SERVER_NEW $ac_have_decl" >>confdefs.h
   23341 
   23342     ac_fn_check_decl "$LINENO" "ngtcp2_crypto_encrypt_cb" "ac_cv_have_decl_ngtcp2_crypto_encrypt_cb" "$ac_includes_default
   23343     #include <ngtcp2/ngtcp2_crypto.h>
   23344 
   23345 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   23346 if test "x$ac_cv_have_decl_ngtcp2_crypto_encrypt_cb" = xyes
   23347 then :
   23348   ac_have_decl=1
   23349 else $as_nop
   23350   ac_have_decl=0
   23351 fi
   23352 printf "%s\n" "#define HAVE_DECL_NGTCP2_CRYPTO_ENCRYPT_CB $ac_have_decl" >>confdefs.h
   23353 
   23354     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_ossl" >&5
   23355 printf %s "checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_ossl... " >&6; }
   23356 if test ${ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_encrypt_cb+y}
   23357 then :
   23358   printf %s "(cached) " >&6
   23359 else $as_nop
   23360   ac_check_lib_save_LIBS=$LIBS
   23361 LIBS="-lngtcp2_crypto_ossl  $LIBS"
   23362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23363 /* end confdefs.h.  */
   23364 
   23365 /* Override any GCC internal prototype to avoid an error.
   23366    Use char because int might match the return type of a GCC
   23367    builtin and then its argument prototype would still apply.  */
   23368 char ngtcp2_crypto_encrypt_cb ();
   23369 int
   23370 main (void)
   23371 {
   23372 return ngtcp2_crypto_encrypt_cb ();
   23373   ;
   23374   return 0;
   23375 }
   23376 _ACEOF
   23377 if ac_fn_c_try_link "$LINENO"
   23378 then :
   23379   ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_encrypt_cb=yes
   23380 else $as_nop
   23381   ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_encrypt_cb=no
   23382 fi
   23383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23384     conftest$ac_exeext conftest.$ac_ext
   23385 LIBS=$ac_check_lib_save_LIBS
   23386 fi
   23387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_encrypt_cb" >&5
   23388 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_encrypt_cb" >&6; }
   23389 if test "x$ac_cv_lib_ngtcp2_crypto_ossl_ngtcp2_crypto_encrypt_cb" = xyes
   23390 then :
   23391 
   23392 	LIBS="$LIBS -lngtcp2_crypto_ossl"
   23393 
   23394 printf "%s\n" "#define USE_NGTCP2_CRYPTO_OSSL 1" >>confdefs.h
   23395 
   23396 
   23397 else $as_nop
   23398 
   23399         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_openssl" >&5
   23400 printf %s "checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_openssl... " >&6; }
   23401 if test ${ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_encrypt_cb+y}
   23402 then :
   23403   printf %s "(cached) " >&6
   23404 else $as_nop
   23405   ac_check_lib_save_LIBS=$LIBS
   23406 LIBS="-lngtcp2_crypto_openssl  $LIBS"
   23407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23408 /* end confdefs.h.  */
   23409 
   23410 /* Override any GCC internal prototype to avoid an error.
   23411    Use char because int might match the return type of a GCC
   23412    builtin and then its argument prototype would still apply.  */
   23413 char ngtcp2_crypto_encrypt_cb ();
   23414 int
   23415 main (void)
   23416 {
   23417 return ngtcp2_crypto_encrypt_cb ();
   23418   ;
   23419   return 0;
   23420 }
   23421 _ACEOF
   23422 if ac_fn_c_try_link "$LINENO"
   23423 then :
   23424   ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_encrypt_cb=yes
   23425 else $as_nop
   23426   ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_encrypt_cb=no
   23427 fi
   23428 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23429     conftest$ac_exeext conftest.$ac_ext
   23430 LIBS=$ac_check_lib_save_LIBS
   23431 fi
   23432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_encrypt_cb" >&5
   23433 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_encrypt_cb" >&6; }
   23434 if test "x$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_encrypt_cb" = xyes
   23435 then :
   23436    LIBS="$LIBS -lngtcp2_crypto_openssl"
   23437 else $as_nop
   23438 
   23439             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_quictls" >&5
   23440 printf %s "checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_quictls... " >&6; }
   23441 if test ${ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_encrypt_cb+y}
   23442 then :
   23443   printf %s "(cached) " >&6
   23444 else $as_nop
   23445   ac_check_lib_save_LIBS=$LIBS
   23446 LIBS="-lngtcp2_crypto_quictls  $LIBS"
   23447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23448 /* end confdefs.h.  */
   23449 
   23450 /* Override any GCC internal prototype to avoid an error.
   23451    Use char because int might match the return type of a GCC
   23452    builtin and then its argument prototype would still apply.  */
   23453 char ngtcp2_crypto_encrypt_cb ();
   23454 int
   23455 main (void)
   23456 {
   23457 return ngtcp2_crypto_encrypt_cb ();
   23458   ;
   23459   return 0;
   23460 }
   23461 _ACEOF
   23462 if ac_fn_c_try_link "$LINENO"
   23463 then :
   23464   ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_encrypt_cb=yes
   23465 else $as_nop
   23466   ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_encrypt_cb=no
   23467 fi
   23468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23469     conftest$ac_exeext conftest.$ac_ext
   23470 LIBS=$ac_check_lib_save_LIBS
   23471 fi
   23472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_encrypt_cb" >&5
   23473 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_encrypt_cb" >&6; }
   23474 if test "x$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_encrypt_cb" = xyes
   23475 then :
   23476    LIBS="$LIBS -lngtcp2_crypto_quictls"
   23477 fi
   23478 
   23479 
   23480 fi
   23481 
   23482 
   23483 fi
   23484 
   23485     ac_fn_c_check_func "$LINENO" "ngtcp2_crypto_encrypt_cb" "ac_cv_func_ngtcp2_crypto_encrypt_cb"
   23486 if test "x$ac_cv_func_ngtcp2_crypto_encrypt_cb" = xyes
   23487 then :
   23488   printf "%s\n" "#define HAVE_NGTCP2_CRYPTO_ENCRYPT_CB 1" >>confdefs.h
   23489 
   23490 fi
   23491 ac_fn_c_check_func "$LINENO" "ngtcp2_ccerr_default" "ac_cv_func_ngtcp2_ccerr_default"
   23492 if test "x$ac_cv_func_ngtcp2_ccerr_default" = xyes
   23493 then :
   23494   printf "%s\n" "#define HAVE_NGTCP2_CCERR_DEFAULT 1" >>confdefs.h
   23495 
   23496 fi
   23497 ac_fn_c_check_func "$LINENO" "ngtcp2_conn_in_closing_period" "ac_cv_func_ngtcp2_conn_in_closing_period"
   23498 if test "x$ac_cv_func_ngtcp2_conn_in_closing_period" = xyes
   23499 then :
   23500   printf "%s\n" "#define HAVE_NGTCP2_CONN_IN_CLOSING_PERIOD 1" >>confdefs.h
   23501 
   23502 fi
   23503 ac_fn_c_check_func "$LINENO" "ngtcp2_conn_in_draining_period" "ac_cv_func_ngtcp2_conn_in_draining_period"
   23504 if test "x$ac_cv_func_ngtcp2_conn_in_draining_period" = xyes
   23505 then :
   23506   printf "%s\n" "#define HAVE_NGTCP2_CONN_IN_DRAINING_PERIOD 1" >>confdefs.h
   23507 
   23508 fi
   23509 ac_fn_c_check_func "$LINENO" "ngtcp2_conn_get_max_local_streams_uni" "ac_cv_func_ngtcp2_conn_get_max_local_streams_uni"
   23510 if test "x$ac_cv_func_ngtcp2_conn_get_max_local_streams_uni" = xyes
   23511 then :
   23512   printf "%s\n" "#define HAVE_NGTCP2_CONN_GET_MAX_LOCAL_STREAMS_UNI 1" >>confdefs.h
   23513 
   23514 fi
   23515 ac_fn_c_check_func "$LINENO" "ngtcp2_crypto_quictls_from_ossl_encryption_level" "ac_cv_func_ngtcp2_crypto_quictls_from_ossl_encryption_level"
   23516 if test "x$ac_cv_func_ngtcp2_crypto_quictls_from_ossl_encryption_level" = xyes
   23517 then :
   23518   printf "%s\n" "#define HAVE_NGTCP2_CRYPTO_QUICTLS_FROM_OSSL_ENCRYPTION_LEVEL 1" >>confdefs.h
   23519 
   23520 fi
   23521 ac_fn_c_check_func "$LINENO" "ngtcp2_crypto_quictls_configure_server_context" "ac_cv_func_ngtcp2_crypto_quictls_configure_server_context"
   23522 if test "x$ac_cv_func_ngtcp2_crypto_quictls_configure_server_context" = xyes
   23523 then :
   23524   printf "%s\n" "#define HAVE_NGTCP2_CRYPTO_QUICTLS_CONFIGURE_SERVER_CONTEXT 1" >>confdefs.h
   23525 
   23526 fi
   23527 ac_fn_c_check_func "$LINENO" "ngtcp2_crypto_quictls_configure_client_context" "ac_cv_func_ngtcp2_crypto_quictls_configure_client_context"
   23528 if test "x$ac_cv_func_ngtcp2_crypto_quictls_configure_client_context" = xyes
   23529 then :
   23530   printf "%s\n" "#define HAVE_NGTCP2_CRYPTO_QUICTLS_CONFIGURE_CLIENT_CONTEXT 1" >>confdefs.h
   23531 
   23532 fi
   23533 ac_fn_c_check_func "$LINENO" "ngtcp2_crypto_quictls_init" "ac_cv_func_ngtcp2_crypto_quictls_init"
   23534 if test "x$ac_cv_func_ngtcp2_crypto_quictls_init" = xyes
   23535 then :
   23536   printf "%s\n" "#define HAVE_NGTCP2_CRYPTO_QUICTLS_INIT 1" >>confdefs.h
   23537 
   23538 fi
   23539 ac_fn_c_check_func "$LINENO" "ngtcp2_conn_get_num_scid" "ac_cv_func_ngtcp2_conn_get_num_scid"
   23540 if test "x$ac_cv_func_ngtcp2_conn_get_num_scid" = xyes
   23541 then :
   23542   printf "%s\n" "#define HAVE_NGTCP2_CONN_GET_NUM_SCID 1" >>confdefs.h
   23543 
   23544 fi
   23545 ac_fn_c_check_func "$LINENO" "ngtcp2_conn_tls_early_data_rejected" "ac_cv_func_ngtcp2_conn_tls_early_data_rejected"
   23546 if test "x$ac_cv_func_ngtcp2_conn_tls_early_data_rejected" = xyes
   23547 then :
   23548   printf "%s\n" "#define HAVE_NGTCP2_CONN_TLS_EARLY_DATA_REJECTED 1" >>confdefs.h
   23549 
   23550 fi
   23551 ac_fn_c_check_func "$LINENO" "ngtcp2_conn_encode_0rtt_transport_params" "ac_cv_func_ngtcp2_conn_encode_0rtt_transport_params"
   23552 if test "x$ac_cv_func_ngtcp2_conn_encode_0rtt_transport_params" = xyes
   23553 then :
   23554   printf "%s\n" "#define HAVE_NGTCP2_CONN_ENCODE_0RTT_TRANSPORT_PARAMS 1" >>confdefs.h
   23555 
   23556 fi
   23557 
   23558 
   23559     # these check_funcs need -lssl
   23560     BAKLIBS="$LIBS"
   23561     LIBS="-lssl $LIBS"
   23562 
   23563   for ac_func in SSL_is_quic
   23564 do :
   23565   ac_fn_c_check_func "$LINENO" "SSL_is_quic" "ac_cv_func_SSL_is_quic"
   23566 if test "x$ac_cv_func_SSL_is_quic" = xyes
   23567 then :
   23568   printf "%s\n" "#define HAVE_SSL_IS_QUIC 1" >>confdefs.h
   23569 
   23570 else $as_nop
   23571   as_fn_error $? "No QUIC support detected in OpenSSL. Need OpenSSL version with QUIC support to enable DNS over QUIC with libngtcp2." "$LINENO" 5
   23572 fi
   23573 
   23574 done
   23575     LIBS="$BAKLIBS"
   23576 
   23577     ac_fn_c_check_type "$LINENO" "struct ngtcp2_version_cid" "ac_cv_type_struct_ngtcp2_version_cid" "$ac_includes_default
   23578     #include <ngtcp2/ngtcp2.h>
   23579 
   23580 "
   23581 if test "x$ac_cv_type_struct_ngtcp2_version_cid" = xyes
   23582 then :
   23583 
   23584 printf "%s\n" "#define HAVE_STRUCT_NGTCP2_VERSION_CID 1" >>confdefs.h
   23585 
   23586 
   23587 fi
   23588 ac_fn_c_check_type "$LINENO" "ngtcp2_encryption_level" "ac_cv_type_ngtcp2_encryption_level" "$ac_includes_default
   23589     #include <ngtcp2/ngtcp2.h>
   23590 
   23591 "
   23592 if test "x$ac_cv_type_ngtcp2_encryption_level" = xyes
   23593 then :
   23594 
   23595 printf "%s\n" "#define HAVE_NGTCP2_ENCRYPTION_LEVEL 1" >>confdefs.h
   23596 
   23597 
   23598 fi
   23599 
   23600     ac_fn_c_check_member "$LINENO" "struct ngtcp2_pkt_hd" "tokenlen" "ac_cv_member_struct_ngtcp2_pkt_hd_tokenlen" "$ac_includes_default
   23601     #include <ngtcp2/ngtcp2.h>
   23602 
   23603 "
   23604 if test "x$ac_cv_member_struct_ngtcp2_pkt_hd_tokenlen" = xyes
   23605 then :
   23606 
   23607 printf "%s\n" "#define HAVE_STRUCT_NGTCP2_PKT_HD_TOKENLEN 1" >>confdefs.h
   23608 
   23609 
   23610 fi
   23611 ac_fn_c_check_member "$LINENO" "struct ngtcp2_settings" "tokenlen" "ac_cv_member_struct_ngtcp2_settings_tokenlen" "$ac_includes_default
   23612     #include <ngtcp2/ngtcp2.h>
   23613 
   23614 "
   23615 if test "x$ac_cv_member_struct_ngtcp2_settings_tokenlen" = xyes
   23616 then :
   23617 
   23618 printf "%s\n" "#define HAVE_STRUCT_NGTCP2_SETTINGS_TOKENLEN 1" >>confdefs.h
   23619 
   23620 
   23621 fi
   23622 ac_fn_c_check_member "$LINENO" "struct ngtcp2_settings" "max_tx_udp_payload_size" "ac_cv_member_struct_ngtcp2_settings_max_tx_udp_payload_size" "$ac_includes_default
   23623     #include <ngtcp2/ngtcp2.h>
   23624 
   23625 "
   23626 if test "x$ac_cv_member_struct_ngtcp2_settings_max_tx_udp_payload_size" = xyes
   23627 then :
   23628 
   23629 printf "%s\n" "#define HAVE_STRUCT_NGTCP2_SETTINGS_MAX_TX_UDP_PAYLOAD_SIZE 1" >>confdefs.h
   23630 
   23631 
   23632 fi
   23633 ac_fn_c_check_member "$LINENO" "struct ngtcp2_transport_params" "original_dcid_present" "ac_cv_member_struct_ngtcp2_transport_params_original_dcid_present" "$ac_includes_default
   23634     #include <ngtcp2/ngtcp2.h>
   23635 
   23636 "
   23637 if test "x$ac_cv_member_struct_ngtcp2_transport_params_original_dcid_present" = xyes
   23638 then :
   23639 
   23640 printf "%s\n" "#define HAVE_STRUCT_NGTCP2_TRANSPORT_PARAMS_ORIGINAL_DCID_PRESENT 1" >>confdefs.h
   23641 
   23642 
   23643 fi
   23644 
   23645 
   23646     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ngtcp2_conn_shutdown_stream has 4 arguments" >&5
   23647 printf %s "checking whether ngtcp2_conn_shutdown_stream has 4 arguments... " >&6; }
   23648     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23649 /* end confdefs.h.  */
   23650 $ac_includes_default
   23651 #include <ngtcp2/ngtcp2.h>
   23652 
   23653 int
   23654 main (void)
   23655 {
   23656 
   23657 	(void)ngtcp2_conn_shutdown_stream(NULL, 0, 0, 0);
   23658 
   23659   ;
   23660   return 0;
   23661 }
   23662 _ACEOF
   23663 if ac_fn_c_try_compile "$LINENO"
   23664 then :
   23665 
   23666 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23667 printf "%s\n" "yes" >&6; }
   23668 
   23669 printf "%s\n" "#define HAVE_NGTCP2_CONN_SHUTDOWN_STREAM4 1" >>confdefs.h
   23670 
   23671 
   23672 else $as_nop
   23673 
   23674 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23675 printf "%s\n" "no" >&6; }
   23676 
   23677 fi
   23678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   23679 
   23680 fi
   23681 
   23682 # set static linking for uninstalled libraries if requested
   23683 
   23684 staticexe=""
   23685 # Check whether --enable-static-exe was given.
   23686 if test ${enable_static_exe+y}
   23687 then :
   23688   enableval=$enable_static_exe;
   23689 fi
   23690 
   23691 if test x_$enable_static_exe = x_yes; then
   23692 	staticexe="-static"
   23693 	if test "$on_mingw" = yes; then
   23694 		staticexe="-all-static"
   23695 		# for static compile, include gdi32 and zlib here.
   23696 		if echo "$LIBS" | grep 'lgdi32' >/dev/null; then
   23697 			:
   23698 		else
   23699 			LIBS="$LIBS -lgdi32"
   23700 		fi
   23701 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
   23702 printf %s "checking for compress in -lz... " >&6; }
   23703 if test ${ac_cv_lib_z_compress+y}
   23704 then :
   23705   printf %s "(cached) " >&6
   23706 else $as_nop
   23707   ac_check_lib_save_LIBS=$LIBS
   23708 LIBS="-lz  $LIBS"
   23709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23710 /* end confdefs.h.  */
   23711 
   23712 /* Override any GCC internal prototype to avoid an error.
   23713    Use char because int might match the return type of a GCC
   23714    builtin and then its argument prototype would still apply.  */
   23715 char compress ();
   23716 int
   23717 main (void)
   23718 {
   23719 return compress ();
   23720   ;
   23721   return 0;
   23722 }
   23723 _ACEOF
   23724 if ac_fn_c_try_link "$LINENO"
   23725 then :
   23726   ac_cv_lib_z_compress=yes
   23727 else $as_nop
   23728   ac_cv_lib_z_compress=no
   23729 fi
   23730 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23731     conftest$ac_exeext conftest.$ac_ext
   23732 LIBS=$ac_check_lib_save_LIBS
   23733 fi
   23734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
   23735 printf "%s\n" "$ac_cv_lib_z_compress" >&6; }
   23736 if test "x$ac_cv_lib_z_compress" = xyes
   23737 then :
   23738    LIBS="$LIBS -lz"
   23739 fi
   23740 
   23741 		if echo "$host" | $GREP -i -e linux >/dev/null; then
   23742 			if echo "$LIBS" | grep -e "libssp.a" -e "lssp" >/dev/null; then
   23743 				:
   23744 			else
   23745 				LIBS="$LIBS -l:libssp.a"
   23746 			fi
   23747 		fi
   23748 	fi
   23749 fi
   23750 
   23751 # set full static linking if requested
   23752 # Check whether --enable-fully-static was given.
   23753 if test ${enable_fully_static+y}
   23754 then :
   23755   enableval=$enable_fully_static;
   23756 fi
   23757 
   23758 if test x_$enable_fully_static = x_yes; then
   23759 	staticexe="-all-static"
   23760 	if test "$on_mingw" = yes; then
   23761 		# for static compile, include gdi32 and zlib here.
   23762 		if echo $LIBS | grep 'lgdi32' >/dev/null; then
   23763 			:
   23764 		else
   23765 			LIBS="$LIBS -lgdi32"
   23766 		fi
   23767 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
   23768 printf %s "checking for compress in -lz... " >&6; }
   23769 if test ${ac_cv_lib_z_compress+y}
   23770 then :
   23771   printf %s "(cached) " >&6
   23772 else $as_nop
   23773   ac_check_lib_save_LIBS=$LIBS
   23774 LIBS="-lz  $LIBS"
   23775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23776 /* end confdefs.h.  */
   23777 
   23778 /* Override any GCC internal prototype to avoid an error.
   23779    Use char because int might match the return type of a GCC
   23780    builtin and then its argument prototype would still apply.  */
   23781 char compress ();
   23782 int
   23783 main (void)
   23784 {
   23785 return compress ();
   23786   ;
   23787   return 0;
   23788 }
   23789 _ACEOF
   23790 if ac_fn_c_try_link "$LINENO"
   23791 then :
   23792   ac_cv_lib_z_compress=yes
   23793 else $as_nop
   23794   ac_cv_lib_z_compress=no
   23795 fi
   23796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23797     conftest$ac_exeext conftest.$ac_ext
   23798 LIBS=$ac_check_lib_save_LIBS
   23799 fi
   23800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
   23801 printf "%s\n" "$ac_cv_lib_z_compress" >&6; }
   23802 if test "x$ac_cv_lib_z_compress" = xyes
   23803 then :
   23804    LIBS="$LIBS -lz"
   23805 fi
   23806 
   23807 		if echo "$host" | $GREP -i -e linux >/dev/null; then
   23808 			if echo "$LIBS" | grep -e "libssp.a" -e "lssp" >/dev/null; then
   23809 				:
   23810 			else
   23811 				LIBS="$LIBS -l:libssp.a"
   23812 			fi
   23813 		fi
   23814 	fi
   23815 fi
   23816 
   23817 # set lock checking if requested
   23818 # Check whether --enable-lock_checks was given.
   23819 if test ${enable_lock_checks+y}
   23820 then :
   23821   enableval=$enable_lock_checks;
   23822 fi
   23823 
   23824 if test x_$enable_lock_checks = x_yes; then
   23825 
   23826 printf "%s\n" "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
   23827 
   23828 	CHECKLOCK_OBJ="checklocks.lo"
   23829 
   23830 fi
   23831 
   23832 
   23833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
   23834 printf %s "checking for getaddrinfo... " >&6; }
   23835 ac_cv_func_getaddrinfo=no
   23836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23837 /* end confdefs.h.  */
   23838 
   23839 #ifdef __cplusplus
   23840 extern "C"
   23841 {
   23842 #endif
   23843 char* getaddrinfo();
   23844 char* (*f) () = getaddrinfo;
   23845 #ifdef __cplusplus
   23846 }
   23847 #endif
   23848 int main(void) {
   23849         ;
   23850         return 0;
   23851 }
   23852 
   23853 _ACEOF
   23854 if ac_fn_c_try_link "$LINENO"
   23855 then :
   23856   ac_cv_func_getaddrinfo="yes"
   23857 if test "$ac_cv_header_windows_h" = "yes"; then
   23858 
   23859 printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h
   23860 
   23861 	USE_WINSOCK="1"
   23862 	if echo "$LIBS" | grep 'lws2_32' >/dev/null; then
   23863 		:
   23864 	else
   23865 		LIBS="$LIBS -lws2_32"
   23866 	fi
   23867 fi
   23868 
   23869 else $as_nop
   23870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23871 /* end confdefs.h.  */
   23872 
   23873 #ifdef HAVE_WS2TCPIP_H
   23874 #include <ws2tcpip.h>
   23875 #endif
   23876 
   23877 int
   23878 main (void)
   23879 {
   23880 
   23881         (void)getaddrinfo(NULL, NULL, NULL, NULL);
   23882 
   23883 
   23884   ;
   23885   return 0;
   23886 }
   23887 _ACEOF
   23888 if ac_fn_c_try_link "$LINENO"
   23889 then :
   23890 
   23891 ac_cv_func_getaddrinfo="yes"
   23892 
   23893 printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h
   23894 
   23895 USE_WINSOCK="1"
   23896 
   23897 else $as_nop
   23898   ORIGLIBS="$LIBS"
   23899 LIBS="$LIBS -lws2_32"
   23900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23901 /* end confdefs.h.  */
   23902 
   23903 #ifdef HAVE_WS2TCPIP_H
   23904 #include <ws2tcpip.h>
   23905 #endif
   23906 
   23907 int
   23908 main (void)
   23909 {
   23910 
   23911         (void)getaddrinfo(NULL, NULL, NULL, NULL);
   23912 
   23913 
   23914   ;
   23915   return 0;
   23916 }
   23917 _ACEOF
   23918 if ac_fn_c_try_link "$LINENO"
   23919 then :
   23920 
   23921 ac_cv_func_getaddrinfo="yes"
   23922 
   23923 printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h
   23924 
   23925 USE_WINSOCK="1"
   23926 
   23927 else $as_nop
   23928 
   23929 ac_cv_func_getaddrinfo="no"
   23930 LIBS="$ORIGLIBS"
   23931 
   23932 fi
   23933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23934     conftest$ac_exeext conftest.$ac_ext
   23935 
   23936 fi
   23937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23938     conftest$ac_exeext conftest.$ac_ext
   23939 
   23940 fi
   23941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   23942     conftest$ac_exeext conftest.$ac_ext
   23943 
   23944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
   23945 printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; }
   23946 if test $ac_cv_func_getaddrinfo = yes; then
   23947 
   23948 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
   23949 
   23950 fi
   23951 
   23952 if test "$USE_WINSOCK" = 1; then
   23953 
   23954 printf "%s\n" "#define UB_ON_WINDOWS 1" >>confdefs.h
   23955 
   23956 	ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
   23957 #include <windows.h>
   23958 
   23959 "
   23960 if test "x$ac_cv_header_iphlpapi_h" = xyes
   23961 then :
   23962   printf "%s\n" "#define HAVE_IPHLPAPI_H 1" >>confdefs.h
   23963 
   23964 fi
   23965 
   23966 	if test -n "$ac_tool_prefix"; then
   23967   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
   23968 set dummy ${ac_tool_prefix}windres; ac_word=$2
   23969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23970 printf %s "checking for $ac_word... " >&6; }
   23971 if test ${ac_cv_prog_WINDRES+y}
   23972 then :
   23973   printf %s "(cached) " >&6
   23974 else $as_nop
   23975   if test -n "$WINDRES"; then
   23976   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   23977 else
   23978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23979 for as_dir in $PATH
   23980 do
   23981   IFS=$as_save_IFS
   23982   case $as_dir in #(((
   23983     '') as_dir=./ ;;
   23984     */) ;;
   23985     *) as_dir=$as_dir/ ;;
   23986   esac
   23987     for ac_exec_ext in '' $ac_executable_extensions; do
   23988   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   23989     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
   23990     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   23991     break 2
   23992   fi
   23993 done
   23994   done
   23995 IFS=$as_save_IFS
   23996 
   23997 fi
   23998 fi
   23999 WINDRES=$ac_cv_prog_WINDRES
   24000 if test -n "$WINDRES"; then
   24001   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   24002 printf "%s\n" "$WINDRES" >&6; }
   24003 else
   24004   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24005 printf "%s\n" "no" >&6; }
   24006 fi
   24007 
   24008 
   24009 fi
   24010 if test -z "$ac_cv_prog_WINDRES"; then
   24011   ac_ct_WINDRES=$WINDRES
   24012   # Extract the first word of "windres", so it can be a program name with args.
   24013 set dummy windres; ac_word=$2
   24014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   24015 printf %s "checking for $ac_word... " >&6; }
   24016 if test ${ac_cv_prog_ac_ct_WINDRES+y}
   24017 then :
   24018   printf %s "(cached) " >&6
   24019 else $as_nop
   24020   if test -n "$ac_ct_WINDRES"; then
   24021   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
   24022 else
   24023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   24024 for as_dir in $PATH
   24025 do
   24026   IFS=$as_save_IFS
   24027   case $as_dir in #(((
   24028     '') as_dir=./ ;;
   24029     */) ;;
   24030     *) as_dir=$as_dir/ ;;
   24031   esac
   24032     for ac_exec_ext in '' $ac_executable_extensions; do
   24033   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   24034     ac_cv_prog_ac_ct_WINDRES="windres"
   24035     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   24036     break 2
   24037   fi
   24038 done
   24039   done
   24040 IFS=$as_save_IFS
   24041 
   24042 fi
   24043 fi
   24044 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
   24045 if test -n "$ac_ct_WINDRES"; then
   24046   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
   24047 printf "%s\n" "$ac_ct_WINDRES" >&6; }
   24048 else
   24049   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24050 printf "%s\n" "no" >&6; }
   24051 fi
   24052 
   24053   if test "x$ac_ct_WINDRES" = x; then
   24054     WINDRES=""
   24055   else
   24056     case $cross_compiling:$ac_tool_warned in
   24057 yes:)
   24058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   24059 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   24060 ac_tool_warned=yes ;;
   24061 esac
   24062     WINDRES=$ac_ct_WINDRES
   24063   fi
   24064 else
   24065   WINDRES="$ac_cv_prog_WINDRES"
   24066 fi
   24067 
   24068 	if echo "$LIBS" | grep crypt32 >/dev/null; then
   24069 		LIBS="$LIBS -liphlpapi"
   24070 	else
   24071 		LIBS="$LIBS -liphlpapi -lcrypt32"
   24072 	fi
   24073 	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
   24074 
   24075 	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
   24076 
   24077 	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
   24078 
   24079 	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
   24080 
   24081 	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
   24082 
   24083 	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
   24084 
   24085 	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
   24086 
   24087 	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
   24088 
   24089 
   24090 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
   24091 
   24092 fi
   24093 if test $ac_cv_func_getaddrinfo = no; then
   24094 	case " $LIBOBJS " in
   24095   *" fake-rfc2553.$ac_objext "* ) ;;
   24096   *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
   24097  ;;
   24098 esac
   24099 
   24100 fi
   24101 # check after getaddrinfo for its libraries
   24102 
   24103 # check ioctlsocket
   24104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
   24105 printf %s "checking for ioctlsocket... " >&6; }
   24106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24107 /* end confdefs.h.  */
   24108 
   24109 #ifdef HAVE_WINSOCK2_H
   24110 #include <winsock2.h>
   24111 #endif
   24112 
   24113 int
   24114 main (void)
   24115 {
   24116 
   24117 	(void)ioctlsocket(0, 0, NULL);
   24118 
   24119   ;
   24120   return 0;
   24121 }
   24122 _ACEOF
   24123 if ac_fn_c_try_link "$LINENO"
   24124 then :
   24125 
   24126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24127 printf "%s\n" "yes" >&6; }
   24128 
   24129 printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
   24130 
   24131 
   24132 else $as_nop
   24133   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24134 printf "%s\n" "no" >&6; }
   24135 fi
   24136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   24137     conftest$ac_exeext conftest.$ac_ext
   24138 
   24139 
   24140 # see if daemon(3) exists, and if it is deprecated.
   24141 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
   24142 if test "x$ac_cv_func_daemon" = xyes
   24143 then :
   24144   printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
   24145 
   24146 fi
   24147 
   24148 if test $ac_cv_func_daemon = yes; then
   24149 
   24150 
   24151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
   24152 printf %s "checking if daemon is deprecated... " >&6; }
   24153 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
   24154 if eval test \${cv_cc_deprecated_$cache+y}
   24155 then :
   24156   printf %s "(cached) " >&6
   24157 else $as_nop
   24158 
   24159 echo '
   24160 #include <stdlib.h>
   24161 #include <unistd.h>
   24162 ' >conftest.c
   24163 echo 'void f(void){ (void)daemon(0, 0); }' >>conftest.c
   24164 if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then
   24165 eval "cv_cc_deprecated_$cache=no"
   24166 else
   24167 eval "cv_cc_deprecated_$cache=yes"
   24168 fi
   24169 rm -f conftest conftest.o conftest.c
   24170 
   24171 fi
   24172 
   24173 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
   24174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24175 printf "%s\n" "yes" >&6; }
   24176 
   24177 printf "%s\n" "#define DEPRECATED_DAEMON 1" >>confdefs.h
   24178 
   24179 :
   24180 
   24181 else
   24182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24183 printf "%s\n" "no" >&6; }
   24184 :
   24185 
   24186 fi
   24187 
   24188 fi
   24189 
   24190 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
   24191 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes
   24192 then :
   24193 
   24194 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h
   24195 
   24196 
   24197 fi
   24198 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
   24199 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes
   24200 then :
   24201 
   24202 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1" >>confdefs.h
   24203 
   24204 
   24205 fi
   24206 
   24207 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
   24208 $ac_includes_default
   24209 #ifdef HAVE_SYS_UN_H
   24210 #include <sys/un.h>
   24211 #endif
   24212 
   24213 "
   24214 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes
   24215 then :
   24216 
   24217 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h
   24218 
   24219 
   24220 fi
   24221 
   24222 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
   24223 $ac_includes_default
   24224 #if HAVE_SYS_PARAM_H
   24225 #include <sys/param.h>
   24226 #endif
   24227 
   24228 #ifdef HAVE_SYS_SOCKET_H
   24229 #include <sys/socket.h>
   24230 #endif
   24231 
   24232 #ifdef HAVE_SYS_UIO_H
   24233 #include <sys/uio.h>
   24234 #endif
   24235 
   24236 #ifdef HAVE_NETINET_IN_H
   24237 #include <netinet/in.h>
   24238 #endif
   24239 
   24240 #ifdef HAVE_NETINET_TCP_H
   24241 #include <netinet/tcp.h>
   24242 #endif
   24243 
   24244 #ifdef HAVE_ARPA_INET_H
   24245 #include <arpa/inet.h>
   24246 #endif
   24247 
   24248 #ifdef HAVE_WINSOCK2_H
   24249 #include <winsock2.h>
   24250 #endif
   24251 
   24252 #ifdef HAVE_WS2TCPIP_H
   24253 #include <ws2tcpip.h>
   24254 #endif
   24255 
   24256 "
   24257 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes
   24258 then :
   24259 
   24260 printf "%s\n" "#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1" >>confdefs.h
   24261 
   24262 
   24263 fi
   24264 
   24265 
   24266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
   24267 printf %s "checking for htobe64... " >&6; }
   24268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24269 /* end confdefs.h.  */
   24270 
   24271 #include <stdio.h>
   24272 #ifdef HAVE_ENDIAN_H
   24273 #  include <endian.h>
   24274 #endif
   24275 #ifdef HAVE_SYS_ENDIAN_H
   24276 #  include <sys/endian.h>
   24277 #endif
   24278 
   24279 int
   24280 main (void)
   24281 {
   24282 unsigned long long x = htobe64(0); printf("%u", (unsigned)x);
   24283   ;
   24284   return 0;
   24285 }
   24286 _ACEOF
   24287 if ac_fn_c_try_link "$LINENO"
   24288 then :
   24289   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24290 printf "%s\n" "yes" >&6; }
   24291 
   24292 printf "%s\n" "#define HAVE_HTOBE64 1" >>confdefs.h
   24293 
   24294 else $as_nop
   24295   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24296 printf "%s\n" "no" >&6; }
   24297 fi
   24298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   24299     conftest$ac_exeext conftest.$ac_ext
   24300 
   24301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
   24302 printf %s "checking for be64toh... " >&6; }
   24303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24304 /* end confdefs.h.  */
   24305 
   24306 #include <stdio.h>
   24307 #ifdef HAVE_ENDIAN_H
   24308 #  include <endian.h>
   24309 #endif
   24310 #ifdef HAVE_SYS_ENDIAN_H
   24311 #  include <sys/endian.h>
   24312 #endif
   24313 
   24314 int
   24315 main (void)
   24316 {
   24317 unsigned long long x = be64toh(0); printf("%u", (unsigned)x);
   24318   ;
   24319   return 0;
   24320 }
   24321 _ACEOF
   24322 if ac_fn_c_try_link "$LINENO"
   24323 then :
   24324   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24325 printf "%s\n" "yes" >&6; }
   24326 
   24327 printf "%s\n" "#define HAVE_BE64TOH 1" >>confdefs.h
   24328 
   24329 else $as_nop
   24330   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24331 printf "%s\n" "no" >&6; }
   24332 fi
   24333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   24334     conftest$ac_exeext conftest.$ac_ext
   24335 
   24336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
   24337 printf %s "checking for library containing setusercontext... " >&6; }
   24338 if test ${ac_cv_search_setusercontext+y}
   24339 then :
   24340   printf %s "(cached) " >&6
   24341 else $as_nop
   24342   ac_func_search_save_LIBS=$LIBS
   24343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24344 /* end confdefs.h.  */
   24345 
   24346 /* Override any GCC internal prototype to avoid an error.
   24347    Use char because int might match the return type of a GCC
   24348    builtin and then its argument prototype would still apply.  */
   24349 char setusercontext ();
   24350 int
   24351 main (void)
   24352 {
   24353 return setusercontext ();
   24354   ;
   24355   return 0;
   24356 }
   24357 _ACEOF
   24358 for ac_lib in '' util
   24359 do
   24360   if test -z "$ac_lib"; then
   24361     ac_res="none required"
   24362   else
   24363     ac_res=-l$ac_lib
   24364     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   24365   fi
   24366   if ac_fn_c_try_link "$LINENO"
   24367 then :
   24368   ac_cv_search_setusercontext=$ac_res
   24369 fi
   24370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   24371     conftest$ac_exeext
   24372   if test ${ac_cv_search_setusercontext+y}
   24373 then :
   24374   break
   24375 fi
   24376 done
   24377 if test ${ac_cv_search_setusercontext+y}
   24378 then :
   24379 
   24380 else $as_nop
   24381   ac_cv_search_setusercontext=no
   24382 fi
   24383 rm conftest.$ac_ext
   24384 LIBS=$ac_func_search_save_LIBS
   24385 fi
   24386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
   24387 printf "%s\n" "$ac_cv_search_setusercontext" >&6; }
   24388 ac_res=$ac_cv_search_setusercontext
   24389 if test "$ac_res" != no
   24390 then :
   24391   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   24392 
   24393 fi
   24394 
   24395 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
   24396 if test "x$ac_cv_func_tzset" = xyes
   24397 then :
   24398   printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
   24399 
   24400 fi
   24401 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
   24402 if test "x$ac_cv_func_sigprocmask" = xyes
   24403 then :
   24404   printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
   24405 
   24406 fi
   24407 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
   24408 if test "x$ac_cv_func_fcntl" = xyes
   24409 then :
   24410   printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
   24411 
   24412 fi
   24413 ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
   24414 if test "x$ac_cv_func_getpwnam" = xyes
   24415 then :
   24416   printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
   24417 
   24418 fi
   24419 ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent"
   24420 if test "x$ac_cv_func_endpwent" = xyes
   24421 then :
   24422   printf "%s\n" "#define HAVE_ENDPWENT 1" >>confdefs.h
   24423 
   24424 fi
   24425 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
   24426 if test "x$ac_cv_func_getrlimit" = xyes
   24427 then :
   24428   printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
   24429 
   24430 fi
   24431 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
   24432 if test "x$ac_cv_func_setrlimit" = xyes
   24433 then :
   24434   printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
   24435 
   24436 fi
   24437 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
   24438 if test "x$ac_cv_func_setsid" = xyes
   24439 then :
   24440   printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
   24441 
   24442 fi
   24443 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
   24444 if test "x$ac_cv_func_chroot" = xyes
   24445 then :
   24446   printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
   24447 
   24448 fi
   24449 ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill"
   24450 if test "x$ac_cv_func_kill" = xyes
   24451 then :
   24452   printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h
   24453 
   24454 fi
   24455 ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
   24456 if test "x$ac_cv_func_chown" = xyes
   24457 then :
   24458   printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
   24459 
   24460 fi
   24461 ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep"
   24462 if test "x$ac_cv_func_sleep" = xyes
   24463 then :
   24464   printf "%s\n" "#define HAVE_SLEEP 1" >>confdefs.h
   24465 
   24466 fi
   24467 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
   24468 if test "x$ac_cv_func_usleep" = xyes
   24469 then :
   24470   printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
   24471 
   24472 fi
   24473 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
   24474 if test "x$ac_cv_func_random" = xyes
   24475 then :
   24476   printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
   24477 
   24478 fi
   24479 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
   24480 if test "x$ac_cv_func_srandom" = xyes
   24481 then :
   24482   printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
   24483 
   24484 fi
   24485 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
   24486 if test "x$ac_cv_func_recvmsg" = xyes
   24487 then :
   24488   printf "%s\n" "#define HAVE_RECVMSG 1" >>confdefs.h
   24489 
   24490 fi
   24491 ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg"
   24492 if test "x$ac_cv_func_sendmsg" = xyes
   24493 then :
   24494   printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h
   24495 
   24496 fi
   24497 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
   24498 if test "x$ac_cv_func_writev" = xyes
   24499 then :
   24500   printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
   24501 
   24502 fi
   24503 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
   24504 if test "x$ac_cv_func_socketpair" = xyes
   24505 then :
   24506   printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
   24507 
   24508 fi
   24509 ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
   24510 if test "x$ac_cv_func_glob" = xyes
   24511 then :
   24512   printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h
   24513 
   24514 fi
   24515 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
   24516 if test "x$ac_cv_func_initgroups" = xyes
   24517 then :
   24518   printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
   24519 
   24520 fi
   24521 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
   24522 if test "x$ac_cv_func_strftime" = xyes
   24523 then :
   24524   printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
   24525 
   24526 fi
   24527 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
   24528 if test "x$ac_cv_func_localtime_r" = xyes
   24529 then :
   24530   printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
   24531 
   24532 fi
   24533 ac_fn_c_check_func "$LINENO" "setusercontext" "ac_cv_func_setusercontext"
   24534 if test "x$ac_cv_func_setusercontext" = xyes
   24535 then :
   24536   printf "%s\n" "#define HAVE_SETUSERCONTEXT 1" >>confdefs.h
   24537 
   24538 fi
   24539 ac_fn_c_check_func "$LINENO" "_beginthreadex" "ac_cv_func__beginthreadex"
   24540 if test "x$ac_cv_func__beginthreadex" = xyes
   24541 then :
   24542   printf "%s\n" "#define HAVE__BEGINTHREADEX 1" >>confdefs.h
   24543 
   24544 fi
   24545 ac_fn_c_check_func "$LINENO" "endservent" "ac_cv_func_endservent"
   24546 if test "x$ac_cv_func_endservent" = xyes
   24547 then :
   24548   printf "%s\n" "#define HAVE_ENDSERVENT 1" >>confdefs.h
   24549 
   24550 fi
   24551 ac_fn_c_check_func "$LINENO" "endprotoent" "ac_cv_func_endprotoent"
   24552 if test "x$ac_cv_func_endprotoent" = xyes
   24553 then :
   24554   printf "%s\n" "#define HAVE_ENDPROTOENT 1" >>confdefs.h
   24555 
   24556 fi
   24557 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
   24558 if test "x$ac_cv_func_fsync" = xyes
   24559 then :
   24560   printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
   24561 
   24562 fi
   24563 ac_fn_c_check_func "$LINENO" "shmget" "ac_cv_func_shmget"
   24564 if test "x$ac_cv_func_shmget" = xyes
   24565 then :
   24566   printf "%s\n" "#define HAVE_SHMGET 1" >>confdefs.h
   24567 
   24568 fi
   24569 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
   24570 if test "x$ac_cv_func_accept4" = xyes
   24571 then :
   24572   printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
   24573 
   24574 fi
   24575 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
   24576 if test "x$ac_cv_func_getifaddrs" = xyes
   24577 then :
   24578   printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
   24579 
   24580 fi
   24581 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
   24582 if test "x$ac_cv_func_if_nametoindex" = xyes
   24583 then :
   24584   printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
   24585 
   24586 fi
   24587 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
   24588 if test "x$ac_cv_func_poll" = xyes
   24589 then :
   24590   printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
   24591 
   24592 fi
   24593 ac_fn_c_check_func "$LINENO" "gettid" "ac_cv_func_gettid"
   24594 if test "x$ac_cv_func_gettid" = xyes
   24595 then :
   24596   printf "%s\n" "#define HAVE_GETTID 1" >>confdefs.h
   24597 
   24598 fi
   24599 
   24600 
   24601   for ac_func in setresuid
   24602 do :
   24603   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
   24604 if test "x$ac_cv_func_setresuid" = xyes
   24605 then :
   24606   printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
   24607 
   24608 else $as_nop
   24609   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
   24610 if test "x$ac_cv_func_setreuid" = xyes
   24611 then :
   24612   printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
   24613 
   24614 fi
   24615 
   24616 fi
   24617 
   24618 done
   24619 
   24620   for ac_func in setresgid
   24621 do :
   24622   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
   24623 if test "x$ac_cv_func_setresgid" = xyes
   24624 then :
   24625   printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
   24626 
   24627 else $as_nop
   24628   ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
   24629 if test "x$ac_cv_func_setregid" = xyes
   24630 then :
   24631   printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
   24632 
   24633 fi
   24634 
   24635 fi
   24636 
   24637 done
   24638 
   24639 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
   24640 if echo $host_os | grep darwin8 > /dev/null; then
   24641 
   24642 printf "%s\n" "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
   24643 
   24644 fi
   24645 
   24646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for atomic_store" >&5
   24647 printf %s "checking for atomic_store... " >&6; }
   24648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24649 /* end confdefs.h.  */
   24650 $ac_includes_default
   24651 #ifdef HAVE_STDATOMIC_H
   24652 #include <stdatomic.h>
   24653 #endif
   24654 
   24655 int
   24656 main (void)
   24657 {
   24658 
   24659 	int newvar = 5, var = 0;
   24660 	atomic_store((_Atomic int*)&var, newvar);
   24661 	newvar = 0;
   24662 	/* condition to use the variables. */
   24663 	if(var == newvar) return 1;
   24664 
   24665   ;
   24666   return 0;
   24667 }
   24668 _ACEOF
   24669 if ac_fn_c_try_link "$LINENO"
   24670 then :
   24671 
   24672 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24673 printf "%s\n" "yes" >&6; }
   24674 
   24675 printf "%s\n" "#define HAVE_LINK_ATOMIC_STORE 1" >>confdefs.h
   24676 
   24677 
   24678 else $as_nop
   24679 
   24680 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24681 printf "%s\n" "no" >&6; }
   24682 
   24683 fi
   24684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   24685     conftest$ac_exeext conftest.$ac_ext
   24686 
   24687 ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
   24688 $ac_includes_default
   24689 #ifdef HAVE_NETINET_IN_H
   24690 #include <netinet/in.h>
   24691 #endif
   24692 
   24693 #ifdef HAVE_NETINET_TCP_H
   24694 #include <netinet/tcp.h>
   24695 #endif
   24696 
   24697 #ifdef HAVE_ARPA_INET_H
   24698 #include <arpa/inet.h>
   24699 #endif
   24700 
   24701 #ifdef HAVE_WINSOCK2_H
   24702 #include <winsock2.h>
   24703 #endif
   24704 
   24705 #ifdef HAVE_WS2TCPIP_H
   24706 #include <ws2tcpip.h>
   24707 #endif
   24708 
   24709 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   24710 if test "x$ac_cv_have_decl_inet_pton" = xyes
   24711 then :
   24712   ac_have_decl=1
   24713 else $as_nop
   24714   ac_have_decl=0
   24715 fi
   24716 printf "%s\n" "#define HAVE_DECL_INET_PTON $ac_have_decl" >>confdefs.h
   24717 ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
   24718 $ac_includes_default
   24719 #ifdef HAVE_NETINET_IN_H
   24720 #include <netinet/in.h>
   24721 #endif
   24722 
   24723 #ifdef HAVE_NETINET_TCP_H
   24724 #include <netinet/tcp.h>
   24725 #endif
   24726 
   24727 #ifdef HAVE_ARPA_INET_H
   24728 #include <arpa/inet.h>
   24729 #endif
   24730 
   24731 #ifdef HAVE_WINSOCK2_H
   24732 #include <winsock2.h>
   24733 #endif
   24734 
   24735 #ifdef HAVE_WS2TCPIP_H
   24736 #include <ws2tcpip.h>
   24737 #endif
   24738 
   24739 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   24740 if test "x$ac_cv_have_decl_inet_ntop" = xyes
   24741 then :
   24742   ac_have_decl=1
   24743 else $as_nop
   24744   ac_have_decl=0
   24745 fi
   24746 printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h
   24747 
   24748 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
   24749 if test "x$ac_cv_func_inet_aton" = xyes
   24750 then :
   24751   printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
   24752 
   24753 else $as_nop
   24754   case " $LIBOBJS " in
   24755   *" inet_aton.$ac_objext "* ) ;;
   24756   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
   24757  ;;
   24758 esac
   24759 
   24760 fi
   24761 
   24762 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
   24763 if test "x$ac_cv_func_inet_pton" = xyes
   24764 then :
   24765   printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
   24766 
   24767 else $as_nop
   24768   case " $LIBOBJS " in
   24769   *" inet_pton.$ac_objext "* ) ;;
   24770   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
   24771  ;;
   24772 esac
   24773 
   24774 fi
   24775 
   24776 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
   24777 if test "x$ac_cv_func_inet_ntop" = xyes
   24778 then :
   24779   printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
   24780 
   24781 else $as_nop
   24782   case " $LIBOBJS " in
   24783   *" inet_ntop.$ac_objext "* ) ;;
   24784   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
   24785  ;;
   24786 esac
   24787 
   24788 fi
   24789 
   24790 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
   24791 if test "x$ac_cv_func_snprintf" = xyes
   24792 then :
   24793   printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
   24794 
   24795 else $as_nop
   24796   case " $LIBOBJS " in
   24797   *" snprintf.$ac_objext "* ) ;;
   24798   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
   24799  ;;
   24800 esac
   24801 
   24802 fi
   24803 
   24804 # test if snprintf return the proper length
   24805 if test "x$ac_cv_func_snprintf" = xyes; then
   24806     if test c${cross_compiling} = cno; then
   24807 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
   24808 printf %s "checking for correct snprintf return value... " >&6; }
   24809 	if test "$cross_compiling" = yes
   24810 then :
   24811   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
   24812 printf "%s\n" "maybe" >&6; }
   24813 else $as_nop
   24814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24815 /* end confdefs.h.  */
   24816 $ac_includes_default
   24817 
   24818 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
   24819 
   24820 _ACEOF
   24821 if ac_fn_c_try_run "$LINENO"
   24822 then :
   24823   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24824 printf "%s\n" "yes" >&6; }
   24825 else $as_nop
   24826 
   24827 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24828 printf "%s\n" "no" >&6; }
   24829 
   24830 printf "%s\n" "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
   24831 
   24832 		case " $LIBOBJS " in
   24833   *" snprintf.$ac_objext "* ) ;;
   24834   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
   24835  ;;
   24836 esac
   24837 
   24838 
   24839 fi
   24840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   24841   conftest.$ac_objext conftest.beam conftest.$ac_ext
   24842 fi
   24843 
   24844     fi
   24845 fi
   24846 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
   24847 if test "x$ac_cv_func_strlcat" = xyes
   24848 then :
   24849   printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
   24850 
   24851 else $as_nop
   24852   case " $LIBOBJS " in
   24853   *" strlcat.$ac_objext "* ) ;;
   24854   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
   24855  ;;
   24856 esac
   24857 
   24858 fi
   24859 
   24860 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
   24861 if test "x$ac_cv_func_strlcpy" = xyes
   24862 then :
   24863   printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
   24864 
   24865 else $as_nop
   24866   case " $LIBOBJS " in
   24867   *" strlcpy.$ac_objext "* ) ;;
   24868   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
   24869  ;;
   24870 esac
   24871 
   24872 fi
   24873 
   24874 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
   24875 if test "x$ac_cv_func_memmove" = xyes
   24876 then :
   24877   printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
   24878 
   24879 else $as_nop
   24880   case " $LIBOBJS " in
   24881   *" memmove.$ac_objext "* ) ;;
   24882   *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
   24883  ;;
   24884 esac
   24885 
   24886 fi
   24887 
   24888 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
   24889 if test "x$ac_cv_func_gmtime_r" = xyes
   24890 then :
   24891   printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
   24892 
   24893 else $as_nop
   24894   case " $LIBOBJS " in
   24895   *" gmtime_r.$ac_objext "* ) ;;
   24896   *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
   24897  ;;
   24898 esac
   24899 
   24900 fi
   24901 
   24902 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
   24903 if test "x$ac_cv_func_isblank" = xyes
   24904 then :
   24905   printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h
   24906 
   24907 else $as_nop
   24908   case " $LIBOBJS " in
   24909   *" isblank.$ac_objext "* ) ;;
   24910   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
   24911  ;;
   24912 esac
   24913 
   24914 fi
   24915 
   24916 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
   24917 if test "x$ac_cv_func_explicit_bzero" = xyes
   24918 then :
   24919   printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
   24920 
   24921 else $as_nop
   24922   case " $LIBOBJS " in
   24923   *" explicit_bzero.$ac_objext "* ) ;;
   24924   *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
   24925  ;;
   24926 esac
   24927 
   24928 fi
   24929 
   24930 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
   24931 
   24932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
   24933 printf %s "checking for reallocarray... " >&6; }
   24934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24935 /* end confdefs.h.  */
   24936 $ac_includes_default
   24937 
   24938 #ifndef _OPENBSD_SOURCE
   24939 #define _OPENBSD_SOURCE 1
   24940 #endif
   24941 #include <stdlib.h>
   24942 int main(void) {
   24943 	void* p = reallocarray(NULL, 10, 100);
   24944 	free(p);
   24945 	return 0;
   24946 }
   24947 
   24948 _ACEOF
   24949 if ac_fn_c_try_link "$LINENO"
   24950 then :
   24951   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24952 printf "%s\n" "yes" >&6; }
   24953 
   24954 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
   24955 
   24956 
   24957 else $as_nop
   24958 
   24959 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24960 printf "%s\n" "no" >&6; }
   24961 	case " $LIBOBJS " in
   24962   *" reallocarray.$ac_objext "* ) ;;
   24963   *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
   24964  ;;
   24965 esac
   24966 
   24967 
   24968 fi
   24969 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   24970     conftest$ac_exeext conftest.$ac_ext
   24971 ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
   24972 if test "x$ac_cv_have_decl_reallocarray" = xyes
   24973 then :
   24974   ac_have_decl=1
   24975 else $as_nop
   24976   ac_have_decl=0
   24977 fi
   24978 printf "%s\n" "#define HAVE_DECL_REALLOCARRAY $ac_have_decl" >>confdefs.h
   24979 
   24980 if test "$USE_NSS" = "no"; then
   24981 	ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
   24982 if test "x$ac_cv_func_arc4random" = xyes
   24983 then :
   24984   printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
   24985 
   24986 else $as_nop
   24987   case " $LIBOBJS " in
   24988   *" arc4random.$ac_objext "* ) ;;
   24989   *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
   24990  ;;
   24991 esac
   24992 
   24993 fi
   24994 
   24995 	ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
   24996 if test "x$ac_cv_func_arc4random_uniform" = xyes
   24997 then :
   24998   printf "%s\n" "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
   24999 
   25000 else $as_nop
   25001   case " $LIBOBJS " in
   25002   *" arc4random_uniform.$ac_objext "* ) ;;
   25003   *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
   25004  ;;
   25005 esac
   25006 
   25007 fi
   25008 
   25009 	if test "$ac_cv_func_arc4random" = "no"; then
   25010 		case " $LIBOBJS " in
   25011   *" arc4_lock.$ac_objext "* ) ;;
   25012   *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
   25013  ;;
   25014 esac
   25015 
   25016 
   25017   for ac_func in getentropy
   25018 do :
   25019   ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
   25020 if test "x$ac_cv_func_getentropy" = xyes
   25021 then :
   25022   printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
   25023 
   25024 else $as_nop
   25025 
   25026 		    if test "$USE_WINSOCK" = 1; then
   25027 			case " $LIBOBJS " in
   25028   *" getentropy_win.$ac_objext "* ) ;;
   25029   *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
   25030  ;;
   25031 esac
   25032 
   25033 		    else
   25034 			case "$host" in
   25035 			Darwin|*darwin*)
   25036 				case " $LIBOBJS " in
   25037   *" getentropy_osx.$ac_objext "* ) ;;
   25038   *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
   25039  ;;
   25040 esac
   25041 
   25042 			;;
   25043 			*solaris*|*sunos*|SunOS)
   25044 				case " $LIBOBJS " in
   25045   *" getentropy_solaris.$ac_objext "* ) ;;
   25046   *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
   25047  ;;
   25048 esac
   25049 
   25050 				       for ac_header in sys/sha2.h
   25051 do :
   25052   ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
   25053 "
   25054 if test "x$ac_cv_header_sys_sha2_h" = xyes
   25055 then :
   25056   printf "%s\n" "#define HAVE_SYS_SHA2_H 1" >>confdefs.h
   25057 
   25058 else $as_nop
   25059 
   25060 
   25061   for ac_func in SHA512_Update
   25062 do :
   25063   ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
   25064 if test "x$ac_cv_func_SHA512_Update" = xyes
   25065 then :
   25066   printf "%s\n" "#define HAVE_SHA512_UPDATE 1" >>confdefs.h
   25067 
   25068 else $as_nop
   25069 
   25070 						case " $LIBOBJS " in
   25071   *" sha512.$ac_objext "* ) ;;
   25072   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
   25073  ;;
   25074 esac
   25075 
   25076 
   25077 fi
   25078 
   25079 done
   25080 
   25081 fi
   25082 
   25083 done
   25084 				if test "$ac_cv_header_sys_sha2_h" = "yes"; then
   25085 					# this lib needed for sha2 on solaris
   25086 					LIBS="$LIBS -lmd"
   25087 				fi
   25088 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   25089 printf %s "checking for library containing clock_gettime... " >&6; }
   25090 if test ${ac_cv_search_clock_gettime+y}
   25091 then :
   25092   printf %s "(cached) " >&6
   25093 else $as_nop
   25094   ac_func_search_save_LIBS=$LIBS
   25095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25096 /* end confdefs.h.  */
   25097 
   25098 /* Override any GCC internal prototype to avoid an error.
   25099    Use char because int might match the return type of a GCC
   25100    builtin and then its argument prototype would still apply.  */
   25101 char clock_gettime ();
   25102 int
   25103 main (void)
   25104 {
   25105 return clock_gettime ();
   25106   ;
   25107   return 0;
   25108 }
   25109 _ACEOF
   25110 for ac_lib in '' rt
   25111 do
   25112   if test -z "$ac_lib"; then
   25113     ac_res="none required"
   25114   else
   25115     ac_res=-l$ac_lib
   25116     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   25117   fi
   25118   if ac_fn_c_try_link "$LINENO"
   25119 then :
   25120   ac_cv_search_clock_gettime=$ac_res
   25121 fi
   25122 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   25123     conftest$ac_exeext
   25124   if test ${ac_cv_search_clock_gettime+y}
   25125 then :
   25126   break
   25127 fi
   25128 done
   25129 if test ${ac_cv_search_clock_gettime+y}
   25130 then :
   25131 
   25132 else $as_nop
   25133   ac_cv_search_clock_gettime=no
   25134 fi
   25135 rm conftest.$ac_ext
   25136 LIBS=$ac_func_search_save_LIBS
   25137 fi
   25138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   25139 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
   25140 ac_res=$ac_cv_search_clock_gettime
   25141 if test "$ac_res" != no
   25142 then :
   25143   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   25144 
   25145 fi
   25146 
   25147 			;;
   25148 			*freebsd*|*FreeBSD)
   25149 				case " $LIBOBJS " in
   25150   *" getentropy_freebsd.$ac_objext "* ) ;;
   25151   *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
   25152  ;;
   25153 esac
   25154 
   25155 			;;
   25156 			*linux*|Linux|*)
   25157 				case " $LIBOBJS " in
   25158   *" getentropy_linux.$ac_objext "* ) ;;
   25159   *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
   25160  ;;
   25161 esac
   25162 
   25163 
   25164   for ac_func in SHA512_Update
   25165 do :
   25166   ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
   25167 if test "x$ac_cv_func_SHA512_Update" = xyes
   25168 then :
   25169   printf "%s\n" "#define HAVE_SHA512_UPDATE 1" >>confdefs.h
   25170 
   25171 else $as_nop
   25172 
   25173 
   25174 printf "%s\n" "#define COMPAT_SHA512 1" >>confdefs.h
   25175 
   25176 					case " $LIBOBJS " in
   25177   *" sha512.$ac_objext "* ) ;;
   25178   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
   25179  ;;
   25180 esac
   25181 
   25182 
   25183 fi
   25184 
   25185 done
   25186 				ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
   25187 "
   25188 if test "x$ac_cv_header_sys_sysctl_h" = xyes
   25189 then :
   25190   printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
   25191 
   25192 fi
   25193 
   25194 				ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
   25195 if test "x$ac_cv_func_getauxval" = xyes
   25196 then :
   25197   printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
   25198 
   25199 fi
   25200 
   25201 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   25202 printf %s "checking for library containing clock_gettime... " >&6; }
   25203 if test ${ac_cv_search_clock_gettime+y}
   25204 then :
   25205   printf %s "(cached) " >&6
   25206 else $as_nop
   25207   ac_func_search_save_LIBS=$LIBS
   25208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25209 /* end confdefs.h.  */
   25210 
   25211 /* Override any GCC internal prototype to avoid an error.
   25212    Use char because int might match the return type of a GCC
   25213    builtin and then its argument prototype would still apply.  */
   25214 char clock_gettime ();
   25215 int
   25216 main (void)
   25217 {
   25218 return clock_gettime ();
   25219   ;
   25220   return 0;
   25221 }
   25222 _ACEOF
   25223 for ac_lib in '' rt
   25224 do
   25225   if test -z "$ac_lib"; then
   25226     ac_res="none required"
   25227   else
   25228     ac_res=-l$ac_lib
   25229     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   25230   fi
   25231   if ac_fn_c_try_link "$LINENO"
   25232 then :
   25233   ac_cv_search_clock_gettime=$ac_res
   25234 fi
   25235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   25236     conftest$ac_exeext
   25237   if test ${ac_cv_search_clock_gettime+y}
   25238 then :
   25239   break
   25240 fi
   25241 done
   25242 if test ${ac_cv_search_clock_gettime+y}
   25243 then :
   25244 
   25245 else $as_nop
   25246   ac_cv_search_clock_gettime=no
   25247 fi
   25248 rm conftest.$ac_ext
   25249 LIBS=$ac_func_search_save_LIBS
   25250 fi
   25251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   25252 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
   25253 ac_res=$ac_cv_search_clock_gettime
   25254 if test "$ac_res" != no
   25255 then :
   25256   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   25257 
   25258 fi
   25259 
   25260 			;;
   25261 			esac
   25262 		    fi
   25263 
   25264 fi
   25265 
   25266 done
   25267 	fi
   25268 fi
   25269 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
   25270 
   25271 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
   25272 if test "x$ac_cv_func_ctime_r" = xyes
   25273 then :
   25274   printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
   25275 
   25276 else $as_nop
   25277   case " $LIBOBJS " in
   25278   *" ctime_r.$ac_objext "* ) ;;
   25279   *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
   25280  ;;
   25281 esac
   25282 
   25283 fi
   25284 
   25285 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
   25286 if test "x$ac_cv_func_strsep" = xyes
   25287 then :
   25288   printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
   25289 
   25290 else $as_nop
   25291   case " $LIBOBJS " in
   25292   *" strsep.$ac_objext "* ) ;;
   25293   *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
   25294  ;;
   25295 esac
   25296 
   25297 fi
   25298 
   25299 
   25300 # Check whether --enable-allsymbols was given.
   25301 if test ${enable_allsymbols+y}
   25302 then :
   25303   enableval=$enable_allsymbols;
   25304 fi
   25305 
   25306 case "$enable_allsymbols" in
   25307 	yes)
   25308 	COMMON_OBJ_ALL_SYMBOLS=""
   25309 	UBSYMS=""
   25310 	EXTRALINK="libunbound.la"
   25311 
   25312 printf "%s\n" "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
   25313 
   25314 	;;
   25315 	no|*)
   25316 	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
   25317 	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
   25318 	EXTRALINK=""
   25319 	;;
   25320 esac
   25321 
   25322 
   25323 
   25324 if test x_$enable_lock_checks = x_yes; then
   25325 	UBSYMS="-export-symbols clubsyms.def"
   25326 	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
   25327 	echo lock_protect >> clubsyms.def
   25328 	echo lock_protect_place >> clubsyms.def
   25329 	echo lock_unprotect >> clubsyms.def
   25330 	echo lock_get_mem >> clubsyms.def
   25331 	echo checklock_start >> clubsyms.def
   25332 	echo checklock_stop >> clubsyms.def
   25333 	echo checklock_set_output_name >> clubsyms.def
   25334 	echo checklock_lock >> clubsyms.def
   25335 	echo checklock_unlock >> clubsyms.def
   25336 	echo checklock_init >> clubsyms.def
   25337 	echo checklock_thrcreate >> clubsyms.def
   25338 	echo checklock_thrjoin >> clubsyms.def
   25339 fi
   25340 
   25341 # check for dnstap if requested
   25342 
   25343     # Check whether --enable-dnstap was given.
   25344 if test ${enable_dnstap+y}
   25345 then :
   25346   enableval=$enable_dnstap; opt_dnstap=$enableval
   25347 else $as_nop
   25348   opt_dnstap=no
   25349 fi
   25350 
   25351 
   25352 
   25353 # Check whether --with-dnstap-socket-path was given.
   25354 if test ${with_dnstap_socket_path+y}
   25355 then :
   25356   withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
   25357 else $as_nop
   25358   opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
   25359 fi
   25360 
   25361 
   25362     if test "x$opt_dnstap" != "xno"; then
   25363 	# Extract the first word of "protoc", so it can be a program name with args.
   25364 set dummy protoc; ac_word=$2
   25365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   25366 printf %s "checking for $ac_word... " >&6; }
   25367 if test ${ac_cv_path_PROTOC+y}
   25368 then :
   25369   printf %s "(cached) " >&6
   25370 else $as_nop
   25371   case $PROTOC in
   25372   [\\/]* | ?:[\\/]*)
   25373   ac_cv_path_PROTOC="$PROTOC" # Let the user override the test with a path.
   25374   ;;
   25375   *)
   25376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   25377 for as_dir in $PATH
   25378 do
   25379   IFS=$as_save_IFS
   25380   case $as_dir in #(((
   25381     '') as_dir=./ ;;
   25382     */) ;;
   25383     *) as_dir=$as_dir/ ;;
   25384   esac
   25385     for ac_exec_ext in '' $ac_executable_extensions; do
   25386   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   25387     ac_cv_path_PROTOC="$as_dir$ac_word$ac_exec_ext"
   25388     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   25389     break 2
   25390   fi
   25391 done
   25392   done
   25393 IFS=$as_save_IFS
   25394 
   25395   ;;
   25396 esac
   25397 fi
   25398 PROTOC=$ac_cv_path_PROTOC
   25399 if test -n "$PROTOC"; then
   25400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC" >&5
   25401 printf "%s\n" "$PROTOC" >&6; }
   25402 else
   25403   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   25404 printf "%s\n" "no" >&6; }
   25405 fi
   25406 
   25407 
   25408 	# 'protoc-c' is deprecated. We use 'protoc' instead. If it can not be
   25409 	# found, try 'protoc-c'.
   25410 	if test -z "$PROTOC"; then
   25411 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   25412 set dummy protoc-c; ac_word=$2
   25413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   25414 printf %s "checking for $ac_word... " >&6; }
   25415 if test ${ac_cv_path_PROTOC_C+y}
   25416 then :
   25417   printf %s "(cached) " >&6
   25418 else $as_nop
   25419   case $PROTOC_C in
   25420   [\\/]* | ?:[\\/]*)
   25421   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   25422   ;;
   25423   *)
   25424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   25425 for as_dir in $PATH
   25426 do
   25427   IFS=$as_save_IFS
   25428   case $as_dir in #(((
   25429     '') as_dir=./ ;;
   25430     */) ;;
   25431     *) as_dir=$as_dir/ ;;
   25432   esac
   25433     for ac_exec_ext in '' $ac_executable_extensions; do
   25434   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   25435     ac_cv_path_PROTOC_C="$as_dir$ac_word$ac_exec_ext"
   25436     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   25437     break 2
   25438   fi
   25439 done
   25440   done
   25441 IFS=$as_save_IFS
   25442 
   25443   ;;
   25444 esac
   25445 fi
   25446 PROTOC_C=$ac_cv_path_PROTOC_C
   25447 if test -n "$PROTOC_C"; then
   25448   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   25449 printf "%s\n" "$PROTOC_C" >&6; }
   25450 else
   25451   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   25452 printf "%s\n" "no" >&6; }
   25453 fi
   25454 
   25455 
   25456 	else
   25457 	    PROTOC_C="$PROTOC"
   25458 	fi
   25459 	if test -z "$PROTOC_C"; then
   25460 	  as_fn_error $? "The protoc or protoc-c program was not found. It is needed for dnstap, use --disable-dnstap, or install protobuf-c to provide protoc or protoc-c" "$LINENO" 5
   25461 	fi
   25462 
   25463 	# Check for protoc-gen-c plugin
   25464 	# Extract the first word of "protoc-gen-c", so it can be a program name with args.
   25465 set dummy protoc-gen-c; ac_word=$2
   25466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   25467 printf %s "checking for $ac_word... " >&6; }
   25468 if test ${ac_cv_path_PROTOC_GEN_C+y}
   25469 then :
   25470   printf %s "(cached) " >&6
   25471 else $as_nop
   25472   case $PROTOC_GEN_C in
   25473   [\\/]* | ?:[\\/]*)
   25474   ac_cv_path_PROTOC_GEN_C="$PROTOC_GEN_C" # Let the user override the test with a path.
   25475   ;;
   25476   *)
   25477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   25478 for as_dir in $PATH
   25479 do
   25480   IFS=$as_save_IFS
   25481   case $as_dir in #(((
   25482     '') as_dir=./ ;;
   25483     */) ;;
   25484     *) as_dir=$as_dir/ ;;
   25485   esac
   25486     for ac_exec_ext in '' $ac_executable_extensions; do
   25487   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   25488     ac_cv_path_PROTOC_GEN_C="$as_dir$ac_word$ac_exec_ext"
   25489     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   25490     break 2
   25491   fi
   25492 done
   25493   done
   25494 IFS=$as_save_IFS
   25495 
   25496   ;;
   25497 esac
   25498 fi
   25499 PROTOC_GEN_C=$ac_cv_path_PROTOC_GEN_C
   25500 if test -n "$PROTOC_GEN_C"; then
   25501   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_GEN_C" >&5
   25502 printf "%s\n" "$PROTOC_GEN_C" >&6; }
   25503 else
   25504   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   25505 printf "%s\n" "no" >&6; }
   25506 fi
   25507 
   25508 
   25509 	if test -z "$PROTOC_GEN_C"; then
   25510 	  as_fn_error $? "The protoc-gen-c plugin was not found. It is needed for dnstap, use --disable-dnstap, or install protobuf-c-compiler to provide protoc-gen-c" "$LINENO" 5
   25511 	fi
   25512 
   25513 	# Test that protoc-gen-c actually works
   25514 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if protoc-gen-c plugin works" >&5
   25515 printf %s "checking if protoc-gen-c plugin works... " >&6; }
   25516 	cat > conftest.proto << EOF
   25517 syntax = "proto2";
   25518 message TestMessage {
   25519   optional string test_field = 1;
   25520 }
   25521 EOF
   25522 	if $PROTOC_C --c_out=. conftest.proto >/dev/null 2>&1; then
   25523 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   25524 printf "%s\n" "yes" >&6; }
   25525 	  rm -f conftest.proto conftest.pb-c.c conftest.pb-c.h
   25526 	else
   25527 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   25528 printf "%s\n" "no" >&6; }
   25529 	  rm -f conftest.proto conftest.pb-c.c conftest.pb-c.h
   25530 	  as_fn_error $? "The protoc-gen-c plugin is not working properly. Please ensure protobuf-c-compiler is properly installed" "$LINENO" 5
   25531 	fi
   25532 
   25533 
   25534 # Check whether --with-protobuf-c was given.
   25535 if test ${with_protobuf_c+y}
   25536 then :
   25537   withval=$with_protobuf_c;
   25538                 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
   25539                 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
   25540                     CFLAGS="$CFLAGS -I$withval/include/google"
   25541                 else
   25542                     CFLAGS="$CFLAGS -I$withval/include"
   25543                 fi
   25544                 LDFLAGS="$LDFLAGS -L$withval/lib"
   25545 
   25546 else $as_nop
   25547 
   25548                 if test -n "$PKG_CONFIG"; then
   25549 
   25550 pkg_failed=no
   25551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libprotobuf-c" >&5
   25552 printf %s "checking for libprotobuf-c... " >&6; }
   25553 
   25554 if test -n "$PROTOBUFC_CFLAGS"; then
   25555     pkg_cv_PROTOBUFC_CFLAGS="$PROTOBUFC_CFLAGS"
   25556  elif test -n "$PKG_CONFIG"; then
   25557     if test -n "$PKG_CONFIG" && \
   25558     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c\""; } >&5
   25559   ($PKG_CONFIG --exists --print-errors "libprotobuf-c") 2>&5
   25560   ac_status=$?
   25561   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25562   test $ac_status = 0; }; then
   25563   pkg_cv_PROTOBUFC_CFLAGS=`$PKG_CONFIG --cflags "libprotobuf-c" 2>/dev/null`
   25564 		      test "x$?" != "x0" && pkg_failed=yes
   25565 else
   25566   pkg_failed=yes
   25567 fi
   25568  else
   25569     pkg_failed=untried
   25570 fi
   25571 if test -n "$PROTOBUFC_LIBS"; then
   25572     pkg_cv_PROTOBUFC_LIBS="$PROTOBUFC_LIBS"
   25573  elif test -n "$PKG_CONFIG"; then
   25574     if test -n "$PKG_CONFIG" && \
   25575     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c\""; } >&5
   25576   ($PKG_CONFIG --exists --print-errors "libprotobuf-c") 2>&5
   25577   ac_status=$?
   25578   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25579   test $ac_status = 0; }; then
   25580   pkg_cv_PROTOBUFC_LIBS=`$PKG_CONFIG --libs "libprotobuf-c" 2>/dev/null`
   25581 		      test "x$?" != "x0" && pkg_failed=yes
   25582 else
   25583   pkg_failed=yes
   25584 fi
   25585  else
   25586     pkg_failed=untried
   25587 fi
   25588 
   25589 
   25590 
   25591 if test $pkg_failed = yes; then
   25592         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   25593 printf "%s\n" "no" >&6; }
   25594 
   25595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   25596         _pkg_short_errors_supported=yes
   25597 else
   25598         _pkg_short_errors_supported=no
   25599 fi
   25600         if test $_pkg_short_errors_supported = yes; then
   25601                 PROTOBUFC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libprotobuf-c" 2>&1`
   25602         else
   25603                 PROTOBUFC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libprotobuf-c" 2>&1`
   25604         fi
   25605         # Put the nasty error message in config.log where it belongs
   25606         echo "$PROTOBUFC_PKG_ERRORS" >&5
   25607 
   25608 
   25609                             # pkg-config failed; try falling back to known values
   25610                             # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
   25611                             if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
   25612                                 CFLAGS="$CFLAGS -I/usr/include/google"
   25613                             else
   25614                                 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
   25615                                     CFLAGS="$CFLAGS -I/usr/local/include/google"
   25616                                     LDFLAGS="$LDFLAGS -L/usr/local/lib"
   25617                                 else
   25618                                     as_fn_error $? "The protobuf-c package was not found with pkg-config. Please install protobuf-c!" "$LINENO" 5
   25619                                 fi
   25620                             fi
   25621 
   25622 
   25623 elif test $pkg_failed = untried; then
   25624         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   25625 printf "%s\n" "no" >&6; }
   25626 
   25627                             # pkg-config failed; try falling back to known values
   25628                             # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
   25629                             if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
   25630                                 CFLAGS="$CFLAGS -I/usr/include/google"
   25631                             else
   25632                                 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
   25633                                     CFLAGS="$CFLAGS -I/usr/local/include/google"
   25634                                     LDFLAGS="$LDFLAGS -L/usr/local/lib"
   25635                                 else
   25636                                     as_fn_error $? "The protobuf-c package was not found with pkg-config. Please install protobuf-c!" "$LINENO" 5
   25637                                 fi
   25638                             fi
   25639 
   25640 
   25641 else
   25642         PROTOBUFC_CFLAGS=$pkg_cv_PROTOBUFC_CFLAGS
   25643         PROTOBUFC_LIBS=$pkg_cv_PROTOBUFC_LIBS
   25644         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   25645 printf "%s\n" "yes" >&6; }
   25646 
   25647                             CFLAGS="$CFLAGS $PROTOBUFC_CFLAGS"
   25648                             LIBS="$LIBS $PROTOBUFC_LIBS"
   25649 
   25650 fi
   25651                 else
   25652                     # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
   25653                     if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
   25654                         CFLAGS="$CFLAGS -I/usr/include/google"
   25655                     else
   25656                         if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
   25657                             CFLAGS="$CFLAGS -I/usr/local/include/google"
   25658                             LDFLAGS="$LDFLAGS -L/usr/local/lib"
   25659                         fi
   25660                     fi
   25661                 fi
   25662 
   25663 
   25664 fi
   25665 
   25666         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
   25667 printf %s "checking for library containing protobuf_c_message_pack... " >&6; }
   25668 if test ${ac_cv_search_protobuf_c_message_pack+y}
   25669 then :
   25670   printf %s "(cached) " >&6
   25671 else $as_nop
   25672   ac_func_search_save_LIBS=$LIBS
   25673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25674 /* end confdefs.h.  */
   25675 
   25676 /* Override any GCC internal prototype to avoid an error.
   25677    Use char because int might match the return type of a GCC
   25678    builtin and then its argument prototype would still apply.  */
   25679 char protobuf_c_message_pack ();
   25680 int
   25681 main (void)
   25682 {
   25683 return protobuf_c_message_pack ();
   25684   ;
   25685   return 0;
   25686 }
   25687 _ACEOF
   25688 for ac_lib in '' protobuf-c
   25689 do
   25690   if test -z "$ac_lib"; then
   25691     ac_res="none required"
   25692   else
   25693     ac_res=-l$ac_lib
   25694     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   25695   fi
   25696   if ac_fn_c_try_link "$LINENO"
   25697 then :
   25698   ac_cv_search_protobuf_c_message_pack=$ac_res
   25699 fi
   25700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   25701     conftest$ac_exeext
   25702   if test ${ac_cv_search_protobuf_c_message_pack+y}
   25703 then :
   25704   break
   25705 fi
   25706 done
   25707 if test ${ac_cv_search_protobuf_c_message_pack+y}
   25708 then :
   25709 
   25710 else $as_nop
   25711   ac_cv_search_protobuf_c_message_pack=no
   25712 fi
   25713 rm conftest.$ac_ext
   25714 LIBS=$ac_func_search_save_LIBS
   25715 fi
   25716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
   25717 printf "%s\n" "$ac_cv_search_protobuf_c_message_pack" >&6; }
   25718 ac_res=$ac_cv_search_protobuf_c_message_pack
   25719 if test "$ac_res" != no
   25720 then :
   25721   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   25722 
   25723 else $as_nop
   25724   as_fn_error $? "The protobuf-c library was not found. Please install the development libraries for protobuf-c!" "$LINENO" 5
   25725 fi
   25726 
   25727 
   25728 
   25729 printf "%s\n" "#define USE_DNSTAP 1" >>confdefs.h
   25730 
   25731         ENABLE_DNSTAP=1
   25732 
   25733 
   25734 
   25735         hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
   25736 
   25737 
   25738 printf "%s\n" "#define DNSTAP_SOCKET_PATH \"$hdr_dnstap_socket_path\"" >>confdefs.h
   25739 
   25740 	DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path"
   25741 
   25742 	DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)'
   25743 
   25744         DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c"
   25745 
   25746         DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo"
   25747 
   25748 
   25749     else
   25750 
   25751         ENABLE_DNSTAP=0
   25752 
   25753 
   25754 
   25755     fi
   25756 
   25757 
   25758 # check for dnscrypt if requested
   25759 
   25760   # Check whether --enable-dnscrypt was given.
   25761 if test ${enable_dnscrypt+y}
   25762 then :
   25763   enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
   25764 else $as_nop
   25765   opt_dnscrypt=no
   25766 fi
   25767 
   25768 
   25769   if test "x$opt_dnscrypt" != "xno"; then
   25770 
   25771 # Check whether --with-libsodium was given.
   25772 if test ${with_libsodium+y}
   25773 then :
   25774   withval=$with_libsodium;
   25775 	CFLAGS="$CFLAGS -I$withval/include"
   25776 	LDFLAGS="$LDFLAGS -L$withval/lib"
   25777 
   25778 fi
   25779 
   25780     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
   25781 printf %s "checking for library containing sodium_init... " >&6; }
   25782 if test ${ac_cv_search_sodium_init+y}
   25783 then :
   25784   printf %s "(cached) " >&6
   25785 else $as_nop
   25786   ac_func_search_save_LIBS=$LIBS
   25787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25788 /* end confdefs.h.  */
   25789 
   25790 /* Override any GCC internal prototype to avoid an error.
   25791    Use char because int might match the return type of a GCC
   25792    builtin and then its argument prototype would still apply.  */
   25793 char sodium_init ();
   25794 int
   25795 main (void)
   25796 {
   25797 return sodium_init ();
   25798   ;
   25799   return 0;
   25800 }
   25801 _ACEOF
   25802 for ac_lib in '' sodium
   25803 do
   25804   if test -z "$ac_lib"; then
   25805     ac_res="none required"
   25806   else
   25807     ac_res=-l$ac_lib
   25808     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   25809   fi
   25810   if ac_fn_c_try_link "$LINENO"
   25811 then :
   25812   ac_cv_search_sodium_init=$ac_res
   25813 fi
   25814 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   25815     conftest$ac_exeext
   25816   if test ${ac_cv_search_sodium_init+y}
   25817 then :
   25818   break
   25819 fi
   25820 done
   25821 if test ${ac_cv_search_sodium_init+y}
   25822 then :
   25823 
   25824 else $as_nop
   25825   ac_cv_search_sodium_init=no
   25826 fi
   25827 rm conftest.$ac_ext
   25828 LIBS=$ac_func_search_save_LIBS
   25829 fi
   25830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
   25831 printf "%s\n" "$ac_cv_search_sodium_init" >&6; }
   25832 ac_res=$ac_cv_search_sodium_init
   25833 if test "$ac_res" != no
   25834 then :
   25835   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   25836 
   25837 else $as_nop
   25838   as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
   25839 fi
   25840 
   25841     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
   25842 printf %s "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
   25843 if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y}
   25844 then :
   25845   printf %s "(cached) " >&6
   25846 else $as_nop
   25847   ac_func_search_save_LIBS=$LIBS
   25848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25849 /* end confdefs.h.  */
   25850 
   25851 /* Override any GCC internal prototype to avoid an error.
   25852    Use char because int might match the return type of a GCC
   25853    builtin and then its argument prototype would still apply.  */
   25854 char crypto_box_curve25519xchacha20poly1305_beforenm ();
   25855 int
   25856 main (void)
   25857 {
   25858 return crypto_box_curve25519xchacha20poly1305_beforenm ();
   25859   ;
   25860   return 0;
   25861 }
   25862 _ACEOF
   25863 for ac_lib in '' sodium
   25864 do
   25865   if test -z "$ac_lib"; then
   25866     ac_res="none required"
   25867   else
   25868     ac_res=-l$ac_lib
   25869     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   25870   fi
   25871   if ac_fn_c_try_link "$LINENO"
   25872 then :
   25873   ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
   25874 fi
   25875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   25876     conftest$ac_exeext
   25877   if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y}
   25878 then :
   25879   break
   25880 fi
   25881 done
   25882 if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y}
   25883 then :
   25884 
   25885 else $as_nop
   25886   ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
   25887 fi
   25888 rm conftest.$ac_ext
   25889 LIBS=$ac_func_search_save_LIBS
   25890 fi
   25891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
   25892 printf "%s\n" "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
   25893 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
   25894 if test "$ac_res" != no
   25895 then :
   25896   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   25897 
   25898             ENABLE_DNSCRYPT_XCHACHA20=1
   25899 
   25900 
   25901 printf "%s\n" "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
   25902 
   25903 
   25904 else $as_nop
   25905 
   25906             ENABLE_DNSCRYPT_XCHACHA20=0
   25907 
   25908 
   25909 fi
   25910 
   25911     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
   25912 printf %s "checking for library containing sodium_set_misuse_handler... " >&6; }
   25913 if test ${ac_cv_search_sodium_set_misuse_handler+y}
   25914 then :
   25915   printf %s "(cached) " >&6
   25916 else $as_nop
   25917   ac_func_search_save_LIBS=$LIBS
   25918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   25919 /* end confdefs.h.  */
   25920 
   25921 /* Override any GCC internal prototype to avoid an error.
   25922    Use char because int might match the return type of a GCC
   25923    builtin and then its argument prototype would still apply.  */
   25924 char sodium_set_misuse_handler ();
   25925 int
   25926 main (void)
   25927 {
   25928 return sodium_set_misuse_handler ();
   25929   ;
   25930   return 0;
   25931 }
   25932 _ACEOF
   25933 for ac_lib in '' sodium
   25934 do
   25935   if test -z "$ac_lib"; then
   25936     ac_res="none required"
   25937   else
   25938     ac_res=-l$ac_lib
   25939     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   25940   fi
   25941   if ac_fn_c_try_link "$LINENO"
   25942 then :
   25943   ac_cv_search_sodium_set_misuse_handler=$ac_res
   25944 fi
   25945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   25946     conftest$ac_exeext
   25947   if test ${ac_cv_search_sodium_set_misuse_handler+y}
   25948 then :
   25949   break
   25950 fi
   25951 done
   25952 if test ${ac_cv_search_sodium_set_misuse_handler+y}
   25953 then :
   25954 
   25955 else $as_nop
   25956   ac_cv_search_sodium_set_misuse_handler=no
   25957 fi
   25958 rm conftest.$ac_ext
   25959 LIBS=$ac_func_search_save_LIBS
   25960 fi
   25961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
   25962 printf "%s\n" "$ac_cv_search_sodium_set_misuse_handler" >&6; }
   25963 ac_res=$ac_cv_search_sodium_set_misuse_handler
   25964 if test "$ac_res" != no
   25965 then :
   25966   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   25967 
   25968 
   25969 printf "%s\n" "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
   25970 
   25971 
   25972 fi
   25973 
   25974 
   25975 
   25976 printf "%s\n" "#define USE_DNSCRYPT 1" >>confdefs.h
   25977 
   25978         ENABLE_DNSCRYPT=1
   25979 
   25980 
   25981         DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
   25982 
   25983         DNSCRYPT_OBJ="dnscrypt.lo"
   25984 
   25985 
   25986   else
   25987     ENABLE_DNSCRYPT_XCHACHA20=0
   25988 
   25989 
   25990         ENABLE_DNSCRYPT=0
   25991 
   25992 
   25993 
   25994   fi
   25995 
   25996 
   25997 # check for cachedb if requested
   25998 # Check whether --enable-cachedb was given.
   25999 if test ${enable_cachedb+y}
   26000 then :
   26001   enableval=$enable_cachedb;
   26002 fi
   26003 
   26004 # turn on cachedb when hiredis support is enabled.
   26005 if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
   26006 case "$enable_cachedb" in
   26007     yes)
   26008 
   26009 printf "%s\n" "#define USE_CACHEDB 1" >>confdefs.h
   26010 
   26011 	CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c"
   26012 
   26013 	CACHEDB_OBJ="cachedb.lo redis.lo"
   26014 
   26015     	;;
   26016     no|*)
   26017     	# nothing
   26018     	;;
   26019 esac
   26020 
   26021 # check for ipsecmod if requested
   26022 # Check whether --enable-ipsecmod was given.
   26023 if test ${enable_ipsecmod+y}
   26024 then :
   26025   enableval=$enable_ipsecmod;
   26026 fi
   26027 
   26028 case "$enable_ipsecmod" in
   26029 	yes)
   26030 
   26031 printf "%s\n" "#define USE_IPSECMOD 1" >>confdefs.h
   26032 
   26033 		IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
   26034 
   26035 		IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
   26036 
   26037 		;;
   26038 	no|*)
   26039 		# nothing
   26040 		;;
   26041 esac
   26042 
   26043 # check for ipset if requested
   26044 # Check whether --enable-ipset was given.
   26045 if test ${enable_ipset+y}
   26046 then :
   26047   enableval=$enable_ipset;
   26048 fi
   26049 
   26050 case "$enable_ipset" in
   26051     yes)
   26052 
   26053 printf "%s\n" "#define USE_IPSET 1" >>confdefs.h
   26054 
   26055 		IPSET_SRC="ipset/ipset.c"
   26056 
   26057 		IPSET_OBJ="ipset.lo"
   26058 
   26059 
   26060 		# BSD's pf
   26061 		       for ac_header in net/pfvar.h
   26062 do :
   26063   ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "
   26064 		  #include <netinet/in.h>
   26065 		  #include <net/if.h>
   26066 
   26067 "
   26068 if test "x$ac_cv_header_net_pfvar_h" = xyes
   26069 then :
   26070   printf "%s\n" "#define HAVE_NET_PFVAR_H 1" >>confdefs.h
   26071 
   26072 else $as_nop
   26073 
   26074 		    # mnl
   26075 
   26076 # Check whether --with-libmnl was given.
   26077 if test ${with_libmnl+y}
   26078 then :
   26079   withval=$with_libmnl;
   26080 else $as_nop
   26081    withval="yes"
   26082 fi
   26083 
   26084 		    found_libmnl="no"
   26085 		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
   26086 printf %s "checking for libmnl... " >&6; }
   26087 		    if test x_$withval = x_ -o x_$withval = x_yes; then
   26088 			withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
   26089 		    fi
   26090 		    for dir in $withval ; do
   26091 			if test -f "$dir/include/libmnl/libmnl.h" -o -f "$dir/include/libmnl/libmnl/libmnl.h"; then
   26092 				found_libmnl="yes"
   26093 								extralibmnl=""
   26094 				if test -f "$dir/include/libmnl/libmnl/libmnl.h"; then
   26095 					extralibmnl="/libmnl"
   26096 				fi
   26097 				if test "$dir" != "/usr" -o -n "$extralibmnl"; then
   26098 					CPPFLAGS="$CPPFLAGS -I$dir/include$extralibmnl"
   26099 				fi
   26100 				if test "$dir" != "/usr"; then
   26101 					LDFLAGS="$LDFLAGS -L$dir/lib"
   26102 				fi
   26103 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
   26104 printf "%s\n" "found in $dir" >&6; }
   26105 				LIBS="$LIBS -lmnl"
   26106 				break;
   26107 			fi
   26108 		    done
   26109 		    if test x_$found_libmnl != x_yes; then
   26110 			  as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
   26111 		    fi
   26112 
   26113 fi
   26114 
   26115 done
   26116 		;;
   26117     no|*)
   26118     	# nothing
   26119 		;;
   26120 esac
   26121 # Check whether --enable-explicit-port-randomisation was given.
   26122 if test ${enable_explicit_port_randomisation+y}
   26123 then :
   26124   enableval=$enable_explicit_port_randomisation;
   26125 fi
   26126 
   26127 case "$enable_explicit_port_randomisation" in
   26128 	no)
   26129 
   26130 printf "%s\n" "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h
   26131 
   26132 		;;
   26133 	yes|*)
   26134 		;;
   26135 esac
   26136 
   26137 if echo "$host" | $GREP -i -e linux >/dev/null; then
   26138 	# Check whether --enable-linux-ip-local-port-range was given.
   26139 if test ${enable_linux_ip_local_port_range+y}
   26140 then :
   26141   enableval=$enable_linux_ip_local_port_range;
   26142 fi
   26143 
   26144 	case "$enable_linux_ip_local_port_range" in
   26145 		yes)
   26146 
   26147 printf "%s\n" "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h
   26148 
   26149 			;;
   26150 		no|*)
   26151 			;;
   26152 	esac
   26153 fi
   26154 
   26155 
   26156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
   26157 printf %s "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
   26158 # on openBSD, the implicit rule make $< work.
   26159 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
   26160 # gmake works.
   26161 cat >conftest.make <<EOF
   26162 all:	conftest.lo
   26163 
   26164 conftest.lo foo.lo bla.lo:
   26165 	if test -f "\$<"; then touch \$@; fi
   26166 
   26167 .SUFFIXES: .lo
   26168 .c.lo:
   26169 	if test -f "\$<"; then touch \$@; fi
   26170 
   26171 conftest.lo:        conftest.dir/conftest.c
   26172 EOF
   26173 mkdir conftest.dir
   26174 touch conftest.dir/conftest.c
   26175 rm -f conftest.lo conftest.c
   26176 ${MAKE:-make} -f conftest.make >/dev/null
   26177 rm -f conftest.make conftest.c conftest.dir/conftest.c
   26178 rm -rf conftest.dir
   26179 if test ! -f conftest.lo; then
   26180 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   26181 printf "%s\n" "no" >&6; }
   26182 	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
   26183 	SOURCEFILE='`cat .source`'
   26184 else
   26185 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   26186 printf "%s\n" "yes" >&6; }
   26187 	SOURCEDETERMINE=':'
   26188 	SOURCEFILE='$<'
   26189 fi
   26190 rm -f conftest.lo
   26191 
   26192 
   26193 
   26194 # see if we want to build the library or everything
   26195 ALLTARGET="alltargets"
   26196 INSTALLTARGET="install-all"
   26197 
   26198 # Check whether --with-libunbound-only was given.
   26199 if test ${with_libunbound_only+y}
   26200 then :
   26201   withval=$with_libunbound_only;
   26202 	if test "$withval" = "yes"; then
   26203 		ALLTARGET="lib"
   26204 		INSTALLTARGET="install-lib"
   26205 	fi
   26206 
   26207 fi
   26208 
   26209 if test $ALLTARGET = "alltargets"; then
   26210 	if test $USE_NSS = "yes"; then
   26211 		as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
   26212 	fi
   26213 	if test $USE_NETTLE = "yes"; then
   26214 		as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
   26215 	fi
   26216 fi
   26217 
   26218 
   26219 
   26220 
   26221 
   26222   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
   26223 printf "%s\n" "$as_me: Stripping extension flags..." >&6;}
   26224 
   26225   if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
   26226     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
   26227 
   26228 printf "%s\n" "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
   26229 
   26230   fi
   26231 
   26232 
   26233   if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
   26234     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
   26235 
   26236 printf "%s\n" "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
   26237 
   26238   fi
   26239 
   26240 
   26241   if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
   26242     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
   26243 
   26244 printf "%s\n" "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
   26245 
   26246   fi
   26247 
   26248 
   26249   if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
   26250     CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
   26251 
   26252 printf "%s\n" "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
   26253 
   26254   fi
   26255 
   26256 
   26257   if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
   26258     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
   26259 
   26260 printf "%s\n" "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
   26261 
   26262   fi
   26263 
   26264 
   26265   if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
   26266     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
   26267 
   26268 printf "%s\n" "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
   26269 
   26270   fi
   26271 
   26272 
   26273   if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
   26274     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
   26275 
   26276 printf "%s\n" "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
   26277 
   26278   fi
   26279 
   26280 
   26281   if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
   26282     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
   26283 
   26284 printf "%s\n" "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
   26285 
   26286   fi
   26287 
   26288 
   26289   if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
   26290     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
   26291 
   26292 printf "%s\n" "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
   26293 
   26294   fi
   26295 
   26296 
   26297 if test -n "$LATE_LDFLAGS"; then
   26298   LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
   26299 fi
   26300 # remove start spaces
   26301 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
   26302 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
   26303 
   26304 
   26305 printf "%s\n" "#define MAXSYSLOGMSGLEN 10240" >>confdefs.h
   26306 
   26307 
   26308 
   26309 
   26310 version=1.25.1
   26311 
   26312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build time" >&5
   26313 printf %s "checking for build time... " >&6; }
   26314 ax_date_fmt="%b %e, %Y"
   26315 if test x"$SOURCE_DATE_EPOCH" = x
   26316 then :
   26317   date=`date "+$ax_date_fmt"`
   26318 else $as_nop
   26319   ax_build_date=`date -u -d "@$SOURCE_DATE_EPOCH" "+$ax_date_fmt" 2>/dev/null \
   26320                  || date -u -r "$SOURCE_DATE_EPOCH" "+$ax_date_fmt" 2>/dev/null`
   26321   if test x"$ax_build_date" = x
   26322 then :
   26323   as_fn_error $? "malformed SOURCE_DATE_EPOCH" "$LINENO" 5
   26324 else $as_nop
   26325   date=$ax_build_date
   26326 fi
   26327 fi
   26328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $date" >&5
   26329 printf "%s\n" "$date" >&6; }
   26330 
   26331 
   26332 
   26333 ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service contrib/unbound_portable.service"
   26334 
   26335 ac_config_headers="$ac_config_headers config.h"
   26336 
   26337 cat >confcache <<\_ACEOF
   26338 # This file is a shell script that caches the results of configure
   26339 # tests run on this system so they can be shared between configure
   26340 # scripts and configure runs, see configure's option --config-cache.
   26341 # It is not useful on other systems.  If it contains results you don't
   26342 # want to keep, you may remove or edit it.
   26343 #
   26344 # config.status only pays attention to the cache file if you give it
   26345 # the --recheck option to rerun configure.
   26346 #
   26347 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   26348 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   26349 # following values.
   26350 
   26351 _ACEOF
   26352 
   26353 # The following way of writing the cache mishandles newlines in values,
   26354 # but we know of no workaround that is simple, portable, and efficient.
   26355 # So, we kill variables containing newlines.
   26356 # Ultrix sh set writes to stderr and can't be redirected directly,
   26357 # and sets the high bit in the cache file unless we assign to the vars.
   26358 (
   26359   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   26360     eval ac_val=\$$ac_var
   26361     case $ac_val in #(
   26362     *${as_nl}*)
   26363       case $ac_var in #(
   26364       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   26365 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   26366       esac
   26367       case $ac_var in #(
   26368       _ | IFS | as_nl) ;; #(
   26369       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   26370       *) { eval $ac_var=; unset $ac_var;} ;;
   26371       esac ;;
   26372     esac
   26373   done
   26374 
   26375   (set) 2>&1 |
   26376     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   26377     *${as_nl}ac_space=\ *)
   26378       # `set' does not quote correctly, so add quotes: double-quote
   26379       # substitution turns \\\\ into \\, and sed turns \\ into \.
   26380       sed -n \
   26381 	"s/'/'\\\\''/g;
   26382 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   26383       ;; #(
   26384     *)
   26385       # `set' quotes correctly as required by POSIX, so do not add quotes.
   26386       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   26387       ;;
   26388     esac |
   26389     sort
   26390 ) |
   26391   sed '
   26392      /^ac_cv_env_/b end
   26393      t clear
   26394      :clear
   26395      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
   26396      t end
   26397      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   26398      :end' >>confcache
   26399 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   26400   if test -w "$cache_file"; then
   26401     if test "x$cache_file" != "x/dev/null"; then
   26402       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   26403 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
   26404       if test ! -f "$cache_file" || test -h "$cache_file"; then
   26405 	cat confcache >"$cache_file"
   26406       else
   26407         case $cache_file in #(
   26408         */* | ?:*)
   26409 	  mv -f confcache "$cache_file"$$ &&
   26410 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   26411         *)
   26412 	  mv -f confcache "$cache_file" ;;
   26413 	esac
   26414       fi
   26415     fi
   26416   else
   26417     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   26418 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
   26419   fi
   26420 fi
   26421 rm -f confcache
   26422 
   26423 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   26424 # Let make expand exec_prefix.
   26425 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   26426 
   26427 DEFS=-DHAVE_CONFIG_H
   26428 
   26429 ac_libobjs=
   26430 ac_ltlibobjs=
   26431 U=
   26432 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   26433   # 1. Remove the extension, and $U if already installed.
   26434   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   26435   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
   26436   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   26437   #    will be set to the directory where LIBOBJS objects are built.
   26438   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   26439   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   26440 done
   26441 LIBOBJS=$ac_libobjs
   26442 
   26443 LTLIBOBJS=$ac_ltlibobjs
   26444 
   26445 
   26446 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
   26447   as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
   26448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   26449 fi
   26450 
   26451 : "${CONFIG_STATUS=./config.status}"
   26452 ac_write_fail=0
   26453 ac_clean_files_save=$ac_clean_files
   26454 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   26455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   26456 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
   26457 as_write_fail=0
   26458 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   26459 #! $SHELL
   26460 # Generated by $as_me.
   26461 # Run this file to recreate the current configuration.
   26462 # Compiler output produced by configure, useful for debugging
   26463 # configure, is in config.log if it exists.
   26464 
   26465 debug=false
   26466 ac_cs_recheck=false
   26467 ac_cs_silent=false
   26468 
   26469 SHELL=\${CONFIG_SHELL-$SHELL}
   26470 export SHELL
   26471 _ASEOF
   26472 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   26473 ## -------------------- ##
   26474 ## M4sh Initialization. ##
   26475 ## -------------------- ##
   26476 
   26477 # Be more Bourne compatible
   26478 DUALCASE=1; export DUALCASE # for MKS sh
   26479 as_nop=:
   26480 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
   26481 then :
   26482   emulate sh
   26483   NULLCMD=:
   26484   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   26485   # is contrary to our usage.  Disable this feature.
   26486   alias -g '${1+"$@"}'='"$@"'
   26487   setopt NO_GLOB_SUBST
   26488 else $as_nop
   26489   case `(set -o) 2>/dev/null` in #(
   26490   *posix*) :
   26491     set -o posix ;; #(
   26492   *) :
   26493      ;;
   26494 esac
   26495 fi
   26496 
   26497 
   26498 
   26499 # Reset variables that may have inherited troublesome values from
   26500 # the environment.
   26501 
   26502 # IFS needs to be set, to space, tab, and newline, in precisely that order.
   26503 # (If _AS_PATH_WALK were called with IFS unset, it would have the
   26504 # side effect of setting IFS to empty, thus disabling word splitting.)
   26505 # Quoting is to prevent editors from complaining about space-tab.
   26506 as_nl='
   26507 '
   26508 export as_nl
   26509 IFS=" ""	$as_nl"
   26510 
   26511 PS1='$ '
   26512 PS2='> '
   26513 PS4='+ '
   26514 
   26515 # Ensure predictable behavior from utilities with locale-dependent output.
   26516 LC_ALL=C
   26517 export LC_ALL
   26518 LANGUAGE=C
   26519 export LANGUAGE
   26520 
   26521 # We cannot yet rely on "unset" to work, but we need these variables
   26522 # to be unset--not just set to an empty or harmless value--now, to
   26523 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
   26524 # also avoids known problems related to "unset" and subshell syntax
   26525 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
   26526 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
   26527 do eval test \${$as_var+y} \
   26528   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   26529 done
   26530 
   26531 # Ensure that fds 0, 1, and 2 are open.
   26532 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
   26533 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
   26534 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
   26535 
   26536 # The user is always right.
   26537 if ${PATH_SEPARATOR+false} :; then
   26538   PATH_SEPARATOR=:
   26539   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   26540     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   26541       PATH_SEPARATOR=';'
   26542   }
   26543 fi
   26544 
   26545 
   26546 # Find who we are.  Look in the path if we contain no directory separator.
   26547 as_myself=
   26548 case $0 in #((
   26549   *[\\/]* ) as_myself=$0 ;;
   26550   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   26551 for as_dir in $PATH
   26552 do
   26553   IFS=$as_save_IFS
   26554   case $as_dir in #(((
   26555     '') as_dir=./ ;;
   26556     */) ;;
   26557     *) as_dir=$as_dir/ ;;
   26558   esac
   26559     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
   26560   done
   26561 IFS=$as_save_IFS
   26562 
   26563      ;;
   26564 esac
   26565 # We did not find ourselves, most probably we were run as `sh COMMAND'
   26566 # in which case we are not to be found in the path.
   26567 if test "x$as_myself" = x; then
   26568   as_myself=$0
   26569 fi
   26570 if test ! -f "$as_myself"; then
   26571   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   26572   exit 1
   26573 fi
   26574 
   26575 
   26576 
   26577 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   26578 # ----------------------------------------
   26579 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   26580 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   26581 # script with STATUS, using 1 if that was 0.
   26582 as_fn_error ()
   26583 {
   26584   as_status=$1; test $as_status -eq 0 && as_status=1
   26585   if test "$4"; then
   26586     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   26587     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   26588   fi
   26589   printf "%s\n" "$as_me: error: $2" >&2
   26590   as_fn_exit $as_status
   26591 } # as_fn_error
   26592 
   26593 
   26594 
   26595 # as_fn_set_status STATUS
   26596 # -----------------------
   26597 # Set $? to STATUS, without forking.
   26598 as_fn_set_status ()
   26599 {
   26600   return $1
   26601 } # as_fn_set_status
   26602 
   26603 # as_fn_exit STATUS
   26604 # -----------------
   26605 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   26606 as_fn_exit ()
   26607 {
   26608   set +e
   26609   as_fn_set_status $1
   26610   exit $1
   26611 } # as_fn_exit
   26612 
   26613 # as_fn_unset VAR
   26614 # ---------------
   26615 # Portably unset VAR.
   26616 as_fn_unset ()
   26617 {
   26618   { eval $1=; unset $1;}
   26619 }
   26620 as_unset=as_fn_unset
   26621 
   26622 # as_fn_append VAR VALUE
   26623 # ----------------------
   26624 # Append the text in VALUE to the end of the definition contained in VAR. Take
   26625 # advantage of any shell optimizations that allow amortized linear growth over
   26626 # repeated appends, instead of the typical quadratic growth present in naive
   26627 # implementations.
   26628 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
   26629 then :
   26630   eval 'as_fn_append ()
   26631   {
   26632     eval $1+=\$2
   26633   }'
   26634 else $as_nop
   26635   as_fn_append ()
   26636   {
   26637     eval $1=\$$1\$2
   26638   }
   26639 fi # as_fn_append
   26640 
   26641 # as_fn_arith ARG...
   26642 # ------------------
   26643 # Perform arithmetic evaluation on the ARGs, and store the result in the
   26644 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   26645 # must be portable across $(()) and expr.
   26646 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
   26647 then :
   26648   eval 'as_fn_arith ()
   26649   {
   26650     as_val=$(( $* ))
   26651   }'
   26652 else $as_nop
   26653   as_fn_arith ()
   26654   {
   26655     as_val=`expr "$@" || test $? -eq 1`
   26656   }
   26657 fi # as_fn_arith
   26658 
   26659 
   26660 if expr a : '\(a\)' >/dev/null 2>&1 &&
   26661    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   26662   as_expr=expr
   26663 else
   26664   as_expr=false
   26665 fi
   26666 
   26667 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   26668   as_basename=basename
   26669 else
   26670   as_basename=false
   26671 fi
   26672 
   26673 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   26674   as_dirname=dirname
   26675 else
   26676   as_dirname=false
   26677 fi
   26678 
   26679 as_me=`$as_basename -- "$0" ||
   26680 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   26681 	 X"$0" : 'X\(//\)$' \| \
   26682 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   26683 printf "%s\n" X/"$0" |
   26684     sed '/^.*\/\([^/][^/]*\)\/*$/{
   26685 	    s//\1/
   26686 	    q
   26687 	  }
   26688 	  /^X\/\(\/\/\)$/{
   26689 	    s//\1/
   26690 	    q
   26691 	  }
   26692 	  /^X\/\(\/\).*/{
   26693 	    s//\1/
   26694 	    q
   26695 	  }
   26696 	  s/.*/./; q'`
   26697 
   26698 # Avoid depending upon Character Ranges.
   26699 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   26700 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   26701 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   26702 as_cr_digits='0123456789'
   26703 as_cr_alnum=$as_cr_Letters$as_cr_digits
   26704 
   26705 
   26706 # Determine whether it's possible to make 'echo' print without a newline.
   26707 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
   26708 # for compatibility with existing Makefiles.
   26709 ECHO_C= ECHO_N= ECHO_T=
   26710 case `echo -n x` in #(((((
   26711 -n*)
   26712   case `echo 'xy\c'` in
   26713   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   26714   xy)  ECHO_C='\c';;
   26715   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   26716        ECHO_T='	';;
   26717   esac;;
   26718 *)
   26719   ECHO_N='-n';;
   26720 esac
   26721 
   26722 # For backward compatibility with old third-party macros, we provide
   26723 # the shell variables $as_echo and $as_echo_n.  New code should use
   26724 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
   26725 as_echo='printf %s\n'
   26726 as_echo_n='printf %s'
   26727 
   26728 rm -f conf$$ conf$$.exe conf$$.file
   26729 if test -d conf$$.dir; then
   26730   rm -f conf$$.dir/conf$$.file
   26731 else
   26732   rm -f conf$$.dir
   26733   mkdir conf$$.dir 2>/dev/null
   26734 fi
   26735 if (echo >conf$$.file) 2>/dev/null; then
   26736   if ln -s conf$$.file conf$$ 2>/dev/null; then
   26737     as_ln_s='ln -s'
   26738     # ... but there are two gotchas:
   26739     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   26740     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   26741     # In both cases, we have to default to `cp -pR'.
   26742     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   26743       as_ln_s='cp -pR'
   26744   elif ln conf$$.file conf$$ 2>/dev/null; then
   26745     as_ln_s=ln
   26746   else
   26747     as_ln_s='cp -pR'
   26748   fi
   26749 else
   26750   as_ln_s='cp -pR'
   26751 fi
   26752 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   26753 rmdir conf$$.dir 2>/dev/null
   26754 
   26755 
   26756 # as_fn_mkdir_p
   26757 # -------------
   26758 # Create "$as_dir" as a directory, including parents if necessary.
   26759 as_fn_mkdir_p ()
   26760 {
   26761 
   26762   case $as_dir in #(
   26763   -*) as_dir=./$as_dir;;
   26764   esac
   26765   test -d "$as_dir" || eval $as_mkdir_p || {
   26766     as_dirs=
   26767     while :; do
   26768       case $as_dir in #(
   26769       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   26770       *) as_qdir=$as_dir;;
   26771       esac
   26772       as_dirs="'$as_qdir' $as_dirs"
   26773       as_dir=`$as_dirname -- "$as_dir" ||
   26774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   26775 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   26776 	 X"$as_dir" : 'X\(//\)$' \| \
   26777 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   26778 printf "%s\n" X"$as_dir" |
   26779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   26780 	    s//\1/
   26781 	    q
   26782 	  }
   26783 	  /^X\(\/\/\)[^/].*/{
   26784 	    s//\1/
   26785 	    q
   26786 	  }
   26787 	  /^X\(\/\/\)$/{
   26788 	    s//\1/
   26789 	    q
   26790 	  }
   26791 	  /^X\(\/\).*/{
   26792 	    s//\1/
   26793 	    q
   26794 	  }
   26795 	  s/.*/./; q'`
   26796       test -d "$as_dir" && break
   26797     done
   26798     test -z "$as_dirs" || eval "mkdir $as_dirs"
   26799   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   26800 
   26801 
   26802 } # as_fn_mkdir_p
   26803 if mkdir -p . 2>/dev/null; then
   26804   as_mkdir_p='mkdir -p "$as_dir"'
   26805 else
   26806   test -d ./-p && rmdir ./-p
   26807   as_mkdir_p=false
   26808 fi
   26809 
   26810 
   26811 # as_fn_executable_p FILE
   26812 # -----------------------
   26813 # Test if FILE is an executable regular file.
   26814 as_fn_executable_p ()
   26815 {
   26816   test -f "$1" && test -x "$1"
   26817 } # as_fn_executable_p
   26818 as_test_x='test -x'
   26819 as_executable_p=as_fn_executable_p
   26820 
   26821 # Sed expression to map a string onto a valid CPP name.
   26822 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   26823 
   26824 # Sed expression to map a string onto a valid variable name.
   26825 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   26826 
   26827 
   26828 exec 6>&1
   26829 ## ----------------------------------- ##
   26830 ## Main body of $CONFIG_STATUS script. ##
   26831 ## ----------------------------------- ##
   26832 _ASEOF
   26833 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   26834 
   26835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   26836 # Save the log message, to keep $0 and so on meaningful, and to
   26837 # report actual input values of CONFIG_FILES etc. instead of their
   26838 # values after options handling.
   26839 ac_log="
   26840 This file was extended by unbound $as_me 1.25.1, which was
   26841 generated by GNU Autoconf 2.71.  Invocation command line was
   26842 
   26843   CONFIG_FILES    = $CONFIG_FILES
   26844   CONFIG_HEADERS  = $CONFIG_HEADERS
   26845   CONFIG_LINKS    = $CONFIG_LINKS
   26846   CONFIG_COMMANDS = $CONFIG_COMMANDS
   26847   $ $0 $@
   26848 
   26849 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   26850 "
   26851 
   26852 _ACEOF
   26853 
   26854 case $ac_config_files in *"
   26855 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   26856 esac
   26857 
   26858 case $ac_config_headers in *"
   26859 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   26860 esac
   26861 
   26862 
   26863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   26864 # Files that config.status was made for.
   26865 config_files="$ac_config_files"
   26866 config_headers="$ac_config_headers"
   26867 config_commands="$ac_config_commands"
   26868 
   26869 _ACEOF
   26870 
   26871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   26872 ac_cs_usage="\
   26873 \`$as_me' instantiates files and other configuration actions
   26874 from templates according to the current configuration.  Unless the files
   26875 and actions are specified as TAGs, all are instantiated by default.
   26876 
   26877 Usage: $0 [OPTION]... [TAG]...
   26878 
   26879   -h, --help       print this help, then exit
   26880   -V, --version    print version number and configuration settings, then exit
   26881       --config     print configuration, then exit
   26882   -q, --quiet, --silent
   26883                    do not print progress messages
   26884   -d, --debug      don't remove temporary files
   26885       --recheck    update $as_me by reconfiguring in the same conditions
   26886       --file=FILE[:TEMPLATE]
   26887                    instantiate the configuration file FILE
   26888       --header=FILE[:TEMPLATE]
   26889                    instantiate the configuration header FILE
   26890 
   26891 Configuration files:
   26892 $config_files
   26893 
   26894 Configuration headers:
   26895 $config_headers
   26896 
   26897 Configuration commands:
   26898 $config_commands
   26899 
   26900 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
   26901 
   26902 _ACEOF
   26903 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
   26904 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
   26905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   26906 ac_cs_config='$ac_cs_config_escaped'
   26907 ac_cs_version="\\
   26908 unbound config.status 1.25.1
   26909 configured by $0, generated by GNU Autoconf 2.71,
   26910   with options \\"\$ac_cs_config\\"
   26911 
   26912 Copyright (C) 2021 Free Software Foundation, Inc.
   26913 This config.status script is free software; the Free Software Foundation
   26914 gives unlimited permission to copy, distribute and modify it."
   26915 
   26916 ac_pwd='$ac_pwd'
   26917 srcdir='$srcdir'
   26918 AWK='$AWK'
   26919 test -n "\$AWK" || AWK=awk
   26920 _ACEOF
   26921 
   26922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   26923 # The default lists apply if the user does not specify any file.
   26924 ac_need_defaults=:
   26925 while test $# != 0
   26926 do
   26927   case $1 in
   26928   --*=?*)
   26929     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   26930     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   26931     ac_shift=:
   26932     ;;
   26933   --*=)
   26934     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   26935     ac_optarg=
   26936     ac_shift=:
   26937     ;;
   26938   *)
   26939     ac_option=$1
   26940     ac_optarg=$2
   26941     ac_shift=shift
   26942     ;;
   26943   esac
   26944 
   26945   case $ac_option in
   26946   # Handling of the options.
   26947   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   26948     ac_cs_recheck=: ;;
   26949   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   26950     printf "%s\n" "$ac_cs_version"; exit ;;
   26951   --config | --confi | --conf | --con | --co | --c )
   26952     printf "%s\n" "$ac_cs_config"; exit ;;
   26953   --debug | --debu | --deb | --de | --d | -d )
   26954     debug=: ;;
   26955   --file | --fil | --fi | --f )
   26956     $ac_shift
   26957     case $ac_optarg in
   26958     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   26959     '') as_fn_error $? "missing file argument" ;;
   26960     esac
   26961     as_fn_append CONFIG_FILES " '$ac_optarg'"
   26962     ac_need_defaults=false;;
   26963   --header | --heade | --head | --hea )
   26964     $ac_shift
   26965     case $ac_optarg in
   26966     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   26967     esac
   26968     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   26969     ac_need_defaults=false;;
   26970   --he | --h)
   26971     # Conflict between --help and --header
   26972     as_fn_error $? "ambiguous option: \`$1'
   26973 Try \`$0 --help' for more information.";;
   26974   --help | --hel | -h )
   26975     printf "%s\n" "$ac_cs_usage"; exit ;;
   26976   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   26977   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   26978     ac_cs_silent=: ;;
   26979 
   26980   # This is an error.
   26981   -*) as_fn_error $? "unrecognized option: \`$1'
   26982 Try \`$0 --help' for more information." ;;
   26983 
   26984   *) as_fn_append ac_config_targets " $1"
   26985      ac_need_defaults=false ;;
   26986 
   26987   esac
   26988   shift
   26989 done
   26990 
   26991 ac_configure_extra_args=
   26992 
   26993 if $ac_cs_silent; then
   26994   exec 6>/dev/null
   26995   ac_configure_extra_args="$ac_configure_extra_args --silent"
   26996 fi
   26997 
   26998 _ACEOF
   26999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27000 if \$ac_cs_recheck; then
   27001   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   27002   shift
   27003   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
   27004   CONFIG_SHELL='$SHELL'
   27005   export CONFIG_SHELL
   27006   exec "\$@"
   27007 fi
   27008 
   27009 _ACEOF
   27010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27011 exec 5>>config.log
   27012 {
   27013   echo
   27014   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   27015 ## Running $as_me. ##
   27016 _ASBOX
   27017   printf "%s\n" "$ac_log"
   27018 } >&5
   27019 
   27020 _ACEOF
   27021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27022 #
   27023 # INIT-COMMANDS
   27024 #
   27025 
   27026 
   27027 # The HP-UX ksh and POSIX shell print the target directory to stdout
   27028 # if CDPATH is set.
   27029 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   27030 
   27031 sed_quote_subst='$sed_quote_subst'
   27032 double_quote_subst='$double_quote_subst'
   27033 delay_variable_subst='$delay_variable_subst'
   27034 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   27035 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   27036 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   27037 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   27038 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   27039 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   27040 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   27041 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   27042 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   27043 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   27044 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   27045 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   27046 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   27047 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   27048 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   27049 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   27050 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   27051 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   27052 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   27053 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   27054 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   27055 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   27056 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   27057 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   27058 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   27059 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   27060 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   27061 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   27062 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   27063 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   27064 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   27065 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   27066 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   27067 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   27068 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
   27069 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   27070 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   27071 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   27072 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   27073 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   27074 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   27075 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   27076 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   27077 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
   27078 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   27079 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   27080 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   27081 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   27082 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   27083 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   27084 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   27085 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   27086 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   27087 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   27088 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   27089 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   27090 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   27091 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   27092 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   27093 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   27094 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"`'
   27095 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   27096 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   27097 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   27098 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   27099 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   27100 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   27101 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   27102 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   27103 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   27104 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   27105 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   27106 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   27107 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   27108 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   27109 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   27110 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   27111 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   27112 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   27113 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   27114 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   27115 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   27116 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   27117 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   27118 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   27119 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   27120 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   27121 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   27122 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   27123 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   27124 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   27125 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   27126 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   27127 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   27128 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   27129 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   27130 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   27131 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   27132 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   27133 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   27134 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   27135 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   27136 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   27137 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   27138 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   27139 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   27140 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   27141 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   27142 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   27143 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   27144 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   27145 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   27146 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   27147 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   27148 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   27149 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   27150 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   27151 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   27152 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   27153 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   27154 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   27155 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   27156 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   27157 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   27158 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   27159 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   27160 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   27161 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   27162 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   27163 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   27164 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   27165 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   27166 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   27167 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   27168 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   27169 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   27170 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   27171 
   27172 LTCC='$LTCC'
   27173 LTCFLAGS='$LTCFLAGS'
   27174 compiler='$compiler_DEFAULT'
   27175 
   27176 # A function that is used when there is no print builtin or printf.
   27177 func_fallback_echo ()
   27178 {
   27179   eval 'cat <<_LTECHO_EOF
   27180 \$1
   27181 _LTECHO_EOF'
   27182 }
   27183 
   27184 # Quote evaled strings.
   27185 for var in SHELL \
   27186 ECHO \
   27187 PATH_SEPARATOR \
   27188 SED \
   27189 GREP \
   27190 EGREP \
   27191 FGREP \
   27192 LD \
   27193 NM \
   27194 LN_S \
   27195 lt_SP2NL \
   27196 lt_NL2SP \
   27197 reload_flag \
   27198 FILECMD \
   27199 OBJDUMP \
   27200 deplibs_check_method \
   27201 file_magic_cmd \
   27202 file_magic_glob \
   27203 want_nocaseglob \
   27204 DLLTOOL \
   27205 sharedlib_from_linklib_cmd \
   27206 AR \
   27207 archiver_list_spec \
   27208 STRIP \
   27209 RANLIB \
   27210 CC \
   27211 CFLAGS \
   27212 compiler \
   27213 lt_cv_sys_global_symbol_pipe \
   27214 lt_cv_sys_global_symbol_to_cdecl \
   27215 lt_cv_sys_global_symbol_to_import \
   27216 lt_cv_sys_global_symbol_to_c_name_address \
   27217 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   27218 lt_cv_nm_interface \
   27219 nm_file_list_spec \
   27220 lt_cv_truncate_bin \
   27221 lt_prog_compiler_no_builtin_flag \
   27222 lt_prog_compiler_pic \
   27223 lt_prog_compiler_wl \
   27224 lt_prog_compiler_static \
   27225 lt_cv_prog_compiler_c_o \
   27226 need_locks \
   27227 MANIFEST_TOOL \
   27228 DSYMUTIL \
   27229 NMEDIT \
   27230 LIPO \
   27231 OTOOL \
   27232 OTOOL64 \
   27233 shrext_cmds \
   27234 export_dynamic_flag_spec \
   27235 whole_archive_flag_spec \
   27236 compiler_needs_object \
   27237 with_gnu_ld \
   27238 allow_undefined_flag \
   27239 no_undefined_flag \
   27240 hardcode_libdir_flag_spec \
   27241 hardcode_libdir_separator \
   27242 exclude_expsyms \
   27243 include_expsyms \
   27244 file_list_spec \
   27245 variables_saved_for_relink \
   27246 libname_spec \
   27247 library_names_spec \
   27248 soname_spec \
   27249 install_override_mode \
   27250 finish_eval \
   27251 old_striplib \
   27252 striplib; do
   27253     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   27254     *[\\\\\\\`\\"\\\$]*)
   27255       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   27256       ;;
   27257     *)
   27258       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   27259       ;;
   27260     esac
   27261 done
   27262 
   27263 # Double-quote double-evaled strings.
   27264 for var in reload_cmds \
   27265 old_postinstall_cmds \
   27266 old_postuninstall_cmds \
   27267 old_archive_cmds \
   27268 extract_expsyms_cmds \
   27269 old_archive_from_new_cmds \
   27270 old_archive_from_expsyms_cmds \
   27271 archive_cmds \
   27272 archive_expsym_cmds \
   27273 module_cmds \
   27274 module_expsym_cmds \
   27275 export_symbols_cmds \
   27276 prelink_cmds \
   27277 postlink_cmds \
   27278 postinstall_cmds \
   27279 postuninstall_cmds \
   27280 finish_cmds \
   27281 sys_lib_search_path_spec \
   27282 configure_time_dlsearch_path \
   27283 configure_time_lt_sys_library_path; do
   27284     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   27285     *[\\\\\\\`\\"\\\$]*)
   27286       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   27287       ;;
   27288     *)
   27289       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   27290       ;;
   27291     esac
   27292 done
   27293 
   27294 ac_aux_dir='$ac_aux_dir'
   27295 
   27296 # See if we are running on zsh, and set the options that allow our
   27297 # commands through without removal of \ escapes INIT.
   27298 if test -n "\${ZSH_VERSION+set}"; then
   27299    setopt NO_GLOB_SUBST
   27300 fi
   27301 
   27302 
   27303     PACKAGE='$PACKAGE'
   27304     VERSION='$VERSION'
   27305     RM='$RM'
   27306     ofile='$ofile'
   27307 
   27308 
   27309 
   27310 
   27311 _ACEOF
   27312 
   27313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27314 
   27315 # Handling of arguments.
   27316 for ac_config_target in $ac_config_targets
   27317 do
   27318   case $ac_config_target in
   27319     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   27320     "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
   27321     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   27322     "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
   27323     "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
   27324     "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
   27325     "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
   27326     "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
   27327     "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
   27328     "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
   27329     "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
   27330     "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
   27331     "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
   27332     "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
   27333     "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
   27334     "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
   27335     "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
   27336     "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;;
   27337     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   27338 
   27339   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   27340   esac
   27341 done
   27342 
   27343 
   27344 # If the user did not use the arguments to specify the items to instantiate,
   27345 # then the envvar interface is used.  Set only those that are not.
   27346 # We use the long form for the default assignment because of an extremely
   27347 # bizarre bug on SunOS 4.1.3.
   27348 if $ac_need_defaults; then
   27349   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
   27350   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
   27351   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
   27352 fi
   27353 
   27354 # Have a temporary directory for convenience.  Make it in the build tree
   27355 # simply because there is no reason against having it here, and in addition,
   27356 # creating and moving files from /tmp can sometimes cause problems.
   27357 # Hook for its removal unless debugging.
   27358 # Note that there is a small window in which the directory will not be cleaned:
   27359 # after its creation but before its name has been assigned to `$tmp'.
   27360 $debug ||
   27361 {
   27362   tmp= ac_tmp=
   27363   trap 'exit_status=$?
   27364   : "${ac_tmp:=$tmp}"
   27365   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   27366 ' 0
   27367   trap 'as_fn_exit 1' 1 2 13 15
   27368 }
   27369 # Create a (secure) tmp directory for tmp files.
   27370 
   27371 {
   27372   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   27373   test -d "$tmp"
   27374 }  ||
   27375 {
   27376   tmp=./conf$$-$RANDOM
   27377   (umask 077 && mkdir "$tmp")
   27378 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   27379 ac_tmp=$tmp
   27380 
   27381 # Set up the scripts for CONFIG_FILES section.
   27382 # No need to generate them if there are no CONFIG_FILES.
   27383 # This happens for instance with `./config.status config.h'.
   27384 if test -n "$CONFIG_FILES"; then
   27385 
   27386 
   27387 ac_cr=`echo X | tr X '\015'`
   27388 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   27389 # But we know of no other shell where ac_cr would be empty at this
   27390 # point, so we can use a bashism as a fallback.
   27391 if test "x$ac_cr" = x; then
   27392   eval ac_cr=\$\'\\r\'
   27393 fi
   27394 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   27395 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   27396   ac_cs_awk_cr='\\r'
   27397 else
   27398   ac_cs_awk_cr=$ac_cr
   27399 fi
   27400 
   27401 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   27402 _ACEOF
   27403 
   27404 
   27405 {
   27406   echo "cat >conf$$subs.awk <<_ACEOF" &&
   27407   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   27408   echo "_ACEOF"
   27409 } >conf$$subs.sh ||
   27410   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   27411 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   27412 ac_delim='%!_!# '
   27413 for ac_last_try in false false false false false :; do
   27414   . ./conf$$subs.sh ||
   27415     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   27416 
   27417   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   27418   if test $ac_delim_n = $ac_delim_num; then
   27419     break
   27420   elif $ac_last_try; then
   27421     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   27422   else
   27423     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   27424   fi
   27425 done
   27426 rm -f conf$$subs.sh
   27427 
   27428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27429 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   27430 _ACEOF
   27431 sed -n '
   27432 h
   27433 s/^/S["/; s/!.*/"]=/
   27434 p
   27435 g
   27436 s/^[^!]*!//
   27437 :repl
   27438 t repl
   27439 s/'"$ac_delim"'$//
   27440 t delim
   27441 :nl
   27442 h
   27443 s/\(.\{148\}\)..*/\1/
   27444 t more1
   27445 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   27446 p
   27447 n
   27448 b repl
   27449 :more1
   27450 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   27451 p
   27452 g
   27453 s/.\{148\}//
   27454 t nl
   27455 :delim
   27456 h
   27457 s/\(.\{148\}\)..*/\1/
   27458 t more2
   27459 s/["\\]/\\&/g; s/^/"/; s/$/"/
   27460 p
   27461 b
   27462 :more2
   27463 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   27464 p
   27465 g
   27466 s/.\{148\}//
   27467 t delim
   27468 ' <conf$$subs.awk | sed '
   27469 /^[^""]/{
   27470   N
   27471   s/\n//
   27472 }
   27473 ' >>$CONFIG_STATUS || ac_write_fail=1
   27474 rm -f conf$$subs.awk
   27475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27476 _ACAWK
   27477 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   27478   for (key in S) S_is_set[key] = 1
   27479   FS = ""
   27480 
   27481 }
   27482 {
   27483   line = $ 0
   27484   nfields = split(line, field, "@")
   27485   substed = 0
   27486   len = length(field[1])
   27487   for (i = 2; i < nfields; i++) {
   27488     key = field[i]
   27489     keylen = length(key)
   27490     if (S_is_set[key]) {
   27491       value = S[key]
   27492       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   27493       len += length(value) + length(field[++i])
   27494       substed = 1
   27495     } else
   27496       len += 1 + keylen
   27497   }
   27498 
   27499   print line
   27500 }
   27501 
   27502 _ACAWK
   27503 _ACEOF
   27504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27505 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   27506   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   27507 else
   27508   cat
   27509 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   27510   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   27511 _ACEOF
   27512 
   27513 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   27514 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   27515 # trailing colons and then remove the whole line if VPATH becomes empty
   27516 # (actually we leave an empty line to preserve line numbers).
   27517 if test "x$srcdir" = x.; then
   27518   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   27519 h
   27520 s///
   27521 s/^/:/
   27522 s/[	 ]*$/:/
   27523 s/:\$(srcdir):/:/g
   27524 s/:\${srcdir}:/:/g
   27525 s/:@srcdir@:/:/g
   27526 s/^:*//
   27527 s/:*$//
   27528 x
   27529 s/\(=[	 ]*\).*/\1/
   27530 G
   27531 s/\n//
   27532 s/^[^=]*=[	 ]*$//
   27533 }'
   27534 fi
   27535 
   27536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27537 fi # test -n "$CONFIG_FILES"
   27538 
   27539 # Set up the scripts for CONFIG_HEADERS section.
   27540 # No need to generate them if there are no CONFIG_HEADERS.
   27541 # This happens for instance with `./config.status Makefile'.
   27542 if test -n "$CONFIG_HEADERS"; then
   27543 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   27544 BEGIN {
   27545 _ACEOF
   27546 
   27547 # Transform confdefs.h into an awk script `defines.awk', embedded as
   27548 # here-document in config.status, that substitutes the proper values into
   27549 # config.h.in to produce config.h.
   27550 
   27551 # Create a delimiter string that does not exist in confdefs.h, to ease
   27552 # handling of long lines.
   27553 ac_delim='%!_!# '
   27554 for ac_last_try in false false :; do
   27555   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   27556   if test -z "$ac_tt"; then
   27557     break
   27558   elif $ac_last_try; then
   27559     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   27560   else
   27561     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   27562   fi
   27563 done
   27564 
   27565 # For the awk script, D is an array of macro values keyed by name,
   27566 # likewise P contains macro parameters if any.  Preserve backslash
   27567 # newline sequences.
   27568 
   27569 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   27570 sed -n '
   27571 s/.\{148\}/&'"$ac_delim"'/g
   27572 t rset
   27573 :rset
   27574 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   27575 t def
   27576 d
   27577 :def
   27578 s/\\$//
   27579 t bsnl
   27580 s/["\\]/\\&/g
   27581 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   27582 D["\1"]=" \3"/p
   27583 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   27584 d
   27585 :bsnl
   27586 s/["\\]/\\&/g
   27587 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   27588 D["\1"]=" \3\\\\\\n"\\/p
   27589 t cont
   27590 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   27591 t cont
   27592 d
   27593 :cont
   27594 n
   27595 s/.\{148\}/&'"$ac_delim"'/g
   27596 t clear
   27597 :clear
   27598 s/\\$//
   27599 t bsnlc
   27600 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   27601 d
   27602 :bsnlc
   27603 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   27604 b cont
   27605 ' <confdefs.h | sed '
   27606 s/'"$ac_delim"'/"\\\
   27607 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   27608 
   27609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27610   for (key in D) D_is_set[key] = 1
   27611   FS = ""
   27612 }
   27613 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   27614   line = \$ 0
   27615   split(line, arg, " ")
   27616   if (arg[1] == "#") {
   27617     defundef = arg[2]
   27618     mac1 = arg[3]
   27619   } else {
   27620     defundef = substr(arg[1], 2)
   27621     mac1 = arg[2]
   27622   }
   27623   split(mac1, mac2, "(") #)
   27624   macro = mac2[1]
   27625   prefix = substr(line, 1, index(line, defundef) - 1)
   27626   if (D_is_set[macro]) {
   27627     # Preserve the white space surrounding the "#".
   27628     print prefix "define", macro P[macro] D[macro]
   27629     next
   27630   } else {
   27631     # Replace #undef with comments.  This is necessary, for example,
   27632     # in the case of _POSIX_SOURCE, which is predefined and required
   27633     # on some systems where configure will not decide to define it.
   27634     if (defundef == "undef") {
   27635       print "/*", prefix defundef, macro, "*/"
   27636       next
   27637     }
   27638   }
   27639 }
   27640 { print }
   27641 _ACAWK
   27642 _ACEOF
   27643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27644   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   27645 fi # test -n "$CONFIG_HEADERS"
   27646 
   27647 
   27648 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   27649 shift
   27650 for ac_tag
   27651 do
   27652   case $ac_tag in
   27653   :[FHLC]) ac_mode=$ac_tag; continue;;
   27654   esac
   27655   case $ac_mode$ac_tag in
   27656   :[FHL]*:*);;
   27657   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   27658   :[FH]-) ac_tag=-:-;;
   27659   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   27660   esac
   27661   ac_save_IFS=$IFS
   27662   IFS=:
   27663   set x $ac_tag
   27664   IFS=$ac_save_IFS
   27665   shift
   27666   ac_file=$1
   27667   shift
   27668 
   27669   case $ac_mode in
   27670   :L) ac_source=$1;;
   27671   :[FH])
   27672     ac_file_inputs=
   27673     for ac_f
   27674     do
   27675       case $ac_f in
   27676       -) ac_f="$ac_tmp/stdin";;
   27677       *) # Look for the file first in the build tree, then in the source tree
   27678 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   27679 	 # because $ac_f cannot contain `:'.
   27680 	 test -f "$ac_f" ||
   27681 	   case $ac_f in
   27682 	   [\\/$]*) false;;
   27683 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   27684 	   esac ||
   27685 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   27686       esac
   27687       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   27688       as_fn_append ac_file_inputs " '$ac_f'"
   27689     done
   27690 
   27691     # Let's still pretend it is `configure' which instantiates (i.e., don't
   27692     # use $as_me), people would be surprised to read:
   27693     #    /* config.h.  Generated by config.status.  */
   27694     configure_input='Generated from '`
   27695 	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   27696 	`' by configure.'
   27697     if test x"$ac_file" != x-; then
   27698       configure_input="$ac_file.  $configure_input"
   27699       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   27700 printf "%s\n" "$as_me: creating $ac_file" >&6;}
   27701     fi
   27702     # Neutralize special characters interpreted by sed in replacement strings.
   27703     case $configure_input in #(
   27704     *\&* | *\|* | *\\* )
   27705        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
   27706        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   27707     *) ac_sed_conf_input=$configure_input;;
   27708     esac
   27709 
   27710     case $ac_tag in
   27711     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   27712       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   27713     esac
   27714     ;;
   27715   esac
   27716 
   27717   ac_dir=`$as_dirname -- "$ac_file" ||
   27718 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   27719 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   27720 	 X"$ac_file" : 'X\(//\)$' \| \
   27721 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   27722 printf "%s\n" X"$ac_file" |
   27723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   27724 	    s//\1/
   27725 	    q
   27726 	  }
   27727 	  /^X\(\/\/\)[^/].*/{
   27728 	    s//\1/
   27729 	    q
   27730 	  }
   27731 	  /^X\(\/\/\)$/{
   27732 	    s//\1/
   27733 	    q
   27734 	  }
   27735 	  /^X\(\/\).*/{
   27736 	    s//\1/
   27737 	    q
   27738 	  }
   27739 	  s/.*/./; q'`
   27740   as_dir="$ac_dir"; as_fn_mkdir_p
   27741   ac_builddir=.
   27742 
   27743 case "$ac_dir" in
   27744 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   27745 *)
   27746   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   27747   # A ".." for each directory in $ac_dir_suffix.
   27748   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   27749   case $ac_top_builddir_sub in
   27750   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   27751   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   27752   esac ;;
   27753 esac
   27754 ac_abs_top_builddir=$ac_pwd
   27755 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   27756 # for backward compatibility:
   27757 ac_top_builddir=$ac_top_build_prefix
   27758 
   27759 case $srcdir in
   27760   .)  # We are building in place.
   27761     ac_srcdir=.
   27762     ac_top_srcdir=$ac_top_builddir_sub
   27763     ac_abs_top_srcdir=$ac_pwd ;;
   27764   [\\/]* | ?:[\\/]* )  # Absolute name.
   27765     ac_srcdir=$srcdir$ac_dir_suffix;
   27766     ac_top_srcdir=$srcdir
   27767     ac_abs_top_srcdir=$srcdir ;;
   27768   *) # Relative name.
   27769     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   27770     ac_top_srcdir=$ac_top_build_prefix$srcdir
   27771     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   27772 esac
   27773 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   27774 
   27775 
   27776   case $ac_mode in
   27777   :F)
   27778   #
   27779   # CONFIG_FILE
   27780   #
   27781 
   27782 _ACEOF
   27783 
   27784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27785 # If the template does not know about datarootdir, expand it.
   27786 # FIXME: This hack should be removed a few years after 2.60.
   27787 ac_datarootdir_hack=; ac_datarootdir_seen=
   27788 ac_sed_dataroot='
   27789 /datarootdir/ {
   27790   p
   27791   q
   27792 }
   27793 /@datadir@/p
   27794 /@docdir@/p
   27795 /@infodir@/p
   27796 /@localedir@/p
   27797 /@mandir@/p'
   27798 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   27799 *datarootdir*) ac_datarootdir_seen=yes;;
   27800 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   27801   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   27802 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   27803 _ACEOF
   27804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27805   ac_datarootdir_hack='
   27806   s&@datadir@&$datadir&g
   27807   s&@docdir@&$docdir&g
   27808   s&@infodir@&$infodir&g
   27809   s&@localedir@&$localedir&g
   27810   s&@mandir@&$mandir&g
   27811   s&\\\${datarootdir}&$datarootdir&g' ;;
   27812 esac
   27813 _ACEOF
   27814 
   27815 # Neutralize VPATH when `$srcdir' = `.'.
   27816 # Shell code in configure.ac might set extrasub.
   27817 # FIXME: do we really want to maintain this feature?
   27818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   27819 ac_sed_extra="$ac_vpsub
   27820 $extrasub
   27821 _ACEOF
   27822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   27823 :t
   27824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   27825 s|@configure_input@|$ac_sed_conf_input|;t t
   27826 s&@top_builddir@&$ac_top_builddir_sub&;t t
   27827 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   27828 s&@srcdir@&$ac_srcdir&;t t
   27829 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   27830 s&@top_srcdir@&$ac_top_srcdir&;t t
   27831 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   27832 s&@builddir@&$ac_builddir&;t t
   27833 s&@abs_builddir@&$ac_abs_builddir&;t t
   27834 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   27835 $ac_datarootdir_hack
   27836 "
   27837 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   27838   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   27839 
   27840 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   27841   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   27842   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   27843       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   27844   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   27845 which seems to be undefined.  Please make sure it is defined" >&5
   27846 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   27847 which seems to be undefined.  Please make sure it is defined" >&2;}
   27848 
   27849   rm -f "$ac_tmp/stdin"
   27850   case $ac_file in
   27851   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   27852   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   27853   esac \
   27854   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   27855  ;;
   27856   :H)
   27857   #
   27858   # CONFIG_HEADER
   27859   #
   27860   if test x"$ac_file" != x-; then
   27861     {
   27862       printf "%s\n" "/* $configure_input  */" >&1 \
   27863       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   27864     } >"$ac_tmp/config.h" \
   27865       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   27866     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   27867       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   27868 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
   27869     else
   27870       rm -f "$ac_file"
   27871       mv "$ac_tmp/config.h" "$ac_file" \
   27872 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   27873     fi
   27874   else
   27875     printf "%s\n" "/* $configure_input  */" >&1 \
   27876       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   27877       || as_fn_error $? "could not create -" "$LINENO" 5
   27878   fi
   27879  ;;
   27880 
   27881   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   27882 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
   27883  ;;
   27884   esac
   27885 
   27886 
   27887   case $ac_file$ac_mode in
   27888     "libtool":C)
   27889 
   27890     # See if we are running on zsh, and set the options that allow our
   27891     # commands through without removal of \ escapes.
   27892     if test -n "${ZSH_VERSION+set}"; then
   27893       setopt NO_GLOB_SUBST
   27894     fi
   27895 
   27896     cfgfile=${ofile}T
   27897     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   27898     $RM "$cfgfile"
   27899 
   27900     cat <<_LT_EOF >> "$cfgfile"
   27901 #! $SHELL
   27902 # Generated automatically by $as_me ($PACKAGE) $VERSION
   27903 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   27904 
   27905 # Provide generalized library-building support services.
   27906 # Written by Gordon Matzigkeit, 1996
   27907 
   27908 # Copyright (C) 2024 Free Software Foundation, Inc.
   27909 # This is free software; see the source for copying conditions.  There is NO
   27910 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   27911 
   27912 # GNU Libtool is free software; you can redistribute it and/or modify
   27913 # it under the terms of the GNU General Public License as published by
   27914 # the Free Software Foundation; either version 2 of the License, or
   27915 # (at your option) any later version.
   27916 #
   27917 # As a special exception to the GNU General Public License, if you
   27918 # distribute this file as part of a program or library that is built
   27919 # using GNU Libtool, you may include this file under the  same
   27920 # distribution terms that you use for the rest of that program.
   27921 #
   27922 # GNU Libtool is distributed in the hope that it will be useful, but
   27923 # WITHOUT ANY WARRANTY; without even the implied warranty of
   27924 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   27925 # GNU General Public License for more details.
   27926 #
   27927 # You should have received a copy of the GNU General Public License
   27928 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   27929 
   27930 
   27931 # The names of the tagged configurations supported by this script.
   27932 available_tags=''
   27933 
   27934 # Configured defaults for sys_lib_dlsearch_path munging.
   27935 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   27936 
   27937 # ### BEGIN LIBTOOL CONFIG
   27938 
   27939 # Which release of libtool.m4 was used?
   27940 macro_version=$macro_version
   27941 macro_revision=$macro_revision
   27942 
   27943 # Whether or not to build shared libraries.
   27944 build_libtool_libs=$enable_shared
   27945 
   27946 # Whether or not to build static libraries.
   27947 build_old_libs=$enable_static
   27948 
   27949 # What type of objects to build.
   27950 pic_mode=$pic_mode
   27951 
   27952 # Whether or not to optimize for fast installation.
   27953 fast_install=$enable_fast_install
   27954 
   27955 # Shared archive member basename,for filename based shared library versioning on AIX.
   27956 shared_archive_member_spec=$shared_archive_member_spec
   27957 
   27958 # Shell to use when invoking shell scripts.
   27959 SHELL=$lt_SHELL
   27960 
   27961 # An echo program that protects backslashes.
   27962 ECHO=$lt_ECHO
   27963 
   27964 # The PATH separator for the build system.
   27965 PATH_SEPARATOR=$lt_PATH_SEPARATOR
   27966 
   27967 # The host system.
   27968 host_alias=$host_alias
   27969 host=$host
   27970 host_os=$host_os
   27971 
   27972 # The build system.
   27973 build_alias=$build_alias
   27974 build=$build
   27975 build_os=$build_os
   27976 
   27977 # A sed program that does not truncate output.
   27978 SED=$lt_SED
   27979 
   27980 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   27981 Xsed="\$SED -e 1s/^X//"
   27982 
   27983 # A grep program that handles long lines.
   27984 GREP=$lt_GREP
   27985 
   27986 # An ERE matcher.
   27987 EGREP=$lt_EGREP
   27988 
   27989 # A literal string matcher.
   27990 FGREP=$lt_FGREP
   27991 
   27992 # A BSD- or MS-compatible name lister.
   27993 NM=$lt_NM
   27994 
   27995 # Whether we need soft or hard links.
   27996 LN_S=$lt_LN_S
   27997 
   27998 # What is the maximum length of a command?
   27999 max_cmd_len=$max_cmd_len
   28000 
   28001 # Object file suffix (normally "o").
   28002 objext=$ac_objext
   28003 
   28004 # Executable file suffix (normally "").
   28005 exeext=$exeext
   28006 
   28007 # whether the shell understands "unset".
   28008 lt_unset=$lt_unset
   28009 
   28010 # turn spaces into newlines.
   28011 SP2NL=$lt_lt_SP2NL
   28012 
   28013 # turn newlines into spaces.
   28014 NL2SP=$lt_lt_NL2SP
   28015 
   28016 # convert \$build file names to \$host format.
   28017 to_host_file_cmd=$lt_cv_to_host_file_cmd
   28018 
   28019 # convert \$build files to toolchain format.
   28020 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   28021 
   28022 # A file(cmd) program that detects file types.
   28023 FILECMD=$lt_FILECMD
   28024 
   28025 # An object symbol dumper.
   28026 OBJDUMP=$lt_OBJDUMP
   28027 
   28028 # Method to check whether dependent libraries are shared objects.
   28029 deplibs_check_method=$lt_deplibs_check_method
   28030 
   28031 # Command to use when deplibs_check_method = "file_magic".
   28032 file_magic_cmd=$lt_file_magic_cmd
   28033 
   28034 # How to find potential files when deplibs_check_method = "file_magic".
   28035 file_magic_glob=$lt_file_magic_glob
   28036 
   28037 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   28038 want_nocaseglob=$lt_want_nocaseglob
   28039 
   28040 # DLL creation program.
   28041 DLLTOOL=$lt_DLLTOOL
   28042 
   28043 # Command to associate shared and link libraries.
   28044 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   28045 
   28046 # The archiver.
   28047 AR=$lt_AR
   28048 
   28049 # Flags to create an archive (by configure).
   28050 lt_ar_flags=$lt_ar_flags
   28051 
   28052 # Flags to create an archive.
   28053 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
   28054 
   28055 # How to feed a file listing to the archiver.
   28056 archiver_list_spec=$lt_archiver_list_spec
   28057 
   28058 # A symbol stripping program.
   28059 STRIP=$lt_STRIP
   28060 
   28061 # Commands used to install an old-style archive.
   28062 RANLIB=$lt_RANLIB
   28063 old_postinstall_cmds=$lt_old_postinstall_cmds
   28064 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   28065 
   28066 # Whether to use a lock for old archive extraction.
   28067 lock_old_archive_extraction=$lock_old_archive_extraction
   28068 
   28069 # A C compiler.
   28070 LTCC=$lt_CC
   28071 
   28072 # LTCC compiler flags.
   28073 LTCFLAGS=$lt_CFLAGS
   28074 
   28075 # Take the output of nm and produce a listing of raw symbols and C names.
   28076 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   28077 
   28078 # Transform the output of nm in a proper C declaration.
   28079 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   28080 
   28081 # Transform the output of nm into a list of symbols to manually relocate.
   28082 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   28083 
   28084 # Transform the output of nm in a C name address pair.
   28085 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   28086 
   28087 # Transform the output of nm in a C name address pair when lib prefix is needed.
   28088 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   28089 
   28090 # The name lister interface.
   28091 nm_interface=$lt_lt_cv_nm_interface
   28092 
   28093 # Specify filename containing input files for \$NM.
   28094 nm_file_list_spec=$lt_nm_file_list_spec
   28095 
   28096 # The root where to search for dependent libraries,and where our libraries should be installed.
   28097 lt_sysroot=$lt_sysroot
   28098 
   28099 # Command to truncate a binary pipe.
   28100 lt_truncate_bin=$lt_lt_cv_truncate_bin
   28101 
   28102 # The name of the directory that contains temporary libtool files.
   28103 objdir=$objdir
   28104 
   28105 # Used to examine libraries when file_magic_cmd begins with "file".
   28106 MAGIC_CMD=$MAGIC_CMD
   28107 
   28108 # Must we lock files when doing compilation?
   28109 need_locks=$lt_need_locks
   28110 
   28111 # Manifest tool.
   28112 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   28113 
   28114 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   28115 DSYMUTIL=$lt_DSYMUTIL
   28116 
   28117 # Tool to change global to local symbols on Mac OS X.
   28118 NMEDIT=$lt_NMEDIT
   28119 
   28120 # Tool to manipulate fat objects and archives on Mac OS X.
   28121 LIPO=$lt_LIPO
   28122 
   28123 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   28124 OTOOL=$lt_OTOOL
   28125 
   28126 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   28127 OTOOL64=$lt_OTOOL64
   28128 
   28129 # Old archive suffix (normally "a").
   28130 libext=$libext
   28131 
   28132 # Shared library suffix (normally ".so").
   28133 shrext_cmds=$lt_shrext_cmds
   28134 
   28135 # The commands to extract the exported symbol list from a shared archive.
   28136 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   28137 
   28138 # Variables whose values should be saved in libtool wrapper scripts and
   28139 # restored at link time.
   28140 variables_saved_for_relink=$lt_variables_saved_for_relink
   28141 
   28142 # Do we need the "lib" prefix for modules?
   28143 need_lib_prefix=$need_lib_prefix
   28144 
   28145 # Do we need a version for libraries?
   28146 need_version=$need_version
   28147 
   28148 # Library versioning type.
   28149 version_type=$version_type
   28150 
   28151 # Shared library runtime path variable.
   28152 runpath_var=$runpath_var
   28153 
   28154 # Shared library path variable.
   28155 shlibpath_var=$shlibpath_var
   28156 
   28157 # Is shlibpath searched before the hard-coded library search path?
   28158 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   28159 
   28160 # Format of library name prefix.
   28161 libname_spec=$lt_libname_spec
   28162 
   28163 # List of archive names.  First name is the real one, the rest are links.
   28164 # The last name is the one that the linker finds with -lNAME
   28165 library_names_spec=$lt_library_names_spec
   28166 
   28167 # The coded name of the library, if different from the real name.
   28168 soname_spec=$lt_soname_spec
   28169 
   28170 # Permission mode override for installation of shared libraries.
   28171 install_override_mode=$lt_install_override_mode
   28172 
   28173 # Command to use after installation of a shared archive.
   28174 postinstall_cmds=$lt_postinstall_cmds
   28175 
   28176 # Command to use after uninstallation of a shared archive.
   28177 postuninstall_cmds=$lt_postuninstall_cmds
   28178 
   28179 # Commands used to finish a libtool library installation in a directory.
   28180 finish_cmds=$lt_finish_cmds
   28181 
   28182 # As "finish_cmds", except a single script fragment to be evaled but
   28183 # not shown.
   28184 finish_eval=$lt_finish_eval
   28185 
   28186 # Whether we should hardcode library paths into libraries.
   28187 hardcode_into_libs=$hardcode_into_libs
   28188 
   28189 # Compile-time system search path for libraries.
   28190 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   28191 
   28192 # Detected run-time system search path for libraries.
   28193 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   28194 
   28195 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   28196 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   28197 
   28198 # Whether dlopen is supported.
   28199 dlopen_support=$enable_dlopen
   28200 
   28201 # Whether dlopen of programs is supported.
   28202 dlopen_self=$enable_dlopen_self
   28203 
   28204 # Whether dlopen of statically linked programs is supported.
   28205 dlopen_self_static=$enable_dlopen_self_static
   28206 
   28207 # Commands to strip libraries.
   28208 old_striplib=$lt_old_striplib
   28209 striplib=$lt_striplib
   28210 
   28211 
   28212 # The linker used to build libraries.
   28213 LD=$lt_LD
   28214 
   28215 # How to create reloadable object files.
   28216 reload_flag=$lt_reload_flag
   28217 reload_cmds=$lt_reload_cmds
   28218 
   28219 # Commands used to build an old-style archive.
   28220 old_archive_cmds=$lt_old_archive_cmds
   28221 
   28222 # A language specific compiler.
   28223 CC=$lt_compiler
   28224 
   28225 # Is the compiler the GNU compiler?
   28226 with_gcc=$GCC
   28227 
   28228 # Compiler flag to turn off builtin functions.
   28229 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   28230 
   28231 # Additional compiler flags for building library objects.
   28232 pic_flag=$lt_lt_prog_compiler_pic
   28233 
   28234 # How to pass a linker flag through the compiler.
   28235 wl=$lt_lt_prog_compiler_wl
   28236 
   28237 # Compiler flag to prevent dynamic linking.
   28238 link_static_flag=$lt_lt_prog_compiler_static
   28239 
   28240 # Does compiler simultaneously support -c and -o options?
   28241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   28242 
   28243 # Whether or not to add -lc for building shared libraries.
   28244 build_libtool_need_lc=$archive_cmds_need_lc
   28245 
   28246 # Whether or not to disallow shared libs when runtime libs are static.
   28247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   28248 
   28249 # Compiler flag to allow reflexive dlopens.
   28250 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   28251 
   28252 # Compiler flag to generate shared objects directly from archives.
   28253 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   28254 
   28255 # Whether the compiler copes with passing no objects directly.
   28256 compiler_needs_object=$lt_compiler_needs_object
   28257 
   28258 # Create an old-style archive from a shared archive.
   28259 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   28260 
   28261 # Create a temporary old-style archive to link instead of a shared archive.
   28262 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   28263 
   28264 # Commands used to build a shared archive.
   28265 archive_cmds=$lt_archive_cmds
   28266 archive_expsym_cmds=$lt_archive_expsym_cmds
   28267 
   28268 # Commands used to build a loadable module if different from building
   28269 # a shared archive.
   28270 module_cmds=$lt_module_cmds
   28271 module_expsym_cmds=$lt_module_expsym_cmds
   28272 
   28273 # Whether we are building with GNU ld or not.
   28274 with_gnu_ld=$lt_with_gnu_ld
   28275 
   28276 # Flag that allows shared libraries with undefined symbols to be built.
   28277 allow_undefined_flag=$lt_allow_undefined_flag
   28278 
   28279 # Flag that enforces no undefined symbols.
   28280 no_undefined_flag=$lt_no_undefined_flag
   28281 
   28282 # Flag to hardcode \$libdir into a binary during linking.
   28283 # This must work even if \$libdir does not exist
   28284 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   28285 
   28286 # Whether we need a single "-rpath" flag with a separated argument.
   28287 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   28288 
   28289 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   28290 # DIR into the resulting binary.
   28291 hardcode_direct=$hardcode_direct
   28292 
   28293 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   28294 # DIR into the resulting binary and the resulting library dependency is
   28295 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
   28296 # library is relocated.
   28297 hardcode_direct_absolute=$hardcode_direct_absolute
   28298 
   28299 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   28300 # into the resulting binary.
   28301 hardcode_minus_L=$hardcode_minus_L
   28302 
   28303 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   28304 # into the resulting binary.
   28305 hardcode_shlibpath_var=$hardcode_shlibpath_var
   28306 
   28307 # Set to "yes" if building a shared library automatically hardcodes DIR
   28308 # into the library and all subsequent libraries and executables linked
   28309 # against it.
   28310 hardcode_automatic=$hardcode_automatic
   28311 
   28312 # Set to yes if linker adds runtime paths of dependent libraries
   28313 # to runtime path list.
   28314 inherit_rpath=$inherit_rpath
   28315 
   28316 # Whether libtool must link a program against all its dependency libraries.
   28317 link_all_deplibs=$link_all_deplibs
   28318 
   28319 # Set to "yes" if exported symbols are required.
   28320 always_export_symbols=$always_export_symbols
   28321 
   28322 # The commands to list exported symbols.
   28323 export_symbols_cmds=$lt_export_symbols_cmds
   28324 
   28325 # Symbols that should not be listed in the preloaded symbols.
   28326 exclude_expsyms=$lt_exclude_expsyms
   28327 
   28328 # Symbols that must always be exported.
   28329 include_expsyms=$lt_include_expsyms
   28330 
   28331 # Commands necessary for linking programs (against libraries) with templates.
   28332 prelink_cmds=$lt_prelink_cmds
   28333 
   28334 # Commands necessary for finishing linking programs.
   28335 postlink_cmds=$lt_postlink_cmds
   28336 
   28337 # Specify filename containing input files.
   28338 file_list_spec=$lt_file_list_spec
   28339 
   28340 # How to hardcode a shared library path into an executable.
   28341 hardcode_action=$hardcode_action
   28342 
   28343 # ### END LIBTOOL CONFIG
   28344 
   28345 _LT_EOF
   28346 
   28347     cat <<'_LT_EOF' >> "$cfgfile"
   28348 
   28349 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   28350 
   28351 # func_munge_path_list VARIABLE PATH
   28352 # -----------------------------------
   28353 # VARIABLE is name of variable containing _space_ separated list of
   28354 # directories to be munged by the contents of PATH, which is string
   28355 # having a format:
   28356 # "DIR[:DIR]:"
   28357 #       string "DIR[ DIR]" will be prepended to VARIABLE
   28358 # ":DIR[:DIR]"
   28359 #       string "DIR[ DIR]" will be appended to VARIABLE
   28360 # "DIRP[:DIRP]::[DIRA:]DIRA"
   28361 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   28362 #       "DIRA[ DIRA]" will be appended to VARIABLE
   28363 # "DIR[:DIR]"
   28364 #       VARIABLE will be replaced by "DIR[ DIR]"
   28365 func_munge_path_list ()
   28366 {
   28367     case x$2 in
   28368     x)
   28369         ;;
   28370     *:)
   28371         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   28372         ;;
   28373     x:*)
   28374         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   28375         ;;
   28376     *::*)
   28377         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   28378         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   28379         ;;
   28380     *)
   28381         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   28382         ;;
   28383     esac
   28384 }
   28385 
   28386 
   28387 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   28388 func_cc_basename ()
   28389 {
   28390     for cc_temp in $*""; do
   28391       case $cc_temp in
   28392         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   28393         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   28394         \-*) ;;
   28395         *) break;;
   28396       esac
   28397     done
   28398     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   28399 }
   28400 
   28401 
   28402 # ### END FUNCTIONS SHARED WITH CONFIGURE
   28403 
   28404 _LT_EOF
   28405 
   28406   case $host_os in
   28407   aix3*)
   28408     cat <<\_LT_EOF >> "$cfgfile"
   28409 # AIX sometimes has problems with the GCC collect2 program.  For some
   28410 # reason, if we set the COLLECT_NAMES environment variable, the problems
   28411 # vanish in a puff of smoke.
   28412 if test set != "${COLLECT_NAMES+set}"; then
   28413   COLLECT_NAMES=
   28414   export COLLECT_NAMES
   28415 fi
   28416 _LT_EOF
   28417     ;;
   28418   esac
   28419 
   28420 
   28421 
   28422 ltmain=$ac_aux_dir/ltmain.sh
   28423 
   28424 
   28425   # We use sed instead of cat because bash on DJGPP gets confused if
   28426   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   28427   # text mode, it properly converts lines to CR/LF.  This bash problem
   28428   # is reportedly fixed, but why not run on old versions too?
   28429   $SED '$q' "$ltmain" >> "$cfgfile" \
   28430      || (rm -f "$cfgfile"; exit 1)
   28431 
   28432    mv -f "$cfgfile" "$ofile" ||
   28433     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   28434   chmod +x "$ofile"
   28435 
   28436  ;;
   28437     "disable-rpath":C)
   28438 	sed < libtool > libtool-2 \
   28439 	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
   28440 	mv libtool-2 libtool
   28441 	chmod 755 libtool
   28442 	libtool="./libtool"
   28443 	 ;;
   28444 
   28445   esac
   28446 done # for ac_tag
   28447 
   28448 
   28449 as_fn_exit 0
   28450 _ACEOF
   28451 ac_clean_files=$ac_clean_files_save
   28452 
   28453 test $ac_write_fail = 0 ||
   28454   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   28455 
   28456 
   28457 # configure is writing to config.log, and then calls config.status.
   28458 # config.status does its own redirection, appending to config.log.
   28459 # Unfortunately, on DOS this fails, as config.log is still kept open
   28460 # by configure, so config.status won't be able to write to it; its
   28461 # output is simply discarded.  So we exec the FD to /dev/null,
   28462 # effectively closing config.log, so it can be properly (re)opened and
   28463 # appended to by config.status.  When coming back to configure, we
   28464 # need to make the FD available again.
   28465 if test "$no_create" != yes; then
   28466   ac_cs_success=:
   28467   ac_config_status_args=
   28468   test "$silent" = yes &&
   28469     ac_config_status_args="$ac_config_status_args --quiet"
   28470   exec 5>/dev/null
   28471   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   28472   exec 5>>config.log
   28473   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   28474   # would make configure fail if this is the last instruction.
   28475   $ac_cs_success || as_fn_exit 1
   28476 fi
   28477 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   28478   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   28479 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   28480 fi
   28481 
   28482 
   28483