Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.4.2.2
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for unbound 1.19.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-2012 Free Software Foundation, Inc.
      9 #
     10 #
     11 # This configure script is free software; the Free Software Foundation
     12 # gives unlimited permission to copy, distribute and modify it.
     13 ## -------------------- ##
     14 ## M4sh Initialization. ##
     15 ## -------------------- ##
     16 
     17 # Be more Bourne compatible
     18 DUALCASE=1; export DUALCASE # for MKS sh
     19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     20   emulate sh
     21   NULLCMD=:
     22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     23   # is contrary to our usage.  Disable this feature.
     24   alias -g '${1+"$@"}'='"$@"'
     25   setopt NO_GLOB_SUBST
     26 else
     27   case `(set -o) 2>/dev/null` in #(
     28   *posix*) :
     29     set -o posix ;; #(
     30   *) :
     31      ;;
     32 esac
     33 fi
     34 
     35 
     36 as_nl='
     37 '
     38 export as_nl
     39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     43 # Prefer a ksh shell builtin over an external printf program on Solaris,
     44 # but without wasting forks for bash or zsh.
     45 if test -z "$BASH_VERSION$ZSH_VERSION" \
     46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     47   as_echo='print -r --'
     48   as_echo_n='print -rn --'
     49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     50   as_echo='printf %s\n'
     51   as_echo_n='printf %s'
     52 else
     53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     55     as_echo_n='/usr/ucb/echo -n'
     56   else
     57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     58     as_echo_n_body='eval
     59       arg=$1;
     60       case $arg in #(
     61       *"$as_nl"*)
     62 	expr "X$arg" : "X\\(.*\\)$as_nl";
     63 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     64       esac;
     65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     66     '
     67     export as_echo_n_body
     68     as_echo_n='sh -c $as_echo_n_body as_echo'
     69   fi
     70   export as_echo_body
     71   as_echo='sh -c $as_echo_body as_echo'
     72 fi
     73 
     74 # The user is always right.
     75 if test "${PATH_SEPARATOR+set}" != set; then
     76   PATH_SEPARATOR=:
     77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     79       PATH_SEPARATOR=';'
     80   }
     81 fi
     82 
     83 
     84 # IFS
     85 # We need space, tab and new line, in precisely that order.  Quoting is
     86 # there to prevent editors from complaining about space-tab.
     87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     88 # splitting by setting IFS to empty value.)
     89 IFS=" ""	$as_nl"
     90 
     91 # Find who we are.  Look in the path if we contain no directory separator.
     92 as_myself=
     93 case $0 in #((
     94   *[\\/]* ) as_myself=$0 ;;
     95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     96 for as_dir in $PATH
     97 do
     98   IFS=$as_save_IFS
     99   test -z "$as_dir" && as_dir=.
    100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    101   done
    102 IFS=$as_save_IFS
    103 
    104      ;;
    105 esac
    106 # We did not find ourselves, most probably we were run as `sh COMMAND'
    107 # in which case we are not to be found in the path.
    108 if test "x$as_myself" = x; then
    109   as_myself=$0
    110 fi
    111 if test ! -f "$as_myself"; then
    112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    113   exit 1
    114 fi
    115 
    116 # Unset variables that we do not need and which cause bugs (e.g. in
    117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    118 # suppresses any "Segmentation fault" message there.  '((' could
    119 # trigger a bug in pdksh 5.2.14.
    120 for as_var in BASH_ENV ENV MAIL MAILPATH
    121 do eval test x\${$as_var+set} = xset \
    122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    123 done
    124 PS1='$ '
    125 PS2='> '
    126 PS4='+ '
    127 
    128 # NLS nuisances.
    129 LC_ALL=C
    130 export LC_ALL
    131 LANGUAGE=C
    132 export LANGUAGE
    133 
    134 # CDPATH.
    135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    136 
    137 # Use a proper internal environment variable to ensure we don't fall
    138   # into an infinite loop, continuously re-executing ourselves.
    139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    140     _as_can_reexec=no; export _as_can_reexec;
    141     # We cannot yet assume a decent shell, so we have to provide a
    142 # neutralization value for shells without unset; and this also
    143 # works around shells that cannot unset nonexistent variables.
    144 # Preserve -v and -x to the replacement shell.
    145 BASH_ENV=/dev/null
    146 ENV=/dev/null
    147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    148 case $- in # ((((
    149   *v*x* | *x*v* ) as_opts=-vx ;;
    150   *v* ) as_opts=-v ;;
    151   *x* ) as_opts=-x ;;
    152   * ) as_opts= ;;
    153 esac
    154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    155 # Admittedly, this is quite paranoid, since all the known shells bail
    156 # out after a failed `exec'.
    157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    158 as_fn_exit 255
    159   fi
    160   # We don't want this to propagate to other subprocesses.
    161           { _as_can_reexec=; unset _as_can_reexec;}
    162 if test "x$CONFIG_SHELL" = x; then
    163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    164   emulate sh
    165   NULLCMD=:
    166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    167   # is contrary to our usage.  Disable this feature.
    168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    169   setopt NO_GLOB_SUBST
    170 else
    171   case \`(set -o) 2>/dev/null\` in #(
    172   *posix*) :
    173     set -o posix ;; #(
    174   *) :
    175      ;;
    176 esac
    177 fi
    178 "
    179   as_required="as_fn_return () { (exit \$1); }
    180 as_fn_success () { as_fn_return 0; }
    181 as_fn_failure () { as_fn_return 1; }
    182 as_fn_ret_success () { return 0; }
    183 as_fn_ret_failure () { return 1; }
    184 
    185 exitcode=0
    186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    191 
    192 else
    193   exitcode=1; echo positional parameters were not saved.
    194 fi
    195 test x\$exitcode = x0 || exit 1
    196 test -x / || exit 1"
    197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    201 test \$(( 1 + 1 )) = 2 || exit 1
    202 
    203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    207     PATH=/empty FPATH=/empty; export PATH FPATH
    208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
    209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
    210   if (eval "$as_required") 2>/dev/null; then :
    211   as_have_required=yes
    212 else
    213   as_have_required=no
    214 fi
    215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    216 
    217 else
    218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    219 as_found=false
    220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    221 do
    222   IFS=$as_save_IFS
    223   test -z "$as_dir" && as_dir=.
    224   as_found=:
    225   case $as_dir in #(
    226 	 /*)
    227 	   for as_base in sh bash ksh sh5; do
    228 	     # Try only shells that exist, to save several forks.
    229 	     as_shell=$as_dir/$as_base
    230 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    231 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    232   CONFIG_SHELL=$as_shell as_have_required=yes
    233 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    234   break 2
    235 fi
    236 fi
    237 	   done;;
    238        esac
    239   as_found=false
    240 done
    241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    242 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    243   CONFIG_SHELL=$SHELL as_have_required=yes
    244 fi; }
    245 IFS=$as_save_IFS
    246 
    247 
    248       if test "x$CONFIG_SHELL" != x; then :
    249   export CONFIG_SHELL
    250              # We cannot yet assume a decent shell, so we have to provide a
    251 # neutralization value for shells without unset; and this also
    252 # works around shells that cannot unset nonexistent variables.
    253 # Preserve -v and -x to the replacement shell.
    254 BASH_ENV=/dev/null
    255 ENV=/dev/null
    256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    257 case $- in # ((((
    258   *v*x* | *x*v* ) as_opts=-vx ;;
    259   *v* ) as_opts=-v ;;
    260   *x* ) as_opts=-x ;;
    261   * ) as_opts= ;;
    262 esac
    263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    264 # Admittedly, this is quite paranoid, since all the known shells bail
    265 # out after a failed `exec'.
    266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    267 exit 255
    268 fi
    269 
    270     if test x$as_have_required = xno; then :
    271   $as_echo "$0: This script requires a shell more modern than all"
    272   $as_echo "$0: the shells that I found on your system."
    273   if test x${ZSH_VERSION+set} = xset ; then
    274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    276   else
    277     $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
    278 $0: unbound-bugs (at] nlnetlabs.nl or
    279 $0: https://github.com/NLnetLabs/unbound/issues about your
    280 $0: system, including any error possibly output before this
    281 $0: message. Then install a modern shell, or manually run
    282 $0: the script under such a shell if you do have one."
    283   fi
    284   exit 1
    285 fi
    286 fi
    287 fi
    288 SHELL=${CONFIG_SHELL-/bin/sh}
    289 export SHELL
    290 # Unset more variables known to interfere with behavior of common tools.
    291 CLICOLOR_FORCE= GREP_OPTIONS=
    292 unset CLICOLOR_FORCE GREP_OPTIONS
    293 
    294 ## --------------------- ##
    295 ## M4sh Shell Functions. ##
    296 ## --------------------- ##
    297 # as_fn_unset VAR
    298 # ---------------
    299 # Portably unset VAR.
    300 as_fn_unset ()
    301 {
    302   { eval $1=; unset $1;}
    303 }
    304 as_unset=as_fn_unset
    305 
    306 # as_fn_set_status STATUS
    307 # -----------------------
    308 # Set $? to STATUS, without forking.
    309 as_fn_set_status ()
    310 {
    311   return $1
    312 } # as_fn_set_status
    313 
    314 # as_fn_exit STATUS
    315 # -----------------
    316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    317 as_fn_exit ()
    318 {
    319   set +e
    320   as_fn_set_status $1
    321   exit $1
    322 } # as_fn_exit
    323 
    324 # as_fn_mkdir_p
    325 # -------------
    326 # Create "$as_dir" as a directory, including parents if necessary.
    327 as_fn_mkdir_p ()
    328 {
    329 
    330   case $as_dir in #(
    331   -*) as_dir=./$as_dir;;
    332   esac
    333   test -d "$as_dir" || eval $as_mkdir_p || {
    334     as_dirs=
    335     while :; do
    336       case $as_dir in #(
    337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    338       *) as_qdir=$as_dir;;
    339       esac
    340       as_dirs="'$as_qdir' $as_dirs"
    341       as_dir=`$as_dirname -- "$as_dir" ||
    342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    343 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    344 	 X"$as_dir" : 'X\(//\)$' \| \
    345 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    346 $as_echo X"$as_dir" |
    347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    348 	    s//\1/
    349 	    q
    350 	  }
    351 	  /^X\(\/\/\)[^/].*/{
    352 	    s//\1/
    353 	    q
    354 	  }
    355 	  /^X\(\/\/\)$/{
    356 	    s//\1/
    357 	    q
    358 	  }
    359 	  /^X\(\/\).*/{
    360 	    s//\1/
    361 	    q
    362 	  }
    363 	  s/.*/./; q'`
    364       test -d "$as_dir" && break
    365     done
    366     test -z "$as_dirs" || eval "mkdir $as_dirs"
    367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    368 
    369 
    370 } # as_fn_mkdir_p
    371 
    372 # as_fn_executable_p FILE
    373 # -----------------------
    374 # Test if FILE is an executable regular file.
    375 as_fn_executable_p ()
    376 {
    377   test -f "$1" && test -x "$1"
    378 } # as_fn_executable_p
    379 # as_fn_append VAR VALUE
    380 # ----------------------
    381 # Append the text in VALUE to the end of the definition contained in VAR. Take
    382 # advantage of any shell optimizations that allow amortized linear growth over
    383 # repeated appends, instead of the typical quadratic growth present in naive
    384 # implementations.
    385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    386   eval 'as_fn_append ()
    387   {
    388     eval $1+=\$2
    389   }'
    390 else
    391   as_fn_append ()
    392   {
    393     eval $1=\$$1\$2
    394   }
    395 fi # as_fn_append
    396 
    397 # as_fn_arith ARG...
    398 # ------------------
    399 # Perform arithmetic evaluation on the ARGs, and store the result in the
    400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    401 # must be portable across $(()) and expr.
    402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    403   eval 'as_fn_arith ()
    404   {
    405     as_val=$(( $* ))
    406   }'
    407 else
    408   as_fn_arith ()
    409   {
    410     as_val=`expr "$@" || test $? -eq 1`
    411   }
    412 fi # as_fn_arith
    413 
    414 
    415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    416 # ----------------------------------------
    417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    419 # script with STATUS, using 1 if that was 0.
    420 as_fn_error ()
    421 {
    422   as_status=$1; test $as_status -eq 0 && as_status=1
    423   if test "$4"; then
    424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    426   fi
    427   $as_echo "$as_me: error: $2" >&2
    428   as_fn_exit $as_status
    429 } # as_fn_error
    430 
    431 if expr a : '\(a\)' >/dev/null 2>&1 &&
    432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    433   as_expr=expr
    434 else
    435   as_expr=false
    436 fi
    437 
    438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    439   as_basename=basename
    440 else
    441   as_basename=false
    442 fi
    443 
    444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    445   as_dirname=dirname
    446 else
    447   as_dirname=false
    448 fi
    449 
    450 as_me=`$as_basename -- "$0" ||
    451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    452 	 X"$0" : 'X\(//\)$' \| \
    453 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    454 $as_echo X/"$0" |
    455     sed '/^.*\/\([^/][^/]*\)\/*$/{
    456 	    s//\1/
    457 	    q
    458 	  }
    459 	  /^X\/\(\/\/\)$/{
    460 	    s//\1/
    461 	    q
    462 	  }
    463 	  /^X\/\(\/\).*/{
    464 	    s//\1/
    465 	    q
    466 	  }
    467 	  s/.*/./; q'`
    468 
    469 # Avoid depending upon Character Ranges.
    470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    473 as_cr_digits='0123456789'
    474 as_cr_alnum=$as_cr_Letters$as_cr_digits
    475 
    476 
    477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    482   sed -n '
    483     p
    484     /[$]LINENO/=
    485   ' <$as_myself |
    486     sed '
    487       s/[$]LINENO.*/&-/
    488       t lineno
    489       b
    490       :lineno
    491       N
    492       :loop
    493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    494       t loop
    495       s/-\n.*//
    496     ' >$as_me.lineno &&
    497   chmod +x "$as_me.lineno" ||
    498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    499 
    500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    501   # already done that, so ensure we don't try to do so again and fall
    502   # in an infinite loop.  This has already happened in practice.
    503   _as_can_reexec=no; export _as_can_reexec
    504   # Don't try to exec as it changes $[0], causing all sort of problems
    505   # (the dirname of $[0] is not the place where we might find the
    506   # original and so on.  Autoconf is especially sensitive to this).
    507   . "./$as_me.lineno"
    508   # Exit status is that of the last command.
    509   exit
    510 }
    511 
    512 ECHO_C= ECHO_N= ECHO_T=
    513 case `echo -n x` in #(((((
    514 -n*)
    515   case `echo 'xy\c'` in
    516   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    517   xy)  ECHO_C='\c';;
    518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    519        ECHO_T='	';;
    520   esac;;
    521 *)
    522   ECHO_N='-n';;
    523 esac
    524 
    525 rm -f conf$$ conf$$.exe conf$$.file
    526 if test -d conf$$.dir; then
    527   rm -f conf$$.dir/conf$$.file
    528 else
    529   rm -f conf$$.dir
    530   mkdir conf$$.dir 2>/dev/null
    531 fi
    532 if (echo >conf$$.file) 2>/dev/null; then
    533   if ln -s conf$$.file conf$$ 2>/dev/null; then
    534     as_ln_s='ln -s'
    535     # ... but there are two gotchas:
    536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    538     # In both cases, we have to default to `cp -pR'.
    539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    540       as_ln_s='cp -pR'
    541   elif ln conf$$.file conf$$ 2>/dev/null; then
    542     as_ln_s=ln
    543   else
    544     as_ln_s='cp -pR'
    545   fi
    546 else
    547   as_ln_s='cp -pR'
    548 fi
    549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    550 rmdir conf$$.dir 2>/dev/null
    551 
    552 if mkdir -p . 2>/dev/null; then
    553   as_mkdir_p='mkdir -p "$as_dir"'
    554 else
    555   test -d ./-p && rmdir ./-p
    556   as_mkdir_p=false
    557 fi
    558 
    559 as_test_x='test -x'
    560 as_executable_p=as_fn_executable_p
    561 
    562 # Sed expression to map a string onto a valid CPP name.
    563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    564 
    565 # Sed expression to map a string onto a valid variable name.
    566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    567 
    568 SHELL=${CONFIG_SHELL-/bin/sh}
    569 
    570 
    571 test -n "$DJDIR" || exec 7<&0 </dev/null
    572 exec 6>&1
    573 
    574 # Name of the host.
    575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    576 # so uname gets run too.
    577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    578 
    579 #
    580 # Initializations.
    581 #
    582 ac_default_prefix=/usr/local
    583 ac_clean_files=
    584 ac_config_libobj_dir=.
    585 LIBOBJS=
    586 cross_compiling=no
    587 subdirs=
    588 MFLAGS=
    589 MAKEFLAGS=
    590 
    591 # Identity of this package.
    592 PACKAGE_NAME='unbound'
    593 PACKAGE_TARNAME='unbound'
    594 PACKAGE_VERSION='1.19.1'
    595 PACKAGE_STRING='unbound 1.19.1'
    596 PACKAGE_BUGREPORT='unbound-bugs (at] nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues'
    597 PACKAGE_URL=''
    598 
    599 # Factoring default headers for most tests.
    600 ac_includes_default="\
    601 #include <stdio.h>
    602 #ifdef HAVE_SYS_TYPES_H
    603 # include <sys/types.h>
    604 #endif
    605 #ifdef HAVE_SYS_STAT_H
    606 # include <sys/stat.h>
    607 #endif
    608 #ifdef STDC_HEADERS
    609 # include <stdlib.h>
    610 # include <stddef.h>
    611 #else
    612 # ifdef HAVE_STDLIB_H
    613 #  include <stdlib.h>
    614 # endif
    615 #endif
    616 #ifdef HAVE_STRING_H
    617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    618 #  include <memory.h>
    619 # endif
    620 # include <string.h>
    621 #endif
    622 #ifdef HAVE_STRINGS_H
    623 # include <strings.h>
    624 #endif
    625 #ifdef HAVE_INTTYPES_H
    626 # include <inttypes.h>
    627 #endif
    628 #ifdef HAVE_STDINT_H
    629 # include <stdint.h>
    630 #endif
    631 #ifdef HAVE_UNISTD_H
    632 # include <unistd.h>
    633 #endif"
    634 
    635 ac_subst_vars='LTLIBOBJS
    636 date
    637 version
    638 INSTALLTARGET
    639 ALLTARGET
    640 SOURCEFILE
    641 SOURCEDETERMINE
    642 IPSET_OBJ
    643 IPSET_SRC
    644 IPSECMOD_HEADER
    645 IPSECMOD_OBJ
    646 CACHEDB_OBJ
    647 CACHEDB_SRC
    648 DNSCRYPT_OBJ
    649 DNSCRYPT_SRC
    650 ENABLE_DNSCRYPT
    651 ENABLE_DNSCRYPT_XCHACHA20
    652 DNSTAP_OBJ
    653 DNSTAP_SRC
    654 DNSTAP_SOCKET_TESTBIN
    655 DNSTAP_SOCKET_PATH
    656 opt_dnstap_socket_path
    657 ENABLE_DNSTAP
    658 PROTOC_C
    659 UBSYMS
    660 EXTRALINK
    661 COMMON_OBJ_ALL_SYMBOLS
    662 LIBOBJ_WITHOUT_CTIME
    663 LIBOBJ_WITHOUT_CTIMEARC4
    664 WIN_CHECKCONF_OBJ_LINK
    665 WIN_CONTROL_OBJ_LINK
    666 WIN_UBANCHOR_OBJ_LINK
    667 WIN_HOST_OBJ_LINK
    668 WIN_DAEMON_OBJ_LINK
    669 WIN_DAEMON_OBJ
    670 WIN_DAEMON_SRC
    671 WINAPPS
    672 WINDRES
    673 CHECKLOCK_OBJ
    674 staticexe
    675 PC_LIBEVENT_DEPENDENCY
    676 UNBOUND_EVENT_UNINSTALL
    677 UNBOUND_EVENT_INSTALL
    678 SUBNET_HEADER
    679 SUBNET_OBJ
    680 PC_LIBBSD_DEPENDENCY
    681 SSLLIB
    682 HAVE_SSL
    683 PC_CRYPTO_DEPENDENCY
    684 CONFIG_DATE
    685 GCC_DOCKER_LINTFLAGS
    686 NETBSD_LINTFLAGS
    687 PYUNBOUND_UNINSTALL
    688 PYUNBOUND_INSTALL
    689 PYUNBOUND_TARGET
    690 PYUNBOUND_OBJ
    691 WITH_PYUNBOUND
    692 PYTHONMOD_UNINSTALL
    693 PYTHONMOD_INSTALL
    694 PYTHONMOD_HEADER
    695 PYTHONMOD_OBJ
    696 WITH_PYTHONMODULE
    697 swig
    698 SWIG_LIB
    699 SWIG
    700 PC_PY_DEPENDENCY
    701 PYTHON_LIBS
    702 PY_MAJOR_VERSION
    703 PYTHON_SITE_PKG
    704 PYTHON_LDFLAGS
    705 PYTHON_CPPFLAGS
    706 PYTHON
    707 PYTHON_VERSION
    708 DYNLIBMOD_EXTRALIBS
    709 DYNLIBMOD_HEADER
    710 DYNLIBMOD_OBJ
    711 WITH_DYNLIBMODULE
    712 PTHREAD_CFLAGS_ONLY
    713 PTHREAD_CFLAGS
    714 PTHREAD_LIBS
    715 PTHREAD_CC
    716 ax_pthread_config
    717 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ
    718 SLDNS_ALLOCCHECK_EXTRA_OBJ
    719 USE_SYSTEMD_FALSE
    720 USE_SYSTEMD_TRUE
    721 SYSTEMD_DAEMON_LIBS
    722 SYSTEMD_DAEMON_CFLAGS
    723 SYSTEMD_LIBS
    724 SYSTEMD_CFLAGS
    725 RUNTIME_PATH
    726 LIBOBJS
    727 PKG_CONFIG_LIBDIR
    728 PKG_CONFIG_PATH
    729 PKG_CONFIG
    730 LT_SYS_LIBRARY_PATH
    731 OTOOL64
    732 OTOOL
    733 LIPO
    734 NMEDIT
    735 DSYMUTIL
    736 MANIFEST_TOOL
    737 AWK
    738 RANLIB
    739 ac_ct_AR
    740 DLLTOOL
    741 OBJDUMP
    742 LN_S
    743 NM
    744 ac_ct_DUMPBIN
    745 DUMPBIN
    746 LD
    747 FGREP
    748 SED
    749 LIBTOOL
    750 AR
    751 host_os
    752 host_vendor
    753 host_cpu
    754 host
    755 build_os
    756 build_vendor
    757 build_cpu
    758 build
    759 libtool
    760 STRIP
    761 doxygen
    762 YFLAGS
    763 YACC
    764 LEXLIB
    765 LEX_OUTPUT_ROOT
    766 LEX
    767 debug_enabled
    768 DEPFLAG
    769 UNBOUND_USERNAME
    770 UNBOUND_ROOTCERT_FILE
    771 UNBOUND_ROOTKEY_FILE
    772 UNBOUND_PIDFILE
    773 UNBOUND_SHARE_DIR
    774 UNBOUND_CHROOT_DIR
    775 UNBOUND_RUN_DIR
    776 ub_conf_dir
    777 ub_conf_file
    778 UNBOUND_LOCALSTATE_DIR
    779 UNBOUND_SYSCONF_DIR
    780 UNBOUND_SBIN_DIR
    781 EGREP
    782 GREP
    783 CPP
    784 OBJEXT
    785 EXEEXT
    786 ac_ct_CC
    787 CPPFLAGS
    788 LDFLAGS
    789 CFLAGS
    790 CC
    791 LIBUNBOUND_AGE
    792 LIBUNBOUND_REVISION
    793 LIBUNBOUND_CURRENT
    794 UNBOUND_VERSION_MICRO
    795 UNBOUND_VERSION_MINOR
    796 UNBOUND_VERSION_MAJOR
    797 target_alias
    798 host_alias
    799 build_alias
    800 LIBS
    801 ECHO_T
    802 ECHO_N
    803 ECHO_C
    804 DEFS
    805 mandir
    806 localedir
    807 libdir
    808 psdir
    809 pdfdir
    810 dvidir
    811 htmldir
    812 infodir
    813 docdir
    814 oldincludedir
    815 includedir
    816 runstatedir
    817 localstatedir
    818 sharedstatedir
    819 sysconfdir
    820 datadir
    821 datarootdir
    822 libexecdir
    823 sbindir
    824 bindir
    825 program_transform_name
    826 prefix
    827 exec_prefix
    828 PACKAGE_URL
    829 PACKAGE_BUGREPORT
    830 PACKAGE_STRING
    831 PACKAGE_VERSION
    832 PACKAGE_TARNAME
    833 PACKAGE_NAME
    834 PATH_SEPARATOR
    835 SHELL'
    836 ac_subst_files=''
    837 ac_user_opts='
    838 enable_option_checking
    839 with_conf_file
    840 with_run_dir
    841 with_chroot_dir
    842 with_share_dir
    843 with_pidfile
    844 with_rootkey_file
    845 with_rootcert_file
    846 with_username
    847 enable_checking
    848 enable_debug
    849 enable_flto
    850 enable_pie
    851 enable_relro_now
    852 enable_shared
    853 enable_static
    854 with_pic
    855 enable_fast_install
    856 with_aix_soname
    857 with_gnu_ld
    858 with_sysroot
    859 enable_libtool_lock
    860 enable_rpath
    861 enable_largefile
    862 enable_systemd
    863 enable_alloc_checks
    864 enable_alloc_lite
    865 enable_alloc_nonregional
    866 with_pthreads
    867 with_solaris_threads
    868 with_syslog_facility
    869 with_dynlibmodule
    870 with_pyunbound
    871 with_pythonmodule
    872 enable_swig_version_check
    873 with_nss
    874 with_nettle
    875 with_ssl
    876 with_libbsd
    877 enable_sha1
    878 enable_sha2
    879 enable_subnet
    880 enable_gost
    881 enable_ecdsa
    882 enable_dsa
    883 with_deprecate_rsa_1024
    884 enable_ed25519
    885 enable_ed448
    886 enable_event_api
    887 enable_tfo_client
    888 enable_tfo_server
    889 with_libevent
    890 with_libexpat
    891 with_libhiredis
    892 with_libnghttp2
    893 enable_static_exe
    894 enable_fully_static
    895 enable_lock_checks
    896 enable_allsymbols
    897 enable_dnstap
    898 with_dnstap_socket_path
    899 with_protobuf_c
    900 enable_dnscrypt
    901 with_libsodium
    902 enable_cachedb
    903 enable_ipsecmod
    904 enable_ipset
    905 with_libmnl
    906 enable_explicit_port_randomisation
    907 enable_linux_ip_local_port_range
    908 with_libunbound_only
    909 '
    910       ac_precious_vars='build_alias
    911 host_alias
    912 target_alias
    913 CC
    914 CFLAGS
    915 LDFLAGS
    916 LIBS
    917 CPPFLAGS
    918 CPP
    919 YACC
    920 YFLAGS
    921 LT_SYS_LIBRARY_PATH
    922 PKG_CONFIG
    923 PKG_CONFIG_PATH
    924 PKG_CONFIG_LIBDIR
    925 SYSTEMD_CFLAGS
    926 SYSTEMD_LIBS
    927 SYSTEMD_DAEMON_CFLAGS
    928 SYSTEMD_DAEMON_LIBS
    929 PYTHON_VERSION'
    930 
    931 
    932 # Initialize some variables set by options.
    933 ac_init_help=
    934 ac_init_version=false
    935 ac_unrecognized_opts=
    936 ac_unrecognized_sep=
    937 # The variables have the same names as the options, with
    938 # dashes changed to underlines.
    939 cache_file=/dev/null
    940 exec_prefix=NONE
    941 no_create=
    942 no_recursion=
    943 prefix=NONE
    944 program_prefix=NONE
    945 program_suffix=NONE
    946 program_transform_name=s,x,x,
    947 silent=
    948 site=
    949 srcdir=
    950 verbose=
    951 x_includes=NONE
    952 x_libraries=NONE
    953 
    954 # Installation directory options.
    955 # These are left unexpanded so users can "make install exec_prefix=/foo"
    956 # and all the variables that are supposed to be based on exec_prefix
    957 # by default will actually change.
    958 # Use braces instead of parens because sh, perl, etc. also accept them.
    959 # (The list follows the same order as the GNU Coding Standards.)
    960 bindir='${exec_prefix}/bin'
    961 sbindir='${exec_prefix}/sbin'
    962 libexecdir='${exec_prefix}/libexec'
    963 datarootdir='${prefix}/share'
    964 datadir='${datarootdir}'
    965 sysconfdir='${prefix}/etc'
    966 sharedstatedir='${prefix}/com'
    967 localstatedir='${prefix}/var'
    968 runstatedir='${localstatedir}/run'
    969 includedir='${prefix}/include'
    970 oldincludedir='/usr/include'
    971 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    972 infodir='${datarootdir}/info'
    973 htmldir='${docdir}'
    974 dvidir='${docdir}'
    975 pdfdir='${docdir}'
    976 psdir='${docdir}'
    977 libdir='${exec_prefix}/lib'
    978 localedir='${datarootdir}/locale'
    979 mandir='${datarootdir}/man'
    980 
    981 ac_prev=
    982 ac_dashdash=
    983 for ac_option
    984 do
    985   # If the previous option needs an argument, assign it.
    986   if test -n "$ac_prev"; then
    987     eval $ac_prev=\$ac_option
    988     ac_prev=
    989     continue
    990   fi
    991 
    992   case $ac_option in
    993   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    994   *=)   ac_optarg= ;;
    995   *)    ac_optarg=yes ;;
    996   esac
    997 
    998   # Accept the important Cygnus configure options, so we can diagnose typos.
    999 
   1000   case $ac_dashdash$ac_option in
   1001   --)
   1002     ac_dashdash=yes ;;
   1003 
   1004   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1005     ac_prev=bindir ;;
   1006   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1007     bindir=$ac_optarg ;;
   1008 
   1009   -build | --build | --buil | --bui | --bu)
   1010     ac_prev=build_alias ;;
   1011   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1012     build_alias=$ac_optarg ;;
   1013 
   1014   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1015   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1016     ac_prev=cache_file ;;
   1017   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1018   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1019     cache_file=$ac_optarg ;;
   1020 
   1021   --config-cache | -C)
   1022     cache_file=config.cache ;;
   1023 
   1024   -datadir | --datadir | --datadi | --datad)
   1025     ac_prev=datadir ;;
   1026   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1027     datadir=$ac_optarg ;;
   1028 
   1029   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1030   | --dataroo | --dataro | --datar)
   1031     ac_prev=datarootdir ;;
   1032   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1033   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1034     datarootdir=$ac_optarg ;;
   1035 
   1036   -disable-* | --disable-*)
   1037     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1038     # Reject names that are not valid shell variable names.
   1039     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1040       as_fn_error $? "invalid feature name: $ac_useropt"
   1041     ac_useropt_orig=$ac_useropt
   1042     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1043     case $ac_user_opts in
   1044       *"
   1045 "enable_$ac_useropt"
   1046 "*) ;;
   1047       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1048 	 ac_unrecognized_sep=', ';;
   1049     esac
   1050     eval enable_$ac_useropt=no ;;
   1051 
   1052   -docdir | --docdir | --docdi | --doc | --do)
   1053     ac_prev=docdir ;;
   1054   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1055     docdir=$ac_optarg ;;
   1056 
   1057   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1058     ac_prev=dvidir ;;
   1059   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1060     dvidir=$ac_optarg ;;
   1061 
   1062   -enable-* | --enable-*)
   1063     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1064     # Reject names that are not valid shell variable names.
   1065     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1066       as_fn_error $? "invalid feature name: $ac_useropt"
   1067     ac_useropt_orig=$ac_useropt
   1068     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1069     case $ac_user_opts in
   1070       *"
   1071 "enable_$ac_useropt"
   1072 "*) ;;
   1073       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1074 	 ac_unrecognized_sep=', ';;
   1075     esac
   1076     eval enable_$ac_useropt=\$ac_optarg ;;
   1077 
   1078   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1079   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1080   | --exec | --exe | --ex)
   1081     ac_prev=exec_prefix ;;
   1082   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1083   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1084   | --exec=* | --exe=* | --ex=*)
   1085     exec_prefix=$ac_optarg ;;
   1086 
   1087   -gas | --gas | --ga | --g)
   1088     # Obsolete; use --with-gas.
   1089     with_gas=yes ;;
   1090 
   1091   -help | --help | --hel | --he | -h)
   1092     ac_init_help=long ;;
   1093   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1094     ac_init_help=recursive ;;
   1095   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1096     ac_init_help=short ;;
   1097 
   1098   -host | --host | --hos | --ho)
   1099     ac_prev=host_alias ;;
   1100   -host=* | --host=* | --hos=* | --ho=*)
   1101     host_alias=$ac_optarg ;;
   1102 
   1103   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1104     ac_prev=htmldir ;;
   1105   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1106   | --ht=*)
   1107     htmldir=$ac_optarg ;;
   1108 
   1109   -includedir | --includedir | --includedi | --included | --include \
   1110   | --includ | --inclu | --incl | --inc)
   1111     ac_prev=includedir ;;
   1112   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1113   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1114     includedir=$ac_optarg ;;
   1115 
   1116   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1117     ac_prev=infodir ;;
   1118   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1119     infodir=$ac_optarg ;;
   1120 
   1121   -libdir | --libdir | --libdi | --libd)
   1122     ac_prev=libdir ;;
   1123   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1124     libdir=$ac_optarg ;;
   1125 
   1126   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1127   | --libexe | --libex | --libe)
   1128     ac_prev=libexecdir ;;
   1129   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1130   | --libexe=* | --libex=* | --libe=*)
   1131     libexecdir=$ac_optarg ;;
   1132 
   1133   -localedir | --localedir | --localedi | --localed | --locale)
   1134     ac_prev=localedir ;;
   1135   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1136     localedir=$ac_optarg ;;
   1137 
   1138   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1139   | --localstate | --localstat | --localsta | --localst | --locals)
   1140     ac_prev=localstatedir ;;
   1141   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1142   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1143     localstatedir=$ac_optarg ;;
   1144 
   1145   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1146     ac_prev=mandir ;;
   1147   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1148     mandir=$ac_optarg ;;
   1149 
   1150   -nfp | --nfp | --nf)
   1151     # Obsolete; use --without-fp.
   1152     with_fp=no ;;
   1153 
   1154   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1155   | --no-cr | --no-c | -n)
   1156     no_create=yes ;;
   1157 
   1158   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1159   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1160     no_recursion=yes ;;
   1161 
   1162   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1163   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1164   | --oldin | --oldi | --old | --ol | --o)
   1165     ac_prev=oldincludedir ;;
   1166   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1167   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1168   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1169     oldincludedir=$ac_optarg ;;
   1170 
   1171   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1172     ac_prev=prefix ;;
   1173   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1174     prefix=$ac_optarg ;;
   1175 
   1176   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1177   | --program-pre | --program-pr | --program-p)
   1178     ac_prev=program_prefix ;;
   1179   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1180   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1181     program_prefix=$ac_optarg ;;
   1182 
   1183   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1184   | --program-suf | --program-su | --program-s)
   1185     ac_prev=program_suffix ;;
   1186   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1187   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1188     program_suffix=$ac_optarg ;;
   1189 
   1190   -program-transform-name | --program-transform-name \
   1191   | --program-transform-nam | --program-transform-na \
   1192   | --program-transform-n | --program-transform- \
   1193   | --program-transform | --program-transfor \
   1194   | --program-transfo | --program-transf \
   1195   | --program-trans | --program-tran \
   1196   | --progr-tra | --program-tr | --program-t)
   1197     ac_prev=program_transform_name ;;
   1198   -program-transform-name=* | --program-transform-name=* \
   1199   | --program-transform-nam=* | --program-transform-na=* \
   1200   | --program-transform-n=* | --program-transform-=* \
   1201   | --program-transform=* | --program-transfor=* \
   1202   | --program-transfo=* | --program-transf=* \
   1203   | --program-trans=* | --program-tran=* \
   1204   | --progr-tra=* | --program-tr=* | --program-t=*)
   1205     program_transform_name=$ac_optarg ;;
   1206 
   1207   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1208     ac_prev=pdfdir ;;
   1209   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1210     pdfdir=$ac_optarg ;;
   1211 
   1212   -psdir | --psdir | --psdi | --psd | --ps)
   1213     ac_prev=psdir ;;
   1214   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1215     psdir=$ac_optarg ;;
   1216 
   1217   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1218   | -silent | --silent | --silen | --sile | --sil)
   1219     silent=yes ;;
   1220 
   1221   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1222   | --runstate | --runstat | --runsta | --runst | --runs \
   1223   | --run | --ru | --r)
   1224     ac_prev=runstatedir ;;
   1225   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1226   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1227   | --run=* | --ru=* | --r=*)
   1228     runstatedir=$ac_optarg ;;
   1229 
   1230   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1231     ac_prev=sbindir ;;
   1232   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1233   | --sbi=* | --sb=*)
   1234     sbindir=$ac_optarg ;;
   1235 
   1236   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1237   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1238   | --sharedst | --shareds | --shared | --share | --shar \
   1239   | --sha | --sh)
   1240     ac_prev=sharedstatedir ;;
   1241   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1242   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1243   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1244   | --sha=* | --sh=*)
   1245     sharedstatedir=$ac_optarg ;;
   1246 
   1247   -site | --site | --sit)
   1248     ac_prev=site ;;
   1249   -site=* | --site=* | --sit=*)
   1250     site=$ac_optarg ;;
   1251 
   1252   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1253     ac_prev=srcdir ;;
   1254   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1255     srcdir=$ac_optarg ;;
   1256 
   1257   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1258   | --syscon | --sysco | --sysc | --sys | --sy)
   1259     ac_prev=sysconfdir ;;
   1260   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1261   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1262     sysconfdir=$ac_optarg ;;
   1263 
   1264   -target | --target | --targe | --targ | --tar | --ta | --t)
   1265     ac_prev=target_alias ;;
   1266   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1267     target_alias=$ac_optarg ;;
   1268 
   1269   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1270     verbose=yes ;;
   1271 
   1272   -version | --version | --versio | --versi | --vers | -V)
   1273     ac_init_version=: ;;
   1274 
   1275   -with-* | --with-*)
   1276     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1277     # Reject names that are not valid shell variable names.
   1278     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1279       as_fn_error $? "invalid package name: $ac_useropt"
   1280     ac_useropt_orig=$ac_useropt
   1281     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1282     case $ac_user_opts in
   1283       *"
   1284 "with_$ac_useropt"
   1285 "*) ;;
   1286       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1287 	 ac_unrecognized_sep=', ';;
   1288     esac
   1289     eval with_$ac_useropt=\$ac_optarg ;;
   1290 
   1291   -without-* | --without-*)
   1292     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1293     # Reject names that are not valid shell variable names.
   1294     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1295       as_fn_error $? "invalid package name: $ac_useropt"
   1296     ac_useropt_orig=$ac_useropt
   1297     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1298     case $ac_user_opts in
   1299       *"
   1300 "with_$ac_useropt"
   1301 "*) ;;
   1302       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1303 	 ac_unrecognized_sep=', ';;
   1304     esac
   1305     eval with_$ac_useropt=no ;;
   1306 
   1307   --x)
   1308     # Obsolete; use --with-x.
   1309     with_x=yes ;;
   1310 
   1311   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1312   | --x-incl | --x-inc | --x-in | --x-i)
   1313     ac_prev=x_includes ;;
   1314   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1315   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1316     x_includes=$ac_optarg ;;
   1317 
   1318   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1319   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1320     ac_prev=x_libraries ;;
   1321   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1322   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1323     x_libraries=$ac_optarg ;;
   1324 
   1325   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1326 Try \`$0 --help' for more information"
   1327     ;;
   1328 
   1329   *=*)
   1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1331     # Reject names that are not valid shell variable names.
   1332     case $ac_envvar in #(
   1333       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1334       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1335     esac
   1336     eval $ac_envvar=\$ac_optarg
   1337     export $ac_envvar ;;
   1338 
   1339   *)
   1340     # FIXME: should be removed in autoconf 3.0.
   1341     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1342     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1343       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1344     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1345     ;;
   1346 
   1347   esac
   1348 done
   1349 
   1350 if test -n "$ac_prev"; then
   1351   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1352   as_fn_error $? "missing argument to $ac_option"
   1353 fi
   1354 
   1355 if test -n "$ac_unrecognized_opts"; then
   1356   case $enable_option_checking in
   1357     no) ;;
   1358     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1359     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1360   esac
   1361 fi
   1362 
   1363 # Check all directory arguments for consistency.
   1364 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1365 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1366 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1367 		libdir localedir mandir runstatedir
   1368 do
   1369   eval ac_val=\$$ac_var
   1370   # Remove trailing slashes.
   1371   case $ac_val in
   1372     */ )
   1373       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1374       eval $ac_var=\$ac_val;;
   1375   esac
   1376   # Be sure to have absolute directory names.
   1377   case $ac_val in
   1378     [\\/$]* | ?:[\\/]* )  continue;;
   1379     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1380   esac
   1381   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1382 done
   1383 
   1384 # There might be people who depend on the old broken behavior: `$host'
   1385 # used to hold the argument of --host etc.
   1386 # FIXME: To remove some day.
   1387 build=$build_alias
   1388 host=$host_alias
   1389 target=$target_alias
   1390 
   1391 # FIXME: To remove some day.
   1392 if test "x$host_alias" != x; then
   1393   if test "x$build_alias" = x; then
   1394     cross_compiling=maybe
   1395   elif test "x$build_alias" != "x$host_alias"; then
   1396     cross_compiling=yes
   1397   fi
   1398 fi
   1399 
   1400 ac_tool_prefix=
   1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1402 
   1403 test "$silent" = yes && exec 6>/dev/null
   1404 
   1405 
   1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1407 ac_ls_di=`ls -di .` &&
   1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1409   as_fn_error $? "working directory cannot be determined"
   1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1411   as_fn_error $? "pwd does not report name of working directory"
   1412 
   1413 
   1414 # Find the source files, if location was not specified.
   1415 if test -z "$srcdir"; then
   1416   ac_srcdir_defaulted=yes
   1417   # Try the directory containing this script, then the parent directory.
   1418   ac_confdir=`$as_dirname -- "$as_myself" ||
   1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1420 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1421 	 X"$as_myself" : 'X\(//\)$' \| \
   1422 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1423 $as_echo X"$as_myself" |
   1424     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1425 	    s//\1/
   1426 	    q
   1427 	  }
   1428 	  /^X\(\/\/\)[^/].*/{
   1429 	    s//\1/
   1430 	    q
   1431 	  }
   1432 	  /^X\(\/\/\)$/{
   1433 	    s//\1/
   1434 	    q
   1435 	  }
   1436 	  /^X\(\/\).*/{
   1437 	    s//\1/
   1438 	    q
   1439 	  }
   1440 	  s/.*/./; q'`
   1441   srcdir=$ac_confdir
   1442   if test ! -r "$srcdir/$ac_unique_file"; then
   1443     srcdir=..
   1444   fi
   1445 else
   1446   ac_srcdir_defaulted=no
   1447 fi
   1448 if test ! -r "$srcdir/$ac_unique_file"; then
   1449   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1450   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1451 fi
   1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1453 ac_abs_confdir=`(
   1454 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1455 	pwd)`
   1456 # When building in place, set srcdir=.
   1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1458   srcdir=.
   1459 fi
   1460 # Remove unnecessary trailing slashes from srcdir.
   1461 # Double slashes in file names in object file debugging info
   1462 # mess up M-x gdb in Emacs.
   1463 case $srcdir in
   1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1465 esac
   1466 for ac_var in $ac_precious_vars; do
   1467   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1468   eval ac_env_${ac_var}_value=\$${ac_var}
   1469   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1470   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1471 done
   1472 
   1473 #
   1474 # Report the --help message.
   1475 #
   1476 if test "$ac_init_help" = "long"; then
   1477   # Omit some internal or obsolete options to make the list less imposing.
   1478   # This message is too long to be a string in the A/UX 3.1 sh.
   1479   cat <<_ACEOF
   1480 \`configure' configures unbound 1.19.1 to adapt to many kinds of systems.
   1481 
   1482 Usage: $0 [OPTION]... [VAR=VALUE]...
   1483 
   1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1485 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1486 
   1487 Defaults for the options are specified in brackets.
   1488 
   1489 Configuration:
   1490   -h, --help              display this help and exit
   1491       --help=short        display options specific to this package
   1492       --help=recursive    display the short help of all the included packages
   1493   -V, --version           display version information and exit
   1494   -q, --quiet, --silent   do not print \`checking ...' messages
   1495       --cache-file=FILE   cache test results in FILE [disabled]
   1496   -C, --config-cache      alias for \`--cache-file=config.cache'
   1497   -n, --no-create         do not create output files
   1498       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1499 
   1500 Installation directories:
   1501   --prefix=PREFIX         install architecture-independent files in PREFIX
   1502                           [$ac_default_prefix]
   1503   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1504                           [PREFIX]
   1505 
   1506 By default, \`make install' will install all the files in
   1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1509 for instance \`--prefix=\$HOME'.
   1510 
   1511 For better control, use the options below.
   1512 
   1513 Fine tuning of the installation directories:
   1514   --bindir=DIR            user executables [EPREFIX/bin]
   1515   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1516   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1517   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1518   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1519   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1520   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1521   --libdir=DIR            object code libraries [EPREFIX/lib]
   1522   --includedir=DIR        C header files [PREFIX/include]
   1523   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1524   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1525   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1526   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1527   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1528   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1529   --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
   1530   --htmldir=DIR           html documentation [DOCDIR]
   1531   --dvidir=DIR            dvi documentation [DOCDIR]
   1532   --pdfdir=DIR            pdf documentation [DOCDIR]
   1533   --psdir=DIR             ps documentation [DOCDIR]
   1534 _ACEOF
   1535 
   1536   cat <<\_ACEOF
   1537 
   1538 System types:
   1539   --build=BUILD     configure for building on BUILD [guessed]
   1540   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1541 _ACEOF
   1542 fi
   1543 
   1544 if test -n "$ac_init_help"; then
   1545   case $ac_init_help in
   1546      short | recursive ) echo "Configuration of unbound 1.19.1:";;
   1547    esac
   1548   cat <<\_ACEOF
   1549 
   1550 Optional Features:
   1551   --disable-option-checking  ignore unrecognized --enable/--with options
   1552   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1553   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1554   --enable-checking       Enable warnings, asserts, makefile-dependencies
   1555   --enable-debug          same as enable-checking
   1556   --disable-flto          Disable link-time optimization (gcc specific option)
   1557   --enable-pie            Enable Position-Independent Executable (eg. to fully
   1558                           benefit from ASLR, small performance penalty)
   1559   --enable-relro-now      Enable full relocation binding at load-time (RELRO
   1560                           NOW, to protect GOT and .dtor areas)
   1561   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1562   --enable-static[=PKGS]  build static libraries [default=yes]
   1563   --enable-fast-install[=PKGS]
   1564                           optimize for fast installation [default=yes]
   1565   --disable-libtool-lock  avoid locking (might break parallel builds)
   1566   --disable-rpath         disable hardcoded rpath (default=enabled)
   1567   --disable-largefile     omit support for large files
   1568   --enable-systemd        compile with systemd support
   1569   --enable-alloc-checks   enable to memory allocation statistics, for debug
   1570                           purposes
   1571   --enable-alloc-lite     enable for lightweight alloc assertions, for debug
   1572                           purposes
   1573   --enable-alloc-nonregional
   1574                           enable nonregional allocs, slow but exposes regional
   1575                           allocations to other memory purifiers, for debug
   1576                           purposes
   1577   --disable-swig-version-check
   1578                           Disable swig version check to build python modules
   1579                           with older swig even though that is unreliable
   1580   --disable-sha1          Disable SHA1 RRSIG support, does not disable nsec3
   1581                           support
   1582   --disable-sha2          Disable SHA256 and SHA512 RRSIG support
   1583   --enable-subnet         Enable client subnet
   1584   --disable-gost          Disable GOST support
   1585   --disable-ecdsa         Disable ECDSA support
   1586   --disable-dsa           Disable DSA support
   1587   --disable-ed25519       Disable ED25519 support
   1588   --disable-ed448         Disable ED448 support
   1589   --enable-event-api      Enable (experimental) pluggable event base
   1590                           libunbound API installed to unbound-event.h
   1591   --enable-tfo-client     Enable TCP Fast Open for client mode
   1592   --enable-tfo-server     Enable TCP Fast Open for server mode
   1593   --enable-static-exe     enable to compile executables statically against
   1594                           (event) uninstalled libs, for debug purposes
   1595   --enable-fully-static   enable to compile fully static
   1596   --enable-lock-checks    enable to check lock and unlock calls, for debug
   1597                           purposes
   1598   --enable-allsymbols     export all symbols from libunbound and link binaries
   1599                           to it, smaller install size but libunbound export
   1600                           table is polluted by internal symbols
   1601   --enable-dnstap         Enable dnstap support (requires protobuf-c)
   1602   --enable-dnscrypt       Enable dnscrypt support (requires libsodium)
   1603   --enable-cachedb        enable cachedb module that can use external cache
   1604                           storage
   1605   --enable-ipsecmod       Enable ipsecmod module that facilitates
   1606                           opportunistic IPsec
   1607   --enable-ipset          enable ipset module
   1608   --disable-explicit-port-randomisation
   1609                           disable explicit source port randomisation and rely
   1610                           on the kernel to provide random source ports
   1611   --enable-linux-ip-local-port-range
   1612                           Define this to enable use of
   1613                           /proc/sys/net/ipv4/ip_local_port_range as a default
   1614                           outgoing port range. This is only for the libunbound
   1615                           on Linux and does not affect unbound resolving
   1616                           daemon itself. This may severely limit the number of
   1617                           available outgoing ports and thus decrease
   1618                           randomness. Define this only when the target system
   1619                           restricts (e.g. some of SELinux enabled
   1620                           distributions) the use of non-ephemeral ports.
   1621 
   1622 Optional Packages:
   1623   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1624   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1625   --with-conf-file=path   Pathname to the Unbound configuration file
   1626   --with-run-dir=path     set default directory to chdir to (by default dir
   1627                           part of cfg file)
   1628   --with-chroot-dir=path  set default directory to chroot to (by default same
   1629                           as run-dir)
   1630   --with-share-dir=path   set default directory with shared data (by default
   1631                           same as share/unbound)
   1632   --with-pidfile=filename set default pathname to unbound pidfile (default
   1633                           run-dir/unbound.pid)
   1634   --with-rootkey-file=filename
   1635                           set default pathname to root key file (default
   1636                           run-dir/root.key). This file is read and written.
   1637   --with-rootcert-file=filename
   1638                           set default pathname to root update certificate file
   1639                           (default run-dir/icannbundle.pem). This file need
   1640                           not exist if you are content with the builtin.
   1641   --with-username=user    set default user that unbound changes to (default
   1642                           user is unbound)
   1643   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1644                           both]
   1645   --with-aix-soname=aix|svr4|both
   1646                           shared library versioning (aka "SONAME") variant to
   1647                           provide on AIX, [default=aix].
   1648   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1649   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1650                           compiler's sysroot if not specified).
   1651   --with-pthreads         use pthreads library, or --without-pthreads to
   1652                           disable threading support.
   1653   --with-solaris-threads  use solaris native thread library.
   1654   --with-syslog-facility=LOCAL0 - LOCAL7
   1655                           set SYSLOG_FACILITY, default DAEMON
   1656   --with-dynlibmodule     build dynamic library module, or
   1657                           --without-dynlibmodule to disable it. (default=no)
   1658   --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
   1659                           (default=no)
   1660   --with-pythonmodule     build Python module, or --without-pythonmodule to
   1661                           disable script engine. (default=no)
   1662   --with-nss=path         use libnss instead of openssl, installed at path.
   1663   --with-nettle=path      use libnettle as crypto library, installed at path.
   1664   --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
   1665                           /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
   1666                           /usr or specify like /usr/include/openssl11)
   1667   --with-libbsd           Use portable libbsd functions
   1668   --with-deprecate-rsa-1024
   1669                           Deprecate RSA 1024 bit length, makes that an
   1670                           unsupported key, for use when OpenSSL FIPS refuses
   1671                           1024 bit verification
   1672   --with-libevent=pathname
   1673                           use libevent (will check /usr/local /opt/local
   1674                           /usr/lib /usr/pkg /usr/sfw /usr or you can specify
   1675                           an explicit path). Slower, but allows use of large
   1676                           outgoing port ranges.
   1677   --with-libexpat=path    specify explicit path for libexpat.
   1678   --with-libhiredis=path  specify explicit path for libhiredis.
   1679   --with-libnghttp2=path  specify explicit path for libnghttp2.
   1680   --with-dnstap-socket-path=pathname
   1681                           set default dnstap socket path
   1682   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
   1683   --with-libsodium=path   Path where libsodium is installed, for dnscrypt
   1684   --with-libmnl=path      specify explicit path for libmnl.
   1685   --with-libunbound-only  do not build daemon and tool programs
   1686 
   1687 Some influential environment variables:
   1688   CC          C compiler command
   1689   CFLAGS      C compiler flags
   1690   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1691               nonstandard directory <lib dir>
   1692   LIBS        libraries to pass to the linker, e.g. -l<library>
   1693   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1694               you have headers in a nonstandard directory <include dir>
   1695   CPP         C preprocessor
   1696   YACC        The `Yet Another Compiler Compiler' implementation to use.
   1697               Defaults to the first program found out of: `bison -y', `byacc',
   1698               `yacc'.
   1699   YFLAGS      The list of arguments that will be passed by default to $YACC.
   1700               This script will default YFLAGS to the empty string to avoid a
   1701               default value of `-d' given by some make applications.
   1702   LT_SYS_LIBRARY_PATH
   1703               User-defined run-time library search path.
   1704   PKG_CONFIG  path to pkg-config utility
   1705   PKG_CONFIG_PATH
   1706               directories to add to pkg-config's search path
   1707   PKG_CONFIG_LIBDIR
   1708               path overriding pkg-config's built-in search path
   1709   SYSTEMD_CFLAGS
   1710               C compiler flags for SYSTEMD, overriding pkg-config
   1711   SYSTEMD_LIBS
   1712               linker flags for SYSTEMD, overriding pkg-config
   1713   SYSTEMD_DAEMON_CFLAGS
   1714               C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
   1715   SYSTEMD_DAEMON_LIBS
   1716               linker flags for SYSTEMD_DAEMON, overriding pkg-config
   1717   PYTHON_VERSION
   1718               The installed Python version to use, for example '2.3'. This
   1719               string will be appended to the Python interpreter canonical
   1720               name.
   1721 
   1722 Use these variables to override the choices made by `configure' or to help
   1723 it to find libraries and programs with nonstandard names/locations.
   1724 
   1725 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
   1726 _ACEOF
   1727 ac_status=$?
   1728 fi
   1729 
   1730 if test "$ac_init_help" = "recursive"; then
   1731   # If there are subdirs, report their specific --help.
   1732   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1733     test -d "$ac_dir" ||
   1734       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1735       continue
   1736     ac_builddir=.
   1737 
   1738 case "$ac_dir" in
   1739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1740 *)
   1741   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1742   # A ".." for each directory in $ac_dir_suffix.
   1743   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1744   case $ac_top_builddir_sub in
   1745   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1746   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1747   esac ;;
   1748 esac
   1749 ac_abs_top_builddir=$ac_pwd
   1750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1751 # for backward compatibility:
   1752 ac_top_builddir=$ac_top_build_prefix
   1753 
   1754 case $srcdir in
   1755   .)  # We are building in place.
   1756     ac_srcdir=.
   1757     ac_top_srcdir=$ac_top_builddir_sub
   1758     ac_abs_top_srcdir=$ac_pwd ;;
   1759   [\\/]* | ?:[\\/]* )  # Absolute name.
   1760     ac_srcdir=$srcdir$ac_dir_suffix;
   1761     ac_top_srcdir=$srcdir
   1762     ac_abs_top_srcdir=$srcdir ;;
   1763   *) # Relative name.
   1764     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1765     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1766     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1767 esac
   1768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1769 
   1770     cd "$ac_dir" || { ac_status=$?; continue; }
   1771     # Check for guested configure.
   1772     if test -f "$ac_srcdir/configure.gnu"; then
   1773       echo &&
   1774       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1775     elif test -f "$ac_srcdir/configure"; then
   1776       echo &&
   1777       $SHELL "$ac_srcdir/configure" --help=recursive
   1778     else
   1779       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1780     fi || ac_status=$?
   1781     cd "$ac_pwd" || { ac_status=$?; break; }
   1782   done
   1783 fi
   1784 
   1785 test -n "$ac_init_help" && exit $ac_status
   1786 if $ac_init_version; then
   1787   cat <<\_ACEOF
   1788 unbound configure 1.19.1
   1789 generated by GNU Autoconf 2.69
   1790 
   1791 Copyright (C) 2012 Free Software Foundation, Inc.
   1792 This configure script is free software; the Free Software Foundation
   1793 gives unlimited permission to copy, distribute and modify it.
   1794 _ACEOF
   1795   exit
   1796 fi
   1797 
   1798 ## ------------------------ ##
   1799 ## Autoconf initialization. ##
   1800 ## ------------------------ ##
   1801 
   1802 # ac_fn_c_try_compile LINENO
   1803 # --------------------------
   1804 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1805 ac_fn_c_try_compile ()
   1806 {
   1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1808   rm -f conftest.$ac_objext
   1809   if { { ac_try="$ac_compile"
   1810 case "(($ac_try" in
   1811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1812   *) ac_try_echo=$ac_try;;
   1813 esac
   1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1815 $as_echo "$ac_try_echo"; } >&5
   1816   (eval "$ac_compile") 2>conftest.err
   1817   ac_status=$?
   1818   if test -s conftest.err; then
   1819     grep -v '^ *+' conftest.err >conftest.er1
   1820     cat conftest.er1 >&5
   1821     mv -f conftest.er1 conftest.err
   1822   fi
   1823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1824   test $ac_status = 0; } && {
   1825 	 test -z "$ac_c_werror_flag" ||
   1826 	 test ! -s conftest.err
   1827        } && test -s conftest.$ac_objext; then :
   1828   ac_retval=0
   1829 else
   1830   $as_echo "$as_me: failed program was:" >&5
   1831 sed 's/^/| /' conftest.$ac_ext >&5
   1832 
   1833 	ac_retval=1
   1834 fi
   1835   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1836   as_fn_set_status $ac_retval
   1837 
   1838 } # ac_fn_c_try_compile
   1839 
   1840 # ac_fn_c_try_cpp LINENO
   1841 # ----------------------
   1842 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1843 ac_fn_c_try_cpp ()
   1844 {
   1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1846   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1847 case "(($ac_try" in
   1848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1849   *) ac_try_echo=$ac_try;;
   1850 esac
   1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1852 $as_echo "$ac_try_echo"; } >&5
   1853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1854   ac_status=$?
   1855   if test -s conftest.err; then
   1856     grep -v '^ *+' conftest.err >conftest.er1
   1857     cat conftest.er1 >&5
   1858     mv -f conftest.er1 conftest.err
   1859   fi
   1860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1861   test $ac_status = 0; } > conftest.i && {
   1862 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1863 	 test ! -s conftest.err
   1864        }; then :
   1865   ac_retval=0
   1866 else
   1867   $as_echo "$as_me: failed program was:" >&5
   1868 sed 's/^/| /' conftest.$ac_ext >&5
   1869 
   1870     ac_retval=1
   1871 fi
   1872   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1873   as_fn_set_status $ac_retval
   1874 
   1875 } # ac_fn_c_try_cpp
   1876 
   1877 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1878 # -------------------------------------------------------
   1879 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1880 # the include files in INCLUDES and setting the cache variable VAR
   1881 # accordingly.
   1882 ac_fn_c_check_header_mongrel ()
   1883 {
   1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1885   if eval \${$3+:} false; then :
   1886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1887 $as_echo_n "checking for $2... " >&6; }
   1888 if eval \${$3+:} false; then :
   1889   $as_echo_n "(cached) " >&6
   1890 fi
   1891 eval ac_res=\$$3
   1892 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1893 $as_echo "$ac_res" >&6; }
   1894 else
   1895   # Is the header compilable?
   1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1897 $as_echo_n "checking $2 usability... " >&6; }
   1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1899 /* end confdefs.h.  */
   1900 $4
   1901 #include <$2>
   1902 _ACEOF
   1903 if ac_fn_c_try_compile "$LINENO"; then :
   1904   ac_header_compiler=yes
   1905 else
   1906   ac_header_compiler=no
   1907 fi
   1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1910 $as_echo "$ac_header_compiler" >&6; }
   1911 
   1912 # Is the header present?
   1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1914 $as_echo_n "checking $2 presence... " >&6; }
   1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1916 /* end confdefs.h.  */
   1917 #include <$2>
   1918 _ACEOF
   1919 if ac_fn_c_try_cpp "$LINENO"; then :
   1920   ac_header_preproc=yes
   1921 else
   1922   ac_header_preproc=no
   1923 fi
   1924 rm -f conftest.err conftest.i conftest.$ac_ext
   1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1926 $as_echo "$ac_header_preproc" >&6; }
   1927 
   1928 # So?  What about this header?
   1929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1930   yes:no: )
   1931     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1932 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1935     ;;
   1936   no:yes:* )
   1937     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1938 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1940 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1942 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1944 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1945     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1946 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1947 ( $as_echo "## --------------------------------------------------------------------------------------- ##
   1948 ## Report this to unbound-bugs (at] nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ##
   1949 ## --------------------------------------------------------------------------------------- ##"
   1950      ) | sed "s/^/$as_me: WARNING:     /" >&2
   1951     ;;
   1952 esac
   1953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1954 $as_echo_n "checking for $2... " >&6; }
   1955 if eval \${$3+:} false; then :
   1956   $as_echo_n "(cached) " >&6
   1957 else
   1958   eval "$3=\$ac_header_compiler"
   1959 fi
   1960 eval ac_res=\$$3
   1961 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1962 $as_echo "$ac_res" >&6; }
   1963 fi
   1964   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1965 
   1966 } # ac_fn_c_check_header_mongrel
   1967 
   1968 # ac_fn_c_try_run LINENO
   1969 # ----------------------
   1970 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1971 # that executables *can* be run.
   1972 ac_fn_c_try_run ()
   1973 {
   1974   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1975   if { { ac_try="$ac_link"
   1976 case "(($ac_try" in
   1977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1978   *) ac_try_echo=$ac_try;;
   1979 esac
   1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1981 $as_echo "$ac_try_echo"; } >&5
   1982   (eval "$ac_link") 2>&5
   1983   ac_status=$?
   1984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1985   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1986   { { case "(($ac_try" in
   1987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1988   *) ac_try_echo=$ac_try;;
   1989 esac
   1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1991 $as_echo "$ac_try_echo"; } >&5
   1992   (eval "$ac_try") 2>&5
   1993   ac_status=$?
   1994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1995   test $ac_status = 0; }; }; then :
   1996   ac_retval=0
   1997 else
   1998   $as_echo "$as_me: program exited with status $ac_status" >&5
   1999        $as_echo "$as_me: failed program was:" >&5
   2000 sed 's/^/| /' conftest.$ac_ext >&5
   2001 
   2002        ac_retval=$ac_status
   2003 fi
   2004   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2005   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2006   as_fn_set_status $ac_retval
   2007 
   2008 } # ac_fn_c_try_run
   2009 
   2010 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   2011 # -------------------------------------------------------
   2012 # Tests whether HEADER exists and can be compiled using the include files in
   2013 # INCLUDES, setting the cache variable VAR accordingly.
   2014 ac_fn_c_check_header_compile ()
   2015 {
   2016   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2018 $as_echo_n "checking for $2... " >&6; }
   2019 if eval \${$3+:} false; then :
   2020   $as_echo_n "(cached) " >&6
   2021 else
   2022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2023 /* end confdefs.h.  */
   2024 $4
   2025 #include <$2>
   2026 _ACEOF
   2027 if ac_fn_c_try_compile "$LINENO"; then :
   2028   eval "$3=yes"
   2029 else
   2030   eval "$3=no"
   2031 fi
   2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2033 fi
   2034 eval ac_res=\$$3
   2035 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2036 $as_echo "$ac_res" >&6; }
   2037   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2038 
   2039 } # ac_fn_c_check_header_compile
   2040 
   2041 # ac_fn_c_try_link LINENO
   2042 # -----------------------
   2043 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2044 ac_fn_c_try_link ()
   2045 {
   2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2047   rm -f conftest.$ac_objext conftest$ac_exeext
   2048   if { { ac_try="$ac_link"
   2049 case "(($ac_try" in
   2050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2051   *) ac_try_echo=$ac_try;;
   2052 esac
   2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2054 $as_echo "$ac_try_echo"; } >&5
   2055   (eval "$ac_link") 2>conftest.err
   2056   ac_status=$?
   2057   if test -s conftest.err; then
   2058     grep -v '^ *+' conftest.err >conftest.er1
   2059     cat conftest.er1 >&5
   2060     mv -f conftest.er1 conftest.err
   2061   fi
   2062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2063   test $ac_status = 0; } && {
   2064 	 test -z "$ac_c_werror_flag" ||
   2065 	 test ! -s conftest.err
   2066        } && test -s conftest$ac_exeext && {
   2067 	 test "$cross_compiling" = yes ||
   2068 	 test -x conftest$ac_exeext
   2069        }; then :
   2070   ac_retval=0
   2071 else
   2072   $as_echo "$as_me: failed program was:" >&5
   2073 sed 's/^/| /' conftest.$ac_ext >&5
   2074 
   2075 	ac_retval=1
   2076 fi
   2077   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2078   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2079   # interfere with the next link command; also delete a directory that is
   2080   # left behind by Apple's compiler.  We do this before executing the actions.
   2081   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2082   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2083   as_fn_set_status $ac_retval
   2084 
   2085 } # ac_fn_c_try_link
   2086 
   2087 # ac_fn_c_check_func LINENO FUNC VAR
   2088 # ----------------------------------
   2089 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2090 ac_fn_c_check_func ()
   2091 {
   2092   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2094 $as_echo_n "checking for $2... " >&6; }
   2095 if eval \${$3+:} false; then :
   2096   $as_echo_n "(cached) " >&6
   2097 else
   2098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2099 /* end confdefs.h.  */
   2100 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2102 #define $2 innocuous_$2
   2103 
   2104 /* System header to define __stub macros and hopefully few prototypes,
   2105     which can conflict with char $2 (); below.
   2106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2107     <limits.h> exists even on freestanding compilers.  */
   2108 
   2109 #ifdef __STDC__
   2110 # include <limits.h>
   2111 #else
   2112 # include <assert.h>
   2113 #endif
   2114 
   2115 #undef $2
   2116 
   2117 /* Override any GCC internal prototype to avoid an error.
   2118    Use char because int might match the return type of a GCC
   2119    builtin and then its argument prototype would still apply.  */
   2120 #ifdef __cplusplus
   2121 extern "C"
   2122 #endif
   2123 char $2 ();
   2124 /* The GNU C library defines this for functions which it implements
   2125     to always fail with ENOSYS.  Some functions are actually named
   2126     something starting with __ and the normal name is an alias.  */
   2127 #if defined __stub_$2 || defined __stub___$2
   2128 choke me
   2129 #endif
   2130 
   2131 int
   2132 main ()
   2133 {
   2134 return $2 ();
   2135   ;
   2136   return 0;
   2137 }
   2138 _ACEOF
   2139 if ac_fn_c_try_link "$LINENO"; then :
   2140   eval "$3=yes"
   2141 else
   2142   eval "$3=no"
   2143 fi
   2144 rm -f core conftest.err conftest.$ac_objext \
   2145     conftest$ac_exeext conftest.$ac_ext
   2146 fi
   2147 eval ac_res=\$$3
   2148 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2149 $as_echo "$ac_res" >&6; }
   2150   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2151 
   2152 } # ac_fn_c_check_func
   2153 
   2154 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2155 # -------------------------------------------
   2156 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2157 # variable VAR accordingly.
   2158 ac_fn_c_check_type ()
   2159 {
   2160   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2162 $as_echo_n "checking for $2... " >&6; }
   2163 if eval \${$3+:} false; then :
   2164   $as_echo_n "(cached) " >&6
   2165 else
   2166   eval "$3=no"
   2167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2168 /* end confdefs.h.  */
   2169 $4
   2170 int
   2171 main ()
   2172 {
   2173 if (sizeof ($2))
   2174 	 return 0;
   2175   ;
   2176   return 0;
   2177 }
   2178 _ACEOF
   2179 if ac_fn_c_try_compile "$LINENO"; then :
   2180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2181 /* end confdefs.h.  */
   2182 $4
   2183 int
   2184 main ()
   2185 {
   2186 if (sizeof (($2)))
   2187 	    return 0;
   2188   ;
   2189   return 0;
   2190 }
   2191 _ACEOF
   2192 if ac_fn_c_try_compile "$LINENO"; then :
   2193 
   2194 else
   2195   eval "$3=yes"
   2196 fi
   2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2198 fi
   2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2200 fi
   2201 eval ac_res=\$$3
   2202 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2203 $as_echo "$ac_res" >&6; }
   2204   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2205 
   2206 } # ac_fn_c_check_type
   2207 
   2208 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2209 # --------------------------------------------
   2210 # Tries to find the compile-time value of EXPR in a program that includes
   2211 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2212 # computed
   2213 ac_fn_c_compute_int ()
   2214 {
   2215   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2216   if test "$cross_compiling" = yes; then
   2217     # Depending upon the size, compute the lo and hi bounds.
   2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2219 /* end confdefs.h.  */
   2220 $4
   2221 int
   2222 main ()
   2223 {
   2224 static int test_array [1 - 2 * !(($2) >= 0)];
   2225 test_array [0] = 0;
   2226 return test_array [0];
   2227 
   2228   ;
   2229   return 0;
   2230 }
   2231 _ACEOF
   2232 if ac_fn_c_try_compile "$LINENO"; then :
   2233   ac_lo=0 ac_mid=0
   2234   while :; do
   2235     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2236 /* end confdefs.h.  */
   2237 $4
   2238 int
   2239 main ()
   2240 {
   2241 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2242 test_array [0] = 0;
   2243 return test_array [0];
   2244 
   2245   ;
   2246   return 0;
   2247 }
   2248 _ACEOF
   2249 if ac_fn_c_try_compile "$LINENO"; then :
   2250   ac_hi=$ac_mid; break
   2251 else
   2252   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2253 			if test $ac_lo -le $ac_mid; then
   2254 			  ac_lo= ac_hi=
   2255 			  break
   2256 			fi
   2257 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2258 fi
   2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2260   done
   2261 else
   2262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2263 /* end confdefs.h.  */
   2264 $4
   2265 int
   2266 main ()
   2267 {
   2268 static int test_array [1 - 2 * !(($2) < 0)];
   2269 test_array [0] = 0;
   2270 return test_array [0];
   2271 
   2272   ;
   2273   return 0;
   2274 }
   2275 _ACEOF
   2276 if ac_fn_c_try_compile "$LINENO"; then :
   2277   ac_hi=-1 ac_mid=-1
   2278   while :; do
   2279     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2280 /* end confdefs.h.  */
   2281 $4
   2282 int
   2283 main ()
   2284 {
   2285 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2286 test_array [0] = 0;
   2287 return test_array [0];
   2288 
   2289   ;
   2290   return 0;
   2291 }
   2292 _ACEOF
   2293 if ac_fn_c_try_compile "$LINENO"; then :
   2294   ac_lo=$ac_mid; break
   2295 else
   2296   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2297 			if test $ac_mid -le $ac_hi; then
   2298 			  ac_lo= ac_hi=
   2299 			  break
   2300 			fi
   2301 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2302 fi
   2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2304   done
   2305 else
   2306   ac_lo= ac_hi=
   2307 fi
   2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2309 fi
   2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2311 # Binary search between lo and hi bounds.
   2312 while test "x$ac_lo" != "x$ac_hi"; do
   2313   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2315 /* end confdefs.h.  */
   2316 $4
   2317 int
   2318 main ()
   2319 {
   2320 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2321 test_array [0] = 0;
   2322 return test_array [0];
   2323 
   2324   ;
   2325   return 0;
   2326 }
   2327 _ACEOF
   2328 if ac_fn_c_try_compile "$LINENO"; then :
   2329   ac_hi=$ac_mid
   2330 else
   2331   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2332 fi
   2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2334 done
   2335 case $ac_lo in #((
   2336 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2337 '') ac_retval=1 ;;
   2338 esac
   2339   else
   2340     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2341 /* end confdefs.h.  */
   2342 $4
   2343 static long int longval () { return $2; }
   2344 static unsigned long int ulongval () { return $2; }
   2345 #include <stdio.h>
   2346 #include <stdlib.h>
   2347 int
   2348 main ()
   2349 {
   2350 
   2351   FILE *f = fopen ("conftest.val", "w");
   2352   if (! f)
   2353     return 1;
   2354   if (($2) < 0)
   2355     {
   2356       long int i = longval ();
   2357       if (i != ($2))
   2358 	return 1;
   2359       fprintf (f, "%ld", i);
   2360     }
   2361   else
   2362     {
   2363       unsigned long int i = ulongval ();
   2364       if (i != ($2))
   2365 	return 1;
   2366       fprintf (f, "%lu", i);
   2367     }
   2368   /* Do not output a trailing newline, as this causes \r\n confusion
   2369      on some platforms.  */
   2370   return ferror (f) || fclose (f) != 0;
   2371 
   2372   ;
   2373   return 0;
   2374 }
   2375 _ACEOF
   2376 if ac_fn_c_try_run "$LINENO"; then :
   2377   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2378 else
   2379   ac_retval=1
   2380 fi
   2381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2382   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2383 rm -f conftest.val
   2384 
   2385   fi
   2386   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2387   as_fn_set_status $ac_retval
   2388 
   2389 } # ac_fn_c_compute_int
   2390 
   2391 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   2392 # ---------------------------------------------
   2393 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   2394 # accordingly.
   2395 ac_fn_c_check_decl ()
   2396 {
   2397   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2398   as_decl_name=`echo $2|sed 's/ *(.*//'`
   2399   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   2400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   2401 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   2402 if eval \${$3+:} false; then :
   2403   $as_echo_n "(cached) " >&6
   2404 else
   2405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2406 /* end confdefs.h.  */
   2407 $4
   2408 int
   2409 main ()
   2410 {
   2411 #ifndef $as_decl_name
   2412 #ifdef __cplusplus
   2413   (void) $as_decl_use;
   2414 #else
   2415   (void) $as_decl_name;
   2416 #endif
   2417 #endif
   2418 
   2419   ;
   2420   return 0;
   2421 }
   2422 _ACEOF
   2423 if ac_fn_c_try_compile "$LINENO"; then :
   2424   eval "$3=yes"
   2425 else
   2426   eval "$3=no"
   2427 fi
   2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2429 fi
   2430 eval ac_res=\$$3
   2431 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2432 $as_echo "$ac_res" >&6; }
   2433   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2434 
   2435 } # ac_fn_c_check_decl
   2436 
   2437 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2438 # ----------------------------------------------------
   2439 # Tries to find if the field MEMBER exists in type AGGR, after including
   2440 # INCLUDES, setting cache variable VAR accordingly.
   2441 ac_fn_c_check_member ()
   2442 {
   2443   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2445 $as_echo_n "checking for $2.$3... " >&6; }
   2446 if eval \${$4+:} false; then :
   2447   $as_echo_n "(cached) " >&6
   2448 else
   2449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2450 /* end confdefs.h.  */
   2451 $5
   2452 int
   2453 main ()
   2454 {
   2455 static $2 ac_aggr;
   2456 if (ac_aggr.$3)
   2457 return 0;
   2458   ;
   2459   return 0;
   2460 }
   2461 _ACEOF
   2462 if ac_fn_c_try_compile "$LINENO"; then :
   2463   eval "$4=yes"
   2464 else
   2465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2466 /* end confdefs.h.  */
   2467 $5
   2468 int
   2469 main ()
   2470 {
   2471 static $2 ac_aggr;
   2472 if (sizeof ac_aggr.$3)
   2473 return 0;
   2474   ;
   2475   return 0;
   2476 }
   2477 _ACEOF
   2478 if ac_fn_c_try_compile "$LINENO"; then :
   2479   eval "$4=yes"
   2480 else
   2481   eval "$4=no"
   2482 fi
   2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2484 fi
   2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2486 fi
   2487 eval ac_res=\$$4
   2488 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2489 $as_echo "$ac_res" >&6; }
   2490   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2491 
   2492 } # ac_fn_c_check_member
   2493 cat >config.log <<_ACEOF
   2494 This file contains any messages produced by compilers while
   2495 running configure, to aid debugging if configure makes a mistake.
   2496 
   2497 It was created by unbound $as_me 1.19.1, which was
   2498 generated by GNU Autoconf 2.69.  Invocation command line was
   2499 
   2500   $ $0 $@
   2501 
   2502 _ACEOF
   2503 exec 5>>config.log
   2504 {
   2505 cat <<_ASUNAME
   2506 ## --------- ##
   2507 ## Platform. ##
   2508 ## --------- ##
   2509 
   2510 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2511 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2512 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2513 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2514 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2515 
   2516 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2517 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2518 
   2519 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2520 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2521 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2522 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2523 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2524 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2525 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2526 
   2527 _ASUNAME
   2528 
   2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2530 for as_dir in $PATH
   2531 do
   2532   IFS=$as_save_IFS
   2533   test -z "$as_dir" && as_dir=.
   2534     $as_echo "PATH: $as_dir"
   2535   done
   2536 IFS=$as_save_IFS
   2537 
   2538 } >&5
   2539 
   2540 cat >&5 <<_ACEOF
   2541 
   2542 
   2543 ## ----------- ##
   2544 ## Core tests. ##
   2545 ## ----------- ##
   2546 
   2547 _ACEOF
   2548 
   2549 
   2550 # Keep a trace of the command line.
   2551 # Strip out --no-create and --no-recursion so they do not pile up.
   2552 # Strip out --silent because we don't want to record it for future runs.
   2553 # Also quote any args containing shell meta-characters.
   2554 # Make two passes to allow for proper duplicate-argument suppression.
   2555 ac_configure_args=
   2556 ac_configure_args0=
   2557 ac_configure_args1=
   2558 ac_must_keep_next=false
   2559 for ac_pass in 1 2
   2560 do
   2561   for ac_arg
   2562   do
   2563     case $ac_arg in
   2564     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2565     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2566     | -silent | --silent | --silen | --sile | --sil)
   2567       continue ;;
   2568     *\'*)
   2569       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2570     esac
   2571     case $ac_pass in
   2572     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2573     2)
   2574       as_fn_append ac_configure_args1 " '$ac_arg'"
   2575       if test $ac_must_keep_next = true; then
   2576 	ac_must_keep_next=false # Got value, back to normal.
   2577       else
   2578 	case $ac_arg in
   2579 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2580 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2581 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2582 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2583 	    case "$ac_configure_args0 " in
   2584 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2585 	    esac
   2586 	    ;;
   2587 	  -* ) ac_must_keep_next=true ;;
   2588 	esac
   2589       fi
   2590       as_fn_append ac_configure_args " '$ac_arg'"
   2591       ;;
   2592     esac
   2593   done
   2594 done
   2595 { ac_configure_args0=; unset ac_configure_args0;}
   2596 { ac_configure_args1=; unset ac_configure_args1;}
   2597 
   2598 # When interrupted or exit'd, cleanup temporary files, and complete
   2599 # config.log.  We remove comments because anyway the quotes in there
   2600 # would cause problems or look ugly.
   2601 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2602 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2603 trap 'exit_status=$?
   2604   # Save into config.log some information that might help in debugging.
   2605   {
   2606     echo
   2607 
   2608     $as_echo "## ---------------- ##
   2609 ## Cache variables. ##
   2610 ## ---------------- ##"
   2611     echo
   2612     # The following way of writing the cache mishandles newlines in values,
   2613 (
   2614   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2615     eval ac_val=\$$ac_var
   2616     case $ac_val in #(
   2617     *${as_nl}*)
   2618       case $ac_var in #(
   2619       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2620 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2621       esac
   2622       case $ac_var in #(
   2623       _ | IFS | as_nl) ;; #(
   2624       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2625       *) { eval $ac_var=; unset $ac_var;} ;;
   2626       esac ;;
   2627     esac
   2628   done
   2629   (set) 2>&1 |
   2630     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2631     *${as_nl}ac_space=\ *)
   2632       sed -n \
   2633 	"s/'\''/'\''\\\\'\'''\''/g;
   2634 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2635       ;; #(
   2636     *)
   2637       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2638       ;;
   2639     esac |
   2640     sort
   2641 )
   2642     echo
   2643 
   2644     $as_echo "## ----------------- ##
   2645 ## Output variables. ##
   2646 ## ----------------- ##"
   2647     echo
   2648     for ac_var in $ac_subst_vars
   2649     do
   2650       eval ac_val=\$$ac_var
   2651       case $ac_val in
   2652       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2653       esac
   2654       $as_echo "$ac_var='\''$ac_val'\''"
   2655     done | sort
   2656     echo
   2657 
   2658     if test -n "$ac_subst_files"; then
   2659       $as_echo "## ------------------- ##
   2660 ## File substitutions. ##
   2661 ## ------------------- ##"
   2662       echo
   2663       for ac_var in $ac_subst_files
   2664       do
   2665 	eval ac_val=\$$ac_var
   2666 	case $ac_val in
   2667 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2668 	esac
   2669 	$as_echo "$ac_var='\''$ac_val'\''"
   2670       done | sort
   2671       echo
   2672     fi
   2673 
   2674     if test -s confdefs.h; then
   2675       $as_echo "## ----------- ##
   2676 ## confdefs.h. ##
   2677 ## ----------- ##"
   2678       echo
   2679       cat confdefs.h
   2680       echo
   2681     fi
   2682     test "$ac_signal" != 0 &&
   2683       $as_echo "$as_me: caught signal $ac_signal"
   2684     $as_echo "$as_me: exit $exit_status"
   2685   } >&5
   2686   rm -f core *.core core.conftest.* &&
   2687     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2688     exit $exit_status
   2689 ' 0
   2690 for ac_signal in 1 2 13 15; do
   2691   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2692 done
   2693 ac_signal=0
   2694 
   2695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2696 rm -f -r conftest* confdefs.h
   2697 
   2698 $as_echo "/* confdefs.h */" > confdefs.h
   2699 
   2700 # Predefined preprocessor variables.
   2701 
   2702 cat >>confdefs.h <<_ACEOF
   2703 #define PACKAGE_NAME "$PACKAGE_NAME"
   2704 _ACEOF
   2705 
   2706 cat >>confdefs.h <<_ACEOF
   2707 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2708 _ACEOF
   2709 
   2710 cat >>confdefs.h <<_ACEOF
   2711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2712 _ACEOF
   2713 
   2714 cat >>confdefs.h <<_ACEOF
   2715 #define PACKAGE_STRING "$PACKAGE_STRING"
   2716 _ACEOF
   2717 
   2718 cat >>confdefs.h <<_ACEOF
   2719 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2720 _ACEOF
   2721 
   2722 cat >>confdefs.h <<_ACEOF
   2723 #define PACKAGE_URL "$PACKAGE_URL"
   2724 _ACEOF
   2725 
   2726 
   2727 # Let the site file select an alternate cache file if it wants to.
   2728 # Prefer an explicitly selected file to automatically selected ones.
   2729 ac_site_file1=NONE
   2730 ac_site_file2=NONE
   2731 if test -n "$CONFIG_SITE"; then
   2732   # We do not want a PATH search for config.site.
   2733   case $CONFIG_SITE in #((
   2734     -*)  ac_site_file1=./$CONFIG_SITE;;
   2735     */*) ac_site_file1=$CONFIG_SITE;;
   2736     *)   ac_site_file1=./$CONFIG_SITE;;
   2737   esac
   2738 elif test "x$prefix" != xNONE; then
   2739   ac_site_file1=$prefix/share/config.site
   2740   ac_site_file2=$prefix/etc/config.site
   2741 else
   2742   ac_site_file1=$ac_default_prefix/share/config.site
   2743   ac_site_file2=$ac_default_prefix/etc/config.site
   2744 fi
   2745 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2746 do
   2747   test "x$ac_site_file" = xNONE && continue
   2748   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2749     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2750 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2751     sed 's/^/| /' "$ac_site_file" >&5
   2752     . "$ac_site_file" \
   2753       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2755 as_fn_error $? "failed to load site script $ac_site_file
   2756 See \`config.log' for more details" "$LINENO" 5; }
   2757   fi
   2758 done
   2759 
   2760 if test -r "$cache_file"; then
   2761   # Some versions of bash will fail to source /dev/null (special files
   2762   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2763   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2764     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2765 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2766     case $cache_file in
   2767       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2768       *)                      . "./$cache_file";;
   2769     esac
   2770   fi
   2771 else
   2772   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2773 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2774   >$cache_file
   2775 fi
   2776 
   2777 # Check that the precious variables saved in the cache have kept the same
   2778 # value.
   2779 ac_cache_corrupted=false
   2780 for ac_var in $ac_precious_vars; do
   2781   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2782   eval ac_new_set=\$ac_env_${ac_var}_set
   2783   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2784   eval ac_new_val=\$ac_env_${ac_var}_value
   2785   case $ac_old_set,$ac_new_set in
   2786     set,)
   2787       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2788 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2789       ac_cache_corrupted=: ;;
   2790     ,set)
   2791       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2792 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2793       ac_cache_corrupted=: ;;
   2794     ,);;
   2795     *)
   2796       if test "x$ac_old_val" != "x$ac_new_val"; then
   2797 	# differences in whitespace do not lead to failure.
   2798 	ac_old_val_w=`echo x $ac_old_val`
   2799 	ac_new_val_w=`echo x $ac_new_val`
   2800 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2801 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2802 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2803 	  ac_cache_corrupted=:
   2804 	else
   2805 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2806 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2807 	  eval $ac_var=\$ac_old_val
   2808 	fi
   2809 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2810 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2811 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2812 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2813       fi;;
   2814   esac
   2815   # Pass precious variables to config.status.
   2816   if test "$ac_new_set" = set; then
   2817     case $ac_new_val in
   2818     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2819     *) ac_arg=$ac_var=$ac_new_val ;;
   2820     esac
   2821     case " $ac_configure_args " in
   2822       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2823       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2824     esac
   2825   fi
   2826 done
   2827 if $ac_cache_corrupted; then
   2828   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2830   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2831 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2832   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2833 fi
   2834 ## -------------------- ##
   2835 ## Main body of script. ##
   2836 ## -------------------- ##
   2837 
   2838 ac_ext=c
   2839 ac_cpp='$CPP $CPPFLAGS'
   2840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2843 
   2844 
   2845 UNBOUND_VERSION_MAJOR=1
   2846 
   2847 UNBOUND_VERSION_MINOR=19
   2848 
   2849 UNBOUND_VERSION_MICRO=1
   2850 
   2851 
   2852 LIBUNBOUND_CURRENT=9
   2853 LIBUNBOUND_REVISION=24
   2854 LIBUNBOUND_AGE=1
   2855 # 1.0.0 had 0:12:0
   2856 # 1.0.1 had 0:13:0
   2857 # 1.0.2 had 0:14:0
   2858 # 1.1.0 had 0:15:0
   2859 # 1.1.1 had 0:16:0
   2860 # 1.2.0 had 0:17:0
   2861 # 1.2.1 had 0:18:0
   2862 # 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
   2863 # 1.3.1 had 1:1:0
   2864 # 1.3.2 had 1:2:0
   2865 # 1.3.3 had 1:3:0
   2866 # 1.3.4 had 1:4:0
   2867 # 1.4.0-snapshots had 1:5:0
   2868 # 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
   2869 # 1.4.1 had 2:1:0
   2870 # 1.4.2 had 2:2:0
   2871 # 1.4.3 had 2:3:0
   2872 # 1.4.4 had 2:4:0
   2873 # 1.4.5 had 2:5:0
   2874 # 1.4.6 had 2:6:0
   2875 # 1.4.7 had 2:7:0
   2876 # 1.4.8 had 2:8:0
   2877 # 1.4.9 had 2:9:0
   2878 # 1.4.10 had 2:10:0
   2879 # 1.4.11 had 2:11:0
   2880 # 1.4.12 had 2:12:0
   2881 # 1.4.13 had 2:13:0
   2882 # and 1.4.13p1 and 1.4.13.p2
   2883 # 1.4.14 had 2:14:0
   2884 # 1.4.15 had 3:0:1 # adds ub_version()
   2885 # 1.4.16 had 3:1:1
   2886 # 1.4.17 had 3:2:1
   2887 # 1.4.18 had 3:3:1
   2888 # 1.4.19 had 3:4:1
   2889 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
   2890 # 1.4.21 had 4:1:2
   2891 # 1.4.22 had 4:1:2
   2892 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
   2893 # 1.5.1 had 5:3:3
   2894 # 1.5.2 had 5:5:3
   2895 # 1.5.3 had 5:6:3
   2896 # 1.5.4 had 5:7:3
   2897 # 1.5.5 had 5:8:3
   2898 # 1.5.6 had 5:9:3
   2899 # 1.5.7 had 5:10:3
   2900 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
   2901 # 1.5.9 had 6:1:4
   2902 # 1.5.10 had 6:2:4
   2903 # 1.6.0 had 6:3:4
   2904 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
   2905 # 1.6.2 had 7:1:5
   2906 # 1.6.3 had 7:2:5
   2907 # 1.6.4 had 7:3:5
   2908 # 1.6.5 had 7:4:5
   2909 # 1.6.6 had 7:5:5
   2910 # 1.6.7 had 7:6:5
   2911 # 1.6.8 had 7:7:5
   2912 # 1.7.0 had 7:8:5
   2913 # 1.7.1 had 7:9:5
   2914 # 1.7.2 had 7:10:5
   2915 # 1.7.3 had 7:11:5
   2916 # 1.8.0 had 8:0:0 # changes the event callback function signature
   2917 # 1.8.1 had 8:1:0
   2918 # 1.8.2 had 8:2:0
   2919 # 1.8.3 had 8:3:0
   2920 # 1.9.0 had 9:0:1 # add ub_ctx_set_tls
   2921 # 1.9.1 had 9:1:1
   2922 # 1.9.2 had 9:2:1
   2923 # 1.9.3 had 9:3:1
   2924 # 1.9.4 had 9:4:1
   2925 # 1.9.5 had 9:5:1
   2926 # 1.9.6 had 9:6:1
   2927 # 1.10.0 had 9:7:1
   2928 # 1.10.1 had 9:8:1
   2929 # 1.11.0 had 9:9:1
   2930 # 1.12.0 had 9:10:1
   2931 # 1.13.0 had 9:11:1
   2932 # 1.13.1 had 9:12:1
   2933 # 1.13.2 had 9:13:1
   2934 # 1.14.0 had 9:14:1
   2935 # 1.15.0 had 9:15:1
   2936 # 1.16.0 had 9:16:1
   2937 # 1.16.1 had 9:17:1
   2938 # 1.16.2 had 9:18:1
   2939 # 1.16.3 had 9:19:1
   2940 # 1.17.0 had 9:20:1
   2941 # 1.17.1 had 9:21:1
   2942 # 1.18.0 had 9:22:1
   2943 # 1.19.0 had 9:23:1
   2944 # 1.19.1 had 9:24:1
   2945 
   2946 #   Current  -- the number of the binary API that we're implementing
   2947 #   Revision -- which iteration of the implementation of the binary
   2948 #               API are we supplying?
   2949 #   Age      -- How many previous binary API versions do we also
   2950 #               support?
   2951 #
   2952 # If we release a new version that does not change the binary API,
   2953 # increment Revision.
   2954 #
   2955 # If we release a new version that changes the binary API, but does
   2956 # not break programs compiled against the old binary API, increment
   2957 # Current and Age.  Set Revision to 0, since this is the first
   2958 # implementation of the new API.
   2959 #
   2960 # Otherwise, we're changing the binary API and breaking backward
   2961 # compatibility with old binaries.  Increment Current.  Set Age to 0,
   2962 # since we're backward compatible with no previous APIs.  Set Revision
   2963 # to 0 too.
   2964 
   2965 
   2966 
   2967 
   2968 
   2969 cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
   2970 
   2971 cat >>confdefs.h <<_ACEOF
   2972 #define CONFCMDLINE "$cmdln"
   2973 _ACEOF
   2974 
   2975 
   2976 CFLAGS="$CFLAGS"
   2977 ac_ext=c
   2978 ac_cpp='$CPP $CPPFLAGS'
   2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2982 if test -n "$ac_tool_prefix"; then
   2983   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2984 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2986 $as_echo_n "checking for $ac_word... " >&6; }
   2987 if ${ac_cv_prog_CC+:} false; then :
   2988   $as_echo_n "(cached) " >&6
   2989 else
   2990   if test -n "$CC"; then
   2991   ac_cv_prog_CC="$CC" # Let the user override the test.
   2992 else
   2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2994 for as_dir in $PATH
   2995 do
   2996   IFS=$as_save_IFS
   2997   test -z "$as_dir" && as_dir=.
   2998     for ac_exec_ext in '' $ac_executable_extensions; do
   2999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3000     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3002     break 2
   3003   fi
   3004 done
   3005   done
   3006 IFS=$as_save_IFS
   3007 
   3008 fi
   3009 fi
   3010 CC=$ac_cv_prog_CC
   3011 if test -n "$CC"; then
   3012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3013 $as_echo "$CC" >&6; }
   3014 else
   3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3016 $as_echo "no" >&6; }
   3017 fi
   3018 
   3019 
   3020 fi
   3021 if test -z "$ac_cv_prog_CC"; then
   3022   ac_ct_CC=$CC
   3023   # Extract the first word of "gcc", so it can be a program name with args.
   3024 set dummy gcc; ac_word=$2
   3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3026 $as_echo_n "checking for $ac_word... " >&6; }
   3027 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3028   $as_echo_n "(cached) " >&6
   3029 else
   3030   if test -n "$ac_ct_CC"; then
   3031   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3032 else
   3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3034 for as_dir in $PATH
   3035 do
   3036   IFS=$as_save_IFS
   3037   test -z "$as_dir" && as_dir=.
   3038     for ac_exec_ext in '' $ac_executable_extensions; do
   3039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3040     ac_cv_prog_ac_ct_CC="gcc"
   3041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3042     break 2
   3043   fi
   3044 done
   3045   done
   3046 IFS=$as_save_IFS
   3047 
   3048 fi
   3049 fi
   3050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3051 if test -n "$ac_ct_CC"; then
   3052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3053 $as_echo "$ac_ct_CC" >&6; }
   3054 else
   3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3056 $as_echo "no" >&6; }
   3057 fi
   3058 
   3059   if test "x$ac_ct_CC" = x; then
   3060     CC=""
   3061   else
   3062     case $cross_compiling:$ac_tool_warned in
   3063 yes:)
   3064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3066 ac_tool_warned=yes ;;
   3067 esac
   3068     CC=$ac_ct_CC
   3069   fi
   3070 else
   3071   CC="$ac_cv_prog_CC"
   3072 fi
   3073 
   3074 if test -z "$CC"; then
   3075           if test -n "$ac_tool_prefix"; then
   3076     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3077 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3079 $as_echo_n "checking for $ac_word... " >&6; }
   3080 if ${ac_cv_prog_CC+:} false; then :
   3081   $as_echo_n "(cached) " >&6
   3082 else
   3083   if test -n "$CC"; then
   3084   ac_cv_prog_CC="$CC" # Let the user override the test.
   3085 else
   3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3087 for as_dir in $PATH
   3088 do
   3089   IFS=$as_save_IFS
   3090   test -z "$as_dir" && as_dir=.
   3091     for ac_exec_ext in '' $ac_executable_extensions; do
   3092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3093     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3095     break 2
   3096   fi
   3097 done
   3098   done
   3099 IFS=$as_save_IFS
   3100 
   3101 fi
   3102 fi
   3103 CC=$ac_cv_prog_CC
   3104 if test -n "$CC"; then
   3105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3106 $as_echo "$CC" >&6; }
   3107 else
   3108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3109 $as_echo "no" >&6; }
   3110 fi
   3111 
   3112 
   3113   fi
   3114 fi
   3115 if test -z "$CC"; then
   3116   # Extract the first word of "cc", so it can be a program name with args.
   3117 set dummy cc; ac_word=$2
   3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3119 $as_echo_n "checking for $ac_word... " >&6; }
   3120 if ${ac_cv_prog_CC+:} false; then :
   3121   $as_echo_n "(cached) " >&6
   3122 else
   3123   if test -n "$CC"; then
   3124   ac_cv_prog_CC="$CC" # Let the user override the test.
   3125 else
   3126   ac_prog_rejected=no
   3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3128 for as_dir in $PATH
   3129 do
   3130   IFS=$as_save_IFS
   3131   test -z "$as_dir" && as_dir=.
   3132     for ac_exec_ext in '' $ac_executable_extensions; do
   3133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3134     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3135        ac_prog_rejected=yes
   3136        continue
   3137      fi
   3138     ac_cv_prog_CC="cc"
   3139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3140     break 2
   3141   fi
   3142 done
   3143   done
   3144 IFS=$as_save_IFS
   3145 
   3146 if test $ac_prog_rejected = yes; then
   3147   # We found a bogon in the path, so make sure we never use it.
   3148   set dummy $ac_cv_prog_CC
   3149   shift
   3150   if test $# != 0; then
   3151     # We chose a different compiler from the bogus one.
   3152     # However, it has the same basename, so the bogon will be chosen
   3153     # first if we set CC to just the basename; use the full file name.
   3154     shift
   3155     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3156   fi
   3157 fi
   3158 fi
   3159 fi
   3160 CC=$ac_cv_prog_CC
   3161 if test -n "$CC"; then
   3162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3163 $as_echo "$CC" >&6; }
   3164 else
   3165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3166 $as_echo "no" >&6; }
   3167 fi
   3168 
   3169 
   3170 fi
   3171 if test -z "$CC"; then
   3172   if test -n "$ac_tool_prefix"; then
   3173   for ac_prog in cl.exe
   3174   do
   3175     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3178 $as_echo_n "checking for $ac_word... " >&6; }
   3179 if ${ac_cv_prog_CC+:} false; then :
   3180   $as_echo_n "(cached) " >&6
   3181 else
   3182   if test -n "$CC"; then
   3183   ac_cv_prog_CC="$CC" # Let the user override the test.
   3184 else
   3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3186 for as_dir in $PATH
   3187 do
   3188   IFS=$as_save_IFS
   3189   test -z "$as_dir" && as_dir=.
   3190     for ac_exec_ext in '' $ac_executable_extensions; do
   3191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3192     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3194     break 2
   3195   fi
   3196 done
   3197   done
   3198 IFS=$as_save_IFS
   3199 
   3200 fi
   3201 fi
   3202 CC=$ac_cv_prog_CC
   3203 if test -n "$CC"; then
   3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3205 $as_echo "$CC" >&6; }
   3206 else
   3207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3208 $as_echo "no" >&6; }
   3209 fi
   3210 
   3211 
   3212     test -n "$CC" && break
   3213   done
   3214 fi
   3215 if test -z "$CC"; then
   3216   ac_ct_CC=$CC
   3217   for ac_prog in cl.exe
   3218 do
   3219   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3220 set dummy $ac_prog; ac_word=$2
   3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3222 $as_echo_n "checking for $ac_word... " >&6; }
   3223 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3224   $as_echo_n "(cached) " >&6
   3225 else
   3226   if test -n "$ac_ct_CC"; then
   3227   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3228 else
   3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3230 for as_dir in $PATH
   3231 do
   3232   IFS=$as_save_IFS
   3233   test -z "$as_dir" && as_dir=.
   3234     for ac_exec_ext in '' $ac_executable_extensions; do
   3235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3236     ac_cv_prog_ac_ct_CC="$ac_prog"
   3237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3238     break 2
   3239   fi
   3240 done
   3241   done
   3242 IFS=$as_save_IFS
   3243 
   3244 fi
   3245 fi
   3246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3247 if test -n "$ac_ct_CC"; then
   3248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3249 $as_echo "$ac_ct_CC" >&6; }
   3250 else
   3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3252 $as_echo "no" >&6; }
   3253 fi
   3254 
   3255 
   3256   test -n "$ac_ct_CC" && break
   3257 done
   3258 
   3259   if test "x$ac_ct_CC" = x; then
   3260     CC=""
   3261   else
   3262     case $cross_compiling:$ac_tool_warned in
   3263 yes:)
   3264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3266 ac_tool_warned=yes ;;
   3267 esac
   3268     CC=$ac_ct_CC
   3269   fi
   3270 fi
   3271 
   3272 fi
   3273 
   3274 
   3275 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3277 as_fn_error $? "no acceptable C compiler found in \$PATH
   3278 See \`config.log' for more details" "$LINENO" 5; }
   3279 
   3280 # Provide some information about the compiler.
   3281 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3282 set X $ac_compile
   3283 ac_compiler=$2
   3284 for ac_option in --version -v -V -qversion; do
   3285   { { ac_try="$ac_compiler $ac_option >&5"
   3286 case "(($ac_try" in
   3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3288   *) ac_try_echo=$ac_try;;
   3289 esac
   3290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3291 $as_echo "$ac_try_echo"; } >&5
   3292   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3293   ac_status=$?
   3294   if test -s conftest.err; then
   3295     sed '10a\
   3296 ... rest of stderr output deleted ...
   3297          10q' conftest.err >conftest.er1
   3298     cat conftest.er1 >&5
   3299   fi
   3300   rm -f conftest.er1 conftest.err
   3301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3302   test $ac_status = 0; }
   3303 done
   3304 
   3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3306 /* end confdefs.h.  */
   3307 
   3308 int
   3309 main ()
   3310 {
   3311 
   3312   ;
   3313   return 0;
   3314 }
   3315 _ACEOF
   3316 ac_clean_files_save=$ac_clean_files
   3317 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3318 # Try to create an executable without -o first, disregard a.out.
   3319 # It will help us diagnose broken compilers, and finding out an intuition
   3320 # of exeext.
   3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3322 $as_echo_n "checking whether the C compiler works... " >&6; }
   3323 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3324 
   3325 # The possible output files:
   3326 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3327 
   3328 ac_rmfiles=
   3329 for ac_file in $ac_files
   3330 do
   3331   case $ac_file in
   3332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3333     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3334   esac
   3335 done
   3336 rm -f $ac_rmfiles
   3337 
   3338 if { { ac_try="$ac_link_default"
   3339 case "(($ac_try" in
   3340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3341   *) ac_try_echo=$ac_try;;
   3342 esac
   3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3344 $as_echo "$ac_try_echo"; } >&5
   3345   (eval "$ac_link_default") 2>&5
   3346   ac_status=$?
   3347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3348   test $ac_status = 0; }; then :
   3349   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3350 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3351 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3352 # so that the user can short-circuit this test for compilers unknown to
   3353 # Autoconf.
   3354 for ac_file in $ac_files ''
   3355 do
   3356   test -f "$ac_file" || continue
   3357   case $ac_file in
   3358     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3359 	;;
   3360     [ab].out )
   3361 	# We found the default executable, but exeext='' is most
   3362 	# certainly right.
   3363 	break;;
   3364     *.* )
   3365 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3366 	then :; else
   3367 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3368 	fi
   3369 	# We set ac_cv_exeext here because the later test for it is not
   3370 	# safe: cross compilers may not add the suffix if given an `-o'
   3371 	# argument, so we may need to know it at that point already.
   3372 	# Even if this section looks crufty: it has the advantage of
   3373 	# actually working.
   3374 	break;;
   3375     * )
   3376 	break;;
   3377   esac
   3378 done
   3379 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3380 
   3381 else
   3382   ac_file=''
   3383 fi
   3384 if test -z "$ac_file"; then :
   3385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3386 $as_echo "no" >&6; }
   3387 $as_echo "$as_me: failed program was:" >&5
   3388 sed 's/^/| /' conftest.$ac_ext >&5
   3389 
   3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3392 as_fn_error 77 "C compiler cannot create executables
   3393 See \`config.log' for more details" "$LINENO" 5; }
   3394 else
   3395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3396 $as_echo "yes" >&6; }
   3397 fi
   3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3399 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3401 $as_echo "$ac_file" >&6; }
   3402 ac_exeext=$ac_cv_exeext
   3403 
   3404 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3405 ac_clean_files=$ac_clean_files_save
   3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3407 $as_echo_n "checking for suffix of executables... " >&6; }
   3408 if { { ac_try="$ac_link"
   3409 case "(($ac_try" in
   3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3411   *) ac_try_echo=$ac_try;;
   3412 esac
   3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3414 $as_echo "$ac_try_echo"; } >&5
   3415   (eval "$ac_link") 2>&5
   3416   ac_status=$?
   3417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3418   test $ac_status = 0; }; then :
   3419   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3420 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3421 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3422 # `rm'.
   3423 for ac_file in conftest.exe conftest conftest.*; do
   3424   test -f "$ac_file" || continue
   3425   case $ac_file in
   3426     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3427     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3428 	  break;;
   3429     * ) break;;
   3430   esac
   3431 done
   3432 else
   3433   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3435 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3436 See \`config.log' for more details" "$LINENO" 5; }
   3437 fi
   3438 rm -f conftest conftest$ac_cv_exeext
   3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3440 $as_echo "$ac_cv_exeext" >&6; }
   3441 
   3442 rm -f conftest.$ac_ext
   3443 EXEEXT=$ac_cv_exeext
   3444 ac_exeext=$EXEEXT
   3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3446 /* end confdefs.h.  */
   3447 #include <stdio.h>
   3448 int
   3449 main ()
   3450 {
   3451 FILE *f = fopen ("conftest.out", "w");
   3452  return ferror (f) || fclose (f) != 0;
   3453 
   3454   ;
   3455   return 0;
   3456 }
   3457 _ACEOF
   3458 ac_clean_files="$ac_clean_files conftest.out"
   3459 # Check that the compiler produces executables we can run.  If not, either
   3460 # the compiler is broken, or we cross compile.
   3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3462 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3463 if test "$cross_compiling" != yes; then
   3464   { { ac_try="$ac_link"
   3465 case "(($ac_try" in
   3466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3467   *) ac_try_echo=$ac_try;;
   3468 esac
   3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3470 $as_echo "$ac_try_echo"; } >&5
   3471   (eval "$ac_link") 2>&5
   3472   ac_status=$?
   3473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3474   test $ac_status = 0; }
   3475   if { ac_try='./conftest$ac_cv_exeext'
   3476   { { case "(($ac_try" in
   3477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3478   *) ac_try_echo=$ac_try;;
   3479 esac
   3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3481 $as_echo "$ac_try_echo"; } >&5
   3482   (eval "$ac_try") 2>&5
   3483   ac_status=$?
   3484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3485   test $ac_status = 0; }; }; then
   3486     cross_compiling=no
   3487   else
   3488     if test "$cross_compiling" = maybe; then
   3489 	cross_compiling=yes
   3490     else
   3491 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3493 as_fn_error $? "cannot run C compiled programs.
   3494 If you meant to cross compile, use \`--host'.
   3495 See \`config.log' for more details" "$LINENO" 5; }
   3496     fi
   3497   fi
   3498 fi
   3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3500 $as_echo "$cross_compiling" >&6; }
   3501 
   3502 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3503 ac_clean_files=$ac_clean_files_save
   3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3505 $as_echo_n "checking for suffix of object files... " >&6; }
   3506 if ${ac_cv_objext+:} false; then :
   3507   $as_echo_n "(cached) " >&6
   3508 else
   3509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3510 /* end confdefs.h.  */
   3511 
   3512 int
   3513 main ()
   3514 {
   3515 
   3516   ;
   3517   return 0;
   3518 }
   3519 _ACEOF
   3520 rm -f conftest.o conftest.obj
   3521 if { { ac_try="$ac_compile"
   3522 case "(($ac_try" in
   3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3524   *) ac_try_echo=$ac_try;;
   3525 esac
   3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3527 $as_echo "$ac_try_echo"; } >&5
   3528   (eval "$ac_compile") 2>&5
   3529   ac_status=$?
   3530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3531   test $ac_status = 0; }; then :
   3532   for ac_file in conftest.o conftest.obj conftest.*; do
   3533   test -f "$ac_file" || continue;
   3534   case $ac_file in
   3535     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3536     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3537        break;;
   3538   esac
   3539 done
   3540 else
   3541   $as_echo "$as_me: failed program was:" >&5
   3542 sed 's/^/| /' conftest.$ac_ext >&5
   3543 
   3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3546 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3547 See \`config.log' for more details" "$LINENO" 5; }
   3548 fi
   3549 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3550 fi
   3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3552 $as_echo "$ac_cv_objext" >&6; }
   3553 OBJEXT=$ac_cv_objext
   3554 ac_objext=$OBJEXT
   3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3556 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3557 if ${ac_cv_c_compiler_gnu+:} false; then :
   3558   $as_echo_n "(cached) " >&6
   3559 else
   3560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3561 /* end confdefs.h.  */
   3562 
   3563 int
   3564 main ()
   3565 {
   3566 #ifndef __GNUC__
   3567        choke me
   3568 #endif
   3569 
   3570   ;
   3571   return 0;
   3572 }
   3573 _ACEOF
   3574 if ac_fn_c_try_compile "$LINENO"; then :
   3575   ac_compiler_gnu=yes
   3576 else
   3577   ac_compiler_gnu=no
   3578 fi
   3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3581 
   3582 fi
   3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3584 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3585 if test $ac_compiler_gnu = yes; then
   3586   GCC=yes
   3587 else
   3588   GCC=
   3589 fi
   3590 ac_test_CFLAGS=${CFLAGS+set}
   3591 ac_save_CFLAGS=$CFLAGS
   3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3593 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3594 if ${ac_cv_prog_cc_g+:} false; then :
   3595   $as_echo_n "(cached) " >&6
   3596 else
   3597   ac_save_c_werror_flag=$ac_c_werror_flag
   3598    ac_c_werror_flag=yes
   3599    ac_cv_prog_cc_g=no
   3600    CFLAGS="-g"
   3601    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3602 /* end confdefs.h.  */
   3603 
   3604 int
   3605 main ()
   3606 {
   3607 
   3608   ;
   3609   return 0;
   3610 }
   3611 _ACEOF
   3612 if ac_fn_c_try_compile "$LINENO"; then :
   3613   ac_cv_prog_cc_g=yes
   3614 else
   3615   CFLAGS=""
   3616       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3617 /* end confdefs.h.  */
   3618 
   3619 int
   3620 main ()
   3621 {
   3622 
   3623   ;
   3624   return 0;
   3625 }
   3626 _ACEOF
   3627 if ac_fn_c_try_compile "$LINENO"; then :
   3628 
   3629 else
   3630   ac_c_werror_flag=$ac_save_c_werror_flag
   3631 	 CFLAGS="-g"
   3632 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3633 /* end confdefs.h.  */
   3634 
   3635 int
   3636 main ()
   3637 {
   3638 
   3639   ;
   3640   return 0;
   3641 }
   3642 _ACEOF
   3643 if ac_fn_c_try_compile "$LINENO"; then :
   3644   ac_cv_prog_cc_g=yes
   3645 fi
   3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3647 fi
   3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3649 fi
   3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3651    ac_c_werror_flag=$ac_save_c_werror_flag
   3652 fi
   3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3654 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3655 if test "$ac_test_CFLAGS" = set; then
   3656   CFLAGS=$ac_save_CFLAGS
   3657 elif test $ac_cv_prog_cc_g = yes; then
   3658   if test "$GCC" = yes; then
   3659     CFLAGS="-g -O2"
   3660   else
   3661     CFLAGS="-g"
   3662   fi
   3663 else
   3664   if test "$GCC" = yes; then
   3665     CFLAGS="-O2"
   3666   else
   3667     CFLAGS=
   3668   fi
   3669 fi
   3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3671 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3672 if ${ac_cv_prog_cc_c89+:} false; then :
   3673   $as_echo_n "(cached) " >&6
   3674 else
   3675   ac_cv_prog_cc_c89=no
   3676 ac_save_CC=$CC
   3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3678 /* end confdefs.h.  */
   3679 #include <stdarg.h>
   3680 #include <stdio.h>
   3681 struct stat;
   3682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3683 struct buf { int x; };
   3684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3685 static char *e (p, i)
   3686      char **p;
   3687      int i;
   3688 {
   3689   return p[i];
   3690 }
   3691 static char *f (char * (*g) (char **, int), char **p, ...)
   3692 {
   3693   char *s;
   3694   va_list v;
   3695   va_start (v,p);
   3696   s = g (p, va_arg (v,int));
   3697   va_end (v);
   3698   return s;
   3699 }
   3700 
   3701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3702    function prototypes and stuff, but not '\xHH' hex character constants.
   3703    These don't provoke an error unfortunately, instead are silently treated
   3704    as 'x'.  The following induces an error, until -std is added to get
   3705    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3706    array size at least.  It's necessary to write '\x00'==0 to get something
   3707    that's true only with -std.  */
   3708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3709 
   3710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3711    inside strings and character constants.  */
   3712 #define FOO(x) 'x'
   3713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3714 
   3715 int test (int i, double x);
   3716 struct s1 {int (*f) (int a);};
   3717 struct s2 {int (*f) (double a);};
   3718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3719 int argc;
   3720 char **argv;
   3721 int
   3722 main ()
   3723 {
   3724 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3725   ;
   3726   return 0;
   3727 }
   3728 _ACEOF
   3729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3730 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3731 do
   3732   CC="$ac_save_CC $ac_arg"
   3733   if ac_fn_c_try_compile "$LINENO"; then :
   3734   ac_cv_prog_cc_c89=$ac_arg
   3735 fi
   3736 rm -f core conftest.err conftest.$ac_objext
   3737   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3738 done
   3739 rm -f conftest.$ac_ext
   3740 CC=$ac_save_CC
   3741 
   3742 fi
   3743 # AC_CACHE_VAL
   3744 case "x$ac_cv_prog_cc_c89" in
   3745   x)
   3746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3747 $as_echo "none needed" >&6; } ;;
   3748   xno)
   3749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3750 $as_echo "unsupported" >&6; } ;;
   3751   *)
   3752     CC="$CC $ac_cv_prog_cc_c89"
   3753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3755 esac
   3756 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3757 
   3758 fi
   3759 
   3760 ac_ext=c
   3761 ac_cpp='$CPP $CPPFLAGS'
   3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3765 
   3766 
   3767 ac_ext=c
   3768 ac_cpp='$CPP $CPPFLAGS'
   3769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3773 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3774 # On Suns, sometimes $CPP names a directory.
   3775 if test -n "$CPP" && test -d "$CPP"; then
   3776   CPP=
   3777 fi
   3778 if test -z "$CPP"; then
   3779   if ${ac_cv_prog_CPP+:} false; then :
   3780   $as_echo_n "(cached) " >&6
   3781 else
   3782       # Double quotes because CPP needs to be expanded
   3783     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3784     do
   3785       ac_preproc_ok=false
   3786 for ac_c_preproc_warn_flag in '' yes
   3787 do
   3788   # Use a header file that comes with gcc, so configuring glibc
   3789   # with a fresh cross-compiler works.
   3790   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3791   # <limits.h> exists even on freestanding compilers.
   3792   # On the NeXT, cc -E runs the code through the compiler's parser,
   3793   # not just through cpp. "Syntax error" is here to catch this case.
   3794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3795 /* end confdefs.h.  */
   3796 #ifdef __STDC__
   3797 # include <limits.h>
   3798 #else
   3799 # include <assert.h>
   3800 #endif
   3801 		     Syntax error
   3802 _ACEOF
   3803 if ac_fn_c_try_cpp "$LINENO"; then :
   3804 
   3805 else
   3806   # Broken: fails on valid input.
   3807 continue
   3808 fi
   3809 rm -f conftest.err conftest.i conftest.$ac_ext
   3810 
   3811   # OK, works on sane cases.  Now check whether nonexistent headers
   3812   # can be detected and how.
   3813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3814 /* end confdefs.h.  */
   3815 #include <ac_nonexistent.h>
   3816 _ACEOF
   3817 if ac_fn_c_try_cpp "$LINENO"; then :
   3818   # Broken: success on invalid input.
   3819 continue
   3820 else
   3821   # Passes both tests.
   3822 ac_preproc_ok=:
   3823 break
   3824 fi
   3825 rm -f conftest.err conftest.i conftest.$ac_ext
   3826 
   3827 done
   3828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3829 rm -f conftest.i conftest.err conftest.$ac_ext
   3830 if $ac_preproc_ok; then :
   3831   break
   3832 fi
   3833 
   3834     done
   3835     ac_cv_prog_CPP=$CPP
   3836 
   3837 fi
   3838   CPP=$ac_cv_prog_CPP
   3839 else
   3840   ac_cv_prog_CPP=$CPP
   3841 fi
   3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3843 $as_echo "$CPP" >&6; }
   3844 ac_preproc_ok=false
   3845 for ac_c_preproc_warn_flag in '' yes
   3846 do
   3847   # Use a header file that comes with gcc, so configuring glibc
   3848   # with a fresh cross-compiler works.
   3849   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3850   # <limits.h> exists even on freestanding compilers.
   3851   # On the NeXT, cc -E runs the code through the compiler's parser,
   3852   # not just through cpp. "Syntax error" is here to catch this case.
   3853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3854 /* end confdefs.h.  */
   3855 #ifdef __STDC__
   3856 # include <limits.h>
   3857 #else
   3858 # include <assert.h>
   3859 #endif
   3860 		     Syntax error
   3861 _ACEOF
   3862 if ac_fn_c_try_cpp "$LINENO"; then :
   3863 
   3864 else
   3865   # Broken: fails on valid input.
   3866 continue
   3867 fi
   3868 rm -f conftest.err conftest.i conftest.$ac_ext
   3869 
   3870   # OK, works on sane cases.  Now check whether nonexistent headers
   3871   # can be detected and how.
   3872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3873 /* end confdefs.h.  */
   3874 #include <ac_nonexistent.h>
   3875 _ACEOF
   3876 if ac_fn_c_try_cpp "$LINENO"; then :
   3877   # Broken: success on invalid input.
   3878 continue
   3879 else
   3880   # Passes both tests.
   3881 ac_preproc_ok=:
   3882 break
   3883 fi
   3884 rm -f conftest.err conftest.i conftest.$ac_ext
   3885 
   3886 done
   3887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3888 rm -f conftest.i conftest.err conftest.$ac_ext
   3889 if $ac_preproc_ok; then :
   3890 
   3891 else
   3892   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3894 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   3895 See \`config.log' for more details" "$LINENO" 5; }
   3896 fi
   3897 
   3898 ac_ext=c
   3899 ac_cpp='$CPP $CPPFLAGS'
   3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3903 
   3904 
   3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3906 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3907 if ${ac_cv_path_GREP+:} false; then :
   3908   $as_echo_n "(cached) " >&6
   3909 else
   3910   if test -z "$GREP"; then
   3911   ac_path_GREP_found=false
   3912   # Loop through the user's path and test for each of PROGNAME-LIST
   3913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3914 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3915 do
   3916   IFS=$as_save_IFS
   3917   test -z "$as_dir" && as_dir=.
   3918     for ac_prog in grep ggrep; do
   3919     for ac_exec_ext in '' $ac_executable_extensions; do
   3920       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3921       as_fn_executable_p "$ac_path_GREP" || continue
   3922 # Check for GNU ac_path_GREP and select it if it is found.
   3923   # Check for GNU $ac_path_GREP
   3924 case `"$ac_path_GREP" --version 2>&1` in
   3925 *GNU*)
   3926   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3927 *)
   3928   ac_count=0
   3929   $as_echo_n 0123456789 >"conftest.in"
   3930   while :
   3931   do
   3932     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3933     mv "conftest.tmp" "conftest.in"
   3934     cp "conftest.in" "conftest.nl"
   3935     $as_echo 'GREP' >> "conftest.nl"
   3936     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3937     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3938     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3939     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3940       # Best one so far, save it but keep looking for a better one
   3941       ac_cv_path_GREP="$ac_path_GREP"
   3942       ac_path_GREP_max=$ac_count
   3943     fi
   3944     # 10*(2^10) chars as input seems more than enough
   3945     test $ac_count -gt 10 && break
   3946   done
   3947   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3948 esac
   3949 
   3950       $ac_path_GREP_found && break 3
   3951     done
   3952   done
   3953   done
   3954 IFS=$as_save_IFS
   3955   if test -z "$ac_cv_path_GREP"; then
   3956     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3957   fi
   3958 else
   3959   ac_cv_path_GREP=$GREP
   3960 fi
   3961 
   3962 fi
   3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3964 $as_echo "$ac_cv_path_GREP" >&6; }
   3965  GREP="$ac_cv_path_GREP"
   3966 
   3967 
   3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3969 $as_echo_n "checking for egrep... " >&6; }
   3970 if ${ac_cv_path_EGREP+:} false; then :
   3971   $as_echo_n "(cached) " >&6
   3972 else
   3973   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3974    then ac_cv_path_EGREP="$GREP -E"
   3975    else
   3976      if test -z "$EGREP"; then
   3977   ac_path_EGREP_found=false
   3978   # Loop through the user's path and test for each of PROGNAME-LIST
   3979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3980 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3981 do
   3982   IFS=$as_save_IFS
   3983   test -z "$as_dir" && as_dir=.
   3984     for ac_prog in egrep; do
   3985     for ac_exec_ext in '' $ac_executable_extensions; do
   3986       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3987       as_fn_executable_p "$ac_path_EGREP" || continue
   3988 # Check for GNU ac_path_EGREP and select it if it is found.
   3989   # Check for GNU $ac_path_EGREP
   3990 case `"$ac_path_EGREP" --version 2>&1` in
   3991 *GNU*)
   3992   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3993 *)
   3994   ac_count=0
   3995   $as_echo_n 0123456789 >"conftest.in"
   3996   while :
   3997   do
   3998     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3999     mv "conftest.tmp" "conftest.in"
   4000     cp "conftest.in" "conftest.nl"
   4001     $as_echo 'EGREP' >> "conftest.nl"
   4002     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4003     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4004     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4005     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4006       # Best one so far, save it but keep looking for a better one
   4007       ac_cv_path_EGREP="$ac_path_EGREP"
   4008       ac_path_EGREP_max=$ac_count
   4009     fi
   4010     # 10*(2^10) chars as input seems more than enough
   4011     test $ac_count -gt 10 && break
   4012   done
   4013   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4014 esac
   4015 
   4016       $ac_path_EGREP_found && break 3
   4017     done
   4018   done
   4019   done
   4020 IFS=$as_save_IFS
   4021   if test -z "$ac_cv_path_EGREP"; then
   4022     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4023   fi
   4024 else
   4025   ac_cv_path_EGREP=$EGREP
   4026 fi
   4027 
   4028    fi
   4029 fi
   4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4031 $as_echo "$ac_cv_path_EGREP" >&6; }
   4032  EGREP="$ac_cv_path_EGREP"
   4033 
   4034 
   4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4036 $as_echo_n "checking for ANSI C header files... " >&6; }
   4037 if ${ac_cv_header_stdc+:} false; then :
   4038   $as_echo_n "(cached) " >&6
   4039 else
   4040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4041 /* end confdefs.h.  */
   4042 #include <stdlib.h>
   4043 #include <stdarg.h>
   4044 #include <string.h>
   4045 #include <float.h>
   4046 
   4047 int
   4048 main ()
   4049 {
   4050 
   4051   ;
   4052   return 0;
   4053 }
   4054 _ACEOF
   4055 if ac_fn_c_try_compile "$LINENO"; then :
   4056   ac_cv_header_stdc=yes
   4057 else
   4058   ac_cv_header_stdc=no
   4059 fi
   4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4061 
   4062 if test $ac_cv_header_stdc = yes; then
   4063   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4065 /* end confdefs.h.  */
   4066 #include <string.h>
   4067 
   4068 _ACEOF
   4069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4070   $EGREP "memchr" >/dev/null 2>&1; then :
   4071 
   4072 else
   4073   ac_cv_header_stdc=no
   4074 fi
   4075 rm -f conftest*
   4076 
   4077 fi
   4078 
   4079 if test $ac_cv_header_stdc = yes; then
   4080   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4082 /* end confdefs.h.  */
   4083 #include <stdlib.h>
   4084 
   4085 _ACEOF
   4086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4087   $EGREP "free" >/dev/null 2>&1; then :
   4088 
   4089 else
   4090   ac_cv_header_stdc=no
   4091 fi
   4092 rm -f conftest*
   4093 
   4094 fi
   4095 
   4096 if test $ac_cv_header_stdc = yes; then
   4097   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4098   if test "$cross_compiling" = yes; then :
   4099   :
   4100 else
   4101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4102 /* end confdefs.h.  */
   4103 #include <ctype.h>
   4104 #include <stdlib.h>
   4105 #if ((' ' & 0x0FF) == 0x020)
   4106 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4107 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4108 #else
   4109 # define ISLOWER(c) \
   4110 		   (('a' <= (c) && (c) <= 'i') \
   4111 		     || ('j' <= (c) && (c) <= 'r') \
   4112 		     || ('s' <= (c) && (c) <= 'z'))
   4113 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4114 #endif
   4115 
   4116 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4117 int
   4118 main ()
   4119 {
   4120   int i;
   4121   for (i = 0; i < 256; i++)
   4122     if (XOR (islower (i), ISLOWER (i))
   4123 	|| toupper (i) != TOUPPER (i))
   4124       return 2;
   4125   return 0;
   4126 }
   4127 _ACEOF
   4128 if ac_fn_c_try_run "$LINENO"; then :
   4129 
   4130 else
   4131   ac_cv_header_stdc=no
   4132 fi
   4133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4134   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4135 fi
   4136 
   4137 fi
   4138 fi
   4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4140 $as_echo "$ac_cv_header_stdc" >&6; }
   4141 if test $ac_cv_header_stdc = yes; then
   4142 
   4143 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4144 
   4145 fi
   4146 
   4147 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4148 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4149 		  inttypes.h stdint.h unistd.h
   4150 do :
   4151   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4152 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4153 "
   4154 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4155   cat >>confdefs.h <<_ACEOF
   4156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4157 _ACEOF
   4158 
   4159 fi
   4160 
   4161 done
   4162 
   4163 
   4164 
   4165   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   4166 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   4167   MINIX=yes
   4168 else
   4169   MINIX=
   4170 fi
   4171 
   4172 
   4173   if test "$MINIX" = yes; then
   4174 
   4175 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   4176 
   4177 
   4178 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   4179 
   4180 
   4181 $as_echo "#define _MINIX 1" >>confdefs.h
   4182 
   4183   fi
   4184 
   4185 
   4186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   4187 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4188 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   4189   $as_echo_n "(cached) " >&6
   4190 else
   4191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4192 /* end confdefs.h.  */
   4193 
   4194 #         define __EXTENSIONS__ 1
   4195           $ac_includes_default
   4196 int
   4197 main ()
   4198 {
   4199 
   4200   ;
   4201   return 0;
   4202 }
   4203 _ACEOF
   4204 if ac_fn_c_try_compile "$LINENO"; then :
   4205   ac_cv_safe_to_define___extensions__=yes
   4206 else
   4207   ac_cv_safe_to_define___extensions__=no
   4208 fi
   4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4210 fi
   4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4212 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   4213   test $ac_cv_safe_to_define___extensions__ = yes &&
   4214     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   4215 
   4216   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   4217 
   4218   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   4219 
   4220   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4221 
   4222   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   4223 
   4224 
   4225 if test "$ac_cv_header_minix_config_h" = "yes"; then
   4226 
   4227 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
   4228 
   4229 fi
   4230 
   4231 case "$prefix" in
   4232         NONE)
   4233 		prefix="/usr/local"
   4234         ;;
   4235 esac
   4236 case "$exec_prefix" in
   4237         NONE)
   4238 		exec_prefix="$prefix"
   4239         ;;
   4240 esac
   4241 
   4242 # are we on MinGW?
   4243 if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes"
   4244 else
   4245 	if echo $host | grep mingw >/dev/null; then on_mingw="yes"
   4246 	else on_mingw="no"; fi
   4247 fi
   4248 
   4249 #
   4250 # Determine configuration file
   4251 # the eval is to evaluate shell expansion twice
   4252 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
   4253 
   4254 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
   4255 
   4256 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
   4257 
   4258 if test $on_mingw = "no"; then
   4259   ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
   4260 else
   4261   ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
   4262 fi
   4263 
   4264 # Check whether --with-conf_file was given.
   4265 if test "${with_conf_file+set}" = set; then :
   4266   withval=$with_conf_file; ub_conf_file="$withval"
   4267 fi
   4268 
   4269 
   4270 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
   4271 
   4272 
   4273 cat >>confdefs.h <<_ACEOF
   4274 #define CONFIGFILE "$hdr_config"
   4275 _ACEOF
   4276 
   4277 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
   4278 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   4279 	 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
   4280 	 X"$ub_conf_file" : 'X\(//\)$' \| \
   4281 	 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
   4282 $as_echo X"$ub_conf_file" |
   4283     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   4284 	    s//\1/
   4285 	    q
   4286 	  }
   4287 	  /^X\(\/\/\)[^/].*/{
   4288 	    s//\1/
   4289 	    q
   4290 	  }
   4291 	  /^X\(\/\/\)$/{
   4292 	    s//\1/
   4293 	    q
   4294 	  }
   4295 	  /^X\(\/\).*/{
   4296 	    s//\1/
   4297 	    q
   4298 	  }
   4299 	  s/.*/./; q'`
   4300 
   4301 
   4302 # Determine run, chroot directory and pidfile locations
   4303 
   4304 # Check whether --with-run-dir was given.
   4305 if test "${with_run_dir+set}" = set; then :
   4306   withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
   4307 else
   4308   if test $on_mingw = no; then
   4309     UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
   4310 else
   4311     UNBOUND_RUN_DIR=""
   4312 fi
   4313 
   4314 fi
   4315 
   4316 
   4317 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
   4318 
   4319 
   4320 cat >>confdefs.h <<_ACEOF
   4321 #define RUN_DIR "$hdr_run"
   4322 _ACEOF
   4323 
   4324 
   4325 
   4326 # Check whether --with-chroot-dir was given.
   4327 if test "${with_chroot_dir+set}" = set; then :
   4328   withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
   4329 else
   4330   if test $on_mingw = no; then
   4331     UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
   4332 else
   4333     UNBOUND_CHROOT_DIR=""
   4334 fi
   4335 
   4336 fi
   4337 
   4338 
   4339 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
   4340 
   4341 
   4342 cat >>confdefs.h <<_ACEOF
   4343 #define CHROOT_DIR "$hdr_chroot"
   4344 _ACEOF
   4345 
   4346 
   4347 
   4348 # Check whether --with-share-dir was given.
   4349 if test "${with_share_dir+set}" = set; then :
   4350   withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
   4351 else
   4352   UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
   4353 fi
   4354 
   4355 
   4356 
   4357 cat >>confdefs.h <<_ACEOF
   4358 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
   4359 _ACEOF
   4360 
   4361 
   4362 
   4363 # Check whether --with-pidfile was given.
   4364 if test "${with_pidfile+set}" = set; then :
   4365   withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
   4366 else
   4367   if test $on_mingw = no; then
   4368     UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
   4369 else
   4370     UNBOUND_PIDFILE=""
   4371 fi
   4372 
   4373 fi
   4374 
   4375 
   4376 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
   4377 
   4378 
   4379 cat >>confdefs.h <<_ACEOF
   4380 #define PIDFILE "$hdr_pid"
   4381 _ACEOF
   4382 
   4383 
   4384 
   4385 # Check whether --with-rootkey-file was given.
   4386 if test "${with_rootkey_file+set}" = set; then :
   4387   withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
   4388 else
   4389   if test $on_mingw = no; then
   4390     UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
   4391 else
   4392     UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
   4393 fi
   4394 
   4395 fi
   4396 
   4397 
   4398 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
   4399 
   4400 
   4401 cat >>confdefs.h <<_ACEOF
   4402 #define ROOT_ANCHOR_FILE "$hdr_rkey"
   4403 _ACEOF
   4404 
   4405 
   4406 
   4407 # Check whether --with-rootcert-file was given.
   4408 if test "${with_rootcert_file+set}" = set; then :
   4409   withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
   4410 else
   4411   if test $on_mingw = no; then
   4412     UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
   4413 else
   4414     UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
   4415 fi
   4416 
   4417 fi
   4418 
   4419 
   4420 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
   4421 
   4422 
   4423 cat >>confdefs.h <<_ACEOF
   4424 #define ROOT_CERT_FILE "$hdr_rpem"
   4425 _ACEOF
   4426 
   4427 
   4428 
   4429 # Check whether --with-username was given.
   4430 if test "${with_username+set}" = set; then :
   4431   withval=$with_username; UNBOUND_USERNAME="$withval"
   4432 else
   4433   UNBOUND_USERNAME="unbound"
   4434 fi
   4435 
   4436 
   4437 
   4438 cat >>confdefs.h <<_ACEOF
   4439 #define UB_USERNAME "$UNBOUND_USERNAME"
   4440 _ACEOF
   4441 
   4442 
   4443 
   4444 $as_echo "#define WINVER 0x0502" >>confdefs.h
   4445 
   4446 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/' `
   4447 
   4448 
   4449 cat >>confdefs.h <<_ACEOF
   4450 #define RSRC_PACKAGE_VERSION $wnvs
   4451 _ACEOF
   4452 
   4453 
   4454 # Checks for typedefs, structures, and compiler characteristics.
   4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   4456 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   4457 if ${ac_cv_c_const+:} false; then :
   4458   $as_echo_n "(cached) " >&6
   4459 else
   4460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4461 /* end confdefs.h.  */
   4462 
   4463 int
   4464 main ()
   4465 {
   4466 
   4467 #ifndef __cplusplus
   4468   /* Ultrix mips cc rejects this sort of thing.  */
   4469   typedef int charset[2];
   4470   const charset cs = { 0, 0 };
   4471   /* SunOS 4.1.1 cc rejects this.  */
   4472   char const *const *pcpcc;
   4473   char **ppc;
   4474   /* NEC SVR4.0.2 mips cc rejects this.  */
   4475   struct point {int x, y;};
   4476   static struct point const zero = {0,0};
   4477   /* AIX XL C 1.02.0.0 rejects this.
   4478      It does not let you subtract one const X* pointer from another in
   4479      an arm of an if-expression whose if-part is not a constant
   4480      expression */
   4481   const char *g = "string";
   4482   pcpcc = &g + (g ? g-g : 0);
   4483   /* HPUX 7.0 cc rejects these. */
   4484   ++pcpcc;
   4485   ppc = (char**) pcpcc;
   4486   pcpcc = (char const *const *) ppc;
   4487   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   4488     char tx;
   4489     char *t = &tx;
   4490     char const *s = 0 ? (char *) 0 : (char const *) 0;
   4491 
   4492     *t++ = 0;
   4493     if (s) return 0;
   4494   }
   4495   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   4496     int x[] = {25, 17};
   4497     const int *foo = &x[0];
   4498     ++foo;
   4499   }
   4500   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   4501     typedef const int *iptr;
   4502     iptr p = 0;
   4503     ++p;
   4504   }
   4505   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   4506        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   4507     struct s { int j; const int *ap[3]; } bx;
   4508     struct s *b = &bx; b->j = 5;
   4509   }
   4510   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   4511     const int foo = 10;
   4512     if (!foo) return 0;
   4513   }
   4514   return !cs[0] && !zero.x;
   4515 #endif
   4516 
   4517   ;
   4518   return 0;
   4519 }
   4520 _ACEOF
   4521 if ac_fn_c_try_compile "$LINENO"; then :
   4522   ac_cv_c_const=yes
   4523 else
   4524   ac_cv_c_const=no
   4525 fi
   4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4527 fi
   4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   4529 $as_echo "$ac_cv_c_const" >&6; }
   4530 if test $ac_cv_c_const = no; then
   4531 
   4532 $as_echo "#define const /**/" >>confdefs.h
   4533 
   4534 fi
   4535 
   4536 ac_ext=c
   4537 ac_cpp='$CPP $CPPFLAGS'
   4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4541 
   4542 # allow user to override the -g -O2 flags.
   4543 default_cflags=no
   4544 if test "x$CFLAGS" = "x" ; then
   4545 
   4546 
   4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
   4548 $as_echo_n "checking whether $CC supports -g... " >&6; }
   4549 cache=`echo g | sed 'y%.=/+-%___p_%'`
   4550 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   4551   $as_echo_n "(cached) " >&6
   4552 else
   4553 
   4554 echo 'void f(void){}' >conftest.c
   4555 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
   4556 eval "cv_prog_cc_flag_$cache=yes"
   4557 else
   4558 eval "cv_prog_cc_flag_$cache=no"
   4559 fi
   4560 rm -f conftest conftest.o conftest.c
   4561 
   4562 fi
   4563 
   4564 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4566 $as_echo "yes" >&6; }
   4567 :
   4568 CFLAGS="$CFLAGS -g"
   4569 else
   4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4571 $as_echo "no" >&6; }
   4572 :
   4573 
   4574 fi
   4575 
   4576 
   4577 
   4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
   4579 $as_echo_n "checking whether $CC supports -O2... " >&6; }
   4580 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
   4581 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   4582   $as_echo_n "(cached) " >&6
   4583 else
   4584 
   4585 echo 'void f(void){}' >conftest.c
   4586 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
   4587 eval "cv_prog_cc_flag_$cache=yes"
   4588 else
   4589 eval "cv_prog_cc_flag_$cache=no"
   4590 fi
   4591 rm -f conftest conftest.o conftest.c
   4592 
   4593 fi
   4594 
   4595 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4597 $as_echo "yes" >&6; }
   4598 :
   4599 CFLAGS="$CFLAGS -O2"
   4600 else
   4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4602 $as_echo "no" >&6; }
   4603 :
   4604 
   4605 fi
   4606 
   4607 default_cflags=yes
   4608 fi
   4609    case $ac_cv_prog_cc_stdc in #(
   4610   no) :
   4611     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
   4612   *) :
   4613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   4614 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   4615 if ${ac_cv_prog_cc_c99+:} false; then :
   4616   $as_echo_n "(cached) " >&6
   4617 else
   4618   ac_cv_prog_cc_c99=no
   4619 ac_save_CC=$CC
   4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4621 /* end confdefs.h.  */
   4622 #include <stdarg.h>
   4623 #include <stdbool.h>
   4624 #include <stdlib.h>
   4625 #include <wchar.h>
   4626 #include <stdio.h>
   4627 
   4628 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   4629 #define debug(...) fprintf (stderr, __VA_ARGS__)
   4630 #define showlist(...) puts (#__VA_ARGS__)
   4631 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   4632 static void
   4633 test_varargs_macros (void)
   4634 {
   4635   int x = 1234;
   4636   int y = 5678;
   4637   debug ("Flag");
   4638   debug ("X = %d\n", x);
   4639   showlist (The first, second, and third items.);
   4640   report (x>y, "x is %d but y is %d", x, y);
   4641 }
   4642 
   4643 // Check long long types.
   4644 #define BIG64 18446744073709551615ull
   4645 #define BIG32 4294967295ul
   4646 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   4647 #if !BIG_OK
   4648   your preprocessor is broken;
   4649 #endif
   4650 #if BIG_OK
   4651 #else
   4652   your preprocessor is broken;
   4653 #endif
   4654 static long long int bignum = -9223372036854775807LL;
   4655 static unsigned long long int ubignum = BIG64;
   4656 
   4657 struct incomplete_array
   4658 {
   4659   int datasize;
   4660   double data[];
   4661 };
   4662 
   4663 struct named_init {
   4664   int number;
   4665   const wchar_t *name;
   4666   double average;
   4667 };
   4668 
   4669 typedef const char *ccp;
   4670 
   4671 static inline int
   4672 test_restrict (ccp restrict text)
   4673 {
   4674   // See if C++-style comments work.
   4675   // Iterate through items via the restricted pointer.
   4676   // Also check for declarations in for loops.
   4677   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   4678     continue;
   4679   return 0;
   4680 }
   4681 
   4682 // Check varargs and va_copy.
   4683 static void
   4684 test_varargs (const char *format, ...)
   4685 {
   4686   va_list args;
   4687   va_start (args, format);
   4688   va_list args_copy;
   4689   va_copy (args_copy, args);
   4690 
   4691   const char *str;
   4692   int number;
   4693   float fnumber;
   4694 
   4695   while (*format)
   4696     {
   4697       switch (*format++)
   4698 	{
   4699 	case 's': // string
   4700 	  str = va_arg (args_copy, const char *);
   4701 	  break;
   4702 	case 'd': // int
   4703 	  number = va_arg (args_copy, int);
   4704 	  break;
   4705 	case 'f': // float
   4706 	  fnumber = va_arg (args_copy, double);
   4707 	  break;
   4708 	default:
   4709 	  break;
   4710 	}
   4711     }
   4712   va_end (args_copy);
   4713   va_end (args);
   4714 }
   4715 
   4716 int
   4717 main ()
   4718 {
   4719 
   4720   // Check bool.
   4721   _Bool success = false;
   4722 
   4723   // Check restrict.
   4724   if (test_restrict ("String literal") == 0)
   4725     success = true;
   4726   char *restrict newvar = "Another string";
   4727 
   4728   // Check varargs.
   4729   test_varargs ("s, d' f .", "string", 65, 34.234);
   4730   test_varargs_macros ();
   4731 
   4732   // Check flexible array members.
   4733   struct incomplete_array *ia =
   4734     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   4735   ia->datasize = 10;
   4736   for (int i = 0; i < ia->datasize; ++i)
   4737     ia->data[i] = i * 1.234;
   4738 
   4739   // Check named initializers.
   4740   struct named_init ni = {
   4741     .number = 34,
   4742     .name = L"Test wide string",
   4743     .average = 543.34343,
   4744   };
   4745 
   4746   ni.number = 58;
   4747 
   4748   int dynamic_array[ni.number];
   4749   dynamic_array[ni.number - 1] = 543;
   4750 
   4751   // work around unused variable warnings
   4752   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   4753 	  || dynamic_array[ni.number - 1] != 543);
   4754 
   4755   ;
   4756   return 0;
   4757 }
   4758 _ACEOF
   4759 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   4760 do
   4761   CC="$ac_save_CC $ac_arg"
   4762   if ac_fn_c_try_compile "$LINENO"; then :
   4763   ac_cv_prog_cc_c99=$ac_arg
   4764 fi
   4765 rm -f core conftest.err conftest.$ac_objext
   4766   test "x$ac_cv_prog_cc_c99" != "xno" && break
   4767 done
   4768 rm -f conftest.$ac_ext
   4769 CC=$ac_save_CC
   4770 
   4771 fi
   4772 # AC_CACHE_VAL
   4773 case "x$ac_cv_prog_cc_c99" in
   4774   x)
   4775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4776 $as_echo "none needed" >&6; } ;;
   4777   xno)
   4778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4779 $as_echo "unsupported" >&6; } ;;
   4780   *)
   4781     CC="$CC $ac_cv_prog_cc_c99"
   4782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   4783 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   4784 esac
   4785 if test "x$ac_cv_prog_cc_c99" != xno; then :
   4786   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   4787 else
   4788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   4789 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   4790 if ${ac_cv_prog_cc_c89+:} false; then :
   4791   $as_echo_n "(cached) " >&6
   4792 else
   4793   ac_cv_prog_cc_c89=no
   4794 ac_save_CC=$CC
   4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4796 /* end confdefs.h.  */
   4797 #include <stdarg.h>
   4798 #include <stdio.h>
   4799 struct stat;
   4800 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4801 struct buf { int x; };
   4802 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4803 static char *e (p, i)
   4804      char **p;
   4805      int i;
   4806 {
   4807   return p[i];
   4808 }
   4809 static char *f (char * (*g) (char **, int), char **p, ...)
   4810 {
   4811   char *s;
   4812   va_list v;
   4813   va_start (v,p);
   4814   s = g (p, va_arg (v,int));
   4815   va_end (v);
   4816   return s;
   4817 }
   4818 
   4819 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   4820    function prototypes and stuff, but not '\xHH' hex character constants.
   4821    These don't provoke an error unfortunately, instead are silently treated
   4822    as 'x'.  The following induces an error, until -std is added to get
   4823    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   4824    array size at least.  It's necessary to write '\x00'==0 to get something
   4825    that's true only with -std.  */
   4826 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   4827 
   4828 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   4829    inside strings and character constants.  */
   4830 #define FOO(x) 'x'
   4831 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   4832 
   4833 int test (int i, double x);
   4834 struct s1 {int (*f) (int a);};
   4835 struct s2 {int (*f) (double a);};
   4836 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4837 int argc;
   4838 char **argv;
   4839 int
   4840 main ()
   4841 {
   4842 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4843   ;
   4844   return 0;
   4845 }
   4846 _ACEOF
   4847 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   4848 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4849 do
   4850   CC="$ac_save_CC $ac_arg"
   4851   if ac_fn_c_try_compile "$LINENO"; then :
   4852   ac_cv_prog_cc_c89=$ac_arg
   4853 fi
   4854 rm -f core conftest.err conftest.$ac_objext
   4855   test "x$ac_cv_prog_cc_c89" != "xno" && break
   4856 done
   4857 rm -f conftest.$ac_ext
   4858 CC=$ac_save_CC
   4859 
   4860 fi
   4861 # AC_CACHE_VAL
   4862 case "x$ac_cv_prog_cc_c89" in
   4863   x)
   4864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4865 $as_echo "none needed" >&6; } ;;
   4866   xno)
   4867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4868 $as_echo "unsupported" >&6; } ;;
   4869   *)
   4870     CC="$CC $ac_cv_prog_cc_c89"
   4871     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   4872 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   4873 esac
   4874 if test "x$ac_cv_prog_cc_c89" != xno; then :
   4875   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   4876 else
   4877   ac_cv_prog_cc_stdc=no
   4878 fi
   4879 
   4880 fi
   4881  ;;
   4882 esac
   4883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
   4884 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
   4885   if ${ac_cv_prog_cc_stdc+:} false; then :
   4886   $as_echo_n "(cached) " >&6
   4887 fi
   4888 
   4889   case $ac_cv_prog_cc_stdc in #(
   4890   no) :
   4891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4892 $as_echo "unsupported" >&6; } ;; #(
   4893   '') :
   4894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4895 $as_echo "none needed" >&6; } ;; #(
   4896   *) :
   4897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
   4898 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
   4899 esac
   4900 
   4901 
   4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
   4903 $as_echo_n "checking $CC dependency flag... " >&6; }
   4904 echo 'void f(void){}' >conftest.c
   4905 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
   4906 	DEPFLAG="-MM"
   4907 else
   4908   if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
   4909 	DEPFLAG="-xM1"
   4910   else
   4911 	DEPFLAG="-MM"  # dunno do something
   4912   fi
   4913 fi
   4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
   4915 $as_echo "$DEPFLAG" >&6; }
   4916 rm -f conftest.c
   4917 
   4918 
   4919 
   4920 
   4921 
   4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
   4923 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
   4924 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
   4925 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   4926   $as_echo_n "(cached) " >&6
   4927 else
   4928 
   4929 echo 'void f(void){}' >conftest.c
   4930 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
   4931 eval "cv_prog_cc_flag_$cache=yes"
   4932 else
   4933 eval "cv_prog_cc_flag_$cache=no"
   4934 fi
   4935 rm -f conftest conftest.o conftest.c
   4936 
   4937 fi
   4938 
   4939 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4941 $as_echo "yes" >&6; }
   4942 :
   4943 ERRFLAG="-Werror"
   4944 else
   4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4946 $as_echo "no" >&6; }
   4947 :
   4948 ERRFLAG="-errwarn"
   4949 fi
   4950 
   4951 
   4952 
   4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
   4954 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
   4955 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
   4956 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   4957   $as_echo_n "(cached) " >&6
   4958 else
   4959 
   4960 echo 'void f(void){}' >conftest.c
   4961 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
   4962 eval "cv_prog_cc_flag_$cache=yes"
   4963 else
   4964 eval "cv_prog_cc_flag_$cache=no"
   4965 fi
   4966 rm -f conftest conftest.o conftest.c
   4967 
   4968 fi
   4969 
   4970 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4972 $as_echo "yes" >&6; }
   4973 :
   4974 ERRFLAG="$ERRFLAG -Wall"
   4975 else
   4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4977 $as_echo "no" >&6; }
   4978 :
   4979 ERRFLAG="$ERRFLAG -errfmt"
   4980 fi
   4981 
   4982 
   4983 
   4984 
   4985 
   4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
   4987 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
   4988 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
   4989 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   4990   $as_echo_n "(cached) " >&6
   4991 else
   4992 
   4993 echo 'void f(void){}' >conftest.c
   4994 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
   4995 eval "cv_prog_cc_flag_$cache=yes"
   4996 else
   4997 eval "cv_prog_cc_flag_$cache=no"
   4998 fi
   4999 rm -f conftest conftest.o conftest.c
   5000 
   5001 fi
   5002 
   5003 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5005 $as_echo "yes" >&6; }
   5006 :
   5007 C99FLAG="-std=c99"
   5008 else
   5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5010 $as_echo "no" >&6; }
   5011 :
   5012 
   5013 fi
   5014 
   5015 
   5016 
   5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
   5018 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
   5019 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
   5020 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   5021   $as_echo_n "(cached) " >&6
   5022 else
   5023 
   5024 echo 'void f(void){}' >conftest.c
   5025 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
   5026 eval "cv_prog_cc_flag_$cache=yes"
   5027 else
   5028 eval "cv_prog_cc_flag_$cache=no"
   5029 fi
   5030 rm -f conftest conftest.o conftest.c
   5031 
   5032 fi
   5033 
   5034 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5036 $as_echo "yes" >&6; }
   5037 :
   5038 C99FLAG="-xc99"
   5039 else
   5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5041 $as_echo "no" >&6; }
   5042 :
   5043 
   5044 fi
   5045 
   5046 
   5047 for ac_header in getopt.h time.h
   5048 do :
   5049   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5050 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   5051 "
   5052 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   5053   cat >>confdefs.h <<_ACEOF
   5054 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5055 _ACEOF
   5056 
   5057 fi
   5058 
   5059 done
   5060 
   5061 
   5062 
   5063 
   5064 
   5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
   5066 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
   5067 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
   5068 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5069   $as_echo_n "(cached) " >&6
   5070 else
   5071 
   5072 echo '
   5073 #include "confdefs.h"
   5074 #include <stdlib.h>
   5075 #include <ctype.h>
   5076 #include <sys/time.h>
   5077 #ifdef HAVE_TIME_H
   5078 #include <time.h>
   5079 #endif
   5080 #include <unistd.h>
   5081 #include <netdb.h>
   5082 #ifdef HAVE_GETOPT_H
   5083 #include <getopt.h>
   5084 #endif
   5085 
   5086 int test(void) {
   5087 	int a;
   5088 	char **opts = NULL;
   5089 	struct timeval tv;
   5090 	char *t;
   5091 	time_t time = 0;
   5092 	char *buf = NULL;
   5093 	const char* str = NULL;
   5094 	struct msghdr msg;
   5095 	msg.msg_control = 0;
   5096 	t = ctime_r(&time, buf);
   5097 	tv.tv_usec = 10;
   5098 	srandom(32);
   5099 	a = getopt(2, opts, "a");
   5100 	a = isascii(32);
   5101 	str = gai_strerror(0);
   5102 	if(str && t && tv.tv_usec && msg.msg_control)
   5103 		a = 0;
   5104 	return a;
   5105 }
   5106 ' > conftest.c
   5107 echo 'void f(void){}' >>conftest.c
   5108 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5109 eval "cv_prog_cc_flag_needed_$cache=no"
   5110 else
   5111 
   5112 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
   5113 eval "cv_prog_cc_flag_needed_$cache=yes"
   5114 else
   5115 eval "cv_prog_cc_flag_needed_$cache=fail"
   5116 #echo 'Test with flag fails too!'
   5117 #cat conftest.c
   5118 #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"
   5119 #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`
   5120 #exit 1
   5121 fi
   5122 
   5123 fi
   5124 rm -f conftest conftest.c conftest.o
   5125 
   5126 fi
   5127 
   5128 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5130 $as_echo "yes" >&6; }
   5131 :
   5132 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"
   5133 else
   5134 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5136 $as_echo "no" >&6; }
   5137 #echo 'Test with flag is no!'
   5138 #cat conftest.c
   5139 #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"
   5140 #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`
   5141 #exit 1
   5142 :
   5143 
   5144 else
   5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5146 $as_echo "failed" >&6; }
   5147 :
   5148 
   5149 fi
   5150 fi
   5151 
   5152 
   5153 
   5154 
   5155 
   5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
   5157 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
   5158 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
   5159 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5160   $as_echo_n "(cached) " >&6
   5161 else
   5162 
   5163 echo '
   5164 #include "confdefs.h"
   5165 #include <stdlib.h>
   5166 #include <ctype.h>
   5167 #include <sys/time.h>
   5168 #ifdef HAVE_TIME_H
   5169 #include <time.h>
   5170 #endif
   5171 #include <unistd.h>
   5172 #include <netdb.h>
   5173 #ifdef HAVE_GETOPT_H
   5174 #include <getopt.h>
   5175 #endif
   5176 
   5177 int test(void) {
   5178 	int a;
   5179 	char **opts = NULL;
   5180 	struct timeval tv;
   5181 	char *t;
   5182 	time_t time = 0;
   5183 	char *buf = NULL;
   5184 	const char* str = NULL;
   5185 	struct msghdr msg;
   5186 	msg.msg_control = 0;
   5187 	t = ctime_r(&time, buf);
   5188 	tv.tv_usec = 10;
   5189 	srandom(32);
   5190 	a = getopt(2, opts, "a");
   5191 	a = isascii(32);
   5192 	str = gai_strerror(0);
   5193 	if(str && t && tv.tv_usec && msg.msg_control)
   5194 		a = 0;
   5195 	return a;
   5196 }
   5197 ' > conftest.c
   5198 echo 'void f(void){}' >>conftest.c
   5199 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5200 eval "cv_prog_cc_flag_needed_$cache=no"
   5201 else
   5202 
   5203 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
   5204 eval "cv_prog_cc_flag_needed_$cache=yes"
   5205 else
   5206 eval "cv_prog_cc_flag_needed_$cache=fail"
   5207 #echo 'Test with flag fails too!'
   5208 #cat conftest.c
   5209 #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"
   5210 #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`
   5211 #exit 1
   5212 fi
   5213 
   5214 fi
   5215 rm -f conftest conftest.c conftest.o
   5216 
   5217 fi
   5218 
   5219 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5221 $as_echo "yes" >&6; }
   5222 :
   5223 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
   5224 else
   5225 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5227 $as_echo "no" >&6; }
   5228 #echo 'Test with flag is no!'
   5229 #cat conftest.c
   5230 #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"
   5231 #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`
   5232 #exit 1
   5233 :
   5234 
   5235 else
   5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5237 $as_echo "failed" >&6; }
   5238 :
   5239 
   5240 fi
   5241 fi
   5242 
   5243 
   5244 
   5245 
   5246 
   5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
   5248 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
   5249 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
   5250 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5251   $as_echo_n "(cached) " >&6
   5252 else
   5253 
   5254 echo '
   5255 #include <stdbool.h>
   5256 #include <ctype.h>
   5257 int test(void) {
   5258         int a = 0;
   5259         return a;
   5260 }
   5261 ' > conftest.c
   5262 echo 'void f(void){}' >>conftest.c
   5263 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5264 eval "cv_prog_cc_flag_needed_$cache=no"
   5265 else
   5266 
   5267 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
   5268 eval "cv_prog_cc_flag_needed_$cache=yes"
   5269 else
   5270 eval "cv_prog_cc_flag_needed_$cache=fail"
   5271 #echo 'Test with flag fails too!'
   5272 #cat conftest.c
   5273 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
   5274 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
   5275 #exit 1
   5276 fi
   5277 
   5278 fi
   5279 rm -f conftest conftest.c conftest.o
   5280 
   5281 fi
   5282 
   5283 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5285 $as_echo "yes" >&6; }
   5286 :
   5287 CFLAGS="$CFLAGS $C99FLAG"
   5288 else
   5289 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5291 $as_echo "no" >&6; }
   5292 #echo 'Test with flag is no!'
   5293 #cat conftest.c
   5294 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
   5295 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
   5296 #exit 1
   5297 :
   5298 
   5299 else
   5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5301 $as_echo "failed" >&6; }
   5302 :
   5303 
   5304 fi
   5305 fi
   5306 
   5307 
   5308 
   5309 
   5310 
   5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
   5312 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
   5313 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
   5314 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5315   $as_echo_n "(cached) " >&6
   5316 else
   5317 
   5318 echo '
   5319 #include <ctype.h>
   5320 
   5321 int test(void) {
   5322         int a;
   5323         a = isascii(32);
   5324         return a;
   5325 }
   5326 ' > conftest.c
   5327 echo 'void f(void){}' >>conftest.c
   5328 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5329 eval "cv_prog_cc_flag_needed_$cache=no"
   5330 else
   5331 
   5332 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
   5333 eval "cv_prog_cc_flag_needed_$cache=yes"
   5334 else
   5335 eval "cv_prog_cc_flag_needed_$cache=fail"
   5336 #echo 'Test with flag fails too!'
   5337 #cat conftest.c
   5338 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
   5339 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
   5340 #exit 1
   5341 fi
   5342 
   5343 fi
   5344 rm -f conftest conftest.c conftest.o
   5345 
   5346 fi
   5347 
   5348 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5350 $as_echo "yes" >&6; }
   5351 :
   5352 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
   5353 else
   5354 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5356 $as_echo "no" >&6; }
   5357 #echo 'Test with flag is no!'
   5358 #cat conftest.c
   5359 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
   5360 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
   5361 #exit 1
   5362 :
   5363 
   5364 else
   5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5366 $as_echo "failed" >&6; }
   5367 :
   5368 
   5369 fi
   5370 fi
   5371 
   5372 
   5373 
   5374 
   5375 
   5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
   5377 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
   5378 cache=_D_GNU_SOURCE
   5379 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5380   $as_echo_n "(cached) " >&6
   5381 else
   5382 
   5383 echo '
   5384 #include <netinet/in.h>
   5385 
   5386 int test(void) {
   5387         struct in6_pktinfo inf;
   5388 	int a = (int)sizeof(inf);
   5389         return a;
   5390 }
   5391 ' > conftest.c
   5392 echo 'void f(void){}' >>conftest.c
   5393 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5394 eval "cv_prog_cc_flag_needed_$cache=no"
   5395 else
   5396 
   5397 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
   5398 eval "cv_prog_cc_flag_needed_$cache=yes"
   5399 else
   5400 eval "cv_prog_cc_flag_needed_$cache=fail"
   5401 #echo 'Test with flag fails too!'
   5402 #cat conftest.c
   5403 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
   5404 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
   5405 #exit 1
   5406 fi
   5407 
   5408 fi
   5409 rm -f conftest conftest.c conftest.o
   5410 
   5411 fi
   5412 
   5413 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5415 $as_echo "yes" >&6; }
   5416 :
   5417 CFLAGS="$CFLAGS -D_GNU_SOURCE"
   5418 else
   5419 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5421 $as_echo "no" >&6; }
   5422 #echo 'Test with flag is no!'
   5423 #cat conftest.c
   5424 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
   5425 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
   5426 #exit 1
   5427 :
   5428 
   5429 else
   5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5431 $as_echo "failed" >&6; }
   5432 :
   5433 
   5434 fi
   5435 fi
   5436 
   5437 
   5438 # check again for GNU_SOURCE for setresgid. May fail if setresgid
   5439 # is not available at all. -D_FRSRESGID is to make this check unique.
   5440 # otherwise we would get the previous cached result.
   5441 
   5442 
   5443 
   5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
   5445 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
   5446 cache=_D_GNU_SOURCE__D_FRSRESGID
   5447 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5448   $as_echo_n "(cached) " >&6
   5449 else
   5450 
   5451 echo '
   5452 #include <unistd.h>
   5453 
   5454 int test(void) {
   5455 	int a = setresgid(0,0,0);
   5456 	a = setresuid(0,0,0);
   5457         return a;
   5458 }
   5459 ' > conftest.c
   5460 echo 'void f(void){}' >>conftest.c
   5461 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5462 eval "cv_prog_cc_flag_needed_$cache=no"
   5463 else
   5464 
   5465 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
   5466 eval "cv_prog_cc_flag_needed_$cache=yes"
   5467 else
   5468 eval "cv_prog_cc_flag_needed_$cache=fail"
   5469 #echo 'Test with flag fails too!'
   5470 #cat conftest.c
   5471 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
   5472 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
   5473 #exit 1
   5474 fi
   5475 
   5476 fi
   5477 rm -f conftest conftest.c conftest.o
   5478 
   5479 fi
   5480 
   5481 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5483 $as_echo "yes" >&6; }
   5484 :
   5485 CFLAGS="$CFLAGS -D_GNU_SOURCE"
   5486 else
   5487 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5489 $as_echo "no" >&6; }
   5490 #echo 'Test with flag is no!'
   5491 #cat conftest.c
   5492 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
   5493 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
   5494 #exit 1
   5495 :
   5496 
   5497 else
   5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5499 $as_echo "failed" >&6; }
   5500 :
   5501 
   5502 fi
   5503 fi
   5504 
   5505 
   5506 
   5507 
   5508 
   5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
   5510 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
   5511 cache=_D_POSIX_C_SOURCE_200112
   5512 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5513   $as_echo_n "(cached) " >&6
   5514 else
   5515 
   5516 echo '
   5517 #include "confdefs.h"
   5518 #ifdef HAVE_TIME_H
   5519 #include <time.h>
   5520 #endif
   5521 #include <netdb.h>
   5522 
   5523 int test(void) {
   5524         int a = 0;
   5525         char *t;
   5526         time_t time = 0;
   5527         char *buf = NULL;
   5528 	const char* str = NULL;
   5529         t = ctime_r(&time, buf);
   5530 	str = gai_strerror(0);
   5531 	if(t && str)
   5532 		a = 0;
   5533         return a;
   5534 }
   5535 ' > conftest.c
   5536 echo 'void f(void){}' >>conftest.c
   5537 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5538 eval "cv_prog_cc_flag_needed_$cache=no"
   5539 else
   5540 
   5541 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
   5542 eval "cv_prog_cc_flag_needed_$cache=yes"
   5543 else
   5544 eval "cv_prog_cc_flag_needed_$cache=fail"
   5545 #echo 'Test with flag fails too!'
   5546 #cat conftest.c
   5547 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
   5548 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
   5549 #exit 1
   5550 fi
   5551 
   5552 fi
   5553 rm -f conftest conftest.c conftest.o
   5554 
   5555 fi
   5556 
   5557 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5559 $as_echo "yes" >&6; }
   5560 :
   5561 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
   5562 else
   5563 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5565 $as_echo "no" >&6; }
   5566 #echo 'Test with flag is no!'
   5567 #cat conftest.c
   5568 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
   5569 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
   5570 #exit 1
   5571 :
   5572 
   5573 else
   5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5575 $as_echo "failed" >&6; }
   5576 :
   5577 
   5578 fi
   5579 fi
   5580 
   5581 
   5582 
   5583 
   5584 
   5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
   5586 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
   5587 cache=_D__EXTENSIONS__
   5588 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5589   $as_echo_n "(cached) " >&6
   5590 else
   5591 
   5592 echo '
   5593 #include "confdefs.h"
   5594 #include <stdlib.h>
   5595 #include <ctype.h>
   5596 #include <sys/time.h>
   5597 #ifdef HAVE_TIME_H
   5598 #include <time.h>
   5599 #endif
   5600 #include <unistd.h>
   5601 #ifdef HAVE_GETOPT_H
   5602 #include <getopt.h>
   5603 #endif
   5604 
   5605 int test(void) {
   5606         int a;
   5607         char **opts = NULL;
   5608         struct timeval tv;
   5609         tv.tv_usec = 10;
   5610         srandom(32);
   5611         a = getopt(2, opts, "a");
   5612         a = isascii(32);
   5613 	if(tv.tv_usec)
   5614 		a = 0;
   5615         return a;
   5616 }
   5617 ' > conftest.c
   5618 echo 'void f(void){}' >>conftest.c
   5619 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5620 eval "cv_prog_cc_flag_needed_$cache=no"
   5621 else
   5622 
   5623 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
   5624 eval "cv_prog_cc_flag_needed_$cache=yes"
   5625 else
   5626 eval "cv_prog_cc_flag_needed_$cache=fail"
   5627 #echo 'Test with flag fails too!'
   5628 #cat conftest.c
   5629 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
   5630 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
   5631 #exit 1
   5632 fi
   5633 
   5634 fi
   5635 rm -f conftest conftest.c conftest.o
   5636 
   5637 fi
   5638 
   5639 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5641 $as_echo "yes" >&6; }
   5642 :
   5643 CFLAGS="$CFLAGS -D__EXTENSIONS__"
   5644 else
   5645 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5647 $as_echo "no" >&6; }
   5648 #echo 'Test with flag is no!'
   5649 #cat conftest.c
   5650 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
   5651 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
   5652 #exit 1
   5653 :
   5654 
   5655 else
   5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5657 $as_echo "failed" >&6; }
   5658 :
   5659 
   5660 fi
   5661 fi
   5662 
   5663 
   5664 
   5665 
   5666 # debug mode flags warnings
   5667 # Check whether --enable-checking was given.
   5668 if test "${enable_checking+set}" = set; then :
   5669   enableval=$enable_checking;
   5670 fi
   5671 
   5672 # Check whether --enable-debug was given.
   5673 if test "${enable_debug+set}" = set; then :
   5674   enableval=$enable_debug;
   5675 fi
   5676 
   5677 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
   5678 else debug_enabled="$enable_checking"; fi
   5679 
   5680 case "$debug_enabled" in
   5681         yes)
   5682 
   5683 
   5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
   5685 $as_echo_n "checking whether $CC supports -W... " >&6; }
   5686 cache=`echo W | sed 'y%.=/+-%___p_%'`
   5687 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   5688   $as_echo_n "(cached) " >&6
   5689 else
   5690 
   5691 echo 'void f(void){}' >conftest.c
   5692 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
   5693 eval "cv_prog_cc_flag_$cache=yes"
   5694 else
   5695 eval "cv_prog_cc_flag_$cache=no"
   5696 fi
   5697 rm -f conftest conftest.o conftest.c
   5698 
   5699 fi
   5700 
   5701 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5703 $as_echo "yes" >&6; }
   5704 :
   5705 CFLAGS="$CFLAGS -W"
   5706 else
   5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5708 $as_echo "no" >&6; }
   5709 :
   5710 
   5711 fi
   5712 
   5713 
   5714 
   5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
   5716 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
   5717 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
   5718 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   5719   $as_echo_n "(cached) " >&6
   5720 else
   5721 
   5722 echo 'void f(void){}' >conftest.c
   5723 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
   5724 eval "cv_prog_cc_flag_$cache=yes"
   5725 else
   5726 eval "cv_prog_cc_flag_$cache=no"
   5727 fi
   5728 rm -f conftest conftest.o conftest.c
   5729 
   5730 fi
   5731 
   5732 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5734 $as_echo "yes" >&6; }
   5735 :
   5736 CFLAGS="$CFLAGS -Wall"
   5737 else
   5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5739 $as_echo "no" >&6; }
   5740 :
   5741 
   5742 fi
   5743 
   5744 
   5745 
   5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
   5747 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
   5748 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
   5749 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   5750   $as_echo_n "(cached) " >&6
   5751 else
   5752 
   5753 echo 'void f(void){}' >conftest.c
   5754 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
   5755 eval "cv_prog_cc_flag_$cache=yes"
   5756 else
   5757 eval "cv_prog_cc_flag_$cache=no"
   5758 fi
   5759 rm -f conftest conftest.o conftest.c
   5760 
   5761 fi
   5762 
   5763 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5765 $as_echo "yes" >&6; }
   5766 :
   5767 CFLAGS="$CFLAGS -Wextra"
   5768 else
   5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5770 $as_echo "no" >&6; }
   5771 :
   5772 
   5773 fi
   5774 
   5775 
   5776 
   5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
   5778 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
   5779 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
   5780 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   5781   $as_echo_n "(cached) " >&6
   5782 else
   5783 
   5784 echo 'void f(void){}' >conftest.c
   5785 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
   5786 eval "cv_prog_cc_flag_$cache=yes"
   5787 else
   5788 eval "cv_prog_cc_flag_$cache=no"
   5789 fi
   5790 rm -f conftest conftest.o conftest.c
   5791 
   5792 fi
   5793 
   5794 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5796 $as_echo "yes" >&6; }
   5797 :
   5798 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
   5799 else
   5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5801 $as_echo "no" >&6; }
   5802 :
   5803 
   5804 fi
   5805 
   5806 
   5807 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
   5808 
   5809 		;;
   5810 	no|*)
   5811 		# nothing to do.
   5812 		;;
   5813 esac
   5814 if test "$default_cflags" = "yes"; then
   5815 	# only when CFLAGS was "" at the start, if the users wants to
   5816 	# override we shouldn't add default cflags, because they wouldn't
   5817 	# be able to turn off these options and set the CFLAGS wanted.
   5818 
   5819     # Check whether --enable-flto was given.
   5820 if test "${enable_flto+set}" = set; then :
   5821   enableval=$enable_flto;
   5822 fi
   5823 
   5824     if test "x$enable_flto" != "xno"; then :
   5825 
   5826         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
   5827 $as_echo_n "checking if $CC supports -flto... " >&6; }
   5828         BAKCFLAGS="$CFLAGS"
   5829         CFLAGS="$CFLAGS -flto"
   5830         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5831 /* end confdefs.h.  */
   5832 
   5833 int
   5834 main ()
   5835 {
   5836 
   5837   ;
   5838   return 0;
   5839 }
   5840 _ACEOF
   5841 if ac_fn_c_try_link "$LINENO"; then :
   5842 
   5843             if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
   5844                 CFLAGS="$BAKCFLAGS"
   5845                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5846 $as_echo "no" >&6; }
   5847             else
   5848                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5849 $as_echo "yes" >&6; }
   5850             fi
   5851             rm -f conftest conftest.c conftest.o
   5852 
   5853 else
   5854   CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5855 $as_echo "no" >&6; }
   5856 fi
   5857 rm -f core conftest.err conftest.$ac_objext \
   5858     conftest$ac_exeext conftest.$ac_ext
   5859 
   5860 fi
   5861 
   5862 
   5863     # Check whether --enable-pie was given.
   5864 if test "${enable_pie+set}" = set; then :
   5865   enableval=$enable_pie;
   5866 fi
   5867 
   5868     if test "x$enable_pie" = "xyes"; then :
   5869 
   5870 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
   5871 $as_echo_n "checking if $CC supports PIE... " >&6; }
   5872 	BAKLDFLAGS="$LDFLAGS"
   5873 	BAKCFLAGS="$CFLAGS"
   5874 	LDFLAGS="$LDFLAGS -pie"
   5875 	CFLAGS="$CFLAGS -fPIE"
   5876 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5877 /* end confdefs.h.  */
   5878 
   5879 int
   5880 main ()
   5881 {
   5882 
   5883   ;
   5884   return 0;
   5885 }
   5886 _ACEOF
   5887 if ac_fn_c_try_link "$LINENO"; then :
   5888 
   5889 	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
   5890 		LDFLAGS="$BAKLDFLAGS"
   5891 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5892 $as_echo "no" >&6; }
   5893 	    else
   5894 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5895 $as_echo "yes" >&6; }
   5896 	    fi
   5897 	    rm -f conftest conftest.c conftest.o
   5898 
   5899 else
   5900   LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5901 $as_echo "no" >&6; }
   5902 fi
   5903 rm -f core conftest.err conftest.$ac_objext \
   5904     conftest$ac_exeext conftest.$ac_ext
   5905 
   5906 fi
   5907 
   5908 
   5909     # Check whether --enable-relro_now was given.
   5910 if test "${enable_relro_now+set}" = set; then :
   5911   enableval=$enable_relro_now;
   5912 fi
   5913 
   5914     if test "x$enable_relro_now" = "xyes"; then :
   5915 
   5916 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
   5917 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
   5918 	BAKLDFLAGS="$LDFLAGS"
   5919 	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
   5920 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5921 /* end confdefs.h.  */
   5922 
   5923 int
   5924 main ()
   5925 {
   5926 
   5927   ;
   5928   return 0;
   5929 }
   5930 _ACEOF
   5931 if ac_fn_c_try_link "$LINENO"; then :
   5932 
   5933 	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
   5934 		LDFLAGS="$BAKLDFLAGS"
   5935 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5936 $as_echo "no" >&6; }
   5937 	    else
   5938 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5939 $as_echo "yes" >&6; }
   5940 	    fi
   5941 	    rm -f conftest conftest.c conftest.o
   5942 
   5943 else
   5944   LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5945 $as_echo "no" >&6; }
   5946 fi
   5947 rm -f core conftest.err conftest.$ac_objext \
   5948     conftest$ac_exeext conftest.$ac_ext
   5949 
   5950 fi
   5951 
   5952 fi
   5953 
   5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   5955 $as_echo_n "checking for inline... " >&6; }
   5956 if ${ac_cv_c_inline+:} false; then :
   5957   $as_echo_n "(cached) " >&6
   5958 else
   5959   ac_cv_c_inline=no
   5960 for ac_kw in inline __inline__ __inline; do
   5961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5962 /* end confdefs.h.  */
   5963 #ifndef __cplusplus
   5964 typedef int foo_t;
   5965 static $ac_kw foo_t static_foo () {return 0; }
   5966 $ac_kw foo_t foo () {return 0; }
   5967 #endif
   5968 
   5969 _ACEOF
   5970 if ac_fn_c_try_compile "$LINENO"; then :
   5971   ac_cv_c_inline=$ac_kw
   5972 fi
   5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5974   test "$ac_cv_c_inline" != no && break
   5975 done
   5976 
   5977 fi
   5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   5979 $as_echo "$ac_cv_c_inline" >&6; }
   5980 
   5981 case $ac_cv_c_inline in
   5982   inline | yes) ;;
   5983   *)
   5984     case $ac_cv_c_inline in
   5985       no) ac_val=;;
   5986       *) ac_val=$ac_cv_c_inline;;
   5987     esac
   5988     cat >>confdefs.h <<_ACEOF
   5989 #ifndef __cplusplus
   5990 #define inline $ac_val
   5991 #endif
   5992 _ACEOF
   5993     ;;
   5994 esac
   5995 
   5996 
   5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
   5998 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
   5999 if ${ac_cv_c_format_attribute+:} false; then :
   6000   $as_echo_n "(cached) " >&6
   6001 else
   6002   ac_cv_c_format_attribute=no
   6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6004 /* end confdefs.h.  */
   6005 #include <stdio.h>
   6006 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
   6007 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
   6008 
   6009 int
   6010 main ()
   6011 {
   6012 
   6013    f ("%s", "str");
   6014 
   6015   ;
   6016   return 0;
   6017 }
   6018 _ACEOF
   6019 if ac_fn_c_try_compile "$LINENO"; then :
   6020   ac_cv_c_format_attribute="yes"
   6021 else
   6022   ac_cv_c_format_attribute="no"
   6023 fi
   6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6025 
   6026 fi
   6027 
   6028 
   6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
   6030 $as_echo "$ac_cv_c_format_attribute" >&6; }
   6031 if test $ac_cv_c_format_attribute = yes; then
   6032 
   6033 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
   6034 
   6035 fi
   6036 
   6037 
   6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
   6039 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
   6040 if ${ac_cv_c_unused_attribute+:} false; then :
   6041   $as_echo_n "(cached) " >&6
   6042 else
   6043   ac_cv_c_unused_attribute=no
   6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6045 /* end confdefs.h.  */
   6046 #include <stdio.h>
   6047 void f (char *u __attribute__((unused)));
   6048 
   6049 int
   6050 main ()
   6051 {
   6052 
   6053    f ("x");
   6054 
   6055   ;
   6056   return 0;
   6057 }
   6058 _ACEOF
   6059 if ac_fn_c_try_compile "$LINENO"; then :
   6060   ac_cv_c_unused_attribute="yes"
   6061 else
   6062   ac_cv_c_unused_attribute="no"
   6063 fi
   6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6065 
   6066 fi
   6067 
   6068 
   6069 
   6070 
   6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
   6072 $as_echo "$ac_cv_c_unused_attribute" >&6; }
   6073 if test $ac_cv_c_unused_attribute = yes; then
   6074 
   6075 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
   6076 
   6077 fi
   6078 
   6079 
   6080 
   6081 
   6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
   6083 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
   6084 if ${ac_cv_c_weak_attribute+:} false; then :
   6085   $as_echo_n "(cached) " >&6
   6086 else
   6087   ac_cv_c_weak_attribute=no
   6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6089 /* end confdefs.h.  */
   6090  #include <stdio.h>
   6091 __attribute__((weak)) void f(int x) { printf("%d", x); }
   6092 
   6093 int
   6094 main ()
   6095 {
   6096 
   6097    f(1);
   6098 
   6099   ;
   6100   return 0;
   6101 }
   6102 _ACEOF
   6103 if ac_fn_c_try_compile "$LINENO"; then :
   6104   ac_cv_c_weak_attribute="yes"
   6105 else
   6106   ac_cv_c_weak_attribute="no"
   6107 fi
   6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6109 
   6110 fi
   6111 
   6112 
   6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
   6114 $as_echo "$ac_cv_c_weak_attribute" >&6; }
   6115 if test $ac_cv_c_weak_attribute = yes; then
   6116 
   6117 $as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
   6118 
   6119 
   6120 $as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
   6121 
   6122 fi
   6123 
   6124 
   6125 
   6126 
   6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
   6128 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
   6129 if ${ac_cv_c_noreturn_attribute+:} false; then :
   6130   $as_echo_n "(cached) " >&6
   6131 else
   6132   ac_cv_c_noreturn_attribute=no
   6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6134 /* end confdefs.h.  */
   6135  #include <stdio.h>
   6136 __attribute__((noreturn)) void f(int x) { printf("%d", x); }
   6137 
   6138 int
   6139 main ()
   6140 {
   6141 
   6142    f(1);
   6143 
   6144   ;
   6145   return 0;
   6146 }
   6147 _ACEOF
   6148 if ac_fn_c_try_compile "$LINENO"; then :
   6149   ac_cv_c_noreturn_attribute="yes"
   6150 else
   6151   ac_cv_c_noreturn_attribute="no"
   6152 fi
   6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6154 
   6155 fi
   6156 
   6157 
   6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
   6159 $as_echo "$ac_cv_c_noreturn_attribute" >&6; }
   6160 if test $ac_cv_c_noreturn_attribute = yes; then
   6161 
   6162 $as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
   6163 
   6164 
   6165 $as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
   6166 
   6167 fi
   6168 
   6169 
   6170 if test "$srcdir" != "."; then
   6171 	CPPFLAGS="$CPPFLAGS -I$srcdir"
   6172 fi
   6173 
   6174 
   6175 
   6176 
   6177 
   6178 for ac_prog in flex lex
   6179 do
   6180   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6181 set dummy $ac_prog; ac_word=$2
   6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6183 $as_echo_n "checking for $ac_word... " >&6; }
   6184 if ${ac_cv_prog_LEX+:} false; then :
   6185   $as_echo_n "(cached) " >&6
   6186 else
   6187   if test -n "$LEX"; then
   6188   ac_cv_prog_LEX="$LEX" # Let the user override the test.
   6189 else
   6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6191 for as_dir in $PATH
   6192 do
   6193   IFS=$as_save_IFS
   6194   test -z "$as_dir" && as_dir=.
   6195     for ac_exec_ext in '' $ac_executable_extensions; do
   6196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6197     ac_cv_prog_LEX="$ac_prog"
   6198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6199     break 2
   6200   fi
   6201 done
   6202   done
   6203 IFS=$as_save_IFS
   6204 
   6205 fi
   6206 fi
   6207 LEX=$ac_cv_prog_LEX
   6208 if test -n "$LEX"; then
   6209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
   6210 $as_echo "$LEX" >&6; }
   6211 else
   6212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6213 $as_echo "no" >&6; }
   6214 fi
   6215 
   6216 
   6217   test -n "$LEX" && break
   6218 done
   6219 test -n "$LEX" || LEX=":"
   6220 
   6221 if test "x$LEX" != "x:"; then
   6222   cat >conftest.l <<_ACEOF
   6223 %%
   6224 a { ECHO; }
   6225 b { REJECT; }
   6226 c { yymore (); }
   6227 d { yyless (1); }
   6228 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
   6229     yyless ((input () != 0)); }
   6230 f { unput (yytext[0]); }
   6231 . { BEGIN INITIAL; }
   6232 %%
   6233 #ifdef YYTEXT_POINTER
   6234 extern char *yytext;
   6235 #endif
   6236 int
   6237 main (void)
   6238 {
   6239   return ! yylex () + ! yywrap ();
   6240 }
   6241 _ACEOF
   6242 { { ac_try="$LEX conftest.l"
   6243 case "(($ac_try" in
   6244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6245   *) ac_try_echo=$ac_try;;
   6246 esac
   6247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   6248 $as_echo "$ac_try_echo"; } >&5
   6249   (eval "$LEX conftest.l") 2>&5
   6250   ac_status=$?
   6251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6252   test $ac_status = 0; }
   6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
   6254 $as_echo_n "checking lex output file root... " >&6; }
   6255 if ${ac_cv_prog_lex_root+:} false; then :
   6256   $as_echo_n "(cached) " >&6
   6257 else
   6258 
   6259 if test -f lex.yy.c; then
   6260   ac_cv_prog_lex_root=lex.yy
   6261 elif test -f lexyy.c; then
   6262   ac_cv_prog_lex_root=lexyy
   6263 else
   6264   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
   6265 fi
   6266 fi
   6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
   6268 $as_echo "$ac_cv_prog_lex_root" >&6; }
   6269 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
   6270 
   6271 if test -z "${LEXLIB+set}"; then
   6272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
   6273 $as_echo_n "checking lex library... " >&6; }
   6274 if ${ac_cv_lib_lex+:} false; then :
   6275   $as_echo_n "(cached) " >&6
   6276 else
   6277 
   6278     ac_save_LIBS=$LIBS
   6279     ac_cv_lib_lex='none needed'
   6280     for ac_lib in '' -lfl -ll; do
   6281       LIBS="$ac_lib $ac_save_LIBS"
   6282       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6283 /* end confdefs.h.  */
   6284 `cat $LEX_OUTPUT_ROOT.c`
   6285 _ACEOF
   6286 if ac_fn_c_try_link "$LINENO"; then :
   6287   ac_cv_lib_lex=$ac_lib
   6288 fi
   6289 rm -f core conftest.err conftest.$ac_objext \
   6290     conftest$ac_exeext conftest.$ac_ext
   6291       test "$ac_cv_lib_lex" != 'none needed' && break
   6292     done
   6293     LIBS=$ac_save_LIBS
   6294 
   6295 fi
   6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
   6297 $as_echo "$ac_cv_lib_lex" >&6; }
   6298   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
   6299 fi
   6300 
   6301 
   6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
   6303 $as_echo_n "checking whether yytext is a pointer... " >&6; }
   6304 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
   6305   $as_echo_n "(cached) " >&6
   6306 else
   6307   # POSIX says lex can declare yytext either as a pointer or an array; the
   6308 # default is implementation-dependent.  Figure out which it is, since
   6309 # not all implementations provide the %pointer and %array declarations.
   6310 ac_cv_prog_lex_yytext_pointer=no
   6311 ac_save_LIBS=$LIBS
   6312 LIBS="$LEXLIB $ac_save_LIBS"
   6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6314 /* end confdefs.h.  */
   6315 
   6316   #define YYTEXT_POINTER 1
   6317 `cat $LEX_OUTPUT_ROOT.c`
   6318 _ACEOF
   6319 if ac_fn_c_try_link "$LINENO"; then :
   6320   ac_cv_prog_lex_yytext_pointer=yes
   6321 fi
   6322 rm -f core conftest.err conftest.$ac_objext \
   6323     conftest$ac_exeext conftest.$ac_ext
   6324 LIBS=$ac_save_LIBS
   6325 
   6326 fi
   6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
   6328 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
   6329 if test $ac_cv_prog_lex_yytext_pointer = yes; then
   6330 
   6331 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
   6332 
   6333 fi
   6334 rm -f conftest.l $LEX_OUTPUT_ROOT.c
   6335 
   6336 fi
   6337 if test "$LEX" != "" -a "$LEX" != ":"; then
   6338 
   6339 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
   6340 $as_echo_n "checking for yylex_destroy... " >&6; }
   6341 	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
   6342 
   6343 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
   6344 
   6345 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6346 $as_echo "yes" >&6; }
   6347 	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6348 $as_echo "no" >&6; };
   6349 		LEX=":"
   6350 	fi
   6351 
   6352 fi
   6353 if test "$LEX" != "" -a "$LEX" != ":"; then
   6354 
   6355 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
   6356 $as_echo_n "checking for lex %option... " >&6; }
   6357 	if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
   6358 %option nounput
   6359 %%
   6360 EOF
   6361 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6362 $as_echo "yes" >&6; }
   6363 	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6364 $as_echo "no" >&6; };
   6365 		LEX=":"
   6366 	fi
   6367 
   6368 fi
   6369 if test "$LEX" = "" -o "$LEX" = ":"; then
   6370 	if test ! -f util/configlexer.c; then
   6371 		as_fn_error $? "no lex and no util/configlexer.c: need flex and bison to compile from source repository." "$LINENO" 5
   6372 	fi
   6373 fi
   6374 for ac_prog in 'bison -y' byacc
   6375 do
   6376   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6377 set dummy $ac_prog; ac_word=$2
   6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6379 $as_echo_n "checking for $ac_word... " >&6; }
   6380 if ${ac_cv_prog_YACC+:} false; then :
   6381   $as_echo_n "(cached) " >&6
   6382 else
   6383   if test -n "$YACC"; then
   6384   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   6385 else
   6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6387 for as_dir in $PATH
   6388 do
   6389   IFS=$as_save_IFS
   6390   test -z "$as_dir" && as_dir=.
   6391     for ac_exec_ext in '' $ac_executable_extensions; do
   6392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6393     ac_cv_prog_YACC="$ac_prog"
   6394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6395     break 2
   6396   fi
   6397 done
   6398   done
   6399 IFS=$as_save_IFS
   6400 
   6401 fi
   6402 fi
   6403 YACC=$ac_cv_prog_YACC
   6404 if test -n "$YACC"; then
   6405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
   6406 $as_echo "$YACC" >&6; }
   6407 else
   6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6409 $as_echo "no" >&6; }
   6410 fi
   6411 
   6412 
   6413   test -n "$YACC" && break
   6414 done
   6415 test -n "$YACC" || YACC="yacc"
   6416 
   6417 if test "$YACC" = "" -o "$YACC" = ":"; then
   6418 	if test ! -f util/configparser.c; then
   6419 		as_fn_error $? "no yacc and no util/configparser.c: need flex and bison to compile from source repository." "$LINENO" 5
   6420 	fi
   6421 fi
   6422 # Extract the first word of "doxygen", so it can be a program name with args.
   6423 set dummy doxygen; ac_word=$2
   6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6425 $as_echo_n "checking for $ac_word... " >&6; }
   6426 if ${ac_cv_prog_doxygen+:} false; then :
   6427   $as_echo_n "(cached) " >&6
   6428 else
   6429   if test -n "$doxygen"; then
   6430   ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
   6431 else
   6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6433 for as_dir in $PATH
   6434 do
   6435   IFS=$as_save_IFS
   6436   test -z "$as_dir" && as_dir=.
   6437     for ac_exec_ext in '' $ac_executable_extensions; do
   6438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6439     ac_cv_prog_doxygen="doxygen"
   6440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6441     break 2
   6442   fi
   6443 done
   6444   done
   6445 IFS=$as_save_IFS
   6446 
   6447 fi
   6448 fi
   6449 doxygen=$ac_cv_prog_doxygen
   6450 if test -n "$doxygen"; then
   6451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
   6452 $as_echo "$doxygen" >&6; }
   6453 else
   6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6455 $as_echo "no" >&6; }
   6456 fi
   6457 
   6458 
   6459 if test -n "$ac_tool_prefix"; then
   6460   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   6461 set dummy ${ac_tool_prefix}strip; ac_word=$2
   6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6463 $as_echo_n "checking for $ac_word... " >&6; }
   6464 if ${ac_cv_prog_STRIP+:} false; then :
   6465   $as_echo_n "(cached) " >&6
   6466 else
   6467   if test -n "$STRIP"; then
   6468   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   6469 else
   6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6471 for as_dir in $PATH
   6472 do
   6473   IFS=$as_save_IFS
   6474   test -z "$as_dir" && as_dir=.
   6475     for ac_exec_ext in '' $ac_executable_extensions; do
   6476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6477     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   6478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6479     break 2
   6480   fi
   6481 done
   6482   done
   6483 IFS=$as_save_IFS
   6484 
   6485 fi
   6486 fi
   6487 STRIP=$ac_cv_prog_STRIP
   6488 if test -n "$STRIP"; then
   6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   6490 $as_echo "$STRIP" >&6; }
   6491 else
   6492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6493 $as_echo "no" >&6; }
   6494 fi
   6495 
   6496 
   6497 fi
   6498 if test -z "$ac_cv_prog_STRIP"; then
   6499   ac_ct_STRIP=$STRIP
   6500   # Extract the first word of "strip", so it can be a program name with args.
   6501 set dummy strip; ac_word=$2
   6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6503 $as_echo_n "checking for $ac_word... " >&6; }
   6504 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   6505   $as_echo_n "(cached) " >&6
   6506 else
   6507   if test -n "$ac_ct_STRIP"; then
   6508   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   6509 else
   6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6511 for as_dir in $PATH
   6512 do
   6513   IFS=$as_save_IFS
   6514   test -z "$as_dir" && as_dir=.
   6515     for ac_exec_ext in '' $ac_executable_extensions; do
   6516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6517     ac_cv_prog_ac_ct_STRIP="strip"
   6518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6519     break 2
   6520   fi
   6521 done
   6522   done
   6523 IFS=$as_save_IFS
   6524 
   6525 fi
   6526 fi
   6527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   6528 if test -n "$ac_ct_STRIP"; then
   6529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   6530 $as_echo "$ac_ct_STRIP" >&6; }
   6531 else
   6532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6533 $as_echo "no" >&6; }
   6534 fi
   6535 
   6536   if test "x$ac_ct_STRIP" = x; then
   6537     STRIP=""
   6538   else
   6539     case $cross_compiling:$ac_tool_warned in
   6540 yes:)
   6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6543 ac_tool_warned=yes ;;
   6544 esac
   6545     STRIP=$ac_ct_STRIP
   6546   fi
   6547 else
   6548   STRIP="$ac_cv_prog_STRIP"
   6549 fi
   6550 
   6551 ac_aux_dir=
   6552 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   6553   if test -f "$ac_dir/install-sh"; then
   6554     ac_aux_dir=$ac_dir
   6555     ac_install_sh="$ac_aux_dir/install-sh -c"
   6556     break
   6557   elif test -f "$ac_dir/install.sh"; then
   6558     ac_aux_dir=$ac_dir
   6559     ac_install_sh="$ac_aux_dir/install.sh -c"
   6560     break
   6561   elif test -f "$ac_dir/shtool"; then
   6562     ac_aux_dir=$ac_dir
   6563     ac_install_sh="$ac_aux_dir/shtool install -c"
   6564     break
   6565   fi
   6566 done
   6567 if test -z "$ac_aux_dir"; then
   6568   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   6569 fi
   6570 
   6571 # These three variables are undocumented and unsupported,
   6572 # and are intended to be withdrawn in a future Autoconf release.
   6573 # They can cause serious problems if a builder's source tree is in a directory
   6574 # whose full name contains unusual characters.
   6575 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   6576 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   6577 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   6578 
   6579 
   6580 # Make sure we can run config.sub.
   6581 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   6582   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   6583 
   6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   6585 $as_echo_n "checking build system type... " >&6; }
   6586 if ${ac_cv_build+:} false; then :
   6587   $as_echo_n "(cached) " >&6
   6588 else
   6589   ac_build_alias=$build_alias
   6590 test "x$ac_build_alias" = x &&
   6591   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   6592 test "x$ac_build_alias" = x &&
   6593   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   6594 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   6595   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   6596 
   6597 fi
   6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   6599 $as_echo "$ac_cv_build" >&6; }
   6600 case $ac_cv_build in
   6601 *-*-*) ;;
   6602 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   6603 esac
   6604 build=$ac_cv_build
   6605 ac_save_IFS=$IFS; IFS='-'
   6606 set x $ac_cv_build
   6607 shift
   6608 build_cpu=$1
   6609 build_vendor=$2
   6610 shift; shift
   6611 # Remember, the first character of IFS is used to create $*,
   6612 # except with old shells:
   6613 build_os=$*
   6614 IFS=$ac_save_IFS
   6615 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   6616 
   6617 
   6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   6619 $as_echo_n "checking host system type... " >&6; }
   6620 if ${ac_cv_host+:} false; then :
   6621   $as_echo_n "(cached) " >&6
   6622 else
   6623   if test "x$host_alias" = x; then
   6624   ac_cv_host=$ac_cv_build
   6625 else
   6626   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   6627     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   6628 fi
   6629 
   6630 fi
   6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   6632 $as_echo "$ac_cv_host" >&6; }
   6633 case $ac_cv_host in
   6634 *-*-*) ;;
   6635 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   6636 esac
   6637 host=$ac_cv_host
   6638 ac_save_IFS=$IFS; IFS='-'
   6639 set x $ac_cv_host
   6640 shift
   6641 host_cpu=$1
   6642 host_vendor=$2
   6643 shift; shift
   6644 # Remember, the first character of IFS is used to create $*,
   6645 # except with old shells:
   6646 host_os=$*
   6647 IFS=$ac_save_IFS
   6648 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   6649 
   6650 
   6651 
   6652 # skip these tests, we do not need them.
   6653 
   6654 
   6655 
   6656 
   6657 
   6658 
   6659 
   6660 
   6661 # always use ./libtool unless override from commandline (libtool=mylibtool)
   6662 if test -z "$libtool"; then
   6663 	libtool="./libtool"
   6664 fi
   6665 
   6666 # avoid libtool max commandline length test on systems that fork slowly.
   6667 
   6668 if echo "$host_os" | grep "sunos4" >/dev/null; then
   6669 	lt_cv_sys_max_cmd_len=32750;
   6670 fi
   6671 if test -n "$ac_tool_prefix"; then
   6672   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   6673 set dummy ${ac_tool_prefix}ar; ac_word=$2
   6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6675 $as_echo_n "checking for $ac_word... " >&6; }
   6676 if ${ac_cv_path_AR+:} false; then :
   6677   $as_echo_n "(cached) " >&6
   6678 else
   6679   case $AR in
   6680   [\\/]* | ?:[\\/]*)
   6681   ac_cv_path_AR="$AR" # Let the user override the test with a path.
   6682   ;;
   6683   *)
   6684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6685 for as_dir in $PATH
   6686 do
   6687   IFS=$as_save_IFS
   6688   test -z "$as_dir" && as_dir=.
   6689     for ac_exec_ext in '' $ac_executable_extensions; do
   6690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6691     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
   6692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6693     break 2
   6694   fi
   6695 done
   6696   done
   6697 IFS=$as_save_IFS
   6698 
   6699   ;;
   6700 esac
   6701 fi
   6702 AR=$ac_cv_path_AR
   6703 if test -n "$AR"; then
   6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   6705 $as_echo "$AR" >&6; }
   6706 else
   6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6708 $as_echo "no" >&6; }
   6709 fi
   6710 
   6711 
   6712 fi
   6713 if test -z "$ac_cv_path_AR"; then
   6714   ac_pt_AR=$AR
   6715   # Extract the first word of "ar", so it can be a program name with args.
   6716 set dummy ar; ac_word=$2
   6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6718 $as_echo_n "checking for $ac_word... " >&6; }
   6719 if ${ac_cv_path_ac_pt_AR+:} false; then :
   6720   $as_echo_n "(cached) " >&6
   6721 else
   6722   case $ac_pt_AR in
   6723   [\\/]* | ?:[\\/]*)
   6724   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
   6725   ;;
   6726   *)
   6727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6728 for as_dir in $PATH
   6729 do
   6730   IFS=$as_save_IFS
   6731   test -z "$as_dir" && as_dir=.
   6732     for ac_exec_ext in '' $ac_executable_extensions; do
   6733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6734     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
   6735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6736     break 2
   6737   fi
   6738 done
   6739   done
   6740 IFS=$as_save_IFS
   6741 
   6742   ;;
   6743 esac
   6744 fi
   6745 ac_pt_AR=$ac_cv_path_ac_pt_AR
   6746 if test -n "$ac_pt_AR"; then
   6747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
   6748 $as_echo "$ac_pt_AR" >&6; }
   6749 else
   6750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6751 $as_echo "no" >&6; }
   6752 fi
   6753 
   6754   if test "x$ac_pt_AR" = x; then
   6755     AR="false"
   6756   else
   6757     case $cross_compiling:$ac_tool_warned in
   6758 yes:)
   6759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6761 ac_tool_warned=yes ;;
   6762 esac
   6763     AR=$ac_pt_AR
   6764   fi
   6765 else
   6766   AR="$ac_cv_path_AR"
   6767 fi
   6768 
   6769 if test $AR = false; then
   6770 	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
   6771 fi
   6772 
   6773 case `pwd` in
   6774   *\ * | *\	*)
   6775     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   6776 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   6777 esac
   6778 
   6779 
   6780 
   6781 macro_version='2.4.6'
   6782 macro_revision='2.4.6'
   6783 
   6784 
   6785 
   6786 
   6787 
   6788 
   6789 
   6790 
   6791 
   6792 
   6793 
   6794 
   6795 
   6796 ltmain=$ac_aux_dir/ltmain.sh
   6797 
   6798 # Backslashify metacharacters that are still active within
   6799 # double-quoted strings.
   6800 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   6801 
   6802 # Same as above, but do not quote variable references.
   6803 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   6804 
   6805 # Sed substitution to delay expansion of an escaped shell variable in a
   6806 # double_quote_subst'ed string.
   6807 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   6808 
   6809 # Sed substitution to delay expansion of an escaped single quote.
   6810 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   6811 
   6812 # Sed substitution to avoid accidental globbing in evaled expressions
   6813 no_glob_subst='s/\*/\\\*/g'
   6814 
   6815 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   6816 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   6817 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   6818 
   6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   6820 $as_echo_n "checking how to print strings... " >&6; }
   6821 # Test print first, because it will be a builtin if present.
   6822 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   6823    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   6824   ECHO='print -r --'
   6825 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   6826   ECHO='printf %s\n'
   6827 else
   6828   # Use this function as a fallback that always works.
   6829   func_fallback_echo ()
   6830   {
   6831     eval 'cat <<_LTECHO_EOF
   6832 $1
   6833 _LTECHO_EOF'
   6834   }
   6835   ECHO='func_fallback_echo'
   6836 fi
   6837 
   6838 # func_echo_all arg...
   6839 # Invoke $ECHO with all args, space-separated.
   6840 func_echo_all ()
   6841 {
   6842     $ECHO ""
   6843 }
   6844 
   6845 case $ECHO in
   6846   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   6847 $as_echo "printf" >&6; } ;;
   6848   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   6849 $as_echo "print -r" >&6; } ;;
   6850   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   6851 $as_echo "cat" >&6; } ;;
   6852 esac
   6853 
   6854 
   6855 
   6856 
   6857 
   6858 
   6859 
   6860 
   6861 
   6862 
   6863 
   6864 
   6865 
   6866 
   6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   6868 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   6869 if ${ac_cv_path_SED+:} false; then :
   6870   $as_echo_n "(cached) " >&6
   6871 else
   6872             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   6873      for ac_i in 1 2 3 4 5 6 7; do
   6874        ac_script="$ac_script$as_nl$ac_script"
   6875      done
   6876      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   6877      { ac_script=; unset ac_script;}
   6878      if test -z "$SED"; then
   6879   ac_path_SED_found=false
   6880   # Loop through the user's path and test for each of PROGNAME-LIST
   6881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6882 for as_dir in $PATH
   6883 do
   6884   IFS=$as_save_IFS
   6885   test -z "$as_dir" && as_dir=.
   6886     for ac_prog in sed gsed; do
   6887     for ac_exec_ext in '' $ac_executable_extensions; do
   6888       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   6889       as_fn_executable_p "$ac_path_SED" || continue
   6890 # Check for GNU ac_path_SED and select it if it is found.
   6891   # Check for GNU $ac_path_SED
   6892 case `"$ac_path_SED" --version 2>&1` in
   6893 *GNU*)
   6894   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   6895 *)
   6896   ac_count=0
   6897   $as_echo_n 0123456789 >"conftest.in"
   6898   while :
   6899   do
   6900     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6901     mv "conftest.tmp" "conftest.in"
   6902     cp "conftest.in" "conftest.nl"
   6903     $as_echo '' >> "conftest.nl"
   6904     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6905     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6906     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6907     if test $ac_count -gt ${ac_path_SED_max-0}; then
   6908       # Best one so far, save it but keep looking for a better one
   6909       ac_cv_path_SED="$ac_path_SED"
   6910       ac_path_SED_max=$ac_count
   6911     fi
   6912     # 10*(2^10) chars as input seems more than enough
   6913     test $ac_count -gt 10 && break
   6914   done
   6915   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6916 esac
   6917 
   6918       $ac_path_SED_found && break 3
   6919     done
   6920   done
   6921   done
   6922 IFS=$as_save_IFS
   6923   if test -z "$ac_cv_path_SED"; then
   6924     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   6925   fi
   6926 else
   6927   ac_cv_path_SED=$SED
   6928 fi
   6929 
   6930 fi
   6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   6932 $as_echo "$ac_cv_path_SED" >&6; }
   6933  SED="$ac_cv_path_SED"
   6934   rm -f conftest.sed
   6935 
   6936 test -z "$SED" && SED=sed
   6937 Xsed="$SED -e 1s/^X//"
   6938 
   6939 
   6940 
   6941 
   6942 
   6943 
   6944 
   6945 
   6946 
   6947 
   6948 
   6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   6950 $as_echo_n "checking for fgrep... " >&6; }
   6951 if ${ac_cv_path_FGREP+:} false; then :
   6952   $as_echo_n "(cached) " >&6
   6953 else
   6954   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   6955    then ac_cv_path_FGREP="$GREP -F"
   6956    else
   6957      if test -z "$FGREP"; then
   6958   ac_path_FGREP_found=false
   6959   # Loop through the user's path and test for each of PROGNAME-LIST
   6960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   6962 do
   6963   IFS=$as_save_IFS
   6964   test -z "$as_dir" && as_dir=.
   6965     for ac_prog in fgrep; do
   6966     for ac_exec_ext in '' $ac_executable_extensions; do
   6967       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   6968       as_fn_executable_p "$ac_path_FGREP" || continue
   6969 # Check for GNU ac_path_FGREP and select it if it is found.
   6970   # Check for GNU $ac_path_FGREP
   6971 case `"$ac_path_FGREP" --version 2>&1` in
   6972 *GNU*)
   6973   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   6974 *)
   6975   ac_count=0
   6976   $as_echo_n 0123456789 >"conftest.in"
   6977   while :
   6978   do
   6979     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6980     mv "conftest.tmp" "conftest.in"
   6981     cp "conftest.in" "conftest.nl"
   6982     $as_echo 'FGREP' >> "conftest.nl"
   6983     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6984     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6985     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6986     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   6987       # Best one so far, save it but keep looking for a better one
   6988       ac_cv_path_FGREP="$ac_path_FGREP"
   6989       ac_path_FGREP_max=$ac_count
   6990     fi
   6991     # 10*(2^10) chars as input seems more than enough
   6992     test $ac_count -gt 10 && break
   6993   done
   6994   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6995 esac
   6996 
   6997       $ac_path_FGREP_found && break 3
   6998     done
   6999   done
   7000   done
   7001 IFS=$as_save_IFS
   7002   if test -z "$ac_cv_path_FGREP"; then
   7003     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   7004   fi
   7005 else
   7006   ac_cv_path_FGREP=$FGREP
   7007 fi
   7008 
   7009    fi
   7010 fi
   7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   7012 $as_echo "$ac_cv_path_FGREP" >&6; }
   7013  FGREP="$ac_cv_path_FGREP"
   7014 
   7015 
   7016 test -z "$GREP" && GREP=grep
   7017 
   7018 
   7019 
   7020 
   7021 
   7022 
   7023 
   7024 
   7025 
   7026 
   7027 
   7028 
   7029 
   7030 
   7031 
   7032 
   7033 
   7034 
   7035 
   7036 # Check whether --with-gnu-ld was given.
   7037 if test "${with_gnu_ld+set}" = set; then :
   7038   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
   7039 else
   7040   with_gnu_ld=no
   7041 fi
   7042 
   7043 ac_prog=ld
   7044 if test yes = "$GCC"; then
   7045   # Check if gcc -print-prog-name=ld gives a path.
   7046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   7047 $as_echo_n "checking for ld used by $CC... " >&6; }
   7048   case $host in
   7049   *-*-mingw*)
   7050     # gcc leaves a trailing carriage return, which upsets mingw
   7051     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   7052   *)
   7053     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   7054   esac
   7055   case $ac_prog in
   7056     # Accept absolute paths.
   7057     [\\/]* | ?:[\\/]*)
   7058       re_direlt='/[^/][^/]*/\.\./'
   7059       # Canonicalize the pathname of ld
   7060       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   7061       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   7062 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   7063       done
   7064       test -z "$LD" && LD=$ac_prog
   7065       ;;
   7066   "")
   7067     # If it fails, then pretend we aren't using GCC.
   7068     ac_prog=ld
   7069     ;;
   7070   *)
   7071     # If it is relative, then search for the first ld in PATH.
   7072     with_gnu_ld=unknown
   7073     ;;
   7074   esac
   7075 elif test yes = "$with_gnu_ld"; then
   7076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   7077 $as_echo_n "checking for GNU ld... " >&6; }
   7078 else
   7079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   7080 $as_echo_n "checking for non-GNU ld... " >&6; }
   7081 fi
   7082 if ${lt_cv_path_LD+:} false; then :
   7083   $as_echo_n "(cached) " >&6
   7084 else
   7085   if test -z "$LD"; then
   7086   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7087   for ac_dir in $PATH; do
   7088     IFS=$lt_save_ifs
   7089     test -z "$ac_dir" && ac_dir=.
   7090     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   7091       lt_cv_path_LD=$ac_dir/$ac_prog
   7092       # Check to see if the program is GNU ld.  I'd rather use --version,
   7093       # but apparently some variants of GNU ld only accept -v.
   7094       # Break only if it was the GNU/non-GNU ld that we prefer.
   7095       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   7096       *GNU* | *'with BFD'*)
   7097 	test no != "$with_gnu_ld" && break
   7098 	;;
   7099       *)
   7100 	test yes != "$with_gnu_ld" && break
   7101 	;;
   7102       esac
   7103     fi
   7104   done
   7105   IFS=$lt_save_ifs
   7106 else
   7107   lt_cv_path_LD=$LD # Let the user override the test with a path.
   7108 fi
   7109 fi
   7110 
   7111 LD=$lt_cv_path_LD
   7112 if test -n "$LD"; then
   7113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   7114 $as_echo "$LD" >&6; }
   7115 else
   7116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7117 $as_echo "no" >&6; }
   7118 fi
   7119 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   7121 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   7122 if ${lt_cv_prog_gnu_ld+:} false; then :
   7123   $as_echo_n "(cached) " >&6
   7124 else
   7125   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   7126 case `$LD -v 2>&1 </dev/null` in
   7127 *GNU* | *'with BFD'*)
   7128   lt_cv_prog_gnu_ld=yes
   7129   ;;
   7130 *)
   7131   lt_cv_prog_gnu_ld=no
   7132   ;;
   7133 esac
   7134 fi
   7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   7136 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   7137 with_gnu_ld=$lt_cv_prog_gnu_ld
   7138 
   7139 
   7140 
   7141 
   7142 
   7143 
   7144 
   7145 
   7146 
   7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   7148 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   7149 if ${lt_cv_path_NM+:} false; then :
   7150   $as_echo_n "(cached) " >&6
   7151 else
   7152   if test -n "$NM"; then
   7153   # Let the user override the test.
   7154   lt_cv_path_NM=$NM
   7155 else
   7156   lt_nm_to_check=${ac_tool_prefix}nm
   7157   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   7158     lt_nm_to_check="$lt_nm_to_check nm"
   7159   fi
   7160   for lt_tmp_nm in $lt_nm_to_check; do
   7161     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7162     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   7163       IFS=$lt_save_ifs
   7164       test -z "$ac_dir" && ac_dir=.
   7165       tmp_nm=$ac_dir/$lt_tmp_nm
   7166       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   7167 	# Check to see if the nm accepts a BSD-compat flag.
   7168 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   7169 	#   nm: unknown option "B" ignored
   7170 	# Tru64's nm complains that /dev/null is an invalid object file
   7171 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   7172 	case $build_os in
   7173 	mingw*) lt_bad_file=conftest.nm/nofile ;;
   7174 	*) lt_bad_file=/dev/null ;;
   7175 	esac
   7176 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
   7177 	*$lt_bad_file* | *'Invalid file or object type'*)
   7178 	  lt_cv_path_NM="$tmp_nm -B"
   7179 	  break 2
   7180 	  ;;
   7181 	*)
   7182 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   7183 	  */dev/null*)
   7184 	    lt_cv_path_NM="$tmp_nm -p"
   7185 	    break 2
   7186 	    ;;
   7187 	  *)
   7188 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   7189 	    continue # so that we can try to find one that supports BSD flags
   7190 	    ;;
   7191 	  esac
   7192 	  ;;
   7193 	esac
   7194       fi
   7195     done
   7196     IFS=$lt_save_ifs
   7197   done
   7198   : ${lt_cv_path_NM=no}
   7199 fi
   7200 fi
   7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   7202 $as_echo "$lt_cv_path_NM" >&6; }
   7203 if test no != "$lt_cv_path_NM"; then
   7204   NM=$lt_cv_path_NM
   7205 else
   7206   # Didn't find any BSD compatible name lister, look for dumpbin.
   7207   if test -n "$DUMPBIN"; then :
   7208     # Let the user override the test.
   7209   else
   7210     if test -n "$ac_tool_prefix"; then
   7211   for ac_prog in dumpbin "link -dump"
   7212   do
   7213     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   7214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7216 $as_echo_n "checking for $ac_word... " >&6; }
   7217 if ${ac_cv_prog_DUMPBIN+:} false; then :
   7218   $as_echo_n "(cached) " >&6
   7219 else
   7220   if test -n "$DUMPBIN"; then
   7221   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   7222 else
   7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7224 for as_dir in $PATH
   7225 do
   7226   IFS=$as_save_IFS
   7227   test -z "$as_dir" && as_dir=.
   7228     for ac_exec_ext in '' $ac_executable_extensions; do
   7229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7230     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   7231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7232     break 2
   7233   fi
   7234 done
   7235   done
   7236 IFS=$as_save_IFS
   7237 
   7238 fi
   7239 fi
   7240 DUMPBIN=$ac_cv_prog_DUMPBIN
   7241 if test -n "$DUMPBIN"; then
   7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   7243 $as_echo "$DUMPBIN" >&6; }
   7244 else
   7245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7246 $as_echo "no" >&6; }
   7247 fi
   7248 
   7249 
   7250     test -n "$DUMPBIN" && break
   7251   done
   7252 fi
   7253 if test -z "$DUMPBIN"; then
   7254   ac_ct_DUMPBIN=$DUMPBIN
   7255   for ac_prog in dumpbin "link -dump"
   7256 do
   7257   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7258 set dummy $ac_prog; ac_word=$2
   7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7260 $as_echo_n "checking for $ac_word... " >&6; }
   7261 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   7262   $as_echo_n "(cached) " >&6
   7263 else
   7264   if test -n "$ac_ct_DUMPBIN"; then
   7265   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   7266 else
   7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7268 for as_dir in $PATH
   7269 do
   7270   IFS=$as_save_IFS
   7271   test -z "$as_dir" && as_dir=.
   7272     for ac_exec_ext in '' $ac_executable_extensions; do
   7273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7274     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   7275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7276     break 2
   7277   fi
   7278 done
   7279   done
   7280 IFS=$as_save_IFS
   7281 
   7282 fi
   7283 fi
   7284 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   7285 if test -n "$ac_ct_DUMPBIN"; then
   7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   7287 $as_echo "$ac_ct_DUMPBIN" >&6; }
   7288 else
   7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7290 $as_echo "no" >&6; }
   7291 fi
   7292 
   7293 
   7294   test -n "$ac_ct_DUMPBIN" && break
   7295 done
   7296 
   7297   if test "x$ac_ct_DUMPBIN" = x; then
   7298     DUMPBIN=":"
   7299   else
   7300     case $cross_compiling:$ac_tool_warned in
   7301 yes:)
   7302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7304 ac_tool_warned=yes ;;
   7305 esac
   7306     DUMPBIN=$ac_ct_DUMPBIN
   7307   fi
   7308 fi
   7309 
   7310     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
   7311     *COFF*)
   7312       DUMPBIN="$DUMPBIN -symbols -headers"
   7313       ;;
   7314     *)
   7315       DUMPBIN=:
   7316       ;;
   7317     esac
   7318   fi
   7319 
   7320   if test : != "$DUMPBIN"; then
   7321     NM=$DUMPBIN
   7322   fi
   7323 fi
   7324 test -z "$NM" && NM=nm
   7325 
   7326 
   7327 
   7328 
   7329 
   7330 
   7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   7332 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   7333 if ${lt_cv_nm_interface+:} false; then :
   7334   $as_echo_n "(cached) " >&6
   7335 else
   7336   lt_cv_nm_interface="BSD nm"
   7337   echo "int some_variable = 0;" > conftest.$ac_ext
   7338   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   7339   (eval "$ac_compile" 2>conftest.err)
   7340   cat conftest.err >&5
   7341   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   7342   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   7343   cat conftest.err >&5
   7344   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   7345   cat conftest.out >&5
   7346   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   7347     lt_cv_nm_interface="MS dumpbin"
   7348   fi
   7349   rm -f conftest*
   7350 fi
   7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   7352 $as_echo "$lt_cv_nm_interface" >&6; }
   7353 
   7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   7355 $as_echo_n "checking whether ln -s works... " >&6; }
   7356 LN_S=$as_ln_s
   7357 if test "$LN_S" = "ln -s"; then
   7358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7359 $as_echo "yes" >&6; }
   7360 else
   7361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   7362 $as_echo "no, using $LN_S" >&6; }
   7363 fi
   7364 
   7365 # find the maximum length of command line arguments
   7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   7367 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   7368 if ${lt_cv_sys_max_cmd_len+:} false; then :
   7369   $as_echo_n "(cached) " >&6
   7370 else
   7371     i=0
   7372   teststring=ABCD
   7373 
   7374   case $build_os in
   7375   msdosdjgpp*)
   7376     # On DJGPP, this test can blow up pretty badly due to problems in libc
   7377     # (any single argument exceeding 2000 bytes causes a buffer overrun
   7378     # during glob expansion).  Even if it were fixed, the result of this
   7379     # check would be larger than it should be.
   7380     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   7381     ;;
   7382 
   7383   gnu*)
   7384     # Under GNU Hurd, this test is not required because there is
   7385     # no limit to the length of command line arguments.
   7386     # Libtool will interpret -1 as no limit whatsoever
   7387     lt_cv_sys_max_cmd_len=-1;
   7388     ;;
   7389 
   7390   cygwin* | mingw* | cegcc*)
   7391     # On Win9x/ME, this test blows up -- it succeeds, but takes
   7392     # about 5 minutes as the teststring grows exponentially.
   7393     # Worse, since 9x/ME are not pre-emptively multitasking,
   7394     # you end up with a "frozen" computer, even though with patience
   7395     # the test eventually succeeds (with a max line length of 256k).
   7396     # Instead, let's just punt: use the minimum linelength reported by
   7397     # all of the supported platforms: 8192 (on NT/2K/XP).
   7398     lt_cv_sys_max_cmd_len=8192;
   7399     ;;
   7400 
   7401   mint*)
   7402     # On MiNT this can take a long time and run out of memory.
   7403     lt_cv_sys_max_cmd_len=8192;
   7404     ;;
   7405 
   7406   amigaos*)
   7407     # On AmigaOS with pdksh, this test takes hours, literally.
   7408     # So we just punt and use a minimum line length of 8192.
   7409     lt_cv_sys_max_cmd_len=8192;
   7410     ;;
   7411 
   7412   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
   7413     # This has been around since 386BSD, at least.  Likely further.
   7414     if test -x /sbin/sysctl; then
   7415       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   7416     elif test -x /usr/sbin/sysctl; then
   7417       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   7418     else
   7419       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   7420     fi
   7421     # And add a safety zone
   7422     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   7423     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   7424     ;;
   7425 
   7426   interix*)
   7427     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   7428     lt_cv_sys_max_cmd_len=196608
   7429     ;;
   7430 
   7431   os2*)
   7432     # The test takes a long time on OS/2.
   7433     lt_cv_sys_max_cmd_len=8192
   7434     ;;
   7435 
   7436   osf*)
   7437     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   7438     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   7439     # nice to cause kernel panics so lets avoid the loop below.
   7440     # First set a reasonable default.
   7441     lt_cv_sys_max_cmd_len=16384
   7442     #
   7443     if test -x /sbin/sysconfig; then
   7444       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   7445         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   7446       esac
   7447     fi
   7448     ;;
   7449   sco3.2v5*)
   7450     lt_cv_sys_max_cmd_len=102400
   7451     ;;
   7452   sysv5* | sco5v6* | sysv4.2uw2*)
   7453     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   7454     if test -n "$kargmax"; then
   7455       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   7456     else
   7457       lt_cv_sys_max_cmd_len=32768
   7458     fi
   7459     ;;
   7460   *)
   7461     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   7462     if test -n "$lt_cv_sys_max_cmd_len" && \
   7463        test undefined != "$lt_cv_sys_max_cmd_len"; then
   7464       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   7465       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   7466     else
   7467       # Make teststring a little bigger before we do anything with it.
   7468       # a 1K string should be a reasonable start.
   7469       for i in 1 2 3 4 5 6 7 8; do
   7470         teststring=$teststring$teststring
   7471       done
   7472       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   7473       # If test is not a shell built-in, we'll probably end up computing a
   7474       # maximum length that is only half of the actual maximum length, but
   7475       # we can't tell.
   7476       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   7477 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   7478 	      test 17 != "$i" # 1/2 MB should be enough
   7479       do
   7480         i=`expr $i + 1`
   7481         teststring=$teststring$teststring
   7482       done
   7483       # Only check the string length outside the loop.
   7484       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   7485       teststring=
   7486       # Add a significant safety factor because C++ compilers can tack on
   7487       # massive amounts of additional arguments before passing them to the
   7488       # linker.  It appears as though 1/2 is a usable value.
   7489       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   7490     fi
   7491     ;;
   7492   esac
   7493 
   7494 fi
   7495 
   7496 if test -n "$lt_cv_sys_max_cmd_len"; then
   7497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   7498 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   7499 else
   7500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   7501 $as_echo "none" >&6; }
   7502 fi
   7503 max_cmd_len=$lt_cv_sys_max_cmd_len
   7504 
   7505 
   7506 
   7507 
   7508 
   7509 
   7510 : ${CP="cp -f"}
   7511 : ${MV="mv -f"}
   7512 : ${RM="rm -f"}
   7513 
   7514 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   7515   lt_unset=unset
   7516 else
   7517   lt_unset=false
   7518 fi
   7519 
   7520 
   7521 
   7522 
   7523 
   7524 # test EBCDIC or ASCII
   7525 case `echo X|tr X '\101'` in
   7526  A) # ASCII based system
   7527     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   7528   lt_SP2NL='tr \040 \012'
   7529   lt_NL2SP='tr \015\012 \040\040'
   7530   ;;
   7531  *) # EBCDIC based system
   7532   lt_SP2NL='tr \100 \n'
   7533   lt_NL2SP='tr \r\n \100\100'
   7534   ;;
   7535 esac
   7536 
   7537 
   7538 
   7539 
   7540 
   7541 
   7542 
   7543 
   7544 
   7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   7546 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
   7547 if ${lt_cv_to_host_file_cmd+:} false; then :
   7548   $as_echo_n "(cached) " >&6
   7549 else
   7550   case $host in
   7551   *-*-mingw* )
   7552     case $build in
   7553       *-*-mingw* ) # actually msys
   7554         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   7555         ;;
   7556       *-*-cygwin* )
   7557         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   7558         ;;
   7559       * ) # otherwise, assume *nix
   7560         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   7561         ;;
   7562     esac
   7563     ;;
   7564   *-*-cygwin* )
   7565     case $build in
   7566       *-*-mingw* ) # actually msys
   7567         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   7568         ;;
   7569       *-*-cygwin* )
   7570         lt_cv_to_host_file_cmd=func_convert_file_noop
   7571         ;;
   7572       * ) # otherwise, assume *nix
   7573         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   7574         ;;
   7575     esac
   7576     ;;
   7577   * ) # unhandled hosts (and "normal" native builds)
   7578     lt_cv_to_host_file_cmd=func_convert_file_noop
   7579     ;;
   7580 esac
   7581 
   7582 fi
   7583 
   7584 to_host_file_cmd=$lt_cv_to_host_file_cmd
   7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   7586 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
   7587 
   7588 
   7589 
   7590 
   7591 
   7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   7593 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
   7594 if ${lt_cv_to_tool_file_cmd+:} false; then :
   7595   $as_echo_n "(cached) " >&6
   7596 else
   7597   #assume ordinary cross tools, or native build.
   7598 lt_cv_to_tool_file_cmd=func_convert_file_noop
   7599 case $host in
   7600   *-*-mingw* )
   7601     case $build in
   7602       *-*-mingw* ) # actually msys
   7603         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   7604         ;;
   7605     esac
   7606     ;;
   7607 esac
   7608 
   7609 fi
   7610 
   7611 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   7613 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
   7614 
   7615 
   7616 
   7617 
   7618 
   7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   7620 $as_echo_n "checking for $LD option to reload object files... " >&6; }
   7621 if ${lt_cv_ld_reload_flag+:} false; then :
   7622   $as_echo_n "(cached) " >&6
   7623 else
   7624   lt_cv_ld_reload_flag='-r'
   7625 fi
   7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   7627 $as_echo "$lt_cv_ld_reload_flag" >&6; }
   7628 reload_flag=$lt_cv_ld_reload_flag
   7629 case $reload_flag in
   7630 "" | " "*) ;;
   7631 *) reload_flag=" $reload_flag" ;;
   7632 esac
   7633 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   7634 case $host_os in
   7635   cygwin* | mingw* | pw32* | cegcc*)
   7636     if test yes != "$GCC"; then
   7637       reload_cmds=false
   7638     fi
   7639     ;;
   7640   darwin*)
   7641     if test yes = "$GCC"; then
   7642       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   7643     else
   7644       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   7645     fi
   7646     ;;
   7647 esac
   7648 
   7649 
   7650 
   7651 
   7652 
   7653 
   7654 
   7655 
   7656 
   7657 if test -n "$ac_tool_prefix"; then
   7658   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   7659 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7661 $as_echo_n "checking for $ac_word... " >&6; }
   7662 if ${ac_cv_prog_OBJDUMP+:} false; then :
   7663   $as_echo_n "(cached) " >&6
   7664 else
   7665   if test -n "$OBJDUMP"; then
   7666   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   7667 else
   7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7669 for as_dir in $PATH
   7670 do
   7671   IFS=$as_save_IFS
   7672   test -z "$as_dir" && as_dir=.
   7673     for ac_exec_ext in '' $ac_executable_extensions; do
   7674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7675     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   7676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7677     break 2
   7678   fi
   7679 done
   7680   done
   7681 IFS=$as_save_IFS
   7682 
   7683 fi
   7684 fi
   7685 OBJDUMP=$ac_cv_prog_OBJDUMP
   7686 if test -n "$OBJDUMP"; then
   7687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   7688 $as_echo "$OBJDUMP" >&6; }
   7689 else
   7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7691 $as_echo "no" >&6; }
   7692 fi
   7693 
   7694 
   7695 fi
   7696 if test -z "$ac_cv_prog_OBJDUMP"; then
   7697   ac_ct_OBJDUMP=$OBJDUMP
   7698   # Extract the first word of "objdump", so it can be a program name with args.
   7699 set dummy objdump; ac_word=$2
   7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7701 $as_echo_n "checking for $ac_word... " >&6; }
   7702 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   7703   $as_echo_n "(cached) " >&6
   7704 else
   7705   if test -n "$ac_ct_OBJDUMP"; then
   7706   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   7707 else
   7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7709 for as_dir in $PATH
   7710 do
   7711   IFS=$as_save_IFS
   7712   test -z "$as_dir" && as_dir=.
   7713     for ac_exec_ext in '' $ac_executable_extensions; do
   7714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7715     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   7716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7717     break 2
   7718   fi
   7719 done
   7720   done
   7721 IFS=$as_save_IFS
   7722 
   7723 fi
   7724 fi
   7725 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   7726 if test -n "$ac_ct_OBJDUMP"; then
   7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   7728 $as_echo "$ac_ct_OBJDUMP" >&6; }
   7729 else
   7730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7731 $as_echo "no" >&6; }
   7732 fi
   7733 
   7734   if test "x$ac_ct_OBJDUMP" = x; then
   7735     OBJDUMP="false"
   7736   else
   7737     case $cross_compiling:$ac_tool_warned in
   7738 yes:)
   7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7741 ac_tool_warned=yes ;;
   7742 esac
   7743     OBJDUMP=$ac_ct_OBJDUMP
   7744   fi
   7745 else
   7746   OBJDUMP="$ac_cv_prog_OBJDUMP"
   7747 fi
   7748 
   7749 test -z "$OBJDUMP" && OBJDUMP=objdump
   7750 
   7751 
   7752 
   7753 
   7754 
   7755 
   7756 
   7757 
   7758 
   7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   7760 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   7761 if ${lt_cv_deplibs_check_method+:} false; then :
   7762   $as_echo_n "(cached) " >&6
   7763 else
   7764   lt_cv_file_magic_cmd='$MAGIC_CMD'
   7765 lt_cv_file_magic_test_file=
   7766 lt_cv_deplibs_check_method='unknown'
   7767 # Need to set the preceding variable on all platforms that support
   7768 # interlibrary dependencies.
   7769 # 'none' -- dependencies not supported.
   7770 # 'unknown' -- same as none, but documents that we really don't know.
   7771 # 'pass_all' -- all dependencies passed with no checks.
   7772 # 'test_compile' -- check by making test program.
   7773 # 'file_magic [[regex]]' -- check by looking for files in library path
   7774 # that responds to the $file_magic_cmd with a given extended regex.
   7775 # If you have 'file' or equivalent on your system and you're not sure
   7776 # whether 'pass_all' will *always* work, you probably want this one.
   7777 
   7778 case $host_os in
   7779 aix[4-9]*)
   7780   lt_cv_deplibs_check_method=pass_all
   7781   ;;
   7782 
   7783 beos*)
   7784   lt_cv_deplibs_check_method=pass_all
   7785   ;;
   7786 
   7787 bsdi[45]*)
   7788   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   7789   lt_cv_file_magic_cmd='/usr/bin/file -L'
   7790   lt_cv_file_magic_test_file=/shlib/libc.so
   7791   ;;
   7792 
   7793 cygwin*)
   7794   # func_win32_libid is a shell function defined in ltmain.sh
   7795   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   7796   lt_cv_file_magic_cmd='func_win32_libid'
   7797   ;;
   7798 
   7799 mingw* | pw32*)
   7800   # Base MSYS/MinGW do not provide the 'file' command needed by
   7801   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   7802   # unless we find 'file', for example because we are cross-compiling.
   7803   if ( file / ) >/dev/null 2>&1; then
   7804     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   7805     lt_cv_file_magic_cmd='func_win32_libid'
   7806   else
   7807     # Keep this pattern in sync with the one in func_win32_libid.
   7808     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   7809     lt_cv_file_magic_cmd='$OBJDUMP -f'
   7810   fi
   7811   ;;
   7812 
   7813 cegcc*)
   7814   # use the weaker test based on 'objdump'. See mingw*.
   7815   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   7816   lt_cv_file_magic_cmd='$OBJDUMP -f'
   7817   ;;
   7818 
   7819 darwin* | rhapsody*)
   7820   lt_cv_deplibs_check_method=pass_all
   7821   ;;
   7822 
   7823 freebsd* | dragonfly*)
   7824   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   7825     case $host_cpu in
   7826     i*86 )
   7827       # Not sure whether the presence of OpenBSD here was a mistake.
   7828       # Let's accept both of them until this is cleared up.
   7829       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   7830       lt_cv_file_magic_cmd=/usr/bin/file
   7831       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   7832       ;;
   7833     esac
   7834   else
   7835     lt_cv_deplibs_check_method=pass_all
   7836   fi
   7837   ;;
   7838 
   7839 haiku*)
   7840   lt_cv_deplibs_check_method=pass_all
   7841   ;;
   7842 
   7843 hpux10.20* | hpux11*)
   7844   lt_cv_file_magic_cmd=/usr/bin/file
   7845   case $host_cpu in
   7846   ia64*)
   7847     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   7848     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   7849     ;;
   7850   hppa*64*)
   7851     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]'
   7852     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   7853     ;;
   7854   *)
   7855     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   7856     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   7857     ;;
   7858   esac
   7859   ;;
   7860 
   7861 interix[3-9]*)
   7862   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   7863   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   7864   ;;
   7865 
   7866 irix5* | irix6* | nonstopux*)
   7867   case $LD in
   7868   *-32|*"-32 ") libmagic=32-bit;;
   7869   *-n32|*"-n32 ") libmagic=N32;;
   7870   *-64|*"-64 ") libmagic=64-bit;;
   7871   *) libmagic=never-match;;
   7872   esac
   7873   lt_cv_deplibs_check_method=pass_all
   7874   ;;
   7875 
   7876 # This must be glibc/ELF.
   7877 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   7878   lt_cv_deplibs_check_method=pass_all
   7879   ;;
   7880 
   7881 netbsd*)
   7882   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   7883     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   7884   else
   7885     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   7886   fi
   7887   ;;
   7888 
   7889 newos6*)
   7890   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   7891   lt_cv_file_magic_cmd=/usr/bin/file
   7892   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   7893   ;;
   7894 
   7895 *nto* | *qnx*)
   7896   lt_cv_deplibs_check_method=pass_all
   7897   ;;
   7898 
   7899 openbsd* | bitrig*)
   7900   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   7901     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   7902   else
   7903     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   7904   fi
   7905   ;;
   7906 
   7907 osf3* | osf4* | osf5*)
   7908   lt_cv_deplibs_check_method=pass_all
   7909   ;;
   7910 
   7911 rdos*)
   7912   lt_cv_deplibs_check_method=pass_all
   7913   ;;
   7914 
   7915 solaris*)
   7916   lt_cv_deplibs_check_method=pass_all
   7917   ;;
   7918 
   7919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   7920   lt_cv_deplibs_check_method=pass_all
   7921   ;;
   7922 
   7923 sysv4 | sysv4.3*)
   7924   case $host_vendor in
   7925   motorola)
   7926     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]'
   7927     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   7928     ;;
   7929   ncr)
   7930     lt_cv_deplibs_check_method=pass_all
   7931     ;;
   7932   sequent)
   7933     lt_cv_file_magic_cmd='/bin/file'
   7934     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   7935     ;;
   7936   sni)
   7937     lt_cv_file_magic_cmd='/bin/file'
   7938     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   7939     lt_cv_file_magic_test_file=/lib/libc.so
   7940     ;;
   7941   siemens)
   7942     lt_cv_deplibs_check_method=pass_all
   7943     ;;
   7944   pc)
   7945     lt_cv_deplibs_check_method=pass_all
   7946     ;;
   7947   esac
   7948   ;;
   7949 
   7950 tpf*)
   7951   lt_cv_deplibs_check_method=pass_all
   7952   ;;
   7953 os2*)
   7954   lt_cv_deplibs_check_method=pass_all
   7955   ;;
   7956 esac
   7957 
   7958 fi
   7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   7960 $as_echo "$lt_cv_deplibs_check_method" >&6; }
   7961 
   7962 file_magic_glob=
   7963 want_nocaseglob=no
   7964 if test "$build" = "$host"; then
   7965   case $host_os in
   7966   mingw* | pw32*)
   7967     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   7968       want_nocaseglob=yes
   7969     else
   7970       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   7971     fi
   7972     ;;
   7973   esac
   7974 fi
   7975 
   7976 file_magic_cmd=$lt_cv_file_magic_cmd
   7977 deplibs_check_method=$lt_cv_deplibs_check_method
   7978 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   7979 
   7980 
   7981 
   7982 
   7983 
   7984 
   7985 
   7986 
   7987 
   7988 
   7989 
   7990 
   7991 
   7992 
   7993 
   7994 
   7995 
   7996 
   7997 
   7998 
   7999 
   8000 
   8001 if test -n "$ac_tool_prefix"; then
   8002   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   8003 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8005 $as_echo_n "checking for $ac_word... " >&6; }
   8006 if ${ac_cv_prog_DLLTOOL+:} false; then :
   8007   $as_echo_n "(cached) " >&6
   8008 else
   8009   if test -n "$DLLTOOL"; then
   8010   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   8011 else
   8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8013 for as_dir in $PATH
   8014 do
   8015   IFS=$as_save_IFS
   8016   test -z "$as_dir" && as_dir=.
   8017     for ac_exec_ext in '' $ac_executable_extensions; do
   8018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8019     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   8020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8021     break 2
   8022   fi
   8023 done
   8024   done
   8025 IFS=$as_save_IFS
   8026 
   8027 fi
   8028 fi
   8029 DLLTOOL=$ac_cv_prog_DLLTOOL
   8030 if test -n "$DLLTOOL"; then
   8031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   8032 $as_echo "$DLLTOOL" >&6; }
   8033 else
   8034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8035 $as_echo "no" >&6; }
   8036 fi
   8037 
   8038 
   8039 fi
   8040 if test -z "$ac_cv_prog_DLLTOOL"; then
   8041   ac_ct_DLLTOOL=$DLLTOOL
   8042   # Extract the first word of "dlltool", so it can be a program name with args.
   8043 set dummy dlltool; ac_word=$2
   8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8045 $as_echo_n "checking for $ac_word... " >&6; }
   8046 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   8047   $as_echo_n "(cached) " >&6
   8048 else
   8049   if test -n "$ac_ct_DLLTOOL"; then
   8050   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   8051 else
   8052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8053 for as_dir in $PATH
   8054 do
   8055   IFS=$as_save_IFS
   8056   test -z "$as_dir" && as_dir=.
   8057     for ac_exec_ext in '' $ac_executable_extensions; do
   8058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8059     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   8060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8061     break 2
   8062   fi
   8063 done
   8064   done
   8065 IFS=$as_save_IFS
   8066 
   8067 fi
   8068 fi
   8069 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   8070 if test -n "$ac_ct_DLLTOOL"; then
   8071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   8072 $as_echo "$ac_ct_DLLTOOL" >&6; }
   8073 else
   8074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8075 $as_echo "no" >&6; }
   8076 fi
   8077 
   8078   if test "x$ac_ct_DLLTOOL" = x; then
   8079     DLLTOOL="false"
   8080   else
   8081     case $cross_compiling:$ac_tool_warned in
   8082 yes:)
   8083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8085 ac_tool_warned=yes ;;
   8086 esac
   8087     DLLTOOL=$ac_ct_DLLTOOL
   8088   fi
   8089 else
   8090   DLLTOOL="$ac_cv_prog_DLLTOOL"
   8091 fi
   8092 
   8093 test -z "$DLLTOOL" && DLLTOOL=dlltool
   8094 
   8095 
   8096 
   8097 
   8098 
   8099 
   8100 
   8101 
   8102 
   8103 
   8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   8105 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
   8106 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
   8107   $as_echo_n "(cached) " >&6
   8108 else
   8109   lt_cv_sharedlib_from_linklib_cmd='unknown'
   8110 
   8111 case $host_os in
   8112 cygwin* | mingw* | pw32* | cegcc*)
   8113   # two different shell functions defined in ltmain.sh;
   8114   # decide which one to use based on capabilities of $DLLTOOL
   8115   case `$DLLTOOL --help 2>&1` in
   8116   *--identify-strict*)
   8117     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   8118     ;;
   8119   *)
   8120     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   8121     ;;
   8122   esac
   8123   ;;
   8124 *)
   8125   # fallback: assume linklib IS sharedlib
   8126   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   8127   ;;
   8128 esac
   8129 
   8130 fi
   8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   8132 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   8133 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   8134 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   8135 
   8136 
   8137 
   8138 
   8139 
   8140 
   8141 
   8142 if test -n "$ac_tool_prefix"; then
   8143   for ac_prog in ar
   8144   do
   8145     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   8146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8148 $as_echo_n "checking for $ac_word... " >&6; }
   8149 if ${ac_cv_prog_AR+:} false; then :
   8150   $as_echo_n "(cached) " >&6
   8151 else
   8152   if test -n "$AR"; then
   8153   ac_cv_prog_AR="$AR" # Let the user override the test.
   8154 else
   8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8156 for as_dir in $PATH
   8157 do
   8158   IFS=$as_save_IFS
   8159   test -z "$as_dir" && as_dir=.
   8160     for ac_exec_ext in '' $ac_executable_extensions; do
   8161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8162     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   8163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8164     break 2
   8165   fi
   8166 done
   8167   done
   8168 IFS=$as_save_IFS
   8169 
   8170 fi
   8171 fi
   8172 AR=$ac_cv_prog_AR
   8173 if test -n "$AR"; then
   8174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   8175 $as_echo "$AR" >&6; }
   8176 else
   8177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8178 $as_echo "no" >&6; }
   8179 fi
   8180 
   8181 
   8182     test -n "$AR" && break
   8183   done
   8184 fi
   8185 if test -z "$AR"; then
   8186   ac_ct_AR=$AR
   8187   for ac_prog in ar
   8188 do
   8189   # Extract the first word of "$ac_prog", so it can be a program name with args.
   8190 set dummy $ac_prog; ac_word=$2
   8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8192 $as_echo_n "checking for $ac_word... " >&6; }
   8193 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   8194   $as_echo_n "(cached) " >&6
   8195 else
   8196   if test -n "$ac_ct_AR"; then
   8197   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   8198 else
   8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8200 for as_dir in $PATH
   8201 do
   8202   IFS=$as_save_IFS
   8203   test -z "$as_dir" && as_dir=.
   8204     for ac_exec_ext in '' $ac_executable_extensions; do
   8205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8206     ac_cv_prog_ac_ct_AR="$ac_prog"
   8207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8208     break 2
   8209   fi
   8210 done
   8211   done
   8212 IFS=$as_save_IFS
   8213 
   8214 fi
   8215 fi
   8216 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   8217 if test -n "$ac_ct_AR"; then
   8218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   8219 $as_echo "$ac_ct_AR" >&6; }
   8220 else
   8221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8222 $as_echo "no" >&6; }
   8223 fi
   8224 
   8225 
   8226   test -n "$ac_ct_AR" && break
   8227 done
   8228 
   8229   if test "x$ac_ct_AR" = x; then
   8230     AR="false"
   8231   else
   8232     case $cross_compiling:$ac_tool_warned in
   8233 yes:)
   8234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8236 ac_tool_warned=yes ;;
   8237 esac
   8238     AR=$ac_ct_AR
   8239   fi
   8240 fi
   8241 
   8242 : ${AR=ar}
   8243 : ${AR_FLAGS=cru}
   8244 
   8245 
   8246 
   8247 
   8248 
   8249 
   8250 
   8251 
   8252 
   8253 
   8254 
   8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   8256 $as_echo_n "checking for archiver @FILE support... " >&6; }
   8257 if ${lt_cv_ar_at_file+:} false; then :
   8258   $as_echo_n "(cached) " >&6
   8259 else
   8260   lt_cv_ar_at_file=no
   8261    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8262 /* end confdefs.h.  */
   8263 
   8264 int
   8265 main ()
   8266 {
   8267 
   8268   ;
   8269   return 0;
   8270 }
   8271 _ACEOF
   8272 if ac_fn_c_try_compile "$LINENO"; then :
   8273   echo conftest.$ac_objext > conftest.lst
   8274       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   8275       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   8276   (eval $lt_ar_try) 2>&5
   8277   ac_status=$?
   8278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8279   test $ac_status = 0; }
   8280       if test 0 -eq "$ac_status"; then
   8281 	# Ensure the archiver fails upon bogus file names.
   8282 	rm -f conftest.$ac_objext libconftest.a
   8283 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   8284   (eval $lt_ar_try) 2>&5
   8285   ac_status=$?
   8286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8287   test $ac_status = 0; }
   8288 	if test 0 -ne "$ac_status"; then
   8289           lt_cv_ar_at_file=@
   8290         fi
   8291       fi
   8292       rm -f conftest.* libconftest.a
   8293 
   8294 fi
   8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8296 
   8297 fi
   8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   8299 $as_echo "$lt_cv_ar_at_file" >&6; }
   8300 
   8301 if test no = "$lt_cv_ar_at_file"; then
   8302   archiver_list_spec=
   8303 else
   8304   archiver_list_spec=$lt_cv_ar_at_file
   8305 fi
   8306 
   8307 
   8308 
   8309 
   8310 
   8311 
   8312 
   8313 if test -n "$ac_tool_prefix"; then
   8314   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   8315 set dummy ${ac_tool_prefix}strip; ac_word=$2
   8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8317 $as_echo_n "checking for $ac_word... " >&6; }
   8318 if ${ac_cv_prog_STRIP+:} false; then :
   8319   $as_echo_n "(cached) " >&6
   8320 else
   8321   if test -n "$STRIP"; then
   8322   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   8323 else
   8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8325 for as_dir in $PATH
   8326 do
   8327   IFS=$as_save_IFS
   8328   test -z "$as_dir" && as_dir=.
   8329     for ac_exec_ext in '' $ac_executable_extensions; do
   8330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8331     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   8332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8333     break 2
   8334   fi
   8335 done
   8336   done
   8337 IFS=$as_save_IFS
   8338 
   8339 fi
   8340 fi
   8341 STRIP=$ac_cv_prog_STRIP
   8342 if test -n "$STRIP"; then
   8343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   8344 $as_echo "$STRIP" >&6; }
   8345 else
   8346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8347 $as_echo "no" >&6; }
   8348 fi
   8349 
   8350 
   8351 fi
   8352 if test -z "$ac_cv_prog_STRIP"; then
   8353   ac_ct_STRIP=$STRIP
   8354   # Extract the first word of "strip", so it can be a program name with args.
   8355 set dummy strip; ac_word=$2
   8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8357 $as_echo_n "checking for $ac_word... " >&6; }
   8358 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   8359   $as_echo_n "(cached) " >&6
   8360 else
   8361   if test -n "$ac_ct_STRIP"; then
   8362   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   8363 else
   8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8365 for as_dir in $PATH
   8366 do
   8367   IFS=$as_save_IFS
   8368   test -z "$as_dir" && as_dir=.
   8369     for ac_exec_ext in '' $ac_executable_extensions; do
   8370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8371     ac_cv_prog_ac_ct_STRIP="strip"
   8372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8373     break 2
   8374   fi
   8375 done
   8376   done
   8377 IFS=$as_save_IFS
   8378 
   8379 fi
   8380 fi
   8381 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   8382 if test -n "$ac_ct_STRIP"; then
   8383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   8384 $as_echo "$ac_ct_STRIP" >&6; }
   8385 else
   8386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8387 $as_echo "no" >&6; }
   8388 fi
   8389 
   8390   if test "x$ac_ct_STRIP" = x; then
   8391     STRIP=":"
   8392   else
   8393     case $cross_compiling:$ac_tool_warned in
   8394 yes:)
   8395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8397 ac_tool_warned=yes ;;
   8398 esac
   8399     STRIP=$ac_ct_STRIP
   8400   fi
   8401 else
   8402   STRIP="$ac_cv_prog_STRIP"
   8403 fi
   8404 
   8405 test -z "$STRIP" && STRIP=:
   8406 
   8407 
   8408 
   8409 
   8410 
   8411 
   8412 if test -n "$ac_tool_prefix"; then
   8413   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   8414 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8416 $as_echo_n "checking for $ac_word... " >&6; }
   8417 if ${ac_cv_prog_RANLIB+:} false; then :
   8418   $as_echo_n "(cached) " >&6
   8419 else
   8420   if test -n "$RANLIB"; then
   8421   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   8422 else
   8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8424 for as_dir in $PATH
   8425 do
   8426   IFS=$as_save_IFS
   8427   test -z "$as_dir" && as_dir=.
   8428     for ac_exec_ext in '' $ac_executable_extensions; do
   8429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8430     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   8431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8432     break 2
   8433   fi
   8434 done
   8435   done
   8436 IFS=$as_save_IFS
   8437 
   8438 fi
   8439 fi
   8440 RANLIB=$ac_cv_prog_RANLIB
   8441 if test -n "$RANLIB"; then
   8442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   8443 $as_echo "$RANLIB" >&6; }
   8444 else
   8445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8446 $as_echo "no" >&6; }
   8447 fi
   8448 
   8449 
   8450 fi
   8451 if test -z "$ac_cv_prog_RANLIB"; then
   8452   ac_ct_RANLIB=$RANLIB
   8453   # Extract the first word of "ranlib", so it can be a program name with args.
   8454 set dummy ranlib; ac_word=$2
   8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8456 $as_echo_n "checking for $ac_word... " >&6; }
   8457 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   8458   $as_echo_n "(cached) " >&6
   8459 else
   8460   if test -n "$ac_ct_RANLIB"; then
   8461   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   8462 else
   8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8464 for as_dir in $PATH
   8465 do
   8466   IFS=$as_save_IFS
   8467   test -z "$as_dir" && as_dir=.
   8468     for ac_exec_ext in '' $ac_executable_extensions; do
   8469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8470     ac_cv_prog_ac_ct_RANLIB="ranlib"
   8471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8472     break 2
   8473   fi
   8474 done
   8475   done
   8476 IFS=$as_save_IFS
   8477 
   8478 fi
   8479 fi
   8480 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   8481 if test -n "$ac_ct_RANLIB"; then
   8482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   8483 $as_echo "$ac_ct_RANLIB" >&6; }
   8484 else
   8485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8486 $as_echo "no" >&6; }
   8487 fi
   8488 
   8489   if test "x$ac_ct_RANLIB" = x; then
   8490     RANLIB=":"
   8491   else
   8492     case $cross_compiling:$ac_tool_warned in
   8493 yes:)
   8494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8496 ac_tool_warned=yes ;;
   8497 esac
   8498     RANLIB=$ac_ct_RANLIB
   8499   fi
   8500 else
   8501   RANLIB="$ac_cv_prog_RANLIB"
   8502 fi
   8503 
   8504 test -z "$RANLIB" && RANLIB=:
   8505 
   8506 
   8507 
   8508 
   8509 
   8510 
   8511 # Determine commands to create old-style static archives.
   8512 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   8513 old_postinstall_cmds='chmod 644 $oldlib'
   8514 old_postuninstall_cmds=
   8515 
   8516 if test -n "$RANLIB"; then
   8517   case $host_os in
   8518   bitrig* | openbsd*)
   8519     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   8520     ;;
   8521   *)
   8522     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   8523     ;;
   8524   esac
   8525   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   8526 fi
   8527 
   8528 case $host_os in
   8529   darwin*)
   8530     lock_old_archive_extraction=yes ;;
   8531   *)
   8532     lock_old_archive_extraction=no ;;
   8533 esac
   8534 
   8535 
   8536 
   8537 
   8538 
   8539 
   8540 
   8541 
   8542 
   8543 
   8544 
   8545 
   8546 
   8547 
   8548 
   8549 
   8550 
   8551 
   8552 
   8553 
   8554 
   8555 for ac_prog in gawk mawk nawk awk
   8556 do
   8557   # Extract the first word of "$ac_prog", so it can be a program name with args.
   8558 set dummy $ac_prog; ac_word=$2
   8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8560 $as_echo_n "checking for $ac_word... " >&6; }
   8561 if ${ac_cv_prog_AWK+:} false; then :
   8562   $as_echo_n "(cached) " >&6
   8563 else
   8564   if test -n "$AWK"; then
   8565   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   8566 else
   8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8568 for as_dir in $PATH
   8569 do
   8570   IFS=$as_save_IFS
   8571   test -z "$as_dir" && as_dir=.
   8572     for ac_exec_ext in '' $ac_executable_extensions; do
   8573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8574     ac_cv_prog_AWK="$ac_prog"
   8575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8576     break 2
   8577   fi
   8578 done
   8579   done
   8580 IFS=$as_save_IFS
   8581 
   8582 fi
   8583 fi
   8584 AWK=$ac_cv_prog_AWK
   8585 if test -n "$AWK"; then
   8586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   8587 $as_echo "$AWK" >&6; }
   8588 else
   8589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8590 $as_echo "no" >&6; }
   8591 fi
   8592 
   8593 
   8594   test -n "$AWK" && break
   8595 done
   8596 
   8597 
   8598 
   8599 
   8600 
   8601 
   8602 
   8603 
   8604 
   8605 
   8606 
   8607 
   8608 
   8609 
   8610 
   8611 
   8612 
   8613 
   8614 
   8615 # If no C compiler was specified, use CC.
   8616 LTCC=${LTCC-"$CC"}
   8617 
   8618 # If no C compiler flags were specified, use CFLAGS.
   8619 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   8620 
   8621 # Allow CC to be a program name with arguments.
   8622 compiler=$CC
   8623 
   8624 
   8625 # Check for command to grab the raw symbol name followed by C symbol from nm.
   8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   8627 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   8628 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   8629   $as_echo_n "(cached) " >&6
   8630 else
   8631 
   8632 # These are sane defaults that work on at least a few old systems.
   8633 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   8634 
   8635 # Character class describing NM global symbol codes.
   8636 symcode='[BCDEGRST]'
   8637 
   8638 # Regexp to match symbols that can be accessed directly from C.
   8639 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   8640 
   8641 # Define system-specific variables.
   8642 case $host_os in
   8643 aix*)
   8644   symcode='[BCDT]'
   8645   ;;
   8646 cygwin* | mingw* | pw32* | cegcc*)
   8647   symcode='[ABCDGISTW]'
   8648   ;;
   8649 hpux*)
   8650   if test ia64 = "$host_cpu"; then
   8651     symcode='[ABCDEGRST]'
   8652   fi
   8653   ;;
   8654 irix* | nonstopux*)
   8655   symcode='[BCDEGRST]'
   8656   ;;
   8657 osf*)
   8658   symcode='[BCDEGQRST]'
   8659   ;;
   8660 solaris*)
   8661   symcode='[BDRT]'
   8662   ;;
   8663 sco3.2v5*)
   8664   symcode='[DT]'
   8665   ;;
   8666 sysv4.2uw2*)
   8667   symcode='[DT]'
   8668   ;;
   8669 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   8670   symcode='[ABDT]'
   8671   ;;
   8672 sysv4)
   8673   symcode='[DFNSTU]'
   8674   ;;
   8675 esac
   8676 
   8677 # If we're using GNU nm, then use its standard symbol codes.
   8678 case `$NM -V 2>&1` in
   8679 *GNU* | *'with BFD'*)
   8680   symcode='[ABCDGIRSTW]' ;;
   8681 esac
   8682 
   8683 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   8684   # Gets list of data symbols to import.
   8685   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
   8686   # Adjust the below global symbol transforms to fixup imported variables.
   8687   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   8688   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   8689   lt_c_name_lib_hook="\
   8690   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   8691   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   8692 else
   8693   # Disable hooks by default.
   8694   lt_cv_sys_global_symbol_to_import=
   8695   lt_cdecl_hook=
   8696   lt_c_name_hook=
   8697   lt_c_name_lib_hook=
   8698 fi
   8699 
   8700 # Transform an extracted symbol line into a proper C declaration.
   8701 # Some systems (esp. on ia64) link data and code symbols differently,
   8702 # so use this general approach.
   8703 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
   8704 $lt_cdecl_hook\
   8705 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   8706 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   8707 
   8708 # Transform an extracted symbol line into symbol name and symbol address
   8709 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
   8710 $lt_c_name_hook\
   8711 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   8712 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   8713 
   8714 # Transform an extracted symbol line into symbol name with lib prefix and
   8715 # symbol address.
   8716 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
   8717 $lt_c_name_lib_hook\
   8718 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   8719 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   8720 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   8721 
   8722 # Handle CRLF in mingw tool chain
   8723 opt_cr=
   8724 case $build_os in
   8725 mingw*)
   8726   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   8727   ;;
   8728 esac
   8729 
   8730 # Try without a prefix underscore, then with it.
   8731 for ac_symprfx in "" "_"; do
   8732 
   8733   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   8734   symxfrm="\\1 $ac_symprfx\\2 \\2"
   8735 
   8736   # Write the raw and C identifiers.
   8737   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   8738     # Fake it for dumpbin and say T for any non-static function,
   8739     # D for any global variable and I for any imported variable.
   8740     # Also find C++ and __fastcall symbols from MSVC++,
   8741     # which start with @ or ?.
   8742     lt_cv_sys_global_symbol_pipe="$AWK '"\
   8743 "     {last_section=section; section=\$ 3};"\
   8744 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   8745 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   8746 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   8747 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   8748 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   8749 "     \$ 0!~/External *\|/{next};"\
   8750 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   8751 "     {if(hide[section]) next};"\
   8752 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   8753 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   8754 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   8755 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   8756 "     ' prfx=^$ac_symprfx"
   8757   else
   8758     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   8759   fi
   8760   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   8761 
   8762   # Check to see that the pipe works correctly.
   8763   pipe_works=no
   8764 
   8765   rm -f conftest*
   8766   cat > conftest.$ac_ext <<_LT_EOF
   8767 #ifdef __cplusplus
   8768 extern "C" {
   8769 #endif
   8770 char nm_test_var;
   8771 void nm_test_func(void);
   8772 void nm_test_func(void){}
   8773 #ifdef __cplusplus
   8774 }
   8775 #endif
   8776 int main(){nm_test_var='a';nm_test_func();return(0);}
   8777 _LT_EOF
   8778 
   8779   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   8780   (eval $ac_compile) 2>&5
   8781   ac_status=$?
   8782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8783   test $ac_status = 0; }; then
   8784     # Now try to grab the symbols.
   8785     nlist=conftest.nm
   8786     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   8787   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   8788   ac_status=$?
   8789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8790   test $ac_status = 0; } && test -s "$nlist"; then
   8791       # Try sorting and uniquifying the output.
   8792       if sort "$nlist" | uniq > "$nlist"T; then
   8793 	mv -f "$nlist"T "$nlist"
   8794       else
   8795 	rm -f "$nlist"T
   8796       fi
   8797 
   8798       # Make sure that we snagged all the symbols we need.
   8799       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   8800 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   8801 	  cat <<_LT_EOF > conftest.$ac_ext
   8802 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   8803 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   8804 /* DATA imports from DLLs on WIN32 can't be const, because runtime
   8805    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   8806 # define LT_DLSYM_CONST
   8807 #elif defined __osf__
   8808 /* This system does not cope well with relocations in const data.  */
   8809 # define LT_DLSYM_CONST
   8810 #else
   8811 # define LT_DLSYM_CONST const
   8812 #endif
   8813 
   8814 #ifdef __cplusplus
   8815 extern "C" {
   8816 #endif
   8817 
   8818 _LT_EOF
   8819 	  # Now generate the symbol file.
   8820 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   8821 
   8822 	  cat <<_LT_EOF >> conftest.$ac_ext
   8823 
   8824 /* The mapping between symbol names and symbols.  */
   8825 LT_DLSYM_CONST struct {
   8826   const char *name;
   8827   void       *address;
   8828 }
   8829 lt__PROGRAM__LTX_preloaded_symbols[] =
   8830 {
   8831   { "@PROGRAM@", (void *) 0 },
   8832 _LT_EOF
   8833 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   8834 	  cat <<\_LT_EOF >> conftest.$ac_ext
   8835   {0, (void *) 0}
   8836 };
   8837 
   8838 /* This works around a problem in FreeBSD linker */
   8839 #ifdef FREEBSD_WORKAROUND
   8840 static const void *lt_preloaded_setup() {
   8841   return lt__PROGRAM__LTX_preloaded_symbols;
   8842 }
   8843 #endif
   8844 
   8845 #ifdef __cplusplus
   8846 }
   8847 #endif
   8848 _LT_EOF
   8849 	  # Now try linking the two files.
   8850 	  mv conftest.$ac_objext conftstm.$ac_objext
   8851 	  lt_globsym_save_LIBS=$LIBS
   8852 	  lt_globsym_save_CFLAGS=$CFLAGS
   8853 	  LIBS=conftstm.$ac_objext
   8854 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   8855 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   8856   (eval $ac_link) 2>&5
   8857   ac_status=$?
   8858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8859   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   8860 	    pipe_works=yes
   8861 	  fi
   8862 	  LIBS=$lt_globsym_save_LIBS
   8863 	  CFLAGS=$lt_globsym_save_CFLAGS
   8864 	else
   8865 	  echo "cannot find nm_test_func in $nlist" >&5
   8866 	fi
   8867       else
   8868 	echo "cannot find nm_test_var in $nlist" >&5
   8869       fi
   8870     else
   8871       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   8872     fi
   8873   else
   8874     echo "$progname: failed program was:" >&5
   8875     cat conftest.$ac_ext >&5
   8876   fi
   8877   rm -rf conftest* conftst*
   8878 
   8879   # Do not use the global_symbol_pipe unless it works.
   8880   if test yes = "$pipe_works"; then
   8881     break
   8882   else
   8883     lt_cv_sys_global_symbol_pipe=
   8884   fi
   8885 done
   8886 
   8887 fi
   8888 
   8889 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   8890   lt_cv_sys_global_symbol_to_cdecl=
   8891 fi
   8892 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   8893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   8894 $as_echo "failed" >&6; }
   8895 else
   8896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   8897 $as_echo "ok" >&6; }
   8898 fi
   8899 
   8900 # Response file support.
   8901 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   8902   nm_file_list_spec='@'
   8903 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   8904   nm_file_list_spec='@'
   8905 fi
   8906 
   8907 
   8908 
   8909 
   8910 
   8911 
   8912 
   8913 
   8914 
   8915 
   8916 
   8917 
   8918 
   8919 
   8920 
   8921 
   8922 
   8923 
   8924 
   8925 
   8926 
   8927 
   8928 
   8929 
   8930 
   8931 
   8932 
   8933 
   8934 
   8935 
   8936 
   8937 
   8938 
   8939 
   8940 
   8941 
   8942 
   8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   8944 $as_echo_n "checking for sysroot... " >&6; }
   8945 
   8946 # Check whether --with-sysroot was given.
   8947 if test "${with_sysroot+set}" = set; then :
   8948   withval=$with_sysroot;
   8949 else
   8950   with_sysroot=no
   8951 fi
   8952 
   8953 
   8954 lt_sysroot=
   8955 case $with_sysroot in #(
   8956  yes)
   8957    if test yes = "$GCC"; then
   8958      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   8959    fi
   8960    ;; #(
   8961  /*)
   8962    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   8963    ;; #(
   8964  no|'')
   8965    ;; #(
   8966  *)
   8967    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
   8968 $as_echo "$with_sysroot" >&6; }
   8969    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   8970    ;;
   8971 esac
   8972 
   8973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   8974 $as_echo "${lt_sysroot:-no}" >&6; }
   8975 
   8976 
   8977 
   8978 
   8979 
   8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
   8981 $as_echo_n "checking for a working dd... " >&6; }
   8982 if ${ac_cv_path_lt_DD+:} false; then :
   8983   $as_echo_n "(cached) " >&6
   8984 else
   8985   printf 0123456789abcdef0123456789abcdef >conftest.i
   8986 cat conftest.i conftest.i >conftest2.i
   8987 : ${lt_DD:=$DD}
   8988 if test -z "$lt_DD"; then
   8989   ac_path_lt_DD_found=false
   8990   # Loop through the user's path and test for each of PROGNAME-LIST
   8991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8992 for as_dir in $PATH
   8993 do
   8994   IFS=$as_save_IFS
   8995   test -z "$as_dir" && as_dir=.
   8996     for ac_prog in dd; do
   8997     for ac_exec_ext in '' $ac_executable_extensions; do
   8998       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
   8999       as_fn_executable_p "$ac_path_lt_DD" || continue
   9000 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   9001   cmp -s conftest.i conftest.out \
   9002   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   9003 fi
   9004       $ac_path_lt_DD_found && break 3
   9005     done
   9006   done
   9007   done
   9008 IFS=$as_save_IFS
   9009   if test -z "$ac_cv_path_lt_DD"; then
   9010     :
   9011   fi
   9012 else
   9013   ac_cv_path_lt_DD=$lt_DD
   9014 fi
   9015 
   9016 rm -f conftest.i conftest2.i conftest.out
   9017 fi
   9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
   9019 $as_echo "$ac_cv_path_lt_DD" >&6; }
   9020 
   9021 
   9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
   9023 $as_echo_n "checking how to truncate binary pipes... " >&6; }
   9024 if ${lt_cv_truncate_bin+:} false; then :
   9025   $as_echo_n "(cached) " >&6
   9026 else
   9027   printf 0123456789abcdef0123456789abcdef >conftest.i
   9028 cat conftest.i conftest.i >conftest2.i
   9029 lt_cv_truncate_bin=
   9030 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   9031   cmp -s conftest.i conftest.out \
   9032   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   9033 fi
   9034 rm -f conftest.i conftest2.i conftest.out
   9035 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
   9036 fi
   9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
   9038 $as_echo "$lt_cv_truncate_bin" >&6; }
   9039 
   9040 
   9041 
   9042 
   9043 
   9044 
   9045 
   9046 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   9047 func_cc_basename ()
   9048 {
   9049     for cc_temp in $*""; do
   9050       case $cc_temp in
   9051         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   9052         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   9053         \-*) ;;
   9054         *) break;;
   9055       esac
   9056     done
   9057     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   9058 }
   9059 
   9060 # Check whether --enable-libtool-lock was given.
   9061 if test "${enable_libtool_lock+set}" = set; then :
   9062   enableval=$enable_libtool_lock;
   9063 fi
   9064 
   9065 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   9066 
   9067 # Some flags need to be propagated to the compiler or linker for good
   9068 # libtool support.
   9069 case $host in
   9070 ia64-*-hpux*)
   9071   # Find out what ABI is being produced by ac_compile, and set mode
   9072   # options accordingly.
   9073   echo 'int i;' > conftest.$ac_ext
   9074   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9075   (eval $ac_compile) 2>&5
   9076   ac_status=$?
   9077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9078   test $ac_status = 0; }; then
   9079     case `/usr/bin/file conftest.$ac_objext` in
   9080       *ELF-32*)
   9081 	HPUX_IA64_MODE=32
   9082 	;;
   9083       *ELF-64*)
   9084 	HPUX_IA64_MODE=64
   9085 	;;
   9086     esac
   9087   fi
   9088   rm -rf conftest*
   9089   ;;
   9090 *-*-irix6*)
   9091   # Find out what ABI is being produced by ac_compile, and set linker
   9092   # options accordingly.
   9093   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   9094   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9095   (eval $ac_compile) 2>&5
   9096   ac_status=$?
   9097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9098   test $ac_status = 0; }; then
   9099     if test yes = "$lt_cv_prog_gnu_ld"; then
   9100       case `/usr/bin/file conftest.$ac_objext` in
   9101 	*32-bit*)
   9102 	  LD="${LD-ld} -melf32bsmip"
   9103 	  ;;
   9104 	*N32*)
   9105 	  LD="${LD-ld} -melf32bmipn32"
   9106 	  ;;
   9107 	*64-bit*)
   9108 	  LD="${LD-ld} -melf64bmip"
   9109 	;;
   9110       esac
   9111     else
   9112       case `/usr/bin/file conftest.$ac_objext` in
   9113 	*32-bit*)
   9114 	  LD="${LD-ld} -32"
   9115 	  ;;
   9116 	*N32*)
   9117 	  LD="${LD-ld} -n32"
   9118 	  ;;
   9119 	*64-bit*)
   9120 	  LD="${LD-ld} -64"
   9121 	  ;;
   9122       esac
   9123     fi
   9124   fi
   9125   rm -rf conftest*
   9126   ;;
   9127 
   9128 mips64*-*linux*)
   9129   # Find out what ABI is being produced by ac_compile, and set linker
   9130   # options accordingly.
   9131   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   9132   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9133   (eval $ac_compile) 2>&5
   9134   ac_status=$?
   9135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9136   test $ac_status = 0; }; then
   9137     emul=elf
   9138     case `/usr/bin/file conftest.$ac_objext` in
   9139       *32-bit*)
   9140 	emul="${emul}32"
   9141 	;;
   9142       *64-bit*)
   9143 	emul="${emul}64"
   9144 	;;
   9145     esac
   9146     case `/usr/bin/file conftest.$ac_objext` in
   9147       *MSB*)
   9148 	emul="${emul}btsmip"
   9149 	;;
   9150       *LSB*)
   9151 	emul="${emul}ltsmip"
   9152 	;;
   9153     esac
   9154     case `/usr/bin/file conftest.$ac_objext` in
   9155       *N32*)
   9156 	emul="${emul}n32"
   9157 	;;
   9158     esac
   9159     LD="${LD-ld} -m $emul"
   9160   fi
   9161   rm -rf conftest*
   9162   ;;
   9163 
   9164 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   9165 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   9166   # Find out what ABI is being produced by ac_compile, and set linker
   9167   # options accordingly.  Note that the listed cases only cover the
   9168   # situations where additional linker options are needed (such as when
   9169   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   9170   # vice versa); the common cases where no linker options are needed do
   9171   # not appear in the list.
   9172   echo 'int i;' > conftest.$ac_ext
   9173   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9174   (eval $ac_compile) 2>&5
   9175   ac_status=$?
   9176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9177   test $ac_status = 0; }; then
   9178     case `/usr/bin/file conftest.o` in
   9179       *32-bit*)
   9180 	case $host in
   9181 	  x86_64-*kfreebsd*-gnu)
   9182 	    LD="${LD-ld} -m elf_i386_fbsd"
   9183 	    ;;
   9184 	  x86_64-*linux*)
   9185 	    case `/usr/bin/file conftest.o` in
   9186 	      *x86-64*)
   9187 		LD="${LD-ld} -m elf32_x86_64"
   9188 		;;
   9189 	      *)
   9190 		LD="${LD-ld} -m elf_i386"
   9191 		;;
   9192 	    esac
   9193 	    ;;
   9194 	  powerpc64le-*linux*)
   9195 	    LD="${LD-ld} -m elf32lppclinux"
   9196 	    ;;
   9197 	  powerpc64-*linux*)
   9198 	    LD="${LD-ld} -m elf32ppclinux"
   9199 	    ;;
   9200 	  s390x-*linux*)
   9201 	    LD="${LD-ld} -m elf_s390"
   9202 	    ;;
   9203 	  sparc64-*linux*)
   9204 	    LD="${LD-ld} -m elf32_sparc"
   9205 	    ;;
   9206 	esac
   9207 	;;
   9208       *64-bit*)
   9209 	case $host in
   9210 	  x86_64-*kfreebsd*-gnu)
   9211 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   9212 	    ;;
   9213 	  x86_64-*linux*)
   9214 	    LD="${LD-ld} -m elf_x86_64"
   9215 	    ;;
   9216 	  powerpcle-*linux*)
   9217 	    LD="${LD-ld} -m elf64lppc"
   9218 	    ;;
   9219 	  powerpc-*linux*)
   9220 	    LD="${LD-ld} -m elf64ppc"
   9221 	    ;;
   9222 	  s390*-*linux*|s390*-*tpf*)
   9223 	    LD="${LD-ld} -m elf64_s390"
   9224 	    ;;
   9225 	  sparc*-*linux*)
   9226 	    LD="${LD-ld} -m elf64_sparc"
   9227 	    ;;
   9228 	esac
   9229 	;;
   9230     esac
   9231   fi
   9232   rm -rf conftest*
   9233   ;;
   9234 
   9235 *-*-sco3.2v5*)
   9236   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   9237   SAVE_CFLAGS=$CFLAGS
   9238   CFLAGS="$CFLAGS -belf"
   9239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   9240 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   9241 if ${lt_cv_cc_needs_belf+:} false; then :
   9242   $as_echo_n "(cached) " >&6
   9243 else
   9244   ac_ext=c
   9245 ac_cpp='$CPP $CPPFLAGS'
   9246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9249 
   9250      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9251 /* end confdefs.h.  */
   9252 
   9253 int
   9254 main ()
   9255 {
   9256 
   9257   ;
   9258   return 0;
   9259 }
   9260 _ACEOF
   9261 if ac_fn_c_try_link "$LINENO"; then :
   9262   lt_cv_cc_needs_belf=yes
   9263 else
   9264   lt_cv_cc_needs_belf=no
   9265 fi
   9266 rm -f core conftest.err conftest.$ac_objext \
   9267     conftest$ac_exeext conftest.$ac_ext
   9268      ac_ext=c
   9269 ac_cpp='$CPP $CPPFLAGS'
   9270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9273 
   9274 fi
   9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   9276 $as_echo "$lt_cv_cc_needs_belf" >&6; }
   9277   if test yes != "$lt_cv_cc_needs_belf"; then
   9278     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   9279     CFLAGS=$SAVE_CFLAGS
   9280   fi
   9281   ;;
   9282 *-*solaris*)
   9283   # Find out what ABI is being produced by ac_compile, and set linker
   9284   # options accordingly.
   9285   echo 'int i;' > conftest.$ac_ext
   9286   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9287   (eval $ac_compile) 2>&5
   9288   ac_status=$?
   9289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9290   test $ac_status = 0; }; then
   9291     case `/usr/bin/file conftest.o` in
   9292     *64-bit*)
   9293       case $lt_cv_prog_gnu_ld in
   9294       yes*)
   9295         case $host in
   9296         i?86-*-solaris*|x86_64-*-solaris*)
   9297           LD="${LD-ld} -m elf_x86_64"
   9298           ;;
   9299         sparc*-*-solaris*)
   9300           LD="${LD-ld} -m elf64_sparc"
   9301           ;;
   9302         esac
   9303         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   9304         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   9305           LD=${LD-ld}_sol2
   9306         fi
   9307         ;;
   9308       *)
   9309 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   9310 	  LD="${LD-ld} -64"
   9311 	fi
   9312 	;;
   9313       esac
   9314       ;;
   9315     esac
   9316   fi
   9317   rm -rf conftest*
   9318   ;;
   9319 esac
   9320 
   9321 need_locks=$enable_libtool_lock
   9322 
   9323 if test -n "$ac_tool_prefix"; then
   9324   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   9325 set dummy ${ac_tool_prefix}mt; ac_word=$2
   9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9327 $as_echo_n "checking for $ac_word... " >&6; }
   9328 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
   9329   $as_echo_n "(cached) " >&6
   9330 else
   9331   if test -n "$MANIFEST_TOOL"; then
   9332   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   9333 else
   9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9335 for as_dir in $PATH
   9336 do
   9337   IFS=$as_save_IFS
   9338   test -z "$as_dir" && as_dir=.
   9339     for ac_exec_ext in '' $ac_executable_extensions; do
   9340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9341     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   9342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9343     break 2
   9344   fi
   9345 done
   9346   done
   9347 IFS=$as_save_IFS
   9348 
   9349 fi
   9350 fi
   9351 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   9352 if test -n "$MANIFEST_TOOL"; then
   9353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   9354 $as_echo "$MANIFEST_TOOL" >&6; }
   9355 else
   9356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9357 $as_echo "no" >&6; }
   9358 fi
   9359 
   9360 
   9361 fi
   9362 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   9363   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   9364   # Extract the first word of "mt", so it can be a program name with args.
   9365 set dummy mt; ac_word=$2
   9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9367 $as_echo_n "checking for $ac_word... " >&6; }
   9368 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
   9369   $as_echo_n "(cached) " >&6
   9370 else
   9371   if test -n "$ac_ct_MANIFEST_TOOL"; then
   9372   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   9373 else
   9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9375 for as_dir in $PATH
   9376 do
   9377   IFS=$as_save_IFS
   9378   test -z "$as_dir" && as_dir=.
   9379     for ac_exec_ext in '' $ac_executable_extensions; do
   9380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9381     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   9382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9383     break 2
   9384   fi
   9385 done
   9386   done
   9387 IFS=$as_save_IFS
   9388 
   9389 fi
   9390 fi
   9391 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   9392 if test -n "$ac_ct_MANIFEST_TOOL"; then
   9393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   9394 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
   9395 else
   9396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9397 $as_echo "no" >&6; }
   9398 fi
   9399 
   9400   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   9401     MANIFEST_TOOL=":"
   9402   else
   9403     case $cross_compiling:$ac_tool_warned in
   9404 yes:)
   9405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9407 ac_tool_warned=yes ;;
   9408 esac
   9409     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   9410   fi
   9411 else
   9412   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   9413 fi
   9414 
   9415 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   9417 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   9418 if ${lt_cv_path_mainfest_tool+:} false; then :
   9419   $as_echo_n "(cached) " >&6
   9420 else
   9421   lt_cv_path_mainfest_tool=no
   9422   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   9423   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   9424   cat conftest.err >&5
   9425   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   9426     lt_cv_path_mainfest_tool=yes
   9427   fi
   9428   rm -f conftest*
   9429 fi
   9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   9431 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
   9432 if test yes != "$lt_cv_path_mainfest_tool"; then
   9433   MANIFEST_TOOL=:
   9434 fi
   9435 
   9436 
   9437 
   9438 
   9439 
   9440 
   9441   case $host_os in
   9442     rhapsody* | darwin*)
   9443     if test -n "$ac_tool_prefix"; then
   9444   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   9445 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9447 $as_echo_n "checking for $ac_word... " >&6; }
   9448 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   9449   $as_echo_n "(cached) " >&6
   9450 else
   9451   if test -n "$DSYMUTIL"; then
   9452   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   9453 else
   9454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9455 for as_dir in $PATH
   9456 do
   9457   IFS=$as_save_IFS
   9458   test -z "$as_dir" && as_dir=.
   9459     for ac_exec_ext in '' $ac_executable_extensions; do
   9460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9461     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   9462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9463     break 2
   9464   fi
   9465 done
   9466   done
   9467 IFS=$as_save_IFS
   9468 
   9469 fi
   9470 fi
   9471 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   9472 if test -n "$DSYMUTIL"; then
   9473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   9474 $as_echo "$DSYMUTIL" >&6; }
   9475 else
   9476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9477 $as_echo "no" >&6; }
   9478 fi
   9479 
   9480 
   9481 fi
   9482 if test -z "$ac_cv_prog_DSYMUTIL"; then
   9483   ac_ct_DSYMUTIL=$DSYMUTIL
   9484   # Extract the first word of "dsymutil", so it can be a program name with args.
   9485 set dummy dsymutil; ac_word=$2
   9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9487 $as_echo_n "checking for $ac_word... " >&6; }
   9488 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   9489   $as_echo_n "(cached) " >&6
   9490 else
   9491   if test -n "$ac_ct_DSYMUTIL"; then
   9492   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   9493 else
   9494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9495 for as_dir in $PATH
   9496 do
   9497   IFS=$as_save_IFS
   9498   test -z "$as_dir" && as_dir=.
   9499     for ac_exec_ext in '' $ac_executable_extensions; do
   9500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9501     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   9502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9503     break 2
   9504   fi
   9505 done
   9506   done
   9507 IFS=$as_save_IFS
   9508 
   9509 fi
   9510 fi
   9511 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   9512 if test -n "$ac_ct_DSYMUTIL"; then
   9513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   9514 $as_echo "$ac_ct_DSYMUTIL" >&6; }
   9515 else
   9516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9517 $as_echo "no" >&6; }
   9518 fi
   9519 
   9520   if test "x$ac_ct_DSYMUTIL" = x; then
   9521     DSYMUTIL=":"
   9522   else
   9523     case $cross_compiling:$ac_tool_warned in
   9524 yes:)
   9525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9527 ac_tool_warned=yes ;;
   9528 esac
   9529     DSYMUTIL=$ac_ct_DSYMUTIL
   9530   fi
   9531 else
   9532   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   9533 fi
   9534 
   9535     if test -n "$ac_tool_prefix"; then
   9536   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   9537 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9539 $as_echo_n "checking for $ac_word... " >&6; }
   9540 if ${ac_cv_prog_NMEDIT+:} false; then :
   9541   $as_echo_n "(cached) " >&6
   9542 else
   9543   if test -n "$NMEDIT"; then
   9544   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   9545 else
   9546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9547 for as_dir in $PATH
   9548 do
   9549   IFS=$as_save_IFS
   9550   test -z "$as_dir" && as_dir=.
   9551     for ac_exec_ext in '' $ac_executable_extensions; do
   9552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9553     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   9554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9555     break 2
   9556   fi
   9557 done
   9558   done
   9559 IFS=$as_save_IFS
   9560 
   9561 fi
   9562 fi
   9563 NMEDIT=$ac_cv_prog_NMEDIT
   9564 if test -n "$NMEDIT"; then
   9565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   9566 $as_echo "$NMEDIT" >&6; }
   9567 else
   9568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9569 $as_echo "no" >&6; }
   9570 fi
   9571 
   9572 
   9573 fi
   9574 if test -z "$ac_cv_prog_NMEDIT"; then
   9575   ac_ct_NMEDIT=$NMEDIT
   9576   # Extract the first word of "nmedit", so it can be a program name with args.
   9577 set dummy nmedit; ac_word=$2
   9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9579 $as_echo_n "checking for $ac_word... " >&6; }
   9580 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   9581   $as_echo_n "(cached) " >&6
   9582 else
   9583   if test -n "$ac_ct_NMEDIT"; then
   9584   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   9585 else
   9586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9587 for as_dir in $PATH
   9588 do
   9589   IFS=$as_save_IFS
   9590   test -z "$as_dir" && as_dir=.
   9591     for ac_exec_ext in '' $ac_executable_extensions; do
   9592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9593     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   9594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9595     break 2
   9596   fi
   9597 done
   9598   done
   9599 IFS=$as_save_IFS
   9600 
   9601 fi
   9602 fi
   9603 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   9604 if test -n "$ac_ct_NMEDIT"; then
   9605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   9606 $as_echo "$ac_ct_NMEDIT" >&6; }
   9607 else
   9608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9609 $as_echo "no" >&6; }
   9610 fi
   9611 
   9612   if test "x$ac_ct_NMEDIT" = x; then
   9613     NMEDIT=":"
   9614   else
   9615     case $cross_compiling:$ac_tool_warned in
   9616 yes:)
   9617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9619 ac_tool_warned=yes ;;
   9620 esac
   9621     NMEDIT=$ac_ct_NMEDIT
   9622   fi
   9623 else
   9624   NMEDIT="$ac_cv_prog_NMEDIT"
   9625 fi
   9626 
   9627     if test -n "$ac_tool_prefix"; then
   9628   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   9629 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9631 $as_echo_n "checking for $ac_word... " >&6; }
   9632 if ${ac_cv_prog_LIPO+:} false; then :
   9633   $as_echo_n "(cached) " >&6
   9634 else
   9635   if test -n "$LIPO"; then
   9636   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   9637 else
   9638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9639 for as_dir in $PATH
   9640 do
   9641   IFS=$as_save_IFS
   9642   test -z "$as_dir" && as_dir=.
   9643     for ac_exec_ext in '' $ac_executable_extensions; do
   9644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9645     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   9646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9647     break 2
   9648   fi
   9649 done
   9650   done
   9651 IFS=$as_save_IFS
   9652 
   9653 fi
   9654 fi
   9655 LIPO=$ac_cv_prog_LIPO
   9656 if test -n "$LIPO"; then
   9657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   9658 $as_echo "$LIPO" >&6; }
   9659 else
   9660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9661 $as_echo "no" >&6; }
   9662 fi
   9663 
   9664 
   9665 fi
   9666 if test -z "$ac_cv_prog_LIPO"; then
   9667   ac_ct_LIPO=$LIPO
   9668   # Extract the first word of "lipo", so it can be a program name with args.
   9669 set dummy lipo; ac_word=$2
   9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9671 $as_echo_n "checking for $ac_word... " >&6; }
   9672 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   9673   $as_echo_n "(cached) " >&6
   9674 else
   9675   if test -n "$ac_ct_LIPO"; then
   9676   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   9677 else
   9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9679 for as_dir in $PATH
   9680 do
   9681   IFS=$as_save_IFS
   9682   test -z "$as_dir" && as_dir=.
   9683     for ac_exec_ext in '' $ac_executable_extensions; do
   9684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9685     ac_cv_prog_ac_ct_LIPO="lipo"
   9686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9687     break 2
   9688   fi
   9689 done
   9690   done
   9691 IFS=$as_save_IFS
   9692 
   9693 fi
   9694 fi
   9695 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   9696 if test -n "$ac_ct_LIPO"; then
   9697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   9698 $as_echo "$ac_ct_LIPO" >&6; }
   9699 else
   9700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9701 $as_echo "no" >&6; }
   9702 fi
   9703 
   9704   if test "x$ac_ct_LIPO" = x; then
   9705     LIPO=":"
   9706   else
   9707     case $cross_compiling:$ac_tool_warned in
   9708 yes:)
   9709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9711 ac_tool_warned=yes ;;
   9712 esac
   9713     LIPO=$ac_ct_LIPO
   9714   fi
   9715 else
   9716   LIPO="$ac_cv_prog_LIPO"
   9717 fi
   9718 
   9719     if test -n "$ac_tool_prefix"; then
   9720   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   9721 set dummy ${ac_tool_prefix}otool; ac_word=$2
   9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9723 $as_echo_n "checking for $ac_word... " >&6; }
   9724 if ${ac_cv_prog_OTOOL+:} false; then :
   9725   $as_echo_n "(cached) " >&6
   9726 else
   9727   if test -n "$OTOOL"; then
   9728   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   9729 else
   9730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9731 for as_dir in $PATH
   9732 do
   9733   IFS=$as_save_IFS
   9734   test -z "$as_dir" && as_dir=.
   9735     for ac_exec_ext in '' $ac_executable_extensions; do
   9736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9737     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   9738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9739     break 2
   9740   fi
   9741 done
   9742   done
   9743 IFS=$as_save_IFS
   9744 
   9745 fi
   9746 fi
   9747 OTOOL=$ac_cv_prog_OTOOL
   9748 if test -n "$OTOOL"; then
   9749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   9750 $as_echo "$OTOOL" >&6; }
   9751 else
   9752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9753 $as_echo "no" >&6; }
   9754 fi
   9755 
   9756 
   9757 fi
   9758 if test -z "$ac_cv_prog_OTOOL"; then
   9759   ac_ct_OTOOL=$OTOOL
   9760   # Extract the first word of "otool", so it can be a program name with args.
   9761 set dummy otool; ac_word=$2
   9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9763 $as_echo_n "checking for $ac_word... " >&6; }
   9764 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   9765   $as_echo_n "(cached) " >&6
   9766 else
   9767   if test -n "$ac_ct_OTOOL"; then
   9768   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   9769 else
   9770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9771 for as_dir in $PATH
   9772 do
   9773   IFS=$as_save_IFS
   9774   test -z "$as_dir" && as_dir=.
   9775     for ac_exec_ext in '' $ac_executable_extensions; do
   9776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9777     ac_cv_prog_ac_ct_OTOOL="otool"
   9778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9779     break 2
   9780   fi
   9781 done
   9782   done
   9783 IFS=$as_save_IFS
   9784 
   9785 fi
   9786 fi
   9787 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   9788 if test -n "$ac_ct_OTOOL"; then
   9789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   9790 $as_echo "$ac_ct_OTOOL" >&6; }
   9791 else
   9792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9793 $as_echo "no" >&6; }
   9794 fi
   9795 
   9796   if test "x$ac_ct_OTOOL" = x; then
   9797     OTOOL=":"
   9798   else
   9799     case $cross_compiling:$ac_tool_warned in
   9800 yes:)
   9801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9803 ac_tool_warned=yes ;;
   9804 esac
   9805     OTOOL=$ac_ct_OTOOL
   9806   fi
   9807 else
   9808   OTOOL="$ac_cv_prog_OTOOL"
   9809 fi
   9810 
   9811     if test -n "$ac_tool_prefix"; then
   9812   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   9813 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9815 $as_echo_n "checking for $ac_word... " >&6; }
   9816 if ${ac_cv_prog_OTOOL64+:} false; then :
   9817   $as_echo_n "(cached) " >&6
   9818 else
   9819   if test -n "$OTOOL64"; then
   9820   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   9821 else
   9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9823 for as_dir in $PATH
   9824 do
   9825   IFS=$as_save_IFS
   9826   test -z "$as_dir" && as_dir=.
   9827     for ac_exec_ext in '' $ac_executable_extensions; do
   9828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9829     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   9830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9831     break 2
   9832   fi
   9833 done
   9834   done
   9835 IFS=$as_save_IFS
   9836 
   9837 fi
   9838 fi
   9839 OTOOL64=$ac_cv_prog_OTOOL64
   9840 if test -n "$OTOOL64"; then
   9841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   9842 $as_echo "$OTOOL64" >&6; }
   9843 else
   9844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9845 $as_echo "no" >&6; }
   9846 fi
   9847 
   9848 
   9849 fi
   9850 if test -z "$ac_cv_prog_OTOOL64"; then
   9851   ac_ct_OTOOL64=$OTOOL64
   9852   # Extract the first word of "otool64", so it can be a program name with args.
   9853 set dummy otool64; ac_word=$2
   9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9855 $as_echo_n "checking for $ac_word... " >&6; }
   9856 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   9857   $as_echo_n "(cached) " >&6
   9858 else
   9859   if test -n "$ac_ct_OTOOL64"; then
   9860   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   9861 else
   9862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9863 for as_dir in $PATH
   9864 do
   9865   IFS=$as_save_IFS
   9866   test -z "$as_dir" && as_dir=.
   9867     for ac_exec_ext in '' $ac_executable_extensions; do
   9868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9869     ac_cv_prog_ac_ct_OTOOL64="otool64"
   9870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9871     break 2
   9872   fi
   9873 done
   9874   done
   9875 IFS=$as_save_IFS
   9876 
   9877 fi
   9878 fi
   9879 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   9880 if test -n "$ac_ct_OTOOL64"; then
   9881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   9882 $as_echo "$ac_ct_OTOOL64" >&6; }
   9883 else
   9884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9885 $as_echo "no" >&6; }
   9886 fi
   9887 
   9888   if test "x$ac_ct_OTOOL64" = x; then
   9889     OTOOL64=":"
   9890   else
   9891     case $cross_compiling:$ac_tool_warned in
   9892 yes:)
   9893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9895 ac_tool_warned=yes ;;
   9896 esac
   9897     OTOOL64=$ac_ct_OTOOL64
   9898   fi
   9899 else
   9900   OTOOL64="$ac_cv_prog_OTOOL64"
   9901 fi
   9902 
   9903 
   9904 
   9905 
   9906 
   9907 
   9908 
   9909 
   9910 
   9911 
   9912 
   9913 
   9914 
   9915 
   9916 
   9917 
   9918 
   9919 
   9920 
   9921 
   9922 
   9923 
   9924 
   9925 
   9926 
   9927 
   9928 
   9929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   9930 $as_echo_n "checking for -single_module linker flag... " >&6; }
   9931 if ${lt_cv_apple_cc_single_mod+:} false; then :
   9932   $as_echo_n "(cached) " >&6
   9933 else
   9934   lt_cv_apple_cc_single_mod=no
   9935       if test -z "$LT_MULTI_MODULE"; then
   9936 	# By default we will add the -single_module flag. You can override
   9937 	# by either setting the environment variable LT_MULTI_MODULE
   9938 	# non-empty at configure time, or by adding -multi_module to the
   9939 	# link flags.
   9940 	rm -rf libconftest.dylib*
   9941 	echo "int foo(void){return 1;}" > conftest.c
   9942 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   9943 -dynamiclib -Wl,-single_module conftest.c" >&5
   9944 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   9945 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   9946         _lt_result=$?
   9947 	# If there is a non-empty error log, and "single_module"
   9948 	# appears in it, assume the flag caused a linker warning
   9949         if test -s conftest.err && $GREP single_module conftest.err; then
   9950 	  cat conftest.err >&5
   9951 	# Otherwise, if the output was created with a 0 exit code from
   9952 	# the compiler, it worked.
   9953 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   9954 	  lt_cv_apple_cc_single_mod=yes
   9955 	else
   9956 	  cat conftest.err >&5
   9957 	fi
   9958 	rm -rf libconftest.dylib*
   9959 	rm -f conftest.*
   9960       fi
   9961 fi
   9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   9963 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   9964 
   9965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   9966 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   9967 if ${lt_cv_ld_exported_symbols_list+:} false; then :
   9968   $as_echo_n "(cached) " >&6
   9969 else
   9970   lt_cv_ld_exported_symbols_list=no
   9971       save_LDFLAGS=$LDFLAGS
   9972       echo "_main" > conftest.sym
   9973       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   9974       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9975 /* end confdefs.h.  */
   9976 
   9977 int
   9978 main ()
   9979 {
   9980 
   9981   ;
   9982   return 0;
   9983 }
   9984 _ACEOF
   9985 if ac_fn_c_try_link "$LINENO"; then :
   9986   lt_cv_ld_exported_symbols_list=yes
   9987 else
   9988   lt_cv_ld_exported_symbols_list=no
   9989 fi
   9990 rm -f core conftest.err conftest.$ac_objext \
   9991     conftest$ac_exeext conftest.$ac_ext
   9992 	LDFLAGS=$save_LDFLAGS
   9993 
   9994 fi
   9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   9996 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   9997 
   9998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   9999 $as_echo_n "checking for -force_load linker flag... " >&6; }
   10000 if ${lt_cv_ld_force_load+:} false; then :
   10001   $as_echo_n "(cached) " >&6
   10002 else
   10003   lt_cv_ld_force_load=no
   10004       cat > conftest.c << _LT_EOF
   10005 int forced_loaded() { return 2;}
   10006 _LT_EOF
   10007       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   10008       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   10009       echo "$AR cru libconftest.a conftest.o" >&5
   10010       $AR cru libconftest.a conftest.o 2>&5
   10011       echo "$RANLIB libconftest.a" >&5
   10012       $RANLIB libconftest.a 2>&5
   10013       cat > conftest.c << _LT_EOF
   10014 int main() { return 0;}
   10015 _LT_EOF
   10016       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   10017       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   10018       _lt_result=$?
   10019       if test -s conftest.err && $GREP force_load conftest.err; then
   10020 	cat conftest.err >&5
   10021       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   10022 	lt_cv_ld_force_load=yes
   10023       else
   10024 	cat conftest.err >&5
   10025       fi
   10026         rm -f conftest.err libconftest.a conftest conftest.c
   10027         rm -rf conftest.dSYM
   10028 
   10029 fi
   10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   10031 $as_echo "$lt_cv_ld_force_load" >&6; }
   10032     case $host_os in
   10033     rhapsody* | darwin1.[012])
   10034       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   10035     darwin1.*)
   10036       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   10037     darwin*) # darwin 5.x on
   10038       # if running on 10.5 or later, the deployment target defaults
   10039       # to the OS version, if on x86, and 10.4, the deployment
   10040       # target defaults to 10.4. Don't you love it?
   10041       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   10042 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   10043 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   10044 	10.[012][,.]*)
   10045 	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   10046 	10.*)
   10047 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   10048       esac
   10049     ;;
   10050   esac
   10051     if test yes = "$lt_cv_apple_cc_single_mod"; then
   10052       _lt_dar_single_mod='$single_module'
   10053     fi
   10054     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   10055       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   10056     else
   10057       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   10058     fi
   10059     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   10060       _lt_dsymutil='~$DSYMUTIL $lib || :'
   10061     else
   10062       _lt_dsymutil=
   10063     fi
   10064     ;;
   10065   esac
   10066 
   10067 # func_munge_path_list VARIABLE PATH
   10068 # -----------------------------------
   10069 # VARIABLE is name of variable containing _space_ separated list of
   10070 # directories to be munged by the contents of PATH, which is string
   10071 # having a format:
   10072 # "DIR[:DIR]:"
   10073 #       string "DIR[ DIR]" will be prepended to VARIABLE
   10074 # ":DIR[:DIR]"
   10075 #       string "DIR[ DIR]" will be appended to VARIABLE
   10076 # "DIRP[:DIRP]::[DIRA:]DIRA"
   10077 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   10078 #       "DIRA[ DIRA]" will be appended to VARIABLE
   10079 # "DIR[:DIR]"
   10080 #       VARIABLE will be replaced by "DIR[ DIR]"
   10081 func_munge_path_list ()
   10082 {
   10083     case x$2 in
   10084     x)
   10085         ;;
   10086     *:)
   10087         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   10088         ;;
   10089     x:*)
   10090         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   10091         ;;
   10092     *::*)
   10093         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   10094         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   10095         ;;
   10096     *)
   10097         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   10098         ;;
   10099     esac
   10100 }
   10101 
   10102 for ac_header in dlfcn.h
   10103 do :
   10104   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   10105 "
   10106 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   10107   cat >>confdefs.h <<_ACEOF
   10108 #define HAVE_DLFCN_H 1
   10109 _ACEOF
   10110 
   10111 fi
   10112 
   10113 done
   10114 
   10115 
   10116 
   10117 
   10118 
   10119 
   10120 
   10121 # Set options
   10122 
   10123 
   10124 
   10125         enable_dlopen=no
   10126 
   10127 
   10128   enable_win32_dll=no
   10129 
   10130 
   10131             # Check whether --enable-shared was given.
   10132 if test "${enable_shared+set}" = set; then :
   10133   enableval=$enable_shared; p=${PACKAGE-default}
   10134     case $enableval in
   10135     yes) enable_shared=yes ;;
   10136     no) enable_shared=no ;;
   10137     *)
   10138       enable_shared=no
   10139       # Look at the argument we got.  We use all the common list separators.
   10140       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   10141       for pkg in $enableval; do
   10142 	IFS=$lt_save_ifs
   10143 	if test "X$pkg" = "X$p"; then
   10144 	  enable_shared=yes
   10145 	fi
   10146       done
   10147       IFS=$lt_save_ifs
   10148       ;;
   10149     esac
   10150 else
   10151   enable_shared=yes
   10152 fi
   10153 
   10154 
   10155 
   10156 
   10157 
   10158 
   10159 
   10160 
   10161 
   10162   # Check whether --enable-static was given.
   10163 if test "${enable_static+set}" = set; then :
   10164   enableval=$enable_static; p=${PACKAGE-default}
   10165     case $enableval in
   10166     yes) enable_static=yes ;;
   10167     no) enable_static=no ;;
   10168     *)
   10169      enable_static=no
   10170       # Look at the argument we got.  We use all the common list separators.
   10171       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   10172       for pkg in $enableval; do
   10173 	IFS=$lt_save_ifs
   10174 	if test "X$pkg" = "X$p"; then
   10175 	  enable_static=yes
   10176 	fi
   10177       done
   10178       IFS=$lt_save_ifs
   10179       ;;
   10180     esac
   10181 else
   10182   enable_static=yes
   10183 fi
   10184 
   10185 
   10186 
   10187 
   10188 
   10189 
   10190 
   10191 
   10192 
   10193 
   10194 # Check whether --with-pic was given.
   10195 if test "${with_pic+set}" = set; then :
   10196   withval=$with_pic; lt_p=${PACKAGE-default}
   10197     case $withval in
   10198     yes|no) pic_mode=$withval ;;
   10199     *)
   10200       pic_mode=default
   10201       # Look at the argument we got.  We use all the common list separators.
   10202       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   10203       for lt_pkg in $withval; do
   10204 	IFS=$lt_save_ifs
   10205 	if test "X$lt_pkg" = "X$lt_p"; then
   10206 	  pic_mode=yes
   10207 	fi
   10208       done
   10209       IFS=$lt_save_ifs
   10210       ;;
   10211     esac
   10212 else
   10213   pic_mode=default
   10214 fi
   10215 
   10216 
   10217 
   10218 
   10219 
   10220 
   10221 
   10222 
   10223   # Check whether --enable-fast-install was given.
   10224 if test "${enable_fast_install+set}" = set; then :
   10225   enableval=$enable_fast_install; p=${PACKAGE-default}
   10226     case $enableval in
   10227     yes) enable_fast_install=yes ;;
   10228     no) enable_fast_install=no ;;
   10229     *)
   10230       enable_fast_install=no
   10231       # Look at the argument we got.  We use all the common list separators.
   10232       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   10233       for pkg in $enableval; do
   10234 	IFS=$lt_save_ifs
   10235 	if test "X$pkg" = "X$p"; then
   10236 	  enable_fast_install=yes
   10237 	fi
   10238       done
   10239       IFS=$lt_save_ifs
   10240       ;;
   10241     esac
   10242 else
   10243   enable_fast_install=yes
   10244 fi
   10245 
   10246 
   10247 
   10248 
   10249 
   10250 
   10251 
   10252 
   10253   shared_archive_member_spec=
   10254 case $host,$enable_shared in
   10255 power*-*-aix[5-9]*,yes)
   10256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   10257 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
   10258 
   10259 # Check whether --with-aix-soname was given.
   10260 if test "${with_aix_soname+set}" = set; then :
   10261   withval=$with_aix_soname; case $withval in
   10262     aix|svr4|both)
   10263       ;;
   10264     *)
   10265       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   10266       ;;
   10267     esac
   10268     lt_cv_with_aix_soname=$with_aix_soname
   10269 else
   10270   if ${lt_cv_with_aix_soname+:} false; then :
   10271   $as_echo_n "(cached) " >&6
   10272 else
   10273   lt_cv_with_aix_soname=aix
   10274 fi
   10275 
   10276     with_aix_soname=$lt_cv_with_aix_soname
   10277 fi
   10278 
   10279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   10280 $as_echo "$with_aix_soname" >&6; }
   10281   if test aix != "$with_aix_soname"; then
   10282     # For the AIX way of multilib, we name the shared archive member
   10283     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   10284     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   10285     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   10286     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   10287     if test 64 = "${OBJECT_MODE-32}"; then
   10288       shared_archive_member_spec=shr_64
   10289     else
   10290       shared_archive_member_spec=shr
   10291     fi
   10292   fi
   10293   ;;
   10294 *)
   10295   with_aix_soname=aix
   10296   ;;
   10297 esac
   10298 
   10299 
   10300 
   10301 
   10302 
   10303 
   10304 
   10305 
   10306 
   10307 
   10308 # This can be used to rebuild libtool when needed
   10309 LIBTOOL_DEPS=$ltmain
   10310 
   10311 # Always use our own libtool.
   10312 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   10313 
   10314 
   10315 
   10316 
   10317 
   10318 
   10319 
   10320 
   10321 
   10322 
   10323 
   10324 
   10325 
   10326 
   10327 
   10328 
   10329 
   10330 
   10331 
   10332 
   10333 
   10334 
   10335 
   10336 
   10337 
   10338 
   10339 
   10340 
   10341 
   10342 
   10343 test -z "$LN_S" && LN_S="ln -s"
   10344 
   10345 
   10346 
   10347 
   10348 
   10349 
   10350 
   10351 
   10352 
   10353 
   10354 
   10355 
   10356 
   10357 
   10358 if test -n "${ZSH_VERSION+set}"; then
   10359    setopt NO_GLOB_SUBST
   10360 fi
   10361 
   10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   10363 $as_echo_n "checking for objdir... " >&6; }
   10364 if ${lt_cv_objdir+:} false; then :
   10365   $as_echo_n "(cached) " >&6
   10366 else
   10367   rm -f .libs 2>/dev/null
   10368 mkdir .libs 2>/dev/null
   10369 if test -d .libs; then
   10370   lt_cv_objdir=.libs
   10371 else
   10372   # MS-DOS does not allow filenames that begin with a dot.
   10373   lt_cv_objdir=_libs
   10374 fi
   10375 rmdir .libs 2>/dev/null
   10376 fi
   10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   10378 $as_echo "$lt_cv_objdir" >&6; }
   10379 objdir=$lt_cv_objdir
   10380 
   10381 
   10382 
   10383 
   10384 
   10385 cat >>confdefs.h <<_ACEOF
   10386 #define LT_OBJDIR "$lt_cv_objdir/"
   10387 _ACEOF
   10388 
   10389 
   10390 
   10391 
   10392 case $host_os in
   10393 aix3*)
   10394   # AIX sometimes has problems with the GCC collect2 program.  For some
   10395   # reason, if we set the COLLECT_NAMES environment variable, the problems
   10396   # vanish in a puff of smoke.
   10397   if test set != "${COLLECT_NAMES+set}"; then
   10398     COLLECT_NAMES=
   10399     export COLLECT_NAMES
   10400   fi
   10401   ;;
   10402 esac
   10403 
   10404 # Global variables:
   10405 ofile=libtool
   10406 can_build_shared=yes
   10407 
   10408 # All known linkers require a '.a' archive for static linking (except MSVC,
   10409 # which needs '.lib').
   10410 libext=a
   10411 
   10412 with_gnu_ld=$lt_cv_prog_gnu_ld
   10413 
   10414 old_CC=$CC
   10415 old_CFLAGS=$CFLAGS
   10416 
   10417 # Set sane defaults for various variables
   10418 test -z "$CC" && CC=cc
   10419 test -z "$LTCC" && LTCC=$CC
   10420 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   10421 test -z "$LD" && LD=ld
   10422 test -z "$ac_objext" && ac_objext=o
   10423 
   10424 func_cc_basename $compiler
   10425 cc_basename=$func_cc_basename_result
   10426 
   10427 
   10428 # Only perform the check for file, if the check method requires it
   10429 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   10430 case $deplibs_check_method in
   10431 file_magic*)
   10432   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   10433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   10434 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   10435 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   10436   $as_echo_n "(cached) " >&6
   10437 else
   10438   case $MAGIC_CMD in
   10439 [\\/*] |  ?:[\\/]*)
   10440   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   10441   ;;
   10442 *)
   10443   lt_save_MAGIC_CMD=$MAGIC_CMD
   10444   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   10445   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   10446   for ac_dir in $ac_dummy; do
   10447     IFS=$lt_save_ifs
   10448     test -z "$ac_dir" && ac_dir=.
   10449     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   10450       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   10451       if test -n "$file_magic_test_file"; then
   10452 	case $deplibs_check_method in
   10453 	"file_magic "*)
   10454 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   10455 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   10456 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   10457 	    $EGREP "$file_magic_regex" > /dev/null; then
   10458 	    :
   10459 	  else
   10460 	    cat <<_LT_EOF 1>&2
   10461 
   10462 *** Warning: the command libtool uses to detect shared libraries,
   10463 *** $file_magic_cmd, produces output that libtool cannot recognize.
   10464 *** The result is that libtool may fail to recognize shared libraries
   10465 *** as such.  This will affect the creation of libtool libraries that
   10466 *** depend on shared libraries, but programs linked with such libtool
   10467 *** libraries will work regardless of this problem.  Nevertheless, you
   10468 *** may want to report the problem to your system manager and/or to
   10469 *** bug-libtool (at] gnu.org
   10470 
   10471 _LT_EOF
   10472 	  fi ;;
   10473 	esac
   10474       fi
   10475       break
   10476     fi
   10477   done
   10478   IFS=$lt_save_ifs
   10479   MAGIC_CMD=$lt_save_MAGIC_CMD
   10480   ;;
   10481 esac
   10482 fi
   10483 
   10484 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   10485 if test -n "$MAGIC_CMD"; then
   10486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   10487 $as_echo "$MAGIC_CMD" >&6; }
   10488 else
   10489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10490 $as_echo "no" >&6; }
   10491 fi
   10492 
   10493 
   10494 
   10495 
   10496 
   10497 if test -z "$lt_cv_path_MAGIC_CMD"; then
   10498   if test -n "$ac_tool_prefix"; then
   10499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   10500 $as_echo_n "checking for file... " >&6; }
   10501 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   10502   $as_echo_n "(cached) " >&6
   10503 else
   10504   case $MAGIC_CMD in
   10505 [\\/*] |  ?:[\\/]*)
   10506   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   10507   ;;
   10508 *)
   10509   lt_save_MAGIC_CMD=$MAGIC_CMD
   10510   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   10511   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   10512   for ac_dir in $ac_dummy; do
   10513     IFS=$lt_save_ifs
   10514     test -z "$ac_dir" && ac_dir=.
   10515     if test -f "$ac_dir/file"; then
   10516       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   10517       if test -n "$file_magic_test_file"; then
   10518 	case $deplibs_check_method in
   10519 	"file_magic "*)
   10520 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   10521 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   10522 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   10523 	    $EGREP "$file_magic_regex" > /dev/null; then
   10524 	    :
   10525 	  else
   10526 	    cat <<_LT_EOF 1>&2
   10527 
   10528 *** Warning: the command libtool uses to detect shared libraries,
   10529 *** $file_magic_cmd, produces output that libtool cannot recognize.
   10530 *** The result is that libtool may fail to recognize shared libraries
   10531 *** as such.  This will affect the creation of libtool libraries that
   10532 *** depend on shared libraries, but programs linked with such libtool
   10533 *** libraries will work regardless of this problem.  Nevertheless, you
   10534 *** may want to report the problem to your system manager and/or to
   10535 *** bug-libtool (at] gnu.org
   10536 
   10537 _LT_EOF
   10538 	  fi ;;
   10539 	esac
   10540       fi
   10541       break
   10542     fi
   10543   done
   10544   IFS=$lt_save_ifs
   10545   MAGIC_CMD=$lt_save_MAGIC_CMD
   10546   ;;
   10547 esac
   10548 fi
   10549 
   10550 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   10551 if test -n "$MAGIC_CMD"; then
   10552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   10553 $as_echo "$MAGIC_CMD" >&6; }
   10554 else
   10555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10556 $as_echo "no" >&6; }
   10557 fi
   10558 
   10559 
   10560   else
   10561     MAGIC_CMD=:
   10562   fi
   10563 fi
   10564 
   10565   fi
   10566   ;;
   10567 esac
   10568 
   10569 # Use C for the default configuration in the libtool script
   10570 
   10571 lt_save_CC=$CC
   10572 ac_ext=c
   10573 ac_cpp='$CPP $CPPFLAGS'
   10574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   10577 
   10578 
   10579 # Source file extension for C test sources.
   10580 ac_ext=c
   10581 
   10582 # Object file extension for compiled C test sources.
   10583 objext=o
   10584 objext=$objext
   10585 
   10586 # Code to be used in simple compile tests
   10587 lt_simple_compile_test_code="int some_variable = 0;"
   10588 
   10589 # Code to be used in simple link tests
   10590 lt_simple_link_test_code='int main(){return(0);}'
   10591 
   10592 
   10593 
   10594 
   10595 
   10596 
   10597 
   10598 # If no C compiler was specified, use CC.
   10599 LTCC=${LTCC-"$CC"}
   10600 
   10601 # If no C compiler flags were specified, use CFLAGS.
   10602 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   10603 
   10604 # Allow CC to be a program name with arguments.
   10605 compiler=$CC
   10606 
   10607 # Save the default compiler, since it gets overwritten when the other
   10608 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   10609 compiler_DEFAULT=$CC
   10610 
   10611 # save warnings/boilerplate of simple test code
   10612 ac_outfile=conftest.$ac_objext
   10613 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   10614 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   10615 _lt_compiler_boilerplate=`cat conftest.err`
   10616 $RM conftest*
   10617 
   10618 ac_outfile=conftest.$ac_objext
   10619 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   10620 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   10621 _lt_linker_boilerplate=`cat conftest.err`
   10622 $RM -r conftest*
   10623 
   10624 
   10625 if test -n "$compiler"; then
   10626 
   10627 lt_prog_compiler_no_builtin_flag=
   10628 
   10629 if test yes = "$GCC"; then
   10630   case $cc_basename in
   10631   nvcc*)
   10632     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   10633   *)
   10634     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   10635   esac
   10636 
   10637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   10638 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   10639 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   10640   $as_echo_n "(cached) " >&6
   10641 else
   10642   lt_cv_prog_compiler_rtti_exceptions=no
   10643    ac_outfile=conftest.$ac_objext
   10644    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   10645    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   10646    # Insert the option either (1) after the last *FLAGS variable, or
   10647    # (2) before a word containing "conftest.", or (3) at the end.
   10648    # Note that $ac_compile itself does not contain backslashes and begins
   10649    # with a dollar sign (not a hyphen), so the echo should work correctly.
   10650    # The option is referenced via a variable to avoid confusing sed.
   10651    lt_compile=`echo "$ac_compile" | $SED \
   10652    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   10653    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   10654    -e 's:$: $lt_compiler_flag:'`
   10655    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   10656    (eval "$lt_compile" 2>conftest.err)
   10657    ac_status=$?
   10658    cat conftest.err >&5
   10659    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10660    if (exit $ac_status) && test -s "$ac_outfile"; then
   10661      # The compiler can only warn and ignore the option if not recognized
   10662      # So say no if there are warnings other than the usual output.
   10663      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   10664      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   10665      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   10666        lt_cv_prog_compiler_rtti_exceptions=yes
   10667      fi
   10668    fi
   10669    $RM conftest*
   10670 
   10671 fi
   10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   10673 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   10674 
   10675 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   10676     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   10677 else
   10678     :
   10679 fi
   10680 
   10681 fi
   10682 
   10683 
   10684 
   10685 
   10686 
   10687 
   10688   lt_prog_compiler_wl=
   10689 lt_prog_compiler_pic=
   10690 lt_prog_compiler_static=
   10691 
   10692 
   10693   if test yes = "$GCC"; then
   10694     lt_prog_compiler_wl='-Wl,'
   10695     lt_prog_compiler_static='-static'
   10696 
   10697     case $host_os in
   10698       aix*)
   10699       # All AIX code is PIC.
   10700       if test ia64 = "$host_cpu"; then
   10701 	# AIX 5 now supports IA64 processor
   10702 	lt_prog_compiler_static='-Bstatic'
   10703       fi
   10704       lt_prog_compiler_pic='-fPIC'
   10705       ;;
   10706 
   10707     amigaos*)
   10708       case $host_cpu in
   10709       powerpc)
   10710             # see comment about AmigaOS4 .so support
   10711             lt_prog_compiler_pic='-fPIC'
   10712         ;;
   10713       m68k)
   10714             # FIXME: we need at least 68020 code to build shared libraries, but
   10715             # adding the '-m68020' flag to GCC prevents building anything better,
   10716             # like '-m68040'.
   10717             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   10718         ;;
   10719       esac
   10720       ;;
   10721 
   10722     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   10723       # PIC is the default for these OSes.
   10724       ;;
   10725 
   10726     mingw* | cygwin* | pw32* | os2* | cegcc*)
   10727       # This hack is so that the source file can tell whether it is being
   10728       # built for inclusion in a dll (and should export symbols for example).
   10729       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   10730       # (--disable-auto-import) libraries
   10731       lt_prog_compiler_pic='-DDLL_EXPORT'
   10732       case $host_os in
   10733       os2*)
   10734 	lt_prog_compiler_static='$wl-static'
   10735 	;;
   10736       esac
   10737       ;;
   10738 
   10739     darwin* | rhapsody*)
   10740       # PIC is the default on this platform
   10741       # Common symbols not allowed in MH_DYLIB files
   10742       lt_prog_compiler_pic='-fno-common'
   10743       ;;
   10744 
   10745     haiku*)
   10746       # PIC is the default for Haiku.
   10747       # The "-static" flag exists, but is broken.
   10748       lt_prog_compiler_static=
   10749       ;;
   10750 
   10751     hpux*)
   10752       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   10753       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   10754       # sets the default TLS model and affects inlining.
   10755       case $host_cpu in
   10756       hppa*64*)
   10757 	# +Z the default
   10758 	;;
   10759       *)
   10760 	lt_prog_compiler_pic='-fPIC'
   10761 	;;
   10762       esac
   10763       ;;
   10764 
   10765     interix[3-9]*)
   10766       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   10767       # Instead, we relocate shared libraries at runtime.
   10768       ;;
   10769 
   10770     msdosdjgpp*)
   10771       # Just because we use GCC doesn't mean we suddenly get shared libraries
   10772       # on systems that don't support them.
   10773       lt_prog_compiler_can_build_shared=no
   10774       enable_shared=no
   10775       ;;
   10776 
   10777     *nto* | *qnx*)
   10778       # QNX uses GNU C++, but need to define -shared option too, otherwise
   10779       # it will coredump.
   10780       lt_prog_compiler_pic='-fPIC -shared'
   10781       ;;
   10782 
   10783     sysv4*MP*)
   10784       if test -d /usr/nec; then
   10785 	lt_prog_compiler_pic=-Kconform_pic
   10786       fi
   10787       ;;
   10788 
   10789     *)
   10790       lt_prog_compiler_pic='-fPIC'
   10791       ;;
   10792     esac
   10793 
   10794     case $cc_basename in
   10795     nvcc*) # Cuda Compiler Driver 2.2
   10796       lt_prog_compiler_wl='-Xlinker '
   10797       if test -n "$lt_prog_compiler_pic"; then
   10798         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   10799       fi
   10800       ;;
   10801     esac
   10802   else
   10803     # PORTME Check for flag to pass linker flags through the system compiler.
   10804     case $host_os in
   10805     aix*)
   10806       lt_prog_compiler_wl='-Wl,'
   10807       if test ia64 = "$host_cpu"; then
   10808 	# AIX 5 now supports IA64 processor
   10809 	lt_prog_compiler_static='-Bstatic'
   10810       else
   10811 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   10812       fi
   10813       ;;
   10814 
   10815     darwin* | rhapsody*)
   10816       # PIC is the default on this platform
   10817       # Common symbols not allowed in MH_DYLIB files
   10818       lt_prog_compiler_pic='-fno-common'
   10819       case $cc_basename in
   10820       nagfor*)
   10821         # NAG Fortran compiler
   10822         lt_prog_compiler_wl='-Wl,-Wl,,'
   10823         lt_prog_compiler_pic='-PIC'
   10824         lt_prog_compiler_static='-Bstatic'
   10825         ;;
   10826       esac
   10827       ;;
   10828 
   10829     mingw* | cygwin* | pw32* | os2* | cegcc*)
   10830       # This hack is so that the source file can tell whether it is being
   10831       # built for inclusion in a dll (and should export symbols for example).
   10832       lt_prog_compiler_pic='-DDLL_EXPORT'
   10833       case $host_os in
   10834       os2*)
   10835 	lt_prog_compiler_static='$wl-static'
   10836 	;;
   10837       esac
   10838       ;;
   10839 
   10840     hpux9* | hpux10* | hpux11*)
   10841       lt_prog_compiler_wl='-Wl,'
   10842       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   10843       # not for PA HP-UX.
   10844       case $host_cpu in
   10845       hppa*64*|ia64*)
   10846 	# +Z the default
   10847 	;;
   10848       *)
   10849 	lt_prog_compiler_pic='+Z'
   10850 	;;
   10851       esac
   10852       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   10853       lt_prog_compiler_static='$wl-a ${wl}archive'
   10854       ;;
   10855 
   10856     irix5* | irix6* | nonstopux*)
   10857       lt_prog_compiler_wl='-Wl,'
   10858       # PIC (with -KPIC) is the default.
   10859       lt_prog_compiler_static='-non_shared'
   10860       ;;
   10861 
   10862     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   10863       case $cc_basename in
   10864       # old Intel for x86_64, which still supported -KPIC.
   10865       ecc*)
   10866 	lt_prog_compiler_wl='-Wl,'
   10867 	lt_prog_compiler_pic='-KPIC'
   10868 	lt_prog_compiler_static='-static'
   10869         ;;
   10870       # icc used to be incompatible with GCC.
   10871       # ICC 10 doesn't accept -KPIC any more.
   10872       icc* | ifort*)
   10873 	lt_prog_compiler_wl='-Wl,'
   10874 	lt_prog_compiler_pic='-fPIC'
   10875 	lt_prog_compiler_static='-static'
   10876         ;;
   10877       # Lahey Fortran 8.1.
   10878       lf95*)
   10879 	lt_prog_compiler_wl='-Wl,'
   10880 	lt_prog_compiler_pic='--shared'
   10881 	lt_prog_compiler_static='--static'
   10882 	;;
   10883       nagfor*)
   10884 	# NAG Fortran compiler
   10885 	lt_prog_compiler_wl='-Wl,-Wl,,'
   10886 	lt_prog_compiler_pic='-PIC'
   10887 	lt_prog_compiler_static='-Bstatic'
   10888 	;;
   10889       tcc*)
   10890 	# Fabrice Bellard et al's Tiny C Compiler
   10891 	lt_prog_compiler_wl='-Wl,'
   10892 	lt_prog_compiler_pic='-fPIC'
   10893 	lt_prog_compiler_static='-static'
   10894 	;;
   10895       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   10896         # Portland Group compilers (*not* the Pentium gcc compiler,
   10897 	# which looks to be a dead project)
   10898 	lt_prog_compiler_wl='-Wl,'
   10899 	lt_prog_compiler_pic='-fpic'
   10900 	lt_prog_compiler_static='-Bstatic'
   10901         ;;
   10902       ccc*)
   10903         lt_prog_compiler_wl='-Wl,'
   10904         # All Alpha code is PIC.
   10905         lt_prog_compiler_static='-non_shared'
   10906         ;;
   10907       xl* | bgxl* | bgf* | mpixl*)
   10908 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   10909 	lt_prog_compiler_wl='-Wl,'
   10910 	lt_prog_compiler_pic='-qpic'
   10911 	lt_prog_compiler_static='-qstaticlink'
   10912 	;;
   10913       *)
   10914 	case `$CC -V 2>&1 | sed 5q` in
   10915 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   10916 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   10917 	  lt_prog_compiler_pic='-KPIC'
   10918 	  lt_prog_compiler_static='-Bstatic'
   10919 	  lt_prog_compiler_wl=''
   10920 	  ;;
   10921 	*Sun\ F* | *Sun*Fortran*)
   10922 	  lt_prog_compiler_pic='-KPIC'
   10923 	  lt_prog_compiler_static='-Bstatic'
   10924 	  lt_prog_compiler_wl='-Qoption ld '
   10925 	  ;;
   10926 	*Sun\ C*)
   10927 	  # Sun C 5.9
   10928 	  lt_prog_compiler_pic='-KPIC'
   10929 	  lt_prog_compiler_static='-Bstatic'
   10930 	  lt_prog_compiler_wl='-Wl,'
   10931 	  ;;
   10932         *Intel*\ [CF]*Compiler*)
   10933 	  lt_prog_compiler_wl='-Wl,'
   10934 	  lt_prog_compiler_pic='-fPIC'
   10935 	  lt_prog_compiler_static='-static'
   10936 	  ;;
   10937 	*Portland\ Group*)
   10938 	  lt_prog_compiler_wl='-Wl,'
   10939 	  lt_prog_compiler_pic='-fpic'
   10940 	  lt_prog_compiler_static='-Bstatic'
   10941 	  ;;
   10942 	esac
   10943 	;;
   10944       esac
   10945       ;;
   10946 
   10947     newsos6)
   10948       lt_prog_compiler_pic='-KPIC'
   10949       lt_prog_compiler_static='-Bstatic'
   10950       ;;
   10951 
   10952     *nto* | *qnx*)
   10953       # QNX uses GNU C++, but need to define -shared option too, otherwise
   10954       # it will coredump.
   10955       lt_prog_compiler_pic='-fPIC -shared'
   10956       ;;
   10957 
   10958     osf3* | osf4* | osf5*)
   10959       lt_prog_compiler_wl='-Wl,'
   10960       # All OSF/1 code is PIC.
   10961       lt_prog_compiler_static='-non_shared'
   10962       ;;
   10963 
   10964     rdos*)
   10965       lt_prog_compiler_static='-non_shared'
   10966       ;;
   10967 
   10968     solaris*)
   10969       lt_prog_compiler_pic='-KPIC'
   10970       lt_prog_compiler_static='-Bstatic'
   10971       case $cc_basename in
   10972       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   10973 	lt_prog_compiler_wl='-Qoption ld ';;
   10974       *)
   10975 	lt_prog_compiler_wl='-Wl,';;
   10976       esac
   10977       ;;
   10978 
   10979     sunos4*)
   10980       lt_prog_compiler_wl='-Qoption ld '
   10981       lt_prog_compiler_pic='-PIC'
   10982       lt_prog_compiler_static='-Bstatic'
   10983       ;;
   10984 
   10985     sysv4 | sysv4.2uw2* | sysv4.3*)
   10986       lt_prog_compiler_wl='-Wl,'
   10987       lt_prog_compiler_pic='-KPIC'
   10988       lt_prog_compiler_static='-Bstatic'
   10989       ;;
   10990 
   10991     sysv4*MP*)
   10992       if test -d /usr/nec; then
   10993 	lt_prog_compiler_pic='-Kconform_pic'
   10994 	lt_prog_compiler_static='-Bstatic'
   10995       fi
   10996       ;;
   10997 
   10998     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   10999       lt_prog_compiler_wl='-Wl,'
   11000       lt_prog_compiler_pic='-KPIC'
   11001       lt_prog_compiler_static='-Bstatic'
   11002       ;;
   11003 
   11004     unicos*)
   11005       lt_prog_compiler_wl='-Wl,'
   11006       lt_prog_compiler_can_build_shared=no
   11007       ;;
   11008 
   11009     uts4*)
   11010       lt_prog_compiler_pic='-pic'
   11011       lt_prog_compiler_static='-Bstatic'
   11012       ;;
   11013 
   11014     *)
   11015       lt_prog_compiler_can_build_shared=no
   11016       ;;
   11017     esac
   11018   fi
   11019 
   11020 case $host_os in
   11021   # For platforms that do not support PIC, -DPIC is meaningless:
   11022   *djgpp*)
   11023     lt_prog_compiler_pic=
   11024     ;;
   11025   *)
   11026     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   11027     ;;
   11028 esac
   11029 
   11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   11031 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   11032 if ${lt_cv_prog_compiler_pic+:} false; then :
   11033   $as_echo_n "(cached) " >&6
   11034 else
   11035   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   11036 fi
   11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   11038 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
   11039 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   11040 
   11041 #
   11042 # Check to make sure the PIC flag actually works.
   11043 #
   11044 if test -n "$lt_prog_compiler_pic"; then
   11045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   11046 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   11047 if ${lt_cv_prog_compiler_pic_works+:} false; then :
   11048   $as_echo_n "(cached) " >&6
   11049 else
   11050   lt_cv_prog_compiler_pic_works=no
   11051    ac_outfile=conftest.$ac_objext
   11052    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   11053    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   11054    # Insert the option either (1) after the last *FLAGS variable, or
   11055    # (2) before a word containing "conftest.", or (3) at the end.
   11056    # Note that $ac_compile itself does not contain backslashes and begins
   11057    # with a dollar sign (not a hyphen), so the echo should work correctly.
   11058    # The option is referenced via a variable to avoid confusing sed.
   11059    lt_compile=`echo "$ac_compile" | $SED \
   11060    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   11061    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   11062    -e 's:$: $lt_compiler_flag:'`
   11063    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   11064    (eval "$lt_compile" 2>conftest.err)
   11065    ac_status=$?
   11066    cat conftest.err >&5
   11067    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11068    if (exit $ac_status) && test -s "$ac_outfile"; then
   11069      # The compiler can only warn and ignore the option if not recognized
   11070      # So say no if there are warnings other than the usual output.
   11071      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   11072      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   11073      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   11074        lt_cv_prog_compiler_pic_works=yes
   11075      fi
   11076    fi
   11077    $RM conftest*
   11078 
   11079 fi
   11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   11081 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   11082 
   11083 if test yes = "$lt_cv_prog_compiler_pic_works"; then
   11084     case $lt_prog_compiler_pic in
   11085      "" | " "*) ;;
   11086      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   11087      esac
   11088 else
   11089     lt_prog_compiler_pic=
   11090      lt_prog_compiler_can_build_shared=no
   11091 fi
   11092 
   11093 fi
   11094 
   11095 
   11096 
   11097 
   11098 
   11099 
   11100 
   11101 
   11102 
   11103 
   11104 
   11105 #
   11106 # Check to make sure the static flag actually works.
   11107 #
   11108 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   11110 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   11111 if ${lt_cv_prog_compiler_static_works+:} false; then :
   11112   $as_echo_n "(cached) " >&6
   11113 else
   11114   lt_cv_prog_compiler_static_works=no
   11115    save_LDFLAGS=$LDFLAGS
   11116    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   11117    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   11118    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   11119      # The linker can only warn and ignore the option if not recognized
   11120      # So say no if there are warnings
   11121      if test -s conftest.err; then
   11122        # Append any errors to the config.log.
   11123        cat conftest.err 1>&5
   11124        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   11125        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   11126        if diff conftest.exp conftest.er2 >/dev/null; then
   11127          lt_cv_prog_compiler_static_works=yes
   11128        fi
   11129      else
   11130        lt_cv_prog_compiler_static_works=yes
   11131      fi
   11132    fi
   11133    $RM -r conftest*
   11134    LDFLAGS=$save_LDFLAGS
   11135 
   11136 fi
   11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   11138 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   11139 
   11140 if test yes = "$lt_cv_prog_compiler_static_works"; then
   11141     :
   11142 else
   11143     lt_prog_compiler_static=
   11144 fi
   11145 
   11146 
   11147 
   11148 
   11149 
   11150 
   11151 
   11152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   11153 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   11154 if ${lt_cv_prog_compiler_c_o+:} false; then :
   11155   $as_echo_n "(cached) " >&6
   11156 else
   11157   lt_cv_prog_compiler_c_o=no
   11158    $RM -r conftest 2>/dev/null
   11159    mkdir conftest
   11160    cd conftest
   11161    mkdir out
   11162    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   11163 
   11164    lt_compiler_flag="-o out/conftest2.$ac_objext"
   11165    # Insert the option either (1) after the last *FLAGS variable, or
   11166    # (2) before a word containing "conftest.", or (3) at the end.
   11167    # Note that $ac_compile itself does not contain backslashes and begins
   11168    # with a dollar sign (not a hyphen), so the echo should work correctly.
   11169    lt_compile=`echo "$ac_compile" | $SED \
   11170    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   11171    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   11172    -e 's:$: $lt_compiler_flag:'`
   11173    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   11174    (eval "$lt_compile" 2>out/conftest.err)
   11175    ac_status=$?
   11176    cat out/conftest.err >&5
   11177    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11178    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   11179    then
   11180      # The compiler can only warn and ignore the option if not recognized
   11181      # So say no if there are warnings
   11182      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   11183      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   11184      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   11185        lt_cv_prog_compiler_c_o=yes
   11186      fi
   11187    fi
   11188    chmod u+w . 2>&5
   11189    $RM conftest*
   11190    # SGI C++ compiler will create directory out/ii_files/ for
   11191    # template instantiation
   11192    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   11193    $RM out/* && rmdir out
   11194    cd ..
   11195    $RM -r conftest
   11196    $RM conftest*
   11197 
   11198 fi
   11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   11200 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   11201 
   11202 
   11203 
   11204 
   11205 
   11206 
   11207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   11208 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   11209 if ${lt_cv_prog_compiler_c_o+:} false; then :
   11210   $as_echo_n "(cached) " >&6
   11211 else
   11212   lt_cv_prog_compiler_c_o=no
   11213    $RM -r conftest 2>/dev/null
   11214    mkdir conftest
   11215    cd conftest
   11216    mkdir out
   11217    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   11218 
   11219    lt_compiler_flag="-o out/conftest2.$ac_objext"
   11220    # Insert the option either (1) after the last *FLAGS variable, or
   11221    # (2) before a word containing "conftest.", or (3) at the end.
   11222    # Note that $ac_compile itself does not contain backslashes and begins
   11223    # with a dollar sign (not a hyphen), so the echo should work correctly.
   11224    lt_compile=`echo "$ac_compile" | $SED \
   11225    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   11226    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   11227    -e 's:$: $lt_compiler_flag:'`
   11228    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   11229    (eval "$lt_compile" 2>out/conftest.err)
   11230    ac_status=$?
   11231    cat out/conftest.err >&5
   11232    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11233    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   11234    then
   11235      # The compiler can only warn and ignore the option if not recognized
   11236      # So say no if there are warnings
   11237      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   11238      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   11239      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   11240        lt_cv_prog_compiler_c_o=yes
   11241      fi
   11242    fi
   11243    chmod u+w . 2>&5
   11244    $RM conftest*
   11245    # SGI C++ compiler will create directory out/ii_files/ for
   11246    # template instantiation
   11247    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   11248    $RM out/* && rmdir out
   11249    cd ..
   11250    $RM -r conftest
   11251    $RM conftest*
   11252 
   11253 fi
   11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   11255 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   11256 
   11257 
   11258 
   11259 
   11260 hard_links=nottested
   11261 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   11262   # do not overwrite the value of need_locks provided by the user
   11263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   11264 $as_echo_n "checking if we can lock with hard links... " >&6; }
   11265   hard_links=yes
   11266   $RM conftest*
   11267   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   11268   touch conftest.a
   11269   ln conftest.a conftest.b 2>&5 || hard_links=no
   11270   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   11271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   11272 $as_echo "$hard_links" >&6; }
   11273   if test no = "$hard_links"; then
   11274     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   11275 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   11276     need_locks=warn
   11277   fi
   11278 else
   11279   need_locks=no
   11280 fi
   11281 
   11282 
   11283 
   11284 
   11285 
   11286 
   11287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   11288 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   11289 
   11290   runpath_var=
   11291   allow_undefined_flag=
   11292   always_export_symbols=no
   11293   archive_cmds=
   11294   archive_expsym_cmds=
   11295   compiler_needs_object=no
   11296   enable_shared_with_static_runtimes=no
   11297   export_dynamic_flag_spec=
   11298   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   11299   hardcode_automatic=no
   11300   hardcode_direct=no
   11301   hardcode_direct_absolute=no
   11302   hardcode_libdir_flag_spec=
   11303   hardcode_libdir_separator=
   11304   hardcode_minus_L=no
   11305   hardcode_shlibpath_var=unsupported
   11306   inherit_rpath=no
   11307   link_all_deplibs=unknown
   11308   module_cmds=
   11309   module_expsym_cmds=
   11310   old_archive_from_new_cmds=
   11311   old_archive_from_expsyms_cmds=
   11312   thread_safe_flag_spec=
   11313   whole_archive_flag_spec=
   11314   # include_expsyms should be a list of space-separated symbols to be *always*
   11315   # included in the symbol list
   11316   include_expsyms=
   11317   # exclude_expsyms can be an extended regexp of symbols to exclude
   11318   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   11319   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   11320   # as well as any symbol that contains 'd'.
   11321   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   11322   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   11323   # platforms (ab)use it in PIC code, but their linkers get confused if
   11324   # the symbol is explicitly referenced.  Since portable code cannot
   11325   # rely on this symbol name, it's probably fine to never include it in
   11326   # preloaded symbol tables.
   11327   # Exclude shared library initialization/finalization symbols.
   11328   extract_expsyms_cmds=
   11329 
   11330   case $host_os in
   11331   cygwin* | mingw* | pw32* | cegcc*)
   11332     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   11333     # When not using gcc, we currently assume that we are using
   11334     # Microsoft Visual C++.
   11335     if test yes != "$GCC"; then
   11336       with_gnu_ld=no
   11337     fi
   11338     ;;
   11339   interix*)
   11340     # we just hope/assume this is gcc and not c89 (= MSVC++)
   11341     with_gnu_ld=yes
   11342     ;;
   11343   openbsd* | bitrig*)
   11344     with_gnu_ld=no
   11345     ;;
   11346   esac
   11347 
   11348   ld_shlibs=yes
   11349 
   11350   # On some targets, GNU ld is compatible enough with the native linker
   11351   # that we're better off using the native interface for both.
   11352   lt_use_gnu_ld_interface=no
   11353   if test yes = "$with_gnu_ld"; then
   11354     case $host_os in
   11355       aix*)
   11356 	# The AIX port of GNU ld has always aspired to compatibility
   11357 	# with the native linker.  However, as the warning in the GNU ld
   11358 	# block says, versions before 2.19.5* couldn't really create working
   11359 	# shared libraries, regardless of the interface used.
   11360 	case `$LD -v 2>&1` in
   11361 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   11362 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   11363 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   11364 	  *)
   11365 	    lt_use_gnu_ld_interface=yes
   11366 	    ;;
   11367 	esac
   11368 	;;
   11369       *)
   11370 	lt_use_gnu_ld_interface=yes
   11371 	;;
   11372     esac
   11373   fi
   11374 
   11375   if test yes = "$lt_use_gnu_ld_interface"; then
   11376     # If archive_cmds runs LD, not CC, wlarc should be empty
   11377     wlarc='$wl'
   11378 
   11379     # Set some defaults for GNU ld with shared library support. These
   11380     # are reset later if shared libraries are not supported. Putting them
   11381     # here allows them to be overridden if necessary.
   11382     runpath_var=LD_RUN_PATH
   11383     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   11384     export_dynamic_flag_spec='$wl--export-dynamic'
   11385     # ancient GNU ld didn't support --whole-archive et. al.
   11386     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   11387       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   11388     else
   11389       whole_archive_flag_spec=
   11390     fi
   11391     supports_anon_versioning=no
   11392     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
   11393       *GNU\ gold*) supports_anon_versioning=yes ;;
   11394       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   11395       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   11396       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   11397       *\ 2.11.*) ;; # other 2.11 versions
   11398       *) supports_anon_versioning=yes ;;
   11399     esac
   11400 
   11401     # See if GNU ld supports shared libraries.
   11402     case $host_os in
   11403     aix[3-9]*)
   11404       # On AIX/PPC, the GNU linker is very broken
   11405       if test ia64 != "$host_cpu"; then
   11406 	ld_shlibs=no
   11407 	cat <<_LT_EOF 1>&2
   11408 
   11409 *** Warning: the GNU linker, at least up to release 2.19, is reported
   11410 *** to be unable to reliably create shared libraries on AIX.
   11411 *** Therefore, libtool is disabling shared libraries support.  If you
   11412 *** really care for shared libraries, you may want to install binutils
   11413 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   11414 *** You will then need to restart the configuration process.
   11415 
   11416 _LT_EOF
   11417       fi
   11418       ;;
   11419 
   11420     amigaos*)
   11421       case $host_cpu in
   11422       powerpc)
   11423             # see comment about AmigaOS4 .so support
   11424             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11425             archive_expsym_cmds=''
   11426         ;;
   11427       m68k)
   11428             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)'
   11429             hardcode_libdir_flag_spec='-L$libdir'
   11430             hardcode_minus_L=yes
   11431         ;;
   11432       esac
   11433       ;;
   11434 
   11435     beos*)
   11436       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   11437 	allow_undefined_flag=unsupported
   11438 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   11439 	# support --undefined.  This deserves some investigation.  FIXME
   11440 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11441       else
   11442 	ld_shlibs=no
   11443       fi
   11444       ;;
   11445 
   11446     cygwin* | mingw* | pw32* | cegcc*)
   11447       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   11448       # as there is no search path for DLLs.
   11449       hardcode_libdir_flag_spec='-L$libdir'
   11450       export_dynamic_flag_spec='$wl--export-all-symbols'
   11451       allow_undefined_flag=unsupported
   11452       always_export_symbols=no
   11453       enable_shared_with_static_runtimes=yes
   11454       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'
   11455       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   11456 
   11457       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   11458         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   11459 	# If the export-symbols file already is a .def file, use it as
   11460 	# is; otherwise, prepend EXPORTS...
   11461 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   11462           cp $export_symbols $output_objdir/$soname.def;
   11463         else
   11464           echo EXPORTS > $output_objdir/$soname.def;
   11465           cat $export_symbols >> $output_objdir/$soname.def;
   11466         fi~
   11467         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   11468       else
   11469 	ld_shlibs=no
   11470       fi
   11471       ;;
   11472 
   11473     haiku*)
   11474       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11475       link_all_deplibs=yes
   11476       ;;
   11477 
   11478     os2*)
   11479       hardcode_libdir_flag_spec='-L$libdir'
   11480       hardcode_minus_L=yes
   11481       allow_undefined_flag=unsupported
   11482       shrext_cmds=.dll
   11483       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   11484 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   11485 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   11486 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   11487 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   11488 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   11489 	emximp -o $lib $output_objdir/$libname.def'
   11490       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   11491 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   11492 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   11493 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   11494 	prefix_cmds="$SED"~
   11495 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   11496 	  prefix_cmds="$prefix_cmds -e 1d";
   11497 	fi~
   11498 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   11499 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   11500 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   11501 	emximp -o $lib $output_objdir/$libname.def'
   11502       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   11503       enable_shared_with_static_runtimes=yes
   11504       ;;
   11505 
   11506     interix[3-9]*)
   11507       hardcode_direct=no
   11508       hardcode_shlibpath_var=no
   11509       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   11510       export_dynamic_flag_spec='$wl-E'
   11511       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   11512       # Instead, shared libraries are loaded at an image base (0x10000000 by
   11513       # default) and relocated if they conflict, which is a slow very memory
   11514       # consuming and fragmenting process.  To avoid this, we pick a random,
   11515       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   11516       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   11517       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   11518       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'
   11519       ;;
   11520 
   11521     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   11522       tmp_diet=no
   11523       if test linux-dietlibc = "$host_os"; then
   11524 	case $cc_basename in
   11525 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   11526 	esac
   11527       fi
   11528       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   11529 	 && test no = "$tmp_diet"
   11530       then
   11531 	tmp_addflag=' $pic_flag'
   11532 	tmp_sharedflag='-shared'
   11533 	case $cc_basename,$host_cpu in
   11534         pgcc*)				# Portland Group C compiler
   11535 	  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'
   11536 	  tmp_addflag=' $pic_flag'
   11537 	  ;;
   11538 	pgf77* | pgf90* | pgf95* | pgfortran*)
   11539 					# Portland Group f77 and f90 compilers
   11540 	  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'
   11541 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   11542 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   11543 	  tmp_addflag=' -i_dynamic' ;;
   11544 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   11545 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   11546 	ifc* | ifort*)			# Intel Fortran compiler
   11547 	  tmp_addflag=' -nofor_main' ;;
   11548 	lf95*)				# Lahey Fortran 8.1
   11549 	  whole_archive_flag_spec=
   11550 	  tmp_sharedflag='--shared' ;;
   11551         nagfor*)                        # NAGFOR 5.3
   11552           tmp_sharedflag='-Wl,-shared' ;;
   11553 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   11554 	  tmp_sharedflag='-qmkshrobj'
   11555 	  tmp_addflag= ;;
   11556 	nvcc*)	# Cuda Compiler Driver 2.2
   11557 	  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'
   11558 	  compiler_needs_object=yes
   11559 	  ;;
   11560 	esac
   11561 	case `$CC -V 2>&1 | sed 5q` in
   11562 	*Sun\ C*)			# Sun C 5.9
   11563 	  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'
   11564 	  compiler_needs_object=yes
   11565 	  tmp_sharedflag='-G' ;;
   11566 	*Sun\ F*)			# Sun Fortran 8.3
   11567 	  tmp_sharedflag='-G' ;;
   11568 	esac
   11569 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11570 
   11571         if test yes = "$supports_anon_versioning"; then
   11572           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   11573             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   11574             echo "local: *; };" >> $output_objdir/$libname.ver~
   11575             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   11576         fi
   11577 
   11578 	case $cc_basename in
   11579 	tcc*)
   11580 	  export_dynamic_flag_spec='-rdynamic'
   11581 	  ;;
   11582 	xlf* | bgf* | bgxlf* | mpixlf*)
   11583 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   11584 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   11585 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   11586 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   11587 	  if test yes = "$supports_anon_versioning"; then
   11588 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   11589               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   11590               echo "local: *; };" >> $output_objdir/$libname.ver~
   11591               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   11592 	  fi
   11593 	  ;;
   11594 	esac
   11595       else
   11596         ld_shlibs=no
   11597       fi
   11598       ;;
   11599 
   11600     netbsd*)
   11601       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   11602 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   11603 	wlarc=
   11604       else
   11605 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11606 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   11607       fi
   11608       ;;
   11609 
   11610     solaris*)
   11611       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   11612 	ld_shlibs=no
   11613 	cat <<_LT_EOF 1>&2
   11614 
   11615 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   11616 *** create shared libraries on Solaris systems.  Therefore, libtool
   11617 *** is disabling shared libraries support.  We urge you to upgrade GNU
   11618 *** binutils to release 2.9.1 or newer.  Another option is to modify
   11619 *** your PATH or compiler configuration so that the native linker is
   11620 *** used, and then restart.
   11621 
   11622 _LT_EOF
   11623       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   11624 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11625 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   11626       else
   11627 	ld_shlibs=no
   11628       fi
   11629       ;;
   11630 
   11631     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   11632       case `$LD -v 2>&1` in
   11633         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   11634 	ld_shlibs=no
   11635 	cat <<_LT_EOF 1>&2
   11636 
   11637 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   11638 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   11639 *** is disabling shared libraries support.  We urge you to upgrade GNU
   11640 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   11641 *** your PATH or compiler configuration so that the native linker is
   11642 *** used, and then restart.
   11643 
   11644 _LT_EOF
   11645 	;;
   11646 	*)
   11647 	  # For security reasons, it is highly recommended that you always
   11648 	  # use absolute paths for naming shared libraries, and exclude the
   11649 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   11650 	  # requires that you compile everything twice, which is a pain.
   11651 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   11652 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   11653 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11654 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   11655 	  else
   11656 	    ld_shlibs=no
   11657 	  fi
   11658 	;;
   11659       esac
   11660       ;;
   11661 
   11662     sunos4*)
   11663       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   11664       wlarc=
   11665       hardcode_direct=yes
   11666       hardcode_shlibpath_var=no
   11667       ;;
   11668 
   11669     *)
   11670       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   11671 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11672 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   11673       else
   11674 	ld_shlibs=no
   11675       fi
   11676       ;;
   11677     esac
   11678 
   11679     if test no = "$ld_shlibs"; then
   11680       runpath_var=
   11681       hardcode_libdir_flag_spec=
   11682       export_dynamic_flag_spec=
   11683       whole_archive_flag_spec=
   11684     fi
   11685   else
   11686     # PORTME fill in a description of your system's linker (not GNU ld)
   11687     case $host_os in
   11688     aix3*)
   11689       allow_undefined_flag=unsupported
   11690       always_export_symbols=yes
   11691       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'
   11692       # Note: this linker hardcodes the directories in LIBPATH if there
   11693       # are no directories specified by -L.
   11694       hardcode_minus_L=yes
   11695       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   11696 	# Neither direct hardcoding nor static linking is supported with a
   11697 	# broken collect2.
   11698 	hardcode_direct=unsupported
   11699       fi
   11700       ;;
   11701 
   11702     aix[4-9]*)
   11703       if test ia64 = "$host_cpu"; then
   11704 	# On IA64, the linker does run time linking by default, so we don't
   11705 	# have to do anything special.
   11706 	aix_use_runtimelinking=no
   11707 	exp_sym_flag='-Bexport'
   11708 	no_entry_flag=
   11709       else
   11710 	# If we're using GNU nm, then we don't want the "-C" option.
   11711 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   11712 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   11713 	# weak defined symbols like other global defined symbols, whereas
   11714 	# GNU nm marks them as "W".
   11715 	# While the 'weak' keyword is ignored in the Export File, we need
   11716 	# it in the Import File for the 'aix-soname' feature, so we have
   11717 	# to replace the "-B" option with "-P" for AIX nm.
   11718 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   11719 	  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'
   11720 	else
   11721 	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
   11722 	fi
   11723 	aix_use_runtimelinking=no
   11724 
   11725 	# Test if we are trying to use run time linking or normal
   11726 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   11727 	# have runtime linking enabled, and use it for executables.
   11728 	# For shared libraries, we enable/disable runtime linking
   11729 	# depending on the kind of the shared library created -
   11730 	# when "with_aix_soname,aix_use_runtimelinking" is:
   11731 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   11732 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   11733 	#            lib.a           static archive
   11734 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   11735 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   11736 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   11737 	#            lib.a(lib.so.V) shared, rtl:no
   11738 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   11739 	#            lib.a           static archive
   11740 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   11741 	  for ld_flag in $LDFLAGS; do
   11742 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   11743 	    aix_use_runtimelinking=yes
   11744 	    break
   11745 	  fi
   11746 	  done
   11747 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   11748 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   11749 	    # so we don't have lib.a shared libs to link our executables.
   11750 	    # We have to force runtime linking in this case.
   11751 	    aix_use_runtimelinking=yes
   11752 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   11753 	  fi
   11754 	  ;;
   11755 	esac
   11756 
   11757 	exp_sym_flag='-bexport'
   11758 	no_entry_flag='-bnoentry'
   11759       fi
   11760 
   11761       # When large executables or shared objects are built, AIX ld can
   11762       # have problems creating the table of contents.  If linking a library
   11763       # or program results in "error TOC overflow" add -mminimal-toc to
   11764       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   11765       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   11766 
   11767       archive_cmds=''
   11768       hardcode_direct=yes
   11769       hardcode_direct_absolute=yes
   11770       hardcode_libdir_separator=':'
   11771       link_all_deplibs=yes
   11772       file_list_spec='$wl-f,'
   11773       case $with_aix_soname,$aix_use_runtimelinking in
   11774       aix,*) ;; # traditional, no import file
   11775       svr4,* | *,yes) # use import file
   11776 	# The Import File defines what to hardcode.
   11777 	hardcode_direct=no
   11778 	hardcode_direct_absolute=no
   11779 	;;
   11780       esac
   11781 
   11782       if test yes = "$GCC"; then
   11783 	case $host_os in aix4.[012]|aix4.[012].*)
   11784 	# We only want to do this on AIX 4.2 and lower, the check
   11785 	# below for broken collect2 doesn't work under 4.3+
   11786 	  collect2name=`$CC -print-prog-name=collect2`
   11787 	  if test -f "$collect2name" &&
   11788 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   11789 	  then
   11790 	  # We have reworked collect2
   11791 	  :
   11792 	  else
   11793 	  # We have old collect2
   11794 	  hardcode_direct=unsupported
   11795 	  # It fails to find uninstalled libraries when the uninstalled
   11796 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   11797 	  # to unsupported forces relinking
   11798 	  hardcode_minus_L=yes
   11799 	  hardcode_libdir_flag_spec='-L$libdir'
   11800 	  hardcode_libdir_separator=
   11801 	  fi
   11802 	  ;;
   11803 	esac
   11804 	shared_flag='-shared'
   11805 	if test yes = "$aix_use_runtimelinking"; then
   11806 	  shared_flag="$shared_flag "'$wl-G'
   11807 	fi
   11808 	# Need to ensure runtime linking is disabled for the traditional
   11809 	# shared library, or the linker may eventually find shared libraries
   11810 	# /with/ Import File - we do not want to mix them.
   11811 	shared_flag_aix='-shared'
   11812 	shared_flag_svr4='-shared $wl-G'
   11813       else
   11814 	# not using gcc
   11815 	if test ia64 = "$host_cpu"; then
   11816 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   11817 	# chokes on -Wl,-G. The following line is correct:
   11818 	  shared_flag='-G'
   11819 	else
   11820 	  if test yes = "$aix_use_runtimelinking"; then
   11821 	    shared_flag='$wl-G'
   11822 	  else
   11823 	    shared_flag='$wl-bM:SRE'
   11824 	  fi
   11825 	  shared_flag_aix='$wl-bM:SRE'
   11826 	  shared_flag_svr4='$wl-G'
   11827 	fi
   11828       fi
   11829 
   11830       export_dynamic_flag_spec='$wl-bexpall'
   11831       # It seems that -bexpall does not export symbols beginning with
   11832       # underscore (_), so it is better to generate a list of symbols to export.
   11833       always_export_symbols=yes
   11834       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   11835 	# Warning - without using the other runtime loading flags (-brtl),
   11836 	# -berok will link without error, but may produce a broken library.
   11837 	allow_undefined_flag='-berok'
   11838         # Determine the default libpath from the value encoded in an
   11839         # empty executable.
   11840         if test set = "${lt_cv_aix_libpath+set}"; then
   11841   aix_libpath=$lt_cv_aix_libpath
   11842 else
   11843   if ${lt_cv_aix_libpath_+:} false; then :
   11844   $as_echo_n "(cached) " >&6
   11845 else
   11846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11847 /* end confdefs.h.  */
   11848 
   11849 int
   11850 main ()
   11851 {
   11852 
   11853   ;
   11854   return 0;
   11855 }
   11856 _ACEOF
   11857 if ac_fn_c_try_link "$LINENO"; then :
   11858 
   11859   lt_aix_libpath_sed='
   11860       /Import File Strings/,/^$/ {
   11861 	  /^0/ {
   11862 	      s/^0  *\([^ ]*\) *$/\1/
   11863 	      p
   11864 	  }
   11865       }'
   11866   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11867   # Check for a 64-bit object if we didn't find anything.
   11868   if test -z "$lt_cv_aix_libpath_"; then
   11869     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11870   fi
   11871 fi
   11872 rm -f core conftest.err conftest.$ac_objext \
   11873     conftest$ac_exeext conftest.$ac_ext
   11874   if test -z "$lt_cv_aix_libpath_"; then
   11875     lt_cv_aix_libpath_=/usr/lib:/lib
   11876   fi
   11877 
   11878 fi
   11879 
   11880   aix_libpath=$lt_cv_aix_libpath_
   11881 fi
   11882 
   11883         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   11884         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
   11885       else
   11886 	if test ia64 = "$host_cpu"; then
   11887 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   11888 	  allow_undefined_flag="-z nodefs"
   11889 	  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"
   11890 	else
   11891 	 # Determine the default libpath from the value encoded in an
   11892 	 # empty executable.
   11893 	 if test set = "${lt_cv_aix_libpath+set}"; then
   11894   aix_libpath=$lt_cv_aix_libpath
   11895 else
   11896   if ${lt_cv_aix_libpath_+:} false; then :
   11897   $as_echo_n "(cached) " >&6
   11898 else
   11899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11900 /* end confdefs.h.  */
   11901 
   11902 int
   11903 main ()
   11904 {
   11905 
   11906   ;
   11907   return 0;
   11908 }
   11909 _ACEOF
   11910 if ac_fn_c_try_link "$LINENO"; then :
   11911 
   11912   lt_aix_libpath_sed='
   11913       /Import File Strings/,/^$/ {
   11914 	  /^0/ {
   11915 	      s/^0  *\([^ ]*\) *$/\1/
   11916 	      p
   11917 	  }
   11918       }'
   11919   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11920   # Check for a 64-bit object if we didn't find anything.
   11921   if test -z "$lt_cv_aix_libpath_"; then
   11922     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11923   fi
   11924 fi
   11925 rm -f core conftest.err conftest.$ac_objext \
   11926     conftest$ac_exeext conftest.$ac_ext
   11927   if test -z "$lt_cv_aix_libpath_"; then
   11928     lt_cv_aix_libpath_=/usr/lib:/lib
   11929   fi
   11930 
   11931 fi
   11932 
   11933   aix_libpath=$lt_cv_aix_libpath_
   11934 fi
   11935 
   11936 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   11937 	  # Warning - without using the other run time loading flags,
   11938 	  # -berok will link without error, but may produce a broken library.
   11939 	  no_undefined_flag=' $wl-bernotok'
   11940 	  allow_undefined_flag=' $wl-berok'
   11941 	  if test yes = "$with_gnu_ld"; then
   11942 	    # We only use this code for GNU lds that support --whole-archive.
   11943 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   11944 	  else
   11945 	    # Exported symbols can be pulled into shared objects from archives
   11946 	    whole_archive_flag_spec='$convenience'
   11947 	  fi
   11948 	  archive_cmds_need_lc=yes
   11949 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   11950 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   11951 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   11952 	  if test svr4 != "$with_aix_soname"; then
   11953 	    # This is similar to how AIX traditionally builds its shared libraries.
   11954 	    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'
   11955 	  fi
   11956 	  if test aix != "$with_aix_soname"; then
   11957 	    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'
   11958 	  else
   11959 	    # used by -dlpreopen to get the symbols
   11960 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   11961 	  fi
   11962 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   11963 	fi
   11964       fi
   11965       ;;
   11966 
   11967     amigaos*)
   11968       case $host_cpu in
   11969       powerpc)
   11970             # see comment about AmigaOS4 .so support
   11971             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11972             archive_expsym_cmds=''
   11973         ;;
   11974       m68k)
   11975             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)'
   11976             hardcode_libdir_flag_spec='-L$libdir'
   11977             hardcode_minus_L=yes
   11978         ;;
   11979       esac
   11980       ;;
   11981 
   11982     bsdi[45]*)
   11983       export_dynamic_flag_spec=-rdynamic
   11984       ;;
   11985 
   11986     cygwin* | mingw* | pw32* | cegcc*)
   11987       # When not using gcc, we currently assume that we are using
   11988       # Microsoft Visual C++.
   11989       # hardcode_libdir_flag_spec is actually meaningless, as there is
   11990       # no search path for DLLs.
   11991       case $cc_basename in
   11992       cl*)
   11993 	# Native MSVC
   11994 	hardcode_libdir_flag_spec=' '
   11995 	allow_undefined_flag=unsupported
   11996 	always_export_symbols=yes
   11997 	file_list_spec='@'
   11998 	# Tell ltmain to make .lib files, not .a files.
   11999 	libext=lib
   12000 	# Tell ltmain to make .dll files, not .so files.
   12001 	shrext_cmds=.dll
   12002 	# FIXME: Setting linknames here is a bad hack.
   12003 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   12004 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   12005             cp "$export_symbols" "$output_objdir/$soname.def";
   12006             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   12007           else
   12008             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   12009           fi~
   12010           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   12011           linknames='
   12012 	# The linker will not automatically build a static lib if we build a DLL.
   12013 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   12014 	enable_shared_with_static_runtimes=yes
   12015 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   12016 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   12017 	# Don't use ranlib
   12018 	old_postinstall_cmds='chmod 644 $oldlib'
   12019 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   12020           lt_tool_outputfile="@TOOL_OUTPUT@"~
   12021           case $lt_outputfile in
   12022             *.exe|*.EXE) ;;
   12023             *)
   12024               lt_outputfile=$lt_outputfile.exe
   12025               lt_tool_outputfile=$lt_tool_outputfile.exe
   12026               ;;
   12027           esac~
   12028           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   12029             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   12030             $RM "$lt_outputfile.manifest";
   12031           fi'
   12032 	;;
   12033       *)
   12034 	# Assume MSVC wrapper
   12035 	hardcode_libdir_flag_spec=' '
   12036 	allow_undefined_flag=unsupported
   12037 	# Tell ltmain to make .lib files, not .a files.
   12038 	libext=lib
   12039 	# Tell ltmain to make .dll files, not .so files.
   12040 	shrext_cmds=.dll
   12041 	# FIXME: Setting linknames here is a bad hack.
   12042 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   12043 	# The linker will automatically build a .lib file if we build a DLL.
   12044 	old_archive_from_new_cmds='true'
   12045 	# FIXME: Should let the user specify the lib program.
   12046 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   12047 	enable_shared_with_static_runtimes=yes
   12048 	;;
   12049       esac
   12050       ;;
   12051 
   12052     darwin* | rhapsody*)
   12053 
   12054 
   12055   archive_cmds_need_lc=no
   12056   hardcode_direct=no
   12057   hardcode_automatic=yes
   12058   hardcode_shlibpath_var=unsupported
   12059   if test yes = "$lt_cv_ld_force_load"; then
   12060     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\"`'
   12061 
   12062   else
   12063     whole_archive_flag_spec=''
   12064   fi
   12065   link_all_deplibs=yes
   12066   allow_undefined_flag=$_lt_dar_allow_undefined
   12067   case $cc_basename in
   12068      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   12069      *) _lt_dar_can_shared=$GCC ;;
   12070   esac
   12071   if test yes = "$_lt_dar_can_shared"; then
   12072     output_verbose_link_cmd=func_echo_all
   12073     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
   12074     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   12075     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"
   12076     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"
   12077 
   12078   else
   12079   ld_shlibs=no
   12080   fi
   12081 
   12082       ;;
   12083 
   12084     dgux*)
   12085       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12086       hardcode_libdir_flag_spec='-L$libdir'
   12087       hardcode_shlibpath_var=no
   12088       ;;
   12089 
   12090     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   12091     # support.  Future versions do this automatically, but an explicit c++rt0.o
   12092     # does not break anything, and helps significantly (at the cost of a little
   12093     # extra space).
   12094     freebsd2.2*)
   12095       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   12096       hardcode_libdir_flag_spec='-R$libdir'
   12097       hardcode_direct=yes
   12098       hardcode_shlibpath_var=no
   12099       ;;
   12100 
   12101     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   12102     freebsd2.*)
   12103       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   12104       hardcode_direct=yes
   12105       hardcode_minus_L=yes
   12106       hardcode_shlibpath_var=no
   12107       ;;
   12108 
   12109     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   12110     freebsd* | dragonfly*)
   12111       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   12112       hardcode_libdir_flag_spec='-R$libdir'
   12113       hardcode_direct=yes
   12114       hardcode_shlibpath_var=no
   12115       ;;
   12116 
   12117     hpux9*)
   12118       if test yes = "$GCC"; then
   12119 	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'
   12120       else
   12121 	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'
   12122       fi
   12123       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   12124       hardcode_libdir_separator=:
   12125       hardcode_direct=yes
   12126 
   12127       # hardcode_minus_L: Not really in the search PATH,
   12128       # but as the default location of the library.
   12129       hardcode_minus_L=yes
   12130       export_dynamic_flag_spec='$wl-E'
   12131       ;;
   12132 
   12133     hpux10*)
   12134       if test yes,no = "$GCC,$with_gnu_ld"; then
   12135 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   12136       else
   12137 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   12138       fi
   12139       if test no = "$with_gnu_ld"; then
   12140 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   12141 	hardcode_libdir_separator=:
   12142 	hardcode_direct=yes
   12143 	hardcode_direct_absolute=yes
   12144 	export_dynamic_flag_spec='$wl-E'
   12145 	# hardcode_minus_L: Not really in the search PATH,
   12146 	# but as the default location of the library.
   12147 	hardcode_minus_L=yes
   12148       fi
   12149       ;;
   12150 
   12151     hpux11*)
   12152       if test yes,no = "$GCC,$with_gnu_ld"; then
   12153 	case $host_cpu in
   12154 	hppa*64*)
   12155 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   12156 	  ;;
   12157 	ia64*)
   12158 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   12159 	  ;;
   12160 	*)
   12161 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   12162 	  ;;
   12163 	esac
   12164       else
   12165 	case $host_cpu in
   12166 	hppa*64*)
   12167 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   12168 	  ;;
   12169 	ia64*)
   12170 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   12171 	  ;;
   12172 	*)
   12173 
   12174 	  # Older versions of the 11.00 compiler do not understand -b yet
   12175 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   12176 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   12177 $as_echo_n "checking if $CC understands -b... " >&6; }
   12178 if ${lt_cv_prog_compiler__b+:} false; then :
   12179   $as_echo_n "(cached) " >&6
   12180 else
   12181   lt_cv_prog_compiler__b=no
   12182    save_LDFLAGS=$LDFLAGS
   12183    LDFLAGS="$LDFLAGS -b"
   12184    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   12185    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   12186      # The linker can only warn and ignore the option if not recognized
   12187      # So say no if there are warnings
   12188      if test -s conftest.err; then
   12189        # Append any errors to the config.log.
   12190        cat conftest.err 1>&5
   12191        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   12192        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   12193        if diff conftest.exp conftest.er2 >/dev/null; then
   12194          lt_cv_prog_compiler__b=yes
   12195        fi
   12196      else
   12197        lt_cv_prog_compiler__b=yes
   12198      fi
   12199    fi
   12200    $RM -r conftest*
   12201    LDFLAGS=$save_LDFLAGS
   12202 
   12203 fi
   12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   12205 $as_echo "$lt_cv_prog_compiler__b" >&6; }
   12206 
   12207 if test yes = "$lt_cv_prog_compiler__b"; then
   12208     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   12209 else
   12210     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   12211 fi
   12212 
   12213 	  ;;
   12214 	esac
   12215       fi
   12216       if test no = "$with_gnu_ld"; then
   12217 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   12218 	hardcode_libdir_separator=:
   12219 
   12220 	case $host_cpu in
   12221 	hppa*64*|ia64*)
   12222 	  hardcode_direct=no
   12223 	  hardcode_shlibpath_var=no
   12224 	  ;;
   12225 	*)
   12226 	  hardcode_direct=yes
   12227 	  hardcode_direct_absolute=yes
   12228 	  export_dynamic_flag_spec='$wl-E'
   12229 
   12230 	  # hardcode_minus_L: Not really in the search PATH,
   12231 	  # but as the default location of the library.
   12232 	  hardcode_minus_L=yes
   12233 	  ;;
   12234 	esac
   12235       fi
   12236       ;;
   12237 
   12238     irix5* | irix6* | nonstopux*)
   12239       if test yes = "$GCC"; then
   12240 	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'
   12241 	# Try to use the -exported_symbol ld option, if it does not
   12242 	# work, assume that -exports_file does not work either and
   12243 	# implicitly export all symbols.
   12244 	# This should be the same for all languages, so no per-tag cache variable.
   12245 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   12246 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   12247 if ${lt_cv_irix_exported_symbol+:} false; then :
   12248   $as_echo_n "(cached) " >&6
   12249 else
   12250   save_LDFLAGS=$LDFLAGS
   12251 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   12252 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12253 /* end confdefs.h.  */
   12254 int foo (void) { return 0; }
   12255 _ACEOF
   12256 if ac_fn_c_try_link "$LINENO"; then :
   12257   lt_cv_irix_exported_symbol=yes
   12258 else
   12259   lt_cv_irix_exported_symbol=no
   12260 fi
   12261 rm -f core conftest.err conftest.$ac_objext \
   12262     conftest$ac_exeext conftest.$ac_ext
   12263            LDFLAGS=$save_LDFLAGS
   12264 fi
   12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   12266 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
   12267 	if test yes = "$lt_cv_irix_exported_symbol"; then
   12268           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'
   12269 	fi
   12270       else
   12271 	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'
   12272 	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'
   12273       fi
   12274       archive_cmds_need_lc='no'
   12275       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   12276       hardcode_libdir_separator=:
   12277       inherit_rpath=yes
   12278       link_all_deplibs=yes
   12279       ;;
   12280 
   12281     linux*)
   12282       case $cc_basename in
   12283       tcc*)
   12284 	# Fabrice Bellard et al's Tiny C Compiler
   12285 	ld_shlibs=yes
   12286 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   12287 	;;
   12288       esac
   12289       ;;
   12290 
   12291     netbsd*)
   12292       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   12293 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   12294       else
   12295 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   12296       fi
   12297       hardcode_libdir_flag_spec='-R$libdir'
   12298       hardcode_direct=yes
   12299       hardcode_shlibpath_var=no
   12300       ;;
   12301 
   12302     newsos6)
   12303       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12304       hardcode_direct=yes
   12305       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   12306       hardcode_libdir_separator=:
   12307       hardcode_shlibpath_var=no
   12308       ;;
   12309 
   12310     *nto* | *qnx*)
   12311       ;;
   12312 
   12313     openbsd* | bitrig*)
   12314       if test -f /usr/libexec/ld.so; then
   12315 	hardcode_direct=yes
   12316 	hardcode_shlibpath_var=no
   12317 	hardcode_direct_absolute=yes
   12318 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   12319 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   12320 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   12321 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   12322 	  export_dynamic_flag_spec='$wl-E'
   12323 	else
   12324 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   12325 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   12326 	fi
   12327       else
   12328 	ld_shlibs=no
   12329       fi
   12330       ;;
   12331 
   12332     os2*)
   12333       hardcode_libdir_flag_spec='-L$libdir'
   12334       hardcode_minus_L=yes
   12335       allow_undefined_flag=unsupported
   12336       shrext_cmds=.dll
   12337       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   12338 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   12339 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   12340 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   12341 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   12342 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   12343 	emximp -o $lib $output_objdir/$libname.def'
   12344       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   12345 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   12346 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   12347 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   12348 	prefix_cmds="$SED"~
   12349 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   12350 	  prefix_cmds="$prefix_cmds -e 1d";
   12351 	fi~
   12352 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   12353 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   12354 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   12355 	emximp -o $lib $output_objdir/$libname.def'
   12356       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   12357       enable_shared_with_static_runtimes=yes
   12358       ;;
   12359 
   12360     osf3*)
   12361       if test yes = "$GCC"; then
   12362 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   12363 	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'
   12364       else
   12365 	allow_undefined_flag=' -expect_unresolved \*'
   12366 	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'
   12367       fi
   12368       archive_cmds_need_lc='no'
   12369       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   12370       hardcode_libdir_separator=:
   12371       ;;
   12372 
   12373     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   12374       if test yes = "$GCC"; then
   12375 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   12376 	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'
   12377 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   12378       else
   12379 	allow_undefined_flag=' -expect_unresolved \*'
   12380 	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'
   12381 	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~
   12382           $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'
   12383 
   12384 	# Both c and cxx compiler support -rpath directly
   12385 	hardcode_libdir_flag_spec='-rpath $libdir'
   12386       fi
   12387       archive_cmds_need_lc='no'
   12388       hardcode_libdir_separator=:
   12389       ;;
   12390 
   12391     solaris*)
   12392       no_undefined_flag=' -z defs'
   12393       if test yes = "$GCC"; then
   12394 	wlarc='$wl'
   12395 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   12396 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   12397           $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'
   12398       else
   12399 	case `$CC -V 2>&1` in
   12400 	*"Compilers 5.0"*)
   12401 	  wlarc=''
   12402 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12403 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   12404             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   12405 	  ;;
   12406 	*)
   12407 	  wlarc='$wl'
   12408 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   12409 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   12410             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   12411 	  ;;
   12412 	esac
   12413       fi
   12414       hardcode_libdir_flag_spec='-R$libdir'
   12415       hardcode_shlibpath_var=no
   12416       case $host_os in
   12417       solaris2.[0-5] | solaris2.[0-5].*) ;;
   12418       *)
   12419 	# The compiler driver will combine and reorder linker options,
   12420 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   12421 	# but is careful enough not to reorder.
   12422 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   12423 	if test yes = "$GCC"; then
   12424 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   12425 	else
   12426 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   12427 	fi
   12428 	;;
   12429       esac
   12430       link_all_deplibs=yes
   12431       ;;
   12432 
   12433     sunos4*)
   12434       if test sequent = "$host_vendor"; then
   12435 	# Use $CC to link under sequent, because it throws in some extra .o
   12436 	# files that make .init and .fini sections work.
   12437 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   12438       else
   12439 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   12440       fi
   12441       hardcode_libdir_flag_spec='-L$libdir'
   12442       hardcode_direct=yes
   12443       hardcode_minus_L=yes
   12444       hardcode_shlibpath_var=no
   12445       ;;
   12446 
   12447     sysv4)
   12448       case $host_vendor in
   12449 	sni)
   12450 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12451 	  hardcode_direct=yes # is this really true???
   12452 	;;
   12453 	siemens)
   12454 	  ## LD is ld it makes a PLAMLIB
   12455 	  ## CC just makes a GrossModule.
   12456 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   12457 	  reload_cmds='$CC -r -o $output$reload_objs'
   12458 	  hardcode_direct=no
   12459         ;;
   12460 	motorola)
   12461 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12462 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   12463 	;;
   12464       esac
   12465       runpath_var='LD_RUN_PATH'
   12466       hardcode_shlibpath_var=no
   12467       ;;
   12468 
   12469     sysv4.3*)
   12470       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12471       hardcode_shlibpath_var=no
   12472       export_dynamic_flag_spec='-Bexport'
   12473       ;;
   12474 
   12475     sysv4*MP*)
   12476       if test -d /usr/nec; then
   12477 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12478 	hardcode_shlibpath_var=no
   12479 	runpath_var=LD_RUN_PATH
   12480 	hardcode_runpath_var=yes
   12481 	ld_shlibs=yes
   12482       fi
   12483       ;;
   12484 
   12485     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   12486       no_undefined_flag='$wl-z,text'
   12487       archive_cmds_need_lc=no
   12488       hardcode_shlibpath_var=no
   12489       runpath_var='LD_RUN_PATH'
   12490 
   12491       if test yes = "$GCC"; then
   12492 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12493 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12494       else
   12495 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12496 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12497       fi
   12498       ;;
   12499 
   12500     sysv5* | sco3.2v5* | sco5v6*)
   12501       # Note: We CANNOT use -z defs as we might desire, because we do not
   12502       # link with -lc, and that would cause any symbols used from libc to
   12503       # always be unresolved, which means just about no library would
   12504       # ever link correctly.  If we're not using GNU ld we use -z text
   12505       # though, which does catch some bad symbols but isn't as heavy-handed
   12506       # as -z defs.
   12507       no_undefined_flag='$wl-z,text'
   12508       allow_undefined_flag='$wl-z,nodefs'
   12509       archive_cmds_need_lc=no
   12510       hardcode_shlibpath_var=no
   12511       hardcode_libdir_flag_spec='$wl-R,$libdir'
   12512       hardcode_libdir_separator=':'
   12513       link_all_deplibs=yes
   12514       export_dynamic_flag_spec='$wl-Bexport'
   12515       runpath_var='LD_RUN_PATH'
   12516 
   12517       if test yes = "$GCC"; then
   12518 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12519 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12520       else
   12521 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12522 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12523       fi
   12524       ;;
   12525 
   12526     uts4*)
   12527       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12528       hardcode_libdir_flag_spec='-L$libdir'
   12529       hardcode_shlibpath_var=no
   12530       ;;
   12531 
   12532     *)
   12533       ld_shlibs=no
   12534       ;;
   12535     esac
   12536 
   12537     if test sni = "$host_vendor"; then
   12538       case $host in
   12539       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   12540 	export_dynamic_flag_spec='$wl-Blargedynsym'
   12541 	;;
   12542       esac
   12543     fi
   12544   fi
   12545 
   12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   12547 $as_echo "$ld_shlibs" >&6; }
   12548 test no = "$ld_shlibs" && can_build_shared=no
   12549 
   12550 with_gnu_ld=$with_gnu_ld
   12551 
   12552 
   12553 
   12554 
   12555 
   12556 
   12557 
   12558 
   12559 
   12560 
   12561 
   12562 
   12563 
   12564 
   12565 
   12566 #
   12567 # Do we need to explicitly link libc?
   12568 #
   12569 case "x$archive_cmds_need_lc" in
   12570 x|xyes)
   12571   # Assume -lc should be added
   12572   archive_cmds_need_lc=yes
   12573 
   12574   if test yes,yes = "$GCC,$enable_shared"; then
   12575     case $archive_cmds in
   12576     *'~'*)
   12577       # FIXME: we may have to deal with multi-command sequences.
   12578       ;;
   12579     '$CC '*)
   12580       # Test whether the compiler implicitly links with -lc since on some
   12581       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   12582       # to ld, don't add -lc before -lgcc.
   12583       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   12584 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   12585 if ${lt_cv_archive_cmds_need_lc+:} false; then :
   12586   $as_echo_n "(cached) " >&6
   12587 else
   12588   $RM conftest*
   12589 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   12590 
   12591 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   12592   (eval $ac_compile) 2>&5
   12593   ac_status=$?
   12594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12595   test $ac_status = 0; } 2>conftest.err; then
   12596 	  soname=conftest
   12597 	  lib=conftest
   12598 	  libobjs=conftest.$ac_objext
   12599 	  deplibs=
   12600 	  wl=$lt_prog_compiler_wl
   12601 	  pic_flag=$lt_prog_compiler_pic
   12602 	  compiler_flags=-v
   12603 	  linker_flags=-v
   12604 	  verstring=
   12605 	  output_objdir=.
   12606 	  libname=conftest
   12607 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   12608 	  allow_undefined_flag=
   12609 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   12610   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   12611   ac_status=$?
   12612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12613   test $ac_status = 0; }
   12614 	  then
   12615 	    lt_cv_archive_cmds_need_lc=no
   12616 	  else
   12617 	    lt_cv_archive_cmds_need_lc=yes
   12618 	  fi
   12619 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   12620 	else
   12621 	  cat conftest.err 1>&5
   12622 	fi
   12623 	$RM conftest*
   12624 
   12625 fi
   12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   12627 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   12628       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   12629       ;;
   12630     esac
   12631   fi
   12632   ;;
   12633 esac
   12634 
   12635 
   12636 
   12637 
   12638 
   12639 
   12640 
   12641 
   12642 
   12643 
   12644 
   12645 
   12646 
   12647 
   12648 
   12649 
   12650 
   12651 
   12652 
   12653 
   12654 
   12655 
   12656 
   12657 
   12658 
   12659 
   12660 
   12661 
   12662 
   12663 
   12664 
   12665 
   12666 
   12667 
   12668 
   12669 
   12670 
   12671 
   12672 
   12673 
   12674 
   12675 
   12676 
   12677 
   12678 
   12679 
   12680 
   12681 
   12682 
   12683 
   12684 
   12685 
   12686 
   12687 
   12688 
   12689 
   12690 
   12691 
   12692 
   12693 
   12694 
   12695 
   12696 
   12697 
   12698 
   12699 
   12700 
   12701 
   12702 
   12703 
   12704 
   12705 
   12706 
   12707 
   12708 
   12709 
   12710 
   12711 
   12712 
   12713 
   12714 
   12715 
   12716 
   12717 
   12718 
   12719 
   12720 
   12721 
   12722 
   12723 
   12724 
   12725 
   12726 
   12727 
   12728 
   12729 
   12730 
   12731 
   12732 
   12733 
   12734 
   12735 
   12736 
   12737 
   12738 
   12739 
   12740 
   12741 
   12742 
   12743 
   12744 
   12745 
   12746 
   12747 
   12748 
   12749 
   12750 
   12751 
   12752 
   12753 
   12754 
   12755 
   12756 
   12757 
   12758 
   12759 
   12760 
   12761 
   12762 
   12763 
   12764 
   12765 
   12766 
   12767 
   12768 
   12769 
   12770 
   12771 
   12772 
   12773 
   12774 
   12775 
   12776 
   12777 
   12778 
   12779 
   12780 
   12781 
   12782 
   12783 
   12784 
   12785 
   12786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   12787 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   12788 
   12789 if test yes = "$GCC"; then
   12790   case $host_os in
   12791     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   12792     *) lt_awk_arg='/^libraries:/' ;;
   12793   esac
   12794   case $host_os in
   12795     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   12796     *) lt_sed_strip_eq='s|=/|/|g' ;;
   12797   esac
   12798   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   12799   case $lt_search_path_spec in
   12800   *\;*)
   12801     # if the path contains ";" then we assume it to be the separator
   12802     # otherwise default to the standard path separator (i.e. ":") - it is
   12803     # assumed that no part of a normal pathname contains ";" but that should
   12804     # okay in the real world where ";" in dirpaths is itself problematic.
   12805     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   12806     ;;
   12807   *)
   12808     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   12809     ;;
   12810   esac
   12811   # Ok, now we have the path, separated by spaces, we can step through it
   12812   # and add multilib dir if necessary...
   12813   lt_tmp_lt_search_path_spec=
   12814   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   12815   # ...but if some path component already ends with the multilib dir we assume
   12816   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   12817   case "$lt_multi_os_dir; $lt_search_path_spec " in
   12818   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   12819     lt_multi_os_dir=
   12820     ;;
   12821   esac
   12822   for lt_sys_path in $lt_search_path_spec; do
   12823     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   12824       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   12825     elif test -n "$lt_multi_os_dir"; then
   12826       test -d "$lt_sys_path" && \
   12827 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   12828     fi
   12829   done
   12830   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   12831 BEGIN {RS = " "; FS = "/|\n";} {
   12832   lt_foo = "";
   12833   lt_count = 0;
   12834   for (lt_i = NF; lt_i > 0; lt_i--) {
   12835     if ($lt_i != "" && $lt_i != ".") {
   12836       if ($lt_i == "..") {
   12837         lt_count++;
   12838       } else {
   12839         if (lt_count == 0) {
   12840           lt_foo = "/" $lt_i lt_foo;
   12841         } else {
   12842           lt_count--;
   12843         }
   12844       }
   12845     }
   12846   }
   12847   if (lt_foo != "") { lt_freq[lt_foo]++; }
   12848   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   12849 }'`
   12850   # AWK program above erroneously prepends '/' to C:/dos/paths
   12851   # for these hosts.
   12852   case $host_os in
   12853     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   12854       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   12855   esac
   12856   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   12857 else
   12858   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   12859 fi
   12860 library_names_spec=
   12861 libname_spec='lib$name'
   12862 soname_spec=
   12863 shrext_cmds=.so
   12864 postinstall_cmds=
   12865 postuninstall_cmds=
   12866 finish_cmds=
   12867 finish_eval=
   12868 shlibpath_var=
   12869 shlibpath_overrides_runpath=unknown
   12870 version_type=none
   12871 dynamic_linker="$host_os ld.so"
   12872 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   12873 need_lib_prefix=unknown
   12874 hardcode_into_libs=no
   12875 
   12876 # when you set need_version to no, make sure it does not cause -set_version
   12877 # flags to be left without arguments
   12878 need_version=unknown
   12879 
   12880 
   12881 
   12882 case $host_os in
   12883 aix3*)
   12884   version_type=linux # correct to gnu/linux during the next big refactor
   12885   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   12886   shlibpath_var=LIBPATH
   12887 
   12888   # AIX 3 has no versioning support, so we append a major version to the name.
   12889   soname_spec='$libname$release$shared_ext$major'
   12890   ;;
   12891 
   12892 aix[4-9]*)
   12893   version_type=linux # correct to gnu/linux during the next big refactor
   12894   need_lib_prefix=no
   12895   need_version=no
   12896   hardcode_into_libs=yes
   12897   if test ia64 = "$host_cpu"; then
   12898     # AIX 5 supports IA64
   12899     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   12900     shlibpath_var=LD_LIBRARY_PATH
   12901   else
   12902     # With GCC up to 2.95.x, collect2 would create an import file
   12903     # for dependence libraries.  The import file would start with
   12904     # the line '#! .'.  This would cause the generated library to
   12905     # depend on '.', always an invalid library.  This was fixed in
   12906     # development snapshots of GCC prior to 3.0.
   12907     case $host_os in
   12908       aix4 | aix4.[01] | aix4.[01].*)
   12909       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   12910 	   echo ' yes '
   12911 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   12912 	:
   12913       else
   12914 	can_build_shared=no
   12915       fi
   12916       ;;
   12917     esac
   12918     # Using Import Files as archive members, it is possible to support
   12919     # filename-based versioning of shared library archives on AIX. While
   12920     # this would work for both with and without runtime linking, it will
   12921     # prevent static linking of such archives. So we do filename-based
   12922     # shared library versioning with .so extension only, which is used
   12923     # when both runtime linking and shared linking is enabled.
   12924     # Unfortunately, runtime linking may impact performance, so we do
   12925     # not want this to be the default eventually. Also, we use the
   12926     # versioned .so libs for executables only if there is the -brtl
   12927     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
   12928     # To allow for filename-based versioning support, we need to create
   12929     # libNAME.so.V as an archive file, containing:
   12930     # *) an Import File, referring to the versioned filename of the
   12931     #    archive as well as the shared archive member, telling the
   12932     #    bitwidth (32 or 64) of that shared object, and providing the
   12933     #    list of exported symbols of that shared object, eventually
   12934     #    decorated with the 'weak' keyword
   12935     # *) the shared object with the F_LOADONLY flag set, to really avoid
   12936     #    it being seen by the linker.
   12937     # At run time we better use the real file rather than another symlink,
   12938     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   12939 
   12940     case $with_aix_soname,$aix_use_runtimelinking in
   12941     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   12942     # soname into executable. Probably we can add versioning support to
   12943     # collect2, so additional links can be useful in future.
   12944     aix,yes) # traditional libtool
   12945       dynamic_linker='AIX unversionable lib.so'
   12946       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   12947       # instead of lib<name>.a to let people know that these are not
   12948       # typical AIX shared libraries.
   12949       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   12950       ;;
   12951     aix,no) # traditional AIX only
   12952       dynamic_linker='AIX lib.a(lib.so.V)'
   12953       # We preserve .a as extension for shared libraries through AIX4.2
   12954       # and later when we are not doing run time linking.
   12955       library_names_spec='$libname$release.a $libname.a'
   12956       soname_spec='$libname$release$shared_ext$major'
   12957       ;;
   12958     svr4,*) # full svr4 only
   12959       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   12960       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   12961       # We do not specify a path in Import Files, so LIBPATH fires.
   12962       shlibpath_overrides_runpath=yes
   12963       ;;
   12964     *,yes) # both, prefer svr4
   12965       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   12966       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   12967       # unpreferred sharedlib libNAME.a needs extra handling
   12968       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"'
   12969       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"'
   12970       # We do not specify a path in Import Files, so LIBPATH fires.
   12971       shlibpath_overrides_runpath=yes
   12972       ;;
   12973     *,no) # both, prefer aix
   12974       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   12975       library_names_spec='$libname$release.a $libname.a'
   12976       soname_spec='$libname$release$shared_ext$major'
   12977       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   12978       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)'
   12979       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"'
   12980       ;;
   12981     esac
   12982     shlibpath_var=LIBPATH
   12983   fi
   12984   ;;
   12985 
   12986 amigaos*)
   12987   case $host_cpu in
   12988   powerpc)
   12989     # Since July 2007 AmigaOS4 officially supports .so libraries.
   12990     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   12991     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   12992     ;;
   12993   m68k)
   12994     library_names_spec='$libname.ixlibrary $libname.a'
   12995     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   12996     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'
   12997     ;;
   12998   esac
   12999   ;;
   13000 
   13001 beos*)
   13002   library_names_spec='$libname$shared_ext'
   13003   dynamic_linker="$host_os ld.so"
   13004   shlibpath_var=LIBRARY_PATH
   13005   ;;
   13006 
   13007 bsdi[45]*)
   13008   version_type=linux # correct to gnu/linux during the next big refactor
   13009   need_version=no
   13010   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13011   soname_spec='$libname$release$shared_ext$major'
   13012   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   13013   shlibpath_var=LD_LIBRARY_PATH
   13014   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   13015   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   13016   # the default ld.so.conf also contains /usr/contrib/lib and
   13017   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   13018   # libtool to hard-code these into programs
   13019   ;;
   13020 
   13021 cygwin* | mingw* | pw32* | cegcc*)
   13022   version_type=windows
   13023   shrext_cmds=.dll
   13024   need_version=no
   13025   need_lib_prefix=no
   13026 
   13027   case $GCC,$cc_basename in
   13028   yes,*)
   13029     # gcc
   13030     library_names_spec='$libname.dll.a'
   13031     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   13032     postinstall_cmds='base_file=`basename \$file`~
   13033       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   13034       dldir=$destdir/`dirname \$dlpath`~
   13035       test -d \$dldir || mkdir -p \$dldir~
   13036       $install_prog $dir/$dlname \$dldir/$dlname~
   13037       chmod a+x \$dldir/$dlname~
   13038       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   13039         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   13040       fi'
   13041     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   13042       dlpath=$dir/\$dldll~
   13043        $RM \$dlpath'
   13044     shlibpath_overrides_runpath=yes
   13045 
   13046     case $host_os in
   13047     cygwin*)
   13048       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   13049       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   13050 
   13051       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   13052       ;;
   13053     mingw* | cegcc*)
   13054       # MinGW DLLs use traditional 'lib' prefix
   13055       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   13056       ;;
   13057     pw32*)
   13058       # pw32 DLLs use 'pw' prefix rather than 'lib'
   13059       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   13060       ;;
   13061     esac
   13062     dynamic_linker='Win32 ld.exe'
   13063     ;;
   13064 
   13065   *,cl*)
   13066     # Native MSVC
   13067     libname_spec='$name'
   13068     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   13069     library_names_spec='$libname.dll.lib'
   13070 
   13071     case $build_os in
   13072     mingw*)
   13073       sys_lib_search_path_spec=
   13074       lt_save_ifs=$IFS
   13075       IFS=';'
   13076       for lt_path in $LIB
   13077       do
   13078         IFS=$lt_save_ifs
   13079         # Let DOS variable expansion print the short 8.3 style file name.
   13080         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   13081         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   13082       done
   13083       IFS=$lt_save_ifs
   13084       # Convert to MSYS style.
   13085       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   13086       ;;
   13087     cygwin*)
   13088       # Convert to unix form, then to dos form, then back to unix form
   13089       # but this time dos style (no spaces!) so that the unix form looks
   13090       # like /cygdrive/c/PROGRA~1:/cygdr...
   13091       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   13092       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   13093       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   13094       ;;
   13095     *)
   13096       sys_lib_search_path_spec=$LIB
   13097       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   13098         # It is most probably a Windows format PATH.
   13099         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   13100       else
   13101         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   13102       fi
   13103       # FIXME: find the short name or the path components, as spaces are
   13104       # common. (e.g. "Program Files" -> "PROGRA~1")
   13105       ;;
   13106     esac
   13107 
   13108     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   13109     postinstall_cmds='base_file=`basename \$file`~
   13110       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   13111       dldir=$destdir/`dirname \$dlpath`~
   13112       test -d \$dldir || mkdir -p \$dldir~
   13113       $install_prog $dir/$dlname \$dldir/$dlname'
   13114     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   13115       dlpath=$dir/\$dldll~
   13116        $RM \$dlpath'
   13117     shlibpath_overrides_runpath=yes
   13118     dynamic_linker='Win32 link.exe'
   13119     ;;
   13120 
   13121   *)
   13122     # Assume MSVC wrapper
   13123     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   13124     dynamic_linker='Win32 ld.exe'
   13125     ;;
   13126   esac
   13127   # FIXME: first we should search . and the directory the executable is in
   13128   shlibpath_var=PATH
   13129   ;;
   13130 
   13131 darwin* | rhapsody*)
   13132   dynamic_linker="$host_os dyld"
   13133   version_type=darwin
   13134   need_lib_prefix=no
   13135   need_version=no
   13136   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   13137   soname_spec='$libname$release$major$shared_ext'
   13138   shlibpath_overrides_runpath=yes
   13139   shlibpath_var=DYLD_LIBRARY_PATH
   13140   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   13141 
   13142   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   13143   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   13144   ;;
   13145 
   13146 dgux*)
   13147   version_type=linux # correct to gnu/linux during the next big refactor
   13148   need_lib_prefix=no
   13149   need_version=no
   13150   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13151   soname_spec='$libname$release$shared_ext$major'
   13152   shlibpath_var=LD_LIBRARY_PATH
   13153   ;;
   13154 
   13155 freebsd* | dragonfly*)
   13156   # DragonFly does not have aout.  When/if they implement a new
   13157   # versioning mechanism, adjust this.
   13158   if test -x /usr/bin/objformat; then
   13159     objformat=`/usr/bin/objformat`
   13160   else
   13161     case $host_os in
   13162     freebsd[23].*) objformat=aout ;;
   13163     *) objformat=elf ;;
   13164     esac
   13165   fi
   13166   version_type=freebsd-$objformat
   13167   case $version_type in
   13168     freebsd-elf*)
   13169       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13170       soname_spec='$libname$release$shared_ext$major'
   13171       need_version=no
   13172       need_lib_prefix=no
   13173       ;;
   13174     freebsd-*)
   13175       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   13176       need_version=yes
   13177       ;;
   13178   esac
   13179   shlibpath_var=LD_LIBRARY_PATH
   13180   case $host_os in
   13181   freebsd2.*)
   13182     shlibpath_overrides_runpath=yes
   13183     ;;
   13184   freebsd3.[01]* | freebsdelf3.[01]*)
   13185     shlibpath_overrides_runpath=yes
   13186     hardcode_into_libs=yes
   13187     ;;
   13188   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   13189   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   13190     shlibpath_overrides_runpath=no
   13191     hardcode_into_libs=yes
   13192     ;;
   13193   *) # from 4.6 on, and DragonFly
   13194     shlibpath_overrides_runpath=yes
   13195     hardcode_into_libs=yes
   13196     ;;
   13197   esac
   13198   ;;
   13199 
   13200 haiku*)
   13201   version_type=linux # correct to gnu/linux during the next big refactor
   13202   need_lib_prefix=no
   13203   need_version=no
   13204   dynamic_linker="$host_os runtime_loader"
   13205   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13206   soname_spec='$libname$release$shared_ext$major'
   13207   shlibpath_var=LIBRARY_PATH
   13208   shlibpath_overrides_runpath=no
   13209   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   13210   hardcode_into_libs=yes
   13211   ;;
   13212 
   13213 hpux9* | hpux10* | hpux11*)
   13214   # Give a soname corresponding to the major version so that dld.sl refuses to
   13215   # link against other versions.
   13216   version_type=sunos
   13217   need_lib_prefix=no
   13218   need_version=no
   13219   case $host_cpu in
   13220   ia64*)
   13221     shrext_cmds='.so'
   13222     hardcode_into_libs=yes
   13223     dynamic_linker="$host_os dld.so"
   13224     shlibpath_var=LD_LIBRARY_PATH
   13225     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   13226     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13227     soname_spec='$libname$release$shared_ext$major'
   13228     if test 32 = "$HPUX_IA64_MODE"; then
   13229       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   13230       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   13231     else
   13232       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   13233       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   13234     fi
   13235     ;;
   13236   hppa*64*)
   13237     shrext_cmds='.sl'
   13238     hardcode_into_libs=yes
   13239     dynamic_linker="$host_os dld.sl"
   13240     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   13241     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   13242     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13243     soname_spec='$libname$release$shared_ext$major'
   13244     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   13245     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   13246     ;;
   13247   *)
   13248     shrext_cmds='.sl'
   13249     dynamic_linker="$host_os dld.sl"
   13250     shlibpath_var=SHLIB_PATH
   13251     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   13252     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13253     soname_spec='$libname$release$shared_ext$major'
   13254     ;;
   13255   esac
   13256   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   13257   postinstall_cmds='chmod 555 $lib'
   13258   # or fails outright, so override atomically:
   13259   install_override_mode=555
   13260   ;;
   13261 
   13262 interix[3-9]*)
   13263   version_type=linux # correct to gnu/linux during the next big refactor
   13264   need_lib_prefix=no
   13265   need_version=no
   13266   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13267   soname_spec='$libname$release$shared_ext$major'
   13268   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   13269   shlibpath_var=LD_LIBRARY_PATH
   13270   shlibpath_overrides_runpath=no
   13271   hardcode_into_libs=yes
   13272   ;;
   13273 
   13274 irix5* | irix6* | nonstopux*)
   13275   case $host_os in
   13276     nonstopux*) version_type=nonstopux ;;
   13277     *)
   13278 	if test yes = "$lt_cv_prog_gnu_ld"; then
   13279 		version_type=linux # correct to gnu/linux during the next big refactor
   13280 	else
   13281 		version_type=irix
   13282 	fi ;;
   13283   esac
   13284   need_lib_prefix=no
   13285   need_version=no
   13286   soname_spec='$libname$release$shared_ext$major'
   13287   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   13288   case $host_os in
   13289   irix5* | nonstopux*)
   13290     libsuff= shlibsuff=
   13291     ;;
   13292   *)
   13293     case $LD in # libtool.m4 will add one of these switches to LD
   13294     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   13295       libsuff= shlibsuff= libmagic=32-bit;;
   13296     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   13297       libsuff=32 shlibsuff=N32 libmagic=N32;;
   13298     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   13299       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   13300     *) libsuff= shlibsuff= libmagic=never-match;;
   13301     esac
   13302     ;;
   13303   esac
   13304   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   13305   shlibpath_overrides_runpath=no
   13306   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   13307   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   13308   hardcode_into_libs=yes
   13309   ;;
   13310 
   13311 # No shared lib support for Linux oldld, aout, or coff.
   13312 linux*oldld* | linux*aout* | linux*coff*)
   13313   dynamic_linker=no
   13314   ;;
   13315 
   13316 linux*android*)
   13317   version_type=none # Android doesn't support versioned libraries.
   13318   need_lib_prefix=no
   13319   need_version=no
   13320   library_names_spec='$libname$release$shared_ext'
   13321   soname_spec='$libname$release$shared_ext'
   13322   finish_cmds=
   13323   shlibpath_var=LD_LIBRARY_PATH
   13324   shlibpath_overrides_runpath=yes
   13325 
   13326   # This implies no fast_install, which is unacceptable.
   13327   # Some rework will be needed to allow for fast_install
   13328   # before this can be enabled.
   13329   hardcode_into_libs=yes
   13330 
   13331   dynamic_linker='Android linker'
   13332   # Don't embed -rpath directories since the linker doesn't support them.
   13333   hardcode_libdir_flag_spec='-L$libdir'
   13334   ;;
   13335 
   13336 # This must be glibc/ELF.
   13337 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   13338   version_type=linux # correct to gnu/linux during the next big refactor
   13339   need_lib_prefix=no
   13340   need_version=no
   13341   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13342   soname_spec='$libname$release$shared_ext$major'
   13343   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   13344   shlibpath_var=LD_LIBRARY_PATH
   13345   shlibpath_overrides_runpath=no
   13346 
   13347   # Some binutils ld are patched to set DT_RUNPATH
   13348   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   13349   $as_echo_n "(cached) " >&6
   13350 else
   13351   lt_cv_shlibpath_overrides_runpath=no
   13352     save_LDFLAGS=$LDFLAGS
   13353     save_libdir=$libdir
   13354     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   13355 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   13356     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13357 /* end confdefs.h.  */
   13358 
   13359 int
   13360 main ()
   13361 {
   13362 
   13363   ;
   13364   return 0;
   13365 }
   13366 _ACEOF
   13367 if ac_fn_c_try_link "$LINENO"; then :
   13368   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   13369   lt_cv_shlibpath_overrides_runpath=yes
   13370 fi
   13371 fi
   13372 rm -f core conftest.err conftest.$ac_objext \
   13373     conftest$ac_exeext conftest.$ac_ext
   13374     LDFLAGS=$save_LDFLAGS
   13375     libdir=$save_libdir
   13376 
   13377 fi
   13378 
   13379   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   13380 
   13381   # This implies no fast_install, which is unacceptable.
   13382   # Some rework will be needed to allow for fast_install
   13383   # before this can be enabled.
   13384   hardcode_into_libs=yes
   13385 
   13386   # Add ABI-specific directories to the system library path.
   13387   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
   13388 
   13389   # Ideally, we could use ldconfig to report *all* directores which are
   13390   # searched for libraries, however this is still not possible.  Aside from not
   13391   # being certain /sbin/ldconfig is available, command
   13392   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   13393   # even though it is searched at run-time.  Try to do the best guess by
   13394   # appending ld.so.conf contents (and includes) to the search path.
   13395   if test -f /etc/ld.so.conf; then
   13396     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' ' '`
   13397     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
   13398   fi
   13399 
   13400   # We used to test for /lib/ld.so.1 and disable shared libraries on
   13401   # powerpc, because MkLinux only supported shared libraries with the
   13402   # GNU dynamic linker.  Since this was broken with cross compilers,
   13403   # most powerpc-linux boxes support dynamic linking these days and
   13404   # people can always --disable-shared, the test was removed, and we
   13405   # assume the GNU/Linux dynamic linker is in use.
   13406   dynamic_linker='GNU/Linux ld.so'
   13407   ;;
   13408 
   13409 netbsd*)
   13410   version_type=sunos
   13411   need_lib_prefix=no
   13412   need_version=no
   13413   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   13414     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   13415     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   13416     dynamic_linker='NetBSD (a.out) ld.so'
   13417   else
   13418     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13419     soname_spec='$libname$release$shared_ext$major'
   13420     dynamic_linker='NetBSD ld.elf_so'
   13421   fi
   13422   shlibpath_var=LD_LIBRARY_PATH
   13423   shlibpath_overrides_runpath=yes
   13424   hardcode_into_libs=yes
   13425   ;;
   13426 
   13427 newsos6)
   13428   version_type=linux # correct to gnu/linux during the next big refactor
   13429   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13430   shlibpath_var=LD_LIBRARY_PATH
   13431   shlibpath_overrides_runpath=yes
   13432   ;;
   13433 
   13434 *nto* | *qnx*)
   13435   version_type=qnx
   13436   need_lib_prefix=no
   13437   need_version=no
   13438   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13439   soname_spec='$libname$release$shared_ext$major'
   13440   shlibpath_var=LD_LIBRARY_PATH
   13441   shlibpath_overrides_runpath=no
   13442   hardcode_into_libs=yes
   13443   dynamic_linker='ldqnx.so'
   13444   ;;
   13445 
   13446 openbsd* | bitrig*)
   13447   version_type=sunos
   13448   sys_lib_dlsearch_path_spec=/usr/lib
   13449   need_lib_prefix=no
   13450   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   13451     need_version=no
   13452   else
   13453     need_version=yes
   13454   fi
   13455   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   13456   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   13457   shlibpath_var=LD_LIBRARY_PATH
   13458   shlibpath_overrides_runpath=yes
   13459   ;;
   13460 
   13461 os2*)
   13462   libname_spec='$name'
   13463   version_type=windows
   13464   shrext_cmds=.dll
   13465   need_version=no
   13466   need_lib_prefix=no
   13467   # OS/2 can only load a DLL with a base name of 8 characters or less.
   13468   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   13469     v=$($ECHO $release$versuffix | tr -d .-);
   13470     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   13471     $ECHO $n$v`$shared_ext'
   13472   library_names_spec='${libname}_dll.$libext'
   13473   dynamic_linker='OS/2 ld.exe'
   13474   shlibpath_var=BEGINLIBPATH
   13475   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   13476   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   13477   postinstall_cmds='base_file=`basename \$file`~
   13478     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   13479     dldir=$destdir/`dirname \$dlpath`~
   13480     test -d \$dldir || mkdir -p \$dldir~
   13481     $install_prog $dir/$dlname \$dldir/$dlname~
   13482     chmod a+x \$dldir/$dlname~
   13483     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   13484       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   13485     fi'
   13486   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   13487     dlpath=$dir/\$dldll~
   13488     $RM \$dlpath'
   13489   ;;
   13490 
   13491 osf3* | osf4* | osf5*)
   13492   version_type=osf
   13493   need_lib_prefix=no
   13494   need_version=no
   13495   soname_spec='$libname$release$shared_ext$major'
   13496   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13497   shlibpath_var=LD_LIBRARY_PATH
   13498   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   13499   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   13500   ;;
   13501 
   13502 rdos*)
   13503   dynamic_linker=no
   13504   ;;
   13505 
   13506 solaris*)
   13507   version_type=linux # correct to gnu/linux during the next big refactor
   13508   need_lib_prefix=no
   13509   need_version=no
   13510   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13511   soname_spec='$libname$release$shared_ext$major'
   13512   shlibpath_var=LD_LIBRARY_PATH
   13513   shlibpath_overrides_runpath=yes
   13514   hardcode_into_libs=yes
   13515   # ldd complains unless libraries are executable
   13516   postinstall_cmds='chmod +x $lib'
   13517   ;;
   13518 
   13519 sunos4*)
   13520   version_type=sunos
   13521   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   13522   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   13523   shlibpath_var=LD_LIBRARY_PATH
   13524   shlibpath_overrides_runpath=yes
   13525   if test yes = "$with_gnu_ld"; then
   13526     need_lib_prefix=no
   13527   fi
   13528   need_version=yes
   13529   ;;
   13530 
   13531 sysv4 | sysv4.3*)
   13532   version_type=linux # correct to gnu/linux during the next big refactor
   13533   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13534   soname_spec='$libname$release$shared_ext$major'
   13535   shlibpath_var=LD_LIBRARY_PATH
   13536   case $host_vendor in
   13537     sni)
   13538       shlibpath_overrides_runpath=no
   13539       need_lib_prefix=no
   13540       runpath_var=LD_RUN_PATH
   13541       ;;
   13542     siemens)
   13543       need_lib_prefix=no
   13544       ;;
   13545     motorola)
   13546       need_lib_prefix=no
   13547       need_version=no
   13548       shlibpath_overrides_runpath=no
   13549       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   13550       ;;
   13551   esac
   13552   ;;
   13553 
   13554 sysv4*MP*)
   13555   if test -d /usr/nec; then
   13556     version_type=linux # correct to gnu/linux during the next big refactor
   13557     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   13558     soname_spec='$libname$shared_ext.$major'
   13559     shlibpath_var=LD_LIBRARY_PATH
   13560   fi
   13561   ;;
   13562 
   13563 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   13564   version_type=sco
   13565   need_lib_prefix=no
   13566   need_version=no
   13567   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   13568   soname_spec='$libname$release$shared_ext$major'
   13569   shlibpath_var=LD_LIBRARY_PATH
   13570   shlibpath_overrides_runpath=yes
   13571   hardcode_into_libs=yes
   13572   if test yes = "$with_gnu_ld"; then
   13573     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   13574   else
   13575     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   13576     case $host_os in
   13577       sco3.2v5*)
   13578         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   13579 	;;
   13580     esac
   13581   fi
   13582   sys_lib_dlsearch_path_spec='/usr/lib'
   13583   ;;
   13584 
   13585 tpf*)
   13586   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   13587   version_type=linux # correct to gnu/linux during the next big refactor
   13588   need_lib_prefix=no
   13589   need_version=no
   13590   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13591   shlibpath_var=LD_LIBRARY_PATH
   13592   shlibpath_overrides_runpath=no
   13593   hardcode_into_libs=yes
   13594   ;;
   13595 
   13596 uts4*)
   13597   version_type=linux # correct to gnu/linux during the next big refactor
   13598   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13599   soname_spec='$libname$release$shared_ext$major'
   13600   shlibpath_var=LD_LIBRARY_PATH
   13601   ;;
   13602 
   13603 *)
   13604   dynamic_linker=no
   13605   ;;
   13606 esac
   13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   13608 $as_echo "$dynamic_linker" >&6; }
   13609 test no = "$dynamic_linker" && can_build_shared=no
   13610 
   13611 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   13612 if test yes = "$GCC"; then
   13613   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   13614 fi
   13615 
   13616 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   13617   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   13618 fi
   13619 
   13620 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   13621   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   13622 fi
   13623 
   13624 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   13625 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   13626 
   13627 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   13628 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   13629 
   13630 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   13631 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   13632 
   13633 
   13634 
   13635 
   13636 
   13637 
   13638 
   13639 
   13640 
   13641 
   13642 
   13643 
   13644 
   13645 
   13646 
   13647 
   13648 
   13649 
   13650 
   13651 
   13652 
   13653 
   13654 
   13655 
   13656 
   13657 
   13658 
   13659 
   13660 
   13661 
   13662 
   13663 
   13664 
   13665 
   13666 
   13667 
   13668 
   13669 
   13670 
   13671 
   13672 
   13673 
   13674 
   13675 
   13676 
   13677 
   13678 
   13679 
   13680 
   13681 
   13682 
   13683 
   13684 
   13685 
   13686 
   13687 
   13688 
   13689 
   13690 
   13691 
   13692 
   13693 
   13694 
   13695 
   13696 
   13697 
   13698 
   13699 
   13700 
   13701 
   13702 
   13703 
   13704 
   13705 
   13706 
   13707 
   13708 
   13709 
   13710 
   13711 
   13712 
   13713 
   13714 
   13715 
   13716 
   13717 
   13718 
   13719 
   13720 
   13721 
   13722 
   13723 
   13724 
   13725 
   13726 
   13727 
   13728 
   13729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   13730 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   13731 hardcode_action=
   13732 if test -n "$hardcode_libdir_flag_spec" ||
   13733    test -n "$runpath_var" ||
   13734    test yes = "$hardcode_automatic"; then
   13735 
   13736   # We can hardcode non-existent directories.
   13737   if test no != "$hardcode_direct" &&
   13738      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   13739      # have to relink, otherwise we might link with an installed library
   13740      # when we should be linking with a yet-to-be-installed one
   13741      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   13742      test no != "$hardcode_minus_L"; then
   13743     # Linking always hardcodes the temporary library directory.
   13744     hardcode_action=relink
   13745   else
   13746     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   13747     hardcode_action=immediate
   13748   fi
   13749 else
   13750   # We cannot hardcode anything, or else we can only hardcode existing
   13751   # directories.
   13752   hardcode_action=unsupported
   13753 fi
   13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   13755 $as_echo "$hardcode_action" >&6; }
   13756 
   13757 if test relink = "$hardcode_action" ||
   13758    test yes = "$inherit_rpath"; then
   13759   # Fast installation is not supported
   13760   enable_fast_install=no
   13761 elif test yes = "$shlibpath_overrides_runpath" ||
   13762      test no = "$enable_shared"; then
   13763   # Fast installation is not necessary
   13764   enable_fast_install=needless
   13765 fi
   13766 
   13767 
   13768 
   13769 
   13770 
   13771 
   13772   if test yes != "$enable_dlopen"; then
   13773   enable_dlopen=unknown
   13774   enable_dlopen_self=unknown
   13775   enable_dlopen_self_static=unknown
   13776 else
   13777   lt_cv_dlopen=no
   13778   lt_cv_dlopen_libs=
   13779 
   13780   case $host_os in
   13781   beos*)
   13782     lt_cv_dlopen=load_add_on
   13783     lt_cv_dlopen_libs=
   13784     lt_cv_dlopen_self=yes
   13785     ;;
   13786 
   13787   mingw* | pw32* | cegcc*)
   13788     lt_cv_dlopen=LoadLibrary
   13789     lt_cv_dlopen_libs=
   13790     ;;
   13791 
   13792   cygwin*)
   13793     lt_cv_dlopen=dlopen
   13794     lt_cv_dlopen_libs=
   13795     ;;
   13796 
   13797   darwin*)
   13798     # if libdl is installed we need to link against it
   13799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   13800 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   13801 if ${ac_cv_lib_dl_dlopen+:} false; then :
   13802   $as_echo_n "(cached) " >&6
   13803 else
   13804   ac_check_lib_save_LIBS=$LIBS
   13805 LIBS="-ldl  $LIBS"
   13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13807 /* end confdefs.h.  */
   13808 
   13809 /* Override any GCC internal prototype to avoid an error.
   13810    Use char because int might match the return type of a GCC
   13811    builtin and then its argument prototype would still apply.  */
   13812 #ifdef __cplusplus
   13813 extern "C"
   13814 #endif
   13815 char dlopen ();
   13816 int
   13817 main ()
   13818 {
   13819 return dlopen ();
   13820   ;
   13821   return 0;
   13822 }
   13823 _ACEOF
   13824 if ac_fn_c_try_link "$LINENO"; then :
   13825   ac_cv_lib_dl_dlopen=yes
   13826 else
   13827   ac_cv_lib_dl_dlopen=no
   13828 fi
   13829 rm -f core conftest.err conftest.$ac_objext \
   13830     conftest$ac_exeext conftest.$ac_ext
   13831 LIBS=$ac_check_lib_save_LIBS
   13832 fi
   13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   13834 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   13835 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   13836   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   13837 else
   13838 
   13839     lt_cv_dlopen=dyld
   13840     lt_cv_dlopen_libs=
   13841     lt_cv_dlopen_self=yes
   13842 
   13843 fi
   13844 
   13845     ;;
   13846 
   13847   tpf*)
   13848     # Don't try to run any link tests for TPF.  We know it's impossible
   13849     # because TPF is a cross-compiler, and we know how we open DSOs.
   13850     lt_cv_dlopen=dlopen
   13851     lt_cv_dlopen_libs=
   13852     lt_cv_dlopen_self=no
   13853     ;;
   13854 
   13855   *)
   13856     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   13857 if test "x$ac_cv_func_shl_load" = xyes; then :
   13858   lt_cv_dlopen=shl_load
   13859 else
   13860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   13861 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   13862 if ${ac_cv_lib_dld_shl_load+:} false; then :
   13863   $as_echo_n "(cached) " >&6
   13864 else
   13865   ac_check_lib_save_LIBS=$LIBS
   13866 LIBS="-ldld  $LIBS"
   13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13868 /* end confdefs.h.  */
   13869 
   13870 /* Override any GCC internal prototype to avoid an error.
   13871    Use char because int might match the return type of a GCC
   13872    builtin and then its argument prototype would still apply.  */
   13873 #ifdef __cplusplus
   13874 extern "C"
   13875 #endif
   13876 char shl_load ();
   13877 int
   13878 main ()
   13879 {
   13880 return shl_load ();
   13881   ;
   13882   return 0;
   13883 }
   13884 _ACEOF
   13885 if ac_fn_c_try_link "$LINENO"; then :
   13886   ac_cv_lib_dld_shl_load=yes
   13887 else
   13888   ac_cv_lib_dld_shl_load=no
   13889 fi
   13890 rm -f core conftest.err conftest.$ac_objext \
   13891     conftest$ac_exeext conftest.$ac_ext
   13892 LIBS=$ac_check_lib_save_LIBS
   13893 fi
   13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   13895 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   13896 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   13897   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   13898 else
   13899   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   13900 if test "x$ac_cv_func_dlopen" = xyes; then :
   13901   lt_cv_dlopen=dlopen
   13902 else
   13903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   13904 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   13905 if ${ac_cv_lib_dl_dlopen+:} false; then :
   13906   $as_echo_n "(cached) " >&6
   13907 else
   13908   ac_check_lib_save_LIBS=$LIBS
   13909 LIBS="-ldl  $LIBS"
   13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13911 /* end confdefs.h.  */
   13912 
   13913 /* Override any GCC internal prototype to avoid an error.
   13914    Use char because int might match the return type of a GCC
   13915    builtin and then its argument prototype would still apply.  */
   13916 #ifdef __cplusplus
   13917 extern "C"
   13918 #endif
   13919 char dlopen ();
   13920 int
   13921 main ()
   13922 {
   13923 return dlopen ();
   13924   ;
   13925   return 0;
   13926 }
   13927 _ACEOF
   13928 if ac_fn_c_try_link "$LINENO"; then :
   13929   ac_cv_lib_dl_dlopen=yes
   13930 else
   13931   ac_cv_lib_dl_dlopen=no
   13932 fi
   13933 rm -f core conftest.err conftest.$ac_objext \
   13934     conftest$ac_exeext conftest.$ac_ext
   13935 LIBS=$ac_check_lib_save_LIBS
   13936 fi
   13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   13938 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   13939 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   13940   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   13941 else
   13942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   13943 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   13944 if ${ac_cv_lib_svld_dlopen+:} false; then :
   13945   $as_echo_n "(cached) " >&6
   13946 else
   13947   ac_check_lib_save_LIBS=$LIBS
   13948 LIBS="-lsvld  $LIBS"
   13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13950 /* end confdefs.h.  */
   13951 
   13952 /* Override any GCC internal prototype to avoid an error.
   13953    Use char because int might match the return type of a GCC
   13954    builtin and then its argument prototype would still apply.  */
   13955 #ifdef __cplusplus
   13956 extern "C"
   13957 #endif
   13958 char dlopen ();
   13959 int
   13960 main ()
   13961 {
   13962 return dlopen ();
   13963   ;
   13964   return 0;
   13965 }
   13966 _ACEOF
   13967 if ac_fn_c_try_link "$LINENO"; then :
   13968   ac_cv_lib_svld_dlopen=yes
   13969 else
   13970   ac_cv_lib_svld_dlopen=no
   13971 fi
   13972 rm -f core conftest.err conftest.$ac_objext \
   13973     conftest$ac_exeext conftest.$ac_ext
   13974 LIBS=$ac_check_lib_save_LIBS
   13975 fi
   13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   13977 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   13978 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   13979   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   13980 else
   13981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   13982 $as_echo_n "checking for dld_link in -ldld... " >&6; }
   13983 if ${ac_cv_lib_dld_dld_link+:} false; then :
   13984   $as_echo_n "(cached) " >&6
   13985 else
   13986   ac_check_lib_save_LIBS=$LIBS
   13987 LIBS="-ldld  $LIBS"
   13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13989 /* end confdefs.h.  */
   13990 
   13991 /* Override any GCC internal prototype to avoid an error.
   13992    Use char because int might match the return type of a GCC
   13993    builtin and then its argument prototype would still apply.  */
   13994 #ifdef __cplusplus
   13995 extern "C"
   13996 #endif
   13997 char dld_link ();
   13998 int
   13999 main ()
   14000 {
   14001 return dld_link ();
   14002   ;
   14003   return 0;
   14004 }
   14005 _ACEOF
   14006 if ac_fn_c_try_link "$LINENO"; then :
   14007   ac_cv_lib_dld_dld_link=yes
   14008 else
   14009   ac_cv_lib_dld_dld_link=no
   14010 fi
   14011 rm -f core conftest.err conftest.$ac_objext \
   14012     conftest$ac_exeext conftest.$ac_ext
   14013 LIBS=$ac_check_lib_save_LIBS
   14014 fi
   14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   14016 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   14017 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   14018   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   14019 fi
   14020 
   14021 
   14022 fi
   14023 
   14024 
   14025 fi
   14026 
   14027 
   14028 fi
   14029 
   14030 
   14031 fi
   14032 
   14033 
   14034 fi
   14035 
   14036     ;;
   14037   esac
   14038 
   14039   if test no = "$lt_cv_dlopen"; then
   14040     enable_dlopen=no
   14041   else
   14042     enable_dlopen=yes
   14043   fi
   14044 
   14045   case $lt_cv_dlopen in
   14046   dlopen)
   14047     save_CPPFLAGS=$CPPFLAGS
   14048     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   14049 
   14050     save_LDFLAGS=$LDFLAGS
   14051     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   14052 
   14053     save_LIBS=$LIBS
   14054     LIBS="$lt_cv_dlopen_libs $LIBS"
   14055 
   14056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   14057 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   14058 if ${lt_cv_dlopen_self+:} false; then :
   14059   $as_echo_n "(cached) " >&6
   14060 else
   14061   	  if test yes = "$cross_compiling"; then :
   14062   lt_cv_dlopen_self=cross
   14063 else
   14064   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   14065   lt_status=$lt_dlunknown
   14066   cat > conftest.$ac_ext <<_LT_EOF
   14067 #line $LINENO "configure"
   14068 #include "confdefs.h"
   14069 
   14070 #if HAVE_DLFCN_H
   14071 #include <dlfcn.h>
   14072 #endif
   14073 
   14074 #include <stdio.h>
   14075 
   14076 #ifdef RTLD_GLOBAL
   14077 #  define LT_DLGLOBAL		RTLD_GLOBAL
   14078 #else
   14079 #  ifdef DL_GLOBAL
   14080 #    define LT_DLGLOBAL		DL_GLOBAL
   14081 #  else
   14082 #    define LT_DLGLOBAL		0
   14083 #  endif
   14084 #endif
   14085 
   14086 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   14087    find out it does not work in some platform. */
   14088 #ifndef LT_DLLAZY_OR_NOW
   14089 #  ifdef RTLD_LAZY
   14090 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   14091 #  else
   14092 #    ifdef DL_LAZY
   14093 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   14094 #    else
   14095 #      ifdef RTLD_NOW
   14096 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   14097 #      else
   14098 #        ifdef DL_NOW
   14099 #          define LT_DLLAZY_OR_NOW	DL_NOW
   14100 #        else
   14101 #          define LT_DLLAZY_OR_NOW	0
   14102 #        endif
   14103 #      endif
   14104 #    endif
   14105 #  endif
   14106 #endif
   14107 
   14108 /* When -fvisibility=hidden is used, assume the code has been annotated
   14109    correspondingly for the symbols needed.  */
   14110 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   14111 int fnord () __attribute__((visibility("default")));
   14112 #endif
   14113 
   14114 int fnord () { return 42; }
   14115 int main ()
   14116 {
   14117   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   14118   int status = $lt_dlunknown;
   14119 
   14120   if (self)
   14121     {
   14122       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   14123       else
   14124         {
   14125 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   14126           else puts (dlerror ());
   14127 	}
   14128       /* dlclose (self); */
   14129     }
   14130   else
   14131     puts (dlerror ());
   14132 
   14133   return status;
   14134 }
   14135 _LT_EOF
   14136   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   14137   (eval $ac_link) 2>&5
   14138   ac_status=$?
   14139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14140   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   14141     (./conftest; exit; ) >&5 2>/dev/null
   14142     lt_status=$?
   14143     case x$lt_status in
   14144       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   14145       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   14146       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   14147     esac
   14148   else :
   14149     # compilation failed
   14150     lt_cv_dlopen_self=no
   14151   fi
   14152 fi
   14153 rm -fr conftest*
   14154 
   14155 
   14156 fi
   14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   14158 $as_echo "$lt_cv_dlopen_self" >&6; }
   14159 
   14160     if test yes = "$lt_cv_dlopen_self"; then
   14161       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   14162       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   14163 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   14164 if ${lt_cv_dlopen_self_static+:} false; then :
   14165   $as_echo_n "(cached) " >&6
   14166 else
   14167   	  if test yes = "$cross_compiling"; then :
   14168   lt_cv_dlopen_self_static=cross
   14169 else
   14170   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   14171   lt_status=$lt_dlunknown
   14172   cat > conftest.$ac_ext <<_LT_EOF
   14173 #line $LINENO "configure"
   14174 #include "confdefs.h"
   14175 
   14176 #if HAVE_DLFCN_H
   14177 #include <dlfcn.h>
   14178 #endif
   14179 
   14180 #include <stdio.h>
   14181 
   14182 #ifdef RTLD_GLOBAL
   14183 #  define LT_DLGLOBAL		RTLD_GLOBAL
   14184 #else
   14185 #  ifdef DL_GLOBAL
   14186 #    define LT_DLGLOBAL		DL_GLOBAL
   14187 #  else
   14188 #    define LT_DLGLOBAL		0
   14189 #  endif
   14190 #endif
   14191 
   14192 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   14193    find out it does not work in some platform. */
   14194 #ifndef LT_DLLAZY_OR_NOW
   14195 #  ifdef RTLD_LAZY
   14196 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   14197 #  else
   14198 #    ifdef DL_LAZY
   14199 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   14200 #    else
   14201 #      ifdef RTLD_NOW
   14202 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   14203 #      else
   14204 #        ifdef DL_NOW
   14205 #          define LT_DLLAZY_OR_NOW	DL_NOW
   14206 #        else
   14207 #          define LT_DLLAZY_OR_NOW	0
   14208 #        endif
   14209 #      endif
   14210 #    endif
   14211 #  endif
   14212 #endif
   14213 
   14214 /* When -fvisibility=hidden is used, assume the code has been annotated
   14215    correspondingly for the symbols needed.  */
   14216 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   14217 int fnord () __attribute__((visibility("default")));
   14218 #endif
   14219 
   14220 int fnord () { return 42; }
   14221 int main ()
   14222 {
   14223   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   14224   int status = $lt_dlunknown;
   14225 
   14226   if (self)
   14227     {
   14228       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   14229       else
   14230         {
   14231 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   14232           else puts (dlerror ());
   14233 	}
   14234       /* dlclose (self); */
   14235     }
   14236   else
   14237     puts (dlerror ());
   14238 
   14239   return status;
   14240 }
   14241 _LT_EOF
   14242   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   14243   (eval $ac_link) 2>&5
   14244   ac_status=$?
   14245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14246   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   14247     (./conftest; exit; ) >&5 2>/dev/null
   14248     lt_status=$?
   14249     case x$lt_status in
   14250       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   14251       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   14252       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   14253     esac
   14254   else :
   14255     # compilation failed
   14256     lt_cv_dlopen_self_static=no
   14257   fi
   14258 fi
   14259 rm -fr conftest*
   14260 
   14261 
   14262 fi
   14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   14264 $as_echo "$lt_cv_dlopen_self_static" >&6; }
   14265     fi
   14266 
   14267     CPPFLAGS=$save_CPPFLAGS
   14268     LDFLAGS=$save_LDFLAGS
   14269     LIBS=$save_LIBS
   14270     ;;
   14271   esac
   14272 
   14273   case $lt_cv_dlopen_self in
   14274   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   14275   *) enable_dlopen_self=unknown ;;
   14276   esac
   14277 
   14278   case $lt_cv_dlopen_self_static in
   14279   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   14280   *) enable_dlopen_self_static=unknown ;;
   14281   esac
   14282 fi
   14283 
   14284 
   14285 
   14286 
   14287 
   14288 
   14289 
   14290 
   14291 
   14292 
   14293 
   14294 
   14295 
   14296 
   14297 
   14298 
   14299 
   14300 striplib=
   14301 old_striplib=
   14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   14303 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   14304 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   14305   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   14306   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   14307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14308 $as_echo "yes" >&6; }
   14309 else
   14310 # FIXME - insert some real tests, host_os isn't really good enough
   14311   case $host_os in
   14312   darwin*)
   14313     if test -n "$STRIP"; then
   14314       striplib="$STRIP -x"
   14315       old_striplib="$STRIP -S"
   14316       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14317 $as_echo "yes" >&6; }
   14318     else
   14319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14320 $as_echo "no" >&6; }
   14321     fi
   14322     ;;
   14323   *)
   14324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14325 $as_echo "no" >&6; }
   14326     ;;
   14327   esac
   14328 fi
   14329 
   14330 
   14331 
   14332 
   14333 
   14334 
   14335 
   14336 
   14337 
   14338 
   14339 
   14340 
   14341   # Report what library types will actually be built
   14342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   14343 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   14344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   14345 $as_echo "$can_build_shared" >&6; }
   14346 
   14347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   14348 $as_echo_n "checking whether to build shared libraries... " >&6; }
   14349   test no = "$can_build_shared" && enable_shared=no
   14350 
   14351   # On AIX, shared libraries and static libraries use the same namespace, and
   14352   # are all built from PIC.
   14353   case $host_os in
   14354   aix3*)
   14355     test yes = "$enable_shared" && enable_static=no
   14356     if test -n "$RANLIB"; then
   14357       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   14358       postinstall_cmds='$RANLIB $lib'
   14359     fi
   14360     ;;
   14361 
   14362   aix[4-9]*)
   14363     if test ia64 != "$host_cpu"; then
   14364       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   14365       yes,aix,yes) ;;			# shared object as lib.so file only
   14366       yes,svr4,*) ;;			# shared object as lib.so archive member only
   14367       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   14368       esac
   14369     fi
   14370     ;;
   14371   esac
   14372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   14373 $as_echo "$enable_shared" >&6; }
   14374 
   14375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   14376 $as_echo_n "checking whether to build static libraries... " >&6; }
   14377   # Make sure either enable_shared or enable_static is yes.
   14378   test yes = "$enable_shared" || enable_static=yes
   14379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   14380 $as_echo "$enable_static" >&6; }
   14381 
   14382 
   14383 
   14384 
   14385 fi
   14386 ac_ext=c
   14387 ac_cpp='$CPP $CPPFLAGS'
   14388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14391 
   14392 CC=$lt_save_CC
   14393 
   14394 
   14395 
   14396 
   14397 
   14398 
   14399 
   14400 
   14401 
   14402 
   14403 
   14404 
   14405 
   14406 
   14407 
   14408         ac_config_commands="$ac_config_commands libtool"
   14409 
   14410 
   14411 
   14412 
   14413 # Only expand once:
   14414 
   14415 
   14416 
   14417 
   14418 # pkg-config is only needed for these options, do not require it otherwise
   14419 if test "$enable_systemd" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then
   14420 
   14421 
   14422 
   14423 
   14424 
   14425 
   14426 
   14427 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   14428 	if test -n "$ac_tool_prefix"; then
   14429   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   14430 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14432 $as_echo_n "checking for $ac_word... " >&6; }
   14433 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   14434   $as_echo_n "(cached) " >&6
   14435 else
   14436   case $PKG_CONFIG in
   14437   [\\/]* | ?:[\\/]*)
   14438   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   14439   ;;
   14440   *)
   14441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14442 for as_dir in $PATH
   14443 do
   14444   IFS=$as_save_IFS
   14445   test -z "$as_dir" && as_dir=.
   14446     for ac_exec_ext in '' $ac_executable_extensions; do
   14447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14448     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   14449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14450     break 2
   14451   fi
   14452 done
   14453   done
   14454 IFS=$as_save_IFS
   14455 
   14456   ;;
   14457 esac
   14458 fi
   14459 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   14460 if test -n "$PKG_CONFIG"; then
   14461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   14462 $as_echo "$PKG_CONFIG" >&6; }
   14463 else
   14464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14465 $as_echo "no" >&6; }
   14466 fi
   14467 
   14468 
   14469 fi
   14470 if test -z "$ac_cv_path_PKG_CONFIG"; then
   14471   ac_pt_PKG_CONFIG=$PKG_CONFIG
   14472   # Extract the first word of "pkg-config", so it can be a program name with args.
   14473 set dummy pkg-config; ac_word=$2
   14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14475 $as_echo_n "checking for $ac_word... " >&6; }
   14476 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   14477   $as_echo_n "(cached) " >&6
   14478 else
   14479   case $ac_pt_PKG_CONFIG in
   14480   [\\/]* | ?:[\\/]*)
   14481   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   14482   ;;
   14483   *)
   14484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14485 for as_dir in $PATH
   14486 do
   14487   IFS=$as_save_IFS
   14488   test -z "$as_dir" && as_dir=.
   14489     for ac_exec_ext in '' $ac_executable_extensions; do
   14490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14491     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   14492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14493     break 2
   14494   fi
   14495 done
   14496   done
   14497 IFS=$as_save_IFS
   14498 
   14499   ;;
   14500 esac
   14501 fi
   14502 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   14503 if test -n "$ac_pt_PKG_CONFIG"; then
   14504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   14505 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   14506 else
   14507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14508 $as_echo "no" >&6; }
   14509 fi
   14510 
   14511   if test "x$ac_pt_PKG_CONFIG" = x; then
   14512     PKG_CONFIG=""
   14513   else
   14514     case $cross_compiling:$ac_tool_warned in
   14515 yes:)
   14516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   14517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   14518 ac_tool_warned=yes ;;
   14519 esac
   14520     PKG_CONFIG=$ac_pt_PKG_CONFIG
   14521   fi
   14522 else
   14523   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   14524 fi
   14525 
   14526 fi
   14527 if test -n "$PKG_CONFIG"; then
   14528 	_pkg_min_version=0.9.0
   14529 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   14530 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   14531 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   14532 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14533 $as_echo "yes" >&6; }
   14534 	else
   14535 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14536 $as_echo "no" >&6; }
   14537 		PKG_CONFIG=""
   14538 	fi
   14539 fi
   14540 fi
   14541 
   14542 # Checks for header files.
   14543 for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/select.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h sys/endian.h libkern/OSByteOrder.h sys/ipc.h sys/shm.h ifaddrs.h poll.h
   14544 do :
   14545   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14546 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   14547 "
   14548 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   14549   cat >>confdefs.h <<_ACEOF
   14550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14551 _ACEOF
   14552 
   14553 fi
   14554 
   14555 done
   14556 
   14557 # net/if.h portability for Darwin see:
   14558 # https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html
   14559 for ac_header in net/if.h
   14560 do :
   14561   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
   14562 #include <stdio.h>
   14563 #ifdef STDC_HEADERS
   14564 # include <stdlib.h>
   14565 # include <stddef.h>
   14566 #else
   14567 # ifdef HAVE_STDLIB_H
   14568 #  include <stdlib.h>
   14569 # endif
   14570 #endif
   14571 #ifdef HAVE_SYS_SOCKET_H
   14572 # include <sys/socket.h>
   14573 #endif
   14574 
   14575 "
   14576 if test "x$ac_cv_header_net_if_h" = xyes; then :
   14577   cat >>confdefs.h <<_ACEOF
   14578 #define HAVE_NET_IF_H 1
   14579 _ACEOF
   14580 
   14581 fi
   14582 
   14583 done
   14584 
   14585 
   14586 # Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
   14587 for ac_header in TargetConditionals.h
   14588 do :
   14589   ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default
   14590 "
   14591 if test "x$ac_cv_header_TargetConditionals_h" = xyes; then :
   14592   cat >>confdefs.h <<_ACEOF
   14593 #define HAVE_TARGETCONDITIONALS_H 1
   14594 _ACEOF
   14595 
   14596 fi
   14597 
   14598 done
   14599 
   14600 for ac_header in netioapi.h
   14601 do :
   14602   ac_fn_c_check_header_compile "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" "$ac_includes_default
   14603 #if HAVE_SYS_PARAM_H
   14604 #include <sys/param.h>
   14605 #endif
   14606 
   14607 #ifdef HAVE_SYS_SOCKET_H
   14608 #include <sys/socket.h>
   14609 #endif
   14610 
   14611 #ifdef HAVE_SYS_UIO_H
   14612 #include <sys/uio.h>
   14613 #endif
   14614 
   14615 #ifdef HAVE_NETINET_IN_H
   14616 #include <netinet/in.h>
   14617 #endif
   14618 
   14619 #ifdef HAVE_NETINET_TCP_H
   14620 #include <netinet/tcp.h>
   14621 #endif
   14622 
   14623 #ifdef HAVE_ARPA_INET_H
   14624 #include <arpa/inet.h>
   14625 #endif
   14626 
   14627 #ifdef HAVE_WINSOCK2_H
   14628 #include <winsock2.h>
   14629 #endif
   14630 
   14631 #ifdef HAVE_WS2TCPIP_H
   14632 #include <ws2tcpip.h>
   14633 #endif
   14634 
   14635 "
   14636 if test "x$ac_cv_header_netioapi_h" = xyes; then :
   14637   cat >>confdefs.h <<_ACEOF
   14638 #define HAVE_NETIOAPI_H 1
   14639 _ACEOF
   14640 
   14641 fi
   14642 
   14643 done
   14644 
   14645 
   14646 # Check for Linux timestamping headers
   14647 for ac_header in linux/net_tstamp.h
   14648 do :
   14649   ac_fn_c_check_header_compile "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default
   14650 "
   14651 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
   14652   cat >>confdefs.h <<_ACEOF
   14653 #define HAVE_LINUX_NET_TSTAMP_H 1
   14654 _ACEOF
   14655 
   14656 fi
   14657 
   14658 done
   14659 
   14660 
   14661 # check for types.
   14662 # Using own tests for int64* because autoconf builtin only give 32bit.
   14663 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
   14664 if test "x$ac_cv_type_int8_t" = xyes; then :
   14665 
   14666 else
   14667 
   14668 cat >>confdefs.h <<_ACEOF
   14669 #define int8_t signed char
   14670 _ACEOF
   14671 
   14672 fi
   14673 
   14674 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
   14675 if test "x$ac_cv_type_int16_t" = xyes; then :
   14676 
   14677 else
   14678 
   14679 cat >>confdefs.h <<_ACEOF
   14680 #define int16_t short
   14681 _ACEOF
   14682 
   14683 fi
   14684 
   14685 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
   14686 if test "x$ac_cv_type_int32_t" = xyes; then :
   14687 
   14688 else
   14689 
   14690 cat >>confdefs.h <<_ACEOF
   14691 #define int32_t int
   14692 _ACEOF
   14693 
   14694 fi
   14695 
   14696 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
   14697 if test "x$ac_cv_type_int64_t" = xyes; then :
   14698 
   14699 else
   14700 
   14701 cat >>confdefs.h <<_ACEOF
   14702 #define int64_t long long
   14703 _ACEOF
   14704 
   14705 fi
   14706 
   14707 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
   14708 if test "x$ac_cv_type_uint8_t" = xyes; then :
   14709 
   14710 else
   14711 
   14712 cat >>confdefs.h <<_ACEOF
   14713 #define uint8_t unsigned char
   14714 _ACEOF
   14715 
   14716 fi
   14717 
   14718 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
   14719 if test "x$ac_cv_type_uint16_t" = xyes; then :
   14720 
   14721 else
   14722 
   14723 cat >>confdefs.h <<_ACEOF
   14724 #define uint16_t unsigned short
   14725 _ACEOF
   14726 
   14727 fi
   14728 
   14729 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
   14730 if test "x$ac_cv_type_uint32_t" = xyes; then :
   14731 
   14732 else
   14733 
   14734 cat >>confdefs.h <<_ACEOF
   14735 #define uint32_t unsigned int
   14736 _ACEOF
   14737 
   14738 fi
   14739 
   14740 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
   14741 if test "x$ac_cv_type_uint64_t" = xyes; then :
   14742 
   14743 else
   14744 
   14745 cat >>confdefs.h <<_ACEOF
   14746 #define uint64_t unsigned long long
   14747 _ACEOF
   14748 
   14749 fi
   14750 
   14751 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   14752 if test "x$ac_cv_type_size_t" = xyes; then :
   14753 
   14754 else
   14755 
   14756 cat >>confdefs.h <<_ACEOF
   14757 #define size_t unsigned int
   14758 _ACEOF
   14759 
   14760 fi
   14761 
   14762 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   14763 if test "x$ac_cv_type_ssize_t" = xyes; then :
   14764 
   14765 else
   14766 
   14767 cat >>confdefs.h <<_ACEOF
   14768 #define ssize_t int
   14769 _ACEOF
   14770 
   14771 fi
   14772 
   14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
   14774 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
   14775 if ${ac_cv_type_uid_t+:} false; then :
   14776   $as_echo_n "(cached) " >&6
   14777 else
   14778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14779 /* end confdefs.h.  */
   14780 #include <sys/types.h>
   14781 
   14782 _ACEOF
   14783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14784   $EGREP "uid_t" >/dev/null 2>&1; then :
   14785   ac_cv_type_uid_t=yes
   14786 else
   14787   ac_cv_type_uid_t=no
   14788 fi
   14789 rm -f conftest*
   14790 
   14791 fi
   14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
   14793 $as_echo "$ac_cv_type_uid_t" >&6; }
   14794 if test $ac_cv_type_uid_t = no; then
   14795 
   14796 $as_echo "#define uid_t int" >>confdefs.h
   14797 
   14798 
   14799 $as_echo "#define gid_t int" >>confdefs.h
   14800 
   14801 fi
   14802 
   14803 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   14804 if test "x$ac_cv_type_pid_t" = xyes; then :
   14805 
   14806 else
   14807 
   14808 cat >>confdefs.h <<_ACEOF
   14809 #define pid_t int
   14810 _ACEOF
   14811 
   14812 fi
   14813 
   14814 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
   14815 if test "x$ac_cv_type_off_t" = xyes; then :
   14816 
   14817 else
   14818 
   14819 cat >>confdefs.h <<_ACEOF
   14820 #define off_t long int
   14821 _ACEOF
   14822 
   14823 fi
   14824 
   14825 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
   14826 $ac_includes_default
   14827 #ifdef HAVE_WINSOCK2_H
   14828 #  include <winsock2.h>
   14829 #endif
   14830 
   14831 "
   14832 if test "x$ac_cv_type_u_char" = xyes; then :
   14833 
   14834 else
   14835 
   14836 $as_echo "#define u_char unsigned char" >>confdefs.h
   14837 
   14838 fi
   14839 
   14840 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
   14841 $ac_includes_default
   14842 #ifdef HAVE_SYS_RESOURCE_H
   14843 #  include <sys/resource.h>
   14844 #endif
   14845 
   14846 "
   14847 if test "x$ac_cv_type_rlim_t" = xyes; then :
   14848 
   14849 else
   14850 
   14851 $as_echo "#define rlim_t unsigned long" >>confdefs.h
   14852 
   14853 fi
   14854 
   14855 
   14856 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
   14857 $ac_includes_default
   14858 #ifdef HAVE_SYS_SOCKET_H
   14859 #  include <sys/socket.h>
   14860 #endif
   14861 #ifdef HAVE_WS2TCPIP_H
   14862 #  include <ws2tcpip.h>
   14863 #endif
   14864 
   14865 "
   14866 if test "x$ac_cv_type_socklen_t" = xyes; then :
   14867 
   14868 else
   14869 
   14870 $as_echo "#define socklen_t int" >>confdefs.h
   14871 
   14872 fi
   14873 
   14874  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
   14875 $ac_includes_default
   14876 #ifdef HAVE_SYS_TYPES_H
   14877 # include <sys/types.h>
   14878 #endif
   14879 #ifdef HAVE_NETINET_IN_H
   14880 # include <netinet/in.h>
   14881 #endif
   14882 
   14883 "
   14884 if test "x$ac_cv_type_in_addr_t" = xyes; then :
   14885 
   14886 else
   14887 
   14888 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
   14889 
   14890 fi
   14891 
   14892  ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
   14893 $ac_includes_default
   14894 #ifdef HAVE_SYS_TYPES_H
   14895 # include <sys/types.h>
   14896 #endif
   14897 #ifdef HAVE_NETINET_IN_H
   14898 # include <netinet/in.h>
   14899 #endif
   14900 
   14901 "
   14902 if test "x$ac_cv_type_in_port_t" = xyes; then :
   14903 
   14904 else
   14905 
   14906 $as_echo "#define in_port_t uint16_t" >>confdefs.h
   14907 
   14908 fi
   14909 
   14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
   14911 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
   14912 if test "$cross_compiling" = yes; then :
   14913    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
   14914 $as_echo "cross-compile no" >&6; }
   14915 
   14916 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
   14917 
   14918   case " $LIBOBJS " in
   14919   *" memcmp.$ac_objext "* ) ;;
   14920   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
   14921  ;;
   14922 esac
   14923 
   14924 
   14925 else
   14926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14927 /* end confdefs.h.  */
   14928 
   14929 #include <stdio.h>
   14930 #include <stdlib.h>
   14931 #include <string.h>
   14932 int main(void)
   14933 {
   14934 	char a = 255, b = 0;
   14935 	if(memcmp(&a, &b, 1) < 0)
   14936 		return 1;
   14937 	return 0;
   14938 }
   14939 
   14940 _ACEOF
   14941 if ac_fn_c_try_run "$LINENO"; then :
   14942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14943 $as_echo "yes" >&6; }
   14944 else
   14945    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14946 $as_echo "no" >&6; }
   14947 
   14948 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
   14949 
   14950   case " $LIBOBJS " in
   14951   *" memcmp.$ac_objext "* ) ;;
   14952   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
   14953  ;;
   14954 esac
   14955 
   14956 
   14957 fi
   14958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14959   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14960 fi
   14961 
   14962 
   14963 # The cast to long int works around a bug in the HP C Compiler
   14964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14966 # This bug is HP SR number 8606223364.
   14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
   14968 $as_echo_n "checking size of time_t... " >&6; }
   14969 if ${ac_cv_sizeof_time_t+:} false; then :
   14970   $as_echo_n "(cached) " >&6
   14971 else
   14972   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
   14973 $ac_includes_default
   14974 #ifdef TIME_WITH_SYS_TIME
   14975 # include <sys/time.h>
   14976 # include <time.h>
   14977 #else
   14978 # ifdef HAVE_SYS_TIME_H
   14979 #  include <sys/time.h>
   14980 # else
   14981 #  include <time.h>
   14982 # endif
   14983 #endif
   14984 
   14985 "; then :
   14986 
   14987 else
   14988   if test "$ac_cv_type_time_t" = yes; then
   14989      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14991 as_fn_error 77 "cannot compute sizeof (time_t)
   14992 See \`config.log' for more details" "$LINENO" 5; }
   14993    else
   14994      ac_cv_sizeof_time_t=0
   14995    fi
   14996 fi
   14997 
   14998 fi
   14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
   15000 $as_echo "$ac_cv_sizeof_time_t" >&6; }
   15001 
   15002 
   15003 
   15004 cat >>confdefs.h <<_ACEOF
   15005 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
   15006 _ACEOF
   15007 
   15008 
   15009 # The cast to long int works around a bug in the HP C Compiler
   15010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   15011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   15012 # This bug is HP SR number 8606223364.
   15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
   15014 $as_echo_n "checking size of size_t... " >&6; }
   15015 if ${ac_cv_sizeof_size_t+:} false; then :
   15016   $as_echo_n "(cached) " >&6
   15017 else
   15018   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
   15019 
   15020 else
   15021   if test "$ac_cv_type_size_t" = yes; then
   15022      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15024 as_fn_error 77 "cannot compute sizeof (size_t)
   15025 See \`config.log' for more details" "$LINENO" 5; }
   15026    else
   15027      ac_cv_sizeof_size_t=0
   15028    fi
   15029 fi
   15030 
   15031 fi
   15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
   15033 $as_echo "$ac_cv_sizeof_size_t" >&6; }
   15034 
   15035 
   15036 
   15037 cat >>confdefs.h <<_ACEOF
   15038 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
   15039 _ACEOF
   15040 
   15041 
   15042 
   15043 # add option to disable the evil rpath
   15044 
   15045 # Check whether --enable-rpath was given.
   15046 if test "${enable_rpath+set}" = set; then :
   15047   enableval=$enable_rpath; enable_rpath=$enableval
   15048 else
   15049   enable_rpath=yes
   15050 fi
   15051 
   15052 if test "x$enable_rpath" = xno; then
   15053 		ac_config_commands="$ac_config_commands disable-rpath"
   15054 
   15055 fi
   15056 
   15057 
   15058 
   15059 # check to see if libraries are needed for these functions.
   15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
   15061 $as_echo_n "checking for library containing inet_pton... " >&6; }
   15062 if ${ac_cv_search_inet_pton+:} false; then :
   15063   $as_echo_n "(cached) " >&6
   15064 else
   15065   ac_func_search_save_LIBS=$LIBS
   15066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15067 /* end confdefs.h.  */
   15068 
   15069 /* Override any GCC internal prototype to avoid an error.
   15070    Use char because int might match the return type of a GCC
   15071    builtin and then its argument prototype would still apply.  */
   15072 #ifdef __cplusplus
   15073 extern "C"
   15074 #endif
   15075 char inet_pton ();
   15076 int
   15077 main ()
   15078 {
   15079 return inet_pton ();
   15080   ;
   15081   return 0;
   15082 }
   15083 _ACEOF
   15084 for ac_lib in '' nsl; do
   15085   if test -z "$ac_lib"; then
   15086     ac_res="none required"
   15087   else
   15088     ac_res=-l$ac_lib
   15089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15090   fi
   15091   if ac_fn_c_try_link "$LINENO"; then :
   15092   ac_cv_search_inet_pton=$ac_res
   15093 fi
   15094 rm -f core conftest.err conftest.$ac_objext \
   15095     conftest$ac_exeext
   15096   if ${ac_cv_search_inet_pton+:} false; then :
   15097   break
   15098 fi
   15099 done
   15100 if ${ac_cv_search_inet_pton+:} false; then :
   15101 
   15102 else
   15103   ac_cv_search_inet_pton=no
   15104 fi
   15105 rm conftest.$ac_ext
   15106 LIBS=$ac_func_search_save_LIBS
   15107 fi
   15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
   15109 $as_echo "$ac_cv_search_inet_pton" >&6; }
   15110 ac_res=$ac_cv_search_inet_pton
   15111 if test "$ac_res" != no; then :
   15112   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15113 
   15114 fi
   15115 
   15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
   15117 $as_echo_n "checking for library containing socket... " >&6; }
   15118 if ${ac_cv_search_socket+:} false; then :
   15119   $as_echo_n "(cached) " >&6
   15120 else
   15121   ac_func_search_save_LIBS=$LIBS
   15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15123 /* end confdefs.h.  */
   15124 
   15125 /* Override any GCC internal prototype to avoid an error.
   15126    Use char because int might match the return type of a GCC
   15127    builtin and then its argument prototype would still apply.  */
   15128 #ifdef __cplusplus
   15129 extern "C"
   15130 #endif
   15131 char socket ();
   15132 int
   15133 main ()
   15134 {
   15135 return socket ();
   15136   ;
   15137   return 0;
   15138 }
   15139 _ACEOF
   15140 for ac_lib in '' socket; do
   15141   if test -z "$ac_lib"; then
   15142     ac_res="none required"
   15143   else
   15144     ac_res=-l$ac_lib
   15145     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15146   fi
   15147   if ac_fn_c_try_link "$LINENO"; then :
   15148   ac_cv_search_socket=$ac_res
   15149 fi
   15150 rm -f core conftest.err conftest.$ac_objext \
   15151     conftest$ac_exeext
   15152   if ${ac_cv_search_socket+:} false; then :
   15153   break
   15154 fi
   15155 done
   15156 if ${ac_cv_search_socket+:} false; then :
   15157 
   15158 else
   15159   ac_cv_search_socket=no
   15160 fi
   15161 rm conftest.$ac_ext
   15162 LIBS=$ac_func_search_save_LIBS
   15163 fi
   15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
   15165 $as_echo "$ac_cv_search_socket" >&6; }
   15166 ac_res=$ac_cv_search_socket
   15167 if test "$ac_res" != no; then :
   15168   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15169 
   15170 fi
   15171 
   15172 
   15173 # check whether strptime also works
   15174 
   15175 # check some functions of the OS before linking libs (while still runnable).
   15176 for ac_header in unistd.h
   15177 do :
   15178   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
   15179 if test "x$ac_cv_header_unistd_h" = xyes; then :
   15180   cat >>confdefs.h <<_ACEOF
   15181 #define HAVE_UNISTD_H 1
   15182 _ACEOF
   15183 
   15184 fi
   15185 
   15186 done
   15187 
   15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
   15189 $as_echo_n "checking for working chown... " >&6; }
   15190 if ${ac_cv_func_chown_works+:} false; then :
   15191   $as_echo_n "(cached) " >&6
   15192 else
   15193   if test "$cross_compiling" = yes; then :
   15194   ac_cv_func_chown_works=no
   15195 else
   15196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15197 /* end confdefs.h.  */
   15198 $ac_includes_default
   15199 #include <fcntl.h>
   15200 
   15201 int
   15202 main ()
   15203 {
   15204   char *f = "conftest.chown";
   15205   struct stat before, after;
   15206 
   15207   if (creat (f, 0600) < 0)
   15208     return 1;
   15209   if (stat (f, &before) < 0)
   15210     return 1;
   15211   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
   15212     return 1;
   15213   if (stat (f, &after) < 0)
   15214     return 1;
   15215   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
   15216 
   15217   ;
   15218   return 0;
   15219 }
   15220 _ACEOF
   15221 if ac_fn_c_try_run "$LINENO"; then :
   15222   ac_cv_func_chown_works=yes
   15223 else
   15224   ac_cv_func_chown_works=no
   15225 fi
   15226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15227   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15228 fi
   15229 
   15230 rm -f conftest.chown
   15231 
   15232 fi
   15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
   15234 $as_echo "$ac_cv_func_chown_works" >&6; }
   15235 if test $ac_cv_func_chown_works = yes; then
   15236 
   15237 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
   15238 
   15239 fi
   15240 
   15241 for ac_header in vfork.h
   15242 do :
   15243   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
   15244 if test "x$ac_cv_header_vfork_h" = xyes; then :
   15245   cat >>confdefs.h <<_ACEOF
   15246 #define HAVE_VFORK_H 1
   15247 _ACEOF
   15248 
   15249 fi
   15250 
   15251 done
   15252 
   15253 for ac_func in fork vfork
   15254 do :
   15255   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15256 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15257 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15258   cat >>confdefs.h <<_ACEOF
   15259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15260 _ACEOF
   15261 
   15262 fi
   15263 done
   15264 
   15265 if test "x$ac_cv_func_fork" = xyes; then
   15266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
   15267 $as_echo_n "checking for working fork... " >&6; }
   15268 if ${ac_cv_func_fork_works+:} false; then :
   15269   $as_echo_n "(cached) " >&6
   15270 else
   15271   if test "$cross_compiling" = yes; then :
   15272   ac_cv_func_fork_works=cross
   15273 else
   15274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15275 /* end confdefs.h.  */
   15276 $ac_includes_default
   15277 int
   15278 main ()
   15279 {
   15280 
   15281 	  /* By Ruediger Kuhlmann. */
   15282 	  return fork () < 0;
   15283 
   15284   ;
   15285   return 0;
   15286 }
   15287 _ACEOF
   15288 if ac_fn_c_try_run "$LINENO"; then :
   15289   ac_cv_func_fork_works=yes
   15290 else
   15291   ac_cv_func_fork_works=no
   15292 fi
   15293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15294   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15295 fi
   15296 
   15297 fi
   15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
   15299 $as_echo "$ac_cv_func_fork_works" >&6; }
   15300 
   15301 else
   15302   ac_cv_func_fork_works=$ac_cv_func_fork
   15303 fi
   15304 if test "x$ac_cv_func_fork_works" = xcross; then
   15305   case $host in
   15306     *-*-amigaos* | *-*-msdosdjgpp*)
   15307       # Override, as these systems have only a dummy fork() stub
   15308       ac_cv_func_fork_works=no
   15309       ;;
   15310     *)
   15311       ac_cv_func_fork_works=yes
   15312       ;;
   15313   esac
   15314   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   15315 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   15316 fi
   15317 ac_cv_func_vfork_works=$ac_cv_func_vfork
   15318 if test "x$ac_cv_func_vfork" = xyes; then
   15319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
   15320 $as_echo_n "checking for working vfork... " >&6; }
   15321 if ${ac_cv_func_vfork_works+:} false; then :
   15322   $as_echo_n "(cached) " >&6
   15323 else
   15324   if test "$cross_compiling" = yes; then :
   15325   ac_cv_func_vfork_works=cross
   15326 else
   15327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15328 /* end confdefs.h.  */
   15329 /* Thanks to Paul Eggert for this test.  */
   15330 $ac_includes_default
   15331 #include <sys/wait.h>
   15332 #ifdef HAVE_VFORK_H
   15333 # include <vfork.h>
   15334 #endif
   15335 /* On some sparc systems, changes by the child to local and incoming
   15336    argument registers are propagated back to the parent.  The compiler
   15337    is told about this with #include <vfork.h>, but some compilers
   15338    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   15339    static variable whose address is put into a register that is
   15340    clobbered by the vfork.  */
   15341 static void
   15342 #ifdef __cplusplus
   15343 sparc_address_test (int arg)
   15344 # else
   15345 sparc_address_test (arg) int arg;
   15346 #endif
   15347 {
   15348   static pid_t child;
   15349   if (!child) {
   15350     child = vfork ();
   15351     if (child < 0) {
   15352       perror ("vfork");
   15353       _exit(2);
   15354     }
   15355     if (!child) {
   15356       arg = getpid();
   15357       write(-1, "", 0);
   15358       _exit (arg);
   15359     }
   15360   }
   15361 }
   15362 
   15363 int
   15364 main ()
   15365 {
   15366   pid_t parent = getpid ();
   15367   pid_t child;
   15368 
   15369   sparc_address_test (0);
   15370 
   15371   child = vfork ();
   15372 
   15373   if (child == 0) {
   15374     /* Here is another test for sparc vfork register problems.  This
   15375        test uses lots of local variables, at least as many local
   15376        variables as main has allocated so far including compiler
   15377        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   15378        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   15379        reuse the register of parent for one of the local variables,
   15380        since it will think that parent can't possibly be used any more
   15381        in this routine.  Assigning to the local variable will thus
   15382        munge parent in the parent process.  */
   15383     pid_t
   15384       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   15385       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   15386     /* Convince the compiler that p..p7 are live; otherwise, it might
   15387        use the same hardware register for all 8 local variables.  */
   15388     if (p != p1 || p != p2 || p != p3 || p != p4
   15389 	|| p != p5 || p != p6 || p != p7)
   15390       _exit(1);
   15391 
   15392     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   15393        from child file descriptors.  If the child closes a descriptor
   15394        before it execs or exits, this munges the parent's descriptor
   15395        as well.  Test for this by closing stdout in the child.  */
   15396     _exit(close(fileno(stdout)) != 0);
   15397   } else {
   15398     int status;
   15399     struct stat st;
   15400 
   15401     while (wait(&status) != child)
   15402       ;
   15403     return (
   15404 	 /* Was there some problem with vforking?  */
   15405 	 child < 0
   15406 
   15407 	 /* Did the child fail?  (This shouldn't happen.)  */
   15408 	 || status
   15409 
   15410 	 /* Did the vfork/compiler bug occur?  */
   15411 	 || parent != getpid()
   15412 
   15413 	 /* Did the file descriptor bug occur?  */
   15414 	 || fstat(fileno(stdout), &st) != 0
   15415 	 );
   15416   }
   15417 }
   15418 _ACEOF
   15419 if ac_fn_c_try_run "$LINENO"; then :
   15420   ac_cv_func_vfork_works=yes
   15421 else
   15422   ac_cv_func_vfork_works=no
   15423 fi
   15424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15425   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15426 fi
   15427 
   15428 fi
   15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
   15430 $as_echo "$ac_cv_func_vfork_works" >&6; }
   15431 
   15432 fi;
   15433 if test "x$ac_cv_func_fork_works" = xcross; then
   15434   ac_cv_func_vfork_works=$ac_cv_func_vfork
   15435   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   15436 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   15437 fi
   15438 
   15439 if test "x$ac_cv_func_vfork_works" = xyes; then
   15440 
   15441 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
   15442 
   15443 else
   15444 
   15445 $as_echo "#define vfork fork" >>confdefs.h
   15446 
   15447 fi
   15448 if test "x$ac_cv_func_fork_works" = xyes; then
   15449 
   15450 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
   15451 
   15452 fi
   15453 
   15454 
   15455 $as_echo "#define RETSIGTYPE void" >>confdefs.h
   15456 
   15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
   15458 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
   15459 if ${ac_cv_sys_largefile_source+:} false; then :
   15460   $as_echo_n "(cached) " >&6
   15461 else
   15462   while :; do
   15463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15464 /* end confdefs.h.  */
   15465 #include <sys/types.h> /* for off_t */
   15466      #include <stdio.h>
   15467 int
   15468 main ()
   15469 {
   15470 int (*fp) (FILE *, off_t, int) = fseeko;
   15471      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   15472   ;
   15473   return 0;
   15474 }
   15475 _ACEOF
   15476 if ac_fn_c_try_link "$LINENO"; then :
   15477   ac_cv_sys_largefile_source=no; break
   15478 fi
   15479 rm -f core conftest.err conftest.$ac_objext \
   15480     conftest$ac_exeext conftest.$ac_ext
   15481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15482 /* end confdefs.h.  */
   15483 #define _LARGEFILE_SOURCE 1
   15484 #include <sys/types.h> /* for off_t */
   15485      #include <stdio.h>
   15486 int
   15487 main ()
   15488 {
   15489 int (*fp) (FILE *, off_t, int) = fseeko;
   15490      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   15491   ;
   15492   return 0;
   15493 }
   15494 _ACEOF
   15495 if ac_fn_c_try_link "$LINENO"; then :
   15496   ac_cv_sys_largefile_source=1; break
   15497 fi
   15498 rm -f core conftest.err conftest.$ac_objext \
   15499     conftest$ac_exeext conftest.$ac_ext
   15500   ac_cv_sys_largefile_source=unknown
   15501   break
   15502 done
   15503 fi
   15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
   15505 $as_echo "$ac_cv_sys_largefile_source" >&6; }
   15506 case $ac_cv_sys_largefile_source in #(
   15507   no | unknown) ;;
   15508   *)
   15509 cat >>confdefs.h <<_ACEOF
   15510 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
   15511 _ACEOF
   15512 ;;
   15513 esac
   15514 rm -rf conftest*
   15515 
   15516 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
   15517 # in glibc 2.1.3, but that breaks too many other things.
   15518 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
   15519 if test $ac_cv_sys_largefile_source != unknown; then
   15520 
   15521 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
   15522 
   15523 fi
   15524 
   15525 
   15526 # Check whether --enable-largefile was given.
   15527 if test "${enable_largefile+set}" = set; then :
   15528   enableval=$enable_largefile;
   15529 fi
   15530 
   15531 if test "$enable_largefile" != no; then
   15532 
   15533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   15534 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   15535 if ${ac_cv_sys_largefile_CC+:} false; then :
   15536   $as_echo_n "(cached) " >&6
   15537 else
   15538   ac_cv_sys_largefile_CC=no
   15539      if test "$GCC" != yes; then
   15540        ac_save_CC=$CC
   15541        while :; do
   15542 	 # IRIX 6.2 and later do not support large files by default,
   15543 	 # so use the C compiler's -n32 option if that helps.
   15544 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15545 /* end confdefs.h.  */
   15546 #include <sys/types.h>
   15547  /* Check that off_t can represent 2**63 - 1 correctly.
   15548     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   15549     since some C++ compilers masquerading as C compilers
   15550     incorrectly reject 9223372036854775807.  */
   15551 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   15552   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   15553 		       && LARGE_OFF_T % 2147483647 == 1)
   15554 		      ? 1 : -1];
   15555 int
   15556 main ()
   15557 {
   15558 
   15559   ;
   15560   return 0;
   15561 }
   15562 _ACEOF
   15563 	 if ac_fn_c_try_compile "$LINENO"; then :
   15564   break
   15565 fi
   15566 rm -f core conftest.err conftest.$ac_objext
   15567 	 CC="$CC -n32"
   15568 	 if ac_fn_c_try_compile "$LINENO"; then :
   15569   ac_cv_sys_largefile_CC=' -n32'; break
   15570 fi
   15571 rm -f core conftest.err conftest.$ac_objext
   15572 	 break
   15573        done
   15574        CC=$ac_save_CC
   15575        rm -f conftest.$ac_ext
   15576     fi
   15577 fi
   15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   15579 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   15580   if test "$ac_cv_sys_largefile_CC" != no; then
   15581     CC=$CC$ac_cv_sys_largefile_CC
   15582   fi
   15583 
   15584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   15585 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   15586 if ${ac_cv_sys_file_offset_bits+:} false; then :
   15587   $as_echo_n "(cached) " >&6
   15588 else
   15589   while :; do
   15590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15591 /* end confdefs.h.  */
   15592 #include <sys/types.h>
   15593  /* Check that off_t can represent 2**63 - 1 correctly.
   15594     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   15595     since some C++ compilers masquerading as C compilers
   15596     incorrectly reject 9223372036854775807.  */
   15597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   15598   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   15599 		       && LARGE_OFF_T % 2147483647 == 1)
   15600 		      ? 1 : -1];
   15601 int
   15602 main ()
   15603 {
   15604 
   15605   ;
   15606   return 0;
   15607 }
   15608 _ACEOF
   15609 if ac_fn_c_try_compile "$LINENO"; then :
   15610   ac_cv_sys_file_offset_bits=no; break
   15611 fi
   15612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15614 /* end confdefs.h.  */
   15615 #define _FILE_OFFSET_BITS 64
   15616 #include <sys/types.h>
   15617  /* Check that off_t can represent 2**63 - 1 correctly.
   15618     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   15619     since some C++ compilers masquerading as C compilers
   15620     incorrectly reject 9223372036854775807.  */
   15621 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   15622   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   15623 		       && LARGE_OFF_T % 2147483647 == 1)
   15624 		      ? 1 : -1];
   15625 int
   15626 main ()
   15627 {
   15628 
   15629   ;
   15630   return 0;
   15631 }
   15632 _ACEOF
   15633 if ac_fn_c_try_compile "$LINENO"; then :
   15634   ac_cv_sys_file_offset_bits=64; break
   15635 fi
   15636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15637   ac_cv_sys_file_offset_bits=unknown
   15638   break
   15639 done
   15640 fi
   15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   15642 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   15643 case $ac_cv_sys_file_offset_bits in #(
   15644   no | unknown) ;;
   15645   *)
   15646 cat >>confdefs.h <<_ACEOF
   15647 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   15648 _ACEOF
   15649 ;;
   15650 esac
   15651 rm -rf conftest*
   15652   if test $ac_cv_sys_file_offset_bits = unknown; then
   15653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   15654 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   15655 if ${ac_cv_sys_large_files+:} false; then :
   15656   $as_echo_n "(cached) " >&6
   15657 else
   15658   while :; do
   15659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15660 /* end confdefs.h.  */
   15661 #include <sys/types.h>
   15662  /* Check that off_t can represent 2**63 - 1 correctly.
   15663     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   15664     since some C++ compilers masquerading as C compilers
   15665     incorrectly reject 9223372036854775807.  */
   15666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   15667   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   15668 		       && LARGE_OFF_T % 2147483647 == 1)
   15669 		      ? 1 : -1];
   15670 int
   15671 main ()
   15672 {
   15673 
   15674   ;
   15675   return 0;
   15676 }
   15677 _ACEOF
   15678 if ac_fn_c_try_compile "$LINENO"; then :
   15679   ac_cv_sys_large_files=no; break
   15680 fi
   15681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15683 /* end confdefs.h.  */
   15684 #define _LARGE_FILES 1
   15685 #include <sys/types.h>
   15686  /* Check that off_t can represent 2**63 - 1 correctly.
   15687     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   15688     since some C++ compilers masquerading as C compilers
   15689     incorrectly reject 9223372036854775807.  */
   15690 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   15691   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   15692 		       && LARGE_OFF_T % 2147483647 == 1)
   15693 		      ? 1 : -1];
   15694 int
   15695 main ()
   15696 {
   15697 
   15698   ;
   15699   return 0;
   15700 }
   15701 _ACEOF
   15702 if ac_fn_c_try_compile "$LINENO"; then :
   15703   ac_cv_sys_large_files=1; break
   15704 fi
   15705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15706   ac_cv_sys_large_files=unknown
   15707   break
   15708 done
   15709 fi
   15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   15711 $as_echo "$ac_cv_sys_large_files" >&6; }
   15712 case $ac_cv_sys_large_files in #(
   15713   no | unknown) ;;
   15714   *)
   15715 cat >>confdefs.h <<_ACEOF
   15716 #define _LARGE_FILES $ac_cv_sys_large_files
   15717 _ACEOF
   15718 ;;
   15719 esac
   15720 rm -rf conftest*
   15721   fi
   15722 
   15723 
   15724 fi
   15725 
   15726 
   15727 
   15728 
   15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
   15730 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
   15731 cache=_D_LARGEFILE_SOURCE_1
   15732 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   15733   $as_echo_n "(cached) " >&6
   15734 else
   15735 
   15736 echo '
   15737 #include <stdio.h>
   15738 int test(void) {
   15739         int a = fseeko(stdin, 0, 0);
   15740         return a;
   15741 }
   15742 ' > conftest.c
   15743 echo 'void f(void){}' >>conftest.c
   15744 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   15745 eval "cv_prog_cc_flag_needed_$cache=no"
   15746 else
   15747 
   15748 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
   15749 eval "cv_prog_cc_flag_needed_$cache=yes"
   15750 else
   15751 eval "cv_prog_cc_flag_needed_$cache=fail"
   15752 #echo 'Test with flag fails too!'
   15753 #cat conftest.c
   15754 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
   15755 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
   15756 #exit 1
   15757 fi
   15758 
   15759 fi
   15760 rm -f conftest conftest.c conftest.o
   15761 
   15762 fi
   15763 
   15764 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15766 $as_echo "yes" >&6; }
   15767 :
   15768 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
   15769 else
   15770 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15772 $as_echo "no" >&6; }
   15773 #echo 'Test with flag is no!'
   15774 #cat conftest.c
   15775 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
   15776 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
   15777 #exit 1
   15778 :
   15779 
   15780 else
   15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   15782 $as_echo "failed" >&6; }
   15783 :
   15784 
   15785 fi
   15786 fi
   15787 
   15788 
   15789 
   15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
   15791 $as_echo_n "checking if nonblocking sockets work... " >&6; }
   15792 if echo $host | grep mingw >/dev/null; then
   15793 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
   15794 $as_echo "no (windows)" >&6; }
   15795 
   15796 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
   15797 
   15798 else
   15799 if test "$cross_compiling" = yes; then :
   15800 
   15801 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
   15802 $as_echo "crosscompile(yes)" >&6; }
   15803 
   15804 else
   15805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15806 /* end confdefs.h.  */
   15807 
   15808 
   15809 #include <stdio.h>
   15810 #include <string.h>
   15811 #include <stdlib.h>
   15812 #include <fcntl.h>
   15813 #include <errno.h>
   15814 #ifdef HAVE_SYS_TYPES_H
   15815 #include <sys/types.h>
   15816 #endif
   15817 #ifdef HAVE_SYS_SELECT_H
   15818 #include <sys/select.h>
   15819 #endif
   15820 #ifdef HAVE_SYS_SOCKET_H
   15821 #include <sys/socket.h>
   15822 #endif
   15823 #ifdef HAVE_NETINET_IN_H
   15824 #include <netinet/in.h>
   15825 #endif
   15826 #ifdef HAVE_ARPA_INET_H
   15827 #include <arpa/inet.h>
   15828 #endif
   15829 #ifdef HAVE_UNISTD_H
   15830 #include <unistd.h>
   15831 #endif
   15832 #ifdef HAVE_TIME_H
   15833 #include <time.h>
   15834 #endif
   15835 
   15836 int main(void)
   15837 {
   15838 	int port;
   15839 	int sfd, cfd;
   15840 	int num = 10;
   15841 	int i, p;
   15842 	struct sockaddr_in a;
   15843 	/* test if select and nonblocking reads work well together */
   15844 	/* open port.
   15845 	   fork child to send 10 messages.
   15846 	   select to read.
   15847 	   then try to nonblocking read the 10 messages
   15848 	   then, nonblocking read must give EAGAIN
   15849 	*/
   15850 
   15851 	port = 12345 + (time(0)%32);
   15852 	sfd = socket(PF_INET, SOCK_DGRAM, 0);
   15853 	if(sfd == -1) {
   15854 		perror("socket");
   15855 		return 1;
   15856 	}
   15857 	memset(&a, 0, sizeof(a));
   15858 	a.sin_family = AF_INET;
   15859 	a.sin_port = htons(port);
   15860 	a.sin_addr.s_addr = inet_addr("127.0.0.1");
   15861 	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
   15862 		perror("bind");
   15863 		return 1;
   15864 	}
   15865 	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
   15866 		perror("fcntl");
   15867 		return 1;
   15868 	}
   15869 
   15870 	cfd = socket(PF_INET, SOCK_DGRAM, 0);
   15871 	if(cfd == -1) {
   15872 		perror("client socket");
   15873 		return 1;
   15874 	}
   15875 	a.sin_port = 0;
   15876 	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
   15877 		perror("client bind");
   15878 		return 1;
   15879 	}
   15880 	a.sin_port = htons(port);
   15881 
   15882 	/* no handler, causes exit in 10 seconds */
   15883 	alarm(10);
   15884 
   15885 	/* send and receive on the socket */
   15886 	if((p=fork()) == 0) {
   15887 		for(i=0; i<num; i++) {
   15888 			if(sendto(cfd, &i, sizeof(i), 0,
   15889 				(struct sockaddr*)&a, sizeof(a)) < 0) {
   15890 				perror("sendto");
   15891 				return 1;
   15892 			}
   15893 		}
   15894 	} else {
   15895 		/* parent */
   15896 		fd_set rset;
   15897 		int x;
   15898 		if(p == -1) {
   15899 			perror("fork");
   15900 			return 1;
   15901 		}
   15902 		FD_ZERO(&rset);
   15903 		FD_SET(sfd, &rset);
   15904 		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
   15905 			perror("select");
   15906 			return 1;
   15907 		}
   15908 		i = 0;
   15909 		while(i < num) {
   15910 			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
   15911 				if(errno == EAGAIN)
   15912 					continue;
   15913 				perror("recv");
   15914 				return 1;
   15915 			}
   15916 			i++;
   15917 		}
   15918 		/* now we want to get EAGAIN: nonblocking goodness */
   15919 		errno = 0;
   15920 		recv(sfd, &x, sizeof(x), 0);
   15921 		if(errno != EAGAIN) {
   15922 			perror("trying to recv again");
   15923 			return 1;
   15924 		}
   15925 		/* EAGAIN encountered */
   15926 	}
   15927 
   15928 	close(sfd);
   15929 	close(cfd);
   15930 	return 0;
   15931 }
   15932 
   15933 _ACEOF
   15934 if ac_fn_c_try_run "$LINENO"; then :
   15935 
   15936 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15937 $as_echo "yes" >&6; }
   15938 
   15939 else
   15940 
   15941 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15942 $as_echo "no" >&6; }
   15943 
   15944 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
   15945 
   15946 
   15947 fi
   15948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15949   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15950 fi
   15951 
   15952 fi
   15953 
   15954 
   15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
   15956 $as_echo_n "checking whether mkdir has one arg... " >&6; }
   15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15958 /* end confdefs.h.  */
   15959 
   15960 #include <stdio.h>
   15961 #include <unistd.h>
   15962 #ifdef HAVE_WINSOCK2_H
   15963 #include <winsock2.h>
   15964 #endif
   15965 #ifdef HAVE_SYS_STAT_H
   15966 #include <sys/stat.h>
   15967 #endif
   15968 
   15969 int
   15970 main ()
   15971 {
   15972 
   15973 	(void)mkdir("directory");
   15974 
   15975   ;
   15976   return 0;
   15977 }
   15978 _ACEOF
   15979 if ac_fn_c_try_compile "$LINENO"; then :
   15980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15981 $as_echo "yes" >&6; }
   15982 
   15983 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
   15984 
   15985 
   15986 else
   15987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15988 $as_echo "no" >&6; }
   15989 
   15990 fi
   15991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15992 
   15993 for ac_func in strptime
   15994 do :
   15995   ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
   15996 if test "x$ac_cv_func_strptime" = xyes; then :
   15997   cat >>confdefs.h <<_ACEOF
   15998 #define HAVE_STRPTIME 1
   15999 _ACEOF
   16000 
   16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
   16002 $as_echo_n "checking whether strptime works... " >&6; }
   16003 if test c${cross_compiling} = cno; then
   16004 if test "$cross_compiling" = yes; then :
   16005   eval "ac_cv_c_strptime_works=maybe"
   16006 else
   16007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16008 /* end confdefs.h.  */
   16009 
   16010 #define _XOPEN_SOURCE 600
   16011 #include <time.h>
   16012 int main(void) { struct tm tm; char *res;
   16013 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);
   16014 if (!res) return 2;
   16015 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
   16016 if (!res) return 1; return 0; }
   16017 
   16018 _ACEOF
   16019 if ac_fn_c_try_run "$LINENO"; then :
   16020   eval "ac_cv_c_strptime_works=yes"
   16021 else
   16022   eval "ac_cv_c_strptime_works=no"
   16023 fi
   16024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16025   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16026 fi
   16027 
   16028 else
   16029 eval "ac_cv_c_strptime_works=maybe"
   16030 fi
   16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
   16032 $as_echo "$ac_cv_c_strptime_works" >&6; }
   16033 if test $ac_cv_c_strptime_works = no; then
   16034 case " $LIBOBJS " in
   16035   *" strptime.$ac_objext "* ) ;;
   16036   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
   16037  ;;
   16038 esac
   16039 
   16040 else
   16041 
   16042 cat >>confdefs.h <<_ACEOF
   16043 #define STRPTIME_WORKS 1
   16044 _ACEOF
   16045 
   16046 fi
   16047 
   16048 else
   16049   case " $LIBOBJS " in
   16050   *" strptime.$ac_objext "* ) ;;
   16051   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
   16052  ;;
   16053 esac
   16054 
   16055 fi
   16056 done
   16057 
   16058 
   16059 # check if we can use SO_REUSEPORT
   16060 reuseport_default=0
   16061 if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi
   16062 if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi
   16063 if test "$reuseport_default" = 1; then
   16064 
   16065 $as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
   16066 
   16067 else
   16068 
   16069 $as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
   16070 
   16071 fi
   16072 
   16073 # Include systemd.m4 - begin
   16074 #   macros for configuring systemd
   16075 #   Copyright 2015, Sami Kerola, CloudFlare.
   16076 #   BSD licensed.
   16077 # Check whether --enable-systemd was given.
   16078 if test "${enable_systemd+set}" = set; then :
   16079   enableval=$enable_systemd;
   16080 else
   16081   enable_systemd=no
   16082 fi
   16083 
   16084 have_systemd=no
   16085 if test "x$enable_systemd" != xno; then :
   16086 
   16087 
   16088 
   16089 pkg_failed=no
   16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
   16091 $as_echo_n "checking for SYSTEMD... " >&6; }
   16092 
   16093 if test -n "$SYSTEMD_CFLAGS"; then
   16094     pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
   16095  elif test -n "$PKG_CONFIG"; then
   16096     if test -n "$PKG_CONFIG" && \
   16097     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
   16098   ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
   16099   ac_status=$?
   16100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16101   test $ac_status = 0; }; then
   16102   pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
   16103 		      test "x$?" != "x0" && pkg_failed=yes
   16104 else
   16105   pkg_failed=yes
   16106 fi
   16107  else
   16108     pkg_failed=untried
   16109 fi
   16110 if test -n "$SYSTEMD_LIBS"; then
   16111     pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
   16112  elif test -n "$PKG_CONFIG"; then
   16113     if test -n "$PKG_CONFIG" && \
   16114     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
   16115   ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
   16116   ac_status=$?
   16117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16118   test $ac_status = 0; }; then
   16119   pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
   16120 		      test "x$?" != "x0" && pkg_failed=yes
   16121 else
   16122   pkg_failed=yes
   16123 fi
   16124  else
   16125     pkg_failed=untried
   16126 fi
   16127 
   16128 
   16129 
   16130 if test $pkg_failed = yes; then
   16131    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16132 $as_echo "no" >&6; }
   16133 
   16134 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16135         _pkg_short_errors_supported=yes
   16136 else
   16137         _pkg_short_errors_supported=no
   16138 fi
   16139         if test $_pkg_short_errors_supported = yes; then
   16140 	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
   16141         else
   16142 	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
   16143         fi
   16144 	# Put the nasty error message in config.log where it belongs
   16145 	echo "$SYSTEMD_PKG_ERRORS" >&5
   16146 
   16147 	have_systemd=no
   16148 elif test $pkg_failed = untried; then
   16149      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16150 $as_echo "no" >&6; }
   16151 	have_systemd=no
   16152 else
   16153 	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
   16154 	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
   16155         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16156 $as_echo "yes" >&6; }
   16157 	have_systemd=yes
   16158 fi
   16159 		if test "x$have_systemd" != "xyes"; then :
   16160 
   16161 
   16162 pkg_failed=no
   16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
   16164 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
   16165 
   16166 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
   16167     pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
   16168  elif test -n "$PKG_CONFIG"; then
   16169     if test -n "$PKG_CONFIG" && \
   16170     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
   16171   ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
   16172   ac_status=$?
   16173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16174   test $ac_status = 0; }; then
   16175   pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
   16176 		      test "x$?" != "x0" && pkg_failed=yes
   16177 else
   16178   pkg_failed=yes
   16179 fi
   16180  else
   16181     pkg_failed=untried
   16182 fi
   16183 if test -n "$SYSTEMD_DAEMON_LIBS"; then
   16184     pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
   16185  elif test -n "$PKG_CONFIG"; then
   16186     if test -n "$PKG_CONFIG" && \
   16187     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
   16188   ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
   16189   ac_status=$?
   16190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16191   test $ac_status = 0; }; then
   16192   pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
   16193 		      test "x$?" != "x0" && pkg_failed=yes
   16194 else
   16195   pkg_failed=yes
   16196 fi
   16197  else
   16198     pkg_failed=untried
   16199 fi
   16200 
   16201 
   16202 
   16203 if test $pkg_failed = yes; then
   16204    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16205 $as_echo "no" >&6; }
   16206 
   16207 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16208         _pkg_short_errors_supported=yes
   16209 else
   16210         _pkg_short_errors_supported=no
   16211 fi
   16212         if test $_pkg_short_errors_supported = yes; then
   16213 	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
   16214         else
   16215 	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
   16216         fi
   16217 	# Put the nasty error message in config.log where it belongs
   16218 	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
   16219 
   16220 	have_systemd_daemon=no
   16221 elif test $pkg_failed = untried; then
   16222      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16223 $as_echo "no" >&6; }
   16224 	have_systemd_daemon=no
   16225 else
   16226 	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
   16227 	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
   16228         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16229 $as_echo "yes" >&6; }
   16230 	have_systemd_daemon=yes
   16231 fi
   16232 		if test "x$have_systemd_daemon" = "xyes"; then :
   16233   have_systemd=yes
   16234 fi
   16235 
   16236 fi
   16237 	case $enable_systemd:$have_systemd in #(
   16238   yes:no) :
   16239     as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
   16240   *:yes) :
   16241 
   16242 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
   16243 
   16244 		LIBS="$LIBS $SYSTEMD_LIBS"
   16245 
   16246 	 ;; #(
   16247   *) :
   16248      ;;
   16249 esac
   16250 
   16251 
   16252 fi
   16253  if test "x$have_systemd" = xyes; then
   16254   USE_SYSTEMD_TRUE=
   16255   USE_SYSTEMD_FALSE='#'
   16256 else
   16257   USE_SYSTEMD_TRUE='#'
   16258   USE_SYSTEMD_FALSE=
   16259 fi
   16260 
   16261 
   16262 # Include systemd.m4 - end
   16263 
   16264 # set memory allocation checking if requested
   16265 # Check whether --enable-alloc-checks was given.
   16266 if test "${enable_alloc_checks+set}" = set; then :
   16267   enableval=$enable_alloc_checks;
   16268 fi
   16269 
   16270 # Check whether --enable-alloc-lite was given.
   16271 if test "${enable_alloc_lite+set}" = set; then :
   16272   enableval=$enable_alloc_lite;
   16273 fi
   16274 
   16275 # Check whether --enable-alloc-nonregional was given.
   16276 if test "${enable_alloc_nonregional+set}" = set; then :
   16277   enableval=$enable_alloc_nonregional;
   16278 fi
   16279 
   16280 if test x_$enable_alloc_nonregional = x_yes; then
   16281 
   16282 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
   16283 
   16284 fi
   16285 if test x_$enable_alloc_checks = x_yes; then
   16286 
   16287 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
   16288 
   16289 	SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
   16290 
   16291 	ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
   16292 
   16293 else
   16294 	if test x_$enable_alloc_lite = x_yes; then
   16295 
   16296 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
   16297 
   16298 	else
   16299 
   16300 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
   16301 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
   16302 	if test "$cross_compiling" = yes; then :
   16303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
   16304 $as_echo "no (crosscompile)" >&6; }
   16305 	case " $LIBOBJS " in
   16306   *" malloc.$ac_objext "* ) ;;
   16307   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
   16308  ;;
   16309 esac
   16310 
   16311 
   16312 cat >>confdefs.h <<_ACEOF
   16313 #define malloc rpl_malloc_unbound
   16314 _ACEOF
   16315 
   16316 else
   16317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16318 /* end confdefs.h.  */
   16319 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
   16320 #include <stdlib.h>
   16321 #else
   16322 char *malloc ();
   16323 #endif
   16324 
   16325 int
   16326 main ()
   16327 {
   16328  if(malloc(0) != 0) return 1;
   16329   ;
   16330   return 0;
   16331 }
   16332 
   16333 _ACEOF
   16334 if ac_fn_c_try_run "$LINENO"; then :
   16335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16336 $as_echo "no" >&6; }
   16337 	case " $LIBOBJS " in
   16338   *" malloc.$ac_objext "* ) ;;
   16339   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
   16340  ;;
   16341 esac
   16342 
   16343 
   16344 cat >>confdefs.h <<_ACEOF
   16345 #define malloc rpl_malloc_unbound
   16346 _ACEOF
   16347 
   16348 else
   16349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16350 $as_echo "yes" >&6; }
   16351 
   16352 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
   16353 
   16354 fi
   16355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16356   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16357 fi
   16358 
   16359 
   16360 	fi
   16361 fi
   16362 
   16363 # check windows threads (we use them, not pthreads, on windows).
   16364 if test "$on_mingw" = "yes"; then
   16365 # check windows threads
   16366 	for ac_header in windows.h
   16367 do :
   16368   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
   16369 "
   16370 if test "x$ac_cv_header_windows_h" = xyes; then :
   16371   cat >>confdefs.h <<_ACEOF
   16372 #define HAVE_WINDOWS_H 1
   16373 _ACEOF
   16374 
   16375 fi
   16376 
   16377 done
   16378 
   16379 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
   16380 $as_echo_n "checking for CreateThread... " >&6; }
   16381 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16382 /* end confdefs.h.  */
   16383 
   16384 #ifdef HAVE_WINDOWS_H
   16385 #include <windows.h>
   16386 #endif
   16387 
   16388 int
   16389 main ()
   16390 {
   16391 
   16392 	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
   16393 
   16394   ;
   16395   return 0;
   16396 }
   16397 _ACEOF
   16398 if ac_fn_c_try_compile "$LINENO"; then :
   16399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16400 $as_echo "yes" >&6; }
   16401 
   16402 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
   16403 
   16404 
   16405 else
   16406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16407 $as_echo "no" >&6; }
   16408 
   16409 fi
   16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16411 
   16412 else
   16413 # not on mingw, check thread libraries.
   16414 
   16415 # check for thread library.
   16416 # check this first, so that the pthread lib does not get linked in via
   16417 # libssl or libpython, and thus distorts the tests, and we end up using
   16418 # the non-threadsafe C libraries.
   16419 
   16420 # Check whether --with-pthreads was given.
   16421 if test "${with_pthreads+set}" = set; then :
   16422   withval=$with_pthreads;
   16423 else
   16424    withval="yes"
   16425 fi
   16426 
   16427 ub_have_pthreads=no
   16428 if test x_$withval != x_no; then
   16429 
   16430 
   16431 ac_ext=c
   16432 ac_cpp='$CPP $CPPFLAGS'
   16433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16436 
   16437 ax_pthread_ok=no
   16438 
   16439 # We used to check for pthread.h first, but this fails if pthread.h
   16440 # requires special compiler flags (e.g. on True64 or Sequent).
   16441 # It gets checked for in the link test anyway.
   16442 
   16443 # First of all, check if the user has set any of the PTHREAD_LIBS,
   16444 # etcetera environment variables, and if threads linking works using
   16445 # them:
   16446 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
   16447         save_CFLAGS="$CFLAGS"
   16448         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   16449         save_LIBS="$LIBS"
   16450         LIBS="$PTHREAD_LIBS $LIBS"
   16451         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
   16452 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
   16453         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16454 /* end confdefs.h.  */
   16455 
   16456 /* Override any GCC internal prototype to avoid an error.
   16457    Use char because int might match the return type of a GCC
   16458    builtin and then its argument prototype would still apply.  */
   16459 #ifdef __cplusplus
   16460 extern "C"
   16461 #endif
   16462 char pthread_join ();
   16463 int
   16464 main ()
   16465 {
   16466 return pthread_join ();
   16467   ;
   16468   return 0;
   16469 }
   16470 _ACEOF
   16471 if ac_fn_c_try_link "$LINENO"; then :
   16472   ax_pthread_ok=yes
   16473 fi
   16474 rm -f core conftest.err conftest.$ac_objext \
   16475     conftest$ac_exeext conftest.$ac_ext
   16476         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   16477 $as_echo "$ax_pthread_ok" >&6; }
   16478         if test x"$ax_pthread_ok" = xno; then
   16479                 PTHREAD_LIBS=""
   16480                 PTHREAD_CFLAGS=""
   16481         fi
   16482         LIBS="$save_LIBS"
   16483         CFLAGS="$save_CFLAGS"
   16484 fi
   16485 
   16486 # We must check for the threads library under a number of different
   16487 # names; the ordering is very important because some systems
   16488 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   16489 # libraries is broken (non-POSIX).
   16490 
   16491 # Create a list of thread flags to try.  Items starting with a "-" are
   16492 # C compiler flags, and other items are library names, except for "none"
   16493 # which indicates that we try without any flags at all, and "pthread-config"
   16494 # which is a program returning the flags for the Pth emulation library.
   16495 
   16496 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   16497 
   16498 # The ordering *is* (sometimes) important.  Some notes on the
   16499 # individual items follow:
   16500 
   16501 # pthreads: AIX (must check this before -lpthread)
   16502 # none: in case threads are in libc; should be tried before -Kthread and
   16503 #       other compiler flags to prevent continual compiler warnings
   16504 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   16505 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   16506 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   16507 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
   16508 # -pthreads: Solaris/gcc
   16509 # -mthreads: Mingw32/gcc, Lynx/gcc
   16510 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   16511 #      doesn't hurt to check since this sometimes defines pthreads too;
   16512 #      also defines -D_REENTRANT)
   16513 #      ... -mt is also the pthreads flag for HP/aCC
   16514 # pthread: Linux, etcetera
   16515 # --thread-safe: KAI C++
   16516 # pthread-config: use pthread-config program (for GNU Pth library)
   16517 
   16518 case ${host_os} in
   16519         solaris*)
   16520 
   16521         # On Solaris (at least, for some versions), libc contains stubbed
   16522         # (non-functional) versions of the pthreads routines, so link-based
   16523         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
   16524         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
   16525         # a function called by this macro, so we could check for that, but
   16526         # who knows whether they'll stub that too in a future libc.)  So,
   16527         # we'll just look for -pthreads and -lpthread first:
   16528 
   16529         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
   16530         ;;
   16531 
   16532         darwin*)
   16533         ax_pthread_flags="-pthread $ax_pthread_flags"
   16534         ;;
   16535 esac
   16536 
   16537 # Clang doesn't consider unrecognized options an error unless we specify
   16538 # -Werror. We throw in some extra Clang-specific options to ensure that
   16539 # this doesn't happen for GCC, which also accepts -Werror.
   16540 
   16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
   16542 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
   16543 save_CFLAGS="$CFLAGS"
   16544 ax_pthread_extra_flags="-Werror"
   16545 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
   16546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16547 /* end confdefs.h.  */
   16548 int foo(void);
   16549 int
   16550 main ()
   16551 {
   16552 foo()
   16553   ;
   16554   return 0;
   16555 }
   16556 _ACEOF
   16557 if ac_fn_c_try_compile "$LINENO"; then :
   16558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16559 $as_echo "yes" >&6; }
   16560 else
   16561   ax_pthread_extra_flags=
   16562                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16563 $as_echo "no" >&6; }
   16564 fi
   16565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16566 CFLAGS="$save_CFLAGS"
   16567 
   16568 if test x"$ax_pthread_ok" = xno; then
   16569 for flag in $ax_pthread_flags; do
   16570 
   16571         case $flag in
   16572                 none)
   16573                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   16574 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
   16575                 ;;
   16576 
   16577                 -*)
   16578                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
   16579 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
   16580                 PTHREAD_CFLAGS="$flag"
   16581                 ;;
   16582 
   16583                 pthread-config)
   16584                 # Extract the first word of "pthread-config", so it can be a program name with args.
   16585 set dummy pthread-config; ac_word=$2
   16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16587 $as_echo_n "checking for $ac_word... " >&6; }
   16588 if ${ac_cv_prog_ax_pthread_config+:} false; then :
   16589   $as_echo_n "(cached) " >&6
   16590 else
   16591   if test -n "$ax_pthread_config"; then
   16592   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   16593 else
   16594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16595 for as_dir in $PATH
   16596 do
   16597   IFS=$as_save_IFS
   16598   test -z "$as_dir" && as_dir=.
   16599     for ac_exec_ext in '' $ac_executable_extensions; do
   16600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16601     ac_cv_prog_ax_pthread_config="yes"
   16602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16603     break 2
   16604   fi
   16605 done
   16606   done
   16607 IFS=$as_save_IFS
   16608 
   16609   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   16610 fi
   16611 fi
   16612 ax_pthread_config=$ac_cv_prog_ax_pthread_config
   16613 if test -n "$ax_pthread_config"; then
   16614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   16615 $as_echo "$ax_pthread_config" >&6; }
   16616 else
   16617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16618 $as_echo "no" >&6; }
   16619 fi
   16620 
   16621 
   16622                 if test x"$ax_pthread_config" = xno; then continue; fi
   16623                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   16624                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   16625                 ;;
   16626 
   16627                 *)
   16628                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
   16629 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
   16630                 PTHREAD_LIBS="-l$flag"
   16631                 ;;
   16632         esac
   16633 
   16634         save_LIBS="$LIBS"
   16635         save_CFLAGS="$CFLAGS"
   16636         LIBS="$PTHREAD_LIBS $LIBS"
   16637         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
   16638 
   16639         # Check for various functions.  We must include pthread.h,
   16640         # since some functions may be macros.  (On the Sequent, we
   16641         # need a special flag -Kthread to make this header compile.)
   16642         # We check for pthread_join because it is in -lpthread on IRIX
   16643         # while pthread_create is in libc.  We check for pthread_attr_init
   16644         # due to DEC craziness with -lpthreads.  We check for
   16645         # pthread_cleanup_push because it is one of the few pthread
   16646         # functions on Solaris that doesn't have a non-functional libc stub.
   16647         # We try pthread_create on general principles.
   16648         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16649 /* end confdefs.h.  */
   16650 #include <pthread.h>
   16651                         static void routine(void *a) { *((int*)a) = 0; }
   16652                         static void *start_routine(void *a) { return a; }
   16653 int
   16654 main ()
   16655 {
   16656 pthread_t th; pthread_attr_t attr;
   16657                         pthread_create(&th, 0, start_routine, 0);
   16658                         pthread_join(th, 0);
   16659                         pthread_attr_init(&attr);
   16660                         pthread_cleanup_push(routine, 0);
   16661                         pthread_cleanup_pop(0) /* ; */
   16662   ;
   16663   return 0;
   16664 }
   16665 _ACEOF
   16666 if ac_fn_c_try_link "$LINENO"; then :
   16667   ax_pthread_ok=yes
   16668 fi
   16669 rm -f core conftest.err conftest.$ac_objext \
   16670     conftest$ac_exeext conftest.$ac_ext
   16671 
   16672         LIBS="$save_LIBS"
   16673         CFLAGS="$save_CFLAGS"
   16674 
   16675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   16676 $as_echo "$ax_pthread_ok" >&6; }
   16677         if test "x$ax_pthread_ok" = xyes; then
   16678                 break;
   16679         fi
   16680 
   16681         PTHREAD_LIBS=""
   16682         PTHREAD_CFLAGS=""
   16683 done
   16684 fi
   16685 
   16686 # Various other checks:
   16687 if test "x$ax_pthread_ok" = xyes; then
   16688         save_LIBS="$LIBS"
   16689         LIBS="$PTHREAD_LIBS $LIBS"
   16690         save_CFLAGS="$CFLAGS"
   16691         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   16692 
   16693         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   16694         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   16695 $as_echo_n "checking for joinable pthread attribute... " >&6; }
   16696         attr_name=unknown
   16697         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   16698             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16699 /* end confdefs.h.  */
   16700 #include <pthread.h>
   16701 int
   16702 main ()
   16703 {
   16704 int attr = $attr; return attr /* ; */
   16705   ;
   16706   return 0;
   16707 }
   16708 _ACEOF
   16709 if ac_fn_c_try_link "$LINENO"; then :
   16710   attr_name=$attr; break
   16711 fi
   16712 rm -f core conftest.err conftest.$ac_objext \
   16713     conftest$ac_exeext conftest.$ac_ext
   16714         done
   16715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
   16716 $as_echo "$attr_name" >&6; }
   16717         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
   16718 
   16719 cat >>confdefs.h <<_ACEOF
   16720 #define PTHREAD_CREATE_JOINABLE $attr_name
   16721 _ACEOF
   16722 
   16723         fi
   16724 
   16725         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
   16726 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
   16727         flag=no
   16728         case ${host_os} in
   16729             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
   16730             osf* | hpux*) flag="-D_REENTRANT";;
   16731             solaris*)
   16732             if test "$GCC" = "yes"; then
   16733                 flag="-D_REENTRANT"
   16734             else
   16735                 # TODO: What about Clang on Solaris?
   16736                 flag="-mt -D_REENTRANT"
   16737             fi
   16738             ;;
   16739         esac
   16740         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
   16741 $as_echo "$flag" >&6; }
   16742         if test "x$flag" != xno; then
   16743             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
   16744         fi
   16745 
   16746         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   16747 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   16748 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
   16749   $as_echo_n "(cached) " >&6
   16750 else
   16751 
   16752                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16753 /* end confdefs.h.  */
   16754 #include <pthread.h>
   16755 int
   16756 main ()
   16757 {
   16758 int i = PTHREAD_PRIO_INHERIT;
   16759   ;
   16760   return 0;
   16761 }
   16762 _ACEOF
   16763 if ac_fn_c_try_link "$LINENO"; then :
   16764   ax_cv_PTHREAD_PRIO_INHERIT=yes
   16765 else
   16766   ax_cv_PTHREAD_PRIO_INHERIT=no
   16767 fi
   16768 rm -f core conftest.err conftest.$ac_objext \
   16769     conftest$ac_exeext conftest.$ac_ext
   16770 
   16771 fi
   16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   16773 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   16774         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
   16775 
   16776 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   16777 
   16778 fi
   16779 
   16780         LIBS="$save_LIBS"
   16781         CFLAGS="$save_CFLAGS"
   16782 
   16783         # More AIX lossage: compile with *_r variant
   16784         if test "x$GCC" != xyes; then
   16785             case $host_os in
   16786                 aix*)
   16787                 case "x/$CC" in #(
   16788   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
   16789     #handle absolute path differently from PATH based program lookup
   16790                    case "x$CC" in #(
   16791   x/*) :
   16792     if as_fn_executable_p ${CC}_r; then :
   16793   PTHREAD_CC="${CC}_r"
   16794 fi ;; #(
   16795   *) :
   16796     for ac_prog in ${CC}_r
   16797 do
   16798   # Extract the first word of "$ac_prog", so it can be a program name with args.
   16799 set dummy $ac_prog; ac_word=$2
   16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16801 $as_echo_n "checking for $ac_word... " >&6; }
   16802 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
   16803   $as_echo_n "(cached) " >&6
   16804 else
   16805   if test -n "$PTHREAD_CC"; then
   16806   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   16807 else
   16808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16809 for as_dir in $PATH
   16810 do
   16811   IFS=$as_save_IFS
   16812   test -z "$as_dir" && as_dir=.
   16813     for ac_exec_ext in '' $ac_executable_extensions; do
   16814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16815     ac_cv_prog_PTHREAD_CC="$ac_prog"
   16816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16817     break 2
   16818   fi
   16819 done
   16820   done
   16821 IFS=$as_save_IFS
   16822 
   16823 fi
   16824 fi
   16825 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   16826 if test -n "$PTHREAD_CC"; then
   16827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   16828 $as_echo "$PTHREAD_CC" >&6; }
   16829 else
   16830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16831 $as_echo "no" >&6; }
   16832 fi
   16833 
   16834 
   16835   test -n "$PTHREAD_CC" && break
   16836 done
   16837 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   16838  ;;
   16839 esac ;; #(
   16840   *) :
   16841      ;;
   16842 esac
   16843                 ;;
   16844             esac
   16845         fi
   16846 fi
   16847 
   16848 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   16849 
   16850 
   16851 
   16852 
   16853 
   16854 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   16855 if test x"$ax_pthread_ok" = xyes; then
   16856 
   16857 
   16858 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
   16859 
   16860 		if test -n "$PTHREAD_LIBS"; then
   16861 		  LIBS="$PTHREAD_LIBS $LIBS"
   16862 		fi
   16863 		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   16864 		CC="$PTHREAD_CC"
   16865 		ub_have_pthreads=yes
   16866 		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
   16867 "
   16868 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
   16869 
   16870 cat >>confdefs.h <<_ACEOF
   16871 #define HAVE_PTHREAD_SPINLOCK_T 1
   16872 _ACEOF
   16873 
   16874 
   16875 fi
   16876 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
   16877 "
   16878 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
   16879 
   16880 cat >>confdefs.h <<_ACEOF
   16881 #define HAVE_PTHREAD_RWLOCK_T 1
   16882 _ACEOF
   16883 
   16884 
   16885 fi
   16886 
   16887 		# The cast to long int works around a bug in the HP C Compiler
   16888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   16889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   16890 # This bug is HP SR number 8606223364.
   16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
   16892 $as_echo_n "checking size of unsigned long... " >&6; }
   16893 if ${ac_cv_sizeof_unsigned_long+:} false; then :
   16894   $as_echo_n "(cached) " >&6
   16895 else
   16896   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
   16897 
   16898 else
   16899   if test "$ac_cv_type_unsigned_long" = yes; then
   16900      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16902 as_fn_error 77 "cannot compute sizeof (unsigned long)
   16903 See \`config.log' for more details" "$LINENO" 5; }
   16904    else
   16905      ac_cv_sizeof_unsigned_long=0
   16906    fi
   16907 fi
   16908 
   16909 fi
   16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
   16911 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
   16912 
   16913 
   16914 
   16915 cat >>confdefs.h <<_ACEOF
   16916 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
   16917 _ACEOF
   16918 
   16919 
   16920 		# The cast to long int works around a bug in the HP C Compiler
   16921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   16922 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   16923 # This bug is HP SR number 8606223364.
   16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
   16925 $as_echo_n "checking size of pthread_t... " >&6; }
   16926 if ${ac_cv_sizeof_pthread_t+:} false; then :
   16927   $as_echo_n "(cached) " >&6
   16928 else
   16929   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default"; then :
   16930 
   16931 else
   16932   if test "$ac_cv_type_pthread_t" = yes; then
   16933      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16935 as_fn_error 77 "cannot compute sizeof (pthread_t)
   16936 See \`config.log' for more details" "$LINENO" 5; }
   16937    else
   16938      ac_cv_sizeof_pthread_t=0
   16939    fi
   16940 fi
   16941 
   16942 fi
   16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
   16944 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
   16945 
   16946 
   16947 
   16948 cat >>confdefs.h <<_ACEOF
   16949 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
   16950 _ACEOF
   16951 
   16952 
   16953 
   16954 		if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
   16955 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
   16956 $as_echo_n "checking if -pthread unused during linking... " >&6; }
   16957 		# catch clang warning 'argument unused during compilation'
   16958 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16959 /* end confdefs.h.  */
   16960 $ac_includes_default
   16961 
   16962 int main(void) {return 0;}
   16963 
   16964 _ACEOF
   16965 		pthread_unused="yes"
   16966 		# first compile
   16967 		echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
   16968 		$CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
   16969 		if test $? = 0; then
   16970 			# then link
   16971 			echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
   16972 			$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
   16973 			if test $? -ne 0; then
   16974 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16975 $as_echo "yes" >&6; }
   16976 				CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
   16977 				PTHREAD_CFLAGS_ONLY="-pthread"
   16978 
   16979 			else
   16980 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16981 $as_echo "no" >&6; }
   16982 			fi
   16983 		else
   16984 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16985 $as_echo "no" >&6; }
   16986 		fi # endif cc successful
   16987 		rm -f conftest conftest.c conftest.o
   16988 		fi # endif -pthread in CFLAGS
   16989 
   16990 
   16991         :
   16992 else
   16993         ax_pthread_ok=no
   16994 
   16995 fi
   16996 ac_ext=c
   16997 ac_cpp='$CPP $CPPFLAGS'
   16998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17001 
   17002 
   17003 fi
   17004 
   17005 # check solaris thread library
   17006 
   17007 # Check whether --with-solaris-threads was given.
   17008 if test "${with_solaris_threads+set}" = set; then :
   17009   withval=$with_solaris_threads;
   17010 else
   17011    withval="no"
   17012 fi
   17013 
   17014 ub_have_sol_threads=no
   17015 if test x_$withval != x_no; then
   17016 	if test x_$ub_have_pthreads != x_no; then
   17017 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
   17018 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
   17019 	else
   17020 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
   17021 $as_echo_n "checking for library containing thr_create... " >&6; }
   17022 if ${ac_cv_search_thr_create+:} false; then :
   17023   $as_echo_n "(cached) " >&6
   17024 else
   17025   ac_func_search_save_LIBS=$LIBS
   17026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17027 /* end confdefs.h.  */
   17028 
   17029 /* Override any GCC internal prototype to avoid an error.
   17030    Use char because int might match the return type of a GCC
   17031    builtin and then its argument prototype would still apply.  */
   17032 #ifdef __cplusplus
   17033 extern "C"
   17034 #endif
   17035 char thr_create ();
   17036 int
   17037 main ()
   17038 {
   17039 return thr_create ();
   17040   ;
   17041   return 0;
   17042 }
   17043 _ACEOF
   17044 for ac_lib in '' thread; do
   17045   if test -z "$ac_lib"; then
   17046     ac_res="none required"
   17047   else
   17048     ac_res=-l$ac_lib
   17049     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17050   fi
   17051   if ac_fn_c_try_link "$LINENO"; then :
   17052   ac_cv_search_thr_create=$ac_res
   17053 fi
   17054 rm -f core conftest.err conftest.$ac_objext \
   17055     conftest$ac_exeext
   17056   if ${ac_cv_search_thr_create+:} false; then :
   17057   break
   17058 fi
   17059 done
   17060 if ${ac_cv_search_thr_create+:} false; then :
   17061 
   17062 else
   17063   ac_cv_search_thr_create=no
   17064 fi
   17065 rm conftest.$ac_ext
   17066 LIBS=$ac_func_search_save_LIBS
   17067 fi
   17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
   17069 $as_echo "$ac_cv_search_thr_create" >&6; }
   17070 ac_res=$ac_cv_search_thr_create
   17071 if test "$ac_res" != no; then :
   17072   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17073 
   17074 
   17075 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
   17076 
   17077 
   17078 
   17079 
   17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
   17081 $as_echo_n "checking whether $CC supports -mt... " >&6; }
   17082 cache=`echo mt | sed 'y%.=/+-%___p_%'`
   17083 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   17084   $as_echo_n "(cached) " >&6
   17085 else
   17086 
   17087 echo 'void f(void){}' >conftest.c
   17088 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
   17089 eval "cv_prog_cc_flag_$cache=yes"
   17090 else
   17091 eval "cv_prog_cc_flag_$cache=no"
   17092 fi
   17093 rm -f conftest conftest.o conftest.c
   17094 
   17095 fi
   17096 
   17097 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17099 $as_echo "yes" >&6; }
   17100 :
   17101 CFLAGS="$CFLAGS -mt"
   17102 else
   17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17104 $as_echo "no" >&6; }
   17105 :
   17106 CFLAGS="$CFLAGS -D_REENTRANT"
   17107 fi
   17108 
   17109 		ub_have_sol_threads=yes
   17110 
   17111 else
   17112 
   17113 		as_fn_error $? "no solaris threads found." "$LINENO" 5
   17114 
   17115 fi
   17116 
   17117 	fi
   17118 fi
   17119 
   17120 fi # end of non-mingw check of thread libraries
   17121 
   17122 # Check for SYSLOG_FACILITY
   17123 
   17124 # Check whether --with-syslog-facility was given.
   17125 if test "${with_syslog_facility+set}" = set; then :
   17126   withval=$with_syslog_facility;  UNBOUND_SYSLOG_FACILITY="$withval"
   17127 fi
   17128 
   17129 case "${UNBOUND_SYSLOG_FACILITY}" in
   17130 
   17131   LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
   17132 
   17133            *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
   17134 
   17135 esac
   17136 
   17137 cat >>confdefs.h <<_ACEOF
   17138 #define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}
   17139 _ACEOF
   17140 
   17141 
   17142 # Check for dynamic library module
   17143 
   17144 # Check whether --with-dynlibmodule was given.
   17145 if test "${with_dynlibmodule+set}" = set; then :
   17146   withval=$with_dynlibmodule;
   17147 else
   17148    withval="no"
   17149 fi
   17150 
   17151 
   17152 if test x_$withval != x_no; then
   17153 
   17154 $as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h
   17155 
   17156   WITH_DYNLIBMODULE=yes
   17157 
   17158   DYNLIBMOD_OBJ="dynlibmod.lo"
   17159 
   17160   DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h'
   17161 
   17162   if test $on_mingw = "no"; then
   17163     # link with -ldl if not already there, for all executables because
   17164     # dlopen call is in the dynlib module.  For unbound executable, also
   17165     # export symbols.
   17166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   17167 $as_echo_n "checking for library containing dlopen... " >&6; }
   17168 if ${ac_cv_search_dlopen+:} false; then :
   17169   $as_echo_n "(cached) " >&6
   17170 else
   17171   ac_func_search_save_LIBS=$LIBS
   17172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17173 /* end confdefs.h.  */
   17174 
   17175 /* Override any GCC internal prototype to avoid an error.
   17176    Use char because int might match the return type of a GCC
   17177    builtin and then its argument prototype would still apply.  */
   17178 #ifdef __cplusplus
   17179 extern "C"
   17180 #endif
   17181 char dlopen ();
   17182 int
   17183 main ()
   17184 {
   17185 return dlopen ();
   17186   ;
   17187   return 0;
   17188 }
   17189 _ACEOF
   17190 for ac_lib in '' dl; do
   17191   if test -z "$ac_lib"; then
   17192     ac_res="none required"
   17193   else
   17194     ac_res=-l$ac_lib
   17195     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17196   fi
   17197   if ac_fn_c_try_link "$LINENO"; then :
   17198   ac_cv_search_dlopen=$ac_res
   17199 fi
   17200 rm -f core conftest.err conftest.$ac_objext \
   17201     conftest$ac_exeext
   17202   if ${ac_cv_search_dlopen+:} false; then :
   17203   break
   17204 fi
   17205 done
   17206 if ${ac_cv_search_dlopen+:} false; then :
   17207 
   17208 else
   17209   ac_cv_search_dlopen=no
   17210 fi
   17211 rm conftest.$ac_ext
   17212 LIBS=$ac_func_search_save_LIBS
   17213 fi
   17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   17215 $as_echo "$ac_cv_search_dlopen" >&6; }
   17216 ac_res=$ac_cv_search_dlopen
   17217 if test "$ac_res" != no; then :
   17218   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17219 
   17220 fi
   17221 
   17222     DYNLIBMOD_EXTRALIBS="-export-dynamic"
   17223   else
   17224     DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a"
   17225   fi
   17226 
   17227 fi
   17228 
   17229 # Check for PyUnbound
   17230 
   17231 # Check whether --with-pyunbound was given.
   17232 if test "${with_pyunbound+set}" = set; then :
   17233   withval=$with_pyunbound;
   17234 else
   17235    withval="no"
   17236 fi
   17237 
   17238 
   17239 ub_test_python=no
   17240 ub_with_pyunbound=no
   17241 if test x_$withval != x_no; then
   17242    ub_with_pyunbound=yes
   17243    ub_test_python=yes
   17244 fi
   17245 
   17246 # Check for Python module
   17247 
   17248 # Check whether --with-pythonmodule was given.
   17249 if test "${with_pythonmodule+set}" = set; then :
   17250   withval=$with_pythonmodule;
   17251 else
   17252    withval="no"
   17253 fi
   17254 
   17255 
   17256 ub_with_pythonmod=no
   17257 if test x_$withval != x_no; then
   17258    ub_with_pythonmod=yes
   17259    ub_test_python=yes
   17260 fi
   17261 
   17262 # Check for Python & SWIG only on PyUnbound or PyModule
   17263 if test x_$ub_test_python != x_no; then
   17264 
   17265    # Check for Python
   17266    ub_have_python=no
   17267    ac_save_LIBS="$LIBS"
   17268         #
   17269         # Allow the use of a (user set) custom python version
   17270         #
   17271 
   17272 
   17273         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
   17274 set dummy python$PYTHON_VERSION; ac_word=$2
   17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17276 $as_echo_n "checking for $ac_word... " >&6; }
   17277 if ${ac_cv_path_PYTHON+:} false; then :
   17278   $as_echo_n "(cached) " >&6
   17279 else
   17280   case $PYTHON in
   17281   [\\/]* | ?:[\\/]*)
   17282   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
   17283   ;;
   17284   *)
   17285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17286 for as_dir in $PATH
   17287 do
   17288   IFS=$as_save_IFS
   17289   test -z "$as_dir" && as_dir=.
   17290     for ac_exec_ext in '' $ac_executable_extensions; do
   17291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17292     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
   17293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17294     break 2
   17295   fi
   17296 done
   17297   done
   17298 IFS=$as_save_IFS
   17299 
   17300   ;;
   17301 esac
   17302 fi
   17303 PYTHON=$ac_cv_path_PYTHON
   17304 if test -n "$PYTHON"; then
   17305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
   17306 $as_echo "$PYTHON" >&6; }
   17307 else
   17308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17309 $as_echo "no" >&6; }
   17310 fi
   17311 
   17312 
   17313         if test -z "$PYTHON"; then
   17314            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
   17315            PYTHON_VERSION=""
   17316         fi
   17317 
   17318         if test -z "$PYTHON_VERSION"; then
   17319 		PYTHON_VERSION=`$PYTHON -c "import sys; \
   17320 			print(sys.version.split()[0])"`
   17321 	fi
   17322 	# calculate the version number components.
   17323 
   17324 	v="$PYTHON_VERSION"
   17325 	PYTHON_VERSION_MAJOR=`echo $v | sed 's/[^0-9].*//'`
   17326 	if test -z "$PYTHON_VERSION_MAJOR"; then PYTHON_VERSION_MAJOR="0"; fi
   17327 	v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'`
   17328 	PYTHON_VERSION_MINOR=`echo $v | sed 's/[^0-9].*//'`
   17329 	if test -z "$PYTHON_VERSION_MINOR"; then PYTHON_VERSION_MINOR="0"; fi
   17330 	v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'`
   17331 	PYTHON_VERSION_PATCH=`echo $v | sed 's/[^0-9].*//'`
   17332 	if test -z "$PYTHON_VERSION_PATCH"; then PYTHON_VERSION_PATCH="0"; fi
   17333 
   17334 
   17335 	# For some systems, sysconfig exists, but has the wrong paths,
   17336 	# on Debian 10, for python 2.7 and 3.7. So, we check the version,
   17337 	# and for older versions try distutils.sysconfig first. For newer
   17338 	# versions>=3.10, where distutils.sysconfig is deprecated, use
   17339 	# sysconfig first and then attempt the other one.
   17340 	py_distutils_first="no"
   17341 	if test $PYTHON_VERSION_MAJOR -lt 3; then
   17342 		py_distutils_first="yes"
   17343 	fi
   17344 	if test $PYTHON_VERSION_MAJOR -eq 3 -a $PYTHON_VERSION_MINOR -lt 10; then
   17345 		py_distutils_first="yes"
   17346 	fi
   17347 
   17348 	# Check if you have the first module
   17349 	if test "$py_distutils_first" = "yes"; then m="distutils"; else m="sysconfig"; fi
   17350 	sysconfig_module=""
   17351 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the $m Python module" >&5
   17352 $as_echo_n "checking for the $m Python module... " >&6; }
   17353         if ac_modulecheck_result1=`$PYTHON -c "import $m" 2>&1`; then
   17354                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17355 $as_echo "yes" >&6; }
   17356 		sysconfig_module="$m"
   17357 	else
   17358                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17359 $as_echo "no" >&6; }
   17360 	fi
   17361 
   17362 	# if not found, try the other one.
   17363 	if test -z "$sysconfig_module"; then
   17364 		if test "$py_distutils_first" = "yes"; then m2="sysconfig"; else m2="distutils"; fi
   17365 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the $m2 Python module" >&5
   17366 $as_echo_n "checking for the $m2 Python module... " >&6; }
   17367 		if ac_modulecheck_result2=`$PYTHON -c "import $m2" 2>&1`; then
   17368 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17369 $as_echo "yes" >&6; }
   17370 			sysconfig_module="$m2"
   17371 		else
   17372 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17373 $as_echo "no" >&6; }
   17374 			as_fn_error $? "cannot import Python module \"$m\", or \"$m2\".
   17375 	Please check your Python installation. The errors are:
   17376 	$m
   17377 	$ac_modulecheck_result1
   17378 	$m2
   17379 	$ac_modulecheck_result2" "$LINENO" 5
   17380 			PYTHON_VERSION=""
   17381 		fi
   17382 	fi
   17383 	if test "$sysconfig_module" = "distutils"; then sysconfig_module="distutils.sysconfig"; fi
   17384 
   17385         #
   17386         # Check for Python include path
   17387         #
   17388         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
   17389 $as_echo_n "checking for Python include path... " >&6; }
   17390         if test -z "$PYTHON_CPPFLAGS"; then
   17391 		if test "$sysconfig_module" = "sysconfig"; then
   17392 			python_path=`$PYTHON -c 'import sysconfig; \
   17393 				print(sysconfig.get_path("include"));'`
   17394 		else
   17395 			python_path=`$PYTHON -c "import distutils.sysconfig; \
   17396 				print(distutils.sysconfig.get_python_inc());"`
   17397 		fi
   17398                 if test -n "${python_path}"; then
   17399                         python_path="-I$python_path"
   17400                 fi
   17401                 PYTHON_CPPFLAGS=$python_path
   17402         fi
   17403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
   17404 $as_echo "$PYTHON_CPPFLAGS" >&6; }
   17405 
   17406 
   17407         #
   17408         # Check for Python library path
   17409         #
   17410         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
   17411 $as_echo_n "checking for Python library path... " >&6; }
   17412         if test -z "$PYTHON_LDFLAGS"; then
   17413                 PYTHON_LDFLAGS=`$PYTHON -c "from $sysconfig_module import *; \
   17414                         print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
   17415         fi
   17416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
   17417 $as_echo "$PYTHON_LDFLAGS" >&6; }
   17418 
   17419 
   17420         if test -z "$PYTHON_LIBDIR"; then
   17421                 PYTHON_LIBDIR=`$PYTHON -c "from $sysconfig_module import *; \
   17422                         print(get_config_var('LIBDIR'));"`
   17423         fi
   17424 
   17425         #
   17426         # Check for site packages
   17427         #
   17428         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
   17429 $as_echo_n "checking for Python site-packages path... " >&6; }
   17430         if test -z "$PYTHON_SITE_PKG"; then
   17431 		if test "$sysconfig_module" = "sysconfig"; then
   17432 			PYTHON_SITE_PKG=`$PYTHON -c 'import sysconfig; \
   17433 				print(sysconfig.get_path("platlib"));'`
   17434 		else
   17435 			PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
   17436 				print(distutils.sysconfig.get_python_lib(1,0));"`
   17437 		fi
   17438         fi
   17439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
   17440 $as_echo "$PYTHON_SITE_PKG" >&6; }
   17441 
   17442 
   17443         #
   17444         # final check to see if everything compiles alright
   17445         #
   17446         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
   17447 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
   17448         ac_ext=c
   17449 ac_cpp='$CPP $CPPFLAGS'
   17450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17453 
   17454         # save current global flags
   17455         ac_save_LIBS="$LIBS"
   17456         ac_save_CPPFLAGS="$CPPFLAGS"
   17457 
   17458         LIBS="$LIBS $PYTHON_LDFLAGS"
   17459         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
   17460         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17461 /* end confdefs.h.  */
   17462 
   17463                 #include <Python.h>
   17464 
   17465 int
   17466 main ()
   17467 {
   17468 
   17469                 Py_Initialize();
   17470 
   17471   ;
   17472   return 0;
   17473 }
   17474 _ACEOF
   17475 if ac_fn_c_try_link "$LINENO"; then :
   17476   pythonexists=yes
   17477 else
   17478   pythonexists=no
   17479 fi
   17480 rm -f core conftest.err conftest.$ac_objext \
   17481     conftest$ac_exeext conftest.$ac_ext
   17482 
   17483         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
   17484 $as_echo "$pythonexists" >&6; }
   17485 
   17486         if test ! "$pythonexists" = "yes"; then
   17487            as_fn_error $? "
   17488   Could not link test program to Python. Maybe the main Python library has been
   17489   installed in some non-standard library path. If so, pass it to configure,
   17490   via the LDFLAGS environment variable.
   17491   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
   17492   ============================================================================
   17493    ERROR!
   17494    You probably have to install the development version of the Python package
   17495    for your distribution.  The exact name of this package varies among them.
   17496   ============================================================================
   17497            " "$LINENO" 5
   17498           PYTHON_VERSION=""
   17499         fi
   17500         ac_ext=c
   17501 ac_cpp='$CPP $CPPFLAGS'
   17502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17505 
   17506         # turn back to default flags
   17507         CPPFLAGS="$ac_save_CPPFLAGS"
   17508         LIBS="$ac_save_LIBS"
   17509 
   17510         #
   17511         # all done!
   17512         #
   17513 
   17514    if test ! -z "$PYTHON_VERSION"; then
   17515 	badversion="no"
   17516 	if test "$PYTHON_VERSION_MAJOR" -lt 2; then
   17517 		badversion="yes"
   17518 	fi
   17519 	if test "$PYTHON_VERSION_MAJOR" -eq 2 -a "$PYTHON_VERSION_MINOR" -lt 4; then
   17520 		badversion="yes"
   17521 	fi
   17522 	if test "$badversion" = "yes"; then
   17523 		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
   17524 	fi
   17525 
   17526       PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
   17527 
   17528       # Have Python
   17529 
   17530 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
   17531 
   17532       if test x_$ub_with_pythonmod != x_no; then
   17533         if test -n "$LIBS"; then
   17534           LIBS="$PYTHON_LDFLAGS $LIBS"
   17535         else
   17536           LIBS="$PYTHON_LDFLAGS"
   17537         fi
   17538       fi
   17539       PYTHON_LIBS="$PYTHON_LDFLAGS"
   17540 
   17541       if test -n "$CPPFLAGS"; then
   17542         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
   17543       else
   17544         CPPFLAGS="$PYTHON_CPPFLAGS"
   17545       fi
   17546       if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then
   17547 
   17548 	if test "x$enable_rpath" = xyes; then
   17549 		if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then
   17550 			RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR"
   17551 		fi
   17552 	fi
   17553 
   17554       fi
   17555       ub_have_python=yes
   17556       if test -n "$PKG_CONFIG" && \
   17557     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
   17558   ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
   17559   ac_status=$?
   17560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   17561   test $ac_status = 0; }; then
   17562   PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
   17563 else
   17564   PC_PY_DEPENDENCY="python"
   17565 fi
   17566 
   17567 
   17568       # Check for SWIG
   17569       ub_have_swig=no
   17570       # Check whether --enable-swig-version-check was given.
   17571 if test "${enable_swig_version_check+set}" = set; then :
   17572   enableval=$enable_swig_version_check;
   17573 fi
   17574 
   17575       if test "$enable_swig_version_check" = "yes"; then
   17576 
   17577         # Extract the first word of "swig", so it can be a program name with args.
   17578 set dummy swig; ac_word=$2
   17579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17580 $as_echo_n "checking for $ac_word... " >&6; }
   17581 if ${ac_cv_path_SWIG+:} false; then :
   17582   $as_echo_n "(cached) " >&6
   17583 else
   17584   case $SWIG in
   17585   [\\/]* | ?:[\\/]*)
   17586   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
   17587   ;;
   17588   *)
   17589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17590 for as_dir in $PATH
   17591 do
   17592   IFS=$as_save_IFS
   17593   test -z "$as_dir" && as_dir=.
   17594     for ac_exec_ext in '' $ac_executable_extensions; do
   17595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17596     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
   17597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17598     break 2
   17599   fi
   17600 done
   17601   done
   17602 IFS=$as_save_IFS
   17603 
   17604   ;;
   17605 esac
   17606 fi
   17607 SWIG=$ac_cv_path_SWIG
   17608 if test -n "$SWIG"; then
   17609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
   17610 $as_echo "$SWIG" >&6; }
   17611 else
   17612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17613 $as_echo "no" >&6; }
   17614 fi
   17615 
   17616 
   17617         if test -z "$SWIG" ; then
   17618                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
   17619 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
   17620                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
   17621         elif test -n "2.0.1" ; then
   17622                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
   17623 $as_echo_n "checking for SWIG version... " >&6; }
   17624                 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'`
   17625                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
   17626 $as_echo "$swig_version" >&6; }
   17627                 if test -n "$swig_version" ; then
   17628                         # Calculate the required version number components
   17629                         required=2.0.1
   17630                         required_major=`echo $required | sed 's/[^0-9].*//'`
   17631                         if test -z "$required_major" ; then
   17632                                 required_major=0
   17633                         fi
   17634                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
   17635                         required_minor=`echo $required | sed 's/[^0-9].*//'`
   17636                         if test -z "$required_minor" ; then
   17637                                 required_minor=0
   17638                         fi
   17639                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
   17640                         required_patch=`echo $required | sed 's/[^0-9].*//'`
   17641                         if test -z "$required_patch" ; then
   17642                                 required_patch=0
   17643                         fi
   17644                         # Calculate the available version number components
   17645                         available=$swig_version
   17646                         available_major=`echo $available | sed 's/[^0-9].*//'`
   17647                         if test -z "$available_major" ; then
   17648                                 available_major=0
   17649                         fi
   17650                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
   17651                         available_minor=`echo $available | sed 's/[^0-9].*//'`
   17652                         if test -z "$available_minor" ; then
   17653                                 available_minor=0
   17654                         fi
   17655                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
   17656                         available_patch=`echo $available | sed 's/[^0-9].*//'`
   17657                         if test -z "$available_patch" ; then
   17658                                 available_patch=0
   17659                         fi
   17660 			badversion=0
   17661 			if test $available_major -lt $required_major ; then
   17662 				badversion=1
   17663 			fi
   17664                         if test $available_major -eq $required_major \
   17665                                 -a $available_minor -lt $required_minor ; then
   17666 				badversion=1
   17667 			fi
   17668                         if test $available_major -eq $required_major \
   17669                                 -a $available_minor -eq $required_minor \
   17670                                 -a $available_patch -lt $required_patch ; then
   17671 				badversion=1
   17672 			fi
   17673 			if test $badversion -eq 1 ; then
   17674                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required.  You have $swig_version.  You should look at http://www.swig.org" >&5
   17675 $as_echo "$as_me: WARNING: SWIG version >= 2.0.1 is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
   17676                                 SWIG='echo "Error: SWIG version >= 2.0.1 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
   17677                         else
   17678                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
   17679 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
   17680                                 SWIG_LIB=`$SWIG -swiglib`
   17681                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
   17682 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
   17683                         fi
   17684                 else
   17685                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
   17686 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
   17687                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
   17688                 fi
   17689         fi
   17690 
   17691 
   17692       else
   17693 
   17694         # Extract the first word of "swig", so it can be a program name with args.
   17695 set dummy swig; ac_word=$2
   17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17697 $as_echo_n "checking for $ac_word... " >&6; }
   17698 if ${ac_cv_path_SWIG+:} false; then :
   17699   $as_echo_n "(cached) " >&6
   17700 else
   17701   case $SWIG in
   17702   [\\/]* | ?:[\\/]*)
   17703   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
   17704   ;;
   17705   *)
   17706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17707 for as_dir in $PATH
   17708 do
   17709   IFS=$as_save_IFS
   17710   test -z "$as_dir" && as_dir=.
   17711     for ac_exec_ext in '' $ac_executable_extensions; do
   17712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17713     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
   17714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17715     break 2
   17716   fi
   17717 done
   17718   done
   17719 IFS=$as_save_IFS
   17720 
   17721   ;;
   17722 esac
   17723 fi
   17724 SWIG=$ac_cv_path_SWIG
   17725 if test -n "$SWIG"; then
   17726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
   17727 $as_echo "$SWIG" >&6; }
   17728 else
   17729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17730 $as_echo "no" >&6; }
   17731 fi
   17732 
   17733 
   17734         if test -z "$SWIG" ; then
   17735                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
   17736 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
   17737                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
   17738         elif test -n "" ; then
   17739                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
   17740 $as_echo_n "checking for SWIG version... " >&6; }
   17741                 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'`
   17742                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
   17743 $as_echo "$swig_version" >&6; }
   17744                 if test -n "$swig_version" ; then
   17745                         # Calculate the required version number components
   17746                         required=
   17747                         required_major=`echo $required | sed 's/[^0-9].*//'`
   17748                         if test -z "$required_major" ; then
   17749                                 required_major=0
   17750                         fi
   17751                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
   17752                         required_minor=`echo $required | sed 's/[^0-9].*//'`
   17753                         if test -z "$required_minor" ; then
   17754                                 required_minor=0
   17755                         fi
   17756                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
   17757                         required_patch=`echo $required | sed 's/[^0-9].*//'`
   17758                         if test -z "$required_patch" ; then
   17759                                 required_patch=0
   17760                         fi
   17761                         # Calculate the available version number components
   17762                         available=$swig_version
   17763                         available_major=`echo $available | sed 's/[^0-9].*//'`
   17764                         if test -z "$available_major" ; then
   17765                                 available_major=0
   17766                         fi
   17767                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
   17768                         available_minor=`echo $available | sed 's/[^0-9].*//'`
   17769                         if test -z "$available_minor" ; then
   17770                                 available_minor=0
   17771                         fi
   17772                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
   17773                         available_patch=`echo $available | sed 's/[^0-9].*//'`
   17774                         if test -z "$available_patch" ; then
   17775                                 available_patch=0
   17776                         fi
   17777 			badversion=0
   17778 			if test $available_major -lt $required_major ; then
   17779 				badversion=1
   17780 			fi
   17781                         if test $available_major -eq $required_major \
   17782                                 -a $available_minor -lt $required_minor ; then
   17783 				badversion=1
   17784 			fi
   17785                         if test $available_major -eq $required_major \
   17786                                 -a $available_minor -eq $required_minor \
   17787                                 -a $available_patch -lt $required_patch ; then
   17788 				badversion=1
   17789 			fi
   17790 			if test $badversion -eq 1 ; then
   17791                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&5
   17792 $as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
   17793                                 SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
   17794                         else
   17795                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
   17796 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
   17797                                 SWIG_LIB=`$SWIG -swiglib`
   17798                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
   17799 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
   17800                         fi
   17801                 else
   17802                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
   17803 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
   17804                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
   17805                 fi
   17806         fi
   17807 
   17808 
   17809       fi
   17810       { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
   17811 $as_echo_n "checking SWIG... " >&6; }
   17812       if test ! -x "$SWIG"; then
   17813          as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
   17814       else
   17815 
   17816 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
   17817 
   17818          swig="$SWIG"
   17819 
   17820          { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
   17821 $as_echo "present" >&6; }
   17822 
   17823          # If have Python & SWIG
   17824          # Declare PythonMod
   17825          if test x_$ub_with_pythonmod != x_no; then
   17826 
   17827 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
   17828 
   17829             WITH_PYTHONMODULE=yes
   17830 
   17831 	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
   17832 
   17833 	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
   17834 
   17835 	    PYTHONMOD_INSTALL=pythonmod-install
   17836 
   17837 	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
   17838 
   17839          fi
   17840 
   17841          # Declare PyUnbound
   17842          if test x_$ub_with_pyunbound != x_no; then
   17843 
   17844 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
   17845 
   17846             WITH_PYUNBOUND=yes
   17847 
   17848 	    PYUNBOUND_OBJ="libunbound_wrap.lo"
   17849 
   17850 	    PYUNBOUND_TARGET="_unbound.la"
   17851 
   17852 	    PYUNBOUND_INSTALL=pyunbound-install
   17853 
   17854 	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
   17855 
   17856          fi
   17857       fi
   17858    else
   17859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
   17860 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
   17861       ub_with_pyunbound=no
   17862       ub_with_pythonmod=no
   17863    fi
   17864 fi
   17865 
   17866 if test "`uname`" = "NetBSD"; then
   17867 	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
   17868 
   17869 fi
   17870 
   17871 if test "`uname`" = "Linux"; then
   17872 	# splint cannot parse modern c99 header files
   17873 	GCC_DOCKER_LINTFLAGS='-syntax'
   17874 
   17875 fi
   17876 CONFIG_DATE=`date +%Y%m%d`
   17877 
   17878 
   17879 # Checks for libraries.
   17880 
   17881 # libnss
   17882 USE_NSS="no"
   17883 
   17884 # Check whether --with-nss was given.
   17885 if test "${with_nss+set}" = set; then :
   17886   withval=$with_nss;
   17887 	USE_NSS="yes"
   17888 
   17889 $as_echo "#define HAVE_NSS 1" >>confdefs.h
   17890 
   17891 	if test "$withval" != "" -a "$withval" != "yes"; then
   17892 		CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
   17893 		LDFLAGS="$LDFLAGS -L$withval/lib"
   17894 
   17895 	if test "x$enable_rpath" = xyes; then
   17896 		if echo "$withval/lib" | grep "^/" >/dev/null; then
   17897 			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
   17898 		fi
   17899 	fi
   17900 
   17901 		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
   17902 	else
   17903 		CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
   17904 		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
   17905 	fi
   17906         LIBS="$LIBS -lnss3 -lnspr4"
   17907 	SSLLIB=""
   17908 	PC_CRYPTO_DEPENDENCY="nss nspr"
   17909 
   17910 
   17911 
   17912 fi
   17913 
   17914 
   17915 # libnettle
   17916 USE_NETTLE="no"
   17917 
   17918 # Check whether --with-nettle was given.
   17919 if test "${with_nettle+set}" = set; then :
   17920   withval=$with_nettle;
   17921 	USE_NETTLE="yes"
   17922 
   17923 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
   17924 
   17925 	for ac_header in nettle/dsa-compat.h
   17926 do :
   17927   ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
   17928 "
   17929 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
   17930   cat >>confdefs.h <<_ACEOF
   17931 #define HAVE_NETTLE_DSA_COMPAT_H 1
   17932 _ACEOF
   17933 
   17934 fi
   17935 
   17936 done
   17937 
   17938 	if test "$withval" != "" -a "$withval" != "yes"; then
   17939 		CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
   17940 		LDFLAGS="$LDFLAGS -L$withval/lib"
   17941 
   17942 	if test "x$enable_rpath" = xyes; then
   17943 		if echo "$withval/lib" | grep "^/" >/dev/null; then
   17944 			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
   17945 		fi
   17946 	fi
   17947 
   17948 	else
   17949 		CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
   17950 	fi
   17951         LIBS="$LIBS -lhogweed -lnettle -lgmp"
   17952 	SSLLIB=""
   17953 	PC_CRYPTO_DEPENDENCY="hogweed nettle"
   17954 
   17955 
   17956 
   17957 fi
   17958 
   17959 
   17960 # openssl
   17961 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   17962 
   17963 
   17964 # Check whether --with-ssl was given.
   17965 if test "${with_ssl+set}" = set; then :
   17966   withval=$with_ssl;
   17967 
   17968 else
   17969 
   17970             withval="yes"
   17971 
   17972 fi
   17973 
   17974     if test x_$withval = x_no; then
   17975 	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
   17976     fi
   17977 
   17978     withval=$withval
   17979     if test x_$withval != x_no; then
   17980         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
   17981 $as_echo_n "checking for SSL... " >&6; }
   17982 	if test -n "$withval"; then
   17983 										if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then
   17984 			ssldir="$withval"
   17985 			found_ssl="yes"
   17986 			withval=""
   17987 			ssldir_include="$ssldir"
   17988 						ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'`
   17989 			if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
   17990 				: # found here
   17991 			else
   17992 				ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'`
   17993 				if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
   17994 					: # found here
   17995 				else
   17996 					as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5
   17997 				fi
   17998 			fi
   17999 		fi
   18000 	fi
   18001         if test x_$withval = x_ -o x_$withval = x_yes; then
   18002             withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
   18003         fi
   18004         for dir in $withval; do
   18005             ssldir="$dir"
   18006             if test -f "$dir/include/openssl/ssl.h"; then
   18007                 found_ssl="yes"
   18008 		ssldir_include="$ssldir/include"
   18009 		if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
   18010 			ssldir_lib="$ssldir/lib64"
   18011 		else
   18012 			ssldir_lib="$ssldir/lib"
   18013 		fi
   18014                 break;
   18015             fi
   18016         done
   18017         if test x_$found_ssl != x_yes; then
   18018             as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
   18019         else
   18020             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
   18021 $as_echo "found in $ssldir" >&6; }
   18022 
   18023 cat >>confdefs.h <<_ACEOF
   18024 #define HAVE_SSL /**/
   18025 _ACEOF
   18026 
   18027             HAVE_SSL=yes
   18028 	                if test "$ssldir" != "/usr"; then
   18029 		    CPPFLAGS="$CPPFLAGS -I$ssldir_include"
   18030 		    LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include"
   18031 		    LDFLAGS="$LDFLAGS -L$ssldir_lib"
   18032 		    LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib"
   18033 
   18034 	if test "x$enable_rpath" = xyes; then
   18035 		if echo "$ssldir_lib" | grep "^/" >/dev/null; then
   18036 			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib"
   18037 		fi
   18038 	fi
   18039 
   18040 	    fi
   18041 
   18042             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
   18043 $as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; }
   18044             LIBS="$LIBS -lcrypto"
   18045             LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
   18046             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18047 /* end confdefs.h.  */
   18048 
   18049 int
   18050 main ()
   18051 {
   18052 
   18053                 int EVP_sha256(void);
   18054                 (void)EVP_sha256();
   18055 
   18056   ;
   18057   return 0;
   18058 }
   18059 _ACEOF
   18060 if ac_fn_c_try_link "$LINENO"; then :
   18061 
   18062                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18063 $as_echo "yes" >&6; }
   18064 
   18065 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
   18066 
   18067 
   18068 else
   18069 
   18070                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18071 $as_echo "no" >&6; }
   18072                 # check if -lwsock32 or -lgdi32 are needed.
   18073                 BAKLIBS="$LIBS"
   18074                 BAKSSLLIBS="$LIBSSL_LIBS"
   18075 		LIBS="$LIBS -lgdi32 -lws2_32"
   18076 		LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
   18077                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
   18078 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
   18079                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18080 /* end confdefs.h.  */
   18081 
   18082 int
   18083 main ()
   18084 {
   18085 
   18086                     int EVP_sha256(void);
   18087                     (void)EVP_sha256();
   18088 
   18089   ;
   18090   return 0;
   18091 }
   18092 _ACEOF
   18093 if ac_fn_c_try_link "$LINENO"; then :
   18094 
   18095 
   18096 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
   18097 
   18098                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18099 $as_echo "yes" >&6; }
   18100 
   18101 else
   18102 
   18103                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18104 $as_echo "no" >&6; }
   18105                     LIBS="$BAKLIBS"
   18106                     LIBSSL_LIBS="$BAKSSLLIBS"
   18107                     LIBS="$LIBS -ldl"
   18108                     LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
   18109                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
   18110 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
   18111                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18112 /* end confdefs.h.  */
   18113 
   18114 int
   18115 main ()
   18116 {
   18117 
   18118                         int EVP_sha256(void);
   18119                         (void)EVP_sha256();
   18120 
   18121   ;
   18122   return 0;
   18123 }
   18124 _ACEOF
   18125 if ac_fn_c_try_link "$LINENO"; then :
   18126 
   18127 
   18128 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
   18129 
   18130                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18131 $as_echo "yes" >&6; }
   18132 
   18133 else
   18134 
   18135                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18136 $as_echo "no" >&6; }
   18137                         LIBS="$BAKLIBS"
   18138                         LIBSSL_LIBS="$BAKSSLLIBS"
   18139                         LIBS="$LIBS -ldl -pthread"
   18140                         LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
   18141                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
   18142 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
   18143                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18144 /* end confdefs.h.  */
   18145 
   18146 int
   18147 main ()
   18148 {
   18149 
   18150                             int EVP_sha256(void);
   18151                             (void)EVP_sha256();
   18152 
   18153   ;
   18154   return 0;
   18155 }
   18156 _ACEOF
   18157 if ac_fn_c_try_link "$LINENO"; then :
   18158 
   18159 
   18160 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
   18161 
   18162                             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18163 $as_echo "yes" >&6; }
   18164 
   18165 else
   18166 
   18167                             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18168 $as_echo "no" >&6; }
   18169                             as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
   18170 
   18171 fi
   18172 rm -f core conftest.err conftest.$ac_objext \
   18173     conftest$ac_exeext conftest.$ac_ext
   18174 
   18175 fi
   18176 rm -f core conftest.err conftest.$ac_objext \
   18177     conftest$ac_exeext conftest.$ac_ext
   18178 
   18179 fi
   18180 rm -f core conftest.err conftest.$ac_objext \
   18181     conftest$ac_exeext conftest.$ac_ext
   18182 
   18183 fi
   18184 rm -f core conftest.err conftest.$ac_objext \
   18185     conftest$ac_exeext conftest.$ac_ext
   18186         fi
   18187 
   18188 
   18189     fi
   18190 for ac_header in openssl/ssl.h
   18191 do :
   18192   ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
   18193 "
   18194 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
   18195   cat >>confdefs.h <<_ACEOF
   18196 #define HAVE_OPENSSL_SSL_H 1
   18197 _ACEOF
   18198 
   18199 fi
   18200 
   18201 done
   18202 
   18203 for ac_header in openssl/err.h
   18204 do :
   18205   ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
   18206 "
   18207 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
   18208   cat >>confdefs.h <<_ACEOF
   18209 #define HAVE_OPENSSL_ERR_H 1
   18210 _ACEOF
   18211 
   18212 fi
   18213 
   18214 done
   18215 
   18216 for ac_header in openssl/rand.h
   18217 do :
   18218   ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
   18219 "
   18220 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
   18221   cat >>confdefs.h <<_ACEOF
   18222 #define HAVE_OPENSSL_RAND_H 1
   18223 _ACEOF
   18224 
   18225 fi
   18226 
   18227 done
   18228 
   18229 
   18230 
   18231 
   18232 # check if libssl needs libdl
   18233 BAKLIBS="$LIBS"
   18234 LIBS="-lssl $LIBS"
   18235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
   18236 $as_echo_n "checking if libssl needs libdl... " >&6; }
   18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18238 /* end confdefs.h.  */
   18239 
   18240 /* Override any GCC internal prototype to avoid an error.
   18241    Use char because int might match the return type of a GCC
   18242    builtin and then its argument prototype would still apply.  */
   18243 #ifdef __cplusplus
   18244 extern "C"
   18245 #endif
   18246 char SSL_CTX_new ();
   18247 int
   18248 main ()
   18249 {
   18250 return SSL_CTX_new ();
   18251   ;
   18252   return 0;
   18253 }
   18254 _ACEOF
   18255 if ac_fn_c_try_link "$LINENO"; then :
   18256 
   18257 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18258 $as_echo "no" >&6; }
   18259 	LIBS="$BAKLIBS"
   18260 
   18261 else
   18262 
   18263 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18264 $as_echo "yes" >&6; }
   18265 	LIBS="$BAKLIBS"
   18266 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   18267 $as_echo_n "checking for library containing dlopen... " >&6; }
   18268 if ${ac_cv_search_dlopen+:} false; then :
   18269   $as_echo_n "(cached) " >&6
   18270 else
   18271   ac_func_search_save_LIBS=$LIBS
   18272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18273 /* end confdefs.h.  */
   18274 
   18275 /* Override any GCC internal prototype to avoid an error.
   18276    Use char because int might match the return type of a GCC
   18277    builtin and then its argument prototype would still apply.  */
   18278 #ifdef __cplusplus
   18279 extern "C"
   18280 #endif
   18281 char dlopen ();
   18282 int
   18283 main ()
   18284 {
   18285 return dlopen ();
   18286   ;
   18287   return 0;
   18288 }
   18289 _ACEOF
   18290 for ac_lib in '' dl; do
   18291   if test -z "$ac_lib"; then
   18292     ac_res="none required"
   18293   else
   18294     ac_res=-l$ac_lib
   18295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18296   fi
   18297   if ac_fn_c_try_link "$LINENO"; then :
   18298   ac_cv_search_dlopen=$ac_res
   18299 fi
   18300 rm -f core conftest.err conftest.$ac_objext \
   18301     conftest$ac_exeext
   18302   if ${ac_cv_search_dlopen+:} false; then :
   18303   break
   18304 fi
   18305 done
   18306 if ${ac_cv_search_dlopen+:} false; then :
   18307 
   18308 else
   18309   ac_cv_search_dlopen=no
   18310 fi
   18311 rm conftest.$ac_ext
   18312 LIBS=$ac_func_search_save_LIBS
   18313 fi
   18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   18315 $as_echo "$ac_cv_search_dlopen" >&6; }
   18316 ac_res=$ac_cv_search_dlopen
   18317 if test "$ac_res" != no; then :
   18318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18319 
   18320 fi
   18321 
   18322 
   18323 fi
   18324 rm -f core conftest.err conftest.$ac_objext \
   18325     conftest$ac_exeext conftest.$ac_ext
   18326 SSLLIB="-lssl"
   18327 
   18328 PC_CRYPTO_DEPENDENCY=""
   18329 
   18330 
   18331 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
   18332 BAKLIBS="$LIBS"
   18333 LIBS="-lssl $LIBS"
   18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
   18335 $as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
   18336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18337 /* end confdefs.h.  */
   18338 
   18339 int
   18340 main ()
   18341 {
   18342 
   18343 	int EVP_sha256(void);
   18344 	(void)EVP_sha256();
   18345 
   18346   ;
   18347   return 0;
   18348 }
   18349 _ACEOF
   18350 if ac_fn_c_try_link "$LINENO"; then :
   18351 
   18352 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18353 $as_echo "no" >&6; }
   18354 	LIBS="$BAKLIBS"
   18355 
   18356 else
   18357 
   18358 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18359 $as_echo "yes" >&6; }
   18360 	LIBS="$BAKLIBS"
   18361 	LIBS="$LIBS -lcrypt32"
   18362 
   18363 fi
   18364 rm -f core conftest.err conftest.$ac_objext \
   18365     conftest$ac_exeext conftest.$ac_ext
   18366 
   18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
   18368 $as_echo_n "checking for LibreSSL... " >&6; }
   18369 if grep VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
   18370 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18371 $as_echo "yes" >&6; }
   18372 
   18373 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
   18374 
   18375 	# libressl provides these compat functions, but they may also be
   18376 	# declared by the OS in libc.  See if they have been declared.
   18377 	ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
   18378 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
   18379   ac_have_decl=1
   18380 else
   18381   ac_have_decl=0
   18382 fi
   18383 
   18384 cat >>confdefs.h <<_ACEOF
   18385 #define HAVE_DECL_STRLCPY $ac_have_decl
   18386 _ACEOF
   18387 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
   18388 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
   18389   ac_have_decl=1
   18390 else
   18391   ac_have_decl=0
   18392 fi
   18393 
   18394 cat >>confdefs.h <<_ACEOF
   18395 #define HAVE_DECL_STRLCAT $ac_have_decl
   18396 _ACEOF
   18397 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
   18398 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
   18399   ac_have_decl=1
   18400 else
   18401   ac_have_decl=0
   18402 fi
   18403 
   18404 cat >>confdefs.h <<_ACEOF
   18405 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
   18406 _ACEOF
   18407 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
   18408 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
   18409   ac_have_decl=1
   18410 else
   18411   ac_have_decl=0
   18412 fi
   18413 
   18414 cat >>confdefs.h <<_ACEOF
   18415 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
   18416 _ACEOF
   18417 
   18418 else
   18419 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18420 $as_echo "no" >&6; }
   18421 fi
   18422 for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h openssl/core_names.h openssl/param_build.h
   18423 do :
   18424   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   18425 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   18426 "
   18427 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   18428   cat >>confdefs.h <<_ACEOF
   18429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   18430 _ACEOF
   18431 
   18432 fi
   18433 
   18434 done
   18435 
   18436 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_default_properties_is_fips_enabled EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ENGINE_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify EVP_aes_256_cbc EVP_EncryptInit_ex HMAC_Init_ex CRYPTO_THREADID_set_callback EVP_MAC_CTX_set_params OSSL_PARAM_BLD_new BIO_set_callback_ex
   18437 do :
   18438   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   18439 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   18440 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   18441   cat >>confdefs.h <<_ACEOF
   18442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   18443 _ACEOF
   18444 
   18445 fi
   18446 done
   18447 
   18448 
   18449 # these check_funcs need -lssl
   18450 BAKLIBS="$LIBS"
   18451 LIBS="-lssl $LIBS"
   18452 for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level SSL_set1_host SSL_get0_peername X509_VERIFY_PARAM_set1_host SSL_CTX_set_ciphersuites SSL_CTX_set_tlsext_ticket_key_evp_cb SSL_CTX_set_alpn_select_cb SSL_get0_alpn_selected SSL_CTX_set_alpn_protos SSL_get1_peer_certificate
   18453 do :
   18454   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   18455 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   18456 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   18457   cat >>confdefs.h <<_ACEOF
   18458 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   18459 _ACEOF
   18460 
   18461 fi
   18462 done
   18463 
   18464 LIBS="$BAKLIBS"
   18465 
   18466 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
   18467 $ac_includes_default
   18468 #ifdef HAVE_OPENSSL_ERR_H
   18469 #include <openssl/err.h>
   18470 #endif
   18471 
   18472 #ifdef HAVE_OPENSSL_RAND_H
   18473 #include <openssl/rand.h>
   18474 #endif
   18475 
   18476 #ifdef HAVE_OPENSSL_CONF_H
   18477 #include <openssl/conf.h>
   18478 #endif
   18479 
   18480 #ifdef HAVE_OPENSSL_ENGINE_H
   18481 #include <openssl/engine.h>
   18482 #endif
   18483 #include <openssl/ssl.h>
   18484 #include <openssl/evp.h>
   18485 
   18486 "
   18487 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
   18488   ac_have_decl=1
   18489 else
   18490   ac_have_decl=0
   18491 fi
   18492 
   18493 cat >>confdefs.h <<_ACEOF
   18494 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
   18495 _ACEOF
   18496 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
   18497 $ac_includes_default
   18498 #ifdef HAVE_OPENSSL_ERR_H
   18499 #include <openssl/err.h>
   18500 #endif
   18501 
   18502 #ifdef HAVE_OPENSSL_RAND_H
   18503 #include <openssl/rand.h>
   18504 #endif
   18505 
   18506 #ifdef HAVE_OPENSSL_CONF_H
   18507 #include <openssl/conf.h>
   18508 #endif
   18509 
   18510 #ifdef HAVE_OPENSSL_ENGINE_H
   18511 #include <openssl/engine.h>
   18512 #endif
   18513 #include <openssl/ssl.h>
   18514 #include <openssl/evp.h>
   18515 
   18516 "
   18517 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
   18518   ac_have_decl=1
   18519 else
   18520   ac_have_decl=0
   18521 fi
   18522 
   18523 cat >>confdefs.h <<_ACEOF
   18524 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
   18525 _ACEOF
   18526 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
   18527 $ac_includes_default
   18528 #ifdef HAVE_OPENSSL_ERR_H
   18529 #include <openssl/err.h>
   18530 #endif
   18531 
   18532 #ifdef HAVE_OPENSSL_RAND_H
   18533 #include <openssl/rand.h>
   18534 #endif
   18535 
   18536 #ifdef HAVE_OPENSSL_CONF_H
   18537 #include <openssl/conf.h>
   18538 #endif
   18539 
   18540 #ifdef HAVE_OPENSSL_ENGINE_H
   18541 #include <openssl/engine.h>
   18542 #endif
   18543 #include <openssl/ssl.h>
   18544 #include <openssl/evp.h>
   18545 
   18546 "
   18547 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
   18548   ac_have_decl=1
   18549 else
   18550   ac_have_decl=0
   18551 fi
   18552 
   18553 cat >>confdefs.h <<_ACEOF
   18554 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
   18555 _ACEOF
   18556 
   18557 
   18558 if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
   18559 # check function return type.
   18560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
   18561 $as_echo_n "checking the return type of HMAC_Init_ex... " >&6; }
   18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18563 /* end confdefs.h.  */
   18564 
   18565 #ifdef HAVE_OPENSSL_ERR_H
   18566 #include <openssl/err.h>
   18567 #endif
   18568 
   18569 #ifdef HAVE_OPENSSL_RAND_H
   18570 #include <openssl/rand.h>
   18571 #endif
   18572 
   18573 #ifdef HAVE_OPENSSL_CONF_H
   18574 #include <openssl/conf.h>
   18575 #endif
   18576 
   18577 #ifdef HAVE_OPENSSL_ENGINE_H
   18578 #include <openssl/engine.h>
   18579 #endif
   18580 #include <openssl/ssl.h>
   18581 #include <openssl/evp.h>
   18582 
   18583 int
   18584 main ()
   18585 {
   18586 
   18587 	HMAC_CTX* hmac_ctx = NULL;
   18588 	void* hmac_key = NULL;
   18589 	const EVP_MD* digest = NULL;
   18590 	int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
   18591 	(void)x;
   18592 
   18593   ;
   18594   return 0;
   18595 }
   18596 _ACEOF
   18597 if ac_fn_c_try_compile "$LINENO"; then :
   18598 
   18599 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
   18600 $as_echo "int" >&6; }
   18601 
   18602 else
   18603 
   18604 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
   18605 $as_echo "void" >&6; }
   18606 
   18607 $as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
   18608 
   18609 
   18610 fi
   18611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18612 fi
   18613 
   18614 fi
   18615 
   18616 
   18617 # libbsd
   18618 
   18619 # Check whether --with-libbsd was given.
   18620 if test "${with_libbsd+set}" = set; then :
   18621   withval=$with_libbsd;
   18622 	for ac_header in bsd/string.h bsd/stdlib.h
   18623 do :
   18624   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   18625 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   18626 "
   18627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   18628   cat >>confdefs.h <<_ACEOF
   18629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   18630 _ACEOF
   18631 
   18632 fi
   18633 
   18634 done
   18635 
   18636 	if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
   18637 		for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do
   18638 			as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh`
   18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
   18640 $as_echo_n "checking for library containing $func... " >&6; }
   18641 if eval \${$as_ac_Search+:} false; then :
   18642   $as_echo_n "(cached) " >&6
   18643 else
   18644   ac_func_search_save_LIBS=$LIBS
   18645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18646 /* end confdefs.h.  */
   18647 
   18648 /* Override any GCC internal prototype to avoid an error.
   18649    Use char because int might match the return type of a GCC
   18650    builtin and then its argument prototype would still apply.  */
   18651 #ifdef __cplusplus
   18652 extern "C"
   18653 #endif
   18654 char $func ();
   18655 int
   18656 main ()
   18657 {
   18658 return $func ();
   18659   ;
   18660   return 0;
   18661 }
   18662 _ACEOF
   18663 for ac_lib in '' bsd; do
   18664   if test -z "$ac_lib"; then
   18665     ac_res="none required"
   18666   else
   18667     ac_res=-l$ac_lib
   18668     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18669   fi
   18670   if ac_fn_c_try_link "$LINENO"; then :
   18671   eval "$as_ac_Search=\$ac_res"
   18672 fi
   18673 rm -f core conftest.err conftest.$ac_objext \
   18674     conftest$ac_exeext
   18675   if eval \${$as_ac_Search+:} false; then :
   18676   break
   18677 fi
   18678 done
   18679 if eval \${$as_ac_Search+:} false; then :
   18680 
   18681 else
   18682   eval "$as_ac_Search=no"
   18683 fi
   18684 rm conftest.$ac_ext
   18685 LIBS=$ac_func_search_save_LIBS
   18686 fi
   18687 eval ac_res=\$$as_ac_Search
   18688 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   18689 $as_echo "$ac_res" >&6; }
   18690 eval ac_res=\$$as_ac_Search
   18691 if test "$ac_res" != no; then :
   18692   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18693 
   18694 
   18695 $as_echo "#define HAVE_LIBBSD 1" >>confdefs.h
   18696 
   18697 				PC_LIBBSD_DEPENDENCY=libbsd
   18698 
   18699 
   18700 fi
   18701 
   18702 		done
   18703 	fi
   18704 
   18705 fi
   18706 
   18707 
   18708 # Check whether --enable-sha1 was given.
   18709 if test "${enable_sha1+set}" = set; then :
   18710   enableval=$enable_sha1;
   18711 fi
   18712 
   18713 case "$enable_sha1" in
   18714 	no)
   18715 	;;
   18716 	yes|*)
   18717 
   18718 $as_echo "#define USE_SHA1 1" >>confdefs.h
   18719 
   18720 	;;
   18721 esac
   18722 
   18723 
   18724 # Check whether --enable-sha2 was given.
   18725 if test "${enable_sha2+set}" = set; then :
   18726   enableval=$enable_sha2;
   18727 fi
   18728 
   18729 case "$enable_sha2" in
   18730 	no)
   18731 	;;
   18732 	yes|*)
   18733 
   18734 $as_echo "#define USE_SHA2 1" >>confdefs.h
   18735 
   18736 	;;
   18737 esac
   18738 
   18739 # Check whether --enable-subnet was given.
   18740 if test "${enable_subnet+set}" = set; then :
   18741   enableval=$enable_subnet;
   18742 fi
   18743 
   18744 case "$enable_subnet" in
   18745 	yes)
   18746 
   18747 $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
   18748 
   18749 	SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
   18750 
   18751 	SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
   18752 
   18753 	;;
   18754 	no|*)
   18755 	;;
   18756 esac
   18757 
   18758 # check whether gost also works
   18759 
   18760 # Check whether --enable-gost was given.
   18761 if test "${enable_gost+set}" = set; then :
   18762   enableval=$enable_gost;
   18763 fi
   18764 
   18765 use_gost="no"
   18766 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   18767 case "$enable_gost" in
   18768 	no)
   18769 	;;
   18770 	*)
   18771 	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
   18772 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
   18773   :
   18774 else
   18775   as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
   18776 fi
   18777 
   18778 	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
   18779 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
   18780 
   18781 else
   18782   as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
   18783 fi
   18784 
   18785 
   18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
   18787 $as_echo_n "checking if GOST works... " >&6; }
   18788 if test c${cross_compiling} = cno; then
   18789 BAKCFLAGS="$CFLAGS"
   18790 if test -n "$ssldir"; then
   18791 	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib"
   18792 fi
   18793 if test "$cross_compiling" = yes; then :
   18794   eval "ac_cv_c_gost_works=maybe"
   18795 else
   18796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18797 /* end confdefs.h.  */
   18798 
   18799 #include <string.h>
   18800 #include <openssl/ssl.h>
   18801 #include <openssl/evp.h>
   18802 #include <openssl/engine.h>
   18803 #include <openssl/conf.h>
   18804 /* routine to load gost (from sldns) */
   18805 int load_gost_id(void)
   18806 {
   18807 	static int gost_id = 0;
   18808 	const EVP_PKEY_ASN1_METHOD* meth;
   18809 	ENGINE* e;
   18810 
   18811 	if(gost_id) return gost_id;
   18812 
   18813 	/* see if configuration loaded gost implementation from other engine*/
   18814 	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
   18815 	if(meth) {
   18816 		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
   18817 		return gost_id;
   18818 	}
   18819 
   18820 	/* see if engine can be loaded already */
   18821 	e = ENGINE_by_id("gost");
   18822 	if(!e) {
   18823 		/* load it ourself, in case statically linked */
   18824 		ENGINE_load_builtin_engines();
   18825 		ENGINE_load_dynamic();
   18826 		e = ENGINE_by_id("gost");
   18827 	}
   18828 	if(!e) {
   18829 		/* no gost engine in openssl */
   18830 		return 0;
   18831 	}
   18832 	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
   18833 		ENGINE_finish(e);
   18834 		ENGINE_free(e);
   18835 		return 0;
   18836 	}
   18837 
   18838 	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
   18839 	if(!meth) {
   18840 		/* algo not found */
   18841 		ENGINE_finish(e);
   18842 		ENGINE_free(e);
   18843 		return 0;
   18844 	}
   18845 	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
   18846 	return gost_id;
   18847 }
   18848 int main(void) {
   18849 	EVP_MD_CTX* ctx;
   18850 	const EVP_MD* md;
   18851 	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
   18852 	const char* str = "Hello world";
   18853 	const unsigned char check[] = {
   18854 		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
   18855 		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
   18856 		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
   18857 		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
   18858 	};
   18859 	OPENSSL_config(NULL);
   18860 	(void)load_gost_id();
   18861 	md = EVP_get_digestbyname("md_gost94");
   18862 	if(!md) return 1;
   18863 	memset(digest, 0, sizeof(digest));
   18864 	ctx = EVP_MD_CTX_create();
   18865 	if(!ctx) return 2;
   18866 	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
   18867 	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
   18868 	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
   18869 	/* uncomment to see the hash calculated.
   18870 		{int i;
   18871 		for(i=0; i<32; i++)
   18872 			printf(" %2.2x", (int)digest[i]);
   18873 		printf("\n");}
   18874 	*/
   18875 	if(memcmp(digest, check, sizeof(check)) != 0)
   18876 		return 6;
   18877 	return 0;
   18878 }
   18879 
   18880 _ACEOF
   18881 if ac_fn_c_try_run "$LINENO"; then :
   18882   eval "ac_cv_c_gost_works=yes"
   18883 else
   18884   eval "ac_cv_c_gost_works=no"
   18885 fi
   18886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18887   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18888 fi
   18889 
   18890 CFLAGS="$BAKCFLAGS"
   18891 else
   18892 eval "ac_cv_c_gost_works=maybe"
   18893 fi
   18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
   18895 $as_echo "$ac_cv_c_gost_works" >&6; }
   18896 
   18897 	if test "$ac_cv_c_gost_works" != no; then
   18898 		use_gost="yes"
   18899 
   18900 $as_echo "#define USE_GOST 1" >>confdefs.h
   18901 
   18902 	fi
   18903 	;;
   18904 esac
   18905 fi
   18906 # Check whether --enable-ecdsa was given.
   18907 if test "${enable_ecdsa+set}" = set; then :
   18908   enableval=$enable_ecdsa;
   18909 fi
   18910 
   18911 use_ecdsa="no"
   18912 case "$enable_ecdsa" in
   18913     no)
   18914       ;;
   18915     *)
   18916       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   18917 	      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
   18918 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
   18919 
   18920 else
   18921   as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
   18922 fi
   18923 
   18924 	      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
   18925 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
   18926 
   18927 else
   18928   as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
   18929 fi
   18930 
   18931 	      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
   18932 #include <openssl/evp.h>
   18933 
   18934 "
   18935 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
   18936   ac_have_decl=1
   18937 else
   18938   ac_have_decl=0
   18939 fi
   18940 
   18941 cat >>confdefs.h <<_ACEOF
   18942 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
   18943 _ACEOF
   18944 if test $ac_have_decl = 1; then :
   18945 
   18946 else
   18947   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
   18948 fi
   18949 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
   18950 #include <openssl/evp.h>
   18951 
   18952 "
   18953 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
   18954   ac_have_decl=1
   18955 else
   18956   ac_have_decl=0
   18957 fi
   18958 
   18959 cat >>confdefs.h <<_ACEOF
   18960 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
   18961 _ACEOF
   18962 if test $ac_have_decl = 1; then :
   18963 
   18964 else
   18965   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
   18966 fi
   18967 
   18968 	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
   18969 	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
   18970 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
   18971 	      if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
   18972 		if grep OPENSSL_VERSION_NUMBER $ssldir_include/openssl/opensslv.h | grep 0x0 >/dev/null; then
   18973 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18974 $as_echo "no" >&6; }
   18975 
   18976 cat >>confdefs.h <<_ACEOF
   18977 #define USE_ECDSA_EVP_WORKAROUND 1
   18978 _ACEOF
   18979 
   18980 		else
   18981 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18982 $as_echo "yes" >&6; }
   18983 		fi
   18984 	      else
   18985 		# not OpenSSL, thus likely LibreSSL, which supports it
   18986 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18987 $as_echo "yes" >&6; }
   18988 	      fi
   18989       fi
   18990       # we now know we have ECDSA and the required curves.
   18991 
   18992 cat >>confdefs.h <<_ACEOF
   18993 #define USE_ECDSA 1
   18994 _ACEOF
   18995 
   18996       use_ecdsa="yes"
   18997       ;;
   18998 esac
   18999 
   19000 # Check whether --enable-dsa was given.
   19001 if test "${enable_dsa+set}" = set; then :
   19002   enableval=$enable_dsa;
   19003 fi
   19004 
   19005 use_dsa="no"
   19006 case "$enable_dsa" in
   19007     yes)
   19008       # detect if DSA is supported, and turn it off if not.
   19009       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   19010       ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
   19011 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
   19012 
   19013       as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
   19014 ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
   19015 $ac_includes_default
   19016 #ifdef HAVE_OPENSSL_ERR_H
   19017 #include <openssl/err.h>
   19018 #endif
   19019 
   19020 #ifdef HAVE_OPENSSL_RAND_H
   19021 #include <openssl/rand.h>
   19022 #endif
   19023 
   19024 #ifdef HAVE_OPENSSL_CONF_H
   19025 #include <openssl/conf.h>
   19026 #endif
   19027 
   19028 #ifdef HAVE_OPENSSL_ENGINE_H
   19029 #include <openssl/engine.h>
   19030 #endif
   19031 
   19032 "
   19033 if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
   19034 
   19035 
   19036 cat >>confdefs.h <<_ACEOF
   19037 #define USE_DSA 1
   19038 _ACEOF
   19039 
   19040 
   19041 else
   19042   if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
   19043                fi
   19044 fi
   19045 
   19046 
   19047 else
   19048   if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
   19049                fi
   19050 fi
   19051 
   19052       else
   19053 
   19054 cat >>confdefs.h <<_ACEOF
   19055 #define USE_DSA 1
   19056 _ACEOF
   19057 
   19058       fi
   19059       ;;
   19060     *)
   19061       # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT
   19062       # support DSA for DNSSEC Validation.
   19063       ;;
   19064 esac
   19065 
   19066 
   19067 # Check whether --with-deprecate-rsa-1024 was given.
   19068 if test "${with_deprecate_rsa_1024+set}" = set; then :
   19069   withval=$with_deprecate_rsa_1024;
   19070 fi
   19071 
   19072 if test "$with_deprecate_rsa_1024" = "yes"; then
   19073 
   19074 $as_echo "#define DEPRECATE_RSA_1024 1" >>confdefs.h
   19075 
   19076 fi
   19077 
   19078 # Check whether --enable-ed25519 was given.
   19079 if test "${enable_ed25519+set}" = set; then :
   19080   enableval=$enable_ed25519;
   19081 fi
   19082 
   19083 use_ed25519="no"
   19084 case "$enable_ed25519" in
   19085     no)
   19086       ;;
   19087     *)
   19088       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   19089 	      ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
   19090 #include <openssl/evp.h>
   19091 
   19092 "
   19093 if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
   19094   ac_have_decl=1
   19095 else
   19096   ac_have_decl=0
   19097 fi
   19098 
   19099 cat >>confdefs.h <<_ACEOF
   19100 #define HAVE_DECL_NID_ED25519 $ac_have_decl
   19101 _ACEOF
   19102 if test $ac_have_decl = 1; then :
   19103 
   19104       		use_ed25519="yes"
   19105 
   19106 else
   19107    if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
   19108 	      	fi
   19109 fi
   19110 
   19111       fi
   19112       if test $USE_NETTLE = "yes"; then
   19113 		for ac_header in nettle/eddsa.h
   19114 do :
   19115   ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
   19116 "
   19117 if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
   19118   cat >>confdefs.h <<_ACEOF
   19119 #define HAVE_NETTLE_EDDSA_H 1
   19120 _ACEOF
   19121  use_ed25519="yes"
   19122 fi
   19123 
   19124 done
   19125 
   19126       fi
   19127       if test $use_ed25519 = "yes"; then
   19128 
   19129 cat >>confdefs.h <<_ACEOF
   19130 #define USE_ED25519 1
   19131 _ACEOF
   19132 
   19133       fi
   19134       ;;
   19135 esac
   19136 
   19137 # Check whether --enable-ed448 was given.
   19138 if test "${enable_ed448+set}" = set; then :
   19139   enableval=$enable_ed448;
   19140 fi
   19141 
   19142 use_ed448="no"
   19143 case "$enable_ed448" in
   19144     no)
   19145       ;;
   19146     *)
   19147       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   19148 	      ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
   19149 #include <openssl/evp.h>
   19150 
   19151 "
   19152 if test "x$ac_cv_have_decl_NID_ED448" = xyes; then :
   19153   ac_have_decl=1
   19154 else
   19155   ac_have_decl=0
   19156 fi
   19157 
   19158 cat >>confdefs.h <<_ACEOF
   19159 #define HAVE_DECL_NID_ED448 $ac_have_decl
   19160 _ACEOF
   19161 if test $ac_have_decl = 1; then :
   19162 
   19163       		use_ed448="yes"
   19164 
   19165 else
   19166    if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
   19167 	      	fi
   19168 fi
   19169 
   19170       fi
   19171       if test $use_ed448 = "yes"; then
   19172 
   19173 cat >>confdefs.h <<_ACEOF
   19174 #define USE_ED448 1
   19175 _ACEOF
   19176 
   19177       fi
   19178       ;;
   19179 esac
   19180 
   19181 # Check whether --enable-event-api was given.
   19182 if test "${enable_event_api+set}" = set; then :
   19183   enableval=$enable_event_api;
   19184 fi
   19185 
   19186 case "$enable_event_api" in
   19187     yes)
   19188       UNBOUND_EVENT_INSTALL=unbound-event-install
   19189 
   19190       UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
   19191 
   19192       ;;
   19193     *)
   19194       ;;
   19195 esac
   19196 
   19197 # Check whether --enable-tfo-client was given.
   19198 if test "${enable_tfo_client+set}" = set; then :
   19199   enableval=$enable_tfo_client;
   19200 fi
   19201 
   19202 case "$enable_tfo_client" in
   19203 	yes)
   19204 		case "$host_os" in
   19205 			linux*) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
   19206 #include <netinet/tcp.h>
   19207 
   19208 "
   19209 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
   19210   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
   19211 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
   19212 else
   19213   as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
   19214 fi
   19215 
   19216 
   19217 cat >>confdefs.h <<_ACEOF
   19218 #define USE_MSG_FASTOPEN 1
   19219 _ACEOF
   19220 
   19221 				;;
   19222 			darwin*) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
   19223 #include <sys/socket.h>
   19224 
   19225 "
   19226 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
   19227   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
   19228 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
   19229 else
   19230   as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
   19231 fi
   19232 
   19233 
   19234 cat >>confdefs.h <<_ACEOF
   19235 #define USE_OSX_MSG_FASTOPEN 1
   19236 _ACEOF
   19237 
   19238 				;;
   19239 		esac
   19240 		;;
   19241 	no|*)
   19242 		;;
   19243 esac
   19244 
   19245 # Check whether --enable-tfo-server was given.
   19246 if test "${enable_tfo_server+set}" = set; then :
   19247   enableval=$enable_tfo_server;
   19248 fi
   19249 
   19250 case "$enable_tfo_server" in
   19251 	yes)
   19252 	      ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
   19253 #include <netinet/tcp.h>
   19254 
   19255 "
   19256 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
   19257   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
   19258 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
   19259 else
   19260   as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
   19261 fi
   19262 
   19263 
   19264 cat >>confdefs.h <<_ACEOF
   19265 #define USE_TCP_FASTOPEN 1
   19266 _ACEOF
   19267 
   19268 		;;
   19269 	no|*)
   19270 		;;
   19271 esac
   19272 
   19273 # check for libevent
   19274 
   19275 # Check whether --with-libevent was given.
   19276 if test "${with_libevent+set}" = set; then :
   19277   withval=$with_libevent;
   19278 else
   19279    with_libevent="no"
   19280 fi
   19281 
   19282 if test "x_$with_libevent" != x_no; then
   19283 
   19284 $as_echo "#define USE_LIBEVENT 1" >>confdefs.h
   19285 
   19286         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
   19287 $as_echo_n "checking for libevent... " >&6; }
   19288         if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then
   19289             with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
   19290         fi
   19291         for dir in $with_libevent; do
   19292             thedir="$dir"
   19293             if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
   19294                 found_libevent="yes"
   19295 								if test "$thedir" != "/usr"; then
   19296 				    CPPFLAGS="$CPPFLAGS -I$thedir/include"
   19297 				fi
   19298 				break;
   19299 		    fi
   19300         done
   19301         if test x_$found_libevent != x_yes; then
   19302 		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
   19303 			# libevent source directory
   19304 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
   19305 $as_echo "found in $thedir" >&6; }
   19306 			CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
   19307 			BAK_LDFLAGS_SET="1"
   19308 			BAK_LDFLAGS="$LDFLAGS"
   19309 			# remove evdns from linking
   19310 			mkdir build >/dev/null 2>&1
   19311 			mkdir build/libevent >/dev/null 2>&1
   19312 			mkdir build/libevent/.libs >/dev/null 2>&1
   19313 			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
   19314 			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
   19315 			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
   19316 			cp $ev_files_o build/libevent
   19317 			cp $ev_files_lo build/libevent
   19318 			cp $ev_files_libso build/libevent/.libs
   19319 			LATE_LDFLAGS="build/libevent/*.lo -lm"
   19320 			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
   19321 		else
   19322             as_fn_error $? "Cannot find the libevent library in $with_libevent
   19323 You can restart ./configure --with-libevent=no to use a builtin alternative.
   19324 Please note that this alternative is not as capable as libevent when using
   19325 large outgoing port ranges.  " "$LINENO" 5
   19326 		fi
   19327         else
   19328             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
   19329 $as_echo "found in $thedir" >&6; }
   19330 	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
   19331 		    LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
   19332 
   19333 	if test "x$enable_rpath" = xyes; then
   19334 		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
   19335 			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
   19336 		fi
   19337 	fi
   19338 
   19339 	    else
   19340 		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
   19341 			LDFLAGS="$LDFLAGS -L$thedir/lib"
   19342 
   19343 	if test "x$enable_rpath" = xyes; then
   19344 		if echo "$thedir/lib" | grep "^/" >/dev/null; then
   19345 			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
   19346 		fi
   19347 	fi
   19348 
   19349 		    fi
   19350 	    fi
   19351         fi
   19352 	# check for library used by libevent after 1.3c
   19353 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   19354 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   19355 if ${ac_cv_search_clock_gettime+:} false; then :
   19356   $as_echo_n "(cached) " >&6
   19357 else
   19358   ac_func_search_save_LIBS=$LIBS
   19359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19360 /* end confdefs.h.  */
   19361 
   19362 /* Override any GCC internal prototype to avoid an error.
   19363    Use char because int might match the return type of a GCC
   19364    builtin and then its argument prototype would still apply.  */
   19365 #ifdef __cplusplus
   19366 extern "C"
   19367 #endif
   19368 char clock_gettime ();
   19369 int
   19370 main ()
   19371 {
   19372 return clock_gettime ();
   19373   ;
   19374   return 0;
   19375 }
   19376 _ACEOF
   19377 for ac_lib in '' rt; do
   19378   if test -z "$ac_lib"; then
   19379     ac_res="none required"
   19380   else
   19381     ac_res=-l$ac_lib
   19382     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19383   fi
   19384   if ac_fn_c_try_link "$LINENO"; then :
   19385   ac_cv_search_clock_gettime=$ac_res
   19386 fi
   19387 rm -f core conftest.err conftest.$ac_objext \
   19388     conftest$ac_exeext
   19389   if ${ac_cv_search_clock_gettime+:} false; then :
   19390   break
   19391 fi
   19392 done
   19393 if ${ac_cv_search_clock_gettime+:} false; then :
   19394 
   19395 else
   19396   ac_cv_search_clock_gettime=no
   19397 fi
   19398 rm conftest.$ac_ext
   19399 LIBS=$ac_func_search_save_LIBS
   19400 fi
   19401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   19402 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   19403 ac_res=$ac_cv_search_clock_gettime
   19404 if test "$ac_res" != no; then :
   19405   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19406 
   19407 fi
   19408 
   19409 
   19410 	# is the event.h header libev or libevent?
   19411 	for ac_header in event.h
   19412 do :
   19413   ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
   19414 "
   19415 if test "x$ac_cv_header_event_h" = xyes; then :
   19416   cat >>confdefs.h <<_ACEOF
   19417 #define HAVE_EVENT_H 1
   19418 _ACEOF
   19419 
   19420 fi
   19421 
   19422 done
   19423 
   19424 	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
   19425 #include <event.h>
   19426 
   19427 "
   19428 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
   19429 
   19430 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
   19431 $as_echo_n "checking for library containing event_set... " >&6; }
   19432 if ${ac_cv_search_event_set+:} false; then :
   19433   $as_echo_n "(cached) " >&6
   19434 else
   19435   ac_func_search_save_LIBS=$LIBS
   19436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19437 /* end confdefs.h.  */
   19438 
   19439 /* Override any GCC internal prototype to avoid an error.
   19440    Use char because int might match the return type of a GCC
   19441    builtin and then its argument prototype would still apply.  */
   19442 #ifdef __cplusplus
   19443 extern "C"
   19444 #endif
   19445 char event_set ();
   19446 int
   19447 main ()
   19448 {
   19449 return event_set ();
   19450   ;
   19451   return 0;
   19452 }
   19453 _ACEOF
   19454 for ac_lib in '' ev; do
   19455   if test -z "$ac_lib"; then
   19456     ac_res="none required"
   19457   else
   19458     ac_res=-l$ac_lib
   19459     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19460   fi
   19461   if ac_fn_c_try_link "$LINENO"; then :
   19462   ac_cv_search_event_set=$ac_res
   19463 fi
   19464 rm -f core conftest.err conftest.$ac_objext \
   19465     conftest$ac_exeext
   19466   if ${ac_cv_search_event_set+:} false; then :
   19467   break
   19468 fi
   19469 done
   19470 if ${ac_cv_search_event_set+:} false; then :
   19471 
   19472 else
   19473   ac_cv_search_event_set=no
   19474 fi
   19475 rm conftest.$ac_ext
   19476 LIBS=$ac_func_search_save_LIBS
   19477 fi
   19478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
   19479 $as_echo "$ac_cv_search_event_set" >&6; }
   19480 ac_res=$ac_cv_search_event_set
   19481 if test "$ac_res" != no; then :
   19482   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19483 
   19484 fi
   19485 
   19486 
   19487 else
   19488 
   19489 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
   19490 $as_echo_n "checking for library containing event_set... " >&6; }
   19491 if ${ac_cv_search_event_set+:} false; then :
   19492   $as_echo_n "(cached) " >&6
   19493 else
   19494   ac_func_search_save_LIBS=$LIBS
   19495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19496 /* end confdefs.h.  */
   19497 
   19498 /* Override any GCC internal prototype to avoid an error.
   19499    Use char because int might match the return type of a GCC
   19500    builtin and then its argument prototype would still apply.  */
   19501 #ifdef __cplusplus
   19502 extern "C"
   19503 #endif
   19504 char event_set ();
   19505 int
   19506 main ()
   19507 {
   19508 return event_set ();
   19509   ;
   19510   return 0;
   19511 }
   19512 _ACEOF
   19513 for ac_lib in '' event; do
   19514   if test -z "$ac_lib"; then
   19515     ac_res="none required"
   19516   else
   19517     ac_res=-l$ac_lib
   19518     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19519   fi
   19520   if ac_fn_c_try_link "$LINENO"; then :
   19521   ac_cv_search_event_set=$ac_res
   19522 fi
   19523 rm -f core conftest.err conftest.$ac_objext \
   19524     conftest$ac_exeext
   19525   if ${ac_cv_search_event_set+:} false; then :
   19526   break
   19527 fi
   19528 done
   19529 if ${ac_cv_search_event_set+:} false; then :
   19530 
   19531 else
   19532   ac_cv_search_event_set=no
   19533 fi
   19534 rm conftest.$ac_ext
   19535 LIBS=$ac_func_search_save_LIBS
   19536 fi
   19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
   19538 $as_echo "$ac_cv_search_event_set" >&6; }
   19539 ac_res=$ac_cv_search_event_set
   19540 if test "$ac_res" != no; then :
   19541   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19542 
   19543 fi
   19544 
   19545 
   19546 fi
   19547 
   19548 	for ac_func in event_base_free
   19549 do :
   19550   ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
   19551 if test "x$ac_cv_func_event_base_free" = xyes; then :
   19552   cat >>confdefs.h <<_ACEOF
   19553 #define HAVE_EVENT_BASE_FREE 1
   19554 _ACEOF
   19555 
   19556 fi
   19557 done
   19558  # only in libevent 1.2 and later
   19559 	for ac_func in event_base_once
   19560 do :
   19561   ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
   19562 if test "x$ac_cv_func_event_base_once" = xyes; then :
   19563   cat >>confdefs.h <<_ACEOF
   19564 #define HAVE_EVENT_BASE_ONCE 1
   19565 _ACEOF
   19566 
   19567 fi
   19568 done
   19569  # only in libevent 1.4.1 and later
   19570 	for ac_func in event_base_new
   19571 do :
   19572   ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
   19573 if test "x$ac_cv_func_event_base_new" = xyes; then :
   19574   cat >>confdefs.h <<_ACEOF
   19575 #define HAVE_EVENT_BASE_NEW 1
   19576 _ACEOF
   19577 
   19578 fi
   19579 done
   19580  # only in libevent 1.4.1 and later
   19581 	for ac_func in event_base_get_method
   19582 do :
   19583   ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
   19584 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
   19585   cat >>confdefs.h <<_ACEOF
   19586 #define HAVE_EVENT_BASE_GET_METHOD 1
   19587 _ACEOF
   19588 
   19589 fi
   19590 done
   19591  # only in libevent 1.4.3 and later
   19592 	for ac_func in ev_loop
   19593 do :
   19594   ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
   19595 if test "x$ac_cv_func_ev_loop" = xyes; then :
   19596   cat >>confdefs.h <<_ACEOF
   19597 #define HAVE_EV_LOOP 1
   19598 _ACEOF
   19599 
   19600 fi
   19601 done
   19602  # only in libev. (tested on 3.51)
   19603 	for ac_func in ev_default_loop
   19604 do :
   19605   ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
   19606 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
   19607   cat >>confdefs.h <<_ACEOF
   19608 #define HAVE_EV_DEFAULT_LOOP 1
   19609 _ACEOF
   19610 
   19611 fi
   19612 done
   19613  # only in libev. (tested on 4.00)
   19614 	for ac_func in event_assign
   19615 do :
   19616   ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
   19617 if test "x$ac_cv_func_event_assign" = xyes; then :
   19618   cat >>confdefs.h <<_ACEOF
   19619 #define HAVE_EVENT_ASSIGN 1
   19620 _ACEOF
   19621 
   19622 fi
   19623 done
   19624  # in libevent, for thread-safety
   19625 	ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
   19626 #ifdef HAVE_EVENT_H
   19627 #  include <event.h>
   19628 #else
   19629 #  include \"event2/event.h\"
   19630 #endif
   19631 
   19632 "
   19633 if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then :
   19634   ac_have_decl=1
   19635 else
   19636   ac_have_decl=0
   19637 fi
   19638 
   19639 cat >>confdefs.h <<_ACEOF
   19640 #define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl
   19641 _ACEOF
   19642 
   19643         PC_LIBEVENT_DEPENDENCY="libevent"
   19644 
   19645 	if test -n "$BAK_LDFLAGS_SET"; then
   19646 		LDFLAGS="$BAK_LDFLAGS"
   19647 	fi
   19648 else
   19649 
   19650 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
   19651 
   19652 fi
   19653 
   19654 # check for libexpat
   19655 
   19656 # Check whether --with-libexpat was given.
   19657 if test "${with_libexpat+set}" = set; then :
   19658   withval=$with_libexpat;
   19659 else
   19660    withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
   19661 fi
   19662 
   19663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
   19664 $as_echo_n "checking for libexpat... " >&6; }
   19665 found_libexpat="no"
   19666 for dir in $withval ; do
   19667             if test -f "$dir/include/expat.h"; then
   19668 		found_libexpat="yes"
   19669 				if test "$dir" != "/usr"; then
   19670                     CPPFLAGS="$CPPFLAGS -I$dir/include"
   19671 		    LDFLAGS="$LDFLAGS -L$dir/lib"
   19672 		fi
   19673             	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
   19674 $as_echo "found in $dir" >&6; }
   19675                 break;
   19676             fi
   19677 done
   19678 if test x_$found_libexpat != x_yes; then
   19679 	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
   19680 fi
   19681 for ac_header in expat.h
   19682 do :
   19683   ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
   19684 "
   19685 if test "x$ac_cv_header_expat_h" = xyes; then :
   19686   cat >>confdefs.h <<_ACEOF
   19687 #define HAVE_EXPAT_H 1
   19688 _ACEOF
   19689 
   19690 fi
   19691 
   19692 done
   19693 
   19694 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
   19695 #include <expat.h>
   19696 
   19697 "
   19698 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
   19699   ac_have_decl=1
   19700 else
   19701   ac_have_decl=0
   19702 fi
   19703 
   19704 cat >>confdefs.h <<_ACEOF
   19705 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
   19706 _ACEOF
   19707 
   19708 
   19709 # hiredis (redis C client for cachedb)
   19710 
   19711 # Check whether --with-libhiredis was given.
   19712 if test "${with_libhiredis+set}" = set; then :
   19713   withval=$with_libhiredis;
   19714 else
   19715    withval="no"
   19716 fi
   19717 
   19718 found_libhiredis="no"
   19719 if test x_$withval = x_yes -o x_$withval != x_no; then
   19720    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
   19721 $as_echo_n "checking for libhiredis... " >&6; }
   19722    if test x_$withval = x_ -o x_$withval = x_yes; then
   19723             withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
   19724    fi
   19725    for dir in $withval ; do
   19726             if test -f "$dir/include/hiredis/hiredis.h"; then
   19727 		found_libhiredis="yes"
   19728 				if test "$dir" != "/usr"; then
   19729                     CPPFLAGS="$CPPFLAGS -I$dir/include"
   19730 		    LDFLAGS="$LDFLAGS -L$dir/lib"
   19731 		fi
   19732 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
   19733 $as_echo "found in $dir" >&6; }
   19734 
   19735 $as_echo "#define USE_REDIS 1" >>confdefs.h
   19736 
   19737 		LIBS="$LIBS -lhiredis"
   19738                 break;
   19739             fi
   19740     done
   19741     if test x_$found_libhiredis != x_yes; then
   19742 	as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
   19743     fi
   19744     for ac_header in hiredis/hiredis.h
   19745 do :
   19746   ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
   19747 "
   19748 if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
   19749   cat >>confdefs.h <<_ACEOF
   19750 #define HAVE_HIREDIS_HIREDIS_H 1
   19751 _ACEOF
   19752 
   19753 fi
   19754 
   19755 done
   19756 
   19757     ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
   19758     #include <hiredis/hiredis.h>
   19759 
   19760 "
   19761 if test "x$ac_cv_have_decl_redisConnect" = xyes; then :
   19762   ac_have_decl=1
   19763 else
   19764   ac_have_decl=0
   19765 fi
   19766 
   19767 cat >>confdefs.h <<_ACEOF
   19768 #define HAVE_DECL_REDISCONNECT $ac_have_decl
   19769 _ACEOF
   19770 
   19771 fi
   19772 
   19773 # nghttp2
   19774 
   19775 # Check whether --with-libnghttp2 was given.
   19776 if test "${with_libnghttp2+set}" = set; then :
   19777   withval=$with_libnghttp2;
   19778 else
   19779    withval="no"
   19780 fi
   19781 
   19782 found_libnghttp2="no"
   19783 if test x_$withval = x_yes -o x_$withval != x_no; then
   19784    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5
   19785 $as_echo_n "checking for libnghttp2... " >&6; }
   19786    if test x_$withval = x_ -o x_$withval = x_yes; then
   19787             withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
   19788    fi
   19789    for dir in $withval ; do
   19790             if test -f "$dir/include/nghttp2/nghttp2.h"; then
   19791 		found_libnghttp2="yes"
   19792 				if test "$dir" != "/usr"; then
   19793                     CPPFLAGS="$CPPFLAGS -I$dir/include"
   19794 		    LDFLAGS="$LDFLAGS -L$dir/lib"
   19795 		fi
   19796 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
   19797 $as_echo "found in $dir" >&6; }
   19798 
   19799 $as_echo "#define HAVE_NGHTTP2 1" >>confdefs.h
   19800 
   19801 		LIBS="$LIBS -lnghttp2"
   19802                 break;
   19803             fi
   19804     done
   19805     if test x_$found_libnghttp2 != x_yes; then
   19806 	as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5
   19807     fi
   19808     for ac_header in nghttp2/nghttp2.h
   19809 do :
   19810   ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default
   19811 "
   19812 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
   19813   cat >>confdefs.h <<_ACEOF
   19814 #define HAVE_NGHTTP2_NGHTTP2_H 1
   19815 _ACEOF
   19816 
   19817 fi
   19818 
   19819 done
   19820 
   19821     ac_fn_c_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default
   19822     #include <nghttp2/nghttp2.h>
   19823 
   19824 "
   19825 if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes; then :
   19826   ac_have_decl=1
   19827 else
   19828   ac_have_decl=0
   19829 fi
   19830 
   19831 cat >>confdefs.h <<_ACEOF
   19832 #define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl
   19833 _ACEOF
   19834 
   19835 fi
   19836 
   19837 # set static linking for uninstalled libraries if requested
   19838 
   19839 staticexe=""
   19840 # Check whether --enable-static-exe was given.
   19841 if test "${enable_static_exe+set}" = set; then :
   19842   enableval=$enable_static_exe;
   19843 fi
   19844 
   19845 if test x_$enable_static_exe = x_yes; then
   19846 	staticexe="-static"
   19847 	if test "$on_mingw" = yes; then
   19848 		staticexe="-all-static"
   19849 		# for static compile, include gdi32 and zlib here.
   19850 		if echo $LIBS | grep 'lgdi32' >/dev/null; then
   19851 			:
   19852 		else
   19853 			LIBS="$LIBS -lgdi32"
   19854 		fi
   19855 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
   19856 $as_echo_n "checking for compress in -lz... " >&6; }
   19857 if ${ac_cv_lib_z_compress+:} false; then :
   19858   $as_echo_n "(cached) " >&6
   19859 else
   19860   ac_check_lib_save_LIBS=$LIBS
   19861 LIBS="-lz  $LIBS"
   19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19863 /* end confdefs.h.  */
   19864 
   19865 /* Override any GCC internal prototype to avoid an error.
   19866    Use char because int might match the return type of a GCC
   19867    builtin and then its argument prototype would still apply.  */
   19868 #ifdef __cplusplus
   19869 extern "C"
   19870 #endif
   19871 char compress ();
   19872 int
   19873 main ()
   19874 {
   19875 return compress ();
   19876   ;
   19877   return 0;
   19878 }
   19879 _ACEOF
   19880 if ac_fn_c_try_link "$LINENO"; then :
   19881   ac_cv_lib_z_compress=yes
   19882 else
   19883   ac_cv_lib_z_compress=no
   19884 fi
   19885 rm -f core conftest.err conftest.$ac_objext \
   19886     conftest$ac_exeext conftest.$ac_ext
   19887 LIBS=$ac_check_lib_save_LIBS
   19888 fi
   19889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
   19890 $as_echo "$ac_cv_lib_z_compress" >&6; }
   19891 if test "x$ac_cv_lib_z_compress" = xyes; then :
   19892    LIBS="$LIBS -lz"
   19893 fi
   19894 
   19895 		LIBS="$LIBS -l:libssp.a"
   19896 	fi
   19897 fi
   19898 
   19899 # set full static linking if requested
   19900 # Check whether --enable-fully-static was given.
   19901 if test "${enable_fully_static+set}" = set; then :
   19902   enableval=$enable_fully_static;
   19903 fi
   19904 
   19905 if test x_$enable_fully_static = x_yes; then
   19906 	staticexe="-all-static"
   19907 	if test "$on_mingw" = yes; then
   19908 		# for static compile, include gdi32 and zlib here.
   19909 		if echo $LIBS | grep 'lgdi32' >/dev/null; then
   19910 			:
   19911 		else
   19912 			LIBS="$LIBS -lgdi32"
   19913 		fi
   19914 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
   19915 $as_echo_n "checking for compress in -lz... " >&6; }
   19916 if ${ac_cv_lib_z_compress+:} false; then :
   19917   $as_echo_n "(cached) " >&6
   19918 else
   19919   ac_check_lib_save_LIBS=$LIBS
   19920 LIBS="-lz  $LIBS"
   19921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19922 /* end confdefs.h.  */
   19923 
   19924 /* Override any GCC internal prototype to avoid an error.
   19925    Use char because int might match the return type of a GCC
   19926    builtin and then its argument prototype would still apply.  */
   19927 #ifdef __cplusplus
   19928 extern "C"
   19929 #endif
   19930 char compress ();
   19931 int
   19932 main ()
   19933 {
   19934 return compress ();
   19935   ;
   19936   return 0;
   19937 }
   19938 _ACEOF
   19939 if ac_fn_c_try_link "$LINENO"; then :
   19940   ac_cv_lib_z_compress=yes
   19941 else
   19942   ac_cv_lib_z_compress=no
   19943 fi
   19944 rm -f core conftest.err conftest.$ac_objext \
   19945     conftest$ac_exeext conftest.$ac_ext
   19946 LIBS=$ac_check_lib_save_LIBS
   19947 fi
   19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
   19949 $as_echo "$ac_cv_lib_z_compress" >&6; }
   19950 if test "x$ac_cv_lib_z_compress" = xyes; then :
   19951    LIBS="$LIBS -lz"
   19952 fi
   19953 
   19954 		LIBS="$LIBS -l:libssp.a"
   19955 	fi
   19956 fi
   19957 
   19958 # set lock checking if requested
   19959 # Check whether --enable-lock_checks was given.
   19960 if test "${enable_lock_checks+set}" = set; then :
   19961   enableval=$enable_lock_checks;
   19962 fi
   19963 
   19964 if test x_$enable_lock_checks = x_yes; then
   19965 
   19966 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
   19967 
   19968 	CHECKLOCK_OBJ="checklocks.lo"
   19969 
   19970 fi
   19971 
   19972 
   19973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
   19974 $as_echo_n "checking for getaddrinfo... " >&6; }
   19975 ac_cv_func_getaddrinfo=no
   19976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19977 /* end confdefs.h.  */
   19978 
   19979 #ifdef __cplusplus
   19980 extern "C"
   19981 {
   19982 #endif
   19983 char* getaddrinfo();
   19984 char* (*f) () = getaddrinfo;
   19985 #ifdef __cplusplus
   19986 }
   19987 #endif
   19988 int main(void) {
   19989         ;
   19990         return 0;
   19991 }
   19992 
   19993 _ACEOF
   19994 if ac_fn_c_try_link "$LINENO"; then :
   19995   ac_cv_func_getaddrinfo="yes"
   19996 if test "$ac_cv_header_windows_h" = "yes"; then
   19997 
   19998 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
   19999 
   20000 	USE_WINSOCK="1"
   20001 	if echo $LIBS | grep 'lws2_32' >/dev/null; then
   20002 		:
   20003 	else
   20004 		LIBS="$LIBS -lws2_32"
   20005 	fi
   20006 fi
   20007 
   20008 else
   20009   ORIGLIBS="$LIBS"
   20010 LIBS="$LIBS -lws2_32"
   20011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20012 /* end confdefs.h.  */
   20013 
   20014 #ifdef HAVE_WS2TCPIP_H
   20015 #include <ws2tcpip.h>
   20016 #endif
   20017 
   20018 int
   20019 main ()
   20020 {
   20021 
   20022         (void)getaddrinfo(NULL, NULL, NULL, NULL);
   20023 
   20024 
   20025   ;
   20026   return 0;
   20027 }
   20028 _ACEOF
   20029 if ac_fn_c_try_link "$LINENO"; then :
   20030 
   20031 ac_cv_func_getaddrinfo="yes"
   20032 
   20033 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
   20034 
   20035 USE_WINSOCK="1"
   20036 
   20037 else
   20038 
   20039 ac_cv_func_getaddrinfo="no"
   20040 LIBS="$ORIGLIBS"
   20041 
   20042 fi
   20043 rm -f core conftest.err conftest.$ac_objext \
   20044     conftest$ac_exeext conftest.$ac_ext
   20045 
   20046 fi
   20047 rm -f core conftest.err conftest.$ac_objext \
   20048     conftest$ac_exeext conftest.$ac_ext
   20049 
   20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
   20051 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
   20052 if test $ac_cv_func_getaddrinfo = yes; then
   20053 
   20054 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
   20055 
   20056 fi
   20057 
   20058 if test "$USE_WINSOCK" = 1; then
   20059 
   20060 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
   20061 
   20062 	for ac_header in iphlpapi.h
   20063 do :
   20064   ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
   20065 #include <windows.h>
   20066 
   20067 "
   20068 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
   20069   cat >>confdefs.h <<_ACEOF
   20070 #define HAVE_IPHLPAPI_H 1
   20071 _ACEOF
   20072 
   20073 fi
   20074 
   20075 done
   20076 
   20077 	if test -n "$ac_tool_prefix"; then
   20078   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
   20079 set dummy ${ac_tool_prefix}windres; ac_word=$2
   20080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20081 $as_echo_n "checking for $ac_word... " >&6; }
   20082 if ${ac_cv_prog_WINDRES+:} false; then :
   20083   $as_echo_n "(cached) " >&6
   20084 else
   20085   if test -n "$WINDRES"; then
   20086   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   20087 else
   20088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20089 for as_dir in $PATH
   20090 do
   20091   IFS=$as_save_IFS
   20092   test -z "$as_dir" && as_dir=.
   20093     for ac_exec_ext in '' $ac_executable_extensions; do
   20094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20095     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
   20096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20097     break 2
   20098   fi
   20099 done
   20100   done
   20101 IFS=$as_save_IFS
   20102 
   20103 fi
   20104 fi
   20105 WINDRES=$ac_cv_prog_WINDRES
   20106 if test -n "$WINDRES"; then
   20107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   20108 $as_echo "$WINDRES" >&6; }
   20109 else
   20110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20111 $as_echo "no" >&6; }
   20112 fi
   20113 
   20114 
   20115 fi
   20116 if test -z "$ac_cv_prog_WINDRES"; then
   20117   ac_ct_WINDRES=$WINDRES
   20118   # Extract the first word of "windres", so it can be a program name with args.
   20119 set dummy windres; ac_word=$2
   20120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20121 $as_echo_n "checking for $ac_word... " >&6; }
   20122 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
   20123   $as_echo_n "(cached) " >&6
   20124 else
   20125   if test -n "$ac_ct_WINDRES"; then
   20126   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
   20127 else
   20128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20129 for as_dir in $PATH
   20130 do
   20131   IFS=$as_save_IFS
   20132   test -z "$as_dir" && as_dir=.
   20133     for ac_exec_ext in '' $ac_executable_extensions; do
   20134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20135     ac_cv_prog_ac_ct_WINDRES="windres"
   20136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20137     break 2
   20138   fi
   20139 done
   20140   done
   20141 IFS=$as_save_IFS
   20142 
   20143 fi
   20144 fi
   20145 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
   20146 if test -n "$ac_ct_WINDRES"; then
   20147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
   20148 $as_echo "$ac_ct_WINDRES" >&6; }
   20149 else
   20150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20151 $as_echo "no" >&6; }
   20152 fi
   20153 
   20154   if test "x$ac_ct_WINDRES" = x; then
   20155     WINDRES=""
   20156   else
   20157     case $cross_compiling:$ac_tool_warned in
   20158 yes:)
   20159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   20160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   20161 ac_tool_warned=yes ;;
   20162 esac
   20163     WINDRES=$ac_ct_WINDRES
   20164   fi
   20165 else
   20166   WINDRES="$ac_cv_prog_WINDRES"
   20167 fi
   20168 
   20169 	LIBS="$LIBS -liphlpapi -lcrypt32"
   20170 	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
   20171 
   20172 	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
   20173 
   20174 	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
   20175 
   20176 	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
   20177 
   20178 	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
   20179 
   20180 	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
   20181 
   20182 	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
   20183 
   20184 	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
   20185 
   20186 
   20187 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
   20188 
   20189 fi
   20190 if test $ac_cv_func_getaddrinfo = no; then
   20191 	case " $LIBOBJS " in
   20192   *" fake-rfc2553.$ac_objext "* ) ;;
   20193   *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
   20194  ;;
   20195 esac
   20196 
   20197 fi
   20198 # check after getaddrinfo for its libraries
   20199 
   20200 # check ioctlsocket
   20201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
   20202 $as_echo_n "checking for ioctlsocket... " >&6; }
   20203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20204 /* end confdefs.h.  */
   20205 
   20206 #ifdef HAVE_WINSOCK2_H
   20207 #include <winsock2.h>
   20208 #endif
   20209 
   20210 int
   20211 main ()
   20212 {
   20213 
   20214 	(void)ioctlsocket(0, 0, NULL);
   20215 
   20216   ;
   20217   return 0;
   20218 }
   20219 _ACEOF
   20220 if ac_fn_c_try_link "$LINENO"; then :
   20221 
   20222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20223 $as_echo "yes" >&6; }
   20224 
   20225 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
   20226 
   20227 
   20228 else
   20229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20230 $as_echo "no" >&6; }
   20231 fi
   20232 rm -f core conftest.err conftest.$ac_objext \
   20233     conftest$ac_exeext conftest.$ac_ext
   20234 
   20235 
   20236 # see if daemon(3) exists, and if it is deprecated.
   20237 for ac_func in daemon
   20238 do :
   20239   ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
   20240 if test "x$ac_cv_func_daemon" = xyes; then :
   20241   cat >>confdefs.h <<_ACEOF
   20242 #define HAVE_DAEMON 1
   20243 _ACEOF
   20244 
   20245 fi
   20246 done
   20247 
   20248 if test $ac_cv_func_daemon = yes; then
   20249 
   20250 
   20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
   20252 $as_echo_n "checking if daemon is deprecated... " >&6; }
   20253 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
   20254 if eval \${cv_cc_deprecated_$cache+:} false; then :
   20255   $as_echo_n "(cached) " >&6
   20256 else
   20257 
   20258 echo '
   20259 #include <stdlib.h>
   20260 #include <unistd.h>
   20261 ' >conftest.c
   20262 echo 'void f(void){ (void)daemon(0, 0); }' >>conftest.c
   20263 if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then
   20264 eval "cv_cc_deprecated_$cache=no"
   20265 else
   20266 eval "cv_cc_deprecated_$cache=yes"
   20267 fi
   20268 rm -f conftest conftest.o conftest.c
   20269 
   20270 fi
   20271 
   20272 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
   20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20274 $as_echo "yes" >&6; }
   20275 
   20276 cat >>confdefs.h <<_ACEOF
   20277 #define DEPRECATED_DAEMON 1
   20278 _ACEOF
   20279 
   20280 :
   20281 
   20282 else
   20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20284 $as_echo "no" >&6; }
   20285 :
   20286 
   20287 fi
   20288 
   20289 fi
   20290 
   20291 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
   20292 $ac_includes_default
   20293 #ifdef HAVE_SYS_UN_H
   20294 #include <sys/un.h>
   20295 #endif
   20296 
   20297 "
   20298 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
   20299 
   20300 cat >>confdefs.h <<_ACEOF
   20301 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
   20302 _ACEOF
   20303 
   20304 
   20305 fi
   20306 
   20307 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
   20308 $ac_includes_default
   20309 #if HAVE_SYS_PARAM_H
   20310 #include <sys/param.h>
   20311 #endif
   20312 
   20313 #ifdef HAVE_SYS_SOCKET_H
   20314 #include <sys/socket.h>
   20315 #endif
   20316 
   20317 #ifdef HAVE_SYS_UIO_H
   20318 #include <sys/uio.h>
   20319 #endif
   20320 
   20321 #ifdef HAVE_NETINET_IN_H
   20322 #include <netinet/in.h>
   20323 #endif
   20324 
   20325 #ifdef HAVE_NETINET_TCP_H
   20326 #include <netinet/tcp.h>
   20327 #endif
   20328 
   20329 #ifdef HAVE_ARPA_INET_H
   20330 #include <arpa/inet.h>
   20331 #endif
   20332 
   20333 #ifdef HAVE_WINSOCK2_H
   20334 #include <winsock2.h>
   20335 #endif
   20336 
   20337 #ifdef HAVE_WS2TCPIP_H
   20338 #include <ws2tcpip.h>
   20339 #endif
   20340 
   20341 "
   20342 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
   20343 
   20344 cat >>confdefs.h <<_ACEOF
   20345 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
   20346 _ACEOF
   20347 
   20348 
   20349 fi
   20350 
   20351 
   20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
   20353 $as_echo_n "checking for htobe64... " >&6; }
   20354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20355 /* end confdefs.h.  */
   20356 
   20357 #include <stdio.h>
   20358 #ifdef HAVE_ENDIAN_H
   20359 #  include <endian.h>
   20360 #endif
   20361 #ifdef HAVE_SYS_ENDIAN_H
   20362 #  include <sys/endian.h>
   20363 #endif
   20364 
   20365 int
   20366 main ()
   20367 {
   20368 unsigned long long x = htobe64(0); printf("%u", (unsigned)x);
   20369   ;
   20370   return 0;
   20371 }
   20372 _ACEOF
   20373 if ac_fn_c_try_link "$LINENO"; then :
   20374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20375 $as_echo "yes" >&6; }
   20376 
   20377 $as_echo "#define HAVE_HTOBE64 1" >>confdefs.h
   20378 
   20379 else
   20380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20381 $as_echo "no" >&6; }
   20382 fi
   20383 rm -f core conftest.err conftest.$ac_objext \
   20384     conftest$ac_exeext conftest.$ac_ext
   20385 
   20386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
   20387 $as_echo_n "checking for be64toh... " >&6; }
   20388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20389 /* end confdefs.h.  */
   20390 
   20391 #include <stdio.h>
   20392 #ifdef HAVE_ENDIAN_H
   20393 #  include <endian.h>
   20394 #endif
   20395 #ifdef HAVE_SYS_ENDIAN_H
   20396 #  include <sys/endian.h>
   20397 #endif
   20398 
   20399 int
   20400 main ()
   20401 {
   20402 unsigned long long x = be64toh(0); printf("%u", (unsigned)x);
   20403   ;
   20404   return 0;
   20405 }
   20406 _ACEOF
   20407 if ac_fn_c_try_link "$LINENO"; then :
   20408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20409 $as_echo "yes" >&6; }
   20410 
   20411 $as_echo "#define HAVE_BE64TOH 1" >>confdefs.h
   20412 
   20413 else
   20414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20415 $as_echo "no" >&6; }
   20416 fi
   20417 rm -f core conftest.err conftest.$ac_objext \
   20418     conftest$ac_exeext conftest.$ac_ext
   20419 
   20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
   20421 $as_echo_n "checking for library containing setusercontext... " >&6; }
   20422 if ${ac_cv_search_setusercontext+:} false; then :
   20423   $as_echo_n "(cached) " >&6
   20424 else
   20425   ac_func_search_save_LIBS=$LIBS
   20426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20427 /* end confdefs.h.  */
   20428 
   20429 /* Override any GCC internal prototype to avoid an error.
   20430    Use char because int might match the return type of a GCC
   20431    builtin and then its argument prototype would still apply.  */
   20432 #ifdef __cplusplus
   20433 extern "C"
   20434 #endif
   20435 char setusercontext ();
   20436 int
   20437 main ()
   20438 {
   20439 return setusercontext ();
   20440   ;
   20441   return 0;
   20442 }
   20443 _ACEOF
   20444 for ac_lib in '' util; do
   20445   if test -z "$ac_lib"; then
   20446     ac_res="none required"
   20447   else
   20448     ac_res=-l$ac_lib
   20449     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20450   fi
   20451   if ac_fn_c_try_link "$LINENO"; then :
   20452   ac_cv_search_setusercontext=$ac_res
   20453 fi
   20454 rm -f core conftest.err conftest.$ac_objext \
   20455     conftest$ac_exeext
   20456   if ${ac_cv_search_setusercontext+:} false; then :
   20457   break
   20458 fi
   20459 done
   20460 if ${ac_cv_search_setusercontext+:} false; then :
   20461 
   20462 else
   20463   ac_cv_search_setusercontext=no
   20464 fi
   20465 rm conftest.$ac_ext
   20466 LIBS=$ac_func_search_save_LIBS
   20467 fi
   20468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
   20469 $as_echo "$ac_cv_search_setusercontext" >&6; }
   20470 ac_res=$ac_cv_search_setusercontext
   20471 if test "$ac_res" != no; then :
   20472   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20473 
   20474 fi
   20475 
   20476 for ac_func in tzset sigprocmask fcntl getpwnam endpwent getrlimit setrlimit setsid chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent fsync shmget accept4 getifaddrs if_nametoindex poll gettid
   20477 do :
   20478   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20479 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   20480 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   20481   cat >>confdefs.h <<_ACEOF
   20482 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20483 _ACEOF
   20484 
   20485 fi
   20486 done
   20487 
   20488 for ac_func in setresuid
   20489 do :
   20490   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
   20491 if test "x$ac_cv_func_setresuid" = xyes; then :
   20492   cat >>confdefs.h <<_ACEOF
   20493 #define HAVE_SETRESUID 1
   20494 _ACEOF
   20495 
   20496 else
   20497   for ac_func in setreuid
   20498 do :
   20499   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
   20500 if test "x$ac_cv_func_setreuid" = xyes; then :
   20501   cat >>confdefs.h <<_ACEOF
   20502 #define HAVE_SETREUID 1
   20503 _ACEOF
   20504 
   20505 fi
   20506 done
   20507 
   20508 fi
   20509 done
   20510 
   20511 for ac_func in setresgid
   20512 do :
   20513   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
   20514 if test "x$ac_cv_func_setresgid" = xyes; then :
   20515   cat >>confdefs.h <<_ACEOF
   20516 #define HAVE_SETRESGID 1
   20517 _ACEOF
   20518 
   20519 else
   20520   for ac_func in setregid
   20521 do :
   20522   ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
   20523 if test "x$ac_cv_func_setregid" = xyes; then :
   20524   cat >>confdefs.h <<_ACEOF
   20525 #define HAVE_SETREGID 1
   20526 _ACEOF
   20527 
   20528 fi
   20529 done
   20530 
   20531 fi
   20532 done
   20533 
   20534 
   20535 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
   20536 if echo $host_os | grep darwin8 > /dev/null; then
   20537 
   20538 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
   20539 
   20540 fi
   20541 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
   20542 $ac_includes_default
   20543 #ifdef HAVE_NETINET_IN_H
   20544 #include <netinet/in.h>
   20545 #endif
   20546 
   20547 #ifdef HAVE_NETINET_TCP_H
   20548 #include <netinet/tcp.h>
   20549 #endif
   20550 
   20551 #ifdef HAVE_ARPA_INET_H
   20552 #include <arpa/inet.h>
   20553 #endif
   20554 
   20555 #ifdef HAVE_WINSOCK2_H
   20556 #include <winsock2.h>
   20557 #endif
   20558 
   20559 #ifdef HAVE_WS2TCPIP_H
   20560 #include <ws2tcpip.h>
   20561 #endif
   20562 
   20563 "
   20564 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
   20565   ac_have_decl=1
   20566 else
   20567   ac_have_decl=0
   20568 fi
   20569 
   20570 cat >>confdefs.h <<_ACEOF
   20571 #define HAVE_DECL_INET_PTON $ac_have_decl
   20572 _ACEOF
   20573 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
   20574 $ac_includes_default
   20575 #ifdef HAVE_NETINET_IN_H
   20576 #include <netinet/in.h>
   20577 #endif
   20578 
   20579 #ifdef HAVE_NETINET_TCP_H
   20580 #include <netinet/tcp.h>
   20581 #endif
   20582 
   20583 #ifdef HAVE_ARPA_INET_H
   20584 #include <arpa/inet.h>
   20585 #endif
   20586 
   20587 #ifdef HAVE_WINSOCK2_H
   20588 #include <winsock2.h>
   20589 #endif
   20590 
   20591 #ifdef HAVE_WS2TCPIP_H
   20592 #include <ws2tcpip.h>
   20593 #endif
   20594 
   20595 "
   20596 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
   20597   ac_have_decl=1
   20598 else
   20599   ac_have_decl=0
   20600 fi
   20601 
   20602 cat >>confdefs.h <<_ACEOF
   20603 #define HAVE_DECL_INET_NTOP $ac_have_decl
   20604 _ACEOF
   20605 
   20606 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
   20607 if test "x$ac_cv_func_inet_aton" = xyes; then :
   20608   $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
   20609 
   20610 else
   20611   case " $LIBOBJS " in
   20612   *" inet_aton.$ac_objext "* ) ;;
   20613   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
   20614  ;;
   20615 esac
   20616 
   20617 fi
   20618 
   20619 
   20620 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
   20621 if test "x$ac_cv_func_inet_pton" = xyes; then :
   20622   $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
   20623 
   20624 else
   20625   case " $LIBOBJS " in
   20626   *" inet_pton.$ac_objext "* ) ;;
   20627   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
   20628  ;;
   20629 esac
   20630 
   20631 fi
   20632 
   20633 
   20634 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
   20635 if test "x$ac_cv_func_inet_ntop" = xyes; then :
   20636   $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
   20637 
   20638 else
   20639   case " $LIBOBJS " in
   20640   *" inet_ntop.$ac_objext "* ) ;;
   20641   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
   20642  ;;
   20643 esac
   20644 
   20645 fi
   20646 
   20647 
   20648 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
   20649 if test "x$ac_cv_func_snprintf" = xyes; then :
   20650   $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
   20651 
   20652 else
   20653   case " $LIBOBJS " in
   20654   *" snprintf.$ac_objext "* ) ;;
   20655   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
   20656  ;;
   20657 esac
   20658 
   20659 fi
   20660 
   20661 
   20662 # test if snprintf return the proper length
   20663 if test "x$ac_cv_func_snprintf" = xyes; then
   20664     if test c${cross_compiling} = cno; then
   20665 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
   20666 $as_echo_n "checking for correct snprintf return value... " >&6; }
   20667 	if test "$cross_compiling" = yes; then :
   20668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
   20669 $as_echo "maybe" >&6; }
   20670 else
   20671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20672 /* end confdefs.h.  */
   20673 $ac_includes_default
   20674 
   20675 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
   20676 
   20677 _ACEOF
   20678 if ac_fn_c_try_run "$LINENO"; then :
   20679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20680 $as_echo "yes" >&6; }
   20681 else
   20682 
   20683 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20684 $as_echo "no" >&6; }
   20685 
   20686 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
   20687 
   20688 		case " $LIBOBJS " in
   20689   *" snprintf.$ac_objext "* ) ;;
   20690   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
   20691  ;;
   20692 esac
   20693 
   20694 
   20695 fi
   20696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   20697   conftest.$ac_objext conftest.beam conftest.$ac_ext
   20698 fi
   20699 
   20700     fi
   20701 fi
   20702 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
   20703 if test "x$ac_cv_func_strlcat" = xyes; then :
   20704   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
   20705 
   20706 else
   20707   case " $LIBOBJS " in
   20708   *" strlcat.$ac_objext "* ) ;;
   20709   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
   20710  ;;
   20711 esac
   20712 
   20713 fi
   20714 
   20715 
   20716 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
   20717 if test "x$ac_cv_func_strlcpy" = xyes; then :
   20718   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
   20719 
   20720 else
   20721   case " $LIBOBJS " in
   20722   *" strlcpy.$ac_objext "* ) ;;
   20723   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
   20724  ;;
   20725 esac
   20726 
   20727 fi
   20728 
   20729 
   20730 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
   20731 if test "x$ac_cv_func_memmove" = xyes; then :
   20732   $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
   20733 
   20734 else
   20735   case " $LIBOBJS " in
   20736   *" memmove.$ac_objext "* ) ;;
   20737   *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
   20738  ;;
   20739 esac
   20740 
   20741 fi
   20742 
   20743 
   20744 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
   20745 if test "x$ac_cv_func_gmtime_r" = xyes; then :
   20746   $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
   20747 
   20748 else
   20749   case " $LIBOBJS " in
   20750   *" gmtime_r.$ac_objext "* ) ;;
   20751   *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
   20752  ;;
   20753 esac
   20754 
   20755 fi
   20756 
   20757 
   20758 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
   20759 if test "x$ac_cv_func_isblank" = xyes; then :
   20760   $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
   20761 
   20762 else
   20763   case " $LIBOBJS " in
   20764   *" isblank.$ac_objext "* ) ;;
   20765   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
   20766  ;;
   20767 esac
   20768 
   20769 fi
   20770 
   20771 
   20772 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
   20773 if test "x$ac_cv_func_explicit_bzero" = xyes; then :
   20774   $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
   20775 
   20776 else
   20777   case " $LIBOBJS " in
   20778   *" explicit_bzero.$ac_objext "* ) ;;
   20779   *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
   20780  ;;
   20781 esac
   20782 
   20783 fi
   20784 
   20785 
   20786 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
   20787 
   20788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
   20789 $as_echo_n "checking for reallocarray... " >&6; }
   20790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20791 /* end confdefs.h.  */
   20792 $ac_includes_default
   20793 
   20794 #ifndef _OPENBSD_SOURCE
   20795 #define _OPENBSD_SOURCE 1
   20796 #endif
   20797 #include <stdlib.h>
   20798 int main(void) {
   20799 	void* p = reallocarray(NULL, 10, 100);
   20800 	free(p);
   20801 	return 0;
   20802 }
   20803 
   20804 _ACEOF
   20805 if ac_fn_c_try_link "$LINENO"; then :
   20806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20807 $as_echo "yes" >&6; }
   20808 
   20809 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
   20810 
   20811 
   20812 else
   20813 
   20814 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20815 $as_echo "no" >&6; }
   20816 	case " $LIBOBJS " in
   20817   *" reallocarray.$ac_objext "* ) ;;
   20818   *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
   20819  ;;
   20820 esac
   20821 
   20822 
   20823 fi
   20824 rm -f core conftest.err conftest.$ac_objext \
   20825     conftest$ac_exeext conftest.$ac_ext
   20826 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
   20827 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
   20828   ac_have_decl=1
   20829 else
   20830   ac_have_decl=0
   20831 fi
   20832 
   20833 cat >>confdefs.h <<_ACEOF
   20834 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
   20835 _ACEOF
   20836 
   20837 if test "$USE_NSS" = "no"; then
   20838 	ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
   20839 if test "x$ac_cv_func_arc4random" = xyes; then :
   20840   $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
   20841 
   20842 else
   20843   case " $LIBOBJS " in
   20844   *" arc4random.$ac_objext "* ) ;;
   20845   *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
   20846  ;;
   20847 esac
   20848 
   20849 fi
   20850 
   20851 
   20852 	ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
   20853 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
   20854   $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
   20855 
   20856 else
   20857   case " $LIBOBJS " in
   20858   *" arc4random_uniform.$ac_objext "* ) ;;
   20859   *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
   20860  ;;
   20861 esac
   20862 
   20863 fi
   20864 
   20865 
   20866 	if test "$ac_cv_func_arc4random" = "no"; then
   20867 		case " $LIBOBJS " in
   20868   *" arc4_lock.$ac_objext "* ) ;;
   20869   *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
   20870  ;;
   20871 esac
   20872 
   20873 		for ac_func in getentropy
   20874 do :
   20875   ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
   20876 if test "x$ac_cv_func_getentropy" = xyes; then :
   20877   cat >>confdefs.h <<_ACEOF
   20878 #define HAVE_GETENTROPY 1
   20879 _ACEOF
   20880 
   20881 else
   20882 
   20883 		    if test "$USE_WINSOCK" = 1; then
   20884 			case " $LIBOBJS " in
   20885   *" getentropy_win.$ac_objext "* ) ;;
   20886   *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
   20887  ;;
   20888 esac
   20889 
   20890 		    else
   20891 			case "$host" in
   20892 			Darwin|*darwin*)
   20893 				case " $LIBOBJS " in
   20894   *" getentropy_osx.$ac_objext "* ) ;;
   20895   *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
   20896  ;;
   20897 esac
   20898 
   20899 			;;
   20900 			*solaris*|*sunos*|SunOS)
   20901 				case " $LIBOBJS " in
   20902   *" getentropy_solaris.$ac_objext "* ) ;;
   20903   *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
   20904  ;;
   20905 esac
   20906 
   20907 				for ac_header in sys/sha2.h
   20908 do :
   20909   ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
   20910 "
   20911 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
   20912   cat >>confdefs.h <<_ACEOF
   20913 #define HAVE_SYS_SHA2_H 1
   20914 _ACEOF
   20915 
   20916 else
   20917 
   20918 					for ac_func in SHA512_Update
   20919 do :
   20920   ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
   20921 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
   20922   cat >>confdefs.h <<_ACEOF
   20923 #define HAVE_SHA512_UPDATE 1
   20924 _ACEOF
   20925 
   20926 else
   20927 
   20928 						case " $LIBOBJS " in
   20929   *" sha512.$ac_objext "* ) ;;
   20930   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
   20931  ;;
   20932 esac
   20933 
   20934 
   20935 fi
   20936 done
   20937 
   20938 
   20939 fi
   20940 
   20941 done
   20942 
   20943 				if test "$ac_cv_header_sys_sha2_h" = "yes"; then
   20944 					# this lib needed for sha2 on solaris
   20945 					LIBS="$LIBS -lmd"
   20946 				fi
   20947 				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   20948 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   20949 if ${ac_cv_search_clock_gettime+:} false; then :
   20950   $as_echo_n "(cached) " >&6
   20951 else
   20952   ac_func_search_save_LIBS=$LIBS
   20953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20954 /* end confdefs.h.  */
   20955 
   20956 /* Override any GCC internal prototype to avoid an error.
   20957    Use char because int might match the return type of a GCC
   20958    builtin and then its argument prototype would still apply.  */
   20959 #ifdef __cplusplus
   20960 extern "C"
   20961 #endif
   20962 char clock_gettime ();
   20963 int
   20964 main ()
   20965 {
   20966 return clock_gettime ();
   20967   ;
   20968   return 0;
   20969 }
   20970 _ACEOF
   20971 for ac_lib in '' rt; do
   20972   if test -z "$ac_lib"; then
   20973     ac_res="none required"
   20974   else
   20975     ac_res=-l$ac_lib
   20976     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20977   fi
   20978   if ac_fn_c_try_link "$LINENO"; then :
   20979   ac_cv_search_clock_gettime=$ac_res
   20980 fi
   20981 rm -f core conftest.err conftest.$ac_objext \
   20982     conftest$ac_exeext
   20983   if ${ac_cv_search_clock_gettime+:} false; then :
   20984   break
   20985 fi
   20986 done
   20987 if ${ac_cv_search_clock_gettime+:} false; then :
   20988 
   20989 else
   20990   ac_cv_search_clock_gettime=no
   20991 fi
   20992 rm conftest.$ac_ext
   20993 LIBS=$ac_func_search_save_LIBS
   20994 fi
   20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   20996 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   20997 ac_res=$ac_cv_search_clock_gettime
   20998 if test "$ac_res" != no; then :
   20999   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   21000 
   21001 fi
   21002 
   21003 			;;
   21004 			*freebsd*|*FreeBSD)
   21005 				case " $LIBOBJS " in
   21006   *" getentropy_freebsd.$ac_objext "* ) ;;
   21007   *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
   21008  ;;
   21009 esac
   21010 
   21011 			;;
   21012 			*linux*|Linux|*)
   21013 				case " $LIBOBJS " in
   21014   *" getentropy_linux.$ac_objext "* ) ;;
   21015   *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
   21016  ;;
   21017 esac
   21018 
   21019 				for ac_func in SHA512_Update
   21020 do :
   21021   ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
   21022 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
   21023   cat >>confdefs.h <<_ACEOF
   21024 #define HAVE_SHA512_UPDATE 1
   21025 _ACEOF
   21026 
   21027 else
   21028 
   21029 
   21030 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
   21031 
   21032 					case " $LIBOBJS " in
   21033   *" sha512.$ac_objext "* ) ;;
   21034   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
   21035  ;;
   21036 esac
   21037 
   21038 
   21039 fi
   21040 done
   21041 
   21042 				for ac_header in sys/sysctl.h
   21043 do :
   21044   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
   21045 "
   21046 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
   21047   cat >>confdefs.h <<_ACEOF
   21048 #define HAVE_SYS_SYSCTL_H 1
   21049 _ACEOF
   21050 
   21051 fi
   21052 
   21053 done
   21054 
   21055 				for ac_func in getauxval
   21056 do :
   21057   ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
   21058 if test "x$ac_cv_func_getauxval" = xyes; then :
   21059   cat >>confdefs.h <<_ACEOF
   21060 #define HAVE_GETAUXVAL 1
   21061 _ACEOF
   21062 
   21063 fi
   21064 done
   21065 
   21066 				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   21067 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   21068 if ${ac_cv_search_clock_gettime+:} false; then :
   21069   $as_echo_n "(cached) " >&6
   21070 else
   21071   ac_func_search_save_LIBS=$LIBS
   21072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21073 /* end confdefs.h.  */
   21074 
   21075 /* Override any GCC internal prototype to avoid an error.
   21076    Use char because int might match the return type of a GCC
   21077    builtin and then its argument prototype would still apply.  */
   21078 #ifdef __cplusplus
   21079 extern "C"
   21080 #endif
   21081 char clock_gettime ();
   21082 int
   21083 main ()
   21084 {
   21085 return clock_gettime ();
   21086   ;
   21087   return 0;
   21088 }
   21089 _ACEOF
   21090 for ac_lib in '' rt; do
   21091   if test -z "$ac_lib"; then
   21092     ac_res="none required"
   21093   else
   21094     ac_res=-l$ac_lib
   21095     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   21096   fi
   21097   if ac_fn_c_try_link "$LINENO"; then :
   21098   ac_cv_search_clock_gettime=$ac_res
   21099 fi
   21100 rm -f core conftest.err conftest.$ac_objext \
   21101     conftest$ac_exeext
   21102   if ${ac_cv_search_clock_gettime+:} false; then :
   21103   break
   21104 fi
   21105 done
   21106 if ${ac_cv_search_clock_gettime+:} false; then :
   21107 
   21108 else
   21109   ac_cv_search_clock_gettime=no
   21110 fi
   21111 rm conftest.$ac_ext
   21112 LIBS=$ac_func_search_save_LIBS
   21113 fi
   21114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   21115 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   21116 ac_res=$ac_cv_search_clock_gettime
   21117 if test "$ac_res" != no; then :
   21118   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   21119 
   21120 fi
   21121 
   21122 			;;
   21123 			esac
   21124 		    fi
   21125 
   21126 fi
   21127 done
   21128 
   21129 	fi
   21130 fi
   21131 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
   21132 
   21133 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
   21134 if test "x$ac_cv_func_ctime_r" = xyes; then :
   21135   $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
   21136 
   21137 else
   21138   case " $LIBOBJS " in
   21139   *" ctime_r.$ac_objext "* ) ;;
   21140   *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
   21141  ;;
   21142 esac
   21143 
   21144 fi
   21145 
   21146 
   21147 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
   21148 if test "x$ac_cv_func_strsep" = xyes; then :
   21149   $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
   21150 
   21151 else
   21152   case " $LIBOBJS " in
   21153   *" strsep.$ac_objext "* ) ;;
   21154   *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
   21155  ;;
   21156 esac
   21157 
   21158 fi
   21159 
   21160 
   21161 
   21162 # Check whether --enable-allsymbols was given.
   21163 if test "${enable_allsymbols+set}" = set; then :
   21164   enableval=$enable_allsymbols;
   21165 fi
   21166 
   21167 case "$enable_allsymbols" in
   21168 	yes)
   21169 	COMMON_OBJ_ALL_SYMBOLS=""
   21170 	UBSYMS=""
   21171 	EXTRALINK="libunbound.la"
   21172 
   21173 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
   21174 
   21175 	;;
   21176 	no|*)
   21177 	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
   21178 	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
   21179 	EXTRALINK=""
   21180 	;;
   21181 esac
   21182 
   21183 
   21184 
   21185 if test x_$enable_lock_checks = x_yes; then
   21186 	UBSYMS="-export-symbols clubsyms.def"
   21187 	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
   21188 	echo lock_protect >> clubsyms.def
   21189 	echo lock_unprotect >> clubsyms.def
   21190 	echo lock_get_mem >> clubsyms.def
   21191 	echo checklock_start >> clubsyms.def
   21192 	echo checklock_stop >> clubsyms.def
   21193 	echo checklock_lock >> clubsyms.def
   21194 	echo checklock_unlock >> clubsyms.def
   21195 	echo checklock_init >> clubsyms.def
   21196 	echo checklock_thrcreate >> clubsyms.def
   21197 	echo checklock_thrjoin >> clubsyms.def
   21198 fi
   21199 
   21200 # check for dnstap if requested
   21201 
   21202   # Check whether --enable-dnstap was given.
   21203 if test "${enable_dnstap+set}" = set; then :
   21204   enableval=$enable_dnstap; opt_dnstap=$enableval
   21205 else
   21206   opt_dnstap=no
   21207 fi
   21208 
   21209 
   21210 
   21211 # Check whether --with-dnstap-socket-path was given.
   21212 if test "${with_dnstap_socket_path+set}" = set; then :
   21213   withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
   21214 else
   21215   opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
   21216 fi
   21217 
   21218 
   21219   if test "x$opt_dnstap" != "xno"; then
   21220     # Extract the first word of "protoc-c", so it can be a program name with args.
   21221 set dummy protoc-c; ac_word=$2
   21222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21223 $as_echo_n "checking for $ac_word... " >&6; }
   21224 if ${ac_cv_path_PROTOC_C+:} false; then :
   21225   $as_echo_n "(cached) " >&6
   21226 else
   21227   case $PROTOC_C in
   21228   [\\/]* | ?:[\\/]*)
   21229   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   21230   ;;
   21231   *)
   21232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21233 for as_dir in $PATH
   21234 do
   21235   IFS=$as_save_IFS
   21236   test -z "$as_dir" && as_dir=.
   21237     for ac_exec_ext in '' $ac_executable_extensions; do
   21238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21239     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   21240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21241     break 2
   21242   fi
   21243 done
   21244   done
   21245 IFS=$as_save_IFS
   21246 
   21247   ;;
   21248 esac
   21249 fi
   21250 PROTOC_C=$ac_cv_path_PROTOC_C
   21251 if test -n "$PROTOC_C"; then
   21252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   21253 $as_echo "$PROTOC_C" >&6; }
   21254 else
   21255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21256 $as_echo "no" >&6; }
   21257 fi
   21258 
   21259 
   21260     if test -z "$PROTOC_C"; then
   21261       as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
   21262     fi
   21263 
   21264 # Check whether --with-protobuf-c was given.
   21265 if test "${with_protobuf_c+set}" = set; then :
   21266   withval=$with_protobuf_c;
   21267 	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
   21268 	  if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
   21269 	    CFLAGS="$CFLAGS -I$withval/include/google"
   21270 	  else
   21271 	    CFLAGS="$CFLAGS -I$withval/include"
   21272 	  fi
   21273 	  LDFLAGS="$LDFLAGS -L$withval/lib"
   21274 
   21275 else
   21276 
   21277 	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
   21278 	  if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
   21279 	    CFLAGS="$CFLAGS -I/usr/include/google"
   21280 	  else
   21281 	    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
   21282 	      CFLAGS="$CFLAGS -I/usr/local/include/google"
   21283 	      LDFLAGS="$LDFLAGS -L/usr/local/lib"
   21284 	    fi
   21285 	  fi
   21286 
   21287 fi
   21288 
   21289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
   21290 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
   21291 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   21292   $as_echo_n "(cached) " >&6
   21293 else
   21294   ac_func_search_save_LIBS=$LIBS
   21295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21296 /* end confdefs.h.  */
   21297 
   21298 /* Override any GCC internal prototype to avoid an error.
   21299    Use char because int might match the return type of a GCC
   21300    builtin and then its argument prototype would still apply.  */
   21301 #ifdef __cplusplus
   21302 extern "C"
   21303 #endif
   21304 char protobuf_c_message_pack ();
   21305 int
   21306 main ()
   21307 {
   21308 return protobuf_c_message_pack ();
   21309   ;
   21310   return 0;
   21311 }
   21312 _ACEOF
   21313 for ac_lib in '' protobuf-c; do
   21314   if test -z "$ac_lib"; then
   21315     ac_res="none required"
   21316   else
   21317     ac_res=-l$ac_lib
   21318     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   21319   fi
   21320   if ac_fn_c_try_link "$LINENO"; then :
   21321   ac_cv_search_protobuf_c_message_pack=$ac_res
   21322 fi
   21323 rm -f core conftest.err conftest.$ac_objext \
   21324     conftest$ac_exeext
   21325   if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   21326   break
   21327 fi
   21328 done
   21329 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   21330 
   21331 else
   21332   ac_cv_search_protobuf_c_message_pack=no
   21333 fi
   21334 rm conftest.$ac_ext
   21335 LIBS=$ac_func_search_save_LIBS
   21336 fi
   21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
   21338 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
   21339 ac_res=$ac_cv_search_protobuf_c_message_pack
   21340 if test "$ac_res" != no; then :
   21341   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   21342 
   21343 else
   21344   as_fn_error $? "The protobuf-c library was not found. Please install the development libraries for protobuf-c!" "$LINENO" 5
   21345 fi
   21346 
   21347 
   21348 
   21349 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
   21350 
   21351         ENABLE_DNSTAP=1
   21352 
   21353 
   21354 
   21355         hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
   21356 
   21357 
   21358 cat >>confdefs.h <<_ACEOF
   21359 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
   21360 _ACEOF
   21361 
   21362 	DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path"
   21363 
   21364 	DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)'
   21365 
   21366         DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c"
   21367 
   21368         DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo"
   21369 
   21370 
   21371   else
   21372 
   21373         ENABLE_DNSTAP=0
   21374 
   21375 
   21376 
   21377   fi
   21378 
   21379 
   21380 # check for dnscrypt if requested
   21381 
   21382   # Check whether --enable-dnscrypt was given.
   21383 if test "${enable_dnscrypt+set}" = set; then :
   21384   enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
   21385 else
   21386   opt_dnscrypt=no
   21387 fi
   21388 
   21389 
   21390   if test "x$opt_dnscrypt" != "xno"; then
   21391 
   21392 # Check whether --with-libsodium was given.
   21393 if test "${with_libsodium+set}" = set; then :
   21394   withval=$with_libsodium;
   21395 	CFLAGS="$CFLAGS -I$withval/include"
   21396 	LDFLAGS="$LDFLAGS -L$withval/lib"
   21397 
   21398 fi
   21399 
   21400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
   21401 $as_echo_n "checking for library containing sodium_init... " >&6; }
   21402 if ${ac_cv_search_sodium_init+:} false; then :
   21403   $as_echo_n "(cached) " >&6
   21404 else
   21405   ac_func_search_save_LIBS=$LIBS
   21406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21407 /* end confdefs.h.  */
   21408 
   21409 /* Override any GCC internal prototype to avoid an error.
   21410    Use char because int might match the return type of a GCC
   21411    builtin and then its argument prototype would still apply.  */
   21412 #ifdef __cplusplus
   21413 extern "C"
   21414 #endif
   21415 char sodium_init ();
   21416 int
   21417 main ()
   21418 {
   21419 return sodium_init ();
   21420   ;
   21421   return 0;
   21422 }
   21423 _ACEOF
   21424 for ac_lib in '' sodium; do
   21425   if test -z "$ac_lib"; then
   21426     ac_res="none required"
   21427   else
   21428     ac_res=-l$ac_lib
   21429     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   21430   fi
   21431   if ac_fn_c_try_link "$LINENO"; then :
   21432   ac_cv_search_sodium_init=$ac_res
   21433 fi
   21434 rm -f core conftest.err conftest.$ac_objext \
   21435     conftest$ac_exeext
   21436   if ${ac_cv_search_sodium_init+:} false; then :
   21437   break
   21438 fi
   21439 done
   21440 if ${ac_cv_search_sodium_init+:} false; then :
   21441 
   21442 else
   21443   ac_cv_search_sodium_init=no
   21444 fi
   21445 rm conftest.$ac_ext
   21446 LIBS=$ac_func_search_save_LIBS
   21447 fi
   21448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
   21449 $as_echo "$ac_cv_search_sodium_init" >&6; }
   21450 ac_res=$ac_cv_search_sodium_init
   21451 if test "$ac_res" != no; then :
   21452   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   21453 
   21454 else
   21455   as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
   21456 fi
   21457 
   21458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
   21459 $as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
   21460 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
   21461   $as_echo_n "(cached) " >&6
   21462 else
   21463   ac_func_search_save_LIBS=$LIBS
   21464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21465 /* end confdefs.h.  */
   21466 
   21467 /* Override any GCC internal prototype to avoid an error.
   21468    Use char because int might match the return type of a GCC
   21469    builtin and then its argument prototype would still apply.  */
   21470 #ifdef __cplusplus
   21471 extern "C"
   21472 #endif
   21473 char crypto_box_curve25519xchacha20poly1305_beforenm ();
   21474 int
   21475 main ()
   21476 {
   21477 return crypto_box_curve25519xchacha20poly1305_beforenm ();
   21478   ;
   21479   return 0;
   21480 }
   21481 _ACEOF
   21482 for ac_lib in '' sodium; do
   21483   if test -z "$ac_lib"; then
   21484     ac_res="none required"
   21485   else
   21486     ac_res=-l$ac_lib
   21487     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   21488   fi
   21489   if ac_fn_c_try_link "$LINENO"; then :
   21490   ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
   21491 fi
   21492 rm -f core conftest.err conftest.$ac_objext \
   21493     conftest$ac_exeext
   21494   if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
   21495   break
   21496 fi
   21497 done
   21498 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
   21499 
   21500 else
   21501   ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
   21502 fi
   21503 rm conftest.$ac_ext
   21504 LIBS=$ac_func_search_save_LIBS
   21505 fi
   21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
   21507 $as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
   21508 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
   21509 if test "$ac_res" != no; then :
   21510   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   21511 
   21512             ENABLE_DNSCRYPT_XCHACHA20=1
   21513 
   21514 
   21515 $as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
   21516 
   21517 
   21518 else
   21519 
   21520             ENABLE_DNSCRYPT_XCHACHA20=0
   21521 
   21522 
   21523 fi
   21524 
   21525     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
   21526 $as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
   21527 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
   21528   $as_echo_n "(cached) " >&6
   21529 else
   21530   ac_func_search_save_LIBS=$LIBS
   21531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21532 /* end confdefs.h.  */
   21533 
   21534 /* Override any GCC internal prototype to avoid an error.
   21535    Use char because int might match the return type of a GCC
   21536    builtin and then its argument prototype would still apply.  */
   21537 #ifdef __cplusplus
   21538 extern "C"
   21539 #endif
   21540 char sodium_set_misuse_handler ();
   21541 int
   21542 main ()
   21543 {
   21544 return sodium_set_misuse_handler ();
   21545   ;
   21546   return 0;
   21547 }
   21548 _ACEOF
   21549 for ac_lib in '' sodium; do
   21550   if test -z "$ac_lib"; then
   21551     ac_res="none required"
   21552   else
   21553     ac_res=-l$ac_lib
   21554     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   21555   fi
   21556   if ac_fn_c_try_link "$LINENO"; then :
   21557   ac_cv_search_sodium_set_misuse_handler=$ac_res
   21558 fi
   21559 rm -f core conftest.err conftest.$ac_objext \
   21560     conftest$ac_exeext
   21561   if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
   21562   break
   21563 fi
   21564 done
   21565 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
   21566 
   21567 else
   21568   ac_cv_search_sodium_set_misuse_handler=no
   21569 fi
   21570 rm conftest.$ac_ext
   21571 LIBS=$ac_func_search_save_LIBS
   21572 fi
   21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
   21574 $as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
   21575 ac_res=$ac_cv_search_sodium_set_misuse_handler
   21576 if test "$ac_res" != no; then :
   21577   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   21578 
   21579 
   21580 $as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
   21581 
   21582 
   21583 fi
   21584 
   21585 
   21586 
   21587 $as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
   21588 
   21589         ENABLE_DNSCRYPT=1
   21590 
   21591 
   21592         DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
   21593 
   21594         DNSCRYPT_OBJ="dnscrypt.lo"
   21595 
   21596 
   21597   else
   21598     ENABLE_DNSCRYPT_XCHACHA20=0
   21599 
   21600 
   21601         ENABLE_DNSCRYPT=0
   21602 
   21603 
   21604 
   21605   fi
   21606 
   21607 
   21608 # check for cachedb if requested
   21609 # Check whether --enable-cachedb was given.
   21610 if test "${enable_cachedb+set}" = set; then :
   21611   enableval=$enable_cachedb;
   21612 fi
   21613 
   21614 # turn on cachedb when hiredis support is enabled.
   21615 if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
   21616 case "$enable_cachedb" in
   21617     yes)
   21618 
   21619 $as_echo "#define USE_CACHEDB 1" >>confdefs.h
   21620 
   21621 	CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c"
   21622 
   21623 	CACHEDB_OBJ="cachedb.lo redis.lo"
   21624 
   21625     	;;
   21626     no|*)
   21627     	# nothing
   21628     	;;
   21629 esac
   21630 
   21631 # check for ipsecmod if requested
   21632 # Check whether --enable-ipsecmod was given.
   21633 if test "${enable_ipsecmod+set}" = set; then :
   21634   enableval=$enable_ipsecmod;
   21635 fi
   21636 
   21637 case "$enable_ipsecmod" in
   21638 	yes)
   21639 
   21640 $as_echo "#define USE_IPSECMOD 1" >>confdefs.h
   21641 
   21642 		IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
   21643 
   21644 		IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
   21645 
   21646 		;;
   21647 	no|*)
   21648 		# nothing
   21649 		;;
   21650 esac
   21651 
   21652 # check for ipset if requested
   21653 # Check whether --enable-ipset was given.
   21654 if test "${enable_ipset+set}" = set; then :
   21655   enableval=$enable_ipset;
   21656 fi
   21657 
   21658 case "$enable_ipset" in
   21659     yes)
   21660 
   21661 $as_echo "#define USE_IPSET 1" >>confdefs.h
   21662 
   21663 		IPSET_SRC="ipset/ipset.c"
   21664 
   21665 		IPSET_OBJ="ipset.lo"
   21666 
   21667 
   21668 		# mnl
   21669 
   21670 # Check whether --with-libmnl was given.
   21671 if test "${with_libmnl+set}" = set; then :
   21672   withval=$with_libmnl;
   21673 else
   21674    withval="yes"
   21675 fi
   21676 
   21677 		found_libmnl="no"
   21678 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
   21679 $as_echo_n "checking for libmnl... " >&6; }
   21680 		if test x_$withval = x_ -o x_$withval = x_yes; then
   21681 			withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
   21682 		fi
   21683 		for dir in $withval ; do
   21684 			if test -f "$dir/include/libmnl/libmnl.h" -o -f "$dir/include/libmnl/libmnl/libmnl.h"; then
   21685 				found_libmnl="yes"
   21686 								extralibmnl=""
   21687 				if test -f "$dir/include/libmnl/libmnl/libmnl.h"; then
   21688 					extralibmnl="/libmnl"
   21689 				fi
   21690 				if test "$dir" != "/usr" -o -n "$extralibmnl"; then
   21691 					CPPFLAGS="$CPPFLAGS -I$dir/include$extralibmnl"
   21692 				fi
   21693 				if test "$dir" != "/usr"; then
   21694 					LDFLAGS="$LDFLAGS -L$dir/lib"
   21695 				fi
   21696 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
   21697 $as_echo "found in $dir" >&6; }
   21698 				LIBS="$LIBS -lmnl"
   21699 				break;
   21700 			fi
   21701 		done
   21702 		if test x_$found_libmnl != x_yes; then
   21703 			as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
   21704 		fi
   21705 		;;
   21706     no|*)
   21707     	# nothing
   21708 		;;
   21709 esac
   21710 # Check whether --enable-explicit-port-randomisation was given.
   21711 if test "${enable_explicit_port_randomisation+set}" = set; then :
   21712   enableval=$enable_explicit_port_randomisation;
   21713 fi
   21714 
   21715 case "$enable_explicit_port_randomisation" in
   21716 	no)
   21717 
   21718 $as_echo "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h
   21719 
   21720 		;;
   21721 	yes|*)
   21722 		;;
   21723 esac
   21724 
   21725 if echo "$host" | $GREP -i -e linux >/dev/null; then
   21726 	# Check whether --enable-linux-ip-local-port-range was given.
   21727 if test "${enable_linux_ip_local_port_range+set}" = set; then :
   21728   enableval=$enable_linux_ip_local_port_range;
   21729 fi
   21730 
   21731 	case "$enable_linux_ip_local_port_range" in
   21732 		yes)
   21733 
   21734 $as_echo "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h
   21735 
   21736 			;;
   21737 		no|*)
   21738 			;;
   21739 	esac
   21740 fi
   21741 
   21742 
   21743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
   21744 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
   21745 # on openBSD, the implicit rule make $< work.
   21746 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
   21747 # gmake works.
   21748 cat >conftest.make <<EOF
   21749 all:	conftest.lo
   21750 
   21751 conftest.lo foo.lo bla.lo:
   21752 	if test -f "\$<"; then touch \$@; fi
   21753 
   21754 .SUFFIXES: .lo
   21755 .c.lo:
   21756 	if test -f "\$<"; then touch \$@; fi
   21757 
   21758 conftest.lo:        conftest.dir/conftest.c
   21759 EOF
   21760 mkdir conftest.dir
   21761 touch conftest.dir/conftest.c
   21762 rm -f conftest.lo conftest.c
   21763 ${MAKE:-make} -f conftest.make >/dev/null
   21764 rm -f conftest.make conftest.c conftest.dir/conftest.c
   21765 rm -rf conftest.dir
   21766 if test ! -f conftest.lo; then
   21767 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21768 $as_echo "no" >&6; }
   21769 	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
   21770 	SOURCEFILE='`cat .source`'
   21771 else
   21772 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21773 $as_echo "yes" >&6; }
   21774 	SOURCEDETERMINE=':'
   21775 	SOURCEFILE='$<'
   21776 fi
   21777 rm -f conftest.lo
   21778 
   21779 
   21780 
   21781 # see if we want to build the library or everything
   21782 ALLTARGET="alltargets"
   21783 INSTALLTARGET="install-all"
   21784 
   21785 # Check whether --with-libunbound-only was given.
   21786 if test "${with_libunbound_only+set}" = set; then :
   21787   withval=$with_libunbound_only;
   21788 	if test "$withval" = "yes"; then
   21789 		ALLTARGET="lib"
   21790 		INSTALLTARGET="install-lib"
   21791 	fi
   21792 
   21793 fi
   21794 
   21795 if test $ALLTARGET = "alltargets"; then
   21796 	if test $USE_NSS = "yes"; then
   21797 		as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
   21798 	fi
   21799 	if test $USE_NETTLE = "yes"; then
   21800 		as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
   21801 	fi
   21802 fi
   21803 
   21804 
   21805 
   21806 
   21807 
   21808   { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
   21809 $as_echo "$as_me: Stripping extension flags..." >&6;}
   21810 
   21811   if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
   21812     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
   21813 
   21814 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
   21815 
   21816   fi
   21817 
   21818 
   21819   if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
   21820     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
   21821 
   21822 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
   21823 
   21824   fi
   21825 
   21826 
   21827   if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
   21828     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
   21829 
   21830 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
   21831 
   21832   fi
   21833 
   21834 
   21835   if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
   21836     CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
   21837 
   21838 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
   21839 
   21840   fi
   21841 
   21842 
   21843   if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
   21844     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
   21845 
   21846 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
   21847 
   21848   fi
   21849 
   21850 
   21851   if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
   21852     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
   21853 
   21854 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
   21855 
   21856   fi
   21857 
   21858 
   21859   if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
   21860     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
   21861 
   21862 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
   21863 
   21864   fi
   21865 
   21866 
   21867   if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
   21868     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
   21869 
   21870 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
   21871 
   21872   fi
   21873 
   21874 
   21875   if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
   21876     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
   21877 
   21878 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
   21879 
   21880   fi
   21881 
   21882 
   21883 if test -n "$LATE_LDFLAGS"; then
   21884   LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
   21885 fi
   21886 # remove start spaces
   21887 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
   21888 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
   21889 
   21890 
   21891 cat >>confdefs.h <<_ACEOF
   21892 #define MAXSYSLOGMSGLEN 10240
   21893 _ACEOF
   21894 
   21895 
   21896 
   21897 
   21898 version=1.19.1
   21899 
   21900 date=`date +'%b %e, %Y'`
   21901 
   21902 
   21903 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"
   21904 
   21905 ac_config_headers="$ac_config_headers config.h"
   21906 
   21907 cat >confcache <<\_ACEOF
   21908 # This file is a shell script that caches the results of configure
   21909 # tests run on this system so they can be shared between configure
   21910 # scripts and configure runs, see configure's option --config-cache.
   21911 # It is not useful on other systems.  If it contains results you don't
   21912 # want to keep, you may remove or edit it.
   21913 #
   21914 # config.status only pays attention to the cache file if you give it
   21915 # the --recheck option to rerun configure.
   21916 #
   21917 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   21918 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   21919 # following values.
   21920 
   21921 _ACEOF
   21922 
   21923 # The following way of writing the cache mishandles newlines in values,
   21924 # but we know of no workaround that is simple, portable, and efficient.
   21925 # So, we kill variables containing newlines.
   21926 # Ultrix sh set writes to stderr and can't be redirected directly,
   21927 # and sets the high bit in the cache file unless we assign to the vars.
   21928 (
   21929   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   21930     eval ac_val=\$$ac_var
   21931     case $ac_val in #(
   21932     *${as_nl}*)
   21933       case $ac_var in #(
   21934       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   21935 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   21936       esac
   21937       case $ac_var in #(
   21938       _ | IFS | as_nl) ;; #(
   21939       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   21940       *) { eval $ac_var=; unset $ac_var;} ;;
   21941       esac ;;
   21942     esac
   21943   done
   21944 
   21945   (set) 2>&1 |
   21946     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   21947     *${as_nl}ac_space=\ *)
   21948       # `set' does not quote correctly, so add quotes: double-quote
   21949       # substitution turns \\\\ into \\, and sed turns \\ into \.
   21950       sed -n \
   21951 	"s/'/'\\\\''/g;
   21952 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   21953       ;; #(
   21954     *)
   21955       # `set' quotes correctly as required by POSIX, so do not add quotes.
   21956       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   21957       ;;
   21958     esac |
   21959     sort
   21960 ) |
   21961   sed '
   21962      /^ac_cv_env_/b end
   21963      t clear
   21964      :clear
   21965      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   21966      t end
   21967      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   21968      :end' >>confcache
   21969 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   21970   if test -w "$cache_file"; then
   21971     if test "x$cache_file" != "x/dev/null"; then
   21972       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   21973 $as_echo "$as_me: updating cache $cache_file" >&6;}
   21974       if test ! -f "$cache_file" || test -h "$cache_file"; then
   21975 	cat confcache >"$cache_file"
   21976       else
   21977         case $cache_file in #(
   21978         */* | ?:*)
   21979 	  mv -f confcache "$cache_file"$$ &&
   21980 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   21981         *)
   21982 	  mv -f confcache "$cache_file" ;;
   21983 	esac
   21984       fi
   21985     fi
   21986   else
   21987     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   21988 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   21989   fi
   21990 fi
   21991 rm -f confcache
   21992 
   21993 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   21994 # Let make expand exec_prefix.
   21995 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   21996 
   21997 DEFS=-DHAVE_CONFIG_H
   21998 
   21999 ac_libobjs=
   22000 ac_ltlibobjs=
   22001 U=
   22002 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   22003   # 1. Remove the extension, and $U if already installed.
   22004   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   22005   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   22006   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   22007   #    will be set to the directory where LIBOBJS objects are built.
   22008   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   22009   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   22010 done
   22011 LIBOBJS=$ac_libobjs
   22012 
   22013 LTLIBOBJS=$ac_ltlibobjs
   22014 
   22015 
   22016 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
   22017   as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
   22018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   22019 fi
   22020 
   22021 : "${CONFIG_STATUS=./config.status}"
   22022 ac_write_fail=0
   22023 ac_clean_files_save=$ac_clean_files
   22024 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   22025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   22026 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   22027 as_write_fail=0
   22028 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   22029 #! $SHELL
   22030 # Generated by $as_me.
   22031 # Run this file to recreate the current configuration.
   22032 # Compiler output produced by configure, useful for debugging
   22033 # configure, is in config.log if it exists.
   22034 
   22035 debug=false
   22036 ac_cs_recheck=false
   22037 ac_cs_silent=false
   22038 
   22039 SHELL=\${CONFIG_SHELL-$SHELL}
   22040 export SHELL
   22041 _ASEOF
   22042 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   22043 ## -------------------- ##
   22044 ## M4sh Initialization. ##
   22045 ## -------------------- ##
   22046 
   22047 # Be more Bourne compatible
   22048 DUALCASE=1; export DUALCASE # for MKS sh
   22049 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   22050   emulate sh
   22051   NULLCMD=:
   22052   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   22053   # is contrary to our usage.  Disable this feature.
   22054   alias -g '${1+"$@"}'='"$@"'
   22055   setopt NO_GLOB_SUBST
   22056 else
   22057   case `(set -o) 2>/dev/null` in #(
   22058   *posix*) :
   22059     set -o posix ;; #(
   22060   *) :
   22061      ;;
   22062 esac
   22063 fi
   22064 
   22065 
   22066 as_nl='
   22067 '
   22068 export as_nl
   22069 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   22070 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   22071 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   22072 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   22073 # Prefer a ksh shell builtin over an external printf program on Solaris,
   22074 # but without wasting forks for bash or zsh.
   22075 if test -z "$BASH_VERSION$ZSH_VERSION" \
   22076     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   22077   as_echo='print -r --'
   22078   as_echo_n='print -rn --'
   22079 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   22080   as_echo='printf %s\n'
   22081   as_echo_n='printf %s'
   22082 else
   22083   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   22084     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   22085     as_echo_n='/usr/ucb/echo -n'
   22086   else
   22087     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   22088     as_echo_n_body='eval
   22089       arg=$1;
   22090       case $arg in #(
   22091       *"$as_nl"*)
   22092 	expr "X$arg" : "X\\(.*\\)$as_nl";
   22093 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   22094       esac;
   22095       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   22096     '
   22097     export as_echo_n_body
   22098     as_echo_n='sh -c $as_echo_n_body as_echo'
   22099   fi
   22100   export as_echo_body
   22101   as_echo='sh -c $as_echo_body as_echo'
   22102 fi
   22103 
   22104 # The user is always right.
   22105 if test "${PATH_SEPARATOR+set}" != set; then
   22106   PATH_SEPARATOR=:
   22107   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   22108     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   22109       PATH_SEPARATOR=';'
   22110   }
   22111 fi
   22112 
   22113 
   22114 # IFS
   22115 # We need space, tab and new line, in precisely that order.  Quoting is
   22116 # there to prevent editors from complaining about space-tab.
   22117 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   22118 # splitting by setting IFS to empty value.)
   22119 IFS=" ""	$as_nl"
   22120 
   22121 # Find who we are.  Look in the path if we contain no directory separator.
   22122 as_myself=
   22123 case $0 in #((
   22124   *[\\/]* ) as_myself=$0 ;;
   22125   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   22126 for as_dir in $PATH
   22127 do
   22128   IFS=$as_save_IFS
   22129   test -z "$as_dir" && as_dir=.
   22130     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   22131   done
   22132 IFS=$as_save_IFS
   22133 
   22134      ;;
   22135 esac
   22136 # We did not find ourselves, most probably we were run as `sh COMMAND'
   22137 # in which case we are not to be found in the path.
   22138 if test "x$as_myself" = x; then
   22139   as_myself=$0
   22140 fi
   22141 if test ! -f "$as_myself"; then
   22142   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   22143   exit 1
   22144 fi
   22145 
   22146 # Unset variables that we do not need and which cause bugs (e.g. in
   22147 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   22148 # suppresses any "Segmentation fault" message there.  '((' could
   22149 # trigger a bug in pdksh 5.2.14.
   22150 for as_var in BASH_ENV ENV MAIL MAILPATH
   22151 do eval test x\${$as_var+set} = xset \
   22152   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   22153 done
   22154 PS1='$ '
   22155 PS2='> '
   22156 PS4='+ '
   22157 
   22158 # NLS nuisances.
   22159 LC_ALL=C
   22160 export LC_ALL
   22161 LANGUAGE=C
   22162 export LANGUAGE
   22163 
   22164 # CDPATH.
   22165 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   22166 
   22167 
   22168 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   22169 # ----------------------------------------
   22170 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   22171 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   22172 # script with STATUS, using 1 if that was 0.
   22173 as_fn_error ()
   22174 {
   22175   as_status=$1; test $as_status -eq 0 && as_status=1
   22176   if test "$4"; then
   22177     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   22178     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   22179   fi
   22180   $as_echo "$as_me: error: $2" >&2
   22181   as_fn_exit $as_status
   22182 } # as_fn_error
   22183 
   22184 
   22185 # as_fn_set_status STATUS
   22186 # -----------------------
   22187 # Set $? to STATUS, without forking.
   22188 as_fn_set_status ()
   22189 {
   22190   return $1
   22191 } # as_fn_set_status
   22192 
   22193 # as_fn_exit STATUS
   22194 # -----------------
   22195 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   22196 as_fn_exit ()
   22197 {
   22198   set +e
   22199   as_fn_set_status $1
   22200   exit $1
   22201 } # as_fn_exit
   22202 
   22203 # as_fn_unset VAR
   22204 # ---------------
   22205 # Portably unset VAR.
   22206 as_fn_unset ()
   22207 {
   22208   { eval $1=; unset $1;}
   22209 }
   22210 as_unset=as_fn_unset
   22211 # as_fn_append VAR VALUE
   22212 # ----------------------
   22213 # Append the text in VALUE to the end of the definition contained in VAR. Take
   22214 # advantage of any shell optimizations that allow amortized linear growth over
   22215 # repeated appends, instead of the typical quadratic growth present in naive
   22216 # implementations.
   22217 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   22218   eval 'as_fn_append ()
   22219   {
   22220     eval $1+=\$2
   22221   }'
   22222 else
   22223   as_fn_append ()
   22224   {
   22225     eval $1=\$$1\$2
   22226   }
   22227 fi # as_fn_append
   22228 
   22229 # as_fn_arith ARG...
   22230 # ------------------
   22231 # Perform arithmetic evaluation on the ARGs, and store the result in the
   22232 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   22233 # must be portable across $(()) and expr.
   22234 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   22235   eval 'as_fn_arith ()
   22236   {
   22237     as_val=$(( $* ))
   22238   }'
   22239 else
   22240   as_fn_arith ()
   22241   {
   22242     as_val=`expr "$@" || test $? -eq 1`
   22243   }
   22244 fi # as_fn_arith
   22245 
   22246 
   22247 if expr a : '\(a\)' >/dev/null 2>&1 &&
   22248    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   22249   as_expr=expr
   22250 else
   22251   as_expr=false
   22252 fi
   22253 
   22254 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   22255   as_basename=basename
   22256 else
   22257   as_basename=false
   22258 fi
   22259 
   22260 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   22261   as_dirname=dirname
   22262 else
   22263   as_dirname=false
   22264 fi
   22265 
   22266 as_me=`$as_basename -- "$0" ||
   22267 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   22268 	 X"$0" : 'X\(//\)$' \| \
   22269 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   22270 $as_echo X/"$0" |
   22271     sed '/^.*\/\([^/][^/]*\)\/*$/{
   22272 	    s//\1/
   22273 	    q
   22274 	  }
   22275 	  /^X\/\(\/\/\)$/{
   22276 	    s//\1/
   22277 	    q
   22278 	  }
   22279 	  /^X\/\(\/\).*/{
   22280 	    s//\1/
   22281 	    q
   22282 	  }
   22283 	  s/.*/./; q'`
   22284 
   22285 # Avoid depending upon Character Ranges.
   22286 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   22287 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   22288 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   22289 as_cr_digits='0123456789'
   22290 as_cr_alnum=$as_cr_Letters$as_cr_digits
   22291 
   22292 ECHO_C= ECHO_N= ECHO_T=
   22293 case `echo -n x` in #(((((
   22294 -n*)
   22295   case `echo 'xy\c'` in
   22296   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   22297   xy)  ECHO_C='\c';;
   22298   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   22299        ECHO_T='	';;
   22300   esac;;
   22301 *)
   22302   ECHO_N='-n';;
   22303 esac
   22304 
   22305 rm -f conf$$ conf$$.exe conf$$.file
   22306 if test -d conf$$.dir; then
   22307   rm -f conf$$.dir/conf$$.file
   22308 else
   22309   rm -f conf$$.dir
   22310   mkdir conf$$.dir 2>/dev/null
   22311 fi
   22312 if (echo >conf$$.file) 2>/dev/null; then
   22313   if ln -s conf$$.file conf$$ 2>/dev/null; then
   22314     as_ln_s='ln -s'
   22315     # ... but there are two gotchas:
   22316     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   22317     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   22318     # In both cases, we have to default to `cp -pR'.
   22319     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   22320       as_ln_s='cp -pR'
   22321   elif ln conf$$.file conf$$ 2>/dev/null; then
   22322     as_ln_s=ln
   22323   else
   22324     as_ln_s='cp -pR'
   22325   fi
   22326 else
   22327   as_ln_s='cp -pR'
   22328 fi
   22329 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   22330 rmdir conf$$.dir 2>/dev/null
   22331 
   22332 
   22333 # as_fn_mkdir_p
   22334 # -------------
   22335 # Create "$as_dir" as a directory, including parents if necessary.
   22336 as_fn_mkdir_p ()
   22337 {
   22338 
   22339   case $as_dir in #(
   22340   -*) as_dir=./$as_dir;;
   22341   esac
   22342   test -d "$as_dir" || eval $as_mkdir_p || {
   22343     as_dirs=
   22344     while :; do
   22345       case $as_dir in #(
   22346       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   22347       *) as_qdir=$as_dir;;
   22348       esac
   22349       as_dirs="'$as_qdir' $as_dirs"
   22350       as_dir=`$as_dirname -- "$as_dir" ||
   22351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   22352 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   22353 	 X"$as_dir" : 'X\(//\)$' \| \
   22354 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   22355 $as_echo X"$as_dir" |
   22356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   22357 	    s//\1/
   22358 	    q
   22359 	  }
   22360 	  /^X\(\/\/\)[^/].*/{
   22361 	    s//\1/
   22362 	    q
   22363 	  }
   22364 	  /^X\(\/\/\)$/{
   22365 	    s//\1/
   22366 	    q
   22367 	  }
   22368 	  /^X\(\/\).*/{
   22369 	    s//\1/
   22370 	    q
   22371 	  }
   22372 	  s/.*/./; q'`
   22373       test -d "$as_dir" && break
   22374     done
   22375     test -z "$as_dirs" || eval "mkdir $as_dirs"
   22376   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   22377 
   22378 
   22379 } # as_fn_mkdir_p
   22380 if mkdir -p . 2>/dev/null; then
   22381   as_mkdir_p='mkdir -p "$as_dir"'
   22382 else
   22383   test -d ./-p && rmdir ./-p
   22384   as_mkdir_p=false
   22385 fi
   22386 
   22387 
   22388 # as_fn_executable_p FILE
   22389 # -----------------------
   22390 # Test if FILE is an executable regular file.
   22391 as_fn_executable_p ()
   22392 {
   22393   test -f "$1" && test -x "$1"
   22394 } # as_fn_executable_p
   22395 as_test_x='test -x'
   22396 as_executable_p=as_fn_executable_p
   22397 
   22398 # Sed expression to map a string onto a valid CPP name.
   22399 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   22400 
   22401 # Sed expression to map a string onto a valid variable name.
   22402 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   22403 
   22404 
   22405 exec 6>&1
   22406 ## ----------------------------------- ##
   22407 ## Main body of $CONFIG_STATUS script. ##
   22408 ## ----------------------------------- ##
   22409 _ASEOF
   22410 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   22411 
   22412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22413 # Save the log message, to keep $0 and so on meaningful, and to
   22414 # report actual input values of CONFIG_FILES etc. instead of their
   22415 # values after options handling.
   22416 ac_log="
   22417 This file was extended by unbound $as_me 1.19.1, which was
   22418 generated by GNU Autoconf 2.69.  Invocation command line was
   22419 
   22420   CONFIG_FILES    = $CONFIG_FILES
   22421   CONFIG_HEADERS  = $CONFIG_HEADERS
   22422   CONFIG_LINKS    = $CONFIG_LINKS
   22423   CONFIG_COMMANDS = $CONFIG_COMMANDS
   22424   $ $0 $@
   22425 
   22426 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   22427 "
   22428 
   22429 _ACEOF
   22430 
   22431 case $ac_config_files in *"
   22432 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   22433 esac
   22434 
   22435 case $ac_config_headers in *"
   22436 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   22437 esac
   22438 
   22439 
   22440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22441 # Files that config.status was made for.
   22442 config_files="$ac_config_files"
   22443 config_headers="$ac_config_headers"
   22444 config_commands="$ac_config_commands"
   22445 
   22446 _ACEOF
   22447 
   22448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22449 ac_cs_usage="\
   22450 \`$as_me' instantiates files and other configuration actions
   22451 from templates according to the current configuration.  Unless the files
   22452 and actions are specified as TAGs, all are instantiated by default.
   22453 
   22454 Usage: $0 [OPTION]... [TAG]...
   22455 
   22456   -h, --help       print this help, then exit
   22457   -V, --version    print version number and configuration settings, then exit
   22458       --config     print configuration, then exit
   22459   -q, --quiet, --silent
   22460                    do not print progress messages
   22461   -d, --debug      don't remove temporary files
   22462       --recheck    update $as_me by reconfiguring in the same conditions
   22463       --file=FILE[:TEMPLATE]
   22464                    instantiate the configuration file FILE
   22465       --header=FILE[:TEMPLATE]
   22466                    instantiate the configuration header FILE
   22467 
   22468 Configuration files:
   22469 $config_files
   22470 
   22471 Configuration headers:
   22472 $config_headers
   22473 
   22474 Configuration commands:
   22475 $config_commands
   22476 
   22477 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
   22478 
   22479 _ACEOF
   22480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22481 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   22482 ac_cs_version="\\
   22483 unbound config.status 1.19.1
   22484 configured by $0, generated by GNU Autoconf 2.69,
   22485   with options \\"\$ac_cs_config\\"
   22486 
   22487 Copyright (C) 2012 Free Software Foundation, Inc.
   22488 This config.status script is free software; the Free Software Foundation
   22489 gives unlimited permission to copy, distribute and modify it."
   22490 
   22491 ac_pwd='$ac_pwd'
   22492 srcdir='$srcdir'
   22493 AWK='$AWK'
   22494 test -n "\$AWK" || AWK=awk
   22495 _ACEOF
   22496 
   22497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22498 # The default lists apply if the user does not specify any file.
   22499 ac_need_defaults=:
   22500 while test $# != 0
   22501 do
   22502   case $1 in
   22503   --*=?*)
   22504     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   22505     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   22506     ac_shift=:
   22507     ;;
   22508   --*=)
   22509     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   22510     ac_optarg=
   22511     ac_shift=:
   22512     ;;
   22513   *)
   22514     ac_option=$1
   22515     ac_optarg=$2
   22516     ac_shift=shift
   22517     ;;
   22518   esac
   22519 
   22520   case $ac_option in
   22521   # Handling of the options.
   22522   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   22523     ac_cs_recheck=: ;;
   22524   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   22525     $as_echo "$ac_cs_version"; exit ;;
   22526   --config | --confi | --conf | --con | --co | --c )
   22527     $as_echo "$ac_cs_config"; exit ;;
   22528   --debug | --debu | --deb | --de | --d | -d )
   22529     debug=: ;;
   22530   --file | --fil | --fi | --f )
   22531     $ac_shift
   22532     case $ac_optarg in
   22533     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22534     '') as_fn_error $? "missing file argument" ;;
   22535     esac
   22536     as_fn_append CONFIG_FILES " '$ac_optarg'"
   22537     ac_need_defaults=false;;
   22538   --header | --heade | --head | --hea )
   22539     $ac_shift
   22540     case $ac_optarg in
   22541     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22542     esac
   22543     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   22544     ac_need_defaults=false;;
   22545   --he | --h)
   22546     # Conflict between --help and --header
   22547     as_fn_error $? "ambiguous option: \`$1'
   22548 Try \`$0 --help' for more information.";;
   22549   --help | --hel | -h )
   22550     $as_echo "$ac_cs_usage"; exit ;;
   22551   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   22552   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   22553     ac_cs_silent=: ;;
   22554 
   22555   # This is an error.
   22556   -*) as_fn_error $? "unrecognized option: \`$1'
   22557 Try \`$0 --help' for more information." ;;
   22558 
   22559   *) as_fn_append ac_config_targets " $1"
   22560      ac_need_defaults=false ;;
   22561 
   22562   esac
   22563   shift
   22564 done
   22565 
   22566 ac_configure_extra_args=
   22567 
   22568 if $ac_cs_silent; then
   22569   exec 6>/dev/null
   22570   ac_configure_extra_args="$ac_configure_extra_args --silent"
   22571 fi
   22572 
   22573 _ACEOF
   22574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22575 if \$ac_cs_recheck; then
   22576   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   22577   shift
   22578   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   22579   CONFIG_SHELL='$SHELL'
   22580   export CONFIG_SHELL
   22581   exec "\$@"
   22582 fi
   22583 
   22584 _ACEOF
   22585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22586 exec 5>>config.log
   22587 {
   22588   echo
   22589   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   22590 ## Running $as_me. ##
   22591 _ASBOX
   22592   $as_echo "$ac_log"
   22593 } >&5
   22594 
   22595 _ACEOF
   22596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22597 #
   22598 # INIT-COMMANDS
   22599 #
   22600 
   22601 
   22602 # The HP-UX ksh and POSIX shell print the target directory to stdout
   22603 # if CDPATH is set.
   22604 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   22605 
   22606 sed_quote_subst='$sed_quote_subst'
   22607 double_quote_subst='$double_quote_subst'
   22608 delay_variable_subst='$delay_variable_subst'
   22609 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   22610 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   22611 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   22612 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   22613 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   22614 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   22615 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   22616 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   22617 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   22618 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   22619 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   22620 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   22621 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   22622 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   22623 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   22624 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   22625 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   22626 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   22627 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   22628 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   22629 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   22630 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   22631 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   22632 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   22633 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   22634 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   22635 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   22636 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   22637 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   22638 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   22639 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   22640 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   22641 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   22642 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   22643 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   22644 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   22645 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   22646 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   22647 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   22648 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   22649 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   22650 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   22651 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   22652 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   22653 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   22654 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   22655 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   22656 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   22657 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   22658 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   22659 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   22660 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   22661 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   22662 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   22663 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   22664 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   22665 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   22666 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   22667 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"`'
   22668 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   22669 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   22670 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   22671 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   22672 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   22673 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   22674 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   22675 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   22676 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   22677 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   22678 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   22679 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   22680 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   22681 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   22682 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   22683 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   22684 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   22685 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   22686 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   22687 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   22688 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   22689 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   22690 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   22691 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   22692 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   22693 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   22694 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   22695 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   22696 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   22697 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   22698 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   22699 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   22700 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   22701 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   22702 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   22703 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   22704 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   22705 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   22706 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   22707 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   22708 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   22709 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   22710 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   22711 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   22712 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   22713 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   22714 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   22715 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   22716 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   22717 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   22718 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   22719 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   22720 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   22721 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   22722 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   22723 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   22724 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   22725 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   22726 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   22727 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   22728 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   22729 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   22730 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   22731 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   22732 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   22733 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   22734 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   22735 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   22736 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   22737 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   22738 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   22739 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   22740 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   22741 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   22742 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   22743 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   22744 
   22745 LTCC='$LTCC'
   22746 LTCFLAGS='$LTCFLAGS'
   22747 compiler='$compiler_DEFAULT'
   22748 
   22749 # A function that is used when there is no print builtin or printf.
   22750 func_fallback_echo ()
   22751 {
   22752   eval 'cat <<_LTECHO_EOF
   22753 \$1
   22754 _LTECHO_EOF'
   22755 }
   22756 
   22757 # Quote evaled strings.
   22758 for var in SHELL \
   22759 ECHO \
   22760 PATH_SEPARATOR \
   22761 SED \
   22762 GREP \
   22763 EGREP \
   22764 FGREP \
   22765 LD \
   22766 NM \
   22767 LN_S \
   22768 lt_SP2NL \
   22769 lt_NL2SP \
   22770 reload_flag \
   22771 OBJDUMP \
   22772 deplibs_check_method \
   22773 file_magic_cmd \
   22774 file_magic_glob \
   22775 want_nocaseglob \
   22776 DLLTOOL \
   22777 sharedlib_from_linklib_cmd \
   22778 AR \
   22779 AR_FLAGS \
   22780 archiver_list_spec \
   22781 STRIP \
   22782 RANLIB \
   22783 CC \
   22784 CFLAGS \
   22785 compiler \
   22786 lt_cv_sys_global_symbol_pipe \
   22787 lt_cv_sys_global_symbol_to_cdecl \
   22788 lt_cv_sys_global_symbol_to_import \
   22789 lt_cv_sys_global_symbol_to_c_name_address \
   22790 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   22791 lt_cv_nm_interface \
   22792 nm_file_list_spec \
   22793 lt_cv_truncate_bin \
   22794 lt_prog_compiler_no_builtin_flag \
   22795 lt_prog_compiler_pic \
   22796 lt_prog_compiler_wl \
   22797 lt_prog_compiler_static \
   22798 lt_cv_prog_compiler_c_o \
   22799 need_locks \
   22800 MANIFEST_TOOL \
   22801 DSYMUTIL \
   22802 NMEDIT \
   22803 LIPO \
   22804 OTOOL \
   22805 OTOOL64 \
   22806 shrext_cmds \
   22807 export_dynamic_flag_spec \
   22808 whole_archive_flag_spec \
   22809 compiler_needs_object \
   22810 with_gnu_ld \
   22811 allow_undefined_flag \
   22812 no_undefined_flag \
   22813 hardcode_libdir_flag_spec \
   22814 hardcode_libdir_separator \
   22815 exclude_expsyms \
   22816 include_expsyms \
   22817 file_list_spec \
   22818 variables_saved_for_relink \
   22819 libname_spec \
   22820 library_names_spec \
   22821 soname_spec \
   22822 install_override_mode \
   22823 finish_eval \
   22824 old_striplib \
   22825 striplib; do
   22826     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   22827     *[\\\\\\\`\\"\\\$]*)
   22828       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   22829       ;;
   22830     *)
   22831       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   22832       ;;
   22833     esac
   22834 done
   22835 
   22836 # Double-quote double-evaled strings.
   22837 for var in reload_cmds \
   22838 old_postinstall_cmds \
   22839 old_postuninstall_cmds \
   22840 old_archive_cmds \
   22841 extract_expsyms_cmds \
   22842 old_archive_from_new_cmds \
   22843 old_archive_from_expsyms_cmds \
   22844 archive_cmds \
   22845 archive_expsym_cmds \
   22846 module_cmds \
   22847 module_expsym_cmds \
   22848 export_symbols_cmds \
   22849 prelink_cmds \
   22850 postlink_cmds \
   22851 postinstall_cmds \
   22852 postuninstall_cmds \
   22853 finish_cmds \
   22854 sys_lib_search_path_spec \
   22855 configure_time_dlsearch_path \
   22856 configure_time_lt_sys_library_path; do
   22857     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   22858     *[\\\\\\\`\\"\\\$]*)
   22859       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   22860       ;;
   22861     *)
   22862       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   22863       ;;
   22864     esac
   22865 done
   22866 
   22867 ac_aux_dir='$ac_aux_dir'
   22868 
   22869 # See if we are running on zsh, and set the options that allow our
   22870 # commands through without removal of \ escapes INIT.
   22871 if test -n "\${ZSH_VERSION+set}"; then
   22872    setopt NO_GLOB_SUBST
   22873 fi
   22874 
   22875 
   22876     PACKAGE='$PACKAGE'
   22877     VERSION='$VERSION'
   22878     RM='$RM'
   22879     ofile='$ofile'
   22880 
   22881 
   22882 
   22883 
   22884 _ACEOF
   22885 
   22886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22887 
   22888 # Handling of arguments.
   22889 for ac_config_target in $ac_config_targets
   22890 do
   22891   case $ac_config_target in
   22892     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   22893     "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
   22894     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   22895     "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
   22896     "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
   22897     "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
   22898     "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
   22899     "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
   22900     "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
   22901     "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
   22902     "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
   22903     "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
   22904     "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
   22905     "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
   22906     "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
   22907     "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
   22908     "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
   22909     "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;;
   22910     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   22911 
   22912   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   22913   esac
   22914 done
   22915 
   22916 
   22917 # If the user did not use the arguments to specify the items to instantiate,
   22918 # then the envvar interface is used.  Set only those that are not.
   22919 # We use the long form for the default assignment because of an extremely
   22920 # bizarre bug on SunOS 4.1.3.
   22921 if $ac_need_defaults; then
   22922   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   22923   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   22924   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   22925 fi
   22926 
   22927 # Have a temporary directory for convenience.  Make it in the build tree
   22928 # simply because there is no reason against having it here, and in addition,
   22929 # creating and moving files from /tmp can sometimes cause problems.
   22930 # Hook for its removal unless debugging.
   22931 # Note that there is a small window in which the directory will not be cleaned:
   22932 # after its creation but before its name has been assigned to `$tmp'.
   22933 $debug ||
   22934 {
   22935   tmp= ac_tmp=
   22936   trap 'exit_status=$?
   22937   : "${ac_tmp:=$tmp}"
   22938   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   22939 ' 0
   22940   trap 'as_fn_exit 1' 1 2 13 15
   22941 }
   22942 # Create a (secure) tmp directory for tmp files.
   22943 
   22944 {
   22945   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   22946   test -d "$tmp"
   22947 }  ||
   22948 {
   22949   tmp=./conf$$-$RANDOM
   22950   (umask 077 && mkdir "$tmp")
   22951 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   22952 ac_tmp=$tmp
   22953 
   22954 # Set up the scripts for CONFIG_FILES section.
   22955 # No need to generate them if there are no CONFIG_FILES.
   22956 # This happens for instance with `./config.status config.h'.
   22957 if test -n "$CONFIG_FILES"; then
   22958 
   22959 
   22960 ac_cr=`echo X | tr X '\015'`
   22961 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   22962 # But we know of no other shell where ac_cr would be empty at this
   22963 # point, so we can use a bashism as a fallback.
   22964 if test "x$ac_cr" = x; then
   22965   eval ac_cr=\$\'\\r\'
   22966 fi
   22967 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   22968 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   22969   ac_cs_awk_cr='\\r'
   22970 else
   22971   ac_cs_awk_cr=$ac_cr
   22972 fi
   22973 
   22974 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   22975 _ACEOF
   22976 
   22977 
   22978 {
   22979   echo "cat >conf$$subs.awk <<_ACEOF" &&
   22980   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   22981   echo "_ACEOF"
   22982 } >conf$$subs.sh ||
   22983   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22984 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   22985 ac_delim='%!_!# '
   22986 for ac_last_try in false false false false false :; do
   22987   . ./conf$$subs.sh ||
   22988     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22989 
   22990   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   22991   if test $ac_delim_n = $ac_delim_num; then
   22992     break
   22993   elif $ac_last_try; then
   22994     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22995   else
   22996     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   22997   fi
   22998 done
   22999 rm -f conf$$subs.sh
   23000 
   23001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23002 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   23003 _ACEOF
   23004 sed -n '
   23005 h
   23006 s/^/S["/; s/!.*/"]=/
   23007 p
   23008 g
   23009 s/^[^!]*!//
   23010 :repl
   23011 t repl
   23012 s/'"$ac_delim"'$//
   23013 t delim
   23014 :nl
   23015 h
   23016 s/\(.\{148\}\)..*/\1/
   23017 t more1
   23018 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   23019 p
   23020 n
   23021 b repl
   23022 :more1
   23023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   23024 p
   23025 g
   23026 s/.\{148\}//
   23027 t nl
   23028 :delim
   23029 h
   23030 s/\(.\{148\}\)..*/\1/
   23031 t more2
   23032 s/["\\]/\\&/g; s/^/"/; s/$/"/
   23033 p
   23034 b
   23035 :more2
   23036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   23037 p
   23038 g
   23039 s/.\{148\}//
   23040 t delim
   23041 ' <conf$$subs.awk | sed '
   23042 /^[^""]/{
   23043   N
   23044   s/\n//
   23045 }
   23046 ' >>$CONFIG_STATUS || ac_write_fail=1
   23047 rm -f conf$$subs.awk
   23048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23049 _ACAWK
   23050 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   23051   for (key in S) S_is_set[key] = 1
   23052   FS = ""
   23053 
   23054 }
   23055 {
   23056   line = $ 0
   23057   nfields = split(line, field, "@")
   23058   substed = 0
   23059   len = length(field[1])
   23060   for (i = 2; i < nfields; i++) {
   23061     key = field[i]
   23062     keylen = length(key)
   23063     if (S_is_set[key]) {
   23064       value = S[key]
   23065       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   23066       len += length(value) + length(field[++i])
   23067       substed = 1
   23068     } else
   23069       len += 1 + keylen
   23070   }
   23071 
   23072   print line
   23073 }
   23074 
   23075 _ACAWK
   23076 _ACEOF
   23077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23078 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   23079   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   23080 else
   23081   cat
   23082 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   23083   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   23084 _ACEOF
   23085 
   23086 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   23087 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   23088 # trailing colons and then remove the whole line if VPATH becomes empty
   23089 # (actually we leave an empty line to preserve line numbers).
   23090 if test "x$srcdir" = x.; then
   23091   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   23092 h
   23093 s///
   23094 s/^/:/
   23095 s/[	 ]*$/:/
   23096 s/:\$(srcdir):/:/g
   23097 s/:\${srcdir}:/:/g
   23098 s/:@srcdir@:/:/g
   23099 s/^:*//
   23100 s/:*$//
   23101 x
   23102 s/\(=[	 ]*\).*/\1/
   23103 G
   23104 s/\n//
   23105 s/^[^=]*=[	 ]*$//
   23106 }'
   23107 fi
   23108 
   23109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23110 fi # test -n "$CONFIG_FILES"
   23111 
   23112 # Set up the scripts for CONFIG_HEADERS section.
   23113 # No need to generate them if there are no CONFIG_HEADERS.
   23114 # This happens for instance with `./config.status Makefile'.
   23115 if test -n "$CONFIG_HEADERS"; then
   23116 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   23117 BEGIN {
   23118 _ACEOF
   23119 
   23120 # Transform confdefs.h into an awk script `defines.awk', embedded as
   23121 # here-document in config.status, that substitutes the proper values into
   23122 # config.h.in to produce config.h.
   23123 
   23124 # Create a delimiter string that does not exist in confdefs.h, to ease
   23125 # handling of long lines.
   23126 ac_delim='%!_!# '
   23127 for ac_last_try in false false :; do
   23128   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   23129   if test -z "$ac_tt"; then
   23130     break
   23131   elif $ac_last_try; then
   23132     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   23133   else
   23134     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   23135   fi
   23136 done
   23137 
   23138 # For the awk script, D is an array of macro values keyed by name,
   23139 # likewise P contains macro parameters if any.  Preserve backslash
   23140 # newline sequences.
   23141 
   23142 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   23143 sed -n '
   23144 s/.\{148\}/&'"$ac_delim"'/g
   23145 t rset
   23146 :rset
   23147 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   23148 t def
   23149 d
   23150 :def
   23151 s/\\$//
   23152 t bsnl
   23153 s/["\\]/\\&/g
   23154 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   23155 D["\1"]=" \3"/p
   23156 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   23157 d
   23158 :bsnl
   23159 s/["\\]/\\&/g
   23160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   23161 D["\1"]=" \3\\\\\\n"\\/p
   23162 t cont
   23163 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   23164 t cont
   23165 d
   23166 :cont
   23167 n
   23168 s/.\{148\}/&'"$ac_delim"'/g
   23169 t clear
   23170 :clear
   23171 s/\\$//
   23172 t bsnlc
   23173 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   23174 d
   23175 :bsnlc
   23176 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   23177 b cont
   23178 ' <confdefs.h | sed '
   23179 s/'"$ac_delim"'/"\\\
   23180 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   23181 
   23182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23183   for (key in D) D_is_set[key] = 1
   23184   FS = ""
   23185 }
   23186 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   23187   line = \$ 0
   23188   split(line, arg, " ")
   23189   if (arg[1] == "#") {
   23190     defundef = arg[2]
   23191     mac1 = arg[3]
   23192   } else {
   23193     defundef = substr(arg[1], 2)
   23194     mac1 = arg[2]
   23195   }
   23196   split(mac1, mac2, "(") #)
   23197   macro = mac2[1]
   23198   prefix = substr(line, 1, index(line, defundef) - 1)
   23199   if (D_is_set[macro]) {
   23200     # Preserve the white space surrounding the "#".
   23201     print prefix "define", macro P[macro] D[macro]
   23202     next
   23203   } else {
   23204     # Replace #undef with comments.  This is necessary, for example,
   23205     # in the case of _POSIX_SOURCE, which is predefined and required
   23206     # on some systems where configure will not decide to define it.
   23207     if (defundef == "undef") {
   23208       print "/*", prefix defundef, macro, "*/"
   23209       next
   23210     }
   23211   }
   23212 }
   23213 { print }
   23214 _ACAWK
   23215 _ACEOF
   23216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23217   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   23218 fi # test -n "$CONFIG_HEADERS"
   23219 
   23220 
   23221 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   23222 shift
   23223 for ac_tag
   23224 do
   23225   case $ac_tag in
   23226   :[FHLC]) ac_mode=$ac_tag; continue;;
   23227   esac
   23228   case $ac_mode$ac_tag in
   23229   :[FHL]*:*);;
   23230   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   23231   :[FH]-) ac_tag=-:-;;
   23232   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   23233   esac
   23234   ac_save_IFS=$IFS
   23235   IFS=:
   23236   set x $ac_tag
   23237   IFS=$ac_save_IFS
   23238   shift
   23239   ac_file=$1
   23240   shift
   23241 
   23242   case $ac_mode in
   23243   :L) ac_source=$1;;
   23244   :[FH])
   23245     ac_file_inputs=
   23246     for ac_f
   23247     do
   23248       case $ac_f in
   23249       -) ac_f="$ac_tmp/stdin";;
   23250       *) # Look for the file first in the build tree, then in the source tree
   23251 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   23252 	 # because $ac_f cannot contain `:'.
   23253 	 test -f "$ac_f" ||
   23254 	   case $ac_f in
   23255 	   [\\/$]*) false;;
   23256 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   23257 	   esac ||
   23258 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   23259       esac
   23260       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   23261       as_fn_append ac_file_inputs " '$ac_f'"
   23262     done
   23263 
   23264     # Let's still pretend it is `configure' which instantiates (i.e., don't
   23265     # use $as_me), people would be surprised to read:
   23266     #    /* config.h.  Generated by config.status.  */
   23267     configure_input='Generated from '`
   23268 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   23269 	`' by configure.'
   23270     if test x"$ac_file" != x-; then
   23271       configure_input="$ac_file.  $configure_input"
   23272       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   23273 $as_echo "$as_me: creating $ac_file" >&6;}
   23274     fi
   23275     # Neutralize special characters interpreted by sed in replacement strings.
   23276     case $configure_input in #(
   23277     *\&* | *\|* | *\\* )
   23278        ac_sed_conf_input=`$as_echo "$configure_input" |
   23279        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   23280     *) ac_sed_conf_input=$configure_input;;
   23281     esac
   23282 
   23283     case $ac_tag in
   23284     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   23285       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   23286     esac
   23287     ;;
   23288   esac
   23289 
   23290   ac_dir=`$as_dirname -- "$ac_file" ||
   23291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   23292 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   23293 	 X"$ac_file" : 'X\(//\)$' \| \
   23294 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   23295 $as_echo X"$ac_file" |
   23296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   23297 	    s//\1/
   23298 	    q
   23299 	  }
   23300 	  /^X\(\/\/\)[^/].*/{
   23301 	    s//\1/
   23302 	    q
   23303 	  }
   23304 	  /^X\(\/\/\)$/{
   23305 	    s//\1/
   23306 	    q
   23307 	  }
   23308 	  /^X\(\/\).*/{
   23309 	    s//\1/
   23310 	    q
   23311 	  }
   23312 	  s/.*/./; q'`
   23313   as_dir="$ac_dir"; as_fn_mkdir_p
   23314   ac_builddir=.
   23315 
   23316 case "$ac_dir" in
   23317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   23318 *)
   23319   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   23320   # A ".." for each directory in $ac_dir_suffix.
   23321   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   23322   case $ac_top_builddir_sub in
   23323   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   23324   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   23325   esac ;;
   23326 esac
   23327 ac_abs_top_builddir=$ac_pwd
   23328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   23329 # for backward compatibility:
   23330 ac_top_builddir=$ac_top_build_prefix
   23331 
   23332 case $srcdir in
   23333   .)  # We are building in place.
   23334     ac_srcdir=.
   23335     ac_top_srcdir=$ac_top_builddir_sub
   23336     ac_abs_top_srcdir=$ac_pwd ;;
   23337   [\\/]* | ?:[\\/]* )  # Absolute name.
   23338     ac_srcdir=$srcdir$ac_dir_suffix;
   23339     ac_top_srcdir=$srcdir
   23340     ac_abs_top_srcdir=$srcdir ;;
   23341   *) # Relative name.
   23342     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   23343     ac_top_srcdir=$ac_top_build_prefix$srcdir
   23344     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   23345 esac
   23346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   23347 
   23348 
   23349   case $ac_mode in
   23350   :F)
   23351   #
   23352   # CONFIG_FILE
   23353   #
   23354 
   23355 _ACEOF
   23356 
   23357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23358 # If the template does not know about datarootdir, expand it.
   23359 # FIXME: This hack should be removed a few years after 2.60.
   23360 ac_datarootdir_hack=; ac_datarootdir_seen=
   23361 ac_sed_dataroot='
   23362 /datarootdir/ {
   23363   p
   23364   q
   23365 }
   23366 /@datadir@/p
   23367 /@docdir@/p
   23368 /@infodir@/p
   23369 /@localedir@/p
   23370 /@mandir@/p'
   23371 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   23372 *datarootdir*) ac_datarootdir_seen=yes;;
   23373 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   23374   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   23375 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   23376 _ACEOF
   23377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23378   ac_datarootdir_hack='
   23379   s&@datadir@&$datadir&g
   23380   s&@docdir@&$docdir&g
   23381   s&@infodir@&$infodir&g
   23382   s&@localedir@&$localedir&g
   23383   s&@mandir@&$mandir&g
   23384   s&\\\${datarootdir}&$datarootdir&g' ;;
   23385 esac
   23386 _ACEOF
   23387 
   23388 # Neutralize VPATH when `$srcdir' = `.'.
   23389 # Shell code in configure.ac might set extrasub.
   23390 # FIXME: do we really want to maintain this feature?
   23391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23392 ac_sed_extra="$ac_vpsub
   23393 $extrasub
   23394 _ACEOF
   23395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23396 :t
   23397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   23398 s|@configure_input@|$ac_sed_conf_input|;t t
   23399 s&@top_builddir@&$ac_top_builddir_sub&;t t
   23400 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   23401 s&@srcdir@&$ac_srcdir&;t t
   23402 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   23403 s&@top_srcdir@&$ac_top_srcdir&;t t
   23404 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   23405 s&@builddir@&$ac_builddir&;t t
   23406 s&@abs_builddir@&$ac_abs_builddir&;t t
   23407 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   23408 $ac_datarootdir_hack
   23409 "
   23410 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   23411   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23412 
   23413 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   23414   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   23415   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   23416       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   23417   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   23418 which seems to be undefined.  Please make sure it is defined" >&5
   23419 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   23420 which seems to be undefined.  Please make sure it is defined" >&2;}
   23421 
   23422   rm -f "$ac_tmp/stdin"
   23423   case $ac_file in
   23424   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   23425   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   23426   esac \
   23427   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23428  ;;
   23429   :H)
   23430   #
   23431   # CONFIG_HEADER
   23432   #
   23433   if test x"$ac_file" != x-; then
   23434     {
   23435       $as_echo "/* $configure_input  */" \
   23436       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   23437     } >"$ac_tmp/config.h" \
   23438       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23439     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   23440       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   23441 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   23442     else
   23443       rm -f "$ac_file"
   23444       mv "$ac_tmp/config.h" "$ac_file" \
   23445 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23446     fi
   23447   else
   23448     $as_echo "/* $configure_input  */" \
   23449       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   23450       || as_fn_error $? "could not create -" "$LINENO" 5
   23451   fi
   23452  ;;
   23453 
   23454   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   23455 $as_echo "$as_me: executing $ac_file commands" >&6;}
   23456  ;;
   23457   esac
   23458 
   23459 
   23460   case $ac_file$ac_mode in
   23461     "libtool":C)
   23462 
   23463     # See if we are running on zsh, and set the options that allow our
   23464     # commands through without removal of \ escapes.
   23465     if test -n "${ZSH_VERSION+set}"; then
   23466       setopt NO_GLOB_SUBST
   23467     fi
   23468 
   23469     cfgfile=${ofile}T
   23470     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   23471     $RM "$cfgfile"
   23472 
   23473     cat <<_LT_EOF >> "$cfgfile"
   23474 #! $SHELL
   23475 # Generated automatically by $as_me ($PACKAGE) $VERSION
   23476 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   23477 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   23478 
   23479 # Provide generalized library-building support services.
   23480 # Written by Gordon Matzigkeit, 1996
   23481 
   23482 # Copyright (C) 2014 Free Software Foundation, Inc.
   23483 # This is free software; see the source for copying conditions.  There is NO
   23484 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   23485 
   23486 # GNU Libtool is free software; you can redistribute it and/or modify
   23487 # it under the terms of the GNU General Public License as published by
   23488 # the Free Software Foundation; either version 2 of of the License, or
   23489 # (at your option) any later version.
   23490 #
   23491 # As a special exception to the GNU General Public License, if you
   23492 # distribute this file as part of a program or library that is built
   23493 # using GNU Libtool, you may include this file under the  same
   23494 # distribution terms that you use for the rest of that program.
   23495 #
   23496 # GNU Libtool is distributed in the hope that it will be useful, but
   23497 # WITHOUT ANY WARRANTY; without even the implied warranty of
   23498 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   23499 # GNU General Public License for more details.
   23500 #
   23501 # You should have received a copy of the GNU General Public License
   23502 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   23503 
   23504 
   23505 # The names of the tagged configurations supported by this script.
   23506 available_tags=''
   23507 
   23508 # Configured defaults for sys_lib_dlsearch_path munging.
   23509 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   23510 
   23511 # ### BEGIN LIBTOOL CONFIG
   23512 
   23513 # Which release of libtool.m4 was used?
   23514 macro_version=$macro_version
   23515 macro_revision=$macro_revision
   23516 
   23517 # Whether or not to build shared libraries.
   23518 build_libtool_libs=$enable_shared
   23519 
   23520 # Whether or not to build static libraries.
   23521 build_old_libs=$enable_static
   23522 
   23523 # What type of objects to build.
   23524 pic_mode=$pic_mode
   23525 
   23526 # Whether or not to optimize for fast installation.
   23527 fast_install=$enable_fast_install
   23528 
   23529 # Shared archive member basename,for filename based shared library versioning on AIX.
   23530 shared_archive_member_spec=$shared_archive_member_spec
   23531 
   23532 # Shell to use when invoking shell scripts.
   23533 SHELL=$lt_SHELL
   23534 
   23535 # An echo program that protects backslashes.
   23536 ECHO=$lt_ECHO
   23537 
   23538 # The PATH separator for the build system.
   23539 PATH_SEPARATOR=$lt_PATH_SEPARATOR
   23540 
   23541 # The host system.
   23542 host_alias=$host_alias
   23543 host=$host
   23544 host_os=$host_os
   23545 
   23546 # The build system.
   23547 build_alias=$build_alias
   23548 build=$build
   23549 build_os=$build_os
   23550 
   23551 # A sed program that does not truncate output.
   23552 SED=$lt_SED
   23553 
   23554 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   23555 Xsed="\$SED -e 1s/^X//"
   23556 
   23557 # A grep program that handles long lines.
   23558 GREP=$lt_GREP
   23559 
   23560 # An ERE matcher.
   23561 EGREP=$lt_EGREP
   23562 
   23563 # A literal string matcher.
   23564 FGREP=$lt_FGREP
   23565 
   23566 # A BSD- or MS-compatible name lister.
   23567 NM=$lt_NM
   23568 
   23569 # Whether we need soft or hard links.
   23570 LN_S=$lt_LN_S
   23571 
   23572 # What is the maximum length of a command?
   23573 max_cmd_len=$max_cmd_len
   23574 
   23575 # Object file suffix (normally "o").
   23576 objext=$ac_objext
   23577 
   23578 # Executable file suffix (normally "").
   23579 exeext=$exeext
   23580 
   23581 # whether the shell understands "unset".
   23582 lt_unset=$lt_unset
   23583 
   23584 # turn spaces into newlines.
   23585 SP2NL=$lt_lt_SP2NL
   23586 
   23587 # turn newlines into spaces.
   23588 NL2SP=$lt_lt_NL2SP
   23589 
   23590 # convert \$build file names to \$host format.
   23591 to_host_file_cmd=$lt_cv_to_host_file_cmd
   23592 
   23593 # convert \$build files to toolchain format.
   23594 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   23595 
   23596 # An object symbol dumper.
   23597 OBJDUMP=$lt_OBJDUMP
   23598 
   23599 # Method to check whether dependent libraries are shared objects.
   23600 deplibs_check_method=$lt_deplibs_check_method
   23601 
   23602 # Command to use when deplibs_check_method = "file_magic".
   23603 file_magic_cmd=$lt_file_magic_cmd
   23604 
   23605 # How to find potential files when deplibs_check_method = "file_magic".
   23606 file_magic_glob=$lt_file_magic_glob
   23607 
   23608 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   23609 want_nocaseglob=$lt_want_nocaseglob
   23610 
   23611 # DLL creation program.
   23612 DLLTOOL=$lt_DLLTOOL
   23613 
   23614 # Command to associate shared and link libraries.
   23615 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   23616 
   23617 # The archiver.
   23618 AR=$lt_AR
   23619 
   23620 # Flags to create an archive.
   23621 AR_FLAGS=$lt_AR_FLAGS
   23622 
   23623 # How to feed a file listing to the archiver.
   23624 archiver_list_spec=$lt_archiver_list_spec
   23625 
   23626 # A symbol stripping program.
   23627 STRIP=$lt_STRIP
   23628 
   23629 # Commands used to install an old-style archive.
   23630 RANLIB=$lt_RANLIB
   23631 old_postinstall_cmds=$lt_old_postinstall_cmds
   23632 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   23633 
   23634 # Whether to use a lock for old archive extraction.
   23635 lock_old_archive_extraction=$lock_old_archive_extraction
   23636 
   23637 # A C compiler.
   23638 LTCC=$lt_CC
   23639 
   23640 # LTCC compiler flags.
   23641 LTCFLAGS=$lt_CFLAGS
   23642 
   23643 # Take the output of nm and produce a listing of raw symbols and C names.
   23644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   23645 
   23646 # Transform the output of nm in a proper C declaration.
   23647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   23648 
   23649 # Transform the output of nm into a list of symbols to manually relocate.
   23650 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   23651 
   23652 # Transform the output of nm in a C name address pair.
   23653 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   23654 
   23655 # Transform the output of nm in a C name address pair when lib prefix is needed.
   23656 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   23657 
   23658 # The name lister interface.
   23659 nm_interface=$lt_lt_cv_nm_interface
   23660 
   23661 # Specify filename containing input files for \$NM.
   23662 nm_file_list_spec=$lt_nm_file_list_spec
   23663 
   23664 # The root where to search for dependent libraries,and where our libraries should be installed.
   23665 lt_sysroot=$lt_sysroot
   23666 
   23667 # Command to truncate a binary pipe.
   23668 lt_truncate_bin=$lt_lt_cv_truncate_bin
   23669 
   23670 # The name of the directory that contains temporary libtool files.
   23671 objdir=$objdir
   23672 
   23673 # Used to examine libraries when file_magic_cmd begins with "file".
   23674 MAGIC_CMD=$MAGIC_CMD
   23675 
   23676 # Must we lock files when doing compilation?
   23677 need_locks=$lt_need_locks
   23678 
   23679 # Manifest tool.
   23680 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   23681 
   23682 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   23683 DSYMUTIL=$lt_DSYMUTIL
   23684 
   23685 # Tool to change global to local symbols on Mac OS X.
   23686 NMEDIT=$lt_NMEDIT
   23687 
   23688 # Tool to manipulate fat objects and archives on Mac OS X.
   23689 LIPO=$lt_LIPO
   23690 
   23691 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   23692 OTOOL=$lt_OTOOL
   23693 
   23694 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   23695 OTOOL64=$lt_OTOOL64
   23696 
   23697 # Old archive suffix (normally "a").
   23698 libext=$libext
   23699 
   23700 # Shared library suffix (normally ".so").
   23701 shrext_cmds=$lt_shrext_cmds
   23702 
   23703 # The commands to extract the exported symbol list from a shared archive.
   23704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   23705 
   23706 # Variables whose values should be saved in libtool wrapper scripts and
   23707 # restored at link time.
   23708 variables_saved_for_relink=$lt_variables_saved_for_relink
   23709 
   23710 # Do we need the "lib" prefix for modules?
   23711 need_lib_prefix=$need_lib_prefix
   23712 
   23713 # Do we need a version for libraries?
   23714 need_version=$need_version
   23715 
   23716 # Library versioning type.
   23717 version_type=$version_type
   23718 
   23719 # Shared library runtime path variable.
   23720 runpath_var=$runpath_var
   23721 
   23722 # Shared library path variable.
   23723 shlibpath_var=$shlibpath_var
   23724 
   23725 # Is shlibpath searched before the hard-coded library search path?
   23726 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   23727 
   23728 # Format of library name prefix.
   23729 libname_spec=$lt_libname_spec
   23730 
   23731 # List of archive names.  First name is the real one, the rest are links.
   23732 # The last name is the one that the linker finds with -lNAME
   23733 library_names_spec=$lt_library_names_spec
   23734 
   23735 # The coded name of the library, if different from the real name.
   23736 soname_spec=$lt_soname_spec
   23737 
   23738 # Permission mode override for installation of shared libraries.
   23739 install_override_mode=$lt_install_override_mode
   23740 
   23741 # Command to use after installation of a shared archive.
   23742 postinstall_cmds=$lt_postinstall_cmds
   23743 
   23744 # Command to use after uninstallation of a shared archive.
   23745 postuninstall_cmds=$lt_postuninstall_cmds
   23746 
   23747 # Commands used to finish a libtool library installation in a directory.
   23748 finish_cmds=$lt_finish_cmds
   23749 
   23750 # As "finish_cmds", except a single script fragment to be evaled but
   23751 # not shown.
   23752 finish_eval=$lt_finish_eval
   23753 
   23754 # Whether we should hardcode library paths into libraries.
   23755 hardcode_into_libs=$hardcode_into_libs
   23756 
   23757 # Compile-time system search path for libraries.
   23758 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   23759 
   23760 # Detected run-time system search path for libraries.
   23761 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   23762 
   23763 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   23764 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   23765 
   23766 # Whether dlopen is supported.
   23767 dlopen_support=$enable_dlopen
   23768 
   23769 # Whether dlopen of programs is supported.
   23770 dlopen_self=$enable_dlopen_self
   23771 
   23772 # Whether dlopen of statically linked programs is supported.
   23773 dlopen_self_static=$enable_dlopen_self_static
   23774 
   23775 # Commands to strip libraries.
   23776 old_striplib=$lt_old_striplib
   23777 striplib=$lt_striplib
   23778 
   23779 
   23780 # The linker used to build libraries.
   23781 LD=$lt_LD
   23782 
   23783 # How to create reloadable object files.
   23784 reload_flag=$lt_reload_flag
   23785 reload_cmds=$lt_reload_cmds
   23786 
   23787 # Commands used to build an old-style archive.
   23788 old_archive_cmds=$lt_old_archive_cmds
   23789 
   23790 # A language specific compiler.
   23791 CC=$lt_compiler
   23792 
   23793 # Is the compiler the GNU compiler?
   23794 with_gcc=$GCC
   23795 
   23796 # Compiler flag to turn off builtin functions.
   23797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   23798 
   23799 # Additional compiler flags for building library objects.
   23800 pic_flag=$lt_lt_prog_compiler_pic
   23801 
   23802 # How to pass a linker flag through the compiler.
   23803 wl=$lt_lt_prog_compiler_wl
   23804 
   23805 # Compiler flag to prevent dynamic linking.
   23806 link_static_flag=$lt_lt_prog_compiler_static
   23807 
   23808 # Does compiler simultaneously support -c and -o options?
   23809 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   23810 
   23811 # Whether or not to add -lc for building shared libraries.
   23812 build_libtool_need_lc=$archive_cmds_need_lc
   23813 
   23814 # Whether or not to disallow shared libs when runtime libs are static.
   23815 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   23816 
   23817 # Compiler flag to allow reflexive dlopens.
   23818 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   23819 
   23820 # Compiler flag to generate shared objects directly from archives.
   23821 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   23822 
   23823 # Whether the compiler copes with passing no objects directly.
   23824 compiler_needs_object=$lt_compiler_needs_object
   23825 
   23826 # Create an old-style archive from a shared archive.
   23827 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   23828 
   23829 # Create a temporary old-style archive to link instead of a shared archive.
   23830 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   23831 
   23832 # Commands used to build a shared archive.
   23833 archive_cmds=$lt_archive_cmds
   23834 archive_expsym_cmds=$lt_archive_expsym_cmds
   23835 
   23836 # Commands used to build a loadable module if different from building
   23837 # a shared archive.
   23838 module_cmds=$lt_module_cmds
   23839 module_expsym_cmds=$lt_module_expsym_cmds
   23840 
   23841 # Whether we are building with GNU ld or not.
   23842 with_gnu_ld=$lt_with_gnu_ld
   23843 
   23844 # Flag that allows shared libraries with undefined symbols to be built.
   23845 allow_undefined_flag=$lt_allow_undefined_flag
   23846 
   23847 # Flag that enforces no undefined symbols.
   23848 no_undefined_flag=$lt_no_undefined_flag
   23849 
   23850 # Flag to hardcode \$libdir into a binary during linking.
   23851 # This must work even if \$libdir does not exist
   23852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   23853 
   23854 # Whether we need a single "-rpath" flag with a separated argument.
   23855 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   23856 
   23857 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   23858 # DIR into the resulting binary.
   23859 hardcode_direct=$hardcode_direct
   23860 
   23861 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   23862 # DIR into the resulting binary and the resulting library dependency is
   23863 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
   23864 # library is relocated.
   23865 hardcode_direct_absolute=$hardcode_direct_absolute
   23866 
   23867 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   23868 # into the resulting binary.
   23869 hardcode_minus_L=$hardcode_minus_L
   23870 
   23871 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   23872 # into the resulting binary.
   23873 hardcode_shlibpath_var=$hardcode_shlibpath_var
   23874 
   23875 # Set to "yes" if building a shared library automatically hardcodes DIR
   23876 # into the library and all subsequent libraries and executables linked
   23877 # against it.
   23878 hardcode_automatic=$hardcode_automatic
   23879 
   23880 # Set to yes if linker adds runtime paths of dependent libraries
   23881 # to runtime path list.
   23882 inherit_rpath=$inherit_rpath
   23883 
   23884 # Whether libtool must link a program against all its dependency libraries.
   23885 link_all_deplibs=$link_all_deplibs
   23886 
   23887 # Set to "yes" if exported symbols are required.
   23888 always_export_symbols=$always_export_symbols
   23889 
   23890 # The commands to list exported symbols.
   23891 export_symbols_cmds=$lt_export_symbols_cmds
   23892 
   23893 # Symbols that should not be listed in the preloaded symbols.
   23894 exclude_expsyms=$lt_exclude_expsyms
   23895 
   23896 # Symbols that must always be exported.
   23897 include_expsyms=$lt_include_expsyms
   23898 
   23899 # Commands necessary for linking programs (against libraries) with templates.
   23900 prelink_cmds=$lt_prelink_cmds
   23901 
   23902 # Commands necessary for finishing linking programs.
   23903 postlink_cmds=$lt_postlink_cmds
   23904 
   23905 # Specify filename containing input files.
   23906 file_list_spec=$lt_file_list_spec
   23907 
   23908 # How to hardcode a shared library path into an executable.
   23909 hardcode_action=$hardcode_action
   23910 
   23911 # ### END LIBTOOL CONFIG
   23912 
   23913 _LT_EOF
   23914 
   23915     cat <<'_LT_EOF' >> "$cfgfile"
   23916 
   23917 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   23918 
   23919 # func_munge_path_list VARIABLE PATH
   23920 # -----------------------------------
   23921 # VARIABLE is name of variable containing _space_ separated list of
   23922 # directories to be munged by the contents of PATH, which is string
   23923 # having a format:
   23924 # "DIR[:DIR]:"
   23925 #       string "DIR[ DIR]" will be prepended to VARIABLE
   23926 # ":DIR[:DIR]"
   23927 #       string "DIR[ DIR]" will be appended to VARIABLE
   23928 # "DIRP[:DIRP]::[DIRA:]DIRA"
   23929 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   23930 #       "DIRA[ DIRA]" will be appended to VARIABLE
   23931 # "DIR[:DIR]"
   23932 #       VARIABLE will be replaced by "DIR[ DIR]"
   23933 func_munge_path_list ()
   23934 {
   23935     case x$2 in
   23936     x)
   23937         ;;
   23938     *:)
   23939         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   23940         ;;
   23941     x:*)
   23942         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   23943         ;;
   23944     *::*)
   23945         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   23946         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   23947         ;;
   23948     *)
   23949         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   23950         ;;
   23951     esac
   23952 }
   23953 
   23954 
   23955 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   23956 func_cc_basename ()
   23957 {
   23958     for cc_temp in $*""; do
   23959       case $cc_temp in
   23960         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   23961         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   23962         \-*) ;;
   23963         *) break;;
   23964       esac
   23965     done
   23966     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   23967 }
   23968 
   23969 
   23970 # ### END FUNCTIONS SHARED WITH CONFIGURE
   23971 
   23972 _LT_EOF
   23973 
   23974   case $host_os in
   23975   aix3*)
   23976     cat <<\_LT_EOF >> "$cfgfile"
   23977 # AIX sometimes has problems with the GCC collect2 program.  For some
   23978 # reason, if we set the COLLECT_NAMES environment variable, the problems
   23979 # vanish in a puff of smoke.
   23980 if test set != "${COLLECT_NAMES+set}"; then
   23981   COLLECT_NAMES=
   23982   export COLLECT_NAMES
   23983 fi
   23984 _LT_EOF
   23985     ;;
   23986   esac
   23987 
   23988 
   23989 ltmain=$ac_aux_dir/ltmain.sh
   23990 
   23991 
   23992   # We use sed instead of cat because bash on DJGPP gets confused if
   23993   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   23994   # text mode, it properly converts lines to CR/LF.  This bash problem
   23995   # is reportedly fixed, but why not run on old versions too?
   23996   sed '$q' "$ltmain" >> "$cfgfile" \
   23997      || (rm -f "$cfgfile"; exit 1)
   23998 
   23999    mv -f "$cfgfile" "$ofile" ||
   24000     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   24001   chmod +x "$ofile"
   24002 
   24003  ;;
   24004     "disable-rpath":C)
   24005 	sed < libtool > libtool-2 \
   24006 	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
   24007 	mv libtool-2 libtool
   24008 	chmod 755 libtool
   24009 	libtool="./libtool"
   24010 	 ;;
   24011 
   24012   esac
   24013 done # for ac_tag
   24014 
   24015 
   24016 as_fn_exit 0
   24017 _ACEOF
   24018 ac_clean_files=$ac_clean_files_save
   24019 
   24020 test $ac_write_fail = 0 ||
   24021   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   24022 
   24023 
   24024 # configure is writing to config.log, and then calls config.status.
   24025 # config.status does its own redirection, appending to config.log.
   24026 # Unfortunately, on DOS this fails, as config.log is still kept open
   24027 # by configure, so config.status won't be able to write to it; its
   24028 # output is simply discarded.  So we exec the FD to /dev/null,
   24029 # effectively closing config.log, so it can be properly (re)opened and
   24030 # appended to by config.status.  When coming back to configure, we
   24031 # need to make the FD available again.
   24032 if test "$no_create" != yes; then
   24033   ac_cs_success=:
   24034   ac_config_status_args=
   24035   test "$silent" = yes &&
   24036     ac_config_status_args="$ac_config_status_args --quiet"
   24037   exec 5>/dev/null
   24038   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   24039   exec 5>>config.log
   24040   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   24041   # would make configure fail if this is the last instruction.
   24042   $ac_cs_success || as_fn_exit 1
   24043 fi
   24044 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   24045   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   24046 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   24047 fi
   24048 
   24049