Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.2
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for unbound 1.6.8.
      4 #
      5 # Report bugs to <unbound-bugs (at] nlnetlabs.nl>.
      6 #
      7 #
      8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
      9 #
     10 #
     11 # This configure script is free software; the Free Software Foundation
     12 # gives unlimited permission to copy, distribute and modify it.
     13 ## -------------------- ##
     14 ## M4sh Initialization. ##
     15 ## -------------------- ##
     16 
     17 # Be more Bourne compatible
     18 DUALCASE=1; export DUALCASE # for MKS sh
     19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     20   emulate sh
     21   NULLCMD=:
     22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     23   # is contrary to our usage.  Disable this feature.
     24   alias -g '${1+"$@"}'='"$@"'
     25   setopt NO_GLOB_SUBST
     26 else
     27   case `(set -o) 2>/dev/null` in #(
     28   *posix*) :
     29     set -o posix ;; #(
     30   *) :
     31      ;;
     32 esac
     33 fi
     34 
     35 
     36 as_nl='
     37 '
     38 export as_nl
     39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     43 # Prefer a ksh shell builtin over an external printf program on Solaris,
     44 # but without wasting forks for bash or zsh.
     45 if test -z "$BASH_VERSION$ZSH_VERSION" \
     46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     47   as_echo='print -r --'
     48   as_echo_n='print -rn --'
     49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     50   as_echo='printf %s\n'
     51   as_echo_n='printf %s'
     52 else
     53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     55     as_echo_n='/usr/ucb/echo -n'
     56   else
     57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     58     as_echo_n_body='eval
     59       arg=$1;
     60       case $arg in #(
     61       *"$as_nl"*)
     62 	expr "X$arg" : "X\\(.*\\)$as_nl";
     63 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     64       esac;
     65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     66     '
     67     export as_echo_n_body
     68     as_echo_n='sh -c $as_echo_n_body as_echo'
     69   fi
     70   export as_echo_body
     71   as_echo='sh -c $as_echo_body as_echo'
     72 fi
     73 
     74 # The user is always right.
     75 if test "${PATH_SEPARATOR+set}" != set; then
     76   PATH_SEPARATOR=:
     77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     79       PATH_SEPARATOR=';'
     80   }
     81 fi
     82 
     83 
     84 # IFS
     85 # We need space, tab and new line, in precisely that order.  Quoting is
     86 # there to prevent editors from complaining about space-tab.
     87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     88 # splitting by setting IFS to empty value.)
     89 IFS=" ""	$as_nl"
     90 
     91 # Find who we are.  Look in the path if we contain no directory separator.
     92 as_myself=
     93 case $0 in #((
     94   *[\\/]* ) as_myself=$0 ;;
     95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     96 for as_dir in $PATH
     97 do
     98   IFS=$as_save_IFS
     99   test -z "$as_dir" && as_dir=.
    100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    101   done
    102 IFS=$as_save_IFS
    103 
    104      ;;
    105 esac
    106 # We did not find ourselves, most probably we were run as `sh COMMAND'
    107 # in which case we are not to be found in the path.
    108 if test "x$as_myself" = x; then
    109   as_myself=$0
    110 fi
    111 if test ! -f "$as_myself"; then
    112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    113   exit 1
    114 fi
    115 
    116 # Unset variables that we do not need and which cause bugs (e.g. in
    117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    118 # suppresses any "Segmentation fault" message there.  '((' could
    119 # trigger a bug in pdksh 5.2.14.
    120 for as_var in BASH_ENV ENV MAIL MAILPATH
    121 do eval test x\${$as_var+set} = xset \
    122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    123 done
    124 PS1='$ '
    125 PS2='> '
    126 PS4='+ '
    127 
    128 # NLS nuisances.
    129 LC_ALL=C
    130 export LC_ALL
    131 LANGUAGE=C
    132 export LANGUAGE
    133 
    134 # CDPATH.
    135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    136 
    137 # Use a proper internal environment variable to ensure we don't fall
    138   # into an infinite loop, continuously re-executing ourselves.
    139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    140     _as_can_reexec=no; export _as_can_reexec;
    141     # We cannot yet assume a decent shell, so we have to provide a
    142 # neutralization value for shells without unset; and this also
    143 # works around shells that cannot unset nonexistent variables.
    144 # Preserve -v and -x to the replacement shell.
    145 BASH_ENV=/dev/null
    146 ENV=/dev/null
    147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    148 case $- in # ((((
    149   *v*x* | *x*v* ) as_opts=-vx ;;
    150   *v* ) as_opts=-v ;;
    151   *x* ) as_opts=-x ;;
    152   * ) as_opts= ;;
    153 esac
    154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    155 # Admittedly, this is quite paranoid, since all the known shells bail
    156 # out after a failed `exec'.
    157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    158 as_fn_exit 255
    159   fi
    160   # We don't want this to propagate to other subprocesses.
    161           { _as_can_reexec=; unset _as_can_reexec;}
    162 if test "x$CONFIG_SHELL" = x; then
    163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    164   emulate sh
    165   NULLCMD=:
    166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    167   # is contrary to our usage.  Disable this feature.
    168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    169   setopt NO_GLOB_SUBST
    170 else
    171   case \`(set -o) 2>/dev/null\` in #(
    172   *posix*) :
    173     set -o posix ;; #(
    174   *) :
    175      ;;
    176 esac
    177 fi
    178 "
    179   as_required="as_fn_return () { (exit \$1); }
    180 as_fn_success () { as_fn_return 0; }
    181 as_fn_failure () { as_fn_return 1; }
    182 as_fn_ret_success () { return 0; }
    183 as_fn_ret_failure () { return 1; }
    184 
    185 exitcode=0
    186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    191 
    192 else
    193   exitcode=1; echo positional parameters were not saved.
    194 fi
    195 test x\$exitcode = x0 || exit 1
    196 test -x / || exit 1"
    197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    201 test \$(( 1 + 1 )) = 2 || exit 1
    202 
    203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    207     PATH=/empty FPATH=/empty; export PATH FPATH
    208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
    209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
    210   if (eval "$as_required") 2>/dev/null; then :
    211   as_have_required=yes
    212 else
    213   as_have_required=no
    214 fi
    215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    216 
    217 else
    218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    219 as_found=false
    220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    221 do
    222   IFS=$as_save_IFS
    223   test -z "$as_dir" && as_dir=.
    224   as_found=:
    225   case $as_dir in #(
    226 	 /*)
    227 	   for as_base in sh bash ksh sh5; do
    228 	     # Try only shells that exist, to save several forks.
    229 	     as_shell=$as_dir/$as_base
    230 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    231 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    232   CONFIG_SHELL=$as_shell as_have_required=yes
    233 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    234   break 2
    235 fi
    236 fi
    237 	   done;;
    238        esac
    239   as_found=false
    240 done
    241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    242 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    243   CONFIG_SHELL=$SHELL as_have_required=yes
    244 fi; }
    245 IFS=$as_save_IFS
    246 
    247 
    248       if test "x$CONFIG_SHELL" != x; then :
    249   export CONFIG_SHELL
    250              # We cannot yet assume a decent shell, so we have to provide a
    251 # neutralization value for shells without unset; and this also
    252 # works around shells that cannot unset nonexistent variables.
    253 # Preserve -v and -x to the replacement shell.
    254 BASH_ENV=/dev/null
    255 ENV=/dev/null
    256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    257 case $- in # ((((
    258   *v*x* | *x*v* ) as_opts=-vx ;;
    259   *v* ) as_opts=-v ;;
    260   *x* ) as_opts=-x ;;
    261   * ) as_opts= ;;
    262 esac
    263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    264 # Admittedly, this is quite paranoid, since all the known shells bail
    265 # out after a failed `exec'.
    266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    267 exit 255
    268 fi
    269 
    270     if test x$as_have_required = xno; then :
    271   $as_echo "$0: This script requires a shell more modern than all"
    272   $as_echo "$0: the shells that I found on your system."
    273   if test x${ZSH_VERSION+set} = xset ; then
    274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    276   else
    277     $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
    278 $0: unbound-bugs (at] nlnetlabs.nl about your system, including
    279 $0: any error possibly output before this message. Then
    280 $0: install a modern shell, or manually run the script
    281 $0: under such a shell if you do have one."
    282   fi
    283   exit 1
    284 fi
    285 fi
    286 fi
    287 SHELL=${CONFIG_SHELL-/bin/sh}
    288 export SHELL
    289 # Unset more variables known to interfere with behavior of common tools.
    290 CLICOLOR_FORCE= GREP_OPTIONS=
    291 unset CLICOLOR_FORCE GREP_OPTIONS
    292 
    293 ## --------------------- ##
    294 ## M4sh Shell Functions. ##
    295 ## --------------------- ##
    296 # as_fn_unset VAR
    297 # ---------------
    298 # Portably unset VAR.
    299 as_fn_unset ()
    300 {
    301   { eval $1=; unset $1;}
    302 }
    303 as_unset=as_fn_unset
    304 
    305 # as_fn_set_status STATUS
    306 # -----------------------
    307 # Set $? to STATUS, without forking.
    308 as_fn_set_status ()
    309 {
    310   return $1
    311 } # as_fn_set_status
    312 
    313 # as_fn_exit STATUS
    314 # -----------------
    315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    316 as_fn_exit ()
    317 {
    318   set +e
    319   as_fn_set_status $1
    320   exit $1
    321 } # as_fn_exit
    322 
    323 # as_fn_mkdir_p
    324 # -------------
    325 # Create "$as_dir" as a directory, including parents if necessary.
    326 as_fn_mkdir_p ()
    327 {
    328 
    329   case $as_dir in #(
    330   -*) as_dir=./$as_dir;;
    331   esac
    332   test -d "$as_dir" || eval $as_mkdir_p || {
    333     as_dirs=
    334     while :; do
    335       case $as_dir in #(
    336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    337       *) as_qdir=$as_dir;;
    338       esac
    339       as_dirs="'$as_qdir' $as_dirs"
    340       as_dir=`$as_dirname -- "$as_dir" ||
    341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    342 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    343 	 X"$as_dir" : 'X\(//\)$' \| \
    344 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    345 $as_echo X"$as_dir" |
    346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    347 	    s//\1/
    348 	    q
    349 	  }
    350 	  /^X\(\/\/\)[^/].*/{
    351 	    s//\1/
    352 	    q
    353 	  }
    354 	  /^X\(\/\/\)$/{
    355 	    s//\1/
    356 	    q
    357 	  }
    358 	  /^X\(\/\).*/{
    359 	    s//\1/
    360 	    q
    361 	  }
    362 	  s/.*/./; q'`
    363       test -d "$as_dir" && break
    364     done
    365     test -z "$as_dirs" || eval "mkdir $as_dirs"
    366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    367 
    368 
    369 } # as_fn_mkdir_p
    370 
    371 # as_fn_executable_p FILE
    372 # -----------------------
    373 # Test if FILE is an executable regular file.
    374 as_fn_executable_p ()
    375 {
    376   test -f "$1" && test -x "$1"
    377 } # as_fn_executable_p
    378 # as_fn_append VAR VALUE
    379 # ----------------------
    380 # Append the text in VALUE to the end of the definition contained in VAR. Take
    381 # advantage of any shell optimizations that allow amortized linear growth over
    382 # repeated appends, instead of the typical quadratic growth present in naive
    383 # implementations.
    384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    385   eval 'as_fn_append ()
    386   {
    387     eval $1+=\$2
    388   }'
    389 else
    390   as_fn_append ()
    391   {
    392     eval $1=\$$1\$2
    393   }
    394 fi # as_fn_append
    395 
    396 # as_fn_arith ARG...
    397 # ------------------
    398 # Perform arithmetic evaluation on the ARGs, and store the result in the
    399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    400 # must be portable across $(()) and expr.
    401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    402   eval 'as_fn_arith ()
    403   {
    404     as_val=$(( $* ))
    405   }'
    406 else
    407   as_fn_arith ()
    408   {
    409     as_val=`expr "$@" || test $? -eq 1`
    410   }
    411 fi # as_fn_arith
    412 
    413 
    414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    415 # ----------------------------------------
    416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    418 # script with STATUS, using 1 if that was 0.
    419 as_fn_error ()
    420 {
    421   as_status=$1; test $as_status -eq 0 && as_status=1
    422   if test "$4"; then
    423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    425   fi
    426   $as_echo "$as_me: error: $2" >&2
    427   as_fn_exit $as_status
    428 } # as_fn_error
    429 
    430 if expr a : '\(a\)' >/dev/null 2>&1 &&
    431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    432   as_expr=expr
    433 else
    434   as_expr=false
    435 fi
    436 
    437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    438   as_basename=basename
    439 else
    440   as_basename=false
    441 fi
    442 
    443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    444   as_dirname=dirname
    445 else
    446   as_dirname=false
    447 fi
    448 
    449 as_me=`$as_basename -- "$0" ||
    450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    451 	 X"$0" : 'X\(//\)$' \| \
    452 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    453 $as_echo X/"$0" |
    454     sed '/^.*\/\([^/][^/]*\)\/*$/{
    455 	    s//\1/
    456 	    q
    457 	  }
    458 	  /^X\/\(\/\/\)$/{
    459 	    s//\1/
    460 	    q
    461 	  }
    462 	  /^X\/\(\/\).*/{
    463 	    s//\1/
    464 	    q
    465 	  }
    466 	  s/.*/./; q'`
    467 
    468 # Avoid depending upon Character Ranges.
    469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    472 as_cr_digits='0123456789'
    473 as_cr_alnum=$as_cr_Letters$as_cr_digits
    474 
    475 
    476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    481   sed -n '
    482     p
    483     /[$]LINENO/=
    484   ' <$as_myself |
    485     sed '
    486       s/[$]LINENO.*/&-/
    487       t lineno
    488       b
    489       :lineno
    490       N
    491       :loop
    492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    493       t loop
    494       s/-\n.*//
    495     ' >$as_me.lineno &&
    496   chmod +x "$as_me.lineno" ||
    497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    498 
    499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    500   # already done that, so ensure we don't try to do so again and fall
    501   # in an infinite loop.  This has already happened in practice.
    502   _as_can_reexec=no; export _as_can_reexec
    503   # Don't try to exec as it changes $[0], causing all sort of problems
    504   # (the dirname of $[0] is not the place where we might find the
    505   # original and so on.  Autoconf is especially sensitive to this).
    506   . "./$as_me.lineno"
    507   # Exit status is that of the last command.
    508   exit
    509 }
    510 
    511 ECHO_C= ECHO_N= ECHO_T=
    512 case `echo -n x` in #(((((
    513 -n*)
    514   case `echo 'xy\c'` in
    515   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    516   xy)  ECHO_C='\c';;
    517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    518        ECHO_T='	';;
    519   esac;;
    520 *)
    521   ECHO_N='-n';;
    522 esac
    523 
    524 rm -f conf$$ conf$$.exe conf$$.file
    525 if test -d conf$$.dir; then
    526   rm -f conf$$.dir/conf$$.file
    527 else
    528   rm -f conf$$.dir
    529   mkdir conf$$.dir 2>/dev/null
    530 fi
    531 if (echo >conf$$.file) 2>/dev/null; then
    532   if ln -s conf$$.file conf$$ 2>/dev/null; then
    533     as_ln_s='ln -s'
    534     # ... but there are two gotchas:
    535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    537     # In both cases, we have to default to `cp -pR'.
    538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    539       as_ln_s='cp -pR'
    540   elif ln conf$$.file conf$$ 2>/dev/null; then
    541     as_ln_s=ln
    542   else
    543     as_ln_s='cp -pR'
    544   fi
    545 else
    546   as_ln_s='cp -pR'
    547 fi
    548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    549 rmdir conf$$.dir 2>/dev/null
    550 
    551 if mkdir -p . 2>/dev/null; then
    552   as_mkdir_p='mkdir -p "$as_dir"'
    553 else
    554   test -d ./-p && rmdir ./-p
    555   as_mkdir_p=false
    556 fi
    557 
    558 as_test_x='test -x'
    559 as_executable_p=as_fn_executable_p
    560 
    561 # Sed expression to map a string onto a valid CPP name.
    562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    563 
    564 # Sed expression to map a string onto a valid variable name.
    565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    566 
    567 SHELL=${CONFIG_SHELL-/bin/sh}
    568 
    569 
    570 test -n "$DJDIR" || exec 7<&0 </dev/null
    571 exec 6>&1
    572 
    573 # Name of the host.
    574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    575 # so uname gets run too.
    576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    577 
    578 #
    579 # Initializations.
    580 #
    581 ac_default_prefix=/usr/local
    582 ac_clean_files=
    583 ac_config_libobj_dir=.
    584 LIBOBJS=
    585 cross_compiling=no
    586 subdirs=
    587 MFLAGS=
    588 MAKEFLAGS=
    589 
    590 # Identity of this package.
    591 PACKAGE_NAME='unbound'
    592 PACKAGE_TARNAME='unbound'
    593 PACKAGE_VERSION='1.6.8'
    594 PACKAGE_STRING='unbound 1.6.8'
    595 PACKAGE_BUGREPORT='unbound-bugs (at] nlnetlabs.nl'
    596 PACKAGE_URL=''
    597 
    598 # Factoring default headers for most tests.
    599 ac_includes_default="\
    600 #include <stdio.h>
    601 #ifdef HAVE_SYS_TYPES_H
    602 # include <sys/types.h>
    603 #endif
    604 #ifdef HAVE_SYS_STAT_H
    605 # include <sys/stat.h>
    606 #endif
    607 #ifdef STDC_HEADERS
    608 # include <stdlib.h>
    609 # include <stddef.h>
    610 #else
    611 # ifdef HAVE_STDLIB_H
    612 #  include <stdlib.h>
    613 # endif
    614 #endif
    615 #ifdef HAVE_STRING_H
    616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    617 #  include <memory.h>
    618 # endif
    619 # include <string.h>
    620 #endif
    621 #ifdef HAVE_STRINGS_H
    622 # include <strings.h>
    623 #endif
    624 #ifdef HAVE_INTTYPES_H
    625 # include <inttypes.h>
    626 #endif
    627 #ifdef HAVE_STDINT_H
    628 # include <stdint.h>
    629 #endif
    630 #ifdef HAVE_UNISTD_H
    631 # include <unistd.h>
    632 #endif"
    633 
    634 ac_subst_vars='LTLIBOBJS
    635 date
    636 version
    637 INSTALLTARGET
    638 ALLTARGET
    639 SOURCEFILE
    640 SOURCEDETERMINE
    641 IPSECMOD_HEADER
    642 IPSECMOD_OBJ
    643 DNSCRYPT_OBJ
    644 DNSCRYPT_SRC
    645 ENABLE_DNSCRYPT
    646 ENABLE_DNSCRYPT_XCHACHA20
    647 DNSTAP_OBJ
    648 DNSTAP_SRC
    649 opt_dnstap_socket_path
    650 ENABLE_DNSTAP
    651 PROTOC_C
    652 UBSYMS
    653 EXTRALINK
    654 COMMON_OBJ_ALL_SYMBOLS
    655 LIBOBJ_WITHOUT_CTIME
    656 LIBOBJ_WITHOUT_CTIMEARC4
    657 WIN_CHECKCONF_OBJ_LINK
    658 WIN_CONTROL_OBJ_LINK
    659 WIN_UBANCHOR_OBJ_LINK
    660 WIN_HOST_OBJ_LINK
    661 WIN_DAEMON_OBJ_LINK
    662 WIN_DAEMON_OBJ
    663 WIN_DAEMON_SRC
    664 WINAPPS
    665 WINDRES
    666 CHECKLOCK_OBJ
    667 USE_SYSTEMD_FALSE
    668 USE_SYSTEMD_TRUE
    669 SYSTEMD_DAEMON_LIBS
    670 SYSTEMD_DAEMON_CFLAGS
    671 SYSTEMD_LIBS
    672 SYSTEMD_CFLAGS
    673 PKG_CONFIG_LIBDIR
    674 PKG_CONFIG_PATH
    675 PKG_CONFIG
    676 staticexe
    677 PC_LIBEVENT_DEPENDENCY
    678 UNBOUND_EVENT_UNINSTALL
    679 UNBOUND_EVENT_INSTALL
    680 SUBNET_HEADER
    681 SUBNET_OBJ
    682 SSLLIB
    683 HAVE_SSL
    684 CONFIG_DATE
    685 NETBSD_LINTFLAGS
    686 PYUNBOUND_UNINSTALL
    687 PYUNBOUND_INSTALL
    688 PYUNBOUND_TARGET
    689 PYUNBOUND_OBJ
    690 WITH_PYUNBOUND
    691 PYTHONMOD_UNINSTALL
    692 PYTHONMOD_INSTALL
    693 PYTHONMOD_HEADER
    694 PYTHONMOD_OBJ
    695 WITH_PYTHONMODULE
    696 swig
    697 SWIG_LIB
    698 SWIG
    699 PC_PY_DEPENDENCY
    700 PY_MAJOR_VERSION
    701 PYTHON_SITE_PKG
    702 PYTHON_LDFLAGS
    703 PYTHON_CPPFLAGS
    704 PYTHON
    705 PYTHON_VERSION
    706 PTHREAD_CFLAGS_ONLY
    707 PTHREAD_CFLAGS
    708 PTHREAD_LIBS
    709 PTHREAD_CC
    710 ax_pthread_config
    711 RUNTIME_PATH
    712 LIBOBJS
    713 LT_SYS_LIBRARY_PATH
    714 OTOOL64
    715 OTOOL
    716 LIPO
    717 NMEDIT
    718 DSYMUTIL
    719 MANIFEST_TOOL
    720 AWK
    721 RANLIB
    722 ac_ct_AR
    723 DLLTOOL
    724 OBJDUMP
    725 LN_S
    726 NM
    727 ac_ct_DUMPBIN
    728 DUMPBIN
    729 LD
    730 FGREP
    731 SED
    732 LIBTOOL
    733 AR
    734 host_os
    735 host_vendor
    736 host_cpu
    737 host
    738 build_os
    739 build_vendor
    740 build_cpu
    741 build
    742 libtool
    743 STRIP
    744 doxygen
    745 YFLAGS
    746 YACC
    747 LEXLIB
    748 LEX_OUTPUT_ROOT
    749 LEX
    750 debug_enabled
    751 DEPFLAG
    752 UNBOUND_USERNAME
    753 UNBOUND_ROOTCERT_FILE
    754 UNBOUND_ROOTKEY_FILE
    755 UNBOUND_PIDFILE
    756 UNBOUND_SHARE_DIR
    757 UNBOUND_CHROOT_DIR
    758 UNBOUND_RUN_DIR
    759 ub_conf_dir
    760 ub_conf_file
    761 UNBOUND_LOCALSTATE_DIR
    762 UNBOUND_SYSCONF_DIR
    763 UNBOUND_SBIN_DIR
    764 EGREP
    765 GREP
    766 CPP
    767 OBJEXT
    768 EXEEXT
    769 ac_ct_CC
    770 CPPFLAGS
    771 LDFLAGS
    772 CFLAGS
    773 CC
    774 LIBUNBOUND_AGE
    775 LIBUNBOUND_REVISION
    776 LIBUNBOUND_CURRENT
    777 UNBOUND_VERSION_MICRO
    778 UNBOUND_VERSION_MINOR
    779 UNBOUND_VERSION_MAJOR
    780 target_alias
    781 host_alias
    782 build_alias
    783 LIBS
    784 ECHO_T
    785 ECHO_N
    786 ECHO_C
    787 DEFS
    788 mandir
    789 localedir
    790 libdir
    791 psdir
    792 pdfdir
    793 dvidir
    794 htmldir
    795 infodir
    796 docdir
    797 oldincludedir
    798 includedir
    799 localstatedir
    800 sharedstatedir
    801 sysconfdir
    802 datadir
    803 datarootdir
    804 libexecdir
    805 sbindir
    806 bindir
    807 program_transform_name
    808 prefix
    809 exec_prefix
    810 PACKAGE_URL
    811 PACKAGE_BUGREPORT
    812 PACKAGE_STRING
    813 PACKAGE_VERSION
    814 PACKAGE_TARNAME
    815 PACKAGE_NAME
    816 PATH_SEPARATOR
    817 SHELL'
    818 ac_subst_files=''
    819 ac_user_opts='
    820 enable_option_checking
    821 with_conf_file
    822 with_run_dir
    823 with_chroot_dir
    824 with_share_dir
    825 with_pidfile
    826 with_rootkey_file
    827 with_rootcert_file
    828 with_username
    829 enable_checking
    830 enable_debug
    831 enable_flto
    832 enable_pie
    833 enable_relro_now
    834 enable_shared
    835 enable_static
    836 with_pic
    837 enable_fast_install
    838 with_aix_soname
    839 with_gnu_ld
    840 with_sysroot
    841 enable_libtool_lock
    842 enable_rpath
    843 enable_largefile
    844 enable_alloc_checks
    845 enable_alloc_lite
    846 enable_alloc_nonregional
    847 with_pthreads
    848 with_solaris_threads
    849 with_pyunbound
    850 with_pythonmodule
    851 with_nss
    852 with_nettle
    853 with_ssl
    854 enable_sha1
    855 enable_sha2
    856 enable_subnet
    857 enable_gost
    858 enable_ecdsa
    859 enable_dsa
    860 enable_ed25519
    861 enable_event_api
    862 enable_tfo_client
    863 enable_tfo_server
    864 with_libevent
    865 with_libexpat
    866 enable_static_exe
    867 enable_systemd
    868 enable_lock_checks
    869 enable_allsymbols
    870 enable_dnstap
    871 with_dnstap_socket_path
    872 with_protobuf_c
    873 with_libfstrm
    874 enable_dnscrypt
    875 with_libsodium
    876 enable_cachedb
    877 enable_ipsecmod
    878 with_libunbound_only
    879 '
    880       ac_precious_vars='build_alias
    881 host_alias
    882 target_alias
    883 CC
    884 CFLAGS
    885 LDFLAGS
    886 LIBS
    887 CPPFLAGS
    888 CPP
    889 YACC
    890 YFLAGS
    891 LT_SYS_LIBRARY_PATH
    892 PYTHON_VERSION
    893 PKG_CONFIG
    894 PKG_CONFIG_PATH
    895 PKG_CONFIG_LIBDIR
    896 SYSTEMD_CFLAGS
    897 SYSTEMD_LIBS
    898 SYSTEMD_DAEMON_CFLAGS
    899 SYSTEMD_DAEMON_LIBS'
    900 
    901 
    902 # Initialize some variables set by options.
    903 ac_init_help=
    904 ac_init_version=false
    905 ac_unrecognized_opts=
    906 ac_unrecognized_sep=
    907 # The variables have the same names as the options, with
    908 # dashes changed to underlines.
    909 cache_file=/dev/null
    910 exec_prefix=NONE
    911 no_create=
    912 no_recursion=
    913 prefix=NONE
    914 program_prefix=NONE
    915 program_suffix=NONE
    916 program_transform_name=s,x,x,
    917 silent=
    918 site=
    919 srcdir=
    920 verbose=
    921 x_includes=NONE
    922 x_libraries=NONE
    923 
    924 # Installation directory options.
    925 # These are left unexpanded so users can "make install exec_prefix=/foo"
    926 # and all the variables that are supposed to be based on exec_prefix
    927 # by default will actually change.
    928 # Use braces instead of parens because sh, perl, etc. also accept them.
    929 # (The list follows the same order as the GNU Coding Standards.)
    930 bindir='${exec_prefix}/bin'
    931 sbindir='${exec_prefix}/sbin'
    932 libexecdir='${exec_prefix}/libexec'
    933 datarootdir='${prefix}/share'
    934 datadir='${datarootdir}'
    935 sysconfdir='${prefix}/etc'
    936 sharedstatedir='${prefix}/com'
    937 localstatedir='${prefix}/var'
    938 includedir='${prefix}/include'
    939 oldincludedir='/usr/include'
    940 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    941 infodir='${datarootdir}/info'
    942 htmldir='${docdir}'
    943 dvidir='${docdir}'
    944 pdfdir='${docdir}'
    945 psdir='${docdir}'
    946 libdir='${exec_prefix}/lib'
    947 localedir='${datarootdir}/locale'
    948 mandir='${datarootdir}/man'
    949 
    950 ac_prev=
    951 ac_dashdash=
    952 for ac_option
    953 do
    954   # If the previous option needs an argument, assign it.
    955   if test -n "$ac_prev"; then
    956     eval $ac_prev=\$ac_option
    957     ac_prev=
    958     continue
    959   fi
    960 
    961   case $ac_option in
    962   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    963   *=)   ac_optarg= ;;
    964   *)    ac_optarg=yes ;;
    965   esac
    966 
    967   # Accept the important Cygnus configure options, so we can diagnose typos.
    968 
    969   case $ac_dashdash$ac_option in
    970   --)
    971     ac_dashdash=yes ;;
    972 
    973   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    974     ac_prev=bindir ;;
    975   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    976     bindir=$ac_optarg ;;
    977 
    978   -build | --build | --buil | --bui | --bu)
    979     ac_prev=build_alias ;;
    980   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    981     build_alias=$ac_optarg ;;
    982 
    983   -cache-file | --cache-file | --cache-fil | --cache-fi \
    984   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    985     ac_prev=cache_file ;;
    986   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    987   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    988     cache_file=$ac_optarg ;;
    989 
    990   --config-cache | -C)
    991     cache_file=config.cache ;;
    992 
    993   -datadir | --datadir | --datadi | --datad)
    994     ac_prev=datadir ;;
    995   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    996     datadir=$ac_optarg ;;
    997 
    998   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    999   | --dataroo | --dataro | --datar)
   1000     ac_prev=datarootdir ;;
   1001   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1002   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1003     datarootdir=$ac_optarg ;;
   1004 
   1005   -disable-* | --disable-*)
   1006     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1007     # Reject names that are not valid shell variable names.
   1008     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1009       as_fn_error $? "invalid feature name: $ac_useropt"
   1010     ac_useropt_orig=$ac_useropt
   1011     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1012     case $ac_user_opts in
   1013       *"
   1014 "enable_$ac_useropt"
   1015 "*) ;;
   1016       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1017 	 ac_unrecognized_sep=', ';;
   1018     esac
   1019     eval enable_$ac_useropt=no ;;
   1020 
   1021   -docdir | --docdir | --docdi | --doc | --do)
   1022     ac_prev=docdir ;;
   1023   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1024     docdir=$ac_optarg ;;
   1025 
   1026   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1027     ac_prev=dvidir ;;
   1028   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1029     dvidir=$ac_optarg ;;
   1030 
   1031   -enable-* | --enable-*)
   1032     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1033     # Reject names that are not valid shell variable names.
   1034     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1035       as_fn_error $? "invalid feature name: $ac_useropt"
   1036     ac_useropt_orig=$ac_useropt
   1037     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1038     case $ac_user_opts in
   1039       *"
   1040 "enable_$ac_useropt"
   1041 "*) ;;
   1042       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1043 	 ac_unrecognized_sep=', ';;
   1044     esac
   1045     eval enable_$ac_useropt=\$ac_optarg ;;
   1046 
   1047   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1048   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1049   | --exec | --exe | --ex)
   1050     ac_prev=exec_prefix ;;
   1051   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1052   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1053   | --exec=* | --exe=* | --ex=*)
   1054     exec_prefix=$ac_optarg ;;
   1055 
   1056   -gas | --gas | --ga | --g)
   1057     # Obsolete; use --with-gas.
   1058     with_gas=yes ;;
   1059 
   1060   -help | --help | --hel | --he | -h)
   1061     ac_init_help=long ;;
   1062   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1063     ac_init_help=recursive ;;
   1064   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1065     ac_init_help=short ;;
   1066 
   1067   -host | --host | --hos | --ho)
   1068     ac_prev=host_alias ;;
   1069   -host=* | --host=* | --hos=* | --ho=*)
   1070     host_alias=$ac_optarg ;;
   1071 
   1072   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1073     ac_prev=htmldir ;;
   1074   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1075   | --ht=*)
   1076     htmldir=$ac_optarg ;;
   1077 
   1078   -includedir | --includedir | --includedi | --included | --include \
   1079   | --includ | --inclu | --incl | --inc)
   1080     ac_prev=includedir ;;
   1081   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1082   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1083     includedir=$ac_optarg ;;
   1084 
   1085   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1086     ac_prev=infodir ;;
   1087   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1088     infodir=$ac_optarg ;;
   1089 
   1090   -libdir | --libdir | --libdi | --libd)
   1091     ac_prev=libdir ;;
   1092   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1093     libdir=$ac_optarg ;;
   1094 
   1095   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1096   | --libexe | --libex | --libe)
   1097     ac_prev=libexecdir ;;
   1098   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1099   | --libexe=* | --libex=* | --libe=*)
   1100     libexecdir=$ac_optarg ;;
   1101 
   1102   -localedir | --localedir | --localedi | --localed | --locale)
   1103     ac_prev=localedir ;;
   1104   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1105     localedir=$ac_optarg ;;
   1106 
   1107   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1108   | --localstate | --localstat | --localsta | --localst | --locals)
   1109     ac_prev=localstatedir ;;
   1110   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1111   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1112     localstatedir=$ac_optarg ;;
   1113 
   1114   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1115     ac_prev=mandir ;;
   1116   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1117     mandir=$ac_optarg ;;
   1118 
   1119   -nfp | --nfp | --nf)
   1120     # Obsolete; use --without-fp.
   1121     with_fp=no ;;
   1122 
   1123   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1124   | --no-cr | --no-c | -n)
   1125     no_create=yes ;;
   1126 
   1127   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1128   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1129     no_recursion=yes ;;
   1130 
   1131   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1132   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1133   | --oldin | --oldi | --old | --ol | --o)
   1134     ac_prev=oldincludedir ;;
   1135   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1136   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1137   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1138     oldincludedir=$ac_optarg ;;
   1139 
   1140   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1141     ac_prev=prefix ;;
   1142   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1143     prefix=$ac_optarg ;;
   1144 
   1145   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1146   | --program-pre | --program-pr | --program-p)
   1147     ac_prev=program_prefix ;;
   1148   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1149   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1150     program_prefix=$ac_optarg ;;
   1151 
   1152   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1153   | --program-suf | --program-su | --program-s)
   1154     ac_prev=program_suffix ;;
   1155   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1156   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1157     program_suffix=$ac_optarg ;;
   1158 
   1159   -program-transform-name | --program-transform-name \
   1160   | --program-transform-nam | --program-transform-na \
   1161   | --program-transform-n | --program-transform- \
   1162   | --program-transform | --program-transfor \
   1163   | --program-transfo | --program-transf \
   1164   | --program-trans | --program-tran \
   1165   | --progr-tra | --program-tr | --program-t)
   1166     ac_prev=program_transform_name ;;
   1167   -program-transform-name=* | --program-transform-name=* \
   1168   | --program-transform-nam=* | --program-transform-na=* \
   1169   | --program-transform-n=* | --program-transform-=* \
   1170   | --program-transform=* | --program-transfor=* \
   1171   | --program-transfo=* | --program-transf=* \
   1172   | --program-trans=* | --program-tran=* \
   1173   | --progr-tra=* | --program-tr=* | --program-t=*)
   1174     program_transform_name=$ac_optarg ;;
   1175 
   1176   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1177     ac_prev=pdfdir ;;
   1178   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1179     pdfdir=$ac_optarg ;;
   1180 
   1181   -psdir | --psdir | --psdi | --psd | --ps)
   1182     ac_prev=psdir ;;
   1183   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1184     psdir=$ac_optarg ;;
   1185 
   1186   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1187   | -silent | --silent | --silen | --sile | --sil)
   1188     silent=yes ;;
   1189 
   1190   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1191     ac_prev=sbindir ;;
   1192   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1193   | --sbi=* | --sb=*)
   1194     sbindir=$ac_optarg ;;
   1195 
   1196   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1197   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1198   | --sharedst | --shareds | --shared | --share | --shar \
   1199   | --sha | --sh)
   1200     ac_prev=sharedstatedir ;;
   1201   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1202   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1203   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1204   | --sha=* | --sh=*)
   1205     sharedstatedir=$ac_optarg ;;
   1206 
   1207   -site | --site | --sit)
   1208     ac_prev=site ;;
   1209   -site=* | --site=* | --sit=*)
   1210     site=$ac_optarg ;;
   1211 
   1212   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1213     ac_prev=srcdir ;;
   1214   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1215     srcdir=$ac_optarg ;;
   1216 
   1217   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1218   | --syscon | --sysco | --sysc | --sys | --sy)
   1219     ac_prev=sysconfdir ;;
   1220   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1221   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1222     sysconfdir=$ac_optarg ;;
   1223 
   1224   -target | --target | --targe | --targ | --tar | --ta | --t)
   1225     ac_prev=target_alias ;;
   1226   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1227     target_alias=$ac_optarg ;;
   1228 
   1229   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1230     verbose=yes ;;
   1231 
   1232   -version | --version | --versio | --versi | --vers | -V)
   1233     ac_init_version=: ;;
   1234 
   1235   -with-* | --with-*)
   1236     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1237     # Reject names that are not valid shell variable names.
   1238     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1239       as_fn_error $? "invalid package name: $ac_useropt"
   1240     ac_useropt_orig=$ac_useropt
   1241     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1242     case $ac_user_opts in
   1243       *"
   1244 "with_$ac_useropt"
   1245 "*) ;;
   1246       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1247 	 ac_unrecognized_sep=', ';;
   1248     esac
   1249     eval with_$ac_useropt=\$ac_optarg ;;
   1250 
   1251   -without-* | --without-*)
   1252     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1253     # Reject names that are not valid shell variable names.
   1254     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1255       as_fn_error $? "invalid package name: $ac_useropt"
   1256     ac_useropt_orig=$ac_useropt
   1257     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1258     case $ac_user_opts in
   1259       *"
   1260 "with_$ac_useropt"
   1261 "*) ;;
   1262       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1263 	 ac_unrecognized_sep=', ';;
   1264     esac
   1265     eval with_$ac_useropt=no ;;
   1266 
   1267   --x)
   1268     # Obsolete; use --with-x.
   1269     with_x=yes ;;
   1270 
   1271   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1272   | --x-incl | --x-inc | --x-in | --x-i)
   1273     ac_prev=x_includes ;;
   1274   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1275   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1276     x_includes=$ac_optarg ;;
   1277 
   1278   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1279   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1280     ac_prev=x_libraries ;;
   1281   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1282   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1283     x_libraries=$ac_optarg ;;
   1284 
   1285   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1286 Try \`$0 --help' for more information"
   1287     ;;
   1288 
   1289   *=*)
   1290     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1291     # Reject names that are not valid shell variable names.
   1292     case $ac_envvar in #(
   1293       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1294       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1295     esac
   1296     eval $ac_envvar=\$ac_optarg
   1297     export $ac_envvar ;;
   1298 
   1299   *)
   1300     # FIXME: should be removed in autoconf 3.0.
   1301     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1302     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1303       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1304     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1305     ;;
   1306 
   1307   esac
   1308 done
   1309 
   1310 if test -n "$ac_prev"; then
   1311   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1312   as_fn_error $? "missing argument to $ac_option"
   1313 fi
   1314 
   1315 if test -n "$ac_unrecognized_opts"; then
   1316   case $enable_option_checking in
   1317     no) ;;
   1318     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1319     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1320   esac
   1321 fi
   1322 
   1323 # Check all directory arguments for consistency.
   1324 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1325 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1326 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1327 		libdir localedir mandir
   1328 do
   1329   eval ac_val=\$$ac_var
   1330   # Remove trailing slashes.
   1331   case $ac_val in
   1332     */ )
   1333       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1334       eval $ac_var=\$ac_val;;
   1335   esac
   1336   # Be sure to have absolute directory names.
   1337   case $ac_val in
   1338     [\\/$]* | ?:[\\/]* )  continue;;
   1339     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1340   esac
   1341   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1342 done
   1343 
   1344 # There might be people who depend on the old broken behavior: `$host'
   1345 # used to hold the argument of --host etc.
   1346 # FIXME: To remove some day.
   1347 build=$build_alias
   1348 host=$host_alias
   1349 target=$target_alias
   1350 
   1351 # FIXME: To remove some day.
   1352 if test "x$host_alias" != x; then
   1353   if test "x$build_alias" = x; then
   1354     cross_compiling=maybe
   1355   elif test "x$build_alias" != "x$host_alias"; then
   1356     cross_compiling=yes
   1357   fi
   1358 fi
   1359 
   1360 ac_tool_prefix=
   1361 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1362 
   1363 test "$silent" = yes && exec 6>/dev/null
   1364 
   1365 
   1366 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1367 ac_ls_di=`ls -di .` &&
   1368 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1369   as_fn_error $? "working directory cannot be determined"
   1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1371   as_fn_error $? "pwd does not report name of working directory"
   1372 
   1373 
   1374 # Find the source files, if location was not specified.
   1375 if test -z "$srcdir"; then
   1376   ac_srcdir_defaulted=yes
   1377   # Try the directory containing this script, then the parent directory.
   1378   ac_confdir=`$as_dirname -- "$as_myself" ||
   1379 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1380 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1381 	 X"$as_myself" : 'X\(//\)$' \| \
   1382 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1383 $as_echo X"$as_myself" |
   1384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1385 	    s//\1/
   1386 	    q
   1387 	  }
   1388 	  /^X\(\/\/\)[^/].*/{
   1389 	    s//\1/
   1390 	    q
   1391 	  }
   1392 	  /^X\(\/\/\)$/{
   1393 	    s//\1/
   1394 	    q
   1395 	  }
   1396 	  /^X\(\/\).*/{
   1397 	    s//\1/
   1398 	    q
   1399 	  }
   1400 	  s/.*/./; q'`
   1401   srcdir=$ac_confdir
   1402   if test ! -r "$srcdir/$ac_unique_file"; then
   1403     srcdir=..
   1404   fi
   1405 else
   1406   ac_srcdir_defaulted=no
   1407 fi
   1408 if test ! -r "$srcdir/$ac_unique_file"; then
   1409   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1410   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1411 fi
   1412 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1413 ac_abs_confdir=`(
   1414 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1415 	pwd)`
   1416 # When building in place, set srcdir=.
   1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1418   srcdir=.
   1419 fi
   1420 # Remove unnecessary trailing slashes from srcdir.
   1421 # Double slashes in file names in object file debugging info
   1422 # mess up M-x gdb in Emacs.
   1423 case $srcdir in
   1424 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1425 esac
   1426 for ac_var in $ac_precious_vars; do
   1427   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1428   eval ac_env_${ac_var}_value=\$${ac_var}
   1429   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1430   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1431 done
   1432 
   1433 #
   1434 # Report the --help message.
   1435 #
   1436 if test "$ac_init_help" = "long"; then
   1437   # Omit some internal or obsolete options to make the list less imposing.
   1438   # This message is too long to be a string in the A/UX 3.1 sh.
   1439   cat <<_ACEOF
   1440 \`configure' configures unbound 1.6.8 to adapt to many kinds of systems.
   1441 
   1442 Usage: $0 [OPTION]... [VAR=VALUE]...
   1443 
   1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1445 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1446 
   1447 Defaults for the options are specified in brackets.
   1448 
   1449 Configuration:
   1450   -h, --help              display this help and exit
   1451       --help=short        display options specific to this package
   1452       --help=recursive    display the short help of all the included packages
   1453   -V, --version           display version information and exit
   1454   -q, --quiet, --silent   do not print \`checking ...' messages
   1455       --cache-file=FILE   cache test results in FILE [disabled]
   1456   -C, --config-cache      alias for \`--cache-file=config.cache'
   1457   -n, --no-create         do not create output files
   1458       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1459 
   1460 Installation directories:
   1461   --prefix=PREFIX         install architecture-independent files in PREFIX
   1462                           [$ac_default_prefix]
   1463   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1464                           [PREFIX]
   1465 
   1466 By default, \`make install' will install all the files in
   1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1469 for instance \`--prefix=\$HOME'.
   1470 
   1471 For better control, use the options below.
   1472 
   1473 Fine tuning of the installation directories:
   1474   --bindir=DIR            user executables [EPREFIX/bin]
   1475   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1476   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1477   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1478   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1479   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1480   --libdir=DIR            object code libraries [EPREFIX/lib]
   1481   --includedir=DIR        C header files [PREFIX/include]
   1482   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1483   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1484   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1485   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1486   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1487   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1488   --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
   1489   --htmldir=DIR           html documentation [DOCDIR]
   1490   --dvidir=DIR            dvi documentation [DOCDIR]
   1491   --pdfdir=DIR            pdf documentation [DOCDIR]
   1492   --psdir=DIR             ps documentation [DOCDIR]
   1493 _ACEOF
   1494 
   1495   cat <<\_ACEOF
   1496 
   1497 System types:
   1498   --build=BUILD     configure for building on BUILD [guessed]
   1499   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1500 _ACEOF
   1501 fi
   1502 
   1503 if test -n "$ac_init_help"; then
   1504   case $ac_init_help in
   1505      short | recursive ) echo "Configuration of unbound 1.6.8:";;
   1506    esac
   1507   cat <<\_ACEOF
   1508 
   1509 Optional Features:
   1510   --disable-option-checking  ignore unrecognized --enable/--with options
   1511   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1512   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1513   --enable-checking       Enable warnings, asserts, makefile-dependencies
   1514   --enable-debug          same as enable-checking
   1515   --disable-flto          Disable link-time optimization (gcc specific option)
   1516   --enable-pie            Enable Position-Independent Executable (eg. to fully
   1517                           benefit from ASLR, small performance penalty)
   1518   --enable-relro-now      Enable full relocation binding at load-time (RELRO
   1519                           NOW, to protect GOT and .dtor areas)
   1520   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1521   --enable-static[=PKGS]  build static libraries [default=yes]
   1522   --enable-fast-install[=PKGS]
   1523                           optimize for fast installation [default=yes]
   1524   --disable-libtool-lock  avoid locking (might break parallel builds)
   1525   --disable-rpath         disable hardcoded rpath (default=enabled)
   1526   --disable-largefile     omit support for large files
   1527   --enable-alloc-checks   enable to memory allocation statistics, for debug
   1528                           purposes
   1529   --enable-alloc-lite     enable for lightweight alloc assertions, for debug
   1530                           purposes
   1531   --enable-alloc-nonregional
   1532                           enable nonregional allocs, slow but exposes regional
   1533                           allocations to other memory purifiers, for debug
   1534                           purposes
   1535   --disable-sha1          Disable SHA1 RRSIG support, does not disable nsec3
   1536                           support
   1537   --disable-sha2          Disable SHA256 and SHA512 RRSIG support
   1538   --enable-subnet         Enable client subnet
   1539   --disable-gost          Disable GOST support
   1540   --disable-ecdsa         Disable ECDSA support
   1541   --disable-dsa           Disable DSA support
   1542   --disable-ed25519       Disable ED25519 support
   1543   --enable-event-api      Enable (experimental) pluggable event base
   1544                           libunbound API installed to unbound-event.h
   1545   --enable-tfo-client     Enable TCP Fast Open for client mode
   1546   --enable-tfo-server     Enable TCP Fast Open for server mode
   1547   --enable-static-exe     enable to compile executables statically against
   1548                           (event) libs, for debug purposes
   1549   --enable-systemd        compile with systemd support
   1550   --enable-lock-checks    enable to check lock and unlock calls, for debug
   1551                           purposes
   1552   --enable-allsymbols     export all symbols from libunbound and link binaries
   1553                           to it, smaller install size but libunbound export
   1554                           table is polluted by internal symbols
   1555   --enable-dnstap         Enable dnstap support (requires fstrm, protobuf-c)
   1556   --enable-dnscrypt       Enable dnscrypt support (requires libsodium)
   1557   --enable-cachedb        enable cachedb module that can use external cache
   1558                           storage
   1559   --enable-ipsecmod       Enable ipsecmod module that facilitates
   1560                           opportunistic IPsec
   1561 
   1562 Optional Packages:
   1563   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1564   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1565   --with-conf-file=path   Pathname to the Unbound configuration file
   1566   --with-run-dir=path     set default directory to chdir to (by default dir
   1567                           part of cfg file)
   1568   --with-chroot-dir=path  set default directory to chroot to (by default same
   1569                           as run-dir)
   1570   --with-share-dir=path   set default directory with shared data (by default
   1571                           same as share/unbound)
   1572   --with-pidfile=filename set default pathname to unbound pidfile (default
   1573                           run-dir/unbound.pid)
   1574   --with-rootkey-file=filename
   1575                           set default pathname to root key file (default
   1576                           run-dir/root.key). This file is read and written.
   1577   --with-rootcert-file=filename
   1578                           set default pathname to root update certificate file
   1579                           (default run-dir/icannbundle.pem). This file need
   1580                           not exist if you are content with the builtin.
   1581   --with-username=user    set default user that unbound changes to (default
   1582                           user is unbound)
   1583   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1584                           both]
   1585   --with-aix-soname=aix|svr4|both
   1586                           shared library versioning (aka "SONAME") variant to
   1587                           provide on AIX, [default=aix].
   1588   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1589   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1590                           compiler's sysroot if not specified).
   1591   --with-pthreads         use pthreads library, or --without-pthreads to
   1592                           disable threading support.
   1593   --with-solaris-threads  use solaris native thread library.
   1594   --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
   1595                           (default=no)
   1596   --with-pythonmodule     build Python module, or --without-pythonmodule to
   1597                           disable script engine. (default=no)
   1598   --with-nss=path         use libnss instead of openssl, installed at path.
   1599   --with-nettle=path      use libnettle as crypto library, installed at path.
   1600   --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
   1601                           /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
   1602                           /usr)
   1603   --with-libevent=pathname
   1604                           use libevent (will check /usr/local /opt/local
   1605                           /usr/lib /usr/pkg /usr/sfw /usr or you can specify
   1606                           an explicit path). Slower, but allows use of large
   1607                           outgoing port ranges.
   1608   --with-libexpat=path    specify explicit path for libexpat.
   1609   --with-dnstap-socket-path=pathname
   1610                           set default dnstap socket path
   1611   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
   1612   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
   1613   --with-libsodium=path   Path where libsodium is installed, for dnscrypt
   1614   --with-libunbound-only  do not build daemon and tool programs
   1615 
   1616 Some influential environment variables:
   1617   CC          C compiler command
   1618   CFLAGS      C compiler flags
   1619   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1620               nonstandard directory <lib dir>
   1621   LIBS        libraries to pass to the linker, e.g. -l<library>
   1622   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1623               you have headers in a nonstandard directory <include dir>
   1624   CPP         C preprocessor
   1625   YACC        The `Yet Another Compiler Compiler' implementation to use.
   1626               Defaults to the first program found out of: `bison -y', `byacc',
   1627               `yacc'.
   1628   YFLAGS      The list of arguments that will be passed by default to $YACC.
   1629               This script will default YFLAGS to the empty string to avoid a
   1630               default value of `-d' given by some make applications.
   1631   LT_SYS_LIBRARY_PATH
   1632               User-defined run-time library search path.
   1633   PYTHON_VERSION
   1634               The installed Python version to use, for example '2.3'. This
   1635               string will be appended to the Python interpreter canonical
   1636               name.
   1637   PKG_CONFIG  path to pkg-config utility
   1638   PKG_CONFIG_PATH
   1639               directories to add to pkg-config's search path
   1640   PKG_CONFIG_LIBDIR
   1641               path overriding pkg-config's built-in search path
   1642   SYSTEMD_CFLAGS
   1643               C compiler flags for SYSTEMD, overriding pkg-config
   1644   SYSTEMD_LIBS
   1645               linker flags for SYSTEMD, overriding pkg-config
   1646   SYSTEMD_DAEMON_CFLAGS
   1647               C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
   1648   SYSTEMD_DAEMON_LIBS
   1649               linker flags for SYSTEMD_DAEMON, overriding pkg-config
   1650 
   1651 Use these variables to override the choices made by `configure' or to help
   1652 it to find libraries and programs with nonstandard names/locations.
   1653 
   1654 Report bugs to <unbound-bugs@nlnetlabs.nl>.
   1655 _ACEOF
   1656 ac_status=$?
   1657 fi
   1658 
   1659 if test "$ac_init_help" = "recursive"; then
   1660   # If there are subdirs, report their specific --help.
   1661   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1662     test -d "$ac_dir" ||
   1663       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1664       continue
   1665     ac_builddir=.
   1666 
   1667 case "$ac_dir" in
   1668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1669 *)
   1670   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1671   # A ".." for each directory in $ac_dir_suffix.
   1672   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1673   case $ac_top_builddir_sub in
   1674   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1675   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1676   esac ;;
   1677 esac
   1678 ac_abs_top_builddir=$ac_pwd
   1679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1680 # for backward compatibility:
   1681 ac_top_builddir=$ac_top_build_prefix
   1682 
   1683 case $srcdir in
   1684   .)  # We are building in place.
   1685     ac_srcdir=.
   1686     ac_top_srcdir=$ac_top_builddir_sub
   1687     ac_abs_top_srcdir=$ac_pwd ;;
   1688   [\\/]* | ?:[\\/]* )  # Absolute name.
   1689     ac_srcdir=$srcdir$ac_dir_suffix;
   1690     ac_top_srcdir=$srcdir
   1691     ac_abs_top_srcdir=$srcdir ;;
   1692   *) # Relative name.
   1693     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1694     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1695     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1696 esac
   1697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1698 
   1699     cd "$ac_dir" || { ac_status=$?; continue; }
   1700     # Check for guested configure.
   1701     if test -f "$ac_srcdir/configure.gnu"; then
   1702       echo &&
   1703       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1704     elif test -f "$ac_srcdir/configure"; then
   1705       echo &&
   1706       $SHELL "$ac_srcdir/configure" --help=recursive
   1707     else
   1708       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1709     fi || ac_status=$?
   1710     cd "$ac_pwd" || { ac_status=$?; break; }
   1711   done
   1712 fi
   1713 
   1714 test -n "$ac_init_help" && exit $ac_status
   1715 if $ac_init_version; then
   1716   cat <<\_ACEOF
   1717 unbound configure 1.6.8
   1718 generated by GNU Autoconf 2.69
   1719 
   1720 Copyright (C) 2012 Free Software Foundation, Inc.
   1721 This configure script is free software; the Free Software Foundation
   1722 gives unlimited permission to copy, distribute and modify it.
   1723 _ACEOF
   1724   exit
   1725 fi
   1726 
   1727 ## ------------------------ ##
   1728 ## Autoconf initialization. ##
   1729 ## ------------------------ ##
   1730 
   1731 # ac_fn_c_try_compile LINENO
   1732 # --------------------------
   1733 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1734 ac_fn_c_try_compile ()
   1735 {
   1736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1737   rm -f conftest.$ac_objext
   1738   if { { ac_try="$ac_compile"
   1739 case "(($ac_try" in
   1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1741   *) ac_try_echo=$ac_try;;
   1742 esac
   1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1744 $as_echo "$ac_try_echo"; } >&5
   1745   (eval "$ac_compile") 2>conftest.err
   1746   ac_status=$?
   1747   if test -s conftest.err; then
   1748     grep -v '^ *+' conftest.err >conftest.er1
   1749     cat conftest.er1 >&5
   1750     mv -f conftest.er1 conftest.err
   1751   fi
   1752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1753   test $ac_status = 0; } && {
   1754 	 test -z "$ac_c_werror_flag" ||
   1755 	 test ! -s conftest.err
   1756        } && test -s conftest.$ac_objext; then :
   1757   ac_retval=0
   1758 else
   1759   $as_echo "$as_me: failed program was:" >&5
   1760 sed 's/^/| /' conftest.$ac_ext >&5
   1761 
   1762 	ac_retval=1
   1763 fi
   1764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1765   as_fn_set_status $ac_retval
   1766 
   1767 } # ac_fn_c_try_compile
   1768 
   1769 # ac_fn_c_try_cpp LINENO
   1770 # ----------------------
   1771 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1772 ac_fn_c_try_cpp ()
   1773 {
   1774   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1775   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1776 case "(($ac_try" in
   1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1778   *) ac_try_echo=$ac_try;;
   1779 esac
   1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1781 $as_echo "$ac_try_echo"; } >&5
   1782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1783   ac_status=$?
   1784   if test -s conftest.err; then
   1785     grep -v '^ *+' conftest.err >conftest.er1
   1786     cat conftest.er1 >&5
   1787     mv -f conftest.er1 conftest.err
   1788   fi
   1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1790   test $ac_status = 0; } > conftest.i && {
   1791 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1792 	 test ! -s conftest.err
   1793        }; then :
   1794   ac_retval=0
   1795 else
   1796   $as_echo "$as_me: failed program was:" >&5
   1797 sed 's/^/| /' conftest.$ac_ext >&5
   1798 
   1799     ac_retval=1
   1800 fi
   1801   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1802   as_fn_set_status $ac_retval
   1803 
   1804 } # ac_fn_c_try_cpp
   1805 
   1806 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1807 # -------------------------------------------------------
   1808 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1809 # the include files in INCLUDES and setting the cache variable VAR
   1810 # accordingly.
   1811 ac_fn_c_check_header_mongrel ()
   1812 {
   1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1814   if eval \${$3+:} false; then :
   1815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1816 $as_echo_n "checking for $2... " >&6; }
   1817 if eval \${$3+:} false; then :
   1818   $as_echo_n "(cached) " >&6
   1819 fi
   1820 eval ac_res=\$$3
   1821 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1822 $as_echo "$ac_res" >&6; }
   1823 else
   1824   # Is the header compilable?
   1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1826 $as_echo_n "checking $2 usability... " >&6; }
   1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1828 /* end confdefs.h.  */
   1829 $4
   1830 #include <$2>
   1831 _ACEOF
   1832 if ac_fn_c_try_compile "$LINENO"; then :
   1833   ac_header_compiler=yes
   1834 else
   1835   ac_header_compiler=no
   1836 fi
   1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1839 $as_echo "$ac_header_compiler" >&6; }
   1840 
   1841 # Is the header present?
   1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1843 $as_echo_n "checking $2 presence... " >&6; }
   1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1845 /* end confdefs.h.  */
   1846 #include <$2>
   1847 _ACEOF
   1848 if ac_fn_c_try_cpp "$LINENO"; then :
   1849   ac_header_preproc=yes
   1850 else
   1851   ac_header_preproc=no
   1852 fi
   1853 rm -f conftest.err conftest.i conftest.$ac_ext
   1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1855 $as_echo "$ac_header_preproc" >&6; }
   1856 
   1857 # So?  What about this header?
   1858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1859   yes:no: )
   1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1861 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1864     ;;
   1865   no:yes:* )
   1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1867 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1869 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1871 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1873 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1875 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1876 ( $as_echo "## ---------------------------------------- ##
   1877 ## Report this to unbound-bugs (at] nlnetlabs.nl ##
   1878 ## ---------------------------------------- ##"
   1879      ) | sed "s/^/$as_me: WARNING:     /" >&2
   1880     ;;
   1881 esac
   1882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1883 $as_echo_n "checking for $2... " >&6; }
   1884 if eval \${$3+:} false; then :
   1885   $as_echo_n "(cached) " >&6
   1886 else
   1887   eval "$3=\$ac_header_compiler"
   1888 fi
   1889 eval ac_res=\$$3
   1890 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1891 $as_echo "$ac_res" >&6; }
   1892 fi
   1893   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1894 
   1895 } # ac_fn_c_check_header_mongrel
   1896 
   1897 # ac_fn_c_try_run LINENO
   1898 # ----------------------
   1899 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1900 # that executables *can* be run.
   1901 ac_fn_c_try_run ()
   1902 {
   1903   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1904   if { { ac_try="$ac_link"
   1905 case "(($ac_try" in
   1906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1907   *) ac_try_echo=$ac_try;;
   1908 esac
   1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1910 $as_echo "$ac_try_echo"; } >&5
   1911   (eval "$ac_link") 2>&5
   1912   ac_status=$?
   1913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1914   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1915   { { case "(($ac_try" in
   1916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1917   *) ac_try_echo=$ac_try;;
   1918 esac
   1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1920 $as_echo "$ac_try_echo"; } >&5
   1921   (eval "$ac_try") 2>&5
   1922   ac_status=$?
   1923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1924   test $ac_status = 0; }; }; then :
   1925   ac_retval=0
   1926 else
   1927   $as_echo "$as_me: program exited with status $ac_status" >&5
   1928        $as_echo "$as_me: failed program was:" >&5
   1929 sed 's/^/| /' conftest.$ac_ext >&5
   1930 
   1931        ac_retval=$ac_status
   1932 fi
   1933   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1935   as_fn_set_status $ac_retval
   1936 
   1937 } # ac_fn_c_try_run
   1938 
   1939 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1940 # -------------------------------------------------------
   1941 # Tests whether HEADER exists and can be compiled using the include files in
   1942 # INCLUDES, setting the cache variable VAR accordingly.
   1943 ac_fn_c_check_header_compile ()
   1944 {
   1945   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1947 $as_echo_n "checking for $2... " >&6; }
   1948 if eval \${$3+:} false; then :
   1949   $as_echo_n "(cached) " >&6
   1950 else
   1951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1952 /* end confdefs.h.  */
   1953 $4
   1954 #include <$2>
   1955 _ACEOF
   1956 if ac_fn_c_try_compile "$LINENO"; then :
   1957   eval "$3=yes"
   1958 else
   1959   eval "$3=no"
   1960 fi
   1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1962 fi
   1963 eval ac_res=\$$3
   1964 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1965 $as_echo "$ac_res" >&6; }
   1966   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1967 
   1968 } # ac_fn_c_check_header_compile
   1969 
   1970 # ac_fn_c_try_link LINENO
   1971 # -----------------------
   1972 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1973 ac_fn_c_try_link ()
   1974 {
   1975   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1976   rm -f conftest.$ac_objext conftest$ac_exeext
   1977   if { { ac_try="$ac_link"
   1978 case "(($ac_try" in
   1979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1980   *) ac_try_echo=$ac_try;;
   1981 esac
   1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1983 $as_echo "$ac_try_echo"; } >&5
   1984   (eval "$ac_link") 2>conftest.err
   1985   ac_status=$?
   1986   if test -s conftest.err; then
   1987     grep -v '^ *+' conftest.err >conftest.er1
   1988     cat conftest.er1 >&5
   1989     mv -f conftest.er1 conftest.err
   1990   fi
   1991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1992   test $ac_status = 0; } && {
   1993 	 test -z "$ac_c_werror_flag" ||
   1994 	 test ! -s conftest.err
   1995        } && test -s conftest$ac_exeext && {
   1996 	 test "$cross_compiling" = yes ||
   1997 	 test -x conftest$ac_exeext
   1998        }; then :
   1999   ac_retval=0
   2000 else
   2001   $as_echo "$as_me: failed program was:" >&5
   2002 sed 's/^/| /' conftest.$ac_ext >&5
   2003 
   2004 	ac_retval=1
   2005 fi
   2006   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2007   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2008   # interfere with the next link command; also delete a directory that is
   2009   # left behind by Apple's compiler.  We do this before executing the actions.
   2010   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2012   as_fn_set_status $ac_retval
   2013 
   2014 } # ac_fn_c_try_link
   2015 
   2016 # ac_fn_c_check_func LINENO FUNC VAR
   2017 # ----------------------------------
   2018 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2019 ac_fn_c_check_func ()
   2020 {
   2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2023 $as_echo_n "checking for $2... " >&6; }
   2024 if eval \${$3+:} false; then :
   2025   $as_echo_n "(cached) " >&6
   2026 else
   2027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2028 /* end confdefs.h.  */
   2029 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2031 #define $2 innocuous_$2
   2032 
   2033 /* System header to define __stub macros and hopefully few prototypes,
   2034     which can conflict with char $2 (); below.
   2035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2036     <limits.h> exists even on freestanding compilers.  */
   2037 
   2038 #ifdef __STDC__
   2039 # include <limits.h>
   2040 #else
   2041 # include <assert.h>
   2042 #endif
   2043 
   2044 #undef $2
   2045 
   2046 /* Override any GCC internal prototype to avoid an error.
   2047    Use char because int might match the return type of a GCC
   2048    builtin and then its argument prototype would still apply.  */
   2049 #ifdef __cplusplus
   2050 extern "C"
   2051 #endif
   2052 char $2 ();
   2053 /* The GNU C library defines this for functions which it implements
   2054     to always fail with ENOSYS.  Some functions are actually named
   2055     something starting with __ and the normal name is an alias.  */
   2056 #if defined __stub_$2 || defined __stub___$2
   2057 choke me
   2058 #endif
   2059 
   2060 int
   2061 main ()
   2062 {
   2063 return $2 ();
   2064   ;
   2065   return 0;
   2066 }
   2067 _ACEOF
   2068 if ac_fn_c_try_link "$LINENO"; then :
   2069   eval "$3=yes"
   2070 else
   2071   eval "$3=no"
   2072 fi
   2073 rm -f core conftest.err conftest.$ac_objext \
   2074     conftest$ac_exeext conftest.$ac_ext
   2075 fi
   2076 eval ac_res=\$$3
   2077 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2078 $as_echo "$ac_res" >&6; }
   2079   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2080 
   2081 } # ac_fn_c_check_func
   2082 
   2083 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2084 # -------------------------------------------
   2085 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2086 # variable VAR accordingly.
   2087 ac_fn_c_check_type ()
   2088 {
   2089   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2091 $as_echo_n "checking for $2... " >&6; }
   2092 if eval \${$3+:} false; then :
   2093   $as_echo_n "(cached) " >&6
   2094 else
   2095   eval "$3=no"
   2096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2097 /* end confdefs.h.  */
   2098 $4
   2099 int
   2100 main ()
   2101 {
   2102 if (sizeof ($2))
   2103 	 return 0;
   2104   ;
   2105   return 0;
   2106 }
   2107 _ACEOF
   2108 if ac_fn_c_try_compile "$LINENO"; then :
   2109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2110 /* end confdefs.h.  */
   2111 $4
   2112 int
   2113 main ()
   2114 {
   2115 if (sizeof (($2)))
   2116 	    return 0;
   2117   ;
   2118   return 0;
   2119 }
   2120 _ACEOF
   2121 if ac_fn_c_try_compile "$LINENO"; then :
   2122 
   2123 else
   2124   eval "$3=yes"
   2125 fi
   2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2127 fi
   2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2129 fi
   2130 eval ac_res=\$$3
   2131 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2132 $as_echo "$ac_res" >&6; }
   2133   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2134 
   2135 } # ac_fn_c_check_type
   2136 
   2137 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2138 # --------------------------------------------
   2139 # Tries to find the compile-time value of EXPR in a program that includes
   2140 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2141 # computed
   2142 ac_fn_c_compute_int ()
   2143 {
   2144   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2145   if test "$cross_compiling" = yes; then
   2146     # Depending upon the size, compute the lo and hi bounds.
   2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2148 /* end confdefs.h.  */
   2149 $4
   2150 int
   2151 main ()
   2152 {
   2153 static int test_array [1 - 2 * !(($2) >= 0)];
   2154 test_array [0] = 0;
   2155 return test_array [0];
   2156 
   2157   ;
   2158   return 0;
   2159 }
   2160 _ACEOF
   2161 if ac_fn_c_try_compile "$LINENO"; then :
   2162   ac_lo=0 ac_mid=0
   2163   while :; do
   2164     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2165 /* end confdefs.h.  */
   2166 $4
   2167 int
   2168 main ()
   2169 {
   2170 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2171 test_array [0] = 0;
   2172 return test_array [0];
   2173 
   2174   ;
   2175   return 0;
   2176 }
   2177 _ACEOF
   2178 if ac_fn_c_try_compile "$LINENO"; then :
   2179   ac_hi=$ac_mid; break
   2180 else
   2181   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2182 			if test $ac_lo -le $ac_mid; then
   2183 			  ac_lo= ac_hi=
   2184 			  break
   2185 			fi
   2186 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2187 fi
   2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2189   done
   2190 else
   2191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2192 /* end confdefs.h.  */
   2193 $4
   2194 int
   2195 main ()
   2196 {
   2197 static int test_array [1 - 2 * !(($2) < 0)];
   2198 test_array [0] = 0;
   2199 return test_array [0];
   2200 
   2201   ;
   2202   return 0;
   2203 }
   2204 _ACEOF
   2205 if ac_fn_c_try_compile "$LINENO"; then :
   2206   ac_hi=-1 ac_mid=-1
   2207   while :; do
   2208     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2209 /* end confdefs.h.  */
   2210 $4
   2211 int
   2212 main ()
   2213 {
   2214 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2215 test_array [0] = 0;
   2216 return test_array [0];
   2217 
   2218   ;
   2219   return 0;
   2220 }
   2221 _ACEOF
   2222 if ac_fn_c_try_compile "$LINENO"; then :
   2223   ac_lo=$ac_mid; break
   2224 else
   2225   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2226 			if test $ac_mid -le $ac_hi; then
   2227 			  ac_lo= ac_hi=
   2228 			  break
   2229 			fi
   2230 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2231 fi
   2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2233   done
   2234 else
   2235   ac_lo= ac_hi=
   2236 fi
   2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2238 fi
   2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2240 # Binary search between lo and hi bounds.
   2241 while test "x$ac_lo" != "x$ac_hi"; do
   2242   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2244 /* end confdefs.h.  */
   2245 $4
   2246 int
   2247 main ()
   2248 {
   2249 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2250 test_array [0] = 0;
   2251 return test_array [0];
   2252 
   2253   ;
   2254   return 0;
   2255 }
   2256 _ACEOF
   2257 if ac_fn_c_try_compile "$LINENO"; then :
   2258   ac_hi=$ac_mid
   2259 else
   2260   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2261 fi
   2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2263 done
   2264 case $ac_lo in #((
   2265 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2266 '') ac_retval=1 ;;
   2267 esac
   2268   else
   2269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2270 /* end confdefs.h.  */
   2271 $4
   2272 static long int longval () { return $2; }
   2273 static unsigned long int ulongval () { return $2; }
   2274 #include <stdio.h>
   2275 #include <stdlib.h>
   2276 int
   2277 main ()
   2278 {
   2279 
   2280   FILE *f = fopen ("conftest.val", "w");
   2281   if (! f)
   2282     return 1;
   2283   if (($2) < 0)
   2284     {
   2285       long int i = longval ();
   2286       if (i != ($2))
   2287 	return 1;
   2288       fprintf (f, "%ld", i);
   2289     }
   2290   else
   2291     {
   2292       unsigned long int i = ulongval ();
   2293       if (i != ($2))
   2294 	return 1;
   2295       fprintf (f, "%lu", i);
   2296     }
   2297   /* Do not output a trailing newline, as this causes \r\n confusion
   2298      on some platforms.  */
   2299   return ferror (f) || fclose (f) != 0;
   2300 
   2301   ;
   2302   return 0;
   2303 }
   2304 _ACEOF
   2305 if ac_fn_c_try_run "$LINENO"; then :
   2306   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2307 else
   2308   ac_retval=1
   2309 fi
   2310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2311   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2312 rm -f conftest.val
   2313 
   2314   fi
   2315   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2316   as_fn_set_status $ac_retval
   2317 
   2318 } # ac_fn_c_compute_int
   2319 
   2320 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   2321 # ---------------------------------------------
   2322 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   2323 # accordingly.
   2324 ac_fn_c_check_decl ()
   2325 {
   2326   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2327   as_decl_name=`echo $2|sed 's/ *(.*//'`
   2328   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   2329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   2330 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   2331 if eval \${$3+:} false; then :
   2332   $as_echo_n "(cached) " >&6
   2333 else
   2334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2335 /* end confdefs.h.  */
   2336 $4
   2337 int
   2338 main ()
   2339 {
   2340 #ifndef $as_decl_name
   2341 #ifdef __cplusplus
   2342   (void) $as_decl_use;
   2343 #else
   2344   (void) $as_decl_name;
   2345 #endif
   2346 #endif
   2347 
   2348   ;
   2349   return 0;
   2350 }
   2351 _ACEOF
   2352 if ac_fn_c_try_compile "$LINENO"; then :
   2353   eval "$3=yes"
   2354 else
   2355   eval "$3=no"
   2356 fi
   2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2358 fi
   2359 eval ac_res=\$$3
   2360 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2361 $as_echo "$ac_res" >&6; }
   2362   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2363 
   2364 } # ac_fn_c_check_decl
   2365 
   2366 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2367 # ----------------------------------------------------
   2368 # Tries to find if the field MEMBER exists in type AGGR, after including
   2369 # INCLUDES, setting cache variable VAR accordingly.
   2370 ac_fn_c_check_member ()
   2371 {
   2372   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2374 $as_echo_n "checking for $2.$3... " >&6; }
   2375 if eval \${$4+:} false; then :
   2376   $as_echo_n "(cached) " >&6
   2377 else
   2378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2379 /* end confdefs.h.  */
   2380 $5
   2381 int
   2382 main ()
   2383 {
   2384 static $2 ac_aggr;
   2385 if (ac_aggr.$3)
   2386 return 0;
   2387   ;
   2388   return 0;
   2389 }
   2390 _ACEOF
   2391 if ac_fn_c_try_compile "$LINENO"; then :
   2392   eval "$4=yes"
   2393 else
   2394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2395 /* end confdefs.h.  */
   2396 $5
   2397 int
   2398 main ()
   2399 {
   2400 static $2 ac_aggr;
   2401 if (sizeof ac_aggr.$3)
   2402 return 0;
   2403   ;
   2404   return 0;
   2405 }
   2406 _ACEOF
   2407 if ac_fn_c_try_compile "$LINENO"; then :
   2408   eval "$4=yes"
   2409 else
   2410   eval "$4=no"
   2411 fi
   2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2413 fi
   2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2415 fi
   2416 eval ac_res=\$$4
   2417 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2418 $as_echo "$ac_res" >&6; }
   2419   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2420 
   2421 } # ac_fn_c_check_member
   2422 cat >config.log <<_ACEOF
   2423 This file contains any messages produced by compilers while
   2424 running configure, to aid debugging if configure makes a mistake.
   2425 
   2426 It was created by unbound $as_me 1.6.8, which was
   2427 generated by GNU Autoconf 2.69.  Invocation command line was
   2428 
   2429   $ $0 $@
   2430 
   2431 _ACEOF
   2432 exec 5>>config.log
   2433 {
   2434 cat <<_ASUNAME
   2435 ## --------- ##
   2436 ## Platform. ##
   2437 ## --------- ##
   2438 
   2439 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2440 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2441 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2442 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2443 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2444 
   2445 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2446 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2447 
   2448 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2449 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2450 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2451 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2452 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2453 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2454 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2455 
   2456 _ASUNAME
   2457 
   2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2459 for as_dir in $PATH
   2460 do
   2461   IFS=$as_save_IFS
   2462   test -z "$as_dir" && as_dir=.
   2463     $as_echo "PATH: $as_dir"
   2464   done
   2465 IFS=$as_save_IFS
   2466 
   2467 } >&5
   2468 
   2469 cat >&5 <<_ACEOF
   2470 
   2471 
   2472 ## ----------- ##
   2473 ## Core tests. ##
   2474 ## ----------- ##
   2475 
   2476 _ACEOF
   2477 
   2478 
   2479 # Keep a trace of the command line.
   2480 # Strip out --no-create and --no-recursion so they do not pile up.
   2481 # Strip out --silent because we don't want to record it for future runs.
   2482 # Also quote any args containing shell meta-characters.
   2483 # Make two passes to allow for proper duplicate-argument suppression.
   2484 ac_configure_args=
   2485 ac_configure_args0=
   2486 ac_configure_args1=
   2487 ac_must_keep_next=false
   2488 for ac_pass in 1 2
   2489 do
   2490   for ac_arg
   2491   do
   2492     case $ac_arg in
   2493     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2494     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2495     | -silent | --silent | --silen | --sile | --sil)
   2496       continue ;;
   2497     *\'*)
   2498       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2499     esac
   2500     case $ac_pass in
   2501     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2502     2)
   2503       as_fn_append ac_configure_args1 " '$ac_arg'"
   2504       if test $ac_must_keep_next = true; then
   2505 	ac_must_keep_next=false # Got value, back to normal.
   2506       else
   2507 	case $ac_arg in
   2508 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2509 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2510 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2511 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2512 	    case "$ac_configure_args0 " in
   2513 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2514 	    esac
   2515 	    ;;
   2516 	  -* ) ac_must_keep_next=true ;;
   2517 	esac
   2518       fi
   2519       as_fn_append ac_configure_args " '$ac_arg'"
   2520       ;;
   2521     esac
   2522   done
   2523 done
   2524 { ac_configure_args0=; unset ac_configure_args0;}
   2525 { ac_configure_args1=; unset ac_configure_args1;}
   2526 
   2527 # When interrupted or exit'd, cleanup temporary files, and complete
   2528 # config.log.  We remove comments because anyway the quotes in there
   2529 # would cause problems or look ugly.
   2530 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2531 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2532 trap 'exit_status=$?
   2533   # Save into config.log some information that might help in debugging.
   2534   {
   2535     echo
   2536 
   2537     $as_echo "## ---------------- ##
   2538 ## Cache variables. ##
   2539 ## ---------------- ##"
   2540     echo
   2541     # The following way of writing the cache mishandles newlines in values,
   2542 (
   2543   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2544     eval ac_val=\$$ac_var
   2545     case $ac_val in #(
   2546     *${as_nl}*)
   2547       case $ac_var in #(
   2548       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2550       esac
   2551       case $ac_var in #(
   2552       _ | IFS | as_nl) ;; #(
   2553       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2554       *) { eval $ac_var=; unset $ac_var;} ;;
   2555       esac ;;
   2556     esac
   2557   done
   2558   (set) 2>&1 |
   2559     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2560     *${as_nl}ac_space=\ *)
   2561       sed -n \
   2562 	"s/'\''/'\''\\\\'\'''\''/g;
   2563 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2564       ;; #(
   2565     *)
   2566       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2567       ;;
   2568     esac |
   2569     sort
   2570 )
   2571     echo
   2572 
   2573     $as_echo "## ----------------- ##
   2574 ## Output variables. ##
   2575 ## ----------------- ##"
   2576     echo
   2577     for ac_var in $ac_subst_vars
   2578     do
   2579       eval ac_val=\$$ac_var
   2580       case $ac_val in
   2581       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2582       esac
   2583       $as_echo "$ac_var='\''$ac_val'\''"
   2584     done | sort
   2585     echo
   2586 
   2587     if test -n "$ac_subst_files"; then
   2588       $as_echo "## ------------------- ##
   2589 ## File substitutions. ##
   2590 ## ------------------- ##"
   2591       echo
   2592       for ac_var in $ac_subst_files
   2593       do
   2594 	eval ac_val=\$$ac_var
   2595 	case $ac_val in
   2596 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2597 	esac
   2598 	$as_echo "$ac_var='\''$ac_val'\''"
   2599       done | sort
   2600       echo
   2601     fi
   2602 
   2603     if test -s confdefs.h; then
   2604       $as_echo "## ----------- ##
   2605 ## confdefs.h. ##
   2606 ## ----------- ##"
   2607       echo
   2608       cat confdefs.h
   2609       echo
   2610     fi
   2611     test "$ac_signal" != 0 &&
   2612       $as_echo "$as_me: caught signal $ac_signal"
   2613     $as_echo "$as_me: exit $exit_status"
   2614   } >&5
   2615   rm -f core *.core core.conftest.* &&
   2616     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2617     exit $exit_status
   2618 ' 0
   2619 for ac_signal in 1 2 13 15; do
   2620   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2621 done
   2622 ac_signal=0
   2623 
   2624 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2625 rm -f -r conftest* confdefs.h
   2626 
   2627 $as_echo "/* confdefs.h */" > confdefs.h
   2628 
   2629 # Predefined preprocessor variables.
   2630 
   2631 cat >>confdefs.h <<_ACEOF
   2632 #define PACKAGE_NAME "$PACKAGE_NAME"
   2633 _ACEOF
   2634 
   2635 cat >>confdefs.h <<_ACEOF
   2636 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2637 _ACEOF
   2638 
   2639 cat >>confdefs.h <<_ACEOF
   2640 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2641 _ACEOF
   2642 
   2643 cat >>confdefs.h <<_ACEOF
   2644 #define PACKAGE_STRING "$PACKAGE_STRING"
   2645 _ACEOF
   2646 
   2647 cat >>confdefs.h <<_ACEOF
   2648 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2649 _ACEOF
   2650 
   2651 cat >>confdefs.h <<_ACEOF
   2652 #define PACKAGE_URL "$PACKAGE_URL"
   2653 _ACEOF
   2654 
   2655 
   2656 # Let the site file select an alternate cache file if it wants to.
   2657 # Prefer an explicitly selected file to automatically selected ones.
   2658 ac_site_file1=NONE
   2659 ac_site_file2=NONE
   2660 if test -n "$CONFIG_SITE"; then
   2661   # We do not want a PATH search for config.site.
   2662   case $CONFIG_SITE in #((
   2663     -*)  ac_site_file1=./$CONFIG_SITE;;
   2664     */*) ac_site_file1=$CONFIG_SITE;;
   2665     *)   ac_site_file1=./$CONFIG_SITE;;
   2666   esac
   2667 elif test "x$prefix" != xNONE; then
   2668   ac_site_file1=$prefix/share/config.site
   2669   ac_site_file2=$prefix/etc/config.site
   2670 else
   2671   ac_site_file1=$ac_default_prefix/share/config.site
   2672   ac_site_file2=$ac_default_prefix/etc/config.site
   2673 fi
   2674 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2675 do
   2676   test "x$ac_site_file" = xNONE && continue
   2677   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2678     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2679 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2680     sed 's/^/| /' "$ac_site_file" >&5
   2681     . "$ac_site_file" \
   2682       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2684 as_fn_error $? "failed to load site script $ac_site_file
   2685 See \`config.log' for more details" "$LINENO" 5; }
   2686   fi
   2687 done
   2688 
   2689 if test -r "$cache_file"; then
   2690   # Some versions of bash will fail to source /dev/null (special files
   2691   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2692   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2693     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2694 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2695     case $cache_file in
   2696       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2697       *)                      . "./$cache_file";;
   2698     esac
   2699   fi
   2700 else
   2701   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2702 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2703   >$cache_file
   2704 fi
   2705 
   2706 # Check that the precious variables saved in the cache have kept the same
   2707 # value.
   2708 ac_cache_corrupted=false
   2709 for ac_var in $ac_precious_vars; do
   2710   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2711   eval ac_new_set=\$ac_env_${ac_var}_set
   2712   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2713   eval ac_new_val=\$ac_env_${ac_var}_value
   2714   case $ac_old_set,$ac_new_set in
   2715     set,)
   2716       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2717 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2718       ac_cache_corrupted=: ;;
   2719     ,set)
   2720       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2721 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2722       ac_cache_corrupted=: ;;
   2723     ,);;
   2724     *)
   2725       if test "x$ac_old_val" != "x$ac_new_val"; then
   2726 	# differences in whitespace do not lead to failure.
   2727 	ac_old_val_w=`echo x $ac_old_val`
   2728 	ac_new_val_w=`echo x $ac_new_val`
   2729 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2730 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2731 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2732 	  ac_cache_corrupted=:
   2733 	else
   2734 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2735 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2736 	  eval $ac_var=\$ac_old_val
   2737 	fi
   2738 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2739 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2740 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2741 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2742       fi;;
   2743   esac
   2744   # Pass precious variables to config.status.
   2745   if test "$ac_new_set" = set; then
   2746     case $ac_new_val in
   2747     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2748     *) ac_arg=$ac_var=$ac_new_val ;;
   2749     esac
   2750     case " $ac_configure_args " in
   2751       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2752       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2753     esac
   2754   fi
   2755 done
   2756 if $ac_cache_corrupted; then
   2757   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2759   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2760 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2761   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2762 fi
   2763 ## -------------------- ##
   2764 ## Main body of script. ##
   2765 ## -------------------- ##
   2766 
   2767 ac_ext=c
   2768 ac_cpp='$CPP $CPPFLAGS'
   2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2772 
   2773 
   2774 UNBOUND_VERSION_MAJOR=1
   2775 
   2776 UNBOUND_VERSION_MINOR=6
   2777 
   2778 UNBOUND_VERSION_MICRO=8
   2779 
   2780 
   2781 LIBUNBOUND_CURRENT=7
   2782 LIBUNBOUND_REVISION=7
   2783 LIBUNBOUND_AGE=5
   2784 # 1.0.0 had 0:12:0
   2785 # 1.0.1 had 0:13:0
   2786 # 1.0.2 had 0:14:0
   2787 # 1.1.0 had 0:15:0
   2788 # 1.1.1 had 0:16:0
   2789 # 1.2.0 had 0:17:0
   2790 # 1.2.1 had 0:18:0
   2791 # 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
   2792 # 1.3.1 had 1:1:0
   2793 # 1.3.2 had 1:2:0
   2794 # 1.3.3 had 1:3:0
   2795 # 1.3.4 had 1:4:0
   2796 # 1.4.0-snapshots had 1:5:0
   2797 # 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
   2798 # 1.4.1 had 2:1:0
   2799 # 1.4.2 had 2:2:0
   2800 # 1.4.3 had 2:3:0
   2801 # 1.4.4 had 2:4:0
   2802 # 1.4.5 had 2:5:0
   2803 # 1.4.6 had 2:6:0
   2804 # 1.4.7 had 2:7:0
   2805 # 1.4.8 had 2:8:0
   2806 # 1.4.9 had 2:9:0
   2807 # 1.4.10 had 2:10:0
   2808 # 1.4.11 had 2:11:0
   2809 # 1.4.12 had 2:12:0
   2810 # 1.4.13 had 2:13:0
   2811 # and 1.4.13p1 and 1.4.13.p2
   2812 # 1.4.14 had 2:14:0
   2813 # 1.4.15 had 3:0:1 # adds ub_version()
   2814 # 1.4.16 had 3:1:1
   2815 # 1.4.17 had 3:2:1
   2816 # 1.4.18 had 3:3:1
   2817 # 1.4.19 had 3:4:1
   2818 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
   2819 # 1.4.21 had 4:1:2
   2820 # 1.4.22 had 4:1:2
   2821 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
   2822 # 1.5.1 had 5:3:3
   2823 # 1.5.2 had 5:5:3
   2824 # 1.5.3 had 5:6:3
   2825 # 1.5.4 had 5:7:3
   2826 # 1.5.5 had 5:8:3
   2827 # 1.5.6 had 5:9:3
   2828 # 1.5.7 had 5:10:3
   2829 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
   2830 # 1.5.9 had 6:1:4
   2831 # 1.5.10 had 6:2:4
   2832 # 1.6.0 had 6:3:4
   2833 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
   2834 # 1.6.2 had 7:1:5
   2835 # 1.6.3 had 7:2:5
   2836 # 1.6.4 had 7:3:5
   2837 # 1.6.5 had 7:4:5
   2838 # 1.6.6 had 7:5:5
   2839 # 1.6.7 had 7:6:5
   2840 # 1.6.8 had 7:7:5
   2841 
   2842 #   Current  -- the number of the binary API that we're implementing
   2843 #   Revision -- which iteration of the implementation of the binary
   2844 #               API are we supplying?
   2845 #   Age      -- How many previous binary API versions do we also
   2846 #               support?
   2847 #
   2848 # If we release a new version that does not change the binary API,
   2849 # increment Revision.
   2850 #
   2851 # If we release a new version that changes the binary API, but does
   2852 # not break programs compiled against the old binary API, increment
   2853 # Current and Age.  Set Revision to 0, since this is the first
   2854 # implementation of the new API.
   2855 #
   2856 # Otherwise, we're changing the binary API and breaking backward
   2857 # compatibility with old binaries.  Increment Current.  Set Age to 0,
   2858 # since we're backward compatible with no previous APIs.  Set Revision
   2859 # to 0 too.
   2860 
   2861 
   2862 
   2863 
   2864 CFLAGS="$CFLAGS"
   2865 ac_ext=c
   2866 ac_cpp='$CPP $CPPFLAGS'
   2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2870 if test -n "$ac_tool_prefix"; then
   2871   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2874 $as_echo_n "checking for $ac_word... " >&6; }
   2875 if ${ac_cv_prog_CC+:} false; then :
   2876   $as_echo_n "(cached) " >&6
   2877 else
   2878   if test -n "$CC"; then
   2879   ac_cv_prog_CC="$CC" # Let the user override the test.
   2880 else
   2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2882 for as_dir in $PATH
   2883 do
   2884   IFS=$as_save_IFS
   2885   test -z "$as_dir" && as_dir=.
   2886     for ac_exec_ext in '' $ac_executable_extensions; do
   2887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2888     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2890     break 2
   2891   fi
   2892 done
   2893   done
   2894 IFS=$as_save_IFS
   2895 
   2896 fi
   2897 fi
   2898 CC=$ac_cv_prog_CC
   2899 if test -n "$CC"; then
   2900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2901 $as_echo "$CC" >&6; }
   2902 else
   2903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2904 $as_echo "no" >&6; }
   2905 fi
   2906 
   2907 
   2908 fi
   2909 if test -z "$ac_cv_prog_CC"; then
   2910   ac_ct_CC=$CC
   2911   # Extract the first word of "gcc", so it can be a program name with args.
   2912 set dummy gcc; ac_word=$2
   2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2914 $as_echo_n "checking for $ac_word... " >&6; }
   2915 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2916   $as_echo_n "(cached) " >&6
   2917 else
   2918   if test -n "$ac_ct_CC"; then
   2919   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2920 else
   2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2922 for as_dir in $PATH
   2923 do
   2924   IFS=$as_save_IFS
   2925   test -z "$as_dir" && as_dir=.
   2926     for ac_exec_ext in '' $ac_executable_extensions; do
   2927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2928     ac_cv_prog_ac_ct_CC="gcc"
   2929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2930     break 2
   2931   fi
   2932 done
   2933   done
   2934 IFS=$as_save_IFS
   2935 
   2936 fi
   2937 fi
   2938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2939 if test -n "$ac_ct_CC"; then
   2940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2941 $as_echo "$ac_ct_CC" >&6; }
   2942 else
   2943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2944 $as_echo "no" >&6; }
   2945 fi
   2946 
   2947   if test "x$ac_ct_CC" = x; then
   2948     CC=""
   2949   else
   2950     case $cross_compiling:$ac_tool_warned in
   2951 yes:)
   2952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2954 ac_tool_warned=yes ;;
   2955 esac
   2956     CC=$ac_ct_CC
   2957   fi
   2958 else
   2959   CC="$ac_cv_prog_CC"
   2960 fi
   2961 
   2962 if test -z "$CC"; then
   2963           if test -n "$ac_tool_prefix"; then
   2964     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2965 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2967 $as_echo_n "checking for $ac_word... " >&6; }
   2968 if ${ac_cv_prog_CC+:} false; then :
   2969   $as_echo_n "(cached) " >&6
   2970 else
   2971   if test -n "$CC"; then
   2972   ac_cv_prog_CC="$CC" # Let the user override the test.
   2973 else
   2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2975 for as_dir in $PATH
   2976 do
   2977   IFS=$as_save_IFS
   2978   test -z "$as_dir" && as_dir=.
   2979     for ac_exec_ext in '' $ac_executable_extensions; do
   2980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2981     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2983     break 2
   2984   fi
   2985 done
   2986   done
   2987 IFS=$as_save_IFS
   2988 
   2989 fi
   2990 fi
   2991 CC=$ac_cv_prog_CC
   2992 if test -n "$CC"; then
   2993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2994 $as_echo "$CC" >&6; }
   2995 else
   2996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2997 $as_echo "no" >&6; }
   2998 fi
   2999 
   3000 
   3001   fi
   3002 fi
   3003 if test -z "$CC"; then
   3004   # Extract the first word of "cc", so it can be a program name with args.
   3005 set dummy cc; ac_word=$2
   3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3007 $as_echo_n "checking for $ac_word... " >&6; }
   3008 if ${ac_cv_prog_CC+:} false; then :
   3009   $as_echo_n "(cached) " >&6
   3010 else
   3011   if test -n "$CC"; then
   3012   ac_cv_prog_CC="$CC" # Let the user override the test.
   3013 else
   3014   ac_prog_rejected=no
   3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3016 for as_dir in $PATH
   3017 do
   3018   IFS=$as_save_IFS
   3019   test -z "$as_dir" && as_dir=.
   3020     for ac_exec_ext in '' $ac_executable_extensions; do
   3021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3022     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3023        ac_prog_rejected=yes
   3024        continue
   3025      fi
   3026     ac_cv_prog_CC="cc"
   3027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3028     break 2
   3029   fi
   3030 done
   3031   done
   3032 IFS=$as_save_IFS
   3033 
   3034 if test $ac_prog_rejected = yes; then
   3035   # We found a bogon in the path, so make sure we never use it.
   3036   set dummy $ac_cv_prog_CC
   3037   shift
   3038   if test $# != 0; then
   3039     # We chose a different compiler from the bogus one.
   3040     # However, it has the same basename, so the bogon will be chosen
   3041     # first if we set CC to just the basename; use the full file name.
   3042     shift
   3043     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3044   fi
   3045 fi
   3046 fi
   3047 fi
   3048 CC=$ac_cv_prog_CC
   3049 if test -n "$CC"; then
   3050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3051 $as_echo "$CC" >&6; }
   3052 else
   3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3054 $as_echo "no" >&6; }
   3055 fi
   3056 
   3057 
   3058 fi
   3059 if test -z "$CC"; then
   3060   if test -n "$ac_tool_prefix"; then
   3061   for ac_prog in cl.exe
   3062   do
   3063     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3066 $as_echo_n "checking for $ac_word... " >&6; }
   3067 if ${ac_cv_prog_CC+:} false; then :
   3068   $as_echo_n "(cached) " >&6
   3069 else
   3070   if test -n "$CC"; then
   3071   ac_cv_prog_CC="$CC" # Let the user override the test.
   3072 else
   3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3074 for as_dir in $PATH
   3075 do
   3076   IFS=$as_save_IFS
   3077   test -z "$as_dir" && as_dir=.
   3078     for ac_exec_ext in '' $ac_executable_extensions; do
   3079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3080     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3082     break 2
   3083   fi
   3084 done
   3085   done
   3086 IFS=$as_save_IFS
   3087 
   3088 fi
   3089 fi
   3090 CC=$ac_cv_prog_CC
   3091 if test -n "$CC"; then
   3092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3093 $as_echo "$CC" >&6; }
   3094 else
   3095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3096 $as_echo "no" >&6; }
   3097 fi
   3098 
   3099 
   3100     test -n "$CC" && break
   3101   done
   3102 fi
   3103 if test -z "$CC"; then
   3104   ac_ct_CC=$CC
   3105   for ac_prog in cl.exe
   3106 do
   3107   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3108 set dummy $ac_prog; ac_word=$2
   3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3110 $as_echo_n "checking for $ac_word... " >&6; }
   3111 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3112   $as_echo_n "(cached) " >&6
   3113 else
   3114   if test -n "$ac_ct_CC"; then
   3115   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3116 else
   3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3118 for as_dir in $PATH
   3119 do
   3120   IFS=$as_save_IFS
   3121   test -z "$as_dir" && as_dir=.
   3122     for ac_exec_ext in '' $ac_executable_extensions; do
   3123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3124     ac_cv_prog_ac_ct_CC="$ac_prog"
   3125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3126     break 2
   3127   fi
   3128 done
   3129   done
   3130 IFS=$as_save_IFS
   3131 
   3132 fi
   3133 fi
   3134 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3135 if test -n "$ac_ct_CC"; then
   3136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3137 $as_echo "$ac_ct_CC" >&6; }
   3138 else
   3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3140 $as_echo "no" >&6; }
   3141 fi
   3142 
   3143 
   3144   test -n "$ac_ct_CC" && break
   3145 done
   3146 
   3147   if test "x$ac_ct_CC" = x; then
   3148     CC=""
   3149   else
   3150     case $cross_compiling:$ac_tool_warned in
   3151 yes:)
   3152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3154 ac_tool_warned=yes ;;
   3155 esac
   3156     CC=$ac_ct_CC
   3157   fi
   3158 fi
   3159 
   3160 fi
   3161 
   3162 
   3163 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3165 as_fn_error $? "no acceptable C compiler found in \$PATH
   3166 See \`config.log' for more details" "$LINENO" 5; }
   3167 
   3168 # Provide some information about the compiler.
   3169 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3170 set X $ac_compile
   3171 ac_compiler=$2
   3172 for ac_option in --version -v -V -qversion; do
   3173   { { ac_try="$ac_compiler $ac_option >&5"
   3174 case "(($ac_try" in
   3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3176   *) ac_try_echo=$ac_try;;
   3177 esac
   3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3179 $as_echo "$ac_try_echo"; } >&5
   3180   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3181   ac_status=$?
   3182   if test -s conftest.err; then
   3183     sed '10a\
   3184 ... rest of stderr output deleted ...
   3185          10q' conftest.err >conftest.er1
   3186     cat conftest.er1 >&5
   3187   fi
   3188   rm -f conftest.er1 conftest.err
   3189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3190   test $ac_status = 0; }
   3191 done
   3192 
   3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3194 /* end confdefs.h.  */
   3195 
   3196 int
   3197 main ()
   3198 {
   3199 
   3200   ;
   3201   return 0;
   3202 }
   3203 _ACEOF
   3204 ac_clean_files_save=$ac_clean_files
   3205 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3206 # Try to create an executable without -o first, disregard a.out.
   3207 # It will help us diagnose broken compilers, and finding out an intuition
   3208 # of exeext.
   3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3210 $as_echo_n "checking whether the C compiler works... " >&6; }
   3211 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3212 
   3213 # The possible output files:
   3214 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3215 
   3216 ac_rmfiles=
   3217 for ac_file in $ac_files
   3218 do
   3219   case $ac_file in
   3220     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3221     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3222   esac
   3223 done
   3224 rm -f $ac_rmfiles
   3225 
   3226 if { { ac_try="$ac_link_default"
   3227 case "(($ac_try" in
   3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3229   *) ac_try_echo=$ac_try;;
   3230 esac
   3231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3232 $as_echo "$ac_try_echo"; } >&5
   3233   (eval "$ac_link_default") 2>&5
   3234   ac_status=$?
   3235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3236   test $ac_status = 0; }; then :
   3237   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3238 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3239 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3240 # so that the user can short-circuit this test for compilers unknown to
   3241 # Autoconf.
   3242 for ac_file in $ac_files ''
   3243 do
   3244   test -f "$ac_file" || continue
   3245   case $ac_file in
   3246     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3247 	;;
   3248     [ab].out )
   3249 	# We found the default executable, but exeext='' is most
   3250 	# certainly right.
   3251 	break;;
   3252     *.* )
   3253 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3254 	then :; else
   3255 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3256 	fi
   3257 	# We set ac_cv_exeext here because the later test for it is not
   3258 	# safe: cross compilers may not add the suffix if given an `-o'
   3259 	# argument, so we may need to know it at that point already.
   3260 	# Even if this section looks crufty: it has the advantage of
   3261 	# actually working.
   3262 	break;;
   3263     * )
   3264 	break;;
   3265   esac
   3266 done
   3267 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3268 
   3269 else
   3270   ac_file=''
   3271 fi
   3272 if test -z "$ac_file"; then :
   3273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3274 $as_echo "no" >&6; }
   3275 $as_echo "$as_me: failed program was:" >&5
   3276 sed 's/^/| /' conftest.$ac_ext >&5
   3277 
   3278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3280 as_fn_error 77 "C compiler cannot create executables
   3281 See \`config.log' for more details" "$LINENO" 5; }
   3282 else
   3283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3284 $as_echo "yes" >&6; }
   3285 fi
   3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3287 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3289 $as_echo "$ac_file" >&6; }
   3290 ac_exeext=$ac_cv_exeext
   3291 
   3292 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3293 ac_clean_files=$ac_clean_files_save
   3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3295 $as_echo_n "checking for suffix of executables... " >&6; }
   3296 if { { ac_try="$ac_link"
   3297 case "(($ac_try" in
   3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3299   *) ac_try_echo=$ac_try;;
   3300 esac
   3301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3302 $as_echo "$ac_try_echo"; } >&5
   3303   (eval "$ac_link") 2>&5
   3304   ac_status=$?
   3305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3306   test $ac_status = 0; }; then :
   3307   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3308 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3309 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3310 # `rm'.
   3311 for ac_file in conftest.exe conftest conftest.*; do
   3312   test -f "$ac_file" || continue
   3313   case $ac_file in
   3314     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3315     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3316 	  break;;
   3317     * ) break;;
   3318   esac
   3319 done
   3320 else
   3321   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3323 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3324 See \`config.log' for more details" "$LINENO" 5; }
   3325 fi
   3326 rm -f conftest conftest$ac_cv_exeext
   3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3328 $as_echo "$ac_cv_exeext" >&6; }
   3329 
   3330 rm -f conftest.$ac_ext
   3331 EXEEXT=$ac_cv_exeext
   3332 ac_exeext=$EXEEXT
   3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3334 /* end confdefs.h.  */
   3335 #include <stdio.h>
   3336 int
   3337 main ()
   3338 {
   3339 FILE *f = fopen ("conftest.out", "w");
   3340  return ferror (f) || fclose (f) != 0;
   3341 
   3342   ;
   3343   return 0;
   3344 }
   3345 _ACEOF
   3346 ac_clean_files="$ac_clean_files conftest.out"
   3347 # Check that the compiler produces executables we can run.  If not, either
   3348 # the compiler is broken, or we cross compile.
   3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3350 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3351 if test "$cross_compiling" != yes; then
   3352   { { ac_try="$ac_link"
   3353 case "(($ac_try" in
   3354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3355   *) ac_try_echo=$ac_try;;
   3356 esac
   3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3358 $as_echo "$ac_try_echo"; } >&5
   3359   (eval "$ac_link") 2>&5
   3360   ac_status=$?
   3361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3362   test $ac_status = 0; }
   3363   if { ac_try='./conftest$ac_cv_exeext'
   3364   { { case "(($ac_try" in
   3365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3366   *) ac_try_echo=$ac_try;;
   3367 esac
   3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3369 $as_echo "$ac_try_echo"; } >&5
   3370   (eval "$ac_try") 2>&5
   3371   ac_status=$?
   3372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3373   test $ac_status = 0; }; }; then
   3374     cross_compiling=no
   3375   else
   3376     if test "$cross_compiling" = maybe; then
   3377 	cross_compiling=yes
   3378     else
   3379 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3381 as_fn_error $? "cannot run C compiled programs.
   3382 If you meant to cross compile, use \`--host'.
   3383 See \`config.log' for more details" "$LINENO" 5; }
   3384     fi
   3385   fi
   3386 fi
   3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3388 $as_echo "$cross_compiling" >&6; }
   3389 
   3390 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3391 ac_clean_files=$ac_clean_files_save
   3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3393 $as_echo_n "checking for suffix of object files... " >&6; }
   3394 if ${ac_cv_objext+:} false; then :
   3395   $as_echo_n "(cached) " >&6
   3396 else
   3397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3398 /* end confdefs.h.  */
   3399 
   3400 int
   3401 main ()
   3402 {
   3403 
   3404   ;
   3405   return 0;
   3406 }
   3407 _ACEOF
   3408 rm -f conftest.o conftest.obj
   3409 if { { ac_try="$ac_compile"
   3410 case "(($ac_try" in
   3411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3412   *) ac_try_echo=$ac_try;;
   3413 esac
   3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3415 $as_echo "$ac_try_echo"; } >&5
   3416   (eval "$ac_compile") 2>&5
   3417   ac_status=$?
   3418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3419   test $ac_status = 0; }; then :
   3420   for ac_file in conftest.o conftest.obj conftest.*; do
   3421   test -f "$ac_file" || continue;
   3422   case $ac_file in
   3423     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3424     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3425        break;;
   3426   esac
   3427 done
   3428 else
   3429   $as_echo "$as_me: failed program was:" >&5
   3430 sed 's/^/| /' conftest.$ac_ext >&5
   3431 
   3432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3434 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3435 See \`config.log' for more details" "$LINENO" 5; }
   3436 fi
   3437 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3438 fi
   3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3440 $as_echo "$ac_cv_objext" >&6; }
   3441 OBJEXT=$ac_cv_objext
   3442 ac_objext=$OBJEXT
   3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3444 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3445 if ${ac_cv_c_compiler_gnu+:} false; then :
   3446   $as_echo_n "(cached) " >&6
   3447 else
   3448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3449 /* end confdefs.h.  */
   3450 
   3451 int
   3452 main ()
   3453 {
   3454 #ifndef __GNUC__
   3455        choke me
   3456 #endif
   3457 
   3458   ;
   3459   return 0;
   3460 }
   3461 _ACEOF
   3462 if ac_fn_c_try_compile "$LINENO"; then :
   3463   ac_compiler_gnu=yes
   3464 else
   3465   ac_compiler_gnu=no
   3466 fi
   3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3468 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3469 
   3470 fi
   3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3472 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3473 if test $ac_compiler_gnu = yes; then
   3474   GCC=yes
   3475 else
   3476   GCC=
   3477 fi
   3478 ac_test_CFLAGS=${CFLAGS+set}
   3479 ac_save_CFLAGS=$CFLAGS
   3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3481 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3482 if ${ac_cv_prog_cc_g+:} false; then :
   3483   $as_echo_n "(cached) " >&6
   3484 else
   3485   ac_save_c_werror_flag=$ac_c_werror_flag
   3486    ac_c_werror_flag=yes
   3487    ac_cv_prog_cc_g=no
   3488    CFLAGS="-g"
   3489    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3490 /* end confdefs.h.  */
   3491 
   3492 int
   3493 main ()
   3494 {
   3495 
   3496   ;
   3497   return 0;
   3498 }
   3499 _ACEOF
   3500 if ac_fn_c_try_compile "$LINENO"; then :
   3501   ac_cv_prog_cc_g=yes
   3502 else
   3503   CFLAGS=""
   3504       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3505 /* end confdefs.h.  */
   3506 
   3507 int
   3508 main ()
   3509 {
   3510 
   3511   ;
   3512   return 0;
   3513 }
   3514 _ACEOF
   3515 if ac_fn_c_try_compile "$LINENO"; then :
   3516 
   3517 else
   3518   ac_c_werror_flag=$ac_save_c_werror_flag
   3519 	 CFLAGS="-g"
   3520 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3521 /* end confdefs.h.  */
   3522 
   3523 int
   3524 main ()
   3525 {
   3526 
   3527   ;
   3528   return 0;
   3529 }
   3530 _ACEOF
   3531 if ac_fn_c_try_compile "$LINENO"; then :
   3532   ac_cv_prog_cc_g=yes
   3533 fi
   3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3535 fi
   3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3537 fi
   3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3539    ac_c_werror_flag=$ac_save_c_werror_flag
   3540 fi
   3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3542 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3543 if test "$ac_test_CFLAGS" = set; then
   3544   CFLAGS=$ac_save_CFLAGS
   3545 elif test $ac_cv_prog_cc_g = yes; then
   3546   if test "$GCC" = yes; then
   3547     CFLAGS="-g -O2"
   3548   else
   3549     CFLAGS="-g"
   3550   fi
   3551 else
   3552   if test "$GCC" = yes; then
   3553     CFLAGS="-O2"
   3554   else
   3555     CFLAGS=
   3556   fi
   3557 fi
   3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3559 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3560 if ${ac_cv_prog_cc_c89+:} false; then :
   3561   $as_echo_n "(cached) " >&6
   3562 else
   3563   ac_cv_prog_cc_c89=no
   3564 ac_save_CC=$CC
   3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3566 /* end confdefs.h.  */
   3567 #include <stdarg.h>
   3568 #include <stdio.h>
   3569 struct stat;
   3570 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3571 struct buf { int x; };
   3572 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3573 static char *e (p, i)
   3574      char **p;
   3575      int i;
   3576 {
   3577   return p[i];
   3578 }
   3579 static char *f (char * (*g) (char **, int), char **p, ...)
   3580 {
   3581   char *s;
   3582   va_list v;
   3583   va_start (v,p);
   3584   s = g (p, va_arg (v,int));
   3585   va_end (v);
   3586   return s;
   3587 }
   3588 
   3589 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3590    function prototypes and stuff, but not '\xHH' hex character constants.
   3591    These don't provoke an error unfortunately, instead are silently treated
   3592    as 'x'.  The following induces an error, until -std is added to get
   3593    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3594    array size at least.  It's necessary to write '\x00'==0 to get something
   3595    that's true only with -std.  */
   3596 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3597 
   3598 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3599    inside strings and character constants.  */
   3600 #define FOO(x) 'x'
   3601 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3602 
   3603 int test (int i, double x);
   3604 struct s1 {int (*f) (int a);};
   3605 struct s2 {int (*f) (double a);};
   3606 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3607 int argc;
   3608 char **argv;
   3609 int
   3610 main ()
   3611 {
   3612 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3613   ;
   3614   return 0;
   3615 }
   3616 _ACEOF
   3617 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3618 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3619 do
   3620   CC="$ac_save_CC $ac_arg"
   3621   if ac_fn_c_try_compile "$LINENO"; then :
   3622   ac_cv_prog_cc_c89=$ac_arg
   3623 fi
   3624 rm -f core conftest.err conftest.$ac_objext
   3625   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3626 done
   3627 rm -f conftest.$ac_ext
   3628 CC=$ac_save_CC
   3629 
   3630 fi
   3631 # AC_CACHE_VAL
   3632 case "x$ac_cv_prog_cc_c89" in
   3633   x)
   3634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3635 $as_echo "none needed" >&6; } ;;
   3636   xno)
   3637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3638 $as_echo "unsupported" >&6; } ;;
   3639   *)
   3640     CC="$CC $ac_cv_prog_cc_c89"
   3641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3642 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3643 esac
   3644 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3645 
   3646 fi
   3647 
   3648 ac_ext=c
   3649 ac_cpp='$CPP $CPPFLAGS'
   3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3653 
   3654 
   3655 ac_ext=c
   3656 ac_cpp='$CPP $CPPFLAGS'
   3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3661 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3662 # On Suns, sometimes $CPP names a directory.
   3663 if test -n "$CPP" && test -d "$CPP"; then
   3664   CPP=
   3665 fi
   3666 if test -z "$CPP"; then
   3667   if ${ac_cv_prog_CPP+:} false; then :
   3668   $as_echo_n "(cached) " >&6
   3669 else
   3670       # Double quotes because CPP needs to be expanded
   3671     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3672     do
   3673       ac_preproc_ok=false
   3674 for ac_c_preproc_warn_flag in '' yes
   3675 do
   3676   # Use a header file that comes with gcc, so configuring glibc
   3677   # with a fresh cross-compiler works.
   3678   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3679   # <limits.h> exists even on freestanding compilers.
   3680   # On the NeXT, cc -E runs the code through the compiler's parser,
   3681   # not just through cpp. "Syntax error" is here to catch this case.
   3682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3683 /* end confdefs.h.  */
   3684 #ifdef __STDC__
   3685 # include <limits.h>
   3686 #else
   3687 # include <assert.h>
   3688 #endif
   3689 		     Syntax error
   3690 _ACEOF
   3691 if ac_fn_c_try_cpp "$LINENO"; then :
   3692 
   3693 else
   3694   # Broken: fails on valid input.
   3695 continue
   3696 fi
   3697 rm -f conftest.err conftest.i conftest.$ac_ext
   3698 
   3699   # OK, works on sane cases.  Now check whether nonexistent headers
   3700   # can be detected and how.
   3701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3702 /* end confdefs.h.  */
   3703 #include <ac_nonexistent.h>
   3704 _ACEOF
   3705 if ac_fn_c_try_cpp "$LINENO"; then :
   3706   # Broken: success on invalid input.
   3707 continue
   3708 else
   3709   # Passes both tests.
   3710 ac_preproc_ok=:
   3711 break
   3712 fi
   3713 rm -f conftest.err conftest.i conftest.$ac_ext
   3714 
   3715 done
   3716 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3717 rm -f conftest.i conftest.err conftest.$ac_ext
   3718 if $ac_preproc_ok; then :
   3719   break
   3720 fi
   3721 
   3722     done
   3723     ac_cv_prog_CPP=$CPP
   3724 
   3725 fi
   3726   CPP=$ac_cv_prog_CPP
   3727 else
   3728   ac_cv_prog_CPP=$CPP
   3729 fi
   3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3731 $as_echo "$CPP" >&6; }
   3732 ac_preproc_ok=false
   3733 for ac_c_preproc_warn_flag in '' yes
   3734 do
   3735   # Use a header file that comes with gcc, so configuring glibc
   3736   # with a fresh cross-compiler works.
   3737   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3738   # <limits.h> exists even on freestanding compilers.
   3739   # On the NeXT, cc -E runs the code through the compiler's parser,
   3740   # not just through cpp. "Syntax error" is here to catch this case.
   3741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3742 /* end confdefs.h.  */
   3743 #ifdef __STDC__
   3744 # include <limits.h>
   3745 #else
   3746 # include <assert.h>
   3747 #endif
   3748 		     Syntax error
   3749 _ACEOF
   3750 if ac_fn_c_try_cpp "$LINENO"; then :
   3751 
   3752 else
   3753   # Broken: fails on valid input.
   3754 continue
   3755 fi
   3756 rm -f conftest.err conftest.i conftest.$ac_ext
   3757 
   3758   # OK, works on sane cases.  Now check whether nonexistent headers
   3759   # can be detected and how.
   3760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3761 /* end confdefs.h.  */
   3762 #include <ac_nonexistent.h>
   3763 _ACEOF
   3764 if ac_fn_c_try_cpp "$LINENO"; then :
   3765   # Broken: success on invalid input.
   3766 continue
   3767 else
   3768   # Passes both tests.
   3769 ac_preproc_ok=:
   3770 break
   3771 fi
   3772 rm -f conftest.err conftest.i conftest.$ac_ext
   3773 
   3774 done
   3775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3776 rm -f conftest.i conftest.err conftest.$ac_ext
   3777 if $ac_preproc_ok; then :
   3778 
   3779 else
   3780   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3782 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   3783 See \`config.log' for more details" "$LINENO" 5; }
   3784 fi
   3785 
   3786 ac_ext=c
   3787 ac_cpp='$CPP $CPPFLAGS'
   3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3791 
   3792 
   3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3794 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3795 if ${ac_cv_path_GREP+:} false; then :
   3796   $as_echo_n "(cached) " >&6
   3797 else
   3798   if test -z "$GREP"; then
   3799   ac_path_GREP_found=false
   3800   # Loop through the user's path and test for each of PROGNAME-LIST
   3801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3802 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3803 do
   3804   IFS=$as_save_IFS
   3805   test -z "$as_dir" && as_dir=.
   3806     for ac_prog in grep ggrep; do
   3807     for ac_exec_ext in '' $ac_executable_extensions; do
   3808       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3809       as_fn_executable_p "$ac_path_GREP" || continue
   3810 # Check for GNU ac_path_GREP and select it if it is found.
   3811   # Check for GNU $ac_path_GREP
   3812 case `"$ac_path_GREP" --version 2>&1` in
   3813 *GNU*)
   3814   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3815 *)
   3816   ac_count=0
   3817   $as_echo_n 0123456789 >"conftest.in"
   3818   while :
   3819   do
   3820     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3821     mv "conftest.tmp" "conftest.in"
   3822     cp "conftest.in" "conftest.nl"
   3823     $as_echo 'GREP' >> "conftest.nl"
   3824     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3825     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3826     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3827     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3828       # Best one so far, save it but keep looking for a better one
   3829       ac_cv_path_GREP="$ac_path_GREP"
   3830       ac_path_GREP_max=$ac_count
   3831     fi
   3832     # 10*(2^10) chars as input seems more than enough
   3833     test $ac_count -gt 10 && break
   3834   done
   3835   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3836 esac
   3837 
   3838       $ac_path_GREP_found && break 3
   3839     done
   3840   done
   3841   done
   3842 IFS=$as_save_IFS
   3843   if test -z "$ac_cv_path_GREP"; then
   3844     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3845   fi
   3846 else
   3847   ac_cv_path_GREP=$GREP
   3848 fi
   3849 
   3850 fi
   3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3852 $as_echo "$ac_cv_path_GREP" >&6; }
   3853  GREP="$ac_cv_path_GREP"
   3854 
   3855 
   3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3857 $as_echo_n "checking for egrep... " >&6; }
   3858 if ${ac_cv_path_EGREP+:} false; then :
   3859   $as_echo_n "(cached) " >&6
   3860 else
   3861   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3862    then ac_cv_path_EGREP="$GREP -E"
   3863    else
   3864      if test -z "$EGREP"; then
   3865   ac_path_EGREP_found=false
   3866   # Loop through the user's path and test for each of PROGNAME-LIST
   3867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3869 do
   3870   IFS=$as_save_IFS
   3871   test -z "$as_dir" && as_dir=.
   3872     for ac_prog in egrep; do
   3873     for ac_exec_ext in '' $ac_executable_extensions; do
   3874       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3875       as_fn_executable_p "$ac_path_EGREP" || continue
   3876 # Check for GNU ac_path_EGREP and select it if it is found.
   3877   # Check for GNU $ac_path_EGREP
   3878 case `"$ac_path_EGREP" --version 2>&1` in
   3879 *GNU*)
   3880   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3881 *)
   3882   ac_count=0
   3883   $as_echo_n 0123456789 >"conftest.in"
   3884   while :
   3885   do
   3886     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3887     mv "conftest.tmp" "conftest.in"
   3888     cp "conftest.in" "conftest.nl"
   3889     $as_echo 'EGREP' >> "conftest.nl"
   3890     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3891     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3892     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3893     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3894       # Best one so far, save it but keep looking for a better one
   3895       ac_cv_path_EGREP="$ac_path_EGREP"
   3896       ac_path_EGREP_max=$ac_count
   3897     fi
   3898     # 10*(2^10) chars as input seems more than enough
   3899     test $ac_count -gt 10 && break
   3900   done
   3901   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3902 esac
   3903 
   3904       $ac_path_EGREP_found && break 3
   3905     done
   3906   done
   3907   done
   3908 IFS=$as_save_IFS
   3909   if test -z "$ac_cv_path_EGREP"; then
   3910     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3911   fi
   3912 else
   3913   ac_cv_path_EGREP=$EGREP
   3914 fi
   3915 
   3916    fi
   3917 fi
   3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   3919 $as_echo "$ac_cv_path_EGREP" >&6; }
   3920  EGREP="$ac_cv_path_EGREP"
   3921 
   3922 
   3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   3924 $as_echo_n "checking for ANSI C header files... " >&6; }
   3925 if ${ac_cv_header_stdc+:} false; then :
   3926   $as_echo_n "(cached) " >&6
   3927 else
   3928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3929 /* end confdefs.h.  */
   3930 #include <stdlib.h>
   3931 #include <stdarg.h>
   3932 #include <string.h>
   3933 #include <float.h>
   3934 
   3935 int
   3936 main ()
   3937 {
   3938 
   3939   ;
   3940   return 0;
   3941 }
   3942 _ACEOF
   3943 if ac_fn_c_try_compile "$LINENO"; then :
   3944   ac_cv_header_stdc=yes
   3945 else
   3946   ac_cv_header_stdc=no
   3947 fi
   3948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3949 
   3950 if test $ac_cv_header_stdc = yes; then
   3951   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3953 /* end confdefs.h.  */
   3954 #include <string.h>
   3955 
   3956 _ACEOF
   3957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3958   $EGREP "memchr" >/dev/null 2>&1; then :
   3959 
   3960 else
   3961   ac_cv_header_stdc=no
   3962 fi
   3963 rm -f conftest*
   3964 
   3965 fi
   3966 
   3967 if test $ac_cv_header_stdc = yes; then
   3968   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3970 /* end confdefs.h.  */
   3971 #include <stdlib.h>
   3972 
   3973 _ACEOF
   3974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3975   $EGREP "free" >/dev/null 2>&1; then :
   3976 
   3977 else
   3978   ac_cv_header_stdc=no
   3979 fi
   3980 rm -f conftest*
   3981 
   3982 fi
   3983 
   3984 if test $ac_cv_header_stdc = yes; then
   3985   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3986   if test "$cross_compiling" = yes; then :
   3987   :
   3988 else
   3989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3990 /* end confdefs.h.  */
   3991 #include <ctype.h>
   3992 #include <stdlib.h>
   3993 #if ((' ' & 0x0FF) == 0x020)
   3994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3996 #else
   3997 # define ISLOWER(c) \
   3998 		   (('a' <= (c) && (c) <= 'i') \
   3999 		     || ('j' <= (c) && (c) <= 'r') \
   4000 		     || ('s' <= (c) && (c) <= 'z'))
   4001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4002 #endif
   4003 
   4004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4005 int
   4006 main ()
   4007 {
   4008   int i;
   4009   for (i = 0; i < 256; i++)
   4010     if (XOR (islower (i), ISLOWER (i))
   4011 	|| toupper (i) != TOUPPER (i))
   4012       return 2;
   4013   return 0;
   4014 }
   4015 _ACEOF
   4016 if ac_fn_c_try_run "$LINENO"; then :
   4017 
   4018 else
   4019   ac_cv_header_stdc=no
   4020 fi
   4021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4022   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4023 fi
   4024 
   4025 fi
   4026 fi
   4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4028 $as_echo "$ac_cv_header_stdc" >&6; }
   4029 if test $ac_cv_header_stdc = yes; then
   4030 
   4031 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4032 
   4033 fi
   4034 
   4035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4037 		  inttypes.h stdint.h unistd.h
   4038 do :
   4039   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4040 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4041 "
   4042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4043   cat >>confdefs.h <<_ACEOF
   4044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4045 _ACEOF
   4046 
   4047 fi
   4048 
   4049 done
   4050 
   4051 
   4052 
   4053   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   4054 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   4055   MINIX=yes
   4056 else
   4057   MINIX=
   4058 fi
   4059 
   4060 
   4061   if test "$MINIX" = yes; then
   4062 
   4063 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   4064 
   4065 
   4066 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   4067 
   4068 
   4069 $as_echo "#define _MINIX 1" >>confdefs.h
   4070 
   4071   fi
   4072 
   4073 
   4074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   4075 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4076 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   4077   $as_echo_n "(cached) " >&6
   4078 else
   4079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4080 /* end confdefs.h.  */
   4081 
   4082 #         define __EXTENSIONS__ 1
   4083           $ac_includes_default
   4084 int
   4085 main ()
   4086 {
   4087 
   4088   ;
   4089   return 0;
   4090 }
   4091 _ACEOF
   4092 if ac_fn_c_try_compile "$LINENO"; then :
   4093   ac_cv_safe_to_define___extensions__=yes
   4094 else
   4095   ac_cv_safe_to_define___extensions__=no
   4096 fi
   4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4098 fi
   4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4100 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   4101   test $ac_cv_safe_to_define___extensions__ = yes &&
   4102     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   4103 
   4104   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   4105 
   4106   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   4107 
   4108   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4109 
   4110   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   4111 
   4112 
   4113 
   4114 if test "$ac_cv_header_minix_config_h" = "yes"; then
   4115 
   4116 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
   4117 
   4118 fi
   4119 
   4120 case "$prefix" in
   4121         NONE)
   4122 		prefix="/usr/local"
   4123         ;;
   4124 esac
   4125 case "$exec_prefix" in
   4126         NONE)
   4127 		exec_prefix="$prefix"
   4128         ;;
   4129 esac
   4130 
   4131 # are we on MinGW?
   4132 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
   4133 else
   4134 	if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes"
   4135 	else on_mingw="no"; fi
   4136 fi
   4137 
   4138 #
   4139 # Determine configuration file
   4140 # the eval is to evaluate shell expansion twice
   4141 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
   4142 
   4143 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
   4144 
   4145 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
   4146 
   4147 if test $on_mingw = "no"; then
   4148   ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
   4149 else
   4150   ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
   4151 fi
   4152 
   4153 # Check whether --with-conf_file was given.
   4154 if test "${with_conf_file+set}" = set; then :
   4155   withval=$with_conf_file; ub_conf_file="$withval"
   4156 fi
   4157 
   4158 
   4159 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
   4160 
   4161 
   4162 cat >>confdefs.h <<_ACEOF
   4163 #define CONFIGFILE "$hdr_config"
   4164 _ACEOF
   4165 
   4166 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
   4167 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   4168 	 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
   4169 	 X"$ub_conf_file" : 'X\(//\)$' \| \
   4170 	 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
   4171 $as_echo X"$ub_conf_file" |
   4172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   4173 	    s//\1/
   4174 	    q
   4175 	  }
   4176 	  /^X\(\/\/\)[^/].*/{
   4177 	    s//\1/
   4178 	    q
   4179 	  }
   4180 	  /^X\(\/\/\)$/{
   4181 	    s//\1/
   4182 	    q
   4183 	  }
   4184 	  /^X\(\/\).*/{
   4185 	    s//\1/
   4186 	    q
   4187 	  }
   4188 	  s/.*/./; q'`
   4189 
   4190 
   4191 # Determine run, chroot directory and pidfile locations
   4192 
   4193 # Check whether --with-run-dir was given.
   4194 if test "${with_run_dir+set}" = set; then :
   4195   withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
   4196 else
   4197   if test $on_mingw = no; then
   4198     UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
   4199 else
   4200     UNBOUND_RUN_DIR=""
   4201 fi
   4202 
   4203 fi
   4204 
   4205 
   4206 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
   4207 
   4208 
   4209 cat >>confdefs.h <<_ACEOF
   4210 #define RUN_DIR "$hdr_run"
   4211 _ACEOF
   4212 
   4213 
   4214 
   4215 # Check whether --with-chroot-dir was given.
   4216 if test "${with_chroot_dir+set}" = set; then :
   4217   withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
   4218 else
   4219   if test $on_mingw = no; then
   4220     UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
   4221 else
   4222     UNBOUND_CHROOT_DIR=""
   4223 fi
   4224 
   4225 fi
   4226 
   4227 
   4228 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
   4229 
   4230 
   4231 cat >>confdefs.h <<_ACEOF
   4232 #define CHROOT_DIR "$hdr_chroot"
   4233 _ACEOF
   4234 
   4235 
   4236 
   4237 # Check whether --with-share-dir was given.
   4238 if test "${with_share_dir+set}" = set; then :
   4239   withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
   4240 else
   4241   UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
   4242 fi
   4243 
   4244 
   4245 
   4246 cat >>confdefs.h <<_ACEOF
   4247 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
   4248 _ACEOF
   4249 
   4250 
   4251 
   4252 # Check whether --with-pidfile was given.
   4253 if test "${with_pidfile+set}" = set; then :
   4254   withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
   4255 else
   4256   if test $on_mingw = no; then
   4257     UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
   4258 else
   4259     UNBOUND_PIDFILE=""
   4260 fi
   4261 
   4262 fi
   4263 
   4264 
   4265 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
   4266 
   4267 
   4268 cat >>confdefs.h <<_ACEOF
   4269 #define PIDFILE "$hdr_pid"
   4270 _ACEOF
   4271 
   4272 
   4273 
   4274 # Check whether --with-rootkey-file was given.
   4275 if test "${with_rootkey_file+set}" = set; then :
   4276   withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
   4277 else
   4278   if test $on_mingw = no; then
   4279     UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
   4280 else
   4281     UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
   4282 fi
   4283 
   4284 fi
   4285 
   4286 
   4287 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
   4288 
   4289 
   4290 cat >>confdefs.h <<_ACEOF
   4291 #define ROOT_ANCHOR_FILE "$hdr_rkey"
   4292 _ACEOF
   4293 
   4294 
   4295 
   4296 # Check whether --with-rootcert-file was given.
   4297 if test "${with_rootcert_file+set}" = set; then :
   4298   withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
   4299 else
   4300   if test $on_mingw = no; then
   4301     UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
   4302 else
   4303     UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
   4304 fi
   4305 
   4306 fi
   4307 
   4308 
   4309 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
   4310 
   4311 
   4312 cat >>confdefs.h <<_ACEOF
   4313 #define ROOT_CERT_FILE "$hdr_rpem"
   4314 _ACEOF
   4315 
   4316 
   4317 
   4318 # Check whether --with-username was given.
   4319 if test "${with_username+set}" = set; then :
   4320   withval=$with_username; UNBOUND_USERNAME="$withval"
   4321 else
   4322   UNBOUND_USERNAME="unbound"
   4323 fi
   4324 
   4325 
   4326 
   4327 cat >>confdefs.h <<_ACEOF
   4328 #define UB_USERNAME "$UNBOUND_USERNAME"
   4329 _ACEOF
   4330 
   4331 
   4332 
   4333 $as_echo "#define WINVER 0x0502" >>confdefs.h
   4334 
   4335 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/' `
   4336 
   4337 
   4338 cat >>confdefs.h <<_ACEOF
   4339 #define RSRC_PACKAGE_VERSION $wnvs
   4340 _ACEOF
   4341 
   4342 
   4343 # Checks for typedefs, structures, and compiler characteristics.
   4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   4345 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   4346 if ${ac_cv_c_const+:} false; then :
   4347   $as_echo_n "(cached) " >&6
   4348 else
   4349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4350 /* end confdefs.h.  */
   4351 
   4352 int
   4353 main ()
   4354 {
   4355 
   4356 #ifndef __cplusplus
   4357   /* Ultrix mips cc rejects this sort of thing.  */
   4358   typedef int charset[2];
   4359   const charset cs = { 0, 0 };
   4360   /* SunOS 4.1.1 cc rejects this.  */
   4361   char const *const *pcpcc;
   4362   char **ppc;
   4363   /* NEC SVR4.0.2 mips cc rejects this.  */
   4364   struct point {int x, y;};
   4365   static struct point const zero = {0,0};
   4366   /* AIX XL C 1.02.0.0 rejects this.
   4367      It does not let you subtract one const X* pointer from another in
   4368      an arm of an if-expression whose if-part is not a constant
   4369      expression */
   4370   const char *g = "string";
   4371   pcpcc = &g + (g ? g-g : 0);
   4372   /* HPUX 7.0 cc rejects these. */
   4373   ++pcpcc;
   4374   ppc = (char**) pcpcc;
   4375   pcpcc = (char const *const *) ppc;
   4376   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   4377     char tx;
   4378     char *t = &tx;
   4379     char const *s = 0 ? (char *) 0 : (char const *) 0;
   4380 
   4381     *t++ = 0;
   4382     if (s) return 0;
   4383   }
   4384   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   4385     int x[] = {25, 17};
   4386     const int *foo = &x[0];
   4387     ++foo;
   4388   }
   4389   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   4390     typedef const int *iptr;
   4391     iptr p = 0;
   4392     ++p;
   4393   }
   4394   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   4395        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   4396     struct s { int j; const int *ap[3]; } bx;
   4397     struct s *b = &bx; b->j = 5;
   4398   }
   4399   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   4400     const int foo = 10;
   4401     if (!foo) return 0;
   4402   }
   4403   return !cs[0] && !zero.x;
   4404 #endif
   4405 
   4406   ;
   4407   return 0;
   4408 }
   4409 _ACEOF
   4410 if ac_fn_c_try_compile "$LINENO"; then :
   4411   ac_cv_c_const=yes
   4412 else
   4413   ac_cv_c_const=no
   4414 fi
   4415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4416 fi
   4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   4418 $as_echo "$ac_cv_c_const" >&6; }
   4419 if test $ac_cv_c_const = no; then
   4420 
   4421 $as_echo "#define const /**/" >>confdefs.h
   4422 
   4423 fi
   4424 
   4425 ac_ext=c
   4426 ac_cpp='$CPP $CPPFLAGS'
   4427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4430 
   4431 # allow user to override the -g -O2 flags.
   4432 if test "x$CFLAGS" = "x" ; then
   4433 
   4434 
   4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
   4436 $as_echo_n "checking whether $CC supports -g... " >&6; }
   4437 cache=`echo g | sed 'y%.=/+-%___p_%'`
   4438 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   4439   $as_echo_n "(cached) " >&6
   4440 else
   4441 
   4442 echo 'void f(void){}' >conftest.c
   4443 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
   4444 eval "cv_prog_cc_flag_$cache=yes"
   4445 else
   4446 eval "cv_prog_cc_flag_$cache=no"
   4447 fi
   4448 rm -f conftest conftest.o conftest.c
   4449 
   4450 fi
   4451 
   4452 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4454 $as_echo "yes" >&6; }
   4455 :
   4456 CFLAGS="$CFLAGS -g"
   4457 else
   4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4459 $as_echo "no" >&6; }
   4460 :
   4461 
   4462 fi
   4463 
   4464 
   4465 
   4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
   4467 $as_echo_n "checking whether $CC supports -O2... " >&6; }
   4468 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
   4469 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   4470   $as_echo_n "(cached) " >&6
   4471 else
   4472 
   4473 echo 'void f(void){}' >conftest.c
   4474 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
   4475 eval "cv_prog_cc_flag_$cache=yes"
   4476 else
   4477 eval "cv_prog_cc_flag_$cache=no"
   4478 fi
   4479 rm -f conftest conftest.o conftest.c
   4480 
   4481 fi
   4482 
   4483 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4485 $as_echo "yes" >&6; }
   4486 :
   4487 CFLAGS="$CFLAGS -O2"
   4488 else
   4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4490 $as_echo "no" >&6; }
   4491 :
   4492 
   4493 fi
   4494 
   4495 fi
   4496 ac_ext=c
   4497 ac_cpp='$CPP $CPPFLAGS'
   4498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4501 if test -n "$ac_tool_prefix"; then
   4502   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   4503 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4505 $as_echo_n "checking for $ac_word... " >&6; }
   4506 if ${ac_cv_prog_CC+:} false; then :
   4507   $as_echo_n "(cached) " >&6
   4508 else
   4509   if test -n "$CC"; then
   4510   ac_cv_prog_CC="$CC" # Let the user override the test.
   4511 else
   4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4513 for as_dir in $PATH
   4514 do
   4515   IFS=$as_save_IFS
   4516   test -z "$as_dir" && as_dir=.
   4517     for ac_exec_ext in '' $ac_executable_extensions; do
   4518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4519     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   4520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4521     break 2
   4522   fi
   4523 done
   4524   done
   4525 IFS=$as_save_IFS
   4526 
   4527 fi
   4528 fi
   4529 CC=$ac_cv_prog_CC
   4530 if test -n "$CC"; then
   4531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4532 $as_echo "$CC" >&6; }
   4533 else
   4534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4535 $as_echo "no" >&6; }
   4536 fi
   4537 
   4538 
   4539 fi
   4540 if test -z "$ac_cv_prog_CC"; then
   4541   ac_ct_CC=$CC
   4542   # Extract the first word of "gcc", so it can be a program name with args.
   4543 set dummy gcc; ac_word=$2
   4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4545 $as_echo_n "checking for $ac_word... " >&6; }
   4546 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   4547   $as_echo_n "(cached) " >&6
   4548 else
   4549   if test -n "$ac_ct_CC"; then
   4550   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4551 else
   4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4553 for as_dir in $PATH
   4554 do
   4555   IFS=$as_save_IFS
   4556   test -z "$as_dir" && as_dir=.
   4557     for ac_exec_ext in '' $ac_executable_extensions; do
   4558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4559     ac_cv_prog_ac_ct_CC="gcc"
   4560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4561     break 2
   4562   fi
   4563 done
   4564   done
   4565 IFS=$as_save_IFS
   4566 
   4567 fi
   4568 fi
   4569 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4570 if test -n "$ac_ct_CC"; then
   4571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4572 $as_echo "$ac_ct_CC" >&6; }
   4573 else
   4574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4575 $as_echo "no" >&6; }
   4576 fi
   4577 
   4578   if test "x$ac_ct_CC" = x; then
   4579     CC=""
   4580   else
   4581     case $cross_compiling:$ac_tool_warned in
   4582 yes:)
   4583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4585 ac_tool_warned=yes ;;
   4586 esac
   4587     CC=$ac_ct_CC
   4588   fi
   4589 else
   4590   CC="$ac_cv_prog_CC"
   4591 fi
   4592 
   4593 if test -z "$CC"; then
   4594           if test -n "$ac_tool_prefix"; then
   4595     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   4596 set dummy ${ac_tool_prefix}cc; ac_word=$2
   4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4598 $as_echo_n "checking for $ac_word... " >&6; }
   4599 if ${ac_cv_prog_CC+:} false; then :
   4600   $as_echo_n "(cached) " >&6
   4601 else
   4602   if test -n "$CC"; then
   4603   ac_cv_prog_CC="$CC" # Let the user override the test.
   4604 else
   4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4606 for as_dir in $PATH
   4607 do
   4608   IFS=$as_save_IFS
   4609   test -z "$as_dir" && as_dir=.
   4610     for ac_exec_ext in '' $ac_executable_extensions; do
   4611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4612     ac_cv_prog_CC="${ac_tool_prefix}cc"
   4613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4614     break 2
   4615   fi
   4616 done
   4617   done
   4618 IFS=$as_save_IFS
   4619 
   4620 fi
   4621 fi
   4622 CC=$ac_cv_prog_CC
   4623 if test -n "$CC"; then
   4624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4625 $as_echo "$CC" >&6; }
   4626 else
   4627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4628 $as_echo "no" >&6; }
   4629 fi
   4630 
   4631 
   4632   fi
   4633 fi
   4634 if test -z "$CC"; then
   4635   # Extract the first word of "cc", so it can be a program name with args.
   4636 set dummy cc; ac_word=$2
   4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4638 $as_echo_n "checking for $ac_word... " >&6; }
   4639 if ${ac_cv_prog_CC+:} false; then :
   4640   $as_echo_n "(cached) " >&6
   4641 else
   4642   if test -n "$CC"; then
   4643   ac_cv_prog_CC="$CC" # Let the user override the test.
   4644 else
   4645   ac_prog_rejected=no
   4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4647 for as_dir in $PATH
   4648 do
   4649   IFS=$as_save_IFS
   4650   test -z "$as_dir" && as_dir=.
   4651     for ac_exec_ext in '' $ac_executable_extensions; do
   4652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4653     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   4654        ac_prog_rejected=yes
   4655        continue
   4656      fi
   4657     ac_cv_prog_CC="cc"
   4658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4659     break 2
   4660   fi
   4661 done
   4662   done
   4663 IFS=$as_save_IFS
   4664 
   4665 if test $ac_prog_rejected = yes; then
   4666   # We found a bogon in the path, so make sure we never use it.
   4667   set dummy $ac_cv_prog_CC
   4668   shift
   4669   if test $# != 0; then
   4670     # We chose a different compiler from the bogus one.
   4671     # However, it has the same basename, so the bogon will be chosen
   4672     # first if we set CC to just the basename; use the full file name.
   4673     shift
   4674     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   4675   fi
   4676 fi
   4677 fi
   4678 fi
   4679 CC=$ac_cv_prog_CC
   4680 if test -n "$CC"; then
   4681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4682 $as_echo "$CC" >&6; }
   4683 else
   4684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4685 $as_echo "no" >&6; }
   4686 fi
   4687 
   4688 
   4689 fi
   4690 if test -z "$CC"; then
   4691   if test -n "$ac_tool_prefix"; then
   4692   for ac_prog in cl.exe
   4693   do
   4694     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4697 $as_echo_n "checking for $ac_word... " >&6; }
   4698 if ${ac_cv_prog_CC+:} false; then :
   4699   $as_echo_n "(cached) " >&6
   4700 else
   4701   if test -n "$CC"; then
   4702   ac_cv_prog_CC="$CC" # Let the user override the test.
   4703 else
   4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4705 for as_dir in $PATH
   4706 do
   4707   IFS=$as_save_IFS
   4708   test -z "$as_dir" && as_dir=.
   4709     for ac_exec_ext in '' $ac_executable_extensions; do
   4710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4711     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   4712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4713     break 2
   4714   fi
   4715 done
   4716   done
   4717 IFS=$as_save_IFS
   4718 
   4719 fi
   4720 fi
   4721 CC=$ac_cv_prog_CC
   4722 if test -n "$CC"; then
   4723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4724 $as_echo "$CC" >&6; }
   4725 else
   4726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4727 $as_echo "no" >&6; }
   4728 fi
   4729 
   4730 
   4731     test -n "$CC" && break
   4732   done
   4733 fi
   4734 if test -z "$CC"; then
   4735   ac_ct_CC=$CC
   4736   for ac_prog in cl.exe
   4737 do
   4738   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4739 set dummy $ac_prog; ac_word=$2
   4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4741 $as_echo_n "checking for $ac_word... " >&6; }
   4742 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   4743   $as_echo_n "(cached) " >&6
   4744 else
   4745   if test -n "$ac_ct_CC"; then
   4746   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4747 else
   4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4749 for as_dir in $PATH
   4750 do
   4751   IFS=$as_save_IFS
   4752   test -z "$as_dir" && as_dir=.
   4753     for ac_exec_ext in '' $ac_executable_extensions; do
   4754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4755     ac_cv_prog_ac_ct_CC="$ac_prog"
   4756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4757     break 2
   4758   fi
   4759 done
   4760   done
   4761 IFS=$as_save_IFS
   4762 
   4763 fi
   4764 fi
   4765 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4766 if test -n "$ac_ct_CC"; then
   4767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4768 $as_echo "$ac_ct_CC" >&6; }
   4769 else
   4770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4771 $as_echo "no" >&6; }
   4772 fi
   4773 
   4774 
   4775   test -n "$ac_ct_CC" && break
   4776 done
   4777 
   4778   if test "x$ac_ct_CC" = x; then
   4779     CC=""
   4780   else
   4781     case $cross_compiling:$ac_tool_warned in
   4782 yes:)
   4783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4785 ac_tool_warned=yes ;;
   4786 esac
   4787     CC=$ac_ct_CC
   4788   fi
   4789 fi
   4790 
   4791 fi
   4792 
   4793 
   4794 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4796 as_fn_error $? "no acceptable C compiler found in \$PATH
   4797 See \`config.log' for more details" "$LINENO" 5; }
   4798 
   4799 # Provide some information about the compiler.
   4800 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   4801 set X $ac_compile
   4802 ac_compiler=$2
   4803 for ac_option in --version -v -V -qversion; do
   4804   { { ac_try="$ac_compiler $ac_option >&5"
   4805 case "(($ac_try" in
   4806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4807   *) ac_try_echo=$ac_try;;
   4808 esac
   4809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4810 $as_echo "$ac_try_echo"; } >&5
   4811   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   4812   ac_status=$?
   4813   if test -s conftest.err; then
   4814     sed '10a\
   4815 ... rest of stderr output deleted ...
   4816          10q' conftest.err >conftest.er1
   4817     cat conftest.er1 >&5
   4818   fi
   4819   rm -f conftest.er1 conftest.err
   4820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4821   test $ac_status = 0; }
   4822 done
   4823 
   4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   4825 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   4826 if ${ac_cv_c_compiler_gnu+:} false; then :
   4827   $as_echo_n "(cached) " >&6
   4828 else
   4829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4830 /* end confdefs.h.  */
   4831 
   4832 int
   4833 main ()
   4834 {
   4835 #ifndef __GNUC__
   4836        choke me
   4837 #endif
   4838 
   4839   ;
   4840   return 0;
   4841 }
   4842 _ACEOF
   4843 if ac_fn_c_try_compile "$LINENO"; then :
   4844   ac_compiler_gnu=yes
   4845 else
   4846   ac_compiler_gnu=no
   4847 fi
   4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4849 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   4850 
   4851 fi
   4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   4853 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   4854 if test $ac_compiler_gnu = yes; then
   4855   GCC=yes
   4856 else
   4857   GCC=
   4858 fi
   4859 ac_test_CFLAGS=${CFLAGS+set}
   4860 ac_save_CFLAGS=$CFLAGS
   4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   4862 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   4863 if ${ac_cv_prog_cc_g+:} false; then :
   4864   $as_echo_n "(cached) " >&6
   4865 else
   4866   ac_save_c_werror_flag=$ac_c_werror_flag
   4867    ac_c_werror_flag=yes
   4868    ac_cv_prog_cc_g=no
   4869    CFLAGS="-g"
   4870    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4871 /* end confdefs.h.  */
   4872 
   4873 int
   4874 main ()
   4875 {
   4876 
   4877   ;
   4878   return 0;
   4879 }
   4880 _ACEOF
   4881 if ac_fn_c_try_compile "$LINENO"; then :
   4882   ac_cv_prog_cc_g=yes
   4883 else
   4884   CFLAGS=""
   4885       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4886 /* end confdefs.h.  */
   4887 
   4888 int
   4889 main ()
   4890 {
   4891 
   4892   ;
   4893   return 0;
   4894 }
   4895 _ACEOF
   4896 if ac_fn_c_try_compile "$LINENO"; then :
   4897 
   4898 else
   4899   ac_c_werror_flag=$ac_save_c_werror_flag
   4900 	 CFLAGS="-g"
   4901 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4902 /* end confdefs.h.  */
   4903 
   4904 int
   4905 main ()
   4906 {
   4907 
   4908   ;
   4909   return 0;
   4910 }
   4911 _ACEOF
   4912 if ac_fn_c_try_compile "$LINENO"; then :
   4913   ac_cv_prog_cc_g=yes
   4914 fi
   4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4916 fi
   4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4918 fi
   4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4920    ac_c_werror_flag=$ac_save_c_werror_flag
   4921 fi
   4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   4923 $as_echo "$ac_cv_prog_cc_g" >&6; }
   4924 if test "$ac_test_CFLAGS" = set; then
   4925   CFLAGS=$ac_save_CFLAGS
   4926 elif test $ac_cv_prog_cc_g = yes; then
   4927   if test "$GCC" = yes; then
   4928     CFLAGS="-g -O2"
   4929   else
   4930     CFLAGS="-g"
   4931   fi
   4932 else
   4933   if test "$GCC" = yes; then
   4934     CFLAGS="-O2"
   4935   else
   4936     CFLAGS=
   4937   fi
   4938 fi
   4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   4940 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   4941 if ${ac_cv_prog_cc_c89+:} false; then :
   4942   $as_echo_n "(cached) " >&6
   4943 else
   4944   ac_cv_prog_cc_c89=no
   4945 ac_save_CC=$CC
   4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4947 /* end confdefs.h.  */
   4948 #include <stdarg.h>
   4949 #include <stdio.h>
   4950 struct stat;
   4951 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4952 struct buf { int x; };
   4953 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4954 static char *e (p, i)
   4955      char **p;
   4956      int i;
   4957 {
   4958   return p[i];
   4959 }
   4960 static char *f (char * (*g) (char **, int), char **p, ...)
   4961 {
   4962   char *s;
   4963   va_list v;
   4964   va_start (v,p);
   4965   s = g (p, va_arg (v,int));
   4966   va_end (v);
   4967   return s;
   4968 }
   4969 
   4970 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   4971    function prototypes and stuff, but not '\xHH' hex character constants.
   4972    These don't provoke an error unfortunately, instead are silently treated
   4973    as 'x'.  The following induces an error, until -std is added to get
   4974    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   4975    array size at least.  It's necessary to write '\x00'==0 to get something
   4976    that's true only with -std.  */
   4977 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   4978 
   4979 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   4980    inside strings and character constants.  */
   4981 #define FOO(x) 'x'
   4982 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   4983 
   4984 int test (int i, double x);
   4985 struct s1 {int (*f) (int a);};
   4986 struct s2 {int (*f) (double a);};
   4987 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4988 int argc;
   4989 char **argv;
   4990 int
   4991 main ()
   4992 {
   4993 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4994   ;
   4995   return 0;
   4996 }
   4997 _ACEOF
   4998 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   4999 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   5000 do
   5001   CC="$ac_save_CC $ac_arg"
   5002   if ac_fn_c_try_compile "$LINENO"; then :
   5003   ac_cv_prog_cc_c89=$ac_arg
   5004 fi
   5005 rm -f core conftest.err conftest.$ac_objext
   5006   test "x$ac_cv_prog_cc_c89" != "xno" && break
   5007 done
   5008 rm -f conftest.$ac_ext
   5009 CC=$ac_save_CC
   5010 
   5011 fi
   5012 # AC_CACHE_VAL
   5013 case "x$ac_cv_prog_cc_c89" in
   5014   x)
   5015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5016 $as_echo "none needed" >&6; } ;;
   5017   xno)
   5018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5019 $as_echo "unsupported" >&6; } ;;
   5020   *)
   5021     CC="$CC $ac_cv_prog_cc_c89"
   5022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   5023 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   5024 esac
   5025 if test "x$ac_cv_prog_cc_c89" != xno; then :
   5026 
   5027 fi
   5028 
   5029 ac_ext=c
   5030 ac_cpp='$CPP $CPPFLAGS'
   5031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5034 
   5035 
   5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
   5037 $as_echo_n "checking $CC dependency flag... " >&6; }
   5038 echo 'void f(){}' >conftest.c
   5039 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
   5040 	DEPFLAG="-MM"
   5041 else
   5042   if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
   5043 	DEPFLAG="-xM1"
   5044   else
   5045 	DEPFLAG="-MM"  # dunno do something
   5046   fi
   5047 fi
   5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
   5049 $as_echo "$DEPFLAG" >&6; }
   5050 rm -f conftest.c
   5051 
   5052 
   5053 
   5054 
   5055 
   5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
   5057 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
   5058 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
   5059 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   5060   $as_echo_n "(cached) " >&6
   5061 else
   5062 
   5063 echo 'void f(void){}' >conftest.c
   5064 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
   5065 eval "cv_prog_cc_flag_$cache=yes"
   5066 else
   5067 eval "cv_prog_cc_flag_$cache=no"
   5068 fi
   5069 rm -f conftest conftest.o conftest.c
   5070 
   5071 fi
   5072 
   5073 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5075 $as_echo "yes" >&6; }
   5076 :
   5077 ERRFLAG="-Werror"
   5078 else
   5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5080 $as_echo "no" >&6; }
   5081 :
   5082 ERRFLAG="-errwarn"
   5083 fi
   5084 
   5085 
   5086 
   5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
   5088 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
   5089 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
   5090 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   5091   $as_echo_n "(cached) " >&6
   5092 else
   5093 
   5094 echo 'void f(void){}' >conftest.c
   5095 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
   5096 eval "cv_prog_cc_flag_$cache=yes"
   5097 else
   5098 eval "cv_prog_cc_flag_$cache=no"
   5099 fi
   5100 rm -f conftest conftest.o conftest.c
   5101 
   5102 fi
   5103 
   5104 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5106 $as_echo "yes" >&6; }
   5107 :
   5108 ERRFLAG="$ERRFLAG -Wall"
   5109 else
   5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5111 $as_echo "no" >&6; }
   5112 :
   5113 ERRFLAG="$ERRFLAG -errfmt"
   5114 fi
   5115 
   5116 
   5117 
   5118 
   5119 
   5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
   5121 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
   5122 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
   5123 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   5124   $as_echo_n "(cached) " >&6
   5125 else
   5126 
   5127 echo 'void f(void){}' >conftest.c
   5128 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
   5129 eval "cv_prog_cc_flag_$cache=yes"
   5130 else
   5131 eval "cv_prog_cc_flag_$cache=no"
   5132 fi
   5133 rm -f conftest conftest.o conftest.c
   5134 
   5135 fi
   5136 
   5137 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5139 $as_echo "yes" >&6; }
   5140 :
   5141 C99FLAG="-std=c99"
   5142 else
   5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5144 $as_echo "no" >&6; }
   5145 :
   5146 
   5147 fi
   5148 
   5149 
   5150 
   5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
   5152 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
   5153 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
   5154 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   5155   $as_echo_n "(cached) " >&6
   5156 else
   5157 
   5158 echo 'void f(void){}' >conftest.c
   5159 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
   5160 eval "cv_prog_cc_flag_$cache=yes"
   5161 else
   5162 eval "cv_prog_cc_flag_$cache=no"
   5163 fi
   5164 rm -f conftest conftest.o conftest.c
   5165 
   5166 fi
   5167 
   5168 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5170 $as_echo "yes" >&6; }
   5171 :
   5172 C99FLAG="-xc99"
   5173 else
   5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5175 $as_echo "no" >&6; }
   5176 :
   5177 
   5178 fi
   5179 
   5180 
   5181 for ac_header in getopt.h time.h
   5182 do :
   5183   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5184 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   5185 "
   5186 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   5187   cat >>confdefs.h <<_ACEOF
   5188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5189 _ACEOF
   5190 
   5191 fi
   5192 
   5193 done
   5194 
   5195 
   5196 
   5197 
   5198 
   5199 { $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
   5200 $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; }
   5201 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`
   5202 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5203   $as_echo_n "(cached) " >&6
   5204 else
   5205 
   5206 echo '
   5207 #include "confdefs.h"
   5208 #include <stdlib.h>
   5209 #include <ctype.h>
   5210 #include <sys/time.h>
   5211 #ifdef HAVE_TIME_H
   5212 #include <time.h>
   5213 #endif
   5214 #include <unistd.h>
   5215 #include <netdb.h>
   5216 #ifdef HAVE_GETOPT_H
   5217 #include <getopt.h>
   5218 #endif
   5219 
   5220 int test() {
   5221 	int a;
   5222 	char **opts = NULL;
   5223 	struct timeval tv;
   5224 	char *t;
   5225 	time_t time = 0;
   5226 	char *buf = NULL;
   5227 	const char* str = NULL;
   5228 	struct msghdr msg;
   5229 	msg.msg_control = 0;
   5230 	t = ctime_r(&time, buf);
   5231 	tv.tv_usec = 10;
   5232 	srandom(32);
   5233 	a = getopt(2, opts, "a");
   5234 	a = isascii(32);
   5235 	str = gai_strerror(0);
   5236 	if(str && t && tv.tv_usec && msg.msg_control)
   5237 		a = 0;
   5238 	return a;
   5239 }
   5240 ' > conftest.c
   5241 echo 'void f(){}' >>conftest.c
   5242 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5243 eval "cv_prog_cc_flag_needed_$cache=no"
   5244 else
   5245 
   5246 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
   5247 eval "cv_prog_cc_flag_needed_$cache=yes"
   5248 else
   5249 eval "cv_prog_cc_flag_needed_$cache=fail"
   5250 #echo 'Test with flag fails too!'
   5251 #cat conftest.c
   5252 #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"
   5253 #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`
   5254 #exit 1
   5255 fi
   5256 
   5257 fi
   5258 rm -f conftest conftest.c conftest.o
   5259 
   5260 fi
   5261 
   5262 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5264 $as_echo "yes" >&6; }
   5265 :
   5266 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"
   5267 else
   5268 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5270 $as_echo "no" >&6; }
   5271 #echo 'Test with flag is no!'
   5272 #cat conftest.c
   5273 #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"
   5274 #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`
   5275 #exit 1
   5276 :
   5277 
   5278 else
   5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5280 $as_echo "failed" >&6; }
   5281 :
   5282 
   5283 fi
   5284 fi
   5285 
   5286 
   5287 
   5288 
   5289 
   5290 { $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
   5291 $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; }
   5292 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`
   5293 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5294   $as_echo_n "(cached) " >&6
   5295 else
   5296 
   5297 echo '
   5298 #include "confdefs.h"
   5299 #include <stdlib.h>
   5300 #include <ctype.h>
   5301 #include <sys/time.h>
   5302 #ifdef HAVE_TIME_H
   5303 #include <time.h>
   5304 #endif
   5305 #include <unistd.h>
   5306 #include <netdb.h>
   5307 #ifdef HAVE_GETOPT_H
   5308 #include <getopt.h>
   5309 #endif
   5310 
   5311 int test() {
   5312 	int a;
   5313 	char **opts = NULL;
   5314 	struct timeval tv;
   5315 	char *t;
   5316 	time_t time = 0;
   5317 	char *buf = NULL;
   5318 	const char* str = NULL;
   5319 	struct msghdr msg;
   5320 	msg.msg_control = 0;
   5321 	t = ctime_r(&time, buf);
   5322 	tv.tv_usec = 10;
   5323 	srandom(32);
   5324 	a = getopt(2, opts, "a");
   5325 	a = isascii(32);
   5326 	str = gai_strerror(0);
   5327 	if(str && t && tv.tv_usec && msg.msg_control)
   5328 		a = 0;
   5329 	return a;
   5330 }
   5331 ' > conftest.c
   5332 echo 'void f(){}' >>conftest.c
   5333 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5334 eval "cv_prog_cc_flag_needed_$cache=no"
   5335 else
   5336 
   5337 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
   5338 eval "cv_prog_cc_flag_needed_$cache=yes"
   5339 else
   5340 eval "cv_prog_cc_flag_needed_$cache=fail"
   5341 #echo 'Test with flag fails too!'
   5342 #cat conftest.c
   5343 #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"
   5344 #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`
   5345 #exit 1
   5346 fi
   5347 
   5348 fi
   5349 rm -f conftest conftest.c conftest.o
   5350 
   5351 fi
   5352 
   5353 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5355 $as_echo "yes" >&6; }
   5356 :
   5357 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
   5358 else
   5359 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5361 $as_echo "no" >&6; }
   5362 #echo 'Test with flag is no!'
   5363 #cat conftest.c
   5364 #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"
   5365 #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`
   5366 #exit 1
   5367 :
   5368 
   5369 else
   5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5371 $as_echo "failed" >&6; }
   5372 :
   5373 
   5374 fi
   5375 fi
   5376 
   5377 
   5378 
   5379 
   5380 
   5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
   5382 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
   5383 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
   5384 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5385   $as_echo_n "(cached) " >&6
   5386 else
   5387 
   5388 echo '
   5389 #include <stdbool.h>
   5390 #include <ctype.h>
   5391 int test() {
   5392         int a = 0;
   5393         return a;
   5394 }
   5395 ' > conftest.c
   5396 echo 'void f(){}' >>conftest.c
   5397 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5398 eval "cv_prog_cc_flag_needed_$cache=no"
   5399 else
   5400 
   5401 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
   5402 eval "cv_prog_cc_flag_needed_$cache=yes"
   5403 else
   5404 eval "cv_prog_cc_flag_needed_$cache=fail"
   5405 #echo 'Test with flag fails too!'
   5406 #cat conftest.c
   5407 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
   5408 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
   5409 #exit 1
   5410 fi
   5411 
   5412 fi
   5413 rm -f conftest conftest.c conftest.o
   5414 
   5415 fi
   5416 
   5417 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5419 $as_echo "yes" >&6; }
   5420 :
   5421 CFLAGS="$CFLAGS $C99FLAG"
   5422 else
   5423 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5425 $as_echo "no" >&6; }
   5426 #echo 'Test with flag is no!'
   5427 #cat conftest.c
   5428 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
   5429 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
   5430 #exit 1
   5431 :
   5432 
   5433 else
   5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5435 $as_echo "failed" >&6; }
   5436 :
   5437 
   5438 fi
   5439 fi
   5440 
   5441 
   5442 
   5443 
   5444 
   5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
   5446 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
   5447 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
   5448 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5449   $as_echo_n "(cached) " >&6
   5450 else
   5451 
   5452 echo '
   5453 #include <ctype.h>
   5454 
   5455 int test() {
   5456         int a;
   5457         a = isascii(32);
   5458         return a;
   5459 }
   5460 ' > conftest.c
   5461 echo 'void f(){}' >>conftest.c
   5462 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5463 eval "cv_prog_cc_flag_needed_$cache=no"
   5464 else
   5465 
   5466 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
   5467 eval "cv_prog_cc_flag_needed_$cache=yes"
   5468 else
   5469 eval "cv_prog_cc_flag_needed_$cache=fail"
   5470 #echo 'Test with flag fails too!'
   5471 #cat conftest.c
   5472 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
   5473 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
   5474 #exit 1
   5475 fi
   5476 
   5477 fi
   5478 rm -f conftest conftest.c conftest.o
   5479 
   5480 fi
   5481 
   5482 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5484 $as_echo "yes" >&6; }
   5485 :
   5486 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
   5487 else
   5488 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5490 $as_echo "no" >&6; }
   5491 #echo 'Test with flag is no!'
   5492 #cat conftest.c
   5493 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
   5494 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
   5495 #exit 1
   5496 :
   5497 
   5498 else
   5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5500 $as_echo "failed" >&6; }
   5501 :
   5502 
   5503 fi
   5504 fi
   5505 
   5506 
   5507 
   5508 
   5509 
   5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
   5511 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
   5512 cache=_D_GNU_SOURCE
   5513 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5514   $as_echo_n "(cached) " >&6
   5515 else
   5516 
   5517 echo '
   5518 #include <netinet/in.h>
   5519 
   5520 int test() {
   5521         struct in6_pktinfo inf;
   5522 	int a = (int)sizeof(inf);
   5523         return a;
   5524 }
   5525 ' > conftest.c
   5526 echo 'void f(){}' >>conftest.c
   5527 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5528 eval "cv_prog_cc_flag_needed_$cache=no"
   5529 else
   5530 
   5531 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
   5532 eval "cv_prog_cc_flag_needed_$cache=yes"
   5533 else
   5534 eval "cv_prog_cc_flag_needed_$cache=fail"
   5535 #echo 'Test with flag fails too!'
   5536 #cat conftest.c
   5537 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
   5538 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
   5539 #exit 1
   5540 fi
   5541 
   5542 fi
   5543 rm -f conftest conftest.c conftest.o
   5544 
   5545 fi
   5546 
   5547 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5549 $as_echo "yes" >&6; }
   5550 :
   5551 CFLAGS="$CFLAGS -D_GNU_SOURCE"
   5552 else
   5553 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5555 $as_echo "no" >&6; }
   5556 #echo 'Test with flag is no!'
   5557 #cat conftest.c
   5558 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
   5559 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
   5560 #exit 1
   5561 :
   5562 
   5563 else
   5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5565 $as_echo "failed" >&6; }
   5566 :
   5567 
   5568 fi
   5569 fi
   5570 
   5571 
   5572 # check again for GNU_SOURCE for setresgid. May fail if setresgid
   5573 # is not available at all. -D_FRSRESGID is to make this check unique.
   5574 # otherwise we would get the previous cached result.
   5575 
   5576 
   5577 
   5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
   5579 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
   5580 cache=_D_GNU_SOURCE__D_FRSRESGID
   5581 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5582   $as_echo_n "(cached) " >&6
   5583 else
   5584 
   5585 echo '
   5586 #include <unistd.h>
   5587 
   5588 int test() {
   5589 	int a = setresgid(0,0,0);
   5590 	a = setresuid(0,0,0);
   5591         return a;
   5592 }
   5593 ' > conftest.c
   5594 echo 'void f(){}' >>conftest.c
   5595 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5596 eval "cv_prog_cc_flag_needed_$cache=no"
   5597 else
   5598 
   5599 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
   5600 eval "cv_prog_cc_flag_needed_$cache=yes"
   5601 else
   5602 eval "cv_prog_cc_flag_needed_$cache=fail"
   5603 #echo 'Test with flag fails too!'
   5604 #cat conftest.c
   5605 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
   5606 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
   5607 #exit 1
   5608 fi
   5609 
   5610 fi
   5611 rm -f conftest conftest.c conftest.o
   5612 
   5613 fi
   5614 
   5615 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5617 $as_echo "yes" >&6; }
   5618 :
   5619 CFLAGS="$CFLAGS -D_GNU_SOURCE"
   5620 else
   5621 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5623 $as_echo "no" >&6; }
   5624 #echo 'Test with flag is no!'
   5625 #cat conftest.c
   5626 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
   5627 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
   5628 #exit 1
   5629 :
   5630 
   5631 else
   5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5633 $as_echo "failed" >&6; }
   5634 :
   5635 
   5636 fi
   5637 fi
   5638 
   5639 
   5640 
   5641 
   5642 
   5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
   5644 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
   5645 cache=_D_POSIX_C_SOURCE_200112
   5646 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5647   $as_echo_n "(cached) " >&6
   5648 else
   5649 
   5650 echo '
   5651 #include "confdefs.h"
   5652 #ifdef HAVE_TIME_H
   5653 #include <time.h>
   5654 #endif
   5655 #include <netdb.h>
   5656 
   5657 int test() {
   5658         int a = 0;
   5659         char *t;
   5660         time_t time = 0;
   5661         char *buf = NULL;
   5662 	const char* str = NULL;
   5663         t = ctime_r(&time, buf);
   5664 	str = gai_strerror(0);
   5665 	if(t && str)
   5666 		a = 0;
   5667         return a;
   5668 }
   5669 ' > conftest.c
   5670 echo 'void f(){}' >>conftest.c
   5671 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5672 eval "cv_prog_cc_flag_needed_$cache=no"
   5673 else
   5674 
   5675 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
   5676 eval "cv_prog_cc_flag_needed_$cache=yes"
   5677 else
   5678 eval "cv_prog_cc_flag_needed_$cache=fail"
   5679 #echo 'Test with flag fails too!'
   5680 #cat conftest.c
   5681 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
   5682 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
   5683 #exit 1
   5684 fi
   5685 
   5686 fi
   5687 rm -f conftest conftest.c conftest.o
   5688 
   5689 fi
   5690 
   5691 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5693 $as_echo "yes" >&6; }
   5694 :
   5695 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
   5696 else
   5697 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5699 $as_echo "no" >&6; }
   5700 #echo 'Test with flag is no!'
   5701 #cat conftest.c
   5702 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
   5703 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
   5704 #exit 1
   5705 :
   5706 
   5707 else
   5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5709 $as_echo "failed" >&6; }
   5710 :
   5711 
   5712 fi
   5713 fi
   5714 
   5715 
   5716 
   5717 
   5718 
   5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
   5720 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
   5721 cache=_D__EXTENSIONS__
   5722 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   5723   $as_echo_n "(cached) " >&6
   5724 else
   5725 
   5726 echo '
   5727 #include "confdefs.h"
   5728 #include <stdlib.h>
   5729 #include <ctype.h>
   5730 #include <sys/time.h>
   5731 #ifdef HAVE_TIME_H
   5732 #include <time.h>
   5733 #endif
   5734 #include <unistd.h>
   5735 #ifdef HAVE_GETOPT_H
   5736 #include <getopt.h>
   5737 #endif
   5738 
   5739 int test() {
   5740         int a;
   5741         char **opts = NULL;
   5742         struct timeval tv;
   5743         tv.tv_usec = 10;
   5744         srandom(32);
   5745         a = getopt(2, opts, "a");
   5746         a = isascii(32);
   5747 	if(tv.tv_usec)
   5748 		a = 0;
   5749         return a;
   5750 }
   5751 ' > conftest.c
   5752 echo 'void f(){}' >>conftest.c
   5753 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   5754 eval "cv_prog_cc_flag_needed_$cache=no"
   5755 else
   5756 
   5757 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
   5758 eval "cv_prog_cc_flag_needed_$cache=yes"
   5759 else
   5760 eval "cv_prog_cc_flag_needed_$cache=fail"
   5761 #echo 'Test with flag fails too!'
   5762 #cat conftest.c
   5763 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
   5764 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
   5765 #exit 1
   5766 fi
   5767 
   5768 fi
   5769 rm -f conftest conftest.c conftest.o
   5770 
   5771 fi
   5772 
   5773 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5775 $as_echo "yes" >&6; }
   5776 :
   5777 CFLAGS="$CFLAGS -D__EXTENSIONS__"
   5778 else
   5779 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5781 $as_echo "no" >&6; }
   5782 #echo 'Test with flag is no!'
   5783 #cat conftest.c
   5784 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
   5785 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
   5786 #exit 1
   5787 :
   5788 
   5789 else
   5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5791 $as_echo "failed" >&6; }
   5792 :
   5793 
   5794 fi
   5795 fi
   5796 
   5797 
   5798 
   5799 
   5800 # debug mode flags warnings
   5801 # Check whether --enable-checking was given.
   5802 if test "${enable_checking+set}" = set; then :
   5803   enableval=$enable_checking;
   5804 fi
   5805 
   5806 # Check whether --enable-debug was given.
   5807 if test "${enable_debug+set}" = set; then :
   5808   enableval=$enable_debug;
   5809 fi
   5810 
   5811 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
   5812 else debug_enabled="$enable_checking"; fi
   5813 
   5814 case "$debug_enabled" in
   5815         yes)
   5816 
   5817 
   5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
   5819 $as_echo_n "checking whether $CC supports -W... " >&6; }
   5820 cache=`echo W | sed 'y%.=/+-%___p_%'`
   5821 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   5822   $as_echo_n "(cached) " >&6
   5823 else
   5824 
   5825 echo 'void f(void){}' >conftest.c
   5826 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
   5827 eval "cv_prog_cc_flag_$cache=yes"
   5828 else
   5829 eval "cv_prog_cc_flag_$cache=no"
   5830 fi
   5831 rm -f conftest conftest.o conftest.c
   5832 
   5833 fi
   5834 
   5835 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5837 $as_echo "yes" >&6; }
   5838 :
   5839 CFLAGS="$CFLAGS -W"
   5840 else
   5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5842 $as_echo "no" >&6; }
   5843 :
   5844 
   5845 fi
   5846 
   5847 
   5848 
   5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
   5850 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
   5851 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
   5852 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   5853   $as_echo_n "(cached) " >&6
   5854 else
   5855 
   5856 echo 'void f(void){}' >conftest.c
   5857 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
   5858 eval "cv_prog_cc_flag_$cache=yes"
   5859 else
   5860 eval "cv_prog_cc_flag_$cache=no"
   5861 fi
   5862 rm -f conftest conftest.o conftest.c
   5863 
   5864 fi
   5865 
   5866 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5868 $as_echo "yes" >&6; }
   5869 :
   5870 CFLAGS="$CFLAGS -Wall"
   5871 else
   5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5873 $as_echo "no" >&6; }
   5874 :
   5875 
   5876 fi
   5877 
   5878 
   5879 
   5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
   5881 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
   5882 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
   5883 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   5884   $as_echo_n "(cached) " >&6
   5885 else
   5886 
   5887 echo 'void f(void){}' >conftest.c
   5888 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
   5889 eval "cv_prog_cc_flag_$cache=yes"
   5890 else
   5891 eval "cv_prog_cc_flag_$cache=no"
   5892 fi
   5893 rm -f conftest conftest.o conftest.c
   5894 
   5895 fi
   5896 
   5897 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5899 $as_echo "yes" >&6; }
   5900 :
   5901 CFLAGS="$CFLAGS -Wextra"
   5902 else
   5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5904 $as_echo "no" >&6; }
   5905 :
   5906 
   5907 fi
   5908 
   5909 
   5910 
   5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
   5912 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
   5913 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
   5914 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   5915   $as_echo_n "(cached) " >&6
   5916 else
   5917 
   5918 echo 'void f(void){}' >conftest.c
   5919 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
   5920 eval "cv_prog_cc_flag_$cache=yes"
   5921 else
   5922 eval "cv_prog_cc_flag_$cache=no"
   5923 fi
   5924 rm -f conftest conftest.o conftest.c
   5925 
   5926 fi
   5927 
   5928 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5930 $as_echo "yes" >&6; }
   5931 :
   5932 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
   5933 else
   5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5935 $as_echo "no" >&6; }
   5936 :
   5937 
   5938 fi
   5939 
   5940 
   5941 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
   5942 
   5943 		;;
   5944 	no|*)
   5945 		# nothing to do.
   5946 		;;
   5947 esac
   5948 
   5949     # Check whether --enable-flto was given.
   5950 if test "${enable_flto+set}" = set; then :
   5951   enableval=$enable_flto;
   5952 fi
   5953 
   5954     if test "x$enable_flto" != "xno"; then :
   5955 
   5956         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
   5957 $as_echo_n "checking if $CC supports -flto... " >&6; }
   5958         BAKCFLAGS="$CFLAGS"
   5959         CFLAGS="$CFLAGS -flto"
   5960         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5961 /* end confdefs.h.  */
   5962 
   5963 int
   5964 main ()
   5965 {
   5966 
   5967   ;
   5968   return 0;
   5969 }
   5970 _ACEOF
   5971 if ac_fn_c_try_link "$LINENO"; then :
   5972 
   5973             if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
   5974                 CFLAGS="$BAKCFLAGS"
   5975                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5976 $as_echo "no" >&6; }
   5977             else
   5978                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5979 $as_echo "yes" >&6; }
   5980             fi
   5981             rm -f conftest conftest.c conftest.o
   5982 
   5983 else
   5984   CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5985 $as_echo "no" >&6; }
   5986 fi
   5987 rm -f core conftest.err conftest.$ac_objext \
   5988     conftest$ac_exeext conftest.$ac_ext
   5989 
   5990 fi
   5991 
   5992 
   5993     # Check whether --enable-pie was given.
   5994 if test "${enable_pie+set}" = set; then :
   5995   enableval=$enable_pie;
   5996 fi
   5997 
   5998     if test "x$enable_pie" = "xyes"; then :
   5999 
   6000 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
   6001 $as_echo_n "checking if $CC supports PIE... " >&6; }
   6002 	BAKLDFLAGS="$LDFLAGS"
   6003 	BAKCFLAGS="$CFLAGS"
   6004 	LDFLAGS="$LDFLAGS -pie"
   6005 	CFLAGS="$CFLAGS -fPIE"
   6006 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6007 /* end confdefs.h.  */
   6008 
   6009 int
   6010 main ()
   6011 {
   6012 
   6013   ;
   6014   return 0;
   6015 }
   6016 _ACEOF
   6017 if ac_fn_c_try_link "$LINENO"; then :
   6018 
   6019 	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
   6020 		LDFLAGS="$BAKLDFLAGS"
   6021 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6022 $as_echo "no" >&6; }
   6023 	    else
   6024 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6025 $as_echo "yes" >&6; }
   6026 	    fi
   6027 	    rm -f conftest conftest.c conftest.o
   6028 
   6029 else
   6030   LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6031 $as_echo "no" >&6; }
   6032 fi
   6033 rm -f core conftest.err conftest.$ac_objext \
   6034     conftest$ac_exeext conftest.$ac_ext
   6035 
   6036 fi
   6037 
   6038 
   6039     # Check whether --enable-relro_now was given.
   6040 if test "${enable_relro_now+set}" = set; then :
   6041   enableval=$enable_relro_now;
   6042 fi
   6043 
   6044     if test "x$enable_relro_now" = "xyes"; then :
   6045 
   6046 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
   6047 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
   6048 	BAKLDFLAGS="$LDFLAGS"
   6049 	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
   6050 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6051 /* end confdefs.h.  */
   6052 
   6053 int
   6054 main ()
   6055 {
   6056 
   6057   ;
   6058   return 0;
   6059 }
   6060 _ACEOF
   6061 if ac_fn_c_try_link "$LINENO"; then :
   6062 
   6063 	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
   6064 		LDFLAGS="$BAKLDFLAGS"
   6065 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6066 $as_echo "no" >&6; }
   6067 	    else
   6068 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6069 $as_echo "yes" >&6; }
   6070 	    fi
   6071 	    rm -f conftest conftest.c conftest.o
   6072 
   6073 else
   6074   LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6075 $as_echo "no" >&6; }
   6076 fi
   6077 rm -f core conftest.err conftest.$ac_objext \
   6078     conftest$ac_exeext conftest.$ac_ext
   6079 
   6080 fi
   6081 
   6082 
   6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   6084 $as_echo_n "checking for inline... " >&6; }
   6085 if ${ac_cv_c_inline+:} false; then :
   6086   $as_echo_n "(cached) " >&6
   6087 else
   6088   ac_cv_c_inline=no
   6089 for ac_kw in inline __inline__ __inline; do
   6090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6091 /* end confdefs.h.  */
   6092 #ifndef __cplusplus
   6093 typedef int foo_t;
   6094 static $ac_kw foo_t static_foo () {return 0; }
   6095 $ac_kw foo_t foo () {return 0; }
   6096 #endif
   6097 
   6098 _ACEOF
   6099 if ac_fn_c_try_compile "$LINENO"; then :
   6100   ac_cv_c_inline=$ac_kw
   6101 fi
   6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6103   test "$ac_cv_c_inline" != no && break
   6104 done
   6105 
   6106 fi
   6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   6108 $as_echo "$ac_cv_c_inline" >&6; }
   6109 
   6110 case $ac_cv_c_inline in
   6111   inline | yes) ;;
   6112   *)
   6113     case $ac_cv_c_inline in
   6114       no) ac_val=;;
   6115       *) ac_val=$ac_cv_c_inline;;
   6116     esac
   6117     cat >>confdefs.h <<_ACEOF
   6118 #ifndef __cplusplus
   6119 #define inline $ac_val
   6120 #endif
   6121 _ACEOF
   6122     ;;
   6123 esac
   6124 
   6125 
   6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
   6127 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
   6128 if ${ac_cv_c_format_attribute+:} false; then :
   6129   $as_echo_n "(cached) " >&6
   6130 else
   6131   ac_cv_c_format_attribute=no
   6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6133 /* end confdefs.h.  */
   6134 #include <stdio.h>
   6135 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
   6136 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
   6137 
   6138 int
   6139 main ()
   6140 {
   6141 
   6142    f ("%s", "str");
   6143 
   6144   ;
   6145   return 0;
   6146 }
   6147 _ACEOF
   6148 if ac_fn_c_try_compile "$LINENO"; then :
   6149   ac_cv_c_format_attribute="yes"
   6150 else
   6151   ac_cv_c_format_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_format_attribute" >&5
   6159 $as_echo "$ac_cv_c_format_attribute" >&6; }
   6160 if test $ac_cv_c_format_attribute = yes; then
   6161 
   6162 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
   6163 
   6164 fi
   6165 
   6166 
   6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
   6168 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
   6169 if ${ac_cv_c_unused_attribute+:} false; then :
   6170   $as_echo_n "(cached) " >&6
   6171 else
   6172   ac_cv_c_unused_attribute=no
   6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6174 /* end confdefs.h.  */
   6175 #include <stdio.h>
   6176 void f (char *u __attribute__((unused)));
   6177 
   6178 int
   6179 main ()
   6180 {
   6181 
   6182    f ("x");
   6183 
   6184   ;
   6185   return 0;
   6186 }
   6187 _ACEOF
   6188 if ac_fn_c_try_compile "$LINENO"; then :
   6189   ac_cv_c_unused_attribute="yes"
   6190 else
   6191   ac_cv_c_unused_attribute="no"
   6192 fi
   6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6194 
   6195 fi
   6196 
   6197 
   6198 
   6199 
   6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
   6201 $as_echo "$ac_cv_c_unused_attribute" >&6; }
   6202 if test $ac_cv_c_unused_attribute = yes; then
   6203 
   6204 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
   6205 
   6206 fi
   6207 
   6208 
   6209 
   6210 
   6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
   6212 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
   6213 if ${ac_cv_c_weak_attribute+:} false; then :
   6214   $as_echo_n "(cached) " >&6
   6215 else
   6216   ac_cv_c_weak_attribute=no
   6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6218 /* end confdefs.h.  */
   6219  #include <stdio.h>
   6220 __attribute__((weak)) void f(int x) { printf("%d", x); }
   6221 
   6222 int
   6223 main ()
   6224 {
   6225 
   6226    f(1);
   6227 
   6228   ;
   6229   return 0;
   6230 }
   6231 _ACEOF
   6232 if ac_fn_c_try_compile "$LINENO"; then :
   6233   ac_cv_c_weak_attribute="yes"
   6234 else
   6235   ac_cv_c_weak_attribute="no"
   6236 fi
   6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6238 
   6239 fi
   6240 
   6241 
   6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
   6243 $as_echo "$ac_cv_c_weak_attribute" >&6; }
   6244 if test $ac_cv_c_weak_attribute = yes; then
   6245 
   6246 $as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
   6247 
   6248 fi
   6249 
   6250 
   6251 if test "$srcdir" != "."; then
   6252 	CPPFLAGS="$CPPFLAGS -I$srcdir"
   6253 fi
   6254 
   6255 
   6256 
   6257 for ac_prog in flex lex
   6258 do
   6259   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6260 set dummy $ac_prog; ac_word=$2
   6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6262 $as_echo_n "checking for $ac_word... " >&6; }
   6263 if ${ac_cv_prog_LEX+:} false; then :
   6264   $as_echo_n "(cached) " >&6
   6265 else
   6266   if test -n "$LEX"; then
   6267   ac_cv_prog_LEX="$LEX" # Let the user override the test.
   6268 else
   6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6270 for as_dir in $PATH
   6271 do
   6272   IFS=$as_save_IFS
   6273   test -z "$as_dir" && as_dir=.
   6274     for ac_exec_ext in '' $ac_executable_extensions; do
   6275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6276     ac_cv_prog_LEX="$ac_prog"
   6277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6278     break 2
   6279   fi
   6280 done
   6281   done
   6282 IFS=$as_save_IFS
   6283 
   6284 fi
   6285 fi
   6286 LEX=$ac_cv_prog_LEX
   6287 if test -n "$LEX"; then
   6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
   6289 $as_echo "$LEX" >&6; }
   6290 else
   6291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6292 $as_echo "no" >&6; }
   6293 fi
   6294 
   6295 
   6296   test -n "$LEX" && break
   6297 done
   6298 test -n "$LEX" || LEX=":"
   6299 
   6300 if test "x$LEX" != "x:"; then
   6301   cat >conftest.l <<_ACEOF
   6302 %%
   6303 a { ECHO; }
   6304 b { REJECT; }
   6305 c { yymore (); }
   6306 d { yyless (1); }
   6307 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
   6308     yyless ((input () != 0)); }
   6309 f { unput (yytext[0]); }
   6310 . { BEGIN INITIAL; }
   6311 %%
   6312 #ifdef YYTEXT_POINTER
   6313 extern char *yytext;
   6314 #endif
   6315 int
   6316 main (void)
   6317 {
   6318   return ! yylex () + ! yywrap ();
   6319 }
   6320 _ACEOF
   6321 { { ac_try="$LEX conftest.l"
   6322 case "(($ac_try" in
   6323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6324   *) ac_try_echo=$ac_try;;
   6325 esac
   6326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   6327 $as_echo "$ac_try_echo"; } >&5
   6328   (eval "$LEX conftest.l") 2>&5
   6329   ac_status=$?
   6330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6331   test $ac_status = 0; }
   6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
   6333 $as_echo_n "checking lex output file root... " >&6; }
   6334 if ${ac_cv_prog_lex_root+:} false; then :
   6335   $as_echo_n "(cached) " >&6
   6336 else
   6337 
   6338 if test -f lex.yy.c; then
   6339   ac_cv_prog_lex_root=lex.yy
   6340 elif test -f lexyy.c; then
   6341   ac_cv_prog_lex_root=lexyy
   6342 else
   6343   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
   6344 fi
   6345 fi
   6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
   6347 $as_echo "$ac_cv_prog_lex_root" >&6; }
   6348 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
   6349 
   6350 if test -z "${LEXLIB+set}"; then
   6351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
   6352 $as_echo_n "checking lex library... " >&6; }
   6353 if ${ac_cv_lib_lex+:} false; then :
   6354   $as_echo_n "(cached) " >&6
   6355 else
   6356 
   6357     ac_save_LIBS=$LIBS
   6358     ac_cv_lib_lex='none needed'
   6359     for ac_lib in '' -lfl -ll; do
   6360       LIBS="$ac_lib $ac_save_LIBS"
   6361       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6362 /* end confdefs.h.  */
   6363 `cat $LEX_OUTPUT_ROOT.c`
   6364 _ACEOF
   6365 if ac_fn_c_try_link "$LINENO"; then :
   6366   ac_cv_lib_lex=$ac_lib
   6367 fi
   6368 rm -f core conftest.err conftest.$ac_objext \
   6369     conftest$ac_exeext conftest.$ac_ext
   6370       test "$ac_cv_lib_lex" != 'none needed' && break
   6371     done
   6372     LIBS=$ac_save_LIBS
   6373 
   6374 fi
   6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
   6376 $as_echo "$ac_cv_lib_lex" >&6; }
   6377   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
   6378 fi
   6379 
   6380 
   6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
   6382 $as_echo_n "checking whether yytext is a pointer... " >&6; }
   6383 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
   6384   $as_echo_n "(cached) " >&6
   6385 else
   6386   # POSIX says lex can declare yytext either as a pointer or an array; the
   6387 # default is implementation-dependent.  Figure out which it is, since
   6388 # not all implementations provide the %pointer and %array declarations.
   6389 ac_cv_prog_lex_yytext_pointer=no
   6390 ac_save_LIBS=$LIBS
   6391 LIBS="$LEXLIB $ac_save_LIBS"
   6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6393 /* end confdefs.h.  */
   6394 
   6395   #define YYTEXT_POINTER 1
   6396 `cat $LEX_OUTPUT_ROOT.c`
   6397 _ACEOF
   6398 if ac_fn_c_try_link "$LINENO"; then :
   6399   ac_cv_prog_lex_yytext_pointer=yes
   6400 fi
   6401 rm -f core conftest.err conftest.$ac_objext \
   6402     conftest$ac_exeext conftest.$ac_ext
   6403 LIBS=$ac_save_LIBS
   6404 
   6405 fi
   6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
   6407 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
   6408 if test $ac_cv_prog_lex_yytext_pointer = yes; then
   6409 
   6410 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
   6411 
   6412 fi
   6413 rm -f conftest.l $LEX_OUTPUT_ROOT.c
   6414 
   6415 fi
   6416 
   6417 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
   6418 $as_echo_n "checking for yylex_destroy... " >&6; }
   6419 	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
   6420 
   6421 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
   6422 
   6423 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6424 $as_echo "yes" >&6; }
   6425 	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6426 $as_echo "no" >&6; }; fi
   6427 
   6428 for ac_prog in 'bison -y' byacc
   6429 do
   6430   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6431 set dummy $ac_prog; ac_word=$2
   6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6433 $as_echo_n "checking for $ac_word... " >&6; }
   6434 if ${ac_cv_prog_YACC+:} false; then :
   6435   $as_echo_n "(cached) " >&6
   6436 else
   6437   if test -n "$YACC"; then
   6438   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   6439 else
   6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6441 for as_dir in $PATH
   6442 do
   6443   IFS=$as_save_IFS
   6444   test -z "$as_dir" && as_dir=.
   6445     for ac_exec_ext in '' $ac_executable_extensions; do
   6446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6447     ac_cv_prog_YACC="$ac_prog"
   6448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6449     break 2
   6450   fi
   6451 done
   6452   done
   6453 IFS=$as_save_IFS
   6454 
   6455 fi
   6456 fi
   6457 YACC=$ac_cv_prog_YACC
   6458 if test -n "$YACC"; then
   6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
   6460 $as_echo "$YACC" >&6; }
   6461 else
   6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6463 $as_echo "no" >&6; }
   6464 fi
   6465 
   6466 
   6467   test -n "$YACC" && break
   6468 done
   6469 test -n "$YACC" || YACC="yacc"
   6470 
   6471 # Extract the first word of "doxygen", so it can be a program name with args.
   6472 set dummy doxygen; ac_word=$2
   6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6474 $as_echo_n "checking for $ac_word... " >&6; }
   6475 if ${ac_cv_prog_doxygen+:} false; then :
   6476   $as_echo_n "(cached) " >&6
   6477 else
   6478   if test -n "$doxygen"; then
   6479   ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
   6480 else
   6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6482 for as_dir in $PATH
   6483 do
   6484   IFS=$as_save_IFS
   6485   test -z "$as_dir" && as_dir=.
   6486     for ac_exec_ext in '' $ac_executable_extensions; do
   6487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6488     ac_cv_prog_doxygen="doxygen"
   6489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6490     break 2
   6491   fi
   6492 done
   6493   done
   6494 IFS=$as_save_IFS
   6495 
   6496 fi
   6497 fi
   6498 doxygen=$ac_cv_prog_doxygen
   6499 if test -n "$doxygen"; then
   6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
   6501 $as_echo "$doxygen" >&6; }
   6502 else
   6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6504 $as_echo "no" >&6; }
   6505 fi
   6506 
   6507 
   6508 if test -n "$ac_tool_prefix"; then
   6509   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   6510 set dummy ${ac_tool_prefix}strip; ac_word=$2
   6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6512 $as_echo_n "checking for $ac_word... " >&6; }
   6513 if ${ac_cv_prog_STRIP+:} false; then :
   6514   $as_echo_n "(cached) " >&6
   6515 else
   6516   if test -n "$STRIP"; then
   6517   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   6518 else
   6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6520 for as_dir in $PATH
   6521 do
   6522   IFS=$as_save_IFS
   6523   test -z "$as_dir" && as_dir=.
   6524     for ac_exec_ext in '' $ac_executable_extensions; do
   6525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6526     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   6527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6528     break 2
   6529   fi
   6530 done
   6531   done
   6532 IFS=$as_save_IFS
   6533 
   6534 fi
   6535 fi
   6536 STRIP=$ac_cv_prog_STRIP
   6537 if test -n "$STRIP"; then
   6538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   6539 $as_echo "$STRIP" >&6; }
   6540 else
   6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6542 $as_echo "no" >&6; }
   6543 fi
   6544 
   6545 
   6546 fi
   6547 if test -z "$ac_cv_prog_STRIP"; then
   6548   ac_ct_STRIP=$STRIP
   6549   # Extract the first word of "strip", so it can be a program name with args.
   6550 set dummy strip; ac_word=$2
   6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6552 $as_echo_n "checking for $ac_word... " >&6; }
   6553 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   6554   $as_echo_n "(cached) " >&6
   6555 else
   6556   if test -n "$ac_ct_STRIP"; then
   6557   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   6558 else
   6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6560 for as_dir in $PATH
   6561 do
   6562   IFS=$as_save_IFS
   6563   test -z "$as_dir" && as_dir=.
   6564     for ac_exec_ext in '' $ac_executable_extensions; do
   6565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6566     ac_cv_prog_ac_ct_STRIP="strip"
   6567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6568     break 2
   6569   fi
   6570 done
   6571   done
   6572 IFS=$as_save_IFS
   6573 
   6574 fi
   6575 fi
   6576 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   6577 if test -n "$ac_ct_STRIP"; then
   6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   6579 $as_echo "$ac_ct_STRIP" >&6; }
   6580 else
   6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6582 $as_echo "no" >&6; }
   6583 fi
   6584 
   6585   if test "x$ac_ct_STRIP" = x; then
   6586     STRIP=""
   6587   else
   6588     case $cross_compiling:$ac_tool_warned in
   6589 yes:)
   6590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6592 ac_tool_warned=yes ;;
   6593 esac
   6594     STRIP=$ac_ct_STRIP
   6595   fi
   6596 else
   6597   STRIP="$ac_cv_prog_STRIP"
   6598 fi
   6599 
   6600 ac_aux_dir=
   6601 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   6602   if test -f "$ac_dir/install-sh"; then
   6603     ac_aux_dir=$ac_dir
   6604     ac_install_sh="$ac_aux_dir/install-sh -c"
   6605     break
   6606   elif test -f "$ac_dir/install.sh"; then
   6607     ac_aux_dir=$ac_dir
   6608     ac_install_sh="$ac_aux_dir/install.sh -c"
   6609     break
   6610   elif test -f "$ac_dir/shtool"; then
   6611     ac_aux_dir=$ac_dir
   6612     ac_install_sh="$ac_aux_dir/shtool install -c"
   6613     break
   6614   fi
   6615 done
   6616 if test -z "$ac_aux_dir"; then
   6617   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   6618 fi
   6619 
   6620 # These three variables are undocumented and unsupported,
   6621 # and are intended to be withdrawn in a future Autoconf release.
   6622 # They can cause serious problems if a builder's source tree is in a directory
   6623 # whose full name contains unusual characters.
   6624 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   6625 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   6626 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   6627 
   6628 
   6629 # Make sure we can run config.sub.
   6630 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   6631   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   6632 
   6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   6634 $as_echo_n "checking build system type... " >&6; }
   6635 if ${ac_cv_build+:} false; then :
   6636   $as_echo_n "(cached) " >&6
   6637 else
   6638   ac_build_alias=$build_alias
   6639 test "x$ac_build_alias" = x &&
   6640   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   6641 test "x$ac_build_alias" = x &&
   6642   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   6643 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   6644   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   6645 
   6646 fi
   6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   6648 $as_echo "$ac_cv_build" >&6; }
   6649 case $ac_cv_build in
   6650 *-*-*) ;;
   6651 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   6652 esac
   6653 build=$ac_cv_build
   6654 ac_save_IFS=$IFS; IFS='-'
   6655 set x $ac_cv_build
   6656 shift
   6657 build_cpu=$1
   6658 build_vendor=$2
   6659 shift; shift
   6660 # Remember, the first character of IFS is used to create $*,
   6661 # except with old shells:
   6662 build_os=$*
   6663 IFS=$ac_save_IFS
   6664 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   6665 
   6666 
   6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   6668 $as_echo_n "checking host system type... " >&6; }
   6669 if ${ac_cv_host+:} false; then :
   6670   $as_echo_n "(cached) " >&6
   6671 else
   6672   if test "x$host_alias" = x; then
   6673   ac_cv_host=$ac_cv_build
   6674 else
   6675   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   6676     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   6677 fi
   6678 
   6679 fi
   6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   6681 $as_echo "$ac_cv_host" >&6; }
   6682 case $ac_cv_host in
   6683 *-*-*) ;;
   6684 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   6685 esac
   6686 host=$ac_cv_host
   6687 ac_save_IFS=$IFS; IFS='-'
   6688 set x $ac_cv_host
   6689 shift
   6690 host_cpu=$1
   6691 host_vendor=$2
   6692 shift; shift
   6693 # Remember, the first character of IFS is used to create $*,
   6694 # except with old shells:
   6695 host_os=$*
   6696 IFS=$ac_save_IFS
   6697 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   6698 
   6699 
   6700 
   6701 # skip these tests, we do not need them.
   6702 
   6703 
   6704 
   6705 
   6706 
   6707 
   6708 
   6709 
   6710 # always use ./libtool unless override from commandline (libtool=mylibtool)
   6711 if test -z "$libtool"; then
   6712 	libtool="./libtool"
   6713 fi
   6714 
   6715 # avoid libtool max commandline length test on systems that fork slowly.
   6716 
   6717 if echo "$host_os" | grep "sunos4" >/dev/null; then
   6718 	lt_cv_sys_max_cmd_len=32750;
   6719 fi
   6720 if test -n "$ac_tool_prefix"; then
   6721   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   6722 set dummy ${ac_tool_prefix}ar; ac_word=$2
   6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6724 $as_echo_n "checking for $ac_word... " >&6; }
   6725 if ${ac_cv_path_AR+:} false; then :
   6726   $as_echo_n "(cached) " >&6
   6727 else
   6728   case $AR in
   6729   [\\/]* | ?:[\\/]*)
   6730   ac_cv_path_AR="$AR" # Let the user override the test with a path.
   6731   ;;
   6732   *)
   6733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6734 for as_dir in $PATH
   6735 do
   6736   IFS=$as_save_IFS
   6737   test -z "$as_dir" && as_dir=.
   6738     for ac_exec_ext in '' $ac_executable_extensions; do
   6739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6740     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
   6741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6742     break 2
   6743   fi
   6744 done
   6745   done
   6746 IFS=$as_save_IFS
   6747 
   6748   ;;
   6749 esac
   6750 fi
   6751 AR=$ac_cv_path_AR
   6752 if test -n "$AR"; then
   6753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   6754 $as_echo "$AR" >&6; }
   6755 else
   6756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6757 $as_echo "no" >&6; }
   6758 fi
   6759 
   6760 
   6761 fi
   6762 if test -z "$ac_cv_path_AR"; then
   6763   ac_pt_AR=$AR
   6764   # Extract the first word of "ar", so it can be a program name with args.
   6765 set dummy ar; ac_word=$2
   6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6767 $as_echo_n "checking for $ac_word... " >&6; }
   6768 if ${ac_cv_path_ac_pt_AR+:} false; then :
   6769   $as_echo_n "(cached) " >&6
   6770 else
   6771   case $ac_pt_AR in
   6772   [\\/]* | ?:[\\/]*)
   6773   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
   6774   ;;
   6775   *)
   6776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6777 for as_dir in $PATH
   6778 do
   6779   IFS=$as_save_IFS
   6780   test -z "$as_dir" && as_dir=.
   6781     for ac_exec_ext in '' $ac_executable_extensions; do
   6782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6783     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
   6784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6785     break 2
   6786   fi
   6787 done
   6788   done
   6789 IFS=$as_save_IFS
   6790 
   6791   ;;
   6792 esac
   6793 fi
   6794 ac_pt_AR=$ac_cv_path_ac_pt_AR
   6795 if test -n "$ac_pt_AR"; then
   6796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
   6797 $as_echo "$ac_pt_AR" >&6; }
   6798 else
   6799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6800 $as_echo "no" >&6; }
   6801 fi
   6802 
   6803   if test "x$ac_pt_AR" = x; then
   6804     AR="false"
   6805   else
   6806     case $cross_compiling:$ac_tool_warned in
   6807 yes:)
   6808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6810 ac_tool_warned=yes ;;
   6811 esac
   6812     AR=$ac_pt_AR
   6813   fi
   6814 else
   6815   AR="$ac_cv_path_AR"
   6816 fi
   6817 
   6818 if test $AR = false; then
   6819 	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
   6820 fi
   6821 
   6822 case `pwd` in
   6823   *\ * | *\	*)
   6824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   6825 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   6826 esac
   6827 
   6828 
   6829 
   6830 macro_version='2.4.6'
   6831 macro_revision='2.4.6'
   6832 
   6833 
   6834 
   6835 
   6836 
   6837 
   6838 
   6839 
   6840 
   6841 
   6842 
   6843 
   6844 
   6845 ltmain=$ac_aux_dir/ltmain.sh
   6846 
   6847 # Backslashify metacharacters that are still active within
   6848 # double-quoted strings.
   6849 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   6850 
   6851 # Same as above, but do not quote variable references.
   6852 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   6853 
   6854 # Sed substitution to delay expansion of an escaped shell variable in a
   6855 # double_quote_subst'ed string.
   6856 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   6857 
   6858 # Sed substitution to delay expansion of an escaped single quote.
   6859 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   6860 
   6861 # Sed substitution to avoid accidental globbing in evaled expressions
   6862 no_glob_subst='s/\*/\\\*/g'
   6863 
   6864 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   6865 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   6866 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   6867 
   6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   6869 $as_echo_n "checking how to print strings... " >&6; }
   6870 # Test print first, because it will be a builtin if present.
   6871 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   6872    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   6873   ECHO='print -r --'
   6874 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   6875   ECHO='printf %s\n'
   6876 else
   6877   # Use this function as a fallback that always works.
   6878   func_fallback_echo ()
   6879   {
   6880     eval 'cat <<_LTECHO_EOF
   6881 $1
   6882 _LTECHO_EOF'
   6883   }
   6884   ECHO='func_fallback_echo'
   6885 fi
   6886 
   6887 # func_echo_all arg...
   6888 # Invoke $ECHO with all args, space-separated.
   6889 func_echo_all ()
   6890 {
   6891     $ECHO ""
   6892 }
   6893 
   6894 case $ECHO in
   6895   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   6896 $as_echo "printf" >&6; } ;;
   6897   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   6898 $as_echo "print -r" >&6; } ;;
   6899   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   6900 $as_echo "cat" >&6; } ;;
   6901 esac
   6902 
   6903 
   6904 
   6905 
   6906 
   6907 
   6908 
   6909 
   6910 
   6911 
   6912 
   6913 
   6914 
   6915 
   6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   6917 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   6918 if ${ac_cv_path_SED+:} false; then :
   6919   $as_echo_n "(cached) " >&6
   6920 else
   6921             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   6922      for ac_i in 1 2 3 4 5 6 7; do
   6923        ac_script="$ac_script$as_nl$ac_script"
   6924      done
   6925      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   6926      { ac_script=; unset ac_script;}
   6927      if test -z "$SED"; then
   6928   ac_path_SED_found=false
   6929   # Loop through the user's path and test for each of PROGNAME-LIST
   6930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6931 for as_dir in $PATH
   6932 do
   6933   IFS=$as_save_IFS
   6934   test -z "$as_dir" && as_dir=.
   6935     for ac_prog in sed gsed; do
   6936     for ac_exec_ext in '' $ac_executable_extensions; do
   6937       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   6938       as_fn_executable_p "$ac_path_SED" || continue
   6939 # Check for GNU ac_path_SED and select it if it is found.
   6940   # Check for GNU $ac_path_SED
   6941 case `"$ac_path_SED" --version 2>&1` in
   6942 *GNU*)
   6943   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   6944 *)
   6945   ac_count=0
   6946   $as_echo_n 0123456789 >"conftest.in"
   6947   while :
   6948   do
   6949     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6950     mv "conftest.tmp" "conftest.in"
   6951     cp "conftest.in" "conftest.nl"
   6952     $as_echo '' >> "conftest.nl"
   6953     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6954     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6955     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6956     if test $ac_count -gt ${ac_path_SED_max-0}; then
   6957       # Best one so far, save it but keep looking for a better one
   6958       ac_cv_path_SED="$ac_path_SED"
   6959       ac_path_SED_max=$ac_count
   6960     fi
   6961     # 10*(2^10) chars as input seems more than enough
   6962     test $ac_count -gt 10 && break
   6963   done
   6964   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6965 esac
   6966 
   6967       $ac_path_SED_found && break 3
   6968     done
   6969   done
   6970   done
   6971 IFS=$as_save_IFS
   6972   if test -z "$ac_cv_path_SED"; then
   6973     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   6974   fi
   6975 else
   6976   ac_cv_path_SED=$SED
   6977 fi
   6978 
   6979 fi
   6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   6981 $as_echo "$ac_cv_path_SED" >&6; }
   6982  SED="$ac_cv_path_SED"
   6983   rm -f conftest.sed
   6984 
   6985 test -z "$SED" && SED=sed
   6986 Xsed="$SED -e 1s/^X//"
   6987 
   6988 
   6989 
   6990 
   6991 
   6992 
   6993 
   6994 
   6995 
   6996 
   6997 
   6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   6999 $as_echo_n "checking for fgrep... " >&6; }
   7000 if ${ac_cv_path_FGREP+:} false; then :
   7001   $as_echo_n "(cached) " >&6
   7002 else
   7003   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   7004    then ac_cv_path_FGREP="$GREP -F"
   7005    else
   7006      if test -z "$FGREP"; then
   7007   ac_path_FGREP_found=false
   7008   # Loop through the user's path and test for each of PROGNAME-LIST
   7009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   7011 do
   7012   IFS=$as_save_IFS
   7013   test -z "$as_dir" && as_dir=.
   7014     for ac_prog in fgrep; do
   7015     for ac_exec_ext in '' $ac_executable_extensions; do
   7016       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   7017       as_fn_executable_p "$ac_path_FGREP" || continue
   7018 # Check for GNU ac_path_FGREP and select it if it is found.
   7019   # Check for GNU $ac_path_FGREP
   7020 case `"$ac_path_FGREP" --version 2>&1` in
   7021 *GNU*)
   7022   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   7023 *)
   7024   ac_count=0
   7025   $as_echo_n 0123456789 >"conftest.in"
   7026   while :
   7027   do
   7028     cat "conftest.in" "conftest.in" >"conftest.tmp"
   7029     mv "conftest.tmp" "conftest.in"
   7030     cp "conftest.in" "conftest.nl"
   7031     $as_echo 'FGREP' >> "conftest.nl"
   7032     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   7033     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   7034     as_fn_arith $ac_count + 1 && ac_count=$as_val
   7035     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   7036       # Best one so far, save it but keep looking for a better one
   7037       ac_cv_path_FGREP="$ac_path_FGREP"
   7038       ac_path_FGREP_max=$ac_count
   7039     fi
   7040     # 10*(2^10) chars as input seems more than enough
   7041     test $ac_count -gt 10 && break
   7042   done
   7043   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   7044 esac
   7045 
   7046       $ac_path_FGREP_found && break 3
   7047     done
   7048   done
   7049   done
   7050 IFS=$as_save_IFS
   7051   if test -z "$ac_cv_path_FGREP"; then
   7052     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   7053   fi
   7054 else
   7055   ac_cv_path_FGREP=$FGREP
   7056 fi
   7057 
   7058    fi
   7059 fi
   7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   7061 $as_echo "$ac_cv_path_FGREP" >&6; }
   7062  FGREP="$ac_cv_path_FGREP"
   7063 
   7064 
   7065 test -z "$GREP" && GREP=grep
   7066 
   7067 
   7068 
   7069 
   7070 
   7071 
   7072 
   7073 
   7074 
   7075 
   7076 
   7077 
   7078 
   7079 
   7080 
   7081 
   7082 
   7083 
   7084 
   7085 # Check whether --with-gnu-ld was given.
   7086 if test "${with_gnu_ld+set}" = set; then :
   7087   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
   7088 else
   7089   with_gnu_ld=no
   7090 fi
   7091 
   7092 ac_prog=ld
   7093 if test yes = "$GCC"; then
   7094   # Check if gcc -print-prog-name=ld gives a path.
   7095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   7096 $as_echo_n "checking for ld used by $CC... " >&6; }
   7097   case $host in
   7098   *-*-mingw*)
   7099     # gcc leaves a trailing carriage return, which upsets mingw
   7100     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   7101   *)
   7102     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   7103   esac
   7104   case $ac_prog in
   7105     # Accept absolute paths.
   7106     [\\/]* | ?:[\\/]*)
   7107       re_direlt='/[^/][^/]*/\.\./'
   7108       # Canonicalize the pathname of ld
   7109       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   7110       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   7111 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   7112       done
   7113       test -z "$LD" && LD=$ac_prog
   7114       ;;
   7115   "")
   7116     # If it fails, then pretend we aren't using GCC.
   7117     ac_prog=ld
   7118     ;;
   7119   *)
   7120     # If it is relative, then search for the first ld in PATH.
   7121     with_gnu_ld=unknown
   7122     ;;
   7123   esac
   7124 elif test yes = "$with_gnu_ld"; then
   7125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   7126 $as_echo_n "checking for GNU ld... " >&6; }
   7127 else
   7128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   7129 $as_echo_n "checking for non-GNU ld... " >&6; }
   7130 fi
   7131 if ${lt_cv_path_LD+:} false; then :
   7132   $as_echo_n "(cached) " >&6
   7133 else
   7134   if test -z "$LD"; then
   7135   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7136   for ac_dir in $PATH; do
   7137     IFS=$lt_save_ifs
   7138     test -z "$ac_dir" && ac_dir=.
   7139     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   7140       lt_cv_path_LD=$ac_dir/$ac_prog
   7141       # Check to see if the program is GNU ld.  I'd rather use --version,
   7142       # but apparently some variants of GNU ld only accept -v.
   7143       # Break only if it was the GNU/non-GNU ld that we prefer.
   7144       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   7145       *GNU* | *'with BFD'*)
   7146 	test no != "$with_gnu_ld" && break
   7147 	;;
   7148       *)
   7149 	test yes != "$with_gnu_ld" && break
   7150 	;;
   7151       esac
   7152     fi
   7153   done
   7154   IFS=$lt_save_ifs
   7155 else
   7156   lt_cv_path_LD=$LD # Let the user override the test with a path.
   7157 fi
   7158 fi
   7159 
   7160 LD=$lt_cv_path_LD
   7161 if test -n "$LD"; then
   7162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   7163 $as_echo "$LD" >&6; }
   7164 else
   7165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7166 $as_echo "no" >&6; }
   7167 fi
   7168 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   7170 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   7171 if ${lt_cv_prog_gnu_ld+:} false; then :
   7172   $as_echo_n "(cached) " >&6
   7173 else
   7174   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   7175 case `$LD -v 2>&1 </dev/null` in
   7176 *GNU* | *'with BFD'*)
   7177   lt_cv_prog_gnu_ld=yes
   7178   ;;
   7179 *)
   7180   lt_cv_prog_gnu_ld=no
   7181   ;;
   7182 esac
   7183 fi
   7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   7185 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   7186 with_gnu_ld=$lt_cv_prog_gnu_ld
   7187 
   7188 
   7189 
   7190 
   7191 
   7192 
   7193 
   7194 
   7195 
   7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   7197 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   7198 if ${lt_cv_path_NM+:} false; then :
   7199   $as_echo_n "(cached) " >&6
   7200 else
   7201   if test -n "$NM"; then
   7202   # Let the user override the test.
   7203   lt_cv_path_NM=$NM
   7204 else
   7205   lt_nm_to_check=${ac_tool_prefix}nm
   7206   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   7207     lt_nm_to_check="$lt_nm_to_check nm"
   7208   fi
   7209   for lt_tmp_nm in $lt_nm_to_check; do
   7210     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7211     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   7212       IFS=$lt_save_ifs
   7213       test -z "$ac_dir" && ac_dir=.
   7214       tmp_nm=$ac_dir/$lt_tmp_nm
   7215       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   7216 	# Check to see if the nm accepts a BSD-compat flag.
   7217 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   7218 	#   nm: unknown option "B" ignored
   7219 	# Tru64's nm complains that /dev/null is an invalid object file
   7220 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   7221 	case $build_os in
   7222 	mingw*) lt_bad_file=conftest.nm/nofile ;;
   7223 	*) lt_bad_file=/dev/null ;;
   7224 	esac
   7225 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
   7226 	*$lt_bad_file* | *'Invalid file or object type'*)
   7227 	  lt_cv_path_NM="$tmp_nm -B"
   7228 	  break 2
   7229 	  ;;
   7230 	*)
   7231 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   7232 	  */dev/null*)
   7233 	    lt_cv_path_NM="$tmp_nm -p"
   7234 	    break 2
   7235 	    ;;
   7236 	  *)
   7237 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   7238 	    continue # so that we can try to find one that supports BSD flags
   7239 	    ;;
   7240 	  esac
   7241 	  ;;
   7242 	esac
   7243       fi
   7244     done
   7245     IFS=$lt_save_ifs
   7246   done
   7247   : ${lt_cv_path_NM=no}
   7248 fi
   7249 fi
   7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   7251 $as_echo "$lt_cv_path_NM" >&6; }
   7252 if test no != "$lt_cv_path_NM"; then
   7253   NM=$lt_cv_path_NM
   7254 else
   7255   # Didn't find any BSD compatible name lister, look for dumpbin.
   7256   if test -n "$DUMPBIN"; then :
   7257     # Let the user override the test.
   7258   else
   7259     if test -n "$ac_tool_prefix"; then
   7260   for ac_prog in dumpbin "link -dump"
   7261   do
   7262     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   7263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7265 $as_echo_n "checking for $ac_word... " >&6; }
   7266 if ${ac_cv_prog_DUMPBIN+:} false; then :
   7267   $as_echo_n "(cached) " >&6
   7268 else
   7269   if test -n "$DUMPBIN"; then
   7270   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   7271 else
   7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7273 for as_dir in $PATH
   7274 do
   7275   IFS=$as_save_IFS
   7276   test -z "$as_dir" && as_dir=.
   7277     for ac_exec_ext in '' $ac_executable_extensions; do
   7278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7279     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   7280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7281     break 2
   7282   fi
   7283 done
   7284   done
   7285 IFS=$as_save_IFS
   7286 
   7287 fi
   7288 fi
   7289 DUMPBIN=$ac_cv_prog_DUMPBIN
   7290 if test -n "$DUMPBIN"; then
   7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   7292 $as_echo "$DUMPBIN" >&6; }
   7293 else
   7294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7295 $as_echo "no" >&6; }
   7296 fi
   7297 
   7298 
   7299     test -n "$DUMPBIN" && break
   7300   done
   7301 fi
   7302 if test -z "$DUMPBIN"; then
   7303   ac_ct_DUMPBIN=$DUMPBIN
   7304   for ac_prog in dumpbin "link -dump"
   7305 do
   7306   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7307 set dummy $ac_prog; ac_word=$2
   7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7309 $as_echo_n "checking for $ac_word... " >&6; }
   7310 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   7311   $as_echo_n "(cached) " >&6
   7312 else
   7313   if test -n "$ac_ct_DUMPBIN"; then
   7314   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   7315 else
   7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7317 for as_dir in $PATH
   7318 do
   7319   IFS=$as_save_IFS
   7320   test -z "$as_dir" && as_dir=.
   7321     for ac_exec_ext in '' $ac_executable_extensions; do
   7322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7323     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   7324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7325     break 2
   7326   fi
   7327 done
   7328   done
   7329 IFS=$as_save_IFS
   7330 
   7331 fi
   7332 fi
   7333 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   7334 if test -n "$ac_ct_DUMPBIN"; then
   7335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   7336 $as_echo "$ac_ct_DUMPBIN" >&6; }
   7337 else
   7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7339 $as_echo "no" >&6; }
   7340 fi
   7341 
   7342 
   7343   test -n "$ac_ct_DUMPBIN" && break
   7344 done
   7345 
   7346   if test "x$ac_ct_DUMPBIN" = x; then
   7347     DUMPBIN=":"
   7348   else
   7349     case $cross_compiling:$ac_tool_warned in
   7350 yes:)
   7351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7353 ac_tool_warned=yes ;;
   7354 esac
   7355     DUMPBIN=$ac_ct_DUMPBIN
   7356   fi
   7357 fi
   7358 
   7359     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
   7360     *COFF*)
   7361       DUMPBIN="$DUMPBIN -symbols -headers"
   7362       ;;
   7363     *)
   7364       DUMPBIN=:
   7365       ;;
   7366     esac
   7367   fi
   7368 
   7369   if test : != "$DUMPBIN"; then
   7370     NM=$DUMPBIN
   7371   fi
   7372 fi
   7373 test -z "$NM" && NM=nm
   7374 
   7375 
   7376 
   7377 
   7378 
   7379 
   7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   7381 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   7382 if ${lt_cv_nm_interface+:} false; then :
   7383   $as_echo_n "(cached) " >&6
   7384 else
   7385   lt_cv_nm_interface="BSD nm"
   7386   echo "int some_variable = 0;" > conftest.$ac_ext
   7387   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   7388   (eval "$ac_compile" 2>conftest.err)
   7389   cat conftest.err >&5
   7390   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   7391   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   7392   cat conftest.err >&5
   7393   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   7394   cat conftest.out >&5
   7395   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   7396     lt_cv_nm_interface="MS dumpbin"
   7397   fi
   7398   rm -f conftest*
   7399 fi
   7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   7401 $as_echo "$lt_cv_nm_interface" >&6; }
   7402 
   7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   7404 $as_echo_n "checking whether ln -s works... " >&6; }
   7405 LN_S=$as_ln_s
   7406 if test "$LN_S" = "ln -s"; then
   7407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7408 $as_echo "yes" >&6; }
   7409 else
   7410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   7411 $as_echo "no, using $LN_S" >&6; }
   7412 fi
   7413 
   7414 # find the maximum length of command line arguments
   7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   7416 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   7417 if ${lt_cv_sys_max_cmd_len+:} false; then :
   7418   $as_echo_n "(cached) " >&6
   7419 else
   7420     i=0
   7421   teststring=ABCD
   7422 
   7423   case $build_os in
   7424   msdosdjgpp*)
   7425     # On DJGPP, this test can blow up pretty badly due to problems in libc
   7426     # (any single argument exceeding 2000 bytes causes a buffer overrun
   7427     # during glob expansion).  Even if it were fixed, the result of this
   7428     # check would be larger than it should be.
   7429     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   7430     ;;
   7431 
   7432   gnu*)
   7433     # Under GNU Hurd, this test is not required because there is
   7434     # no limit to the length of command line arguments.
   7435     # Libtool will interpret -1 as no limit whatsoever
   7436     lt_cv_sys_max_cmd_len=-1;
   7437     ;;
   7438 
   7439   cygwin* | mingw* | cegcc*)
   7440     # On Win9x/ME, this test blows up -- it succeeds, but takes
   7441     # about 5 minutes as the teststring grows exponentially.
   7442     # Worse, since 9x/ME are not pre-emptively multitasking,
   7443     # you end up with a "frozen" computer, even though with patience
   7444     # the test eventually succeeds (with a max line length of 256k).
   7445     # Instead, let's just punt: use the minimum linelength reported by
   7446     # all of the supported platforms: 8192 (on NT/2K/XP).
   7447     lt_cv_sys_max_cmd_len=8192;
   7448     ;;
   7449 
   7450   mint*)
   7451     # On MiNT this can take a long time and run out of memory.
   7452     lt_cv_sys_max_cmd_len=8192;
   7453     ;;
   7454 
   7455   amigaos*)
   7456     # On AmigaOS with pdksh, this test takes hours, literally.
   7457     # So we just punt and use a minimum line length of 8192.
   7458     lt_cv_sys_max_cmd_len=8192;
   7459     ;;
   7460 
   7461   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
   7462     # This has been around since 386BSD, at least.  Likely further.
   7463     if test -x /sbin/sysctl; then
   7464       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   7465     elif test -x /usr/sbin/sysctl; then
   7466       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   7467     else
   7468       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   7469     fi
   7470     # And add a safety zone
   7471     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   7472     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   7473     ;;
   7474 
   7475   interix*)
   7476     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   7477     lt_cv_sys_max_cmd_len=196608
   7478     ;;
   7479 
   7480   os2*)
   7481     # The test takes a long time on OS/2.
   7482     lt_cv_sys_max_cmd_len=8192
   7483     ;;
   7484 
   7485   osf*)
   7486     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   7487     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   7488     # nice to cause kernel panics so lets avoid the loop below.
   7489     # First set a reasonable default.
   7490     lt_cv_sys_max_cmd_len=16384
   7491     #
   7492     if test -x /sbin/sysconfig; then
   7493       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   7494         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   7495       esac
   7496     fi
   7497     ;;
   7498   sco3.2v5*)
   7499     lt_cv_sys_max_cmd_len=102400
   7500     ;;
   7501   sysv5* | sco5v6* | sysv4.2uw2*)
   7502     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   7503     if test -n "$kargmax"; then
   7504       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   7505     else
   7506       lt_cv_sys_max_cmd_len=32768
   7507     fi
   7508     ;;
   7509   *)
   7510     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   7511     if test -n "$lt_cv_sys_max_cmd_len" && \
   7512        test undefined != "$lt_cv_sys_max_cmd_len"; then
   7513       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   7514       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   7515     else
   7516       # Make teststring a little bigger before we do anything with it.
   7517       # a 1K string should be a reasonable start.
   7518       for i in 1 2 3 4 5 6 7 8; do
   7519         teststring=$teststring$teststring
   7520       done
   7521       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   7522       # If test is not a shell built-in, we'll probably end up computing a
   7523       # maximum length that is only half of the actual maximum length, but
   7524       # we can't tell.
   7525       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   7526 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   7527 	      test 17 != "$i" # 1/2 MB should be enough
   7528       do
   7529         i=`expr $i + 1`
   7530         teststring=$teststring$teststring
   7531       done
   7532       # Only check the string length outside the loop.
   7533       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   7534       teststring=
   7535       # Add a significant safety factor because C++ compilers can tack on
   7536       # massive amounts of additional arguments before passing them to the
   7537       # linker.  It appears as though 1/2 is a usable value.
   7538       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   7539     fi
   7540     ;;
   7541   esac
   7542 
   7543 fi
   7544 
   7545 if test -n "$lt_cv_sys_max_cmd_len"; then
   7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   7547 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   7548 else
   7549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   7550 $as_echo "none" >&6; }
   7551 fi
   7552 max_cmd_len=$lt_cv_sys_max_cmd_len
   7553 
   7554 
   7555 
   7556 
   7557 
   7558 
   7559 : ${CP="cp -f"}
   7560 : ${MV="mv -f"}
   7561 : ${RM="rm -f"}
   7562 
   7563 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   7564   lt_unset=unset
   7565 else
   7566   lt_unset=false
   7567 fi
   7568 
   7569 
   7570 
   7571 
   7572 
   7573 # test EBCDIC or ASCII
   7574 case `echo X|tr X '\101'` in
   7575  A) # ASCII based system
   7576     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   7577   lt_SP2NL='tr \040 \012'
   7578   lt_NL2SP='tr \015\012 \040\040'
   7579   ;;
   7580  *) # EBCDIC based system
   7581   lt_SP2NL='tr \100 \n'
   7582   lt_NL2SP='tr \r\n \100\100'
   7583   ;;
   7584 esac
   7585 
   7586 
   7587 
   7588 
   7589 
   7590 
   7591 
   7592 
   7593 
   7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   7595 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
   7596 if ${lt_cv_to_host_file_cmd+:} false; then :
   7597   $as_echo_n "(cached) " >&6
   7598 else
   7599   case $host in
   7600   *-*-mingw* )
   7601     case $build in
   7602       *-*-mingw* ) # actually msys
   7603         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   7604         ;;
   7605       *-*-cygwin* )
   7606         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   7607         ;;
   7608       * ) # otherwise, assume *nix
   7609         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   7610         ;;
   7611     esac
   7612     ;;
   7613   *-*-cygwin* )
   7614     case $build in
   7615       *-*-mingw* ) # actually msys
   7616         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   7617         ;;
   7618       *-*-cygwin* )
   7619         lt_cv_to_host_file_cmd=func_convert_file_noop
   7620         ;;
   7621       * ) # otherwise, assume *nix
   7622         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   7623         ;;
   7624     esac
   7625     ;;
   7626   * ) # unhandled hosts (and "normal" native builds)
   7627     lt_cv_to_host_file_cmd=func_convert_file_noop
   7628     ;;
   7629 esac
   7630 
   7631 fi
   7632 
   7633 to_host_file_cmd=$lt_cv_to_host_file_cmd
   7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   7635 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
   7636 
   7637 
   7638 
   7639 
   7640 
   7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   7642 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
   7643 if ${lt_cv_to_tool_file_cmd+:} false; then :
   7644   $as_echo_n "(cached) " >&6
   7645 else
   7646   #assume ordinary cross tools, or native build.
   7647 lt_cv_to_tool_file_cmd=func_convert_file_noop
   7648 case $host in
   7649   *-*-mingw* )
   7650     case $build in
   7651       *-*-mingw* ) # actually msys
   7652         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   7653         ;;
   7654     esac
   7655     ;;
   7656 esac
   7657 
   7658 fi
   7659 
   7660 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   7662 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
   7663 
   7664 
   7665 
   7666 
   7667 
   7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   7669 $as_echo_n "checking for $LD option to reload object files... " >&6; }
   7670 if ${lt_cv_ld_reload_flag+:} false; then :
   7671   $as_echo_n "(cached) " >&6
   7672 else
   7673   lt_cv_ld_reload_flag='-r'
   7674 fi
   7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   7676 $as_echo "$lt_cv_ld_reload_flag" >&6; }
   7677 reload_flag=$lt_cv_ld_reload_flag
   7678 case $reload_flag in
   7679 "" | " "*) ;;
   7680 *) reload_flag=" $reload_flag" ;;
   7681 esac
   7682 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   7683 case $host_os in
   7684   cygwin* | mingw* | pw32* | cegcc*)
   7685     if test yes != "$GCC"; then
   7686       reload_cmds=false
   7687     fi
   7688     ;;
   7689   darwin*)
   7690     if test yes = "$GCC"; then
   7691       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   7692     else
   7693       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   7694     fi
   7695     ;;
   7696 esac
   7697 
   7698 
   7699 
   7700 
   7701 
   7702 
   7703 
   7704 
   7705 
   7706 if test -n "$ac_tool_prefix"; then
   7707   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   7708 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7710 $as_echo_n "checking for $ac_word... " >&6; }
   7711 if ${ac_cv_prog_OBJDUMP+:} false; then :
   7712   $as_echo_n "(cached) " >&6
   7713 else
   7714   if test -n "$OBJDUMP"; then
   7715   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   7716 else
   7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7718 for as_dir in $PATH
   7719 do
   7720   IFS=$as_save_IFS
   7721   test -z "$as_dir" && as_dir=.
   7722     for ac_exec_ext in '' $ac_executable_extensions; do
   7723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7724     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   7725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7726     break 2
   7727   fi
   7728 done
   7729   done
   7730 IFS=$as_save_IFS
   7731 
   7732 fi
   7733 fi
   7734 OBJDUMP=$ac_cv_prog_OBJDUMP
   7735 if test -n "$OBJDUMP"; then
   7736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   7737 $as_echo "$OBJDUMP" >&6; }
   7738 else
   7739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7740 $as_echo "no" >&6; }
   7741 fi
   7742 
   7743 
   7744 fi
   7745 if test -z "$ac_cv_prog_OBJDUMP"; then
   7746   ac_ct_OBJDUMP=$OBJDUMP
   7747   # Extract the first word of "objdump", so it can be a program name with args.
   7748 set dummy objdump; ac_word=$2
   7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7750 $as_echo_n "checking for $ac_word... " >&6; }
   7751 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   7752   $as_echo_n "(cached) " >&6
   7753 else
   7754   if test -n "$ac_ct_OBJDUMP"; then
   7755   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   7756 else
   7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7758 for as_dir in $PATH
   7759 do
   7760   IFS=$as_save_IFS
   7761   test -z "$as_dir" && as_dir=.
   7762     for ac_exec_ext in '' $ac_executable_extensions; do
   7763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7764     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   7765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7766     break 2
   7767   fi
   7768 done
   7769   done
   7770 IFS=$as_save_IFS
   7771 
   7772 fi
   7773 fi
   7774 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   7775 if test -n "$ac_ct_OBJDUMP"; then
   7776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   7777 $as_echo "$ac_ct_OBJDUMP" >&6; }
   7778 else
   7779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7780 $as_echo "no" >&6; }
   7781 fi
   7782 
   7783   if test "x$ac_ct_OBJDUMP" = x; then
   7784     OBJDUMP="false"
   7785   else
   7786     case $cross_compiling:$ac_tool_warned in
   7787 yes:)
   7788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7790 ac_tool_warned=yes ;;
   7791 esac
   7792     OBJDUMP=$ac_ct_OBJDUMP
   7793   fi
   7794 else
   7795   OBJDUMP="$ac_cv_prog_OBJDUMP"
   7796 fi
   7797 
   7798 test -z "$OBJDUMP" && OBJDUMP=objdump
   7799 
   7800 
   7801 
   7802 
   7803 
   7804 
   7805 
   7806 
   7807 
   7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   7809 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   7810 if ${lt_cv_deplibs_check_method+:} false; then :
   7811   $as_echo_n "(cached) " >&6
   7812 else
   7813   lt_cv_file_magic_cmd='$MAGIC_CMD'
   7814 lt_cv_file_magic_test_file=
   7815 lt_cv_deplibs_check_method='unknown'
   7816 # Need to set the preceding variable on all platforms that support
   7817 # interlibrary dependencies.
   7818 # 'none' -- dependencies not supported.
   7819 # 'unknown' -- same as none, but documents that we really don't know.
   7820 # 'pass_all' -- all dependencies passed with no checks.
   7821 # 'test_compile' -- check by making test program.
   7822 # 'file_magic [[regex]]' -- check by looking for files in library path
   7823 # that responds to the $file_magic_cmd with a given extended regex.
   7824 # If you have 'file' or equivalent on your system and you're not sure
   7825 # whether 'pass_all' will *always* work, you probably want this one.
   7826 
   7827 case $host_os in
   7828 aix[4-9]*)
   7829   lt_cv_deplibs_check_method=pass_all
   7830   ;;
   7831 
   7832 beos*)
   7833   lt_cv_deplibs_check_method=pass_all
   7834   ;;
   7835 
   7836 bsdi[45]*)
   7837   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   7838   lt_cv_file_magic_cmd='/usr/bin/file -L'
   7839   lt_cv_file_magic_test_file=/shlib/libc.so
   7840   ;;
   7841 
   7842 cygwin*)
   7843   # func_win32_libid is a shell function defined in ltmain.sh
   7844   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   7845   lt_cv_file_magic_cmd='func_win32_libid'
   7846   ;;
   7847 
   7848 mingw* | pw32*)
   7849   # Base MSYS/MinGW do not provide the 'file' command needed by
   7850   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   7851   # unless we find 'file', for example because we are cross-compiling.
   7852   if ( file / ) >/dev/null 2>&1; then
   7853     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   7854     lt_cv_file_magic_cmd='func_win32_libid'
   7855   else
   7856     # Keep this pattern in sync with the one in func_win32_libid.
   7857     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   7858     lt_cv_file_magic_cmd='$OBJDUMP -f'
   7859   fi
   7860   ;;
   7861 
   7862 cegcc*)
   7863   # use the weaker test based on 'objdump'. See mingw*.
   7864   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   7865   lt_cv_file_magic_cmd='$OBJDUMP -f'
   7866   ;;
   7867 
   7868 darwin* | rhapsody*)
   7869   lt_cv_deplibs_check_method=pass_all
   7870   ;;
   7871 
   7872 freebsd* | dragonfly*)
   7873   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   7874     case $host_cpu in
   7875     i*86 )
   7876       # Not sure whether the presence of OpenBSD here was a mistake.
   7877       # Let's accept both of them until this is cleared up.
   7878       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   7879       lt_cv_file_magic_cmd=/usr/bin/file
   7880       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   7881       ;;
   7882     esac
   7883   else
   7884     lt_cv_deplibs_check_method=pass_all
   7885   fi
   7886   ;;
   7887 
   7888 haiku*)
   7889   lt_cv_deplibs_check_method=pass_all
   7890   ;;
   7891 
   7892 hpux10.20* | hpux11*)
   7893   lt_cv_file_magic_cmd=/usr/bin/file
   7894   case $host_cpu in
   7895   ia64*)
   7896     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   7897     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   7898     ;;
   7899   hppa*64*)
   7900     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]'
   7901     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   7902     ;;
   7903   *)
   7904     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   7905     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   7906     ;;
   7907   esac
   7908   ;;
   7909 
   7910 interix[3-9]*)
   7911   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   7912   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   7913   ;;
   7914 
   7915 irix5* | irix6* | nonstopux*)
   7916   case $LD in
   7917   *-32|*"-32 ") libmagic=32-bit;;
   7918   *-n32|*"-n32 ") libmagic=N32;;
   7919   *-64|*"-64 ") libmagic=64-bit;;
   7920   *) libmagic=never-match;;
   7921   esac
   7922   lt_cv_deplibs_check_method=pass_all
   7923   ;;
   7924 
   7925 # This must be glibc/ELF.
   7926 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   7927   lt_cv_deplibs_check_method=pass_all
   7928   ;;
   7929 
   7930 netbsd*)
   7931   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   7932     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   7933   else
   7934     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   7935   fi
   7936   ;;
   7937 
   7938 newos6*)
   7939   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   7940   lt_cv_file_magic_cmd=/usr/bin/file
   7941   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   7942   ;;
   7943 
   7944 *nto* | *qnx*)
   7945   lt_cv_deplibs_check_method=pass_all
   7946   ;;
   7947 
   7948 openbsd* | bitrig*)
   7949   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   7950     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   7951   else
   7952     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   7953   fi
   7954   ;;
   7955 
   7956 osf3* | osf4* | osf5*)
   7957   lt_cv_deplibs_check_method=pass_all
   7958   ;;
   7959 
   7960 rdos*)
   7961   lt_cv_deplibs_check_method=pass_all
   7962   ;;
   7963 
   7964 solaris*)
   7965   lt_cv_deplibs_check_method=pass_all
   7966   ;;
   7967 
   7968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   7969   lt_cv_deplibs_check_method=pass_all
   7970   ;;
   7971 
   7972 sysv4 | sysv4.3*)
   7973   case $host_vendor in
   7974   motorola)
   7975     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]'
   7976     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   7977     ;;
   7978   ncr)
   7979     lt_cv_deplibs_check_method=pass_all
   7980     ;;
   7981   sequent)
   7982     lt_cv_file_magic_cmd='/bin/file'
   7983     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   7984     ;;
   7985   sni)
   7986     lt_cv_file_magic_cmd='/bin/file'
   7987     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   7988     lt_cv_file_magic_test_file=/lib/libc.so
   7989     ;;
   7990   siemens)
   7991     lt_cv_deplibs_check_method=pass_all
   7992     ;;
   7993   pc)
   7994     lt_cv_deplibs_check_method=pass_all
   7995     ;;
   7996   esac
   7997   ;;
   7998 
   7999 tpf*)
   8000   lt_cv_deplibs_check_method=pass_all
   8001   ;;
   8002 os2*)
   8003   lt_cv_deplibs_check_method=pass_all
   8004   ;;
   8005 esac
   8006 
   8007 fi
   8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   8009 $as_echo "$lt_cv_deplibs_check_method" >&6; }
   8010 
   8011 file_magic_glob=
   8012 want_nocaseglob=no
   8013 if test "$build" = "$host"; then
   8014   case $host_os in
   8015   mingw* | pw32*)
   8016     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   8017       want_nocaseglob=yes
   8018     else
   8019       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   8020     fi
   8021     ;;
   8022   esac
   8023 fi
   8024 
   8025 file_magic_cmd=$lt_cv_file_magic_cmd
   8026 deplibs_check_method=$lt_cv_deplibs_check_method
   8027 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   8028 
   8029 
   8030 
   8031 
   8032 
   8033 
   8034 
   8035 
   8036 
   8037 
   8038 
   8039 
   8040 
   8041 
   8042 
   8043 
   8044 
   8045 
   8046 
   8047 
   8048 
   8049 
   8050 if test -n "$ac_tool_prefix"; then
   8051   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   8052 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8054 $as_echo_n "checking for $ac_word... " >&6; }
   8055 if ${ac_cv_prog_DLLTOOL+:} false; then :
   8056   $as_echo_n "(cached) " >&6
   8057 else
   8058   if test -n "$DLLTOOL"; then
   8059   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   8060 else
   8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8062 for as_dir in $PATH
   8063 do
   8064   IFS=$as_save_IFS
   8065   test -z "$as_dir" && as_dir=.
   8066     for ac_exec_ext in '' $ac_executable_extensions; do
   8067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8068     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   8069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8070     break 2
   8071   fi
   8072 done
   8073   done
   8074 IFS=$as_save_IFS
   8075 
   8076 fi
   8077 fi
   8078 DLLTOOL=$ac_cv_prog_DLLTOOL
   8079 if test -n "$DLLTOOL"; then
   8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   8081 $as_echo "$DLLTOOL" >&6; }
   8082 else
   8083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8084 $as_echo "no" >&6; }
   8085 fi
   8086 
   8087 
   8088 fi
   8089 if test -z "$ac_cv_prog_DLLTOOL"; then
   8090   ac_ct_DLLTOOL=$DLLTOOL
   8091   # Extract the first word of "dlltool", so it can be a program name with args.
   8092 set dummy dlltool; ac_word=$2
   8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8094 $as_echo_n "checking for $ac_word... " >&6; }
   8095 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   8096   $as_echo_n "(cached) " >&6
   8097 else
   8098   if test -n "$ac_ct_DLLTOOL"; then
   8099   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   8100 else
   8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8102 for as_dir in $PATH
   8103 do
   8104   IFS=$as_save_IFS
   8105   test -z "$as_dir" && as_dir=.
   8106     for ac_exec_ext in '' $ac_executable_extensions; do
   8107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8108     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   8109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8110     break 2
   8111   fi
   8112 done
   8113   done
   8114 IFS=$as_save_IFS
   8115 
   8116 fi
   8117 fi
   8118 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   8119 if test -n "$ac_ct_DLLTOOL"; then
   8120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   8121 $as_echo "$ac_ct_DLLTOOL" >&6; }
   8122 else
   8123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8124 $as_echo "no" >&6; }
   8125 fi
   8126 
   8127   if test "x$ac_ct_DLLTOOL" = x; then
   8128     DLLTOOL="false"
   8129   else
   8130     case $cross_compiling:$ac_tool_warned in
   8131 yes:)
   8132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8134 ac_tool_warned=yes ;;
   8135 esac
   8136     DLLTOOL=$ac_ct_DLLTOOL
   8137   fi
   8138 else
   8139   DLLTOOL="$ac_cv_prog_DLLTOOL"
   8140 fi
   8141 
   8142 test -z "$DLLTOOL" && DLLTOOL=dlltool
   8143 
   8144 
   8145 
   8146 
   8147 
   8148 
   8149 
   8150 
   8151 
   8152 
   8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   8154 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
   8155 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
   8156   $as_echo_n "(cached) " >&6
   8157 else
   8158   lt_cv_sharedlib_from_linklib_cmd='unknown'
   8159 
   8160 case $host_os in
   8161 cygwin* | mingw* | pw32* | cegcc*)
   8162   # two different shell functions defined in ltmain.sh;
   8163   # decide which one to use based on capabilities of $DLLTOOL
   8164   case `$DLLTOOL --help 2>&1` in
   8165   *--identify-strict*)
   8166     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   8167     ;;
   8168   *)
   8169     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   8170     ;;
   8171   esac
   8172   ;;
   8173 *)
   8174   # fallback: assume linklib IS sharedlib
   8175   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   8176   ;;
   8177 esac
   8178 
   8179 fi
   8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   8181 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   8182 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   8183 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   8184 
   8185 
   8186 
   8187 
   8188 
   8189 
   8190 
   8191 if test -n "$ac_tool_prefix"; then
   8192   for ac_prog in ar
   8193   do
   8194     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   8195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8197 $as_echo_n "checking for $ac_word... " >&6; }
   8198 if ${ac_cv_prog_AR+:} false; then :
   8199   $as_echo_n "(cached) " >&6
   8200 else
   8201   if test -n "$AR"; then
   8202   ac_cv_prog_AR="$AR" # Let the user override the test.
   8203 else
   8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8205 for as_dir in $PATH
   8206 do
   8207   IFS=$as_save_IFS
   8208   test -z "$as_dir" && as_dir=.
   8209     for ac_exec_ext in '' $ac_executable_extensions; do
   8210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8211     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   8212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8213     break 2
   8214   fi
   8215 done
   8216   done
   8217 IFS=$as_save_IFS
   8218 
   8219 fi
   8220 fi
   8221 AR=$ac_cv_prog_AR
   8222 if test -n "$AR"; then
   8223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   8224 $as_echo "$AR" >&6; }
   8225 else
   8226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8227 $as_echo "no" >&6; }
   8228 fi
   8229 
   8230 
   8231     test -n "$AR" && break
   8232   done
   8233 fi
   8234 if test -z "$AR"; then
   8235   ac_ct_AR=$AR
   8236   for ac_prog in ar
   8237 do
   8238   # Extract the first word of "$ac_prog", so it can be a program name with args.
   8239 set dummy $ac_prog; ac_word=$2
   8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8241 $as_echo_n "checking for $ac_word... " >&6; }
   8242 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   8243   $as_echo_n "(cached) " >&6
   8244 else
   8245   if test -n "$ac_ct_AR"; then
   8246   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   8247 else
   8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8249 for as_dir in $PATH
   8250 do
   8251   IFS=$as_save_IFS
   8252   test -z "$as_dir" && as_dir=.
   8253     for ac_exec_ext in '' $ac_executable_extensions; do
   8254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8255     ac_cv_prog_ac_ct_AR="$ac_prog"
   8256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8257     break 2
   8258   fi
   8259 done
   8260   done
   8261 IFS=$as_save_IFS
   8262 
   8263 fi
   8264 fi
   8265 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   8266 if test -n "$ac_ct_AR"; then
   8267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   8268 $as_echo "$ac_ct_AR" >&6; }
   8269 else
   8270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8271 $as_echo "no" >&6; }
   8272 fi
   8273 
   8274 
   8275   test -n "$ac_ct_AR" && break
   8276 done
   8277 
   8278   if test "x$ac_ct_AR" = x; then
   8279     AR="false"
   8280   else
   8281     case $cross_compiling:$ac_tool_warned in
   8282 yes:)
   8283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8285 ac_tool_warned=yes ;;
   8286 esac
   8287     AR=$ac_ct_AR
   8288   fi
   8289 fi
   8290 
   8291 : ${AR=ar}
   8292 : ${AR_FLAGS=cru}
   8293 
   8294 
   8295 
   8296 
   8297 
   8298 
   8299 
   8300 
   8301 
   8302 
   8303 
   8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   8305 $as_echo_n "checking for archiver @FILE support... " >&6; }
   8306 if ${lt_cv_ar_at_file+:} false; then :
   8307   $as_echo_n "(cached) " >&6
   8308 else
   8309   lt_cv_ar_at_file=no
   8310    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8311 /* end confdefs.h.  */
   8312 
   8313 int
   8314 main ()
   8315 {
   8316 
   8317   ;
   8318   return 0;
   8319 }
   8320 _ACEOF
   8321 if ac_fn_c_try_compile "$LINENO"; then :
   8322   echo conftest.$ac_objext > conftest.lst
   8323       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   8324       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   8325   (eval $lt_ar_try) 2>&5
   8326   ac_status=$?
   8327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8328   test $ac_status = 0; }
   8329       if test 0 -eq "$ac_status"; then
   8330 	# Ensure the archiver fails upon bogus file names.
   8331 	rm -f conftest.$ac_objext libconftest.a
   8332 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   8333   (eval $lt_ar_try) 2>&5
   8334   ac_status=$?
   8335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8336   test $ac_status = 0; }
   8337 	if test 0 -ne "$ac_status"; then
   8338           lt_cv_ar_at_file=@
   8339         fi
   8340       fi
   8341       rm -f conftest.* libconftest.a
   8342 
   8343 fi
   8344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8345 
   8346 fi
   8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   8348 $as_echo "$lt_cv_ar_at_file" >&6; }
   8349 
   8350 if test no = "$lt_cv_ar_at_file"; then
   8351   archiver_list_spec=
   8352 else
   8353   archiver_list_spec=$lt_cv_ar_at_file
   8354 fi
   8355 
   8356 
   8357 
   8358 
   8359 
   8360 
   8361 
   8362 if test -n "$ac_tool_prefix"; then
   8363   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   8364 set dummy ${ac_tool_prefix}strip; ac_word=$2
   8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8366 $as_echo_n "checking for $ac_word... " >&6; }
   8367 if ${ac_cv_prog_STRIP+:} false; then :
   8368   $as_echo_n "(cached) " >&6
   8369 else
   8370   if test -n "$STRIP"; then
   8371   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   8372 else
   8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8374 for as_dir in $PATH
   8375 do
   8376   IFS=$as_save_IFS
   8377   test -z "$as_dir" && as_dir=.
   8378     for ac_exec_ext in '' $ac_executable_extensions; do
   8379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8380     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   8381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8382     break 2
   8383   fi
   8384 done
   8385   done
   8386 IFS=$as_save_IFS
   8387 
   8388 fi
   8389 fi
   8390 STRIP=$ac_cv_prog_STRIP
   8391 if test -n "$STRIP"; then
   8392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   8393 $as_echo "$STRIP" >&6; }
   8394 else
   8395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8396 $as_echo "no" >&6; }
   8397 fi
   8398 
   8399 
   8400 fi
   8401 if test -z "$ac_cv_prog_STRIP"; then
   8402   ac_ct_STRIP=$STRIP
   8403   # Extract the first word of "strip", so it can be a program name with args.
   8404 set dummy strip; ac_word=$2
   8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8406 $as_echo_n "checking for $ac_word... " >&6; }
   8407 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   8408   $as_echo_n "(cached) " >&6
   8409 else
   8410   if test -n "$ac_ct_STRIP"; then
   8411   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   8412 else
   8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8414 for as_dir in $PATH
   8415 do
   8416   IFS=$as_save_IFS
   8417   test -z "$as_dir" && as_dir=.
   8418     for ac_exec_ext in '' $ac_executable_extensions; do
   8419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8420     ac_cv_prog_ac_ct_STRIP="strip"
   8421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8422     break 2
   8423   fi
   8424 done
   8425   done
   8426 IFS=$as_save_IFS
   8427 
   8428 fi
   8429 fi
   8430 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   8431 if test -n "$ac_ct_STRIP"; then
   8432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   8433 $as_echo "$ac_ct_STRIP" >&6; }
   8434 else
   8435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8436 $as_echo "no" >&6; }
   8437 fi
   8438 
   8439   if test "x$ac_ct_STRIP" = x; then
   8440     STRIP=":"
   8441   else
   8442     case $cross_compiling:$ac_tool_warned in
   8443 yes:)
   8444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8446 ac_tool_warned=yes ;;
   8447 esac
   8448     STRIP=$ac_ct_STRIP
   8449   fi
   8450 else
   8451   STRIP="$ac_cv_prog_STRIP"
   8452 fi
   8453 
   8454 test -z "$STRIP" && STRIP=:
   8455 
   8456 
   8457 
   8458 
   8459 
   8460 
   8461 if test -n "$ac_tool_prefix"; then
   8462   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   8463 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8465 $as_echo_n "checking for $ac_word... " >&6; }
   8466 if ${ac_cv_prog_RANLIB+:} false; then :
   8467   $as_echo_n "(cached) " >&6
   8468 else
   8469   if test -n "$RANLIB"; then
   8470   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   8471 else
   8472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8473 for as_dir in $PATH
   8474 do
   8475   IFS=$as_save_IFS
   8476   test -z "$as_dir" && as_dir=.
   8477     for ac_exec_ext in '' $ac_executable_extensions; do
   8478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8479     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   8480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8481     break 2
   8482   fi
   8483 done
   8484   done
   8485 IFS=$as_save_IFS
   8486 
   8487 fi
   8488 fi
   8489 RANLIB=$ac_cv_prog_RANLIB
   8490 if test -n "$RANLIB"; then
   8491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   8492 $as_echo "$RANLIB" >&6; }
   8493 else
   8494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8495 $as_echo "no" >&6; }
   8496 fi
   8497 
   8498 
   8499 fi
   8500 if test -z "$ac_cv_prog_RANLIB"; then
   8501   ac_ct_RANLIB=$RANLIB
   8502   # Extract the first word of "ranlib", so it can be a program name with args.
   8503 set dummy ranlib; ac_word=$2
   8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8505 $as_echo_n "checking for $ac_word... " >&6; }
   8506 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   8507   $as_echo_n "(cached) " >&6
   8508 else
   8509   if test -n "$ac_ct_RANLIB"; then
   8510   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   8511 else
   8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8513 for as_dir in $PATH
   8514 do
   8515   IFS=$as_save_IFS
   8516   test -z "$as_dir" && as_dir=.
   8517     for ac_exec_ext in '' $ac_executable_extensions; do
   8518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8519     ac_cv_prog_ac_ct_RANLIB="ranlib"
   8520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8521     break 2
   8522   fi
   8523 done
   8524   done
   8525 IFS=$as_save_IFS
   8526 
   8527 fi
   8528 fi
   8529 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   8530 if test -n "$ac_ct_RANLIB"; then
   8531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   8532 $as_echo "$ac_ct_RANLIB" >&6; }
   8533 else
   8534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8535 $as_echo "no" >&6; }
   8536 fi
   8537 
   8538   if test "x$ac_ct_RANLIB" = x; then
   8539     RANLIB=":"
   8540   else
   8541     case $cross_compiling:$ac_tool_warned in
   8542 yes:)
   8543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8545 ac_tool_warned=yes ;;
   8546 esac
   8547     RANLIB=$ac_ct_RANLIB
   8548   fi
   8549 else
   8550   RANLIB="$ac_cv_prog_RANLIB"
   8551 fi
   8552 
   8553 test -z "$RANLIB" && RANLIB=:
   8554 
   8555 
   8556 
   8557 
   8558 
   8559 
   8560 # Determine commands to create old-style static archives.
   8561 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   8562 old_postinstall_cmds='chmod 644 $oldlib'
   8563 old_postuninstall_cmds=
   8564 
   8565 if test -n "$RANLIB"; then
   8566   case $host_os in
   8567   bitrig* | openbsd*)
   8568     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   8569     ;;
   8570   *)
   8571     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   8572     ;;
   8573   esac
   8574   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   8575 fi
   8576 
   8577 case $host_os in
   8578   darwin*)
   8579     lock_old_archive_extraction=yes ;;
   8580   *)
   8581     lock_old_archive_extraction=no ;;
   8582 esac
   8583 
   8584 
   8585 
   8586 
   8587 
   8588 
   8589 
   8590 
   8591 
   8592 
   8593 
   8594 
   8595 
   8596 
   8597 
   8598 
   8599 
   8600 
   8601 
   8602 
   8603 
   8604 for ac_prog in gawk mawk nawk awk
   8605 do
   8606   # Extract the first word of "$ac_prog", so it can be a program name with args.
   8607 set dummy $ac_prog; ac_word=$2
   8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8609 $as_echo_n "checking for $ac_word... " >&6; }
   8610 if ${ac_cv_prog_AWK+:} false; then :
   8611   $as_echo_n "(cached) " >&6
   8612 else
   8613   if test -n "$AWK"; then
   8614   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   8615 else
   8616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8617 for as_dir in $PATH
   8618 do
   8619   IFS=$as_save_IFS
   8620   test -z "$as_dir" && as_dir=.
   8621     for ac_exec_ext in '' $ac_executable_extensions; do
   8622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8623     ac_cv_prog_AWK="$ac_prog"
   8624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8625     break 2
   8626   fi
   8627 done
   8628   done
   8629 IFS=$as_save_IFS
   8630 
   8631 fi
   8632 fi
   8633 AWK=$ac_cv_prog_AWK
   8634 if test -n "$AWK"; then
   8635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   8636 $as_echo "$AWK" >&6; }
   8637 else
   8638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8639 $as_echo "no" >&6; }
   8640 fi
   8641 
   8642 
   8643   test -n "$AWK" && break
   8644 done
   8645 
   8646 
   8647 
   8648 
   8649 
   8650 
   8651 
   8652 
   8653 
   8654 
   8655 
   8656 
   8657 
   8658 
   8659 
   8660 
   8661 
   8662 
   8663 
   8664 # If no C compiler was specified, use CC.
   8665 LTCC=${LTCC-"$CC"}
   8666 
   8667 # If no C compiler flags were specified, use CFLAGS.
   8668 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   8669 
   8670 # Allow CC to be a program name with arguments.
   8671 compiler=$CC
   8672 
   8673 
   8674 # Check for command to grab the raw symbol name followed by C symbol from nm.
   8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   8676 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   8677 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   8678   $as_echo_n "(cached) " >&6
   8679 else
   8680 
   8681 # These are sane defaults that work on at least a few old systems.
   8682 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   8683 
   8684 # Character class describing NM global symbol codes.
   8685 symcode='[BCDEGRST]'
   8686 
   8687 # Regexp to match symbols that can be accessed directly from C.
   8688 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   8689 
   8690 # Define system-specific variables.
   8691 case $host_os in
   8692 aix*)
   8693   symcode='[BCDT]'
   8694   ;;
   8695 cygwin* | mingw* | pw32* | cegcc*)
   8696   symcode='[ABCDGISTW]'
   8697   ;;
   8698 hpux*)
   8699   if test ia64 = "$host_cpu"; then
   8700     symcode='[ABCDEGRST]'
   8701   fi
   8702   ;;
   8703 irix* | nonstopux*)
   8704   symcode='[BCDEGRST]'
   8705   ;;
   8706 osf*)
   8707   symcode='[BCDEGQRST]'
   8708   ;;
   8709 solaris*)
   8710   symcode='[BDRT]'
   8711   ;;
   8712 sco3.2v5*)
   8713   symcode='[DT]'
   8714   ;;
   8715 sysv4.2uw2*)
   8716   symcode='[DT]'
   8717   ;;
   8718 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   8719   symcode='[ABDT]'
   8720   ;;
   8721 sysv4)
   8722   symcode='[DFNSTU]'
   8723   ;;
   8724 esac
   8725 
   8726 # If we're using GNU nm, then use its standard symbol codes.
   8727 case `$NM -V 2>&1` in
   8728 *GNU* | *'with BFD'*)
   8729   symcode='[ABCDGIRSTW]' ;;
   8730 esac
   8731 
   8732 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   8733   # Gets list of data symbols to import.
   8734   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
   8735   # Adjust the below global symbol transforms to fixup imported variables.
   8736   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   8737   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   8738   lt_c_name_lib_hook="\
   8739   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   8740   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   8741 else
   8742   # Disable hooks by default.
   8743   lt_cv_sys_global_symbol_to_import=
   8744   lt_cdecl_hook=
   8745   lt_c_name_hook=
   8746   lt_c_name_lib_hook=
   8747 fi
   8748 
   8749 # Transform an extracted symbol line into a proper C declaration.
   8750 # Some systems (esp. on ia64) link data and code symbols differently,
   8751 # so use this general approach.
   8752 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
   8753 $lt_cdecl_hook\
   8754 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   8755 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   8756 
   8757 # Transform an extracted symbol line into symbol name and symbol address
   8758 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
   8759 $lt_c_name_hook\
   8760 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   8761 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   8762 
   8763 # Transform an extracted symbol line into symbol name with lib prefix and
   8764 # symbol address.
   8765 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
   8766 $lt_c_name_lib_hook\
   8767 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   8768 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   8769 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   8770 
   8771 # Handle CRLF in mingw tool chain
   8772 opt_cr=
   8773 case $build_os in
   8774 mingw*)
   8775   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   8776   ;;
   8777 esac
   8778 
   8779 # Try without a prefix underscore, then with it.
   8780 for ac_symprfx in "" "_"; do
   8781 
   8782   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   8783   symxfrm="\\1 $ac_symprfx\\2 \\2"
   8784 
   8785   # Write the raw and C identifiers.
   8786   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   8787     # Fake it for dumpbin and say T for any non-static function,
   8788     # D for any global variable and I for any imported variable.
   8789     # Also find C++ and __fastcall symbols from MSVC++,
   8790     # which start with @ or ?.
   8791     lt_cv_sys_global_symbol_pipe="$AWK '"\
   8792 "     {last_section=section; section=\$ 3};"\
   8793 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   8794 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   8795 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   8796 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   8797 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   8798 "     \$ 0!~/External *\|/{next};"\
   8799 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   8800 "     {if(hide[section]) next};"\
   8801 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   8802 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   8803 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   8804 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   8805 "     ' prfx=^$ac_symprfx"
   8806   else
   8807     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   8808   fi
   8809   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   8810 
   8811   # Check to see that the pipe works correctly.
   8812   pipe_works=no
   8813 
   8814   rm -f conftest*
   8815   cat > conftest.$ac_ext <<_LT_EOF
   8816 #ifdef __cplusplus
   8817 extern "C" {
   8818 #endif
   8819 char nm_test_var;
   8820 void nm_test_func(void);
   8821 void nm_test_func(void){}
   8822 #ifdef __cplusplus
   8823 }
   8824 #endif
   8825 int main(){nm_test_var='a';nm_test_func();return(0);}
   8826 _LT_EOF
   8827 
   8828   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   8829   (eval $ac_compile) 2>&5
   8830   ac_status=$?
   8831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8832   test $ac_status = 0; }; then
   8833     # Now try to grab the symbols.
   8834     nlist=conftest.nm
   8835     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   8836   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   8837   ac_status=$?
   8838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8839   test $ac_status = 0; } && test -s "$nlist"; then
   8840       # Try sorting and uniquifying the output.
   8841       if sort "$nlist" | uniq > "$nlist"T; then
   8842 	mv -f "$nlist"T "$nlist"
   8843       else
   8844 	rm -f "$nlist"T
   8845       fi
   8846 
   8847       # Make sure that we snagged all the symbols we need.
   8848       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   8849 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   8850 	  cat <<_LT_EOF > conftest.$ac_ext
   8851 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   8852 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   8853 /* DATA imports from DLLs on WIN32 can't be const, because runtime
   8854    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   8855 # define LT_DLSYM_CONST
   8856 #elif defined __osf__
   8857 /* This system does not cope well with relocations in const data.  */
   8858 # define LT_DLSYM_CONST
   8859 #else
   8860 # define LT_DLSYM_CONST const
   8861 #endif
   8862 
   8863 #ifdef __cplusplus
   8864 extern "C" {
   8865 #endif
   8866 
   8867 _LT_EOF
   8868 	  # Now generate the symbol file.
   8869 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   8870 
   8871 	  cat <<_LT_EOF >> conftest.$ac_ext
   8872 
   8873 /* The mapping between symbol names and symbols.  */
   8874 LT_DLSYM_CONST struct {
   8875   const char *name;
   8876   void       *address;
   8877 }
   8878 lt__PROGRAM__LTX_preloaded_symbols[] =
   8879 {
   8880   { "@PROGRAM@", (void *) 0 },
   8881 _LT_EOF
   8882 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   8883 	  cat <<\_LT_EOF >> conftest.$ac_ext
   8884   {0, (void *) 0}
   8885 };
   8886 
   8887 /* This works around a problem in FreeBSD linker */
   8888 #ifdef FREEBSD_WORKAROUND
   8889 static const void *lt_preloaded_setup() {
   8890   return lt__PROGRAM__LTX_preloaded_symbols;
   8891 }
   8892 #endif
   8893 
   8894 #ifdef __cplusplus
   8895 }
   8896 #endif
   8897 _LT_EOF
   8898 	  # Now try linking the two files.
   8899 	  mv conftest.$ac_objext conftstm.$ac_objext
   8900 	  lt_globsym_save_LIBS=$LIBS
   8901 	  lt_globsym_save_CFLAGS=$CFLAGS
   8902 	  LIBS=conftstm.$ac_objext
   8903 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   8904 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   8905   (eval $ac_link) 2>&5
   8906   ac_status=$?
   8907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8908   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   8909 	    pipe_works=yes
   8910 	  fi
   8911 	  LIBS=$lt_globsym_save_LIBS
   8912 	  CFLAGS=$lt_globsym_save_CFLAGS
   8913 	else
   8914 	  echo "cannot find nm_test_func in $nlist" >&5
   8915 	fi
   8916       else
   8917 	echo "cannot find nm_test_var in $nlist" >&5
   8918       fi
   8919     else
   8920       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   8921     fi
   8922   else
   8923     echo "$progname: failed program was:" >&5
   8924     cat conftest.$ac_ext >&5
   8925   fi
   8926   rm -rf conftest* conftst*
   8927 
   8928   # Do not use the global_symbol_pipe unless it works.
   8929   if test yes = "$pipe_works"; then
   8930     break
   8931   else
   8932     lt_cv_sys_global_symbol_pipe=
   8933   fi
   8934 done
   8935 
   8936 fi
   8937 
   8938 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   8939   lt_cv_sys_global_symbol_to_cdecl=
   8940 fi
   8941 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   8942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   8943 $as_echo "failed" >&6; }
   8944 else
   8945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   8946 $as_echo "ok" >&6; }
   8947 fi
   8948 
   8949 # Response file support.
   8950 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   8951   nm_file_list_spec='@'
   8952 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   8953   nm_file_list_spec='@'
   8954 fi
   8955 
   8956 
   8957 
   8958 
   8959 
   8960 
   8961 
   8962 
   8963 
   8964 
   8965 
   8966 
   8967 
   8968 
   8969 
   8970 
   8971 
   8972 
   8973 
   8974 
   8975 
   8976 
   8977 
   8978 
   8979 
   8980 
   8981 
   8982 
   8983 
   8984 
   8985 
   8986 
   8987 
   8988 
   8989 
   8990 
   8991 
   8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   8993 $as_echo_n "checking for sysroot... " >&6; }
   8994 
   8995 # Check whether --with-sysroot was given.
   8996 if test "${with_sysroot+set}" = set; then :
   8997   withval=$with_sysroot;
   8998 else
   8999   with_sysroot=no
   9000 fi
   9001 
   9002 
   9003 lt_sysroot=
   9004 case $with_sysroot in #(
   9005  yes)
   9006    if test yes = "$GCC"; then
   9007      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   9008    fi
   9009    ;; #(
   9010  /*)
   9011    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   9012    ;; #(
   9013  no|'')
   9014    ;; #(
   9015  *)
   9016    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
   9017 $as_echo "$with_sysroot" >&6; }
   9018    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   9019    ;;
   9020 esac
   9021 
   9022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   9023 $as_echo "${lt_sysroot:-no}" >&6; }
   9024 
   9025 
   9026 
   9027 
   9028 
   9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
   9030 $as_echo_n "checking for a working dd... " >&6; }
   9031 if ${ac_cv_path_lt_DD+:} false; then :
   9032   $as_echo_n "(cached) " >&6
   9033 else
   9034   printf 0123456789abcdef0123456789abcdef >conftest.i
   9035 cat conftest.i conftest.i >conftest2.i
   9036 : ${lt_DD:=$DD}
   9037 if test -z "$lt_DD"; then
   9038   ac_path_lt_DD_found=false
   9039   # Loop through the user's path and test for each of PROGNAME-LIST
   9040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9041 for as_dir in $PATH
   9042 do
   9043   IFS=$as_save_IFS
   9044   test -z "$as_dir" && as_dir=.
   9045     for ac_prog in dd; do
   9046     for ac_exec_ext in '' $ac_executable_extensions; do
   9047       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
   9048       as_fn_executable_p "$ac_path_lt_DD" || continue
   9049 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   9050   cmp -s conftest.i conftest.out \
   9051   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   9052 fi
   9053       $ac_path_lt_DD_found && break 3
   9054     done
   9055   done
   9056   done
   9057 IFS=$as_save_IFS
   9058   if test -z "$ac_cv_path_lt_DD"; then
   9059     :
   9060   fi
   9061 else
   9062   ac_cv_path_lt_DD=$lt_DD
   9063 fi
   9064 
   9065 rm -f conftest.i conftest2.i conftest.out
   9066 fi
   9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
   9068 $as_echo "$ac_cv_path_lt_DD" >&6; }
   9069 
   9070 
   9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
   9072 $as_echo_n "checking how to truncate binary pipes... " >&6; }
   9073 if ${lt_cv_truncate_bin+:} false; then :
   9074   $as_echo_n "(cached) " >&6
   9075 else
   9076   printf 0123456789abcdef0123456789abcdef >conftest.i
   9077 cat conftest.i conftest.i >conftest2.i
   9078 lt_cv_truncate_bin=
   9079 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   9080   cmp -s conftest.i conftest.out \
   9081   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   9082 fi
   9083 rm -f conftest.i conftest2.i conftest.out
   9084 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
   9085 fi
   9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
   9087 $as_echo "$lt_cv_truncate_bin" >&6; }
   9088 
   9089 
   9090 
   9091 
   9092 
   9093 
   9094 
   9095 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   9096 func_cc_basename ()
   9097 {
   9098     for cc_temp in $*""; do
   9099       case $cc_temp in
   9100         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   9101         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   9102         \-*) ;;
   9103         *) break;;
   9104       esac
   9105     done
   9106     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   9107 }
   9108 
   9109 # Check whether --enable-libtool-lock was given.
   9110 if test "${enable_libtool_lock+set}" = set; then :
   9111   enableval=$enable_libtool_lock;
   9112 fi
   9113 
   9114 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   9115 
   9116 # Some flags need to be propagated to the compiler or linker for good
   9117 # libtool support.
   9118 case $host in
   9119 ia64-*-hpux*)
   9120   # Find out what ABI is being produced by ac_compile, and set mode
   9121   # options accordingly.
   9122   echo 'int i;' > conftest.$ac_ext
   9123   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9124   (eval $ac_compile) 2>&5
   9125   ac_status=$?
   9126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9127   test $ac_status = 0; }; then
   9128     case `/usr/bin/file conftest.$ac_objext` in
   9129       *ELF-32*)
   9130 	HPUX_IA64_MODE=32
   9131 	;;
   9132       *ELF-64*)
   9133 	HPUX_IA64_MODE=64
   9134 	;;
   9135     esac
   9136   fi
   9137   rm -rf conftest*
   9138   ;;
   9139 *-*-irix6*)
   9140   # Find out what ABI is being produced by ac_compile, and set linker
   9141   # options accordingly.
   9142   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   9143   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9144   (eval $ac_compile) 2>&5
   9145   ac_status=$?
   9146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9147   test $ac_status = 0; }; then
   9148     if test yes = "$lt_cv_prog_gnu_ld"; then
   9149       case `/usr/bin/file conftest.$ac_objext` in
   9150 	*32-bit*)
   9151 	  LD="${LD-ld} -melf32bsmip"
   9152 	  ;;
   9153 	*N32*)
   9154 	  LD="${LD-ld} -melf32bmipn32"
   9155 	  ;;
   9156 	*64-bit*)
   9157 	  LD="${LD-ld} -melf64bmip"
   9158 	;;
   9159       esac
   9160     else
   9161       case `/usr/bin/file conftest.$ac_objext` in
   9162 	*32-bit*)
   9163 	  LD="${LD-ld} -32"
   9164 	  ;;
   9165 	*N32*)
   9166 	  LD="${LD-ld} -n32"
   9167 	  ;;
   9168 	*64-bit*)
   9169 	  LD="${LD-ld} -64"
   9170 	  ;;
   9171       esac
   9172     fi
   9173   fi
   9174   rm -rf conftest*
   9175   ;;
   9176 
   9177 mips64*-*linux*)
   9178   # Find out what ABI is being produced by ac_compile, and set linker
   9179   # options accordingly.
   9180   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   9181   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9182   (eval $ac_compile) 2>&5
   9183   ac_status=$?
   9184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9185   test $ac_status = 0; }; then
   9186     emul=elf
   9187     case `/usr/bin/file conftest.$ac_objext` in
   9188       *32-bit*)
   9189 	emul="${emul}32"
   9190 	;;
   9191       *64-bit*)
   9192 	emul="${emul}64"
   9193 	;;
   9194     esac
   9195     case `/usr/bin/file conftest.$ac_objext` in
   9196       *MSB*)
   9197 	emul="${emul}btsmip"
   9198 	;;
   9199       *LSB*)
   9200 	emul="${emul}ltsmip"
   9201 	;;
   9202     esac
   9203     case `/usr/bin/file conftest.$ac_objext` in
   9204       *N32*)
   9205 	emul="${emul}n32"
   9206 	;;
   9207     esac
   9208     LD="${LD-ld} -m $emul"
   9209   fi
   9210   rm -rf conftest*
   9211   ;;
   9212 
   9213 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   9214 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   9215   # Find out what ABI is being produced by ac_compile, and set linker
   9216   # options accordingly.  Note that the listed cases only cover the
   9217   # situations where additional linker options are needed (such as when
   9218   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   9219   # vice versa); the common cases where no linker options are needed do
   9220   # not appear in the list.
   9221   echo 'int i;' > conftest.$ac_ext
   9222   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9223   (eval $ac_compile) 2>&5
   9224   ac_status=$?
   9225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9226   test $ac_status = 0; }; then
   9227     case `/usr/bin/file conftest.o` in
   9228       *32-bit*)
   9229 	case $host in
   9230 	  x86_64-*kfreebsd*-gnu)
   9231 	    LD="${LD-ld} -m elf_i386_fbsd"
   9232 	    ;;
   9233 	  x86_64-*linux*)
   9234 	    case `/usr/bin/file conftest.o` in
   9235 	      *x86-64*)
   9236 		LD="${LD-ld} -m elf32_x86_64"
   9237 		;;
   9238 	      *)
   9239 		LD="${LD-ld} -m elf_i386"
   9240 		;;
   9241 	    esac
   9242 	    ;;
   9243 	  powerpc64le-*linux*)
   9244 	    LD="${LD-ld} -m elf32lppclinux"
   9245 	    ;;
   9246 	  powerpc64-*linux*)
   9247 	    LD="${LD-ld} -m elf32ppclinux"
   9248 	    ;;
   9249 	  s390x-*linux*)
   9250 	    LD="${LD-ld} -m elf_s390"
   9251 	    ;;
   9252 	  sparc64-*linux*)
   9253 	    LD="${LD-ld} -m elf32_sparc"
   9254 	    ;;
   9255 	esac
   9256 	;;
   9257       *64-bit*)
   9258 	case $host in
   9259 	  x86_64-*kfreebsd*-gnu)
   9260 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   9261 	    ;;
   9262 	  x86_64-*linux*)
   9263 	    LD="${LD-ld} -m elf_x86_64"
   9264 	    ;;
   9265 	  powerpcle-*linux*)
   9266 	    LD="${LD-ld} -m elf64lppc"
   9267 	    ;;
   9268 	  powerpc-*linux*)
   9269 	    LD="${LD-ld} -m elf64ppc"
   9270 	    ;;
   9271 	  s390*-*linux*|s390*-*tpf*)
   9272 	    LD="${LD-ld} -m elf64_s390"
   9273 	    ;;
   9274 	  sparc*-*linux*)
   9275 	    LD="${LD-ld} -m elf64_sparc"
   9276 	    ;;
   9277 	esac
   9278 	;;
   9279     esac
   9280   fi
   9281   rm -rf conftest*
   9282   ;;
   9283 
   9284 *-*-sco3.2v5*)
   9285   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   9286   SAVE_CFLAGS=$CFLAGS
   9287   CFLAGS="$CFLAGS -belf"
   9288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   9289 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   9290 if ${lt_cv_cc_needs_belf+:} false; then :
   9291   $as_echo_n "(cached) " >&6
   9292 else
   9293   ac_ext=c
   9294 ac_cpp='$CPP $CPPFLAGS'
   9295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9298 
   9299      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9300 /* end confdefs.h.  */
   9301 
   9302 int
   9303 main ()
   9304 {
   9305 
   9306   ;
   9307   return 0;
   9308 }
   9309 _ACEOF
   9310 if ac_fn_c_try_link "$LINENO"; then :
   9311   lt_cv_cc_needs_belf=yes
   9312 else
   9313   lt_cv_cc_needs_belf=no
   9314 fi
   9315 rm -f core conftest.err conftest.$ac_objext \
   9316     conftest$ac_exeext conftest.$ac_ext
   9317      ac_ext=c
   9318 ac_cpp='$CPP $CPPFLAGS'
   9319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9322 
   9323 fi
   9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   9325 $as_echo "$lt_cv_cc_needs_belf" >&6; }
   9326   if test yes != "$lt_cv_cc_needs_belf"; then
   9327     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   9328     CFLAGS=$SAVE_CFLAGS
   9329   fi
   9330   ;;
   9331 *-*solaris*)
   9332   # Find out what ABI is being produced by ac_compile, and set linker
   9333   # options accordingly.
   9334   echo 'int i;' > conftest.$ac_ext
   9335   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9336   (eval $ac_compile) 2>&5
   9337   ac_status=$?
   9338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9339   test $ac_status = 0; }; then
   9340     case `/usr/bin/file conftest.o` in
   9341     *64-bit*)
   9342       case $lt_cv_prog_gnu_ld in
   9343       yes*)
   9344         case $host in
   9345         i?86-*-solaris*|x86_64-*-solaris*)
   9346           LD="${LD-ld} -m elf_x86_64"
   9347           ;;
   9348         sparc*-*-solaris*)
   9349           LD="${LD-ld} -m elf64_sparc"
   9350           ;;
   9351         esac
   9352         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   9353         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   9354           LD=${LD-ld}_sol2
   9355         fi
   9356         ;;
   9357       *)
   9358 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   9359 	  LD="${LD-ld} -64"
   9360 	fi
   9361 	;;
   9362       esac
   9363       ;;
   9364     esac
   9365   fi
   9366   rm -rf conftest*
   9367   ;;
   9368 esac
   9369 
   9370 need_locks=$enable_libtool_lock
   9371 
   9372 if test -n "$ac_tool_prefix"; then
   9373   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   9374 set dummy ${ac_tool_prefix}mt; ac_word=$2
   9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9376 $as_echo_n "checking for $ac_word... " >&6; }
   9377 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
   9378   $as_echo_n "(cached) " >&6
   9379 else
   9380   if test -n "$MANIFEST_TOOL"; then
   9381   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   9382 else
   9383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9384 for as_dir in $PATH
   9385 do
   9386   IFS=$as_save_IFS
   9387   test -z "$as_dir" && as_dir=.
   9388     for ac_exec_ext in '' $ac_executable_extensions; do
   9389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9390     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   9391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9392     break 2
   9393   fi
   9394 done
   9395   done
   9396 IFS=$as_save_IFS
   9397 
   9398 fi
   9399 fi
   9400 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   9401 if test -n "$MANIFEST_TOOL"; then
   9402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   9403 $as_echo "$MANIFEST_TOOL" >&6; }
   9404 else
   9405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9406 $as_echo "no" >&6; }
   9407 fi
   9408 
   9409 
   9410 fi
   9411 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   9412   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   9413   # Extract the first word of "mt", so it can be a program name with args.
   9414 set dummy mt; ac_word=$2
   9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9416 $as_echo_n "checking for $ac_word... " >&6; }
   9417 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
   9418   $as_echo_n "(cached) " >&6
   9419 else
   9420   if test -n "$ac_ct_MANIFEST_TOOL"; then
   9421   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   9422 else
   9423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9424 for as_dir in $PATH
   9425 do
   9426   IFS=$as_save_IFS
   9427   test -z "$as_dir" && as_dir=.
   9428     for ac_exec_ext in '' $ac_executable_extensions; do
   9429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9430     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   9431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9432     break 2
   9433   fi
   9434 done
   9435   done
   9436 IFS=$as_save_IFS
   9437 
   9438 fi
   9439 fi
   9440 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   9441 if test -n "$ac_ct_MANIFEST_TOOL"; then
   9442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   9443 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
   9444 else
   9445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9446 $as_echo "no" >&6; }
   9447 fi
   9448 
   9449   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   9450     MANIFEST_TOOL=":"
   9451   else
   9452     case $cross_compiling:$ac_tool_warned in
   9453 yes:)
   9454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9456 ac_tool_warned=yes ;;
   9457 esac
   9458     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   9459   fi
   9460 else
   9461   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   9462 fi
   9463 
   9464 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   9466 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   9467 if ${lt_cv_path_mainfest_tool+:} false; then :
   9468   $as_echo_n "(cached) " >&6
   9469 else
   9470   lt_cv_path_mainfest_tool=no
   9471   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   9472   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   9473   cat conftest.err >&5
   9474   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   9475     lt_cv_path_mainfest_tool=yes
   9476   fi
   9477   rm -f conftest*
   9478 fi
   9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   9480 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
   9481 if test yes != "$lt_cv_path_mainfest_tool"; then
   9482   MANIFEST_TOOL=:
   9483 fi
   9484 
   9485 
   9486 
   9487 
   9488 
   9489 
   9490   case $host_os in
   9491     rhapsody* | darwin*)
   9492     if test -n "$ac_tool_prefix"; then
   9493   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   9494 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9496 $as_echo_n "checking for $ac_word... " >&6; }
   9497 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   9498   $as_echo_n "(cached) " >&6
   9499 else
   9500   if test -n "$DSYMUTIL"; then
   9501   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   9502 else
   9503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9504 for as_dir in $PATH
   9505 do
   9506   IFS=$as_save_IFS
   9507   test -z "$as_dir" && as_dir=.
   9508     for ac_exec_ext in '' $ac_executable_extensions; do
   9509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9510     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   9511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9512     break 2
   9513   fi
   9514 done
   9515   done
   9516 IFS=$as_save_IFS
   9517 
   9518 fi
   9519 fi
   9520 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   9521 if test -n "$DSYMUTIL"; then
   9522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   9523 $as_echo "$DSYMUTIL" >&6; }
   9524 else
   9525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9526 $as_echo "no" >&6; }
   9527 fi
   9528 
   9529 
   9530 fi
   9531 if test -z "$ac_cv_prog_DSYMUTIL"; then
   9532   ac_ct_DSYMUTIL=$DSYMUTIL
   9533   # Extract the first word of "dsymutil", so it can be a program name with args.
   9534 set dummy dsymutil; ac_word=$2
   9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9536 $as_echo_n "checking for $ac_word... " >&6; }
   9537 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   9538   $as_echo_n "(cached) " >&6
   9539 else
   9540   if test -n "$ac_ct_DSYMUTIL"; then
   9541   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   9542 else
   9543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9544 for as_dir in $PATH
   9545 do
   9546   IFS=$as_save_IFS
   9547   test -z "$as_dir" && as_dir=.
   9548     for ac_exec_ext in '' $ac_executable_extensions; do
   9549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9550     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   9551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9552     break 2
   9553   fi
   9554 done
   9555   done
   9556 IFS=$as_save_IFS
   9557 
   9558 fi
   9559 fi
   9560 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   9561 if test -n "$ac_ct_DSYMUTIL"; then
   9562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   9563 $as_echo "$ac_ct_DSYMUTIL" >&6; }
   9564 else
   9565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9566 $as_echo "no" >&6; }
   9567 fi
   9568 
   9569   if test "x$ac_ct_DSYMUTIL" = x; then
   9570     DSYMUTIL=":"
   9571   else
   9572     case $cross_compiling:$ac_tool_warned in
   9573 yes:)
   9574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9576 ac_tool_warned=yes ;;
   9577 esac
   9578     DSYMUTIL=$ac_ct_DSYMUTIL
   9579   fi
   9580 else
   9581   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   9582 fi
   9583 
   9584     if test -n "$ac_tool_prefix"; then
   9585   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   9586 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9588 $as_echo_n "checking for $ac_word... " >&6; }
   9589 if ${ac_cv_prog_NMEDIT+:} false; then :
   9590   $as_echo_n "(cached) " >&6
   9591 else
   9592   if test -n "$NMEDIT"; then
   9593   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   9594 else
   9595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9596 for as_dir in $PATH
   9597 do
   9598   IFS=$as_save_IFS
   9599   test -z "$as_dir" && as_dir=.
   9600     for ac_exec_ext in '' $ac_executable_extensions; do
   9601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9602     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   9603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9604     break 2
   9605   fi
   9606 done
   9607   done
   9608 IFS=$as_save_IFS
   9609 
   9610 fi
   9611 fi
   9612 NMEDIT=$ac_cv_prog_NMEDIT
   9613 if test -n "$NMEDIT"; then
   9614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   9615 $as_echo "$NMEDIT" >&6; }
   9616 else
   9617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9618 $as_echo "no" >&6; }
   9619 fi
   9620 
   9621 
   9622 fi
   9623 if test -z "$ac_cv_prog_NMEDIT"; then
   9624   ac_ct_NMEDIT=$NMEDIT
   9625   # Extract the first word of "nmedit", so it can be a program name with args.
   9626 set dummy nmedit; ac_word=$2
   9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9628 $as_echo_n "checking for $ac_word... " >&6; }
   9629 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   9630   $as_echo_n "(cached) " >&6
   9631 else
   9632   if test -n "$ac_ct_NMEDIT"; then
   9633   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   9634 else
   9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9636 for as_dir in $PATH
   9637 do
   9638   IFS=$as_save_IFS
   9639   test -z "$as_dir" && as_dir=.
   9640     for ac_exec_ext in '' $ac_executable_extensions; do
   9641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9642     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   9643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9644     break 2
   9645   fi
   9646 done
   9647   done
   9648 IFS=$as_save_IFS
   9649 
   9650 fi
   9651 fi
   9652 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   9653 if test -n "$ac_ct_NMEDIT"; then
   9654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   9655 $as_echo "$ac_ct_NMEDIT" >&6; }
   9656 else
   9657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9658 $as_echo "no" >&6; }
   9659 fi
   9660 
   9661   if test "x$ac_ct_NMEDIT" = x; then
   9662     NMEDIT=":"
   9663   else
   9664     case $cross_compiling:$ac_tool_warned in
   9665 yes:)
   9666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9668 ac_tool_warned=yes ;;
   9669 esac
   9670     NMEDIT=$ac_ct_NMEDIT
   9671   fi
   9672 else
   9673   NMEDIT="$ac_cv_prog_NMEDIT"
   9674 fi
   9675 
   9676     if test -n "$ac_tool_prefix"; then
   9677   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   9678 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9680 $as_echo_n "checking for $ac_word... " >&6; }
   9681 if ${ac_cv_prog_LIPO+:} false; then :
   9682   $as_echo_n "(cached) " >&6
   9683 else
   9684   if test -n "$LIPO"; then
   9685   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   9686 else
   9687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9688 for as_dir in $PATH
   9689 do
   9690   IFS=$as_save_IFS
   9691   test -z "$as_dir" && as_dir=.
   9692     for ac_exec_ext in '' $ac_executable_extensions; do
   9693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9694     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   9695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9696     break 2
   9697   fi
   9698 done
   9699   done
   9700 IFS=$as_save_IFS
   9701 
   9702 fi
   9703 fi
   9704 LIPO=$ac_cv_prog_LIPO
   9705 if test -n "$LIPO"; then
   9706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   9707 $as_echo "$LIPO" >&6; }
   9708 else
   9709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9710 $as_echo "no" >&6; }
   9711 fi
   9712 
   9713 
   9714 fi
   9715 if test -z "$ac_cv_prog_LIPO"; then
   9716   ac_ct_LIPO=$LIPO
   9717   # Extract the first word of "lipo", so it can be a program name with args.
   9718 set dummy lipo; ac_word=$2
   9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9720 $as_echo_n "checking for $ac_word... " >&6; }
   9721 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   9722   $as_echo_n "(cached) " >&6
   9723 else
   9724   if test -n "$ac_ct_LIPO"; then
   9725   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   9726 else
   9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9728 for as_dir in $PATH
   9729 do
   9730   IFS=$as_save_IFS
   9731   test -z "$as_dir" && as_dir=.
   9732     for ac_exec_ext in '' $ac_executable_extensions; do
   9733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9734     ac_cv_prog_ac_ct_LIPO="lipo"
   9735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9736     break 2
   9737   fi
   9738 done
   9739   done
   9740 IFS=$as_save_IFS
   9741 
   9742 fi
   9743 fi
   9744 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   9745 if test -n "$ac_ct_LIPO"; then
   9746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   9747 $as_echo "$ac_ct_LIPO" >&6; }
   9748 else
   9749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9750 $as_echo "no" >&6; }
   9751 fi
   9752 
   9753   if test "x$ac_ct_LIPO" = x; then
   9754     LIPO=":"
   9755   else
   9756     case $cross_compiling:$ac_tool_warned in
   9757 yes:)
   9758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9760 ac_tool_warned=yes ;;
   9761 esac
   9762     LIPO=$ac_ct_LIPO
   9763   fi
   9764 else
   9765   LIPO="$ac_cv_prog_LIPO"
   9766 fi
   9767 
   9768     if test -n "$ac_tool_prefix"; then
   9769   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   9770 set dummy ${ac_tool_prefix}otool; ac_word=$2
   9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9772 $as_echo_n "checking for $ac_word... " >&6; }
   9773 if ${ac_cv_prog_OTOOL+:} false; then :
   9774   $as_echo_n "(cached) " >&6
   9775 else
   9776   if test -n "$OTOOL"; then
   9777   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   9778 else
   9779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9780 for as_dir in $PATH
   9781 do
   9782   IFS=$as_save_IFS
   9783   test -z "$as_dir" && as_dir=.
   9784     for ac_exec_ext in '' $ac_executable_extensions; do
   9785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9786     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   9787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9788     break 2
   9789   fi
   9790 done
   9791   done
   9792 IFS=$as_save_IFS
   9793 
   9794 fi
   9795 fi
   9796 OTOOL=$ac_cv_prog_OTOOL
   9797 if test -n "$OTOOL"; then
   9798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   9799 $as_echo "$OTOOL" >&6; }
   9800 else
   9801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9802 $as_echo "no" >&6; }
   9803 fi
   9804 
   9805 
   9806 fi
   9807 if test -z "$ac_cv_prog_OTOOL"; then
   9808   ac_ct_OTOOL=$OTOOL
   9809   # Extract the first word of "otool", so it can be a program name with args.
   9810 set dummy otool; ac_word=$2
   9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9812 $as_echo_n "checking for $ac_word... " >&6; }
   9813 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   9814   $as_echo_n "(cached) " >&6
   9815 else
   9816   if test -n "$ac_ct_OTOOL"; then
   9817   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   9818 else
   9819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9820 for as_dir in $PATH
   9821 do
   9822   IFS=$as_save_IFS
   9823   test -z "$as_dir" && as_dir=.
   9824     for ac_exec_ext in '' $ac_executable_extensions; do
   9825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9826     ac_cv_prog_ac_ct_OTOOL="otool"
   9827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9828     break 2
   9829   fi
   9830 done
   9831   done
   9832 IFS=$as_save_IFS
   9833 
   9834 fi
   9835 fi
   9836 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   9837 if test -n "$ac_ct_OTOOL"; then
   9838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   9839 $as_echo "$ac_ct_OTOOL" >&6; }
   9840 else
   9841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9842 $as_echo "no" >&6; }
   9843 fi
   9844 
   9845   if test "x$ac_ct_OTOOL" = x; then
   9846     OTOOL=":"
   9847   else
   9848     case $cross_compiling:$ac_tool_warned in
   9849 yes:)
   9850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9852 ac_tool_warned=yes ;;
   9853 esac
   9854     OTOOL=$ac_ct_OTOOL
   9855   fi
   9856 else
   9857   OTOOL="$ac_cv_prog_OTOOL"
   9858 fi
   9859 
   9860     if test -n "$ac_tool_prefix"; then
   9861   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   9862 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9864 $as_echo_n "checking for $ac_word... " >&6; }
   9865 if ${ac_cv_prog_OTOOL64+:} false; then :
   9866   $as_echo_n "(cached) " >&6
   9867 else
   9868   if test -n "$OTOOL64"; then
   9869   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   9870 else
   9871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9872 for as_dir in $PATH
   9873 do
   9874   IFS=$as_save_IFS
   9875   test -z "$as_dir" && as_dir=.
   9876     for ac_exec_ext in '' $ac_executable_extensions; do
   9877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9878     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   9879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9880     break 2
   9881   fi
   9882 done
   9883   done
   9884 IFS=$as_save_IFS
   9885 
   9886 fi
   9887 fi
   9888 OTOOL64=$ac_cv_prog_OTOOL64
   9889 if test -n "$OTOOL64"; then
   9890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   9891 $as_echo "$OTOOL64" >&6; }
   9892 else
   9893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9894 $as_echo "no" >&6; }
   9895 fi
   9896 
   9897 
   9898 fi
   9899 if test -z "$ac_cv_prog_OTOOL64"; then
   9900   ac_ct_OTOOL64=$OTOOL64
   9901   # Extract the first word of "otool64", so it can be a program name with args.
   9902 set dummy otool64; ac_word=$2
   9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9904 $as_echo_n "checking for $ac_word... " >&6; }
   9905 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   9906   $as_echo_n "(cached) " >&6
   9907 else
   9908   if test -n "$ac_ct_OTOOL64"; then
   9909   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   9910 else
   9911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9912 for as_dir in $PATH
   9913 do
   9914   IFS=$as_save_IFS
   9915   test -z "$as_dir" && as_dir=.
   9916     for ac_exec_ext in '' $ac_executable_extensions; do
   9917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9918     ac_cv_prog_ac_ct_OTOOL64="otool64"
   9919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9920     break 2
   9921   fi
   9922 done
   9923   done
   9924 IFS=$as_save_IFS
   9925 
   9926 fi
   9927 fi
   9928 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   9929 if test -n "$ac_ct_OTOOL64"; then
   9930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   9931 $as_echo "$ac_ct_OTOOL64" >&6; }
   9932 else
   9933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9934 $as_echo "no" >&6; }
   9935 fi
   9936 
   9937   if test "x$ac_ct_OTOOL64" = x; then
   9938     OTOOL64=":"
   9939   else
   9940     case $cross_compiling:$ac_tool_warned in
   9941 yes:)
   9942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9944 ac_tool_warned=yes ;;
   9945 esac
   9946     OTOOL64=$ac_ct_OTOOL64
   9947   fi
   9948 else
   9949   OTOOL64="$ac_cv_prog_OTOOL64"
   9950 fi
   9951 
   9952 
   9953 
   9954 
   9955 
   9956 
   9957 
   9958 
   9959 
   9960 
   9961 
   9962 
   9963 
   9964 
   9965 
   9966 
   9967 
   9968 
   9969 
   9970 
   9971 
   9972 
   9973 
   9974 
   9975 
   9976 
   9977 
   9978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   9979 $as_echo_n "checking for -single_module linker flag... " >&6; }
   9980 if ${lt_cv_apple_cc_single_mod+:} false; then :
   9981   $as_echo_n "(cached) " >&6
   9982 else
   9983   lt_cv_apple_cc_single_mod=no
   9984       if test -z "$LT_MULTI_MODULE"; then
   9985 	# By default we will add the -single_module flag. You can override
   9986 	# by either setting the environment variable LT_MULTI_MODULE
   9987 	# non-empty at configure time, or by adding -multi_module to the
   9988 	# link flags.
   9989 	rm -rf libconftest.dylib*
   9990 	echo "int foo(void){return 1;}" > conftest.c
   9991 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   9992 -dynamiclib -Wl,-single_module conftest.c" >&5
   9993 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   9994 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   9995         _lt_result=$?
   9996 	# If there is a non-empty error log, and "single_module"
   9997 	# appears in it, assume the flag caused a linker warning
   9998         if test -s conftest.err && $GREP single_module conftest.err; then
   9999 	  cat conftest.err >&5
   10000 	# Otherwise, if the output was created with a 0 exit code from
   10001 	# the compiler, it worked.
   10002 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   10003 	  lt_cv_apple_cc_single_mod=yes
   10004 	else
   10005 	  cat conftest.err >&5
   10006 	fi
   10007 	rm -rf libconftest.dylib*
   10008 	rm -f conftest.*
   10009       fi
   10010 fi
   10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   10012 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   10013 
   10014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   10015 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   10016 if ${lt_cv_ld_exported_symbols_list+:} false; then :
   10017   $as_echo_n "(cached) " >&6
   10018 else
   10019   lt_cv_ld_exported_symbols_list=no
   10020       save_LDFLAGS=$LDFLAGS
   10021       echo "_main" > conftest.sym
   10022       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   10023       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10024 /* end confdefs.h.  */
   10025 
   10026 int
   10027 main ()
   10028 {
   10029 
   10030   ;
   10031   return 0;
   10032 }
   10033 _ACEOF
   10034 if ac_fn_c_try_link "$LINENO"; then :
   10035   lt_cv_ld_exported_symbols_list=yes
   10036 else
   10037   lt_cv_ld_exported_symbols_list=no
   10038 fi
   10039 rm -f core conftest.err conftest.$ac_objext \
   10040     conftest$ac_exeext conftest.$ac_ext
   10041 	LDFLAGS=$save_LDFLAGS
   10042 
   10043 fi
   10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   10045 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   10046 
   10047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   10048 $as_echo_n "checking for -force_load linker flag... " >&6; }
   10049 if ${lt_cv_ld_force_load+:} false; then :
   10050   $as_echo_n "(cached) " >&6
   10051 else
   10052   lt_cv_ld_force_load=no
   10053       cat > conftest.c << _LT_EOF
   10054 int forced_loaded() { return 2;}
   10055 _LT_EOF
   10056       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   10057       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   10058       echo "$AR cru libconftest.a conftest.o" >&5
   10059       $AR cru libconftest.a conftest.o 2>&5
   10060       echo "$RANLIB libconftest.a" >&5
   10061       $RANLIB libconftest.a 2>&5
   10062       cat > conftest.c << _LT_EOF
   10063 int main() { return 0;}
   10064 _LT_EOF
   10065       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   10066       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   10067       _lt_result=$?
   10068       if test -s conftest.err && $GREP force_load conftest.err; then
   10069 	cat conftest.err >&5
   10070       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   10071 	lt_cv_ld_force_load=yes
   10072       else
   10073 	cat conftest.err >&5
   10074       fi
   10075         rm -f conftest.err libconftest.a conftest conftest.c
   10076         rm -rf conftest.dSYM
   10077 
   10078 fi
   10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   10080 $as_echo "$lt_cv_ld_force_load" >&6; }
   10081     case $host_os in
   10082     rhapsody* | darwin1.[012])
   10083       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   10084     darwin1.*)
   10085       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   10086     darwin*) # darwin 5.x on
   10087       # if running on 10.5 or later, the deployment target defaults
   10088       # to the OS version, if on x86, and 10.4, the deployment
   10089       # target defaults to 10.4. Don't you love it?
   10090       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   10091 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   10092 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   10093 	10.[012][,.]*)
   10094 	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   10095 	10.*)
   10096 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   10097       esac
   10098     ;;
   10099   esac
   10100     if test yes = "$lt_cv_apple_cc_single_mod"; then
   10101       _lt_dar_single_mod='$single_module'
   10102     fi
   10103     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   10104       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   10105     else
   10106       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   10107     fi
   10108     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   10109       _lt_dsymutil='~$DSYMUTIL $lib || :'
   10110     else
   10111       _lt_dsymutil=
   10112     fi
   10113     ;;
   10114   esac
   10115 
   10116 # func_munge_path_list VARIABLE PATH
   10117 # -----------------------------------
   10118 # VARIABLE is name of variable containing _space_ separated list of
   10119 # directories to be munged by the contents of PATH, which is string
   10120 # having a format:
   10121 # "DIR[:DIR]:"
   10122 #       string "DIR[ DIR]" will be prepended to VARIABLE
   10123 # ":DIR[:DIR]"
   10124 #       string "DIR[ DIR]" will be appended to VARIABLE
   10125 # "DIRP[:DIRP]::[DIRA:]DIRA"
   10126 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   10127 #       "DIRA[ DIRA]" will be appended to VARIABLE
   10128 # "DIR[:DIR]"
   10129 #       VARIABLE will be replaced by "DIR[ DIR]"
   10130 func_munge_path_list ()
   10131 {
   10132     case x$2 in
   10133     x)
   10134         ;;
   10135     *:)
   10136         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   10137         ;;
   10138     x:*)
   10139         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   10140         ;;
   10141     *::*)
   10142         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   10143         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   10144         ;;
   10145     *)
   10146         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   10147         ;;
   10148     esac
   10149 }
   10150 
   10151 for ac_header in dlfcn.h
   10152 do :
   10153   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   10154 "
   10155 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   10156   cat >>confdefs.h <<_ACEOF
   10157 #define HAVE_DLFCN_H 1
   10158 _ACEOF
   10159 
   10160 fi
   10161 
   10162 done
   10163 
   10164 
   10165 
   10166 
   10167 
   10168 
   10169 
   10170 # Set options
   10171 
   10172 
   10173 
   10174         enable_dlopen=no
   10175 
   10176 
   10177   enable_win32_dll=no
   10178 
   10179 
   10180             # Check whether --enable-shared was given.
   10181 if test "${enable_shared+set}" = set; then :
   10182   enableval=$enable_shared; p=${PACKAGE-default}
   10183     case $enableval in
   10184     yes) enable_shared=yes ;;
   10185     no) enable_shared=no ;;
   10186     *)
   10187       enable_shared=no
   10188       # Look at the argument we got.  We use all the common list separators.
   10189       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   10190       for pkg in $enableval; do
   10191 	IFS=$lt_save_ifs
   10192 	if test "X$pkg" = "X$p"; then
   10193 	  enable_shared=yes
   10194 	fi
   10195       done
   10196       IFS=$lt_save_ifs
   10197       ;;
   10198     esac
   10199 else
   10200   enable_shared=yes
   10201 fi
   10202 
   10203 
   10204 
   10205 
   10206 
   10207 
   10208 
   10209 
   10210 
   10211   # Check whether --enable-static was given.
   10212 if test "${enable_static+set}" = set; then :
   10213   enableval=$enable_static; p=${PACKAGE-default}
   10214     case $enableval in
   10215     yes) enable_static=yes ;;
   10216     no) enable_static=no ;;
   10217     *)
   10218      enable_static=no
   10219       # Look at the argument we got.  We use all the common list separators.
   10220       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   10221       for pkg in $enableval; do
   10222 	IFS=$lt_save_ifs
   10223 	if test "X$pkg" = "X$p"; then
   10224 	  enable_static=yes
   10225 	fi
   10226       done
   10227       IFS=$lt_save_ifs
   10228       ;;
   10229     esac
   10230 else
   10231   enable_static=yes
   10232 fi
   10233 
   10234 
   10235 
   10236 
   10237 
   10238 
   10239 
   10240 
   10241 
   10242 
   10243 # Check whether --with-pic was given.
   10244 if test "${with_pic+set}" = set; then :
   10245   withval=$with_pic; lt_p=${PACKAGE-default}
   10246     case $withval in
   10247     yes|no) pic_mode=$withval ;;
   10248     *)
   10249       pic_mode=default
   10250       # Look at the argument we got.  We use all the common list separators.
   10251       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   10252       for lt_pkg in $withval; do
   10253 	IFS=$lt_save_ifs
   10254 	if test "X$lt_pkg" = "X$lt_p"; then
   10255 	  pic_mode=yes
   10256 	fi
   10257       done
   10258       IFS=$lt_save_ifs
   10259       ;;
   10260     esac
   10261 else
   10262   pic_mode=default
   10263 fi
   10264 
   10265 
   10266 
   10267 
   10268 
   10269 
   10270 
   10271 
   10272   # Check whether --enable-fast-install was given.
   10273 if test "${enable_fast_install+set}" = set; then :
   10274   enableval=$enable_fast_install; p=${PACKAGE-default}
   10275     case $enableval in
   10276     yes) enable_fast_install=yes ;;
   10277     no) enable_fast_install=no ;;
   10278     *)
   10279       enable_fast_install=no
   10280       # Look at the argument we got.  We use all the common list separators.
   10281       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   10282       for pkg in $enableval; do
   10283 	IFS=$lt_save_ifs
   10284 	if test "X$pkg" = "X$p"; then
   10285 	  enable_fast_install=yes
   10286 	fi
   10287       done
   10288       IFS=$lt_save_ifs
   10289       ;;
   10290     esac
   10291 else
   10292   enable_fast_install=yes
   10293 fi
   10294 
   10295 
   10296 
   10297 
   10298 
   10299 
   10300 
   10301 
   10302   shared_archive_member_spec=
   10303 case $host,$enable_shared in
   10304 power*-*-aix[5-9]*,yes)
   10305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   10306 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
   10307 
   10308 # Check whether --with-aix-soname was given.
   10309 if test "${with_aix_soname+set}" = set; then :
   10310   withval=$with_aix_soname; case $withval in
   10311     aix|svr4|both)
   10312       ;;
   10313     *)
   10314       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   10315       ;;
   10316     esac
   10317     lt_cv_with_aix_soname=$with_aix_soname
   10318 else
   10319   if ${lt_cv_with_aix_soname+:} false; then :
   10320   $as_echo_n "(cached) " >&6
   10321 else
   10322   lt_cv_with_aix_soname=aix
   10323 fi
   10324 
   10325     with_aix_soname=$lt_cv_with_aix_soname
   10326 fi
   10327 
   10328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   10329 $as_echo "$with_aix_soname" >&6; }
   10330   if test aix != "$with_aix_soname"; then
   10331     # For the AIX way of multilib, we name the shared archive member
   10332     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   10333     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   10334     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   10335     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   10336     if test 64 = "${OBJECT_MODE-32}"; then
   10337       shared_archive_member_spec=shr_64
   10338     else
   10339       shared_archive_member_spec=shr
   10340     fi
   10341   fi
   10342   ;;
   10343 *)
   10344   with_aix_soname=aix
   10345   ;;
   10346 esac
   10347 
   10348 
   10349 
   10350 
   10351 
   10352 
   10353 
   10354 
   10355 
   10356 
   10357 # This can be used to rebuild libtool when needed
   10358 LIBTOOL_DEPS=$ltmain
   10359 
   10360 # Always use our own libtool.
   10361 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   10362 
   10363 
   10364 
   10365 
   10366 
   10367 
   10368 
   10369 
   10370 
   10371 
   10372 
   10373 
   10374 
   10375 
   10376 
   10377 
   10378 
   10379 
   10380 
   10381 
   10382 
   10383 
   10384 
   10385 
   10386 
   10387 
   10388 
   10389 
   10390 
   10391 
   10392 test -z "$LN_S" && LN_S="ln -s"
   10393 
   10394 
   10395 
   10396 
   10397 
   10398 
   10399 
   10400 
   10401 
   10402 
   10403 
   10404 
   10405 
   10406 
   10407 if test -n "${ZSH_VERSION+set}"; then
   10408    setopt NO_GLOB_SUBST
   10409 fi
   10410 
   10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   10412 $as_echo_n "checking for objdir... " >&6; }
   10413 if ${lt_cv_objdir+:} false; then :
   10414   $as_echo_n "(cached) " >&6
   10415 else
   10416   rm -f .libs 2>/dev/null
   10417 mkdir .libs 2>/dev/null
   10418 if test -d .libs; then
   10419   lt_cv_objdir=.libs
   10420 else
   10421   # MS-DOS does not allow filenames that begin with a dot.
   10422   lt_cv_objdir=_libs
   10423 fi
   10424 rmdir .libs 2>/dev/null
   10425 fi
   10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   10427 $as_echo "$lt_cv_objdir" >&6; }
   10428 objdir=$lt_cv_objdir
   10429 
   10430 
   10431 
   10432 
   10433 
   10434 cat >>confdefs.h <<_ACEOF
   10435 #define LT_OBJDIR "$lt_cv_objdir/"
   10436 _ACEOF
   10437 
   10438 
   10439 
   10440 
   10441 case $host_os in
   10442 aix3*)
   10443   # AIX sometimes has problems with the GCC collect2 program.  For some
   10444   # reason, if we set the COLLECT_NAMES environment variable, the problems
   10445   # vanish in a puff of smoke.
   10446   if test set != "${COLLECT_NAMES+set}"; then
   10447     COLLECT_NAMES=
   10448     export COLLECT_NAMES
   10449   fi
   10450   ;;
   10451 esac
   10452 
   10453 # Global variables:
   10454 ofile=libtool
   10455 can_build_shared=yes
   10456 
   10457 # All known linkers require a '.a' archive for static linking (except MSVC,
   10458 # which needs '.lib').
   10459 libext=a
   10460 
   10461 with_gnu_ld=$lt_cv_prog_gnu_ld
   10462 
   10463 old_CC=$CC
   10464 old_CFLAGS=$CFLAGS
   10465 
   10466 # Set sane defaults for various variables
   10467 test -z "$CC" && CC=cc
   10468 test -z "$LTCC" && LTCC=$CC
   10469 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   10470 test -z "$LD" && LD=ld
   10471 test -z "$ac_objext" && ac_objext=o
   10472 
   10473 func_cc_basename $compiler
   10474 cc_basename=$func_cc_basename_result
   10475 
   10476 
   10477 # Only perform the check for file, if the check method requires it
   10478 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   10479 case $deplibs_check_method in
   10480 file_magic*)
   10481   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   10482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   10483 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   10484 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   10485   $as_echo_n "(cached) " >&6
   10486 else
   10487   case $MAGIC_CMD in
   10488 [\\/*] |  ?:[\\/]*)
   10489   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   10490   ;;
   10491 *)
   10492   lt_save_MAGIC_CMD=$MAGIC_CMD
   10493   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   10494   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   10495   for ac_dir in $ac_dummy; do
   10496     IFS=$lt_save_ifs
   10497     test -z "$ac_dir" && ac_dir=.
   10498     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   10499       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   10500       if test -n "$file_magic_test_file"; then
   10501 	case $deplibs_check_method in
   10502 	"file_magic "*)
   10503 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   10504 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   10505 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   10506 	    $EGREP "$file_magic_regex" > /dev/null; then
   10507 	    :
   10508 	  else
   10509 	    cat <<_LT_EOF 1>&2
   10510 
   10511 *** Warning: the command libtool uses to detect shared libraries,
   10512 *** $file_magic_cmd, produces output that libtool cannot recognize.
   10513 *** The result is that libtool may fail to recognize shared libraries
   10514 *** as such.  This will affect the creation of libtool libraries that
   10515 *** depend on shared libraries, but programs linked with such libtool
   10516 *** libraries will work regardless of this problem.  Nevertheless, you
   10517 *** may want to report the problem to your system manager and/or to
   10518 *** bug-libtool (at] gnu.org
   10519 
   10520 _LT_EOF
   10521 	  fi ;;
   10522 	esac
   10523       fi
   10524       break
   10525     fi
   10526   done
   10527   IFS=$lt_save_ifs
   10528   MAGIC_CMD=$lt_save_MAGIC_CMD
   10529   ;;
   10530 esac
   10531 fi
   10532 
   10533 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   10534 if test -n "$MAGIC_CMD"; then
   10535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   10536 $as_echo "$MAGIC_CMD" >&6; }
   10537 else
   10538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10539 $as_echo "no" >&6; }
   10540 fi
   10541 
   10542 
   10543 
   10544 
   10545 
   10546 if test -z "$lt_cv_path_MAGIC_CMD"; then
   10547   if test -n "$ac_tool_prefix"; then
   10548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   10549 $as_echo_n "checking for file... " >&6; }
   10550 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   10551   $as_echo_n "(cached) " >&6
   10552 else
   10553   case $MAGIC_CMD in
   10554 [\\/*] |  ?:[\\/]*)
   10555   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   10556   ;;
   10557 *)
   10558   lt_save_MAGIC_CMD=$MAGIC_CMD
   10559   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   10560   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   10561   for ac_dir in $ac_dummy; do
   10562     IFS=$lt_save_ifs
   10563     test -z "$ac_dir" && ac_dir=.
   10564     if test -f "$ac_dir/file"; then
   10565       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   10566       if test -n "$file_magic_test_file"; then
   10567 	case $deplibs_check_method in
   10568 	"file_magic "*)
   10569 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   10570 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   10571 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   10572 	    $EGREP "$file_magic_regex" > /dev/null; then
   10573 	    :
   10574 	  else
   10575 	    cat <<_LT_EOF 1>&2
   10576 
   10577 *** Warning: the command libtool uses to detect shared libraries,
   10578 *** $file_magic_cmd, produces output that libtool cannot recognize.
   10579 *** The result is that libtool may fail to recognize shared libraries
   10580 *** as such.  This will affect the creation of libtool libraries that
   10581 *** depend on shared libraries, but programs linked with such libtool
   10582 *** libraries will work regardless of this problem.  Nevertheless, you
   10583 *** may want to report the problem to your system manager and/or to
   10584 *** bug-libtool (at] gnu.org
   10585 
   10586 _LT_EOF
   10587 	  fi ;;
   10588 	esac
   10589       fi
   10590       break
   10591     fi
   10592   done
   10593   IFS=$lt_save_ifs
   10594   MAGIC_CMD=$lt_save_MAGIC_CMD
   10595   ;;
   10596 esac
   10597 fi
   10598 
   10599 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   10600 if test -n "$MAGIC_CMD"; then
   10601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   10602 $as_echo "$MAGIC_CMD" >&6; }
   10603 else
   10604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10605 $as_echo "no" >&6; }
   10606 fi
   10607 
   10608 
   10609   else
   10610     MAGIC_CMD=:
   10611   fi
   10612 fi
   10613 
   10614   fi
   10615   ;;
   10616 esac
   10617 
   10618 # Use C for the default configuration in the libtool script
   10619 
   10620 lt_save_CC=$CC
   10621 ac_ext=c
   10622 ac_cpp='$CPP $CPPFLAGS'
   10623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   10626 
   10627 
   10628 # Source file extension for C test sources.
   10629 ac_ext=c
   10630 
   10631 # Object file extension for compiled C test sources.
   10632 objext=o
   10633 objext=$objext
   10634 
   10635 # Code to be used in simple compile tests
   10636 lt_simple_compile_test_code="int some_variable = 0;"
   10637 
   10638 # Code to be used in simple link tests
   10639 lt_simple_link_test_code='int main(){return(0);}'
   10640 
   10641 
   10642 
   10643 
   10644 
   10645 
   10646 
   10647 # If no C compiler was specified, use CC.
   10648 LTCC=${LTCC-"$CC"}
   10649 
   10650 # If no C compiler flags were specified, use CFLAGS.
   10651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   10652 
   10653 # Allow CC to be a program name with arguments.
   10654 compiler=$CC
   10655 
   10656 # Save the default compiler, since it gets overwritten when the other
   10657 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   10658 compiler_DEFAULT=$CC
   10659 
   10660 # save warnings/boilerplate of simple test code
   10661 ac_outfile=conftest.$ac_objext
   10662 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   10663 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   10664 _lt_compiler_boilerplate=`cat conftest.err`
   10665 $RM conftest*
   10666 
   10667 ac_outfile=conftest.$ac_objext
   10668 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   10669 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   10670 _lt_linker_boilerplate=`cat conftest.err`
   10671 $RM -r conftest*
   10672 
   10673 
   10674 if test -n "$compiler"; then
   10675 
   10676 lt_prog_compiler_no_builtin_flag=
   10677 
   10678 if test yes = "$GCC"; then
   10679   case $cc_basename in
   10680   nvcc*)
   10681     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   10682   *)
   10683     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   10684   esac
   10685 
   10686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   10687 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   10688 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   10689   $as_echo_n "(cached) " >&6
   10690 else
   10691   lt_cv_prog_compiler_rtti_exceptions=no
   10692    ac_outfile=conftest.$ac_objext
   10693    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   10694    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   10695    # Insert the option either (1) after the last *FLAGS variable, or
   10696    # (2) before a word containing "conftest.", or (3) at the end.
   10697    # Note that $ac_compile itself does not contain backslashes and begins
   10698    # with a dollar sign (not a hyphen), so the echo should work correctly.
   10699    # The option is referenced via a variable to avoid confusing sed.
   10700    lt_compile=`echo "$ac_compile" | $SED \
   10701    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   10702    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   10703    -e 's:$: $lt_compiler_flag:'`
   10704    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   10705    (eval "$lt_compile" 2>conftest.err)
   10706    ac_status=$?
   10707    cat conftest.err >&5
   10708    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10709    if (exit $ac_status) && test -s "$ac_outfile"; then
   10710      # The compiler can only warn and ignore the option if not recognized
   10711      # So say no if there are warnings other than the usual output.
   10712      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   10713      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   10714      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   10715        lt_cv_prog_compiler_rtti_exceptions=yes
   10716      fi
   10717    fi
   10718    $RM conftest*
   10719 
   10720 fi
   10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   10722 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   10723 
   10724 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   10725     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   10726 else
   10727     :
   10728 fi
   10729 
   10730 fi
   10731 
   10732 
   10733 
   10734 
   10735 
   10736 
   10737   lt_prog_compiler_wl=
   10738 lt_prog_compiler_pic=
   10739 lt_prog_compiler_static=
   10740 
   10741 
   10742   if test yes = "$GCC"; then
   10743     lt_prog_compiler_wl='-Wl,'
   10744     lt_prog_compiler_static='-static'
   10745 
   10746     case $host_os in
   10747       aix*)
   10748       # All AIX code is PIC.
   10749       if test ia64 = "$host_cpu"; then
   10750 	# AIX 5 now supports IA64 processor
   10751 	lt_prog_compiler_static='-Bstatic'
   10752       fi
   10753       lt_prog_compiler_pic='-fPIC'
   10754       ;;
   10755 
   10756     amigaos*)
   10757       case $host_cpu in
   10758       powerpc)
   10759             # see comment about AmigaOS4 .so support
   10760             lt_prog_compiler_pic='-fPIC'
   10761         ;;
   10762       m68k)
   10763             # FIXME: we need at least 68020 code to build shared libraries, but
   10764             # adding the '-m68020' flag to GCC prevents building anything better,
   10765             # like '-m68040'.
   10766             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   10767         ;;
   10768       esac
   10769       ;;
   10770 
   10771     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   10772       # PIC is the default for these OSes.
   10773       ;;
   10774 
   10775     mingw* | cygwin* | pw32* | os2* | cegcc*)
   10776       # This hack is so that the source file can tell whether it is being
   10777       # built for inclusion in a dll (and should export symbols for example).
   10778       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   10779       # (--disable-auto-import) libraries
   10780       lt_prog_compiler_pic='-DDLL_EXPORT'
   10781       case $host_os in
   10782       os2*)
   10783 	lt_prog_compiler_static='$wl-static'
   10784 	;;
   10785       esac
   10786       ;;
   10787 
   10788     darwin* | rhapsody*)
   10789       # PIC is the default on this platform
   10790       # Common symbols not allowed in MH_DYLIB files
   10791       lt_prog_compiler_pic='-fno-common'
   10792       ;;
   10793 
   10794     haiku*)
   10795       # PIC is the default for Haiku.
   10796       # The "-static" flag exists, but is broken.
   10797       lt_prog_compiler_static=
   10798       ;;
   10799 
   10800     hpux*)
   10801       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   10802       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   10803       # sets the default TLS model and affects inlining.
   10804       case $host_cpu in
   10805       hppa*64*)
   10806 	# +Z the default
   10807 	;;
   10808       *)
   10809 	lt_prog_compiler_pic='-fPIC'
   10810 	;;
   10811       esac
   10812       ;;
   10813 
   10814     interix[3-9]*)
   10815       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   10816       # Instead, we relocate shared libraries at runtime.
   10817       ;;
   10818 
   10819     msdosdjgpp*)
   10820       # Just because we use GCC doesn't mean we suddenly get shared libraries
   10821       # on systems that don't support them.
   10822       lt_prog_compiler_can_build_shared=no
   10823       enable_shared=no
   10824       ;;
   10825 
   10826     *nto* | *qnx*)
   10827       # QNX uses GNU C++, but need to define -shared option too, otherwise
   10828       # it will coredump.
   10829       lt_prog_compiler_pic='-fPIC -shared'
   10830       ;;
   10831 
   10832     sysv4*MP*)
   10833       if test -d /usr/nec; then
   10834 	lt_prog_compiler_pic=-Kconform_pic
   10835       fi
   10836       ;;
   10837 
   10838     *)
   10839       lt_prog_compiler_pic='-fPIC'
   10840       ;;
   10841     esac
   10842 
   10843     case $cc_basename in
   10844     nvcc*) # Cuda Compiler Driver 2.2
   10845       lt_prog_compiler_wl='-Xlinker '
   10846       if test -n "$lt_prog_compiler_pic"; then
   10847         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   10848       fi
   10849       ;;
   10850     esac
   10851   else
   10852     # PORTME Check for flag to pass linker flags through the system compiler.
   10853     case $host_os in
   10854     aix*)
   10855       lt_prog_compiler_wl='-Wl,'
   10856       if test ia64 = "$host_cpu"; then
   10857 	# AIX 5 now supports IA64 processor
   10858 	lt_prog_compiler_static='-Bstatic'
   10859       else
   10860 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   10861       fi
   10862       ;;
   10863 
   10864     darwin* | rhapsody*)
   10865       # PIC is the default on this platform
   10866       # Common symbols not allowed in MH_DYLIB files
   10867       lt_prog_compiler_pic='-fno-common'
   10868       case $cc_basename in
   10869       nagfor*)
   10870         # NAG Fortran compiler
   10871         lt_prog_compiler_wl='-Wl,-Wl,,'
   10872         lt_prog_compiler_pic='-PIC'
   10873         lt_prog_compiler_static='-Bstatic'
   10874         ;;
   10875       esac
   10876       ;;
   10877 
   10878     mingw* | cygwin* | pw32* | os2* | cegcc*)
   10879       # This hack is so that the source file can tell whether it is being
   10880       # built for inclusion in a dll (and should export symbols for example).
   10881       lt_prog_compiler_pic='-DDLL_EXPORT'
   10882       case $host_os in
   10883       os2*)
   10884 	lt_prog_compiler_static='$wl-static'
   10885 	;;
   10886       esac
   10887       ;;
   10888 
   10889     hpux9* | hpux10* | hpux11*)
   10890       lt_prog_compiler_wl='-Wl,'
   10891       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   10892       # not for PA HP-UX.
   10893       case $host_cpu in
   10894       hppa*64*|ia64*)
   10895 	# +Z the default
   10896 	;;
   10897       *)
   10898 	lt_prog_compiler_pic='+Z'
   10899 	;;
   10900       esac
   10901       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   10902       lt_prog_compiler_static='$wl-a ${wl}archive'
   10903       ;;
   10904 
   10905     irix5* | irix6* | nonstopux*)
   10906       lt_prog_compiler_wl='-Wl,'
   10907       # PIC (with -KPIC) is the default.
   10908       lt_prog_compiler_static='-non_shared'
   10909       ;;
   10910 
   10911     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   10912       case $cc_basename in
   10913       # old Intel for x86_64, which still supported -KPIC.
   10914       ecc*)
   10915 	lt_prog_compiler_wl='-Wl,'
   10916 	lt_prog_compiler_pic='-KPIC'
   10917 	lt_prog_compiler_static='-static'
   10918         ;;
   10919       # icc used to be incompatible with GCC.
   10920       # ICC 10 doesn't accept -KPIC any more.
   10921       icc* | ifort*)
   10922 	lt_prog_compiler_wl='-Wl,'
   10923 	lt_prog_compiler_pic='-fPIC'
   10924 	lt_prog_compiler_static='-static'
   10925         ;;
   10926       # Lahey Fortran 8.1.
   10927       lf95*)
   10928 	lt_prog_compiler_wl='-Wl,'
   10929 	lt_prog_compiler_pic='--shared'
   10930 	lt_prog_compiler_static='--static'
   10931 	;;
   10932       nagfor*)
   10933 	# NAG Fortran compiler
   10934 	lt_prog_compiler_wl='-Wl,-Wl,,'
   10935 	lt_prog_compiler_pic='-PIC'
   10936 	lt_prog_compiler_static='-Bstatic'
   10937 	;;
   10938       tcc*)
   10939 	# Fabrice Bellard et al's Tiny C Compiler
   10940 	lt_prog_compiler_wl='-Wl,'
   10941 	lt_prog_compiler_pic='-fPIC'
   10942 	lt_prog_compiler_static='-static'
   10943 	;;
   10944       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   10945         # Portland Group compilers (*not* the Pentium gcc compiler,
   10946 	# which looks to be a dead project)
   10947 	lt_prog_compiler_wl='-Wl,'
   10948 	lt_prog_compiler_pic='-fpic'
   10949 	lt_prog_compiler_static='-Bstatic'
   10950         ;;
   10951       ccc*)
   10952         lt_prog_compiler_wl='-Wl,'
   10953         # All Alpha code is PIC.
   10954         lt_prog_compiler_static='-non_shared'
   10955         ;;
   10956       xl* | bgxl* | bgf* | mpixl*)
   10957 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   10958 	lt_prog_compiler_wl='-Wl,'
   10959 	lt_prog_compiler_pic='-qpic'
   10960 	lt_prog_compiler_static='-qstaticlink'
   10961 	;;
   10962       *)
   10963 	case `$CC -V 2>&1 | sed 5q` in
   10964 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   10965 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   10966 	  lt_prog_compiler_pic='-KPIC'
   10967 	  lt_prog_compiler_static='-Bstatic'
   10968 	  lt_prog_compiler_wl=''
   10969 	  ;;
   10970 	*Sun\ F* | *Sun*Fortran*)
   10971 	  lt_prog_compiler_pic='-KPIC'
   10972 	  lt_prog_compiler_static='-Bstatic'
   10973 	  lt_prog_compiler_wl='-Qoption ld '
   10974 	  ;;
   10975 	*Sun\ C*)
   10976 	  # Sun C 5.9
   10977 	  lt_prog_compiler_pic='-KPIC'
   10978 	  lt_prog_compiler_static='-Bstatic'
   10979 	  lt_prog_compiler_wl='-Wl,'
   10980 	  ;;
   10981         *Intel*\ [CF]*Compiler*)
   10982 	  lt_prog_compiler_wl='-Wl,'
   10983 	  lt_prog_compiler_pic='-fPIC'
   10984 	  lt_prog_compiler_static='-static'
   10985 	  ;;
   10986 	*Portland\ Group*)
   10987 	  lt_prog_compiler_wl='-Wl,'
   10988 	  lt_prog_compiler_pic='-fpic'
   10989 	  lt_prog_compiler_static='-Bstatic'
   10990 	  ;;
   10991 	esac
   10992 	;;
   10993       esac
   10994       ;;
   10995 
   10996     newsos6)
   10997       lt_prog_compiler_pic='-KPIC'
   10998       lt_prog_compiler_static='-Bstatic'
   10999       ;;
   11000 
   11001     *nto* | *qnx*)
   11002       # QNX uses GNU C++, but need to define -shared option too, otherwise
   11003       # it will coredump.
   11004       lt_prog_compiler_pic='-fPIC -shared'
   11005       ;;
   11006 
   11007     osf3* | osf4* | osf5*)
   11008       lt_prog_compiler_wl='-Wl,'
   11009       # All OSF/1 code is PIC.
   11010       lt_prog_compiler_static='-non_shared'
   11011       ;;
   11012 
   11013     rdos*)
   11014       lt_prog_compiler_static='-non_shared'
   11015       ;;
   11016 
   11017     solaris*)
   11018       lt_prog_compiler_pic='-KPIC'
   11019       lt_prog_compiler_static='-Bstatic'
   11020       case $cc_basename in
   11021       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   11022 	lt_prog_compiler_wl='-Qoption ld ';;
   11023       *)
   11024 	lt_prog_compiler_wl='-Wl,';;
   11025       esac
   11026       ;;
   11027 
   11028     sunos4*)
   11029       lt_prog_compiler_wl='-Qoption ld '
   11030       lt_prog_compiler_pic='-PIC'
   11031       lt_prog_compiler_static='-Bstatic'
   11032       ;;
   11033 
   11034     sysv4 | sysv4.2uw2* | sysv4.3*)
   11035       lt_prog_compiler_wl='-Wl,'
   11036       lt_prog_compiler_pic='-KPIC'
   11037       lt_prog_compiler_static='-Bstatic'
   11038       ;;
   11039 
   11040     sysv4*MP*)
   11041       if test -d /usr/nec; then
   11042 	lt_prog_compiler_pic='-Kconform_pic'
   11043 	lt_prog_compiler_static='-Bstatic'
   11044       fi
   11045       ;;
   11046 
   11047     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   11048       lt_prog_compiler_wl='-Wl,'
   11049       lt_prog_compiler_pic='-KPIC'
   11050       lt_prog_compiler_static='-Bstatic'
   11051       ;;
   11052 
   11053     unicos*)
   11054       lt_prog_compiler_wl='-Wl,'
   11055       lt_prog_compiler_can_build_shared=no
   11056       ;;
   11057 
   11058     uts4*)
   11059       lt_prog_compiler_pic='-pic'
   11060       lt_prog_compiler_static='-Bstatic'
   11061       ;;
   11062 
   11063     *)
   11064       lt_prog_compiler_can_build_shared=no
   11065       ;;
   11066     esac
   11067   fi
   11068 
   11069 case $host_os in
   11070   # For platforms that do not support PIC, -DPIC is meaningless:
   11071   *djgpp*)
   11072     lt_prog_compiler_pic=
   11073     ;;
   11074   *)
   11075     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   11076     ;;
   11077 esac
   11078 
   11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   11080 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   11081 if ${lt_cv_prog_compiler_pic+:} false; then :
   11082   $as_echo_n "(cached) " >&6
   11083 else
   11084   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   11085 fi
   11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   11087 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
   11088 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   11089 
   11090 #
   11091 # Check to make sure the PIC flag actually works.
   11092 #
   11093 if test -n "$lt_prog_compiler_pic"; then
   11094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   11095 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   11096 if ${lt_cv_prog_compiler_pic_works+:} false; then :
   11097   $as_echo_n "(cached) " >&6
   11098 else
   11099   lt_cv_prog_compiler_pic_works=no
   11100    ac_outfile=conftest.$ac_objext
   11101    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   11102    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   11103    # Insert the option either (1) after the last *FLAGS variable, or
   11104    # (2) before a word containing "conftest.", or (3) at the end.
   11105    # Note that $ac_compile itself does not contain backslashes and begins
   11106    # with a dollar sign (not a hyphen), so the echo should work correctly.
   11107    # The option is referenced via a variable to avoid confusing sed.
   11108    lt_compile=`echo "$ac_compile" | $SED \
   11109    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   11110    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   11111    -e 's:$: $lt_compiler_flag:'`
   11112    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   11113    (eval "$lt_compile" 2>conftest.err)
   11114    ac_status=$?
   11115    cat conftest.err >&5
   11116    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11117    if (exit $ac_status) && test -s "$ac_outfile"; then
   11118      # The compiler can only warn and ignore the option if not recognized
   11119      # So say no if there are warnings other than the usual output.
   11120      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   11121      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   11122      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   11123        lt_cv_prog_compiler_pic_works=yes
   11124      fi
   11125    fi
   11126    $RM conftest*
   11127 
   11128 fi
   11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   11130 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   11131 
   11132 if test yes = "$lt_cv_prog_compiler_pic_works"; then
   11133     case $lt_prog_compiler_pic in
   11134      "" | " "*) ;;
   11135      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   11136      esac
   11137 else
   11138     lt_prog_compiler_pic=
   11139      lt_prog_compiler_can_build_shared=no
   11140 fi
   11141 
   11142 fi
   11143 
   11144 
   11145 
   11146 
   11147 
   11148 
   11149 
   11150 
   11151 
   11152 
   11153 
   11154 #
   11155 # Check to make sure the static flag actually works.
   11156 #
   11157 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   11159 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   11160 if ${lt_cv_prog_compiler_static_works+:} false; then :
   11161   $as_echo_n "(cached) " >&6
   11162 else
   11163   lt_cv_prog_compiler_static_works=no
   11164    save_LDFLAGS=$LDFLAGS
   11165    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   11166    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   11167    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   11168      # The linker can only warn and ignore the option if not recognized
   11169      # So say no if there are warnings
   11170      if test -s conftest.err; then
   11171        # Append any errors to the config.log.
   11172        cat conftest.err 1>&5
   11173        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   11174        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   11175        if diff conftest.exp conftest.er2 >/dev/null; then
   11176          lt_cv_prog_compiler_static_works=yes
   11177        fi
   11178      else
   11179        lt_cv_prog_compiler_static_works=yes
   11180      fi
   11181    fi
   11182    $RM -r conftest*
   11183    LDFLAGS=$save_LDFLAGS
   11184 
   11185 fi
   11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   11187 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   11188 
   11189 if test yes = "$lt_cv_prog_compiler_static_works"; then
   11190     :
   11191 else
   11192     lt_prog_compiler_static=
   11193 fi
   11194 
   11195 
   11196 
   11197 
   11198 
   11199 
   11200 
   11201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   11202 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   11203 if ${lt_cv_prog_compiler_c_o+:} false; then :
   11204   $as_echo_n "(cached) " >&6
   11205 else
   11206   lt_cv_prog_compiler_c_o=no
   11207    $RM -r conftest 2>/dev/null
   11208    mkdir conftest
   11209    cd conftest
   11210    mkdir out
   11211    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   11212 
   11213    lt_compiler_flag="-o out/conftest2.$ac_objext"
   11214    # Insert the option either (1) after the last *FLAGS variable, or
   11215    # (2) before a word containing "conftest.", or (3) at the end.
   11216    # Note that $ac_compile itself does not contain backslashes and begins
   11217    # with a dollar sign (not a hyphen), so the echo should work correctly.
   11218    lt_compile=`echo "$ac_compile" | $SED \
   11219    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   11220    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   11221    -e 's:$: $lt_compiler_flag:'`
   11222    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   11223    (eval "$lt_compile" 2>out/conftest.err)
   11224    ac_status=$?
   11225    cat out/conftest.err >&5
   11226    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11227    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   11228    then
   11229      # The compiler can only warn and ignore the option if not recognized
   11230      # So say no if there are warnings
   11231      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   11232      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   11233      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   11234        lt_cv_prog_compiler_c_o=yes
   11235      fi
   11236    fi
   11237    chmod u+w . 2>&5
   11238    $RM conftest*
   11239    # SGI C++ compiler will create directory out/ii_files/ for
   11240    # template instantiation
   11241    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   11242    $RM out/* && rmdir out
   11243    cd ..
   11244    $RM -r conftest
   11245    $RM conftest*
   11246 
   11247 fi
   11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   11249 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   11250 
   11251 
   11252 
   11253 
   11254 
   11255 
   11256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   11257 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   11258 if ${lt_cv_prog_compiler_c_o+:} false; then :
   11259   $as_echo_n "(cached) " >&6
   11260 else
   11261   lt_cv_prog_compiler_c_o=no
   11262    $RM -r conftest 2>/dev/null
   11263    mkdir conftest
   11264    cd conftest
   11265    mkdir out
   11266    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   11267 
   11268    lt_compiler_flag="-o out/conftest2.$ac_objext"
   11269    # Insert the option either (1) after the last *FLAGS variable, or
   11270    # (2) before a word containing "conftest.", or (3) at the end.
   11271    # Note that $ac_compile itself does not contain backslashes and begins
   11272    # with a dollar sign (not a hyphen), so the echo should work correctly.
   11273    lt_compile=`echo "$ac_compile" | $SED \
   11274    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   11275    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   11276    -e 's:$: $lt_compiler_flag:'`
   11277    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   11278    (eval "$lt_compile" 2>out/conftest.err)
   11279    ac_status=$?
   11280    cat out/conftest.err >&5
   11281    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11282    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   11283    then
   11284      # The compiler can only warn and ignore the option if not recognized
   11285      # So say no if there are warnings
   11286      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   11287      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   11288      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   11289        lt_cv_prog_compiler_c_o=yes
   11290      fi
   11291    fi
   11292    chmod u+w . 2>&5
   11293    $RM conftest*
   11294    # SGI C++ compiler will create directory out/ii_files/ for
   11295    # template instantiation
   11296    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   11297    $RM out/* && rmdir out
   11298    cd ..
   11299    $RM -r conftest
   11300    $RM conftest*
   11301 
   11302 fi
   11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   11304 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   11305 
   11306 
   11307 
   11308 
   11309 hard_links=nottested
   11310 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   11311   # do not overwrite the value of need_locks provided by the user
   11312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   11313 $as_echo_n "checking if we can lock with hard links... " >&6; }
   11314   hard_links=yes
   11315   $RM conftest*
   11316   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   11317   touch conftest.a
   11318   ln conftest.a conftest.b 2>&5 || hard_links=no
   11319   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   11320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   11321 $as_echo "$hard_links" >&6; }
   11322   if test no = "$hard_links"; then
   11323     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   11324 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   11325     need_locks=warn
   11326   fi
   11327 else
   11328   need_locks=no
   11329 fi
   11330 
   11331 
   11332 
   11333 
   11334 
   11335 
   11336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   11337 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   11338 
   11339   runpath_var=
   11340   allow_undefined_flag=
   11341   always_export_symbols=no
   11342   archive_cmds=
   11343   archive_expsym_cmds=
   11344   compiler_needs_object=no
   11345   enable_shared_with_static_runtimes=no
   11346   export_dynamic_flag_spec=
   11347   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   11348   hardcode_automatic=no
   11349   hardcode_direct=no
   11350   hardcode_direct_absolute=no
   11351   hardcode_libdir_flag_spec=
   11352   hardcode_libdir_separator=
   11353   hardcode_minus_L=no
   11354   hardcode_shlibpath_var=unsupported
   11355   inherit_rpath=no
   11356   link_all_deplibs=unknown
   11357   module_cmds=
   11358   module_expsym_cmds=
   11359   old_archive_from_new_cmds=
   11360   old_archive_from_expsyms_cmds=
   11361   thread_safe_flag_spec=
   11362   whole_archive_flag_spec=
   11363   # include_expsyms should be a list of space-separated symbols to be *always*
   11364   # included in the symbol list
   11365   include_expsyms=
   11366   # exclude_expsyms can be an extended regexp of symbols to exclude
   11367   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   11368   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   11369   # as well as any symbol that contains 'd'.
   11370   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   11371   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   11372   # platforms (ab)use it in PIC code, but their linkers get confused if
   11373   # the symbol is explicitly referenced.  Since portable code cannot
   11374   # rely on this symbol name, it's probably fine to never include it in
   11375   # preloaded symbol tables.
   11376   # Exclude shared library initialization/finalization symbols.
   11377   extract_expsyms_cmds=
   11378 
   11379   case $host_os in
   11380   cygwin* | mingw* | pw32* | cegcc*)
   11381     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   11382     # When not using gcc, we currently assume that we are using
   11383     # Microsoft Visual C++.
   11384     if test yes != "$GCC"; then
   11385       with_gnu_ld=no
   11386     fi
   11387     ;;
   11388   interix*)
   11389     # we just hope/assume this is gcc and not c89 (= MSVC++)
   11390     with_gnu_ld=yes
   11391     ;;
   11392   openbsd* | bitrig*)
   11393     with_gnu_ld=no
   11394     ;;
   11395   esac
   11396 
   11397   ld_shlibs=yes
   11398 
   11399   # On some targets, GNU ld is compatible enough with the native linker
   11400   # that we're better off using the native interface for both.
   11401   lt_use_gnu_ld_interface=no
   11402   if test yes = "$with_gnu_ld"; then
   11403     case $host_os in
   11404       aix*)
   11405 	# The AIX port of GNU ld has always aspired to compatibility
   11406 	# with the native linker.  However, as the warning in the GNU ld
   11407 	# block says, versions before 2.19.5* couldn't really create working
   11408 	# shared libraries, regardless of the interface used.
   11409 	case `$LD -v 2>&1` in
   11410 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   11411 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   11412 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   11413 	  *)
   11414 	    lt_use_gnu_ld_interface=yes
   11415 	    ;;
   11416 	esac
   11417 	;;
   11418       *)
   11419 	lt_use_gnu_ld_interface=yes
   11420 	;;
   11421     esac
   11422   fi
   11423 
   11424   if test yes = "$lt_use_gnu_ld_interface"; then
   11425     # If archive_cmds runs LD, not CC, wlarc should be empty
   11426     wlarc='$wl'
   11427 
   11428     # Set some defaults for GNU ld with shared library support. These
   11429     # are reset later if shared libraries are not supported. Putting them
   11430     # here allows them to be overridden if necessary.
   11431     runpath_var=LD_RUN_PATH
   11432     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   11433     export_dynamic_flag_spec='$wl--export-dynamic'
   11434     # ancient GNU ld didn't support --whole-archive et. al.
   11435     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   11436       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   11437     else
   11438       whole_archive_flag_spec=
   11439     fi
   11440     supports_anon_versioning=no
   11441     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
   11442       *GNU\ gold*) supports_anon_versioning=yes ;;
   11443       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   11444       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   11445       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   11446       *\ 2.11.*) ;; # other 2.11 versions
   11447       *) supports_anon_versioning=yes ;;
   11448     esac
   11449 
   11450     # See if GNU ld supports shared libraries.
   11451     case $host_os in
   11452     aix[3-9]*)
   11453       # On AIX/PPC, the GNU linker is very broken
   11454       if test ia64 != "$host_cpu"; then
   11455 	ld_shlibs=no
   11456 	cat <<_LT_EOF 1>&2
   11457 
   11458 *** Warning: the GNU linker, at least up to release 2.19, is reported
   11459 *** to be unable to reliably create shared libraries on AIX.
   11460 *** Therefore, libtool is disabling shared libraries support.  If you
   11461 *** really care for shared libraries, you may want to install binutils
   11462 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   11463 *** You will then need to restart the configuration process.
   11464 
   11465 _LT_EOF
   11466       fi
   11467       ;;
   11468 
   11469     amigaos*)
   11470       case $host_cpu in
   11471       powerpc)
   11472             # see comment about AmigaOS4 .so support
   11473             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11474             archive_expsym_cmds=''
   11475         ;;
   11476       m68k)
   11477             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)'
   11478             hardcode_libdir_flag_spec='-L$libdir'
   11479             hardcode_minus_L=yes
   11480         ;;
   11481       esac
   11482       ;;
   11483 
   11484     beos*)
   11485       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   11486 	allow_undefined_flag=unsupported
   11487 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   11488 	# support --undefined.  This deserves some investigation.  FIXME
   11489 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11490       else
   11491 	ld_shlibs=no
   11492       fi
   11493       ;;
   11494 
   11495     cygwin* | mingw* | pw32* | cegcc*)
   11496       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   11497       # as there is no search path for DLLs.
   11498       hardcode_libdir_flag_spec='-L$libdir'
   11499       export_dynamic_flag_spec='$wl--export-all-symbols'
   11500       allow_undefined_flag=unsupported
   11501       always_export_symbols=no
   11502       enable_shared_with_static_runtimes=yes
   11503       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'
   11504       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   11505 
   11506       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   11507         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   11508 	# If the export-symbols file already is a .def file, use it as
   11509 	# is; otherwise, prepend EXPORTS...
   11510 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   11511           cp $export_symbols $output_objdir/$soname.def;
   11512         else
   11513           echo EXPORTS > $output_objdir/$soname.def;
   11514           cat $export_symbols >> $output_objdir/$soname.def;
   11515         fi~
   11516         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   11517       else
   11518 	ld_shlibs=no
   11519       fi
   11520       ;;
   11521 
   11522     haiku*)
   11523       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11524       link_all_deplibs=yes
   11525       ;;
   11526 
   11527     os2*)
   11528       hardcode_libdir_flag_spec='-L$libdir'
   11529       hardcode_minus_L=yes
   11530       allow_undefined_flag=unsupported
   11531       shrext_cmds=.dll
   11532       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   11533 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   11534 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   11535 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   11536 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   11537 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   11538 	emximp -o $lib $output_objdir/$libname.def'
   11539       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   11540 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   11541 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   11542 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   11543 	prefix_cmds="$SED"~
   11544 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   11545 	  prefix_cmds="$prefix_cmds -e 1d";
   11546 	fi~
   11547 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   11548 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   11549 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   11550 	emximp -o $lib $output_objdir/$libname.def'
   11551       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   11552       enable_shared_with_static_runtimes=yes
   11553       ;;
   11554 
   11555     interix[3-9]*)
   11556       hardcode_direct=no
   11557       hardcode_shlibpath_var=no
   11558       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   11559       export_dynamic_flag_spec='$wl-E'
   11560       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   11561       # Instead, shared libraries are loaded at an image base (0x10000000 by
   11562       # default) and relocated if they conflict, which is a slow very memory
   11563       # consuming and fragmenting process.  To avoid this, we pick a random,
   11564       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   11565       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   11566       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   11567       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'
   11568       ;;
   11569 
   11570     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   11571       tmp_diet=no
   11572       if test linux-dietlibc = "$host_os"; then
   11573 	case $cc_basename in
   11574 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   11575 	esac
   11576       fi
   11577       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   11578 	 && test no = "$tmp_diet"
   11579       then
   11580 	tmp_addflag=' $pic_flag'
   11581 	tmp_sharedflag='-shared'
   11582 	case $cc_basename,$host_cpu in
   11583         pgcc*)				# Portland Group C compiler
   11584 	  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'
   11585 	  tmp_addflag=' $pic_flag'
   11586 	  ;;
   11587 	pgf77* | pgf90* | pgf95* | pgfortran*)
   11588 					# Portland Group f77 and f90 compilers
   11589 	  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'
   11590 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   11591 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   11592 	  tmp_addflag=' -i_dynamic' ;;
   11593 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   11594 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   11595 	ifc* | ifort*)			# Intel Fortran compiler
   11596 	  tmp_addflag=' -nofor_main' ;;
   11597 	lf95*)				# Lahey Fortran 8.1
   11598 	  whole_archive_flag_spec=
   11599 	  tmp_sharedflag='--shared' ;;
   11600         nagfor*)                        # NAGFOR 5.3
   11601           tmp_sharedflag='-Wl,-shared' ;;
   11602 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   11603 	  tmp_sharedflag='-qmkshrobj'
   11604 	  tmp_addflag= ;;
   11605 	nvcc*)	# Cuda Compiler Driver 2.2
   11606 	  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'
   11607 	  compiler_needs_object=yes
   11608 	  ;;
   11609 	esac
   11610 	case `$CC -V 2>&1 | sed 5q` in
   11611 	*Sun\ C*)			# Sun C 5.9
   11612 	  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'
   11613 	  compiler_needs_object=yes
   11614 	  tmp_sharedflag='-G' ;;
   11615 	*Sun\ F*)			# Sun Fortran 8.3
   11616 	  tmp_sharedflag='-G' ;;
   11617 	esac
   11618 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11619 
   11620         if test yes = "$supports_anon_versioning"; then
   11621           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   11622             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   11623             echo "local: *; };" >> $output_objdir/$libname.ver~
   11624             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   11625         fi
   11626 
   11627 	case $cc_basename in
   11628 	tcc*)
   11629 	  export_dynamic_flag_spec='-rdynamic'
   11630 	  ;;
   11631 	xlf* | bgf* | bgxlf* | mpixlf*)
   11632 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   11633 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   11634 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   11635 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   11636 	  if test yes = "$supports_anon_versioning"; then
   11637 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   11638               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   11639               echo "local: *; };" >> $output_objdir/$libname.ver~
   11640               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   11641 	  fi
   11642 	  ;;
   11643 	esac
   11644       else
   11645         ld_shlibs=no
   11646       fi
   11647       ;;
   11648 
   11649     netbsd*)
   11650       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   11651 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   11652 	wlarc=
   11653       else
   11654 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11655 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   11656       fi
   11657       ;;
   11658 
   11659     solaris*)
   11660       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   11661 	ld_shlibs=no
   11662 	cat <<_LT_EOF 1>&2
   11663 
   11664 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   11665 *** create shared libraries on Solaris systems.  Therefore, libtool
   11666 *** is disabling shared libraries support.  We urge you to upgrade GNU
   11667 *** binutils to release 2.9.1 or newer.  Another option is to modify
   11668 *** your PATH or compiler configuration so that the native linker is
   11669 *** used, and then restart.
   11670 
   11671 _LT_EOF
   11672       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   11673 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11674 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   11675       else
   11676 	ld_shlibs=no
   11677       fi
   11678       ;;
   11679 
   11680     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   11681       case `$LD -v 2>&1` in
   11682         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   11683 	ld_shlibs=no
   11684 	cat <<_LT_EOF 1>&2
   11685 
   11686 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   11687 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   11688 *** is disabling shared libraries support.  We urge you to upgrade GNU
   11689 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   11690 *** your PATH or compiler configuration so that the native linker is
   11691 *** used, and then restart.
   11692 
   11693 _LT_EOF
   11694 	;;
   11695 	*)
   11696 	  # For security reasons, it is highly recommended that you always
   11697 	  # use absolute paths for naming shared libraries, and exclude the
   11698 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   11699 	  # requires that you compile everything twice, which is a pain.
   11700 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   11701 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   11702 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11703 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   11704 	  else
   11705 	    ld_shlibs=no
   11706 	  fi
   11707 	;;
   11708       esac
   11709       ;;
   11710 
   11711     sunos4*)
   11712       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   11713       wlarc=
   11714       hardcode_direct=yes
   11715       hardcode_shlibpath_var=no
   11716       ;;
   11717 
   11718     *)
   11719       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   11720 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   11721 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   11722       else
   11723 	ld_shlibs=no
   11724       fi
   11725       ;;
   11726     esac
   11727 
   11728     if test no = "$ld_shlibs"; then
   11729       runpath_var=
   11730       hardcode_libdir_flag_spec=
   11731       export_dynamic_flag_spec=
   11732       whole_archive_flag_spec=
   11733     fi
   11734   else
   11735     # PORTME fill in a description of your system's linker (not GNU ld)
   11736     case $host_os in
   11737     aix3*)
   11738       allow_undefined_flag=unsupported
   11739       always_export_symbols=yes
   11740       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'
   11741       # Note: this linker hardcodes the directories in LIBPATH if there
   11742       # are no directories specified by -L.
   11743       hardcode_minus_L=yes
   11744       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   11745 	# Neither direct hardcoding nor static linking is supported with a
   11746 	# broken collect2.
   11747 	hardcode_direct=unsupported
   11748       fi
   11749       ;;
   11750 
   11751     aix[4-9]*)
   11752       if test ia64 = "$host_cpu"; then
   11753 	# On IA64, the linker does run time linking by default, so we don't
   11754 	# have to do anything special.
   11755 	aix_use_runtimelinking=no
   11756 	exp_sym_flag='-Bexport'
   11757 	no_entry_flag=
   11758       else
   11759 	# If we're using GNU nm, then we don't want the "-C" option.
   11760 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   11761 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   11762 	# weak defined symbols like other global defined symbols, whereas
   11763 	# GNU nm marks them as "W".
   11764 	# While the 'weak' keyword is ignored in the Export File, we need
   11765 	# it in the Import File for the 'aix-soname' feature, so we have
   11766 	# to replace the "-B" option with "-P" for AIX nm.
   11767 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   11768 	  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'
   11769 	else
   11770 	  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'
   11771 	fi
   11772 	aix_use_runtimelinking=no
   11773 
   11774 	# Test if we are trying to use run time linking or normal
   11775 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   11776 	# have runtime linking enabled, and use it for executables.
   11777 	# For shared libraries, we enable/disable runtime linking
   11778 	# depending on the kind of the shared library created -
   11779 	# when "with_aix_soname,aix_use_runtimelinking" is:
   11780 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   11781 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   11782 	#            lib.a           static archive
   11783 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   11784 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   11785 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   11786 	#            lib.a(lib.so.V) shared, rtl:no
   11787 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   11788 	#            lib.a           static archive
   11789 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   11790 	  for ld_flag in $LDFLAGS; do
   11791 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   11792 	    aix_use_runtimelinking=yes
   11793 	    break
   11794 	  fi
   11795 	  done
   11796 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   11797 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   11798 	    # so we don't have lib.a shared libs to link our executables.
   11799 	    # We have to force runtime linking in this case.
   11800 	    aix_use_runtimelinking=yes
   11801 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   11802 	  fi
   11803 	  ;;
   11804 	esac
   11805 
   11806 	exp_sym_flag='-bexport'
   11807 	no_entry_flag='-bnoentry'
   11808       fi
   11809 
   11810       # When large executables or shared objects are built, AIX ld can
   11811       # have problems creating the table of contents.  If linking a library
   11812       # or program results in "error TOC overflow" add -mminimal-toc to
   11813       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   11814       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   11815 
   11816       archive_cmds=''
   11817       hardcode_direct=yes
   11818       hardcode_direct_absolute=yes
   11819       hardcode_libdir_separator=':'
   11820       link_all_deplibs=yes
   11821       file_list_spec='$wl-f,'
   11822       case $with_aix_soname,$aix_use_runtimelinking in
   11823       aix,*) ;; # traditional, no import file
   11824       svr4,* | *,yes) # use import file
   11825 	# The Import File defines what to hardcode.
   11826 	hardcode_direct=no
   11827 	hardcode_direct_absolute=no
   11828 	;;
   11829       esac
   11830 
   11831       if test yes = "$GCC"; then
   11832 	case $host_os in aix4.[012]|aix4.[012].*)
   11833 	# We only want to do this on AIX 4.2 and lower, the check
   11834 	# below for broken collect2 doesn't work under 4.3+
   11835 	  collect2name=`$CC -print-prog-name=collect2`
   11836 	  if test -f "$collect2name" &&
   11837 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   11838 	  then
   11839 	  # We have reworked collect2
   11840 	  :
   11841 	  else
   11842 	  # We have old collect2
   11843 	  hardcode_direct=unsupported
   11844 	  # It fails to find uninstalled libraries when the uninstalled
   11845 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   11846 	  # to unsupported forces relinking
   11847 	  hardcode_minus_L=yes
   11848 	  hardcode_libdir_flag_spec='-L$libdir'
   11849 	  hardcode_libdir_separator=
   11850 	  fi
   11851 	  ;;
   11852 	esac
   11853 	shared_flag='-shared'
   11854 	if test yes = "$aix_use_runtimelinking"; then
   11855 	  shared_flag="$shared_flag "'$wl-G'
   11856 	fi
   11857 	# Need to ensure runtime linking is disabled for the traditional
   11858 	# shared library, or the linker may eventually find shared libraries
   11859 	# /with/ Import File - we do not want to mix them.
   11860 	shared_flag_aix='-shared'
   11861 	shared_flag_svr4='-shared $wl-G'
   11862       else
   11863 	# not using gcc
   11864 	if test ia64 = "$host_cpu"; then
   11865 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   11866 	# chokes on -Wl,-G. The following line is correct:
   11867 	  shared_flag='-G'
   11868 	else
   11869 	  if test yes = "$aix_use_runtimelinking"; then
   11870 	    shared_flag='$wl-G'
   11871 	  else
   11872 	    shared_flag='$wl-bM:SRE'
   11873 	  fi
   11874 	  shared_flag_aix='$wl-bM:SRE'
   11875 	  shared_flag_svr4='$wl-G'
   11876 	fi
   11877       fi
   11878 
   11879       export_dynamic_flag_spec='$wl-bexpall'
   11880       # It seems that -bexpall does not export symbols beginning with
   11881       # underscore (_), so it is better to generate a list of symbols to export.
   11882       always_export_symbols=yes
   11883       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   11884 	# Warning - without using the other runtime loading flags (-brtl),
   11885 	# -berok will link without error, but may produce a broken library.
   11886 	allow_undefined_flag='-berok'
   11887         # Determine the default libpath from the value encoded in an
   11888         # empty executable.
   11889         if test set = "${lt_cv_aix_libpath+set}"; then
   11890   aix_libpath=$lt_cv_aix_libpath
   11891 else
   11892   if ${lt_cv_aix_libpath_+:} false; then :
   11893   $as_echo_n "(cached) " >&6
   11894 else
   11895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11896 /* end confdefs.h.  */
   11897 
   11898 int
   11899 main ()
   11900 {
   11901 
   11902   ;
   11903   return 0;
   11904 }
   11905 _ACEOF
   11906 if ac_fn_c_try_link "$LINENO"; then :
   11907 
   11908   lt_aix_libpath_sed='
   11909       /Import File Strings/,/^$/ {
   11910 	  /^0/ {
   11911 	      s/^0  *\([^ ]*\) *$/\1/
   11912 	      p
   11913 	  }
   11914       }'
   11915   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11916   # Check for a 64-bit object if we didn't find anything.
   11917   if test -z "$lt_cv_aix_libpath_"; then
   11918     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11919   fi
   11920 fi
   11921 rm -f core conftest.err conftest.$ac_objext \
   11922     conftest$ac_exeext conftest.$ac_ext
   11923   if test -z "$lt_cv_aix_libpath_"; then
   11924     lt_cv_aix_libpath_=/usr/lib:/lib
   11925   fi
   11926 
   11927 fi
   11928 
   11929   aix_libpath=$lt_cv_aix_libpath_
   11930 fi
   11931 
   11932         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   11933         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
   11934       else
   11935 	if test ia64 = "$host_cpu"; then
   11936 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   11937 	  allow_undefined_flag="-z nodefs"
   11938 	  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"
   11939 	else
   11940 	 # Determine the default libpath from the value encoded in an
   11941 	 # empty executable.
   11942 	 if test set = "${lt_cv_aix_libpath+set}"; then
   11943   aix_libpath=$lt_cv_aix_libpath
   11944 else
   11945   if ${lt_cv_aix_libpath_+:} false; then :
   11946   $as_echo_n "(cached) " >&6
   11947 else
   11948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11949 /* end confdefs.h.  */
   11950 
   11951 int
   11952 main ()
   11953 {
   11954 
   11955   ;
   11956   return 0;
   11957 }
   11958 _ACEOF
   11959 if ac_fn_c_try_link "$LINENO"; then :
   11960 
   11961   lt_aix_libpath_sed='
   11962       /Import File Strings/,/^$/ {
   11963 	  /^0/ {
   11964 	      s/^0  *\([^ ]*\) *$/\1/
   11965 	      p
   11966 	  }
   11967       }'
   11968   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11969   # Check for a 64-bit object if we didn't find anything.
   11970   if test -z "$lt_cv_aix_libpath_"; then
   11971     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   11972   fi
   11973 fi
   11974 rm -f core conftest.err conftest.$ac_objext \
   11975     conftest$ac_exeext conftest.$ac_ext
   11976   if test -z "$lt_cv_aix_libpath_"; then
   11977     lt_cv_aix_libpath_=/usr/lib:/lib
   11978   fi
   11979 
   11980 fi
   11981 
   11982   aix_libpath=$lt_cv_aix_libpath_
   11983 fi
   11984 
   11985 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   11986 	  # Warning - without using the other run time loading flags,
   11987 	  # -berok will link without error, but may produce a broken library.
   11988 	  no_undefined_flag=' $wl-bernotok'
   11989 	  allow_undefined_flag=' $wl-berok'
   11990 	  if test yes = "$with_gnu_ld"; then
   11991 	    # We only use this code for GNU lds that support --whole-archive.
   11992 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   11993 	  else
   11994 	    # Exported symbols can be pulled into shared objects from archives
   11995 	    whole_archive_flag_spec='$convenience'
   11996 	  fi
   11997 	  archive_cmds_need_lc=yes
   11998 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   11999 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   12000 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   12001 	  if test svr4 != "$with_aix_soname"; then
   12002 	    # This is similar to how AIX traditionally builds its shared libraries.
   12003 	    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'
   12004 	  fi
   12005 	  if test aix != "$with_aix_soname"; then
   12006 	    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'
   12007 	  else
   12008 	    # used by -dlpreopen to get the symbols
   12009 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   12010 	  fi
   12011 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   12012 	fi
   12013       fi
   12014       ;;
   12015 
   12016     amigaos*)
   12017       case $host_cpu in
   12018       powerpc)
   12019             # see comment about AmigaOS4 .so support
   12020             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   12021             archive_expsym_cmds=''
   12022         ;;
   12023       m68k)
   12024             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)'
   12025             hardcode_libdir_flag_spec='-L$libdir'
   12026             hardcode_minus_L=yes
   12027         ;;
   12028       esac
   12029       ;;
   12030 
   12031     bsdi[45]*)
   12032       export_dynamic_flag_spec=-rdynamic
   12033       ;;
   12034 
   12035     cygwin* | mingw* | pw32* | cegcc*)
   12036       # When not using gcc, we currently assume that we are using
   12037       # Microsoft Visual C++.
   12038       # hardcode_libdir_flag_spec is actually meaningless, as there is
   12039       # no search path for DLLs.
   12040       case $cc_basename in
   12041       cl*)
   12042 	# Native MSVC
   12043 	hardcode_libdir_flag_spec=' '
   12044 	allow_undefined_flag=unsupported
   12045 	always_export_symbols=yes
   12046 	file_list_spec='@'
   12047 	# Tell ltmain to make .lib files, not .a files.
   12048 	libext=lib
   12049 	# Tell ltmain to make .dll files, not .so files.
   12050 	shrext_cmds=.dll
   12051 	# FIXME: Setting linknames here is a bad hack.
   12052 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   12053 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   12054             cp "$export_symbols" "$output_objdir/$soname.def";
   12055             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   12056           else
   12057             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   12058           fi~
   12059           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   12060           linknames='
   12061 	# The linker will not automatically build a static lib if we build a DLL.
   12062 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   12063 	enable_shared_with_static_runtimes=yes
   12064 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   12065 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   12066 	# Don't use ranlib
   12067 	old_postinstall_cmds='chmod 644 $oldlib'
   12068 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   12069           lt_tool_outputfile="@TOOL_OUTPUT@"~
   12070           case $lt_outputfile in
   12071             *.exe|*.EXE) ;;
   12072             *)
   12073               lt_outputfile=$lt_outputfile.exe
   12074               lt_tool_outputfile=$lt_tool_outputfile.exe
   12075               ;;
   12076           esac~
   12077           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   12078             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   12079             $RM "$lt_outputfile.manifest";
   12080           fi'
   12081 	;;
   12082       *)
   12083 	# Assume MSVC wrapper
   12084 	hardcode_libdir_flag_spec=' '
   12085 	allow_undefined_flag=unsupported
   12086 	# Tell ltmain to make .lib files, not .a files.
   12087 	libext=lib
   12088 	# Tell ltmain to make .dll files, not .so files.
   12089 	shrext_cmds=.dll
   12090 	# FIXME: Setting linknames here is a bad hack.
   12091 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   12092 	# The linker will automatically build a .lib file if we build a DLL.
   12093 	old_archive_from_new_cmds='true'
   12094 	# FIXME: Should let the user specify the lib program.
   12095 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   12096 	enable_shared_with_static_runtimes=yes
   12097 	;;
   12098       esac
   12099       ;;
   12100 
   12101     darwin* | rhapsody*)
   12102 
   12103 
   12104   archive_cmds_need_lc=no
   12105   hardcode_direct=no
   12106   hardcode_automatic=yes
   12107   hardcode_shlibpath_var=unsupported
   12108   if test yes = "$lt_cv_ld_force_load"; then
   12109     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\"`'
   12110 
   12111   else
   12112     whole_archive_flag_spec=''
   12113   fi
   12114   link_all_deplibs=yes
   12115   allow_undefined_flag=$_lt_dar_allow_undefined
   12116   case $cc_basename in
   12117      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   12118      *) _lt_dar_can_shared=$GCC ;;
   12119   esac
   12120   if test yes = "$_lt_dar_can_shared"; then
   12121     output_verbose_link_cmd=func_echo_all
   12122     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
   12123     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   12124     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"
   12125     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"
   12126 
   12127   else
   12128   ld_shlibs=no
   12129   fi
   12130 
   12131       ;;
   12132 
   12133     dgux*)
   12134       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12135       hardcode_libdir_flag_spec='-L$libdir'
   12136       hardcode_shlibpath_var=no
   12137       ;;
   12138 
   12139     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   12140     # support.  Future versions do this automatically, but an explicit c++rt0.o
   12141     # does not break anything, and helps significantly (at the cost of a little
   12142     # extra space).
   12143     freebsd2.2*)
   12144       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   12145       hardcode_libdir_flag_spec='-R$libdir'
   12146       hardcode_direct=yes
   12147       hardcode_shlibpath_var=no
   12148       ;;
   12149 
   12150     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   12151     freebsd2.*)
   12152       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   12153       hardcode_direct=yes
   12154       hardcode_minus_L=yes
   12155       hardcode_shlibpath_var=no
   12156       ;;
   12157 
   12158     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   12159     freebsd* | dragonfly*)
   12160       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   12161       hardcode_libdir_flag_spec='-R$libdir'
   12162       hardcode_direct=yes
   12163       hardcode_shlibpath_var=no
   12164       ;;
   12165 
   12166     hpux9*)
   12167       if test yes = "$GCC"; then
   12168 	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'
   12169       else
   12170 	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'
   12171       fi
   12172       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   12173       hardcode_libdir_separator=:
   12174       hardcode_direct=yes
   12175 
   12176       # hardcode_minus_L: Not really in the search PATH,
   12177       # but as the default location of the library.
   12178       hardcode_minus_L=yes
   12179       export_dynamic_flag_spec='$wl-E'
   12180       ;;
   12181 
   12182     hpux10*)
   12183       if test yes,no = "$GCC,$with_gnu_ld"; then
   12184 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   12185       else
   12186 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   12187       fi
   12188       if test no = "$with_gnu_ld"; then
   12189 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   12190 	hardcode_libdir_separator=:
   12191 	hardcode_direct=yes
   12192 	hardcode_direct_absolute=yes
   12193 	export_dynamic_flag_spec='$wl-E'
   12194 	# hardcode_minus_L: Not really in the search PATH,
   12195 	# but as the default location of the library.
   12196 	hardcode_minus_L=yes
   12197       fi
   12198       ;;
   12199 
   12200     hpux11*)
   12201       if test yes,no = "$GCC,$with_gnu_ld"; then
   12202 	case $host_cpu in
   12203 	hppa*64*)
   12204 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   12205 	  ;;
   12206 	ia64*)
   12207 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   12208 	  ;;
   12209 	*)
   12210 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   12211 	  ;;
   12212 	esac
   12213       else
   12214 	case $host_cpu in
   12215 	hppa*64*)
   12216 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   12217 	  ;;
   12218 	ia64*)
   12219 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   12220 	  ;;
   12221 	*)
   12222 
   12223 	  # Older versions of the 11.00 compiler do not understand -b yet
   12224 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   12225 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   12226 $as_echo_n "checking if $CC understands -b... " >&6; }
   12227 if ${lt_cv_prog_compiler__b+:} false; then :
   12228   $as_echo_n "(cached) " >&6
   12229 else
   12230   lt_cv_prog_compiler__b=no
   12231    save_LDFLAGS=$LDFLAGS
   12232    LDFLAGS="$LDFLAGS -b"
   12233    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   12234    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   12235      # The linker can only warn and ignore the option if not recognized
   12236      # So say no if there are warnings
   12237      if test -s conftest.err; then
   12238        # Append any errors to the config.log.
   12239        cat conftest.err 1>&5
   12240        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   12241        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   12242        if diff conftest.exp conftest.er2 >/dev/null; then
   12243          lt_cv_prog_compiler__b=yes
   12244        fi
   12245      else
   12246        lt_cv_prog_compiler__b=yes
   12247      fi
   12248    fi
   12249    $RM -r conftest*
   12250    LDFLAGS=$save_LDFLAGS
   12251 
   12252 fi
   12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   12254 $as_echo "$lt_cv_prog_compiler__b" >&6; }
   12255 
   12256 if test yes = "$lt_cv_prog_compiler__b"; then
   12257     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   12258 else
   12259     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   12260 fi
   12261 
   12262 	  ;;
   12263 	esac
   12264       fi
   12265       if test no = "$with_gnu_ld"; then
   12266 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   12267 	hardcode_libdir_separator=:
   12268 
   12269 	case $host_cpu in
   12270 	hppa*64*|ia64*)
   12271 	  hardcode_direct=no
   12272 	  hardcode_shlibpath_var=no
   12273 	  ;;
   12274 	*)
   12275 	  hardcode_direct=yes
   12276 	  hardcode_direct_absolute=yes
   12277 	  export_dynamic_flag_spec='$wl-E'
   12278 
   12279 	  # hardcode_minus_L: Not really in the search PATH,
   12280 	  # but as the default location of the library.
   12281 	  hardcode_minus_L=yes
   12282 	  ;;
   12283 	esac
   12284       fi
   12285       ;;
   12286 
   12287     irix5* | irix6* | nonstopux*)
   12288       if test yes = "$GCC"; then
   12289 	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'
   12290 	# Try to use the -exported_symbol ld option, if it does not
   12291 	# work, assume that -exports_file does not work either and
   12292 	# implicitly export all symbols.
   12293 	# This should be the same for all languages, so no per-tag cache variable.
   12294 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   12295 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   12296 if ${lt_cv_irix_exported_symbol+:} false; then :
   12297   $as_echo_n "(cached) " >&6
   12298 else
   12299   save_LDFLAGS=$LDFLAGS
   12300 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   12301 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12302 /* end confdefs.h.  */
   12303 int foo (void) { return 0; }
   12304 _ACEOF
   12305 if ac_fn_c_try_link "$LINENO"; then :
   12306   lt_cv_irix_exported_symbol=yes
   12307 else
   12308   lt_cv_irix_exported_symbol=no
   12309 fi
   12310 rm -f core conftest.err conftest.$ac_objext \
   12311     conftest$ac_exeext conftest.$ac_ext
   12312            LDFLAGS=$save_LDFLAGS
   12313 fi
   12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   12315 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
   12316 	if test yes = "$lt_cv_irix_exported_symbol"; then
   12317           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'
   12318 	fi
   12319       else
   12320 	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'
   12321 	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'
   12322       fi
   12323       archive_cmds_need_lc='no'
   12324       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   12325       hardcode_libdir_separator=:
   12326       inherit_rpath=yes
   12327       link_all_deplibs=yes
   12328       ;;
   12329 
   12330     linux*)
   12331       case $cc_basename in
   12332       tcc*)
   12333 	# Fabrice Bellard et al's Tiny C Compiler
   12334 	ld_shlibs=yes
   12335 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   12336 	;;
   12337       esac
   12338       ;;
   12339 
   12340     netbsd*)
   12341       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   12342 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   12343       else
   12344 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   12345       fi
   12346       hardcode_libdir_flag_spec='-R$libdir'
   12347       hardcode_direct=yes
   12348       hardcode_shlibpath_var=no
   12349       ;;
   12350 
   12351     newsos6)
   12352       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12353       hardcode_direct=yes
   12354       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   12355       hardcode_libdir_separator=:
   12356       hardcode_shlibpath_var=no
   12357       ;;
   12358 
   12359     *nto* | *qnx*)
   12360       ;;
   12361 
   12362     openbsd* | bitrig*)
   12363       if test -f /usr/libexec/ld.so; then
   12364 	hardcode_direct=yes
   12365 	hardcode_shlibpath_var=no
   12366 	hardcode_direct_absolute=yes
   12367 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   12368 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   12369 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   12370 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   12371 	  export_dynamic_flag_spec='$wl-E'
   12372 	else
   12373 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   12374 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   12375 	fi
   12376       else
   12377 	ld_shlibs=no
   12378       fi
   12379       ;;
   12380 
   12381     os2*)
   12382       hardcode_libdir_flag_spec='-L$libdir'
   12383       hardcode_minus_L=yes
   12384       allow_undefined_flag=unsupported
   12385       shrext_cmds=.dll
   12386       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   12387 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   12388 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   12389 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   12390 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   12391 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   12392 	emximp -o $lib $output_objdir/$libname.def'
   12393       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   12394 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   12395 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   12396 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   12397 	prefix_cmds="$SED"~
   12398 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   12399 	  prefix_cmds="$prefix_cmds -e 1d";
   12400 	fi~
   12401 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   12402 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   12403 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   12404 	emximp -o $lib $output_objdir/$libname.def'
   12405       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   12406       enable_shared_with_static_runtimes=yes
   12407       ;;
   12408 
   12409     osf3*)
   12410       if test yes = "$GCC"; then
   12411 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   12412 	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'
   12413       else
   12414 	allow_undefined_flag=' -expect_unresolved \*'
   12415 	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'
   12416       fi
   12417       archive_cmds_need_lc='no'
   12418       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   12419       hardcode_libdir_separator=:
   12420       ;;
   12421 
   12422     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   12423       if test yes = "$GCC"; then
   12424 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   12425 	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'
   12426 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   12427       else
   12428 	allow_undefined_flag=' -expect_unresolved \*'
   12429 	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'
   12430 	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~
   12431           $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'
   12432 
   12433 	# Both c and cxx compiler support -rpath directly
   12434 	hardcode_libdir_flag_spec='-rpath $libdir'
   12435       fi
   12436       archive_cmds_need_lc='no'
   12437       hardcode_libdir_separator=:
   12438       ;;
   12439 
   12440     solaris*)
   12441       no_undefined_flag=' -z defs'
   12442       if test yes = "$GCC"; then
   12443 	wlarc='$wl'
   12444 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   12445 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   12446           $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'
   12447       else
   12448 	case `$CC -V 2>&1` in
   12449 	*"Compilers 5.0"*)
   12450 	  wlarc=''
   12451 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12452 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   12453             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   12454 	  ;;
   12455 	*)
   12456 	  wlarc='$wl'
   12457 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   12458 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   12459             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   12460 	  ;;
   12461 	esac
   12462       fi
   12463       hardcode_libdir_flag_spec='-R$libdir'
   12464       hardcode_shlibpath_var=no
   12465       case $host_os in
   12466       solaris2.[0-5] | solaris2.[0-5].*) ;;
   12467       *)
   12468 	# The compiler driver will combine and reorder linker options,
   12469 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   12470 	# but is careful enough not to reorder.
   12471 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   12472 	if test yes = "$GCC"; then
   12473 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   12474 	else
   12475 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   12476 	fi
   12477 	;;
   12478       esac
   12479       link_all_deplibs=yes
   12480       ;;
   12481 
   12482     sunos4*)
   12483       if test sequent = "$host_vendor"; then
   12484 	# Use $CC to link under sequent, because it throws in some extra .o
   12485 	# files that make .init and .fini sections work.
   12486 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   12487       else
   12488 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   12489       fi
   12490       hardcode_libdir_flag_spec='-L$libdir'
   12491       hardcode_direct=yes
   12492       hardcode_minus_L=yes
   12493       hardcode_shlibpath_var=no
   12494       ;;
   12495 
   12496     sysv4)
   12497       case $host_vendor in
   12498 	sni)
   12499 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12500 	  hardcode_direct=yes # is this really true???
   12501 	;;
   12502 	siemens)
   12503 	  ## LD is ld it makes a PLAMLIB
   12504 	  ## CC just makes a GrossModule.
   12505 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   12506 	  reload_cmds='$CC -r -o $output$reload_objs'
   12507 	  hardcode_direct=no
   12508         ;;
   12509 	motorola)
   12510 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12511 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   12512 	;;
   12513       esac
   12514       runpath_var='LD_RUN_PATH'
   12515       hardcode_shlibpath_var=no
   12516       ;;
   12517 
   12518     sysv4.3*)
   12519       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12520       hardcode_shlibpath_var=no
   12521       export_dynamic_flag_spec='-Bexport'
   12522       ;;
   12523 
   12524     sysv4*MP*)
   12525       if test -d /usr/nec; then
   12526 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12527 	hardcode_shlibpath_var=no
   12528 	runpath_var=LD_RUN_PATH
   12529 	hardcode_runpath_var=yes
   12530 	ld_shlibs=yes
   12531       fi
   12532       ;;
   12533 
   12534     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   12535       no_undefined_flag='$wl-z,text'
   12536       archive_cmds_need_lc=no
   12537       hardcode_shlibpath_var=no
   12538       runpath_var='LD_RUN_PATH'
   12539 
   12540       if test yes = "$GCC"; then
   12541 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12542 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12543       else
   12544 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12545 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12546       fi
   12547       ;;
   12548 
   12549     sysv5* | sco3.2v5* | sco5v6*)
   12550       # Note: We CANNOT use -z defs as we might desire, because we do not
   12551       # link with -lc, and that would cause any symbols used from libc to
   12552       # always be unresolved, which means just about no library would
   12553       # ever link correctly.  If we're not using GNU ld we use -z text
   12554       # though, which does catch some bad symbols but isn't as heavy-handed
   12555       # as -z defs.
   12556       no_undefined_flag='$wl-z,text'
   12557       allow_undefined_flag='$wl-z,nodefs'
   12558       archive_cmds_need_lc=no
   12559       hardcode_shlibpath_var=no
   12560       hardcode_libdir_flag_spec='$wl-R,$libdir'
   12561       hardcode_libdir_separator=':'
   12562       link_all_deplibs=yes
   12563       export_dynamic_flag_spec='$wl-Bexport'
   12564       runpath_var='LD_RUN_PATH'
   12565 
   12566       if test yes = "$GCC"; then
   12567 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12568 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12569       else
   12570 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12571 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   12572       fi
   12573       ;;
   12574 
   12575     uts4*)
   12576       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   12577       hardcode_libdir_flag_spec='-L$libdir'
   12578       hardcode_shlibpath_var=no
   12579       ;;
   12580 
   12581     *)
   12582       ld_shlibs=no
   12583       ;;
   12584     esac
   12585 
   12586     if test sni = "$host_vendor"; then
   12587       case $host in
   12588       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   12589 	export_dynamic_flag_spec='$wl-Blargedynsym'
   12590 	;;
   12591       esac
   12592     fi
   12593   fi
   12594 
   12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   12596 $as_echo "$ld_shlibs" >&6; }
   12597 test no = "$ld_shlibs" && can_build_shared=no
   12598 
   12599 with_gnu_ld=$with_gnu_ld
   12600 
   12601 
   12602 
   12603 
   12604 
   12605 
   12606 
   12607 
   12608 
   12609 
   12610 
   12611 
   12612 
   12613 
   12614 
   12615 #
   12616 # Do we need to explicitly link libc?
   12617 #
   12618 case "x$archive_cmds_need_lc" in
   12619 x|xyes)
   12620   # Assume -lc should be added
   12621   archive_cmds_need_lc=yes
   12622 
   12623   if test yes,yes = "$GCC,$enable_shared"; then
   12624     case $archive_cmds in
   12625     *'~'*)
   12626       # FIXME: we may have to deal with multi-command sequences.
   12627       ;;
   12628     '$CC '*)
   12629       # Test whether the compiler implicitly links with -lc since on some
   12630       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   12631       # to ld, don't add -lc before -lgcc.
   12632       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   12633 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   12634 if ${lt_cv_archive_cmds_need_lc+:} false; then :
   12635   $as_echo_n "(cached) " >&6
   12636 else
   12637   $RM conftest*
   12638 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   12639 
   12640 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   12641   (eval $ac_compile) 2>&5
   12642   ac_status=$?
   12643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12644   test $ac_status = 0; } 2>conftest.err; then
   12645 	  soname=conftest
   12646 	  lib=conftest
   12647 	  libobjs=conftest.$ac_objext
   12648 	  deplibs=
   12649 	  wl=$lt_prog_compiler_wl
   12650 	  pic_flag=$lt_prog_compiler_pic
   12651 	  compiler_flags=-v
   12652 	  linker_flags=-v
   12653 	  verstring=
   12654 	  output_objdir=.
   12655 	  libname=conftest
   12656 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   12657 	  allow_undefined_flag=
   12658 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   12659   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   12660   ac_status=$?
   12661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12662   test $ac_status = 0; }
   12663 	  then
   12664 	    lt_cv_archive_cmds_need_lc=no
   12665 	  else
   12666 	    lt_cv_archive_cmds_need_lc=yes
   12667 	  fi
   12668 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   12669 	else
   12670 	  cat conftest.err 1>&5
   12671 	fi
   12672 	$RM conftest*
   12673 
   12674 fi
   12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   12676 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   12677       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   12678       ;;
   12679     esac
   12680   fi
   12681   ;;
   12682 esac
   12683 
   12684 
   12685 
   12686 
   12687 
   12688 
   12689 
   12690 
   12691 
   12692 
   12693 
   12694 
   12695 
   12696 
   12697 
   12698 
   12699 
   12700 
   12701 
   12702 
   12703 
   12704 
   12705 
   12706 
   12707 
   12708 
   12709 
   12710 
   12711 
   12712 
   12713 
   12714 
   12715 
   12716 
   12717 
   12718 
   12719 
   12720 
   12721 
   12722 
   12723 
   12724 
   12725 
   12726 
   12727 
   12728 
   12729 
   12730 
   12731 
   12732 
   12733 
   12734 
   12735 
   12736 
   12737 
   12738 
   12739 
   12740 
   12741 
   12742 
   12743 
   12744 
   12745 
   12746 
   12747 
   12748 
   12749 
   12750 
   12751 
   12752 
   12753 
   12754 
   12755 
   12756 
   12757 
   12758 
   12759 
   12760 
   12761 
   12762 
   12763 
   12764 
   12765 
   12766 
   12767 
   12768 
   12769 
   12770 
   12771 
   12772 
   12773 
   12774 
   12775 
   12776 
   12777 
   12778 
   12779 
   12780 
   12781 
   12782 
   12783 
   12784 
   12785 
   12786 
   12787 
   12788 
   12789 
   12790 
   12791 
   12792 
   12793 
   12794 
   12795 
   12796 
   12797 
   12798 
   12799 
   12800 
   12801 
   12802 
   12803 
   12804 
   12805 
   12806 
   12807 
   12808 
   12809 
   12810 
   12811 
   12812 
   12813 
   12814 
   12815 
   12816 
   12817 
   12818 
   12819 
   12820 
   12821 
   12822 
   12823 
   12824 
   12825 
   12826 
   12827 
   12828 
   12829 
   12830 
   12831 
   12832 
   12833 
   12834 
   12835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   12836 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   12837 
   12838 if test yes = "$GCC"; then
   12839   case $host_os in
   12840     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   12841     *) lt_awk_arg='/^libraries:/' ;;
   12842   esac
   12843   case $host_os in
   12844     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   12845     *) lt_sed_strip_eq='s|=/|/|g' ;;
   12846   esac
   12847   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   12848   case $lt_search_path_spec in
   12849   *\;*)
   12850     # if the path contains ";" then we assume it to be the separator
   12851     # otherwise default to the standard path separator (i.e. ":") - it is
   12852     # assumed that no part of a normal pathname contains ";" but that should
   12853     # okay in the real world where ";" in dirpaths is itself problematic.
   12854     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   12855     ;;
   12856   *)
   12857     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   12858     ;;
   12859   esac
   12860   # Ok, now we have the path, separated by spaces, we can step through it
   12861   # and add multilib dir if necessary...
   12862   lt_tmp_lt_search_path_spec=
   12863   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   12864   # ...but if some path component already ends with the multilib dir we assume
   12865   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   12866   case "$lt_multi_os_dir; $lt_search_path_spec " in
   12867   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   12868     lt_multi_os_dir=
   12869     ;;
   12870   esac
   12871   for lt_sys_path in $lt_search_path_spec; do
   12872     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   12873       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   12874     elif test -n "$lt_multi_os_dir"; then
   12875       test -d "$lt_sys_path" && \
   12876 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   12877     fi
   12878   done
   12879   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   12880 BEGIN {RS = " "; FS = "/|\n";} {
   12881   lt_foo = "";
   12882   lt_count = 0;
   12883   for (lt_i = NF; lt_i > 0; lt_i--) {
   12884     if ($lt_i != "" && $lt_i != ".") {
   12885       if ($lt_i == "..") {
   12886         lt_count++;
   12887       } else {
   12888         if (lt_count == 0) {
   12889           lt_foo = "/" $lt_i lt_foo;
   12890         } else {
   12891           lt_count--;
   12892         }
   12893       }
   12894     }
   12895   }
   12896   if (lt_foo != "") { lt_freq[lt_foo]++; }
   12897   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   12898 }'`
   12899   # AWK program above erroneously prepends '/' to C:/dos/paths
   12900   # for these hosts.
   12901   case $host_os in
   12902     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   12903       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   12904   esac
   12905   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   12906 else
   12907   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   12908 fi
   12909 library_names_spec=
   12910 libname_spec='lib$name'
   12911 soname_spec=
   12912 shrext_cmds=.so
   12913 postinstall_cmds=
   12914 postuninstall_cmds=
   12915 finish_cmds=
   12916 finish_eval=
   12917 shlibpath_var=
   12918 shlibpath_overrides_runpath=unknown
   12919 version_type=none
   12920 dynamic_linker="$host_os ld.so"
   12921 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   12922 need_lib_prefix=unknown
   12923 hardcode_into_libs=no
   12924 
   12925 # when you set need_version to no, make sure it does not cause -set_version
   12926 # flags to be left without arguments
   12927 need_version=unknown
   12928 
   12929 
   12930 
   12931 case $host_os in
   12932 aix3*)
   12933   version_type=linux # correct to gnu/linux during the next big refactor
   12934   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   12935   shlibpath_var=LIBPATH
   12936 
   12937   # AIX 3 has no versioning support, so we append a major version to the name.
   12938   soname_spec='$libname$release$shared_ext$major'
   12939   ;;
   12940 
   12941 aix[4-9]*)
   12942   version_type=linux # correct to gnu/linux during the next big refactor
   12943   need_lib_prefix=no
   12944   need_version=no
   12945   hardcode_into_libs=yes
   12946   if test ia64 = "$host_cpu"; then
   12947     # AIX 5 supports IA64
   12948     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   12949     shlibpath_var=LD_LIBRARY_PATH
   12950   else
   12951     # With GCC up to 2.95.x, collect2 would create an import file
   12952     # for dependence libraries.  The import file would start with
   12953     # the line '#! .'.  This would cause the generated library to
   12954     # depend on '.', always an invalid library.  This was fixed in
   12955     # development snapshots of GCC prior to 3.0.
   12956     case $host_os in
   12957       aix4 | aix4.[01] | aix4.[01].*)
   12958       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   12959 	   echo ' yes '
   12960 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   12961 	:
   12962       else
   12963 	can_build_shared=no
   12964       fi
   12965       ;;
   12966     esac
   12967     # Using Import Files as archive members, it is possible to support
   12968     # filename-based versioning of shared library archives on AIX. While
   12969     # this would work for both with and without runtime linking, it will
   12970     # prevent static linking of such archives. So we do filename-based
   12971     # shared library versioning with .so extension only, which is used
   12972     # when both runtime linking and shared linking is enabled.
   12973     # Unfortunately, runtime linking may impact performance, so we do
   12974     # not want this to be the default eventually. Also, we use the
   12975     # versioned .so libs for executables only if there is the -brtl
   12976     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
   12977     # To allow for filename-based versioning support, we need to create
   12978     # libNAME.so.V as an archive file, containing:
   12979     # *) an Import File, referring to the versioned filename of the
   12980     #    archive as well as the shared archive member, telling the
   12981     #    bitwidth (32 or 64) of that shared object, and providing the
   12982     #    list of exported symbols of that shared object, eventually
   12983     #    decorated with the 'weak' keyword
   12984     # *) the shared object with the F_LOADONLY flag set, to really avoid
   12985     #    it being seen by the linker.
   12986     # At run time we better use the real file rather than another symlink,
   12987     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   12988 
   12989     case $with_aix_soname,$aix_use_runtimelinking in
   12990     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   12991     # soname into executable. Probably we can add versioning support to
   12992     # collect2, so additional links can be useful in future.
   12993     aix,yes) # traditional libtool
   12994       dynamic_linker='AIX unversionable lib.so'
   12995       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   12996       # instead of lib<name>.a to let people know that these are not
   12997       # typical AIX shared libraries.
   12998       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   12999       ;;
   13000     aix,no) # traditional AIX only
   13001       dynamic_linker='AIX lib.a(lib.so.V)'
   13002       # We preserve .a as extension for shared libraries through AIX4.2
   13003       # and later when we are not doing run time linking.
   13004       library_names_spec='$libname$release.a $libname.a'
   13005       soname_spec='$libname$release$shared_ext$major'
   13006       ;;
   13007     svr4,*) # full svr4 only
   13008       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   13009       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   13010       # We do not specify a path in Import Files, so LIBPATH fires.
   13011       shlibpath_overrides_runpath=yes
   13012       ;;
   13013     *,yes) # both, prefer svr4
   13014       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   13015       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   13016       # unpreferred sharedlib libNAME.a needs extra handling
   13017       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"'
   13018       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"'
   13019       # We do not specify a path in Import Files, so LIBPATH fires.
   13020       shlibpath_overrides_runpath=yes
   13021       ;;
   13022     *,no) # both, prefer aix
   13023       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   13024       library_names_spec='$libname$release.a $libname.a'
   13025       soname_spec='$libname$release$shared_ext$major'
   13026       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   13027       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)'
   13028       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"'
   13029       ;;
   13030     esac
   13031     shlibpath_var=LIBPATH
   13032   fi
   13033   ;;
   13034 
   13035 amigaos*)
   13036   case $host_cpu in
   13037   powerpc)
   13038     # Since July 2007 AmigaOS4 officially supports .so libraries.
   13039     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   13040     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13041     ;;
   13042   m68k)
   13043     library_names_spec='$libname.ixlibrary $libname.a'
   13044     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   13045     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'
   13046     ;;
   13047   esac
   13048   ;;
   13049 
   13050 beos*)
   13051   library_names_spec='$libname$shared_ext'
   13052   dynamic_linker="$host_os ld.so"
   13053   shlibpath_var=LIBRARY_PATH
   13054   ;;
   13055 
   13056 bsdi[45]*)
   13057   version_type=linux # correct to gnu/linux during the next big refactor
   13058   need_version=no
   13059   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13060   soname_spec='$libname$release$shared_ext$major'
   13061   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   13062   shlibpath_var=LD_LIBRARY_PATH
   13063   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   13064   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   13065   # the default ld.so.conf also contains /usr/contrib/lib and
   13066   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   13067   # libtool to hard-code these into programs
   13068   ;;
   13069 
   13070 cygwin* | mingw* | pw32* | cegcc*)
   13071   version_type=windows
   13072   shrext_cmds=.dll
   13073   need_version=no
   13074   need_lib_prefix=no
   13075 
   13076   case $GCC,$cc_basename in
   13077   yes,*)
   13078     # gcc
   13079     library_names_spec='$libname.dll.a'
   13080     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   13081     postinstall_cmds='base_file=`basename \$file`~
   13082       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   13083       dldir=$destdir/`dirname \$dlpath`~
   13084       test -d \$dldir || mkdir -p \$dldir~
   13085       $install_prog $dir/$dlname \$dldir/$dlname~
   13086       chmod a+x \$dldir/$dlname~
   13087       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   13088         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   13089       fi'
   13090     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   13091       dlpath=$dir/\$dldll~
   13092        $RM \$dlpath'
   13093     shlibpath_overrides_runpath=yes
   13094 
   13095     case $host_os in
   13096     cygwin*)
   13097       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   13098       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   13099 
   13100       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   13101       ;;
   13102     mingw* | cegcc*)
   13103       # MinGW DLLs use traditional 'lib' prefix
   13104       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   13105       ;;
   13106     pw32*)
   13107       # pw32 DLLs use 'pw' prefix rather than 'lib'
   13108       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   13109       ;;
   13110     esac
   13111     dynamic_linker='Win32 ld.exe'
   13112     ;;
   13113 
   13114   *,cl*)
   13115     # Native MSVC
   13116     libname_spec='$name'
   13117     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   13118     library_names_spec='$libname.dll.lib'
   13119 
   13120     case $build_os in
   13121     mingw*)
   13122       sys_lib_search_path_spec=
   13123       lt_save_ifs=$IFS
   13124       IFS=';'
   13125       for lt_path in $LIB
   13126       do
   13127         IFS=$lt_save_ifs
   13128         # Let DOS variable expansion print the short 8.3 style file name.
   13129         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   13130         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   13131       done
   13132       IFS=$lt_save_ifs
   13133       # Convert to MSYS style.
   13134       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   13135       ;;
   13136     cygwin*)
   13137       # Convert to unix form, then to dos form, then back to unix form
   13138       # but this time dos style (no spaces!) so that the unix form looks
   13139       # like /cygdrive/c/PROGRA~1:/cygdr...
   13140       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   13141       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   13142       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   13143       ;;
   13144     *)
   13145       sys_lib_search_path_spec=$LIB
   13146       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   13147         # It is most probably a Windows format PATH.
   13148         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   13149       else
   13150         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   13151       fi
   13152       # FIXME: find the short name or the path components, as spaces are
   13153       # common. (e.g. "Program Files" -> "PROGRA~1")
   13154       ;;
   13155     esac
   13156 
   13157     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   13158     postinstall_cmds='base_file=`basename \$file`~
   13159       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   13160       dldir=$destdir/`dirname \$dlpath`~
   13161       test -d \$dldir || mkdir -p \$dldir~
   13162       $install_prog $dir/$dlname \$dldir/$dlname'
   13163     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   13164       dlpath=$dir/\$dldll~
   13165        $RM \$dlpath'
   13166     shlibpath_overrides_runpath=yes
   13167     dynamic_linker='Win32 link.exe'
   13168     ;;
   13169 
   13170   *)
   13171     # Assume MSVC wrapper
   13172     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   13173     dynamic_linker='Win32 ld.exe'
   13174     ;;
   13175   esac
   13176   # FIXME: first we should search . and the directory the executable is in
   13177   shlibpath_var=PATH
   13178   ;;
   13179 
   13180 darwin* | rhapsody*)
   13181   dynamic_linker="$host_os dyld"
   13182   version_type=darwin
   13183   need_lib_prefix=no
   13184   need_version=no
   13185   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   13186   soname_spec='$libname$release$major$shared_ext'
   13187   shlibpath_overrides_runpath=yes
   13188   shlibpath_var=DYLD_LIBRARY_PATH
   13189   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   13190 
   13191   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   13192   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   13193   ;;
   13194 
   13195 dgux*)
   13196   version_type=linux # correct to gnu/linux during the next big refactor
   13197   need_lib_prefix=no
   13198   need_version=no
   13199   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13200   soname_spec='$libname$release$shared_ext$major'
   13201   shlibpath_var=LD_LIBRARY_PATH
   13202   ;;
   13203 
   13204 freebsd* | dragonfly*)
   13205   # DragonFly does not have aout.  When/if they implement a new
   13206   # versioning mechanism, adjust this.
   13207   if test -x /usr/bin/objformat; then
   13208     objformat=`/usr/bin/objformat`
   13209   else
   13210     case $host_os in
   13211     freebsd[23].*) objformat=aout ;;
   13212     *) objformat=elf ;;
   13213     esac
   13214   fi
   13215   version_type=freebsd-$objformat
   13216   case $version_type in
   13217     freebsd-elf*)
   13218       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13219       soname_spec='$libname$release$shared_ext$major'
   13220       need_version=no
   13221       need_lib_prefix=no
   13222       ;;
   13223     freebsd-*)
   13224       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   13225       need_version=yes
   13226       ;;
   13227   esac
   13228   shlibpath_var=LD_LIBRARY_PATH
   13229   case $host_os in
   13230   freebsd2.*)
   13231     shlibpath_overrides_runpath=yes
   13232     ;;
   13233   freebsd3.[01]* | freebsdelf3.[01]*)
   13234     shlibpath_overrides_runpath=yes
   13235     hardcode_into_libs=yes
   13236     ;;
   13237   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   13238   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   13239     shlibpath_overrides_runpath=no
   13240     hardcode_into_libs=yes
   13241     ;;
   13242   *) # from 4.6 on, and DragonFly
   13243     shlibpath_overrides_runpath=yes
   13244     hardcode_into_libs=yes
   13245     ;;
   13246   esac
   13247   ;;
   13248 
   13249 haiku*)
   13250   version_type=linux # correct to gnu/linux during the next big refactor
   13251   need_lib_prefix=no
   13252   need_version=no
   13253   dynamic_linker="$host_os runtime_loader"
   13254   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13255   soname_spec='$libname$release$shared_ext$major'
   13256   shlibpath_var=LIBRARY_PATH
   13257   shlibpath_overrides_runpath=no
   13258   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   13259   hardcode_into_libs=yes
   13260   ;;
   13261 
   13262 hpux9* | hpux10* | hpux11*)
   13263   # Give a soname corresponding to the major version so that dld.sl refuses to
   13264   # link against other versions.
   13265   version_type=sunos
   13266   need_lib_prefix=no
   13267   need_version=no
   13268   case $host_cpu in
   13269   ia64*)
   13270     shrext_cmds='.so'
   13271     hardcode_into_libs=yes
   13272     dynamic_linker="$host_os dld.so"
   13273     shlibpath_var=LD_LIBRARY_PATH
   13274     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   13275     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13276     soname_spec='$libname$release$shared_ext$major'
   13277     if test 32 = "$HPUX_IA64_MODE"; then
   13278       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   13279       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   13280     else
   13281       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   13282       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   13283     fi
   13284     ;;
   13285   hppa*64*)
   13286     shrext_cmds='.sl'
   13287     hardcode_into_libs=yes
   13288     dynamic_linker="$host_os dld.sl"
   13289     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   13290     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   13291     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13292     soname_spec='$libname$release$shared_ext$major'
   13293     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   13294     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   13295     ;;
   13296   *)
   13297     shrext_cmds='.sl'
   13298     dynamic_linker="$host_os dld.sl"
   13299     shlibpath_var=SHLIB_PATH
   13300     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   13301     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13302     soname_spec='$libname$release$shared_ext$major'
   13303     ;;
   13304   esac
   13305   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   13306   postinstall_cmds='chmod 555 $lib'
   13307   # or fails outright, so override atomically:
   13308   install_override_mode=555
   13309   ;;
   13310 
   13311 interix[3-9]*)
   13312   version_type=linux # correct to gnu/linux during the next big refactor
   13313   need_lib_prefix=no
   13314   need_version=no
   13315   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13316   soname_spec='$libname$release$shared_ext$major'
   13317   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   13318   shlibpath_var=LD_LIBRARY_PATH
   13319   shlibpath_overrides_runpath=no
   13320   hardcode_into_libs=yes
   13321   ;;
   13322 
   13323 irix5* | irix6* | nonstopux*)
   13324   case $host_os in
   13325     nonstopux*) version_type=nonstopux ;;
   13326     *)
   13327 	if test yes = "$lt_cv_prog_gnu_ld"; then
   13328 		version_type=linux # correct to gnu/linux during the next big refactor
   13329 	else
   13330 		version_type=irix
   13331 	fi ;;
   13332   esac
   13333   need_lib_prefix=no
   13334   need_version=no
   13335   soname_spec='$libname$release$shared_ext$major'
   13336   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   13337   case $host_os in
   13338   irix5* | nonstopux*)
   13339     libsuff= shlibsuff=
   13340     ;;
   13341   *)
   13342     case $LD in # libtool.m4 will add one of these switches to LD
   13343     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   13344       libsuff= shlibsuff= libmagic=32-bit;;
   13345     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   13346       libsuff=32 shlibsuff=N32 libmagic=N32;;
   13347     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   13348       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   13349     *) libsuff= shlibsuff= libmagic=never-match;;
   13350     esac
   13351     ;;
   13352   esac
   13353   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   13354   shlibpath_overrides_runpath=no
   13355   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   13356   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   13357   hardcode_into_libs=yes
   13358   ;;
   13359 
   13360 # No shared lib support for Linux oldld, aout, or coff.
   13361 linux*oldld* | linux*aout* | linux*coff*)
   13362   dynamic_linker=no
   13363   ;;
   13364 
   13365 linux*android*)
   13366   version_type=none # Android doesn't support versioned libraries.
   13367   need_lib_prefix=no
   13368   need_version=no
   13369   library_names_spec='$libname$release$shared_ext'
   13370   soname_spec='$libname$release$shared_ext'
   13371   finish_cmds=
   13372   shlibpath_var=LD_LIBRARY_PATH
   13373   shlibpath_overrides_runpath=yes
   13374 
   13375   # This implies no fast_install, which is unacceptable.
   13376   # Some rework will be needed to allow for fast_install
   13377   # before this can be enabled.
   13378   hardcode_into_libs=yes
   13379 
   13380   dynamic_linker='Android linker'
   13381   # Don't embed -rpath directories since the linker doesn't support them.
   13382   hardcode_libdir_flag_spec='-L$libdir'
   13383   ;;
   13384 
   13385 # This must be glibc/ELF.
   13386 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   13387   version_type=linux # correct to gnu/linux during the next big refactor
   13388   need_lib_prefix=no
   13389   need_version=no
   13390   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13391   soname_spec='$libname$release$shared_ext$major'
   13392   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   13393   shlibpath_var=LD_LIBRARY_PATH
   13394   shlibpath_overrides_runpath=no
   13395 
   13396   # Some binutils ld are patched to set DT_RUNPATH
   13397   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   13398   $as_echo_n "(cached) " >&6
   13399 else
   13400   lt_cv_shlibpath_overrides_runpath=no
   13401     save_LDFLAGS=$LDFLAGS
   13402     save_libdir=$libdir
   13403     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   13404 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   13405     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13406 /* end confdefs.h.  */
   13407 
   13408 int
   13409 main ()
   13410 {
   13411 
   13412   ;
   13413   return 0;
   13414 }
   13415 _ACEOF
   13416 if ac_fn_c_try_link "$LINENO"; then :
   13417   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   13418   lt_cv_shlibpath_overrides_runpath=yes
   13419 fi
   13420 fi
   13421 rm -f core conftest.err conftest.$ac_objext \
   13422     conftest$ac_exeext conftest.$ac_ext
   13423     LDFLAGS=$save_LDFLAGS
   13424     libdir=$save_libdir
   13425 
   13426 fi
   13427 
   13428   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   13429 
   13430   # This implies no fast_install, which is unacceptable.
   13431   # Some rework will be needed to allow for fast_install
   13432   # before this can be enabled.
   13433   hardcode_into_libs=yes
   13434 
   13435   # Add ABI-specific directories to the system library path.
   13436   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
   13437 
   13438   # Ideally, we could use ldconfig to report *all* directores which are
   13439   # searched for libraries, however this is still not possible.  Aside from not
   13440   # being certain /sbin/ldconfig is available, command
   13441   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   13442   # even though it is searched at run-time.  Try to do the best guess by
   13443   # appending ld.so.conf contents (and includes) to the search path.
   13444   if test -f /etc/ld.so.conf; then
   13445     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' ' '`
   13446     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
   13447   fi
   13448 
   13449   # We used to test for /lib/ld.so.1 and disable shared libraries on
   13450   # powerpc, because MkLinux only supported shared libraries with the
   13451   # GNU dynamic linker.  Since this was broken with cross compilers,
   13452   # most powerpc-linux boxes support dynamic linking these days and
   13453   # people can always --disable-shared, the test was removed, and we
   13454   # assume the GNU/Linux dynamic linker is in use.
   13455   dynamic_linker='GNU/Linux ld.so'
   13456   ;;
   13457 
   13458 netbsd*)
   13459   version_type=sunos
   13460   need_lib_prefix=no
   13461   need_version=no
   13462   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   13463     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   13464     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   13465     dynamic_linker='NetBSD (a.out) ld.so'
   13466   else
   13467     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13468     soname_spec='$libname$release$shared_ext$major'
   13469     dynamic_linker='NetBSD ld.elf_so'
   13470   fi
   13471   shlibpath_var=LD_LIBRARY_PATH
   13472   shlibpath_overrides_runpath=yes
   13473   hardcode_into_libs=yes
   13474   ;;
   13475 
   13476 newsos6)
   13477   version_type=linux # correct to gnu/linux during the next big refactor
   13478   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13479   shlibpath_var=LD_LIBRARY_PATH
   13480   shlibpath_overrides_runpath=yes
   13481   ;;
   13482 
   13483 *nto* | *qnx*)
   13484   version_type=qnx
   13485   need_lib_prefix=no
   13486   need_version=no
   13487   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13488   soname_spec='$libname$release$shared_ext$major'
   13489   shlibpath_var=LD_LIBRARY_PATH
   13490   shlibpath_overrides_runpath=no
   13491   hardcode_into_libs=yes
   13492   dynamic_linker='ldqnx.so'
   13493   ;;
   13494 
   13495 openbsd* | bitrig*)
   13496   version_type=sunos
   13497   sys_lib_dlsearch_path_spec=/usr/lib
   13498   need_lib_prefix=no
   13499   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   13500     need_version=no
   13501   else
   13502     need_version=yes
   13503   fi
   13504   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   13505   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   13506   shlibpath_var=LD_LIBRARY_PATH
   13507   shlibpath_overrides_runpath=yes
   13508   ;;
   13509 
   13510 os2*)
   13511   libname_spec='$name'
   13512   version_type=windows
   13513   shrext_cmds=.dll
   13514   need_version=no
   13515   need_lib_prefix=no
   13516   # OS/2 can only load a DLL with a base name of 8 characters or less.
   13517   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   13518     v=$($ECHO $release$versuffix | tr -d .-);
   13519     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   13520     $ECHO $n$v`$shared_ext'
   13521   library_names_spec='${libname}_dll.$libext'
   13522   dynamic_linker='OS/2 ld.exe'
   13523   shlibpath_var=BEGINLIBPATH
   13524   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   13525   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   13526   postinstall_cmds='base_file=`basename \$file`~
   13527     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   13528     dldir=$destdir/`dirname \$dlpath`~
   13529     test -d \$dldir || mkdir -p \$dldir~
   13530     $install_prog $dir/$dlname \$dldir/$dlname~
   13531     chmod a+x \$dldir/$dlname~
   13532     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   13533       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   13534     fi'
   13535   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   13536     dlpath=$dir/\$dldll~
   13537     $RM \$dlpath'
   13538   ;;
   13539 
   13540 osf3* | osf4* | osf5*)
   13541   version_type=osf
   13542   need_lib_prefix=no
   13543   need_version=no
   13544   soname_spec='$libname$release$shared_ext$major'
   13545   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13546   shlibpath_var=LD_LIBRARY_PATH
   13547   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   13548   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   13549   ;;
   13550 
   13551 rdos*)
   13552   dynamic_linker=no
   13553   ;;
   13554 
   13555 solaris*)
   13556   version_type=linux # correct to gnu/linux during the next big refactor
   13557   need_lib_prefix=no
   13558   need_version=no
   13559   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13560   soname_spec='$libname$release$shared_ext$major'
   13561   shlibpath_var=LD_LIBRARY_PATH
   13562   shlibpath_overrides_runpath=yes
   13563   hardcode_into_libs=yes
   13564   # ldd complains unless libraries are executable
   13565   postinstall_cmds='chmod +x $lib'
   13566   ;;
   13567 
   13568 sunos4*)
   13569   version_type=sunos
   13570   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   13571   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   13572   shlibpath_var=LD_LIBRARY_PATH
   13573   shlibpath_overrides_runpath=yes
   13574   if test yes = "$with_gnu_ld"; then
   13575     need_lib_prefix=no
   13576   fi
   13577   need_version=yes
   13578   ;;
   13579 
   13580 sysv4 | sysv4.3*)
   13581   version_type=linux # correct to gnu/linux during the next big refactor
   13582   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13583   soname_spec='$libname$release$shared_ext$major'
   13584   shlibpath_var=LD_LIBRARY_PATH
   13585   case $host_vendor in
   13586     sni)
   13587       shlibpath_overrides_runpath=no
   13588       need_lib_prefix=no
   13589       runpath_var=LD_RUN_PATH
   13590       ;;
   13591     siemens)
   13592       need_lib_prefix=no
   13593       ;;
   13594     motorola)
   13595       need_lib_prefix=no
   13596       need_version=no
   13597       shlibpath_overrides_runpath=no
   13598       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   13599       ;;
   13600   esac
   13601   ;;
   13602 
   13603 sysv4*MP*)
   13604   if test -d /usr/nec; then
   13605     version_type=linux # correct to gnu/linux during the next big refactor
   13606     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   13607     soname_spec='$libname$shared_ext.$major'
   13608     shlibpath_var=LD_LIBRARY_PATH
   13609   fi
   13610   ;;
   13611 
   13612 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   13613   version_type=sco
   13614   need_lib_prefix=no
   13615   need_version=no
   13616   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   13617   soname_spec='$libname$release$shared_ext$major'
   13618   shlibpath_var=LD_LIBRARY_PATH
   13619   shlibpath_overrides_runpath=yes
   13620   hardcode_into_libs=yes
   13621   if test yes = "$with_gnu_ld"; then
   13622     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   13623   else
   13624     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   13625     case $host_os in
   13626       sco3.2v5*)
   13627         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   13628 	;;
   13629     esac
   13630   fi
   13631   sys_lib_dlsearch_path_spec='/usr/lib'
   13632   ;;
   13633 
   13634 tpf*)
   13635   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   13636   version_type=linux # correct to gnu/linux during the next big refactor
   13637   need_lib_prefix=no
   13638   need_version=no
   13639   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13640   shlibpath_var=LD_LIBRARY_PATH
   13641   shlibpath_overrides_runpath=no
   13642   hardcode_into_libs=yes
   13643   ;;
   13644 
   13645 uts4*)
   13646   version_type=linux # correct to gnu/linux during the next big refactor
   13647   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   13648   soname_spec='$libname$release$shared_ext$major'
   13649   shlibpath_var=LD_LIBRARY_PATH
   13650   ;;
   13651 
   13652 *)
   13653   dynamic_linker=no
   13654   ;;
   13655 esac
   13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   13657 $as_echo "$dynamic_linker" >&6; }
   13658 test no = "$dynamic_linker" && can_build_shared=no
   13659 
   13660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   13661 if test yes = "$GCC"; then
   13662   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   13663 fi
   13664 
   13665 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   13666   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   13667 fi
   13668 
   13669 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   13670   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   13671 fi
   13672 
   13673 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   13674 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   13675 
   13676 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   13677 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   13678 
   13679 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   13680 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   13681 
   13682 
   13683 
   13684 
   13685 
   13686 
   13687 
   13688 
   13689 
   13690 
   13691 
   13692 
   13693 
   13694 
   13695 
   13696 
   13697 
   13698 
   13699 
   13700 
   13701 
   13702 
   13703 
   13704 
   13705 
   13706 
   13707 
   13708 
   13709 
   13710 
   13711 
   13712 
   13713 
   13714 
   13715 
   13716 
   13717 
   13718 
   13719 
   13720 
   13721 
   13722 
   13723 
   13724 
   13725 
   13726 
   13727 
   13728 
   13729 
   13730 
   13731 
   13732 
   13733 
   13734 
   13735 
   13736 
   13737 
   13738 
   13739 
   13740 
   13741 
   13742 
   13743 
   13744 
   13745 
   13746 
   13747 
   13748 
   13749 
   13750 
   13751 
   13752 
   13753 
   13754 
   13755 
   13756 
   13757 
   13758 
   13759 
   13760 
   13761 
   13762 
   13763 
   13764 
   13765 
   13766 
   13767 
   13768 
   13769 
   13770 
   13771 
   13772 
   13773 
   13774 
   13775 
   13776 
   13777 
   13778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   13779 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   13780 hardcode_action=
   13781 if test -n "$hardcode_libdir_flag_spec" ||
   13782    test -n "$runpath_var" ||
   13783    test yes = "$hardcode_automatic"; then
   13784 
   13785   # We can hardcode non-existent directories.
   13786   if test no != "$hardcode_direct" &&
   13787      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   13788      # have to relink, otherwise we might link with an installed library
   13789      # when we should be linking with a yet-to-be-installed one
   13790      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   13791      test no != "$hardcode_minus_L"; then
   13792     # Linking always hardcodes the temporary library directory.
   13793     hardcode_action=relink
   13794   else
   13795     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   13796     hardcode_action=immediate
   13797   fi
   13798 else
   13799   # We cannot hardcode anything, or else we can only hardcode existing
   13800   # directories.
   13801   hardcode_action=unsupported
   13802 fi
   13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   13804 $as_echo "$hardcode_action" >&6; }
   13805 
   13806 if test relink = "$hardcode_action" ||
   13807    test yes = "$inherit_rpath"; then
   13808   # Fast installation is not supported
   13809   enable_fast_install=no
   13810 elif test yes = "$shlibpath_overrides_runpath" ||
   13811      test no = "$enable_shared"; then
   13812   # Fast installation is not necessary
   13813   enable_fast_install=needless
   13814 fi
   13815 
   13816 
   13817 
   13818 
   13819 
   13820 
   13821   if test yes != "$enable_dlopen"; then
   13822   enable_dlopen=unknown
   13823   enable_dlopen_self=unknown
   13824   enable_dlopen_self_static=unknown
   13825 else
   13826   lt_cv_dlopen=no
   13827   lt_cv_dlopen_libs=
   13828 
   13829   case $host_os in
   13830   beos*)
   13831     lt_cv_dlopen=load_add_on
   13832     lt_cv_dlopen_libs=
   13833     lt_cv_dlopen_self=yes
   13834     ;;
   13835 
   13836   mingw* | pw32* | cegcc*)
   13837     lt_cv_dlopen=LoadLibrary
   13838     lt_cv_dlopen_libs=
   13839     ;;
   13840 
   13841   cygwin*)
   13842     lt_cv_dlopen=dlopen
   13843     lt_cv_dlopen_libs=
   13844     ;;
   13845 
   13846   darwin*)
   13847     # if libdl is installed we need to link against it
   13848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   13849 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   13850 if ${ac_cv_lib_dl_dlopen+:} false; then :
   13851   $as_echo_n "(cached) " >&6
   13852 else
   13853   ac_check_lib_save_LIBS=$LIBS
   13854 LIBS="-ldl  $LIBS"
   13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13856 /* end confdefs.h.  */
   13857 
   13858 /* Override any GCC internal prototype to avoid an error.
   13859    Use char because int might match the return type of a GCC
   13860    builtin and then its argument prototype would still apply.  */
   13861 #ifdef __cplusplus
   13862 extern "C"
   13863 #endif
   13864 char dlopen ();
   13865 int
   13866 main ()
   13867 {
   13868 return dlopen ();
   13869   ;
   13870   return 0;
   13871 }
   13872 _ACEOF
   13873 if ac_fn_c_try_link "$LINENO"; then :
   13874   ac_cv_lib_dl_dlopen=yes
   13875 else
   13876   ac_cv_lib_dl_dlopen=no
   13877 fi
   13878 rm -f core conftest.err conftest.$ac_objext \
   13879     conftest$ac_exeext conftest.$ac_ext
   13880 LIBS=$ac_check_lib_save_LIBS
   13881 fi
   13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   13883 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   13884 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   13885   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   13886 else
   13887 
   13888     lt_cv_dlopen=dyld
   13889     lt_cv_dlopen_libs=
   13890     lt_cv_dlopen_self=yes
   13891 
   13892 fi
   13893 
   13894     ;;
   13895 
   13896   tpf*)
   13897     # Don't try to run any link tests for TPF.  We know it's impossible
   13898     # because TPF is a cross-compiler, and we know how we open DSOs.
   13899     lt_cv_dlopen=dlopen
   13900     lt_cv_dlopen_libs=
   13901     lt_cv_dlopen_self=no
   13902     ;;
   13903 
   13904   *)
   13905     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   13906 if test "x$ac_cv_func_shl_load" = xyes; then :
   13907   lt_cv_dlopen=shl_load
   13908 else
   13909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   13910 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   13911 if ${ac_cv_lib_dld_shl_load+:} false; then :
   13912   $as_echo_n "(cached) " >&6
   13913 else
   13914   ac_check_lib_save_LIBS=$LIBS
   13915 LIBS="-ldld  $LIBS"
   13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13917 /* end confdefs.h.  */
   13918 
   13919 /* Override any GCC internal prototype to avoid an error.
   13920    Use char because int might match the return type of a GCC
   13921    builtin and then its argument prototype would still apply.  */
   13922 #ifdef __cplusplus
   13923 extern "C"
   13924 #endif
   13925 char shl_load ();
   13926 int
   13927 main ()
   13928 {
   13929 return shl_load ();
   13930   ;
   13931   return 0;
   13932 }
   13933 _ACEOF
   13934 if ac_fn_c_try_link "$LINENO"; then :
   13935   ac_cv_lib_dld_shl_load=yes
   13936 else
   13937   ac_cv_lib_dld_shl_load=no
   13938 fi
   13939 rm -f core conftest.err conftest.$ac_objext \
   13940     conftest$ac_exeext conftest.$ac_ext
   13941 LIBS=$ac_check_lib_save_LIBS
   13942 fi
   13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   13944 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   13945 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   13946   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   13947 else
   13948   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   13949 if test "x$ac_cv_func_dlopen" = xyes; then :
   13950   lt_cv_dlopen=dlopen
   13951 else
   13952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   13953 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   13954 if ${ac_cv_lib_dl_dlopen+:} false; then :
   13955   $as_echo_n "(cached) " >&6
   13956 else
   13957   ac_check_lib_save_LIBS=$LIBS
   13958 LIBS="-ldl  $LIBS"
   13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13960 /* end confdefs.h.  */
   13961 
   13962 /* Override any GCC internal prototype to avoid an error.
   13963    Use char because int might match the return type of a GCC
   13964    builtin and then its argument prototype would still apply.  */
   13965 #ifdef __cplusplus
   13966 extern "C"
   13967 #endif
   13968 char dlopen ();
   13969 int
   13970 main ()
   13971 {
   13972 return dlopen ();
   13973   ;
   13974   return 0;
   13975 }
   13976 _ACEOF
   13977 if ac_fn_c_try_link "$LINENO"; then :
   13978   ac_cv_lib_dl_dlopen=yes
   13979 else
   13980   ac_cv_lib_dl_dlopen=no
   13981 fi
   13982 rm -f core conftest.err conftest.$ac_objext \
   13983     conftest$ac_exeext conftest.$ac_ext
   13984 LIBS=$ac_check_lib_save_LIBS
   13985 fi
   13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   13987 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   13988 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   13989   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   13990 else
   13991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   13992 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   13993 if ${ac_cv_lib_svld_dlopen+:} false; then :
   13994   $as_echo_n "(cached) " >&6
   13995 else
   13996   ac_check_lib_save_LIBS=$LIBS
   13997 LIBS="-lsvld  $LIBS"
   13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13999 /* end confdefs.h.  */
   14000 
   14001 /* Override any GCC internal prototype to avoid an error.
   14002    Use char because int might match the return type of a GCC
   14003    builtin and then its argument prototype would still apply.  */
   14004 #ifdef __cplusplus
   14005 extern "C"
   14006 #endif
   14007 char dlopen ();
   14008 int
   14009 main ()
   14010 {
   14011 return dlopen ();
   14012   ;
   14013   return 0;
   14014 }
   14015 _ACEOF
   14016 if ac_fn_c_try_link "$LINENO"; then :
   14017   ac_cv_lib_svld_dlopen=yes
   14018 else
   14019   ac_cv_lib_svld_dlopen=no
   14020 fi
   14021 rm -f core conftest.err conftest.$ac_objext \
   14022     conftest$ac_exeext conftest.$ac_ext
   14023 LIBS=$ac_check_lib_save_LIBS
   14024 fi
   14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   14026 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   14027 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   14028   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   14029 else
   14030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   14031 $as_echo_n "checking for dld_link in -ldld... " >&6; }
   14032 if ${ac_cv_lib_dld_dld_link+:} false; then :
   14033   $as_echo_n "(cached) " >&6
   14034 else
   14035   ac_check_lib_save_LIBS=$LIBS
   14036 LIBS="-ldld  $LIBS"
   14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14038 /* end confdefs.h.  */
   14039 
   14040 /* Override any GCC internal prototype to avoid an error.
   14041    Use char because int might match the return type of a GCC
   14042    builtin and then its argument prototype would still apply.  */
   14043 #ifdef __cplusplus
   14044 extern "C"
   14045 #endif
   14046 char dld_link ();
   14047 int
   14048 main ()
   14049 {
   14050 return dld_link ();
   14051   ;
   14052   return 0;
   14053 }
   14054 _ACEOF
   14055 if ac_fn_c_try_link "$LINENO"; then :
   14056   ac_cv_lib_dld_dld_link=yes
   14057 else
   14058   ac_cv_lib_dld_dld_link=no
   14059 fi
   14060 rm -f core conftest.err conftest.$ac_objext \
   14061     conftest$ac_exeext conftest.$ac_ext
   14062 LIBS=$ac_check_lib_save_LIBS
   14063 fi
   14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   14065 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   14066 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   14067   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   14068 fi
   14069 
   14070 
   14071 fi
   14072 
   14073 
   14074 fi
   14075 
   14076 
   14077 fi
   14078 
   14079 
   14080 fi
   14081 
   14082 
   14083 fi
   14084 
   14085     ;;
   14086   esac
   14087 
   14088   if test no = "$lt_cv_dlopen"; then
   14089     enable_dlopen=no
   14090   else
   14091     enable_dlopen=yes
   14092   fi
   14093 
   14094   case $lt_cv_dlopen in
   14095   dlopen)
   14096     save_CPPFLAGS=$CPPFLAGS
   14097     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   14098 
   14099     save_LDFLAGS=$LDFLAGS
   14100     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   14101 
   14102     save_LIBS=$LIBS
   14103     LIBS="$lt_cv_dlopen_libs $LIBS"
   14104 
   14105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   14106 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   14107 if ${lt_cv_dlopen_self+:} false; then :
   14108   $as_echo_n "(cached) " >&6
   14109 else
   14110   	  if test yes = "$cross_compiling"; then :
   14111   lt_cv_dlopen_self=cross
   14112 else
   14113   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   14114   lt_status=$lt_dlunknown
   14115   cat > conftest.$ac_ext <<_LT_EOF
   14116 #line $LINENO "configure"
   14117 #include "confdefs.h"
   14118 
   14119 #if HAVE_DLFCN_H
   14120 #include <dlfcn.h>
   14121 #endif
   14122 
   14123 #include <stdio.h>
   14124 
   14125 #ifdef RTLD_GLOBAL
   14126 #  define LT_DLGLOBAL		RTLD_GLOBAL
   14127 #else
   14128 #  ifdef DL_GLOBAL
   14129 #    define LT_DLGLOBAL		DL_GLOBAL
   14130 #  else
   14131 #    define LT_DLGLOBAL		0
   14132 #  endif
   14133 #endif
   14134 
   14135 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   14136    find out it does not work in some platform. */
   14137 #ifndef LT_DLLAZY_OR_NOW
   14138 #  ifdef RTLD_LAZY
   14139 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   14140 #  else
   14141 #    ifdef DL_LAZY
   14142 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   14143 #    else
   14144 #      ifdef RTLD_NOW
   14145 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   14146 #      else
   14147 #        ifdef DL_NOW
   14148 #          define LT_DLLAZY_OR_NOW	DL_NOW
   14149 #        else
   14150 #          define LT_DLLAZY_OR_NOW	0
   14151 #        endif
   14152 #      endif
   14153 #    endif
   14154 #  endif
   14155 #endif
   14156 
   14157 /* When -fvisibility=hidden is used, assume the code has been annotated
   14158    correspondingly for the symbols needed.  */
   14159 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   14160 int fnord () __attribute__((visibility("default")));
   14161 #endif
   14162 
   14163 int fnord () { return 42; }
   14164 int main ()
   14165 {
   14166   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   14167   int status = $lt_dlunknown;
   14168 
   14169   if (self)
   14170     {
   14171       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   14172       else
   14173         {
   14174 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   14175           else puts (dlerror ());
   14176 	}
   14177       /* dlclose (self); */
   14178     }
   14179   else
   14180     puts (dlerror ());
   14181 
   14182   return status;
   14183 }
   14184 _LT_EOF
   14185   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   14186   (eval $ac_link) 2>&5
   14187   ac_status=$?
   14188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14189   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   14190     (./conftest; exit; ) >&5 2>/dev/null
   14191     lt_status=$?
   14192     case x$lt_status in
   14193       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   14194       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   14195       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   14196     esac
   14197   else :
   14198     # compilation failed
   14199     lt_cv_dlopen_self=no
   14200   fi
   14201 fi
   14202 rm -fr conftest*
   14203 
   14204 
   14205 fi
   14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   14207 $as_echo "$lt_cv_dlopen_self" >&6; }
   14208 
   14209     if test yes = "$lt_cv_dlopen_self"; then
   14210       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   14211       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   14212 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   14213 if ${lt_cv_dlopen_self_static+:} false; then :
   14214   $as_echo_n "(cached) " >&6
   14215 else
   14216   	  if test yes = "$cross_compiling"; then :
   14217   lt_cv_dlopen_self_static=cross
   14218 else
   14219   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   14220   lt_status=$lt_dlunknown
   14221   cat > conftest.$ac_ext <<_LT_EOF
   14222 #line $LINENO "configure"
   14223 #include "confdefs.h"
   14224 
   14225 #if HAVE_DLFCN_H
   14226 #include <dlfcn.h>
   14227 #endif
   14228 
   14229 #include <stdio.h>
   14230 
   14231 #ifdef RTLD_GLOBAL
   14232 #  define LT_DLGLOBAL		RTLD_GLOBAL
   14233 #else
   14234 #  ifdef DL_GLOBAL
   14235 #    define LT_DLGLOBAL		DL_GLOBAL
   14236 #  else
   14237 #    define LT_DLGLOBAL		0
   14238 #  endif
   14239 #endif
   14240 
   14241 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   14242    find out it does not work in some platform. */
   14243 #ifndef LT_DLLAZY_OR_NOW
   14244 #  ifdef RTLD_LAZY
   14245 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   14246 #  else
   14247 #    ifdef DL_LAZY
   14248 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   14249 #    else
   14250 #      ifdef RTLD_NOW
   14251 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   14252 #      else
   14253 #        ifdef DL_NOW
   14254 #          define LT_DLLAZY_OR_NOW	DL_NOW
   14255 #        else
   14256 #          define LT_DLLAZY_OR_NOW	0
   14257 #        endif
   14258 #      endif
   14259 #    endif
   14260 #  endif
   14261 #endif
   14262 
   14263 /* When -fvisibility=hidden is used, assume the code has been annotated
   14264    correspondingly for the symbols needed.  */
   14265 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   14266 int fnord () __attribute__((visibility("default")));
   14267 #endif
   14268 
   14269 int fnord () { return 42; }
   14270 int main ()
   14271 {
   14272   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   14273   int status = $lt_dlunknown;
   14274 
   14275   if (self)
   14276     {
   14277       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   14278       else
   14279         {
   14280 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   14281           else puts (dlerror ());
   14282 	}
   14283       /* dlclose (self); */
   14284     }
   14285   else
   14286     puts (dlerror ());
   14287 
   14288   return status;
   14289 }
   14290 _LT_EOF
   14291   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   14292   (eval $ac_link) 2>&5
   14293   ac_status=$?
   14294   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14295   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   14296     (./conftest; exit; ) >&5 2>/dev/null
   14297     lt_status=$?
   14298     case x$lt_status in
   14299       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   14300       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   14301       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   14302     esac
   14303   else :
   14304     # compilation failed
   14305     lt_cv_dlopen_self_static=no
   14306   fi
   14307 fi
   14308 rm -fr conftest*
   14309 
   14310 
   14311 fi
   14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   14313 $as_echo "$lt_cv_dlopen_self_static" >&6; }
   14314     fi
   14315 
   14316     CPPFLAGS=$save_CPPFLAGS
   14317     LDFLAGS=$save_LDFLAGS
   14318     LIBS=$save_LIBS
   14319     ;;
   14320   esac
   14321 
   14322   case $lt_cv_dlopen_self in
   14323   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   14324   *) enable_dlopen_self=unknown ;;
   14325   esac
   14326 
   14327   case $lt_cv_dlopen_self_static in
   14328   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   14329   *) enable_dlopen_self_static=unknown ;;
   14330   esac
   14331 fi
   14332 
   14333 
   14334 
   14335 
   14336 
   14337 
   14338 
   14339 
   14340 
   14341 
   14342 
   14343 
   14344 
   14345 
   14346 
   14347 
   14348 
   14349 striplib=
   14350 old_striplib=
   14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   14352 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   14353 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   14354   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   14355   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   14356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14357 $as_echo "yes" >&6; }
   14358 else
   14359 # FIXME - insert some real tests, host_os isn't really good enough
   14360   case $host_os in
   14361   darwin*)
   14362     if test -n "$STRIP"; then
   14363       striplib="$STRIP -x"
   14364       old_striplib="$STRIP -S"
   14365       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14366 $as_echo "yes" >&6; }
   14367     else
   14368       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14369 $as_echo "no" >&6; }
   14370     fi
   14371     ;;
   14372   *)
   14373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14374 $as_echo "no" >&6; }
   14375     ;;
   14376   esac
   14377 fi
   14378 
   14379 
   14380 
   14381 
   14382 
   14383 
   14384 
   14385 
   14386 
   14387 
   14388 
   14389 
   14390   # Report what library types will actually be built
   14391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   14392 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   14393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   14394 $as_echo "$can_build_shared" >&6; }
   14395 
   14396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   14397 $as_echo_n "checking whether to build shared libraries... " >&6; }
   14398   test no = "$can_build_shared" && enable_shared=no
   14399 
   14400   # On AIX, shared libraries and static libraries use the same namespace, and
   14401   # are all built from PIC.
   14402   case $host_os in
   14403   aix3*)
   14404     test yes = "$enable_shared" && enable_static=no
   14405     if test -n "$RANLIB"; then
   14406       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   14407       postinstall_cmds='$RANLIB $lib'
   14408     fi
   14409     ;;
   14410 
   14411   aix[4-9]*)
   14412     if test ia64 != "$host_cpu"; then
   14413       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   14414       yes,aix,yes) ;;			# shared object as lib.so file only
   14415       yes,svr4,*) ;;			# shared object as lib.so archive member only
   14416       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   14417       esac
   14418     fi
   14419     ;;
   14420   esac
   14421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   14422 $as_echo "$enable_shared" >&6; }
   14423 
   14424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   14425 $as_echo_n "checking whether to build static libraries... " >&6; }
   14426   # Make sure either enable_shared or enable_static is yes.
   14427   test yes = "$enable_shared" || enable_static=yes
   14428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   14429 $as_echo "$enable_static" >&6; }
   14430 
   14431 
   14432 
   14433 
   14434 fi
   14435 ac_ext=c
   14436 ac_cpp='$CPP $CPPFLAGS'
   14437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14440 
   14441 CC=$lt_save_CC
   14442 
   14443 
   14444 
   14445 
   14446 
   14447 
   14448 
   14449 
   14450 
   14451 
   14452 
   14453 
   14454 
   14455 
   14456 
   14457         ac_config_commands="$ac_config_commands libtool"
   14458 
   14459 
   14460 
   14461 
   14462 # Only expand once:
   14463 
   14464 
   14465 
   14466 
   14467 # Checks for header files.
   14468 for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h sys/ipc.h sys/shm.h
   14469 do :
   14470   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14471 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   14472 "
   14473 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   14474   cat >>confdefs.h <<_ACEOF
   14475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14476 _ACEOF
   14477 
   14478 fi
   14479 
   14480 done
   14481 
   14482 
   14483 # check for types.
   14484 # Using own tests for int64* because autoconf builtin only give 32bit.
   14485 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
   14486 if test "x$ac_cv_type_int8_t" = xyes; then :
   14487 
   14488 else
   14489 
   14490 cat >>confdefs.h <<_ACEOF
   14491 #define int8_t signed char
   14492 _ACEOF
   14493 
   14494 fi
   14495 
   14496 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
   14497 if test "x$ac_cv_type_int16_t" = xyes; then :
   14498 
   14499 else
   14500 
   14501 cat >>confdefs.h <<_ACEOF
   14502 #define int16_t short
   14503 _ACEOF
   14504 
   14505 fi
   14506 
   14507 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
   14508 if test "x$ac_cv_type_int32_t" = xyes; then :
   14509 
   14510 else
   14511 
   14512 cat >>confdefs.h <<_ACEOF
   14513 #define int32_t int
   14514 _ACEOF
   14515 
   14516 fi
   14517 
   14518 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
   14519 if test "x$ac_cv_type_int64_t" = xyes; then :
   14520 
   14521 else
   14522 
   14523 cat >>confdefs.h <<_ACEOF
   14524 #define int64_t long long
   14525 _ACEOF
   14526 
   14527 fi
   14528 
   14529 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
   14530 if test "x$ac_cv_type_uint8_t" = xyes; then :
   14531 
   14532 else
   14533 
   14534 cat >>confdefs.h <<_ACEOF
   14535 #define uint8_t unsigned char
   14536 _ACEOF
   14537 
   14538 fi
   14539 
   14540 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
   14541 if test "x$ac_cv_type_uint16_t" = xyes; then :
   14542 
   14543 else
   14544 
   14545 cat >>confdefs.h <<_ACEOF
   14546 #define uint16_t unsigned short
   14547 _ACEOF
   14548 
   14549 fi
   14550 
   14551 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
   14552 if test "x$ac_cv_type_uint32_t" = xyes; then :
   14553 
   14554 else
   14555 
   14556 cat >>confdefs.h <<_ACEOF
   14557 #define uint32_t unsigned int
   14558 _ACEOF
   14559 
   14560 fi
   14561 
   14562 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
   14563 if test "x$ac_cv_type_uint64_t" = xyes; then :
   14564 
   14565 else
   14566 
   14567 cat >>confdefs.h <<_ACEOF
   14568 #define uint64_t unsigned long long
   14569 _ACEOF
   14570 
   14571 fi
   14572 
   14573 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   14574 if test "x$ac_cv_type_size_t" = xyes; then :
   14575 
   14576 else
   14577 
   14578 cat >>confdefs.h <<_ACEOF
   14579 #define size_t unsigned int
   14580 _ACEOF
   14581 
   14582 fi
   14583 
   14584 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   14585 if test "x$ac_cv_type_ssize_t" = xyes; then :
   14586 
   14587 else
   14588 
   14589 cat >>confdefs.h <<_ACEOF
   14590 #define ssize_t int
   14591 _ACEOF
   14592 
   14593 fi
   14594 
   14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
   14596 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
   14597 if ${ac_cv_type_uid_t+:} false; then :
   14598   $as_echo_n "(cached) " >&6
   14599 else
   14600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14601 /* end confdefs.h.  */
   14602 #include <sys/types.h>
   14603 
   14604 _ACEOF
   14605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14606   $EGREP "uid_t" >/dev/null 2>&1; then :
   14607   ac_cv_type_uid_t=yes
   14608 else
   14609   ac_cv_type_uid_t=no
   14610 fi
   14611 rm -f conftest*
   14612 
   14613 fi
   14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
   14615 $as_echo "$ac_cv_type_uid_t" >&6; }
   14616 if test $ac_cv_type_uid_t = no; then
   14617 
   14618 $as_echo "#define uid_t int" >>confdefs.h
   14619 
   14620 
   14621 $as_echo "#define gid_t int" >>confdefs.h
   14622 
   14623 fi
   14624 
   14625 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   14626 if test "x$ac_cv_type_pid_t" = xyes; then :
   14627 
   14628 else
   14629 
   14630 cat >>confdefs.h <<_ACEOF
   14631 #define pid_t int
   14632 _ACEOF
   14633 
   14634 fi
   14635 
   14636 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
   14637 if test "x$ac_cv_type_off_t" = xyes; then :
   14638 
   14639 else
   14640 
   14641 cat >>confdefs.h <<_ACEOF
   14642 #define off_t long int
   14643 _ACEOF
   14644 
   14645 fi
   14646 
   14647 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
   14648 $ac_includes_default
   14649 #ifdef HAVE_WINSOCK2_H
   14650 #  include <winsock2.h>
   14651 #endif
   14652 
   14653 "
   14654 if test "x$ac_cv_type_u_char" = xyes; then :
   14655 
   14656 else
   14657 
   14658 $as_echo "#define u_char unsigned char" >>confdefs.h
   14659 
   14660 fi
   14661 
   14662 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
   14663 $ac_includes_default
   14664 #ifdef HAVE_SYS_RESOURCE_H
   14665 #  include <sys/resource.h>
   14666 #endif
   14667 
   14668 "
   14669 if test "x$ac_cv_type_rlim_t" = xyes; then :
   14670 
   14671 else
   14672 
   14673 $as_echo "#define rlim_t unsigned long" >>confdefs.h
   14674 
   14675 fi
   14676 
   14677 
   14678 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
   14679 $ac_includes_default
   14680 #ifdef HAVE_SYS_SOCKET_H
   14681 #  include <sys/socket.h>
   14682 #endif
   14683 #ifdef HAVE_WS2TCPIP_H
   14684 #  include <ws2tcpip.h>
   14685 #endif
   14686 
   14687 "
   14688 if test "x$ac_cv_type_socklen_t" = xyes; then :
   14689 
   14690 else
   14691 
   14692 $as_echo "#define socklen_t int" >>confdefs.h
   14693 
   14694 fi
   14695 
   14696  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
   14697 $ac_includes_default
   14698 #ifdef HAVE_SYS_TYPES_H
   14699 # include <sys/types.h>
   14700 #endif
   14701 #ifdef HAVE_NETINET_IN_H
   14702 # include <netinet/in.h>
   14703 #endif
   14704 
   14705 "
   14706 if test "x$ac_cv_type_in_addr_t" = xyes; then :
   14707 
   14708 else
   14709 
   14710 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
   14711 
   14712 fi
   14713 
   14714  ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
   14715 $ac_includes_default
   14716 #ifdef HAVE_SYS_TYPES_H
   14717 # include <sys/types.h>
   14718 #endif
   14719 #ifdef HAVE_NETINET_IN_H
   14720 # include <netinet/in.h>
   14721 #endif
   14722 
   14723 "
   14724 if test "x$ac_cv_type_in_port_t" = xyes; then :
   14725 
   14726 else
   14727 
   14728 $as_echo "#define in_port_t uint16_t" >>confdefs.h
   14729 
   14730 fi
   14731 
   14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
   14733 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
   14734 if test "$cross_compiling" = yes; then :
   14735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
   14736 $as_echo "cross-compile no" >&6; }
   14737 
   14738 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
   14739 
   14740   case " $LIBOBJS " in
   14741   *" memcmp.$ac_objext "* ) ;;
   14742   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
   14743  ;;
   14744 esac
   14745 
   14746 
   14747 else
   14748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14749 /* end confdefs.h.  */
   14750 
   14751 #include <stdio.h>
   14752 #include <stdlib.h>
   14753 #include <string.h>
   14754 int main(void)
   14755 {
   14756 	char a = 255, b = 0;
   14757 	if(memcmp(&a, &b, 1) < 0)
   14758 		return 1;
   14759 	return 0;
   14760 }
   14761 
   14762 _ACEOF
   14763 if ac_fn_c_try_run "$LINENO"; then :
   14764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14765 $as_echo "yes" >&6; }
   14766 else
   14767    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14768 $as_echo "no" >&6; }
   14769 
   14770 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
   14771 
   14772   case " $LIBOBJS " in
   14773   *" memcmp.$ac_objext "* ) ;;
   14774   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
   14775  ;;
   14776 esac
   14777 
   14778 
   14779 fi
   14780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14781   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14782 fi
   14783 
   14784 
   14785 # The cast to long int works around a bug in the HP C Compiler
   14786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14788 # This bug is HP SR number 8606223364.
   14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
   14790 $as_echo_n "checking size of time_t... " >&6; }
   14791 if ${ac_cv_sizeof_time_t+:} false; then :
   14792   $as_echo_n "(cached) " >&6
   14793 else
   14794   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
   14795 $ac_includes_default
   14796 #ifdef TIME_WITH_SYS_TIME
   14797 # include <sys/time.h>
   14798 # include <time.h>
   14799 #else
   14800 # ifdef HAVE_SYS_TIME_H
   14801 #  include <sys/time.h>
   14802 # else
   14803 #  include <time.h>
   14804 # endif
   14805 #endif
   14806 
   14807 "; then :
   14808 
   14809 else
   14810   if test "$ac_cv_type_time_t" = yes; then
   14811      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14813 as_fn_error 77 "cannot compute sizeof (time_t)
   14814 See \`config.log' for more details" "$LINENO" 5; }
   14815    else
   14816      ac_cv_sizeof_time_t=0
   14817    fi
   14818 fi
   14819 
   14820 fi
   14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
   14822 $as_echo "$ac_cv_sizeof_time_t" >&6; }
   14823 
   14824 
   14825 
   14826 cat >>confdefs.h <<_ACEOF
   14827 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
   14828 _ACEOF
   14829 
   14830 
   14831 
   14832 # add option to disable the evil rpath
   14833 
   14834 # Check whether --enable-rpath was given.
   14835 if test "${enable_rpath+set}" = set; then :
   14836   enableval=$enable_rpath; enable_rpath=$enableval
   14837 else
   14838   enable_rpath=yes
   14839 fi
   14840 
   14841 if test "x$enable_rpath" = xno; then
   14842 		ac_config_commands="$ac_config_commands disable-rpath"
   14843 
   14844 fi
   14845 
   14846 
   14847 
   14848 # check to see if libraries are needed for these functions.
   14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
   14850 $as_echo_n "checking for library containing inet_pton... " >&6; }
   14851 if ${ac_cv_search_inet_pton+:} false; then :
   14852   $as_echo_n "(cached) " >&6
   14853 else
   14854   ac_func_search_save_LIBS=$LIBS
   14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14856 /* end confdefs.h.  */
   14857 
   14858 /* Override any GCC internal prototype to avoid an error.
   14859    Use char because int might match the return type of a GCC
   14860    builtin and then its argument prototype would still apply.  */
   14861 #ifdef __cplusplus
   14862 extern "C"
   14863 #endif
   14864 char inet_pton ();
   14865 int
   14866 main ()
   14867 {
   14868 return inet_pton ();
   14869   ;
   14870   return 0;
   14871 }
   14872 _ACEOF
   14873 for ac_lib in '' nsl; do
   14874   if test -z "$ac_lib"; then
   14875     ac_res="none required"
   14876   else
   14877     ac_res=-l$ac_lib
   14878     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14879   fi
   14880   if ac_fn_c_try_link "$LINENO"; then :
   14881   ac_cv_search_inet_pton=$ac_res
   14882 fi
   14883 rm -f core conftest.err conftest.$ac_objext \
   14884     conftest$ac_exeext
   14885   if ${ac_cv_search_inet_pton+:} false; then :
   14886   break
   14887 fi
   14888 done
   14889 if ${ac_cv_search_inet_pton+:} false; then :
   14890 
   14891 else
   14892   ac_cv_search_inet_pton=no
   14893 fi
   14894 rm conftest.$ac_ext
   14895 LIBS=$ac_func_search_save_LIBS
   14896 fi
   14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
   14898 $as_echo "$ac_cv_search_inet_pton" >&6; }
   14899 ac_res=$ac_cv_search_inet_pton
   14900 if test "$ac_res" != no; then :
   14901   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14902 
   14903 fi
   14904 
   14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
   14906 $as_echo_n "checking for library containing socket... " >&6; }
   14907 if ${ac_cv_search_socket+:} false; then :
   14908   $as_echo_n "(cached) " >&6
   14909 else
   14910   ac_func_search_save_LIBS=$LIBS
   14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14912 /* end confdefs.h.  */
   14913 
   14914 /* Override any GCC internal prototype to avoid an error.
   14915    Use char because int might match the return type of a GCC
   14916    builtin and then its argument prototype would still apply.  */
   14917 #ifdef __cplusplus
   14918 extern "C"
   14919 #endif
   14920 char socket ();
   14921 int
   14922 main ()
   14923 {
   14924 return socket ();
   14925   ;
   14926   return 0;
   14927 }
   14928 _ACEOF
   14929 for ac_lib in '' socket; do
   14930   if test -z "$ac_lib"; then
   14931     ac_res="none required"
   14932   else
   14933     ac_res=-l$ac_lib
   14934     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14935   fi
   14936   if ac_fn_c_try_link "$LINENO"; then :
   14937   ac_cv_search_socket=$ac_res
   14938 fi
   14939 rm -f core conftest.err conftest.$ac_objext \
   14940     conftest$ac_exeext
   14941   if ${ac_cv_search_socket+:} false; then :
   14942   break
   14943 fi
   14944 done
   14945 if ${ac_cv_search_socket+:} false; then :
   14946 
   14947 else
   14948   ac_cv_search_socket=no
   14949 fi
   14950 rm conftest.$ac_ext
   14951 LIBS=$ac_func_search_save_LIBS
   14952 fi
   14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
   14954 $as_echo "$ac_cv_search_socket" >&6; }
   14955 ac_res=$ac_cv_search_socket
   14956 if test "$ac_res" != no; then :
   14957   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14958 
   14959 fi
   14960 
   14961 
   14962 # check wether strptime also works
   14963 
   14964 # check some functions of the OS before linking libs (while still runnable).
   14965 for ac_header in unistd.h
   14966 do :
   14967   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
   14968 if test "x$ac_cv_header_unistd_h" = xyes; then :
   14969   cat >>confdefs.h <<_ACEOF
   14970 #define HAVE_UNISTD_H 1
   14971 _ACEOF
   14972 
   14973 fi
   14974 
   14975 done
   14976 
   14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
   14978 $as_echo_n "checking for working chown... " >&6; }
   14979 if ${ac_cv_func_chown_works+:} false; then :
   14980   $as_echo_n "(cached) " >&6
   14981 else
   14982   if test "$cross_compiling" = yes; then :
   14983   ac_cv_func_chown_works=no
   14984 else
   14985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14986 /* end confdefs.h.  */
   14987 $ac_includes_default
   14988 #include <fcntl.h>
   14989 
   14990 int
   14991 main ()
   14992 {
   14993   char *f = "conftest.chown";
   14994   struct stat before, after;
   14995 
   14996   if (creat (f, 0600) < 0)
   14997     return 1;
   14998   if (stat (f, &before) < 0)
   14999     return 1;
   15000   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
   15001     return 1;
   15002   if (stat (f, &after) < 0)
   15003     return 1;
   15004   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
   15005 
   15006   ;
   15007   return 0;
   15008 }
   15009 _ACEOF
   15010 if ac_fn_c_try_run "$LINENO"; then :
   15011   ac_cv_func_chown_works=yes
   15012 else
   15013   ac_cv_func_chown_works=no
   15014 fi
   15015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15016   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15017 fi
   15018 
   15019 rm -f conftest.chown
   15020 
   15021 fi
   15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
   15023 $as_echo "$ac_cv_func_chown_works" >&6; }
   15024 if test $ac_cv_func_chown_works = yes; then
   15025 
   15026 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
   15027 
   15028 fi
   15029 
   15030 for ac_header in vfork.h
   15031 do :
   15032   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
   15033 if test "x$ac_cv_header_vfork_h" = xyes; then :
   15034   cat >>confdefs.h <<_ACEOF
   15035 #define HAVE_VFORK_H 1
   15036 _ACEOF
   15037 
   15038 fi
   15039 
   15040 done
   15041 
   15042 for ac_func in fork vfork
   15043 do :
   15044   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15045 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15046 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15047   cat >>confdefs.h <<_ACEOF
   15048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15049 _ACEOF
   15050 
   15051 fi
   15052 done
   15053 
   15054 if test "x$ac_cv_func_fork" = xyes; then
   15055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
   15056 $as_echo_n "checking for working fork... " >&6; }
   15057 if ${ac_cv_func_fork_works+:} false; then :
   15058   $as_echo_n "(cached) " >&6
   15059 else
   15060   if test "$cross_compiling" = yes; then :
   15061   ac_cv_func_fork_works=cross
   15062 else
   15063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15064 /* end confdefs.h.  */
   15065 $ac_includes_default
   15066 int
   15067 main ()
   15068 {
   15069 
   15070 	  /* By Ruediger Kuhlmann. */
   15071 	  return fork () < 0;
   15072 
   15073   ;
   15074   return 0;
   15075 }
   15076 _ACEOF
   15077 if ac_fn_c_try_run "$LINENO"; then :
   15078   ac_cv_func_fork_works=yes
   15079 else
   15080   ac_cv_func_fork_works=no
   15081 fi
   15082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15083   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15084 fi
   15085 
   15086 fi
   15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
   15088 $as_echo "$ac_cv_func_fork_works" >&6; }
   15089 
   15090 else
   15091   ac_cv_func_fork_works=$ac_cv_func_fork
   15092 fi
   15093 if test "x$ac_cv_func_fork_works" = xcross; then
   15094   case $host in
   15095     *-*-amigaos* | *-*-msdosdjgpp*)
   15096       # Override, as these systems have only a dummy fork() stub
   15097       ac_cv_func_fork_works=no
   15098       ;;
   15099     *)
   15100       ac_cv_func_fork_works=yes
   15101       ;;
   15102   esac
   15103   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   15104 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   15105 fi
   15106 ac_cv_func_vfork_works=$ac_cv_func_vfork
   15107 if test "x$ac_cv_func_vfork" = xyes; then
   15108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
   15109 $as_echo_n "checking for working vfork... " >&6; }
   15110 if ${ac_cv_func_vfork_works+:} false; then :
   15111   $as_echo_n "(cached) " >&6
   15112 else
   15113   if test "$cross_compiling" = yes; then :
   15114   ac_cv_func_vfork_works=cross
   15115 else
   15116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15117 /* end confdefs.h.  */
   15118 /* Thanks to Paul Eggert for this test.  */
   15119 $ac_includes_default
   15120 #include <sys/wait.h>
   15121 #ifdef HAVE_VFORK_H
   15122 # include <vfork.h>
   15123 #endif
   15124 /* On some sparc systems, changes by the child to local and incoming
   15125    argument registers are propagated back to the parent.  The compiler
   15126    is told about this with #include <vfork.h>, but some compilers
   15127    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   15128    static variable whose address is put into a register that is
   15129    clobbered by the vfork.  */
   15130 static void
   15131 #ifdef __cplusplus
   15132 sparc_address_test (int arg)
   15133 # else
   15134 sparc_address_test (arg) int arg;
   15135 #endif
   15136 {
   15137   static pid_t child;
   15138   if (!child) {
   15139     child = vfork ();
   15140     if (child < 0) {
   15141       perror ("vfork");
   15142       _exit(2);
   15143     }
   15144     if (!child) {
   15145       arg = getpid();
   15146       write(-1, "", 0);
   15147       _exit (arg);
   15148     }
   15149   }
   15150 }
   15151 
   15152 int
   15153 main ()
   15154 {
   15155   pid_t parent = getpid ();
   15156   pid_t child;
   15157 
   15158   sparc_address_test (0);
   15159 
   15160   child = vfork ();
   15161 
   15162   if (child == 0) {
   15163     /* Here is another test for sparc vfork register problems.  This
   15164        test uses lots of local variables, at least as many local
   15165        variables as main has allocated so far including compiler
   15166        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   15167        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   15168        reuse the register of parent for one of the local variables,
   15169        since it will think that parent can't possibly be used any more
   15170        in this routine.  Assigning to the local variable will thus
   15171        munge parent in the parent process.  */
   15172     pid_t
   15173       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   15174       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   15175     /* Convince the compiler that p..p7 are live; otherwise, it might
   15176        use the same hardware register for all 8 local variables.  */
   15177     if (p != p1 || p != p2 || p != p3 || p != p4
   15178 	|| p != p5 || p != p6 || p != p7)
   15179       _exit(1);
   15180 
   15181     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   15182        from child file descriptors.  If the child closes a descriptor
   15183        before it execs or exits, this munges the parent's descriptor
   15184        as well.  Test for this by closing stdout in the child.  */
   15185     _exit(close(fileno(stdout)) != 0);
   15186   } else {
   15187     int status;
   15188     struct stat st;
   15189 
   15190     while (wait(&status) != child)
   15191       ;
   15192     return (
   15193 	 /* Was there some problem with vforking?  */
   15194 	 child < 0
   15195 
   15196 	 /* Did the child fail?  (This shouldn't happen.)  */
   15197 	 || status
   15198 
   15199 	 /* Did the vfork/compiler bug occur?  */
   15200 	 || parent != getpid()
   15201 
   15202 	 /* Did the file descriptor bug occur?  */
   15203 	 || fstat(fileno(stdout), &st) != 0
   15204 	 );
   15205   }
   15206 }
   15207 _ACEOF
   15208 if ac_fn_c_try_run "$LINENO"; then :
   15209   ac_cv_func_vfork_works=yes
   15210 else
   15211   ac_cv_func_vfork_works=no
   15212 fi
   15213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15214   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15215 fi
   15216 
   15217 fi
   15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
   15219 $as_echo "$ac_cv_func_vfork_works" >&6; }
   15220 
   15221 fi;
   15222 if test "x$ac_cv_func_fork_works" = xcross; then
   15223   ac_cv_func_vfork_works=$ac_cv_func_vfork
   15224   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   15225 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   15226 fi
   15227 
   15228 if test "x$ac_cv_func_vfork_works" = xyes; then
   15229 
   15230 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
   15231 
   15232 else
   15233 
   15234 $as_echo "#define vfork fork" >>confdefs.h
   15235 
   15236 fi
   15237 if test "x$ac_cv_func_fork_works" = xyes; then
   15238 
   15239 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
   15240 
   15241 fi
   15242 
   15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
   15244 $as_echo_n "checking return type of signal handlers... " >&6; }
   15245 if ${ac_cv_type_signal+:} false; then :
   15246   $as_echo_n "(cached) " >&6
   15247 else
   15248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15249 /* end confdefs.h.  */
   15250 #include <sys/types.h>
   15251 #include <signal.h>
   15252 
   15253 int
   15254 main ()
   15255 {
   15256 return *(signal (0, 0)) (0) == 1;
   15257   ;
   15258   return 0;
   15259 }
   15260 _ACEOF
   15261 if ac_fn_c_try_compile "$LINENO"; then :
   15262   ac_cv_type_signal=int
   15263 else
   15264   ac_cv_type_signal=void
   15265 fi
   15266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15267 fi
   15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
   15269 $as_echo "$ac_cv_type_signal" >&6; }
   15270 
   15271 cat >>confdefs.h <<_ACEOF
   15272 #define RETSIGTYPE $ac_cv_type_signal
   15273 _ACEOF
   15274 
   15275 
   15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
   15277 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
   15278 if ${ac_cv_sys_largefile_source+:} false; then :
   15279   $as_echo_n "(cached) " >&6
   15280 else
   15281   while :; do
   15282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15283 /* end confdefs.h.  */
   15284 #include <sys/types.h> /* for off_t */
   15285      #include <stdio.h>
   15286 int
   15287 main ()
   15288 {
   15289 int (*fp) (FILE *, off_t, int) = fseeko;
   15290      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   15291   ;
   15292   return 0;
   15293 }
   15294 _ACEOF
   15295 if ac_fn_c_try_link "$LINENO"; then :
   15296   ac_cv_sys_largefile_source=no; break
   15297 fi
   15298 rm -f core conftest.err conftest.$ac_objext \
   15299     conftest$ac_exeext conftest.$ac_ext
   15300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15301 /* end confdefs.h.  */
   15302 #define _LARGEFILE_SOURCE 1
   15303 #include <sys/types.h> /* for off_t */
   15304      #include <stdio.h>
   15305 int
   15306 main ()
   15307 {
   15308 int (*fp) (FILE *, off_t, int) = fseeko;
   15309      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   15310   ;
   15311   return 0;
   15312 }
   15313 _ACEOF
   15314 if ac_fn_c_try_link "$LINENO"; then :
   15315   ac_cv_sys_largefile_source=1; break
   15316 fi
   15317 rm -f core conftest.err conftest.$ac_objext \
   15318     conftest$ac_exeext conftest.$ac_ext
   15319   ac_cv_sys_largefile_source=unknown
   15320   break
   15321 done
   15322 fi
   15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
   15324 $as_echo "$ac_cv_sys_largefile_source" >&6; }
   15325 case $ac_cv_sys_largefile_source in #(
   15326   no | unknown) ;;
   15327   *)
   15328 cat >>confdefs.h <<_ACEOF
   15329 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
   15330 _ACEOF
   15331 ;;
   15332 esac
   15333 rm -rf conftest*
   15334 
   15335 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
   15336 # in glibc 2.1.3, but that breaks too many other things.
   15337 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
   15338 if test $ac_cv_sys_largefile_source != unknown; then
   15339 
   15340 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
   15341 
   15342 fi
   15343 
   15344 
   15345 # Check whether --enable-largefile was given.
   15346 if test "${enable_largefile+set}" = set; then :
   15347   enableval=$enable_largefile;
   15348 fi
   15349 
   15350 if test "$enable_largefile" != no; then
   15351 
   15352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   15353 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   15354 if ${ac_cv_sys_largefile_CC+:} false; then :
   15355   $as_echo_n "(cached) " >&6
   15356 else
   15357   ac_cv_sys_largefile_CC=no
   15358      if test "$GCC" != yes; then
   15359        ac_save_CC=$CC
   15360        while :; do
   15361 	 # IRIX 6.2 and later do not support large files by default,
   15362 	 # so use the C compiler's -n32 option if that helps.
   15363 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15364 /* end confdefs.h.  */
   15365 #include <sys/types.h>
   15366  /* Check that off_t can represent 2**63 - 1 correctly.
   15367     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   15368     since some C++ compilers masquerading as C compilers
   15369     incorrectly reject 9223372036854775807.  */
   15370 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   15371   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   15372 		       && LARGE_OFF_T % 2147483647 == 1)
   15373 		      ? 1 : -1];
   15374 int
   15375 main ()
   15376 {
   15377 
   15378   ;
   15379   return 0;
   15380 }
   15381 _ACEOF
   15382 	 if ac_fn_c_try_compile "$LINENO"; then :
   15383   break
   15384 fi
   15385 rm -f core conftest.err conftest.$ac_objext
   15386 	 CC="$CC -n32"
   15387 	 if ac_fn_c_try_compile "$LINENO"; then :
   15388   ac_cv_sys_largefile_CC=' -n32'; break
   15389 fi
   15390 rm -f core conftest.err conftest.$ac_objext
   15391 	 break
   15392        done
   15393        CC=$ac_save_CC
   15394        rm -f conftest.$ac_ext
   15395     fi
   15396 fi
   15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   15398 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   15399   if test "$ac_cv_sys_largefile_CC" != no; then
   15400     CC=$CC$ac_cv_sys_largefile_CC
   15401   fi
   15402 
   15403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   15404 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   15405 if ${ac_cv_sys_file_offset_bits+:} false; then :
   15406   $as_echo_n "(cached) " >&6
   15407 else
   15408   while :; do
   15409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15410 /* end confdefs.h.  */
   15411 #include <sys/types.h>
   15412  /* Check that off_t can represent 2**63 - 1 correctly.
   15413     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   15414     since some C++ compilers masquerading as C compilers
   15415     incorrectly reject 9223372036854775807.  */
   15416 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   15417   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   15418 		       && LARGE_OFF_T % 2147483647 == 1)
   15419 		      ? 1 : -1];
   15420 int
   15421 main ()
   15422 {
   15423 
   15424   ;
   15425   return 0;
   15426 }
   15427 _ACEOF
   15428 if ac_fn_c_try_compile "$LINENO"; then :
   15429   ac_cv_sys_file_offset_bits=no; break
   15430 fi
   15431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15433 /* end confdefs.h.  */
   15434 #define _FILE_OFFSET_BITS 64
   15435 #include <sys/types.h>
   15436  /* Check that off_t can represent 2**63 - 1 correctly.
   15437     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   15438     since some C++ compilers masquerading as C compilers
   15439     incorrectly reject 9223372036854775807.  */
   15440 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   15441   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   15442 		       && LARGE_OFF_T % 2147483647 == 1)
   15443 		      ? 1 : -1];
   15444 int
   15445 main ()
   15446 {
   15447 
   15448   ;
   15449   return 0;
   15450 }
   15451 _ACEOF
   15452 if ac_fn_c_try_compile "$LINENO"; then :
   15453   ac_cv_sys_file_offset_bits=64; break
   15454 fi
   15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15456   ac_cv_sys_file_offset_bits=unknown
   15457   break
   15458 done
   15459 fi
   15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   15461 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   15462 case $ac_cv_sys_file_offset_bits in #(
   15463   no | unknown) ;;
   15464   *)
   15465 cat >>confdefs.h <<_ACEOF
   15466 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   15467 _ACEOF
   15468 ;;
   15469 esac
   15470 rm -rf conftest*
   15471   if test $ac_cv_sys_file_offset_bits = unknown; then
   15472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   15473 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   15474 if ${ac_cv_sys_large_files+:} false; then :
   15475   $as_echo_n "(cached) " >&6
   15476 else
   15477   while :; do
   15478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15479 /* end confdefs.h.  */
   15480 #include <sys/types.h>
   15481  /* Check that off_t can represent 2**63 - 1 correctly.
   15482     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   15483     since some C++ compilers masquerading as C compilers
   15484     incorrectly reject 9223372036854775807.  */
   15485 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   15486   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   15487 		       && LARGE_OFF_T % 2147483647 == 1)
   15488 		      ? 1 : -1];
   15489 int
   15490 main ()
   15491 {
   15492 
   15493   ;
   15494   return 0;
   15495 }
   15496 _ACEOF
   15497 if ac_fn_c_try_compile "$LINENO"; then :
   15498   ac_cv_sys_large_files=no; break
   15499 fi
   15500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15502 /* end confdefs.h.  */
   15503 #define _LARGE_FILES 1
   15504 #include <sys/types.h>
   15505  /* Check that off_t can represent 2**63 - 1 correctly.
   15506     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   15507     since some C++ compilers masquerading as C compilers
   15508     incorrectly reject 9223372036854775807.  */
   15509 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   15510   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   15511 		       && LARGE_OFF_T % 2147483647 == 1)
   15512 		      ? 1 : -1];
   15513 int
   15514 main ()
   15515 {
   15516 
   15517   ;
   15518   return 0;
   15519 }
   15520 _ACEOF
   15521 if ac_fn_c_try_compile "$LINENO"; then :
   15522   ac_cv_sys_large_files=1; break
   15523 fi
   15524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15525   ac_cv_sys_large_files=unknown
   15526   break
   15527 done
   15528 fi
   15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   15530 $as_echo "$ac_cv_sys_large_files" >&6; }
   15531 case $ac_cv_sys_large_files in #(
   15532   no | unknown) ;;
   15533   *)
   15534 cat >>confdefs.h <<_ACEOF
   15535 #define _LARGE_FILES $ac_cv_sys_large_files
   15536 _ACEOF
   15537 ;;
   15538 esac
   15539 rm -rf conftest*
   15540   fi
   15541 
   15542 
   15543 fi
   15544 
   15545 
   15546 
   15547 
   15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
   15549 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
   15550 cache=_D_LARGEFILE_SOURCE_1
   15551 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
   15552   $as_echo_n "(cached) " >&6
   15553 else
   15554 
   15555 echo '
   15556 #include <stdio.h>
   15557 int test() {
   15558         int a = fseeko(stdin, 0, 0);
   15559         return a;
   15560 }
   15561 ' > conftest.c
   15562 echo 'void f(){}' >>conftest.c
   15563 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
   15564 eval "cv_prog_cc_flag_needed_$cache=no"
   15565 else
   15566 
   15567 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
   15568 eval "cv_prog_cc_flag_needed_$cache=yes"
   15569 else
   15570 eval "cv_prog_cc_flag_needed_$cache=fail"
   15571 #echo 'Test with flag fails too!'
   15572 #cat conftest.c
   15573 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
   15574 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
   15575 #exit 1
   15576 fi
   15577 
   15578 fi
   15579 rm -f conftest conftest.c conftest.o
   15580 
   15581 fi
   15582 
   15583 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
   15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15585 $as_echo "yes" >&6; }
   15586 :
   15587 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
   15588 else
   15589 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
   15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15591 $as_echo "no" >&6; }
   15592 #echo 'Test with flag is no!'
   15593 #cat conftest.c
   15594 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
   15595 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
   15596 #exit 1
   15597 :
   15598 
   15599 else
   15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   15601 $as_echo "failed" >&6; }
   15602 :
   15603 
   15604 fi
   15605 fi
   15606 
   15607 
   15608 
   15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
   15610 $as_echo_n "checking if nonblocking sockets work... " >&6; }
   15611 if echo $target | grep mingw32 >/dev/null; then
   15612 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
   15613 $as_echo "no (windows)" >&6; }
   15614 
   15615 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
   15616 
   15617 else
   15618 if test "$cross_compiling" = yes; then :
   15619 
   15620 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
   15621 $as_echo "crosscompile(yes)" >&6; }
   15622 
   15623 else
   15624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15625 /* end confdefs.h.  */
   15626 
   15627 
   15628 #include <stdio.h>
   15629 #include <string.h>
   15630 #include <stdlib.h>
   15631 #include <fcntl.h>
   15632 #include <errno.h>
   15633 #ifdef HAVE_SYS_TYPES_H
   15634 #include <sys/types.h>
   15635 #endif
   15636 #ifdef HAVE_SYS_SOCKET_H
   15637 #include <sys/socket.h>
   15638 #endif
   15639 #ifdef HAVE_NETINET_IN_H
   15640 #include <netinet/in.h>
   15641 #endif
   15642 #ifdef HAVE_ARPA_INET_H
   15643 #include <arpa/inet.h>
   15644 #endif
   15645 #ifdef HAVE_UNISTD_H
   15646 #include <unistd.h>
   15647 #endif
   15648 #ifdef HAVE_TIME_H
   15649 #include <time.h>
   15650 #endif
   15651 
   15652 int main(void)
   15653 {
   15654 	int port;
   15655 	int sfd, cfd;
   15656 	int num = 10;
   15657 	int i, p;
   15658 	struct sockaddr_in a;
   15659 	/* test if select and nonblocking reads work well together */
   15660 	/* open port.
   15661 	   fork child to send 10 messages.
   15662 	   select to read.
   15663 	   then try to nonblocking read the 10 messages
   15664 	   then, nonblocking read must give EAGAIN
   15665 	*/
   15666 
   15667 	port = 12345 + (time(0)%32);
   15668 	sfd = socket(PF_INET, SOCK_DGRAM, 0);
   15669 	if(sfd == -1) {
   15670 		perror("socket");
   15671 		return 1;
   15672 	}
   15673 	memset(&a, 0, sizeof(a));
   15674 	a.sin_family = AF_INET;
   15675 	a.sin_port = htons(port);
   15676 	a.sin_addr.s_addr = inet_addr("127.0.0.1");
   15677 	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
   15678 		perror("bind");
   15679 		return 1;
   15680 	}
   15681 	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
   15682 		perror("fcntl");
   15683 		return 1;
   15684 	}
   15685 
   15686 	cfd = socket(PF_INET, SOCK_DGRAM, 0);
   15687 	if(cfd == -1) {
   15688 		perror("client socket");
   15689 		return 1;
   15690 	}
   15691 	a.sin_port = 0;
   15692 	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
   15693 		perror("client bind");
   15694 		return 1;
   15695 	}
   15696 	a.sin_port = htons(port);
   15697 
   15698 	/* no handler, causes exit in 10 seconds */
   15699 	alarm(10);
   15700 
   15701 	/* send and receive on the socket */
   15702 	if((p=fork()) == 0) {
   15703 		for(i=0; i<num; i++) {
   15704 			if(sendto(cfd, &i, sizeof(i), 0,
   15705 				(struct sockaddr*)&a, sizeof(a)) < 0) {
   15706 				perror("sendto");
   15707 				return 1;
   15708 			}
   15709 		}
   15710 	} else {
   15711 		/* parent */
   15712 		fd_set rset;
   15713 		int x;
   15714 		if(p == -1) {
   15715 			perror("fork");
   15716 			return 1;
   15717 		}
   15718 		FD_ZERO(&rset);
   15719 		FD_SET(sfd, &rset);
   15720 		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
   15721 			perror("select");
   15722 			return 1;
   15723 		}
   15724 		i = 0;
   15725 		while(i < num) {
   15726 			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
   15727 				if(errno == EAGAIN)
   15728 					continue;
   15729 				perror("recv");
   15730 				return 1;
   15731 			}
   15732 			i++;
   15733 		}
   15734 		/* now we want to get EAGAIN: nonblocking goodness */
   15735 		errno = 0;
   15736 		recv(sfd, &x, sizeof(x), 0);
   15737 		if(errno != EAGAIN) {
   15738 			perror("trying to recv again");
   15739 			return 1;
   15740 		}
   15741 		/* EAGAIN encountered */
   15742 	}
   15743 
   15744 	close(sfd);
   15745 	close(cfd);
   15746 	return 0;
   15747 }
   15748 
   15749 _ACEOF
   15750 if ac_fn_c_try_run "$LINENO"; then :
   15751 
   15752 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15753 $as_echo "yes" >&6; }
   15754 
   15755 else
   15756 
   15757 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15758 $as_echo "no" >&6; }
   15759 
   15760 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
   15761 
   15762 
   15763 fi
   15764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15765   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15766 fi
   15767 
   15768 fi
   15769 
   15770 
   15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
   15772 $as_echo_n "checking whether mkdir has one arg... " >&6; }
   15773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15774 /* end confdefs.h.  */
   15775 
   15776 #include <stdio.h>
   15777 #include <unistd.h>
   15778 #ifdef HAVE_WINSOCK2_H
   15779 #include <winsock2.h>
   15780 #endif
   15781 #ifdef HAVE_SYS_STAT_H
   15782 #include <sys/stat.h>
   15783 #endif
   15784 
   15785 int
   15786 main ()
   15787 {
   15788 
   15789 	(void)mkdir("directory");
   15790 
   15791   ;
   15792   return 0;
   15793 }
   15794 _ACEOF
   15795 if ac_fn_c_try_compile "$LINENO"; then :
   15796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15797 $as_echo "yes" >&6; }
   15798 
   15799 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
   15800 
   15801 
   15802 else
   15803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15804 $as_echo "no" >&6; }
   15805 
   15806 fi
   15807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15808 
   15809 for ac_func in strptime
   15810 do :
   15811   ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
   15812 if test "x$ac_cv_func_strptime" = xyes; then :
   15813   cat >>confdefs.h <<_ACEOF
   15814 #define HAVE_STRPTIME 1
   15815 _ACEOF
   15816 
   15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
   15818 $as_echo_n "checking whether strptime works... " >&6; }
   15819 if test c${cross_compiling} = cno; then
   15820 if test "$cross_compiling" = yes; then :
   15821   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15823 as_fn_error $? "cannot run test program while cross compiling
   15824 See \`config.log' for more details" "$LINENO" 5; }
   15825 else
   15826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15827 /* end confdefs.h.  */
   15828 
   15829 #define _XOPEN_SOURCE 600
   15830 #include <time.h>
   15831 int main(void) { struct tm tm; char *res;
   15832 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);
   15833 if (!res) return 2;
   15834 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
   15835 if (!res) return 1; return 0; }
   15836 
   15837 _ACEOF
   15838 if ac_fn_c_try_run "$LINENO"; then :
   15839   eval "ac_cv_c_strptime_works=yes"
   15840 else
   15841   eval "ac_cv_c_strptime_works=no"
   15842 fi
   15843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15844   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15845 fi
   15846 
   15847 else
   15848 eval "ac_cv_c_strptime_works=maybe"
   15849 fi
   15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
   15851 $as_echo "$ac_cv_c_strptime_works" >&6; }
   15852 if test $ac_cv_c_strptime_works = no; then
   15853 case " $LIBOBJS " in
   15854   *" strptime.$ac_objext "* ) ;;
   15855   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
   15856  ;;
   15857 esac
   15858 
   15859 else
   15860 
   15861 cat >>confdefs.h <<_ACEOF
   15862 #define STRPTIME_WORKS 1
   15863 _ACEOF
   15864 
   15865 fi
   15866 
   15867 else
   15868   case " $LIBOBJS " in
   15869   *" strptime.$ac_objext "* ) ;;
   15870   *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
   15871  ;;
   15872 esac
   15873 
   15874 fi
   15875 done
   15876 
   15877 
   15878 # set memory allocation checking if requested
   15879 # Check whether --enable-alloc-checks was given.
   15880 if test "${enable_alloc_checks+set}" = set; then :
   15881   enableval=$enable_alloc_checks;
   15882 fi
   15883 
   15884 # Check whether --enable-alloc-lite was given.
   15885 if test "${enable_alloc_lite+set}" = set; then :
   15886   enableval=$enable_alloc_lite;
   15887 fi
   15888 
   15889 # Check whether --enable-alloc-nonregional was given.
   15890 if test "${enable_alloc_nonregional+set}" = set; then :
   15891   enableval=$enable_alloc_nonregional;
   15892 fi
   15893 
   15894 if test x_$enable_alloc_nonregional = x_yes; then
   15895 
   15896 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
   15897 
   15898 fi
   15899 if test x_$enable_alloc_checks = x_yes; then
   15900 
   15901 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
   15902 
   15903 else
   15904 	if test x_$enable_alloc_lite = x_yes; then
   15905 
   15906 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
   15907 
   15908 	else
   15909 
   15910 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
   15911 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
   15912 	if test "$cross_compiling" = yes; then :
   15913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
   15914 $as_echo "no (crosscompile)" >&6; }
   15915 	case " $LIBOBJS " in
   15916   *" malloc.$ac_objext "* ) ;;
   15917   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
   15918  ;;
   15919 esac
   15920 
   15921 
   15922 cat >>confdefs.h <<_ACEOF
   15923 #define malloc rpl_malloc_unbound
   15924 _ACEOF
   15925 
   15926 else
   15927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15928 /* end confdefs.h.  */
   15929 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
   15930 #include <stdlib.h>
   15931 #else
   15932 char *malloc ();
   15933 #endif
   15934 
   15935 int
   15936 main ()
   15937 {
   15938  if(malloc(0) != 0) return 1;
   15939   ;
   15940   return 0;
   15941 }
   15942 
   15943 _ACEOF
   15944 if ac_fn_c_try_run "$LINENO"; then :
   15945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15946 $as_echo "no" >&6; }
   15947 	case " $LIBOBJS " in
   15948   *" malloc.$ac_objext "* ) ;;
   15949   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
   15950  ;;
   15951 esac
   15952 
   15953 
   15954 cat >>confdefs.h <<_ACEOF
   15955 #define malloc rpl_malloc_unbound
   15956 _ACEOF
   15957 
   15958 else
   15959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15960 $as_echo "yes" >&6; }
   15961 
   15962 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
   15963 
   15964 fi
   15965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15966   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15967 fi
   15968 
   15969 
   15970 	fi
   15971 fi
   15972 
   15973 # check windows threads (we use them, not pthreads, on windows).
   15974 if test "$on_mingw" = "yes"; then
   15975 # check windows threads
   15976 	for ac_header in windows.h
   15977 do :
   15978   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
   15979 "
   15980 if test "x$ac_cv_header_windows_h" = xyes; then :
   15981   cat >>confdefs.h <<_ACEOF
   15982 #define HAVE_WINDOWS_H 1
   15983 _ACEOF
   15984 
   15985 fi
   15986 
   15987 done
   15988 
   15989 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
   15990 $as_echo_n "checking for CreateThread... " >&6; }
   15991 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15992 /* end confdefs.h.  */
   15993 
   15994 #ifdef HAVE_WINDOWS_H
   15995 #include <windows.h>
   15996 #endif
   15997 
   15998 int
   15999 main ()
   16000 {
   16001 
   16002 	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
   16003 
   16004   ;
   16005   return 0;
   16006 }
   16007 _ACEOF
   16008 if ac_fn_c_try_compile "$LINENO"; then :
   16009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16010 $as_echo "yes" >&6; }
   16011 
   16012 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
   16013 
   16014 
   16015 else
   16016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16017 $as_echo "no" >&6; }
   16018 
   16019 fi
   16020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16021 
   16022 else
   16023 # not on mingw, check thread libraries.
   16024 
   16025 # check for thread library.
   16026 # check this first, so that the pthread lib does not get linked in via
   16027 # libssl or libpython, and thus distorts the tests, and we end up using
   16028 # the non-threadsafe C libraries.
   16029 
   16030 # Check whether --with-pthreads was given.
   16031 if test "${with_pthreads+set}" = set; then :
   16032   withval=$with_pthreads;
   16033 else
   16034    withval="yes"
   16035 fi
   16036 
   16037 ub_have_pthreads=no
   16038 if test x_$withval != x_no; then
   16039 
   16040 
   16041 ac_ext=c
   16042 ac_cpp='$CPP $CPPFLAGS'
   16043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16046 
   16047 ax_pthread_ok=no
   16048 
   16049 # We used to check for pthread.h first, but this fails if pthread.h
   16050 # requires special compiler flags (e.g. on True64 or Sequent).
   16051 # It gets checked for in the link test anyway.
   16052 
   16053 # First of all, check if the user has set any of the PTHREAD_LIBS,
   16054 # etcetera environment variables, and if threads linking works using
   16055 # them:
   16056 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
   16057         save_CFLAGS="$CFLAGS"
   16058         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   16059         save_LIBS="$LIBS"
   16060         LIBS="$PTHREAD_LIBS $LIBS"
   16061         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
   16062 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
   16063         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16064 /* end confdefs.h.  */
   16065 
   16066 /* Override any GCC internal prototype to avoid an error.
   16067    Use char because int might match the return type of a GCC
   16068    builtin and then its argument prototype would still apply.  */
   16069 #ifdef __cplusplus
   16070 extern "C"
   16071 #endif
   16072 char pthread_join ();
   16073 int
   16074 main ()
   16075 {
   16076 return pthread_join ();
   16077   ;
   16078   return 0;
   16079 }
   16080 _ACEOF
   16081 if ac_fn_c_try_link "$LINENO"; then :
   16082   ax_pthread_ok=yes
   16083 fi
   16084 rm -f core conftest.err conftest.$ac_objext \
   16085     conftest$ac_exeext conftest.$ac_ext
   16086         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   16087 $as_echo "$ax_pthread_ok" >&6; }
   16088         if test x"$ax_pthread_ok" = xno; then
   16089                 PTHREAD_LIBS=""
   16090                 PTHREAD_CFLAGS=""
   16091         fi
   16092         LIBS="$save_LIBS"
   16093         CFLAGS="$save_CFLAGS"
   16094 fi
   16095 
   16096 # We must check for the threads library under a number of different
   16097 # names; the ordering is very important because some systems
   16098 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   16099 # libraries is broken (non-POSIX).
   16100 
   16101 # Create a list of thread flags to try.  Items starting with a "-" are
   16102 # C compiler flags, and other items are library names, except for "none"
   16103 # which indicates that we try without any flags at all, and "pthread-config"
   16104 # which is a program returning the flags for the Pth emulation library.
   16105 
   16106 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   16107 
   16108 # The ordering *is* (sometimes) important.  Some notes on the
   16109 # individual items follow:
   16110 
   16111 # pthreads: AIX (must check this before -lpthread)
   16112 # none: in case threads are in libc; should be tried before -Kthread and
   16113 #       other compiler flags to prevent continual compiler warnings
   16114 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   16115 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   16116 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   16117 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
   16118 # -pthreads: Solaris/gcc
   16119 # -mthreads: Mingw32/gcc, Lynx/gcc
   16120 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   16121 #      doesn't hurt to check since this sometimes defines pthreads too;
   16122 #      also defines -D_REENTRANT)
   16123 #      ... -mt is also the pthreads flag for HP/aCC
   16124 # pthread: Linux, etcetera
   16125 # --thread-safe: KAI C++
   16126 # pthread-config: use pthread-config program (for GNU Pth library)
   16127 
   16128 case ${host_os} in
   16129         solaris*)
   16130 
   16131         # On Solaris (at least, for some versions), libc contains stubbed
   16132         # (non-functional) versions of the pthreads routines, so link-based
   16133         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
   16134         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
   16135         # a function called by this macro, so we could check for that, but
   16136         # who knows whether they'll stub that too in a future libc.)  So,
   16137         # we'll just look for -pthreads and -lpthread first:
   16138 
   16139         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
   16140         ;;
   16141 
   16142         darwin*)
   16143         ax_pthread_flags="-pthread $ax_pthread_flags"
   16144         ;;
   16145 esac
   16146 
   16147 # Clang doesn't consider unrecognized options an error unless we specify
   16148 # -Werror. We throw in some extra Clang-specific options to ensure that
   16149 # this doesn't happen for GCC, which also accepts -Werror.
   16150 
   16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
   16152 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
   16153 save_CFLAGS="$CFLAGS"
   16154 ax_pthread_extra_flags="-Werror"
   16155 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
   16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16157 /* end confdefs.h.  */
   16158 int foo(void);
   16159 int
   16160 main ()
   16161 {
   16162 foo()
   16163   ;
   16164   return 0;
   16165 }
   16166 _ACEOF
   16167 if ac_fn_c_try_compile "$LINENO"; then :
   16168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16169 $as_echo "yes" >&6; }
   16170 else
   16171   ax_pthread_extra_flags=
   16172                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16173 $as_echo "no" >&6; }
   16174 fi
   16175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16176 CFLAGS="$save_CFLAGS"
   16177 
   16178 if test x"$ax_pthread_ok" = xno; then
   16179 for flag in $ax_pthread_flags; do
   16180 
   16181         case $flag in
   16182                 none)
   16183                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   16184 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
   16185                 ;;
   16186 
   16187                 -*)
   16188                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
   16189 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
   16190                 PTHREAD_CFLAGS="$flag"
   16191                 ;;
   16192 
   16193                 pthread-config)
   16194                 # Extract the first word of "pthread-config", so it can be a program name with args.
   16195 set dummy pthread-config; ac_word=$2
   16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16197 $as_echo_n "checking for $ac_word... " >&6; }
   16198 if ${ac_cv_prog_ax_pthread_config+:} false; then :
   16199   $as_echo_n "(cached) " >&6
   16200 else
   16201   if test -n "$ax_pthread_config"; then
   16202   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   16203 else
   16204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16205 for as_dir in $PATH
   16206 do
   16207   IFS=$as_save_IFS
   16208   test -z "$as_dir" && as_dir=.
   16209     for ac_exec_ext in '' $ac_executable_extensions; do
   16210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16211     ac_cv_prog_ax_pthread_config="yes"
   16212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16213     break 2
   16214   fi
   16215 done
   16216   done
   16217 IFS=$as_save_IFS
   16218 
   16219   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   16220 fi
   16221 fi
   16222 ax_pthread_config=$ac_cv_prog_ax_pthread_config
   16223 if test -n "$ax_pthread_config"; then
   16224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   16225 $as_echo "$ax_pthread_config" >&6; }
   16226 else
   16227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16228 $as_echo "no" >&6; }
   16229 fi
   16230 
   16231 
   16232                 if test x"$ax_pthread_config" = xno; then continue; fi
   16233                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   16234                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   16235                 ;;
   16236 
   16237                 *)
   16238                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
   16239 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
   16240                 PTHREAD_LIBS="-l$flag"
   16241                 ;;
   16242         esac
   16243 
   16244         save_LIBS="$LIBS"
   16245         save_CFLAGS="$CFLAGS"
   16246         LIBS="$PTHREAD_LIBS $LIBS"
   16247         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
   16248 
   16249         # Check for various functions.  We must include pthread.h,
   16250         # since some functions may be macros.  (On the Sequent, we
   16251         # need a special flag -Kthread to make this header compile.)
   16252         # We check for pthread_join because it is in -lpthread on IRIX
   16253         # while pthread_create is in libc.  We check for pthread_attr_init
   16254         # due to DEC craziness with -lpthreads.  We check for
   16255         # pthread_cleanup_push because it is one of the few pthread
   16256         # functions on Solaris that doesn't have a non-functional libc stub.
   16257         # We try pthread_create on general principles.
   16258         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16259 /* end confdefs.h.  */
   16260 #include <pthread.h>
   16261                         static void routine(void *a) { *((int*)a) = 0; }
   16262                         static void *start_routine(void *a) { return a; }
   16263 int
   16264 main ()
   16265 {
   16266 pthread_t th; pthread_attr_t attr;
   16267                         pthread_create(&th, 0, start_routine, 0);
   16268                         pthread_join(th, 0);
   16269                         pthread_attr_init(&attr);
   16270                         pthread_cleanup_push(routine, 0);
   16271                         pthread_cleanup_pop(0) /* ; */
   16272   ;
   16273   return 0;
   16274 }
   16275 _ACEOF
   16276 if ac_fn_c_try_link "$LINENO"; then :
   16277   ax_pthread_ok=yes
   16278 fi
   16279 rm -f core conftest.err conftest.$ac_objext \
   16280     conftest$ac_exeext conftest.$ac_ext
   16281 
   16282         LIBS="$save_LIBS"
   16283         CFLAGS="$save_CFLAGS"
   16284 
   16285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   16286 $as_echo "$ax_pthread_ok" >&6; }
   16287         if test "x$ax_pthread_ok" = xyes; then
   16288                 break;
   16289         fi
   16290 
   16291         PTHREAD_LIBS=""
   16292         PTHREAD_CFLAGS=""
   16293 done
   16294 fi
   16295 
   16296 # Various other checks:
   16297 if test "x$ax_pthread_ok" = xyes; then
   16298         save_LIBS="$LIBS"
   16299         LIBS="$PTHREAD_LIBS $LIBS"
   16300         save_CFLAGS="$CFLAGS"
   16301         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   16302 
   16303         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   16304         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   16305 $as_echo_n "checking for joinable pthread attribute... " >&6; }
   16306         attr_name=unknown
   16307         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   16308             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16309 /* end confdefs.h.  */
   16310 #include <pthread.h>
   16311 int
   16312 main ()
   16313 {
   16314 int attr = $attr; return attr /* ; */
   16315   ;
   16316   return 0;
   16317 }
   16318 _ACEOF
   16319 if ac_fn_c_try_link "$LINENO"; then :
   16320   attr_name=$attr; break
   16321 fi
   16322 rm -f core conftest.err conftest.$ac_objext \
   16323     conftest$ac_exeext conftest.$ac_ext
   16324         done
   16325         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
   16326 $as_echo "$attr_name" >&6; }
   16327         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
   16328 
   16329 cat >>confdefs.h <<_ACEOF
   16330 #define PTHREAD_CREATE_JOINABLE $attr_name
   16331 _ACEOF
   16332 
   16333         fi
   16334 
   16335         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
   16336 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
   16337         flag=no
   16338         case ${host_os} in
   16339             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
   16340             osf* | hpux*) flag="-D_REENTRANT";;
   16341             solaris*)
   16342             if test "$GCC" = "yes"; then
   16343                 flag="-D_REENTRANT"
   16344             else
   16345                 # TODO: What about Clang on Solaris?
   16346                 flag="-mt -D_REENTRANT"
   16347             fi
   16348             ;;
   16349         esac
   16350         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
   16351 $as_echo "$flag" >&6; }
   16352         if test "x$flag" != xno; then
   16353             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
   16354         fi
   16355 
   16356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   16357 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   16358 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
   16359   $as_echo_n "(cached) " >&6
   16360 else
   16361 
   16362                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16363 /* end confdefs.h.  */
   16364 #include <pthread.h>
   16365 int
   16366 main ()
   16367 {
   16368 int i = PTHREAD_PRIO_INHERIT;
   16369   ;
   16370   return 0;
   16371 }
   16372 _ACEOF
   16373 if ac_fn_c_try_link "$LINENO"; then :
   16374   ax_cv_PTHREAD_PRIO_INHERIT=yes
   16375 else
   16376   ax_cv_PTHREAD_PRIO_INHERIT=no
   16377 fi
   16378 rm -f core conftest.err conftest.$ac_objext \
   16379     conftest$ac_exeext conftest.$ac_ext
   16380 
   16381 fi
   16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   16383 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   16384         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
   16385 
   16386 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   16387 
   16388 fi
   16389 
   16390         LIBS="$save_LIBS"
   16391         CFLAGS="$save_CFLAGS"
   16392 
   16393         # More AIX lossage: compile with *_r variant
   16394         if test "x$GCC" != xyes; then
   16395             case $host_os in
   16396                 aix*)
   16397                 case "x/$CC" in #(
   16398   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
   16399     #handle absolute path differently from PATH based program lookup
   16400                    case "x$CC" in #(
   16401   x/*) :
   16402     if as_fn_executable_p ${CC}_r; then :
   16403   PTHREAD_CC="${CC}_r"
   16404 fi ;; #(
   16405   *) :
   16406     for ac_prog in ${CC}_r
   16407 do
   16408   # Extract the first word of "$ac_prog", so it can be a program name with args.
   16409 set dummy $ac_prog; ac_word=$2
   16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16411 $as_echo_n "checking for $ac_word... " >&6; }
   16412 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
   16413   $as_echo_n "(cached) " >&6
   16414 else
   16415   if test -n "$PTHREAD_CC"; then
   16416   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   16417 else
   16418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16419 for as_dir in $PATH
   16420 do
   16421   IFS=$as_save_IFS
   16422   test -z "$as_dir" && as_dir=.
   16423     for ac_exec_ext in '' $ac_executable_extensions; do
   16424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16425     ac_cv_prog_PTHREAD_CC="$ac_prog"
   16426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16427     break 2
   16428   fi
   16429 done
   16430   done
   16431 IFS=$as_save_IFS
   16432 
   16433 fi
   16434 fi
   16435 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   16436 if test -n "$PTHREAD_CC"; then
   16437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   16438 $as_echo "$PTHREAD_CC" >&6; }
   16439 else
   16440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16441 $as_echo "no" >&6; }
   16442 fi
   16443 
   16444 
   16445   test -n "$PTHREAD_CC" && break
   16446 done
   16447 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   16448  ;;
   16449 esac ;; #(
   16450   *) :
   16451      ;;
   16452 esac
   16453                 ;;
   16454             esac
   16455         fi
   16456 fi
   16457 
   16458 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   16459 
   16460 
   16461 
   16462 
   16463 
   16464 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   16465 if test x"$ax_pthread_ok" = xyes; then
   16466 
   16467 
   16468 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
   16469 
   16470 		if test -n "$PTHREAD_LIBS"; then
   16471 		  LIBS="$PTHREAD_LIBS $LIBS"
   16472 		fi
   16473 		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   16474 		CC="$PTHREAD_CC"
   16475 		ub_have_pthreads=yes
   16476 		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
   16477 "
   16478 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
   16479 
   16480 cat >>confdefs.h <<_ACEOF
   16481 #define HAVE_PTHREAD_SPINLOCK_T 1
   16482 _ACEOF
   16483 
   16484 
   16485 fi
   16486 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
   16487 "
   16488 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
   16489 
   16490 cat >>confdefs.h <<_ACEOF
   16491 #define HAVE_PTHREAD_RWLOCK_T 1
   16492 _ACEOF
   16493 
   16494 
   16495 fi
   16496 
   16497 
   16498 		if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
   16499 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
   16500 $as_echo_n "checking if -pthread unused during linking... " >&6; }
   16501 		# catch clang warning 'argument unused during compilation'
   16502 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16503 /* end confdefs.h.  */
   16504 $ac_includes_default
   16505 
   16506 int main(void) {return 0;}
   16507 
   16508 _ACEOF
   16509 		pthread_unused="yes"
   16510 		# first compile
   16511 		echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
   16512 		$CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
   16513 		if test $? = 0; then
   16514 			# then link
   16515 			echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
   16516 			$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
   16517 			if test $? -ne 0; then
   16518 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16519 $as_echo "yes" >&6; }
   16520 				CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
   16521 				PTHREAD_CFLAGS_ONLY="-pthread"
   16522 
   16523 			else
   16524 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16525 $as_echo "no" >&6; }
   16526 			fi
   16527 		else
   16528 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16529 $as_echo "no" >&6; }
   16530 		fi # endif cc successful
   16531 		rm -f conftest conftest.c conftest.o
   16532 		fi # endif -pthread in CFLAGS
   16533 
   16534 
   16535         :
   16536 else
   16537         ax_pthread_ok=no
   16538 
   16539 fi
   16540 ac_ext=c
   16541 ac_cpp='$CPP $CPPFLAGS'
   16542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16545 
   16546 
   16547 fi
   16548 
   16549 # check solaris thread library
   16550 
   16551 # Check whether --with-solaris-threads was given.
   16552 if test "${with_solaris_threads+set}" = set; then :
   16553   withval=$with_solaris_threads;
   16554 else
   16555    withval="no"
   16556 fi
   16557 
   16558 ub_have_sol_threads=no
   16559 if test x_$withval != x_no; then
   16560 	if test x_$ub_have_pthreads != x_no; then
   16561 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
   16562 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
   16563 	else
   16564 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
   16565 $as_echo_n "checking for library containing thr_create... " >&6; }
   16566 if ${ac_cv_search_thr_create+:} false; then :
   16567   $as_echo_n "(cached) " >&6
   16568 else
   16569   ac_func_search_save_LIBS=$LIBS
   16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16571 /* end confdefs.h.  */
   16572 
   16573 /* Override any GCC internal prototype to avoid an error.
   16574    Use char because int might match the return type of a GCC
   16575    builtin and then its argument prototype would still apply.  */
   16576 #ifdef __cplusplus
   16577 extern "C"
   16578 #endif
   16579 char thr_create ();
   16580 int
   16581 main ()
   16582 {
   16583 return thr_create ();
   16584   ;
   16585   return 0;
   16586 }
   16587 _ACEOF
   16588 for ac_lib in '' thread; do
   16589   if test -z "$ac_lib"; then
   16590     ac_res="none required"
   16591   else
   16592     ac_res=-l$ac_lib
   16593     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16594   fi
   16595   if ac_fn_c_try_link "$LINENO"; then :
   16596   ac_cv_search_thr_create=$ac_res
   16597 fi
   16598 rm -f core conftest.err conftest.$ac_objext \
   16599     conftest$ac_exeext
   16600   if ${ac_cv_search_thr_create+:} false; then :
   16601   break
   16602 fi
   16603 done
   16604 if ${ac_cv_search_thr_create+:} false; then :
   16605 
   16606 else
   16607   ac_cv_search_thr_create=no
   16608 fi
   16609 rm conftest.$ac_ext
   16610 LIBS=$ac_func_search_save_LIBS
   16611 fi
   16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
   16613 $as_echo "$ac_cv_search_thr_create" >&6; }
   16614 ac_res=$ac_cv_search_thr_create
   16615 if test "$ac_res" != no; then :
   16616   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16617 
   16618 
   16619 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
   16620 
   16621 
   16622 
   16623 
   16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
   16625 $as_echo_n "checking whether $CC supports -mt... " >&6; }
   16626 cache=`echo mt | sed 'y%.=/+-%___p_%'`
   16627 if eval \${cv_prog_cc_flag_$cache+:} false; then :
   16628   $as_echo_n "(cached) " >&6
   16629 else
   16630 
   16631 echo 'void f(void){}' >conftest.c
   16632 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
   16633 eval "cv_prog_cc_flag_$cache=yes"
   16634 else
   16635 eval "cv_prog_cc_flag_$cache=no"
   16636 fi
   16637 rm -f conftest conftest.o conftest.c
   16638 
   16639 fi
   16640 
   16641 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
   16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16643 $as_echo "yes" >&6; }
   16644 :
   16645 CFLAGS="$CFLAGS -mt"
   16646 else
   16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16648 $as_echo "no" >&6; }
   16649 :
   16650 CFLAGS="$CFLAGS -D_REENTRANT"
   16651 fi
   16652 
   16653 		ub_have_sol_threads=yes
   16654 
   16655 else
   16656 
   16657 		as_fn_error $? "no solaris threads found." "$LINENO" 5
   16658 
   16659 fi
   16660 
   16661 	fi
   16662 fi
   16663 
   16664 fi # end of non-mingw check of thread libraries
   16665 
   16666 # Check for PyUnbound
   16667 
   16668 # Check whether --with-pyunbound was given.
   16669 if test "${with_pyunbound+set}" = set; then :
   16670   withval=$with_pyunbound;
   16671 else
   16672    withval="no"
   16673 fi
   16674 
   16675 
   16676 ub_test_python=no
   16677 ub_with_pyunbound=no
   16678 if test x_$withval != x_no; then
   16679    ub_with_pyunbound=yes
   16680    ub_test_python=yes
   16681 fi
   16682 
   16683 # Check for Python module
   16684 
   16685 # Check whether --with-pythonmodule was given.
   16686 if test "${with_pythonmodule+set}" = set; then :
   16687   withval=$with_pythonmodule;
   16688 else
   16689    withval="no"
   16690 fi
   16691 
   16692 
   16693 ub_with_pythonmod=no
   16694 if test x_$withval != x_no; then
   16695    ub_with_pythonmod=yes
   16696    ub_test_python=yes
   16697 fi
   16698 
   16699 # Check for Python & SWIG only on PyUnbound or PyModule
   16700 if test x_$ub_test_python != x_no; then
   16701 
   16702    # Check for Python
   16703    ub_have_python=no
   16704    ac_save_LIBS="$LIBS"
   16705         #
   16706         # Allow the use of a (user set) custom python version
   16707         #
   16708 
   16709 
   16710         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
   16711 set dummy python$PYTHON_VERSION; ac_word=$2
   16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16713 $as_echo_n "checking for $ac_word... " >&6; }
   16714 if ${ac_cv_path_PYTHON+:} false; then :
   16715   $as_echo_n "(cached) " >&6
   16716 else
   16717   case $PYTHON in
   16718   [\\/]* | ?:[\\/]*)
   16719   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
   16720   ;;
   16721   *)
   16722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16723 for as_dir in $PATH
   16724 do
   16725   IFS=$as_save_IFS
   16726   test -z "$as_dir" && as_dir=.
   16727     for ac_exec_ext in '' $ac_executable_extensions; do
   16728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16729     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
   16730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16731     break 2
   16732   fi
   16733 done
   16734   done
   16735 IFS=$as_save_IFS
   16736 
   16737   ;;
   16738 esac
   16739 fi
   16740 PYTHON=$ac_cv_path_PYTHON
   16741 if test -n "$PYTHON"; then
   16742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
   16743 $as_echo "$PYTHON" >&6; }
   16744 else
   16745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16746 $as_echo "no" >&6; }
   16747 fi
   16748 
   16749 
   16750         if test -z "$PYTHON"; then
   16751            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
   16752            PYTHON_VERSION=""
   16753         fi
   16754 
   16755         if test -z "$PYTHON_VERSION"; then
   16756 		PYTHON_VERSION=`$PYTHON -c "import sys; \
   16757 			print(sys.version.split()[0])"`
   16758 	fi
   16759 
   16760         #
   16761         # Check if you have distutils, else fail
   16762         #
   16763         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
   16764 $as_echo_n "checking for the distutils Python package... " >&6; }
   16765         if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
   16766                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16767 $as_echo "yes" >&6; }
   16768         else
   16769                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16770 $as_echo "no" >&6; }
   16771                 as_fn_error $? "cannot import Python module \"distutils\".
   16772 Please check your Python installation. The error was:
   16773 $ac_distutils_result" "$LINENO" 5
   16774                 PYTHON_VERSION=""
   16775         fi
   16776 
   16777         #
   16778         # Check for Python include path
   16779         #
   16780         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
   16781 $as_echo_n "checking for Python include path... " >&6; }
   16782         if test -z "$PYTHON_CPPFLAGS"; then
   16783                 python_path=`$PYTHON -c "import distutils.sysconfig; \
   16784                         print(distutils.sysconfig.get_python_inc());"`
   16785                 if test -n "${python_path}"; then
   16786                         python_path="-I$python_path"
   16787                 fi
   16788                 PYTHON_CPPFLAGS=$python_path
   16789         fi
   16790         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
   16791 $as_echo "$PYTHON_CPPFLAGS" >&6; }
   16792 
   16793 
   16794         #
   16795         # Check for Python library path
   16796         #
   16797         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
   16798 $as_echo_n "checking for Python library path... " >&6; }
   16799         if test -z "$PYTHON_LDFLAGS"; then
   16800                 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
   16801                         print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
   16802         fi
   16803         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
   16804 $as_echo "$PYTHON_LDFLAGS" >&6; }
   16805 
   16806 
   16807         #
   16808         # Check for site packages
   16809         #
   16810         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
   16811 $as_echo_n "checking for Python site-packages path... " >&6; }
   16812         if test -z "$PYTHON_SITE_PKG"; then
   16813                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
   16814                         print(distutils.sysconfig.get_python_lib(1,0));"`
   16815         fi
   16816         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
   16817 $as_echo "$PYTHON_SITE_PKG" >&6; }
   16818 
   16819 
   16820         #
   16821         # final check to see if everything compiles alright
   16822         #
   16823         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
   16824 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
   16825         ac_ext=c
   16826 ac_cpp='$CPP $CPPFLAGS'
   16827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16830 
   16831         # save current global flags
   16832         ac_save_LIBS="$LIBS"
   16833         ac_save_CPPFLAGS="$CPPFLAGS"
   16834 
   16835         LIBS="$LIBS $PYTHON_LDFLAGS"
   16836         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
   16837         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16838 /* end confdefs.h.  */
   16839 
   16840                 #include <Python.h>
   16841 
   16842 int
   16843 main ()
   16844 {
   16845 
   16846                 Py_Initialize();
   16847 
   16848   ;
   16849   return 0;
   16850 }
   16851 _ACEOF
   16852 if ac_fn_c_try_link "$LINENO"; then :
   16853   pythonexists=yes
   16854 else
   16855   pythonexists=no
   16856 fi
   16857 rm -f core conftest.err conftest.$ac_objext \
   16858     conftest$ac_exeext conftest.$ac_ext
   16859 
   16860         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
   16861 $as_echo "$pythonexists" >&6; }
   16862 
   16863         if test ! "$pythonexists" = "yes"; then
   16864            as_fn_error $? "
   16865   Could not link test program to Python. Maybe the main Python library has been
   16866   installed in some non-standard library path. If so, pass it to configure,
   16867   via the LDFLAGS environment variable.
   16868   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
   16869   ============================================================================
   16870    ERROR!
   16871    You probably have to install the development version of the Python package
   16872    for your distribution.  The exact name of this package varies among them.
   16873   ============================================================================
   16874            " "$LINENO" 5
   16875           PYTHON_VERSION=""
   16876         fi
   16877         ac_ext=c
   16878 ac_cpp='$CPP $CPPFLAGS'
   16879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16882 
   16883         # turn back to default flags
   16884         CPPFLAGS="$ac_save_CPPFLAGS"
   16885         LIBS="$ac_save_LIBS"
   16886 
   16887         #
   16888         # all done!
   16889         #
   16890 
   16891    if test ! -z "$PYTHON_VERSION"; then
   16892 	if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
   16893 		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
   16894 	fi
   16895 
   16896       PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
   16897 
   16898       # Have Python
   16899 
   16900 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
   16901 
   16902       if test -n "$LIBS"; then
   16903         LIBS="$PYTHON_LDFLAGS $LIBS"
   16904       else
   16905         LIBS="$PYTHON_LDFLAGS"
   16906       fi
   16907       if test -n "$CPPFLAGS"; then
   16908         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
   16909       else
   16910         CPPFLAGS="$PYTHON_CPPFLAGS"
   16911       fi
   16912       ub_have_python=yes
   16913       PC_PY_DEPENDENCY="python"
   16914 
   16915 
   16916       # Check for SWIG
   16917       ub_have_swig=no
   16918 
   16919         # Extract the first word of "swig", so it can be a program name with args.
   16920 set dummy swig; ac_word=$2
   16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16922 $as_echo_n "checking for $ac_word... " >&6; }
   16923 if ${ac_cv_path_SWIG+:} false; then :
   16924   $as_echo_n "(cached) " >&6
   16925 else
   16926   case $SWIG in
   16927   [\\/]* | ?:[\\/]*)
   16928   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
   16929   ;;
   16930   *)
   16931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16932 for as_dir in $PATH
   16933 do
   16934   IFS=$as_save_IFS
   16935   test -z "$as_dir" && as_dir=.
   16936     for ac_exec_ext in '' $ac_executable_extensions; do
   16937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16938     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
   16939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16940     break 2
   16941   fi
   16942 done
   16943   done
   16944 IFS=$as_save_IFS
   16945 
   16946   ;;
   16947 esac
   16948 fi
   16949 SWIG=$ac_cv_path_SWIG
   16950 if test -n "$SWIG"; then
   16951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
   16952 $as_echo "$SWIG" >&6; }
   16953 else
   16954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16955 $as_echo "no" >&6; }
   16956 fi
   16957 
   16958 
   16959         if test -z "$SWIG" ; then
   16960                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
   16961 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
   16962                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
   16963         elif test -n "2.0.1" ; then
   16964                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
   16965 $as_echo_n "checking for SWIG version... " >&6; }
   16966                 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'`
   16967                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
   16968 $as_echo "$swig_version" >&6; }
   16969                 if test -n "$swig_version" ; then
   16970                         # Calculate the required version number components
   16971                         required=2.0.1
   16972                         required_major=`echo $required | sed 's/[^0-9].*//'`
   16973                         if test -z "$required_major" ; then
   16974                                 required_major=0
   16975                         fi
   16976                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
   16977                         required_minor=`echo $required | sed 's/[^0-9].*//'`
   16978                         if test -z "$required_minor" ; then
   16979                                 required_minor=0
   16980                         fi
   16981                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
   16982                         required_patch=`echo $required | sed 's/[^0-9].*//'`
   16983                         if test -z "$required_patch" ; then
   16984                                 required_patch=0
   16985                         fi
   16986                         # Calculate the available version number components
   16987                         available=$swig_version
   16988                         available_major=`echo $available | sed 's/[^0-9].*//'`
   16989                         if test -z "$available_major" ; then
   16990                                 available_major=0
   16991                         fi
   16992                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
   16993                         available_minor=`echo $available | sed 's/[^0-9].*//'`
   16994                         if test -z "$available_minor" ; then
   16995                                 available_minor=0
   16996                         fi
   16997                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
   16998                         available_patch=`echo $available | sed 's/[^0-9].*//'`
   16999                         if test -z "$available_patch" ; then
   17000                                 available_patch=0
   17001                         fi
   17002 			badversion=0
   17003 			if test $available_major -lt $required_major ; then
   17004 				badversion=1
   17005 			fi
   17006                         if test $available_major -eq $required_major \
   17007                                 -a $available_minor -lt $required_minor ; then
   17008 				badversion=1
   17009 			fi
   17010                         if test $available_major -eq $required_major \
   17011                                 -a $available_minor -eq $required_minor \
   17012                                 -a $available_patch -lt $required_patch ; then
   17013 				badversion=1
   17014 			fi
   17015 			if test $badversion -eq 1 ; then
   17016                                 { $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
   17017 $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;}
   17018                                 SWIG='echo "Error: SWIG version >= 2.0.1 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
   17019                         else
   17020                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
   17021 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
   17022                                 SWIG_LIB=`$SWIG -swiglib`
   17023                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
   17024 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
   17025                         fi
   17026                 else
   17027                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
   17028 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
   17029                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
   17030                 fi
   17031         fi
   17032 
   17033 
   17034       { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
   17035 $as_echo_n "checking SWIG... " >&6; }
   17036       if test ! -x "$SWIG"; then
   17037          as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
   17038       else
   17039 
   17040 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
   17041 
   17042          swig="$SWIG"
   17043 
   17044          { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
   17045 $as_echo "present" >&6; }
   17046 
   17047          # If have Python & SWIG
   17048          # Declare PythonMod
   17049          if test x_$ub_with_pythonmod != x_no; then
   17050 
   17051 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
   17052 
   17053             WITH_PYTHONMODULE=yes
   17054 
   17055 	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
   17056 
   17057 	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
   17058 
   17059 	    PYTHONMOD_INSTALL=pythonmod-install
   17060 
   17061 	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
   17062 
   17063          fi
   17064 
   17065          # Declare PyUnbound
   17066          if test x_$ub_with_pyunbound != x_no; then
   17067 
   17068 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
   17069 
   17070             WITH_PYUNBOUND=yes
   17071 
   17072 	    PYUNBOUND_OBJ="libunbound_wrap.lo"
   17073 
   17074 	    PYUNBOUND_TARGET="_unbound.la"
   17075 
   17076 	    PYUNBOUND_INSTALL=pyunbound-install
   17077 
   17078 	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
   17079 
   17080          fi
   17081       fi
   17082    else
   17083       { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
   17084 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
   17085       ub_with_pyunbound=no
   17086       ub_with_pythonmod=no
   17087    fi
   17088 fi
   17089 
   17090 if test "`uname`" = "NetBSD"; then
   17091 	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
   17092 
   17093 fi
   17094 CONFIG_DATE=`date +%Y%m%d`
   17095 
   17096 
   17097 # Checks for libraries.
   17098 
   17099 # libnss
   17100 USE_NSS="no"
   17101 
   17102 # Check whether --with-nss was given.
   17103 if test "${with_nss+set}" = set; then :
   17104   withval=$with_nss;
   17105 	USE_NSS="yes"
   17106 
   17107 $as_echo "#define HAVE_NSS 1" >>confdefs.h
   17108 
   17109 	if test "$withval" != "" -a "$withval" != "yes"; then
   17110 		CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
   17111 		LDFLAGS="$LDFLAGS -L$withval/lib"
   17112 
   17113 	if test "x$enable_rpath" = xyes; then
   17114 		if echo "$withval/lib" | grep "^/" >/dev/null; then
   17115 			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
   17116 		fi
   17117 	fi
   17118 
   17119 		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
   17120 	else
   17121 		CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
   17122 		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
   17123 	fi
   17124         LIBS="$LIBS -lnss3 -lnspr4"
   17125 	SSLLIB=""
   17126 
   17127 
   17128 fi
   17129 
   17130 
   17131 # libnettle
   17132 USE_NETTLE="no"
   17133 
   17134 # Check whether --with-nettle was given.
   17135 if test "${with_nettle+set}" = set; then :
   17136   withval=$with_nettle;
   17137 	USE_NETTLE="yes"
   17138 
   17139 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
   17140 
   17141 	for ac_header in nettle/dsa-compat.h
   17142 do :
   17143   ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
   17144 "
   17145 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
   17146   cat >>confdefs.h <<_ACEOF
   17147 #define HAVE_NETTLE_DSA_COMPAT_H 1
   17148 _ACEOF
   17149 
   17150 fi
   17151 
   17152 done
   17153 
   17154 	if test "$withval" != "" -a "$withval" != "yes"; then
   17155 		CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
   17156 		LDFLAGS="$LDFLAGS -L$withval/lib"
   17157 
   17158 	if test "x$enable_rpath" = xyes; then
   17159 		if echo "$withval/lib" | grep "^/" >/dev/null; then
   17160 			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
   17161 		fi
   17162 	fi
   17163 
   17164 	else
   17165 		CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
   17166 	fi
   17167         LIBS="$LIBS -lhogweed -lnettle -lgmp"
   17168 	SSLLIB=""
   17169 
   17170 
   17171 fi
   17172 
   17173 
   17174 # openssl
   17175 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   17176 
   17177 
   17178 # Check whether --with-ssl was given.
   17179 if test "${with_ssl+set}" = set; then :
   17180   withval=$with_ssl;
   17181 
   17182 else
   17183 
   17184             withval="yes"
   17185 
   17186 fi
   17187 
   17188     if test x_$withval = x_no; then
   17189 	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
   17190     fi
   17191 
   17192     withval=$withval
   17193     if test x_$withval != x_no; then
   17194         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
   17195 $as_echo_n "checking for SSL... " >&6; }
   17196         if test x_$withval = x_ -o x_$withval = x_yes; then
   17197             withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
   17198         fi
   17199         for dir in $withval; do
   17200             ssldir="$dir"
   17201             if test -f "$dir/include/openssl/ssl.h"; then
   17202                 found_ssl="yes"
   17203 
   17204 cat >>confdefs.h <<_ACEOF
   17205 #define HAVE_SSL /**/
   17206 _ACEOF
   17207 
   17208                                 if test "$ssldir" != "/usr"; then
   17209                         CPPFLAGS="$CPPFLAGS -I$ssldir/include"
   17210                         LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
   17211                 fi
   17212                 break;
   17213             fi
   17214         done
   17215         if test x_$found_ssl != x_yes; then
   17216             as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
   17217         else
   17218             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
   17219 $as_echo "found in $ssldir" >&6; }
   17220             HAVE_SSL=yes
   17221                         if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
   17222                 LDFLAGS="$LDFLAGS -L$ssldir/lib"
   17223                 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
   17224 
   17225 	if test "x$enable_rpath" = xyes; then
   17226 		if echo "$ssldir/lib" | grep "^/" >/dev/null; then
   17227 			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
   17228 		fi
   17229 	fi
   17230 
   17231             fi
   17232 
   17233             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
   17234 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
   17235             LIBS="$LIBS -lcrypto"
   17236             LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
   17237             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17238 /* end confdefs.h.  */
   17239 
   17240 int
   17241 main ()
   17242 {
   17243 
   17244                 int HMAC_Update(void);
   17245                 (void)HMAC_Update();
   17246 
   17247   ;
   17248   return 0;
   17249 }
   17250 _ACEOF
   17251 if ac_fn_c_try_link "$LINENO"; then :
   17252 
   17253                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17254 $as_echo "yes" >&6; }
   17255 
   17256 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
   17257 
   17258 
   17259 else
   17260 
   17261                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17262 $as_echo "no" >&6; }
   17263                 # check if -lwsock32 or -lgdi32 are needed.
   17264                 BAKLIBS="$LIBS"
   17265                 BAKSSLLIBS="$LIBSSL_LIBS"
   17266 		LIBS="$LIBS -lgdi32 -lws2_32"
   17267 		LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
   17268                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
   17269 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
   17270                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17271 /* end confdefs.h.  */
   17272 
   17273 int
   17274 main ()
   17275 {
   17276 
   17277                     int HMAC_Update(void);
   17278                     (void)HMAC_Update();
   17279 
   17280   ;
   17281   return 0;
   17282 }
   17283 _ACEOF
   17284 if ac_fn_c_try_link "$LINENO"; then :
   17285 
   17286 
   17287 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
   17288 
   17289                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17290 $as_echo "yes" >&6; }
   17291 
   17292 else
   17293 
   17294                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17295 $as_echo "no" >&6; }
   17296                     LIBS="$BAKLIBS"
   17297                     LIBSSL_LIBS="$BAKSSLLIBS"
   17298                     LIBS="$LIBS -ldl"
   17299                     LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
   17300                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
   17301 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
   17302                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17303 /* end confdefs.h.  */
   17304 
   17305 int
   17306 main ()
   17307 {
   17308 
   17309                         int HMAC_Update(void);
   17310                         (void)HMAC_Update();
   17311 
   17312   ;
   17313   return 0;
   17314 }
   17315 _ACEOF
   17316 if ac_fn_c_try_link "$LINENO"; then :
   17317 
   17318 
   17319 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
   17320 
   17321                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17322 $as_echo "yes" >&6; }
   17323 
   17324 else
   17325 
   17326                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17327 $as_echo "no" >&6; }
   17328                         LIBS="$BAKLIBS"
   17329                         LIBSSL_LIBS="$BAKSSLLIBS"
   17330                         LIBS="$LIBS -ldl -pthread"
   17331                         LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
   17332                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
   17333 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
   17334                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17335 /* end confdefs.h.  */
   17336 
   17337 int
   17338 main ()
   17339 {
   17340 
   17341                             int HMAC_Update(void);
   17342                             (void)HMAC_Update();
   17343 
   17344   ;
   17345   return 0;
   17346 }
   17347 _ACEOF
   17348 if ac_fn_c_try_link "$LINENO"; then :
   17349 
   17350 
   17351 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
   17352 
   17353                             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17354 $as_echo "yes" >&6; }
   17355 
   17356 else
   17357 
   17358                             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17359 $as_echo "no" >&6; }
   17360                             as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
   17361 
   17362 fi
   17363 rm -f core conftest.err conftest.$ac_objext \
   17364     conftest$ac_exeext conftest.$ac_ext
   17365 
   17366 fi
   17367 rm -f core conftest.err conftest.$ac_objext \
   17368     conftest$ac_exeext conftest.$ac_ext
   17369 
   17370 fi
   17371 rm -f core conftest.err conftest.$ac_objext \
   17372     conftest$ac_exeext conftest.$ac_ext
   17373 
   17374 fi
   17375 rm -f core conftest.err conftest.$ac_objext \
   17376     conftest$ac_exeext conftest.$ac_ext
   17377         fi
   17378 
   17379 
   17380     fi
   17381 for ac_header in openssl/ssl.h
   17382 do :
   17383   ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
   17384 "
   17385 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
   17386   cat >>confdefs.h <<_ACEOF
   17387 #define HAVE_OPENSSL_SSL_H 1
   17388 _ACEOF
   17389 
   17390 fi
   17391 
   17392 done
   17393 
   17394 for ac_header in openssl/err.h
   17395 do :
   17396   ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
   17397 "
   17398 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
   17399   cat >>confdefs.h <<_ACEOF
   17400 #define HAVE_OPENSSL_ERR_H 1
   17401 _ACEOF
   17402 
   17403 fi
   17404 
   17405 done
   17406 
   17407 for ac_header in openssl/rand.h
   17408 do :
   17409   ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
   17410 "
   17411 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
   17412   cat >>confdefs.h <<_ACEOF
   17413 #define HAVE_OPENSSL_RAND_H 1
   17414 _ACEOF
   17415 
   17416 fi
   17417 
   17418 done
   17419 
   17420 
   17421 
   17422 
   17423 # check if libssl needs libdl
   17424 BAKLIBS="$LIBS"
   17425 LIBS="-lssl $LIBS"
   17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
   17427 $as_echo_n "checking if libssl needs libdl... " >&6; }
   17428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17429 /* end confdefs.h.  */
   17430 
   17431 /* Override any GCC internal prototype to avoid an error.
   17432    Use char because int might match the return type of a GCC
   17433    builtin and then its argument prototype would still apply.  */
   17434 #ifdef __cplusplus
   17435 extern "C"
   17436 #endif
   17437 char SSL_CTX_new ();
   17438 int
   17439 main ()
   17440 {
   17441 return SSL_CTX_new ();
   17442   ;
   17443   return 0;
   17444 }
   17445 _ACEOF
   17446 if ac_fn_c_try_link "$LINENO"; then :
   17447 
   17448 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17449 $as_echo "no" >&6; }
   17450 	LIBS="$BAKLIBS"
   17451 
   17452 else
   17453 
   17454 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17455 $as_echo "yes" >&6; }
   17456 	LIBS="$BAKLIBS"
   17457 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   17458 $as_echo_n "checking for library containing dlopen... " >&6; }
   17459 if ${ac_cv_search_dlopen+:} false; then :
   17460   $as_echo_n "(cached) " >&6
   17461 else
   17462   ac_func_search_save_LIBS=$LIBS
   17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17464 /* end confdefs.h.  */
   17465 
   17466 /* Override any GCC internal prototype to avoid an error.
   17467    Use char because int might match the return type of a GCC
   17468    builtin and then its argument prototype would still apply.  */
   17469 #ifdef __cplusplus
   17470 extern "C"
   17471 #endif
   17472 char dlopen ();
   17473 int
   17474 main ()
   17475 {
   17476 return dlopen ();
   17477   ;
   17478   return 0;
   17479 }
   17480 _ACEOF
   17481 for ac_lib in '' dl; do
   17482   if test -z "$ac_lib"; then
   17483     ac_res="none required"
   17484   else
   17485     ac_res=-l$ac_lib
   17486     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17487   fi
   17488   if ac_fn_c_try_link "$LINENO"; then :
   17489   ac_cv_search_dlopen=$ac_res
   17490 fi
   17491 rm -f core conftest.err conftest.$ac_objext \
   17492     conftest$ac_exeext
   17493   if ${ac_cv_search_dlopen+:} false; then :
   17494   break
   17495 fi
   17496 done
   17497 if ${ac_cv_search_dlopen+:} false; then :
   17498 
   17499 else
   17500   ac_cv_search_dlopen=no
   17501 fi
   17502 rm conftest.$ac_ext
   17503 LIBS=$ac_func_search_save_LIBS
   17504 fi
   17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   17506 $as_echo "$ac_cv_search_dlopen" >&6; }
   17507 ac_res=$ac_cv_search_dlopen
   17508 if test "$ac_res" != no; then :
   17509   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17510 
   17511 fi
   17512 
   17513 
   17514 fi
   17515 rm -f core conftest.err conftest.$ac_objext \
   17516     conftest$ac_exeext conftest.$ac_ext
   17517 SSLLIB="-lssl"
   17518 
   17519 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
   17520 BAKLIBS="$LIBS"
   17521 LIBS="-lssl $LIBS"
   17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
   17523 $as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
   17524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17525 /* end confdefs.h.  */
   17526 
   17527 /* Override any GCC internal prototype to avoid an error.
   17528    Use char because int might match the return type of a GCC
   17529    builtin and then its argument prototype would still apply.  */
   17530 #ifdef __cplusplus
   17531 extern "C"
   17532 #endif
   17533 char HMAC_Update ();
   17534 int
   17535 main ()
   17536 {
   17537 return HMAC_Update ();
   17538   ;
   17539   return 0;
   17540 }
   17541 _ACEOF
   17542 if ac_fn_c_try_link "$LINENO"; then :
   17543 
   17544 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17545 $as_echo "no" >&6; }
   17546 	LIBS="$BAKLIBS"
   17547 
   17548 else
   17549 
   17550 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17551 $as_echo "yes" >&6; }
   17552 	LIBS="$BAKLIBS"
   17553 	LIBS="$LIBS -lcrypt32"
   17554 
   17555 fi
   17556 rm -f core conftest.err conftest.$ac_objext \
   17557     conftest$ac_exeext conftest.$ac_ext
   17558 
   17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
   17560 $as_echo_n "checking for LibreSSL... " >&6; }
   17561 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
   17562 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17563 $as_echo "yes" >&6; }
   17564 
   17565 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
   17566 
   17567 	# libressl provides these compat functions, but they may also be
   17568 	# declared by the OS in libc.  See if they have been declared.
   17569 	ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
   17570 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
   17571   ac_have_decl=1
   17572 else
   17573   ac_have_decl=0
   17574 fi
   17575 
   17576 cat >>confdefs.h <<_ACEOF
   17577 #define HAVE_DECL_STRLCPY $ac_have_decl
   17578 _ACEOF
   17579 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
   17580 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
   17581   ac_have_decl=1
   17582 else
   17583   ac_have_decl=0
   17584 fi
   17585 
   17586 cat >>confdefs.h <<_ACEOF
   17587 #define HAVE_DECL_STRLCAT $ac_have_decl
   17588 _ACEOF
   17589 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
   17590 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
   17591   ac_have_decl=1
   17592 else
   17593   ac_have_decl=0
   17594 fi
   17595 
   17596 cat >>confdefs.h <<_ACEOF
   17597 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
   17598 _ACEOF
   17599 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
   17600 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
   17601   ac_have_decl=1
   17602 else
   17603   ac_have_decl=0
   17604 fi
   17605 
   17606 cat >>confdefs.h <<_ACEOF
   17607 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
   17608 _ACEOF
   17609 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
   17610 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
   17611   ac_have_decl=1
   17612 else
   17613   ac_have_decl=0
   17614 fi
   17615 
   17616 cat >>confdefs.h <<_ACEOF
   17617 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
   17618 _ACEOF
   17619 
   17620 else
   17621 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17622 $as_echo "no" >&6; }
   17623 fi
   17624 for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h
   17625 do :
   17626   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17627 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   17628 "
   17629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17630   cat >>confdefs.h <<_ACEOF
   17631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17632 _ACEOF
   17633 
   17634 fi
   17635 
   17636 done
   17637 
   17638 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify
   17639 do :
   17640   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17642 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17643   cat >>confdefs.h <<_ACEOF
   17644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17645 _ACEOF
   17646 
   17647 fi
   17648 done
   17649 
   17650 
   17651 # these check_funcs need -lssl
   17652 BAKLIBS="$LIBS"
   17653 LIBS="-lssl $LIBS"
   17654 for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level
   17655 do :
   17656   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17658 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17659   cat >>confdefs.h <<_ACEOF
   17660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17661 _ACEOF
   17662 
   17663 fi
   17664 done
   17665 
   17666 LIBS="$BAKLIBS"
   17667 
   17668 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
   17669 $ac_includes_default
   17670 #ifdef HAVE_OPENSSL_ERR_H
   17671 #include <openssl/err.h>
   17672 #endif
   17673 
   17674 #ifdef HAVE_OPENSSL_RAND_H
   17675 #include <openssl/rand.h>
   17676 #endif
   17677 
   17678 #ifdef HAVE_OPENSSL_CONF_H
   17679 #include <openssl/conf.h>
   17680 #endif
   17681 
   17682 #ifdef HAVE_OPENSSL_ENGINE_H
   17683 #include <openssl/engine.h>
   17684 #endif
   17685 #include <openssl/ssl.h>
   17686 #include <openssl/evp.h>
   17687 
   17688 "
   17689 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
   17690   ac_have_decl=1
   17691 else
   17692   ac_have_decl=0
   17693 fi
   17694 
   17695 cat >>confdefs.h <<_ACEOF
   17696 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
   17697 _ACEOF
   17698 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
   17699 $ac_includes_default
   17700 #ifdef HAVE_OPENSSL_ERR_H
   17701 #include <openssl/err.h>
   17702 #endif
   17703 
   17704 #ifdef HAVE_OPENSSL_RAND_H
   17705 #include <openssl/rand.h>
   17706 #endif
   17707 
   17708 #ifdef HAVE_OPENSSL_CONF_H
   17709 #include <openssl/conf.h>
   17710 #endif
   17711 
   17712 #ifdef HAVE_OPENSSL_ENGINE_H
   17713 #include <openssl/engine.h>
   17714 #endif
   17715 #include <openssl/ssl.h>
   17716 #include <openssl/evp.h>
   17717 
   17718 "
   17719 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
   17720   ac_have_decl=1
   17721 else
   17722   ac_have_decl=0
   17723 fi
   17724 
   17725 cat >>confdefs.h <<_ACEOF
   17726 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
   17727 _ACEOF
   17728 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
   17729 $ac_includes_default
   17730 #ifdef HAVE_OPENSSL_ERR_H
   17731 #include <openssl/err.h>
   17732 #endif
   17733 
   17734 #ifdef HAVE_OPENSSL_RAND_H
   17735 #include <openssl/rand.h>
   17736 #endif
   17737 
   17738 #ifdef HAVE_OPENSSL_CONF_H
   17739 #include <openssl/conf.h>
   17740 #endif
   17741 
   17742 #ifdef HAVE_OPENSSL_ENGINE_H
   17743 #include <openssl/engine.h>
   17744 #endif
   17745 #include <openssl/ssl.h>
   17746 #include <openssl/evp.h>
   17747 
   17748 "
   17749 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
   17750   ac_have_decl=1
   17751 else
   17752   ac_have_decl=0
   17753 fi
   17754 
   17755 cat >>confdefs.h <<_ACEOF
   17756 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
   17757 _ACEOF
   17758 
   17759 fi
   17760 
   17761 
   17762 
   17763 # Check whether --enable-sha1 was given.
   17764 if test "${enable_sha1+set}" = set; then :
   17765   enableval=$enable_sha1;
   17766 fi
   17767 
   17768 case "$enable_sha1" in
   17769 	no)
   17770 	;;
   17771 	yes|*)
   17772 
   17773 $as_echo "#define USE_SHA1 1" >>confdefs.h
   17774 
   17775 	;;
   17776 esac
   17777 
   17778 
   17779 # Check whether --enable-sha2 was given.
   17780 if test "${enable_sha2+set}" = set; then :
   17781   enableval=$enable_sha2;
   17782 fi
   17783 
   17784 case "$enable_sha2" in
   17785 	no)
   17786 	;;
   17787 	yes|*)
   17788 
   17789 $as_echo "#define USE_SHA2 1" >>confdefs.h
   17790 
   17791 	;;
   17792 esac
   17793 
   17794 # Check whether --enable-subnet was given.
   17795 if test "${enable_subnet+set}" = set; then :
   17796   enableval=$enable_subnet;
   17797 fi
   17798 
   17799 case "$enable_subnet" in
   17800 	yes)
   17801 
   17802 $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
   17803 
   17804 	SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
   17805 
   17806 	SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
   17807 
   17808 	;;
   17809 	no|*)
   17810 	;;
   17811 esac
   17812 
   17813 # check wether gost also works
   17814 
   17815 # Check whether --enable-gost was given.
   17816 if test "${enable_gost+set}" = set; then :
   17817   enableval=$enable_gost;
   17818 fi
   17819 
   17820 use_gost="no"
   17821 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   17822 case "$enable_gost" in
   17823 	no)
   17824 	;;
   17825 	*)
   17826 	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
   17827 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
   17828   :
   17829 else
   17830   as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
   17831 fi
   17832 
   17833 	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
   17834 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
   17835 
   17836 else
   17837   as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
   17838 fi
   17839 
   17840 
   17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
   17842 $as_echo_n "checking if GOST works... " >&6; }
   17843 if test c${cross_compiling} = cno; then
   17844 BAKCFLAGS="$CFLAGS"
   17845 if test -n "$ssldir"; then
   17846 	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
   17847 fi
   17848 if test "$cross_compiling" = yes; then :
   17849   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17851 as_fn_error $? "cannot run test program while cross compiling
   17852 See \`config.log' for more details" "$LINENO" 5; }
   17853 else
   17854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17855 /* end confdefs.h.  */
   17856 
   17857 #include <string.h>
   17858 #include <openssl/ssl.h>
   17859 #include <openssl/evp.h>
   17860 #include <openssl/engine.h>
   17861 #include <openssl/conf.h>
   17862 /* routine to load gost (from sldns) */
   17863 int load_gost_id(void)
   17864 {
   17865 	static int gost_id = 0;
   17866 	const EVP_PKEY_ASN1_METHOD* meth;
   17867 	ENGINE* e;
   17868 
   17869 	if(gost_id) return gost_id;
   17870 
   17871 	/* see if configuration loaded gost implementation from other engine*/
   17872 	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
   17873 	if(meth) {
   17874 		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
   17875 		return gost_id;
   17876 	}
   17877 
   17878 	/* see if engine can be loaded already */
   17879 	e = ENGINE_by_id("gost");
   17880 	if(!e) {
   17881 		/* load it ourself, in case statically linked */
   17882 		ENGINE_load_builtin_engines();
   17883 		ENGINE_load_dynamic();
   17884 		e = ENGINE_by_id("gost");
   17885 	}
   17886 	if(!e) {
   17887 		/* no gost engine in openssl */
   17888 		return 0;
   17889 	}
   17890 	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
   17891 		ENGINE_finish(e);
   17892 		ENGINE_free(e);
   17893 		return 0;
   17894 	}
   17895 
   17896 	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
   17897 	if(!meth) {
   17898 		/* algo not found */
   17899 		ENGINE_finish(e);
   17900 		ENGINE_free(e);
   17901 		return 0;
   17902 	}
   17903 	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
   17904 	return gost_id;
   17905 }
   17906 int main(void) {
   17907 	EVP_MD_CTX* ctx;
   17908 	const EVP_MD* md;
   17909 	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
   17910 	const char* str = "Hello world";
   17911 	const unsigned char check[] = {
   17912 		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
   17913 		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
   17914 		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
   17915 		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
   17916 	};
   17917 	OPENSSL_config(NULL);
   17918 	(void)load_gost_id();
   17919 	md = EVP_get_digestbyname("md_gost94");
   17920 	if(!md) return 1;
   17921 	memset(digest, 0, sizeof(digest));
   17922 	ctx = EVP_MD_CTX_create();
   17923 	if(!ctx) return 2;
   17924 	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
   17925 	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
   17926 	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
   17927 	/* uncomment to see the hash calculated.
   17928 		{int i;
   17929 		for(i=0; i<32; i++)
   17930 			printf(" %2.2x", (int)digest[i]);
   17931 		printf("\n");}
   17932 	*/
   17933 	if(memcmp(digest, check, sizeof(check)) != 0)
   17934 		return 6;
   17935 	return 0;
   17936 }
   17937 
   17938 _ACEOF
   17939 if ac_fn_c_try_run "$LINENO"; then :
   17940   eval "ac_cv_c_gost_works=yes"
   17941 else
   17942   eval "ac_cv_c_gost_works=no"
   17943 fi
   17944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17945   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17946 fi
   17947 
   17948 CFLAGS="$BAKCFLAGS"
   17949 else
   17950 eval "ac_cv_c_gost_works=maybe"
   17951 fi
   17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
   17953 $as_echo "$ac_cv_c_gost_works" >&6; }
   17954 
   17955 	if test "$ac_cv_c_gost_works" != no; then
   17956 		use_gost="yes"
   17957 
   17958 $as_echo "#define USE_GOST 1" >>confdefs.h
   17959 
   17960 	fi
   17961 	;;
   17962 esac
   17963 fi
   17964 # Check whether --enable-ecdsa was given.
   17965 if test "${enable_ecdsa+set}" = set; then :
   17966   enableval=$enable_ecdsa;
   17967 fi
   17968 
   17969 use_ecdsa="no"
   17970 case "$enable_ecdsa" in
   17971     no)
   17972       ;;
   17973     *)
   17974       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   17975 	      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
   17976 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
   17977 
   17978 else
   17979   as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
   17980 fi
   17981 
   17982 	      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
   17983 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
   17984 
   17985 else
   17986   as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
   17987 fi
   17988 
   17989 	      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
   17990 #include <openssl/evp.h>
   17991 
   17992 "
   17993 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
   17994   ac_have_decl=1
   17995 else
   17996   ac_have_decl=0
   17997 fi
   17998 
   17999 cat >>confdefs.h <<_ACEOF
   18000 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
   18001 _ACEOF
   18002 if test $ac_have_decl = 1; then :
   18003 
   18004 else
   18005   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
   18006 fi
   18007 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
   18008 #include <openssl/evp.h>
   18009 
   18010 "
   18011 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
   18012   ac_have_decl=1
   18013 else
   18014   ac_have_decl=0
   18015 fi
   18016 
   18017 cat >>confdefs.h <<_ACEOF
   18018 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
   18019 _ACEOF
   18020 if test $ac_have_decl = 1; then :
   18021 
   18022 else
   18023   as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
   18024 fi
   18025 
   18026 	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
   18027 	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
   18028 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
   18029 	      if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
   18030 		if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
   18031 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18032 $as_echo "no" >&6; }
   18033 
   18034 cat >>confdefs.h <<_ACEOF
   18035 #define USE_ECDSA_EVP_WORKAROUND 1
   18036 _ACEOF
   18037 
   18038 		else
   18039 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18040 $as_echo "yes" >&6; }
   18041 		fi
   18042 	      else
   18043 		# not OpenSSL, thus likely LibreSSL, which supports it
   18044 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18045 $as_echo "yes" >&6; }
   18046 	      fi
   18047       fi
   18048       # we now know we have ECDSA and the required curves.
   18049 
   18050 cat >>confdefs.h <<_ACEOF
   18051 #define USE_ECDSA 1
   18052 _ACEOF
   18053 
   18054       use_ecdsa="yes"
   18055       ;;
   18056 esac
   18057 
   18058 # Check whether --enable-dsa was given.
   18059 if test "${enable_dsa+set}" = set; then :
   18060   enableval=$enable_dsa;
   18061 fi
   18062 
   18063 use_dsa="no"
   18064 case "$enable_dsa" in
   18065     no)
   18066       ;;
   18067     *)
   18068       # detect if DSA is supported, and turn it off if not.
   18069       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   18070       ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
   18071 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
   18072 
   18073 
   18074 cat >>confdefs.h <<_ACEOF
   18075 #define USE_DSA 1
   18076 _ACEOF
   18077 
   18078 
   18079 else
   18080   if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
   18081                fi
   18082 fi
   18083 
   18084       else
   18085 
   18086 cat >>confdefs.h <<_ACEOF
   18087 #define USE_DSA 1
   18088 _ACEOF
   18089 
   18090       fi
   18091       ;;
   18092 esac
   18093 
   18094 # Check whether --enable-ed25519 was given.
   18095 if test "${enable_ed25519+set}" = set; then :
   18096   enableval=$enable_ed25519;
   18097 fi
   18098 
   18099 use_ed25519="no"
   18100 case "$enable_ed25519" in
   18101     no)
   18102       ;;
   18103     *)
   18104       if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
   18105 	      ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
   18106 #include <openssl/evp.h>
   18107 
   18108 "
   18109 if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
   18110   ac_have_decl=1
   18111 else
   18112   ac_have_decl=0
   18113 fi
   18114 
   18115 cat >>confdefs.h <<_ACEOF
   18116 #define HAVE_DECL_NID_ED25519 $ac_have_decl
   18117 _ACEOF
   18118 if test $ac_have_decl = 1; then :
   18119 
   18120       		use_ed25519="yes"
   18121 
   18122 else
   18123    if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
   18124 	      	fi
   18125 fi
   18126 
   18127       fi
   18128       if test $USE_NETTLE = "yes"; then
   18129 		for ac_header in nettle/eddsa.h
   18130 do :
   18131   ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
   18132 "
   18133 if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
   18134   cat >>confdefs.h <<_ACEOF
   18135 #define HAVE_NETTLE_EDDSA_H 1
   18136 _ACEOF
   18137  use_ed25519="yes"
   18138 fi
   18139 
   18140 done
   18141 
   18142       fi
   18143       if test $use_ed25519 = "yes"; then
   18144 
   18145 cat >>confdefs.h <<_ACEOF
   18146 #define USE_ED25519 1
   18147 _ACEOF
   18148 
   18149       fi
   18150       ;;
   18151 esac
   18152 
   18153 # Check whether --enable-event-api was given.
   18154 if test "${enable_event_api+set}" = set; then :
   18155   enableval=$enable_event_api;
   18156 fi
   18157 
   18158 case "$enable_event_api" in
   18159     yes)
   18160       UNBOUND_EVENT_INSTALL=unbound-event-install
   18161 
   18162       UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
   18163 
   18164       ;;
   18165     *)
   18166       ;;
   18167 esac
   18168 
   18169 # Check whether --enable-tfo-client was given.
   18170 if test "${enable_tfo_client+set}" = set; then :
   18171   enableval=$enable_tfo_client;
   18172 fi
   18173 
   18174 case "$enable_tfo_client" in
   18175 	yes)
   18176 		case `uname` in
   18177 			Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
   18178 #include <netinet/tcp.h>
   18179 
   18180 "
   18181 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
   18182   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
   18183 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
   18184 else
   18185   as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
   18186 fi
   18187 
   18188 
   18189 cat >>confdefs.h <<_ACEOF
   18190 #define USE_MSG_FASTOPEN 1
   18191 _ACEOF
   18192 
   18193 			  ;;
   18194 			Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
   18195 #include <sys/socket.h>
   18196 
   18197 "
   18198 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
   18199   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
   18200 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
   18201 else
   18202   as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
   18203 fi
   18204 
   18205 
   18206 cat >>confdefs.h <<_ACEOF
   18207 #define USE_OSX_MSG_FASTOPEN 1
   18208 _ACEOF
   18209 
   18210 			  ;;
   18211 		esac
   18212 	;;
   18213 	no|*)
   18214 		;;
   18215 esac
   18216 
   18217 # Check whether --enable-tfo-server was given.
   18218 if test "${enable_tfo_server+set}" = set; then :
   18219   enableval=$enable_tfo_server;
   18220 fi
   18221 
   18222 case "$enable_tfo_server" in
   18223 	yes)
   18224 	      ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
   18225 #include <netinet/tcp.h>
   18226 
   18227 "
   18228 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
   18229   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
   18230 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
   18231 else
   18232   as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
   18233 fi
   18234 
   18235 
   18236 cat >>confdefs.h <<_ACEOF
   18237 #define USE_TCP_FASTOPEN 1
   18238 _ACEOF
   18239 
   18240 		;;
   18241 	no|*)
   18242 		;;
   18243 esac
   18244 
   18245 # check for libevent
   18246 
   18247 # Check whether --with-libevent was given.
   18248 if test "${with_libevent+set}" = set; then :
   18249   withval=$with_libevent;
   18250 else
   18251    withval="no"
   18252 fi
   18253 
   18254 if test x_$withval = x_yes -o x_$withval != x_no; then
   18255         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
   18256 $as_echo_n "checking for libevent... " >&6; }
   18257         if test x_$withval = x_ -o x_$withval = x_yes; then
   18258             withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
   18259         fi
   18260         for dir in $withval; do
   18261             thedir="$dir"
   18262             if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
   18263                 found_libevent="yes"
   18264 				if test "$thedir" != "/usr"; then
   18265                     CPPFLAGS="$CPPFLAGS -I$thedir/include"
   18266 		fi
   18267                 break;
   18268             fi
   18269         done
   18270         if test x_$found_libevent != x_yes; then
   18271 		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
   18272 			# libevent source directory
   18273             		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
   18274 $as_echo "found in $thedir" >&6; }
   18275                 	CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
   18276 			BAK_LDFLAGS_SET="1"
   18277 			BAK_LDFLAGS="$LDFLAGS"
   18278 			# remove evdns from linking
   18279 			mkdir build >/dev/null 2>&1
   18280 			mkdir build/libevent >/dev/null 2>&1
   18281 			mkdir build/libevent/.libs >/dev/null 2>&1
   18282 			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
   18283 			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
   18284 			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
   18285 			cp $ev_files_o build/libevent
   18286 			cp $ev_files_lo build/libevent
   18287 			cp $ev_files_libso build/libevent/.libs
   18288             		LATE_LDFLAGS="build/libevent/*.lo -lm"
   18289 			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
   18290 		else
   18291             		as_fn_error $? "Cannot find the libevent library in $withval
   18292 You can restart ./configure --with-libevent=no to use a builtin alternative.
   18293 Please note that this alternative is not as capable as libevent when using
   18294 large outgoing port ranges.  " "$LINENO" 5
   18295 		fi
   18296         else
   18297             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
   18298 $as_echo "found in $thedir" >&6; }
   18299 	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
   18300 		    LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
   18301 
   18302 	if test "x$enable_rpath" = xyes; then
   18303 		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
   18304 			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
   18305 		fi
   18306 	fi
   18307 
   18308 	    else
   18309 		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
   18310 			LDFLAGS="$LDFLAGS -L$thedir/lib"
   18311 
   18312 	if test "x$enable_rpath" = xyes; then
   18313 		if echo "$thedir/lib" | grep "^/" >/dev/null; then
   18314 			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
   18315 		fi
   18316 	fi
   18317 
   18318 		    fi
   18319 	    fi
   18320         fi
   18321 	# check for library used by libevent after 1.3c
   18322 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   18323 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   18324 if ${ac_cv_search_clock_gettime+:} false; then :
   18325   $as_echo_n "(cached) " >&6
   18326 else
   18327   ac_func_search_save_LIBS=$LIBS
   18328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18329 /* end confdefs.h.  */
   18330 
   18331 /* Override any GCC internal prototype to avoid an error.
   18332    Use char because int might match the return type of a GCC
   18333    builtin and then its argument prototype would still apply.  */
   18334 #ifdef __cplusplus
   18335 extern "C"
   18336 #endif
   18337 char clock_gettime ();
   18338 int
   18339 main ()
   18340 {
   18341 return clock_gettime ();
   18342   ;
   18343   return 0;
   18344 }
   18345 _ACEOF
   18346 for ac_lib in '' rt; do
   18347   if test -z "$ac_lib"; then
   18348     ac_res="none required"
   18349   else
   18350     ac_res=-l$ac_lib
   18351     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18352   fi
   18353   if ac_fn_c_try_link "$LINENO"; then :
   18354   ac_cv_search_clock_gettime=$ac_res
   18355 fi
   18356 rm -f core conftest.err conftest.$ac_objext \
   18357     conftest$ac_exeext
   18358   if ${ac_cv_search_clock_gettime+:} false; then :
   18359   break
   18360 fi
   18361 done
   18362 if ${ac_cv_search_clock_gettime+:} false; then :
   18363 
   18364 else
   18365   ac_cv_search_clock_gettime=no
   18366 fi
   18367 rm conftest.$ac_ext
   18368 LIBS=$ac_func_search_save_LIBS
   18369 fi
   18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   18371 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   18372 ac_res=$ac_cv_search_clock_gettime
   18373 if test "$ac_res" != no; then :
   18374   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18375 
   18376 fi
   18377 
   18378 
   18379 	# is the event.h header libev or libevent?
   18380 	for ac_header in event.h
   18381 do :
   18382   ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
   18383 "
   18384 if test "x$ac_cv_header_event_h" = xyes; then :
   18385   cat >>confdefs.h <<_ACEOF
   18386 #define HAVE_EVENT_H 1
   18387 _ACEOF
   18388 
   18389 fi
   18390 
   18391 done
   18392 
   18393 	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
   18394 #include <event.h>
   18395 
   18396 "
   18397 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
   18398 
   18399 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
   18400 $as_echo_n "checking for library containing event_set... " >&6; }
   18401 if ${ac_cv_search_event_set+:} false; then :
   18402   $as_echo_n "(cached) " >&6
   18403 else
   18404   ac_func_search_save_LIBS=$LIBS
   18405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18406 /* end confdefs.h.  */
   18407 
   18408 /* Override any GCC internal prototype to avoid an error.
   18409    Use char because int might match the return type of a GCC
   18410    builtin and then its argument prototype would still apply.  */
   18411 #ifdef __cplusplus
   18412 extern "C"
   18413 #endif
   18414 char event_set ();
   18415 int
   18416 main ()
   18417 {
   18418 return event_set ();
   18419   ;
   18420   return 0;
   18421 }
   18422 _ACEOF
   18423 for ac_lib in '' ev; do
   18424   if test -z "$ac_lib"; then
   18425     ac_res="none required"
   18426   else
   18427     ac_res=-l$ac_lib
   18428     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18429   fi
   18430   if ac_fn_c_try_link "$LINENO"; then :
   18431   ac_cv_search_event_set=$ac_res
   18432 fi
   18433 rm -f core conftest.err conftest.$ac_objext \
   18434     conftest$ac_exeext
   18435   if ${ac_cv_search_event_set+:} false; then :
   18436   break
   18437 fi
   18438 done
   18439 if ${ac_cv_search_event_set+:} false; then :
   18440 
   18441 else
   18442   ac_cv_search_event_set=no
   18443 fi
   18444 rm conftest.$ac_ext
   18445 LIBS=$ac_func_search_save_LIBS
   18446 fi
   18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
   18448 $as_echo "$ac_cv_search_event_set" >&6; }
   18449 ac_res=$ac_cv_search_event_set
   18450 if test "$ac_res" != no; then :
   18451   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18452 
   18453 fi
   18454 
   18455 
   18456 else
   18457 
   18458 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
   18459 $as_echo_n "checking for library containing event_set... " >&6; }
   18460 if ${ac_cv_search_event_set+:} false; then :
   18461   $as_echo_n "(cached) " >&6
   18462 else
   18463   ac_func_search_save_LIBS=$LIBS
   18464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18465 /* end confdefs.h.  */
   18466 
   18467 /* Override any GCC internal prototype to avoid an error.
   18468    Use char because int might match the return type of a GCC
   18469    builtin and then its argument prototype would still apply.  */
   18470 #ifdef __cplusplus
   18471 extern "C"
   18472 #endif
   18473 char event_set ();
   18474 int
   18475 main ()
   18476 {
   18477 return event_set ();
   18478   ;
   18479   return 0;
   18480 }
   18481 _ACEOF
   18482 for ac_lib in '' event; do
   18483   if test -z "$ac_lib"; then
   18484     ac_res="none required"
   18485   else
   18486     ac_res=-l$ac_lib
   18487     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18488   fi
   18489   if ac_fn_c_try_link "$LINENO"; then :
   18490   ac_cv_search_event_set=$ac_res
   18491 fi
   18492 rm -f core conftest.err conftest.$ac_objext \
   18493     conftest$ac_exeext
   18494   if ${ac_cv_search_event_set+:} false; then :
   18495   break
   18496 fi
   18497 done
   18498 if ${ac_cv_search_event_set+:} false; then :
   18499 
   18500 else
   18501   ac_cv_search_event_set=no
   18502 fi
   18503 rm conftest.$ac_ext
   18504 LIBS=$ac_func_search_save_LIBS
   18505 fi
   18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
   18507 $as_echo "$ac_cv_search_event_set" >&6; }
   18508 ac_res=$ac_cv_search_event_set
   18509 if test "$ac_res" != no; then :
   18510   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18511 
   18512 fi
   18513 
   18514 
   18515 fi
   18516 
   18517 	for ac_func in event_base_free
   18518 do :
   18519   ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
   18520 if test "x$ac_cv_func_event_base_free" = xyes; then :
   18521   cat >>confdefs.h <<_ACEOF
   18522 #define HAVE_EVENT_BASE_FREE 1
   18523 _ACEOF
   18524 
   18525 fi
   18526 done
   18527  # only in libevent 1.2 and later
   18528 	for ac_func in event_base_once
   18529 do :
   18530   ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
   18531 if test "x$ac_cv_func_event_base_once" = xyes; then :
   18532   cat >>confdefs.h <<_ACEOF
   18533 #define HAVE_EVENT_BASE_ONCE 1
   18534 _ACEOF
   18535 
   18536 fi
   18537 done
   18538  # only in libevent 1.4.1 and later
   18539 	for ac_func in event_base_new
   18540 do :
   18541   ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
   18542 if test "x$ac_cv_func_event_base_new" = xyes; then :
   18543   cat >>confdefs.h <<_ACEOF
   18544 #define HAVE_EVENT_BASE_NEW 1
   18545 _ACEOF
   18546 
   18547 fi
   18548 done
   18549  # only in libevent 1.4.1 and later
   18550 	for ac_func in event_base_get_method
   18551 do :
   18552   ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
   18553 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
   18554   cat >>confdefs.h <<_ACEOF
   18555 #define HAVE_EVENT_BASE_GET_METHOD 1
   18556 _ACEOF
   18557 
   18558 fi
   18559 done
   18560  # only in libevent 1.4.3 and later
   18561 	for ac_func in ev_loop
   18562 do :
   18563   ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
   18564 if test "x$ac_cv_func_ev_loop" = xyes; then :
   18565   cat >>confdefs.h <<_ACEOF
   18566 #define HAVE_EV_LOOP 1
   18567 _ACEOF
   18568 
   18569 fi
   18570 done
   18571  # only in libev. (tested on 3.51)
   18572 	for ac_func in ev_default_loop
   18573 do :
   18574   ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
   18575 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
   18576   cat >>confdefs.h <<_ACEOF
   18577 #define HAVE_EV_DEFAULT_LOOP 1
   18578 _ACEOF
   18579 
   18580 fi
   18581 done
   18582  # only in libev. (tested on 4.00)
   18583         PC_LIBEVENT_DEPENDENCY="libevent"
   18584 
   18585 	if test -n "$BAK_LDFLAGS_SET"; then
   18586 		LDFLAGS="$BAK_LDFLAGS"
   18587 	fi
   18588 else
   18589 
   18590 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
   18591 
   18592 fi
   18593 
   18594 # check for libexpat
   18595 
   18596 # Check whether --with-libexpat was given.
   18597 if test "${with_libexpat+set}" = set; then :
   18598   withval=$with_libexpat;
   18599 else
   18600    withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
   18601 fi
   18602 
   18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
   18604 $as_echo_n "checking for libexpat... " >&6; }
   18605 found_libexpat="no"
   18606 for dir in $withval ; do
   18607             if test -f "$dir/include/expat.h"; then
   18608 		found_libexpat="yes"
   18609 				if test "$dir" != "/usr"; then
   18610                     CPPFLAGS="$CPPFLAGS -I$dir/include"
   18611 		    LDFLAGS="$LDFLAGS -L$dir/lib"
   18612 		fi
   18613             	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
   18614 $as_echo "found in $dir" >&6; }
   18615                 break;
   18616             fi
   18617 done
   18618 if test x_$found_libexpat != x_yes; then
   18619 	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
   18620 fi
   18621 for ac_header in expat.h
   18622 do :
   18623   ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
   18624 "
   18625 if test "x$ac_cv_header_expat_h" = xyes; then :
   18626   cat >>confdefs.h <<_ACEOF
   18627 #define HAVE_EXPAT_H 1
   18628 _ACEOF
   18629 
   18630 fi
   18631 
   18632 done
   18633 
   18634 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
   18635 #include <expat.h>
   18636 
   18637 "
   18638 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
   18639   ac_have_decl=1
   18640 else
   18641   ac_have_decl=0
   18642 fi
   18643 
   18644 cat >>confdefs.h <<_ACEOF
   18645 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
   18646 _ACEOF
   18647 
   18648 
   18649 # set static linking if requested
   18650 
   18651 staticexe=""
   18652 # Check whether --enable-static-exe was given.
   18653 if test "${enable_static_exe+set}" = set; then :
   18654   enableval=$enable_static_exe;
   18655 fi
   18656 
   18657 if test x_$enable_static_exe = x_yes; then
   18658 	staticexe="-static"
   18659 	if test "$on_mingw" = yes; then
   18660 		staticexe="-all-static"
   18661 		# for static compile, include gdi32 and zlib here.
   18662 		if echo $LIBS | grep 'lgdi32' >/dev/null; then
   18663 			:
   18664 		else
   18665 			LIBS="$LIBS -lgdi32"
   18666 		fi
   18667 		LIBS="$LIBS -lz"
   18668 	fi
   18669 fi
   18670 
   18671 # Include systemd.m4 - begin
   18672 #   macros for configuring systemd
   18673 #   Copyright 2015, Sami Kerola, CloudFlare.
   18674 #   BSD licensed.
   18675 # Check whether --enable-systemd was given.
   18676 if test "${enable_systemd+set}" = set; then :
   18677   enableval=$enable_systemd;
   18678 else
   18679   enable_systemd=no
   18680 fi
   18681 
   18682 have_systemd=no
   18683 
   18684 
   18685 
   18686 
   18687 
   18688 
   18689 
   18690 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   18691 	if test -n "$ac_tool_prefix"; then
   18692   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   18693 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18695 $as_echo_n "checking for $ac_word... " >&6; }
   18696 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   18697   $as_echo_n "(cached) " >&6
   18698 else
   18699   case $PKG_CONFIG in
   18700   [\\/]* | ?:[\\/]*)
   18701   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   18702   ;;
   18703   *)
   18704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18705 for as_dir in $PATH
   18706 do
   18707   IFS=$as_save_IFS
   18708   test -z "$as_dir" && as_dir=.
   18709     for ac_exec_ext in '' $ac_executable_extensions; do
   18710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18711     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   18712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18713     break 2
   18714   fi
   18715 done
   18716   done
   18717 IFS=$as_save_IFS
   18718 
   18719   ;;
   18720 esac
   18721 fi
   18722 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   18723 if test -n "$PKG_CONFIG"; then
   18724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   18725 $as_echo "$PKG_CONFIG" >&6; }
   18726 else
   18727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18728 $as_echo "no" >&6; }
   18729 fi
   18730 
   18731 
   18732 fi
   18733 if test -z "$ac_cv_path_PKG_CONFIG"; then
   18734   ac_pt_PKG_CONFIG=$PKG_CONFIG
   18735   # Extract the first word of "pkg-config", so it can be a program name with args.
   18736 set dummy pkg-config; ac_word=$2
   18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18738 $as_echo_n "checking for $ac_word... " >&6; }
   18739 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   18740   $as_echo_n "(cached) " >&6
   18741 else
   18742   case $ac_pt_PKG_CONFIG in
   18743   [\\/]* | ?:[\\/]*)
   18744   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   18745   ;;
   18746   *)
   18747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18748 for as_dir in $PATH
   18749 do
   18750   IFS=$as_save_IFS
   18751   test -z "$as_dir" && as_dir=.
   18752     for ac_exec_ext in '' $ac_executable_extensions; do
   18753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18754     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   18755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18756     break 2
   18757   fi
   18758 done
   18759   done
   18760 IFS=$as_save_IFS
   18761 
   18762   ;;
   18763 esac
   18764 fi
   18765 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   18766 if test -n "$ac_pt_PKG_CONFIG"; then
   18767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   18768 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   18769 else
   18770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18771 $as_echo "no" >&6; }
   18772 fi
   18773 
   18774   if test "x$ac_pt_PKG_CONFIG" = x; then
   18775     PKG_CONFIG=""
   18776   else
   18777     case $cross_compiling:$ac_tool_warned in
   18778 yes:)
   18779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   18780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   18781 ac_tool_warned=yes ;;
   18782 esac
   18783     PKG_CONFIG=$ac_pt_PKG_CONFIG
   18784   fi
   18785 else
   18786   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   18787 fi
   18788 
   18789 fi
   18790 if test -n "$PKG_CONFIG"; then
   18791 	_pkg_min_version=0.9.0
   18792 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   18793 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   18794 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   18795 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18796 $as_echo "yes" >&6; }
   18797 	else
   18798 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18799 $as_echo "no" >&6; }
   18800 		PKG_CONFIG=""
   18801 	fi
   18802 fi
   18803 if test "x$enable_systemd" != xno; then :
   18804 
   18805 
   18806 
   18807 pkg_failed=no
   18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
   18809 $as_echo_n "checking for SYSTEMD... " >&6; }
   18810 
   18811 if test -n "$SYSTEMD_CFLAGS"; then
   18812     pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
   18813  elif test -n "$PKG_CONFIG"; then
   18814     if test -n "$PKG_CONFIG" && \
   18815     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
   18816   ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
   18817   ac_status=$?
   18818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18819   test $ac_status = 0; }; then
   18820   pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
   18821 		      test "x$?" != "x0" && pkg_failed=yes
   18822 else
   18823   pkg_failed=yes
   18824 fi
   18825  else
   18826     pkg_failed=untried
   18827 fi
   18828 if test -n "$SYSTEMD_LIBS"; then
   18829     pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
   18830  elif test -n "$PKG_CONFIG"; then
   18831     if test -n "$PKG_CONFIG" && \
   18832     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
   18833   ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
   18834   ac_status=$?
   18835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18836   test $ac_status = 0; }; then
   18837   pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
   18838 		      test "x$?" != "x0" && pkg_failed=yes
   18839 else
   18840   pkg_failed=yes
   18841 fi
   18842  else
   18843     pkg_failed=untried
   18844 fi
   18845 
   18846 
   18847 
   18848 if test $pkg_failed = yes; then
   18849    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18850 $as_echo "no" >&6; }
   18851 
   18852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18853         _pkg_short_errors_supported=yes
   18854 else
   18855         _pkg_short_errors_supported=no
   18856 fi
   18857         if test $_pkg_short_errors_supported = yes; then
   18858 	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
   18859         else
   18860 	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
   18861         fi
   18862 	# Put the nasty error message in config.log where it belongs
   18863 	echo "$SYSTEMD_PKG_ERRORS" >&5
   18864 
   18865 	have_systemd=no
   18866 elif test $pkg_failed = untried; then
   18867      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18868 $as_echo "no" >&6; }
   18869 	have_systemd=no
   18870 else
   18871 	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
   18872 	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
   18873         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18874 $as_echo "yes" >&6; }
   18875 	have_systemd=yes
   18876 fi
   18877 		if test "x$have_systemd" != "xyes"; then :
   18878 
   18879 
   18880 pkg_failed=no
   18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
   18882 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
   18883 
   18884 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
   18885     pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
   18886  elif test -n "$PKG_CONFIG"; then
   18887     if test -n "$PKG_CONFIG" && \
   18888     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
   18889   ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
   18890   ac_status=$?
   18891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18892   test $ac_status = 0; }; then
   18893   pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
   18894 		      test "x$?" != "x0" && pkg_failed=yes
   18895 else
   18896   pkg_failed=yes
   18897 fi
   18898  else
   18899     pkg_failed=untried
   18900 fi
   18901 if test -n "$SYSTEMD_DAEMON_LIBS"; then
   18902     pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
   18903  elif test -n "$PKG_CONFIG"; then
   18904     if test -n "$PKG_CONFIG" && \
   18905     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
   18906   ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
   18907   ac_status=$?
   18908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18909   test $ac_status = 0; }; then
   18910   pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
   18911 		      test "x$?" != "x0" && pkg_failed=yes
   18912 else
   18913   pkg_failed=yes
   18914 fi
   18915  else
   18916     pkg_failed=untried
   18917 fi
   18918 
   18919 
   18920 
   18921 if test $pkg_failed = yes; then
   18922    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18923 $as_echo "no" >&6; }
   18924 
   18925 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18926         _pkg_short_errors_supported=yes
   18927 else
   18928         _pkg_short_errors_supported=no
   18929 fi
   18930         if test $_pkg_short_errors_supported = yes; then
   18931 	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
   18932         else
   18933 	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
   18934         fi
   18935 	# Put the nasty error message in config.log where it belongs
   18936 	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
   18937 
   18938 	have_systemd_daemon=no
   18939 elif test $pkg_failed = untried; then
   18940      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18941 $as_echo "no" >&6; }
   18942 	have_systemd_daemon=no
   18943 else
   18944 	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
   18945 	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
   18946         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18947 $as_echo "yes" >&6; }
   18948 	have_systemd_daemon=yes
   18949 fi
   18950 		if test "x$have_systemd_daemon" = "xyes"; then :
   18951   have_systemd=yes
   18952 fi
   18953 
   18954 fi
   18955 	case $enable_systemd:$have_systemd in #(
   18956   yes:no) :
   18957     as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
   18958   *:yes) :
   18959 
   18960 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
   18961 
   18962 		LIBS="$LIBS $SYSTEMD_LIBS"
   18963 
   18964 	 ;; #(
   18965   *) :
   18966      ;;
   18967 esac
   18968 
   18969 
   18970 fi
   18971  if test "x$have_systemd" = xyes; then
   18972   USE_SYSTEMD_TRUE=
   18973   USE_SYSTEMD_FALSE='#'
   18974 else
   18975   USE_SYSTEMD_TRUE='#'
   18976   USE_SYSTEMD_FALSE=
   18977 fi
   18978 
   18979 
   18980 # Include systemd.m4 - end
   18981 
   18982 # set lock checking if requested
   18983 # Check whether --enable-lock_checks was given.
   18984 if test "${enable_lock_checks+set}" = set; then :
   18985   enableval=$enable_lock_checks;
   18986 fi
   18987 
   18988 if test x_$enable_lock_checks = x_yes; then
   18989 
   18990 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
   18991 
   18992 	CHECKLOCK_OBJ="checklocks.lo"
   18993 
   18994 fi
   18995 
   18996 
   18997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
   18998 $as_echo_n "checking for getaddrinfo... " >&6; }
   18999 ac_cv_func_getaddrinfo=no
   19000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19001 /* end confdefs.h.  */
   19002 
   19003 #ifdef __cplusplus
   19004 extern "C"
   19005 {
   19006 #endif
   19007 char* getaddrinfo();
   19008 char* (*f) () = getaddrinfo;
   19009 #ifdef __cplusplus
   19010 }
   19011 #endif
   19012 int main() {
   19013         ;
   19014         return 0;
   19015 }
   19016 
   19017 _ACEOF
   19018 if ac_fn_c_try_link "$LINENO"; then :
   19019   ac_cv_func_getaddrinfo="yes"
   19020 if test "$ac_cv_header_windows_h" = "yes"; then
   19021 
   19022 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
   19023 
   19024 	USE_WINSOCK="1"
   19025 	if echo $LIBS | grep 'lws2_32' >/dev/null; then
   19026 		:
   19027 	else
   19028 		LIBS="$LIBS -lws2_32"
   19029 	fi
   19030 fi
   19031 
   19032 else
   19033   ORIGLIBS="$LIBS"
   19034 LIBS="$LIBS -lws2_32"
   19035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19036 /* end confdefs.h.  */
   19037 
   19038 #ifdef HAVE_WS2TCPIP_H
   19039 #include <ws2tcpip.h>
   19040 #endif
   19041 
   19042 int
   19043 main ()
   19044 {
   19045 
   19046         (void)getaddrinfo(NULL, NULL, NULL, NULL);
   19047 
   19048 
   19049   ;
   19050   return 0;
   19051 }
   19052 _ACEOF
   19053 if ac_fn_c_try_link "$LINENO"; then :
   19054 
   19055 ac_cv_func_getaddrinfo="yes"
   19056 
   19057 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
   19058 
   19059 USE_WINSOCK="1"
   19060 
   19061 else
   19062 
   19063 ac_cv_func_getaddrinfo="no"
   19064 LIBS="$ORIGLIBS"
   19065 
   19066 fi
   19067 rm -f core conftest.err conftest.$ac_objext \
   19068     conftest$ac_exeext conftest.$ac_ext
   19069 
   19070 fi
   19071 rm -f core conftest.err conftest.$ac_objext \
   19072     conftest$ac_exeext conftest.$ac_ext
   19073 
   19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
   19075 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
   19076 if test $ac_cv_func_getaddrinfo = yes; then
   19077 
   19078 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
   19079 
   19080 fi
   19081 
   19082 if test "$USE_WINSOCK" = 1; then
   19083 
   19084 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
   19085 
   19086 	for ac_header in iphlpapi.h
   19087 do :
   19088   ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
   19089 #include <windows.h>
   19090 
   19091 "
   19092 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
   19093   cat >>confdefs.h <<_ACEOF
   19094 #define HAVE_IPHLPAPI_H 1
   19095 _ACEOF
   19096 
   19097 fi
   19098 
   19099 done
   19100 
   19101 	if test -n "$ac_tool_prefix"; then
   19102   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
   19103 set dummy ${ac_tool_prefix}windres; ac_word=$2
   19104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19105 $as_echo_n "checking for $ac_word... " >&6; }
   19106 if ${ac_cv_prog_WINDRES+:} false; then :
   19107   $as_echo_n "(cached) " >&6
   19108 else
   19109   if test -n "$WINDRES"; then
   19110   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   19111 else
   19112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19113 for as_dir in $PATH
   19114 do
   19115   IFS=$as_save_IFS
   19116   test -z "$as_dir" && as_dir=.
   19117     for ac_exec_ext in '' $ac_executable_extensions; do
   19118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19119     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
   19120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19121     break 2
   19122   fi
   19123 done
   19124   done
   19125 IFS=$as_save_IFS
   19126 
   19127 fi
   19128 fi
   19129 WINDRES=$ac_cv_prog_WINDRES
   19130 if test -n "$WINDRES"; then
   19131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   19132 $as_echo "$WINDRES" >&6; }
   19133 else
   19134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19135 $as_echo "no" >&6; }
   19136 fi
   19137 
   19138 
   19139 fi
   19140 if test -z "$ac_cv_prog_WINDRES"; then
   19141   ac_ct_WINDRES=$WINDRES
   19142   # Extract the first word of "windres", so it can be a program name with args.
   19143 set dummy windres; ac_word=$2
   19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19145 $as_echo_n "checking for $ac_word... " >&6; }
   19146 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
   19147   $as_echo_n "(cached) " >&6
   19148 else
   19149   if test -n "$ac_ct_WINDRES"; then
   19150   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
   19151 else
   19152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19153 for as_dir in $PATH
   19154 do
   19155   IFS=$as_save_IFS
   19156   test -z "$as_dir" && as_dir=.
   19157     for ac_exec_ext in '' $ac_executable_extensions; do
   19158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19159     ac_cv_prog_ac_ct_WINDRES="windres"
   19160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19161     break 2
   19162   fi
   19163 done
   19164   done
   19165 IFS=$as_save_IFS
   19166 
   19167 fi
   19168 fi
   19169 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
   19170 if test -n "$ac_ct_WINDRES"; then
   19171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
   19172 $as_echo "$ac_ct_WINDRES" >&6; }
   19173 else
   19174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19175 $as_echo "no" >&6; }
   19176 fi
   19177 
   19178   if test "x$ac_ct_WINDRES" = x; then
   19179     WINDRES=""
   19180   else
   19181     case $cross_compiling:$ac_tool_warned in
   19182 yes:)
   19183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   19184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   19185 ac_tool_warned=yes ;;
   19186 esac
   19187     WINDRES=$ac_ct_WINDRES
   19188   fi
   19189 else
   19190   WINDRES="$ac_cv_prog_WINDRES"
   19191 fi
   19192 
   19193 	LIBS="$LIBS -liphlpapi"
   19194 	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
   19195 
   19196 	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
   19197 
   19198 	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
   19199 
   19200 	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
   19201 
   19202 	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
   19203 
   19204 	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
   19205 
   19206 	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
   19207 
   19208 	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
   19209 
   19210 fi
   19211 if test $ac_cv_func_getaddrinfo = no; then
   19212 	case " $LIBOBJS " in
   19213   *" fake-rfc2553.$ac_objext "* ) ;;
   19214   *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
   19215  ;;
   19216 esac
   19217 
   19218 fi
   19219 # check after getaddrinfo for its libraries
   19220 
   19221 # check ioctlsocket
   19222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
   19223 $as_echo_n "checking for ioctlsocket... " >&6; }
   19224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19225 /* end confdefs.h.  */
   19226 
   19227 #ifdef HAVE_WINSOCK2_H
   19228 #include <winsock2.h>
   19229 #endif
   19230 
   19231 int
   19232 main ()
   19233 {
   19234 
   19235 	(void)ioctlsocket(0, 0, NULL);
   19236 
   19237   ;
   19238   return 0;
   19239 }
   19240 _ACEOF
   19241 if ac_fn_c_try_link "$LINENO"; then :
   19242 
   19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19244 $as_echo "yes" >&6; }
   19245 
   19246 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
   19247 
   19248 
   19249 else
   19250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19251 $as_echo "no" >&6; }
   19252 fi
   19253 rm -f core conftest.err conftest.$ac_objext \
   19254     conftest$ac_exeext conftest.$ac_ext
   19255 
   19256 
   19257 # see if daemon(3) exists, and if it is deprecated.
   19258 for ac_func in daemon
   19259 do :
   19260   ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
   19261 if test "x$ac_cv_func_daemon" = xyes; then :
   19262   cat >>confdefs.h <<_ACEOF
   19263 #define HAVE_DAEMON 1
   19264 _ACEOF
   19265 
   19266 fi
   19267 done
   19268 
   19269 if test $ac_cv_func_daemon = yes; then
   19270 
   19271 
   19272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
   19273 $as_echo_n "checking if daemon is deprecated... " >&6; }
   19274 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
   19275 if eval \${cv_cc_deprecated_$cache+:} false; then :
   19276   $as_echo_n "(cached) " >&6
   19277 else
   19278 
   19279 echo '
   19280 #include <stdlib.h>
   19281 ' >conftest.c
   19282 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
   19283 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
   19284 eval "cv_cc_deprecated_$cache=no"
   19285 else
   19286 eval "cv_cc_deprecated_$cache=yes"
   19287 fi
   19288 rm -f conftest conftest.o conftest.c
   19289 
   19290 fi
   19291 
   19292 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
   19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19294 $as_echo "yes" >&6; }
   19295 
   19296 cat >>confdefs.h <<_ACEOF
   19297 #define DEPRECATED_DAEMON 1
   19298 _ACEOF
   19299 
   19300 :
   19301 
   19302 else
   19303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19304 $as_echo "no" >&6; }
   19305 :
   19306 
   19307 fi
   19308 
   19309 fi
   19310 
   19311 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
   19312 $ac_includes_default
   19313 #ifdef HAVE_SYS_UN_H
   19314 #include <sys/un.h>
   19315 #endif
   19316 
   19317 "
   19318 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
   19319 
   19320 cat >>confdefs.h <<_ACEOF
   19321 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
   19322 _ACEOF
   19323 
   19324 
   19325 fi
   19326 
   19327 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
   19328 $ac_includes_default
   19329 #if HAVE_SYS_PARAM_H
   19330 #include <sys/param.h>
   19331 #endif
   19332 
   19333 #ifdef HAVE_SYS_SOCKET_H
   19334 #include <sys/socket.h>
   19335 #endif
   19336 
   19337 #ifdef HAVE_SYS_UIO_H
   19338 #include <sys/uio.h>
   19339 #endif
   19340 
   19341 #ifdef HAVE_NETINET_IN_H
   19342 #include <netinet/in.h>
   19343 #endif
   19344 
   19345 #ifdef HAVE_NETINET_TCP_H
   19346 #include <netinet/tcp.h>
   19347 #endif
   19348 
   19349 #ifdef HAVE_ARPA_INET_H
   19350 #include <arpa/inet.h>
   19351 #endif
   19352 
   19353 #ifdef HAVE_WINSOCK2_H
   19354 #include <winsock2.h>
   19355 #endif
   19356 
   19357 #ifdef HAVE_WS2TCPIP_H
   19358 #include <ws2tcpip.h>
   19359 #endif
   19360 
   19361 "
   19362 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
   19363 
   19364 cat >>confdefs.h <<_ACEOF
   19365 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
   19366 _ACEOF
   19367 
   19368 
   19369 fi
   19370 
   19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
   19372 $as_echo_n "checking for library containing setusercontext... " >&6; }
   19373 if ${ac_cv_search_setusercontext+:} false; then :
   19374   $as_echo_n "(cached) " >&6
   19375 else
   19376   ac_func_search_save_LIBS=$LIBS
   19377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19378 /* end confdefs.h.  */
   19379 
   19380 /* Override any GCC internal prototype to avoid an error.
   19381    Use char because int might match the return type of a GCC
   19382    builtin and then its argument prototype would still apply.  */
   19383 #ifdef __cplusplus
   19384 extern "C"
   19385 #endif
   19386 char setusercontext ();
   19387 int
   19388 main ()
   19389 {
   19390 return setusercontext ();
   19391   ;
   19392   return 0;
   19393 }
   19394 _ACEOF
   19395 for ac_lib in '' util; do
   19396   if test -z "$ac_lib"; then
   19397     ac_res="none required"
   19398   else
   19399     ac_res=-l$ac_lib
   19400     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19401   fi
   19402   if ac_fn_c_try_link "$LINENO"; then :
   19403   ac_cv_search_setusercontext=$ac_res
   19404 fi
   19405 rm -f core conftest.err conftest.$ac_objext \
   19406     conftest$ac_exeext
   19407   if ${ac_cv_search_setusercontext+:} false; then :
   19408   break
   19409 fi
   19410 done
   19411 if ${ac_cv_search_setusercontext+:} false; then :
   19412 
   19413 else
   19414   ac_cv_search_setusercontext=no
   19415 fi
   19416 rm conftest.$ac_ext
   19417 LIBS=$ac_func_search_save_LIBS
   19418 fi
   19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
   19420 $as_echo "$ac_cv_search_setusercontext" >&6; }
   19421 ac_res=$ac_cv_search_setusercontext
   19422 if test "$ac_res" != no; then :
   19423   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19424 
   19425 fi
   19426 
   19427 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
   19428 do :
   19429   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   19430 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   19431 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   19432   cat >>confdefs.h <<_ACEOF
   19433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   19434 _ACEOF
   19435 
   19436 fi
   19437 done
   19438 
   19439 for ac_func in setresuid
   19440 do :
   19441   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
   19442 if test "x$ac_cv_func_setresuid" = xyes; then :
   19443   cat >>confdefs.h <<_ACEOF
   19444 #define HAVE_SETRESUID 1
   19445 _ACEOF
   19446 
   19447 else
   19448   for ac_func in setreuid
   19449 do :
   19450   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
   19451 if test "x$ac_cv_func_setreuid" = xyes; then :
   19452   cat >>confdefs.h <<_ACEOF
   19453 #define HAVE_SETREUID 1
   19454 _ACEOF
   19455 
   19456 fi
   19457 done
   19458 
   19459 fi
   19460 done
   19461 
   19462 for ac_func in setresgid
   19463 do :
   19464   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
   19465 if test "x$ac_cv_func_setresgid" = xyes; then :
   19466   cat >>confdefs.h <<_ACEOF
   19467 #define HAVE_SETRESGID 1
   19468 _ACEOF
   19469 
   19470 else
   19471   for ac_func in setregid
   19472 do :
   19473   ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
   19474 if test "x$ac_cv_func_setregid" = xyes; then :
   19475   cat >>confdefs.h <<_ACEOF
   19476 #define HAVE_SETREGID 1
   19477 _ACEOF
   19478 
   19479 fi
   19480 done
   19481 
   19482 fi
   19483 done
   19484 
   19485 
   19486 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
   19487 if echo $build_os | grep darwin8 > /dev/null; then
   19488 
   19489 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
   19490 
   19491 fi
   19492 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
   19493 $ac_includes_default
   19494 #ifdef HAVE_NETINET_IN_H
   19495 #include <netinet/in.h>
   19496 #endif
   19497 
   19498 #ifdef HAVE_NETINET_TCP_H
   19499 #include <netinet/tcp.h>
   19500 #endif
   19501 
   19502 #ifdef HAVE_ARPA_INET_H
   19503 #include <arpa/inet.h>
   19504 #endif
   19505 
   19506 #ifdef HAVE_WINSOCK2_H
   19507 #include <winsock2.h>
   19508 #endif
   19509 
   19510 #ifdef HAVE_WS2TCPIP_H
   19511 #include <ws2tcpip.h>
   19512 #endif
   19513 
   19514 "
   19515 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
   19516   ac_have_decl=1
   19517 else
   19518   ac_have_decl=0
   19519 fi
   19520 
   19521 cat >>confdefs.h <<_ACEOF
   19522 #define HAVE_DECL_INET_PTON $ac_have_decl
   19523 _ACEOF
   19524 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
   19525 $ac_includes_default
   19526 #ifdef HAVE_NETINET_IN_H
   19527 #include <netinet/in.h>
   19528 #endif
   19529 
   19530 #ifdef HAVE_NETINET_TCP_H
   19531 #include <netinet/tcp.h>
   19532 #endif
   19533 
   19534 #ifdef HAVE_ARPA_INET_H
   19535 #include <arpa/inet.h>
   19536 #endif
   19537 
   19538 #ifdef HAVE_WINSOCK2_H
   19539 #include <winsock2.h>
   19540 #endif
   19541 
   19542 #ifdef HAVE_WS2TCPIP_H
   19543 #include <ws2tcpip.h>
   19544 #endif
   19545 
   19546 "
   19547 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
   19548   ac_have_decl=1
   19549 else
   19550   ac_have_decl=0
   19551 fi
   19552 
   19553 cat >>confdefs.h <<_ACEOF
   19554 #define HAVE_DECL_INET_NTOP $ac_have_decl
   19555 _ACEOF
   19556 
   19557 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
   19558 if test "x$ac_cv_func_inet_aton" = xyes; then :
   19559   $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
   19560 
   19561 else
   19562   case " $LIBOBJS " in
   19563   *" inet_aton.$ac_objext "* ) ;;
   19564   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
   19565  ;;
   19566 esac
   19567 
   19568 fi
   19569 
   19570 
   19571 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
   19572 if test "x$ac_cv_func_inet_pton" = xyes; then :
   19573   $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
   19574 
   19575 else
   19576   case " $LIBOBJS " in
   19577   *" inet_pton.$ac_objext "* ) ;;
   19578   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
   19579  ;;
   19580 esac
   19581 
   19582 fi
   19583 
   19584 
   19585 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
   19586 if test "x$ac_cv_func_inet_ntop" = xyes; then :
   19587   $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
   19588 
   19589 else
   19590   case " $LIBOBJS " in
   19591   *" inet_ntop.$ac_objext "* ) ;;
   19592   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
   19593  ;;
   19594 esac
   19595 
   19596 fi
   19597 
   19598 
   19599 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
   19600 if test "x$ac_cv_func_snprintf" = xyes; then :
   19601   $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
   19602 
   19603 else
   19604   case " $LIBOBJS " in
   19605   *" snprintf.$ac_objext "* ) ;;
   19606   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
   19607  ;;
   19608 esac
   19609 
   19610 fi
   19611 
   19612 
   19613 # test if snprintf return the proper length
   19614 if test "x$ac_cv_func_snprintf" = xyes; then
   19615     if test c${cross_compiling} = cno; then
   19616 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
   19617 $as_echo_n "checking for correct snprintf return value... " >&6; }
   19618 	if test "$cross_compiling" = yes; then :
   19619   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19621 as_fn_error $? "cannot run test program while cross compiling
   19622 See \`config.log' for more details" "$LINENO" 5; }
   19623 else
   19624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19625 /* end confdefs.h.  */
   19626 $ac_includes_default
   19627 
   19628 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
   19629 
   19630 _ACEOF
   19631 if ac_fn_c_try_run "$LINENO"; then :
   19632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19633 $as_echo "yes" >&6; }
   19634 else
   19635 
   19636 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19637 $as_echo "no" >&6; }
   19638 
   19639 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
   19640 
   19641 		case " $LIBOBJS " in
   19642   *" snprintf.$ac_objext "* ) ;;
   19643   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
   19644  ;;
   19645 esac
   19646 
   19647 
   19648 fi
   19649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   19650   conftest.$ac_objext conftest.beam conftest.$ac_ext
   19651 fi
   19652 
   19653     fi
   19654 fi
   19655 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
   19656 if test "x$ac_cv_func_strlcat" = xyes; then :
   19657   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
   19658 
   19659 else
   19660   case " $LIBOBJS " in
   19661   *" strlcat.$ac_objext "* ) ;;
   19662   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
   19663  ;;
   19664 esac
   19665 
   19666 fi
   19667 
   19668 
   19669 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
   19670 if test "x$ac_cv_func_strlcpy" = xyes; then :
   19671   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
   19672 
   19673 else
   19674   case " $LIBOBJS " in
   19675   *" strlcpy.$ac_objext "* ) ;;
   19676   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
   19677  ;;
   19678 esac
   19679 
   19680 fi
   19681 
   19682 
   19683 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
   19684 if test "x$ac_cv_func_memmove" = xyes; then :
   19685   $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
   19686 
   19687 else
   19688   case " $LIBOBJS " in
   19689   *" memmove.$ac_objext "* ) ;;
   19690   *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
   19691  ;;
   19692 esac
   19693 
   19694 fi
   19695 
   19696 
   19697 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
   19698 if test "x$ac_cv_func_gmtime_r" = xyes; then :
   19699   $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
   19700 
   19701 else
   19702   case " $LIBOBJS " in
   19703   *" gmtime_r.$ac_objext "* ) ;;
   19704   *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
   19705  ;;
   19706 esac
   19707 
   19708 fi
   19709 
   19710 
   19711 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
   19712 if test "x$ac_cv_func_isblank" = xyes; then :
   19713   $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
   19714 
   19715 else
   19716   case " $LIBOBJS " in
   19717   *" isblank.$ac_objext "* ) ;;
   19718   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
   19719  ;;
   19720 esac
   19721 
   19722 fi
   19723 
   19724 
   19725 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
   19726 
   19727 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
   19728 if test "x$ac_cv_func_reallocarray" = xyes; then :
   19729   $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
   19730 
   19731 else
   19732   case " $LIBOBJS " in
   19733   *" reallocarray.$ac_objext "* ) ;;
   19734   *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
   19735  ;;
   19736 esac
   19737 
   19738 fi
   19739 
   19740 
   19741 if test "$USE_NSS" = "no"; then
   19742 	ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
   19743 if test "x$ac_cv_func_arc4random" = xyes; then :
   19744   $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
   19745 
   19746 else
   19747   case " $LIBOBJS " in
   19748   *" arc4random.$ac_objext "* ) ;;
   19749   *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
   19750  ;;
   19751 esac
   19752 
   19753 fi
   19754 
   19755 
   19756 	ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
   19757 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
   19758   $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
   19759 
   19760 else
   19761   case " $LIBOBJS " in
   19762   *" arc4random_uniform.$ac_objext "* ) ;;
   19763   *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
   19764  ;;
   19765 esac
   19766 
   19767 fi
   19768 
   19769 
   19770 	if test "$ac_cv_func_arc4random" = "no"; then
   19771 		case " $LIBOBJS " in
   19772   *" explicit_bzero.$ac_objext "* ) ;;
   19773   *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
   19774  ;;
   19775 esac
   19776 
   19777 		case " $LIBOBJS " in
   19778   *" arc4_lock.$ac_objext "* ) ;;
   19779   *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
   19780  ;;
   19781 esac
   19782 
   19783 		for ac_func in getentropy
   19784 do :
   19785   ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
   19786 if test "x$ac_cv_func_getentropy" = xyes; then :
   19787   cat >>confdefs.h <<_ACEOF
   19788 #define HAVE_GETENTROPY 1
   19789 _ACEOF
   19790 
   19791 else
   19792 
   19793 		    if test "$USE_WINSOCK" = 1; then
   19794 			case " $LIBOBJS " in
   19795   *" getentropy_win.$ac_objext "* ) ;;
   19796   *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
   19797  ;;
   19798 esac
   19799 
   19800 		    else
   19801 			case "$host" in
   19802 			Darwin|*darwin*)
   19803 				case " $LIBOBJS " in
   19804   *" getentropy_osx.$ac_objext "* ) ;;
   19805   *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
   19806  ;;
   19807 esac
   19808 
   19809 			;;
   19810 			*solaris*|*sunos*|SunOS)
   19811 				case " $LIBOBJS " in
   19812   *" getentropy_solaris.$ac_objext "* ) ;;
   19813   *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
   19814  ;;
   19815 esac
   19816 
   19817 				for ac_header in sys/sha2.h
   19818 do :
   19819   ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
   19820 "
   19821 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
   19822   cat >>confdefs.h <<_ACEOF
   19823 #define HAVE_SYS_SHA2_H 1
   19824 _ACEOF
   19825 
   19826 else
   19827 
   19828 					for ac_func in SHA512_Update
   19829 do :
   19830   ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
   19831 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
   19832   cat >>confdefs.h <<_ACEOF
   19833 #define HAVE_SHA512_UPDATE 1
   19834 _ACEOF
   19835 
   19836 else
   19837 
   19838 						case " $LIBOBJS " in
   19839   *" sha512.$ac_objext "* ) ;;
   19840   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
   19841  ;;
   19842 esac
   19843 
   19844 
   19845 fi
   19846 done
   19847 
   19848 
   19849 fi
   19850 
   19851 done
   19852 
   19853 				if test "$ac_cv_header_sys_sha2_h" = "yes"; then
   19854 					# this lib needed for sha2 on solaris
   19855 					LIBS="$LIBS -lmd"
   19856 				fi
   19857 				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   19858 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   19859 if ${ac_cv_search_clock_gettime+:} false; then :
   19860   $as_echo_n "(cached) " >&6
   19861 else
   19862   ac_func_search_save_LIBS=$LIBS
   19863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19864 /* end confdefs.h.  */
   19865 
   19866 /* Override any GCC internal prototype to avoid an error.
   19867    Use char because int might match the return type of a GCC
   19868    builtin and then its argument prototype would still apply.  */
   19869 #ifdef __cplusplus
   19870 extern "C"
   19871 #endif
   19872 char clock_gettime ();
   19873 int
   19874 main ()
   19875 {
   19876 return clock_gettime ();
   19877   ;
   19878   return 0;
   19879 }
   19880 _ACEOF
   19881 for ac_lib in '' rt; do
   19882   if test -z "$ac_lib"; then
   19883     ac_res="none required"
   19884   else
   19885     ac_res=-l$ac_lib
   19886     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19887   fi
   19888   if ac_fn_c_try_link "$LINENO"; then :
   19889   ac_cv_search_clock_gettime=$ac_res
   19890 fi
   19891 rm -f core conftest.err conftest.$ac_objext \
   19892     conftest$ac_exeext
   19893   if ${ac_cv_search_clock_gettime+:} false; then :
   19894   break
   19895 fi
   19896 done
   19897 if ${ac_cv_search_clock_gettime+:} false; then :
   19898 
   19899 else
   19900   ac_cv_search_clock_gettime=no
   19901 fi
   19902 rm conftest.$ac_ext
   19903 LIBS=$ac_func_search_save_LIBS
   19904 fi
   19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   19906 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   19907 ac_res=$ac_cv_search_clock_gettime
   19908 if test "$ac_res" != no; then :
   19909   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19910 
   19911 fi
   19912 
   19913 			;;
   19914 			*linux*|Linux|*)
   19915 				case " $LIBOBJS " in
   19916   *" getentropy_linux.$ac_objext "* ) ;;
   19917   *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
   19918  ;;
   19919 esac
   19920 
   19921 				for ac_func in SHA512_Update
   19922 do :
   19923   ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
   19924 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
   19925   cat >>confdefs.h <<_ACEOF
   19926 #define HAVE_SHA512_UPDATE 1
   19927 _ACEOF
   19928 
   19929 else
   19930 
   19931 
   19932 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
   19933 
   19934 					case " $LIBOBJS " in
   19935   *" sha512.$ac_objext "* ) ;;
   19936   *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
   19937  ;;
   19938 esac
   19939 
   19940 
   19941 fi
   19942 done
   19943 
   19944 				for ac_header in sys/sysctl.h
   19945 do :
   19946   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
   19947 "
   19948 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
   19949   cat >>confdefs.h <<_ACEOF
   19950 #define HAVE_SYS_SYSCTL_H 1
   19951 _ACEOF
   19952 
   19953 fi
   19954 
   19955 done
   19956 
   19957 				for ac_func in getauxval
   19958 do :
   19959   ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
   19960 if test "x$ac_cv_func_getauxval" = xyes; then :
   19961   cat >>confdefs.h <<_ACEOF
   19962 #define HAVE_GETAUXVAL 1
   19963 _ACEOF
   19964 
   19965 fi
   19966 done
   19967 
   19968 				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   19969 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   19970 if ${ac_cv_search_clock_gettime+:} false; then :
   19971   $as_echo_n "(cached) " >&6
   19972 else
   19973   ac_func_search_save_LIBS=$LIBS
   19974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19975 /* end confdefs.h.  */
   19976 
   19977 /* Override any GCC internal prototype to avoid an error.
   19978    Use char because int might match the return type of a GCC
   19979    builtin and then its argument prototype would still apply.  */
   19980 #ifdef __cplusplus
   19981 extern "C"
   19982 #endif
   19983 char clock_gettime ();
   19984 int
   19985 main ()
   19986 {
   19987 return clock_gettime ();
   19988   ;
   19989   return 0;
   19990 }
   19991 _ACEOF
   19992 for ac_lib in '' rt; do
   19993   if test -z "$ac_lib"; then
   19994     ac_res="none required"
   19995   else
   19996     ac_res=-l$ac_lib
   19997     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19998   fi
   19999   if ac_fn_c_try_link "$LINENO"; then :
   20000   ac_cv_search_clock_gettime=$ac_res
   20001 fi
   20002 rm -f core conftest.err conftest.$ac_objext \
   20003     conftest$ac_exeext
   20004   if ${ac_cv_search_clock_gettime+:} false; then :
   20005   break
   20006 fi
   20007 done
   20008 if ${ac_cv_search_clock_gettime+:} false; then :
   20009 
   20010 else
   20011   ac_cv_search_clock_gettime=no
   20012 fi
   20013 rm conftest.$ac_ext
   20014 LIBS=$ac_func_search_save_LIBS
   20015 fi
   20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   20017 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   20018 ac_res=$ac_cv_search_clock_gettime
   20019 if test "$ac_res" != no; then :
   20020   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20021 
   20022 fi
   20023 
   20024 			;;
   20025 			esac
   20026 		    fi
   20027 
   20028 fi
   20029 done
   20030 
   20031 	fi
   20032 fi
   20033 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
   20034 
   20035 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
   20036 if test "x$ac_cv_func_ctime_r" = xyes; then :
   20037   $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
   20038 
   20039 else
   20040   case " $LIBOBJS " in
   20041   *" ctime_r.$ac_objext "* ) ;;
   20042   *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
   20043  ;;
   20044 esac
   20045 
   20046 fi
   20047 
   20048 
   20049 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
   20050 if test "x$ac_cv_func_strsep" = xyes; then :
   20051   $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
   20052 
   20053 else
   20054   case " $LIBOBJS " in
   20055   *" strsep.$ac_objext "* ) ;;
   20056   *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
   20057  ;;
   20058 esac
   20059 
   20060 fi
   20061 
   20062 
   20063 
   20064 # Check whether --enable-allsymbols was given.
   20065 if test "${enable_allsymbols+set}" = set; then :
   20066   enableval=$enable_allsymbols;
   20067 fi
   20068 
   20069 case "$enable_allsymbols" in
   20070 	yes)
   20071 	COMMON_OBJ_ALL_SYMBOLS=""
   20072 	UBSYMS=""
   20073 	EXTRALINK="-L. -L.libs -lunbound"
   20074 
   20075 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
   20076 
   20077 	;;
   20078 	no|*)
   20079 	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
   20080 	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
   20081 	EXTRALINK=""
   20082 	;;
   20083 esac
   20084 
   20085 
   20086 
   20087 if test x_$enable_lock_checks = x_yes; then
   20088 	UBSYMS="-export-symbols clubsyms.def"
   20089 	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
   20090 	echo lock_protect >> clubsyms.def
   20091 	echo lock_unprotect >> clubsyms.def
   20092 	echo lock_get_mem >> clubsyms.def
   20093 	echo checklock_start >> clubsyms.def
   20094 	echo checklock_stop >> clubsyms.def
   20095 	echo checklock_lock >> clubsyms.def
   20096 	echo checklock_unlock >> clubsyms.def
   20097 	echo checklock_init >> clubsyms.def
   20098 	echo checklock_thrcreate >> clubsyms.def
   20099 	echo checklock_thrjoin >> clubsyms.def
   20100 fi
   20101 
   20102 # check for dnstap if requested
   20103 
   20104   # Check whether --enable-dnstap was given.
   20105 if test "${enable_dnstap+set}" = set; then :
   20106   enableval=$enable_dnstap; opt_dnstap=$enableval
   20107 else
   20108   opt_dnstap=no
   20109 fi
   20110 
   20111 
   20112 
   20113 # Check whether --with-dnstap-socket-path was given.
   20114 if test "${with_dnstap_socket_path+set}" = set; then :
   20115   withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
   20116 else
   20117   opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
   20118 fi
   20119 
   20120 
   20121   if test "x$opt_dnstap" != "xno"; then
   20122     # Extract the first word of "protoc-c", so it can be a program name with args.
   20123 set dummy protoc-c; ac_word=$2
   20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20125 $as_echo_n "checking for $ac_word... " >&6; }
   20126 if ${ac_cv_path_PROTOC_C+:} false; then :
   20127   $as_echo_n "(cached) " >&6
   20128 else
   20129   case $PROTOC_C in
   20130   [\\/]* | ?:[\\/]*)
   20131   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   20132   ;;
   20133   *)
   20134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20135 for as_dir in $PATH
   20136 do
   20137   IFS=$as_save_IFS
   20138   test -z "$as_dir" && as_dir=.
   20139     for ac_exec_ext in '' $ac_executable_extensions; do
   20140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20141     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   20142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20143     break 2
   20144   fi
   20145 done
   20146   done
   20147 IFS=$as_save_IFS
   20148 
   20149   ;;
   20150 esac
   20151 fi
   20152 PROTOC_C=$ac_cv_path_PROTOC_C
   20153 if test -n "$PROTOC_C"; then
   20154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   20155 $as_echo "$PROTOC_C" >&6; }
   20156 else
   20157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20158 $as_echo "no" >&6; }
   20159 fi
   20160 
   20161 
   20162     if test -z "$PROTOC_C"; then
   20163       as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
   20164     fi
   20165 
   20166 # Check whether --with-protobuf-c was given.
   20167 if test "${with_protobuf_c+set}" = set; then :
   20168   withval=$with_protobuf_c;
   20169 	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
   20170 	  if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
   20171 	    CFLAGS="$CFLAGS -I$withval/include/google"
   20172 	  else
   20173 	    CFLAGS="$CFLAGS -I$withval/include"
   20174 	  fi
   20175 	  LDFLAGS="$LDFLAGS -L$withval/lib"
   20176 
   20177 else
   20178 
   20179 	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
   20180 	  if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
   20181 	    CFLAGS="$CFLAGS -I/usr/include/google"
   20182 	  else
   20183 	    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
   20184 	      CFLAGS="$CFLAGS -I/usr/local/include/google"
   20185 	      LDFLAGS="$LDFLAGS -L/usr/local/lib"
   20186 	    fi
   20187 	  fi
   20188 
   20189 fi
   20190 
   20191 
   20192 # Check whether --with-libfstrm was given.
   20193 if test "${with_libfstrm+set}" = set; then :
   20194   withval=$with_libfstrm;
   20195 	CFLAGS="$CFLAGS -I$withval/include"
   20196 	LDFLAGS="$LDFLAGS -L$withval/lib"
   20197 
   20198 fi
   20199 
   20200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
   20201 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
   20202 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   20203   $as_echo_n "(cached) " >&6
   20204 else
   20205   ac_func_search_save_LIBS=$LIBS
   20206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20207 /* end confdefs.h.  */
   20208 
   20209 /* Override any GCC internal prototype to avoid an error.
   20210    Use char because int might match the return type of a GCC
   20211    builtin and then its argument prototype would still apply.  */
   20212 #ifdef __cplusplus
   20213 extern "C"
   20214 #endif
   20215 char fstrm_iothr_init ();
   20216 int
   20217 main ()
   20218 {
   20219 return fstrm_iothr_init ();
   20220   ;
   20221   return 0;
   20222 }
   20223 _ACEOF
   20224 for ac_lib in '' fstrm; do
   20225   if test -z "$ac_lib"; then
   20226     ac_res="none required"
   20227   else
   20228     ac_res=-l$ac_lib
   20229     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20230   fi
   20231   if ac_fn_c_try_link "$LINENO"; then :
   20232   ac_cv_search_fstrm_iothr_init=$ac_res
   20233 fi
   20234 rm -f core conftest.err conftest.$ac_objext \
   20235     conftest$ac_exeext
   20236   if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   20237   break
   20238 fi
   20239 done
   20240 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   20241 
   20242 else
   20243   ac_cv_search_fstrm_iothr_init=no
   20244 fi
   20245 rm conftest.$ac_ext
   20246 LIBS=$ac_func_search_save_LIBS
   20247 fi
   20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
   20249 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
   20250 ac_res=$ac_cv_search_fstrm_iothr_init
   20251 if test "$ac_res" != no; then :
   20252   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20253 
   20254 else
   20255   as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
   20256 fi
   20257 
   20258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
   20259 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
   20260 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   20261   $as_echo_n "(cached) " >&6
   20262 else
   20263   ac_func_search_save_LIBS=$LIBS
   20264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20265 /* end confdefs.h.  */
   20266 
   20267 /* Override any GCC internal prototype to avoid an error.
   20268    Use char because int might match the return type of a GCC
   20269    builtin and then its argument prototype would still apply.  */
   20270 #ifdef __cplusplus
   20271 extern "C"
   20272 #endif
   20273 char protobuf_c_message_pack ();
   20274 int
   20275 main ()
   20276 {
   20277 return protobuf_c_message_pack ();
   20278   ;
   20279   return 0;
   20280 }
   20281 _ACEOF
   20282 for ac_lib in '' protobuf-c; do
   20283   if test -z "$ac_lib"; then
   20284     ac_res="none required"
   20285   else
   20286     ac_res=-l$ac_lib
   20287     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20288   fi
   20289   if ac_fn_c_try_link "$LINENO"; then :
   20290   ac_cv_search_protobuf_c_message_pack=$ac_res
   20291 fi
   20292 rm -f core conftest.err conftest.$ac_objext \
   20293     conftest$ac_exeext
   20294   if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   20295   break
   20296 fi
   20297 done
   20298 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   20299 
   20300 else
   20301   ac_cv_search_protobuf_c_message_pack=no
   20302 fi
   20303 rm conftest.$ac_ext
   20304 LIBS=$ac_func_search_save_LIBS
   20305 fi
   20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
   20307 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
   20308 ac_res=$ac_cv_search_protobuf_c_message_pack
   20309 if test "$ac_res" != no; then :
   20310   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20311 
   20312 else
   20313   as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
   20314 fi
   20315 
   20316 
   20317 
   20318 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
   20319 
   20320         ENABLE_DNSTAP=1
   20321 
   20322 
   20323 
   20324         hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
   20325 
   20326 
   20327 cat >>confdefs.h <<_ACEOF
   20328 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
   20329 _ACEOF
   20330 
   20331 
   20332         DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
   20333 
   20334         DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
   20335 
   20336 
   20337   else
   20338 
   20339         ENABLE_DNSTAP=0
   20340 
   20341 
   20342 
   20343   fi
   20344 
   20345 
   20346 # check for dnscrypt if requested
   20347 
   20348   # Check whether --enable-dnscrypt was given.
   20349 if test "${enable_dnscrypt+set}" = set; then :
   20350   enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
   20351 else
   20352   opt_dnscrypt=no
   20353 fi
   20354 
   20355 
   20356   if test "x$opt_dnscrypt" != "xno"; then
   20357 
   20358 # Check whether --with-libsodium was given.
   20359 if test "${with_libsodium+set}" = set; then :
   20360   withval=$with_libsodium;
   20361 	CFLAGS="$CFLAGS -I$withval/include"
   20362 	LDFLAGS="$LDFLAGS -L$withval/lib"
   20363 
   20364 fi
   20365 
   20366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
   20367 $as_echo_n "checking for library containing sodium_init... " >&6; }
   20368 if ${ac_cv_search_sodium_init+:} false; then :
   20369   $as_echo_n "(cached) " >&6
   20370 else
   20371   ac_func_search_save_LIBS=$LIBS
   20372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20373 /* end confdefs.h.  */
   20374 
   20375 /* Override any GCC internal prototype to avoid an error.
   20376    Use char because int might match the return type of a GCC
   20377    builtin and then its argument prototype would still apply.  */
   20378 #ifdef __cplusplus
   20379 extern "C"
   20380 #endif
   20381 char sodium_init ();
   20382 int
   20383 main ()
   20384 {
   20385 return sodium_init ();
   20386   ;
   20387   return 0;
   20388 }
   20389 _ACEOF
   20390 for ac_lib in '' sodium; do
   20391   if test -z "$ac_lib"; then
   20392     ac_res="none required"
   20393   else
   20394     ac_res=-l$ac_lib
   20395     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20396   fi
   20397   if ac_fn_c_try_link "$LINENO"; then :
   20398   ac_cv_search_sodium_init=$ac_res
   20399 fi
   20400 rm -f core conftest.err conftest.$ac_objext \
   20401     conftest$ac_exeext
   20402   if ${ac_cv_search_sodium_init+:} false; then :
   20403   break
   20404 fi
   20405 done
   20406 if ${ac_cv_search_sodium_init+:} false; then :
   20407 
   20408 else
   20409   ac_cv_search_sodium_init=no
   20410 fi
   20411 rm conftest.$ac_ext
   20412 LIBS=$ac_func_search_save_LIBS
   20413 fi
   20414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
   20415 $as_echo "$ac_cv_search_sodium_init" >&6; }
   20416 ac_res=$ac_cv_search_sodium_init
   20417 if test "$ac_res" != no; then :
   20418   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20419 
   20420 else
   20421   as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
   20422 fi
   20423 
   20424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
   20425 $as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
   20426 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
   20427   $as_echo_n "(cached) " >&6
   20428 else
   20429   ac_func_search_save_LIBS=$LIBS
   20430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20431 /* end confdefs.h.  */
   20432 
   20433 /* Override any GCC internal prototype to avoid an error.
   20434    Use char because int might match the return type of a GCC
   20435    builtin and then its argument prototype would still apply.  */
   20436 #ifdef __cplusplus
   20437 extern "C"
   20438 #endif
   20439 char crypto_box_curve25519xchacha20poly1305_beforenm ();
   20440 int
   20441 main ()
   20442 {
   20443 return crypto_box_curve25519xchacha20poly1305_beforenm ();
   20444   ;
   20445   return 0;
   20446 }
   20447 _ACEOF
   20448 for ac_lib in '' sodium; do
   20449   if test -z "$ac_lib"; then
   20450     ac_res="none required"
   20451   else
   20452     ac_res=-l$ac_lib
   20453     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20454   fi
   20455   if ac_fn_c_try_link "$LINENO"; then :
   20456   ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
   20457 fi
   20458 rm -f core conftest.err conftest.$ac_objext \
   20459     conftest$ac_exeext
   20460   if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
   20461   break
   20462 fi
   20463 done
   20464 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
   20465 
   20466 else
   20467   ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
   20468 fi
   20469 rm conftest.$ac_ext
   20470 LIBS=$ac_func_search_save_LIBS
   20471 fi
   20472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
   20473 $as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
   20474 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
   20475 if test "$ac_res" != no; then :
   20476   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20477 
   20478             ENABLE_DNSCRYPT_XCHACHA20=1
   20479 
   20480 
   20481 $as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
   20482 
   20483 
   20484 else
   20485 
   20486             ENABLE_DNSCRYPT_XCHACHA20=0
   20487 
   20488 
   20489 fi
   20490 
   20491 
   20492 
   20493 $as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
   20494 
   20495         ENABLE_DNSCRYPT=1
   20496 
   20497 
   20498         DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
   20499 
   20500         DNSCRYPT_OBJ="dnscrypt.lo"
   20501 
   20502 
   20503   else
   20504     ENABLE_DNSCRYPT_XCHACHA20=0
   20505 
   20506 
   20507         ENABLE_DNSCRYPT=0
   20508 
   20509 
   20510 
   20511   fi
   20512 
   20513 
   20514 # check for cachedb if requested
   20515 # Check whether --enable-cachedb was given.
   20516 if test "${enable_cachedb+set}" = set; then :
   20517   enableval=$enable_cachedb;
   20518 fi
   20519 
   20520 case "$enable_cachedb" in
   20521     yes)
   20522 
   20523 $as_echo "#define USE_CACHEDB 1" >>confdefs.h
   20524 
   20525     	;;
   20526     no|*)
   20527     	# nothing
   20528     	;;
   20529 esac
   20530 
   20531 # check for ipsecmod if requested
   20532 # Check whether --enable-ipsecmod was given.
   20533 if test "${enable_ipsecmod+set}" = set; then :
   20534   enableval=$enable_ipsecmod;
   20535 fi
   20536 
   20537 case "$enable_ipsecmod" in
   20538 	yes)
   20539 
   20540 $as_echo "#define USE_IPSECMOD 1" >>confdefs.h
   20541 
   20542 		IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
   20543 
   20544 		IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
   20545 
   20546 		;;
   20547 	no|*)
   20548 		# nothing
   20549 		;;
   20550 esac
   20551 
   20552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
   20553 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
   20554 # on openBSD, the implicit rule make $< work.
   20555 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
   20556 # gmake works.
   20557 cat >conftest.make <<EOF
   20558 all:	conftest.lo
   20559 
   20560 conftest.lo foo.lo bla.lo:
   20561 	if test -f "\$<"; then touch \$@; fi
   20562 
   20563 .SUFFIXES: .lo
   20564 .c.lo:
   20565 	if test -f "\$<"; then touch \$@; fi
   20566 
   20567 conftest.lo:        conftest.dir/conftest.c
   20568 EOF
   20569 mkdir conftest.dir
   20570 touch conftest.dir/conftest.c
   20571 rm -f conftest.lo conftest.c
   20572 ${MAKE:-make} -f conftest.make >/dev/null
   20573 rm -f conftest.make conftest.c conftest.dir/conftest.c
   20574 rm -rf conftest.dir
   20575 if test ! -f conftest.lo; then
   20576 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20577 $as_echo "no" >&6; }
   20578 	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
   20579 	SOURCEFILE='`cat .source`'
   20580 else
   20581 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20582 $as_echo "yes" >&6; }
   20583 	SOURCEDETERMINE=':'
   20584 	SOURCEFILE='$<'
   20585 fi
   20586 rm -f conftest.lo
   20587 
   20588 
   20589 
   20590 # see if we want to build the library or everything
   20591 ALLTARGET="alltargets"
   20592 INSTALLTARGET="install-all"
   20593 
   20594 # Check whether --with-libunbound-only was given.
   20595 if test "${with_libunbound_only+set}" = set; then :
   20596   withval=$with_libunbound_only;
   20597 	if test "$withval" = "yes"; then
   20598 		ALLTARGET="lib"
   20599 		INSTALLTARGET="install-lib"
   20600 	fi
   20601 
   20602 fi
   20603 
   20604 
   20605 
   20606 
   20607 
   20608   { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
   20609 $as_echo "$as_me: Stripping extension flags..." >&6;}
   20610 
   20611   if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
   20612     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
   20613 
   20614 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
   20615 
   20616   fi
   20617 
   20618 
   20619   if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
   20620     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
   20621 
   20622 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
   20623 
   20624   fi
   20625 
   20626 
   20627   if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
   20628     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
   20629 
   20630 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
   20631 
   20632   fi
   20633 
   20634 
   20635   if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
   20636     CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
   20637 
   20638 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
   20639 
   20640   fi
   20641 
   20642 
   20643   if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
   20644     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
   20645 
   20646 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
   20647 
   20648   fi
   20649 
   20650 
   20651   if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
   20652     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
   20653 
   20654 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
   20655 
   20656   fi
   20657 
   20658 
   20659   if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
   20660     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
   20661 
   20662 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
   20663 
   20664   fi
   20665 
   20666 
   20667   if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
   20668     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
   20669 
   20670 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
   20671 
   20672   fi
   20673 
   20674 
   20675   if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
   20676     CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
   20677 
   20678 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
   20679 
   20680   fi
   20681 
   20682 
   20683 if test -n "$LATE_LDFLAGS"; then
   20684   LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
   20685 fi
   20686 # remove start spaces
   20687 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
   20688 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
   20689 
   20690 
   20691 cat >>confdefs.h <<_ACEOF
   20692 #define MAXSYSLOGMSGLEN 10240
   20693 _ACEOF
   20694 
   20695 
   20696 
   20697 
   20698 version=1.6.8
   20699 
   20700 date=`date +'%b %e, %Y'`
   20701 
   20702 
   20703 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"
   20704 
   20705 ac_config_headers="$ac_config_headers config.h"
   20706 
   20707 cat >confcache <<\_ACEOF
   20708 # This file is a shell script that caches the results of configure
   20709 # tests run on this system so they can be shared between configure
   20710 # scripts and configure runs, see configure's option --config-cache.
   20711 # It is not useful on other systems.  If it contains results you don't
   20712 # want to keep, you may remove or edit it.
   20713 #
   20714 # config.status only pays attention to the cache file if you give it
   20715 # the --recheck option to rerun configure.
   20716 #
   20717 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   20718 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   20719 # following values.
   20720 
   20721 _ACEOF
   20722 
   20723 # The following way of writing the cache mishandles newlines in values,
   20724 # but we know of no workaround that is simple, portable, and efficient.
   20725 # So, we kill variables containing newlines.
   20726 # Ultrix sh set writes to stderr and can't be redirected directly,
   20727 # and sets the high bit in the cache file unless we assign to the vars.
   20728 (
   20729   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   20730     eval ac_val=\$$ac_var
   20731     case $ac_val in #(
   20732     *${as_nl}*)
   20733       case $ac_var in #(
   20734       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   20735 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   20736       esac
   20737       case $ac_var in #(
   20738       _ | IFS | as_nl) ;; #(
   20739       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   20740       *) { eval $ac_var=; unset $ac_var;} ;;
   20741       esac ;;
   20742     esac
   20743   done
   20744 
   20745   (set) 2>&1 |
   20746     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   20747     *${as_nl}ac_space=\ *)
   20748       # `set' does not quote correctly, so add quotes: double-quote
   20749       # substitution turns \\\\ into \\, and sed turns \\ into \.
   20750       sed -n \
   20751 	"s/'/'\\\\''/g;
   20752 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   20753       ;; #(
   20754     *)
   20755       # `set' quotes correctly as required by POSIX, so do not add quotes.
   20756       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   20757       ;;
   20758     esac |
   20759     sort
   20760 ) |
   20761   sed '
   20762      /^ac_cv_env_/b end
   20763      t clear
   20764      :clear
   20765      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   20766      t end
   20767      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   20768      :end' >>confcache
   20769 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   20770   if test -w "$cache_file"; then
   20771     if test "x$cache_file" != "x/dev/null"; then
   20772       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   20773 $as_echo "$as_me: updating cache $cache_file" >&6;}
   20774       if test ! -f "$cache_file" || test -h "$cache_file"; then
   20775 	cat confcache >"$cache_file"
   20776       else
   20777         case $cache_file in #(
   20778         */* | ?:*)
   20779 	  mv -f confcache "$cache_file"$$ &&
   20780 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   20781         *)
   20782 	  mv -f confcache "$cache_file" ;;
   20783 	esac
   20784       fi
   20785     fi
   20786   else
   20787     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   20788 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   20789   fi
   20790 fi
   20791 rm -f confcache
   20792 
   20793 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   20794 # Let make expand exec_prefix.
   20795 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   20796 
   20797 DEFS=-DHAVE_CONFIG_H
   20798 
   20799 ac_libobjs=
   20800 ac_ltlibobjs=
   20801 U=
   20802 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   20803   # 1. Remove the extension, and $U if already installed.
   20804   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   20805   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   20806   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   20807   #    will be set to the directory where LIBOBJS objects are built.
   20808   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   20809   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   20810 done
   20811 LIBOBJS=$ac_libobjs
   20812 
   20813 LTLIBOBJS=$ac_ltlibobjs
   20814 
   20815 
   20816 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
   20817   as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
   20818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   20819 fi
   20820 
   20821 : "${CONFIG_STATUS=./config.status}"
   20822 ac_write_fail=0
   20823 ac_clean_files_save=$ac_clean_files
   20824 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   20825 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   20826 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   20827 as_write_fail=0
   20828 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   20829 #! $SHELL
   20830 # Generated by $as_me.
   20831 # Run this file to recreate the current configuration.
   20832 # Compiler output produced by configure, useful for debugging
   20833 # configure, is in config.log if it exists.
   20834 
   20835 debug=false
   20836 ac_cs_recheck=false
   20837 ac_cs_silent=false
   20838 
   20839 SHELL=\${CONFIG_SHELL-$SHELL}
   20840 export SHELL
   20841 _ASEOF
   20842 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   20843 ## -------------------- ##
   20844 ## M4sh Initialization. ##
   20845 ## -------------------- ##
   20846 
   20847 # Be more Bourne compatible
   20848 DUALCASE=1; export DUALCASE # for MKS sh
   20849 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   20850   emulate sh
   20851   NULLCMD=:
   20852   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   20853   # is contrary to our usage.  Disable this feature.
   20854   alias -g '${1+"$@"}'='"$@"'
   20855   setopt NO_GLOB_SUBST
   20856 else
   20857   case `(set -o) 2>/dev/null` in #(
   20858   *posix*) :
   20859     set -o posix ;; #(
   20860   *) :
   20861      ;;
   20862 esac
   20863 fi
   20864 
   20865 
   20866 as_nl='
   20867 '
   20868 export as_nl
   20869 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   20870 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   20871 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   20872 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   20873 # Prefer a ksh shell builtin over an external printf program on Solaris,
   20874 # but without wasting forks for bash or zsh.
   20875 if test -z "$BASH_VERSION$ZSH_VERSION" \
   20876     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   20877   as_echo='print -r --'
   20878   as_echo_n='print -rn --'
   20879 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   20880   as_echo='printf %s\n'
   20881   as_echo_n='printf %s'
   20882 else
   20883   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   20884     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   20885     as_echo_n='/usr/ucb/echo -n'
   20886   else
   20887     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   20888     as_echo_n_body='eval
   20889       arg=$1;
   20890       case $arg in #(
   20891       *"$as_nl"*)
   20892 	expr "X$arg" : "X\\(.*\\)$as_nl";
   20893 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   20894       esac;
   20895       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   20896     '
   20897     export as_echo_n_body
   20898     as_echo_n='sh -c $as_echo_n_body as_echo'
   20899   fi
   20900   export as_echo_body
   20901   as_echo='sh -c $as_echo_body as_echo'
   20902 fi
   20903 
   20904 # The user is always right.
   20905 if test "${PATH_SEPARATOR+set}" != set; then
   20906   PATH_SEPARATOR=:
   20907   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   20908     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   20909       PATH_SEPARATOR=';'
   20910   }
   20911 fi
   20912 
   20913 
   20914 # IFS
   20915 # We need space, tab and new line, in precisely that order.  Quoting is
   20916 # there to prevent editors from complaining about space-tab.
   20917 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   20918 # splitting by setting IFS to empty value.)
   20919 IFS=" ""	$as_nl"
   20920 
   20921 # Find who we are.  Look in the path if we contain no directory separator.
   20922 as_myself=
   20923 case $0 in #((
   20924   *[\\/]* ) as_myself=$0 ;;
   20925   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20926 for as_dir in $PATH
   20927 do
   20928   IFS=$as_save_IFS
   20929   test -z "$as_dir" && as_dir=.
   20930     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   20931   done
   20932 IFS=$as_save_IFS
   20933 
   20934      ;;
   20935 esac
   20936 # We did not find ourselves, most probably we were run as `sh COMMAND'
   20937 # in which case we are not to be found in the path.
   20938 if test "x$as_myself" = x; then
   20939   as_myself=$0
   20940 fi
   20941 if test ! -f "$as_myself"; then
   20942   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   20943   exit 1
   20944 fi
   20945 
   20946 # Unset variables that we do not need and which cause bugs (e.g. in
   20947 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   20948 # suppresses any "Segmentation fault" message there.  '((' could
   20949 # trigger a bug in pdksh 5.2.14.
   20950 for as_var in BASH_ENV ENV MAIL MAILPATH
   20951 do eval test x\${$as_var+set} = xset \
   20952   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   20953 done
   20954 PS1='$ '
   20955 PS2='> '
   20956 PS4='+ '
   20957 
   20958 # NLS nuisances.
   20959 LC_ALL=C
   20960 export LC_ALL
   20961 LANGUAGE=C
   20962 export LANGUAGE
   20963 
   20964 # CDPATH.
   20965 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   20966 
   20967 
   20968 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   20969 # ----------------------------------------
   20970 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   20971 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   20972 # script with STATUS, using 1 if that was 0.
   20973 as_fn_error ()
   20974 {
   20975   as_status=$1; test $as_status -eq 0 && as_status=1
   20976   if test "$4"; then
   20977     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   20978     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   20979   fi
   20980   $as_echo "$as_me: error: $2" >&2
   20981   as_fn_exit $as_status
   20982 } # as_fn_error
   20983 
   20984 
   20985 # as_fn_set_status STATUS
   20986 # -----------------------
   20987 # Set $? to STATUS, without forking.
   20988 as_fn_set_status ()
   20989 {
   20990   return $1
   20991 } # as_fn_set_status
   20992 
   20993 # as_fn_exit STATUS
   20994 # -----------------
   20995 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   20996 as_fn_exit ()
   20997 {
   20998   set +e
   20999   as_fn_set_status $1
   21000   exit $1
   21001 } # as_fn_exit
   21002 
   21003 # as_fn_unset VAR
   21004 # ---------------
   21005 # Portably unset VAR.
   21006 as_fn_unset ()
   21007 {
   21008   { eval $1=; unset $1;}
   21009 }
   21010 as_unset=as_fn_unset
   21011 # as_fn_append VAR VALUE
   21012 # ----------------------
   21013 # Append the text in VALUE to the end of the definition contained in VAR. Take
   21014 # advantage of any shell optimizations that allow amortized linear growth over
   21015 # repeated appends, instead of the typical quadratic growth present in naive
   21016 # implementations.
   21017 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   21018   eval 'as_fn_append ()
   21019   {
   21020     eval $1+=\$2
   21021   }'
   21022 else
   21023   as_fn_append ()
   21024   {
   21025     eval $1=\$$1\$2
   21026   }
   21027 fi # as_fn_append
   21028 
   21029 # as_fn_arith ARG...
   21030 # ------------------
   21031 # Perform arithmetic evaluation on the ARGs, and store the result in the
   21032 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   21033 # must be portable across $(()) and expr.
   21034 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   21035   eval 'as_fn_arith ()
   21036   {
   21037     as_val=$(( $* ))
   21038   }'
   21039 else
   21040   as_fn_arith ()
   21041   {
   21042     as_val=`expr "$@" || test $? -eq 1`
   21043   }
   21044 fi # as_fn_arith
   21045 
   21046 
   21047 if expr a : '\(a\)' >/dev/null 2>&1 &&
   21048    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   21049   as_expr=expr
   21050 else
   21051   as_expr=false
   21052 fi
   21053 
   21054 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   21055   as_basename=basename
   21056 else
   21057   as_basename=false
   21058 fi
   21059 
   21060 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   21061   as_dirname=dirname
   21062 else
   21063   as_dirname=false
   21064 fi
   21065 
   21066 as_me=`$as_basename -- "$0" ||
   21067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   21068 	 X"$0" : 'X\(//\)$' \| \
   21069 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   21070 $as_echo X/"$0" |
   21071     sed '/^.*\/\([^/][^/]*\)\/*$/{
   21072 	    s//\1/
   21073 	    q
   21074 	  }
   21075 	  /^X\/\(\/\/\)$/{
   21076 	    s//\1/
   21077 	    q
   21078 	  }
   21079 	  /^X\/\(\/\).*/{
   21080 	    s//\1/
   21081 	    q
   21082 	  }
   21083 	  s/.*/./; q'`
   21084 
   21085 # Avoid depending upon Character Ranges.
   21086 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   21087 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   21088 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   21089 as_cr_digits='0123456789'
   21090 as_cr_alnum=$as_cr_Letters$as_cr_digits
   21091 
   21092 ECHO_C= ECHO_N= ECHO_T=
   21093 case `echo -n x` in #(((((
   21094 -n*)
   21095   case `echo 'xy\c'` in
   21096   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   21097   xy)  ECHO_C='\c';;
   21098   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   21099        ECHO_T='	';;
   21100   esac;;
   21101 *)
   21102   ECHO_N='-n';;
   21103 esac
   21104 
   21105 rm -f conf$$ conf$$.exe conf$$.file
   21106 if test -d conf$$.dir; then
   21107   rm -f conf$$.dir/conf$$.file
   21108 else
   21109   rm -f conf$$.dir
   21110   mkdir conf$$.dir 2>/dev/null
   21111 fi
   21112 if (echo >conf$$.file) 2>/dev/null; then
   21113   if ln -s conf$$.file conf$$ 2>/dev/null; then
   21114     as_ln_s='ln -s'
   21115     # ... but there are two gotchas:
   21116     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   21117     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   21118     # In both cases, we have to default to `cp -pR'.
   21119     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   21120       as_ln_s='cp -pR'
   21121   elif ln conf$$.file conf$$ 2>/dev/null; then
   21122     as_ln_s=ln
   21123   else
   21124     as_ln_s='cp -pR'
   21125   fi
   21126 else
   21127   as_ln_s='cp -pR'
   21128 fi
   21129 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   21130 rmdir conf$$.dir 2>/dev/null
   21131 
   21132 
   21133 # as_fn_mkdir_p
   21134 # -------------
   21135 # Create "$as_dir" as a directory, including parents if necessary.
   21136 as_fn_mkdir_p ()
   21137 {
   21138 
   21139   case $as_dir in #(
   21140   -*) as_dir=./$as_dir;;
   21141   esac
   21142   test -d "$as_dir" || eval $as_mkdir_p || {
   21143     as_dirs=
   21144     while :; do
   21145       case $as_dir in #(
   21146       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   21147       *) as_qdir=$as_dir;;
   21148       esac
   21149       as_dirs="'$as_qdir' $as_dirs"
   21150       as_dir=`$as_dirname -- "$as_dir" ||
   21151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21152 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   21153 	 X"$as_dir" : 'X\(//\)$' \| \
   21154 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   21155 $as_echo X"$as_dir" |
   21156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21157 	    s//\1/
   21158 	    q
   21159 	  }
   21160 	  /^X\(\/\/\)[^/].*/{
   21161 	    s//\1/
   21162 	    q
   21163 	  }
   21164 	  /^X\(\/\/\)$/{
   21165 	    s//\1/
   21166 	    q
   21167 	  }
   21168 	  /^X\(\/\).*/{
   21169 	    s//\1/
   21170 	    q
   21171 	  }
   21172 	  s/.*/./; q'`
   21173       test -d "$as_dir" && break
   21174     done
   21175     test -z "$as_dirs" || eval "mkdir $as_dirs"
   21176   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   21177 
   21178 
   21179 } # as_fn_mkdir_p
   21180 if mkdir -p . 2>/dev/null; then
   21181   as_mkdir_p='mkdir -p "$as_dir"'
   21182 else
   21183   test -d ./-p && rmdir ./-p
   21184   as_mkdir_p=false
   21185 fi
   21186 
   21187 
   21188 # as_fn_executable_p FILE
   21189 # -----------------------
   21190 # Test if FILE is an executable regular file.
   21191 as_fn_executable_p ()
   21192 {
   21193   test -f "$1" && test -x "$1"
   21194 } # as_fn_executable_p
   21195 as_test_x='test -x'
   21196 as_executable_p=as_fn_executable_p
   21197 
   21198 # Sed expression to map a string onto a valid CPP name.
   21199 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   21200 
   21201 # Sed expression to map a string onto a valid variable name.
   21202 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   21203 
   21204 
   21205 exec 6>&1
   21206 ## ----------------------------------- ##
   21207 ## Main body of $CONFIG_STATUS script. ##
   21208 ## ----------------------------------- ##
   21209 _ASEOF
   21210 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   21211 
   21212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21213 # Save the log message, to keep $0 and so on meaningful, and to
   21214 # report actual input values of CONFIG_FILES etc. instead of their
   21215 # values after options handling.
   21216 ac_log="
   21217 This file was extended by unbound $as_me 1.6.8, which was
   21218 generated by GNU Autoconf 2.69.  Invocation command line was
   21219 
   21220   CONFIG_FILES    = $CONFIG_FILES
   21221   CONFIG_HEADERS  = $CONFIG_HEADERS
   21222   CONFIG_LINKS    = $CONFIG_LINKS
   21223   CONFIG_COMMANDS = $CONFIG_COMMANDS
   21224   $ $0 $@
   21225 
   21226 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   21227 "
   21228 
   21229 _ACEOF
   21230 
   21231 case $ac_config_files in *"
   21232 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   21233 esac
   21234 
   21235 case $ac_config_headers in *"
   21236 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   21237 esac
   21238 
   21239 
   21240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21241 # Files that config.status was made for.
   21242 config_files="$ac_config_files"
   21243 config_headers="$ac_config_headers"
   21244 config_commands="$ac_config_commands"
   21245 
   21246 _ACEOF
   21247 
   21248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21249 ac_cs_usage="\
   21250 \`$as_me' instantiates files and other configuration actions
   21251 from templates according to the current configuration.  Unless the files
   21252 and actions are specified as TAGs, all are instantiated by default.
   21253 
   21254 Usage: $0 [OPTION]... [TAG]...
   21255 
   21256   -h, --help       print this help, then exit
   21257   -V, --version    print version number and configuration settings, then exit
   21258       --config     print configuration, then exit
   21259   -q, --quiet, --silent
   21260                    do not print progress messages
   21261   -d, --debug      don't remove temporary files
   21262       --recheck    update $as_me by reconfiguring in the same conditions
   21263       --file=FILE[:TEMPLATE]
   21264                    instantiate the configuration file FILE
   21265       --header=FILE[:TEMPLATE]
   21266                    instantiate the configuration header FILE
   21267 
   21268 Configuration files:
   21269 $config_files
   21270 
   21271 Configuration headers:
   21272 $config_headers
   21273 
   21274 Configuration commands:
   21275 $config_commands
   21276 
   21277 Report bugs to <unbound-bugs@nlnetlabs.nl>."
   21278 
   21279 _ACEOF
   21280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21281 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   21282 ac_cs_version="\\
   21283 unbound config.status 1.6.8
   21284 configured by $0, generated by GNU Autoconf 2.69,
   21285   with options \\"\$ac_cs_config\\"
   21286 
   21287 Copyright (C) 2012 Free Software Foundation, Inc.
   21288 This config.status script is free software; the Free Software Foundation
   21289 gives unlimited permission to copy, distribute and modify it."
   21290 
   21291 ac_pwd='$ac_pwd'
   21292 srcdir='$srcdir'
   21293 AWK='$AWK'
   21294 test -n "\$AWK" || AWK=awk
   21295 _ACEOF
   21296 
   21297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21298 # The default lists apply if the user does not specify any file.
   21299 ac_need_defaults=:
   21300 while test $# != 0
   21301 do
   21302   case $1 in
   21303   --*=?*)
   21304     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   21305     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   21306     ac_shift=:
   21307     ;;
   21308   --*=)
   21309     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   21310     ac_optarg=
   21311     ac_shift=:
   21312     ;;
   21313   *)
   21314     ac_option=$1
   21315     ac_optarg=$2
   21316     ac_shift=shift
   21317     ;;
   21318   esac
   21319 
   21320   case $ac_option in
   21321   # Handling of the options.
   21322   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   21323     ac_cs_recheck=: ;;
   21324   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   21325     $as_echo "$ac_cs_version"; exit ;;
   21326   --config | --confi | --conf | --con | --co | --c )
   21327     $as_echo "$ac_cs_config"; exit ;;
   21328   --debug | --debu | --deb | --de | --d | -d )
   21329     debug=: ;;
   21330   --file | --fil | --fi | --f )
   21331     $ac_shift
   21332     case $ac_optarg in
   21333     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   21334     '') as_fn_error $? "missing file argument" ;;
   21335     esac
   21336     as_fn_append CONFIG_FILES " '$ac_optarg'"
   21337     ac_need_defaults=false;;
   21338   --header | --heade | --head | --hea )
   21339     $ac_shift
   21340     case $ac_optarg in
   21341     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   21342     esac
   21343     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   21344     ac_need_defaults=false;;
   21345   --he | --h)
   21346     # Conflict between --help and --header
   21347     as_fn_error $? "ambiguous option: \`$1'
   21348 Try \`$0 --help' for more information.";;
   21349   --help | --hel | -h )
   21350     $as_echo "$ac_cs_usage"; exit ;;
   21351   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   21352   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   21353     ac_cs_silent=: ;;
   21354 
   21355   # This is an error.
   21356   -*) as_fn_error $? "unrecognized option: \`$1'
   21357 Try \`$0 --help' for more information." ;;
   21358 
   21359   *) as_fn_append ac_config_targets " $1"
   21360      ac_need_defaults=false ;;
   21361 
   21362   esac
   21363   shift
   21364 done
   21365 
   21366 ac_configure_extra_args=
   21367 
   21368 if $ac_cs_silent; then
   21369   exec 6>/dev/null
   21370   ac_configure_extra_args="$ac_configure_extra_args --silent"
   21371 fi
   21372 
   21373 _ACEOF
   21374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21375 if \$ac_cs_recheck; then
   21376   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   21377   shift
   21378   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   21379   CONFIG_SHELL='$SHELL'
   21380   export CONFIG_SHELL
   21381   exec "\$@"
   21382 fi
   21383 
   21384 _ACEOF
   21385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21386 exec 5>>config.log
   21387 {
   21388   echo
   21389   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   21390 ## Running $as_me. ##
   21391 _ASBOX
   21392   $as_echo "$ac_log"
   21393 } >&5
   21394 
   21395 _ACEOF
   21396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21397 #
   21398 # INIT-COMMANDS
   21399 #
   21400 
   21401 
   21402 # The HP-UX ksh and POSIX shell print the target directory to stdout
   21403 # if CDPATH is set.
   21404 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   21405 
   21406 sed_quote_subst='$sed_quote_subst'
   21407 double_quote_subst='$double_quote_subst'
   21408 delay_variable_subst='$delay_variable_subst'
   21409 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   21410 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   21411 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   21412 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   21413 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   21414 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   21415 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   21416 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   21417 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   21418 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   21419 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   21420 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   21421 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   21422 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   21423 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   21424 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   21425 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   21426 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   21427 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   21428 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   21429 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   21430 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   21431 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   21432 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   21433 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   21434 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   21435 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   21436 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   21437 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   21438 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   21439 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   21440 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   21441 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   21442 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   21443 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   21444 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   21445 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   21446 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   21447 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   21448 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   21449 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   21450 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   21451 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   21452 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   21453 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   21454 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   21455 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   21456 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   21457 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   21458 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   21459 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   21460 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   21461 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   21462 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   21463 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   21464 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   21465 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   21466 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   21467 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"`'
   21468 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   21469 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   21470 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   21471 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   21472 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   21473 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   21474 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   21475 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   21476 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   21477 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   21478 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   21479 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   21480 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   21481 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   21482 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   21483 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   21484 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   21485 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   21486 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   21487 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   21488 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   21489 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   21490 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   21491 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   21492 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   21493 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   21494 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   21495 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   21496 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   21497 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   21498 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   21499 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   21500 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   21501 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   21502 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   21503 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   21504 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   21505 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   21506 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   21507 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   21508 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   21509 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   21510 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   21511 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   21512 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   21513 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   21514 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   21515 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   21516 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   21517 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   21518 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   21519 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   21520 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   21521 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   21522 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   21523 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   21524 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   21525 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   21526 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   21527 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   21528 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   21529 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   21530 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   21531 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   21532 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   21533 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   21534 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   21535 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   21536 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   21537 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   21538 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   21539 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   21540 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   21541 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   21542 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   21543 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   21544 
   21545 LTCC='$LTCC'
   21546 LTCFLAGS='$LTCFLAGS'
   21547 compiler='$compiler_DEFAULT'
   21548 
   21549 # A function that is used when there is no print builtin or printf.
   21550 func_fallback_echo ()
   21551 {
   21552   eval 'cat <<_LTECHO_EOF
   21553 \$1
   21554 _LTECHO_EOF'
   21555 }
   21556 
   21557 # Quote evaled strings.
   21558 for var in SHELL \
   21559 ECHO \
   21560 PATH_SEPARATOR \
   21561 SED \
   21562 GREP \
   21563 EGREP \
   21564 FGREP \
   21565 LD \
   21566 NM \
   21567 LN_S \
   21568 lt_SP2NL \
   21569 lt_NL2SP \
   21570 reload_flag \
   21571 OBJDUMP \
   21572 deplibs_check_method \
   21573 file_magic_cmd \
   21574 file_magic_glob \
   21575 want_nocaseglob \
   21576 DLLTOOL \
   21577 sharedlib_from_linklib_cmd \
   21578 AR \
   21579 AR_FLAGS \
   21580 archiver_list_spec \
   21581 STRIP \
   21582 RANLIB \
   21583 CC \
   21584 CFLAGS \
   21585 compiler \
   21586 lt_cv_sys_global_symbol_pipe \
   21587 lt_cv_sys_global_symbol_to_cdecl \
   21588 lt_cv_sys_global_symbol_to_import \
   21589 lt_cv_sys_global_symbol_to_c_name_address \
   21590 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   21591 lt_cv_nm_interface \
   21592 nm_file_list_spec \
   21593 lt_cv_truncate_bin \
   21594 lt_prog_compiler_no_builtin_flag \
   21595 lt_prog_compiler_pic \
   21596 lt_prog_compiler_wl \
   21597 lt_prog_compiler_static \
   21598 lt_cv_prog_compiler_c_o \
   21599 need_locks \
   21600 MANIFEST_TOOL \
   21601 DSYMUTIL \
   21602 NMEDIT \
   21603 LIPO \
   21604 OTOOL \
   21605 OTOOL64 \
   21606 shrext_cmds \
   21607 export_dynamic_flag_spec \
   21608 whole_archive_flag_spec \
   21609 compiler_needs_object \
   21610 with_gnu_ld \
   21611 allow_undefined_flag \
   21612 no_undefined_flag \
   21613 hardcode_libdir_flag_spec \
   21614 hardcode_libdir_separator \
   21615 exclude_expsyms \
   21616 include_expsyms \
   21617 file_list_spec \
   21618 variables_saved_for_relink \
   21619 libname_spec \
   21620 library_names_spec \
   21621 soname_spec \
   21622 install_override_mode \
   21623 finish_eval \
   21624 old_striplib \
   21625 striplib; do
   21626     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   21627     *[\\\\\\\`\\"\\\$]*)
   21628       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   21629       ;;
   21630     *)
   21631       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   21632       ;;
   21633     esac
   21634 done
   21635 
   21636 # Double-quote double-evaled strings.
   21637 for var in reload_cmds \
   21638 old_postinstall_cmds \
   21639 old_postuninstall_cmds \
   21640 old_archive_cmds \
   21641 extract_expsyms_cmds \
   21642 old_archive_from_new_cmds \
   21643 old_archive_from_expsyms_cmds \
   21644 archive_cmds \
   21645 archive_expsym_cmds \
   21646 module_cmds \
   21647 module_expsym_cmds \
   21648 export_symbols_cmds \
   21649 prelink_cmds \
   21650 postlink_cmds \
   21651 postinstall_cmds \
   21652 postuninstall_cmds \
   21653 finish_cmds \
   21654 sys_lib_search_path_spec \
   21655 configure_time_dlsearch_path \
   21656 configure_time_lt_sys_library_path; do
   21657     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   21658     *[\\\\\\\`\\"\\\$]*)
   21659       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   21660       ;;
   21661     *)
   21662       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   21663       ;;
   21664     esac
   21665 done
   21666 
   21667 ac_aux_dir='$ac_aux_dir'
   21668 
   21669 # See if we are running on zsh, and set the options that allow our
   21670 # commands through without removal of \ escapes INIT.
   21671 if test -n "\${ZSH_VERSION+set}"; then
   21672    setopt NO_GLOB_SUBST
   21673 fi
   21674 
   21675 
   21676     PACKAGE='$PACKAGE'
   21677     VERSION='$VERSION'
   21678     RM='$RM'
   21679     ofile='$ofile'
   21680 
   21681 
   21682 
   21683 
   21684 _ACEOF
   21685 
   21686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21687 
   21688 # Handling of arguments.
   21689 for ac_config_target in $ac_config_targets
   21690 do
   21691   case $ac_config_target in
   21692     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   21693     "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
   21694     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   21695     "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
   21696     "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
   21697     "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
   21698     "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
   21699     "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
   21700     "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
   21701     "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
   21702     "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
   21703     "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
   21704     "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
   21705     "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
   21706     "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
   21707     "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
   21708     "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
   21709     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   21710 
   21711   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   21712   esac
   21713 done
   21714 
   21715 
   21716 # If the user did not use the arguments to specify the items to instantiate,
   21717 # then the envvar interface is used.  Set only those that are not.
   21718 # We use the long form for the default assignment because of an extremely
   21719 # bizarre bug on SunOS 4.1.3.
   21720 if $ac_need_defaults; then
   21721   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   21722   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   21723   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   21724 fi
   21725 
   21726 # Have a temporary directory for convenience.  Make it in the build tree
   21727 # simply because there is no reason against having it here, and in addition,
   21728 # creating and moving files from /tmp can sometimes cause problems.
   21729 # Hook for its removal unless debugging.
   21730 # Note that there is a small window in which the directory will not be cleaned:
   21731 # after its creation but before its name has been assigned to `$tmp'.
   21732 $debug ||
   21733 {
   21734   tmp= ac_tmp=
   21735   trap 'exit_status=$?
   21736   : "${ac_tmp:=$tmp}"
   21737   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   21738 ' 0
   21739   trap 'as_fn_exit 1' 1 2 13 15
   21740 }
   21741 # Create a (secure) tmp directory for tmp files.
   21742 
   21743 {
   21744   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   21745   test -d "$tmp"
   21746 }  ||
   21747 {
   21748   tmp=./conf$$-$RANDOM
   21749   (umask 077 && mkdir "$tmp")
   21750 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   21751 ac_tmp=$tmp
   21752 
   21753 # Set up the scripts for CONFIG_FILES section.
   21754 # No need to generate them if there are no CONFIG_FILES.
   21755 # This happens for instance with `./config.status config.h'.
   21756 if test -n "$CONFIG_FILES"; then
   21757 
   21758 
   21759 ac_cr=`echo X | tr X '\015'`
   21760 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   21761 # But we know of no other shell where ac_cr would be empty at this
   21762 # point, so we can use a bashism as a fallback.
   21763 if test "x$ac_cr" = x; then
   21764   eval ac_cr=\$\'\\r\'
   21765 fi
   21766 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   21767 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   21768   ac_cs_awk_cr='\\r'
   21769 else
   21770   ac_cs_awk_cr=$ac_cr
   21771 fi
   21772 
   21773 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   21774 _ACEOF
   21775 
   21776 
   21777 {
   21778   echo "cat >conf$$subs.awk <<_ACEOF" &&
   21779   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   21780   echo "_ACEOF"
   21781 } >conf$$subs.sh ||
   21782   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   21783 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   21784 ac_delim='%!_!# '
   21785 for ac_last_try in false false false false false :; do
   21786   . ./conf$$subs.sh ||
   21787     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   21788 
   21789   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   21790   if test $ac_delim_n = $ac_delim_num; then
   21791     break
   21792   elif $ac_last_try; then
   21793     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   21794   else
   21795     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   21796   fi
   21797 done
   21798 rm -f conf$$subs.sh
   21799 
   21800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21801 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   21802 _ACEOF
   21803 sed -n '
   21804 h
   21805 s/^/S["/; s/!.*/"]=/
   21806 p
   21807 g
   21808 s/^[^!]*!//
   21809 :repl
   21810 t repl
   21811 s/'"$ac_delim"'$//
   21812 t delim
   21813 :nl
   21814 h
   21815 s/\(.\{148\}\)..*/\1/
   21816 t more1
   21817 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   21818 p
   21819 n
   21820 b repl
   21821 :more1
   21822 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   21823 p
   21824 g
   21825 s/.\{148\}//
   21826 t nl
   21827 :delim
   21828 h
   21829 s/\(.\{148\}\)..*/\1/
   21830 t more2
   21831 s/["\\]/\\&/g; s/^/"/; s/$/"/
   21832 p
   21833 b
   21834 :more2
   21835 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   21836 p
   21837 g
   21838 s/.\{148\}//
   21839 t delim
   21840 ' <conf$$subs.awk | sed '
   21841 /^[^""]/{
   21842   N
   21843   s/\n//
   21844 }
   21845 ' >>$CONFIG_STATUS || ac_write_fail=1
   21846 rm -f conf$$subs.awk
   21847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21848 _ACAWK
   21849 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   21850   for (key in S) S_is_set[key] = 1
   21851   FS = ""
   21852 
   21853 }
   21854 {
   21855   line = $ 0
   21856   nfields = split(line, field, "@")
   21857   substed = 0
   21858   len = length(field[1])
   21859   for (i = 2; i < nfields; i++) {
   21860     key = field[i]
   21861     keylen = length(key)
   21862     if (S_is_set[key]) {
   21863       value = S[key]
   21864       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   21865       len += length(value) + length(field[++i])
   21866       substed = 1
   21867     } else
   21868       len += 1 + keylen
   21869   }
   21870 
   21871   print line
   21872 }
   21873 
   21874 _ACAWK
   21875 _ACEOF
   21876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21877 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   21878   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   21879 else
   21880   cat
   21881 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   21882   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   21883 _ACEOF
   21884 
   21885 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   21886 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   21887 # trailing colons and then remove the whole line if VPATH becomes empty
   21888 # (actually we leave an empty line to preserve line numbers).
   21889 if test "x$srcdir" = x.; then
   21890   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   21891 h
   21892 s///
   21893 s/^/:/
   21894 s/[	 ]*$/:/
   21895 s/:\$(srcdir):/:/g
   21896 s/:\${srcdir}:/:/g
   21897 s/:@srcdir@:/:/g
   21898 s/^:*//
   21899 s/:*$//
   21900 x
   21901 s/\(=[	 ]*\).*/\1/
   21902 G
   21903 s/\n//
   21904 s/^[^=]*=[	 ]*$//
   21905 }'
   21906 fi
   21907 
   21908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21909 fi # test -n "$CONFIG_FILES"
   21910 
   21911 # Set up the scripts for CONFIG_HEADERS section.
   21912 # No need to generate them if there are no CONFIG_HEADERS.
   21913 # This happens for instance with `./config.status Makefile'.
   21914 if test -n "$CONFIG_HEADERS"; then
   21915 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   21916 BEGIN {
   21917 _ACEOF
   21918 
   21919 # Transform confdefs.h into an awk script `defines.awk', embedded as
   21920 # here-document in config.status, that substitutes the proper values into
   21921 # config.h.in to produce config.h.
   21922 
   21923 # Create a delimiter string that does not exist in confdefs.h, to ease
   21924 # handling of long lines.
   21925 ac_delim='%!_!# '
   21926 for ac_last_try in false false :; do
   21927   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   21928   if test -z "$ac_tt"; then
   21929     break
   21930   elif $ac_last_try; then
   21931     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   21932   else
   21933     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   21934   fi
   21935 done
   21936 
   21937 # For the awk script, D is an array of macro values keyed by name,
   21938 # likewise P contains macro parameters if any.  Preserve backslash
   21939 # newline sequences.
   21940 
   21941 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   21942 sed -n '
   21943 s/.\{148\}/&'"$ac_delim"'/g
   21944 t rset
   21945 :rset
   21946 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   21947 t def
   21948 d
   21949 :def
   21950 s/\\$//
   21951 t bsnl
   21952 s/["\\]/\\&/g
   21953 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   21954 D["\1"]=" \3"/p
   21955 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   21956 d
   21957 :bsnl
   21958 s/["\\]/\\&/g
   21959 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   21960 D["\1"]=" \3\\\\\\n"\\/p
   21961 t cont
   21962 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   21963 t cont
   21964 d
   21965 :cont
   21966 n
   21967 s/.\{148\}/&'"$ac_delim"'/g
   21968 t clear
   21969 :clear
   21970 s/\\$//
   21971 t bsnlc
   21972 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   21973 d
   21974 :bsnlc
   21975 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   21976 b cont
   21977 ' <confdefs.h | sed '
   21978 s/'"$ac_delim"'/"\\\
   21979 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   21980 
   21981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21982   for (key in D) D_is_set[key] = 1
   21983   FS = ""
   21984 }
   21985 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   21986   line = \$ 0
   21987   split(line, arg, " ")
   21988   if (arg[1] == "#") {
   21989     defundef = arg[2]
   21990     mac1 = arg[3]
   21991   } else {
   21992     defundef = substr(arg[1], 2)
   21993     mac1 = arg[2]
   21994   }
   21995   split(mac1, mac2, "(") #)
   21996   macro = mac2[1]
   21997   prefix = substr(line, 1, index(line, defundef) - 1)
   21998   if (D_is_set[macro]) {
   21999     # Preserve the white space surrounding the "#".
   22000     print prefix "define", macro P[macro] D[macro]
   22001     next
   22002   } else {
   22003     # Replace #undef with comments.  This is necessary, for example,
   22004     # in the case of _POSIX_SOURCE, which is predefined and required
   22005     # on some systems where configure will not decide to define it.
   22006     if (defundef == "undef") {
   22007       print "/*", prefix defundef, macro, "*/"
   22008       next
   22009     }
   22010   }
   22011 }
   22012 { print }
   22013 _ACAWK
   22014 _ACEOF
   22015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22016   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   22017 fi # test -n "$CONFIG_HEADERS"
   22018 
   22019 
   22020 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   22021 shift
   22022 for ac_tag
   22023 do
   22024   case $ac_tag in
   22025   :[FHLC]) ac_mode=$ac_tag; continue;;
   22026   esac
   22027   case $ac_mode$ac_tag in
   22028   :[FHL]*:*);;
   22029   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   22030   :[FH]-) ac_tag=-:-;;
   22031   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   22032   esac
   22033   ac_save_IFS=$IFS
   22034   IFS=:
   22035   set x $ac_tag
   22036   IFS=$ac_save_IFS
   22037   shift
   22038   ac_file=$1
   22039   shift
   22040 
   22041   case $ac_mode in
   22042   :L) ac_source=$1;;
   22043   :[FH])
   22044     ac_file_inputs=
   22045     for ac_f
   22046     do
   22047       case $ac_f in
   22048       -) ac_f="$ac_tmp/stdin";;
   22049       *) # Look for the file first in the build tree, then in the source tree
   22050 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   22051 	 # because $ac_f cannot contain `:'.
   22052 	 test -f "$ac_f" ||
   22053 	   case $ac_f in
   22054 	   [\\/$]*) false;;
   22055 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   22056 	   esac ||
   22057 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   22058       esac
   22059       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   22060       as_fn_append ac_file_inputs " '$ac_f'"
   22061     done
   22062 
   22063     # Let's still pretend it is `configure' which instantiates (i.e., don't
   22064     # use $as_me), people would be surprised to read:
   22065     #    /* config.h.  Generated by config.status.  */
   22066     configure_input='Generated from '`
   22067 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   22068 	`' by configure.'
   22069     if test x"$ac_file" != x-; then
   22070       configure_input="$ac_file.  $configure_input"
   22071       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   22072 $as_echo "$as_me: creating $ac_file" >&6;}
   22073     fi
   22074     # Neutralize special characters interpreted by sed in replacement strings.
   22075     case $configure_input in #(
   22076     *\&* | *\|* | *\\* )
   22077        ac_sed_conf_input=`$as_echo "$configure_input" |
   22078        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   22079     *) ac_sed_conf_input=$configure_input;;
   22080     esac
   22081 
   22082     case $ac_tag in
   22083     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   22084       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   22085     esac
   22086     ;;
   22087   esac
   22088 
   22089   ac_dir=`$as_dirname -- "$ac_file" ||
   22090 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   22091 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   22092 	 X"$ac_file" : 'X\(//\)$' \| \
   22093 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   22094 $as_echo X"$ac_file" |
   22095     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   22096 	    s//\1/
   22097 	    q
   22098 	  }
   22099 	  /^X\(\/\/\)[^/].*/{
   22100 	    s//\1/
   22101 	    q
   22102 	  }
   22103 	  /^X\(\/\/\)$/{
   22104 	    s//\1/
   22105 	    q
   22106 	  }
   22107 	  /^X\(\/\).*/{
   22108 	    s//\1/
   22109 	    q
   22110 	  }
   22111 	  s/.*/./; q'`
   22112   as_dir="$ac_dir"; as_fn_mkdir_p
   22113   ac_builddir=.
   22114 
   22115 case "$ac_dir" in
   22116 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   22117 *)
   22118   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   22119   # A ".." for each directory in $ac_dir_suffix.
   22120   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   22121   case $ac_top_builddir_sub in
   22122   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   22123   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   22124   esac ;;
   22125 esac
   22126 ac_abs_top_builddir=$ac_pwd
   22127 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   22128 # for backward compatibility:
   22129 ac_top_builddir=$ac_top_build_prefix
   22130 
   22131 case $srcdir in
   22132   .)  # We are building in place.
   22133     ac_srcdir=.
   22134     ac_top_srcdir=$ac_top_builddir_sub
   22135     ac_abs_top_srcdir=$ac_pwd ;;
   22136   [\\/]* | ?:[\\/]* )  # Absolute name.
   22137     ac_srcdir=$srcdir$ac_dir_suffix;
   22138     ac_top_srcdir=$srcdir
   22139     ac_abs_top_srcdir=$srcdir ;;
   22140   *) # Relative name.
   22141     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   22142     ac_top_srcdir=$ac_top_build_prefix$srcdir
   22143     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   22144 esac
   22145 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   22146 
   22147 
   22148   case $ac_mode in
   22149   :F)
   22150   #
   22151   # CONFIG_FILE
   22152   #
   22153 
   22154 _ACEOF
   22155 
   22156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22157 # If the template does not know about datarootdir, expand it.
   22158 # FIXME: This hack should be removed a few years after 2.60.
   22159 ac_datarootdir_hack=; ac_datarootdir_seen=
   22160 ac_sed_dataroot='
   22161 /datarootdir/ {
   22162   p
   22163   q
   22164 }
   22165 /@datadir@/p
   22166 /@docdir@/p
   22167 /@infodir@/p
   22168 /@localedir@/p
   22169 /@mandir@/p'
   22170 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   22171 *datarootdir*) ac_datarootdir_seen=yes;;
   22172 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   22173   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   22174 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   22175 _ACEOF
   22176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22177   ac_datarootdir_hack='
   22178   s&@datadir@&$datadir&g
   22179   s&@docdir@&$docdir&g
   22180   s&@infodir@&$infodir&g
   22181   s&@localedir@&$localedir&g
   22182   s&@mandir@&$mandir&g
   22183   s&\\\${datarootdir}&$datarootdir&g' ;;
   22184 esac
   22185 _ACEOF
   22186 
   22187 # Neutralize VPATH when `$srcdir' = `.'.
   22188 # Shell code in configure.ac might set extrasub.
   22189 # FIXME: do we really want to maintain this feature?
   22190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22191 ac_sed_extra="$ac_vpsub
   22192 $extrasub
   22193 _ACEOF
   22194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22195 :t
   22196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   22197 s|@configure_input@|$ac_sed_conf_input|;t t
   22198 s&@top_builddir@&$ac_top_builddir_sub&;t t
   22199 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   22200 s&@srcdir@&$ac_srcdir&;t t
   22201 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   22202 s&@top_srcdir@&$ac_top_srcdir&;t t
   22203 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   22204 s&@builddir@&$ac_builddir&;t t
   22205 s&@abs_builddir@&$ac_abs_builddir&;t t
   22206 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   22207 $ac_datarootdir_hack
   22208 "
   22209 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   22210   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   22211 
   22212 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   22213   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   22214   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   22215       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   22216   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   22217 which seems to be undefined.  Please make sure it is defined" >&5
   22218 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   22219 which seems to be undefined.  Please make sure it is defined" >&2;}
   22220 
   22221   rm -f "$ac_tmp/stdin"
   22222   case $ac_file in
   22223   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   22224   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   22225   esac \
   22226   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   22227  ;;
   22228   :H)
   22229   #
   22230   # CONFIG_HEADER
   22231   #
   22232   if test x"$ac_file" != x-; then
   22233     {
   22234       $as_echo "/* $configure_input  */" \
   22235       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   22236     } >"$ac_tmp/config.h" \
   22237       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   22238     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   22239       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   22240 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   22241     else
   22242       rm -f "$ac_file"
   22243       mv "$ac_tmp/config.h" "$ac_file" \
   22244 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   22245     fi
   22246   else
   22247     $as_echo "/* $configure_input  */" \
   22248       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   22249       || as_fn_error $? "could not create -" "$LINENO" 5
   22250   fi
   22251  ;;
   22252 
   22253   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   22254 $as_echo "$as_me: executing $ac_file commands" >&6;}
   22255  ;;
   22256   esac
   22257 
   22258 
   22259   case $ac_file$ac_mode in
   22260     "libtool":C)
   22261 
   22262     # See if we are running on zsh, and set the options that allow our
   22263     # commands through without removal of \ escapes.
   22264     if test -n "${ZSH_VERSION+set}"; then
   22265       setopt NO_GLOB_SUBST
   22266     fi
   22267 
   22268     cfgfile=${ofile}T
   22269     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   22270     $RM "$cfgfile"
   22271 
   22272     cat <<_LT_EOF >> "$cfgfile"
   22273 #! $SHELL
   22274 # Generated automatically by $as_me ($PACKAGE) $VERSION
   22275 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   22276 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   22277 
   22278 # Provide generalized library-building support services.
   22279 # Written by Gordon Matzigkeit, 1996
   22280 
   22281 # Copyright (C) 2014 Free Software Foundation, Inc.
   22282 # This is free software; see the source for copying conditions.  There is NO
   22283 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   22284 
   22285 # GNU Libtool is free software; you can redistribute it and/or modify
   22286 # it under the terms of the GNU General Public License as published by
   22287 # the Free Software Foundation; either version 2 of of the License, or
   22288 # (at your option) any later version.
   22289 #
   22290 # As a special exception to the GNU General Public License, if you
   22291 # distribute this file as part of a program or library that is built
   22292 # using GNU Libtool, you may include this file under the  same
   22293 # distribution terms that you use for the rest of that program.
   22294 #
   22295 # GNU Libtool is distributed in the hope that it will be useful, but
   22296 # WITHOUT ANY WARRANTY; without even the implied warranty of
   22297 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   22298 # GNU General Public License for more details.
   22299 #
   22300 # You should have received a copy of the GNU General Public License
   22301 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   22302 
   22303 
   22304 # The names of the tagged configurations supported by this script.
   22305 available_tags=''
   22306 
   22307 # Configured defaults for sys_lib_dlsearch_path munging.
   22308 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   22309 
   22310 # ### BEGIN LIBTOOL CONFIG
   22311 
   22312 # Which release of libtool.m4 was used?
   22313 macro_version=$macro_version
   22314 macro_revision=$macro_revision
   22315 
   22316 # Whether or not to build shared libraries.
   22317 build_libtool_libs=$enable_shared
   22318 
   22319 # Whether or not to build static libraries.
   22320 build_old_libs=$enable_static
   22321 
   22322 # What type of objects to build.
   22323 pic_mode=$pic_mode
   22324 
   22325 # Whether or not to optimize for fast installation.
   22326 fast_install=$enable_fast_install
   22327 
   22328 # Shared archive member basename,for filename based shared library versioning on AIX.
   22329 shared_archive_member_spec=$shared_archive_member_spec
   22330 
   22331 # Shell to use when invoking shell scripts.
   22332 SHELL=$lt_SHELL
   22333 
   22334 # An echo program that protects backslashes.
   22335 ECHO=$lt_ECHO
   22336 
   22337 # The PATH separator for the build system.
   22338 PATH_SEPARATOR=$lt_PATH_SEPARATOR
   22339 
   22340 # The host system.
   22341 host_alias=$host_alias
   22342 host=$host
   22343 host_os=$host_os
   22344 
   22345 # The build system.
   22346 build_alias=$build_alias
   22347 build=$build
   22348 build_os=$build_os
   22349 
   22350 # A sed program that does not truncate output.
   22351 SED=$lt_SED
   22352 
   22353 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   22354 Xsed="\$SED -e 1s/^X//"
   22355 
   22356 # A grep program that handles long lines.
   22357 GREP=$lt_GREP
   22358 
   22359 # An ERE matcher.
   22360 EGREP=$lt_EGREP
   22361 
   22362 # A literal string matcher.
   22363 FGREP=$lt_FGREP
   22364 
   22365 # A BSD- or MS-compatible name lister.
   22366 NM=$lt_NM
   22367 
   22368 # Whether we need soft or hard links.
   22369 LN_S=$lt_LN_S
   22370 
   22371 # What is the maximum length of a command?
   22372 max_cmd_len=$max_cmd_len
   22373 
   22374 # Object file suffix (normally "o").
   22375 objext=$ac_objext
   22376 
   22377 # Executable file suffix (normally "").
   22378 exeext=$exeext
   22379 
   22380 # whether the shell understands "unset".
   22381 lt_unset=$lt_unset
   22382 
   22383 # turn spaces into newlines.
   22384 SP2NL=$lt_lt_SP2NL
   22385 
   22386 # turn newlines into spaces.
   22387 NL2SP=$lt_lt_NL2SP
   22388 
   22389 # convert \$build file names to \$host format.
   22390 to_host_file_cmd=$lt_cv_to_host_file_cmd
   22391 
   22392 # convert \$build files to toolchain format.
   22393 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   22394 
   22395 # An object symbol dumper.
   22396 OBJDUMP=$lt_OBJDUMP
   22397 
   22398 # Method to check whether dependent libraries are shared objects.
   22399 deplibs_check_method=$lt_deplibs_check_method
   22400 
   22401 # Command to use when deplibs_check_method = "file_magic".
   22402 file_magic_cmd=$lt_file_magic_cmd
   22403 
   22404 # How to find potential files when deplibs_check_method = "file_magic".
   22405 file_magic_glob=$lt_file_magic_glob
   22406 
   22407 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   22408 want_nocaseglob=$lt_want_nocaseglob
   22409 
   22410 # DLL creation program.
   22411 DLLTOOL=$lt_DLLTOOL
   22412 
   22413 # Command to associate shared and link libraries.
   22414 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   22415 
   22416 # The archiver.
   22417 AR=$lt_AR
   22418 
   22419 # Flags to create an archive.
   22420 AR_FLAGS=$lt_AR_FLAGS
   22421 
   22422 # How to feed a file listing to the archiver.
   22423 archiver_list_spec=$lt_archiver_list_spec
   22424 
   22425 # A symbol stripping program.
   22426 STRIP=$lt_STRIP
   22427 
   22428 # Commands used to install an old-style archive.
   22429 RANLIB=$lt_RANLIB
   22430 old_postinstall_cmds=$lt_old_postinstall_cmds
   22431 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   22432 
   22433 # Whether to use a lock for old archive extraction.
   22434 lock_old_archive_extraction=$lock_old_archive_extraction
   22435 
   22436 # A C compiler.
   22437 LTCC=$lt_CC
   22438 
   22439 # LTCC compiler flags.
   22440 LTCFLAGS=$lt_CFLAGS
   22441 
   22442 # Take the output of nm and produce a listing of raw symbols and C names.
   22443 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   22444 
   22445 # Transform the output of nm in a proper C declaration.
   22446 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   22447 
   22448 # Transform the output of nm into a list of symbols to manually relocate.
   22449 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   22450 
   22451 # Transform the output of nm in a C name address pair.
   22452 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   22453 
   22454 # Transform the output of nm in a C name address pair when lib prefix is needed.
   22455 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   22456 
   22457 # The name lister interface.
   22458 nm_interface=$lt_lt_cv_nm_interface
   22459 
   22460 # Specify filename containing input files for \$NM.
   22461 nm_file_list_spec=$lt_nm_file_list_spec
   22462 
   22463 # The root where to search for dependent libraries,and where our libraries should be installed.
   22464 lt_sysroot=$lt_sysroot
   22465 
   22466 # Command to truncate a binary pipe.
   22467 lt_truncate_bin=$lt_lt_cv_truncate_bin
   22468 
   22469 # The name of the directory that contains temporary libtool files.
   22470 objdir=$objdir
   22471 
   22472 # Used to examine libraries when file_magic_cmd begins with "file".
   22473 MAGIC_CMD=$MAGIC_CMD
   22474 
   22475 # Must we lock files when doing compilation?
   22476 need_locks=$lt_need_locks
   22477 
   22478 # Manifest tool.
   22479 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   22480 
   22481 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   22482 DSYMUTIL=$lt_DSYMUTIL
   22483 
   22484 # Tool to change global to local symbols on Mac OS X.
   22485 NMEDIT=$lt_NMEDIT
   22486 
   22487 # Tool to manipulate fat objects and archives on Mac OS X.
   22488 LIPO=$lt_LIPO
   22489 
   22490 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   22491 OTOOL=$lt_OTOOL
   22492 
   22493 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   22494 OTOOL64=$lt_OTOOL64
   22495 
   22496 # Old archive suffix (normally "a").
   22497 libext=$libext
   22498 
   22499 # Shared library suffix (normally ".so").
   22500 shrext_cmds=$lt_shrext_cmds
   22501 
   22502 # The commands to extract the exported symbol list from a shared archive.
   22503 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   22504 
   22505 # Variables whose values should be saved in libtool wrapper scripts and
   22506 # restored at link time.
   22507 variables_saved_for_relink=$lt_variables_saved_for_relink
   22508 
   22509 # Do we need the "lib" prefix for modules?
   22510 need_lib_prefix=$need_lib_prefix
   22511 
   22512 # Do we need a version for libraries?
   22513 need_version=$need_version
   22514 
   22515 # Library versioning type.
   22516 version_type=$version_type
   22517 
   22518 # Shared library runtime path variable.
   22519 runpath_var=$runpath_var
   22520 
   22521 # Shared library path variable.
   22522 shlibpath_var=$shlibpath_var
   22523 
   22524 # Is shlibpath searched before the hard-coded library search path?
   22525 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   22526 
   22527 # Format of library name prefix.
   22528 libname_spec=$lt_libname_spec
   22529 
   22530 # List of archive names.  First name is the real one, the rest are links.
   22531 # The last name is the one that the linker finds with -lNAME
   22532 library_names_spec=$lt_library_names_spec
   22533 
   22534 # The coded name of the library, if different from the real name.
   22535 soname_spec=$lt_soname_spec
   22536 
   22537 # Permission mode override for installation of shared libraries.
   22538 install_override_mode=$lt_install_override_mode
   22539 
   22540 # Command to use after installation of a shared archive.
   22541 postinstall_cmds=$lt_postinstall_cmds
   22542 
   22543 # Command to use after uninstallation of a shared archive.
   22544 postuninstall_cmds=$lt_postuninstall_cmds
   22545 
   22546 # Commands used to finish a libtool library installation in a directory.
   22547 finish_cmds=$lt_finish_cmds
   22548 
   22549 # As "finish_cmds", except a single script fragment to be evaled but
   22550 # not shown.
   22551 finish_eval=$lt_finish_eval
   22552 
   22553 # Whether we should hardcode library paths into libraries.
   22554 hardcode_into_libs=$hardcode_into_libs
   22555 
   22556 # Compile-time system search path for libraries.
   22557 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   22558 
   22559 # Detected run-time system search path for libraries.
   22560 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   22561 
   22562 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   22563 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   22564 
   22565 # Whether dlopen is supported.
   22566 dlopen_support=$enable_dlopen
   22567 
   22568 # Whether dlopen of programs is supported.
   22569 dlopen_self=$enable_dlopen_self
   22570 
   22571 # Whether dlopen of statically linked programs is supported.
   22572 dlopen_self_static=$enable_dlopen_self_static
   22573 
   22574 # Commands to strip libraries.
   22575 old_striplib=$lt_old_striplib
   22576 striplib=$lt_striplib
   22577 
   22578 
   22579 # The linker used to build libraries.
   22580 LD=$lt_LD
   22581 
   22582 # How to create reloadable object files.
   22583 reload_flag=$lt_reload_flag
   22584 reload_cmds=$lt_reload_cmds
   22585 
   22586 # Commands used to build an old-style archive.
   22587 old_archive_cmds=$lt_old_archive_cmds
   22588 
   22589 # A language specific compiler.
   22590 CC=$lt_compiler
   22591 
   22592 # Is the compiler the GNU compiler?
   22593 with_gcc=$GCC
   22594 
   22595 # Compiler flag to turn off builtin functions.
   22596 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   22597 
   22598 # Additional compiler flags for building library objects.
   22599 pic_flag=$lt_lt_prog_compiler_pic
   22600 
   22601 # How to pass a linker flag through the compiler.
   22602 wl=$lt_lt_prog_compiler_wl
   22603 
   22604 # Compiler flag to prevent dynamic linking.
   22605 link_static_flag=$lt_lt_prog_compiler_static
   22606 
   22607 # Does compiler simultaneously support -c and -o options?
   22608 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   22609 
   22610 # Whether or not to add -lc for building shared libraries.
   22611 build_libtool_need_lc=$archive_cmds_need_lc
   22612 
   22613 # Whether or not to disallow shared libs when runtime libs are static.
   22614 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   22615 
   22616 # Compiler flag to allow reflexive dlopens.
   22617 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   22618 
   22619 # Compiler flag to generate shared objects directly from archives.
   22620 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   22621 
   22622 # Whether the compiler copes with passing no objects directly.
   22623 compiler_needs_object=$lt_compiler_needs_object
   22624 
   22625 # Create an old-style archive from a shared archive.
   22626 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   22627 
   22628 # Create a temporary old-style archive to link instead of a shared archive.
   22629 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   22630 
   22631 # Commands used to build a shared archive.
   22632 archive_cmds=$lt_archive_cmds
   22633 archive_expsym_cmds=$lt_archive_expsym_cmds
   22634 
   22635 # Commands used to build a loadable module if different from building
   22636 # a shared archive.
   22637 module_cmds=$lt_module_cmds
   22638 module_expsym_cmds=$lt_module_expsym_cmds
   22639 
   22640 # Whether we are building with GNU ld or not.
   22641 with_gnu_ld=$lt_with_gnu_ld
   22642 
   22643 # Flag that allows shared libraries with undefined symbols to be built.
   22644 allow_undefined_flag=$lt_allow_undefined_flag
   22645 
   22646 # Flag that enforces no undefined symbols.
   22647 no_undefined_flag=$lt_no_undefined_flag
   22648 
   22649 # Flag to hardcode \$libdir into a binary during linking.
   22650 # This must work even if \$libdir does not exist
   22651 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   22652 
   22653 # Whether we need a single "-rpath" flag with a separated argument.
   22654 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   22655 
   22656 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   22657 # DIR into the resulting binary.
   22658 hardcode_direct=$hardcode_direct
   22659 
   22660 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   22661 # DIR into the resulting binary and the resulting library dependency is
   22662 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
   22663 # library is relocated.
   22664 hardcode_direct_absolute=$hardcode_direct_absolute
   22665 
   22666 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   22667 # into the resulting binary.
   22668 hardcode_minus_L=$hardcode_minus_L
   22669 
   22670 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   22671 # into the resulting binary.
   22672 hardcode_shlibpath_var=$hardcode_shlibpath_var
   22673 
   22674 # Set to "yes" if building a shared library automatically hardcodes DIR
   22675 # into the library and all subsequent libraries and executables linked
   22676 # against it.
   22677 hardcode_automatic=$hardcode_automatic
   22678 
   22679 # Set to yes if linker adds runtime paths of dependent libraries
   22680 # to runtime path list.
   22681 inherit_rpath=$inherit_rpath
   22682 
   22683 # Whether libtool must link a program against all its dependency libraries.
   22684 link_all_deplibs=$link_all_deplibs
   22685 
   22686 # Set to "yes" if exported symbols are required.
   22687 always_export_symbols=$always_export_symbols
   22688 
   22689 # The commands to list exported symbols.
   22690 export_symbols_cmds=$lt_export_symbols_cmds
   22691 
   22692 # Symbols that should not be listed in the preloaded symbols.
   22693 exclude_expsyms=$lt_exclude_expsyms
   22694 
   22695 # Symbols that must always be exported.
   22696 include_expsyms=$lt_include_expsyms
   22697 
   22698 # Commands necessary for linking programs (against libraries) with templates.
   22699 prelink_cmds=$lt_prelink_cmds
   22700 
   22701 # Commands necessary for finishing linking programs.
   22702 postlink_cmds=$lt_postlink_cmds
   22703 
   22704 # Specify filename containing input files.
   22705 file_list_spec=$lt_file_list_spec
   22706 
   22707 # How to hardcode a shared library path into an executable.
   22708 hardcode_action=$hardcode_action
   22709 
   22710 # ### END LIBTOOL CONFIG
   22711 
   22712 _LT_EOF
   22713 
   22714     cat <<'_LT_EOF' >> "$cfgfile"
   22715 
   22716 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   22717 
   22718 # func_munge_path_list VARIABLE PATH
   22719 # -----------------------------------
   22720 # VARIABLE is name of variable containing _space_ separated list of
   22721 # directories to be munged by the contents of PATH, which is string
   22722 # having a format:
   22723 # "DIR[:DIR]:"
   22724 #       string "DIR[ DIR]" will be prepended to VARIABLE
   22725 # ":DIR[:DIR]"
   22726 #       string "DIR[ DIR]" will be appended to VARIABLE
   22727 # "DIRP[:DIRP]::[DIRA:]DIRA"
   22728 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   22729 #       "DIRA[ DIRA]" will be appended to VARIABLE
   22730 # "DIR[:DIR]"
   22731 #       VARIABLE will be replaced by "DIR[ DIR]"
   22732 func_munge_path_list ()
   22733 {
   22734     case x$2 in
   22735     x)
   22736         ;;
   22737     *:)
   22738         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   22739         ;;
   22740     x:*)
   22741         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   22742         ;;
   22743     *::*)
   22744         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   22745         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   22746         ;;
   22747     *)
   22748         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   22749         ;;
   22750     esac
   22751 }
   22752 
   22753 
   22754 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   22755 func_cc_basename ()
   22756 {
   22757     for cc_temp in $*""; do
   22758       case $cc_temp in
   22759         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   22760         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   22761         \-*) ;;
   22762         *) break;;
   22763       esac
   22764     done
   22765     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   22766 }
   22767 
   22768 
   22769 # ### END FUNCTIONS SHARED WITH CONFIGURE
   22770 
   22771 _LT_EOF
   22772 
   22773   case $host_os in
   22774   aix3*)
   22775     cat <<\_LT_EOF >> "$cfgfile"
   22776 # AIX sometimes has problems with the GCC collect2 program.  For some
   22777 # reason, if we set the COLLECT_NAMES environment variable, the problems
   22778 # vanish in a puff of smoke.
   22779 if test set != "${COLLECT_NAMES+set}"; then
   22780   COLLECT_NAMES=
   22781   export COLLECT_NAMES
   22782 fi
   22783 _LT_EOF
   22784     ;;
   22785   esac
   22786 
   22787 
   22788 ltmain=$ac_aux_dir/ltmain.sh
   22789 
   22790 
   22791   # We use sed instead of cat because bash on DJGPP gets confused if
   22792   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   22793   # text mode, it properly converts lines to CR/LF.  This bash problem
   22794   # is reportedly fixed, but why not run on old versions too?
   22795   sed '$q' "$ltmain" >> "$cfgfile" \
   22796      || (rm -f "$cfgfile"; exit 1)
   22797 
   22798    mv -f "$cfgfile" "$ofile" ||
   22799     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   22800   chmod +x "$ofile"
   22801 
   22802  ;;
   22803     "disable-rpath":C)
   22804 	sed < libtool > libtool-2 \
   22805 	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
   22806 	mv libtool-2 libtool
   22807 	chmod 755 libtool
   22808 	libtool="./libtool"
   22809 	 ;;
   22810 
   22811   esac
   22812 done # for ac_tag
   22813 
   22814 
   22815 as_fn_exit 0
   22816 _ACEOF
   22817 ac_clean_files=$ac_clean_files_save
   22818 
   22819 test $ac_write_fail = 0 ||
   22820   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   22821 
   22822 
   22823 # configure is writing to config.log, and then calls config.status.
   22824 # config.status does its own redirection, appending to config.log.
   22825 # Unfortunately, on DOS this fails, as config.log is still kept open
   22826 # by configure, so config.status won't be able to write to it; its
   22827 # output is simply discarded.  So we exec the FD to /dev/null,
   22828 # effectively closing config.log, so it can be properly (re)opened and
   22829 # appended to by config.status.  When coming back to configure, we
   22830 # need to make the FD available again.
   22831 if test "$no_create" != yes; then
   22832   ac_cs_success=:
   22833   ac_config_status_args=
   22834   test "$silent" = yes &&
   22835     ac_config_status_args="$ac_config_status_args --quiet"
   22836   exec 5>/dev/null
   22837   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   22838   exec 5>>config.log
   22839   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   22840   # would make configure fail if this is the last instruction.
   22841   $ac_cs_success || as_fn_exit 1
   22842 fi
   22843 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   22844   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   22845 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   22846 fi
   22847 
   22848