Home | History | Annotate | Line # | Download | only in dist
configure revision 1.5
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for BIND 9.14.
      4 #
      5 # Report bugs to <info (at] isc.org>.
      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 info (at] isc.org about
    278 $0: your system, including any error possibly output before
    279 $0: this message. Then install a modern shell, or manually
    280 $0: run the script under such a shell if you do have one."
    281   fi
    282   exit 1
    283 fi
    284 fi
    285 fi
    286 SHELL=${CONFIG_SHELL-/bin/sh}
    287 export SHELL
    288 # Unset more variables known to interfere with behavior of common tools.
    289 CLICOLOR_FORCE= GREP_OPTIONS=
    290 unset CLICOLOR_FORCE GREP_OPTIONS
    291 
    292 ## --------------------- ##
    293 ## M4sh Shell Functions. ##
    294 ## --------------------- ##
    295 # as_fn_unset VAR
    296 # ---------------
    297 # Portably unset VAR.
    298 as_fn_unset ()
    299 {
    300   { eval $1=; unset $1;}
    301 }
    302 as_unset=as_fn_unset
    303 
    304 # as_fn_set_status STATUS
    305 # -----------------------
    306 # Set $? to STATUS, without forking.
    307 as_fn_set_status ()
    308 {
    309   return $1
    310 } # as_fn_set_status
    311 
    312 # as_fn_exit STATUS
    313 # -----------------
    314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    315 as_fn_exit ()
    316 {
    317   set +e
    318   as_fn_set_status $1
    319   exit $1
    320 } # as_fn_exit
    321 
    322 # as_fn_mkdir_p
    323 # -------------
    324 # Create "$as_dir" as a directory, including parents if necessary.
    325 as_fn_mkdir_p ()
    326 {
    327 
    328   case $as_dir in #(
    329   -*) as_dir=./$as_dir;;
    330   esac
    331   test -d "$as_dir" || eval $as_mkdir_p || {
    332     as_dirs=
    333     while :; do
    334       case $as_dir in #(
    335       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    336       *) as_qdir=$as_dir;;
    337       esac
    338       as_dirs="'$as_qdir' $as_dirs"
    339       as_dir=`$as_dirname -- "$as_dir" ||
    340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    341 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    342 	 X"$as_dir" : 'X\(//\)$' \| \
    343 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    344 $as_echo X"$as_dir" |
    345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    346 	    s//\1/
    347 	    q
    348 	  }
    349 	  /^X\(\/\/\)[^/].*/{
    350 	    s//\1/
    351 	    q
    352 	  }
    353 	  /^X\(\/\/\)$/{
    354 	    s//\1/
    355 	    q
    356 	  }
    357 	  /^X\(\/\).*/{
    358 	    s//\1/
    359 	    q
    360 	  }
    361 	  s/.*/./; q'`
    362       test -d "$as_dir" && break
    363     done
    364     test -z "$as_dirs" || eval "mkdir $as_dirs"
    365   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    366 
    367 
    368 } # as_fn_mkdir_p
    369 
    370 # as_fn_executable_p FILE
    371 # -----------------------
    372 # Test if FILE is an executable regular file.
    373 as_fn_executable_p ()
    374 {
    375   test -f "$1" && test -x "$1"
    376 } # as_fn_executable_p
    377 # as_fn_append VAR VALUE
    378 # ----------------------
    379 # Append the text in VALUE to the end of the definition contained in VAR. Take
    380 # advantage of any shell optimizations that allow amortized linear growth over
    381 # repeated appends, instead of the typical quadratic growth present in naive
    382 # implementations.
    383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    384   eval 'as_fn_append ()
    385   {
    386     eval $1+=\$2
    387   }'
    388 else
    389   as_fn_append ()
    390   {
    391     eval $1=\$$1\$2
    392   }
    393 fi # as_fn_append
    394 
    395 # as_fn_arith ARG...
    396 # ------------------
    397 # Perform arithmetic evaluation on the ARGs, and store the result in the
    398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    399 # must be portable across $(()) and expr.
    400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    401   eval 'as_fn_arith ()
    402   {
    403     as_val=$(( $* ))
    404   }'
    405 else
    406   as_fn_arith ()
    407   {
    408     as_val=`expr "$@" || test $? -eq 1`
    409   }
    410 fi # as_fn_arith
    411 
    412 
    413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    414 # ----------------------------------------
    415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    417 # script with STATUS, using 1 if that was 0.
    418 as_fn_error ()
    419 {
    420   as_status=$1; test $as_status -eq 0 && as_status=1
    421   if test "$4"; then
    422     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    423     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    424   fi
    425   $as_echo "$as_me: error: $2" >&2
    426   as_fn_exit $as_status
    427 } # as_fn_error
    428 
    429 if expr a : '\(a\)' >/dev/null 2>&1 &&
    430    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    431   as_expr=expr
    432 else
    433   as_expr=false
    434 fi
    435 
    436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    437   as_basename=basename
    438 else
    439   as_basename=false
    440 fi
    441 
    442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    443   as_dirname=dirname
    444 else
    445   as_dirname=false
    446 fi
    447 
    448 as_me=`$as_basename -- "$0" ||
    449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    450 	 X"$0" : 'X\(//\)$' \| \
    451 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    452 $as_echo X/"$0" |
    453     sed '/^.*\/\([^/][^/]*\)\/*$/{
    454 	    s//\1/
    455 	    q
    456 	  }
    457 	  /^X\/\(\/\/\)$/{
    458 	    s//\1/
    459 	    q
    460 	  }
    461 	  /^X\/\(\/\).*/{
    462 	    s//\1/
    463 	    q
    464 	  }
    465 	  s/.*/./; q'`
    466 
    467 # Avoid depending upon Character Ranges.
    468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    471 as_cr_digits='0123456789'
    472 as_cr_alnum=$as_cr_Letters$as_cr_digits
    473 
    474 
    475   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    476   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    477   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    478   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    479   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    480   sed -n '
    481     p
    482     /[$]LINENO/=
    483   ' <$as_myself |
    484     sed '
    485       s/[$]LINENO.*/&-/
    486       t lineno
    487       b
    488       :lineno
    489       N
    490       :loop
    491       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    492       t loop
    493       s/-\n.*//
    494     ' >$as_me.lineno &&
    495   chmod +x "$as_me.lineno" ||
    496     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    497 
    498   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    499   # already done that, so ensure we don't try to do so again and fall
    500   # in an infinite loop.  This has already happened in practice.
    501   _as_can_reexec=no; export _as_can_reexec
    502   # Don't try to exec as it changes $[0], causing all sort of problems
    503   # (the dirname of $[0] is not the place where we might find the
    504   # original and so on.  Autoconf is especially sensitive to this).
    505   . "./$as_me.lineno"
    506   # Exit status is that of the last command.
    507   exit
    508 }
    509 
    510 ECHO_C= ECHO_N= ECHO_T=
    511 case `echo -n x` in #(((((
    512 -n*)
    513   case `echo 'xy\c'` in
    514   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    515   xy)  ECHO_C='\c';;
    516   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    517        ECHO_T='	';;
    518   esac;;
    519 *)
    520   ECHO_N='-n';;
    521 esac
    522 
    523 rm -f conf$$ conf$$.exe conf$$.file
    524 if test -d conf$$.dir; then
    525   rm -f conf$$.dir/conf$$.file
    526 else
    527   rm -f conf$$.dir
    528   mkdir conf$$.dir 2>/dev/null
    529 fi
    530 if (echo >conf$$.file) 2>/dev/null; then
    531   if ln -s conf$$.file conf$$ 2>/dev/null; then
    532     as_ln_s='ln -s'
    533     # ... but there are two gotchas:
    534     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    535     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    536     # In both cases, we have to default to `cp -pR'.
    537     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    538       as_ln_s='cp -pR'
    539   elif ln conf$$.file conf$$ 2>/dev/null; then
    540     as_ln_s=ln
    541   else
    542     as_ln_s='cp -pR'
    543   fi
    544 else
    545   as_ln_s='cp -pR'
    546 fi
    547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    548 rmdir conf$$.dir 2>/dev/null
    549 
    550 if mkdir -p . 2>/dev/null; then
    551   as_mkdir_p='mkdir -p "$as_dir"'
    552 else
    553   test -d ./-p && rmdir ./-p
    554   as_mkdir_p=false
    555 fi
    556 
    557 as_test_x='test -x'
    558 as_executable_p=as_fn_executable_p
    559 
    560 # Sed expression to map a string onto a valid CPP name.
    561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    562 
    563 # Sed expression to map a string onto a valid variable name.
    564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    565 
    566 SHELL=${CONFIG_SHELL-/bin/sh}
    567 
    568 
    569 test -n "$DJDIR" || exec 7<&0 </dev/null
    570 exec 6>&1
    571 
    572 # Name of the host.
    573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    574 # so uname gets run too.
    575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    576 
    577 #
    578 # Initializations.
    579 #
    580 ac_default_prefix=/usr/local
    581 ac_clean_files=
    582 ac_config_libobj_dir=.
    583 LIBOBJS=
    584 cross_compiling=no
    585 subdirs=
    586 MFLAGS=
    587 MAKEFLAGS=
    588 
    589 # Identity of this package.
    590 PACKAGE_NAME='BIND'
    591 PACKAGE_TARNAME='bind'
    592 PACKAGE_VERSION='9.14'
    593 PACKAGE_STRING='BIND 9.14'
    594 PACKAGE_BUGREPORT='info (at] isc.org'
    595 PACKAGE_URL='https://www.isc.org/downloads/BIND/'
    596 
    597 # Factoring default headers for most tests.
    598 ac_includes_default="\
    599 #include <stdio.h>
    600 #ifdef HAVE_SYS_TYPES_H
    601 # include <sys/types.h>
    602 #endif
    603 #ifdef HAVE_SYS_STAT_H
    604 # include <sys/stat.h>
    605 #endif
    606 #ifdef STDC_HEADERS
    607 # include <stdlib.h>
    608 # include <stddef.h>
    609 #else
    610 # ifdef HAVE_STDLIB_H
    611 #  include <stdlib.h>
    612 # endif
    613 #endif
    614 #ifdef HAVE_STRING_H
    615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    616 #  include <memory.h>
    617 # endif
    618 # include <string.h>
    619 #endif
    620 #ifdef HAVE_STRINGS_H
    621 # include <strings.h>
    622 #endif
    623 #ifdef HAVE_INTTYPES_H
    624 # include <inttypes.h>
    625 #endif
    626 #ifdef HAVE_STDINT_H
    627 # include <stdint.h>
    628 #endif
    629 #ifdef HAVE_UNISTD_H
    630 # include <unistd.h>
    631 #endif"
    632 
    633 ac_subst_vars='LTLIBOBJS
    634 LIBOBJS
    635 BUILD_LIBS
    636 BUILD_LDFLAGS
    637 BUILD_CPPFLAGS
    638 BUILD_CFLAGS
    639 BUILD_CC
    640 DLZ_DRIVER_MYSQL_LIBS
    641 DLZ_DRIVER_MYSQL_INCLUDES
    642 DLZ_SYSTEM_TEST
    643 DLZ_DRIVER_OBJS
    644 DLZ_DRIVER_SRCS
    645 DLZ_DRIVER_LIBS
    646 DLZ_DRIVER_INCLUDES
    647 CONTRIB_DLZ
    648 MYSQL_CONFIG
    649 PG_CONFIG
    650 SO_TARGETS
    651 SO_STRIP
    652 SO_LD
    653 SO_LDFLAGS
    654 SO_CFLAGS
    655 SO
    656 BIND9_CONFIGARGS
    657 BIND9_SRCID
    658 BIND9_VERSIONSHORT
    659 BIND9_VERSIONSTRING
    660 BIND9_MAJOR
    661 BIND9_VERSION
    662 BIND9_DESCRIPTION
    663 BIND9_PRODUCT
    664 BIND9_IRS_BUILDINCLUDE
    665 BIND9_BIND9_BUILDINCLUDE
    666 BIND9_NS_BUILDINCLUDE
    667 BIND9_DNS_BUILDINCLUDE
    668 BIND9_ISCCFG_BUILDINCLUDE
    669 BIND9_ISCCC_BUILDINCLUDE
    670 BIND9_ISC_BUILDINCLUDE
    671 BIND9_TOP_BUILDDIR
    672 LD_WRAP_TESTS
    673 KYUA
    674 UNITTESTS
    675 CMOCKA_LIBS
    676 CMOCKA_CFLAGS
    677 LIBIDN2_LDFLAGS
    678 LIBIDN2_LIBS
    679 LIBIDN2_CFLAGS
    680 XSLT_DBLATEX_FASTBOOK
    681 XSLT_DBLATEX_STYLE
    682 XSLT_DOCBOOK_MAKETOC_XHTML
    683 XSLT_DOCBOOK_MAKETOC_HTML
    684 XSLT_DOCBOOK_CHUNKTOC_XHTML
    685 XSLT_DOCBOOK_CHUNKTOC_HTML
    686 XSLT_DOCBOOK_CHUNK_XHTML
    687 XSLT_DOCBOOK_CHUNK_HTML
    688 XSLT_DOCBOOK_STYLE_MAN
    689 XSLT_DOCBOOK_STYLE_XHTML
    690 XSLT_DOCBOOK_STYLE_HTML
    691 CURL
    692 DOXYGEN
    693 XMLLINT
    694 XSLTPROC
    695 PANDOC
    696 W3M
    697 DBLATEX
    698 PDFLATEX
    699 LATEX
    700 DNSTAPTARGETS
    701 DNSTAPOBJS
    702 DNSTAPSRCS
    703 DNSTAP
    704 FSTRM_CAPTURE
    705 PROTOC_C
    706 ISC_PLATFORM_HAVESYSUNH
    707 LIBCAP_LIBS
    708 DST_EXTRA_SRCS
    709 DST_EXTRA_OBJS
    710 USE_ISC_SPNEGO
    711 READLINE_LIB
    712 BIND9_CO_RULE
    713 LIBTOOL_MODE_UNINSTALL
    714 LIBTOOL_MODE_LINK
    715 LIBTOOL_MODE_INSTALL
    716 LIBTOOL_MODE_COMPILE
    717 LIBTOOL_MKDEP_SED
    718 SA
    719 A
    720 O
    721 ALWAYS_MAKE_SYMTABLE
    722 MKSYMTBL_PROGRAM
    723 PURIFY
    724 purify_path
    725 MKDEPPROG
    726 MKDEPCFLAGS
    727 MKDEPCC
    728 ZLIB
    729 JSONSTATS
    730 XMLSTATS
    731 NZDTARGETS
    732 NZDSRCS
    733 NZD_TOOLS
    734 DNS_CRYPTO_LIBS
    735 DNS_GSSAPI_LIBS
    736 DST_GSSAPI_INC
    737 USE_GSSAPI
    738 ISC_PLATFORM_KRB5HEADER
    739 ISC_PLATFORM_GSSAPI_KRB5_HEADER
    740 ISC_PLATFORM_GSSAPIHEADER
    741 ISC_PLATFORM_HAVEGSSAPI
    742 KRB5_CONFIG
    743 PKCS11_TOOLS
    744 PKCS11_TEST
    745 OPENSSL_LDFLAGS
    746 OPENSSL_INCLUDES
    747 OPENSSL_LIBS
    748 OPENSSL_CFLAGS
    749 INSTALL_LIBRARY
    750 ALWAYS_DEFINES
    751 PTHREAD_CFLAGS
    752 PTHREAD_LIBS
    753 PTHREAD_CC
    754 ax_pthread_config
    755 GEOIPLINKOBJS
    756 GEOIPLINKSRCS
    757 ISC_PLATFORM_NORETURN_POST
    758 ISC_PLATFORM_NORETURN_PRE
    759 expanded_sysconfdir
    760 PYTHON_INSTALL_LIB
    761 PYTHON_INSTALL_DIR
    762 PYTHON_TOOLS
    763 KEYMGR
    764 COVERAGE
    765 CHECKDS
    766 PYTHON
    767 PERL
    768 ETAGS
    769 LN
    770 ARFLAGS
    771 XTARGETS
    772 PKG_CONFIG_LIBDIR
    773 PKG_CONFIG_PATH
    774 PKG_CONFIG
    775 BACKTRACECFLAGS
    776 CCNOOPT
    777 CCOPT
    778 STD_CWARNINGS
    779 STD_CDEFINES
    780 STD_CINCLUDES
    781 INSTALL_DATA
    782 INSTALL_SCRIPT
    783 INSTALL_PROGRAM
    784 LT_SYS_LIBRARY_PATH
    785 OTOOL64
    786 OTOOL
    787 LIPO
    788 NMEDIT
    789 DSYMUTIL
    790 MANIFEST_TOOL
    791 AWK
    792 RANLIB
    793 STRIP
    794 ac_ct_AR
    795 AR
    796 DLLTOOL
    797 OBJDUMP
    798 LN_S
    799 NM
    800 ac_ct_DUMPBIN
    801 DUMPBIN
    802 LD
    803 FGREP
    804 SED
    805 LIBTOOL
    806 SET_MAKE
    807 EGREP
    808 GREP
    809 CPP
    810 OBJEXT
    811 EXEEXT
    812 ac_ct_CC
    813 CPPFLAGS
    814 LDFLAGS
    815 CFLAGS
    816 CC
    817 host_os
    818 host_vendor
    819 host_cpu
    820 host
    821 build_os
    822 build_vendor
    823 build_cpu
    824 build
    825 target_alias
    826 host_alias
    827 build_alias
    828 LIBS
    829 ECHO_T
    830 ECHO_N
    831 ECHO_C
    832 DEFS
    833 mandir
    834 localedir
    835 libdir
    836 psdir
    837 pdfdir
    838 dvidir
    839 htmldir
    840 infodir
    841 docdir
    842 oldincludedir
    843 includedir
    844 localstatedir
    845 sharedstatedir
    846 sysconfdir
    847 datadir
    848 datarootdir
    849 libexecdir
    850 sbindir
    851 bindir
    852 program_transform_name
    853 prefix
    854 exec_prefix
    855 PACKAGE_URL
    856 PACKAGE_BUGREPORT
    857 PACKAGE_STRING
    858 PACKAGE_VERSION
    859 PACKAGE_TARNAME
    860 PACKAGE_NAME
    861 PATH_SEPARATOR
    862 SHELL'
    863 ac_subst_files='BIND9_MAKE_INCLUDES
    864 BIND9_MAKE_RULES
    865 LIBISC_API
    866 LIBISCCC_API
    867 LIBISCCFG_API
    868 LIBDNS_API
    869 LIBDNS_MAPAPI
    870 LIBBIND9_API
    871 LIBIRS_API
    872 LIBNS_API
    873 DLZ_DRIVER_RULES'
    874 ac_user_opts='
    875 enable_option_checking
    876 enable_shared
    877 enable_static
    878 with_pic
    879 enable_fast_install
    880 with_aix_soname
    881 with_gnu_ld
    882 with_sysroot
    883 enable_libtool_lock
    884 enable_libbind
    885 enable_buffer_useinline
    886 enable_warn_shadow
    887 enable_warn_error
    888 enable_developer
    889 enable_fuzzing
    890 with_python
    891 with_python_install_dir
    892 enable_kqueue
    893 enable_epoll
    894 enable_devpoll
    895 with_geoip
    896 with_locktype
    897 with_libtool
    898 with_openssl
    899 enable_fips_mode
    900 with_cc_alg
    901 enable_native_pkcs11
    902 with_pkcs11
    903 with_gssapi
    904 with_lmdb
    905 with_libxml2
    906 with_libjson
    907 with_zlib
    908 enable_largefile
    909 with_purify
    910 with_gperftools_profiler
    911 enable_backtrace
    912 enable_symtable
    913 enable_tcp_fastopen
    914 with_readline
    915 enable_isc_spnego
    916 enable_chroot
    917 enable_linux_caps
    918 enable_fixed_rrset
    919 enable_dnstap
    920 with_protobuf_c
    921 with_libfstrm
    922 with_docbook_xsl
    923 with_libidn2
    924 with_cmocka
    925 with_tuning
    926 enable_querytrace
    927 enable_auto_validation
    928 with_dlopen
    929 enable_dnsrps_dl
    930 with_dnsrps_libname
    931 with_dnsrps_dir
    932 enable_dnsrps
    933 with_dlz_postgres
    934 with_dlz_mysql
    935 with_dlz_bdb
    936 with_dlz_filesystem
    937 with_dlz_ldap
    938 with_dlz_odbc
    939 with_dlz_stub
    940 with_make_clean
    941 enable_full_report
    942 '
    943       ac_precious_vars='build_alias
    944 host_alias
    945 target_alias
    946 CC
    947 CFLAGS
    948 LDFLAGS
    949 LIBS
    950 CPPFLAGS
    951 CPP
    952 LT_SYS_LIBRARY_PATH
    953 PKG_CONFIG
    954 PKG_CONFIG_PATH
    955 PKG_CONFIG_LIBDIR
    956 OPENSSL_CFLAGS
    957 OPENSSL_LIBS
    958 LIBIDN2_CFLAGS
    959 LIBIDN2_LIBS
    960 CMOCKA_CFLAGS
    961 CMOCKA_LIBS
    962 KYUA'
    963 
    964 
    965 # Initialize some variables set by options.
    966 ac_init_help=
    967 ac_init_version=false
    968 ac_unrecognized_opts=
    969 ac_unrecognized_sep=
    970 # The variables have the same names as the options, with
    971 # dashes changed to underlines.
    972 cache_file=/dev/null
    973 exec_prefix=NONE
    974 no_create=
    975 no_recursion=
    976 prefix=NONE
    977 program_prefix=NONE
    978 program_suffix=NONE
    979 program_transform_name=s,x,x,
    980 silent=
    981 site=
    982 srcdir=
    983 verbose=
    984 x_includes=NONE
    985 x_libraries=NONE
    986 
    987 # Installation directory options.
    988 # These are left unexpanded so users can "make install exec_prefix=/foo"
    989 # and all the variables that are supposed to be based on exec_prefix
    990 # by default will actually change.
    991 # Use braces instead of parens because sh, perl, etc. also accept them.
    992 # (The list follows the same order as the GNU Coding Standards.)
    993 bindir='${exec_prefix}/bin'
    994 sbindir='${exec_prefix}/sbin'
    995 libexecdir='${exec_prefix}/libexec'
    996 datarootdir='${prefix}/share'
    997 datadir='${datarootdir}'
    998 sysconfdir='${prefix}/etc'
    999 sharedstatedir='${prefix}/com'
   1000 localstatedir='${prefix}/var'
   1001 includedir='${prefix}/include'
   1002 oldincludedir='/usr/include'
   1003 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   1004 infodir='${datarootdir}/info'
   1005 htmldir='${docdir}'
   1006 dvidir='${docdir}'
   1007 pdfdir='${docdir}'
   1008 psdir='${docdir}'
   1009 libdir='${exec_prefix}/lib'
   1010 localedir='${datarootdir}/locale'
   1011 mandir='${datarootdir}/man'
   1012 
   1013 ac_prev=
   1014 ac_dashdash=
   1015 for ac_option
   1016 do
   1017   # If the previous option needs an argument, assign it.
   1018   if test -n "$ac_prev"; then
   1019     eval $ac_prev=\$ac_option
   1020     ac_prev=
   1021     continue
   1022   fi
   1023 
   1024   case $ac_option in
   1025   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1026   *=)   ac_optarg= ;;
   1027   *)    ac_optarg=yes ;;
   1028   esac
   1029 
   1030   # Accept the important Cygnus configure options, so we can diagnose typos.
   1031 
   1032   case $ac_dashdash$ac_option in
   1033   --)
   1034     ac_dashdash=yes ;;
   1035 
   1036   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1037     ac_prev=bindir ;;
   1038   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1039     bindir=$ac_optarg ;;
   1040 
   1041   -build | --build | --buil | --bui | --bu)
   1042     ac_prev=build_alias ;;
   1043   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1044     build_alias=$ac_optarg ;;
   1045 
   1046   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1047   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1048     ac_prev=cache_file ;;
   1049   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1050   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1051     cache_file=$ac_optarg ;;
   1052 
   1053   --config-cache | -C)
   1054     cache_file=config.cache ;;
   1055 
   1056   -datadir | --datadir | --datadi | --datad)
   1057     ac_prev=datadir ;;
   1058   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1059     datadir=$ac_optarg ;;
   1060 
   1061   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1062   | --dataroo | --dataro | --datar)
   1063     ac_prev=datarootdir ;;
   1064   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1065   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1066     datarootdir=$ac_optarg ;;
   1067 
   1068   -disable-* | --disable-*)
   1069     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1070     # Reject names that are not valid shell variable names.
   1071     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1072       as_fn_error $? "invalid feature name: $ac_useropt"
   1073     ac_useropt_orig=$ac_useropt
   1074     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1075     case $ac_user_opts in
   1076       *"
   1077 "enable_$ac_useropt"
   1078 "*) ;;
   1079       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1080 	 ac_unrecognized_sep=', ';;
   1081     esac
   1082     eval enable_$ac_useropt=no ;;
   1083 
   1084   -docdir | --docdir | --docdi | --doc | --do)
   1085     ac_prev=docdir ;;
   1086   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1087     docdir=$ac_optarg ;;
   1088 
   1089   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1090     ac_prev=dvidir ;;
   1091   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1092     dvidir=$ac_optarg ;;
   1093 
   1094   -enable-* | --enable-*)
   1095     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1096     # Reject names that are not valid shell variable names.
   1097     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1098       as_fn_error $? "invalid feature name: $ac_useropt"
   1099     ac_useropt_orig=$ac_useropt
   1100     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1101     case $ac_user_opts in
   1102       *"
   1103 "enable_$ac_useropt"
   1104 "*) ;;
   1105       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1106 	 ac_unrecognized_sep=', ';;
   1107     esac
   1108     eval enable_$ac_useropt=\$ac_optarg ;;
   1109 
   1110   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1111   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1112   | --exec | --exe | --ex)
   1113     ac_prev=exec_prefix ;;
   1114   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1115   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1116   | --exec=* | --exe=* | --ex=*)
   1117     exec_prefix=$ac_optarg ;;
   1118 
   1119   -gas | --gas | --ga | --g)
   1120     # Obsolete; use --with-gas.
   1121     with_gas=yes ;;
   1122 
   1123   -help | --help | --hel | --he | -h)
   1124     ac_init_help=long ;;
   1125   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1126     ac_init_help=recursive ;;
   1127   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1128     ac_init_help=short ;;
   1129 
   1130   -host | --host | --hos | --ho)
   1131     ac_prev=host_alias ;;
   1132   -host=* | --host=* | --hos=* | --ho=*)
   1133     host_alias=$ac_optarg ;;
   1134 
   1135   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1136     ac_prev=htmldir ;;
   1137   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1138   | --ht=*)
   1139     htmldir=$ac_optarg ;;
   1140 
   1141   -includedir | --includedir | --includedi | --included | --include \
   1142   | --includ | --inclu | --incl | --inc)
   1143     ac_prev=includedir ;;
   1144   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1145   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1146     includedir=$ac_optarg ;;
   1147 
   1148   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1149     ac_prev=infodir ;;
   1150   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1151     infodir=$ac_optarg ;;
   1152 
   1153   -libdir | --libdir | --libdi | --libd)
   1154     ac_prev=libdir ;;
   1155   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1156     libdir=$ac_optarg ;;
   1157 
   1158   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1159   | --libexe | --libex | --libe)
   1160     ac_prev=libexecdir ;;
   1161   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1162   | --libexe=* | --libex=* | --libe=*)
   1163     libexecdir=$ac_optarg ;;
   1164 
   1165   -localedir | --localedir | --localedi | --localed | --locale)
   1166     ac_prev=localedir ;;
   1167   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1168     localedir=$ac_optarg ;;
   1169 
   1170   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1171   | --localstate | --localstat | --localsta | --localst | --locals)
   1172     ac_prev=localstatedir ;;
   1173   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1174   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1175     localstatedir=$ac_optarg ;;
   1176 
   1177   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1178     ac_prev=mandir ;;
   1179   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1180     mandir=$ac_optarg ;;
   1181 
   1182   -nfp | --nfp | --nf)
   1183     # Obsolete; use --without-fp.
   1184     with_fp=no ;;
   1185 
   1186   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1187   | --no-cr | --no-c | -n)
   1188     no_create=yes ;;
   1189 
   1190   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1191   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1192     no_recursion=yes ;;
   1193 
   1194   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1195   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1196   | --oldin | --oldi | --old | --ol | --o)
   1197     ac_prev=oldincludedir ;;
   1198   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1199   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1200   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1201     oldincludedir=$ac_optarg ;;
   1202 
   1203   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1204     ac_prev=prefix ;;
   1205   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1206     prefix=$ac_optarg ;;
   1207 
   1208   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1209   | --program-pre | --program-pr | --program-p)
   1210     ac_prev=program_prefix ;;
   1211   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1212   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1213     program_prefix=$ac_optarg ;;
   1214 
   1215   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1216   | --program-suf | --program-su | --program-s)
   1217     ac_prev=program_suffix ;;
   1218   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1219   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1220     program_suffix=$ac_optarg ;;
   1221 
   1222   -program-transform-name | --program-transform-name \
   1223   | --program-transform-nam | --program-transform-na \
   1224   | --program-transform-n | --program-transform- \
   1225   | --program-transform | --program-transfor \
   1226   | --program-transfo | --program-transf \
   1227   | --program-trans | --program-tran \
   1228   | --progr-tra | --program-tr | --program-t)
   1229     ac_prev=program_transform_name ;;
   1230   -program-transform-name=* | --program-transform-name=* \
   1231   | --program-transform-nam=* | --program-transform-na=* \
   1232   | --program-transform-n=* | --program-transform-=* \
   1233   | --program-transform=* | --program-transfor=* \
   1234   | --program-transfo=* | --program-transf=* \
   1235   | --program-trans=* | --program-tran=* \
   1236   | --progr-tra=* | --program-tr=* | --program-t=*)
   1237     program_transform_name=$ac_optarg ;;
   1238 
   1239   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1240     ac_prev=pdfdir ;;
   1241   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1242     pdfdir=$ac_optarg ;;
   1243 
   1244   -psdir | --psdir | --psdi | --psd | --ps)
   1245     ac_prev=psdir ;;
   1246   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1247     psdir=$ac_optarg ;;
   1248 
   1249   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1250   | -silent | --silent | --silen | --sile | --sil)
   1251     silent=yes ;;
   1252 
   1253   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1254     ac_prev=sbindir ;;
   1255   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1256   | --sbi=* | --sb=*)
   1257     sbindir=$ac_optarg ;;
   1258 
   1259   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1260   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1261   | --sharedst | --shareds | --shared | --share | --shar \
   1262   | --sha | --sh)
   1263     ac_prev=sharedstatedir ;;
   1264   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1265   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1266   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1267   | --sha=* | --sh=*)
   1268     sharedstatedir=$ac_optarg ;;
   1269 
   1270   -site | --site | --sit)
   1271     ac_prev=site ;;
   1272   -site=* | --site=* | --sit=*)
   1273     site=$ac_optarg ;;
   1274 
   1275   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1276     ac_prev=srcdir ;;
   1277   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1278     srcdir=$ac_optarg ;;
   1279 
   1280   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1281   | --syscon | --sysco | --sysc | --sys | --sy)
   1282     ac_prev=sysconfdir ;;
   1283   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1284   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1285     sysconfdir=$ac_optarg ;;
   1286 
   1287   -target | --target | --targe | --targ | --tar | --ta | --t)
   1288     ac_prev=target_alias ;;
   1289   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1290     target_alias=$ac_optarg ;;
   1291 
   1292   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1293     verbose=yes ;;
   1294 
   1295   -version | --version | --versio | --versi | --vers | -V)
   1296     ac_init_version=: ;;
   1297 
   1298   -with-* | --with-*)
   1299     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1300     # Reject names that are not valid shell variable names.
   1301     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1302       as_fn_error $? "invalid package name: $ac_useropt"
   1303     ac_useropt_orig=$ac_useropt
   1304     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1305     case $ac_user_opts in
   1306       *"
   1307 "with_$ac_useropt"
   1308 "*) ;;
   1309       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1310 	 ac_unrecognized_sep=', ';;
   1311     esac
   1312     eval with_$ac_useropt=\$ac_optarg ;;
   1313 
   1314   -without-* | --without-*)
   1315     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1316     # Reject names that are not valid shell variable names.
   1317     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1318       as_fn_error $? "invalid package name: $ac_useropt"
   1319     ac_useropt_orig=$ac_useropt
   1320     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1321     case $ac_user_opts in
   1322       *"
   1323 "with_$ac_useropt"
   1324 "*) ;;
   1325       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1326 	 ac_unrecognized_sep=', ';;
   1327     esac
   1328     eval with_$ac_useropt=no ;;
   1329 
   1330   --x)
   1331     # Obsolete; use --with-x.
   1332     with_x=yes ;;
   1333 
   1334   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1335   | --x-incl | --x-inc | --x-in | --x-i)
   1336     ac_prev=x_includes ;;
   1337   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1338   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1339     x_includes=$ac_optarg ;;
   1340 
   1341   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1342   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1343     ac_prev=x_libraries ;;
   1344   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1345   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1346     x_libraries=$ac_optarg ;;
   1347 
   1348   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1349 Try \`$0 --help' for more information"
   1350     ;;
   1351 
   1352   *=*)
   1353     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1354     # Reject names that are not valid shell variable names.
   1355     case $ac_envvar in #(
   1356       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1357       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1358     esac
   1359     eval $ac_envvar=\$ac_optarg
   1360     export $ac_envvar ;;
   1361 
   1362   *)
   1363     # FIXME: should be removed in autoconf 3.0.
   1364     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1365     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1366       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1367     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1368     ;;
   1369 
   1370   esac
   1371 done
   1372 
   1373 if test -n "$ac_prev"; then
   1374   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1375   as_fn_error $? "missing argument to $ac_option"
   1376 fi
   1377 
   1378 if test -n "$ac_unrecognized_opts"; then
   1379   case $enable_option_checking in
   1380     no) ;;
   1381     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1382     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1383   esac
   1384 fi
   1385 
   1386 # Check all directory arguments for consistency.
   1387 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1388 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1389 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1390 		libdir localedir mandir
   1391 do
   1392   eval ac_val=\$$ac_var
   1393   # Remove trailing slashes.
   1394   case $ac_val in
   1395     */ )
   1396       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1397       eval $ac_var=\$ac_val;;
   1398   esac
   1399   # Be sure to have absolute directory names.
   1400   case $ac_val in
   1401     [\\/$]* | ?:[\\/]* )  continue;;
   1402     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1403   esac
   1404   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1405 done
   1406 
   1407 # There might be people who depend on the old broken behavior: `$host'
   1408 # used to hold the argument of --host etc.
   1409 # FIXME: To remove some day.
   1410 build=$build_alias
   1411 host=$host_alias
   1412 target=$target_alias
   1413 
   1414 # FIXME: To remove some day.
   1415 if test "x$host_alias" != x; then
   1416   if test "x$build_alias" = x; then
   1417     cross_compiling=maybe
   1418   elif test "x$build_alias" != "x$host_alias"; then
   1419     cross_compiling=yes
   1420   fi
   1421 fi
   1422 
   1423 ac_tool_prefix=
   1424 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1425 
   1426 test "$silent" = yes && exec 6>/dev/null
   1427 
   1428 
   1429 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1430 ac_ls_di=`ls -di .` &&
   1431 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1432   as_fn_error $? "working directory cannot be determined"
   1433 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1434   as_fn_error $? "pwd does not report name of working directory"
   1435 
   1436 
   1437 # Find the source files, if location was not specified.
   1438 if test -z "$srcdir"; then
   1439   ac_srcdir_defaulted=yes
   1440   # Try the directory containing this script, then the parent directory.
   1441   ac_confdir=`$as_dirname -- "$as_myself" ||
   1442 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1443 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1444 	 X"$as_myself" : 'X\(//\)$' \| \
   1445 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1446 $as_echo X"$as_myself" |
   1447     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1448 	    s//\1/
   1449 	    q
   1450 	  }
   1451 	  /^X\(\/\/\)[^/].*/{
   1452 	    s//\1/
   1453 	    q
   1454 	  }
   1455 	  /^X\(\/\/\)$/{
   1456 	    s//\1/
   1457 	    q
   1458 	  }
   1459 	  /^X\(\/\).*/{
   1460 	    s//\1/
   1461 	    q
   1462 	  }
   1463 	  s/.*/./; q'`
   1464   srcdir=$ac_confdir
   1465   if test ! -r "$srcdir/$ac_unique_file"; then
   1466     srcdir=..
   1467   fi
   1468 else
   1469   ac_srcdir_defaulted=no
   1470 fi
   1471 if test ! -r "$srcdir/$ac_unique_file"; then
   1472   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1473   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1474 fi
   1475 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1476 ac_abs_confdir=`(
   1477 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1478 	pwd)`
   1479 # When building in place, set srcdir=.
   1480 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1481   srcdir=.
   1482 fi
   1483 # Remove unnecessary trailing slashes from srcdir.
   1484 # Double slashes in file names in object file debugging info
   1485 # mess up M-x gdb in Emacs.
   1486 case $srcdir in
   1487 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1488 esac
   1489 for ac_var in $ac_precious_vars; do
   1490   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1491   eval ac_env_${ac_var}_value=\$${ac_var}
   1492   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1493   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1494 done
   1495 
   1496 #
   1497 # Report the --help message.
   1498 #
   1499 if test "$ac_init_help" = "long"; then
   1500   # Omit some internal or obsolete options to make the list less imposing.
   1501   # This message is too long to be a string in the A/UX 3.1 sh.
   1502   cat <<_ACEOF
   1503 \`configure' configures BIND 9.14 to adapt to many kinds of systems.
   1504 
   1505 Usage: $0 [OPTION]... [VAR=VALUE]...
   1506 
   1507 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1508 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1509 
   1510 Defaults for the options are specified in brackets.
   1511 
   1512 Configuration:
   1513   -h, --help              display this help and exit
   1514       --help=short        display options specific to this package
   1515       --help=recursive    display the short help of all the included packages
   1516   -V, --version           display version information and exit
   1517   -q, --quiet, --silent   do not print \`checking ...' messages
   1518       --cache-file=FILE   cache test results in FILE [disabled]
   1519   -C, --config-cache      alias for \`--cache-file=config.cache'
   1520   -n, --no-create         do not create output files
   1521       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1522 
   1523 Installation directories:
   1524   --prefix=PREFIX         install architecture-independent files in PREFIX
   1525                           [$ac_default_prefix]
   1526   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1527                           [PREFIX]
   1528 
   1529 By default, \`make install' will install all the files in
   1530 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1531 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1532 for instance \`--prefix=\$HOME'.
   1533 
   1534 For better control, use the options below.
   1535 
   1536 Fine tuning of the installation directories:
   1537   --bindir=DIR            user executables [EPREFIX/bin]
   1538   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1539   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1540   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1541   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1542   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1543   --libdir=DIR            object code libraries [EPREFIX/lib]
   1544   --includedir=DIR        C header files [PREFIX/include]
   1545   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1546   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1547   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1548   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1549   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1550   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1551   --docdir=DIR            documentation root [DATAROOTDIR/doc/bind]
   1552   --htmldir=DIR           html documentation [DOCDIR]
   1553   --dvidir=DIR            dvi documentation [DOCDIR]
   1554   --pdfdir=DIR            pdf documentation [DOCDIR]
   1555   --psdir=DIR             ps documentation [DOCDIR]
   1556 _ACEOF
   1557 
   1558   cat <<\_ACEOF
   1559 
   1560 System types:
   1561   --build=BUILD     configure for building on BUILD [guessed]
   1562   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1563 _ACEOF
   1564 fi
   1565 
   1566 if test -n "$ac_init_help"; then
   1567   case $ac_init_help in
   1568      short | recursive ) echo "Configuration of BIND 9.14:";;
   1569    esac
   1570   cat <<\_ACEOF
   1571 
   1572 Optional Features:
   1573   --disable-option-checking  ignore unrecognized --enable/--with options
   1574   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1575   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1576   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1577   --enable-static[=PKGS]  build static libraries [default=yes]
   1578   --enable-fast-install[=PKGS]
   1579                           optimize for fast installation [default=yes]
   1580   --disable-libtool-lock  avoid locking (might break parallel builds)
   1581   --enable-libbind        deprecated
   1582   --enable-buffer-useinline
   1583                           define ISC_BUFFER_USEINLINE when compiling
   1584                           [default=yes]
   1585   --enable-warn-shadow    turn on -Wshadow when compiling
   1586   --enable-warn-error     turn on -Werror when compiling
   1587   --enable-developer      enable developer build settings
   1588   --enable-fuzzing=<afl|libfuzzer>
   1589                           Enable fuzzing using American Fuzzy Lop or libFuzzer
   1590                           (default=no)
   1591   --enable-kqueue         use BSD kqueue when available [default=yes]
   1592   --enable-epoll          use Linux epoll when available [default=auto]
   1593   --enable-devpoll        use /dev/poll when available [default=yes]
   1594   --enable-fips-mode      enable FIPS mode in OpenSSL library [default=no]
   1595   --enable-native-pkcs11  use native PKCS11 for public-key crypto [default=no]
   1596   --enable-largefile      64-bit file support
   1597   --enable-backtrace      log stack backtrace on abort [default=yes]
   1598   --enable-symtable       use internal symbol table for backtrace
   1599                           [all|minimal(default)|none]
   1600   --disable-tcp-fastopen  disable TCP Fast Open support [default=yes]
   1601   --disable-isc-spnego    use SPNEGO from GSSAPI library
   1602   --disable-chroot        disable chroot
   1603   --disable-linux-caps    disable Linux capabilities
   1604   --enable-fixed-rrset    enable fixed rrset ordering [default=no]
   1605   --enable-dnstap         enable dnstap support (requires fstrm, protobuf-c)
   1606   --enable-querytrace     enable very verbose query trace logging [default=no]
   1607   --enable-auto-validation
   1608                           turn on DNSSEC validation by default, using the IANA
   1609                           root key [default=yes]
   1610   --enable-dnsrps-dl      DNS Response Policy Service delayed link
   1611                           [default=$librpz_dl]
   1612   --enable-dnsrps         enable DNS Response Policy Service API
   1613   --enable-full-report    report values of all configure options
   1614 
   1615 Optional Packages:
   1616   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1617   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1618   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1619                           both]
   1620   --with-aix-soname=aix|svr4|both
   1621                           shared library versioning (aka "SONAME") variant to
   1622                           provide on AIX, [default=aix].
   1623   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1624   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1625                           compiler's sysroot if not specified).
   1626   --with-python=PATH      specify path to Python interpreter
   1627   --with-python-install-dir=PATH
   1628                           installation directory for Python modules
   1629   --with-geoip=PATH       Build with GeoIP support (yes|no|path)
   1630   --with-locktype=ARG     Specify mutex lock type (adaptive or standard)
   1631   --with-libtool          use GNU libtool
   1632   --with-openssl=DIR      root of the OpenSSL directory
   1633   --with-cc-alg=ALG       choose the algorithm for Client Cookie
   1634                           [aes|sha1|sha256] (default is aes)
   1635   --with-pkcs11=PATH      Build with PKCS11 support [no|path] (PATH is for the
   1636                           PKCS11 provider)
   1637   --with-gssapi=PATH|/path/krb5-config
   1638                           Specify path for system-supplied GSSAPI
   1639                           [default=yes]
   1640   --with-lmdb=PATH        build with LMDB library [yes|no|path]
   1641   --with-libxml2=PATH     build with libxml2 library [yes|no|path]
   1642   --with-libjson=PATH     build with libjson0 library [yes|no|path]
   1643   --with-zlib=PATH        build with zlib for HTTP compression [default=yes]
   1644   --with-purify=PATH      use Rational purify
   1645   --with-gperftools-profiler
   1646                           use gperftools CPU profiler
   1647   --with-readline=LIBSPEC specify readline library [default auto]
   1648   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
   1649   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
   1650   --with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets
   1651   --with-libidn2=PATH     enable IDN support using GNU libidn2
   1652                           [yes|no(default)|path]
   1653   --with-cmocka=detect    enable CMocka based tests (default is detect)
   1654   --with-tuning=ARG       Specify server tuning (large or default)
   1655   --with-dlopen=ARG       support dynamically loadable DLZ and DYNDB drivers
   1656   --with-dnsrps-libname   DNSRPS provider library name (librpz.so)
   1657   --with-dnsrps-dir       path to DNSRPS provider library
   1658   --with-dlz-postgres=PATH
   1659                           Build with Postgres DLZ driver [yes|no|path].
   1660                           (Required to use Postgres with DLZ)
   1661   --with-dlz-mysql=PATH   Build with MySQL DLZ driver [yes|no|path]. (Required
   1662                           to use MySQL with DLZ)
   1663   --with-dlz-bdb=PATH     Build with Berkeley DB DLZ driver [yes|no|path].
   1664                           (Required to use Berkeley DB with DLZ)
   1665   --with-dlz-filesystem=ARG
   1666                           Build with filesystem DLZ driver [yes|no]. (Required
   1667                           to use file system driver with DLZ)
   1668   --with-dlz-ldap=PATH    Build with LDAP DLZ driver [yes|no|path]. (Required
   1669                           to use LDAP with DLZ)
   1670   --with-dlz-odbc=PATH    Build with ODBC DLZ driver [yes|no|path]. (Required
   1671                           to use ODBC with DLZ)
   1672   --with-dlz-stub=ARG     Build with stub DLZ driver [yes|no]. (Required to
   1673                           use stub driver with DLZ)
   1674   --with-make-clean       run "make clean" at end of configure [yes|no]
   1675 
   1676 Some influential environment variables:
   1677   CC          C compiler command
   1678   CFLAGS      C compiler flags
   1679   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1680               nonstandard directory <lib dir>
   1681   LIBS        libraries to pass to the linker, e.g. -l<library>
   1682   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1683               you have headers in a nonstandard directory <include dir>
   1684   CPP         C preprocessor
   1685   LT_SYS_LIBRARY_PATH
   1686               User-defined run-time library search path.
   1687   PKG_CONFIG  path to pkg-config utility
   1688   PKG_CONFIG_PATH
   1689               directories to add to pkg-config's search path
   1690   PKG_CONFIG_LIBDIR
   1691               path overriding pkg-config's built-in search path
   1692   OPENSSL_CFLAGS
   1693               C compiler flags for OPENSSL, overriding pkg-config
   1694   OPENSSL_LIBS
   1695               linker flags for OPENSSL, overriding pkg-config
   1696   LIBIDN2_CFLAGS
   1697               C compiler flags for LIBIDN2, overriding pkg-config
   1698   LIBIDN2_LIBS
   1699               linker flags for LIBIDN2, overriding pkg-config
   1700   CMOCKA_CFLAGS
   1701               C compiler flags for CMOCKA, overriding pkg-config
   1702   CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
   1703   KYUA        path to kyua execution engine
   1704 
   1705 Use these variables to override the choices made by `configure' or to help
   1706 it to find libraries and programs with nonstandard names/locations.
   1707 
   1708 Report bugs to <info (at] isc.org>.
   1709 BIND home page: <https://www.isc.org/downloads/BIND/>.
   1710 _ACEOF
   1711 ac_status=$?
   1712 fi
   1713 
   1714 if test "$ac_init_help" = "recursive"; then
   1715   # If there are subdirs, report their specific --help.
   1716   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1717     test -d "$ac_dir" ||
   1718       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1719       continue
   1720     ac_builddir=.
   1721 
   1722 case "$ac_dir" in
   1723 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1724 *)
   1725   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1726   # A ".." for each directory in $ac_dir_suffix.
   1727   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1728   case $ac_top_builddir_sub in
   1729   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1730   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1731   esac ;;
   1732 esac
   1733 ac_abs_top_builddir=$ac_pwd
   1734 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1735 # for backward compatibility:
   1736 ac_top_builddir=$ac_top_build_prefix
   1737 
   1738 case $srcdir in
   1739   .)  # We are building in place.
   1740     ac_srcdir=.
   1741     ac_top_srcdir=$ac_top_builddir_sub
   1742     ac_abs_top_srcdir=$ac_pwd ;;
   1743   [\\/]* | ?:[\\/]* )  # Absolute name.
   1744     ac_srcdir=$srcdir$ac_dir_suffix;
   1745     ac_top_srcdir=$srcdir
   1746     ac_abs_top_srcdir=$srcdir ;;
   1747   *) # Relative name.
   1748     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1749     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1750     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1751 esac
   1752 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1753 
   1754     cd "$ac_dir" || { ac_status=$?; continue; }
   1755     # Check for guested configure.
   1756     if test -f "$ac_srcdir/configure.gnu"; then
   1757       echo &&
   1758       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1759     elif test -f "$ac_srcdir/configure"; then
   1760       echo &&
   1761       $SHELL "$ac_srcdir/configure" --help=recursive
   1762     else
   1763       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1764     fi || ac_status=$?
   1765     cd "$ac_pwd" || { ac_status=$?; break; }
   1766   done
   1767 fi
   1768 
   1769 test -n "$ac_init_help" && exit $ac_status
   1770 if $ac_init_version; then
   1771   cat <<\_ACEOF
   1772 BIND configure 9.14
   1773 generated by GNU Autoconf 2.69
   1774 
   1775 Copyright (C) 2012 Free Software Foundation, Inc.
   1776 This configure script is free software; the Free Software Foundation
   1777 gives unlimited permission to copy, distribute and modify it.
   1778 _ACEOF
   1779   exit
   1780 fi
   1781 
   1782 ## ------------------------ ##
   1783 ## Autoconf initialization. ##
   1784 ## ------------------------ ##
   1785 
   1786 # ac_fn_c_try_compile LINENO
   1787 # --------------------------
   1788 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1789 ac_fn_c_try_compile ()
   1790 {
   1791   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1792   rm -f conftest.$ac_objext
   1793   if { { ac_try="$ac_compile"
   1794 case "(($ac_try" in
   1795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1796   *) ac_try_echo=$ac_try;;
   1797 esac
   1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1799 $as_echo "$ac_try_echo"; } >&5
   1800   (eval "$ac_compile") 2>conftest.err
   1801   ac_status=$?
   1802   if test -s conftest.err; then
   1803     grep -v '^ *+' conftest.err >conftest.er1
   1804     cat conftest.er1 >&5
   1805     mv -f conftest.er1 conftest.err
   1806   fi
   1807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1808   test $ac_status = 0; } && {
   1809 	 test -z "$ac_c_werror_flag" ||
   1810 	 test ! -s conftest.err
   1811        } && test -s conftest.$ac_objext; then :
   1812   ac_retval=0
   1813 else
   1814   $as_echo "$as_me: failed program was:" >&5
   1815 sed 's/^/| /' conftest.$ac_ext >&5
   1816 
   1817 	ac_retval=1
   1818 fi
   1819   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1820   as_fn_set_status $ac_retval
   1821 
   1822 } # ac_fn_c_try_compile
   1823 
   1824 # ac_fn_c_try_cpp LINENO
   1825 # ----------------------
   1826 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1827 ac_fn_c_try_cpp ()
   1828 {
   1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1830   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1831 case "(($ac_try" in
   1832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1833   *) ac_try_echo=$ac_try;;
   1834 esac
   1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1836 $as_echo "$ac_try_echo"; } >&5
   1837   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1838   ac_status=$?
   1839   if test -s conftest.err; then
   1840     grep -v '^ *+' conftest.err >conftest.er1
   1841     cat conftest.er1 >&5
   1842     mv -f conftest.er1 conftest.err
   1843   fi
   1844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1845   test $ac_status = 0; } > conftest.i && {
   1846 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1847 	 test ! -s conftest.err
   1848        }; then :
   1849   ac_retval=0
   1850 else
   1851   $as_echo "$as_me: failed program was:" >&5
   1852 sed 's/^/| /' conftest.$ac_ext >&5
   1853 
   1854     ac_retval=1
   1855 fi
   1856   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1857   as_fn_set_status $ac_retval
   1858 
   1859 } # ac_fn_c_try_cpp
   1860 
   1861 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1862 # -------------------------------------------------------
   1863 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1864 # the include files in INCLUDES and setting the cache variable VAR
   1865 # accordingly.
   1866 ac_fn_c_check_header_mongrel ()
   1867 {
   1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1869   if eval \${$3+:} false; then :
   1870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1871 $as_echo_n "checking for $2... " >&6; }
   1872 if eval \${$3+:} false; then :
   1873   $as_echo_n "(cached) " >&6
   1874 fi
   1875 eval ac_res=\$$3
   1876 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1877 $as_echo "$ac_res" >&6; }
   1878 else
   1879   # Is the header compilable?
   1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1881 $as_echo_n "checking $2 usability... " >&6; }
   1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1883 /* end confdefs.h.  */
   1884 $4
   1885 #include <$2>
   1886 _ACEOF
   1887 if ac_fn_c_try_compile "$LINENO"; then :
   1888   ac_header_compiler=yes
   1889 else
   1890   ac_header_compiler=no
   1891 fi
   1892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1894 $as_echo "$ac_header_compiler" >&6; }
   1895 
   1896 # Is the header present?
   1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1898 $as_echo_n "checking $2 presence... " >&6; }
   1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1900 /* end confdefs.h.  */
   1901 #include <$2>
   1902 _ACEOF
   1903 if ac_fn_c_try_cpp "$LINENO"; then :
   1904   ac_header_preproc=yes
   1905 else
   1906   ac_header_preproc=no
   1907 fi
   1908 rm -f conftest.err conftest.i conftest.$ac_ext
   1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1910 $as_echo "$ac_header_preproc" >&6; }
   1911 
   1912 # So?  What about this header?
   1913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1914   yes:no: )
   1915     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1916 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1917     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1918 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1919     ;;
   1920   no:yes:* )
   1921     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1922 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1923     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1924 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1925     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1926 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1927     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1928 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1929     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1931 ( $as_echo "## --------------------------- ##
   1932 ## Report this to info (at] isc.org ##
   1933 ## --------------------------- ##"
   1934      ) | sed "s/^/$as_me: WARNING:     /" >&2
   1935     ;;
   1936 esac
   1937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1938 $as_echo_n "checking for $2... " >&6; }
   1939 if eval \${$3+:} false; then :
   1940   $as_echo_n "(cached) " >&6
   1941 else
   1942   eval "$3=\$ac_header_compiler"
   1943 fi
   1944 eval ac_res=\$$3
   1945 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1946 $as_echo "$ac_res" >&6; }
   1947 fi
   1948   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1949 
   1950 } # ac_fn_c_check_header_mongrel
   1951 
   1952 # ac_fn_c_try_run LINENO
   1953 # ----------------------
   1954 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1955 # that executables *can* be run.
   1956 ac_fn_c_try_run ()
   1957 {
   1958   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1959   if { { ac_try="$ac_link"
   1960 case "(($ac_try" in
   1961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1962   *) ac_try_echo=$ac_try;;
   1963 esac
   1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1965 $as_echo "$ac_try_echo"; } >&5
   1966   (eval "$ac_link") 2>&5
   1967   ac_status=$?
   1968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1969   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1970   { { case "(($ac_try" in
   1971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1972   *) ac_try_echo=$ac_try;;
   1973 esac
   1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1975 $as_echo "$ac_try_echo"; } >&5
   1976   (eval "$ac_try") 2>&5
   1977   ac_status=$?
   1978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1979   test $ac_status = 0; }; }; then :
   1980   ac_retval=0
   1981 else
   1982   $as_echo "$as_me: program exited with status $ac_status" >&5
   1983        $as_echo "$as_me: failed program was:" >&5
   1984 sed 's/^/| /' conftest.$ac_ext >&5
   1985 
   1986        ac_retval=$ac_status
   1987 fi
   1988   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1989   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1990   as_fn_set_status $ac_retval
   1991 
   1992 } # ac_fn_c_try_run
   1993 
   1994 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1995 # -------------------------------------------------------
   1996 # Tests whether HEADER exists and can be compiled using the include files in
   1997 # INCLUDES, setting the cache variable VAR accordingly.
   1998 ac_fn_c_check_header_compile ()
   1999 {
   2000   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2002 $as_echo_n "checking for $2... " >&6; }
   2003 if eval \${$3+:} false; then :
   2004   $as_echo_n "(cached) " >&6
   2005 else
   2006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2007 /* end confdefs.h.  */
   2008 $4
   2009 #include <$2>
   2010 _ACEOF
   2011 if ac_fn_c_try_compile "$LINENO"; then :
   2012   eval "$3=yes"
   2013 else
   2014   eval "$3=no"
   2015 fi
   2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2017 fi
   2018 eval ac_res=\$$3
   2019 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2020 $as_echo "$ac_res" >&6; }
   2021   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2022 
   2023 } # ac_fn_c_check_header_compile
   2024 
   2025 # ac_fn_c_try_link LINENO
   2026 # -----------------------
   2027 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2028 ac_fn_c_try_link ()
   2029 {
   2030   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2031   rm -f conftest.$ac_objext conftest$ac_exeext
   2032   if { { ac_try="$ac_link"
   2033 case "(($ac_try" in
   2034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2035   *) ac_try_echo=$ac_try;;
   2036 esac
   2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2038 $as_echo "$ac_try_echo"; } >&5
   2039   (eval "$ac_link") 2>conftest.err
   2040   ac_status=$?
   2041   if test -s conftest.err; then
   2042     grep -v '^ *+' conftest.err >conftest.er1
   2043     cat conftest.er1 >&5
   2044     mv -f conftest.er1 conftest.err
   2045   fi
   2046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2047   test $ac_status = 0; } && {
   2048 	 test -z "$ac_c_werror_flag" ||
   2049 	 test ! -s conftest.err
   2050        } && test -s conftest$ac_exeext && {
   2051 	 test "$cross_compiling" = yes ||
   2052 	 test -x conftest$ac_exeext
   2053        }; then :
   2054   ac_retval=0
   2055 else
   2056   $as_echo "$as_me: failed program was:" >&5
   2057 sed 's/^/| /' conftest.$ac_ext >&5
   2058 
   2059 	ac_retval=1
   2060 fi
   2061   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2062   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2063   # interfere with the next link command; also delete a directory that is
   2064   # left behind by Apple's compiler.  We do this before executing the actions.
   2065   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2066   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2067   as_fn_set_status $ac_retval
   2068 
   2069 } # ac_fn_c_try_link
   2070 
   2071 # ac_fn_c_check_func LINENO FUNC VAR
   2072 # ----------------------------------
   2073 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2074 ac_fn_c_check_func ()
   2075 {
   2076   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2078 $as_echo_n "checking for $2... " >&6; }
   2079 if eval \${$3+:} false; then :
   2080   $as_echo_n "(cached) " >&6
   2081 else
   2082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2083 /* end confdefs.h.  */
   2084 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2086 #define $2 innocuous_$2
   2087 
   2088 /* System header to define __stub macros and hopefully few prototypes,
   2089     which can conflict with char $2 (); below.
   2090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2091     <limits.h> exists even on freestanding compilers.  */
   2092 
   2093 #ifdef __STDC__
   2094 # include <limits.h>
   2095 #else
   2096 # include <assert.h>
   2097 #endif
   2098 
   2099 #undef $2
   2100 
   2101 /* Override any GCC internal prototype to avoid an error.
   2102    Use char because int might match the return type of a GCC
   2103    builtin and then its argument prototype would still apply.  */
   2104 #ifdef __cplusplus
   2105 extern "C"
   2106 #endif
   2107 char $2 ();
   2108 /* The GNU C library defines this for functions which it implements
   2109     to always fail with ENOSYS.  Some functions are actually named
   2110     something starting with __ and the normal name is an alias.  */
   2111 #if defined __stub_$2 || defined __stub___$2
   2112 choke me
   2113 #endif
   2114 
   2115 int
   2116 main ()
   2117 {
   2118 return $2 ();
   2119   ;
   2120   return 0;
   2121 }
   2122 _ACEOF
   2123 if ac_fn_c_try_link "$LINENO"; then :
   2124   eval "$3=yes"
   2125 else
   2126   eval "$3=no"
   2127 fi
   2128 rm -f core conftest.err conftest.$ac_objext \
   2129     conftest$ac_exeext conftest.$ac_ext
   2130 fi
   2131 eval ac_res=\$$3
   2132 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2133 $as_echo "$ac_res" >&6; }
   2134   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2135 
   2136 } # ac_fn_c_check_func
   2137 
   2138 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2139 # -------------------------------------------
   2140 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2141 # variable VAR accordingly.
   2142 ac_fn_c_check_type ()
   2143 {
   2144   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2146 $as_echo_n "checking for $2... " >&6; }
   2147 if eval \${$3+:} false; then :
   2148   $as_echo_n "(cached) " >&6
   2149 else
   2150   eval "$3=no"
   2151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2152 /* end confdefs.h.  */
   2153 $4
   2154 int
   2155 main ()
   2156 {
   2157 if (sizeof ($2))
   2158 	 return 0;
   2159   ;
   2160   return 0;
   2161 }
   2162 _ACEOF
   2163 if ac_fn_c_try_compile "$LINENO"; then :
   2164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2165 /* end confdefs.h.  */
   2166 $4
   2167 int
   2168 main ()
   2169 {
   2170 if (sizeof (($2)))
   2171 	    return 0;
   2172   ;
   2173   return 0;
   2174 }
   2175 _ACEOF
   2176 if ac_fn_c_try_compile "$LINENO"; then :
   2177 
   2178 else
   2179   eval "$3=yes"
   2180 fi
   2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2182 fi
   2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2184 fi
   2185 eval ac_res=\$$3
   2186 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2187 $as_echo "$ac_res" >&6; }
   2188   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2189 
   2190 } # ac_fn_c_check_type
   2191 cat >config.log <<_ACEOF
   2192 This file contains any messages produced by compilers while
   2193 running configure, to aid debugging if configure makes a mistake.
   2194 
   2195 It was created by BIND $as_me 9.14, which was
   2196 generated by GNU Autoconf 2.69.  Invocation command line was
   2197 
   2198   $ $0 $@
   2199 
   2200 _ACEOF
   2201 exec 5>>config.log
   2202 {
   2203 cat <<_ASUNAME
   2204 ## --------- ##
   2205 ## Platform. ##
   2206 ## --------- ##
   2207 
   2208 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2209 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2210 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2211 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2212 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2213 
   2214 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2215 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2216 
   2217 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2218 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2219 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2220 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2221 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2222 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2223 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2224 
   2225 _ASUNAME
   2226 
   2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2228 for as_dir in $PATH
   2229 do
   2230   IFS=$as_save_IFS
   2231   test -z "$as_dir" && as_dir=.
   2232     $as_echo "PATH: $as_dir"
   2233   done
   2234 IFS=$as_save_IFS
   2235 
   2236 } >&5
   2237 
   2238 cat >&5 <<_ACEOF
   2239 
   2240 
   2241 ## ----------- ##
   2242 ## Core tests. ##
   2243 ## ----------- ##
   2244 
   2245 _ACEOF
   2246 
   2247 
   2248 # Keep a trace of the command line.
   2249 # Strip out --no-create and --no-recursion so they do not pile up.
   2250 # Strip out --silent because we don't want to record it for future runs.
   2251 # Also quote any args containing shell meta-characters.
   2252 # Make two passes to allow for proper duplicate-argument suppression.
   2253 ac_configure_args=
   2254 ac_configure_args0=
   2255 ac_configure_args1=
   2256 ac_must_keep_next=false
   2257 for ac_pass in 1 2
   2258 do
   2259   for ac_arg
   2260   do
   2261     case $ac_arg in
   2262     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2263     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2264     | -silent | --silent | --silen | --sile | --sil)
   2265       continue ;;
   2266     *\'*)
   2267       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2268     esac
   2269     case $ac_pass in
   2270     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2271     2)
   2272       as_fn_append ac_configure_args1 " '$ac_arg'"
   2273       if test $ac_must_keep_next = true; then
   2274 	ac_must_keep_next=false # Got value, back to normal.
   2275       else
   2276 	case $ac_arg in
   2277 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2278 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2279 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2280 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2281 	    case "$ac_configure_args0 " in
   2282 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2283 	    esac
   2284 	    ;;
   2285 	  -* ) ac_must_keep_next=true ;;
   2286 	esac
   2287       fi
   2288       as_fn_append ac_configure_args " '$ac_arg'"
   2289       ;;
   2290     esac
   2291   done
   2292 done
   2293 { ac_configure_args0=; unset ac_configure_args0;}
   2294 { ac_configure_args1=; unset ac_configure_args1;}
   2295 
   2296 # When interrupted or exit'd, cleanup temporary files, and complete
   2297 # config.log.  We remove comments because anyway the quotes in there
   2298 # would cause problems or look ugly.
   2299 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2300 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2301 trap 'exit_status=$?
   2302   # Save into config.log some information that might help in debugging.
   2303   {
   2304     echo
   2305 
   2306     $as_echo "## ---------------- ##
   2307 ## Cache variables. ##
   2308 ## ---------------- ##"
   2309     echo
   2310     # The following way of writing the cache mishandles newlines in values,
   2311 (
   2312   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2313     eval ac_val=\$$ac_var
   2314     case $ac_val in #(
   2315     *${as_nl}*)
   2316       case $ac_var in #(
   2317       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2318 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2319       esac
   2320       case $ac_var in #(
   2321       _ | IFS | as_nl) ;; #(
   2322       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2323       *) { eval $ac_var=; unset $ac_var;} ;;
   2324       esac ;;
   2325     esac
   2326   done
   2327   (set) 2>&1 |
   2328     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2329     *${as_nl}ac_space=\ *)
   2330       sed -n \
   2331 	"s/'\''/'\''\\\\'\'''\''/g;
   2332 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2333       ;; #(
   2334     *)
   2335       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2336       ;;
   2337     esac |
   2338     sort
   2339 )
   2340     echo
   2341 
   2342     $as_echo "## ----------------- ##
   2343 ## Output variables. ##
   2344 ## ----------------- ##"
   2345     echo
   2346     for ac_var in $ac_subst_vars
   2347     do
   2348       eval ac_val=\$$ac_var
   2349       case $ac_val in
   2350       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2351       esac
   2352       $as_echo "$ac_var='\''$ac_val'\''"
   2353     done | sort
   2354     echo
   2355 
   2356     if test -n "$ac_subst_files"; then
   2357       $as_echo "## ------------------- ##
   2358 ## File substitutions. ##
   2359 ## ------------------- ##"
   2360       echo
   2361       for ac_var in $ac_subst_files
   2362       do
   2363 	eval ac_val=\$$ac_var
   2364 	case $ac_val in
   2365 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2366 	esac
   2367 	$as_echo "$ac_var='\''$ac_val'\''"
   2368       done | sort
   2369       echo
   2370     fi
   2371 
   2372     if test -s confdefs.h; then
   2373       $as_echo "## ----------- ##
   2374 ## confdefs.h. ##
   2375 ## ----------- ##"
   2376       echo
   2377       cat confdefs.h
   2378       echo
   2379     fi
   2380     test "$ac_signal" != 0 &&
   2381       $as_echo "$as_me: caught signal $ac_signal"
   2382     $as_echo "$as_me: exit $exit_status"
   2383   } >&5
   2384   rm -f core *.core core.conftest.* &&
   2385     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2386     exit $exit_status
   2387 ' 0
   2388 for ac_signal in 1 2 13 15; do
   2389   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2390 done
   2391 ac_signal=0
   2392 
   2393 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2394 rm -f -r conftest* confdefs.h
   2395 
   2396 $as_echo "/* confdefs.h */" > confdefs.h
   2397 
   2398 # Predefined preprocessor variables.
   2399 
   2400 cat >>confdefs.h <<_ACEOF
   2401 #define PACKAGE_NAME "$PACKAGE_NAME"
   2402 _ACEOF
   2403 
   2404 cat >>confdefs.h <<_ACEOF
   2405 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2406 _ACEOF
   2407 
   2408 cat >>confdefs.h <<_ACEOF
   2409 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2410 _ACEOF
   2411 
   2412 cat >>confdefs.h <<_ACEOF
   2413 #define PACKAGE_STRING "$PACKAGE_STRING"
   2414 _ACEOF
   2415 
   2416 cat >>confdefs.h <<_ACEOF
   2417 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2418 _ACEOF
   2419 
   2420 cat >>confdefs.h <<_ACEOF
   2421 #define PACKAGE_URL "$PACKAGE_URL"
   2422 _ACEOF
   2423 
   2424 
   2425 # Let the site file select an alternate cache file if it wants to.
   2426 # Prefer an explicitly selected file to automatically selected ones.
   2427 ac_site_file1=NONE
   2428 ac_site_file2=NONE
   2429 if test -n "$CONFIG_SITE"; then
   2430   # We do not want a PATH search for config.site.
   2431   case $CONFIG_SITE in #((
   2432     -*)  ac_site_file1=./$CONFIG_SITE;;
   2433     */*) ac_site_file1=$CONFIG_SITE;;
   2434     *)   ac_site_file1=./$CONFIG_SITE;;
   2435   esac
   2436 elif test "x$prefix" != xNONE; then
   2437   ac_site_file1=$prefix/share/config.site
   2438   ac_site_file2=$prefix/etc/config.site
   2439 else
   2440   ac_site_file1=$ac_default_prefix/share/config.site
   2441   ac_site_file2=$ac_default_prefix/etc/config.site
   2442 fi
   2443 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2444 do
   2445   test "x$ac_site_file" = xNONE && continue
   2446   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2447     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2448 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2449     sed 's/^/| /' "$ac_site_file" >&5
   2450     . "$ac_site_file" \
   2451       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2453 as_fn_error $? "failed to load site script $ac_site_file
   2454 See \`config.log' for more details" "$LINENO" 5; }
   2455   fi
   2456 done
   2457 
   2458 if test -r "$cache_file"; then
   2459   # Some versions of bash will fail to source /dev/null (special files
   2460   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2461   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2462     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2463 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2464     case $cache_file in
   2465       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2466       *)                      . "./$cache_file";;
   2467     esac
   2468   fi
   2469 else
   2470   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2471 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2472   >$cache_file
   2473 fi
   2474 
   2475 # Check that the precious variables saved in the cache have kept the same
   2476 # value.
   2477 ac_cache_corrupted=false
   2478 for ac_var in $ac_precious_vars; do
   2479   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2480   eval ac_new_set=\$ac_env_${ac_var}_set
   2481   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2482   eval ac_new_val=\$ac_env_${ac_var}_value
   2483   case $ac_old_set,$ac_new_set in
   2484     set,)
   2485       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2486 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2487       ac_cache_corrupted=: ;;
   2488     ,set)
   2489       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2490 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2491       ac_cache_corrupted=: ;;
   2492     ,);;
   2493     *)
   2494       if test "x$ac_old_val" != "x$ac_new_val"; then
   2495 	# differences in whitespace do not lead to failure.
   2496 	ac_old_val_w=`echo x $ac_old_val`
   2497 	ac_new_val_w=`echo x $ac_new_val`
   2498 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2499 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2500 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2501 	  ac_cache_corrupted=:
   2502 	else
   2503 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2504 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2505 	  eval $ac_var=\$ac_old_val
   2506 	fi
   2507 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2508 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2509 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2510 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2511       fi;;
   2512   esac
   2513   # Pass precious variables to config.status.
   2514   if test "$ac_new_set" = set; then
   2515     case $ac_new_val in
   2516     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2517     *) ac_arg=$ac_var=$ac_new_val ;;
   2518     esac
   2519     case " $ac_configure_args " in
   2520       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2521       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2522     esac
   2523   fi
   2524 done
   2525 if $ac_cache_corrupted; then
   2526   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2528   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2529 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2530   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2531 fi
   2532 ## -------------------- ##
   2533 ## Main body of script. ##
   2534 ## -------------------- ##
   2535 
   2536 ac_ext=c
   2537 ac_cpp='$CPP $CPPFLAGS'
   2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2541 
   2542 
   2543 
   2544 
   2545 ac_config_headers="$ac_config_headers config.h"
   2546 
   2547 
   2548 
   2549 ac_aux_dir=
   2550 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2551   if test -f "$ac_dir/install-sh"; then
   2552     ac_aux_dir=$ac_dir
   2553     ac_install_sh="$ac_aux_dir/install-sh -c"
   2554     break
   2555   elif test -f "$ac_dir/install.sh"; then
   2556     ac_aux_dir=$ac_dir
   2557     ac_install_sh="$ac_aux_dir/install.sh -c"
   2558     break
   2559   elif test -f "$ac_dir/shtool"; then
   2560     ac_aux_dir=$ac_dir
   2561     ac_install_sh="$ac_aux_dir/shtool install -c"
   2562     break
   2563   fi
   2564 done
   2565 if test -z "$ac_aux_dir"; then
   2566   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2567 fi
   2568 
   2569 # These three variables are undocumented and unsupported,
   2570 # and are intended to be withdrawn in a future Autoconf release.
   2571 # They can cause serious problems if a builder's source tree is in a directory
   2572 # whose full name contains unusual characters.
   2573 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2574 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2575 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2576 
   2577 
   2578 # Make sure we can run config.sub.
   2579 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2580   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2581 
   2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2583 $as_echo_n "checking build system type... " >&6; }
   2584 if ${ac_cv_build+:} false; then :
   2585   $as_echo_n "(cached) " >&6
   2586 else
   2587   ac_build_alias=$build_alias
   2588 test "x$ac_build_alias" = x &&
   2589   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2590 test "x$ac_build_alias" = x &&
   2591   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2592 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2593   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2594 
   2595 fi
   2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2597 $as_echo "$ac_cv_build" >&6; }
   2598 case $ac_cv_build in
   2599 *-*-*) ;;
   2600 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2601 esac
   2602 build=$ac_cv_build
   2603 ac_save_IFS=$IFS; IFS='-'
   2604 set x $ac_cv_build
   2605 shift
   2606 build_cpu=$1
   2607 build_vendor=$2
   2608 shift; shift
   2609 # Remember, the first character of IFS is used to create $*,
   2610 # except with old shells:
   2611 build_os=$*
   2612 IFS=$ac_save_IFS
   2613 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2614 
   2615 
   2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2617 $as_echo_n "checking host system type... " >&6; }
   2618 if ${ac_cv_host+:} false; then :
   2619   $as_echo_n "(cached) " >&6
   2620 else
   2621   if test "x$host_alias" = x; then
   2622   ac_cv_host=$ac_cv_build
   2623 else
   2624   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2625     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2626 fi
   2627 
   2628 fi
   2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2630 $as_echo "$ac_cv_host" >&6; }
   2631 case $ac_cv_host in
   2632 *-*-*) ;;
   2633 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2634 esac
   2635 host=$ac_cv_host
   2636 ac_save_IFS=$IFS; IFS='-'
   2637 set x $ac_cv_host
   2638 shift
   2639 host_cpu=$1
   2640 host_vendor=$2
   2641 shift; shift
   2642 # Remember, the first character of IFS is used to create $*,
   2643 # except with old shells:
   2644 host_os=$*
   2645 IFS=$ac_save_IFS
   2646 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2647 
   2648 
   2649 ac_ext=c
   2650 ac_cpp='$CPP $CPPFLAGS'
   2651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2654 if test -n "$ac_tool_prefix"; then
   2655   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2656 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2658 $as_echo_n "checking for $ac_word... " >&6; }
   2659 if ${ac_cv_prog_CC+:} false; then :
   2660   $as_echo_n "(cached) " >&6
   2661 else
   2662   if test -n "$CC"; then
   2663   ac_cv_prog_CC="$CC" # Let the user override the test.
   2664 else
   2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2666 for as_dir in $PATH
   2667 do
   2668   IFS=$as_save_IFS
   2669   test -z "$as_dir" && as_dir=.
   2670     for ac_exec_ext in '' $ac_executable_extensions; do
   2671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2672     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2674     break 2
   2675   fi
   2676 done
   2677   done
   2678 IFS=$as_save_IFS
   2679 
   2680 fi
   2681 fi
   2682 CC=$ac_cv_prog_CC
   2683 if test -n "$CC"; then
   2684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2685 $as_echo "$CC" >&6; }
   2686 else
   2687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2688 $as_echo "no" >&6; }
   2689 fi
   2690 
   2691 
   2692 fi
   2693 if test -z "$ac_cv_prog_CC"; then
   2694   ac_ct_CC=$CC
   2695   # Extract the first word of "gcc", so it can be a program name with args.
   2696 set dummy gcc; ac_word=$2
   2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2698 $as_echo_n "checking for $ac_word... " >&6; }
   2699 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2700   $as_echo_n "(cached) " >&6
   2701 else
   2702   if test -n "$ac_ct_CC"; then
   2703   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2704 else
   2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2706 for as_dir in $PATH
   2707 do
   2708   IFS=$as_save_IFS
   2709   test -z "$as_dir" && as_dir=.
   2710     for ac_exec_ext in '' $ac_executable_extensions; do
   2711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2712     ac_cv_prog_ac_ct_CC="gcc"
   2713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2714     break 2
   2715   fi
   2716 done
   2717   done
   2718 IFS=$as_save_IFS
   2719 
   2720 fi
   2721 fi
   2722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2723 if test -n "$ac_ct_CC"; then
   2724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2725 $as_echo "$ac_ct_CC" >&6; }
   2726 else
   2727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2728 $as_echo "no" >&6; }
   2729 fi
   2730 
   2731   if test "x$ac_ct_CC" = x; then
   2732     CC=""
   2733   else
   2734     case $cross_compiling:$ac_tool_warned in
   2735 yes:)
   2736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2738 ac_tool_warned=yes ;;
   2739 esac
   2740     CC=$ac_ct_CC
   2741   fi
   2742 else
   2743   CC="$ac_cv_prog_CC"
   2744 fi
   2745 
   2746 if test -z "$CC"; then
   2747           if test -n "$ac_tool_prefix"; then
   2748     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2749 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2751 $as_echo_n "checking for $ac_word... " >&6; }
   2752 if ${ac_cv_prog_CC+:} false; then :
   2753   $as_echo_n "(cached) " >&6
   2754 else
   2755   if test -n "$CC"; then
   2756   ac_cv_prog_CC="$CC" # Let the user override the test.
   2757 else
   2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2759 for as_dir in $PATH
   2760 do
   2761   IFS=$as_save_IFS
   2762   test -z "$as_dir" && as_dir=.
   2763     for ac_exec_ext in '' $ac_executable_extensions; do
   2764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2765     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2767     break 2
   2768   fi
   2769 done
   2770   done
   2771 IFS=$as_save_IFS
   2772 
   2773 fi
   2774 fi
   2775 CC=$ac_cv_prog_CC
   2776 if test -n "$CC"; then
   2777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2778 $as_echo "$CC" >&6; }
   2779 else
   2780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2781 $as_echo "no" >&6; }
   2782 fi
   2783 
   2784 
   2785   fi
   2786 fi
   2787 if test -z "$CC"; then
   2788   # Extract the first word of "cc", so it can be a program name with args.
   2789 set dummy cc; ac_word=$2
   2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2791 $as_echo_n "checking for $ac_word... " >&6; }
   2792 if ${ac_cv_prog_CC+:} false; then :
   2793   $as_echo_n "(cached) " >&6
   2794 else
   2795   if test -n "$CC"; then
   2796   ac_cv_prog_CC="$CC" # Let the user override the test.
   2797 else
   2798   ac_prog_rejected=no
   2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2800 for as_dir in $PATH
   2801 do
   2802   IFS=$as_save_IFS
   2803   test -z "$as_dir" && as_dir=.
   2804     for ac_exec_ext in '' $ac_executable_extensions; do
   2805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2806     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2807        ac_prog_rejected=yes
   2808        continue
   2809      fi
   2810     ac_cv_prog_CC="cc"
   2811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2812     break 2
   2813   fi
   2814 done
   2815   done
   2816 IFS=$as_save_IFS
   2817 
   2818 if test $ac_prog_rejected = yes; then
   2819   # We found a bogon in the path, so make sure we never use it.
   2820   set dummy $ac_cv_prog_CC
   2821   shift
   2822   if test $# != 0; then
   2823     # We chose a different compiler from the bogus one.
   2824     # However, it has the same basename, so the bogon will be chosen
   2825     # first if we set CC to just the basename; use the full file name.
   2826     shift
   2827     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2828   fi
   2829 fi
   2830 fi
   2831 fi
   2832 CC=$ac_cv_prog_CC
   2833 if test -n "$CC"; then
   2834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2835 $as_echo "$CC" >&6; }
   2836 else
   2837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2838 $as_echo "no" >&6; }
   2839 fi
   2840 
   2841 
   2842 fi
   2843 if test -z "$CC"; then
   2844   if test -n "$ac_tool_prefix"; then
   2845   for ac_prog in cl.exe
   2846   do
   2847     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2850 $as_echo_n "checking for $ac_word... " >&6; }
   2851 if ${ac_cv_prog_CC+:} false; then :
   2852   $as_echo_n "(cached) " >&6
   2853 else
   2854   if test -n "$CC"; then
   2855   ac_cv_prog_CC="$CC" # Let the user override the test.
   2856 else
   2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2858 for as_dir in $PATH
   2859 do
   2860   IFS=$as_save_IFS
   2861   test -z "$as_dir" && as_dir=.
   2862     for ac_exec_ext in '' $ac_executable_extensions; do
   2863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2864     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2866     break 2
   2867   fi
   2868 done
   2869   done
   2870 IFS=$as_save_IFS
   2871 
   2872 fi
   2873 fi
   2874 CC=$ac_cv_prog_CC
   2875 if test -n "$CC"; then
   2876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2877 $as_echo "$CC" >&6; }
   2878 else
   2879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2880 $as_echo "no" >&6; }
   2881 fi
   2882 
   2883 
   2884     test -n "$CC" && break
   2885   done
   2886 fi
   2887 if test -z "$CC"; then
   2888   ac_ct_CC=$CC
   2889   for ac_prog in cl.exe
   2890 do
   2891   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2892 set dummy $ac_prog; ac_word=$2
   2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2894 $as_echo_n "checking for $ac_word... " >&6; }
   2895 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2896   $as_echo_n "(cached) " >&6
   2897 else
   2898   if test -n "$ac_ct_CC"; then
   2899   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2900 else
   2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2902 for as_dir in $PATH
   2903 do
   2904   IFS=$as_save_IFS
   2905   test -z "$as_dir" && as_dir=.
   2906     for ac_exec_ext in '' $ac_executable_extensions; do
   2907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2908     ac_cv_prog_ac_ct_CC="$ac_prog"
   2909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2910     break 2
   2911   fi
   2912 done
   2913   done
   2914 IFS=$as_save_IFS
   2915 
   2916 fi
   2917 fi
   2918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2919 if test -n "$ac_ct_CC"; then
   2920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2921 $as_echo "$ac_ct_CC" >&6; }
   2922 else
   2923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2924 $as_echo "no" >&6; }
   2925 fi
   2926 
   2927 
   2928   test -n "$ac_ct_CC" && break
   2929 done
   2930 
   2931   if test "x$ac_ct_CC" = x; then
   2932     CC=""
   2933   else
   2934     case $cross_compiling:$ac_tool_warned in
   2935 yes:)
   2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2938 ac_tool_warned=yes ;;
   2939 esac
   2940     CC=$ac_ct_CC
   2941   fi
   2942 fi
   2943 
   2944 fi
   2945 
   2946 
   2947 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2949 as_fn_error $? "no acceptable C compiler found in \$PATH
   2950 See \`config.log' for more details" "$LINENO" 5; }
   2951 
   2952 # Provide some information about the compiler.
   2953 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   2954 set X $ac_compile
   2955 ac_compiler=$2
   2956 for ac_option in --version -v -V -qversion; do
   2957   { { ac_try="$ac_compiler $ac_option >&5"
   2958 case "(($ac_try" in
   2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2960   *) ac_try_echo=$ac_try;;
   2961 esac
   2962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2963 $as_echo "$ac_try_echo"; } >&5
   2964   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   2965   ac_status=$?
   2966   if test -s conftest.err; then
   2967     sed '10a\
   2968 ... rest of stderr output deleted ...
   2969          10q' conftest.err >conftest.er1
   2970     cat conftest.er1 >&5
   2971   fi
   2972   rm -f conftest.er1 conftest.err
   2973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2974   test $ac_status = 0; }
   2975 done
   2976 
   2977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2978 /* end confdefs.h.  */
   2979 
   2980 int
   2981 main ()
   2982 {
   2983 
   2984   ;
   2985   return 0;
   2986 }
   2987 _ACEOF
   2988 ac_clean_files_save=$ac_clean_files
   2989 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   2990 # Try to create an executable without -o first, disregard a.out.
   2991 # It will help us diagnose broken compilers, and finding out an intuition
   2992 # of exeext.
   2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   2994 $as_echo_n "checking whether the C compiler works... " >&6; }
   2995 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2996 
   2997 # The possible output files:
   2998 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   2999 
   3000 ac_rmfiles=
   3001 for ac_file in $ac_files
   3002 do
   3003   case $ac_file in
   3004     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3005     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3006   esac
   3007 done
   3008 rm -f $ac_rmfiles
   3009 
   3010 if { { ac_try="$ac_link_default"
   3011 case "(($ac_try" in
   3012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3013   *) ac_try_echo=$ac_try;;
   3014 esac
   3015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3016 $as_echo "$ac_try_echo"; } >&5
   3017   (eval "$ac_link_default") 2>&5
   3018   ac_status=$?
   3019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3020   test $ac_status = 0; }; then :
   3021   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3022 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3023 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3024 # so that the user can short-circuit this test for compilers unknown to
   3025 # Autoconf.
   3026 for ac_file in $ac_files ''
   3027 do
   3028   test -f "$ac_file" || continue
   3029   case $ac_file in
   3030     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3031 	;;
   3032     [ab].out )
   3033 	# We found the default executable, but exeext='' is most
   3034 	# certainly right.
   3035 	break;;
   3036     *.* )
   3037 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3038 	then :; else
   3039 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3040 	fi
   3041 	# We set ac_cv_exeext here because the later test for it is not
   3042 	# safe: cross compilers may not add the suffix if given an `-o'
   3043 	# argument, so we may need to know it at that point already.
   3044 	# Even if this section looks crufty: it has the advantage of
   3045 	# actually working.
   3046 	break;;
   3047     * )
   3048 	break;;
   3049   esac
   3050 done
   3051 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3052 
   3053 else
   3054   ac_file=''
   3055 fi
   3056 if test -z "$ac_file"; then :
   3057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3058 $as_echo "no" >&6; }
   3059 $as_echo "$as_me: failed program was:" >&5
   3060 sed 's/^/| /' conftest.$ac_ext >&5
   3061 
   3062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3064 as_fn_error 77 "C compiler cannot create executables
   3065 See \`config.log' for more details" "$LINENO" 5; }
   3066 else
   3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3068 $as_echo "yes" >&6; }
   3069 fi
   3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3071 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3073 $as_echo "$ac_file" >&6; }
   3074 ac_exeext=$ac_cv_exeext
   3075 
   3076 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3077 ac_clean_files=$ac_clean_files_save
   3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3079 $as_echo_n "checking for suffix of executables... " >&6; }
   3080 if { { ac_try="$ac_link"
   3081 case "(($ac_try" in
   3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3083   *) ac_try_echo=$ac_try;;
   3084 esac
   3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3086 $as_echo "$ac_try_echo"; } >&5
   3087   (eval "$ac_link") 2>&5
   3088   ac_status=$?
   3089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3090   test $ac_status = 0; }; then :
   3091   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3092 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3093 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3094 # `rm'.
   3095 for ac_file in conftest.exe conftest conftest.*; do
   3096   test -f "$ac_file" || continue
   3097   case $ac_file in
   3098     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3099     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3100 	  break;;
   3101     * ) break;;
   3102   esac
   3103 done
   3104 else
   3105   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3107 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3108 See \`config.log' for more details" "$LINENO" 5; }
   3109 fi
   3110 rm -f conftest conftest$ac_cv_exeext
   3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3112 $as_echo "$ac_cv_exeext" >&6; }
   3113 
   3114 rm -f conftest.$ac_ext
   3115 EXEEXT=$ac_cv_exeext
   3116 ac_exeext=$EXEEXT
   3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3118 /* end confdefs.h.  */
   3119 #include <stdio.h>
   3120 int
   3121 main ()
   3122 {
   3123 FILE *f = fopen ("conftest.out", "w");
   3124  return ferror (f) || fclose (f) != 0;
   3125 
   3126   ;
   3127   return 0;
   3128 }
   3129 _ACEOF
   3130 ac_clean_files="$ac_clean_files conftest.out"
   3131 # Check that the compiler produces executables we can run.  If not, either
   3132 # the compiler is broken, or we cross compile.
   3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3134 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3135 if test "$cross_compiling" != yes; then
   3136   { { ac_try="$ac_link"
   3137 case "(($ac_try" in
   3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3139   *) ac_try_echo=$ac_try;;
   3140 esac
   3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3142 $as_echo "$ac_try_echo"; } >&5
   3143   (eval "$ac_link") 2>&5
   3144   ac_status=$?
   3145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3146   test $ac_status = 0; }
   3147   if { ac_try='./conftest$ac_cv_exeext'
   3148   { { case "(($ac_try" in
   3149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3150   *) ac_try_echo=$ac_try;;
   3151 esac
   3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3153 $as_echo "$ac_try_echo"; } >&5
   3154   (eval "$ac_try") 2>&5
   3155   ac_status=$?
   3156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3157   test $ac_status = 0; }; }; then
   3158     cross_compiling=no
   3159   else
   3160     if test "$cross_compiling" = maybe; then
   3161 	cross_compiling=yes
   3162     else
   3163 	{ { $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 $? "cannot run C compiled programs.
   3166 If you meant to cross compile, use \`--host'.
   3167 See \`config.log' for more details" "$LINENO" 5; }
   3168     fi
   3169   fi
   3170 fi
   3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3172 $as_echo "$cross_compiling" >&6; }
   3173 
   3174 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3175 ac_clean_files=$ac_clean_files_save
   3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3177 $as_echo_n "checking for suffix of object files... " >&6; }
   3178 if ${ac_cv_objext+:} false; then :
   3179   $as_echo_n "(cached) " >&6
   3180 else
   3181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3182 /* end confdefs.h.  */
   3183 
   3184 int
   3185 main ()
   3186 {
   3187 
   3188   ;
   3189   return 0;
   3190 }
   3191 _ACEOF
   3192 rm -f conftest.o conftest.obj
   3193 if { { ac_try="$ac_compile"
   3194 case "(($ac_try" in
   3195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3196   *) ac_try_echo=$ac_try;;
   3197 esac
   3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3199 $as_echo "$ac_try_echo"; } >&5
   3200   (eval "$ac_compile") 2>&5
   3201   ac_status=$?
   3202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3203   test $ac_status = 0; }; then :
   3204   for ac_file in conftest.o conftest.obj conftest.*; do
   3205   test -f "$ac_file" || continue;
   3206   case $ac_file in
   3207     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3208     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3209        break;;
   3210   esac
   3211 done
   3212 else
   3213   $as_echo "$as_me: failed program was:" >&5
   3214 sed 's/^/| /' conftest.$ac_ext >&5
   3215 
   3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3218 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3219 See \`config.log' for more details" "$LINENO" 5; }
   3220 fi
   3221 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3222 fi
   3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3224 $as_echo "$ac_cv_objext" >&6; }
   3225 OBJEXT=$ac_cv_objext
   3226 ac_objext=$OBJEXT
   3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3228 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3229 if ${ac_cv_c_compiler_gnu+:} false; then :
   3230   $as_echo_n "(cached) " >&6
   3231 else
   3232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3233 /* end confdefs.h.  */
   3234 
   3235 int
   3236 main ()
   3237 {
   3238 #ifndef __GNUC__
   3239        choke me
   3240 #endif
   3241 
   3242   ;
   3243   return 0;
   3244 }
   3245 _ACEOF
   3246 if ac_fn_c_try_compile "$LINENO"; then :
   3247   ac_compiler_gnu=yes
   3248 else
   3249   ac_compiler_gnu=no
   3250 fi
   3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3253 
   3254 fi
   3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3256 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3257 if test $ac_compiler_gnu = yes; then
   3258   GCC=yes
   3259 else
   3260   GCC=
   3261 fi
   3262 ac_test_CFLAGS=${CFLAGS+set}
   3263 ac_save_CFLAGS=$CFLAGS
   3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3265 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3266 if ${ac_cv_prog_cc_g+:} false; then :
   3267   $as_echo_n "(cached) " >&6
   3268 else
   3269   ac_save_c_werror_flag=$ac_c_werror_flag
   3270    ac_c_werror_flag=yes
   3271    ac_cv_prog_cc_g=no
   3272    CFLAGS="-g"
   3273    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3274 /* end confdefs.h.  */
   3275 
   3276 int
   3277 main ()
   3278 {
   3279 
   3280   ;
   3281   return 0;
   3282 }
   3283 _ACEOF
   3284 if ac_fn_c_try_compile "$LINENO"; then :
   3285   ac_cv_prog_cc_g=yes
   3286 else
   3287   CFLAGS=""
   3288       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3289 /* end confdefs.h.  */
   3290 
   3291 int
   3292 main ()
   3293 {
   3294 
   3295   ;
   3296   return 0;
   3297 }
   3298 _ACEOF
   3299 if ac_fn_c_try_compile "$LINENO"; then :
   3300 
   3301 else
   3302   ac_c_werror_flag=$ac_save_c_werror_flag
   3303 	 CFLAGS="-g"
   3304 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3305 /* end confdefs.h.  */
   3306 
   3307 int
   3308 main ()
   3309 {
   3310 
   3311   ;
   3312   return 0;
   3313 }
   3314 _ACEOF
   3315 if ac_fn_c_try_compile "$LINENO"; then :
   3316   ac_cv_prog_cc_g=yes
   3317 fi
   3318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3319 fi
   3320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3321 fi
   3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3323    ac_c_werror_flag=$ac_save_c_werror_flag
   3324 fi
   3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3326 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3327 if test "$ac_test_CFLAGS" = set; then
   3328   CFLAGS=$ac_save_CFLAGS
   3329 elif test $ac_cv_prog_cc_g = yes; then
   3330   if test "$GCC" = yes; then
   3331     CFLAGS="-g -O2"
   3332   else
   3333     CFLAGS="-g"
   3334   fi
   3335 else
   3336   if test "$GCC" = yes; then
   3337     CFLAGS="-O2"
   3338   else
   3339     CFLAGS=
   3340   fi
   3341 fi
   3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3343 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3344 if ${ac_cv_prog_cc_c89+:} false; then :
   3345   $as_echo_n "(cached) " >&6
   3346 else
   3347   ac_cv_prog_cc_c89=no
   3348 ac_save_CC=$CC
   3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3350 /* end confdefs.h.  */
   3351 #include <stdarg.h>
   3352 #include <stdio.h>
   3353 struct stat;
   3354 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3355 struct buf { int x; };
   3356 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3357 static char *e (p, i)
   3358      char **p;
   3359      int i;
   3360 {
   3361   return p[i];
   3362 }
   3363 static char *f (char * (*g) (char **, int), char **p, ...)
   3364 {
   3365   char *s;
   3366   va_list v;
   3367   va_start (v,p);
   3368   s = g (p, va_arg (v,int));
   3369   va_end (v);
   3370   return s;
   3371 }
   3372 
   3373 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3374    function prototypes and stuff, but not '\xHH' hex character constants.
   3375    These don't provoke an error unfortunately, instead are silently treated
   3376    as 'x'.  The following induces an error, until -std is added to get
   3377    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3378    array size at least.  It's necessary to write '\x00'==0 to get something
   3379    that's true only with -std.  */
   3380 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3381 
   3382 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3383    inside strings and character constants.  */
   3384 #define FOO(x) 'x'
   3385 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3386 
   3387 int test (int i, double x);
   3388 struct s1 {int (*f) (int a);};
   3389 struct s2 {int (*f) (double a);};
   3390 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3391 int argc;
   3392 char **argv;
   3393 int
   3394 main ()
   3395 {
   3396 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3397   ;
   3398   return 0;
   3399 }
   3400 _ACEOF
   3401 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3402 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3403 do
   3404   CC="$ac_save_CC $ac_arg"
   3405   if ac_fn_c_try_compile "$LINENO"; then :
   3406   ac_cv_prog_cc_c89=$ac_arg
   3407 fi
   3408 rm -f core conftest.err conftest.$ac_objext
   3409   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3410 done
   3411 rm -f conftest.$ac_ext
   3412 CC=$ac_save_CC
   3413 
   3414 fi
   3415 # AC_CACHE_VAL
   3416 case "x$ac_cv_prog_cc_c89" in
   3417   x)
   3418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3419 $as_echo "none needed" >&6; } ;;
   3420   xno)
   3421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3422 $as_echo "unsupported" >&6; } ;;
   3423   *)
   3424     CC="$CC $ac_cv_prog_cc_c89"
   3425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3426 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3427 esac
   3428 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3429 
   3430 fi
   3431 
   3432 ac_ext=c
   3433 ac_cpp='$CPP $CPPFLAGS'
   3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3437 
   3438 
   3439 ac_ext=c
   3440 ac_cpp='$CPP $CPPFLAGS'
   3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3445 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3446 # On Suns, sometimes $CPP names a directory.
   3447 if test -n "$CPP" && test -d "$CPP"; then
   3448   CPP=
   3449 fi
   3450 if test -z "$CPP"; then
   3451   if ${ac_cv_prog_CPP+:} false; then :
   3452   $as_echo_n "(cached) " >&6
   3453 else
   3454       # Double quotes because CPP needs to be expanded
   3455     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3456     do
   3457       ac_preproc_ok=false
   3458 for ac_c_preproc_warn_flag in '' yes
   3459 do
   3460   # Use a header file that comes with gcc, so configuring glibc
   3461   # with a fresh cross-compiler works.
   3462   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3463   # <limits.h> exists even on freestanding compilers.
   3464   # On the NeXT, cc -E runs the code through the compiler's parser,
   3465   # not just through cpp. "Syntax error" is here to catch this case.
   3466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3467 /* end confdefs.h.  */
   3468 #ifdef __STDC__
   3469 # include <limits.h>
   3470 #else
   3471 # include <assert.h>
   3472 #endif
   3473 		     Syntax error
   3474 _ACEOF
   3475 if ac_fn_c_try_cpp "$LINENO"; then :
   3476 
   3477 else
   3478   # Broken: fails on valid input.
   3479 continue
   3480 fi
   3481 rm -f conftest.err conftest.i conftest.$ac_ext
   3482 
   3483   # OK, works on sane cases.  Now check whether nonexistent headers
   3484   # can be detected and how.
   3485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3486 /* end confdefs.h.  */
   3487 #include <ac_nonexistent.h>
   3488 _ACEOF
   3489 if ac_fn_c_try_cpp "$LINENO"; then :
   3490   # Broken: success on invalid input.
   3491 continue
   3492 else
   3493   # Passes both tests.
   3494 ac_preproc_ok=:
   3495 break
   3496 fi
   3497 rm -f conftest.err conftest.i conftest.$ac_ext
   3498 
   3499 done
   3500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3501 rm -f conftest.i conftest.err conftest.$ac_ext
   3502 if $ac_preproc_ok; then :
   3503   break
   3504 fi
   3505 
   3506     done
   3507     ac_cv_prog_CPP=$CPP
   3508 
   3509 fi
   3510   CPP=$ac_cv_prog_CPP
   3511 else
   3512   ac_cv_prog_CPP=$CPP
   3513 fi
   3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3515 $as_echo "$CPP" >&6; }
   3516 ac_preproc_ok=false
   3517 for ac_c_preproc_warn_flag in '' yes
   3518 do
   3519   # Use a header file that comes with gcc, so configuring glibc
   3520   # with a fresh cross-compiler works.
   3521   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3522   # <limits.h> exists even on freestanding compilers.
   3523   # On the NeXT, cc -E runs the code through the compiler's parser,
   3524   # not just through cpp. "Syntax error" is here to catch this case.
   3525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3526 /* end confdefs.h.  */
   3527 #ifdef __STDC__
   3528 # include <limits.h>
   3529 #else
   3530 # include <assert.h>
   3531 #endif
   3532 		     Syntax error
   3533 _ACEOF
   3534 if ac_fn_c_try_cpp "$LINENO"; then :
   3535 
   3536 else
   3537   # Broken: fails on valid input.
   3538 continue
   3539 fi
   3540 rm -f conftest.err conftest.i conftest.$ac_ext
   3541 
   3542   # OK, works on sane cases.  Now check whether nonexistent headers
   3543   # can be detected and how.
   3544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3545 /* end confdefs.h.  */
   3546 #include <ac_nonexistent.h>
   3547 _ACEOF
   3548 if ac_fn_c_try_cpp "$LINENO"; then :
   3549   # Broken: success on invalid input.
   3550 continue
   3551 else
   3552   # Passes both tests.
   3553 ac_preproc_ok=:
   3554 break
   3555 fi
   3556 rm -f conftest.err conftest.i conftest.$ac_ext
   3557 
   3558 done
   3559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3560 rm -f conftest.i conftest.err conftest.$ac_ext
   3561 if $ac_preproc_ok; then :
   3562 
   3563 else
   3564   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3566 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   3567 See \`config.log' for more details" "$LINENO" 5; }
   3568 fi
   3569 
   3570 ac_ext=c
   3571 ac_cpp='$CPP $CPPFLAGS'
   3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3575 
   3576 
   3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3578 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3579 if ${ac_cv_path_GREP+:} false; then :
   3580   $as_echo_n "(cached) " >&6
   3581 else
   3582   if test -z "$GREP"; then
   3583   ac_path_GREP_found=false
   3584   # Loop through the user's path and test for each of PROGNAME-LIST
   3585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3586 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3587 do
   3588   IFS=$as_save_IFS
   3589   test -z "$as_dir" && as_dir=.
   3590     for ac_prog in grep ggrep; do
   3591     for ac_exec_ext in '' $ac_executable_extensions; do
   3592       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3593       as_fn_executable_p "$ac_path_GREP" || continue
   3594 # Check for GNU ac_path_GREP and select it if it is found.
   3595   # Check for GNU $ac_path_GREP
   3596 case `"$ac_path_GREP" --version 2>&1` in
   3597 *GNU*)
   3598   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3599 *)
   3600   ac_count=0
   3601   $as_echo_n 0123456789 >"conftest.in"
   3602   while :
   3603   do
   3604     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3605     mv "conftest.tmp" "conftest.in"
   3606     cp "conftest.in" "conftest.nl"
   3607     $as_echo 'GREP' >> "conftest.nl"
   3608     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3609     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3610     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3611     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3612       # Best one so far, save it but keep looking for a better one
   3613       ac_cv_path_GREP="$ac_path_GREP"
   3614       ac_path_GREP_max=$ac_count
   3615     fi
   3616     # 10*(2^10) chars as input seems more than enough
   3617     test $ac_count -gt 10 && break
   3618   done
   3619   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3620 esac
   3621 
   3622       $ac_path_GREP_found && break 3
   3623     done
   3624   done
   3625   done
   3626 IFS=$as_save_IFS
   3627   if test -z "$ac_cv_path_GREP"; then
   3628     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3629   fi
   3630 else
   3631   ac_cv_path_GREP=$GREP
   3632 fi
   3633 
   3634 fi
   3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3636 $as_echo "$ac_cv_path_GREP" >&6; }
   3637  GREP="$ac_cv_path_GREP"
   3638 
   3639 
   3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3641 $as_echo_n "checking for egrep... " >&6; }
   3642 if ${ac_cv_path_EGREP+:} false; then :
   3643   $as_echo_n "(cached) " >&6
   3644 else
   3645   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3646    then ac_cv_path_EGREP="$GREP -E"
   3647    else
   3648      if test -z "$EGREP"; then
   3649   ac_path_EGREP_found=false
   3650   # Loop through the user's path and test for each of PROGNAME-LIST
   3651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3653 do
   3654   IFS=$as_save_IFS
   3655   test -z "$as_dir" && as_dir=.
   3656     for ac_prog in egrep; do
   3657     for ac_exec_ext in '' $ac_executable_extensions; do
   3658       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3659       as_fn_executable_p "$ac_path_EGREP" || continue
   3660 # Check for GNU ac_path_EGREP and select it if it is found.
   3661   # Check for GNU $ac_path_EGREP
   3662 case `"$ac_path_EGREP" --version 2>&1` in
   3663 *GNU*)
   3664   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3665 *)
   3666   ac_count=0
   3667   $as_echo_n 0123456789 >"conftest.in"
   3668   while :
   3669   do
   3670     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3671     mv "conftest.tmp" "conftest.in"
   3672     cp "conftest.in" "conftest.nl"
   3673     $as_echo 'EGREP' >> "conftest.nl"
   3674     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3675     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3676     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3677     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3678       # Best one so far, save it but keep looking for a better one
   3679       ac_cv_path_EGREP="$ac_path_EGREP"
   3680       ac_path_EGREP_max=$ac_count
   3681     fi
   3682     # 10*(2^10) chars as input seems more than enough
   3683     test $ac_count -gt 10 && break
   3684   done
   3685   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3686 esac
   3687 
   3688       $ac_path_EGREP_found && break 3
   3689     done
   3690   done
   3691   done
   3692 IFS=$as_save_IFS
   3693   if test -z "$ac_cv_path_EGREP"; then
   3694     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3695   fi
   3696 else
   3697   ac_cv_path_EGREP=$EGREP
   3698 fi
   3699 
   3700    fi
   3701 fi
   3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   3703 $as_echo "$ac_cv_path_EGREP" >&6; }
   3704  EGREP="$ac_cv_path_EGREP"
   3705 
   3706 
   3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   3708 $as_echo_n "checking for ANSI C header files... " >&6; }
   3709 if ${ac_cv_header_stdc+:} false; then :
   3710   $as_echo_n "(cached) " >&6
   3711 else
   3712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3713 /* end confdefs.h.  */
   3714 #include <stdlib.h>
   3715 #include <stdarg.h>
   3716 #include <string.h>
   3717 #include <float.h>
   3718 
   3719 int
   3720 main ()
   3721 {
   3722 
   3723   ;
   3724   return 0;
   3725 }
   3726 _ACEOF
   3727 if ac_fn_c_try_compile "$LINENO"; then :
   3728   ac_cv_header_stdc=yes
   3729 else
   3730   ac_cv_header_stdc=no
   3731 fi
   3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3733 
   3734 if test $ac_cv_header_stdc = yes; then
   3735   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3737 /* end confdefs.h.  */
   3738 #include <string.h>
   3739 
   3740 _ACEOF
   3741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3742   $EGREP "memchr" >/dev/null 2>&1; then :
   3743 
   3744 else
   3745   ac_cv_header_stdc=no
   3746 fi
   3747 rm -f conftest*
   3748 
   3749 fi
   3750 
   3751 if test $ac_cv_header_stdc = yes; then
   3752   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3754 /* end confdefs.h.  */
   3755 #include <stdlib.h>
   3756 
   3757 _ACEOF
   3758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3759   $EGREP "free" >/dev/null 2>&1; then :
   3760 
   3761 else
   3762   ac_cv_header_stdc=no
   3763 fi
   3764 rm -f conftest*
   3765 
   3766 fi
   3767 
   3768 if test $ac_cv_header_stdc = yes; then
   3769   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3770   if test "$cross_compiling" = yes; then :
   3771   :
   3772 else
   3773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3774 /* end confdefs.h.  */
   3775 #include <ctype.h>
   3776 #include <stdlib.h>
   3777 #if ((' ' & 0x0FF) == 0x020)
   3778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3780 #else
   3781 # define ISLOWER(c) \
   3782 		   (('a' <= (c) && (c) <= 'i') \
   3783 		     || ('j' <= (c) && (c) <= 'r') \
   3784 		     || ('s' <= (c) && (c) <= 'z'))
   3785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3786 #endif
   3787 
   3788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3789 int
   3790 main ()
   3791 {
   3792   int i;
   3793   for (i = 0; i < 256; i++)
   3794     if (XOR (islower (i), ISLOWER (i))
   3795 	|| toupper (i) != TOUPPER (i))
   3796       return 2;
   3797   return 0;
   3798 }
   3799 _ACEOF
   3800 if ac_fn_c_try_run "$LINENO"; then :
   3801 
   3802 else
   3803   ac_cv_header_stdc=no
   3804 fi
   3805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   3806   conftest.$ac_objext conftest.beam conftest.$ac_ext
   3807 fi
   3808 
   3809 fi
   3810 fi
   3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   3812 $as_echo "$ac_cv_header_stdc" >&6; }
   3813 if test $ac_cv_header_stdc = yes; then
   3814 
   3815 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   3816 
   3817 fi
   3818 
   3819 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3820 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3821 		  inttypes.h stdint.h unistd.h
   3822 do :
   3823   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3824 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   3825 "
   3826 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   3827   cat >>confdefs.h <<_ACEOF
   3828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3829 _ACEOF
   3830 
   3831 fi
   3832 
   3833 done
   3834 
   3835 
   3836 
   3837   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   3838 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   3839   MINIX=yes
   3840 else
   3841   MINIX=
   3842 fi
   3843 
   3844 
   3845   if test "$MINIX" = yes; then
   3846 
   3847 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   3848 
   3849 
   3850 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   3851 
   3852 
   3853 $as_echo "#define _MINIX 1" >>confdefs.h
   3854 
   3855   fi
   3856 
   3857 
   3858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   3859 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   3860 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   3861   $as_echo_n "(cached) " >&6
   3862 else
   3863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3864 /* end confdefs.h.  */
   3865 
   3866 #         define __EXTENSIONS__ 1
   3867           $ac_includes_default
   3868 int
   3869 main ()
   3870 {
   3871 
   3872   ;
   3873   return 0;
   3874 }
   3875 _ACEOF
   3876 if ac_fn_c_try_compile "$LINENO"; then :
   3877   ac_cv_safe_to_define___extensions__=yes
   3878 else
   3879   ac_cv_safe_to_define___extensions__=no
   3880 fi
   3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3882 fi
   3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   3884 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   3885   test $ac_cv_safe_to_define___extensions__ = yes &&
   3886     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   3887 
   3888   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   3889 
   3890   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   3891 
   3892   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   3893 
   3894   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   3895 
   3896 
   3897 
   3898 # Enable RFC 3542 APIs on macOS
   3899 
   3900 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
   3901 
   3902 
   3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   3904 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   3905 set x ${MAKE-make}
   3906 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   3907 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   3908   $as_echo_n "(cached) " >&6
   3909 else
   3910   cat >conftest.make <<\_ACEOF
   3911 SHELL = /bin/sh
   3912 all:
   3913 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   3914 _ACEOF
   3915 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   3916 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   3917   *@@@%%%=?*=@@@%%%*)
   3918     eval ac_cv_prog_make_${ac_make}_set=yes;;
   3919   *)
   3920     eval ac_cv_prog_make_${ac_make}_set=no;;
   3921 esac
   3922 rm -f conftest.make
   3923 fi
   3924 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   3925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3926 $as_echo "yes" >&6; }
   3927   SET_MAKE=
   3928 else
   3929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3930 $as_echo "no" >&6; }
   3931   SET_MAKE="MAKE=${MAKE-make}"
   3932 fi
   3933 
   3934 
   3935 case `pwd` in
   3936   *\ * | *\	*)
   3937     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   3938 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   3939 esac
   3940 
   3941 
   3942 
   3943 macro_version='2.4.6'
   3944 macro_revision='2.4.6'
   3945 
   3946 
   3947 
   3948 
   3949 
   3950 
   3951 
   3952 
   3953 
   3954 
   3955 
   3956 
   3957 
   3958 ltmain=$ac_aux_dir/ltmain.sh
   3959 
   3960 # Backslashify metacharacters that are still active within
   3961 # double-quoted strings.
   3962 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   3963 
   3964 # Same as above, but do not quote variable references.
   3965 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   3966 
   3967 # Sed substitution to delay expansion of an escaped shell variable in a
   3968 # double_quote_subst'ed string.
   3969 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   3970 
   3971 # Sed substitution to delay expansion of an escaped single quote.
   3972 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   3973 
   3974 # Sed substitution to avoid accidental globbing in evaled expressions
   3975 no_glob_subst='s/\*/\\\*/g'
   3976 
   3977 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   3978 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   3979 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   3980 
   3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   3982 $as_echo_n "checking how to print strings... " >&6; }
   3983 # Test print first, because it will be a builtin if present.
   3984 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   3985    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   3986   ECHO='print -r --'
   3987 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   3988   ECHO='printf %s\n'
   3989 else
   3990   # Use this function as a fallback that always works.
   3991   func_fallback_echo ()
   3992   {
   3993     eval 'cat <<_LTECHO_EOF
   3994 $1
   3995 _LTECHO_EOF'
   3996   }
   3997   ECHO='func_fallback_echo'
   3998 fi
   3999 
   4000 # func_echo_all arg...
   4001 # Invoke $ECHO with all args, space-separated.
   4002 func_echo_all ()
   4003 {
   4004     $ECHO ""
   4005 }
   4006 
   4007 case $ECHO in
   4008   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   4009 $as_echo "printf" >&6; } ;;
   4010   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   4011 $as_echo "print -r" >&6; } ;;
   4012   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   4013 $as_echo "cat" >&6; } ;;
   4014 esac
   4015 
   4016 
   4017 
   4018 
   4019 
   4020 
   4021 
   4022 
   4023 
   4024 
   4025 
   4026 
   4027 
   4028 
   4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4030 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   4031 if ${ac_cv_path_SED+:} false; then :
   4032   $as_echo_n "(cached) " >&6
   4033 else
   4034             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4035      for ac_i in 1 2 3 4 5 6 7; do
   4036        ac_script="$ac_script$as_nl$ac_script"
   4037      done
   4038      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4039      { ac_script=; unset ac_script;}
   4040      if test -z "$SED"; then
   4041   ac_path_SED_found=false
   4042   # Loop through the user's path and test for each of PROGNAME-LIST
   4043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4044 for as_dir in $PATH
   4045 do
   4046   IFS=$as_save_IFS
   4047   test -z "$as_dir" && as_dir=.
   4048     for ac_prog in sed gsed; do
   4049     for ac_exec_ext in '' $ac_executable_extensions; do
   4050       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   4051       as_fn_executable_p "$ac_path_SED" || continue
   4052 # Check for GNU ac_path_SED and select it if it is found.
   4053   # Check for GNU $ac_path_SED
   4054 case `"$ac_path_SED" --version 2>&1` in
   4055 *GNU*)
   4056   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4057 *)
   4058   ac_count=0
   4059   $as_echo_n 0123456789 >"conftest.in"
   4060   while :
   4061   do
   4062     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4063     mv "conftest.tmp" "conftest.in"
   4064     cp "conftest.in" "conftest.nl"
   4065     $as_echo '' >> "conftest.nl"
   4066     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4067     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4068     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4069     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4070       # Best one so far, save it but keep looking for a better one
   4071       ac_cv_path_SED="$ac_path_SED"
   4072       ac_path_SED_max=$ac_count
   4073     fi
   4074     # 10*(2^10) chars as input seems more than enough
   4075     test $ac_count -gt 10 && break
   4076   done
   4077   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4078 esac
   4079 
   4080       $ac_path_SED_found && break 3
   4081     done
   4082   done
   4083   done
   4084 IFS=$as_save_IFS
   4085   if test -z "$ac_cv_path_SED"; then
   4086     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4087   fi
   4088 else
   4089   ac_cv_path_SED=$SED
   4090 fi
   4091 
   4092 fi
   4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4094 $as_echo "$ac_cv_path_SED" >&6; }
   4095  SED="$ac_cv_path_SED"
   4096   rm -f conftest.sed
   4097 
   4098 test -z "$SED" && SED=sed
   4099 Xsed="$SED -e 1s/^X//"
   4100 
   4101 
   4102 
   4103 
   4104 
   4105 
   4106 
   4107 
   4108 
   4109 
   4110 
   4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   4112 $as_echo_n "checking for fgrep... " >&6; }
   4113 if ${ac_cv_path_FGREP+:} false; then :
   4114   $as_echo_n "(cached) " >&6
   4115 else
   4116   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   4117    then ac_cv_path_FGREP="$GREP -F"
   4118    else
   4119      if test -z "$FGREP"; then
   4120   ac_path_FGREP_found=false
   4121   # Loop through the user's path and test for each of PROGNAME-LIST
   4122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4124 do
   4125   IFS=$as_save_IFS
   4126   test -z "$as_dir" && as_dir=.
   4127     for ac_prog in fgrep; do
   4128     for ac_exec_ext in '' $ac_executable_extensions; do
   4129       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   4130       as_fn_executable_p "$ac_path_FGREP" || continue
   4131 # Check for GNU ac_path_FGREP and select it if it is found.
   4132   # Check for GNU $ac_path_FGREP
   4133 case `"$ac_path_FGREP" --version 2>&1` in
   4134 *GNU*)
   4135   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   4136 *)
   4137   ac_count=0
   4138   $as_echo_n 0123456789 >"conftest.in"
   4139   while :
   4140   do
   4141     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4142     mv "conftest.tmp" "conftest.in"
   4143     cp "conftest.in" "conftest.nl"
   4144     $as_echo 'FGREP' >> "conftest.nl"
   4145     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4146     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4147     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4148     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   4149       # Best one so far, save it but keep looking for a better one
   4150       ac_cv_path_FGREP="$ac_path_FGREP"
   4151       ac_path_FGREP_max=$ac_count
   4152     fi
   4153     # 10*(2^10) chars as input seems more than enough
   4154     test $ac_count -gt 10 && break
   4155   done
   4156   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4157 esac
   4158 
   4159       $ac_path_FGREP_found && break 3
   4160     done
   4161   done
   4162   done
   4163 IFS=$as_save_IFS
   4164   if test -z "$ac_cv_path_FGREP"; then
   4165     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4166   fi
   4167 else
   4168   ac_cv_path_FGREP=$FGREP
   4169 fi
   4170 
   4171    fi
   4172 fi
   4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   4174 $as_echo "$ac_cv_path_FGREP" >&6; }
   4175  FGREP="$ac_cv_path_FGREP"
   4176 
   4177 
   4178 test -z "$GREP" && GREP=grep
   4179 
   4180 
   4181 
   4182 
   4183 
   4184 
   4185 
   4186 
   4187 
   4188 
   4189 
   4190 
   4191 
   4192 
   4193 
   4194 
   4195 
   4196 
   4197 
   4198 # Check whether --with-gnu-ld was given.
   4199 if test "${with_gnu_ld+set}" = set; then :
   4200   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
   4201 else
   4202   with_gnu_ld=no
   4203 fi
   4204 
   4205 ac_prog=ld
   4206 if test yes = "$GCC"; then
   4207   # Check if gcc -print-prog-name=ld gives a path.
   4208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   4209 $as_echo_n "checking for ld used by $CC... " >&6; }
   4210   case $host in
   4211   *-*-mingw*)
   4212     # gcc leaves a trailing carriage return, which upsets mingw
   4213     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   4214   *)
   4215     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   4216   esac
   4217   case $ac_prog in
   4218     # Accept absolute paths.
   4219     [\\/]* | ?:[\\/]*)
   4220       re_direlt='/[^/][^/]*/\.\./'
   4221       # Canonicalize the pathname of ld
   4222       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   4223       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   4224 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   4225       done
   4226       test -z "$LD" && LD=$ac_prog
   4227       ;;
   4228   "")
   4229     # If it fails, then pretend we aren't using GCC.
   4230     ac_prog=ld
   4231     ;;
   4232   *)
   4233     # If it is relative, then search for the first ld in PATH.
   4234     with_gnu_ld=unknown
   4235     ;;
   4236   esac
   4237 elif test yes = "$with_gnu_ld"; then
   4238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   4239 $as_echo_n "checking for GNU ld... " >&6; }
   4240 else
   4241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   4242 $as_echo_n "checking for non-GNU ld... " >&6; }
   4243 fi
   4244 if ${lt_cv_path_LD+:} false; then :
   4245   $as_echo_n "(cached) " >&6
   4246 else
   4247   if test -z "$LD"; then
   4248   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4249   for ac_dir in $PATH; do
   4250     IFS=$lt_save_ifs
   4251     test -z "$ac_dir" && ac_dir=.
   4252     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   4253       lt_cv_path_LD=$ac_dir/$ac_prog
   4254       # Check to see if the program is GNU ld.  I'd rather use --version,
   4255       # but apparently some variants of GNU ld only accept -v.
   4256       # Break only if it was the GNU/non-GNU ld that we prefer.
   4257       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   4258       *GNU* | *'with BFD'*)
   4259 	test no != "$with_gnu_ld" && break
   4260 	;;
   4261       *)
   4262 	test yes != "$with_gnu_ld" && break
   4263 	;;
   4264       esac
   4265     fi
   4266   done
   4267   IFS=$lt_save_ifs
   4268 else
   4269   lt_cv_path_LD=$LD # Let the user override the test with a path.
   4270 fi
   4271 fi
   4272 
   4273 LD=$lt_cv_path_LD
   4274 if test -n "$LD"; then
   4275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   4276 $as_echo "$LD" >&6; }
   4277 else
   4278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4279 $as_echo "no" >&6; }
   4280 fi
   4281 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   4283 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   4284 if ${lt_cv_prog_gnu_ld+:} false; then :
   4285   $as_echo_n "(cached) " >&6
   4286 else
   4287   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   4288 case `$LD -v 2>&1 </dev/null` in
   4289 *GNU* | *'with BFD'*)
   4290   lt_cv_prog_gnu_ld=yes
   4291   ;;
   4292 *)
   4293   lt_cv_prog_gnu_ld=no
   4294   ;;
   4295 esac
   4296 fi
   4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   4298 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   4299 with_gnu_ld=$lt_cv_prog_gnu_ld
   4300 
   4301 
   4302 
   4303 
   4304 
   4305 
   4306 
   4307 
   4308 
   4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   4310 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   4311 if ${lt_cv_path_NM+:} false; then :
   4312   $as_echo_n "(cached) " >&6
   4313 else
   4314   if test -n "$NM"; then
   4315   # Let the user override the test.
   4316   lt_cv_path_NM=$NM
   4317 else
   4318   lt_nm_to_check=${ac_tool_prefix}nm
   4319   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   4320     lt_nm_to_check="$lt_nm_to_check nm"
   4321   fi
   4322   for lt_tmp_nm in $lt_nm_to_check; do
   4323     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4324     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   4325       IFS=$lt_save_ifs
   4326       test -z "$ac_dir" && ac_dir=.
   4327       tmp_nm=$ac_dir/$lt_tmp_nm
   4328       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   4329 	# Check to see if the nm accepts a BSD-compat flag.
   4330 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   4331 	#   nm: unknown option "B" ignored
   4332 	# Tru64's nm complains that /dev/null is an invalid object file
   4333 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   4334 	case $build_os in
   4335 	mingw*) lt_bad_file=conftest.nm/nofile ;;
   4336 	*) lt_bad_file=/dev/null ;;
   4337 	esac
   4338 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
   4339 	*$lt_bad_file* | *'Invalid file or object type'*)
   4340 	  lt_cv_path_NM="$tmp_nm -B"
   4341 	  break 2
   4342 	  ;;
   4343 	*)
   4344 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   4345 	  */dev/null*)
   4346 	    lt_cv_path_NM="$tmp_nm -p"
   4347 	    break 2
   4348 	    ;;
   4349 	  *)
   4350 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   4351 	    continue # so that we can try to find one that supports BSD flags
   4352 	    ;;
   4353 	  esac
   4354 	  ;;
   4355 	esac
   4356       fi
   4357     done
   4358     IFS=$lt_save_ifs
   4359   done
   4360   : ${lt_cv_path_NM=no}
   4361 fi
   4362 fi
   4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   4364 $as_echo "$lt_cv_path_NM" >&6; }
   4365 if test no != "$lt_cv_path_NM"; then
   4366   NM=$lt_cv_path_NM
   4367 else
   4368   # Didn't find any BSD compatible name lister, look for dumpbin.
   4369   if test -n "$DUMPBIN"; then :
   4370     # Let the user override the test.
   4371   else
   4372     if test -n "$ac_tool_prefix"; then
   4373   for ac_prog in dumpbin "link -dump"
   4374   do
   4375     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4378 $as_echo_n "checking for $ac_word... " >&6; }
   4379 if ${ac_cv_prog_DUMPBIN+:} false; then :
   4380   $as_echo_n "(cached) " >&6
   4381 else
   4382   if test -n "$DUMPBIN"; then
   4383   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   4384 else
   4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4386 for as_dir in $PATH
   4387 do
   4388   IFS=$as_save_IFS
   4389   test -z "$as_dir" && as_dir=.
   4390     for ac_exec_ext in '' $ac_executable_extensions; do
   4391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4392     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   4393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4394     break 2
   4395   fi
   4396 done
   4397   done
   4398 IFS=$as_save_IFS
   4399 
   4400 fi
   4401 fi
   4402 DUMPBIN=$ac_cv_prog_DUMPBIN
   4403 if test -n "$DUMPBIN"; then
   4404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   4405 $as_echo "$DUMPBIN" >&6; }
   4406 else
   4407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4408 $as_echo "no" >&6; }
   4409 fi
   4410 
   4411 
   4412     test -n "$DUMPBIN" && break
   4413   done
   4414 fi
   4415 if test -z "$DUMPBIN"; then
   4416   ac_ct_DUMPBIN=$DUMPBIN
   4417   for ac_prog in dumpbin "link -dump"
   4418 do
   4419   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4420 set dummy $ac_prog; ac_word=$2
   4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4422 $as_echo_n "checking for $ac_word... " >&6; }
   4423 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   4424   $as_echo_n "(cached) " >&6
   4425 else
   4426   if test -n "$ac_ct_DUMPBIN"; then
   4427   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   4428 else
   4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4430 for as_dir in $PATH
   4431 do
   4432   IFS=$as_save_IFS
   4433   test -z "$as_dir" && as_dir=.
   4434     for ac_exec_ext in '' $ac_executable_extensions; do
   4435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4436     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   4437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4438     break 2
   4439   fi
   4440 done
   4441   done
   4442 IFS=$as_save_IFS
   4443 
   4444 fi
   4445 fi
   4446 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   4447 if test -n "$ac_ct_DUMPBIN"; then
   4448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   4449 $as_echo "$ac_ct_DUMPBIN" >&6; }
   4450 else
   4451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4452 $as_echo "no" >&6; }
   4453 fi
   4454 
   4455 
   4456   test -n "$ac_ct_DUMPBIN" && break
   4457 done
   4458 
   4459   if test "x$ac_ct_DUMPBIN" = x; then
   4460     DUMPBIN=":"
   4461   else
   4462     case $cross_compiling:$ac_tool_warned in
   4463 yes:)
   4464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4466 ac_tool_warned=yes ;;
   4467 esac
   4468     DUMPBIN=$ac_ct_DUMPBIN
   4469   fi
   4470 fi
   4471 
   4472     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
   4473     *COFF*)
   4474       DUMPBIN="$DUMPBIN -symbols -headers"
   4475       ;;
   4476     *)
   4477       DUMPBIN=:
   4478       ;;
   4479     esac
   4480   fi
   4481 
   4482   if test : != "$DUMPBIN"; then
   4483     NM=$DUMPBIN
   4484   fi
   4485 fi
   4486 test -z "$NM" && NM=nm
   4487 
   4488 
   4489 
   4490 
   4491 
   4492 
   4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   4494 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   4495 if ${lt_cv_nm_interface+:} false; then :
   4496   $as_echo_n "(cached) " >&6
   4497 else
   4498   lt_cv_nm_interface="BSD nm"
   4499   echo "int some_variable = 0;" > conftest.$ac_ext
   4500   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   4501   (eval "$ac_compile" 2>conftest.err)
   4502   cat conftest.err >&5
   4503   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   4504   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   4505   cat conftest.err >&5
   4506   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   4507   cat conftest.out >&5
   4508   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   4509     lt_cv_nm_interface="MS dumpbin"
   4510   fi
   4511   rm -f conftest*
   4512 fi
   4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   4514 $as_echo "$lt_cv_nm_interface" >&6; }
   4515 
   4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   4517 $as_echo_n "checking whether ln -s works... " >&6; }
   4518 LN_S=$as_ln_s
   4519 if test "$LN_S" = "ln -s"; then
   4520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4521 $as_echo "yes" >&6; }
   4522 else
   4523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   4524 $as_echo "no, using $LN_S" >&6; }
   4525 fi
   4526 
   4527 # find the maximum length of command line arguments
   4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   4529 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   4530 if ${lt_cv_sys_max_cmd_len+:} false; then :
   4531   $as_echo_n "(cached) " >&6
   4532 else
   4533     i=0
   4534   teststring=ABCD
   4535 
   4536   case $build_os in
   4537   msdosdjgpp*)
   4538     # On DJGPP, this test can blow up pretty badly due to problems in libc
   4539     # (any single argument exceeding 2000 bytes causes a buffer overrun
   4540     # during glob expansion).  Even if it were fixed, the result of this
   4541     # check would be larger than it should be.
   4542     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   4543     ;;
   4544 
   4545   gnu*)
   4546     # Under GNU Hurd, this test is not required because there is
   4547     # no limit to the length of command line arguments.
   4548     # Libtool will interpret -1 as no limit whatsoever
   4549     lt_cv_sys_max_cmd_len=-1;
   4550     ;;
   4551 
   4552   cygwin* | mingw* | cegcc*)
   4553     # On Win9x/ME, this test blows up -- it succeeds, but takes
   4554     # about 5 minutes as the teststring grows exponentially.
   4555     # Worse, since 9x/ME are not pre-emptively multitasking,
   4556     # you end up with a "frozen" computer, even though with patience
   4557     # the test eventually succeeds (with a max line length of 256k).
   4558     # Instead, let's just punt: use the minimum linelength reported by
   4559     # all of the supported platforms: 8192 (on NT/2K/XP).
   4560     lt_cv_sys_max_cmd_len=8192;
   4561     ;;
   4562 
   4563   mint*)
   4564     # On MiNT this can take a long time and run out of memory.
   4565     lt_cv_sys_max_cmd_len=8192;
   4566     ;;
   4567 
   4568   amigaos*)
   4569     # On AmigaOS with pdksh, this test takes hours, literally.
   4570     # So we just punt and use a minimum line length of 8192.
   4571     lt_cv_sys_max_cmd_len=8192;
   4572     ;;
   4573 
   4574   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
   4575     # This has been around since 386BSD, at least.  Likely further.
   4576     if test -x /sbin/sysctl; then
   4577       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   4578     elif test -x /usr/sbin/sysctl; then
   4579       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   4580     else
   4581       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   4582     fi
   4583     # And add a safety zone
   4584     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4585     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4586     ;;
   4587 
   4588   interix*)
   4589     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   4590     lt_cv_sys_max_cmd_len=196608
   4591     ;;
   4592 
   4593   os2*)
   4594     # The test takes a long time on OS/2.
   4595     lt_cv_sys_max_cmd_len=8192
   4596     ;;
   4597 
   4598   osf*)
   4599     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   4600     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   4601     # nice to cause kernel panics so lets avoid the loop below.
   4602     # First set a reasonable default.
   4603     lt_cv_sys_max_cmd_len=16384
   4604     #
   4605     if test -x /sbin/sysconfig; then
   4606       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   4607         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   4608       esac
   4609     fi
   4610     ;;
   4611   sco3.2v5*)
   4612     lt_cv_sys_max_cmd_len=102400
   4613     ;;
   4614   sysv5* | sco5v6* | sysv4.2uw2*)
   4615     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   4616     if test -n "$kargmax"; then
   4617       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   4618     else
   4619       lt_cv_sys_max_cmd_len=32768
   4620     fi
   4621     ;;
   4622   *)
   4623     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   4624     if test -n "$lt_cv_sys_max_cmd_len" && \
   4625        test undefined != "$lt_cv_sys_max_cmd_len"; then
   4626       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4627       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4628     else
   4629       # Make teststring a little bigger before we do anything with it.
   4630       # a 1K string should be a reasonable start.
   4631       for i in 1 2 3 4 5 6 7 8; do
   4632         teststring=$teststring$teststring
   4633       done
   4634       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   4635       # If test is not a shell built-in, we'll probably end up computing a
   4636       # maximum length that is only half of the actual maximum length, but
   4637       # we can't tell.
   4638       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   4639 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   4640 	      test 17 != "$i" # 1/2 MB should be enough
   4641       do
   4642         i=`expr $i + 1`
   4643         teststring=$teststring$teststring
   4644       done
   4645       # Only check the string length outside the loop.
   4646       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   4647       teststring=
   4648       # Add a significant safety factor because C++ compilers can tack on
   4649       # massive amounts of additional arguments before passing them to the
   4650       # linker.  It appears as though 1/2 is a usable value.
   4651       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   4652     fi
   4653     ;;
   4654   esac
   4655 
   4656 fi
   4657 
   4658 if test -n "$lt_cv_sys_max_cmd_len"; then
   4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   4660 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   4661 else
   4662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   4663 $as_echo "none" >&6; }
   4664 fi
   4665 max_cmd_len=$lt_cv_sys_max_cmd_len
   4666 
   4667 
   4668 
   4669 
   4670 
   4671 
   4672 : ${CP="cp -f"}
   4673 : ${MV="mv -f"}
   4674 : ${RM="rm -f"}
   4675 
   4676 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   4677   lt_unset=unset
   4678 else
   4679   lt_unset=false
   4680 fi
   4681 
   4682 
   4683 
   4684 
   4685 
   4686 # test EBCDIC or ASCII
   4687 case `echo X|tr X '\101'` in
   4688  A) # ASCII based system
   4689     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   4690   lt_SP2NL='tr \040 \012'
   4691   lt_NL2SP='tr \015\012 \040\040'
   4692   ;;
   4693  *) # EBCDIC based system
   4694   lt_SP2NL='tr \100 \n'
   4695   lt_NL2SP='tr \r\n \100\100'
   4696   ;;
   4697 esac
   4698 
   4699 
   4700 
   4701 
   4702 
   4703 
   4704 
   4705 
   4706 
   4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   4708 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
   4709 if ${lt_cv_to_host_file_cmd+:} false; then :
   4710   $as_echo_n "(cached) " >&6
   4711 else
   4712   case $host in
   4713   *-*-mingw* )
   4714     case $build in
   4715       *-*-mingw* ) # actually msys
   4716         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   4717         ;;
   4718       *-*-cygwin* )
   4719         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   4720         ;;
   4721       * ) # otherwise, assume *nix
   4722         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   4723         ;;
   4724     esac
   4725     ;;
   4726   *-*-cygwin* )
   4727     case $build in
   4728       *-*-mingw* ) # actually msys
   4729         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   4730         ;;
   4731       *-*-cygwin* )
   4732         lt_cv_to_host_file_cmd=func_convert_file_noop
   4733         ;;
   4734       * ) # otherwise, assume *nix
   4735         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   4736         ;;
   4737     esac
   4738     ;;
   4739   * ) # unhandled hosts (and "normal" native builds)
   4740     lt_cv_to_host_file_cmd=func_convert_file_noop
   4741     ;;
   4742 esac
   4743 
   4744 fi
   4745 
   4746 to_host_file_cmd=$lt_cv_to_host_file_cmd
   4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   4748 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
   4749 
   4750 
   4751 
   4752 
   4753 
   4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   4755 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
   4756 if ${lt_cv_to_tool_file_cmd+:} false; then :
   4757   $as_echo_n "(cached) " >&6
   4758 else
   4759   #assume ordinary cross tools, or native build.
   4760 lt_cv_to_tool_file_cmd=func_convert_file_noop
   4761 case $host in
   4762   *-*-mingw* )
   4763     case $build in
   4764       *-*-mingw* ) # actually msys
   4765         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   4766         ;;
   4767     esac
   4768     ;;
   4769 esac
   4770 
   4771 fi
   4772 
   4773 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   4775 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
   4776 
   4777 
   4778 
   4779 
   4780 
   4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   4782 $as_echo_n "checking for $LD option to reload object files... " >&6; }
   4783 if ${lt_cv_ld_reload_flag+:} false; then :
   4784   $as_echo_n "(cached) " >&6
   4785 else
   4786   lt_cv_ld_reload_flag='-r'
   4787 fi
   4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   4789 $as_echo "$lt_cv_ld_reload_flag" >&6; }
   4790 reload_flag=$lt_cv_ld_reload_flag
   4791 case $reload_flag in
   4792 "" | " "*) ;;
   4793 *) reload_flag=" $reload_flag" ;;
   4794 esac
   4795 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4796 case $host_os in
   4797   cygwin* | mingw* | pw32* | cegcc*)
   4798     if test yes != "$GCC"; then
   4799       reload_cmds=false
   4800     fi
   4801     ;;
   4802   darwin*)
   4803     if test yes = "$GCC"; then
   4804       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   4805     else
   4806       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4807     fi
   4808     ;;
   4809 esac
   4810 
   4811 
   4812 
   4813 
   4814 
   4815 
   4816 
   4817 
   4818 
   4819 if test -n "$ac_tool_prefix"; then
   4820   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   4821 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4823 $as_echo_n "checking for $ac_word... " >&6; }
   4824 if ${ac_cv_prog_OBJDUMP+:} false; then :
   4825   $as_echo_n "(cached) " >&6
   4826 else
   4827   if test -n "$OBJDUMP"; then
   4828   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   4829 else
   4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4831 for as_dir in $PATH
   4832 do
   4833   IFS=$as_save_IFS
   4834   test -z "$as_dir" && as_dir=.
   4835     for ac_exec_ext in '' $ac_executable_extensions; do
   4836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4837     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   4838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4839     break 2
   4840   fi
   4841 done
   4842   done
   4843 IFS=$as_save_IFS
   4844 
   4845 fi
   4846 fi
   4847 OBJDUMP=$ac_cv_prog_OBJDUMP
   4848 if test -n "$OBJDUMP"; then
   4849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   4850 $as_echo "$OBJDUMP" >&6; }
   4851 else
   4852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4853 $as_echo "no" >&6; }
   4854 fi
   4855 
   4856 
   4857 fi
   4858 if test -z "$ac_cv_prog_OBJDUMP"; then
   4859   ac_ct_OBJDUMP=$OBJDUMP
   4860   # Extract the first word of "objdump", so it can be a program name with args.
   4861 set dummy objdump; ac_word=$2
   4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4863 $as_echo_n "checking for $ac_word... " >&6; }
   4864 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   4865   $as_echo_n "(cached) " >&6
   4866 else
   4867   if test -n "$ac_ct_OBJDUMP"; then
   4868   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   4869 else
   4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4871 for as_dir in $PATH
   4872 do
   4873   IFS=$as_save_IFS
   4874   test -z "$as_dir" && as_dir=.
   4875     for ac_exec_ext in '' $ac_executable_extensions; do
   4876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4877     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   4878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4879     break 2
   4880   fi
   4881 done
   4882   done
   4883 IFS=$as_save_IFS
   4884 
   4885 fi
   4886 fi
   4887 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   4888 if test -n "$ac_ct_OBJDUMP"; then
   4889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   4890 $as_echo "$ac_ct_OBJDUMP" >&6; }
   4891 else
   4892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4893 $as_echo "no" >&6; }
   4894 fi
   4895 
   4896   if test "x$ac_ct_OBJDUMP" = x; then
   4897     OBJDUMP="false"
   4898   else
   4899     case $cross_compiling:$ac_tool_warned in
   4900 yes:)
   4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4903 ac_tool_warned=yes ;;
   4904 esac
   4905     OBJDUMP=$ac_ct_OBJDUMP
   4906   fi
   4907 else
   4908   OBJDUMP="$ac_cv_prog_OBJDUMP"
   4909 fi
   4910 
   4911 test -z "$OBJDUMP" && OBJDUMP=objdump
   4912 
   4913 
   4914 
   4915 
   4916 
   4917 
   4918 
   4919 
   4920 
   4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   4922 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   4923 if ${lt_cv_deplibs_check_method+:} false; then :
   4924   $as_echo_n "(cached) " >&6
   4925 else
   4926   lt_cv_file_magic_cmd='$MAGIC_CMD'
   4927 lt_cv_file_magic_test_file=
   4928 lt_cv_deplibs_check_method='unknown'
   4929 # Need to set the preceding variable on all platforms that support
   4930 # interlibrary dependencies.
   4931 # 'none' -- dependencies not supported.
   4932 # 'unknown' -- same as none, but documents that we really don't know.
   4933 # 'pass_all' -- all dependencies passed with no checks.
   4934 # 'test_compile' -- check by making test program.
   4935 # 'file_magic [[regex]]' -- check by looking for files in library path
   4936 # that responds to the $file_magic_cmd with a given extended regex.
   4937 # If you have 'file' or equivalent on your system and you're not sure
   4938 # whether 'pass_all' will *always* work, you probably want this one.
   4939 
   4940 case $host_os in
   4941 aix[4-9]*)
   4942   lt_cv_deplibs_check_method=pass_all
   4943   ;;
   4944 
   4945 beos*)
   4946   lt_cv_deplibs_check_method=pass_all
   4947   ;;
   4948 
   4949 bsdi[45]*)
   4950   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   4951   lt_cv_file_magic_cmd='/usr/bin/file -L'
   4952   lt_cv_file_magic_test_file=/shlib/libc.so
   4953   ;;
   4954 
   4955 cygwin*)
   4956   # func_win32_libid is a shell function defined in ltmain.sh
   4957   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4958   lt_cv_file_magic_cmd='func_win32_libid'
   4959   ;;
   4960 
   4961 mingw* | pw32*)
   4962   # Base MSYS/MinGW do not provide the 'file' command needed by
   4963   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   4964   # unless we find 'file', for example because we are cross-compiling.
   4965   if ( file / ) >/dev/null 2>&1; then
   4966     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4967     lt_cv_file_magic_cmd='func_win32_libid'
   4968   else
   4969     # Keep this pattern in sync with the one in func_win32_libid.
   4970     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   4971     lt_cv_file_magic_cmd='$OBJDUMP -f'
   4972   fi
   4973   ;;
   4974 
   4975 cegcc*)
   4976   # use the weaker test based on 'objdump'. See mingw*.
   4977   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   4978   lt_cv_file_magic_cmd='$OBJDUMP -f'
   4979   ;;
   4980 
   4981 darwin* | rhapsody*)
   4982   lt_cv_deplibs_check_method=pass_all
   4983   ;;
   4984 
   4985 freebsd* | dragonfly*)
   4986   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   4987     case $host_cpu in
   4988     i*86 )
   4989       # Not sure whether the presence of OpenBSD here was a mistake.
   4990       # Let's accept both of them until this is cleared up.
   4991       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   4992       lt_cv_file_magic_cmd=/usr/bin/file
   4993       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   4994       ;;
   4995     esac
   4996   else
   4997     lt_cv_deplibs_check_method=pass_all
   4998   fi
   4999   ;;
   5000 
   5001 haiku*)
   5002   lt_cv_deplibs_check_method=pass_all
   5003   ;;
   5004 
   5005 hpux10.20* | hpux11*)
   5006   lt_cv_file_magic_cmd=/usr/bin/file
   5007   case $host_cpu in
   5008   ia64*)
   5009     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   5010     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   5011     ;;
   5012   hppa*64*)
   5013     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]'
   5014     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   5015     ;;
   5016   *)
   5017     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   5018     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   5019     ;;
   5020   esac
   5021   ;;
   5022 
   5023 interix[3-9]*)
   5024   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   5025   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   5026   ;;
   5027 
   5028 irix5* | irix6* | nonstopux*)
   5029   case $LD in
   5030   *-32|*"-32 ") libmagic=32-bit;;
   5031   *-n32|*"-n32 ") libmagic=N32;;
   5032   *-64|*"-64 ") libmagic=64-bit;;
   5033   *) libmagic=never-match;;
   5034   esac
   5035   lt_cv_deplibs_check_method=pass_all
   5036   ;;
   5037 
   5038 # This must be glibc/ELF.
   5039 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   5040   lt_cv_deplibs_check_method=pass_all
   5041   ;;
   5042 
   5043 netbsd*)
   5044   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   5045     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5046   else
   5047     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   5048   fi
   5049   ;;
   5050 
   5051 newos6*)
   5052   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   5053   lt_cv_file_magic_cmd=/usr/bin/file
   5054   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   5055   ;;
   5056 
   5057 *nto* | *qnx*)
   5058   lt_cv_deplibs_check_method=pass_all
   5059   ;;
   5060 
   5061 openbsd* | bitrig*)
   5062   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   5063     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   5064   else
   5065     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5066   fi
   5067   ;;
   5068 
   5069 osf3* | osf4* | osf5*)
   5070   lt_cv_deplibs_check_method=pass_all
   5071   ;;
   5072 
   5073 rdos*)
   5074   lt_cv_deplibs_check_method=pass_all
   5075   ;;
   5076 
   5077 solaris*)
   5078   lt_cv_deplibs_check_method=pass_all
   5079   ;;
   5080 
   5081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   5082   lt_cv_deplibs_check_method=pass_all
   5083   ;;
   5084 
   5085 sysv4 | sysv4.3*)
   5086   case $host_vendor in
   5087   motorola)
   5088     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]'
   5089     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   5090     ;;
   5091   ncr)
   5092     lt_cv_deplibs_check_method=pass_all
   5093     ;;
   5094   sequent)
   5095     lt_cv_file_magic_cmd='/bin/file'
   5096     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   5097     ;;
   5098   sni)
   5099     lt_cv_file_magic_cmd='/bin/file'
   5100     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   5101     lt_cv_file_magic_test_file=/lib/libc.so
   5102     ;;
   5103   siemens)
   5104     lt_cv_deplibs_check_method=pass_all
   5105     ;;
   5106   pc)
   5107     lt_cv_deplibs_check_method=pass_all
   5108     ;;
   5109   esac
   5110   ;;
   5111 
   5112 tpf*)
   5113   lt_cv_deplibs_check_method=pass_all
   5114   ;;
   5115 os2*)
   5116   lt_cv_deplibs_check_method=pass_all
   5117   ;;
   5118 esac
   5119 
   5120 fi
   5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   5122 $as_echo "$lt_cv_deplibs_check_method" >&6; }
   5123 
   5124 file_magic_glob=
   5125 want_nocaseglob=no
   5126 if test "$build" = "$host"; then
   5127   case $host_os in
   5128   mingw* | pw32*)
   5129     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   5130       want_nocaseglob=yes
   5131     else
   5132       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   5133     fi
   5134     ;;
   5135   esac
   5136 fi
   5137 
   5138 file_magic_cmd=$lt_cv_file_magic_cmd
   5139 deplibs_check_method=$lt_cv_deplibs_check_method
   5140 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   5141 
   5142 
   5143 
   5144 
   5145 
   5146 
   5147 
   5148 
   5149 
   5150 
   5151 
   5152 
   5153 
   5154 
   5155 
   5156 
   5157 
   5158 
   5159 
   5160 
   5161 
   5162 
   5163 if test -n "$ac_tool_prefix"; then
   5164   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   5165 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5167 $as_echo_n "checking for $ac_word... " >&6; }
   5168 if ${ac_cv_prog_DLLTOOL+:} false; then :
   5169   $as_echo_n "(cached) " >&6
   5170 else
   5171   if test -n "$DLLTOOL"; then
   5172   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   5173 else
   5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5175 for as_dir in $PATH
   5176 do
   5177   IFS=$as_save_IFS
   5178   test -z "$as_dir" && as_dir=.
   5179     for ac_exec_ext in '' $ac_executable_extensions; do
   5180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5181     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   5182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5183     break 2
   5184   fi
   5185 done
   5186   done
   5187 IFS=$as_save_IFS
   5188 
   5189 fi
   5190 fi
   5191 DLLTOOL=$ac_cv_prog_DLLTOOL
   5192 if test -n "$DLLTOOL"; then
   5193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   5194 $as_echo "$DLLTOOL" >&6; }
   5195 else
   5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5197 $as_echo "no" >&6; }
   5198 fi
   5199 
   5200 
   5201 fi
   5202 if test -z "$ac_cv_prog_DLLTOOL"; then
   5203   ac_ct_DLLTOOL=$DLLTOOL
   5204   # Extract the first word of "dlltool", so it can be a program name with args.
   5205 set dummy dlltool; ac_word=$2
   5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5207 $as_echo_n "checking for $ac_word... " >&6; }
   5208 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   5209   $as_echo_n "(cached) " >&6
   5210 else
   5211   if test -n "$ac_ct_DLLTOOL"; then
   5212   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   5213 else
   5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5215 for as_dir in $PATH
   5216 do
   5217   IFS=$as_save_IFS
   5218   test -z "$as_dir" && as_dir=.
   5219     for ac_exec_ext in '' $ac_executable_extensions; do
   5220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5221     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   5222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5223     break 2
   5224   fi
   5225 done
   5226   done
   5227 IFS=$as_save_IFS
   5228 
   5229 fi
   5230 fi
   5231 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   5232 if test -n "$ac_ct_DLLTOOL"; then
   5233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   5234 $as_echo "$ac_ct_DLLTOOL" >&6; }
   5235 else
   5236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5237 $as_echo "no" >&6; }
   5238 fi
   5239 
   5240   if test "x$ac_ct_DLLTOOL" = x; then
   5241     DLLTOOL="false"
   5242   else
   5243     case $cross_compiling:$ac_tool_warned in
   5244 yes:)
   5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5247 ac_tool_warned=yes ;;
   5248 esac
   5249     DLLTOOL=$ac_ct_DLLTOOL
   5250   fi
   5251 else
   5252   DLLTOOL="$ac_cv_prog_DLLTOOL"
   5253 fi
   5254 
   5255 test -z "$DLLTOOL" && DLLTOOL=dlltool
   5256 
   5257 
   5258 
   5259 
   5260 
   5261 
   5262 
   5263 
   5264 
   5265 
   5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   5267 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
   5268 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
   5269   $as_echo_n "(cached) " >&6
   5270 else
   5271   lt_cv_sharedlib_from_linklib_cmd='unknown'
   5272 
   5273 case $host_os in
   5274 cygwin* | mingw* | pw32* | cegcc*)
   5275   # two different shell functions defined in ltmain.sh;
   5276   # decide which one to use based on capabilities of $DLLTOOL
   5277   case `$DLLTOOL --help 2>&1` in
   5278   *--identify-strict*)
   5279     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   5280     ;;
   5281   *)
   5282     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   5283     ;;
   5284   esac
   5285   ;;
   5286 *)
   5287   # fallback: assume linklib IS sharedlib
   5288   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   5289   ;;
   5290 esac
   5291 
   5292 fi
   5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   5294 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   5295 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   5296 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   5297 
   5298 
   5299 
   5300 
   5301 
   5302 
   5303 
   5304 if test -n "$ac_tool_prefix"; then
   5305   for ac_prog in ar
   5306   do
   5307     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5310 $as_echo_n "checking for $ac_word... " >&6; }
   5311 if ${ac_cv_prog_AR+:} false; then :
   5312   $as_echo_n "(cached) " >&6
   5313 else
   5314   if test -n "$AR"; then
   5315   ac_cv_prog_AR="$AR" # Let the user override the test.
   5316 else
   5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5318 for as_dir in $PATH
   5319 do
   5320   IFS=$as_save_IFS
   5321   test -z "$as_dir" && as_dir=.
   5322     for ac_exec_ext in '' $ac_executable_extensions; do
   5323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5324     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   5325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5326     break 2
   5327   fi
   5328 done
   5329   done
   5330 IFS=$as_save_IFS
   5331 
   5332 fi
   5333 fi
   5334 AR=$ac_cv_prog_AR
   5335 if test -n "$AR"; then
   5336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   5337 $as_echo "$AR" >&6; }
   5338 else
   5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5340 $as_echo "no" >&6; }
   5341 fi
   5342 
   5343 
   5344     test -n "$AR" && break
   5345   done
   5346 fi
   5347 if test -z "$AR"; then
   5348   ac_ct_AR=$AR
   5349   for ac_prog in ar
   5350 do
   5351   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5352 set dummy $ac_prog; ac_word=$2
   5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5354 $as_echo_n "checking for $ac_word... " >&6; }
   5355 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   5356   $as_echo_n "(cached) " >&6
   5357 else
   5358   if test -n "$ac_ct_AR"; then
   5359   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   5360 else
   5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5362 for as_dir in $PATH
   5363 do
   5364   IFS=$as_save_IFS
   5365   test -z "$as_dir" && as_dir=.
   5366     for ac_exec_ext in '' $ac_executable_extensions; do
   5367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5368     ac_cv_prog_ac_ct_AR="$ac_prog"
   5369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5370     break 2
   5371   fi
   5372 done
   5373   done
   5374 IFS=$as_save_IFS
   5375 
   5376 fi
   5377 fi
   5378 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   5379 if test -n "$ac_ct_AR"; then
   5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   5381 $as_echo "$ac_ct_AR" >&6; }
   5382 else
   5383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5384 $as_echo "no" >&6; }
   5385 fi
   5386 
   5387 
   5388   test -n "$ac_ct_AR" && break
   5389 done
   5390 
   5391   if test "x$ac_ct_AR" = x; then
   5392     AR="false"
   5393   else
   5394     case $cross_compiling:$ac_tool_warned in
   5395 yes:)
   5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5398 ac_tool_warned=yes ;;
   5399 esac
   5400     AR=$ac_ct_AR
   5401   fi
   5402 fi
   5403 
   5404 : ${AR=ar}
   5405 : ${AR_FLAGS=cru}
   5406 
   5407 
   5408 
   5409 
   5410 
   5411 
   5412 
   5413 
   5414 
   5415 
   5416 
   5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   5418 $as_echo_n "checking for archiver @FILE support... " >&6; }
   5419 if ${lt_cv_ar_at_file+:} false; then :
   5420   $as_echo_n "(cached) " >&6
   5421 else
   5422   lt_cv_ar_at_file=no
   5423    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5424 /* end confdefs.h.  */
   5425 
   5426 int
   5427 main ()
   5428 {
   5429 
   5430   ;
   5431   return 0;
   5432 }
   5433 _ACEOF
   5434 if ac_fn_c_try_compile "$LINENO"; then :
   5435   echo conftest.$ac_objext > conftest.lst
   5436       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   5437       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5438   (eval $lt_ar_try) 2>&5
   5439   ac_status=$?
   5440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5441   test $ac_status = 0; }
   5442       if test 0 -eq "$ac_status"; then
   5443 	# Ensure the archiver fails upon bogus file names.
   5444 	rm -f conftest.$ac_objext libconftest.a
   5445 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5446   (eval $lt_ar_try) 2>&5
   5447   ac_status=$?
   5448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5449   test $ac_status = 0; }
   5450 	if test 0 -ne "$ac_status"; then
   5451           lt_cv_ar_at_file=@
   5452         fi
   5453       fi
   5454       rm -f conftest.* libconftest.a
   5455 
   5456 fi
   5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5458 
   5459 fi
   5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   5461 $as_echo "$lt_cv_ar_at_file" >&6; }
   5462 
   5463 if test no = "$lt_cv_ar_at_file"; then
   5464   archiver_list_spec=
   5465 else
   5466   archiver_list_spec=$lt_cv_ar_at_file
   5467 fi
   5468 
   5469 
   5470 
   5471 
   5472 
   5473 
   5474 
   5475 if test -n "$ac_tool_prefix"; then
   5476   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   5477 set dummy ${ac_tool_prefix}strip; ac_word=$2
   5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5479 $as_echo_n "checking for $ac_word... " >&6; }
   5480 if ${ac_cv_prog_STRIP+:} false; then :
   5481   $as_echo_n "(cached) " >&6
   5482 else
   5483   if test -n "$STRIP"; then
   5484   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   5485 else
   5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5487 for as_dir in $PATH
   5488 do
   5489   IFS=$as_save_IFS
   5490   test -z "$as_dir" && as_dir=.
   5491     for ac_exec_ext in '' $ac_executable_extensions; do
   5492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5493     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   5494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5495     break 2
   5496   fi
   5497 done
   5498   done
   5499 IFS=$as_save_IFS
   5500 
   5501 fi
   5502 fi
   5503 STRIP=$ac_cv_prog_STRIP
   5504 if test -n "$STRIP"; then
   5505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   5506 $as_echo "$STRIP" >&6; }
   5507 else
   5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5509 $as_echo "no" >&6; }
   5510 fi
   5511 
   5512 
   5513 fi
   5514 if test -z "$ac_cv_prog_STRIP"; then
   5515   ac_ct_STRIP=$STRIP
   5516   # Extract the first word of "strip", so it can be a program name with args.
   5517 set dummy strip; ac_word=$2
   5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5519 $as_echo_n "checking for $ac_word... " >&6; }
   5520 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   5521   $as_echo_n "(cached) " >&6
   5522 else
   5523   if test -n "$ac_ct_STRIP"; then
   5524   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   5525 else
   5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5527 for as_dir in $PATH
   5528 do
   5529   IFS=$as_save_IFS
   5530   test -z "$as_dir" && as_dir=.
   5531     for ac_exec_ext in '' $ac_executable_extensions; do
   5532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5533     ac_cv_prog_ac_ct_STRIP="strip"
   5534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5535     break 2
   5536   fi
   5537 done
   5538   done
   5539 IFS=$as_save_IFS
   5540 
   5541 fi
   5542 fi
   5543 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   5544 if test -n "$ac_ct_STRIP"; then
   5545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   5546 $as_echo "$ac_ct_STRIP" >&6; }
   5547 else
   5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5549 $as_echo "no" >&6; }
   5550 fi
   5551 
   5552   if test "x$ac_ct_STRIP" = x; then
   5553     STRIP=":"
   5554   else
   5555     case $cross_compiling:$ac_tool_warned in
   5556 yes:)
   5557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5559 ac_tool_warned=yes ;;
   5560 esac
   5561     STRIP=$ac_ct_STRIP
   5562   fi
   5563 else
   5564   STRIP="$ac_cv_prog_STRIP"
   5565 fi
   5566 
   5567 test -z "$STRIP" && STRIP=:
   5568 
   5569 
   5570 
   5571 
   5572 
   5573 
   5574 if test -n "$ac_tool_prefix"; then
   5575   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5576 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5578 $as_echo_n "checking for $ac_word... " >&6; }
   5579 if ${ac_cv_prog_RANLIB+:} false; then :
   5580   $as_echo_n "(cached) " >&6
   5581 else
   5582   if test -n "$RANLIB"; then
   5583   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5584 else
   5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5586 for as_dir in $PATH
   5587 do
   5588   IFS=$as_save_IFS
   5589   test -z "$as_dir" && as_dir=.
   5590     for ac_exec_ext in '' $ac_executable_extensions; do
   5591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5592     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5594     break 2
   5595   fi
   5596 done
   5597   done
   5598 IFS=$as_save_IFS
   5599 
   5600 fi
   5601 fi
   5602 RANLIB=$ac_cv_prog_RANLIB
   5603 if test -n "$RANLIB"; then
   5604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   5605 $as_echo "$RANLIB" >&6; }
   5606 else
   5607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5608 $as_echo "no" >&6; }
   5609 fi
   5610 
   5611 
   5612 fi
   5613 if test -z "$ac_cv_prog_RANLIB"; then
   5614   ac_ct_RANLIB=$RANLIB
   5615   # Extract the first word of "ranlib", so it can be a program name with args.
   5616 set dummy ranlib; ac_word=$2
   5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5618 $as_echo_n "checking for $ac_word... " >&6; }
   5619 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   5620   $as_echo_n "(cached) " >&6
   5621 else
   5622   if test -n "$ac_ct_RANLIB"; then
   5623   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5624 else
   5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5626 for as_dir in $PATH
   5627 do
   5628   IFS=$as_save_IFS
   5629   test -z "$as_dir" && as_dir=.
   5630     for ac_exec_ext in '' $ac_executable_extensions; do
   5631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5632     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5634     break 2
   5635   fi
   5636 done
   5637   done
   5638 IFS=$as_save_IFS
   5639 
   5640 fi
   5641 fi
   5642 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5643 if test -n "$ac_ct_RANLIB"; then
   5644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   5645 $as_echo "$ac_ct_RANLIB" >&6; }
   5646 else
   5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5648 $as_echo "no" >&6; }
   5649 fi
   5650 
   5651   if test "x$ac_ct_RANLIB" = x; then
   5652     RANLIB=":"
   5653   else
   5654     case $cross_compiling:$ac_tool_warned in
   5655 yes:)
   5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5658 ac_tool_warned=yes ;;
   5659 esac
   5660     RANLIB=$ac_ct_RANLIB
   5661   fi
   5662 else
   5663   RANLIB="$ac_cv_prog_RANLIB"
   5664 fi
   5665 
   5666 test -z "$RANLIB" && RANLIB=:
   5667 
   5668 
   5669 
   5670 
   5671 
   5672 
   5673 # Determine commands to create old-style static archives.
   5674 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   5675 old_postinstall_cmds='chmod 644 $oldlib'
   5676 old_postuninstall_cmds=
   5677 
   5678 if test -n "$RANLIB"; then
   5679   case $host_os in
   5680   bitrig* | openbsd*)
   5681     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   5682     ;;
   5683   *)
   5684     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   5685     ;;
   5686   esac
   5687   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   5688 fi
   5689 
   5690 case $host_os in
   5691   darwin*)
   5692     lock_old_archive_extraction=yes ;;
   5693   *)
   5694     lock_old_archive_extraction=no ;;
   5695 esac
   5696 
   5697 
   5698 
   5699 
   5700 
   5701 
   5702 
   5703 
   5704 
   5705 
   5706 
   5707 
   5708 
   5709 
   5710 
   5711 
   5712 
   5713 
   5714 
   5715 
   5716 
   5717 for ac_prog in gawk mawk nawk awk
   5718 do
   5719   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5720 set dummy $ac_prog; ac_word=$2
   5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5722 $as_echo_n "checking for $ac_word... " >&6; }
   5723 if ${ac_cv_prog_AWK+:} false; then :
   5724   $as_echo_n "(cached) " >&6
   5725 else
   5726   if test -n "$AWK"; then
   5727   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   5728 else
   5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5730 for as_dir in $PATH
   5731 do
   5732   IFS=$as_save_IFS
   5733   test -z "$as_dir" && as_dir=.
   5734     for ac_exec_ext in '' $ac_executable_extensions; do
   5735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5736     ac_cv_prog_AWK="$ac_prog"
   5737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5738     break 2
   5739   fi
   5740 done
   5741   done
   5742 IFS=$as_save_IFS
   5743 
   5744 fi
   5745 fi
   5746 AWK=$ac_cv_prog_AWK
   5747 if test -n "$AWK"; then
   5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   5749 $as_echo "$AWK" >&6; }
   5750 else
   5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5752 $as_echo "no" >&6; }
   5753 fi
   5754 
   5755 
   5756   test -n "$AWK" && break
   5757 done
   5758 
   5759 
   5760 
   5761 
   5762 
   5763 
   5764 
   5765 
   5766 
   5767 
   5768 
   5769 
   5770 
   5771 
   5772 
   5773 
   5774 
   5775 
   5776 
   5777 # If no C compiler was specified, use CC.
   5778 LTCC=${LTCC-"$CC"}
   5779 
   5780 # If no C compiler flags were specified, use CFLAGS.
   5781 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   5782 
   5783 # Allow CC to be a program name with arguments.
   5784 compiler=$CC
   5785 
   5786 
   5787 # Check for command to grab the raw symbol name followed by C symbol from nm.
   5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   5789 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   5790 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   5791   $as_echo_n "(cached) " >&6
   5792 else
   5793 
   5794 # These are sane defaults that work on at least a few old systems.
   5795 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   5796 
   5797 # Character class describing NM global symbol codes.
   5798 symcode='[BCDEGRST]'
   5799 
   5800 # Regexp to match symbols that can be accessed directly from C.
   5801 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   5802 
   5803 # Define system-specific variables.
   5804 case $host_os in
   5805 aix*)
   5806   symcode='[BCDT]'
   5807   ;;
   5808 cygwin* | mingw* | pw32* | cegcc*)
   5809   symcode='[ABCDGISTW]'
   5810   ;;
   5811 hpux*)
   5812   if test ia64 = "$host_cpu"; then
   5813     symcode='[ABCDEGRST]'
   5814   fi
   5815   ;;
   5816 irix* | nonstopux*)
   5817   symcode='[BCDEGRST]'
   5818   ;;
   5819 osf*)
   5820   symcode='[BCDEGQRST]'
   5821   ;;
   5822 solaris*)
   5823   symcode='[BDRT]'
   5824   ;;
   5825 sco3.2v5*)
   5826   symcode='[DT]'
   5827   ;;
   5828 sysv4.2uw2*)
   5829   symcode='[DT]'
   5830   ;;
   5831 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   5832   symcode='[ABDT]'
   5833   ;;
   5834 sysv4)
   5835   symcode='[DFNSTU]'
   5836   ;;
   5837 esac
   5838 
   5839 # If we're using GNU nm, then use its standard symbol codes.
   5840 case `$NM -V 2>&1` in
   5841 *GNU* | *'with BFD'*)
   5842   symcode='[ABCDGIRSTW]' ;;
   5843 esac
   5844 
   5845 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   5846   # Gets list of data symbols to import.
   5847   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
   5848   # Adjust the below global symbol transforms to fixup imported variables.
   5849   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   5850   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   5851   lt_c_name_lib_hook="\
   5852   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   5853   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   5854 else
   5855   # Disable hooks by default.
   5856   lt_cv_sys_global_symbol_to_import=
   5857   lt_cdecl_hook=
   5858   lt_c_name_hook=
   5859   lt_c_name_lib_hook=
   5860 fi
   5861 
   5862 # Transform an extracted symbol line into a proper C declaration.
   5863 # Some systems (esp. on ia64) link data and code symbols differently,
   5864 # so use this general approach.
   5865 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
   5866 $lt_cdecl_hook\
   5867 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   5868 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   5869 
   5870 # Transform an extracted symbol line into symbol name and symbol address
   5871 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
   5872 $lt_c_name_hook\
   5873 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   5874 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   5875 
   5876 # Transform an extracted symbol line into symbol name with lib prefix and
   5877 # symbol address.
   5878 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
   5879 $lt_c_name_lib_hook\
   5880 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   5881 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   5882 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   5883 
   5884 # Handle CRLF in mingw tool chain
   5885 opt_cr=
   5886 case $build_os in
   5887 mingw*)
   5888   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   5889   ;;
   5890 esac
   5891 
   5892 # Try without a prefix underscore, then with it.
   5893 for ac_symprfx in "" "_"; do
   5894 
   5895   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   5896   symxfrm="\\1 $ac_symprfx\\2 \\2"
   5897 
   5898   # Write the raw and C identifiers.
   5899   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   5900     # Fake it for dumpbin and say T for any non-static function,
   5901     # D for any global variable and I for any imported variable.
   5902     # Also find C++ and __fastcall symbols from MSVC++,
   5903     # which start with @ or ?.
   5904     lt_cv_sys_global_symbol_pipe="$AWK '"\
   5905 "     {last_section=section; section=\$ 3};"\
   5906 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   5907 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   5908 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   5909 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   5910 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   5911 "     \$ 0!~/External *\|/{next};"\
   5912 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   5913 "     {if(hide[section]) next};"\
   5914 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   5915 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   5916 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   5917 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   5918 "     ' prfx=^$ac_symprfx"
   5919   else
   5920     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   5921   fi
   5922   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   5923 
   5924   # Check to see that the pipe works correctly.
   5925   pipe_works=no
   5926 
   5927   rm -f conftest*
   5928   cat > conftest.$ac_ext <<_LT_EOF
   5929 #ifdef __cplusplus
   5930 extern "C" {
   5931 #endif
   5932 char nm_test_var;
   5933 void nm_test_func(void);
   5934 void nm_test_func(void){}
   5935 #ifdef __cplusplus
   5936 }
   5937 #endif
   5938 int main(){nm_test_var='a';nm_test_func();return(0);}
   5939 _LT_EOF
   5940 
   5941   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   5942   (eval $ac_compile) 2>&5
   5943   ac_status=$?
   5944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5945   test $ac_status = 0; }; then
   5946     # Now try to grab the symbols.
   5947     nlist=conftest.nm
   5948     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   5949   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   5950   ac_status=$?
   5951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5952   test $ac_status = 0; } && test -s "$nlist"; then
   5953       # Try sorting and uniquifying the output.
   5954       if sort "$nlist" | uniq > "$nlist"T; then
   5955 	mv -f "$nlist"T "$nlist"
   5956       else
   5957 	rm -f "$nlist"T
   5958       fi
   5959 
   5960       # Make sure that we snagged all the symbols we need.
   5961       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   5962 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   5963 	  cat <<_LT_EOF > conftest.$ac_ext
   5964 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   5965 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   5966 /* DATA imports from DLLs on WIN32 can't be const, because runtime
   5967    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   5968 # define LT_DLSYM_CONST
   5969 #elif defined __osf__
   5970 /* This system does not cope well with relocations in const data.  */
   5971 # define LT_DLSYM_CONST
   5972 #else
   5973 # define LT_DLSYM_CONST const
   5974 #endif
   5975 
   5976 #ifdef __cplusplus
   5977 extern "C" {
   5978 #endif
   5979 
   5980 _LT_EOF
   5981 	  # Now generate the symbol file.
   5982 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   5983 
   5984 	  cat <<_LT_EOF >> conftest.$ac_ext
   5985 
   5986 /* The mapping between symbol names and symbols.  */
   5987 LT_DLSYM_CONST struct {
   5988   const char *name;
   5989   void       *address;
   5990 }
   5991 lt__PROGRAM__LTX_preloaded_symbols[] =
   5992 {
   5993   { "@PROGRAM@", (void *) 0 },
   5994 _LT_EOF
   5995 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   5996 	  cat <<\_LT_EOF >> conftest.$ac_ext
   5997   {0, (void *) 0}
   5998 };
   5999 
   6000 /* This works around a problem in FreeBSD linker */
   6001 #ifdef FREEBSD_WORKAROUND
   6002 static const void *lt_preloaded_setup() {
   6003   return lt__PROGRAM__LTX_preloaded_symbols;
   6004 }
   6005 #endif
   6006 
   6007 #ifdef __cplusplus
   6008 }
   6009 #endif
   6010 _LT_EOF
   6011 	  # Now try linking the two files.
   6012 	  mv conftest.$ac_objext conftstm.$ac_objext
   6013 	  lt_globsym_save_LIBS=$LIBS
   6014 	  lt_globsym_save_CFLAGS=$CFLAGS
   6015 	  LIBS=conftstm.$ac_objext
   6016 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   6017 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   6018   (eval $ac_link) 2>&5
   6019   ac_status=$?
   6020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6021   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   6022 	    pipe_works=yes
   6023 	  fi
   6024 	  LIBS=$lt_globsym_save_LIBS
   6025 	  CFLAGS=$lt_globsym_save_CFLAGS
   6026 	else
   6027 	  echo "cannot find nm_test_func in $nlist" >&5
   6028 	fi
   6029       else
   6030 	echo "cannot find nm_test_var in $nlist" >&5
   6031       fi
   6032     else
   6033       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   6034     fi
   6035   else
   6036     echo "$progname: failed program was:" >&5
   6037     cat conftest.$ac_ext >&5
   6038   fi
   6039   rm -rf conftest* conftst*
   6040 
   6041   # Do not use the global_symbol_pipe unless it works.
   6042   if test yes = "$pipe_works"; then
   6043     break
   6044   else
   6045     lt_cv_sys_global_symbol_pipe=
   6046   fi
   6047 done
   6048 
   6049 fi
   6050 
   6051 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   6052   lt_cv_sys_global_symbol_to_cdecl=
   6053 fi
   6054 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6056 $as_echo "failed" >&6; }
   6057 else
   6058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   6059 $as_echo "ok" >&6; }
   6060 fi
   6061 
   6062 # Response file support.
   6063 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6064   nm_file_list_spec='@'
   6065 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   6066   nm_file_list_spec='@'
   6067 fi
   6068 
   6069 
   6070 
   6071 
   6072 
   6073 
   6074 
   6075 
   6076 
   6077 
   6078 
   6079 
   6080 
   6081 
   6082 
   6083 
   6084 
   6085 
   6086 
   6087 
   6088 
   6089 
   6090 
   6091 
   6092 
   6093 
   6094 
   6095 
   6096 
   6097 
   6098 
   6099 
   6100 
   6101 
   6102 
   6103 
   6104 
   6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   6106 $as_echo_n "checking for sysroot... " >&6; }
   6107 
   6108 # Check whether --with-sysroot was given.
   6109 if test "${with_sysroot+set}" = set; then :
   6110   withval=$with_sysroot;
   6111 else
   6112   with_sysroot=no
   6113 fi
   6114 
   6115 
   6116 lt_sysroot=
   6117 case $with_sysroot in #(
   6118  yes)
   6119    if test yes = "$GCC"; then
   6120      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   6121    fi
   6122    ;; #(
   6123  /*)
   6124    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   6125    ;; #(
   6126  no|'')
   6127    ;; #(
   6128  *)
   6129    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
   6130 $as_echo "$with_sysroot" >&6; }
   6131    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   6132    ;;
   6133 esac
   6134 
   6135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   6136 $as_echo "${lt_sysroot:-no}" >&6; }
   6137 
   6138 
   6139 
   6140 
   6141 
   6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
   6143 $as_echo_n "checking for a working dd... " >&6; }
   6144 if ${ac_cv_path_lt_DD+:} false; then :
   6145   $as_echo_n "(cached) " >&6
   6146 else
   6147   printf 0123456789abcdef0123456789abcdef >conftest.i
   6148 cat conftest.i conftest.i >conftest2.i
   6149 : ${lt_DD:=$DD}
   6150 if test -z "$lt_DD"; then
   6151   ac_path_lt_DD_found=false
   6152   # Loop through the user's path and test for each of PROGNAME-LIST
   6153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6154 for as_dir in $PATH
   6155 do
   6156   IFS=$as_save_IFS
   6157   test -z "$as_dir" && as_dir=.
   6158     for ac_prog in dd; do
   6159     for ac_exec_ext in '' $ac_executable_extensions; do
   6160       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
   6161       as_fn_executable_p "$ac_path_lt_DD" || continue
   6162 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6163   cmp -s conftest.i conftest.out \
   6164   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   6165 fi
   6166       $ac_path_lt_DD_found && break 3
   6167     done
   6168   done
   6169   done
   6170 IFS=$as_save_IFS
   6171   if test -z "$ac_cv_path_lt_DD"; then
   6172     :
   6173   fi
   6174 else
   6175   ac_cv_path_lt_DD=$lt_DD
   6176 fi
   6177 
   6178 rm -f conftest.i conftest2.i conftest.out
   6179 fi
   6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
   6181 $as_echo "$ac_cv_path_lt_DD" >&6; }
   6182 
   6183 
   6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
   6185 $as_echo_n "checking how to truncate binary pipes... " >&6; }
   6186 if ${lt_cv_truncate_bin+:} false; then :
   6187   $as_echo_n "(cached) " >&6
   6188 else
   6189   printf 0123456789abcdef0123456789abcdef >conftest.i
   6190 cat conftest.i conftest.i >conftest2.i
   6191 lt_cv_truncate_bin=
   6192 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6193   cmp -s conftest.i conftest.out \
   6194   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   6195 fi
   6196 rm -f conftest.i conftest2.i conftest.out
   6197 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
   6198 fi
   6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
   6200 $as_echo "$lt_cv_truncate_bin" >&6; }
   6201 
   6202 
   6203 
   6204 
   6205 
   6206 
   6207 
   6208 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   6209 func_cc_basename ()
   6210 {
   6211     for cc_temp in $*""; do
   6212       case $cc_temp in
   6213         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   6214         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   6215         \-*) ;;
   6216         *) break;;
   6217       esac
   6218     done
   6219     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   6220 }
   6221 
   6222 # Check whether --enable-libtool-lock was given.
   6223 if test "${enable_libtool_lock+set}" = set; then :
   6224   enableval=$enable_libtool_lock;
   6225 fi
   6226 
   6227 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   6228 
   6229 # Some flags need to be propagated to the compiler or linker for good
   6230 # libtool support.
   6231 case $host in
   6232 ia64-*-hpux*)
   6233   # Find out what ABI is being produced by ac_compile, and set mode
   6234   # options accordingly.
   6235   echo 'int i;' > conftest.$ac_ext
   6236   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6237   (eval $ac_compile) 2>&5
   6238   ac_status=$?
   6239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6240   test $ac_status = 0; }; then
   6241     case `/usr/bin/file conftest.$ac_objext` in
   6242       *ELF-32*)
   6243 	HPUX_IA64_MODE=32
   6244 	;;
   6245       *ELF-64*)
   6246 	HPUX_IA64_MODE=64
   6247 	;;
   6248     esac
   6249   fi
   6250   rm -rf conftest*
   6251   ;;
   6252 *-*-irix6*)
   6253   # Find out what ABI is being produced by ac_compile, and set linker
   6254   # options accordingly.
   6255   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6256   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6257   (eval $ac_compile) 2>&5
   6258   ac_status=$?
   6259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6260   test $ac_status = 0; }; then
   6261     if test yes = "$lt_cv_prog_gnu_ld"; then
   6262       case `/usr/bin/file conftest.$ac_objext` in
   6263 	*32-bit*)
   6264 	  LD="${LD-ld} -melf32bsmip"
   6265 	  ;;
   6266 	*N32*)
   6267 	  LD="${LD-ld} -melf32bmipn32"
   6268 	  ;;
   6269 	*64-bit*)
   6270 	  LD="${LD-ld} -melf64bmip"
   6271 	;;
   6272       esac
   6273     else
   6274       case `/usr/bin/file conftest.$ac_objext` in
   6275 	*32-bit*)
   6276 	  LD="${LD-ld} -32"
   6277 	  ;;
   6278 	*N32*)
   6279 	  LD="${LD-ld} -n32"
   6280 	  ;;
   6281 	*64-bit*)
   6282 	  LD="${LD-ld} -64"
   6283 	  ;;
   6284       esac
   6285     fi
   6286   fi
   6287   rm -rf conftest*
   6288   ;;
   6289 
   6290 mips64*-*linux*)
   6291   # Find out what ABI is being produced by ac_compile, and set linker
   6292   # options accordingly.
   6293   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6294   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6295   (eval $ac_compile) 2>&5
   6296   ac_status=$?
   6297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6298   test $ac_status = 0; }; then
   6299     emul=elf
   6300     case `/usr/bin/file conftest.$ac_objext` in
   6301       *32-bit*)
   6302 	emul="${emul}32"
   6303 	;;
   6304       *64-bit*)
   6305 	emul="${emul}64"
   6306 	;;
   6307     esac
   6308     case `/usr/bin/file conftest.$ac_objext` in
   6309       *MSB*)
   6310 	emul="${emul}btsmip"
   6311 	;;
   6312       *LSB*)
   6313 	emul="${emul}ltsmip"
   6314 	;;
   6315     esac
   6316     case `/usr/bin/file conftest.$ac_objext` in
   6317       *N32*)
   6318 	emul="${emul}n32"
   6319 	;;
   6320     esac
   6321     LD="${LD-ld} -m $emul"
   6322   fi
   6323   rm -rf conftest*
   6324   ;;
   6325 
   6326 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   6327 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   6328   # Find out what ABI is being produced by ac_compile, and set linker
   6329   # options accordingly.  Note that the listed cases only cover the
   6330   # situations where additional linker options are needed (such as when
   6331   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   6332   # vice versa); the common cases where no linker options are needed do
   6333   # not appear in the list.
   6334   echo 'int i;' > conftest.$ac_ext
   6335   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6336   (eval $ac_compile) 2>&5
   6337   ac_status=$?
   6338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6339   test $ac_status = 0; }; then
   6340     case `/usr/bin/file conftest.o` in
   6341       *32-bit*)
   6342 	case $host in
   6343 	  x86_64-*kfreebsd*-gnu)
   6344 	    LD="${LD-ld} -m elf_i386_fbsd"
   6345 	    ;;
   6346 	  x86_64-*linux*)
   6347 	    case `/usr/bin/file conftest.o` in
   6348 	      *x86-64*)
   6349 		LD="${LD-ld} -m elf32_x86_64"
   6350 		;;
   6351 	      *)
   6352 		LD="${LD-ld} -m elf_i386"
   6353 		;;
   6354 	    esac
   6355 	    ;;
   6356 	  powerpc64le-*linux*)
   6357 	    LD="${LD-ld} -m elf32lppclinux"
   6358 	    ;;
   6359 	  powerpc64-*linux*)
   6360 	    LD="${LD-ld} -m elf32ppclinux"
   6361 	    ;;
   6362 	  s390x-*linux*)
   6363 	    LD="${LD-ld} -m elf_s390"
   6364 	    ;;
   6365 	  sparc64-*linux*)
   6366 	    LD="${LD-ld} -m elf32_sparc"
   6367 	    ;;
   6368 	esac
   6369 	;;
   6370       *64-bit*)
   6371 	case $host in
   6372 	  x86_64-*kfreebsd*-gnu)
   6373 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   6374 	    ;;
   6375 	  x86_64-*linux*)
   6376 	    LD="${LD-ld} -m elf_x86_64"
   6377 	    ;;
   6378 	  powerpcle-*linux*)
   6379 	    LD="${LD-ld} -m elf64lppc"
   6380 	    ;;
   6381 	  powerpc-*linux*)
   6382 	    LD="${LD-ld} -m elf64ppc"
   6383 	    ;;
   6384 	  s390*-*linux*|s390*-*tpf*)
   6385 	    LD="${LD-ld} -m elf64_s390"
   6386 	    ;;
   6387 	  sparc*-*linux*)
   6388 	    LD="${LD-ld} -m elf64_sparc"
   6389 	    ;;
   6390 	esac
   6391 	;;
   6392     esac
   6393   fi
   6394   rm -rf conftest*
   6395   ;;
   6396 
   6397 *-*-sco3.2v5*)
   6398   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   6399   SAVE_CFLAGS=$CFLAGS
   6400   CFLAGS="$CFLAGS -belf"
   6401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   6402 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   6403 if ${lt_cv_cc_needs_belf+:} false; then :
   6404   $as_echo_n "(cached) " >&6
   6405 else
   6406   ac_ext=c
   6407 ac_cpp='$CPP $CPPFLAGS'
   6408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6411 
   6412      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6413 /* end confdefs.h.  */
   6414 
   6415 int
   6416 main ()
   6417 {
   6418 
   6419   ;
   6420   return 0;
   6421 }
   6422 _ACEOF
   6423 if ac_fn_c_try_link "$LINENO"; then :
   6424   lt_cv_cc_needs_belf=yes
   6425 else
   6426   lt_cv_cc_needs_belf=no
   6427 fi
   6428 rm -f core conftest.err conftest.$ac_objext \
   6429     conftest$ac_exeext conftest.$ac_ext
   6430      ac_ext=c
   6431 ac_cpp='$CPP $CPPFLAGS'
   6432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6435 
   6436 fi
   6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   6438 $as_echo "$lt_cv_cc_needs_belf" >&6; }
   6439   if test yes != "$lt_cv_cc_needs_belf"; then
   6440     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   6441     CFLAGS=$SAVE_CFLAGS
   6442   fi
   6443   ;;
   6444 *-*solaris*)
   6445   # Find out what ABI is being produced by ac_compile, and set linker
   6446   # options accordingly.
   6447   echo 'int i;' > conftest.$ac_ext
   6448   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6449   (eval $ac_compile) 2>&5
   6450   ac_status=$?
   6451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6452   test $ac_status = 0; }; then
   6453     case `/usr/bin/file conftest.o` in
   6454     *64-bit*)
   6455       case $lt_cv_prog_gnu_ld in
   6456       yes*)
   6457         case $host in
   6458         i?86-*-solaris*|x86_64-*-solaris*)
   6459           LD="${LD-ld} -m elf_x86_64"
   6460           ;;
   6461         sparc*-*-solaris*)
   6462           LD="${LD-ld} -m elf64_sparc"
   6463           ;;
   6464         esac
   6465         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   6466         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   6467           LD=${LD-ld}_sol2
   6468         fi
   6469         ;;
   6470       *)
   6471 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   6472 	  LD="${LD-ld} -64"
   6473 	fi
   6474 	;;
   6475       esac
   6476       ;;
   6477     esac
   6478   fi
   6479   rm -rf conftest*
   6480   ;;
   6481 esac
   6482 
   6483 need_locks=$enable_libtool_lock
   6484 
   6485 if test -n "$ac_tool_prefix"; then
   6486   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   6487 set dummy ${ac_tool_prefix}mt; ac_word=$2
   6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6489 $as_echo_n "checking for $ac_word... " >&6; }
   6490 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
   6491   $as_echo_n "(cached) " >&6
   6492 else
   6493   if test -n "$MANIFEST_TOOL"; then
   6494   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   6495 else
   6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6497 for as_dir in $PATH
   6498 do
   6499   IFS=$as_save_IFS
   6500   test -z "$as_dir" && as_dir=.
   6501     for ac_exec_ext in '' $ac_executable_extensions; do
   6502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6503     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   6504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6505     break 2
   6506   fi
   6507 done
   6508   done
   6509 IFS=$as_save_IFS
   6510 
   6511 fi
   6512 fi
   6513 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   6514 if test -n "$MANIFEST_TOOL"; then
   6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   6516 $as_echo "$MANIFEST_TOOL" >&6; }
   6517 else
   6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6519 $as_echo "no" >&6; }
   6520 fi
   6521 
   6522 
   6523 fi
   6524 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   6525   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   6526   # Extract the first word of "mt", so it can be a program name with args.
   6527 set dummy mt; ac_word=$2
   6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6529 $as_echo_n "checking for $ac_word... " >&6; }
   6530 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
   6531   $as_echo_n "(cached) " >&6
   6532 else
   6533   if test -n "$ac_ct_MANIFEST_TOOL"; then
   6534   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   6535 else
   6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6537 for as_dir in $PATH
   6538 do
   6539   IFS=$as_save_IFS
   6540   test -z "$as_dir" && as_dir=.
   6541     for ac_exec_ext in '' $ac_executable_extensions; do
   6542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6543     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   6544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6545     break 2
   6546   fi
   6547 done
   6548   done
   6549 IFS=$as_save_IFS
   6550 
   6551 fi
   6552 fi
   6553 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   6554 if test -n "$ac_ct_MANIFEST_TOOL"; then
   6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   6556 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
   6557 else
   6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6559 $as_echo "no" >&6; }
   6560 fi
   6561 
   6562   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   6563     MANIFEST_TOOL=":"
   6564   else
   6565     case $cross_compiling:$ac_tool_warned in
   6566 yes:)
   6567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6569 ac_tool_warned=yes ;;
   6570 esac
   6571     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   6572   fi
   6573 else
   6574   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   6575 fi
   6576 
   6577 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   6579 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   6580 if ${lt_cv_path_mainfest_tool+:} false; then :
   6581   $as_echo_n "(cached) " >&6
   6582 else
   6583   lt_cv_path_mainfest_tool=no
   6584   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   6585   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   6586   cat conftest.err >&5
   6587   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   6588     lt_cv_path_mainfest_tool=yes
   6589   fi
   6590   rm -f conftest*
   6591 fi
   6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   6593 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
   6594 if test yes != "$lt_cv_path_mainfest_tool"; then
   6595   MANIFEST_TOOL=:
   6596 fi
   6597 
   6598 
   6599 
   6600 
   6601 
   6602 
   6603   case $host_os in
   6604     rhapsody* | darwin*)
   6605     if test -n "$ac_tool_prefix"; then
   6606   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   6607 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6609 $as_echo_n "checking for $ac_word... " >&6; }
   6610 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   6611   $as_echo_n "(cached) " >&6
   6612 else
   6613   if test -n "$DSYMUTIL"; then
   6614   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   6615 else
   6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6617 for as_dir in $PATH
   6618 do
   6619   IFS=$as_save_IFS
   6620   test -z "$as_dir" && as_dir=.
   6621     for ac_exec_ext in '' $ac_executable_extensions; do
   6622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6623     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   6624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6625     break 2
   6626   fi
   6627 done
   6628   done
   6629 IFS=$as_save_IFS
   6630 
   6631 fi
   6632 fi
   6633 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   6634 if test -n "$DSYMUTIL"; then
   6635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   6636 $as_echo "$DSYMUTIL" >&6; }
   6637 else
   6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6639 $as_echo "no" >&6; }
   6640 fi
   6641 
   6642 
   6643 fi
   6644 if test -z "$ac_cv_prog_DSYMUTIL"; then
   6645   ac_ct_DSYMUTIL=$DSYMUTIL
   6646   # Extract the first word of "dsymutil", so it can be a program name with args.
   6647 set dummy dsymutil; ac_word=$2
   6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6649 $as_echo_n "checking for $ac_word... " >&6; }
   6650 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   6651   $as_echo_n "(cached) " >&6
   6652 else
   6653   if test -n "$ac_ct_DSYMUTIL"; then
   6654   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   6655 else
   6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6657 for as_dir in $PATH
   6658 do
   6659   IFS=$as_save_IFS
   6660   test -z "$as_dir" && as_dir=.
   6661     for ac_exec_ext in '' $ac_executable_extensions; do
   6662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6663     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   6664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6665     break 2
   6666   fi
   6667 done
   6668   done
   6669 IFS=$as_save_IFS
   6670 
   6671 fi
   6672 fi
   6673 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   6674 if test -n "$ac_ct_DSYMUTIL"; then
   6675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   6676 $as_echo "$ac_ct_DSYMUTIL" >&6; }
   6677 else
   6678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6679 $as_echo "no" >&6; }
   6680 fi
   6681 
   6682   if test "x$ac_ct_DSYMUTIL" = x; then
   6683     DSYMUTIL=":"
   6684   else
   6685     case $cross_compiling:$ac_tool_warned in
   6686 yes:)
   6687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6689 ac_tool_warned=yes ;;
   6690 esac
   6691     DSYMUTIL=$ac_ct_DSYMUTIL
   6692   fi
   6693 else
   6694   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   6695 fi
   6696 
   6697     if test -n "$ac_tool_prefix"; then
   6698   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   6699 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6701 $as_echo_n "checking for $ac_word... " >&6; }
   6702 if ${ac_cv_prog_NMEDIT+:} false; then :
   6703   $as_echo_n "(cached) " >&6
   6704 else
   6705   if test -n "$NMEDIT"; then
   6706   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   6707 else
   6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6709 for as_dir in $PATH
   6710 do
   6711   IFS=$as_save_IFS
   6712   test -z "$as_dir" && as_dir=.
   6713     for ac_exec_ext in '' $ac_executable_extensions; do
   6714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6715     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   6716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6717     break 2
   6718   fi
   6719 done
   6720   done
   6721 IFS=$as_save_IFS
   6722 
   6723 fi
   6724 fi
   6725 NMEDIT=$ac_cv_prog_NMEDIT
   6726 if test -n "$NMEDIT"; then
   6727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   6728 $as_echo "$NMEDIT" >&6; }
   6729 else
   6730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6731 $as_echo "no" >&6; }
   6732 fi
   6733 
   6734 
   6735 fi
   6736 if test -z "$ac_cv_prog_NMEDIT"; then
   6737   ac_ct_NMEDIT=$NMEDIT
   6738   # Extract the first word of "nmedit", so it can be a program name with args.
   6739 set dummy nmedit; ac_word=$2
   6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6741 $as_echo_n "checking for $ac_word... " >&6; }
   6742 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   6743   $as_echo_n "(cached) " >&6
   6744 else
   6745   if test -n "$ac_ct_NMEDIT"; then
   6746   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   6747 else
   6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6749 for as_dir in $PATH
   6750 do
   6751   IFS=$as_save_IFS
   6752   test -z "$as_dir" && as_dir=.
   6753     for ac_exec_ext in '' $ac_executable_extensions; do
   6754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6755     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   6756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6757     break 2
   6758   fi
   6759 done
   6760   done
   6761 IFS=$as_save_IFS
   6762 
   6763 fi
   6764 fi
   6765 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   6766 if test -n "$ac_ct_NMEDIT"; then
   6767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   6768 $as_echo "$ac_ct_NMEDIT" >&6; }
   6769 else
   6770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6771 $as_echo "no" >&6; }
   6772 fi
   6773 
   6774   if test "x$ac_ct_NMEDIT" = x; then
   6775     NMEDIT=":"
   6776   else
   6777     case $cross_compiling:$ac_tool_warned in
   6778 yes:)
   6779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6781 ac_tool_warned=yes ;;
   6782 esac
   6783     NMEDIT=$ac_ct_NMEDIT
   6784   fi
   6785 else
   6786   NMEDIT="$ac_cv_prog_NMEDIT"
   6787 fi
   6788 
   6789     if test -n "$ac_tool_prefix"; then
   6790   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   6791 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6793 $as_echo_n "checking for $ac_word... " >&6; }
   6794 if ${ac_cv_prog_LIPO+:} false; then :
   6795   $as_echo_n "(cached) " >&6
   6796 else
   6797   if test -n "$LIPO"; then
   6798   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   6799 else
   6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6801 for as_dir in $PATH
   6802 do
   6803   IFS=$as_save_IFS
   6804   test -z "$as_dir" && as_dir=.
   6805     for ac_exec_ext in '' $ac_executable_extensions; do
   6806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6807     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   6808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6809     break 2
   6810   fi
   6811 done
   6812   done
   6813 IFS=$as_save_IFS
   6814 
   6815 fi
   6816 fi
   6817 LIPO=$ac_cv_prog_LIPO
   6818 if test -n "$LIPO"; then
   6819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   6820 $as_echo "$LIPO" >&6; }
   6821 else
   6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6823 $as_echo "no" >&6; }
   6824 fi
   6825 
   6826 
   6827 fi
   6828 if test -z "$ac_cv_prog_LIPO"; then
   6829   ac_ct_LIPO=$LIPO
   6830   # Extract the first word of "lipo", so it can be a program name with args.
   6831 set dummy lipo; ac_word=$2
   6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6833 $as_echo_n "checking for $ac_word... " >&6; }
   6834 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   6835   $as_echo_n "(cached) " >&6
   6836 else
   6837   if test -n "$ac_ct_LIPO"; then
   6838   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   6839 else
   6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6841 for as_dir in $PATH
   6842 do
   6843   IFS=$as_save_IFS
   6844   test -z "$as_dir" && as_dir=.
   6845     for ac_exec_ext in '' $ac_executable_extensions; do
   6846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6847     ac_cv_prog_ac_ct_LIPO="lipo"
   6848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6849     break 2
   6850   fi
   6851 done
   6852   done
   6853 IFS=$as_save_IFS
   6854 
   6855 fi
   6856 fi
   6857 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   6858 if test -n "$ac_ct_LIPO"; then
   6859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   6860 $as_echo "$ac_ct_LIPO" >&6; }
   6861 else
   6862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6863 $as_echo "no" >&6; }
   6864 fi
   6865 
   6866   if test "x$ac_ct_LIPO" = x; then
   6867     LIPO=":"
   6868   else
   6869     case $cross_compiling:$ac_tool_warned in
   6870 yes:)
   6871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6873 ac_tool_warned=yes ;;
   6874 esac
   6875     LIPO=$ac_ct_LIPO
   6876   fi
   6877 else
   6878   LIPO="$ac_cv_prog_LIPO"
   6879 fi
   6880 
   6881     if test -n "$ac_tool_prefix"; then
   6882   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   6883 set dummy ${ac_tool_prefix}otool; ac_word=$2
   6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6885 $as_echo_n "checking for $ac_word... " >&6; }
   6886 if ${ac_cv_prog_OTOOL+:} false; then :
   6887   $as_echo_n "(cached) " >&6
   6888 else
   6889   if test -n "$OTOOL"; then
   6890   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   6891 else
   6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6893 for as_dir in $PATH
   6894 do
   6895   IFS=$as_save_IFS
   6896   test -z "$as_dir" && as_dir=.
   6897     for ac_exec_ext in '' $ac_executable_extensions; do
   6898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6899     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   6900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6901     break 2
   6902   fi
   6903 done
   6904   done
   6905 IFS=$as_save_IFS
   6906 
   6907 fi
   6908 fi
   6909 OTOOL=$ac_cv_prog_OTOOL
   6910 if test -n "$OTOOL"; then
   6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   6912 $as_echo "$OTOOL" >&6; }
   6913 else
   6914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6915 $as_echo "no" >&6; }
   6916 fi
   6917 
   6918 
   6919 fi
   6920 if test -z "$ac_cv_prog_OTOOL"; then
   6921   ac_ct_OTOOL=$OTOOL
   6922   # Extract the first word of "otool", so it can be a program name with args.
   6923 set dummy otool; ac_word=$2
   6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6925 $as_echo_n "checking for $ac_word... " >&6; }
   6926 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   6927   $as_echo_n "(cached) " >&6
   6928 else
   6929   if test -n "$ac_ct_OTOOL"; then
   6930   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   6931 else
   6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6933 for as_dir in $PATH
   6934 do
   6935   IFS=$as_save_IFS
   6936   test -z "$as_dir" && as_dir=.
   6937     for ac_exec_ext in '' $ac_executable_extensions; do
   6938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6939     ac_cv_prog_ac_ct_OTOOL="otool"
   6940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6941     break 2
   6942   fi
   6943 done
   6944   done
   6945 IFS=$as_save_IFS
   6946 
   6947 fi
   6948 fi
   6949 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   6950 if test -n "$ac_ct_OTOOL"; then
   6951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   6952 $as_echo "$ac_ct_OTOOL" >&6; }
   6953 else
   6954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6955 $as_echo "no" >&6; }
   6956 fi
   6957 
   6958   if test "x$ac_ct_OTOOL" = x; then
   6959     OTOOL=":"
   6960   else
   6961     case $cross_compiling:$ac_tool_warned in
   6962 yes:)
   6963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6965 ac_tool_warned=yes ;;
   6966 esac
   6967     OTOOL=$ac_ct_OTOOL
   6968   fi
   6969 else
   6970   OTOOL="$ac_cv_prog_OTOOL"
   6971 fi
   6972 
   6973     if test -n "$ac_tool_prefix"; then
   6974   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   6975 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6977 $as_echo_n "checking for $ac_word... " >&6; }
   6978 if ${ac_cv_prog_OTOOL64+:} false; then :
   6979   $as_echo_n "(cached) " >&6
   6980 else
   6981   if test -n "$OTOOL64"; then
   6982   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   6983 else
   6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6985 for as_dir in $PATH
   6986 do
   6987   IFS=$as_save_IFS
   6988   test -z "$as_dir" && as_dir=.
   6989     for ac_exec_ext in '' $ac_executable_extensions; do
   6990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6991     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   6992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6993     break 2
   6994   fi
   6995 done
   6996   done
   6997 IFS=$as_save_IFS
   6998 
   6999 fi
   7000 fi
   7001 OTOOL64=$ac_cv_prog_OTOOL64
   7002 if test -n "$OTOOL64"; then
   7003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   7004 $as_echo "$OTOOL64" >&6; }
   7005 else
   7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7007 $as_echo "no" >&6; }
   7008 fi
   7009 
   7010 
   7011 fi
   7012 if test -z "$ac_cv_prog_OTOOL64"; then
   7013   ac_ct_OTOOL64=$OTOOL64
   7014   # Extract the first word of "otool64", so it can be a program name with args.
   7015 set dummy otool64; ac_word=$2
   7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7017 $as_echo_n "checking for $ac_word... " >&6; }
   7018 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   7019   $as_echo_n "(cached) " >&6
   7020 else
   7021   if test -n "$ac_ct_OTOOL64"; then
   7022   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   7023 else
   7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7025 for as_dir in $PATH
   7026 do
   7027   IFS=$as_save_IFS
   7028   test -z "$as_dir" && as_dir=.
   7029     for ac_exec_ext in '' $ac_executable_extensions; do
   7030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7031     ac_cv_prog_ac_ct_OTOOL64="otool64"
   7032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7033     break 2
   7034   fi
   7035 done
   7036   done
   7037 IFS=$as_save_IFS
   7038 
   7039 fi
   7040 fi
   7041 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   7042 if test -n "$ac_ct_OTOOL64"; then
   7043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   7044 $as_echo "$ac_ct_OTOOL64" >&6; }
   7045 else
   7046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7047 $as_echo "no" >&6; }
   7048 fi
   7049 
   7050   if test "x$ac_ct_OTOOL64" = x; then
   7051     OTOOL64=":"
   7052   else
   7053     case $cross_compiling:$ac_tool_warned in
   7054 yes:)
   7055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7057 ac_tool_warned=yes ;;
   7058 esac
   7059     OTOOL64=$ac_ct_OTOOL64
   7060   fi
   7061 else
   7062   OTOOL64="$ac_cv_prog_OTOOL64"
   7063 fi
   7064 
   7065 
   7066 
   7067 
   7068 
   7069 
   7070 
   7071 
   7072 
   7073 
   7074 
   7075 
   7076 
   7077 
   7078 
   7079 
   7080 
   7081 
   7082 
   7083 
   7084 
   7085 
   7086 
   7087 
   7088 
   7089 
   7090 
   7091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   7092 $as_echo_n "checking for -single_module linker flag... " >&6; }
   7093 if ${lt_cv_apple_cc_single_mod+:} false; then :
   7094   $as_echo_n "(cached) " >&6
   7095 else
   7096   lt_cv_apple_cc_single_mod=no
   7097       if test -z "$LT_MULTI_MODULE"; then
   7098 	# By default we will add the -single_module flag. You can override
   7099 	# by either setting the environment variable LT_MULTI_MODULE
   7100 	# non-empty at configure time, or by adding -multi_module to the
   7101 	# link flags.
   7102 	rm -rf libconftest.dylib*
   7103 	echo "int foo(void){return 1;}" > conftest.c
   7104 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7105 -dynamiclib -Wl,-single_module conftest.c" >&5
   7106 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7107 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   7108         _lt_result=$?
   7109 	# If there is a non-empty error log, and "single_module"
   7110 	# appears in it, assume the flag caused a linker warning
   7111         if test -s conftest.err && $GREP single_module conftest.err; then
   7112 	  cat conftest.err >&5
   7113 	# Otherwise, if the output was created with a 0 exit code from
   7114 	# the compiler, it worked.
   7115 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   7116 	  lt_cv_apple_cc_single_mod=yes
   7117 	else
   7118 	  cat conftest.err >&5
   7119 	fi
   7120 	rm -rf libconftest.dylib*
   7121 	rm -f conftest.*
   7122       fi
   7123 fi
   7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   7125 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   7126 
   7127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   7128 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   7129 if ${lt_cv_ld_exported_symbols_list+:} false; then :
   7130   $as_echo_n "(cached) " >&6
   7131 else
   7132   lt_cv_ld_exported_symbols_list=no
   7133       save_LDFLAGS=$LDFLAGS
   7134       echo "_main" > conftest.sym
   7135       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   7136       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7137 /* end confdefs.h.  */
   7138 
   7139 int
   7140 main ()
   7141 {
   7142 
   7143   ;
   7144   return 0;
   7145 }
   7146 _ACEOF
   7147 if ac_fn_c_try_link "$LINENO"; then :
   7148   lt_cv_ld_exported_symbols_list=yes
   7149 else
   7150   lt_cv_ld_exported_symbols_list=no
   7151 fi
   7152 rm -f core conftest.err conftest.$ac_objext \
   7153     conftest$ac_exeext conftest.$ac_ext
   7154 	LDFLAGS=$save_LDFLAGS
   7155 
   7156 fi
   7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   7158 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   7159 
   7160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   7161 $as_echo_n "checking for -force_load linker flag... " >&6; }
   7162 if ${lt_cv_ld_force_load+:} false; then :
   7163   $as_echo_n "(cached) " >&6
   7164 else
   7165   lt_cv_ld_force_load=no
   7166       cat > conftest.c << _LT_EOF
   7167 int forced_loaded() { return 2;}
   7168 _LT_EOF
   7169       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   7170       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   7171       echo "$AR cru libconftest.a conftest.o" >&5
   7172       $AR cru libconftest.a conftest.o 2>&5
   7173       echo "$RANLIB libconftest.a" >&5
   7174       $RANLIB libconftest.a 2>&5
   7175       cat > conftest.c << _LT_EOF
   7176 int main() { return 0;}
   7177 _LT_EOF
   7178       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   7179       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   7180       _lt_result=$?
   7181       if test -s conftest.err && $GREP force_load conftest.err; then
   7182 	cat conftest.err >&5
   7183       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   7184 	lt_cv_ld_force_load=yes
   7185       else
   7186 	cat conftest.err >&5
   7187       fi
   7188         rm -f conftest.err libconftest.a conftest conftest.c
   7189         rm -rf conftest.dSYM
   7190 
   7191 fi
   7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   7193 $as_echo "$lt_cv_ld_force_load" >&6; }
   7194     case $host_os in
   7195     rhapsody* | darwin1.[012])
   7196       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   7197     darwin1.*)
   7198       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7199     darwin*) # darwin 5.x on
   7200       # if running on 10.5 or later, the deployment target defaults
   7201       # to the OS version, if on x86, and 10.4, the deployment
   7202       # target defaults to 10.4. Don't you love it?
   7203       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   7204 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   7205 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7206 	10.[012][,.]*)
   7207 	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7208 	10.*)
   7209 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7210       esac
   7211     ;;
   7212   esac
   7213     if test yes = "$lt_cv_apple_cc_single_mod"; then
   7214       _lt_dar_single_mod='$single_module'
   7215     fi
   7216     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   7217       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   7218     else
   7219       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   7220     fi
   7221     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   7222       _lt_dsymutil='~$DSYMUTIL $lib || :'
   7223     else
   7224       _lt_dsymutil=
   7225     fi
   7226     ;;
   7227   esac
   7228 
   7229 # func_munge_path_list VARIABLE PATH
   7230 # -----------------------------------
   7231 # VARIABLE is name of variable containing _space_ separated list of
   7232 # directories to be munged by the contents of PATH, which is string
   7233 # having a format:
   7234 # "DIR[:DIR]:"
   7235 #       string "DIR[ DIR]" will be prepended to VARIABLE
   7236 # ":DIR[:DIR]"
   7237 #       string "DIR[ DIR]" will be appended to VARIABLE
   7238 # "DIRP[:DIRP]::[DIRA:]DIRA"
   7239 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   7240 #       "DIRA[ DIRA]" will be appended to VARIABLE
   7241 # "DIR[:DIR]"
   7242 #       VARIABLE will be replaced by "DIR[ DIR]"
   7243 func_munge_path_list ()
   7244 {
   7245     case x$2 in
   7246     x)
   7247         ;;
   7248     *:)
   7249         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   7250         ;;
   7251     x:*)
   7252         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   7253         ;;
   7254     *::*)
   7255         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   7256         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   7257         ;;
   7258     *)
   7259         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   7260         ;;
   7261     esac
   7262 }
   7263 
   7264 for ac_header in dlfcn.h
   7265 do :
   7266   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   7267 "
   7268 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   7269   cat >>confdefs.h <<_ACEOF
   7270 #define HAVE_DLFCN_H 1
   7271 _ACEOF
   7272 
   7273 fi
   7274 
   7275 done
   7276 
   7277 
   7278 
   7279 
   7280 
   7281 # Set options
   7282 
   7283 
   7284 
   7285         enable_dlopen=no
   7286 
   7287 
   7288   enable_win32_dll=no
   7289 
   7290 
   7291             # Check whether --enable-shared was given.
   7292 if test "${enable_shared+set}" = set; then :
   7293   enableval=$enable_shared; p=${PACKAGE-default}
   7294     case $enableval in
   7295     yes) enable_shared=yes ;;
   7296     no) enable_shared=no ;;
   7297     *)
   7298       enable_shared=no
   7299       # Look at the argument we got.  We use all the common list separators.
   7300       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7301       for pkg in $enableval; do
   7302 	IFS=$lt_save_ifs
   7303 	if test "X$pkg" = "X$p"; then
   7304 	  enable_shared=yes
   7305 	fi
   7306       done
   7307       IFS=$lt_save_ifs
   7308       ;;
   7309     esac
   7310 else
   7311   enable_shared=yes
   7312 fi
   7313 
   7314 
   7315 
   7316 
   7317 
   7318 
   7319 
   7320 
   7321 
   7322   # Check whether --enable-static was given.
   7323 if test "${enable_static+set}" = set; then :
   7324   enableval=$enable_static; p=${PACKAGE-default}
   7325     case $enableval in
   7326     yes) enable_static=yes ;;
   7327     no) enable_static=no ;;
   7328     *)
   7329      enable_static=no
   7330       # Look at the argument we got.  We use all the common list separators.
   7331       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7332       for pkg in $enableval; do
   7333 	IFS=$lt_save_ifs
   7334 	if test "X$pkg" = "X$p"; then
   7335 	  enable_static=yes
   7336 	fi
   7337       done
   7338       IFS=$lt_save_ifs
   7339       ;;
   7340     esac
   7341 else
   7342   enable_static=yes
   7343 fi
   7344 
   7345 
   7346 
   7347 
   7348 
   7349 
   7350 
   7351 
   7352 
   7353 
   7354 # Check whether --with-pic was given.
   7355 if test "${with_pic+set}" = set; then :
   7356   withval=$with_pic; lt_p=${PACKAGE-default}
   7357     case $withval in
   7358     yes|no) pic_mode=$withval ;;
   7359     *)
   7360       pic_mode=default
   7361       # Look at the argument we got.  We use all the common list separators.
   7362       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7363       for lt_pkg in $withval; do
   7364 	IFS=$lt_save_ifs
   7365 	if test "X$lt_pkg" = "X$lt_p"; then
   7366 	  pic_mode=yes
   7367 	fi
   7368       done
   7369       IFS=$lt_save_ifs
   7370       ;;
   7371     esac
   7372 else
   7373   pic_mode=default
   7374 fi
   7375 
   7376 
   7377 
   7378 
   7379 
   7380 
   7381 
   7382 
   7383   # Check whether --enable-fast-install was given.
   7384 if test "${enable_fast_install+set}" = set; then :
   7385   enableval=$enable_fast_install; p=${PACKAGE-default}
   7386     case $enableval in
   7387     yes) enable_fast_install=yes ;;
   7388     no) enable_fast_install=no ;;
   7389     *)
   7390       enable_fast_install=no
   7391       # Look at the argument we got.  We use all the common list separators.
   7392       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7393       for pkg in $enableval; do
   7394 	IFS=$lt_save_ifs
   7395 	if test "X$pkg" = "X$p"; then
   7396 	  enable_fast_install=yes
   7397 	fi
   7398       done
   7399       IFS=$lt_save_ifs
   7400       ;;
   7401     esac
   7402 else
   7403   enable_fast_install=yes
   7404 fi
   7405 
   7406 
   7407 
   7408 
   7409 
   7410 
   7411 
   7412 
   7413   shared_archive_member_spec=
   7414 case $host,$enable_shared in
   7415 power*-*-aix[5-9]*,yes)
   7416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   7417 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
   7418 
   7419 # Check whether --with-aix-soname was given.
   7420 if test "${with_aix_soname+set}" = set; then :
   7421   withval=$with_aix_soname; case $withval in
   7422     aix|svr4|both)
   7423       ;;
   7424     *)
   7425       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   7426       ;;
   7427     esac
   7428     lt_cv_with_aix_soname=$with_aix_soname
   7429 else
   7430   if ${lt_cv_with_aix_soname+:} false; then :
   7431   $as_echo_n "(cached) " >&6
   7432 else
   7433   lt_cv_with_aix_soname=aix
   7434 fi
   7435 
   7436     with_aix_soname=$lt_cv_with_aix_soname
   7437 fi
   7438 
   7439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   7440 $as_echo "$with_aix_soname" >&6; }
   7441   if test aix != "$with_aix_soname"; then
   7442     # For the AIX way of multilib, we name the shared archive member
   7443     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   7444     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   7445     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   7446     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   7447     if test 64 = "${OBJECT_MODE-32}"; then
   7448       shared_archive_member_spec=shr_64
   7449     else
   7450       shared_archive_member_spec=shr
   7451     fi
   7452   fi
   7453   ;;
   7454 *)
   7455   with_aix_soname=aix
   7456   ;;
   7457 esac
   7458 
   7459 
   7460 
   7461 
   7462 
   7463 
   7464 
   7465 
   7466 
   7467 
   7468 # This can be used to rebuild libtool when needed
   7469 LIBTOOL_DEPS=$ltmain
   7470 
   7471 # Always use our own libtool.
   7472 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   7473 
   7474 
   7475 
   7476 
   7477 
   7478 
   7479 
   7480 
   7481 
   7482 
   7483 
   7484 
   7485 
   7486 
   7487 
   7488 
   7489 
   7490 
   7491 
   7492 
   7493 
   7494 
   7495 
   7496 
   7497 
   7498 
   7499 
   7500 
   7501 
   7502 
   7503 test -z "$LN_S" && LN_S="ln -s"
   7504 
   7505 
   7506 
   7507 
   7508 
   7509 
   7510 
   7511 
   7512 
   7513 
   7514 
   7515 
   7516 
   7517 
   7518 if test -n "${ZSH_VERSION+set}"; then
   7519    setopt NO_GLOB_SUBST
   7520 fi
   7521 
   7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   7523 $as_echo_n "checking for objdir... " >&6; }
   7524 if ${lt_cv_objdir+:} false; then :
   7525   $as_echo_n "(cached) " >&6
   7526 else
   7527   rm -f .libs 2>/dev/null
   7528 mkdir .libs 2>/dev/null
   7529 if test -d .libs; then
   7530   lt_cv_objdir=.libs
   7531 else
   7532   # MS-DOS does not allow filenames that begin with a dot.
   7533   lt_cv_objdir=_libs
   7534 fi
   7535 rmdir .libs 2>/dev/null
   7536 fi
   7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   7538 $as_echo "$lt_cv_objdir" >&6; }
   7539 objdir=$lt_cv_objdir
   7540 
   7541 
   7542 
   7543 
   7544 
   7545 cat >>confdefs.h <<_ACEOF
   7546 #define LT_OBJDIR "$lt_cv_objdir/"
   7547 _ACEOF
   7548 
   7549 
   7550 
   7551 
   7552 case $host_os in
   7553 aix3*)
   7554   # AIX sometimes has problems with the GCC collect2 program.  For some
   7555   # reason, if we set the COLLECT_NAMES environment variable, the problems
   7556   # vanish in a puff of smoke.
   7557   if test set != "${COLLECT_NAMES+set}"; then
   7558     COLLECT_NAMES=
   7559     export COLLECT_NAMES
   7560   fi
   7561   ;;
   7562 esac
   7563 
   7564 # Global variables:
   7565 ofile=libtool
   7566 can_build_shared=yes
   7567 
   7568 # All known linkers require a '.a' archive for static linking (except MSVC,
   7569 # which needs '.lib').
   7570 libext=a
   7571 
   7572 with_gnu_ld=$lt_cv_prog_gnu_ld
   7573 
   7574 old_CC=$CC
   7575 old_CFLAGS=$CFLAGS
   7576 
   7577 # Set sane defaults for various variables
   7578 test -z "$CC" && CC=cc
   7579 test -z "$LTCC" && LTCC=$CC
   7580 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   7581 test -z "$LD" && LD=ld
   7582 test -z "$ac_objext" && ac_objext=o
   7583 
   7584 func_cc_basename $compiler
   7585 cc_basename=$func_cc_basename_result
   7586 
   7587 
   7588 # Only perform the check for file, if the check method requires it
   7589 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   7590 case $deplibs_check_method in
   7591 file_magic*)
   7592   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   7593     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   7594 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   7595 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7596   $as_echo_n "(cached) " >&6
   7597 else
   7598   case $MAGIC_CMD in
   7599 [\\/*] |  ?:[\\/]*)
   7600   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   7601   ;;
   7602 *)
   7603   lt_save_MAGIC_CMD=$MAGIC_CMD
   7604   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7605   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7606   for ac_dir in $ac_dummy; do
   7607     IFS=$lt_save_ifs
   7608     test -z "$ac_dir" && ac_dir=.
   7609     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   7610       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   7611       if test -n "$file_magic_test_file"; then
   7612 	case $deplibs_check_method in
   7613 	"file_magic "*)
   7614 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7615 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7616 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7617 	    $EGREP "$file_magic_regex" > /dev/null; then
   7618 	    :
   7619 	  else
   7620 	    cat <<_LT_EOF 1>&2
   7621 
   7622 *** Warning: the command libtool uses to detect shared libraries,
   7623 *** $file_magic_cmd, produces output that libtool cannot recognize.
   7624 *** The result is that libtool may fail to recognize shared libraries
   7625 *** as such.  This will affect the creation of libtool libraries that
   7626 *** depend on shared libraries, but programs linked with such libtool
   7627 *** libraries will work regardless of this problem.  Nevertheless, you
   7628 *** may want to report the problem to your system manager and/or to
   7629 *** bug-libtool (at] gnu.org
   7630 
   7631 _LT_EOF
   7632 	  fi ;;
   7633 	esac
   7634       fi
   7635       break
   7636     fi
   7637   done
   7638   IFS=$lt_save_ifs
   7639   MAGIC_CMD=$lt_save_MAGIC_CMD
   7640   ;;
   7641 esac
   7642 fi
   7643 
   7644 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7645 if test -n "$MAGIC_CMD"; then
   7646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   7647 $as_echo "$MAGIC_CMD" >&6; }
   7648 else
   7649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7650 $as_echo "no" >&6; }
   7651 fi
   7652 
   7653 
   7654 
   7655 
   7656 
   7657 if test -z "$lt_cv_path_MAGIC_CMD"; then
   7658   if test -n "$ac_tool_prefix"; then
   7659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   7660 $as_echo_n "checking for file... " >&6; }
   7661 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7662   $as_echo_n "(cached) " >&6
   7663 else
   7664   case $MAGIC_CMD in
   7665 [\\/*] |  ?:[\\/]*)
   7666   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   7667   ;;
   7668 *)
   7669   lt_save_MAGIC_CMD=$MAGIC_CMD
   7670   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7671   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7672   for ac_dir in $ac_dummy; do
   7673     IFS=$lt_save_ifs
   7674     test -z "$ac_dir" && ac_dir=.
   7675     if test -f "$ac_dir/file"; then
   7676       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   7677       if test -n "$file_magic_test_file"; then
   7678 	case $deplibs_check_method in
   7679 	"file_magic "*)
   7680 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7681 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7682 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7683 	    $EGREP "$file_magic_regex" > /dev/null; then
   7684 	    :
   7685 	  else
   7686 	    cat <<_LT_EOF 1>&2
   7687 
   7688 *** Warning: the command libtool uses to detect shared libraries,
   7689 *** $file_magic_cmd, produces output that libtool cannot recognize.
   7690 *** The result is that libtool may fail to recognize shared libraries
   7691 *** as such.  This will affect the creation of libtool libraries that
   7692 *** depend on shared libraries, but programs linked with such libtool
   7693 *** libraries will work regardless of this problem.  Nevertheless, you
   7694 *** may want to report the problem to your system manager and/or to
   7695 *** bug-libtool (at] gnu.org
   7696 
   7697 _LT_EOF
   7698 	  fi ;;
   7699 	esac
   7700       fi
   7701       break
   7702     fi
   7703   done
   7704   IFS=$lt_save_ifs
   7705   MAGIC_CMD=$lt_save_MAGIC_CMD
   7706   ;;
   7707 esac
   7708 fi
   7709 
   7710 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7711 if test -n "$MAGIC_CMD"; then
   7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   7713 $as_echo "$MAGIC_CMD" >&6; }
   7714 else
   7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7716 $as_echo "no" >&6; }
   7717 fi
   7718 
   7719 
   7720   else
   7721     MAGIC_CMD=:
   7722   fi
   7723 fi
   7724 
   7725   fi
   7726   ;;
   7727 esac
   7728 
   7729 # Use C for the default configuration in the libtool script
   7730 
   7731 lt_save_CC=$CC
   7732 ac_ext=c
   7733 ac_cpp='$CPP $CPPFLAGS'
   7734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7737 
   7738 
   7739 # Source file extension for C test sources.
   7740 ac_ext=c
   7741 
   7742 # Object file extension for compiled C test sources.
   7743 objext=o
   7744 objext=$objext
   7745 
   7746 # Code to be used in simple compile tests
   7747 lt_simple_compile_test_code="int some_variable = 0;"
   7748 
   7749 # Code to be used in simple link tests
   7750 lt_simple_link_test_code='int main(){return(0);}'
   7751 
   7752 
   7753 
   7754 
   7755 
   7756 
   7757 
   7758 # If no C compiler was specified, use CC.
   7759 LTCC=${LTCC-"$CC"}
   7760 
   7761 # If no C compiler flags were specified, use CFLAGS.
   7762 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   7763 
   7764 # Allow CC to be a program name with arguments.
   7765 compiler=$CC
   7766 
   7767 # Save the default compiler, since it gets overwritten when the other
   7768 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   7769 compiler_DEFAULT=$CC
   7770 
   7771 # save warnings/boilerplate of simple test code
   7772 ac_outfile=conftest.$ac_objext
   7773 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   7774 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   7775 _lt_compiler_boilerplate=`cat conftest.err`
   7776 $RM conftest*
   7777 
   7778 ac_outfile=conftest.$ac_objext
   7779 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   7780 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   7781 _lt_linker_boilerplate=`cat conftest.err`
   7782 $RM -r conftest*
   7783 
   7784 
   7785 ## CAVEAT EMPTOR:
   7786 ## There is no encapsulation within the following macros, do not change
   7787 ## the running order or otherwise move them around unless you know exactly
   7788 ## what you are doing...
   7789 if test -n "$compiler"; then
   7790 
   7791 lt_prog_compiler_no_builtin_flag=
   7792 
   7793 if test yes = "$GCC"; then
   7794   case $cc_basename in
   7795   nvcc*)
   7796     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   7797   *)
   7798     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   7799   esac
   7800 
   7801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   7802 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   7803 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   7804   $as_echo_n "(cached) " >&6
   7805 else
   7806   lt_cv_prog_compiler_rtti_exceptions=no
   7807    ac_outfile=conftest.$ac_objext
   7808    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   7809    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   7810    # Insert the option either (1) after the last *FLAGS variable, or
   7811    # (2) before a word containing "conftest.", or (3) at the end.
   7812    # Note that $ac_compile itself does not contain backslashes and begins
   7813    # with a dollar sign (not a hyphen), so the echo should work correctly.
   7814    # The option is referenced via a variable to avoid confusing sed.
   7815    lt_compile=`echo "$ac_compile" | $SED \
   7816    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   7817    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   7818    -e 's:$: $lt_compiler_flag:'`
   7819    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   7820    (eval "$lt_compile" 2>conftest.err)
   7821    ac_status=$?
   7822    cat conftest.err >&5
   7823    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7824    if (exit $ac_status) && test -s "$ac_outfile"; then
   7825      # The compiler can only warn and ignore the option if not recognized
   7826      # So say no if there are warnings other than the usual output.
   7827      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   7828      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   7829      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   7830        lt_cv_prog_compiler_rtti_exceptions=yes
   7831      fi
   7832    fi
   7833    $RM conftest*
   7834 
   7835 fi
   7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   7837 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   7838 
   7839 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   7840     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   7841 else
   7842     :
   7843 fi
   7844 
   7845 fi
   7846 
   7847 
   7848 
   7849 
   7850 
   7851 
   7852   lt_prog_compiler_wl=
   7853 lt_prog_compiler_pic=
   7854 lt_prog_compiler_static=
   7855 
   7856 
   7857   if test yes = "$GCC"; then
   7858     lt_prog_compiler_wl='-Wl,'
   7859     lt_prog_compiler_static='-static'
   7860 
   7861     case $host_os in
   7862       aix*)
   7863       # All AIX code is PIC.
   7864       if test ia64 = "$host_cpu"; then
   7865 	# AIX 5 now supports IA64 processor
   7866 	lt_prog_compiler_static='-Bstatic'
   7867       fi
   7868       lt_prog_compiler_pic='-fPIC'
   7869       ;;
   7870 
   7871     amigaos*)
   7872       case $host_cpu in
   7873       powerpc)
   7874             # see comment about AmigaOS4 .so support
   7875             lt_prog_compiler_pic='-fPIC'
   7876         ;;
   7877       m68k)
   7878             # FIXME: we need at least 68020 code to build shared libraries, but
   7879             # adding the '-m68020' flag to GCC prevents building anything better,
   7880             # like '-m68040'.
   7881             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   7882         ;;
   7883       esac
   7884       ;;
   7885 
   7886     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   7887       # PIC is the default for these OSes.
   7888       ;;
   7889 
   7890     mingw* | cygwin* | pw32* | os2* | cegcc*)
   7891       # This hack is so that the source file can tell whether it is being
   7892       # built for inclusion in a dll (and should export symbols for example).
   7893       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   7894       # (--disable-auto-import) libraries
   7895       lt_prog_compiler_pic='-DDLL_EXPORT'
   7896       case $host_os in
   7897       os2*)
   7898 	lt_prog_compiler_static='$wl-static'
   7899 	;;
   7900       esac
   7901       ;;
   7902 
   7903     darwin* | rhapsody*)
   7904       # PIC is the default on this platform
   7905       # Common symbols not allowed in MH_DYLIB files
   7906       lt_prog_compiler_pic='-fno-common'
   7907       ;;
   7908 
   7909     haiku*)
   7910       # PIC is the default for Haiku.
   7911       # The "-static" flag exists, but is broken.
   7912       lt_prog_compiler_static=
   7913       ;;
   7914 
   7915     hpux*)
   7916       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   7917       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   7918       # sets the default TLS model and affects inlining.
   7919       case $host_cpu in
   7920       hppa*64*)
   7921 	# +Z the default
   7922 	;;
   7923       *)
   7924 	lt_prog_compiler_pic='-fPIC'
   7925 	;;
   7926       esac
   7927       ;;
   7928 
   7929     interix[3-9]*)
   7930       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   7931       # Instead, we relocate shared libraries at runtime.
   7932       ;;
   7933 
   7934     msdosdjgpp*)
   7935       # Just because we use GCC doesn't mean we suddenly get shared libraries
   7936       # on systems that don't support them.
   7937       lt_prog_compiler_can_build_shared=no
   7938       enable_shared=no
   7939       ;;
   7940 
   7941     *nto* | *qnx*)
   7942       # QNX uses GNU C++, but need to define -shared option too, otherwise
   7943       # it will coredump.
   7944       lt_prog_compiler_pic='-fPIC -shared'
   7945       ;;
   7946 
   7947     sysv4*MP*)
   7948       if test -d /usr/nec; then
   7949 	lt_prog_compiler_pic=-Kconform_pic
   7950       fi
   7951       ;;
   7952 
   7953     *)
   7954       lt_prog_compiler_pic='-fPIC'
   7955       ;;
   7956     esac
   7957 
   7958     case $cc_basename in
   7959     nvcc*) # Cuda Compiler Driver 2.2
   7960       lt_prog_compiler_wl='-Xlinker '
   7961       if test -n "$lt_prog_compiler_pic"; then
   7962         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   7963       fi
   7964       ;;
   7965     esac
   7966   else
   7967     # PORTME Check for flag to pass linker flags through the system compiler.
   7968     case $host_os in
   7969     aix*)
   7970       lt_prog_compiler_wl='-Wl,'
   7971       if test ia64 = "$host_cpu"; then
   7972 	# AIX 5 now supports IA64 processor
   7973 	lt_prog_compiler_static='-Bstatic'
   7974       else
   7975 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   7976       fi
   7977       ;;
   7978 
   7979     darwin* | rhapsody*)
   7980       # PIC is the default on this platform
   7981       # Common symbols not allowed in MH_DYLIB files
   7982       lt_prog_compiler_pic='-fno-common'
   7983       case $cc_basename in
   7984       nagfor*)
   7985         # NAG Fortran compiler
   7986         lt_prog_compiler_wl='-Wl,-Wl,,'
   7987         lt_prog_compiler_pic='-PIC'
   7988         lt_prog_compiler_static='-Bstatic'
   7989         ;;
   7990       esac
   7991       ;;
   7992 
   7993     mingw* | cygwin* | pw32* | os2* | cegcc*)
   7994       # This hack is so that the source file can tell whether it is being
   7995       # built for inclusion in a dll (and should export symbols for example).
   7996       lt_prog_compiler_pic='-DDLL_EXPORT'
   7997       case $host_os in
   7998       os2*)
   7999 	lt_prog_compiler_static='$wl-static'
   8000 	;;
   8001       esac
   8002       ;;
   8003 
   8004     hpux9* | hpux10* | hpux11*)
   8005       lt_prog_compiler_wl='-Wl,'
   8006       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   8007       # not for PA HP-UX.
   8008       case $host_cpu in
   8009       hppa*64*|ia64*)
   8010 	# +Z the default
   8011 	;;
   8012       *)
   8013 	lt_prog_compiler_pic='+Z'
   8014 	;;
   8015       esac
   8016       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   8017       lt_prog_compiler_static='$wl-a ${wl}archive'
   8018       ;;
   8019 
   8020     irix5* | irix6* | nonstopux*)
   8021       lt_prog_compiler_wl='-Wl,'
   8022       # PIC (with -KPIC) is the default.
   8023       lt_prog_compiler_static='-non_shared'
   8024       ;;
   8025 
   8026     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   8027       case $cc_basename in
   8028       # old Intel for x86_64, which still supported -KPIC.
   8029       ecc*)
   8030 	lt_prog_compiler_wl='-Wl,'
   8031 	lt_prog_compiler_pic='-KPIC'
   8032 	lt_prog_compiler_static='-static'
   8033         ;;
   8034       # icc used to be incompatible with GCC.
   8035       # ICC 10 doesn't accept -KPIC any more.
   8036       icc* | ifort*)
   8037 	lt_prog_compiler_wl='-Wl,'
   8038 	lt_prog_compiler_pic='-fPIC'
   8039 	lt_prog_compiler_static='-static'
   8040         ;;
   8041       # Lahey Fortran 8.1.
   8042       lf95*)
   8043 	lt_prog_compiler_wl='-Wl,'
   8044 	lt_prog_compiler_pic='--shared'
   8045 	lt_prog_compiler_static='--static'
   8046 	;;
   8047       nagfor*)
   8048 	# NAG Fortran compiler
   8049 	lt_prog_compiler_wl='-Wl,-Wl,,'
   8050 	lt_prog_compiler_pic='-PIC'
   8051 	lt_prog_compiler_static='-Bstatic'
   8052 	;;
   8053       tcc*)
   8054 	# Fabrice Bellard et al's Tiny C Compiler
   8055 	lt_prog_compiler_wl='-Wl,'
   8056 	lt_prog_compiler_pic='-fPIC'
   8057 	lt_prog_compiler_static='-static'
   8058 	;;
   8059       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   8060         # Portland Group compilers (*not* the Pentium gcc compiler,
   8061 	# which looks to be a dead project)
   8062 	lt_prog_compiler_wl='-Wl,'
   8063 	lt_prog_compiler_pic='-fpic'
   8064 	lt_prog_compiler_static='-Bstatic'
   8065         ;;
   8066       ccc*)
   8067         lt_prog_compiler_wl='-Wl,'
   8068         # All Alpha code is PIC.
   8069         lt_prog_compiler_static='-non_shared'
   8070         ;;
   8071       xl* | bgxl* | bgf* | mpixl*)
   8072 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   8073 	lt_prog_compiler_wl='-Wl,'
   8074 	lt_prog_compiler_pic='-qpic'
   8075 	lt_prog_compiler_static='-qstaticlink'
   8076 	;;
   8077       *)
   8078 	case `$CC -V 2>&1 | sed 5q` in
   8079 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   8080 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   8081 	  lt_prog_compiler_pic='-KPIC'
   8082 	  lt_prog_compiler_static='-Bstatic'
   8083 	  lt_prog_compiler_wl=''
   8084 	  ;;
   8085 	*Sun\ F* | *Sun*Fortran*)
   8086 	  lt_prog_compiler_pic='-KPIC'
   8087 	  lt_prog_compiler_static='-Bstatic'
   8088 	  lt_prog_compiler_wl='-Qoption ld '
   8089 	  ;;
   8090 	*Sun\ C*)
   8091 	  # Sun C 5.9
   8092 	  lt_prog_compiler_pic='-KPIC'
   8093 	  lt_prog_compiler_static='-Bstatic'
   8094 	  lt_prog_compiler_wl='-Wl,'
   8095 	  ;;
   8096         *Intel*\ [CF]*Compiler*)
   8097 	  lt_prog_compiler_wl='-Wl,'
   8098 	  lt_prog_compiler_pic='-fPIC'
   8099 	  lt_prog_compiler_static='-static'
   8100 	  ;;
   8101 	*Portland\ Group*)
   8102 	  lt_prog_compiler_wl='-Wl,'
   8103 	  lt_prog_compiler_pic='-fpic'
   8104 	  lt_prog_compiler_static='-Bstatic'
   8105 	  ;;
   8106 	esac
   8107 	;;
   8108       esac
   8109       ;;
   8110 
   8111     newsos6)
   8112       lt_prog_compiler_pic='-KPIC'
   8113       lt_prog_compiler_static='-Bstatic'
   8114       ;;
   8115 
   8116     *nto* | *qnx*)
   8117       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8118       # it will coredump.
   8119       lt_prog_compiler_pic='-fPIC -shared'
   8120       ;;
   8121 
   8122     osf3* | osf4* | osf5*)
   8123       lt_prog_compiler_wl='-Wl,'
   8124       # All OSF/1 code is PIC.
   8125       lt_prog_compiler_static='-non_shared'
   8126       ;;
   8127 
   8128     rdos*)
   8129       lt_prog_compiler_static='-non_shared'
   8130       ;;
   8131 
   8132     solaris*)
   8133       lt_prog_compiler_pic='-KPIC'
   8134       lt_prog_compiler_static='-Bstatic'
   8135       case $cc_basename in
   8136       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   8137 	lt_prog_compiler_wl='-Qoption ld ';;
   8138       *)
   8139 	lt_prog_compiler_wl='-Wl,';;
   8140       esac
   8141       ;;
   8142 
   8143     sunos4*)
   8144       lt_prog_compiler_wl='-Qoption ld '
   8145       lt_prog_compiler_pic='-PIC'
   8146       lt_prog_compiler_static='-Bstatic'
   8147       ;;
   8148 
   8149     sysv4 | sysv4.2uw2* | sysv4.3*)
   8150       lt_prog_compiler_wl='-Wl,'
   8151       lt_prog_compiler_pic='-KPIC'
   8152       lt_prog_compiler_static='-Bstatic'
   8153       ;;
   8154 
   8155     sysv4*MP*)
   8156       if test -d /usr/nec; then
   8157 	lt_prog_compiler_pic='-Kconform_pic'
   8158 	lt_prog_compiler_static='-Bstatic'
   8159       fi
   8160       ;;
   8161 
   8162     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   8163       lt_prog_compiler_wl='-Wl,'
   8164       lt_prog_compiler_pic='-KPIC'
   8165       lt_prog_compiler_static='-Bstatic'
   8166       ;;
   8167 
   8168     unicos*)
   8169       lt_prog_compiler_wl='-Wl,'
   8170       lt_prog_compiler_can_build_shared=no
   8171       ;;
   8172 
   8173     uts4*)
   8174       lt_prog_compiler_pic='-pic'
   8175       lt_prog_compiler_static='-Bstatic'
   8176       ;;
   8177 
   8178     *)
   8179       lt_prog_compiler_can_build_shared=no
   8180       ;;
   8181     esac
   8182   fi
   8183 
   8184 case $host_os in
   8185   # For platforms that do not support PIC, -DPIC is meaningless:
   8186   *djgpp*)
   8187     lt_prog_compiler_pic=
   8188     ;;
   8189   *)
   8190     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   8191     ;;
   8192 esac
   8193 
   8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   8195 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   8196 if ${lt_cv_prog_compiler_pic+:} false; then :
   8197   $as_echo_n "(cached) " >&6
   8198 else
   8199   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   8200 fi
   8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   8202 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
   8203 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   8204 
   8205 #
   8206 # Check to make sure the PIC flag actually works.
   8207 #
   8208 if test -n "$lt_prog_compiler_pic"; then
   8209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   8210 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   8211 if ${lt_cv_prog_compiler_pic_works+:} false; then :
   8212   $as_echo_n "(cached) " >&6
   8213 else
   8214   lt_cv_prog_compiler_pic_works=no
   8215    ac_outfile=conftest.$ac_objext
   8216    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8217    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   8218    # Insert the option either (1) after the last *FLAGS variable, or
   8219    # (2) before a word containing "conftest.", or (3) at the end.
   8220    # Note that $ac_compile itself does not contain backslashes and begins
   8221    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8222    # The option is referenced via a variable to avoid confusing sed.
   8223    lt_compile=`echo "$ac_compile" | $SED \
   8224    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8225    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8226    -e 's:$: $lt_compiler_flag:'`
   8227    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8228    (eval "$lt_compile" 2>conftest.err)
   8229    ac_status=$?
   8230    cat conftest.err >&5
   8231    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8232    if (exit $ac_status) && test -s "$ac_outfile"; then
   8233      # The compiler can only warn and ignore the option if not recognized
   8234      # So say no if there are warnings other than the usual output.
   8235      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8236      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8237      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8238        lt_cv_prog_compiler_pic_works=yes
   8239      fi
   8240    fi
   8241    $RM conftest*
   8242 
   8243 fi
   8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   8245 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   8246 
   8247 if test yes = "$lt_cv_prog_compiler_pic_works"; then
   8248     case $lt_prog_compiler_pic in
   8249      "" | " "*) ;;
   8250      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   8251      esac
   8252 else
   8253     lt_prog_compiler_pic=
   8254      lt_prog_compiler_can_build_shared=no
   8255 fi
   8256 
   8257 fi
   8258 
   8259 
   8260 
   8261 
   8262 
   8263 
   8264 
   8265 
   8266 
   8267 
   8268 
   8269 #
   8270 # Check to make sure the static flag actually works.
   8271 #
   8272 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   8274 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   8275 if ${lt_cv_prog_compiler_static_works+:} false; then :
   8276   $as_echo_n "(cached) " >&6
   8277 else
   8278   lt_cv_prog_compiler_static_works=no
   8279    save_LDFLAGS=$LDFLAGS
   8280    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   8281    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   8282    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   8283      # The linker can only warn and ignore the option if not recognized
   8284      # So say no if there are warnings
   8285      if test -s conftest.err; then
   8286        # Append any errors to the config.log.
   8287        cat conftest.err 1>&5
   8288        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   8289        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8290        if diff conftest.exp conftest.er2 >/dev/null; then
   8291          lt_cv_prog_compiler_static_works=yes
   8292        fi
   8293      else
   8294        lt_cv_prog_compiler_static_works=yes
   8295      fi
   8296    fi
   8297    $RM -r conftest*
   8298    LDFLAGS=$save_LDFLAGS
   8299 
   8300 fi
   8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   8302 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   8303 
   8304 if test yes = "$lt_cv_prog_compiler_static_works"; then
   8305     :
   8306 else
   8307     lt_prog_compiler_static=
   8308 fi
   8309 
   8310 
   8311 
   8312 
   8313 
   8314 
   8315 
   8316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8317 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8318 if ${lt_cv_prog_compiler_c_o+:} false; then :
   8319   $as_echo_n "(cached) " >&6
   8320 else
   8321   lt_cv_prog_compiler_c_o=no
   8322    $RM -r conftest 2>/dev/null
   8323    mkdir conftest
   8324    cd conftest
   8325    mkdir out
   8326    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8327 
   8328    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8329    # Insert the option either (1) after the last *FLAGS variable, or
   8330    # (2) before a word containing "conftest.", or (3) at the end.
   8331    # Note that $ac_compile itself does not contain backslashes and begins
   8332    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8333    lt_compile=`echo "$ac_compile" | $SED \
   8334    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8335    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8336    -e 's:$: $lt_compiler_flag:'`
   8337    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8338    (eval "$lt_compile" 2>out/conftest.err)
   8339    ac_status=$?
   8340    cat out/conftest.err >&5
   8341    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8342    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8343    then
   8344      # The compiler can only warn and ignore the option if not recognized
   8345      # So say no if there are warnings
   8346      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8347      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8348      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8349        lt_cv_prog_compiler_c_o=yes
   8350      fi
   8351    fi
   8352    chmod u+w . 2>&5
   8353    $RM conftest*
   8354    # SGI C++ compiler will create directory out/ii_files/ for
   8355    # template instantiation
   8356    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8357    $RM out/* && rmdir out
   8358    cd ..
   8359    $RM -r conftest
   8360    $RM conftest*
   8361 
   8362 fi
   8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8364 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8365 
   8366 
   8367 
   8368 
   8369 
   8370 
   8371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8372 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8373 if ${lt_cv_prog_compiler_c_o+:} false; then :
   8374   $as_echo_n "(cached) " >&6
   8375 else
   8376   lt_cv_prog_compiler_c_o=no
   8377    $RM -r conftest 2>/dev/null
   8378    mkdir conftest
   8379    cd conftest
   8380    mkdir out
   8381    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8382 
   8383    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8384    # Insert the option either (1) after the last *FLAGS variable, or
   8385    # (2) before a word containing "conftest.", or (3) at the end.
   8386    # Note that $ac_compile itself does not contain backslashes and begins
   8387    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8388    lt_compile=`echo "$ac_compile" | $SED \
   8389    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8390    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8391    -e 's:$: $lt_compiler_flag:'`
   8392    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8393    (eval "$lt_compile" 2>out/conftest.err)
   8394    ac_status=$?
   8395    cat out/conftest.err >&5
   8396    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8397    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8398    then
   8399      # The compiler can only warn and ignore the option if not recognized
   8400      # So say no if there are warnings
   8401      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8402      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8403      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8404        lt_cv_prog_compiler_c_o=yes
   8405      fi
   8406    fi
   8407    chmod u+w . 2>&5
   8408    $RM conftest*
   8409    # SGI C++ compiler will create directory out/ii_files/ for
   8410    # template instantiation
   8411    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8412    $RM out/* && rmdir out
   8413    cd ..
   8414    $RM -r conftest
   8415    $RM conftest*
   8416 
   8417 fi
   8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8419 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8420 
   8421 
   8422 
   8423 
   8424 hard_links=nottested
   8425 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   8426   # do not overwrite the value of need_locks provided by the user
   8427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   8428 $as_echo_n "checking if we can lock with hard links... " >&6; }
   8429   hard_links=yes
   8430   $RM conftest*
   8431   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8432   touch conftest.a
   8433   ln conftest.a conftest.b 2>&5 || hard_links=no
   8434   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   8436 $as_echo "$hard_links" >&6; }
   8437   if test no = "$hard_links"; then
   8438     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   8439 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   8440     need_locks=warn
   8441   fi
   8442 else
   8443   need_locks=no
   8444 fi
   8445 
   8446 
   8447 
   8448 
   8449 
   8450 
   8451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   8452 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   8453 
   8454   runpath_var=
   8455   allow_undefined_flag=
   8456   always_export_symbols=no
   8457   archive_cmds=
   8458   archive_expsym_cmds=
   8459   compiler_needs_object=no
   8460   enable_shared_with_static_runtimes=no
   8461   export_dynamic_flag_spec=
   8462   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   8463   hardcode_automatic=no
   8464   hardcode_direct=no
   8465   hardcode_direct_absolute=no
   8466   hardcode_libdir_flag_spec=
   8467   hardcode_libdir_separator=
   8468   hardcode_minus_L=no
   8469   hardcode_shlibpath_var=unsupported
   8470   inherit_rpath=no
   8471   link_all_deplibs=unknown
   8472   module_cmds=
   8473   module_expsym_cmds=
   8474   old_archive_from_new_cmds=
   8475   old_archive_from_expsyms_cmds=
   8476   thread_safe_flag_spec=
   8477   whole_archive_flag_spec=
   8478   # include_expsyms should be a list of space-separated symbols to be *always*
   8479   # included in the symbol list
   8480   include_expsyms=
   8481   # exclude_expsyms can be an extended regexp of symbols to exclude
   8482   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   8483   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   8484   # as well as any symbol that contains 'd'.
   8485   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   8486   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   8487   # platforms (ab)use it in PIC code, but their linkers get confused if
   8488   # the symbol is explicitly referenced.  Since portable code cannot
   8489   # rely on this symbol name, it's probably fine to never include it in
   8490   # preloaded symbol tables.
   8491   # Exclude shared library initialization/finalization symbols.
   8492   extract_expsyms_cmds=
   8493 
   8494   case $host_os in
   8495   cygwin* | mingw* | pw32* | cegcc*)
   8496     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   8497     # When not using gcc, we currently assume that we are using
   8498     # Microsoft Visual C++.
   8499     if test yes != "$GCC"; then
   8500       with_gnu_ld=no
   8501     fi
   8502     ;;
   8503   interix*)
   8504     # we just hope/assume this is gcc and not c89 (= MSVC++)
   8505     with_gnu_ld=yes
   8506     ;;
   8507   openbsd* | bitrig*)
   8508     with_gnu_ld=no
   8509     ;;
   8510   esac
   8511 
   8512   ld_shlibs=yes
   8513 
   8514   # On some targets, GNU ld is compatible enough with the native linker
   8515   # that we're better off using the native interface for both.
   8516   lt_use_gnu_ld_interface=no
   8517   if test yes = "$with_gnu_ld"; then
   8518     case $host_os in
   8519       aix*)
   8520 	# The AIX port of GNU ld has always aspired to compatibility
   8521 	# with the native linker.  However, as the warning in the GNU ld
   8522 	# block says, versions before 2.19.5* couldn't really create working
   8523 	# shared libraries, regardless of the interface used.
   8524 	case `$LD -v 2>&1` in
   8525 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   8526 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   8527 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   8528 	  *)
   8529 	    lt_use_gnu_ld_interface=yes
   8530 	    ;;
   8531 	esac
   8532 	;;
   8533       *)
   8534 	lt_use_gnu_ld_interface=yes
   8535 	;;
   8536     esac
   8537   fi
   8538 
   8539   if test yes = "$lt_use_gnu_ld_interface"; then
   8540     # If archive_cmds runs LD, not CC, wlarc should be empty
   8541     wlarc='$wl'
   8542 
   8543     # Set some defaults for GNU ld with shared library support. These
   8544     # are reset later if shared libraries are not supported. Putting them
   8545     # here allows them to be overridden if necessary.
   8546     runpath_var=LD_RUN_PATH
   8547     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8548     export_dynamic_flag_spec='$wl--export-dynamic'
   8549     # ancient GNU ld didn't support --whole-archive et. al.
   8550     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   8551       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   8552     else
   8553       whole_archive_flag_spec=
   8554     fi
   8555     supports_anon_versioning=no
   8556     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
   8557       *GNU\ gold*) supports_anon_versioning=yes ;;
   8558       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   8559       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   8560       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   8561       *\ 2.11.*) ;; # other 2.11 versions
   8562       *) supports_anon_versioning=yes ;;
   8563     esac
   8564 
   8565     # See if GNU ld supports shared libraries.
   8566     case $host_os in
   8567     aix[3-9]*)
   8568       # On AIX/PPC, the GNU linker is very broken
   8569       if test ia64 != "$host_cpu"; then
   8570 	ld_shlibs=no
   8571 	cat <<_LT_EOF 1>&2
   8572 
   8573 *** Warning: the GNU linker, at least up to release 2.19, is reported
   8574 *** to be unable to reliably create shared libraries on AIX.
   8575 *** Therefore, libtool is disabling shared libraries support.  If you
   8576 *** really care for shared libraries, you may want to install binutils
   8577 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   8578 *** You will then need to restart the configuration process.
   8579 
   8580 _LT_EOF
   8581       fi
   8582       ;;
   8583 
   8584     amigaos*)
   8585       case $host_cpu in
   8586       powerpc)
   8587             # see comment about AmigaOS4 .so support
   8588             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8589             archive_expsym_cmds=''
   8590         ;;
   8591       m68k)
   8592             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)'
   8593             hardcode_libdir_flag_spec='-L$libdir'
   8594             hardcode_minus_L=yes
   8595         ;;
   8596       esac
   8597       ;;
   8598 
   8599     beos*)
   8600       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8601 	allow_undefined_flag=unsupported
   8602 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   8603 	# support --undefined.  This deserves some investigation.  FIXME
   8604 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8605       else
   8606 	ld_shlibs=no
   8607       fi
   8608       ;;
   8609 
   8610     cygwin* | mingw* | pw32* | cegcc*)
   8611       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   8612       # as there is no search path for DLLs.
   8613       hardcode_libdir_flag_spec='-L$libdir'
   8614       export_dynamic_flag_spec='$wl--export-all-symbols'
   8615       allow_undefined_flag=unsupported
   8616       always_export_symbols=no
   8617       enable_shared_with_static_runtimes=yes
   8618       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'
   8619       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   8620 
   8621       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   8622         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   8623 	# If the export-symbols file already is a .def file, use it as
   8624 	# is; otherwise, prepend EXPORTS...
   8625 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   8626           cp $export_symbols $output_objdir/$soname.def;
   8627         else
   8628           echo EXPORTS > $output_objdir/$soname.def;
   8629           cat $export_symbols >> $output_objdir/$soname.def;
   8630         fi~
   8631         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   8632       else
   8633 	ld_shlibs=no
   8634       fi
   8635       ;;
   8636 
   8637     haiku*)
   8638       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8639       link_all_deplibs=yes
   8640       ;;
   8641 
   8642     os2*)
   8643       hardcode_libdir_flag_spec='-L$libdir'
   8644       hardcode_minus_L=yes
   8645       allow_undefined_flag=unsupported
   8646       shrext_cmds=.dll
   8647       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   8648 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   8649 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   8650 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   8651 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   8652 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   8653 	emximp -o $lib $output_objdir/$libname.def'
   8654       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   8655 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   8656 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   8657 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   8658 	prefix_cmds="$SED"~
   8659 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   8660 	  prefix_cmds="$prefix_cmds -e 1d";
   8661 	fi~
   8662 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   8663 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   8664 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   8665 	emximp -o $lib $output_objdir/$libname.def'
   8666       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   8667       enable_shared_with_static_runtimes=yes
   8668       ;;
   8669 
   8670     interix[3-9]*)
   8671       hardcode_direct=no
   8672       hardcode_shlibpath_var=no
   8673       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   8674       export_dynamic_flag_spec='$wl-E'
   8675       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   8676       # Instead, shared libraries are loaded at an image base (0x10000000 by
   8677       # default) and relocated if they conflict, which is a slow very memory
   8678       # consuming and fragmenting process.  To avoid this, we pick a random,
   8679       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   8680       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   8681       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   8682       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'
   8683       ;;
   8684 
   8685     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   8686       tmp_diet=no
   8687       if test linux-dietlibc = "$host_os"; then
   8688 	case $cc_basename in
   8689 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   8690 	esac
   8691       fi
   8692       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   8693 	 && test no = "$tmp_diet"
   8694       then
   8695 	tmp_addflag=' $pic_flag'
   8696 	tmp_sharedflag='-shared'
   8697 	case $cc_basename,$host_cpu in
   8698         pgcc*)				# Portland Group C compiler
   8699 	  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'
   8700 	  tmp_addflag=' $pic_flag'
   8701 	  ;;
   8702 	pgf77* | pgf90* | pgf95* | pgfortran*)
   8703 					# Portland Group f77 and f90 compilers
   8704 	  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'
   8705 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   8706 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   8707 	  tmp_addflag=' -i_dynamic' ;;
   8708 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   8709 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   8710 	ifc* | ifort*)			# Intel Fortran compiler
   8711 	  tmp_addflag=' -nofor_main' ;;
   8712 	lf95*)				# Lahey Fortran 8.1
   8713 	  whole_archive_flag_spec=
   8714 	  tmp_sharedflag='--shared' ;;
   8715         nagfor*)                        # NAGFOR 5.3
   8716           tmp_sharedflag='-Wl,-shared' ;;
   8717 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   8718 	  tmp_sharedflag='-qmkshrobj'
   8719 	  tmp_addflag= ;;
   8720 	nvcc*)	# Cuda Compiler Driver 2.2
   8721 	  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'
   8722 	  compiler_needs_object=yes
   8723 	  ;;
   8724 	esac
   8725 	case `$CC -V 2>&1 | sed 5q` in
   8726 	*Sun\ C*)			# Sun C 5.9
   8727 	  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'
   8728 	  compiler_needs_object=yes
   8729 	  tmp_sharedflag='-G' ;;
   8730 	*Sun\ F*)			# Sun Fortran 8.3
   8731 	  tmp_sharedflag='-G' ;;
   8732 	esac
   8733 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8734 
   8735         if test yes = "$supports_anon_versioning"; then
   8736           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   8737             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   8738             echo "local: *; };" >> $output_objdir/$libname.ver~
   8739             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   8740         fi
   8741 
   8742 	case $cc_basename in
   8743 	tcc*)
   8744 	  export_dynamic_flag_spec='-rdynamic'
   8745 	  ;;
   8746 	xlf* | bgf* | bgxlf* | mpixlf*)
   8747 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   8748 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   8749 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8750 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   8751 	  if test yes = "$supports_anon_versioning"; then
   8752 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   8753               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   8754               echo "local: *; };" >> $output_objdir/$libname.ver~
   8755               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   8756 	  fi
   8757 	  ;;
   8758 	esac
   8759       else
   8760         ld_shlibs=no
   8761       fi
   8762       ;;
   8763 
   8764     netbsd*)
   8765       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   8766 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   8767 	wlarc=
   8768       else
   8769 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8770 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   8771       fi
   8772       ;;
   8773 
   8774     solaris*)
   8775       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   8776 	ld_shlibs=no
   8777 	cat <<_LT_EOF 1>&2
   8778 
   8779 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   8780 *** create shared libraries on Solaris systems.  Therefore, libtool
   8781 *** is disabling shared libraries support.  We urge you to upgrade GNU
   8782 *** binutils to release 2.9.1 or newer.  Another option is to modify
   8783 *** your PATH or compiler configuration so that the native linker is
   8784 *** used, and then restart.
   8785 
   8786 _LT_EOF
   8787       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8788 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8789 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   8790       else
   8791 	ld_shlibs=no
   8792       fi
   8793       ;;
   8794 
   8795     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   8796       case `$LD -v 2>&1` in
   8797         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   8798 	ld_shlibs=no
   8799 	cat <<_LT_EOF 1>&2
   8800 
   8801 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   8802 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   8803 *** is disabling shared libraries support.  We urge you to upgrade GNU
   8804 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   8805 *** your PATH or compiler configuration so that the native linker is
   8806 *** used, and then restart.
   8807 
   8808 _LT_EOF
   8809 	;;
   8810 	*)
   8811 	  # For security reasons, it is highly recommended that you always
   8812 	  # use absolute paths for naming shared libraries, and exclude the
   8813 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   8814 	  # requires that you compile everything twice, which is a pain.
   8815 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8816 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8817 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8818 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   8819 	  else
   8820 	    ld_shlibs=no
   8821 	  fi
   8822 	;;
   8823       esac
   8824       ;;
   8825 
   8826     sunos4*)
   8827       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   8828       wlarc=
   8829       hardcode_direct=yes
   8830       hardcode_shlibpath_var=no
   8831       ;;
   8832 
   8833     *)
   8834       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8835 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8836 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   8837       else
   8838 	ld_shlibs=no
   8839       fi
   8840       ;;
   8841     esac
   8842 
   8843     if test no = "$ld_shlibs"; then
   8844       runpath_var=
   8845       hardcode_libdir_flag_spec=
   8846       export_dynamic_flag_spec=
   8847       whole_archive_flag_spec=
   8848     fi
   8849   else
   8850     # PORTME fill in a description of your system's linker (not GNU ld)
   8851     case $host_os in
   8852     aix3*)
   8853       allow_undefined_flag=unsupported
   8854       always_export_symbols=yes
   8855       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'
   8856       # Note: this linker hardcodes the directories in LIBPATH if there
   8857       # are no directories specified by -L.
   8858       hardcode_minus_L=yes
   8859       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   8860 	# Neither direct hardcoding nor static linking is supported with a
   8861 	# broken collect2.
   8862 	hardcode_direct=unsupported
   8863       fi
   8864       ;;
   8865 
   8866     aix[4-9]*)
   8867       if test ia64 = "$host_cpu"; then
   8868 	# On IA64, the linker does run time linking by default, so we don't
   8869 	# have to do anything special.
   8870 	aix_use_runtimelinking=no
   8871 	exp_sym_flag='-Bexport'
   8872 	no_entry_flag=
   8873       else
   8874 	# If we're using GNU nm, then we don't want the "-C" option.
   8875 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   8876 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   8877 	# weak defined symbols like other global defined symbols, whereas
   8878 	# GNU nm marks them as "W".
   8879 	# While the 'weak' keyword is ignored in the Export File, we need
   8880 	# it in the Import File for the 'aix-soname' feature, so we have
   8881 	# to replace the "-B" option with "-P" for AIX nm.
   8882 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   8883 	  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'
   8884 	else
   8885 	  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'
   8886 	fi
   8887 	aix_use_runtimelinking=no
   8888 
   8889 	# Test if we are trying to use run time linking or normal
   8890 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   8891 	# have runtime linking enabled, and use it for executables.
   8892 	# For shared libraries, we enable/disable runtime linking
   8893 	# depending on the kind of the shared library created -
   8894 	# when "with_aix_soname,aix_use_runtimelinking" is:
   8895 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   8896 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   8897 	#            lib.a           static archive
   8898 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   8899 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   8900 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   8901 	#            lib.a(lib.so.V) shared, rtl:no
   8902 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   8903 	#            lib.a           static archive
   8904 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   8905 	  for ld_flag in $LDFLAGS; do
   8906 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   8907 	    aix_use_runtimelinking=yes
   8908 	    break
   8909 	  fi
   8910 	  done
   8911 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   8912 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   8913 	    # so we don't have lib.a shared libs to link our executables.
   8914 	    # We have to force runtime linking in this case.
   8915 	    aix_use_runtimelinking=yes
   8916 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   8917 	  fi
   8918 	  ;;
   8919 	esac
   8920 
   8921 	exp_sym_flag='-bexport'
   8922 	no_entry_flag='-bnoentry'
   8923       fi
   8924 
   8925       # When large executables or shared objects are built, AIX ld can
   8926       # have problems creating the table of contents.  If linking a library
   8927       # or program results in "error TOC overflow" add -mminimal-toc to
   8928       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   8929       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   8930 
   8931       archive_cmds=''
   8932       hardcode_direct=yes
   8933       hardcode_direct_absolute=yes
   8934       hardcode_libdir_separator=':'
   8935       link_all_deplibs=yes
   8936       file_list_spec='$wl-f,'
   8937       case $with_aix_soname,$aix_use_runtimelinking in
   8938       aix,*) ;; # traditional, no import file
   8939       svr4,* | *,yes) # use import file
   8940 	# The Import File defines what to hardcode.
   8941 	hardcode_direct=no
   8942 	hardcode_direct_absolute=no
   8943 	;;
   8944       esac
   8945 
   8946       if test yes = "$GCC"; then
   8947 	case $host_os in aix4.[012]|aix4.[012].*)
   8948 	# We only want to do this on AIX 4.2 and lower, the check
   8949 	# below for broken collect2 doesn't work under 4.3+
   8950 	  collect2name=`$CC -print-prog-name=collect2`
   8951 	  if test -f "$collect2name" &&
   8952 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   8953 	  then
   8954 	  # We have reworked collect2
   8955 	  :
   8956 	  else
   8957 	  # We have old collect2
   8958 	  hardcode_direct=unsupported
   8959 	  # It fails to find uninstalled libraries when the uninstalled
   8960 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   8961 	  # to unsupported forces relinking
   8962 	  hardcode_minus_L=yes
   8963 	  hardcode_libdir_flag_spec='-L$libdir'
   8964 	  hardcode_libdir_separator=
   8965 	  fi
   8966 	  ;;
   8967 	esac
   8968 	shared_flag='-shared'
   8969 	if test yes = "$aix_use_runtimelinking"; then
   8970 	  shared_flag="$shared_flag "'$wl-G'
   8971 	fi
   8972 	# Need to ensure runtime linking is disabled for the traditional
   8973 	# shared library, or the linker may eventually find shared libraries
   8974 	# /with/ Import File - we do not want to mix them.
   8975 	shared_flag_aix='-shared'
   8976 	shared_flag_svr4='-shared $wl-G'
   8977       else
   8978 	# not using gcc
   8979 	if test ia64 = "$host_cpu"; then
   8980 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   8981 	# chokes on -Wl,-G. The following line is correct:
   8982 	  shared_flag='-G'
   8983 	else
   8984 	  if test yes = "$aix_use_runtimelinking"; then
   8985 	    shared_flag='$wl-G'
   8986 	  else
   8987 	    shared_flag='$wl-bM:SRE'
   8988 	  fi
   8989 	  shared_flag_aix='$wl-bM:SRE'
   8990 	  shared_flag_svr4='$wl-G'
   8991 	fi
   8992       fi
   8993 
   8994       export_dynamic_flag_spec='$wl-bexpall'
   8995       # It seems that -bexpall does not export symbols beginning with
   8996       # underscore (_), so it is better to generate a list of symbols to export.
   8997       always_export_symbols=yes
   8998       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   8999 	# Warning - without using the other runtime loading flags (-brtl),
   9000 	# -berok will link without error, but may produce a broken library.
   9001 	allow_undefined_flag='-berok'
   9002         # Determine the default libpath from the value encoded in an
   9003         # empty executable.
   9004         if test set = "${lt_cv_aix_libpath+set}"; then
   9005   aix_libpath=$lt_cv_aix_libpath
   9006 else
   9007   if ${lt_cv_aix_libpath_+:} false; then :
   9008   $as_echo_n "(cached) " >&6
   9009 else
   9010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9011 /* end confdefs.h.  */
   9012 
   9013 int
   9014 main ()
   9015 {
   9016 
   9017   ;
   9018   return 0;
   9019 }
   9020 _ACEOF
   9021 if ac_fn_c_try_link "$LINENO"; then :
   9022 
   9023   lt_aix_libpath_sed='
   9024       /Import File Strings/,/^$/ {
   9025 	  /^0/ {
   9026 	      s/^0  *\([^ ]*\) *$/\1/
   9027 	      p
   9028 	  }
   9029       }'
   9030   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9031   # Check for a 64-bit object if we didn't find anything.
   9032   if test -z "$lt_cv_aix_libpath_"; then
   9033     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9034   fi
   9035 fi
   9036 rm -f core conftest.err conftest.$ac_objext \
   9037     conftest$ac_exeext conftest.$ac_ext
   9038   if test -z "$lt_cv_aix_libpath_"; then
   9039     lt_cv_aix_libpath_=/usr/lib:/lib
   9040   fi
   9041 
   9042 fi
   9043 
   9044   aix_libpath=$lt_cv_aix_libpath_
   9045 fi
   9046 
   9047         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9048         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
   9049       else
   9050 	if test ia64 = "$host_cpu"; then
   9051 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   9052 	  allow_undefined_flag="-z nodefs"
   9053 	  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"
   9054 	else
   9055 	 # Determine the default libpath from the value encoded in an
   9056 	 # empty executable.
   9057 	 if test set = "${lt_cv_aix_libpath+set}"; then
   9058   aix_libpath=$lt_cv_aix_libpath
   9059 else
   9060   if ${lt_cv_aix_libpath_+:} false; then :
   9061   $as_echo_n "(cached) " >&6
   9062 else
   9063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9064 /* end confdefs.h.  */
   9065 
   9066 int
   9067 main ()
   9068 {
   9069 
   9070   ;
   9071   return 0;
   9072 }
   9073 _ACEOF
   9074 if ac_fn_c_try_link "$LINENO"; then :
   9075 
   9076   lt_aix_libpath_sed='
   9077       /Import File Strings/,/^$/ {
   9078 	  /^0/ {
   9079 	      s/^0  *\([^ ]*\) *$/\1/
   9080 	      p
   9081 	  }
   9082       }'
   9083   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9084   # Check for a 64-bit object if we didn't find anything.
   9085   if test -z "$lt_cv_aix_libpath_"; then
   9086     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9087   fi
   9088 fi
   9089 rm -f core conftest.err conftest.$ac_objext \
   9090     conftest$ac_exeext conftest.$ac_ext
   9091   if test -z "$lt_cv_aix_libpath_"; then
   9092     lt_cv_aix_libpath_=/usr/lib:/lib
   9093   fi
   9094 
   9095 fi
   9096 
   9097   aix_libpath=$lt_cv_aix_libpath_
   9098 fi
   9099 
   9100 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9101 	  # Warning - without using the other run time loading flags,
   9102 	  # -berok will link without error, but may produce a broken library.
   9103 	  no_undefined_flag=' $wl-bernotok'
   9104 	  allow_undefined_flag=' $wl-berok'
   9105 	  if test yes = "$with_gnu_ld"; then
   9106 	    # We only use this code for GNU lds that support --whole-archive.
   9107 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   9108 	  else
   9109 	    # Exported symbols can be pulled into shared objects from archives
   9110 	    whole_archive_flag_spec='$convenience'
   9111 	  fi
   9112 	  archive_cmds_need_lc=yes
   9113 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   9114 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   9115 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   9116 	  if test svr4 != "$with_aix_soname"; then
   9117 	    # This is similar to how AIX traditionally builds its shared libraries.
   9118 	    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'
   9119 	  fi
   9120 	  if test aix != "$with_aix_soname"; then
   9121 	    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'
   9122 	  else
   9123 	    # used by -dlpreopen to get the symbols
   9124 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   9125 	  fi
   9126 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   9127 	fi
   9128       fi
   9129       ;;
   9130 
   9131     amigaos*)
   9132       case $host_cpu in
   9133       powerpc)
   9134             # see comment about AmigaOS4 .so support
   9135             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9136             archive_expsym_cmds=''
   9137         ;;
   9138       m68k)
   9139             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)'
   9140             hardcode_libdir_flag_spec='-L$libdir'
   9141             hardcode_minus_L=yes
   9142         ;;
   9143       esac
   9144       ;;
   9145 
   9146     bsdi[45]*)
   9147       export_dynamic_flag_spec=-rdynamic
   9148       ;;
   9149 
   9150     cygwin* | mingw* | pw32* | cegcc*)
   9151       # When not using gcc, we currently assume that we are using
   9152       # Microsoft Visual C++.
   9153       # hardcode_libdir_flag_spec is actually meaningless, as there is
   9154       # no search path for DLLs.
   9155       case $cc_basename in
   9156       cl*)
   9157 	# Native MSVC
   9158 	hardcode_libdir_flag_spec=' '
   9159 	allow_undefined_flag=unsupported
   9160 	always_export_symbols=yes
   9161 	file_list_spec='@'
   9162 	# Tell ltmain to make .lib files, not .a files.
   9163 	libext=lib
   9164 	# Tell ltmain to make .dll files, not .so files.
   9165 	shrext_cmds=.dll
   9166 	# FIXME: Setting linknames here is a bad hack.
   9167 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   9168 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   9169             cp "$export_symbols" "$output_objdir/$soname.def";
   9170             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   9171           else
   9172             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   9173           fi~
   9174           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   9175           linknames='
   9176 	# The linker will not automatically build a static lib if we build a DLL.
   9177 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   9178 	enable_shared_with_static_runtimes=yes
   9179 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   9180 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   9181 	# Don't use ranlib
   9182 	old_postinstall_cmds='chmod 644 $oldlib'
   9183 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   9184           lt_tool_outputfile="@TOOL_OUTPUT@"~
   9185           case $lt_outputfile in
   9186             *.exe|*.EXE) ;;
   9187             *)
   9188               lt_outputfile=$lt_outputfile.exe
   9189               lt_tool_outputfile=$lt_tool_outputfile.exe
   9190               ;;
   9191           esac~
   9192           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   9193             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   9194             $RM "$lt_outputfile.manifest";
   9195           fi'
   9196 	;;
   9197       *)
   9198 	# Assume MSVC wrapper
   9199 	hardcode_libdir_flag_spec=' '
   9200 	allow_undefined_flag=unsupported
   9201 	# Tell ltmain to make .lib files, not .a files.
   9202 	libext=lib
   9203 	# Tell ltmain to make .dll files, not .so files.
   9204 	shrext_cmds=.dll
   9205 	# FIXME: Setting linknames here is a bad hack.
   9206 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   9207 	# The linker will automatically build a .lib file if we build a DLL.
   9208 	old_archive_from_new_cmds='true'
   9209 	# FIXME: Should let the user specify the lib program.
   9210 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   9211 	enable_shared_with_static_runtimes=yes
   9212 	;;
   9213       esac
   9214       ;;
   9215 
   9216     darwin* | rhapsody*)
   9217 
   9218 
   9219   archive_cmds_need_lc=no
   9220   hardcode_direct=no
   9221   hardcode_automatic=yes
   9222   hardcode_shlibpath_var=unsupported
   9223   if test yes = "$lt_cv_ld_force_load"; then
   9224     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\"`'
   9225 
   9226   else
   9227     whole_archive_flag_spec=''
   9228   fi
   9229   link_all_deplibs=yes
   9230   allow_undefined_flag=$_lt_dar_allow_undefined
   9231   case $cc_basename in
   9232      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   9233      *) _lt_dar_can_shared=$GCC ;;
   9234   esac
   9235   if test yes = "$_lt_dar_can_shared"; then
   9236     output_verbose_link_cmd=func_echo_all
   9237     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
   9238     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   9239     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"
   9240     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"
   9241 
   9242   else
   9243   ld_shlibs=no
   9244   fi
   9245 
   9246       ;;
   9247 
   9248     dgux*)
   9249       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9250       hardcode_libdir_flag_spec='-L$libdir'
   9251       hardcode_shlibpath_var=no
   9252       ;;
   9253 
   9254     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   9255     # support.  Future versions do this automatically, but an explicit c++rt0.o
   9256     # does not break anything, and helps significantly (at the cost of a little
   9257     # extra space).
   9258     freebsd2.2*)
   9259       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   9260       hardcode_libdir_flag_spec='-R$libdir'
   9261       hardcode_direct=yes
   9262       hardcode_shlibpath_var=no
   9263       ;;
   9264 
   9265     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   9266     freebsd2.*)
   9267       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9268       hardcode_direct=yes
   9269       hardcode_minus_L=yes
   9270       hardcode_shlibpath_var=no
   9271       ;;
   9272 
   9273     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   9274     freebsd* | dragonfly*)
   9275       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9276       hardcode_libdir_flag_spec='-R$libdir'
   9277       hardcode_direct=yes
   9278       hardcode_shlibpath_var=no
   9279       ;;
   9280 
   9281     hpux9*)
   9282       if test yes = "$GCC"; then
   9283 	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'
   9284       else
   9285 	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'
   9286       fi
   9287       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9288       hardcode_libdir_separator=:
   9289       hardcode_direct=yes
   9290 
   9291       # hardcode_minus_L: Not really in the search PATH,
   9292       # but as the default location of the library.
   9293       hardcode_minus_L=yes
   9294       export_dynamic_flag_spec='$wl-E'
   9295       ;;
   9296 
   9297     hpux10*)
   9298       if test yes,no = "$GCC,$with_gnu_ld"; then
   9299 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9300       else
   9301 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9302       fi
   9303       if test no = "$with_gnu_ld"; then
   9304 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9305 	hardcode_libdir_separator=:
   9306 	hardcode_direct=yes
   9307 	hardcode_direct_absolute=yes
   9308 	export_dynamic_flag_spec='$wl-E'
   9309 	# hardcode_minus_L: Not really in the search PATH,
   9310 	# but as the default location of the library.
   9311 	hardcode_minus_L=yes
   9312       fi
   9313       ;;
   9314 
   9315     hpux11*)
   9316       if test yes,no = "$GCC,$with_gnu_ld"; then
   9317 	case $host_cpu in
   9318 	hppa*64*)
   9319 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9320 	  ;;
   9321 	ia64*)
   9322 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9323 	  ;;
   9324 	*)
   9325 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9326 	  ;;
   9327 	esac
   9328       else
   9329 	case $host_cpu in
   9330 	hppa*64*)
   9331 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9332 	  ;;
   9333 	ia64*)
   9334 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9335 	  ;;
   9336 	*)
   9337 
   9338 	  # Older versions of the 11.00 compiler do not understand -b yet
   9339 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   9340 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   9341 $as_echo_n "checking if $CC understands -b... " >&6; }
   9342 if ${lt_cv_prog_compiler__b+:} false; then :
   9343   $as_echo_n "(cached) " >&6
   9344 else
   9345   lt_cv_prog_compiler__b=no
   9346    save_LDFLAGS=$LDFLAGS
   9347    LDFLAGS="$LDFLAGS -b"
   9348    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   9349    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   9350      # The linker can only warn and ignore the option if not recognized
   9351      # So say no if there are warnings
   9352      if test -s conftest.err; then
   9353        # Append any errors to the config.log.
   9354        cat conftest.err 1>&5
   9355        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   9356        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9357        if diff conftest.exp conftest.er2 >/dev/null; then
   9358          lt_cv_prog_compiler__b=yes
   9359        fi
   9360      else
   9361        lt_cv_prog_compiler__b=yes
   9362      fi
   9363    fi
   9364    $RM -r conftest*
   9365    LDFLAGS=$save_LDFLAGS
   9366 
   9367 fi
   9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   9369 $as_echo "$lt_cv_prog_compiler__b" >&6; }
   9370 
   9371 if test yes = "$lt_cv_prog_compiler__b"; then
   9372     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9373 else
   9374     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9375 fi
   9376 
   9377 	  ;;
   9378 	esac
   9379       fi
   9380       if test no = "$with_gnu_ld"; then
   9381 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9382 	hardcode_libdir_separator=:
   9383 
   9384 	case $host_cpu in
   9385 	hppa*64*|ia64*)
   9386 	  hardcode_direct=no
   9387 	  hardcode_shlibpath_var=no
   9388 	  ;;
   9389 	*)
   9390 	  hardcode_direct=yes
   9391 	  hardcode_direct_absolute=yes
   9392 	  export_dynamic_flag_spec='$wl-E'
   9393 
   9394 	  # hardcode_minus_L: Not really in the search PATH,
   9395 	  # but as the default location of the library.
   9396 	  hardcode_minus_L=yes
   9397 	  ;;
   9398 	esac
   9399       fi
   9400       ;;
   9401 
   9402     irix5* | irix6* | nonstopux*)
   9403       if test yes = "$GCC"; then
   9404 	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'
   9405 	# Try to use the -exported_symbol ld option, if it does not
   9406 	# work, assume that -exports_file does not work either and
   9407 	# implicitly export all symbols.
   9408 	# This should be the same for all languages, so no per-tag cache variable.
   9409 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   9410 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   9411 if ${lt_cv_irix_exported_symbol+:} false; then :
   9412   $as_echo_n "(cached) " >&6
   9413 else
   9414   save_LDFLAGS=$LDFLAGS
   9415 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   9416 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9417 /* end confdefs.h.  */
   9418 int foo (void) { return 0; }
   9419 _ACEOF
   9420 if ac_fn_c_try_link "$LINENO"; then :
   9421   lt_cv_irix_exported_symbol=yes
   9422 else
   9423   lt_cv_irix_exported_symbol=no
   9424 fi
   9425 rm -f core conftest.err conftest.$ac_objext \
   9426     conftest$ac_exeext conftest.$ac_ext
   9427            LDFLAGS=$save_LDFLAGS
   9428 fi
   9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   9430 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
   9431 	if test yes = "$lt_cv_irix_exported_symbol"; then
   9432           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'
   9433 	fi
   9434       else
   9435 	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'
   9436 	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'
   9437       fi
   9438       archive_cmds_need_lc='no'
   9439       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9440       hardcode_libdir_separator=:
   9441       inherit_rpath=yes
   9442       link_all_deplibs=yes
   9443       ;;
   9444 
   9445     linux*)
   9446       case $cc_basename in
   9447       tcc*)
   9448 	# Fabrice Bellard et al's Tiny C Compiler
   9449 	ld_shlibs=yes
   9450 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9451 	;;
   9452       esac
   9453       ;;
   9454 
   9455     netbsd*)
   9456       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9457 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   9458       else
   9459 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   9460       fi
   9461       hardcode_libdir_flag_spec='-R$libdir'
   9462       hardcode_direct=yes
   9463       hardcode_shlibpath_var=no
   9464       ;;
   9465 
   9466     newsos6)
   9467       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9468       hardcode_direct=yes
   9469       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9470       hardcode_libdir_separator=:
   9471       hardcode_shlibpath_var=no
   9472       ;;
   9473 
   9474     *nto* | *qnx*)
   9475       ;;
   9476 
   9477     openbsd* | bitrig*)
   9478       if test -f /usr/libexec/ld.so; then
   9479 	hardcode_direct=yes
   9480 	hardcode_shlibpath_var=no
   9481 	hardcode_direct_absolute=yes
   9482 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   9483 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9484 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   9485 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9486 	  export_dynamic_flag_spec='$wl-E'
   9487 	else
   9488 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9489 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9490 	fi
   9491       else
   9492 	ld_shlibs=no
   9493       fi
   9494       ;;
   9495 
   9496     os2*)
   9497       hardcode_libdir_flag_spec='-L$libdir'
   9498       hardcode_minus_L=yes
   9499       allow_undefined_flag=unsupported
   9500       shrext_cmds=.dll
   9501       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9502 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9503 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9504 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9505 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9506 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9507 	emximp -o $lib $output_objdir/$libname.def'
   9508       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9509 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9510 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9511 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9512 	prefix_cmds="$SED"~
   9513 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9514 	  prefix_cmds="$prefix_cmds -e 1d";
   9515 	fi~
   9516 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9517 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9518 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9519 	emximp -o $lib $output_objdir/$libname.def'
   9520       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9521       enable_shared_with_static_runtimes=yes
   9522       ;;
   9523 
   9524     osf3*)
   9525       if test yes = "$GCC"; then
   9526 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9527 	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'
   9528       else
   9529 	allow_undefined_flag=' -expect_unresolved \*'
   9530 	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'
   9531       fi
   9532       archive_cmds_need_lc='no'
   9533       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9534       hardcode_libdir_separator=:
   9535       ;;
   9536 
   9537     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   9538       if test yes = "$GCC"; then
   9539 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9540 	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'
   9541 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9542       else
   9543 	allow_undefined_flag=' -expect_unresolved \*'
   9544 	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'
   9545 	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~
   9546           $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'
   9547 
   9548 	# Both c and cxx compiler support -rpath directly
   9549 	hardcode_libdir_flag_spec='-rpath $libdir'
   9550       fi
   9551       archive_cmds_need_lc='no'
   9552       hardcode_libdir_separator=:
   9553       ;;
   9554 
   9555     solaris*)
   9556       no_undefined_flag=' -z defs'
   9557       if test yes = "$GCC"; then
   9558 	wlarc='$wl'
   9559 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9560 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9561           $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'
   9562       else
   9563 	case `$CC -V 2>&1` in
   9564 	*"Compilers 5.0"*)
   9565 	  wlarc=''
   9566 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9567 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9568             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   9569 	  ;;
   9570 	*)
   9571 	  wlarc='$wl'
   9572 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9573 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9574             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   9575 	  ;;
   9576 	esac
   9577       fi
   9578       hardcode_libdir_flag_spec='-R$libdir'
   9579       hardcode_shlibpath_var=no
   9580       case $host_os in
   9581       solaris2.[0-5] | solaris2.[0-5].*) ;;
   9582       *)
   9583 	# The compiler driver will combine and reorder linker options,
   9584 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   9585 	# but is careful enough not to reorder.
   9586 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   9587 	if test yes = "$GCC"; then
   9588 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   9589 	else
   9590 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   9591 	fi
   9592 	;;
   9593       esac
   9594       link_all_deplibs=yes
   9595       ;;
   9596 
   9597     sunos4*)
   9598       if test sequent = "$host_vendor"; then
   9599 	# Use $CC to link under sequent, because it throws in some extra .o
   9600 	# files that make .init and .fini sections work.
   9601 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9602       else
   9603 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   9604       fi
   9605       hardcode_libdir_flag_spec='-L$libdir'
   9606       hardcode_direct=yes
   9607       hardcode_minus_L=yes
   9608       hardcode_shlibpath_var=no
   9609       ;;
   9610 
   9611     sysv4)
   9612       case $host_vendor in
   9613 	sni)
   9614 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9615 	  hardcode_direct=yes # is this really true???
   9616 	;;
   9617 	siemens)
   9618 	  ## LD is ld it makes a PLAMLIB
   9619 	  ## CC just makes a GrossModule.
   9620 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   9621 	  reload_cmds='$CC -r -o $output$reload_objs'
   9622 	  hardcode_direct=no
   9623         ;;
   9624 	motorola)
   9625 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9626 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   9627 	;;
   9628       esac
   9629       runpath_var='LD_RUN_PATH'
   9630       hardcode_shlibpath_var=no
   9631       ;;
   9632 
   9633     sysv4.3*)
   9634       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9635       hardcode_shlibpath_var=no
   9636       export_dynamic_flag_spec='-Bexport'
   9637       ;;
   9638 
   9639     sysv4*MP*)
   9640       if test -d /usr/nec; then
   9641 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9642 	hardcode_shlibpath_var=no
   9643 	runpath_var=LD_RUN_PATH
   9644 	hardcode_runpath_var=yes
   9645 	ld_shlibs=yes
   9646       fi
   9647       ;;
   9648 
   9649     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   9650       no_undefined_flag='$wl-z,text'
   9651       archive_cmds_need_lc=no
   9652       hardcode_shlibpath_var=no
   9653       runpath_var='LD_RUN_PATH'
   9654 
   9655       if test yes = "$GCC"; then
   9656 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9657 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9658       else
   9659 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9660 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9661       fi
   9662       ;;
   9663 
   9664     sysv5* | sco3.2v5* | sco5v6*)
   9665       # Note: We CANNOT use -z defs as we might desire, because we do not
   9666       # link with -lc, and that would cause any symbols used from libc to
   9667       # always be unresolved, which means just about no library would
   9668       # ever link correctly.  If we're not using GNU ld we use -z text
   9669       # though, which does catch some bad symbols but isn't as heavy-handed
   9670       # as -z defs.
   9671       no_undefined_flag='$wl-z,text'
   9672       allow_undefined_flag='$wl-z,nodefs'
   9673       archive_cmds_need_lc=no
   9674       hardcode_shlibpath_var=no
   9675       hardcode_libdir_flag_spec='$wl-R,$libdir'
   9676       hardcode_libdir_separator=':'
   9677       link_all_deplibs=yes
   9678       export_dynamic_flag_spec='$wl-Bexport'
   9679       runpath_var='LD_RUN_PATH'
   9680 
   9681       if test yes = "$GCC"; then
   9682 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9683 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9684       else
   9685 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9686 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9687       fi
   9688       ;;
   9689 
   9690     uts4*)
   9691       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9692       hardcode_libdir_flag_spec='-L$libdir'
   9693       hardcode_shlibpath_var=no
   9694       ;;
   9695 
   9696     *)
   9697       ld_shlibs=no
   9698       ;;
   9699     esac
   9700 
   9701     if test sni = "$host_vendor"; then
   9702       case $host in
   9703       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   9704 	export_dynamic_flag_spec='$wl-Blargedynsym'
   9705 	;;
   9706       esac
   9707     fi
   9708   fi
   9709 
   9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   9711 $as_echo "$ld_shlibs" >&6; }
   9712 test no = "$ld_shlibs" && can_build_shared=no
   9713 
   9714 with_gnu_ld=$with_gnu_ld
   9715 
   9716 
   9717 
   9718 
   9719 
   9720 
   9721 
   9722 
   9723 
   9724 
   9725 
   9726 
   9727 
   9728 
   9729 
   9730 #
   9731 # Do we need to explicitly link libc?
   9732 #
   9733 case "x$archive_cmds_need_lc" in
   9734 x|xyes)
   9735   # Assume -lc should be added
   9736   archive_cmds_need_lc=yes
   9737 
   9738   if test yes,yes = "$GCC,$enable_shared"; then
   9739     case $archive_cmds in
   9740     *'~'*)
   9741       # FIXME: we may have to deal with multi-command sequences.
   9742       ;;
   9743     '$CC '*)
   9744       # Test whether the compiler implicitly links with -lc since on some
   9745       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   9746       # to ld, don't add -lc before -lgcc.
   9747       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   9748 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   9749 if ${lt_cv_archive_cmds_need_lc+:} false; then :
   9750   $as_echo_n "(cached) " >&6
   9751 else
   9752   $RM conftest*
   9753 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9754 
   9755 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9756   (eval $ac_compile) 2>&5
   9757   ac_status=$?
   9758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9759   test $ac_status = 0; } 2>conftest.err; then
   9760 	  soname=conftest
   9761 	  lib=conftest
   9762 	  libobjs=conftest.$ac_objext
   9763 	  deplibs=
   9764 	  wl=$lt_prog_compiler_wl
   9765 	  pic_flag=$lt_prog_compiler_pic
   9766 	  compiler_flags=-v
   9767 	  linker_flags=-v
   9768 	  verstring=
   9769 	  output_objdir=.
   9770 	  libname=conftest
   9771 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   9772 	  allow_undefined_flag=
   9773 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   9774   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   9775   ac_status=$?
   9776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9777   test $ac_status = 0; }
   9778 	  then
   9779 	    lt_cv_archive_cmds_need_lc=no
   9780 	  else
   9781 	    lt_cv_archive_cmds_need_lc=yes
   9782 	  fi
   9783 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   9784 	else
   9785 	  cat conftest.err 1>&5
   9786 	fi
   9787 	$RM conftest*
   9788 
   9789 fi
   9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   9791 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   9792       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   9793       ;;
   9794     esac
   9795   fi
   9796   ;;
   9797 esac
   9798 
   9799 
   9800 
   9801 
   9802 
   9803 
   9804 
   9805 
   9806 
   9807 
   9808 
   9809 
   9810 
   9811 
   9812 
   9813 
   9814 
   9815 
   9816 
   9817 
   9818 
   9819 
   9820 
   9821 
   9822 
   9823 
   9824 
   9825 
   9826 
   9827 
   9828 
   9829 
   9830 
   9831 
   9832 
   9833 
   9834 
   9835 
   9836 
   9837 
   9838 
   9839 
   9840 
   9841 
   9842 
   9843 
   9844 
   9845 
   9846 
   9847 
   9848 
   9849 
   9850 
   9851 
   9852 
   9853 
   9854 
   9855 
   9856 
   9857 
   9858 
   9859 
   9860 
   9861 
   9862 
   9863 
   9864 
   9865 
   9866 
   9867 
   9868 
   9869 
   9870 
   9871 
   9872 
   9873 
   9874 
   9875 
   9876 
   9877 
   9878 
   9879 
   9880 
   9881 
   9882 
   9883 
   9884 
   9885 
   9886 
   9887 
   9888 
   9889 
   9890 
   9891 
   9892 
   9893 
   9894 
   9895 
   9896 
   9897 
   9898 
   9899 
   9900 
   9901 
   9902 
   9903 
   9904 
   9905 
   9906 
   9907 
   9908 
   9909 
   9910 
   9911 
   9912 
   9913 
   9914 
   9915 
   9916 
   9917 
   9918 
   9919 
   9920 
   9921 
   9922 
   9923 
   9924 
   9925 
   9926 
   9927 
   9928 
   9929 
   9930 
   9931 
   9932 
   9933 
   9934 
   9935 
   9936 
   9937 
   9938 
   9939 
   9940 
   9941 
   9942 
   9943 
   9944 
   9945 
   9946 
   9947 
   9948 
   9949 
   9950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   9951 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   9952 
   9953 if test yes = "$GCC"; then
   9954   case $host_os in
   9955     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   9956     *) lt_awk_arg='/^libraries:/' ;;
   9957   esac
   9958   case $host_os in
   9959     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   9960     *) lt_sed_strip_eq='s|=/|/|g' ;;
   9961   esac
   9962   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   9963   case $lt_search_path_spec in
   9964   *\;*)
   9965     # if the path contains ";" then we assume it to be the separator
   9966     # otherwise default to the standard path separator (i.e. ":") - it is
   9967     # assumed that no part of a normal pathname contains ";" but that should
   9968     # okay in the real world where ";" in dirpaths is itself problematic.
   9969     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   9970     ;;
   9971   *)
   9972     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   9973     ;;
   9974   esac
   9975   # Ok, now we have the path, separated by spaces, we can step through it
   9976   # and add multilib dir if necessary...
   9977   lt_tmp_lt_search_path_spec=
   9978   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   9979   # ...but if some path component already ends with the multilib dir we assume
   9980   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   9981   case "$lt_multi_os_dir; $lt_search_path_spec " in
   9982   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   9983     lt_multi_os_dir=
   9984     ;;
   9985   esac
   9986   for lt_sys_path in $lt_search_path_spec; do
   9987     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   9988       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   9989     elif test -n "$lt_multi_os_dir"; then
   9990       test -d "$lt_sys_path" && \
   9991 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   9992     fi
   9993   done
   9994   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   9995 BEGIN {RS = " "; FS = "/|\n";} {
   9996   lt_foo = "";
   9997   lt_count = 0;
   9998   for (lt_i = NF; lt_i > 0; lt_i--) {
   9999     if ($lt_i != "" && $lt_i != ".") {
   10000       if ($lt_i == "..") {
   10001         lt_count++;
   10002       } else {
   10003         if (lt_count == 0) {
   10004           lt_foo = "/" $lt_i lt_foo;
   10005         } else {
   10006           lt_count--;
   10007         }
   10008       }
   10009     }
   10010   }
   10011   if (lt_foo != "") { lt_freq[lt_foo]++; }
   10012   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   10013 }'`
   10014   # AWK program above erroneously prepends '/' to C:/dos/paths
   10015   # for these hosts.
   10016   case $host_os in
   10017     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   10018       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   10019   esac
   10020   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   10021 else
   10022   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10023 fi
   10024 library_names_spec=
   10025 libname_spec='lib$name'
   10026 soname_spec=
   10027 shrext_cmds=.so
   10028 postinstall_cmds=
   10029 postuninstall_cmds=
   10030 finish_cmds=
   10031 finish_eval=
   10032 shlibpath_var=
   10033 shlibpath_overrides_runpath=unknown
   10034 version_type=none
   10035 dynamic_linker="$host_os ld.so"
   10036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   10037 need_lib_prefix=unknown
   10038 hardcode_into_libs=no
   10039 
   10040 # when you set need_version to no, make sure it does not cause -set_version
   10041 # flags to be left without arguments
   10042 need_version=unknown
   10043 
   10044 
   10045 
   10046 case $host_os in
   10047 aix3*)
   10048   version_type=linux # correct to gnu/linux during the next big refactor
   10049   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   10050   shlibpath_var=LIBPATH
   10051 
   10052   # AIX 3 has no versioning support, so we append a major version to the name.
   10053   soname_spec='$libname$release$shared_ext$major'
   10054   ;;
   10055 
   10056 aix[4-9]*)
   10057   version_type=linux # correct to gnu/linux during the next big refactor
   10058   need_lib_prefix=no
   10059   need_version=no
   10060   hardcode_into_libs=yes
   10061   if test ia64 = "$host_cpu"; then
   10062     # AIX 5 supports IA64
   10063     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   10064     shlibpath_var=LD_LIBRARY_PATH
   10065   else
   10066     # With GCC up to 2.95.x, collect2 would create an import file
   10067     # for dependence libraries.  The import file would start with
   10068     # the line '#! .'.  This would cause the generated library to
   10069     # depend on '.', always an invalid library.  This was fixed in
   10070     # development snapshots of GCC prior to 3.0.
   10071     case $host_os in
   10072       aix4 | aix4.[01] | aix4.[01].*)
   10073       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   10074 	   echo ' yes '
   10075 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   10076 	:
   10077       else
   10078 	can_build_shared=no
   10079       fi
   10080       ;;
   10081     esac
   10082     # Using Import Files as archive members, it is possible to support
   10083     # filename-based versioning of shared library archives on AIX. While
   10084     # this would work for both with and without runtime linking, it will
   10085     # prevent static linking of such archives. So we do filename-based
   10086     # shared library versioning with .so extension only, which is used
   10087     # when both runtime linking and shared linking is enabled.
   10088     # Unfortunately, runtime linking may impact performance, so we do
   10089     # not want this to be the default eventually. Also, we use the
   10090     # versioned .so libs for executables only if there is the -brtl
   10091     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
   10092     # To allow for filename-based versioning support, we need to create
   10093     # libNAME.so.V as an archive file, containing:
   10094     # *) an Import File, referring to the versioned filename of the
   10095     #    archive as well as the shared archive member, telling the
   10096     #    bitwidth (32 or 64) of that shared object, and providing the
   10097     #    list of exported symbols of that shared object, eventually
   10098     #    decorated with the 'weak' keyword
   10099     # *) the shared object with the F_LOADONLY flag set, to really avoid
   10100     #    it being seen by the linker.
   10101     # At run time we better use the real file rather than another symlink,
   10102     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   10103 
   10104     case $with_aix_soname,$aix_use_runtimelinking in
   10105     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   10106     # soname into executable. Probably we can add versioning support to
   10107     # collect2, so additional links can be useful in future.
   10108     aix,yes) # traditional libtool
   10109       dynamic_linker='AIX unversionable lib.so'
   10110       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   10111       # instead of lib<name>.a to let people know that these are not
   10112       # typical AIX shared libraries.
   10113       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10114       ;;
   10115     aix,no) # traditional AIX only
   10116       dynamic_linker='AIX lib.a(lib.so.V)'
   10117       # We preserve .a as extension for shared libraries through AIX4.2
   10118       # and later when we are not doing run time linking.
   10119       library_names_spec='$libname$release.a $libname.a'
   10120       soname_spec='$libname$release$shared_ext$major'
   10121       ;;
   10122     svr4,*) # full svr4 only
   10123       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   10124       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10125       # We do not specify a path in Import Files, so LIBPATH fires.
   10126       shlibpath_overrides_runpath=yes
   10127       ;;
   10128     *,yes) # both, prefer svr4
   10129       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   10130       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10131       # unpreferred sharedlib libNAME.a needs extra handling
   10132       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"'
   10133       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"'
   10134       # We do not specify a path in Import Files, so LIBPATH fires.
   10135       shlibpath_overrides_runpath=yes
   10136       ;;
   10137     *,no) # both, prefer aix
   10138       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   10139       library_names_spec='$libname$release.a $libname.a'
   10140       soname_spec='$libname$release$shared_ext$major'
   10141       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   10142       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)'
   10143       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"'
   10144       ;;
   10145     esac
   10146     shlibpath_var=LIBPATH
   10147   fi
   10148   ;;
   10149 
   10150 amigaos*)
   10151   case $host_cpu in
   10152   powerpc)
   10153     # Since July 2007 AmigaOS4 officially supports .so libraries.
   10154     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   10155     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10156     ;;
   10157   m68k)
   10158     library_names_spec='$libname.ixlibrary $libname.a'
   10159     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   10160     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'
   10161     ;;
   10162   esac
   10163   ;;
   10164 
   10165 beos*)
   10166   library_names_spec='$libname$shared_ext'
   10167   dynamic_linker="$host_os ld.so"
   10168   shlibpath_var=LIBRARY_PATH
   10169   ;;
   10170 
   10171 bsdi[45]*)
   10172   version_type=linux # correct to gnu/linux during the next big refactor
   10173   need_version=no
   10174   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10175   soname_spec='$libname$release$shared_ext$major'
   10176   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   10177   shlibpath_var=LD_LIBRARY_PATH
   10178   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   10179   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   10180   # the default ld.so.conf also contains /usr/contrib/lib and
   10181   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   10182   # libtool to hard-code these into programs
   10183   ;;
   10184 
   10185 cygwin* | mingw* | pw32* | cegcc*)
   10186   version_type=windows
   10187   shrext_cmds=.dll
   10188   need_version=no
   10189   need_lib_prefix=no
   10190 
   10191   case $GCC,$cc_basename in
   10192   yes,*)
   10193     # gcc
   10194     library_names_spec='$libname.dll.a'
   10195     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10196     postinstall_cmds='base_file=`basename \$file`~
   10197       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10198       dldir=$destdir/`dirname \$dlpath`~
   10199       test -d \$dldir || mkdir -p \$dldir~
   10200       $install_prog $dir/$dlname \$dldir/$dlname~
   10201       chmod a+x \$dldir/$dlname~
   10202       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10203         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10204       fi'
   10205     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10206       dlpath=$dir/\$dldll~
   10207        $RM \$dlpath'
   10208     shlibpath_overrides_runpath=yes
   10209 
   10210     case $host_os in
   10211     cygwin*)
   10212       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   10213       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10214 
   10215       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   10216       ;;
   10217     mingw* | cegcc*)
   10218       # MinGW DLLs use traditional 'lib' prefix
   10219       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10220       ;;
   10221     pw32*)
   10222       # pw32 DLLs use 'pw' prefix rather than 'lib'
   10223       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10224       ;;
   10225     esac
   10226     dynamic_linker='Win32 ld.exe'
   10227     ;;
   10228 
   10229   *,cl*)
   10230     # Native MSVC
   10231     libname_spec='$name'
   10232     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10233     library_names_spec='$libname.dll.lib'
   10234 
   10235     case $build_os in
   10236     mingw*)
   10237       sys_lib_search_path_spec=
   10238       lt_save_ifs=$IFS
   10239       IFS=';'
   10240       for lt_path in $LIB
   10241       do
   10242         IFS=$lt_save_ifs
   10243         # Let DOS variable expansion print the short 8.3 style file name.
   10244         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   10245         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   10246       done
   10247       IFS=$lt_save_ifs
   10248       # Convert to MSYS style.
   10249       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   10250       ;;
   10251     cygwin*)
   10252       # Convert to unix form, then to dos form, then back to unix form
   10253       # but this time dos style (no spaces!) so that the unix form looks
   10254       # like /cygdrive/c/PROGRA~1:/cygdr...
   10255       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   10256       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   10257       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10258       ;;
   10259     *)
   10260       sys_lib_search_path_spec=$LIB
   10261       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   10262         # It is most probably a Windows format PATH.
   10263         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   10264       else
   10265         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10266       fi
   10267       # FIXME: find the short name or the path components, as spaces are
   10268       # common. (e.g. "Program Files" -> "PROGRA~1")
   10269       ;;
   10270     esac
   10271 
   10272     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10273     postinstall_cmds='base_file=`basename \$file`~
   10274       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10275       dldir=$destdir/`dirname \$dlpath`~
   10276       test -d \$dldir || mkdir -p \$dldir~
   10277       $install_prog $dir/$dlname \$dldir/$dlname'
   10278     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10279       dlpath=$dir/\$dldll~
   10280        $RM \$dlpath'
   10281     shlibpath_overrides_runpath=yes
   10282     dynamic_linker='Win32 link.exe'
   10283     ;;
   10284 
   10285   *)
   10286     # Assume MSVC wrapper
   10287     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   10288     dynamic_linker='Win32 ld.exe'
   10289     ;;
   10290   esac
   10291   # FIXME: first we should search . and the directory the executable is in
   10292   shlibpath_var=PATH
   10293   ;;
   10294 
   10295 darwin* | rhapsody*)
   10296   dynamic_linker="$host_os dyld"
   10297   version_type=darwin
   10298   need_lib_prefix=no
   10299   need_version=no
   10300   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   10301   soname_spec='$libname$release$major$shared_ext'
   10302   shlibpath_overrides_runpath=yes
   10303   shlibpath_var=DYLD_LIBRARY_PATH
   10304   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   10305 
   10306   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   10307   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   10308   ;;
   10309 
   10310 dgux*)
   10311   version_type=linux # correct to gnu/linux during the next big refactor
   10312   need_lib_prefix=no
   10313   need_version=no
   10314   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10315   soname_spec='$libname$release$shared_ext$major'
   10316   shlibpath_var=LD_LIBRARY_PATH
   10317   ;;
   10318 
   10319 freebsd* | dragonfly*)
   10320   # DragonFly does not have aout.  When/if they implement a new
   10321   # versioning mechanism, adjust this.
   10322   if test -x /usr/bin/objformat; then
   10323     objformat=`/usr/bin/objformat`
   10324   else
   10325     case $host_os in
   10326     freebsd[23].*) objformat=aout ;;
   10327     *) objformat=elf ;;
   10328     esac
   10329   fi
   10330   version_type=freebsd-$objformat
   10331   case $version_type in
   10332     freebsd-elf*)
   10333       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10334       soname_spec='$libname$release$shared_ext$major'
   10335       need_version=no
   10336       need_lib_prefix=no
   10337       ;;
   10338     freebsd-*)
   10339       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10340       need_version=yes
   10341       ;;
   10342   esac
   10343   shlibpath_var=LD_LIBRARY_PATH
   10344   case $host_os in
   10345   freebsd2.*)
   10346     shlibpath_overrides_runpath=yes
   10347     ;;
   10348   freebsd3.[01]* | freebsdelf3.[01]*)
   10349     shlibpath_overrides_runpath=yes
   10350     hardcode_into_libs=yes
   10351     ;;
   10352   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   10353   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   10354     shlibpath_overrides_runpath=no
   10355     hardcode_into_libs=yes
   10356     ;;
   10357   *) # from 4.6 on, and DragonFly
   10358     shlibpath_overrides_runpath=yes
   10359     hardcode_into_libs=yes
   10360     ;;
   10361   esac
   10362   ;;
   10363 
   10364 haiku*)
   10365   version_type=linux # correct to gnu/linux during the next big refactor
   10366   need_lib_prefix=no
   10367   need_version=no
   10368   dynamic_linker="$host_os runtime_loader"
   10369   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10370   soname_spec='$libname$release$shared_ext$major'
   10371   shlibpath_var=LIBRARY_PATH
   10372   shlibpath_overrides_runpath=no
   10373   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   10374   hardcode_into_libs=yes
   10375   ;;
   10376 
   10377 hpux9* | hpux10* | hpux11*)
   10378   # Give a soname corresponding to the major version so that dld.sl refuses to
   10379   # link against other versions.
   10380   version_type=sunos
   10381   need_lib_prefix=no
   10382   need_version=no
   10383   case $host_cpu in
   10384   ia64*)
   10385     shrext_cmds='.so'
   10386     hardcode_into_libs=yes
   10387     dynamic_linker="$host_os dld.so"
   10388     shlibpath_var=LD_LIBRARY_PATH
   10389     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10390     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10391     soname_spec='$libname$release$shared_ext$major'
   10392     if test 32 = "$HPUX_IA64_MODE"; then
   10393       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   10394       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   10395     else
   10396       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   10397       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   10398     fi
   10399     ;;
   10400   hppa*64*)
   10401     shrext_cmds='.sl'
   10402     hardcode_into_libs=yes
   10403     dynamic_linker="$host_os dld.sl"
   10404     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   10405     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10406     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10407     soname_spec='$libname$release$shared_ext$major'
   10408     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   10409     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10410     ;;
   10411   *)
   10412     shrext_cmds='.sl'
   10413     dynamic_linker="$host_os dld.sl"
   10414     shlibpath_var=SHLIB_PATH
   10415     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   10416     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10417     soname_spec='$libname$release$shared_ext$major'
   10418     ;;
   10419   esac
   10420   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   10421   postinstall_cmds='chmod 555 $lib'
   10422   # or fails outright, so override atomically:
   10423   install_override_mode=555
   10424   ;;
   10425 
   10426 interix[3-9]*)
   10427   version_type=linux # correct to gnu/linux during the next big refactor
   10428   need_lib_prefix=no
   10429   need_version=no
   10430   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10431   soname_spec='$libname$release$shared_ext$major'
   10432   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   10433   shlibpath_var=LD_LIBRARY_PATH
   10434   shlibpath_overrides_runpath=no
   10435   hardcode_into_libs=yes
   10436   ;;
   10437 
   10438 irix5* | irix6* | nonstopux*)
   10439   case $host_os in
   10440     nonstopux*) version_type=nonstopux ;;
   10441     *)
   10442 	if test yes = "$lt_cv_prog_gnu_ld"; then
   10443 		version_type=linux # correct to gnu/linux during the next big refactor
   10444 	else
   10445 		version_type=irix
   10446 	fi ;;
   10447   esac
   10448   need_lib_prefix=no
   10449   need_version=no
   10450   soname_spec='$libname$release$shared_ext$major'
   10451   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   10452   case $host_os in
   10453   irix5* | nonstopux*)
   10454     libsuff= shlibsuff=
   10455     ;;
   10456   *)
   10457     case $LD in # libtool.m4 will add one of these switches to LD
   10458     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   10459       libsuff= shlibsuff= libmagic=32-bit;;
   10460     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   10461       libsuff=32 shlibsuff=N32 libmagic=N32;;
   10462     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   10463       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   10464     *) libsuff= shlibsuff= libmagic=never-match;;
   10465     esac
   10466     ;;
   10467   esac
   10468   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   10469   shlibpath_overrides_runpath=no
   10470   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   10471   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   10472   hardcode_into_libs=yes
   10473   ;;
   10474 
   10475 # No shared lib support for Linux oldld, aout, or coff.
   10476 linux*oldld* | linux*aout* | linux*coff*)
   10477   dynamic_linker=no
   10478   ;;
   10479 
   10480 linux*android*)
   10481   version_type=none # Android doesn't support versioned libraries.
   10482   need_lib_prefix=no
   10483   need_version=no
   10484   library_names_spec='$libname$release$shared_ext'
   10485   soname_spec='$libname$release$shared_ext'
   10486   finish_cmds=
   10487   shlibpath_var=LD_LIBRARY_PATH
   10488   shlibpath_overrides_runpath=yes
   10489 
   10490   # This implies no fast_install, which is unacceptable.
   10491   # Some rework will be needed to allow for fast_install
   10492   # before this can be enabled.
   10493   hardcode_into_libs=yes
   10494 
   10495   dynamic_linker='Android linker'
   10496   # Don't embed -rpath directories since the linker doesn't support them.
   10497   hardcode_libdir_flag_spec='-L$libdir'
   10498   ;;
   10499 
   10500 # This must be glibc/ELF.
   10501 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   10502   version_type=linux # correct to gnu/linux during the next big refactor
   10503   need_lib_prefix=no
   10504   need_version=no
   10505   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10506   soname_spec='$libname$release$shared_ext$major'
   10507   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   10508   shlibpath_var=LD_LIBRARY_PATH
   10509   shlibpath_overrides_runpath=no
   10510 
   10511   # Some binutils ld are patched to set DT_RUNPATH
   10512   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   10513   $as_echo_n "(cached) " >&6
   10514 else
   10515   lt_cv_shlibpath_overrides_runpath=no
   10516     save_LDFLAGS=$LDFLAGS
   10517     save_libdir=$libdir
   10518     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   10519 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   10520     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10521 /* end confdefs.h.  */
   10522 
   10523 int
   10524 main ()
   10525 {
   10526 
   10527   ;
   10528   return 0;
   10529 }
   10530 _ACEOF
   10531 if ac_fn_c_try_link "$LINENO"; then :
   10532   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   10533   lt_cv_shlibpath_overrides_runpath=yes
   10534 fi
   10535 fi
   10536 rm -f core conftest.err conftest.$ac_objext \
   10537     conftest$ac_exeext conftest.$ac_ext
   10538     LDFLAGS=$save_LDFLAGS
   10539     libdir=$save_libdir
   10540 
   10541 fi
   10542 
   10543   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   10544 
   10545   # This implies no fast_install, which is unacceptable.
   10546   # Some rework will be needed to allow for fast_install
   10547   # before this can be enabled.
   10548   hardcode_into_libs=yes
   10549 
   10550   # Ideally, we could use ldconfig to report *all* directores which are
   10551   # searched for libraries, however this is still not possible.  Aside from not
   10552   # being certain /sbin/ldconfig is available, command
   10553   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   10554   # even though it is searched at run-time.  Try to do the best guess by
   10555   # appending ld.so.conf contents (and includes) to the search path.
   10556   if test -f /etc/ld.so.conf; then
   10557     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' ' '`
   10558     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   10559   fi
   10560 
   10561   # We used to test for /lib/ld.so.1 and disable shared libraries on
   10562   # powerpc, because MkLinux only supported shared libraries with the
   10563   # GNU dynamic linker.  Since this was broken with cross compilers,
   10564   # most powerpc-linux boxes support dynamic linking these days and
   10565   # people can always --disable-shared, the test was removed, and we
   10566   # assume the GNU/Linux dynamic linker is in use.
   10567   dynamic_linker='GNU/Linux ld.so'
   10568   ;;
   10569 
   10570 netbsd*)
   10571   version_type=sunos
   10572   need_lib_prefix=no
   10573   need_version=no
   10574   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   10575     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10576     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10577     dynamic_linker='NetBSD (a.out) ld.so'
   10578   else
   10579     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10580     soname_spec='$libname$release$shared_ext$major'
   10581     dynamic_linker='NetBSD ld.elf_so'
   10582   fi
   10583   shlibpath_var=LD_LIBRARY_PATH
   10584   shlibpath_overrides_runpath=yes
   10585   hardcode_into_libs=yes
   10586   ;;
   10587 
   10588 newsos6)
   10589   version_type=linux # correct to gnu/linux during the next big refactor
   10590   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10591   shlibpath_var=LD_LIBRARY_PATH
   10592   shlibpath_overrides_runpath=yes
   10593   ;;
   10594 
   10595 *nto* | *qnx*)
   10596   version_type=qnx
   10597   need_lib_prefix=no
   10598   need_version=no
   10599   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10600   soname_spec='$libname$release$shared_ext$major'
   10601   shlibpath_var=LD_LIBRARY_PATH
   10602   shlibpath_overrides_runpath=no
   10603   hardcode_into_libs=yes
   10604   dynamic_linker='ldqnx.so'
   10605   ;;
   10606 
   10607 openbsd* | bitrig*)
   10608   version_type=sunos
   10609   sys_lib_dlsearch_path_spec=/usr/lib
   10610   need_lib_prefix=no
   10611   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   10612     need_version=no
   10613   else
   10614     need_version=yes
   10615   fi
   10616   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10617   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10618   shlibpath_var=LD_LIBRARY_PATH
   10619   shlibpath_overrides_runpath=yes
   10620   ;;
   10621 
   10622 os2*)
   10623   libname_spec='$name'
   10624   version_type=windows
   10625   shrext_cmds=.dll
   10626   need_version=no
   10627   need_lib_prefix=no
   10628   # OS/2 can only load a DLL with a base name of 8 characters or less.
   10629   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   10630     v=$($ECHO $release$versuffix | tr -d .-);
   10631     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   10632     $ECHO $n$v`$shared_ext'
   10633   library_names_spec='${libname}_dll.$libext'
   10634   dynamic_linker='OS/2 ld.exe'
   10635   shlibpath_var=BEGINLIBPATH
   10636   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10637   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10638   postinstall_cmds='base_file=`basename \$file`~
   10639     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   10640     dldir=$destdir/`dirname \$dlpath`~
   10641     test -d \$dldir || mkdir -p \$dldir~
   10642     $install_prog $dir/$dlname \$dldir/$dlname~
   10643     chmod a+x \$dldir/$dlname~
   10644     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10645       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10646     fi'
   10647   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   10648     dlpath=$dir/\$dldll~
   10649     $RM \$dlpath'
   10650   ;;
   10651 
   10652 osf3* | osf4* | osf5*)
   10653   version_type=osf
   10654   need_lib_prefix=no
   10655   need_version=no
   10656   soname_spec='$libname$release$shared_ext$major'
   10657   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10658   shlibpath_var=LD_LIBRARY_PATH
   10659   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   10660   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10661   ;;
   10662 
   10663 rdos*)
   10664   dynamic_linker=no
   10665   ;;
   10666 
   10667 solaris*)
   10668   version_type=linux # correct to gnu/linux during the next big refactor
   10669   need_lib_prefix=no
   10670   need_version=no
   10671   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10672   soname_spec='$libname$release$shared_ext$major'
   10673   shlibpath_var=LD_LIBRARY_PATH
   10674   shlibpath_overrides_runpath=yes
   10675   hardcode_into_libs=yes
   10676   # ldd complains unless libraries are executable
   10677   postinstall_cmds='chmod +x $lib'
   10678   ;;
   10679 
   10680 sunos4*)
   10681   version_type=sunos
   10682   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10683   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   10684   shlibpath_var=LD_LIBRARY_PATH
   10685   shlibpath_overrides_runpath=yes
   10686   if test yes = "$with_gnu_ld"; then
   10687     need_lib_prefix=no
   10688   fi
   10689   need_version=yes
   10690   ;;
   10691 
   10692 sysv4 | sysv4.3*)
   10693   version_type=linux # correct to gnu/linux during the next big refactor
   10694   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10695   soname_spec='$libname$release$shared_ext$major'
   10696   shlibpath_var=LD_LIBRARY_PATH
   10697   case $host_vendor in
   10698     sni)
   10699       shlibpath_overrides_runpath=no
   10700       need_lib_prefix=no
   10701       runpath_var=LD_RUN_PATH
   10702       ;;
   10703     siemens)
   10704       need_lib_prefix=no
   10705       ;;
   10706     motorola)
   10707       need_lib_prefix=no
   10708       need_version=no
   10709       shlibpath_overrides_runpath=no
   10710       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   10711       ;;
   10712   esac
   10713   ;;
   10714 
   10715 sysv4*MP*)
   10716   if test -d /usr/nec; then
   10717     version_type=linux # correct to gnu/linux during the next big refactor
   10718     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   10719     soname_spec='$libname$shared_ext.$major'
   10720     shlibpath_var=LD_LIBRARY_PATH
   10721   fi
   10722   ;;
   10723 
   10724 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   10725   version_type=sco
   10726   need_lib_prefix=no
   10727   need_version=no
   10728   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   10729   soname_spec='$libname$release$shared_ext$major'
   10730   shlibpath_var=LD_LIBRARY_PATH
   10731   shlibpath_overrides_runpath=yes
   10732   hardcode_into_libs=yes
   10733   if test yes = "$with_gnu_ld"; then
   10734     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   10735   else
   10736     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   10737     case $host_os in
   10738       sco3.2v5*)
   10739         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   10740 	;;
   10741     esac
   10742   fi
   10743   sys_lib_dlsearch_path_spec='/usr/lib'
   10744   ;;
   10745 
   10746 tpf*)
   10747   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   10748   version_type=linux # correct to gnu/linux during the next big refactor
   10749   need_lib_prefix=no
   10750   need_version=no
   10751   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10752   shlibpath_var=LD_LIBRARY_PATH
   10753   shlibpath_overrides_runpath=no
   10754   hardcode_into_libs=yes
   10755   ;;
   10756 
   10757 uts4*)
   10758   version_type=linux # correct to gnu/linux during the next big refactor
   10759   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10760   soname_spec='$libname$release$shared_ext$major'
   10761   shlibpath_var=LD_LIBRARY_PATH
   10762   ;;
   10763 
   10764 *)
   10765   dynamic_linker=no
   10766   ;;
   10767 esac
   10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   10769 $as_echo "$dynamic_linker" >&6; }
   10770 test no = "$dynamic_linker" && can_build_shared=no
   10771 
   10772 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   10773 if test yes = "$GCC"; then
   10774   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   10775 fi
   10776 
   10777 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   10778   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   10779 fi
   10780 
   10781 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   10782   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   10783 fi
   10784 
   10785 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   10786 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   10787 
   10788 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   10789 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   10790 
   10791 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   10792 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   10793 
   10794 
   10795 
   10796 
   10797 
   10798 
   10799 
   10800 
   10801 
   10802 
   10803 
   10804 
   10805 
   10806 
   10807 
   10808 
   10809 
   10810 
   10811 
   10812 
   10813 
   10814 
   10815 
   10816 
   10817 
   10818 
   10819 
   10820 
   10821 
   10822 
   10823 
   10824 
   10825 
   10826 
   10827 
   10828 
   10829 
   10830 
   10831 
   10832 
   10833 
   10834 
   10835 
   10836 
   10837 
   10838 
   10839 
   10840 
   10841 
   10842 
   10843 
   10844 
   10845 
   10846 
   10847 
   10848 
   10849 
   10850 
   10851 
   10852 
   10853 
   10854 
   10855 
   10856 
   10857 
   10858 
   10859 
   10860 
   10861 
   10862 
   10863 
   10864 
   10865 
   10866 
   10867 
   10868 
   10869 
   10870 
   10871 
   10872 
   10873 
   10874 
   10875 
   10876 
   10877 
   10878 
   10879 
   10880 
   10881 
   10882 
   10883 
   10884 
   10885 
   10886 
   10887 
   10888 
   10889 
   10890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   10891 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   10892 hardcode_action=
   10893 if test -n "$hardcode_libdir_flag_spec" ||
   10894    test -n "$runpath_var" ||
   10895    test yes = "$hardcode_automatic"; then
   10896 
   10897   # We can hardcode non-existent directories.
   10898   if test no != "$hardcode_direct" &&
   10899      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   10900      # have to relink, otherwise we might link with an installed library
   10901      # when we should be linking with a yet-to-be-installed one
   10902      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   10903      test no != "$hardcode_minus_L"; then
   10904     # Linking always hardcodes the temporary library directory.
   10905     hardcode_action=relink
   10906   else
   10907     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   10908     hardcode_action=immediate
   10909   fi
   10910 else
   10911   # We cannot hardcode anything, or else we can only hardcode existing
   10912   # directories.
   10913   hardcode_action=unsupported
   10914 fi
   10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   10916 $as_echo "$hardcode_action" >&6; }
   10917 
   10918 if test relink = "$hardcode_action" ||
   10919    test yes = "$inherit_rpath"; then
   10920   # Fast installation is not supported
   10921   enable_fast_install=no
   10922 elif test yes = "$shlibpath_overrides_runpath" ||
   10923      test no = "$enable_shared"; then
   10924   # Fast installation is not necessary
   10925   enable_fast_install=needless
   10926 fi
   10927 
   10928 
   10929 
   10930 
   10931 
   10932 
   10933   if test yes != "$enable_dlopen"; then
   10934   enable_dlopen=unknown
   10935   enable_dlopen_self=unknown
   10936   enable_dlopen_self_static=unknown
   10937 else
   10938   lt_cv_dlopen=no
   10939   lt_cv_dlopen_libs=
   10940 
   10941   case $host_os in
   10942   beos*)
   10943     lt_cv_dlopen=load_add_on
   10944     lt_cv_dlopen_libs=
   10945     lt_cv_dlopen_self=yes
   10946     ;;
   10947 
   10948   mingw* | pw32* | cegcc*)
   10949     lt_cv_dlopen=LoadLibrary
   10950     lt_cv_dlopen_libs=
   10951     ;;
   10952 
   10953   cygwin*)
   10954     lt_cv_dlopen=dlopen
   10955     lt_cv_dlopen_libs=
   10956     ;;
   10957 
   10958   darwin*)
   10959     # if libdl is installed we need to link against it
   10960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   10961 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   10962 if ${ac_cv_lib_dl_dlopen+:} false; then :
   10963   $as_echo_n "(cached) " >&6
   10964 else
   10965   ac_check_lib_save_LIBS=$LIBS
   10966 LIBS="-ldl  $LIBS"
   10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10968 /* end confdefs.h.  */
   10969 
   10970 /* Override any GCC internal prototype to avoid an error.
   10971    Use char because int might match the return type of a GCC
   10972    builtin and then its argument prototype would still apply.  */
   10973 #ifdef __cplusplus
   10974 extern "C"
   10975 #endif
   10976 char dlopen ();
   10977 int
   10978 main ()
   10979 {
   10980 return dlopen ();
   10981   ;
   10982   return 0;
   10983 }
   10984 _ACEOF
   10985 if ac_fn_c_try_link "$LINENO"; then :
   10986   ac_cv_lib_dl_dlopen=yes
   10987 else
   10988   ac_cv_lib_dl_dlopen=no
   10989 fi
   10990 rm -f core conftest.err conftest.$ac_objext \
   10991     conftest$ac_exeext conftest.$ac_ext
   10992 LIBS=$ac_check_lib_save_LIBS
   10993 fi
   10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   10995 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   10996 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   10997   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   10998 else
   10999 
   11000     lt_cv_dlopen=dyld
   11001     lt_cv_dlopen_libs=
   11002     lt_cv_dlopen_self=yes
   11003 
   11004 fi
   11005 
   11006     ;;
   11007 
   11008   tpf*)
   11009     # Don't try to run any link tests for TPF.  We know it's impossible
   11010     # because TPF is a cross-compiler, and we know how we open DSOs.
   11011     lt_cv_dlopen=dlopen
   11012     lt_cv_dlopen_libs=
   11013     lt_cv_dlopen_self=no
   11014     ;;
   11015 
   11016   *)
   11017     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   11018 if test "x$ac_cv_func_shl_load" = xyes; then :
   11019   lt_cv_dlopen=shl_load
   11020 else
   11021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   11022 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   11023 if ${ac_cv_lib_dld_shl_load+:} false; then :
   11024   $as_echo_n "(cached) " >&6
   11025 else
   11026   ac_check_lib_save_LIBS=$LIBS
   11027 LIBS="-ldld  $LIBS"
   11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11029 /* end confdefs.h.  */
   11030 
   11031 /* Override any GCC internal prototype to avoid an error.
   11032    Use char because int might match the return type of a GCC
   11033    builtin and then its argument prototype would still apply.  */
   11034 #ifdef __cplusplus
   11035 extern "C"
   11036 #endif
   11037 char shl_load ();
   11038 int
   11039 main ()
   11040 {
   11041 return shl_load ();
   11042   ;
   11043   return 0;
   11044 }
   11045 _ACEOF
   11046 if ac_fn_c_try_link "$LINENO"; then :
   11047   ac_cv_lib_dld_shl_load=yes
   11048 else
   11049   ac_cv_lib_dld_shl_load=no
   11050 fi
   11051 rm -f core conftest.err conftest.$ac_objext \
   11052     conftest$ac_exeext conftest.$ac_ext
   11053 LIBS=$ac_check_lib_save_LIBS
   11054 fi
   11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   11056 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   11057 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   11058   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   11059 else
   11060   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   11061 if test "x$ac_cv_func_dlopen" = xyes; then :
   11062   lt_cv_dlopen=dlopen
   11063 else
   11064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11065 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11066 if ${ac_cv_lib_dl_dlopen+:} false; then :
   11067   $as_echo_n "(cached) " >&6
   11068 else
   11069   ac_check_lib_save_LIBS=$LIBS
   11070 LIBS="-ldl  $LIBS"
   11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11072 /* end confdefs.h.  */
   11073 
   11074 /* Override any GCC internal prototype to avoid an error.
   11075    Use char because int might match the return type of a GCC
   11076    builtin and then its argument prototype would still apply.  */
   11077 #ifdef __cplusplus
   11078 extern "C"
   11079 #endif
   11080 char dlopen ();
   11081 int
   11082 main ()
   11083 {
   11084 return dlopen ();
   11085   ;
   11086   return 0;
   11087 }
   11088 _ACEOF
   11089 if ac_fn_c_try_link "$LINENO"; then :
   11090   ac_cv_lib_dl_dlopen=yes
   11091 else
   11092   ac_cv_lib_dl_dlopen=no
   11093 fi
   11094 rm -f core conftest.err conftest.$ac_objext \
   11095     conftest$ac_exeext conftest.$ac_ext
   11096 LIBS=$ac_check_lib_save_LIBS
   11097 fi
   11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11099 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11100 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11101   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11102 else
   11103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   11104 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   11105 if ${ac_cv_lib_svld_dlopen+:} false; then :
   11106   $as_echo_n "(cached) " >&6
   11107 else
   11108   ac_check_lib_save_LIBS=$LIBS
   11109 LIBS="-lsvld  $LIBS"
   11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11111 /* end confdefs.h.  */
   11112 
   11113 /* Override any GCC internal prototype to avoid an error.
   11114    Use char because int might match the return type of a GCC
   11115    builtin and then its argument prototype would still apply.  */
   11116 #ifdef __cplusplus
   11117 extern "C"
   11118 #endif
   11119 char dlopen ();
   11120 int
   11121 main ()
   11122 {
   11123 return dlopen ();
   11124   ;
   11125   return 0;
   11126 }
   11127 _ACEOF
   11128 if ac_fn_c_try_link "$LINENO"; then :
   11129   ac_cv_lib_svld_dlopen=yes
   11130 else
   11131   ac_cv_lib_svld_dlopen=no
   11132 fi
   11133 rm -f core conftest.err conftest.$ac_objext \
   11134     conftest$ac_exeext conftest.$ac_ext
   11135 LIBS=$ac_check_lib_save_LIBS
   11136 fi
   11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   11138 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   11139 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   11140   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   11141 else
   11142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   11143 $as_echo_n "checking for dld_link in -ldld... " >&6; }
   11144 if ${ac_cv_lib_dld_dld_link+:} false; then :
   11145   $as_echo_n "(cached) " >&6
   11146 else
   11147   ac_check_lib_save_LIBS=$LIBS
   11148 LIBS="-ldld  $LIBS"
   11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11150 /* end confdefs.h.  */
   11151 
   11152 /* Override any GCC internal prototype to avoid an error.
   11153    Use char because int might match the return type of a GCC
   11154    builtin and then its argument prototype would still apply.  */
   11155 #ifdef __cplusplus
   11156 extern "C"
   11157 #endif
   11158 char dld_link ();
   11159 int
   11160 main ()
   11161 {
   11162 return dld_link ();
   11163   ;
   11164   return 0;
   11165 }
   11166 _ACEOF
   11167 if ac_fn_c_try_link "$LINENO"; then :
   11168   ac_cv_lib_dld_dld_link=yes
   11169 else
   11170   ac_cv_lib_dld_dld_link=no
   11171 fi
   11172 rm -f core conftest.err conftest.$ac_objext \
   11173     conftest$ac_exeext conftest.$ac_ext
   11174 LIBS=$ac_check_lib_save_LIBS
   11175 fi
   11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   11177 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   11178 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   11179   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   11180 fi
   11181 
   11182 
   11183 fi
   11184 
   11185 
   11186 fi
   11187 
   11188 
   11189 fi
   11190 
   11191 
   11192 fi
   11193 
   11194 
   11195 fi
   11196 
   11197     ;;
   11198   esac
   11199 
   11200   if test no = "$lt_cv_dlopen"; then
   11201     enable_dlopen=no
   11202   else
   11203     enable_dlopen=yes
   11204   fi
   11205 
   11206   case $lt_cv_dlopen in
   11207   dlopen)
   11208     save_CPPFLAGS=$CPPFLAGS
   11209     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   11210 
   11211     save_LDFLAGS=$LDFLAGS
   11212     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   11213 
   11214     save_LIBS=$LIBS
   11215     LIBS="$lt_cv_dlopen_libs $LIBS"
   11216 
   11217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   11218 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   11219 if ${lt_cv_dlopen_self+:} false; then :
   11220   $as_echo_n "(cached) " >&6
   11221 else
   11222   	  if test yes = "$cross_compiling"; then :
   11223   lt_cv_dlopen_self=cross
   11224 else
   11225   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11226   lt_status=$lt_dlunknown
   11227   cat > conftest.$ac_ext <<_LT_EOF
   11228 #line $LINENO "configure"
   11229 #include "confdefs.h"
   11230 
   11231 #if HAVE_DLFCN_H
   11232 #include <dlfcn.h>
   11233 #endif
   11234 
   11235 #include <stdio.h>
   11236 
   11237 #ifdef RTLD_GLOBAL
   11238 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11239 #else
   11240 #  ifdef DL_GLOBAL
   11241 #    define LT_DLGLOBAL		DL_GLOBAL
   11242 #  else
   11243 #    define LT_DLGLOBAL		0
   11244 #  endif
   11245 #endif
   11246 
   11247 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11248    find out it does not work in some platform. */
   11249 #ifndef LT_DLLAZY_OR_NOW
   11250 #  ifdef RTLD_LAZY
   11251 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11252 #  else
   11253 #    ifdef DL_LAZY
   11254 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11255 #    else
   11256 #      ifdef RTLD_NOW
   11257 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11258 #      else
   11259 #        ifdef DL_NOW
   11260 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11261 #        else
   11262 #          define LT_DLLAZY_OR_NOW	0
   11263 #        endif
   11264 #      endif
   11265 #    endif
   11266 #  endif
   11267 #endif
   11268 
   11269 /* When -fvisibility=hidden is used, assume the code has been annotated
   11270    correspondingly for the symbols needed.  */
   11271 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11272 int fnord () __attribute__((visibility("default")));
   11273 #endif
   11274 
   11275 int fnord () { return 42; }
   11276 int main ()
   11277 {
   11278   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11279   int status = $lt_dlunknown;
   11280 
   11281   if (self)
   11282     {
   11283       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11284       else
   11285         {
   11286 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11287           else puts (dlerror ());
   11288 	}
   11289       /* dlclose (self); */
   11290     }
   11291   else
   11292     puts (dlerror ());
   11293 
   11294   return status;
   11295 }
   11296 _LT_EOF
   11297   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11298   (eval $ac_link) 2>&5
   11299   ac_status=$?
   11300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11301   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11302     (./conftest; exit; ) >&5 2>/dev/null
   11303     lt_status=$?
   11304     case x$lt_status in
   11305       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   11306       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   11307       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   11308     esac
   11309   else :
   11310     # compilation failed
   11311     lt_cv_dlopen_self=no
   11312   fi
   11313 fi
   11314 rm -fr conftest*
   11315 
   11316 
   11317 fi
   11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   11319 $as_echo "$lt_cv_dlopen_self" >&6; }
   11320 
   11321     if test yes = "$lt_cv_dlopen_self"; then
   11322       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   11323       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   11324 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   11325 if ${lt_cv_dlopen_self_static+:} false; then :
   11326   $as_echo_n "(cached) " >&6
   11327 else
   11328   	  if test yes = "$cross_compiling"; then :
   11329   lt_cv_dlopen_self_static=cross
   11330 else
   11331   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11332   lt_status=$lt_dlunknown
   11333   cat > conftest.$ac_ext <<_LT_EOF
   11334 #line $LINENO "configure"
   11335 #include "confdefs.h"
   11336 
   11337 #if HAVE_DLFCN_H
   11338 #include <dlfcn.h>
   11339 #endif
   11340 
   11341 #include <stdio.h>
   11342 
   11343 #ifdef RTLD_GLOBAL
   11344 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11345 #else
   11346 #  ifdef DL_GLOBAL
   11347 #    define LT_DLGLOBAL		DL_GLOBAL
   11348 #  else
   11349 #    define LT_DLGLOBAL		0
   11350 #  endif
   11351 #endif
   11352 
   11353 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11354    find out it does not work in some platform. */
   11355 #ifndef LT_DLLAZY_OR_NOW
   11356 #  ifdef RTLD_LAZY
   11357 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11358 #  else
   11359 #    ifdef DL_LAZY
   11360 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11361 #    else
   11362 #      ifdef RTLD_NOW
   11363 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11364 #      else
   11365 #        ifdef DL_NOW
   11366 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11367 #        else
   11368 #          define LT_DLLAZY_OR_NOW	0
   11369 #        endif
   11370 #      endif
   11371 #    endif
   11372 #  endif
   11373 #endif
   11374 
   11375 /* When -fvisibility=hidden is used, assume the code has been annotated
   11376    correspondingly for the symbols needed.  */
   11377 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11378 int fnord () __attribute__((visibility("default")));
   11379 #endif
   11380 
   11381 int fnord () { return 42; }
   11382 int main ()
   11383 {
   11384   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11385   int status = $lt_dlunknown;
   11386 
   11387   if (self)
   11388     {
   11389       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11390       else
   11391         {
   11392 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11393           else puts (dlerror ());
   11394 	}
   11395       /* dlclose (self); */
   11396     }
   11397   else
   11398     puts (dlerror ());
   11399 
   11400   return status;
   11401 }
   11402 _LT_EOF
   11403   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11404   (eval $ac_link) 2>&5
   11405   ac_status=$?
   11406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11407   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11408     (./conftest; exit; ) >&5 2>/dev/null
   11409     lt_status=$?
   11410     case x$lt_status in
   11411       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   11412       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   11413       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   11414     esac
   11415   else :
   11416     # compilation failed
   11417     lt_cv_dlopen_self_static=no
   11418   fi
   11419 fi
   11420 rm -fr conftest*
   11421 
   11422 
   11423 fi
   11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   11425 $as_echo "$lt_cv_dlopen_self_static" >&6; }
   11426     fi
   11427 
   11428     CPPFLAGS=$save_CPPFLAGS
   11429     LDFLAGS=$save_LDFLAGS
   11430     LIBS=$save_LIBS
   11431     ;;
   11432   esac
   11433 
   11434   case $lt_cv_dlopen_self in
   11435   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   11436   *) enable_dlopen_self=unknown ;;
   11437   esac
   11438 
   11439   case $lt_cv_dlopen_self_static in
   11440   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   11441   *) enable_dlopen_self_static=unknown ;;
   11442   esac
   11443 fi
   11444 
   11445 
   11446 
   11447 
   11448 
   11449 
   11450 
   11451 
   11452 
   11453 
   11454 
   11455 
   11456 
   11457 
   11458 
   11459 
   11460 
   11461 striplib=
   11462 old_striplib=
   11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   11464 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   11465 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   11466   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   11467   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11469 $as_echo "yes" >&6; }
   11470 else
   11471 # FIXME - insert some real tests, host_os isn't really good enough
   11472   case $host_os in
   11473   darwin*)
   11474     if test -n "$STRIP"; then
   11475       striplib="$STRIP -x"
   11476       old_striplib="$STRIP -S"
   11477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11478 $as_echo "yes" >&6; }
   11479     else
   11480       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11481 $as_echo "no" >&6; }
   11482     fi
   11483     ;;
   11484   *)
   11485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11486 $as_echo "no" >&6; }
   11487     ;;
   11488   esac
   11489 fi
   11490 
   11491 
   11492 
   11493 
   11494 
   11495 
   11496 
   11497 
   11498 
   11499 
   11500 
   11501 
   11502   # Report what library types will actually be built
   11503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   11504 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   11505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   11506 $as_echo "$can_build_shared" >&6; }
   11507 
   11508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   11509 $as_echo_n "checking whether to build shared libraries... " >&6; }
   11510   test no = "$can_build_shared" && enable_shared=no
   11511 
   11512   # On AIX, shared libraries and static libraries use the same namespace, and
   11513   # are all built from PIC.
   11514   case $host_os in
   11515   aix3*)
   11516     test yes = "$enable_shared" && enable_static=no
   11517     if test -n "$RANLIB"; then
   11518       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   11519       postinstall_cmds='$RANLIB $lib'
   11520     fi
   11521     ;;
   11522 
   11523   aix[4-9]*)
   11524     if test ia64 != "$host_cpu"; then
   11525       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   11526       yes,aix,yes) ;;			# shared object as lib.so file only
   11527       yes,svr4,*) ;;			# shared object as lib.so archive member only
   11528       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   11529       esac
   11530     fi
   11531     ;;
   11532   esac
   11533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   11534 $as_echo "$enable_shared" >&6; }
   11535 
   11536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   11537 $as_echo_n "checking whether to build static libraries... " >&6; }
   11538   # Make sure either enable_shared or enable_static is yes.
   11539   test yes = "$enable_shared" || enable_static=yes
   11540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   11541 $as_echo "$enable_static" >&6; }
   11542 
   11543 
   11544 
   11545 
   11546 fi
   11547 ac_ext=c
   11548 ac_cpp='$CPP $CPPFLAGS'
   11549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   11550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   11551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   11552 
   11553 CC=$lt_save_CC
   11554 
   11555 
   11556 
   11557 
   11558 
   11559 
   11560 
   11561 
   11562 
   11563 
   11564 
   11565 
   11566 
   11567 
   11568 
   11569         ac_config_commands="$ac_config_commands libtool"
   11570 
   11571 
   11572 
   11573 
   11574 # Only expand once:
   11575 
   11576 
   11577 # Find a good install program.  We prefer a C program (faster),
   11578 # so one script is as good as another.  But avoid the broken or
   11579 # incompatible versions:
   11580 # SysV /etc/install, /usr/sbin/install
   11581 # SunOS /usr/etc/install
   11582 # IRIX /sbin/install
   11583 # AIX /bin/install
   11584 # AmigaOS /C/install, which installs bootblocks on floppy discs
   11585 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   11586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   11587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   11588 # OS/2's system install, which has a completely different semantic
   11589 # ./install, which can be erroneously created by make from ./install.sh.
   11590 # Reject install programs that cannot install multiple files.
   11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   11592 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   11593 if test -z "$INSTALL"; then
   11594 if ${ac_cv_path_install+:} false; then :
   11595   $as_echo_n "(cached) " >&6
   11596 else
   11597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11598 for as_dir in $PATH
   11599 do
   11600   IFS=$as_save_IFS
   11601   test -z "$as_dir" && as_dir=.
   11602     # Account for people who put trailing slashes in PATH elements.
   11603 case $as_dir/ in #((
   11604   ./ | .// | /[cC]/* | \
   11605   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   11606   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   11607   /usr/ucb/* ) ;;
   11608   *)
   11609     # OSF1 and SCO ODT 3.0 have their own names for install.
   11610     # Don't use installbsd from OSF since it installs stuff as root
   11611     # by default.
   11612     for ac_prog in ginstall scoinst install; do
   11613       for ac_exec_ext in '' $ac_executable_extensions; do
   11614 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   11615 	  if test $ac_prog = install &&
   11616 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11617 	    # AIX install.  It has an incompatible calling convention.
   11618 	    :
   11619 	  elif test $ac_prog = install &&
   11620 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11621 	    # program-specific install script used by HP pwplus--don't use.
   11622 	    :
   11623 	  else
   11624 	    rm -rf conftest.one conftest.two conftest.dir
   11625 	    echo one > conftest.one
   11626 	    echo two > conftest.two
   11627 	    mkdir conftest.dir
   11628 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   11629 	      test -s conftest.one && test -s conftest.two &&
   11630 	      test -s conftest.dir/conftest.one &&
   11631 	      test -s conftest.dir/conftest.two
   11632 	    then
   11633 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   11634 	      break 3
   11635 	    fi
   11636 	  fi
   11637 	fi
   11638       done
   11639     done
   11640     ;;
   11641 esac
   11642 
   11643   done
   11644 IFS=$as_save_IFS
   11645 
   11646 rm -rf conftest.one conftest.two conftest.dir
   11647 
   11648 fi
   11649   if test "${ac_cv_path_install+set}" = set; then
   11650     INSTALL=$ac_cv_path_install
   11651   else
   11652     # As a last resort, use the slow shell script.  Don't cache a
   11653     # value for INSTALL within a source directory, because that will
   11654     # break other packages using the cache if that directory is
   11655     # removed, or if the value is a relative name.
   11656     INSTALL=$ac_install_sh
   11657   fi
   11658 fi
   11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   11660 $as_echo "$INSTALL" >&6; }
   11661 
   11662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   11663 # It thinks the first close brace ends the variable substitution.
   11664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   11665 
   11666 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   11667 
   11668 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   11669 
   11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   11671 $as_echo_n "checking whether ln -s works... " >&6; }
   11672 LN_S=$as_ln_s
   11673 if test "$LN_S" = "ln -s"; then
   11674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11675 $as_echo "yes" >&6; }
   11676 else
   11677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   11678 $as_echo "no, using $LN_S" >&6; }
   11679 fi
   11680 
   11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
   11682 $as_echo_n "checking for a POSIX-compatible shell... " >&6; }
   11683 if ${ac_cv_prog_shell+:} false; then :
   11684   $as_echo_n "(cached) " >&6
   11685 else
   11686   ac_test_shell_script='
   11687 			  test "$(expr 1 + 1)" = "2" &&
   11688 			  test "$(( 1 + 1 ))" = "2"
   11689 			  '
   11690 
   11691 			  for ac_cv_prog_shell in \
   11692 			    "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
   11693 			    case $ac_cv_prog_shell in #(
   11694   /*) :
   11695 
   11696 				      if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null; then :
   11697   break
   11698 fi
   11699 				     ;; #(
   11700   *) :
   11701      ;;
   11702 esac
   11703 			  done
   11704 
   11705 fi
   11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
   11707 $as_echo "$ac_cv_prog_shell" >&6; }
   11708 	  if test "$ac_cv_prog_shell" = "no"; then :
   11709   SHELL=/bin/sh
   11710 		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
   11711 $as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
   11712 
   11713 else
   11714   SHELL="$ac_cv_prog_shell"
   11715 
   11716 fi
   11717 
   11718 
   11719 
   11720 
   11721 
   11722 
   11723 
   11724 
   11725 
   11726 
   11727 #
   11728 # Use pkg-config
   11729 #
   11730 
   11731 
   11732 
   11733 
   11734 
   11735 
   11736 
   11737 
   11738 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   11739 	if test -n "$ac_tool_prefix"; then
   11740   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   11741 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11743 $as_echo_n "checking for $ac_word... " >&6; }
   11744 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   11745   $as_echo_n "(cached) " >&6
   11746 else
   11747   case $PKG_CONFIG in
   11748   [\\/]* | ?:[\\/]*)
   11749   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   11750   ;;
   11751   *)
   11752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11753 for as_dir in $PATH
   11754 do
   11755   IFS=$as_save_IFS
   11756   test -z "$as_dir" && as_dir=.
   11757     for ac_exec_ext in '' $ac_executable_extensions; do
   11758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11759     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   11760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11761     break 2
   11762   fi
   11763 done
   11764   done
   11765 IFS=$as_save_IFS
   11766 
   11767   ;;
   11768 esac
   11769 fi
   11770 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   11771 if test -n "$PKG_CONFIG"; then
   11772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   11773 $as_echo "$PKG_CONFIG" >&6; }
   11774 else
   11775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11776 $as_echo "no" >&6; }
   11777 fi
   11778 
   11779 
   11780 fi
   11781 if test -z "$ac_cv_path_PKG_CONFIG"; then
   11782   ac_pt_PKG_CONFIG=$PKG_CONFIG
   11783   # Extract the first word of "pkg-config", so it can be a program name with args.
   11784 set dummy pkg-config; ac_word=$2
   11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11786 $as_echo_n "checking for $ac_word... " >&6; }
   11787 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   11788   $as_echo_n "(cached) " >&6
   11789 else
   11790   case $ac_pt_PKG_CONFIG in
   11791   [\\/]* | ?:[\\/]*)
   11792   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   11793   ;;
   11794   *)
   11795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11796 for as_dir in $PATH
   11797 do
   11798   IFS=$as_save_IFS
   11799   test -z "$as_dir" && as_dir=.
   11800     for ac_exec_ext in '' $ac_executable_extensions; do
   11801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11802     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   11803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11804     break 2
   11805   fi
   11806 done
   11807   done
   11808 IFS=$as_save_IFS
   11809 
   11810   ;;
   11811 esac
   11812 fi
   11813 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   11814 if test -n "$ac_pt_PKG_CONFIG"; then
   11815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   11816 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   11817 else
   11818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11819 $as_echo "no" >&6; }
   11820 fi
   11821 
   11822   if test "x$ac_pt_PKG_CONFIG" = x; then
   11823     PKG_CONFIG=""
   11824   else
   11825     case $cross_compiling:$ac_tool_warned in
   11826 yes:)
   11827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   11828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   11829 ac_tool_warned=yes ;;
   11830 esac
   11831     PKG_CONFIG=$ac_pt_PKG_CONFIG
   11832   fi
   11833 else
   11834   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   11835 fi
   11836 
   11837 fi
   11838 if test -n "$PKG_CONFIG"; then
   11839 	_pkg_min_version=0.9.0
   11840 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   11841 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   11842 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   11843 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11844 $as_echo "yes" >&6; }
   11845 	else
   11846 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11847 $as_echo "no" >&6; }
   11848 		PKG_CONFIG=""
   11849 	fi
   11850 fi
   11851 
   11852 # Warn if the user specified libbind, which is now deprecated
   11853 # Check whether --enable-libbind was given.
   11854 if test "${enable_libbind+set}" = set; then :
   11855   enableval=$enable_libbind;
   11856 fi
   11857 
   11858 
   11859 case "$enable_libbind" in
   11860 	yes)
   11861 		as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution.
   11862 It is available from http://www.isc.org as a separate download." "$LINENO" 5
   11863 		;;
   11864 	no|'')
   11865 		;;
   11866 esac
   11867 
   11868 # Check whether --enable-buffer_useinline was given.
   11869 if test "${enable_buffer_useinline+set}" = set; then :
   11870   enableval=$enable_buffer_useinline; if test yes = "${enable}"
   11871 	      then
   11872 
   11873 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   11874 
   11875 	      fi
   11876 else
   11877   $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   11878 
   11879 fi
   11880 
   11881 
   11882 # Check whether --enable-warn_shadow was given.
   11883 if test "${enable_warn_shadow+set}" = set; then :
   11884   enableval=$enable_warn_shadow;
   11885 fi
   11886 
   11887 
   11888 # Check whether --enable-warn_error was given.
   11889 if test "${enable_warn_error+set}" = set; then :
   11890   enableval=$enable_warn_error;
   11891 fi
   11892 
   11893 
   11894 # Check whether --enable-developer was given.
   11895 if test "${enable_developer+set}" = set; then :
   11896   enableval=$enable_developer;
   11897 fi
   11898 
   11899 XTARGETS=
   11900 case "$enable_developer" in
   11901 yes)
   11902 	STD_CDEFINES="$STD_CDEFINES -DISC_MEM_DEFAULTFILL=1 -DISC_LIST_CHECKINIT=1"
   11903 	test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
   11904 	test "${enable_querytrace+set}" = set || enable_querytrace=yes
   11905 	test "${with_cmocka+set}" = set || with_cmocka=yes
   11906 	test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
   11907 	test "${enable_symtable+set}" = set || enable_symtable=all
   11908 	test "${enable_warn_error+set}" = set || enable_warn_error=yes
   11909 	test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
   11910 	test "${with_zlib+set}" = set || with_zlib=yes
   11911 	XTARGETS='${XTARGETS}'
   11912 	;;
   11913 esac
   11914 
   11915 
   11916 # Check whether --enable-fuzzing was given.
   11917 if test "${enable_fuzzing+set}" = set; then :
   11918   enableval=$enable_fuzzing;
   11919 else
   11920   enable_fuzzing=no
   11921 fi
   11922 
   11923 
   11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
   11925 $as_echo_n "checking whether to enable fuzzing mode... " >&6; }
   11926 case $enable_fuzzing in #(
   11927   no) :
   11928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11929 $as_echo "no" >&6; } ;; #(
   11930   afl) :
   11931 
   11932 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
   11933 $as_echo "using AFL" >&6; }
   11934 
   11935 $as_echo "#define ENABLE_AFL 1" >>confdefs.h
   11936 
   11937 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
   11938 	  LIBS="$LIBS -lpthread" ;; #(
   11939   libfuzzer) :
   11940 
   11941 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
   11942 $as_echo "using libFuzzer" >&6; }
   11943 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer,address,undefined"
   11944 	  LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address,undefined" ;; #(
   11945   *) :
   11946     as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
   11947   *) :
   11948      ;;
   11949 esac
   11950 
   11951 if test "$enable_fuzzing" = "afl"; then :
   11952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
   11953 $as_echo_n "checking \"for AFL enabled compiler\"... " >&6; }
   11954        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11955 /* end confdefs.h.  */
   11956 
   11957 int
   11958 main ()
   11959 {
   11960 #ifndef __AFL_COMPILER
   11961 					   #error AFL compiler required
   11962 					   #endif
   11963 
   11964   ;
   11965   return 0;
   11966 }
   11967 _ACEOF
   11968 if ac_fn_c_try_compile "$LINENO"; then :
   11969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11970 $as_echo "yes" >&6; }
   11971 else
   11972   as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
   11973 fi
   11974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11975 
   11976 fi
   11977 
   11978 #
   11979 # Make very sure that these are the first files processed by
   11980 # config.status, since we use the processed output as the input for
   11981 # AC_SUBST_FILE() substitutions in other files.
   11982 #
   11983 ac_config_files="$ac_config_files make/rules make/includes"
   11984 
   11985 
   11986 # Extract the first word of "ar", so it can be a program name with args.
   11987 set dummy ar; ac_word=$2
   11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11989 $as_echo_n "checking for $ac_word... " >&6; }
   11990 if ${ac_cv_path_AR+:} false; then :
   11991   $as_echo_n "(cached) " >&6
   11992 else
   11993   case $AR in
   11994   [\\/]* | ?:[\\/]*)
   11995   ac_cv_path_AR="$AR" # Let the user override the test with a path.
   11996   ;;
   11997   *)
   11998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11999 for as_dir in $PATH
   12000 do
   12001   IFS=$as_save_IFS
   12002   test -z "$as_dir" && as_dir=.
   12003     for ac_exec_ext in '' $ac_executable_extensions; do
   12004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12005     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
   12006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12007     break 2
   12008   fi
   12009 done
   12010   done
   12011 IFS=$as_save_IFS
   12012 
   12013   ;;
   12014 esac
   12015 fi
   12016 AR=$ac_cv_path_AR
   12017 if test -n "$AR"; then
   12018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12019 $as_echo "$AR" >&6; }
   12020 else
   12021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12022 $as_echo "no" >&6; }
   12023 fi
   12024 
   12025 
   12026 ARFLAGS="cruv"
   12027 
   12028 
   12029 
   12030 # The POSIX ln(1) program.  Non-POSIX systems may substitute
   12031 # "copy" or something.
   12032 LN=ln
   12033 
   12034 
   12035 case "$AR" in
   12036 	"")
   12037 		as_fn_error $? "
   12038 ar program not found.  Please fix your PATH to include the directory in
   12039 which ar resides, or set AR in the environment with the full path to ar.
   12040 " "$LINENO" 5
   12041 
   12042 		;;
   12043 esac
   12044 
   12045 #
   12046 # Etags.
   12047 #
   12048 for ac_prog in etags emacs-etags
   12049 do
   12050   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12051 set dummy $ac_prog; ac_word=$2
   12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12053 $as_echo_n "checking for $ac_word... " >&6; }
   12054 if ${ac_cv_path_ETAGS+:} false; then :
   12055   $as_echo_n "(cached) " >&6
   12056 else
   12057   case $ETAGS in
   12058   [\\/]* | ?:[\\/]*)
   12059   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
   12060   ;;
   12061   *)
   12062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12063 for as_dir in $PATH
   12064 do
   12065   IFS=$as_save_IFS
   12066   test -z "$as_dir" && as_dir=.
   12067     for ac_exec_ext in '' $ac_executable_extensions; do
   12068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12069     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
   12070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12071     break 2
   12072   fi
   12073 done
   12074   done
   12075 IFS=$as_save_IFS
   12076 
   12077   ;;
   12078 esac
   12079 fi
   12080 ETAGS=$ac_cv_path_ETAGS
   12081 if test -n "$ETAGS"; then
   12082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
   12083 $as_echo "$ETAGS" >&6; }
   12084 else
   12085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12086 $as_echo "no" >&6; }
   12087 fi
   12088 
   12089 
   12090   test -n "$ETAGS" && break
   12091 done
   12092 
   12093 
   12094 #
   12095 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
   12096 # GNU emacs etags, and it requires the -L flag.
   12097 #
   12098 if test "X$ETAGS" != "X"; then
   12099 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5
   12100 $as_echo_n "checking for Exuberant Ctags etags... " >&6; }
   12101 	if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
   12102 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12103 $as_echo "yes" >&6; }
   12104 		ETAGS="$ETAGS -L"
   12105 	else
   12106 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12107 $as_echo "no" >&6; }
   12108 	fi
   12109 fi
   12110 
   12111 
   12112 #
   12113 # Perl is optional; it is used only by some of the system test scripts.
   12114 # Note: the backtrace feature (see below) uses perl to build the symbol table,
   12115 # but it still compiles without perl, in which case an empty table will be used.
   12116 #
   12117 for ac_prog in perl5 perl
   12118 do
   12119   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12120 set dummy $ac_prog; ac_word=$2
   12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12122 $as_echo_n "checking for $ac_word... " >&6; }
   12123 if ${ac_cv_path_PERL+:} false; then :
   12124   $as_echo_n "(cached) " >&6
   12125 else
   12126   case $PERL in
   12127   [\\/]* | ?:[\\/]*)
   12128   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
   12129   ;;
   12130   *)
   12131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12132 for as_dir in $PATH
   12133 do
   12134   IFS=$as_save_IFS
   12135   test -z "$as_dir" && as_dir=.
   12136     for ac_exec_ext in '' $ac_executable_extensions; do
   12137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12138     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
   12139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12140     break 2
   12141   fi
   12142 done
   12143   done
   12144 IFS=$as_save_IFS
   12145 
   12146   ;;
   12147 esac
   12148 fi
   12149 PERL=$ac_cv_path_PERL
   12150 if test -n "$PERL"; then
   12151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
   12152 $as_echo "$PERL" >&6; }
   12153 else
   12154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12155 $as_echo "no" >&6; }
   12156 fi
   12157 
   12158 
   12159   test -n "$PERL" && break
   12160 done
   12161 
   12162 
   12163 
   12164 #
   12165 # Python is also optional but required by default so that dnssec-keymgr gets
   12166 # installed unless explicitly prevented by the user using --without-python.
   12167 #
   12168 testminvers='import sys
   12169 if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
   12170    exit(1)'
   12171 
   12172 testargparse='try: import argparse
   12173 except: exit(1)'
   12174 
   12175 testply='try: import ply
   12176 except: exit(1)'
   12177 
   12178 default_with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
   12179 
   12180 
   12181 # Check whether --with-python was given.
   12182 if test "${with_python+set}" = set; then :
   12183   withval=$with_python;
   12184 else
   12185   with_python=$default_with_python
   12186 fi
   12187 
   12188 
   12189 # Check whether --with-python-install-dir was given.
   12190 if test "${with_python_install_dir+set}" = set; then :
   12191   withval=$with_python_install_dir;
   12192 else
   12193   with_python_install_dir=""
   12194 fi
   12195 
   12196 
   12197 if test "$with_python" = "yes"; then :
   12198   with_python=$default_with_python
   12199 fi
   12200 
   12201 if test "$with_python" = "no"; then :
   12202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12203 $as_echo_n "checking for Python support... " >&6; }
   12204        { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   12205 $as_echo "disabled" >&6; }
   12206 else
   12207   for p in $with_python
   12208        do
   12209 	 case $p in #(
   12210   /*) :
   12211     PYTHON="$p" ;; #(
   12212   *) :
   12213      ;;
   12214 esac
   12215 
   12216 	 # Extract the first word of "$p", so it can be a program name with args.
   12217 set dummy $p; ac_word=$2
   12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12219 $as_echo_n "checking for $ac_word... " >&6; }
   12220 if ${ac_cv_path_PYTHON+:} false; then :
   12221   $as_echo_n "(cached) " >&6
   12222 else
   12223   case $PYTHON in
   12224   [\\/]* | ?:[\\/]*)
   12225   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
   12226   ;;
   12227   *)
   12228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12229 for as_dir in $PATH
   12230 do
   12231   IFS=$as_save_IFS
   12232   test -z "$as_dir" && as_dir=.
   12233     for ac_exec_ext in '' $ac_executable_extensions; do
   12234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12235     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
   12236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12237     break 2
   12238   fi
   12239 done
   12240   done
   12241 IFS=$as_save_IFS
   12242 
   12243   ;;
   12244 esac
   12245 fi
   12246 PYTHON=$ac_cv_path_PYTHON
   12247 if test -n "$PYTHON"; then
   12248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
   12249 $as_echo "$PYTHON" >&6; }
   12250 else
   12251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12252 $as_echo "no" >&6; }
   12253 fi
   12254 
   12255 
   12256 	 # Do not cache the result of the check from the previous line.  If the
   12257 	 # first found Python interpreter has missing module dependencies and
   12258 	 # the result of the above check is cached, subsequent module checks
   12259 	 # will erroneously keep on using the cached path to the first found
   12260 	 # Python interpreter instead of different ones.
   12261 	 unset ac_cv_path_PYTHON
   12262 
   12263 	 if test -z "$PYTHON"; then :
   12264   continue
   12265 fi
   12266 
   12267 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5
   12268 $as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
   12269 	 if "$PYTHON" -c "$testminvers" 2>/dev/null; then :
   12270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12271 $as_echo "yes" >&6; }
   12272 else
   12273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12274 $as_echo "no" >&6; }
   12275 		unset PYTHON
   12276 		continue
   12277 fi
   12278 
   12279 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5
   12280 $as_echo_n "checking Python module 'argparse'... " >&6; }
   12281 	 if "$PYTHON" -c "$testargparse" 2>/dev/null; then :
   12282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12283 $as_echo "yes" >&6; }
   12284 else
   12285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12286 $as_echo "no" >&6; }
   12287 		unset PYTHON
   12288 		continue
   12289 fi
   12290 
   12291 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5
   12292 $as_echo_n "checking Python module 'ply'... " >&6; }
   12293 	 if "$PYTHON" -c "$testply" 2>/dev/null; then :
   12294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12295 $as_echo "yes" >&6; }
   12296 else
   12297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12298 $as_echo "no" >&6; }
   12299 		unset PYTHON
   12300 		continue
   12301 fi
   12302 
   12303 	 # Stop looking any further once we find a Python interpreter
   12304 	 # satisfying all requirements.
   12305 	 break
   12306        done
   12307 
   12308        if test "X$PYTHON" = "X"; then :
   12309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12310 $as_echo_n "checking for Python support... " >&6; }
   12311 	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12312 $as_echo "no" >&6; }
   12313 	      as_fn_error $? "Python required for dnssec-keymgr" "$LINENO" 5
   12314 fi
   12315 fi
   12316 
   12317 PYTHON_TOOLS=''
   12318 CHECKDS=''
   12319 COVERAGE=''
   12320 KEYMGR=''
   12321 if test "X$PYTHON" != "X"; then :
   12322   PYTHON_TOOLS=python
   12323        CHECKDS=checkds
   12324        COVERAGE=coverage
   12325        KEYMGR=keymgr
   12326        PYTHON_INSTALL_DIR="$with_python_install_dir"
   12327        if test -n "$with_python_install_dir"; then :
   12328   PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir"
   12329 fi
   12330 fi
   12331 
   12332 
   12333 
   12334 
   12335 
   12336 
   12337 
   12338 #
   12339 # Special processing of paths depending on whether --prefix,
   12340 # --sysconfdir or --localstatedir arguments were given.  What's
   12341 # desired is some compatibility with the way previous versions
   12342 # of BIND built; they defaulted to /usr/local for most parts of
   12343 # the installation, but named.boot/named.conf was in /etc
   12344 # and named.pid was in /var/run.
   12345 #
   12346 # So ... if none of --prefix, --sysconfdir or --localstatedir are
   12347 # specified, set things up that way.  If --prefix is given, use
   12348 # it for sysconfdir and localstatedir the way configure normally
   12349 # would.  To change the prefix for everything but leave named.conf
   12350 # in /etc or named.pid in /var/run, then do this the usual configure way:
   12351 # ./configure --prefix=/somewhere --sysconfdir=/etc
   12352 # ./configure --prefix=/somewhere --localstatedir=/var
   12353 #
   12354 # To put named.conf and named.pid in /usr/local with everything else,
   12355 # set the prefix explicitly to /usr/local even though that's the default:
   12356 # ./configure --prefix=/usr/local
   12357 #
   12358 case "$prefix" in
   12359 	NONE)
   12360 		case "$sysconfdir" in
   12361 			'${prefix}/etc')
   12362 				sysconfdir=/etc
   12363 				;;
   12364 		esac
   12365 		case "$localstatedir" in
   12366 			'${prefix}/var')
   12367 				localstatedir=/var
   12368 				;;
   12369 		esac
   12370 		;;
   12371 esac
   12372 expanded_sysconfdir=`eval echo $sysconfdir`
   12373 
   12374 
   12375 #
   12376 # Make sure INSTALL uses an absolute path, else it will be wrong in all
   12377 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
   12378 # configure based on the location of the file where it is substituted.
   12379 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
   12380 # subdirectory of install-sh, This relative path will be wrong for all
   12381 # directories more than one level down from install-sh.
   12382 #
   12383 case "$INSTALL" in
   12384 	/*)
   12385 		;;
   12386 	*)
   12387 		#
   12388 		# Not all systems have dirname.
   12389 		#
   12390 
   12391 		ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
   12392 
   12393 
   12394 		ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
   12395 		test "X$ac_dir" = "X$ac_prog" && ac_dir=.
   12396 		test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
   12397 		INSTALL="$ac_dir/$ac_prog"
   12398 		;;
   12399 esac
   12400 
   12401 ac_ext=c
   12402 ac_cpp='$CPP $CPPFLAGS'
   12403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12406 if test -n "$ac_tool_prefix"; then
   12407   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   12408 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12410 $as_echo_n "checking for $ac_word... " >&6; }
   12411 if ${ac_cv_prog_CC+:} false; then :
   12412   $as_echo_n "(cached) " >&6
   12413 else
   12414   if test -n "$CC"; then
   12415   ac_cv_prog_CC="$CC" # Let the user override the test.
   12416 else
   12417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12418 for as_dir in $PATH
   12419 do
   12420   IFS=$as_save_IFS
   12421   test -z "$as_dir" && as_dir=.
   12422     for ac_exec_ext in '' $ac_executable_extensions; do
   12423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12424     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   12425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12426     break 2
   12427   fi
   12428 done
   12429   done
   12430 IFS=$as_save_IFS
   12431 
   12432 fi
   12433 fi
   12434 CC=$ac_cv_prog_CC
   12435 if test -n "$CC"; then
   12436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12437 $as_echo "$CC" >&6; }
   12438 else
   12439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12440 $as_echo "no" >&6; }
   12441 fi
   12442 
   12443 
   12444 fi
   12445 if test -z "$ac_cv_prog_CC"; then
   12446   ac_ct_CC=$CC
   12447   # Extract the first word of "gcc", so it can be a program name with args.
   12448 set dummy gcc; ac_word=$2
   12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12450 $as_echo_n "checking for $ac_word... " >&6; }
   12451 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   12452   $as_echo_n "(cached) " >&6
   12453 else
   12454   if test -n "$ac_ct_CC"; then
   12455   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   12456 else
   12457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12458 for as_dir in $PATH
   12459 do
   12460   IFS=$as_save_IFS
   12461   test -z "$as_dir" && as_dir=.
   12462     for ac_exec_ext in '' $ac_executable_extensions; do
   12463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12464     ac_cv_prog_ac_ct_CC="gcc"
   12465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12466     break 2
   12467   fi
   12468 done
   12469   done
   12470 IFS=$as_save_IFS
   12471 
   12472 fi
   12473 fi
   12474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   12475 if test -n "$ac_ct_CC"; then
   12476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   12477 $as_echo "$ac_ct_CC" >&6; }
   12478 else
   12479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12480 $as_echo "no" >&6; }
   12481 fi
   12482 
   12483   if test "x$ac_ct_CC" = x; then
   12484     CC=""
   12485   else
   12486     case $cross_compiling:$ac_tool_warned in
   12487 yes:)
   12488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12490 ac_tool_warned=yes ;;
   12491 esac
   12492     CC=$ac_ct_CC
   12493   fi
   12494 else
   12495   CC="$ac_cv_prog_CC"
   12496 fi
   12497 
   12498 if test -z "$CC"; then
   12499           if test -n "$ac_tool_prefix"; then
   12500     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   12501 set dummy ${ac_tool_prefix}cc; ac_word=$2
   12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12503 $as_echo_n "checking for $ac_word... " >&6; }
   12504 if ${ac_cv_prog_CC+:} false; then :
   12505   $as_echo_n "(cached) " >&6
   12506 else
   12507   if test -n "$CC"; then
   12508   ac_cv_prog_CC="$CC" # Let the user override the test.
   12509 else
   12510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12511 for as_dir in $PATH
   12512 do
   12513   IFS=$as_save_IFS
   12514   test -z "$as_dir" && as_dir=.
   12515     for ac_exec_ext in '' $ac_executable_extensions; do
   12516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12517     ac_cv_prog_CC="${ac_tool_prefix}cc"
   12518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12519     break 2
   12520   fi
   12521 done
   12522   done
   12523 IFS=$as_save_IFS
   12524 
   12525 fi
   12526 fi
   12527 CC=$ac_cv_prog_CC
   12528 if test -n "$CC"; then
   12529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12530 $as_echo "$CC" >&6; }
   12531 else
   12532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12533 $as_echo "no" >&6; }
   12534 fi
   12535 
   12536 
   12537   fi
   12538 fi
   12539 if test -z "$CC"; then
   12540   # Extract the first word of "cc", so it can be a program name with args.
   12541 set dummy cc; ac_word=$2
   12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12543 $as_echo_n "checking for $ac_word... " >&6; }
   12544 if ${ac_cv_prog_CC+:} false; then :
   12545   $as_echo_n "(cached) " >&6
   12546 else
   12547   if test -n "$CC"; then
   12548   ac_cv_prog_CC="$CC" # Let the user override the test.
   12549 else
   12550   ac_prog_rejected=no
   12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12552 for as_dir in $PATH
   12553 do
   12554   IFS=$as_save_IFS
   12555   test -z "$as_dir" && as_dir=.
   12556     for ac_exec_ext in '' $ac_executable_extensions; do
   12557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12558     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   12559        ac_prog_rejected=yes
   12560        continue
   12561      fi
   12562     ac_cv_prog_CC="cc"
   12563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12564     break 2
   12565   fi
   12566 done
   12567   done
   12568 IFS=$as_save_IFS
   12569 
   12570 if test $ac_prog_rejected = yes; then
   12571   # We found a bogon in the path, so make sure we never use it.
   12572   set dummy $ac_cv_prog_CC
   12573   shift
   12574   if test $# != 0; then
   12575     # We chose a different compiler from the bogus one.
   12576     # However, it has the same basename, so the bogon will be chosen
   12577     # first if we set CC to just the basename; use the full file name.
   12578     shift
   12579     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   12580   fi
   12581 fi
   12582 fi
   12583 fi
   12584 CC=$ac_cv_prog_CC
   12585 if test -n "$CC"; then
   12586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12587 $as_echo "$CC" >&6; }
   12588 else
   12589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12590 $as_echo "no" >&6; }
   12591 fi
   12592 
   12593 
   12594 fi
   12595 if test -z "$CC"; then
   12596   if test -n "$ac_tool_prefix"; then
   12597   for ac_prog in cl.exe
   12598   do
   12599     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   12600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12602 $as_echo_n "checking for $ac_word... " >&6; }
   12603 if ${ac_cv_prog_CC+:} false; then :
   12604   $as_echo_n "(cached) " >&6
   12605 else
   12606   if test -n "$CC"; then
   12607   ac_cv_prog_CC="$CC" # Let the user override the test.
   12608 else
   12609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12610 for as_dir in $PATH
   12611 do
   12612   IFS=$as_save_IFS
   12613   test -z "$as_dir" && as_dir=.
   12614     for ac_exec_ext in '' $ac_executable_extensions; do
   12615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12616     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   12617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12618     break 2
   12619   fi
   12620 done
   12621   done
   12622 IFS=$as_save_IFS
   12623 
   12624 fi
   12625 fi
   12626 CC=$ac_cv_prog_CC
   12627 if test -n "$CC"; then
   12628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12629 $as_echo "$CC" >&6; }
   12630 else
   12631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12632 $as_echo "no" >&6; }
   12633 fi
   12634 
   12635 
   12636     test -n "$CC" && break
   12637   done
   12638 fi
   12639 if test -z "$CC"; then
   12640   ac_ct_CC=$CC
   12641   for ac_prog in cl.exe
   12642 do
   12643   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12644 set dummy $ac_prog; ac_word=$2
   12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12646 $as_echo_n "checking for $ac_word... " >&6; }
   12647 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   12648   $as_echo_n "(cached) " >&6
   12649 else
   12650   if test -n "$ac_ct_CC"; then
   12651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   12652 else
   12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12654 for as_dir in $PATH
   12655 do
   12656   IFS=$as_save_IFS
   12657   test -z "$as_dir" && as_dir=.
   12658     for ac_exec_ext in '' $ac_executable_extensions; do
   12659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12660     ac_cv_prog_ac_ct_CC="$ac_prog"
   12661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12662     break 2
   12663   fi
   12664 done
   12665   done
   12666 IFS=$as_save_IFS
   12667 
   12668 fi
   12669 fi
   12670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   12671 if test -n "$ac_ct_CC"; then
   12672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   12673 $as_echo "$ac_ct_CC" >&6; }
   12674 else
   12675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12676 $as_echo "no" >&6; }
   12677 fi
   12678 
   12679 
   12680   test -n "$ac_ct_CC" && break
   12681 done
   12682 
   12683   if test "x$ac_ct_CC" = x; then
   12684     CC=""
   12685   else
   12686     case $cross_compiling:$ac_tool_warned in
   12687 yes:)
   12688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12690 ac_tool_warned=yes ;;
   12691 esac
   12692     CC=$ac_ct_CC
   12693   fi
   12694 fi
   12695 
   12696 fi
   12697 
   12698 
   12699 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   12700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   12701 as_fn_error $? "no acceptable C compiler found in \$PATH
   12702 See \`config.log' for more details" "$LINENO" 5; }
   12703 
   12704 # Provide some information about the compiler.
   12705 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   12706 set X $ac_compile
   12707 ac_compiler=$2
   12708 for ac_option in --version -v -V -qversion; do
   12709   { { ac_try="$ac_compiler $ac_option >&5"
   12710 case "(($ac_try" in
   12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12712   *) ac_try_echo=$ac_try;;
   12713 esac
   12714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   12715 $as_echo "$ac_try_echo"; } >&5
   12716   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   12717   ac_status=$?
   12718   if test -s conftest.err; then
   12719     sed '10a\
   12720 ... rest of stderr output deleted ...
   12721          10q' conftest.err >conftest.er1
   12722     cat conftest.er1 >&5
   12723   fi
   12724   rm -f conftest.er1 conftest.err
   12725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12726   test $ac_status = 0; }
   12727 done
   12728 
   12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   12730 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   12731 if ${ac_cv_c_compiler_gnu+:} false; then :
   12732   $as_echo_n "(cached) " >&6
   12733 else
   12734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12735 /* end confdefs.h.  */
   12736 
   12737 int
   12738 main ()
   12739 {
   12740 #ifndef __GNUC__
   12741        choke me
   12742 #endif
   12743 
   12744   ;
   12745   return 0;
   12746 }
   12747 _ACEOF
   12748 if ac_fn_c_try_compile "$LINENO"; then :
   12749   ac_compiler_gnu=yes
   12750 else
   12751   ac_compiler_gnu=no
   12752 fi
   12753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   12755 
   12756 fi
   12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   12758 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   12759 if test $ac_compiler_gnu = yes; then
   12760   GCC=yes
   12761 else
   12762   GCC=
   12763 fi
   12764 ac_test_CFLAGS=${CFLAGS+set}
   12765 ac_save_CFLAGS=$CFLAGS
   12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   12767 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   12768 if ${ac_cv_prog_cc_g+:} false; then :
   12769   $as_echo_n "(cached) " >&6
   12770 else
   12771   ac_save_c_werror_flag=$ac_c_werror_flag
   12772    ac_c_werror_flag=yes
   12773    ac_cv_prog_cc_g=no
   12774    CFLAGS="-g"
   12775    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12776 /* end confdefs.h.  */
   12777 
   12778 int
   12779 main ()
   12780 {
   12781 
   12782   ;
   12783   return 0;
   12784 }
   12785 _ACEOF
   12786 if ac_fn_c_try_compile "$LINENO"; then :
   12787   ac_cv_prog_cc_g=yes
   12788 else
   12789   CFLAGS=""
   12790       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12791 /* end confdefs.h.  */
   12792 
   12793 int
   12794 main ()
   12795 {
   12796 
   12797   ;
   12798   return 0;
   12799 }
   12800 _ACEOF
   12801 if ac_fn_c_try_compile "$LINENO"; then :
   12802 
   12803 else
   12804   ac_c_werror_flag=$ac_save_c_werror_flag
   12805 	 CFLAGS="-g"
   12806 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12807 /* end confdefs.h.  */
   12808 
   12809 int
   12810 main ()
   12811 {
   12812 
   12813   ;
   12814   return 0;
   12815 }
   12816 _ACEOF
   12817 if ac_fn_c_try_compile "$LINENO"; then :
   12818   ac_cv_prog_cc_g=yes
   12819 fi
   12820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12821 fi
   12822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12823 fi
   12824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12825    ac_c_werror_flag=$ac_save_c_werror_flag
   12826 fi
   12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   12828 $as_echo "$ac_cv_prog_cc_g" >&6; }
   12829 if test "$ac_test_CFLAGS" = set; then
   12830   CFLAGS=$ac_save_CFLAGS
   12831 elif test $ac_cv_prog_cc_g = yes; then
   12832   if test "$GCC" = yes; then
   12833     CFLAGS="-g -O2"
   12834   else
   12835     CFLAGS="-g"
   12836   fi
   12837 else
   12838   if test "$GCC" = yes; then
   12839     CFLAGS="-O2"
   12840   else
   12841     CFLAGS=
   12842   fi
   12843 fi
   12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   12845 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   12846 if ${ac_cv_prog_cc_c89+:} false; then :
   12847   $as_echo_n "(cached) " >&6
   12848 else
   12849   ac_cv_prog_cc_c89=no
   12850 ac_save_CC=$CC
   12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12852 /* end confdefs.h.  */
   12853 #include <stdarg.h>
   12854 #include <stdio.h>
   12855 struct stat;
   12856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   12857 struct buf { int x; };
   12858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   12859 static char *e (p, i)
   12860      char **p;
   12861      int i;
   12862 {
   12863   return p[i];
   12864 }
   12865 static char *f (char * (*g) (char **, int), char **p, ...)
   12866 {
   12867   char *s;
   12868   va_list v;
   12869   va_start (v,p);
   12870   s = g (p, va_arg (v,int));
   12871   va_end (v);
   12872   return s;
   12873 }
   12874 
   12875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   12876    function prototypes and stuff, but not '\xHH' hex character constants.
   12877    These don't provoke an error unfortunately, instead are silently treated
   12878    as 'x'.  The following induces an error, until -std is added to get
   12879    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   12880    array size at least.  It's necessary to write '\x00'==0 to get something
   12881    that's true only with -std.  */
   12882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   12883 
   12884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   12885    inside strings and character constants.  */
   12886 #define FOO(x) 'x'
   12887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   12888 
   12889 int test (int i, double x);
   12890 struct s1 {int (*f) (int a);};
   12891 struct s2 {int (*f) (double a);};
   12892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   12893 int argc;
   12894 char **argv;
   12895 int
   12896 main ()
   12897 {
   12898 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   12899   ;
   12900   return 0;
   12901 }
   12902 _ACEOF
   12903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   12904 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   12905 do
   12906   CC="$ac_save_CC $ac_arg"
   12907   if ac_fn_c_try_compile "$LINENO"; then :
   12908   ac_cv_prog_cc_c89=$ac_arg
   12909 fi
   12910 rm -f core conftest.err conftest.$ac_objext
   12911   test "x$ac_cv_prog_cc_c89" != "xno" && break
   12912 done
   12913 rm -f conftest.$ac_ext
   12914 CC=$ac_save_CC
   12915 
   12916 fi
   12917 # AC_CACHE_VAL
   12918 case "x$ac_cv_prog_cc_c89" in
   12919   x)
   12920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   12921 $as_echo "none needed" >&6; } ;;
   12922   xno)
   12923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   12924 $as_echo "unsupported" >&6; } ;;
   12925   *)
   12926     CC="$CC $ac_cv_prog_cc_c89"
   12927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   12928 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   12929 esac
   12930 if test "x$ac_cv_prog_cc_c89" != xno; then :
   12931 
   12932 fi
   12933 
   12934 ac_ext=c
   12935 ac_cpp='$CPP $CPPFLAGS'
   12936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12939 
   12940    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   12941 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   12942 if ${ac_cv_prog_cc_c99+:} false; then :
   12943   $as_echo_n "(cached) " >&6
   12944 else
   12945   ac_cv_prog_cc_c99=no
   12946 ac_save_CC=$CC
   12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12948 /* end confdefs.h.  */
   12949 #include <stdarg.h>
   12950 #include <stdbool.h>
   12951 #include <stdlib.h>
   12952 #include <wchar.h>
   12953 #include <stdio.h>
   12954 
   12955 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   12956 #define debug(...) fprintf (stderr, __VA_ARGS__)
   12957 #define showlist(...) puts (#__VA_ARGS__)
   12958 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   12959 static void
   12960 test_varargs_macros (void)
   12961 {
   12962   int x = 1234;
   12963   int y = 5678;
   12964   debug ("Flag");
   12965   debug ("X = %d\n", x);
   12966   showlist (The first, second, and third items.);
   12967   report (x>y, "x is %d but y is %d", x, y);
   12968 }
   12969 
   12970 // Check long long types.
   12971 #define BIG64 18446744073709551615ull
   12972 #define BIG32 4294967295ul
   12973 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   12974 #if !BIG_OK
   12975   your preprocessor is broken;
   12976 #endif
   12977 #if BIG_OK
   12978 #else
   12979   your preprocessor is broken;
   12980 #endif
   12981 static long long int bignum = -9223372036854775807LL;
   12982 static unsigned long long int ubignum = BIG64;
   12983 
   12984 struct incomplete_array
   12985 {
   12986   int datasize;
   12987   double data[];
   12988 };
   12989 
   12990 struct named_init {
   12991   int number;
   12992   const wchar_t *name;
   12993   double average;
   12994 };
   12995 
   12996 typedef const char *ccp;
   12997 
   12998 static inline int
   12999 test_restrict (ccp restrict text)
   13000 {
   13001   // See if C++-style comments work.
   13002   // Iterate through items via the restricted pointer.
   13003   // Also check for declarations in for loops.
   13004   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   13005     continue;
   13006   return 0;
   13007 }
   13008 
   13009 // Check varargs and va_copy.
   13010 static void
   13011 test_varargs (const char *format, ...)
   13012 {
   13013   va_list args;
   13014   va_start (args, format);
   13015   va_list args_copy;
   13016   va_copy (args_copy, args);
   13017 
   13018   const char *str;
   13019   int number;
   13020   float fnumber;
   13021 
   13022   while (*format)
   13023     {
   13024       switch (*format++)
   13025 	{
   13026 	case 's': // string
   13027 	  str = va_arg (args_copy, const char *);
   13028 	  break;
   13029 	case 'd': // int
   13030 	  number = va_arg (args_copy, int);
   13031 	  break;
   13032 	case 'f': // float
   13033 	  fnumber = va_arg (args_copy, double);
   13034 	  break;
   13035 	default:
   13036 	  break;
   13037 	}
   13038     }
   13039   va_end (args_copy);
   13040   va_end (args);
   13041 }
   13042 
   13043 int
   13044 main ()
   13045 {
   13046 
   13047   // Check bool.
   13048   _Bool success = false;
   13049 
   13050   // Check restrict.
   13051   if (test_restrict ("String literal") == 0)
   13052     success = true;
   13053   char *restrict newvar = "Another string";
   13054 
   13055   // Check varargs.
   13056   test_varargs ("s, d' f .", "string", 65, 34.234);
   13057   test_varargs_macros ();
   13058 
   13059   // Check flexible array members.
   13060   struct incomplete_array *ia =
   13061     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   13062   ia->datasize = 10;
   13063   for (int i = 0; i < ia->datasize; ++i)
   13064     ia->data[i] = i * 1.234;
   13065 
   13066   // Check named initializers.
   13067   struct named_init ni = {
   13068     .number = 34,
   13069     .name = L"Test wide string",
   13070     .average = 543.34343,
   13071   };
   13072 
   13073   ni.number = 58;
   13074 
   13075   int dynamic_array[ni.number];
   13076   dynamic_array[ni.number - 1] = 543;
   13077 
   13078   // work around unused variable warnings
   13079   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   13080 	  || dynamic_array[ni.number - 1] != 543);
   13081 
   13082   ;
   13083   return 0;
   13084 }
   13085 _ACEOF
   13086 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   13087 do
   13088   CC="$ac_save_CC $ac_arg"
   13089   if ac_fn_c_try_compile "$LINENO"; then :
   13090   ac_cv_prog_cc_c99=$ac_arg
   13091 fi
   13092 rm -f core conftest.err conftest.$ac_objext
   13093   test "x$ac_cv_prog_cc_c99" != "xno" && break
   13094 done
   13095 rm -f conftest.$ac_ext
   13096 CC=$ac_save_CC
   13097 
   13098 fi
   13099 # AC_CACHE_VAL
   13100 case "x$ac_cv_prog_cc_c99" in
   13101   x)
   13102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   13103 $as_echo "none needed" >&6; } ;;
   13104   xno)
   13105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   13106 $as_echo "unsupported" >&6; } ;;
   13107   *)
   13108     CC="$CC $ac_cv_prog_cc_c99"
   13109     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   13110 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   13111 esac
   13112 if test "x$ac_cv_prog_cc_c99" != xno; then :
   13113 
   13114 fi
   13115 
   13116 
   13117 
   13118 #
   13119 # CCNOOPT defaults to -O0 on gcc and disables optimization when is last
   13120 #
   13121 if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
   13122 	CCNOOPT="-O0"
   13123 fi
   13124 
   13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   13126 $as_echo_n "checking for ANSI C header files... " >&6; }
   13127 if ${ac_cv_header_stdc+:} false; then :
   13128   $as_echo_n "(cached) " >&6
   13129 else
   13130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13131 /* end confdefs.h.  */
   13132 #include <stdlib.h>
   13133 #include <stdarg.h>
   13134 #include <string.h>
   13135 #include <float.h>
   13136 
   13137 int
   13138 main ()
   13139 {
   13140 
   13141   ;
   13142   return 0;
   13143 }
   13144 _ACEOF
   13145 if ac_fn_c_try_compile "$LINENO"; then :
   13146   ac_cv_header_stdc=yes
   13147 else
   13148   ac_cv_header_stdc=no
   13149 fi
   13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13151 
   13152 if test $ac_cv_header_stdc = yes; then
   13153   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   13154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13155 /* end confdefs.h.  */
   13156 #include <string.h>
   13157 
   13158 _ACEOF
   13159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13160   $EGREP "memchr" >/dev/null 2>&1; then :
   13161 
   13162 else
   13163   ac_cv_header_stdc=no
   13164 fi
   13165 rm -f conftest*
   13166 
   13167 fi
   13168 
   13169 if test $ac_cv_header_stdc = yes; then
   13170   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   13171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13172 /* end confdefs.h.  */
   13173 #include <stdlib.h>
   13174 
   13175 _ACEOF
   13176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13177   $EGREP "free" >/dev/null 2>&1; then :
   13178 
   13179 else
   13180   ac_cv_header_stdc=no
   13181 fi
   13182 rm -f conftest*
   13183 
   13184 fi
   13185 
   13186 if test $ac_cv_header_stdc = yes; then
   13187   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   13188   if test "$cross_compiling" = yes; then :
   13189   :
   13190 else
   13191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13192 /* end confdefs.h.  */
   13193 #include <ctype.h>
   13194 #include <stdlib.h>
   13195 #if ((' ' & 0x0FF) == 0x020)
   13196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   13197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   13198 #else
   13199 # define ISLOWER(c) \
   13200 		   (('a' <= (c) && (c) <= 'i') \
   13201 		     || ('j' <= (c) && (c) <= 'r') \
   13202 		     || ('s' <= (c) && (c) <= 'z'))
   13203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   13204 #endif
   13205 
   13206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   13207 int
   13208 main ()
   13209 {
   13210   int i;
   13211   for (i = 0; i < 256; i++)
   13212     if (XOR (islower (i), ISLOWER (i))
   13213 	|| toupper (i) != TOUPPER (i))
   13214       return 2;
   13215   return 0;
   13216 }
   13217 _ACEOF
   13218 if ac_fn_c_try_run "$LINENO"; then :
   13219 
   13220 else
   13221   ac_cv_header_stdc=no
   13222 fi
   13223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13224   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13225 fi
   13226 
   13227 fi
   13228 fi
   13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   13230 $as_echo "$ac_cv_header_stdc" >&6; }
   13231 if test $ac_cv_header_stdc = yes; then
   13232 
   13233 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   13234 
   13235 fi
   13236 
   13237 
   13238 for ac_header in fcntl.h regex.h sys/time.h unistd.h sys/mman.h sys/sockio.h sys/select.h sys/param.h sys/sysctl.h net/if6.h sys/socket.h net/route.h linux/netlink.h linux/rtnetlink.h
   13239 do :
   13240   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13241 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   13242 #ifdef HAVE_SYS_PARAM_H
   13243 # include <sys/param.h>
   13244 #endif
   13245 #ifdef HAVE_SYS_SOCKET_H
   13246 # include <sys/socket.h>
   13247 #endif
   13248 
   13249 "
   13250 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13251   cat >>confdefs.h <<_ACEOF
   13252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13253 _ACEOF
   13254 
   13255 fi
   13256 
   13257 done
   13258 
   13259 
   13260 #
   13261 # Check for thread local storage
   13262 #
   13263 for ac_header in threads.h
   13264 do :
   13265   ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
   13266 if test "x$ac_cv_header_threads_h" = xyes; then :
   13267   cat >>confdefs.h <<_ACEOF
   13268 #define HAVE_THREADS_H 1
   13269 _ACEOF
   13270 
   13271 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 Thread-Local Storage using thread_local" >&5
   13272 $as_echo_n "checking for C11 Thread-Local Storage using thread_local... " >&6; }
   13273 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13274 /* end confdefs.h.  */
   13275 
   13276 				  #include <threads.h>
   13277 
   13278 int
   13279 main ()
   13280 {
   13281 
   13282 				  static thread_local int tls = 0;
   13283 				  return (tls);
   13284 
   13285   ;
   13286   return 0;
   13287 }
   13288 
   13289 _ACEOF
   13290 if ac_fn_c_try_compile "$LINENO"; then :
   13291 
   13292 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13293 $as_echo "yes" >&6; }
   13294 
   13295 $as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
   13296 
   13297 
   13298 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13299 
   13300 
   13301 else
   13302 
   13303 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13304 $as_echo "no" >&6; }
   13305 
   13306 fi
   13307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13308 
   13309 else
   13310 
   13311 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Thread-Local Storage using __thread" >&5
   13312 $as_echo_n "checking for Thread-Local Storage using __thread... " >&6; }
   13313 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13314 /* end confdefs.h.  */
   13315 
   13316 
   13317 int
   13318 main ()
   13319 {
   13320 
   13321 				  static __thread int tls = 0;
   13322 				  return (tls);
   13323 
   13324   ;
   13325   return 0;
   13326 }
   13327 
   13328 _ACEOF
   13329 if ac_fn_c_try_compile "$LINENO"; then :
   13330 
   13331 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13332 $as_echo "yes" >&6; }
   13333 
   13334 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
   13335 
   13336 
   13337 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13338 
   13339 
   13340 else
   13341 
   13342 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13343 $as_echo "no" >&6; }
   13344 
   13345 fi
   13346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13347 
   13348 fi
   13349 
   13350 done
   13351 
   13352 
   13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   13354 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   13355 if ${ac_cv_c_const+:} false; then :
   13356   $as_echo_n "(cached) " >&6
   13357 else
   13358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13359 /* end confdefs.h.  */
   13360 
   13361 int
   13362 main ()
   13363 {
   13364 
   13365 #ifndef __cplusplus
   13366   /* Ultrix mips cc rejects this sort of thing.  */
   13367   typedef int charset[2];
   13368   const charset cs = { 0, 0 };
   13369   /* SunOS 4.1.1 cc rejects this.  */
   13370   char const *const *pcpcc;
   13371   char **ppc;
   13372   /* NEC SVR4.0.2 mips cc rejects this.  */
   13373   struct point {int x, y;};
   13374   static struct point const zero = {0,0};
   13375   /* AIX XL C 1.02.0.0 rejects this.
   13376      It does not let you subtract one const X* pointer from another in
   13377      an arm of an if-expression whose if-part is not a constant
   13378      expression */
   13379   const char *g = "string";
   13380   pcpcc = &g + (g ? g-g : 0);
   13381   /* HPUX 7.0 cc rejects these. */
   13382   ++pcpcc;
   13383   ppc = (char**) pcpcc;
   13384   pcpcc = (char const *const *) ppc;
   13385   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   13386     char tx;
   13387     char *t = &tx;
   13388     char const *s = 0 ? (char *) 0 : (char const *) 0;
   13389 
   13390     *t++ = 0;
   13391     if (s) return 0;
   13392   }
   13393   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   13394     int x[] = {25, 17};
   13395     const int *foo = &x[0];
   13396     ++foo;
   13397   }
   13398   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   13399     typedef const int *iptr;
   13400     iptr p = 0;
   13401     ++p;
   13402   }
   13403   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   13404        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   13405     struct s { int j; const int *ap[3]; } bx;
   13406     struct s *b = &bx; b->j = 5;
   13407   }
   13408   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   13409     const int foo = 10;
   13410     if (!foo) return 0;
   13411   }
   13412   return !cs[0] && !zero.x;
   13413 #endif
   13414 
   13415   ;
   13416   return 0;
   13417 }
   13418 _ACEOF
   13419 if ac_fn_c_try_compile "$LINENO"; then :
   13420   ac_cv_c_const=yes
   13421 else
   13422   ac_cv_c_const=no
   13423 fi
   13424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13425 fi
   13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   13427 $as_echo "$ac_cv_c_const" >&6; }
   13428 if test $ac_cv_c_const = no; then
   13429 
   13430 $as_echo "#define const /**/" >>confdefs.h
   13431 
   13432 fi
   13433 
   13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   13435 $as_echo_n "checking for inline... " >&6; }
   13436 if ${ac_cv_c_inline+:} false; then :
   13437   $as_echo_n "(cached) " >&6
   13438 else
   13439   ac_cv_c_inline=no
   13440 for ac_kw in inline __inline__ __inline; do
   13441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13442 /* end confdefs.h.  */
   13443 #ifndef __cplusplus
   13444 typedef int foo_t;
   13445 static $ac_kw foo_t static_foo () {return 0; }
   13446 $ac_kw foo_t foo () {return 0; }
   13447 #endif
   13448 
   13449 _ACEOF
   13450 if ac_fn_c_try_compile "$LINENO"; then :
   13451   ac_cv_c_inline=$ac_kw
   13452 fi
   13453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13454   test "$ac_cv_c_inline" != no && break
   13455 done
   13456 
   13457 fi
   13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   13459 $as_echo "$ac_cv_c_inline" >&6; }
   13460 
   13461 case $ac_cv_c_inline in
   13462   inline | yes) ;;
   13463   *)
   13464     case $ac_cv_c_inline in
   13465       no) ac_val=;;
   13466       *) ac_val=$ac_cv_c_inline;;
   13467     esac
   13468     cat >>confdefs.h <<_ACEOF
   13469 #ifndef __cplusplus
   13470 #define inline $ac_val
   13471 #endif
   13472 _ACEOF
   13473     ;;
   13474 esac
   13475 
   13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
   13477 $as_echo_n "checking for working volatile... " >&6; }
   13478 if ${ac_cv_c_volatile+:} false; then :
   13479   $as_echo_n "(cached) " >&6
   13480 else
   13481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13482 /* end confdefs.h.  */
   13483 
   13484 int
   13485 main ()
   13486 {
   13487 
   13488 volatile int x;
   13489 int * volatile y = (int *) 0;
   13490 return !x && !y;
   13491   ;
   13492   return 0;
   13493 }
   13494 _ACEOF
   13495 if ac_fn_c_try_compile "$LINENO"; then :
   13496   ac_cv_c_volatile=yes
   13497 else
   13498   ac_cv_c_volatile=no
   13499 fi
   13500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13501 fi
   13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
   13503 $as_echo "$ac_cv_c_volatile" >&6; }
   13504 if test $ac_cv_c_volatile = no; then
   13505 
   13506 $as_echo "#define volatile /**/" >>confdefs.h
   13507 
   13508 fi
   13509 
   13510 
   13511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
   13512 $as_echo_n "checking for flexible array members... " >&6; }
   13513 if ${ac_cv_c_flexmember+:} false; then :
   13514   $as_echo_n "(cached) " >&6
   13515 else
   13516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13517 /* end confdefs.h.  */
   13518 #include <stdlib.h>
   13519 	    #include <stdio.h>
   13520 	    #include <stddef.h>
   13521 	    struct s { int n; double d[]; };
   13522 int
   13523 main ()
   13524 {
   13525 int m = getchar ();
   13526 	    struct s *p = malloc (offsetof (struct s, d)
   13527 				  + m * sizeof (double));
   13528 	    p->d[0] = 0.0;
   13529 	    return p->d != (double *) NULL;
   13530   ;
   13531   return 0;
   13532 }
   13533 _ACEOF
   13534 if ac_fn_c_try_compile "$LINENO"; then :
   13535   ac_cv_c_flexmember=yes
   13536 else
   13537   ac_cv_c_flexmember=no
   13538 fi
   13539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13540 fi
   13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
   13542 $as_echo "$ac_cv_c_flexmember" >&6; }
   13543   if test $ac_cv_c_flexmember = yes; then
   13544 
   13545 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
   13546 
   13547   else
   13548     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
   13549 
   13550   fi
   13551 
   13552 
   13553 #
   13554 # Check for yield support on ARM processors
   13555 #
   13556 case $host in #(
   13557   arm*) :
   13558 
   13559 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yield instruction support" >&5
   13560 $as_echo_n "checking for yield instruction support... " >&6; }
   13561 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13562 /* end confdefs.h.  */
   13563 
   13564 int
   13565 main ()
   13566 {
   13567 __asm__ __volatile__ ("yield")
   13568 
   13569   ;
   13570   return 0;
   13571 }
   13572 _ACEOF
   13573 if ac_fn_c_try_compile "$LINENO"; then :
   13574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13575 $as_echo "yes" >&6; }
   13576 else
   13577   as_fn_error $? "no, try adding -march=native or -march=armv7-a to CFLAGS (see PLATFORMS.md for more information)" "$LINENO" 5
   13578 fi
   13579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   13580   *) :
   13581      ;;
   13582 esac
   13583 
   13584 for ac_func in sysctlbyname
   13585 do :
   13586   ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
   13587 if test "x$ac_cv_func_sysctlbyname" = xyes; then :
   13588   cat >>confdefs.h <<_ACEOF
   13589 #define HAVE_SYSCTLBYNAME 1
   13590 _ACEOF
   13591 
   13592 fi
   13593 done
   13594 
   13595 
   13596 #
   13597 # Check for the existence of mmap to enable the fast format zones
   13598 #
   13599 for ac_func in mmap
   13600 do :
   13601   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   13602 if test "x$ac_cv_func_mmap" = xyes; then :
   13603   cat >>confdefs.h <<_ACEOF
   13604 #define HAVE_MMAP 1
   13605 _ACEOF
   13606 
   13607 fi
   13608 done
   13609 
   13610 
   13611 #
   13612 # Older versions of HP/UX don't define seteuid() and setegid()
   13613 #
   13614 for ac_func in seteuid setresuid
   13615 do :
   13616   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13617 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13618 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13619   cat >>confdefs.h <<_ACEOF
   13620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13621 _ACEOF
   13622 
   13623 fi
   13624 done
   13625 
   13626 for ac_func in setegid setresgid
   13627 do :
   13628   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13629 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13630 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13631   cat >>confdefs.h <<_ACEOF
   13632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13633 _ACEOF
   13634 
   13635 fi
   13636 done
   13637 
   13638 
   13639 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   13640 if test "x$ac_cv_type_size_t" = xyes; then :
   13641 
   13642 else
   13643 
   13644 cat >>confdefs.h <<_ACEOF
   13645 #define size_t unsigned int
   13646 _ACEOF
   13647 
   13648 fi
   13649 
   13650 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   13651 if test "x$ac_cv_type_ssize_t" = xyes; then :
   13652 
   13653 else
   13654 
   13655 cat >>confdefs.h <<_ACEOF
   13656 #define ssize_t int
   13657 _ACEOF
   13658 
   13659 fi
   13660 
   13661 
   13662   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
   13663 if test "x$ac_cv_type_uintptr_t" = xyes; then :
   13664 
   13665 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
   13666 
   13667 else
   13668   for ac_type in 'unsigned int' 'unsigned long int' \
   13669 	'unsigned long long int'; do
   13670        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13671 /* end confdefs.h.  */
   13672 $ac_includes_default
   13673 int
   13674 main ()
   13675 {
   13676 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   13677 test_array [0] = 0;
   13678 return test_array [0];
   13679 
   13680   ;
   13681   return 0;
   13682 }
   13683 _ACEOF
   13684 if ac_fn_c_try_compile "$LINENO"; then :
   13685 
   13686 cat >>confdefs.h <<_ACEOF
   13687 #define uintptr_t $ac_type
   13688 _ACEOF
   13689 
   13690 	  ac_type=
   13691 fi
   13692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13693        test -z "$ac_type" && break
   13694      done
   13695 fi
   13696 
   13697 
   13698 
   13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   13700 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   13701 if ${ac_cv_header_time+:} false; then :
   13702   $as_echo_n "(cached) " >&6
   13703 else
   13704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13705 /* end confdefs.h.  */
   13706 #include <sys/types.h>
   13707 #include <sys/time.h>
   13708 #include <time.h>
   13709 
   13710 int
   13711 main ()
   13712 {
   13713 if ((struct tm *) 0)
   13714 return 0;
   13715   ;
   13716   return 0;
   13717 }
   13718 _ACEOF
   13719 if ac_fn_c_try_compile "$LINENO"; then :
   13720   ac_cv_header_time=yes
   13721 else
   13722   ac_cv_header_time=no
   13723 fi
   13724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13725 fi
   13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   13727 $as_echo "$ac_cv_header_time" >&6; }
   13728 if test $ac_cv_header_time = yes; then
   13729 
   13730 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   13731 
   13732 fi
   13733 
   13734 
   13735 #
   13736 # check for uname library routine
   13737 #
   13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
   13739 $as_echo_n "checking for uname... " >&6; }
   13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13741 /* end confdefs.h.  */
   13742 #include <sys/utsname.h>
   13743        #include <stdio.h>
   13744 
   13745 int
   13746 main ()
   13747 {
   13748 
   13749        struct utsname uts;
   13750        uname(&uts);
   13751        printf("running on %s %s %s for %s\n",
   13752 	      uts.sysname, uts.release, uts.version, uts.machine);
   13753 
   13754   ;
   13755   return 0;
   13756 }
   13757 _ACEOF
   13758 if ac_fn_c_try_compile "$LINENO"; then :
   13759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13760 $as_echo "yes" >&6; }
   13761 
   13762 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
   13763 
   13764 
   13765 else
   13766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13767 $as_echo "no" >&6; }
   13768    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
   13769 $as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
   13770 
   13771 fi
   13772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13773 
   13774 #
   13775 # check for GCC noreturn attribute
   13776 #
   13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
   13778 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
   13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13780 /* end confdefs.h.  */
   13781 
   13782 int
   13783 main ()
   13784 {
   13785 void foo() __attribute__((noreturn));
   13786   ;
   13787   return 0;
   13788 }
   13789 _ACEOF
   13790 if ac_fn_c_try_compile "$LINENO"; then :
   13791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13792 $as_echo "yes" >&6; }
   13793 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   13794 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
   13795 else
   13796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13797 $as_echo "no" >&6; }
   13798 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   13799 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
   13800 fi
   13801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13802 
   13803 
   13804 
   13805 #
   13806 # check if we have kqueue
   13807 #
   13808 # Check whether --enable-kqueue was given.
   13809 if test "${enable_kqueue+set}" = set; then :
   13810   enableval=$enable_kqueue;
   13811 else
   13812   enable_kqueue="yes"
   13813 fi
   13814 
   13815 
   13816 if test "$enable_kqueue" = "yes"; then :
   13817   for ac_func in kqueue
   13818 do :
   13819   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
   13820 if test "x$ac_cv_func_kqueue" = xyes; then :
   13821   cat >>confdefs.h <<_ACEOF
   13822 #define HAVE_KQUEUE 1
   13823 _ACEOF
   13824 
   13825 fi
   13826 done
   13827 
   13828 fi
   13829 
   13830 #
   13831 # check if we have epoll.  Linux kernel 2.4 has epoll_create() which fails,
   13832 # so we need to try running the code, not just test its existence.
   13833 #
   13834 # Check whether --enable-epoll was given.
   13835 if test "${enable_epoll+set}" = set; then :
   13836   enableval=$enable_epoll;
   13837 else
   13838   enable_epoll="yes"
   13839 fi
   13840 
   13841 
   13842 if test "$enable_epoll" = "yes"; then :
   13843   for ac_func in epoll_create1
   13844 do :
   13845   ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
   13846 if test "x$ac_cv_func_epoll_create1" = xyes; then :
   13847   cat >>confdefs.h <<_ACEOF
   13848 #define HAVE_EPOLL_CREATE1 1
   13849 _ACEOF
   13850 
   13851 fi
   13852 done
   13853 
   13854 fi
   13855 
   13856 #
   13857 # check if we support /dev/poll
   13858 #
   13859 # Check whether --enable-devpoll was given.
   13860 if test "${enable_devpoll+set}" = set; then :
   13861   enableval=$enable_devpoll;
   13862 else
   13863   enable_devpoll="yes"
   13864 fi
   13865 
   13866 if test "$enable_devpoll" = "yes"; then :
   13867   for ac_header in sys/devpoll.h devpoll.h
   13868 do :
   13869   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13870 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   13871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13872   cat >>confdefs.h <<_ACEOF
   13873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13874 _ACEOF
   13875 
   13876 fi
   13877 
   13878 done
   13879 
   13880 fi
   13881 
   13882 #
   13883 # Find the machine's endian flavor.
   13884 #
   13885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   13886 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   13887 if ${ac_cv_c_bigendian+:} false; then :
   13888   $as_echo_n "(cached) " >&6
   13889 else
   13890   ac_cv_c_bigendian=unknown
   13891     # See if we're dealing with a universal compiler.
   13892     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13893 /* end confdefs.h.  */
   13894 #ifndef __APPLE_CC__
   13895 	       not a universal capable compiler
   13896 	     #endif
   13897 	     typedef int dummy;
   13898 
   13899 _ACEOF
   13900 if ac_fn_c_try_compile "$LINENO"; then :
   13901 
   13902 	# Check for potential -arch flags.  It is not universal unless
   13903 	# there are at least two -arch flags with different values.
   13904 	ac_arch=
   13905 	ac_prev=
   13906 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   13907 	 if test -n "$ac_prev"; then
   13908 	   case $ac_word in
   13909 	     i?86 | x86_64 | ppc | ppc64)
   13910 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   13911 		 ac_arch=$ac_word
   13912 	       else
   13913 		 ac_cv_c_bigendian=universal
   13914 		 break
   13915 	       fi
   13916 	       ;;
   13917 	   esac
   13918 	   ac_prev=
   13919 	 elif test "x$ac_word" = "x-arch"; then
   13920 	   ac_prev=arch
   13921 	 fi
   13922        done
   13923 fi
   13924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13925     if test $ac_cv_c_bigendian = unknown; then
   13926       # See if sys/param.h defines the BYTE_ORDER macro.
   13927       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13928 /* end confdefs.h.  */
   13929 #include <sys/types.h>
   13930 	     #include <sys/param.h>
   13931 
   13932 int
   13933 main ()
   13934 {
   13935 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   13936 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   13937 		     && LITTLE_ENDIAN)
   13938 	      bogus endian macros
   13939 	     #endif
   13940 
   13941   ;
   13942   return 0;
   13943 }
   13944 _ACEOF
   13945 if ac_fn_c_try_compile "$LINENO"; then :
   13946   # It does; now see whether it defined to BIG_ENDIAN or not.
   13947 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13948 /* end confdefs.h.  */
   13949 #include <sys/types.h>
   13950 		#include <sys/param.h>
   13951 
   13952 int
   13953 main ()
   13954 {
   13955 #if BYTE_ORDER != BIG_ENDIAN
   13956 		 not big endian
   13957 		#endif
   13958 
   13959   ;
   13960   return 0;
   13961 }
   13962 _ACEOF
   13963 if ac_fn_c_try_compile "$LINENO"; then :
   13964   ac_cv_c_bigendian=yes
   13965 else
   13966   ac_cv_c_bigendian=no
   13967 fi
   13968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13969 fi
   13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13971     fi
   13972     if test $ac_cv_c_bigendian = unknown; then
   13973       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   13974       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13975 /* end confdefs.h.  */
   13976 #include <limits.h>
   13977 
   13978 int
   13979 main ()
   13980 {
   13981 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   13982 	      bogus endian macros
   13983 	     #endif
   13984 
   13985   ;
   13986   return 0;
   13987 }
   13988 _ACEOF
   13989 if ac_fn_c_try_compile "$LINENO"; then :
   13990   # It does; now see whether it defined to _BIG_ENDIAN or not.
   13991 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13992 /* end confdefs.h.  */
   13993 #include <limits.h>
   13994 
   13995 int
   13996 main ()
   13997 {
   13998 #ifndef _BIG_ENDIAN
   13999 		 not big endian
   14000 		#endif
   14001 
   14002   ;
   14003   return 0;
   14004 }
   14005 _ACEOF
   14006 if ac_fn_c_try_compile "$LINENO"; then :
   14007   ac_cv_c_bigendian=yes
   14008 else
   14009   ac_cv_c_bigendian=no
   14010 fi
   14011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14012 fi
   14013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14014     fi
   14015     if test $ac_cv_c_bigendian = unknown; then
   14016       # Compile a test program.
   14017       if test "$cross_compiling" = yes; then :
   14018   # Try to guess by grepping values from an object file.
   14019 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14020 /* end confdefs.h.  */
   14021 short int ascii_mm[] =
   14022 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   14023 		short int ascii_ii[] =
   14024 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   14025 		int use_ascii (int i) {
   14026 		  return ascii_mm[i] + ascii_ii[i];
   14027 		}
   14028 		short int ebcdic_ii[] =
   14029 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   14030 		short int ebcdic_mm[] =
   14031 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   14032 		int use_ebcdic (int i) {
   14033 		  return ebcdic_mm[i] + ebcdic_ii[i];
   14034 		}
   14035 		extern int foo;
   14036 
   14037 int
   14038 main ()
   14039 {
   14040 return use_ascii (foo) == use_ebcdic (foo);
   14041   ;
   14042   return 0;
   14043 }
   14044 _ACEOF
   14045 if ac_fn_c_try_compile "$LINENO"; then :
   14046   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   14047 	      ac_cv_c_bigendian=yes
   14048 	    fi
   14049 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   14050 	      if test "$ac_cv_c_bigendian" = unknown; then
   14051 		ac_cv_c_bigendian=no
   14052 	      else
   14053 		# finding both strings is unlikely to happen, but who knows?
   14054 		ac_cv_c_bigendian=unknown
   14055 	      fi
   14056 	    fi
   14057 fi
   14058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14059 else
   14060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14061 /* end confdefs.h.  */
   14062 $ac_includes_default
   14063 int
   14064 main ()
   14065 {
   14066 
   14067 	     /* Are we little or big endian?  From Harbison&Steele.  */
   14068 	     union
   14069 	     {
   14070 	       long int l;
   14071 	       char c[sizeof (long int)];
   14072 	     } u;
   14073 	     u.l = 1;
   14074 	     return u.c[sizeof (long int) - 1] == 1;
   14075 
   14076   ;
   14077   return 0;
   14078 }
   14079 _ACEOF
   14080 if ac_fn_c_try_run "$LINENO"; then :
   14081   ac_cv_c_bigendian=no
   14082 else
   14083   ac_cv_c_bigendian=yes
   14084 fi
   14085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14086   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14087 fi
   14088 
   14089     fi
   14090 fi
   14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   14092 $as_echo "$ac_cv_c_bigendian" >&6; }
   14093  case $ac_cv_c_bigendian in #(
   14094    yes)
   14095      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   14096 ;; #(
   14097    no)
   14098       ;; #(
   14099    universal)
   14100 
   14101 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   14102 
   14103      ;; #(
   14104    *)
   14105      as_fn_error $? "unknown endianness
   14106  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   14107  esac
   14108 
   14109 
   14110 #
   14111 # GeoIP support?
   14112 #
   14113 GEOIPLINKSRCS=
   14114 GEOIPLINKOBJS=
   14115 
   14116 # Check whether --with-geoip was given.
   14117 if test "${with_geoip+set}" = set; then :
   14118   withval=$with_geoip; use_geoip="$withval"
   14119 else
   14120   use_geoip="no"
   14121 fi
   14122 
   14123 
   14124 if test "yes" = "$use_geoip"
   14125 then
   14126 	for d in /usr /usr/local /opt/local
   14127 	do
   14128 		if test -f $d/include/GeoIP.h
   14129 		then
   14130 			use_geoip=$d
   14131 			break
   14132 		fi
   14133 	done
   14134 fi
   14135 
   14136 case "$use_geoip" in
   14137 	no|'')
   14138 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
   14139 $as_echo_n "checking for GeoIP support... " >&6; }
   14140 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   14141 $as_echo "disabled" >&6; }
   14142 		;;
   14143 	*)
   14144 		if test -d "$use_geoip" -o -L "$use_geoip"
   14145 		then
   14146 			CFLAGS="$CFLAGS -I$use_geoip/include"
   14147 			CPPFLAGS="$CPPFLAGS -I$use_geoip/include"
   14148 			LIBS="$LIBS -L$use_geoip/lib"
   14149 			case "$host_os" in
   14150 				netbsd*|openbsd*|solaris*)
   14151 					LIBS="$LIBS -Wl,-rpath=$use_geoip/lib"
   14152 					;;
   14153 			esac
   14154 		elif test "yes" = "$use_geoip"
   14155 		then
   14156 			as_fn_error $? "GeoIP path not found" "$LINENO" 5
   14157 		else
   14158 			as_fn_error $? "GeoIP path $use_geoip does not exist" "$LINENO" 5
   14159 		fi
   14160 		ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
   14161 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
   14162 
   14163 else
   14164   as_fn_error $? "GeoIP header file not found" "$LINENO" 5
   14165 
   14166 fi
   14167 
   14168 
   14169 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_addr_gl" >&5
   14170 $as_echo_n "checking for library containing GeoIP_id_by_addr_gl... " >&6; }
   14171 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14172   $as_echo_n "(cached) " >&6
   14173 else
   14174   ac_func_search_save_LIBS=$LIBS
   14175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14176 /* end confdefs.h.  */
   14177 
   14178 /* Override any GCC internal prototype to avoid an error.
   14179    Use char because int might match the return type of a GCC
   14180    builtin and then its argument prototype would still apply.  */
   14181 #ifdef __cplusplus
   14182 extern "C"
   14183 #endif
   14184 char GeoIP_id_by_addr_gl ();
   14185 int
   14186 main ()
   14187 {
   14188 return GeoIP_id_by_addr_gl ();
   14189   ;
   14190   return 0;
   14191 }
   14192 _ACEOF
   14193 for ac_lib in '' GeoIP; do
   14194   if test -z "$ac_lib"; then
   14195     ac_res="none required"
   14196   else
   14197     ac_res=-l$ac_lib
   14198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14199   fi
   14200   if ac_fn_c_try_link "$LINENO"; then :
   14201   ac_cv_search_GeoIP_id_by_addr_gl=$ac_res
   14202 fi
   14203 rm -f core conftest.err conftest.$ac_objext \
   14204     conftest$ac_exeext
   14205   if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14206   break
   14207 fi
   14208 done
   14209 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14210 
   14211 else
   14212   ac_cv_search_GeoIP_id_by_addr_gl=no
   14213 fi
   14214 rm conftest.$ac_ext
   14215 LIBS=$ac_func_search_save_LIBS
   14216 fi
   14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_addr_gl" >&5
   14218 $as_echo "$ac_cv_search_GeoIP_id_by_addr_gl" >&6; }
   14219 ac_res=$ac_cv_search_GeoIP_id_by_addr_gl
   14220 if test "$ac_res" != no; then :
   14221   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14222 
   14223 else
   14224   as_fn_error $? "suitable GeoIP library not found" "$LINENO" 5
   14225 
   14226 fi
   14227 
   14228 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
   14229 $as_echo_n "checking for library containing fabsf... " >&6; }
   14230 if ${ac_cv_search_fabsf+:} false; then :
   14231   $as_echo_n "(cached) " >&6
   14232 else
   14233   ac_func_search_save_LIBS=$LIBS
   14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14235 /* end confdefs.h.  */
   14236 
   14237 /* Override any GCC internal prototype to avoid an error.
   14238    Use char because int might match the return type of a GCC
   14239    builtin and then its argument prototype would still apply.  */
   14240 #ifdef __cplusplus
   14241 extern "C"
   14242 #endif
   14243 char fabsf ();
   14244 int
   14245 main ()
   14246 {
   14247 return fabsf ();
   14248   ;
   14249   return 0;
   14250 }
   14251 _ACEOF
   14252 for ac_lib in '' m; do
   14253   if test -z "$ac_lib"; then
   14254     ac_res="none required"
   14255   else
   14256     ac_res=-l$ac_lib
   14257     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14258   fi
   14259   if ac_fn_c_try_link "$LINENO"; then :
   14260   ac_cv_search_fabsf=$ac_res
   14261 fi
   14262 rm -f core conftest.err conftest.$ac_objext \
   14263     conftest$ac_exeext
   14264   if ${ac_cv_search_fabsf+:} false; then :
   14265   break
   14266 fi
   14267 done
   14268 if ${ac_cv_search_fabsf+:} false; then :
   14269 
   14270 else
   14271   ac_cv_search_fabsf=no
   14272 fi
   14273 rm conftest.$ac_ext
   14274 LIBS=$ac_func_search_save_LIBS
   14275 fi
   14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
   14277 $as_echo "$ac_cv_search_fabsf" >&6; }
   14278 ac_res=$ac_cv_search_fabsf
   14279 if test "$ac_res" != no; then :
   14280   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14281 
   14282 else
   14283   as_fn_error $? "Math library not found" "$LINENO" 5
   14284 
   14285 fi
   14286 
   14287 
   14288 $as_echo "#define HAVE_GEOIP 1" >>confdefs.h
   14289 
   14290 		GEOIPLINKSRCS='${GEOIPLINKSRCS}'
   14291 		GEOIPLINKOBJS='${GEOIPLINKOBJS}'
   14292 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
   14293 $as_echo_n "checking for GeoIP support... " >&6; }
   14294 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14295 $as_echo "yes" >&6; }
   14296 
   14297 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP Country IPv6 support" >&5
   14298 $as_echo_n "checking for GeoIP Country IPv6 support... " >&6; }
   14299 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14300 /* end confdefs.h.  */
   14301 
   14302 				#include <GeoIP.h>
   14303 				#include <netinet/in.h>
   14304 
   14305 int
   14306 main ()
   14307 {
   14308 
   14309 				struct in6_addr in6;
   14310 				GeoIP_country_name_by_ipnum_v6(NULL, in6);
   14311 
   14312   ;
   14313   return 0;
   14314 }
   14315 _ACEOF
   14316 if ac_fn_c_try_compile "$LINENO"; then :
   14317 
   14318 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14319 $as_echo "yes" >&6; }
   14320 
   14321 $as_echo "#define HAVE_GEOIP_V6 1" >>confdefs.h
   14322 
   14323 
   14324 else
   14325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14326 $as_echo "no" >&6; }
   14327 
   14328 fi
   14329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14330 
   14331 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP City IPv6 support" >&5
   14332 $as_echo_n "checking for GeoIP City IPv6 support... " >&6; }
   14333 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14334 /* end confdefs.h.  */
   14335 
   14336 				#include <GeoIP.h>
   14337 				#include <GeoIPCity.h>
   14338 				#include <netinet/in.h>
   14339 
   14340 int
   14341 main ()
   14342 {
   14343 
   14344 				struct in6_addr in6;
   14345 				int i = GEOIP_CITY_EDITION_REV0_V6;
   14346 				GeoIP_record_by_ipnum_v6(NULL, in6);
   14347 
   14348   ;
   14349   return 0;
   14350 }
   14351 _ACEOF
   14352 if ac_fn_c_try_compile "$LINENO"; then :
   14353 
   14354 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14355 $as_echo "yes" >&6; }
   14356 
   14357 $as_echo "#define HAVE_GEOIP_CITY_V6 1" >>confdefs.h
   14358 
   14359 
   14360 else
   14361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14362 $as_echo "no" >&6; }
   14363 
   14364 fi
   14365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14366 		;;
   14367 esac
   14368 
   14369 
   14370 
   14371 #
   14372 # Do we have arc4random(), etc ?
   14373 #
   14374 for ac_func in arc4random arc4random_buf arc4random_uniform getrandom
   14375 do :
   14376   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14377 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14378 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14379   cat >>confdefs.h <<_ACEOF
   14380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14381 _ACEOF
   14382 
   14383 fi
   14384 done
   14385 
   14386 
   14387 
   14388 
   14389 
   14390 
   14391 ac_ext=c
   14392 ac_cpp='$CPP $CPPFLAGS'
   14393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14396 
   14397 ax_pthread_ok=no
   14398 
   14399 # We used to check for pthread.h first, but this fails if pthread.h
   14400 # requires special compiler flags (e.g. on Tru64 or Sequent).
   14401 # It gets checked for in the link test anyway.
   14402 
   14403 # First of all, check if the user has set any of the PTHREAD_LIBS,
   14404 # etcetera environment variables, and if threads linking works using
   14405 # them:
   14406 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
   14407         ax_pthread_save_CC="$CC"
   14408         ax_pthread_save_CFLAGS="$CFLAGS"
   14409         ax_pthread_save_LIBS="$LIBS"
   14410         if test "x$PTHREAD_CC" != "x"; then :
   14411   CC="$PTHREAD_CC"
   14412 fi
   14413         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14414         LIBS="$PTHREAD_LIBS $LIBS"
   14415         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
   14416 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
   14417         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14418 /* end confdefs.h.  */
   14419 
   14420 /* Override any GCC internal prototype to avoid an error.
   14421    Use char because int might match the return type of a GCC
   14422    builtin and then its argument prototype would still apply.  */
   14423 #ifdef __cplusplus
   14424 extern "C"
   14425 #endif
   14426 char pthread_join ();
   14427 int
   14428 main ()
   14429 {
   14430 return pthread_join ();
   14431   ;
   14432   return 0;
   14433 }
   14434 _ACEOF
   14435 if ac_fn_c_try_link "$LINENO"; then :
   14436   ax_pthread_ok=yes
   14437 fi
   14438 rm -f core conftest.err conftest.$ac_objext \
   14439     conftest$ac_exeext conftest.$ac_ext
   14440         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   14441 $as_echo "$ax_pthread_ok" >&6; }
   14442         if test "x$ax_pthread_ok" = "xno"; then
   14443                 PTHREAD_LIBS=""
   14444                 PTHREAD_CFLAGS=""
   14445         fi
   14446         CC="$ax_pthread_save_CC"
   14447         CFLAGS="$ax_pthread_save_CFLAGS"
   14448         LIBS="$ax_pthread_save_LIBS"
   14449 fi
   14450 
   14451 # We must check for the threads library under a number of different
   14452 # names; the ordering is very important because some systems
   14453 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   14454 # libraries is broken (non-POSIX).
   14455 
   14456 # Create a list of thread flags to try.  Items starting with a "-" are
   14457 # C compiler flags, and other items are library names, except for "none"
   14458 # which indicates that we try without any flags at all, and "pthread-config"
   14459 # which is a program returning the flags for the Pth emulation library.
   14460 
   14461 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   14462 
   14463 # The ordering *is* (sometimes) important.  Some notes on the
   14464 # individual items follow:
   14465 
   14466 # pthreads: AIX (must check this before -lpthread)
   14467 # none: in case threads are in libc; should be tried before -Kthread and
   14468 #       other compiler flags to prevent continual compiler warnings
   14469 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   14470 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
   14471 #           (Note: HP C rejects this with "bad form for `-t' option")
   14472 # -pthreads: Solaris/gcc (Note: HP C also rejects)
   14473 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   14474 #      doesn't hurt to check since this sometimes defines pthreads and
   14475 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
   14476 #      is present but should not be used directly; and before -mthreads,
   14477 #      because the compiler interprets this as "-mt" + "-hreads")
   14478 # -mthreads: Mingw32/gcc, Lynx/gcc
   14479 # pthread: Linux, etcetera
   14480 # --thread-safe: KAI C++
   14481 # pthread-config: use pthread-config program (for GNU Pth library)
   14482 
   14483 case $host_os in
   14484 
   14485         freebsd*)
   14486 
   14487         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   14488         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   14489 
   14490         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
   14491         ;;
   14492 
   14493         hpux*)
   14494 
   14495         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
   14496         # multi-threading and also sets -lpthread."
   14497 
   14498         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
   14499         ;;
   14500 
   14501         openedition*)
   14502 
   14503         # IBM z/OS requires a feature-test macro to be defined in order to
   14504         # enable POSIX threads at all, so give the user a hint if this is
   14505         # not set. (We don't define these ourselves, as they can affect
   14506         # other portions of the system API in unpredictable ways.)
   14507 
   14508         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14509 /* end confdefs.h.  */
   14510 
   14511 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
   14512              AX_PTHREAD_ZOS_MISSING
   14513 #            endif
   14514 
   14515 _ACEOF
   14516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14517   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
   14518   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
   14519 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
   14520 fi
   14521 rm -f conftest*
   14522 
   14523         ;;
   14524 
   14525         solaris*)
   14526 
   14527         # On Solaris (at least, for some versions), libc contains stubbed
   14528         # (non-functional) versions of the pthreads routines, so link-based
   14529         # tests will erroneously succeed. (N.B.: The stubs are missing
   14530         # pthread_cleanup_push, or rather a function called by this macro,
   14531         # so we could check for that, but who knows whether they'll stub
   14532         # that too in a future libc.)  So we'll check first for the
   14533         # standard Solaris way of linking pthreads (-mt -lpthread).
   14534 
   14535         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
   14536         ;;
   14537 esac
   14538 
   14539 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
   14540 
   14541 if test "x$GCC" = "xyes"; then :
   14542   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
   14543 fi
   14544 
   14545 # The presence of a feature test macro requesting re-entrant function
   14546 # definitions is, on some systems, a strong hint that pthreads support is
   14547 # correctly enabled
   14548 
   14549 case $host_os in
   14550         darwin* | hpux* | linux* | osf* | solaris*)
   14551         ax_pthread_check_macro="_REENTRANT"
   14552         ;;
   14553 
   14554         aix*)
   14555         ax_pthread_check_macro="_THREAD_SAFE"
   14556         ;;
   14557 
   14558         *)
   14559         ax_pthread_check_macro="--"
   14560         ;;
   14561 esac
   14562 if test "x$ax_pthread_check_macro" = "x--"; then :
   14563   ax_pthread_check_cond=0
   14564 else
   14565   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
   14566 fi
   14567 
   14568 # Are we compiling with Clang?
   14569 
   14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
   14571 $as_echo_n "checking whether $CC is Clang... " >&6; }
   14572 if ${ax_cv_PTHREAD_CLANG+:} false; then :
   14573   $as_echo_n "(cached) " >&6
   14574 else
   14575   ax_cv_PTHREAD_CLANG=no
   14576      # Note that Autoconf sets GCC=yes for Clang as well as GCC
   14577      if test "x$GCC" = "xyes"; then
   14578         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14579 /* end confdefs.h.  */
   14580 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
   14581 #            if defined(__clang__) && defined(__llvm__)
   14582              AX_PTHREAD_CC_IS_CLANG
   14583 #            endif
   14584 
   14585 _ACEOF
   14586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14587   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
   14588   ax_cv_PTHREAD_CLANG=yes
   14589 fi
   14590 rm -f conftest*
   14591 
   14592      fi
   14593 
   14594 fi
   14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
   14596 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
   14597 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
   14598 
   14599 ax_pthread_clang_warning=no
   14600 
   14601 # Clang needs special handling, because older versions handle the -pthread
   14602 # option in a rather... idiosyncratic way
   14603 
   14604 if test "x$ax_pthread_clang" = "xyes"; then
   14605 
   14606         # Clang takes -pthread; it has never supported any other flag
   14607 
   14608         # (Note 1: This will need to be revisited if a system that Clang
   14609         # supports has POSIX threads in a separate library.  This tends not
   14610         # to be the way of modern systems, but it's conceivable.)
   14611 
   14612         # (Note 2: On some systems, notably Darwin, -pthread is not needed
   14613         # to get POSIX threads support; the API is always present and
   14614         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
   14615         # -pthread does define _REENTRANT, and while the Darwin headers
   14616         # ignore this macro, third-party headers might not.)
   14617 
   14618         PTHREAD_CFLAGS="-pthread"
   14619         PTHREAD_LIBS=
   14620 
   14621         ax_pthread_ok=yes
   14622 
   14623         # However, older versions of Clang make a point of warning the user
   14624         # that, in an invocation where only linking and no compilation is
   14625         # taking place, the -pthread option has no effect ("argument unused
   14626         # during compilation").  They expect -pthread to be passed in only
   14627         # when source code is being compiled.
   14628         #
   14629         # Problem is, this is at odds with the way Automake and most other
   14630         # C build frameworks function, which is that the same flags used in
   14631         # compilation (CFLAGS) are also used in linking.  Many systems
   14632         # supported by AX_PTHREAD require exactly this for POSIX threads
   14633         # support, and in fact it is often not straightforward to specify a
   14634         # flag that is used only in the compilation phase and not in
   14635         # linking.  Such a scenario is extremely rare in practice.
   14636         #
   14637         # Even though use of the -pthread flag in linking would only print
   14638         # a warning, this can be a nuisance for well-run software projects
   14639         # that build with -Werror.  So if the active version of Clang has
   14640         # this misfeature, we search for an option to squash it.
   14641 
   14642         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
   14643 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
   14644 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
   14645   $as_echo_n "(cached) " >&6
   14646 else
   14647   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
   14648              # Create an alternate version of $ac_link that compiles and
   14649              # links in two steps (.c -> .o, .o -> exe) instead of one
   14650              # (.c -> exe), because the warning occurs only in the second
   14651              # step
   14652              ax_pthread_save_ac_link="$ac_link"
   14653              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
   14654              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
   14655              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
   14656              ax_pthread_save_CFLAGS="$CFLAGS"
   14657              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
   14658                 if test "x$ax_pthread_try" = "xunknown"; then :
   14659   break
   14660 fi
   14661                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
   14662                 ac_link="$ax_pthread_save_ac_link"
   14663                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14664 /* end confdefs.h.  */
   14665 int main(void){return 0;}
   14666 _ACEOF
   14667 if ac_fn_c_try_link "$LINENO"; then :
   14668   ac_link="$ax_pthread_2step_ac_link"
   14669                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14670 /* end confdefs.h.  */
   14671 int main(void){return 0;}
   14672 _ACEOF
   14673 if ac_fn_c_try_link "$LINENO"; then :
   14674   break
   14675 fi
   14676 rm -f core conftest.err conftest.$ac_objext \
   14677     conftest$ac_exeext conftest.$ac_ext
   14678 
   14679 fi
   14680 rm -f core conftest.err conftest.$ac_objext \
   14681     conftest$ac_exeext conftest.$ac_ext
   14682              done
   14683              ac_link="$ax_pthread_save_ac_link"
   14684              CFLAGS="$ax_pthread_save_CFLAGS"
   14685              if test "x$ax_pthread_try" = "x"; then :
   14686   ax_pthread_try=no
   14687 fi
   14688              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
   14689 
   14690 fi
   14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
   14692 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
   14693 
   14694         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
   14695                 no | unknown) ;;
   14696                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
   14697         esac
   14698 
   14699 fi # $ax_pthread_clang = yes
   14700 
   14701 if test "x$ax_pthread_ok" = "xno"; then
   14702 for ax_pthread_try_flag in $ax_pthread_flags; do
   14703 
   14704         case $ax_pthread_try_flag in
   14705                 none)
   14706                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   14707 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
   14708                 ;;
   14709 
   14710                 -mt,pthread)
   14711                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
   14712 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
   14713                 PTHREAD_CFLAGS="-mt"
   14714                 PTHREAD_LIBS="-lpthread"
   14715                 ;;
   14716 
   14717                 -*)
   14718                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
   14719 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
   14720                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
   14721                 ;;
   14722 
   14723                 pthread-config)
   14724                 # Extract the first word of "pthread-config", so it can be a program name with args.
   14725 set dummy pthread-config; ac_word=$2
   14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14727 $as_echo_n "checking for $ac_word... " >&6; }
   14728 if ${ac_cv_prog_ax_pthread_config+:} false; then :
   14729   $as_echo_n "(cached) " >&6
   14730 else
   14731   if test -n "$ax_pthread_config"; then
   14732   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   14733 else
   14734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14735 for as_dir in $PATH
   14736 do
   14737   IFS=$as_save_IFS
   14738   test -z "$as_dir" && as_dir=.
   14739     for ac_exec_ext in '' $ac_executable_extensions; do
   14740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14741     ac_cv_prog_ax_pthread_config="yes"
   14742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14743     break 2
   14744   fi
   14745 done
   14746   done
   14747 IFS=$as_save_IFS
   14748 
   14749   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   14750 fi
   14751 fi
   14752 ax_pthread_config=$ac_cv_prog_ax_pthread_config
   14753 if test -n "$ax_pthread_config"; then
   14754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   14755 $as_echo "$ax_pthread_config" >&6; }
   14756 else
   14757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14758 $as_echo "no" >&6; }
   14759 fi
   14760 
   14761 
   14762                 if test "x$ax_pthread_config" = "xno"; then :
   14763   continue
   14764 fi
   14765                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   14766                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   14767                 ;;
   14768 
   14769                 *)
   14770                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
   14771 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
   14772                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
   14773                 ;;
   14774         esac
   14775 
   14776         ax_pthread_save_CFLAGS="$CFLAGS"
   14777         ax_pthread_save_LIBS="$LIBS"
   14778         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14779         LIBS="$PTHREAD_LIBS $LIBS"
   14780 
   14781         # Check for various functions.  We must include pthread.h,
   14782         # since some functions may be macros.  (On the Sequent, we
   14783         # need a special flag -Kthread to make this header compile.)
   14784         # We check for pthread_join because it is in -lpthread on IRIX
   14785         # while pthread_create is in libc.  We check for pthread_attr_init
   14786         # due to DEC craziness with -lpthreads.  We check for
   14787         # pthread_cleanup_push because it is one of the few pthread
   14788         # functions on Solaris that doesn't have a non-functional libc stub.
   14789         # We try pthread_create on general principles.
   14790 
   14791         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14792 /* end confdefs.h.  */
   14793 #include <pthread.h>
   14794 #                       if $ax_pthread_check_cond
   14795 #                        error "$ax_pthread_check_macro must be defined"
   14796 #                       endif
   14797                         static void routine(void *a) { a = 0; }
   14798                         static void *start_routine(void *a) { return a; }
   14799 int
   14800 main ()
   14801 {
   14802 pthread_t th; pthread_attr_t attr;
   14803                         pthread_create(&th, 0, start_routine, 0);
   14804                         pthread_join(th, 0);
   14805                         pthread_attr_init(&attr);
   14806                         pthread_cleanup_push(routine, 0);
   14807                         pthread_cleanup_pop(0) /* ; */
   14808   ;
   14809   return 0;
   14810 }
   14811 _ACEOF
   14812 if ac_fn_c_try_link "$LINENO"; then :
   14813   ax_pthread_ok=yes
   14814 fi
   14815 rm -f core conftest.err conftest.$ac_objext \
   14816     conftest$ac_exeext conftest.$ac_ext
   14817 
   14818         CFLAGS="$ax_pthread_save_CFLAGS"
   14819         LIBS="$ax_pthread_save_LIBS"
   14820 
   14821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   14822 $as_echo "$ax_pthread_ok" >&6; }
   14823         if test "x$ax_pthread_ok" = "xyes"; then :
   14824   break
   14825 fi
   14826 
   14827         PTHREAD_LIBS=""
   14828         PTHREAD_CFLAGS=""
   14829 done
   14830 fi
   14831 
   14832 # Various other checks:
   14833 if test "x$ax_pthread_ok" = "xyes"; then
   14834         ax_pthread_save_CFLAGS="$CFLAGS"
   14835         ax_pthread_save_LIBS="$LIBS"
   14836         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14837         LIBS="$PTHREAD_LIBS $LIBS"
   14838 
   14839         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   14840         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   14841 $as_echo_n "checking for joinable pthread attribute... " >&6; }
   14842 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
   14843   $as_echo_n "(cached) " >&6
   14844 else
   14845   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
   14846              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   14847                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14848 /* end confdefs.h.  */
   14849 #include <pthread.h>
   14850 int
   14851 main ()
   14852 {
   14853 int attr = $ax_pthread_attr; return attr /* ; */
   14854   ;
   14855   return 0;
   14856 }
   14857 _ACEOF
   14858 if ac_fn_c_try_link "$LINENO"; then :
   14859   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
   14860 fi
   14861 rm -f core conftest.err conftest.$ac_objext \
   14862     conftest$ac_exeext conftest.$ac_ext
   14863              done
   14864 
   14865 fi
   14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
   14867 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
   14868         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
   14869                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
   14870                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
   14871 
   14872 cat >>confdefs.h <<_ACEOF
   14873 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
   14874 _ACEOF
   14875 
   14876                ax_pthread_joinable_attr_defined=yes
   14877 
   14878 fi
   14879 
   14880         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
   14881 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
   14882 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
   14883   $as_echo_n "(cached) " >&6
   14884 else
   14885   ax_cv_PTHREAD_SPECIAL_FLAGS=no
   14886              case $host_os in
   14887              solaris*)
   14888              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
   14889              ;;
   14890              esac
   14891 
   14892 fi
   14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
   14894 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
   14895         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
   14896                test "x$ax_pthread_special_flags_added" != "xyes"; then :
   14897   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
   14898                ax_pthread_special_flags_added=yes
   14899 fi
   14900 
   14901         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   14902 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   14903 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
   14904   $as_echo_n "(cached) " >&6
   14905 else
   14906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14907 /* end confdefs.h.  */
   14908 #include <pthread.h>
   14909 int
   14910 main ()
   14911 {
   14912 int i = PTHREAD_PRIO_INHERIT;
   14913   ;
   14914   return 0;
   14915 }
   14916 _ACEOF
   14917 if ac_fn_c_try_link "$LINENO"; then :
   14918   ax_cv_PTHREAD_PRIO_INHERIT=yes
   14919 else
   14920   ax_cv_PTHREAD_PRIO_INHERIT=no
   14921 fi
   14922 rm -f core conftest.err conftest.$ac_objext \
   14923     conftest$ac_exeext conftest.$ac_ext
   14924 
   14925 fi
   14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   14927 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   14928         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
   14929                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
   14930 
   14931 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   14932 
   14933                ax_pthread_prio_inherit_defined=yes
   14934 
   14935 fi
   14936 
   14937         CFLAGS="$ax_pthread_save_CFLAGS"
   14938         LIBS="$ax_pthread_save_LIBS"
   14939 
   14940         # More AIX lossage: compile with *_r variant
   14941         if test "x$GCC" != "xyes"; then
   14942             case $host_os in
   14943                 aix*)
   14944                 case "x/$CC" in #(
   14945   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
   14946     #handle absolute path differently from PATH based program lookup
   14947                      case "x$CC" in #(
   14948   x/*) :
   14949     if as_fn_executable_p ${CC}_r; then :
   14950   PTHREAD_CC="${CC}_r"
   14951 fi ;; #(
   14952   *) :
   14953     for ac_prog in ${CC}_r
   14954 do
   14955   # Extract the first word of "$ac_prog", so it can be a program name with args.
   14956 set dummy $ac_prog; ac_word=$2
   14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14958 $as_echo_n "checking for $ac_word... " >&6; }
   14959 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
   14960   $as_echo_n "(cached) " >&6
   14961 else
   14962   if test -n "$PTHREAD_CC"; then
   14963   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   14964 else
   14965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14966 for as_dir in $PATH
   14967 do
   14968   IFS=$as_save_IFS
   14969   test -z "$as_dir" && as_dir=.
   14970     for ac_exec_ext in '' $ac_executable_extensions; do
   14971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14972     ac_cv_prog_PTHREAD_CC="$ac_prog"
   14973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14974     break 2
   14975   fi
   14976 done
   14977   done
   14978 IFS=$as_save_IFS
   14979 
   14980 fi
   14981 fi
   14982 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   14983 if test -n "$PTHREAD_CC"; then
   14984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   14985 $as_echo "$PTHREAD_CC" >&6; }
   14986 else
   14987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14988 $as_echo "no" >&6; }
   14989 fi
   14990 
   14991 
   14992   test -n "$PTHREAD_CC" && break
   14993 done
   14994 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   14995  ;;
   14996 esac ;; #(
   14997   *) :
   14998      ;;
   14999 esac
   15000                 ;;
   15001             esac
   15002         fi
   15003 fi
   15004 
   15005 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   15006 
   15007 
   15008 
   15009 
   15010 
   15011 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   15012 if test "x$ax_pthread_ok" = "xyes"; then
   15013 
   15014 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
   15015 
   15016         :
   15017 else
   15018         ax_pthread_ok=no
   15019 
   15020 fi
   15021 ac_ext=c
   15022 ac_cpp='$CPP $CPPFLAGS'
   15023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15026 
   15027 
   15028 
   15029 LIBS="$PTHREAD_LIBS $LIBS"
   15030 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15031 CC="$PTHREAD_CC"
   15032 
   15033 #
   15034 # We'd like to use sigwait() too
   15035 #
   15036 for ac_func in sigwait pthread_attr_getstacksize pthread_attr_setstacksize
   15037 do :
   15038   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15039 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15040 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15041   cat >>confdefs.h <<_ACEOF
   15042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15043 _ACEOF
   15044 
   15045 fi
   15046 done
   15047 
   15048 
   15049 
   15050 # Check whether --with-locktype was given.
   15051 if test "${with_locktype+set}" = set; then :
   15052   withval=$with_locktype;
   15053 else
   15054   with_locktype="adaptive"
   15055 fi
   15056 
   15057 
   15058 case $with_locktype in #(
   15059   adaptive) :
   15060 
   15061 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
   15062 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
   15063 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15064 /* end confdefs.h.  */
   15065 
   15066 		 #ifndef _GNU_SOURCE
   15067 		 #define _GNU_SOURCE
   15068 		 #endif
   15069 		 #include <pthread.h>
   15070 
   15071 int
   15072 main ()
   15073 {
   15074 
   15075 		 return (PTHREAD_MUTEX_ADAPTIVE_NP);
   15076 
   15077 
   15078   ;
   15079   return 0;
   15080 }
   15081 _ACEOF
   15082 if ac_fn_c_try_compile "$LINENO"; then :
   15083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
   15084 $as_echo "using adaptive lock type" >&6; }
   15085 
   15086 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
   15087 
   15088 else
   15089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15090 $as_echo "using standard lock type" >&6; }
   15091 
   15092 fi
   15093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   15094   standard) :
   15095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15096 $as_echo "using standard lock type" >&6; } ;; #(
   15097   *) :
   15098     as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
   15099         ;;
   15100 esac
   15101 
   15102 for ac_header in sched.h
   15103 do :
   15104   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
   15105 if test "x$ac_cv_header_sched_h" = xyes; then :
   15106   cat >>confdefs.h <<_ACEOF
   15107 #define HAVE_SCHED_H 1
   15108 _ACEOF
   15109 
   15110 fi
   15111 
   15112 done
   15113 
   15114 
   15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
   15116 $as_echo_n "checking for library containing sched_yield... " >&6; }
   15117 if ${ac_cv_search_sched_yield+:} false; then :
   15118   $as_echo_n "(cached) " >&6
   15119 else
   15120   ac_func_search_save_LIBS=$LIBS
   15121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15122 /* end confdefs.h.  */
   15123 
   15124 /* Override any GCC internal prototype to avoid an error.
   15125    Use char because int might match the return type of a GCC
   15126    builtin and then its argument prototype would still apply.  */
   15127 #ifdef __cplusplus
   15128 extern "C"
   15129 #endif
   15130 char sched_yield ();
   15131 int
   15132 main ()
   15133 {
   15134 return sched_yield ();
   15135   ;
   15136   return 0;
   15137 }
   15138 _ACEOF
   15139 for ac_lib in '' rt; do
   15140   if test -z "$ac_lib"; then
   15141     ac_res="none required"
   15142   else
   15143     ac_res=-l$ac_lib
   15144     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15145   fi
   15146   if ac_fn_c_try_link "$LINENO"; then :
   15147   ac_cv_search_sched_yield=$ac_res
   15148 fi
   15149 rm -f core conftest.err conftest.$ac_objext \
   15150     conftest$ac_exeext
   15151   if ${ac_cv_search_sched_yield+:} false; then :
   15152   break
   15153 fi
   15154 done
   15155 if ${ac_cv_search_sched_yield+:} false; then :
   15156 
   15157 else
   15158   ac_cv_search_sched_yield=no
   15159 fi
   15160 rm conftest.$ac_ext
   15161 LIBS=$ac_func_search_save_LIBS
   15162 fi
   15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
   15164 $as_echo "$ac_cv_search_sched_yield" >&6; }
   15165 ac_res=$ac_cv_search_sched_yield
   15166 if test "$ac_res" != no; then :
   15167   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15168 
   15169 fi
   15170 
   15171 for ac_func in sched_yield pthread_yield pthread_yield_np
   15172 do :
   15173   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15175 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15176   cat >>confdefs.h <<_ACEOF
   15177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15178 _ACEOF
   15179 
   15180 fi
   15181 done
   15182 
   15183 
   15184 for ac_header in sys/cpuset.h
   15185 do :
   15186   ac_fn_c_check_header_mongrel "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default"
   15187 if test "x$ac_cv_header_sys_cpuset_h" = xyes; then :
   15188   cat >>confdefs.h <<_ACEOF
   15189 #define HAVE_SYS_CPUSET_H 1
   15190 _ACEOF
   15191 
   15192 fi
   15193 
   15194 done
   15195 
   15196 for ac_header in sys/procset.h
   15197 do :
   15198   ac_fn_c_check_header_mongrel "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
   15199 if test "x$ac_cv_header_sys_procset_h" = xyes; then :
   15200   cat >>confdefs.h <<_ACEOF
   15201 #define HAVE_SYS_PROCSET_H 1
   15202 _ACEOF
   15203 
   15204 fi
   15205 
   15206 done
   15207 
   15208 for ac_func in pthread_setaffinity_np cpuset_setaffinity processor_bind sched_setaffinity
   15209 do :
   15210   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15212 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15213   cat >>confdefs.h <<_ACEOF
   15214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15215 _ACEOF
   15216 
   15217 fi
   15218 done
   15219 
   15220 
   15221 # Look for functions relating to thread naming
   15222 for ac_func in pthread_setname_np pthread_set_name_np
   15223 do :
   15224   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15225 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15226 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15227   cat >>confdefs.h <<_ACEOF
   15228 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15229 _ACEOF
   15230 
   15231 fi
   15232 done
   15233 
   15234 for ac_header in pthread_np.h
   15235 do :
   15236   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
   15237 "
   15238 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
   15239   cat >>confdefs.h <<_ACEOF
   15240 #define HAVE_PTHREAD_NP_H 1
   15241 _ACEOF
   15242 
   15243 fi
   15244 
   15245 done
   15246 
   15247 
   15248 #
   15249 # flockfile is usually provided by pthreads
   15250 #
   15251 for ac_func in flockfile getc_unlocked
   15252 do :
   15253   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15254 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15255 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15256   cat >>confdefs.h <<_ACEOF
   15257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15258 _ACEOF
   15259 
   15260 fi
   15261 done
   15262 
   15263 
   15264 #
   15265 # Look for sysconf to allow detection of the number of processors.
   15266 #
   15267 for ac_func in sysconf
   15268 do :
   15269   ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
   15270 if test "x$ac_cv_func_sysconf" = xyes; then :
   15271   cat >>confdefs.h <<_ACEOF
   15272 #define HAVE_SYSCONF 1
   15273 _ACEOF
   15274 
   15275 fi
   15276 done
   15277 
   15278 
   15279 
   15280 
   15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
   15282 $as_echo_n "checking for libtool... " >&6; }
   15283 
   15284 # Check whether --with-libtool was given.
   15285 if test "${with_libtool+set}" = set; then :
   15286   withval=$with_libtool; use_libtool="$withval"
   15287 else
   15288   use_libtool="no"
   15289 fi
   15290 
   15291 
   15292 case $use_libtool in
   15293 	yes)
   15294 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15295 $as_echo "yes" >&6; }
   15296 
   15297 		O=lo
   15298 		A=la
   15299 		LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
   15300 		LIBTOOL_MODE_COMPILE='--mode=compile'
   15301 		LIBTOOL_MODE_INSTALL='--mode=install'
   15302 		LIBTOOL_MODE_LINK='--mode=link'
   15303 		LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
   15304 		INSTALL_LIBRARY='${INSTALL_PROGRAM}'
   15305 		;;
   15306 	*)
   15307 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15308 $as_echo "no" >&6; }
   15309 		O=o
   15310 		A=a
   15311 		LIBTOOL=
   15312 
   15313 		LIBTOOL_MKDEP_SED=
   15314 		LIBTOOL_MODE_COMPILE=
   15315 		LIBTOOL_MODE_INSTALL=
   15316 		LIBTOOL_MODE_LINK=
   15317 		LIBTOOL_MODE_UNINSTALL=
   15318 		INSTALL_LIBRARY='${INSTALL_DATA}'
   15319 		;;
   15320 esac
   15321 
   15322 
   15323 #
   15324 # If PIC is disabled, shared libraries must also be
   15325 #
   15326 if test "$pic_mode" = "no"; then :
   15327   enable_shared="no"
   15328 fi
   15329 
   15330 CRYPTO=OpenSSL
   15331 
   15332 #
   15333 # was --with-openssl specified?
   15334 #
   15335 
   15336     found=false
   15337     default_ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr/local/opt/openssl /usr/local/opt/libressl /usr"
   15338 
   15339 # Check whether --with-openssl was given.
   15340 if test "${with_openssl+set}" = set; then :
   15341   withval=$with_openssl;
   15342 	    case $with_openssl in #(
   15343   ""|y|ye|yes) :
   15344     ssldirs="$default_ssldirs" ;; #(
   15345   n|no) :
   15346     as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
   15347   *) :
   15348     ssldirs="$withval" ;; #(
   15349   *) :
   15350     ssldirs="$default_ssldirs"
   15351 	     ;;
   15352 esac
   15353 
   15354 else
   15355 
   15356             # if pkg-config is installed and openssl has installed a .pc file,
   15357             # then use that information and don't search ssldirs
   15358 
   15359 pkg_failed=no
   15360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
   15361 $as_echo_n "checking for crypto... " >&6; }
   15362 
   15363 if test -n "$OPENSSL_CFLAGS"; then
   15364     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   15365  elif test -n "$PKG_CONFIG"; then
   15366     if test -n "$PKG_CONFIG" && \
   15367     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   15368   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   15369   ac_status=$?
   15370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15371   test $ac_status = 0; }; then
   15372   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
   15373 		      test "x$?" != "x0" && pkg_failed=yes
   15374 else
   15375   pkg_failed=yes
   15376 fi
   15377  else
   15378     pkg_failed=untried
   15379 fi
   15380 if test -n "$OPENSSL_LIBS"; then
   15381     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   15382  elif test -n "$PKG_CONFIG"; then
   15383     if test -n "$PKG_CONFIG" && \
   15384     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   15385   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   15386   ac_status=$?
   15387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15388   test $ac_status = 0; }; then
   15389   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
   15390 		      test "x$?" != "x0" && pkg_failed=yes
   15391 else
   15392   pkg_failed=yes
   15393 fi
   15394  else
   15395     pkg_failed=untried
   15396 fi
   15397 
   15398 
   15399 
   15400 if test $pkg_failed = yes; then
   15401         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15402 $as_echo "no" >&6; }
   15403 
   15404 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   15405         _pkg_short_errors_supported=yes
   15406 else
   15407         _pkg_short_errors_supported=no
   15408 fi
   15409         if test $_pkg_short_errors_supported = yes; then
   15410 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
   15411         else
   15412 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
   15413         fi
   15414 	# Put the nasty error message in config.log where it belongs
   15415 	echo "$OPENSSL_PKG_ERRORS" >&5
   15416 
   15417 	ssldirs="$default_ssldirs"
   15418 elif test $pkg_failed = untried; then
   15419         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15420 $as_echo "no" >&6; }
   15421 	ssldirs="$default_ssldirs"
   15422 else
   15423 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   15424 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   15425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15426 $as_echo "yes" >&6; }
   15427 	found=true
   15428 fi
   15429 
   15430 
   15431 
   15432 fi
   15433 
   15434 
   15435 
   15436     # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
   15437     # an 'openssl' subdirectory
   15438 
   15439     if ! $found; then :
   15440 
   15441         OPENSSL_INCLUDES=
   15442         for ssldir in $ssldirs; do
   15443             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
   15444 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
   15445 	    if test -f "$ssldir/include/openssl/ssl.h"; then :
   15446 
   15447 		    OPENSSL_INCLUDES="-I$ssldir/include"
   15448                     OPENSSL_LIBS="-L$ssldir/lib -lcrypto"
   15449                     found=true
   15450                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15451 $as_echo "yes" >&6; }
   15452                     break
   15453 
   15454 else
   15455 
   15456 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15457 $as_echo "no" >&6; }
   15458 
   15459 fi
   15460         done
   15461 
   15462         # if the file wasn't found, well, go ahead and try the link anyway -- maybe
   15463         # it will just work!
   15464 
   15465 fi
   15466 
   15467     # try the preprocessor and linker with our new flags,
   15468     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
   15469 
   15470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
   15471 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
   15472     # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES])
   15473 
   15474     save_LIBS="$LIBS"
   15475     save_CPPFLAGS="$CPPFLAGS"
   15476     LIBS="$OPENSSL_LIBS $LIBS"
   15477     CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
   15478     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15479 /* end confdefs.h.  */
   15480 
   15481                 #include <openssl/crypto.h>
   15482 
   15483 int
   15484 main ()
   15485 {
   15486 
   15487 	        OPENSSL_free(NULL);
   15488 
   15489   ;
   15490   return 0;
   15491 }
   15492 _ACEOF
   15493 if ac_fn_c_try_link "$LINENO"; then :
   15494 
   15495             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15496 $as_echo "yes" >&6; }
   15497             :
   15498 
   15499 else
   15500 
   15501             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15502 $as_echo "no" >&6; }
   15503             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15505 as_fn_error $? "OpenSSL/LibreSSL not found
   15506 See \`config.log' for more details" "$LINENO" 5; }
   15507 
   15508 fi
   15509 rm -f core conftest.err conftest.$ac_objext \
   15510     conftest$ac_exeext conftest.$ac_ext
   15511     CPPFLAGS="$save_CPPFLAGS"
   15512     LIBS="$save_LIBS"
   15513 
   15514 
   15515 
   15516 
   15517 
   15518 save_CFLAGS="$CFLAGS"
   15519 save_LIBS="$LIBS"
   15520 save_LDFLAGS="$LDFLAGS"
   15521 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
   15522 LIBS="$LIBS $OPENSSL_LIBS"
   15523 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
   15524 
   15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL" >&5
   15526 $as_echo_n "checking for OpenSSL >= 1.0.0 or LibreSSL... " >&6; }
   15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15528 /* end confdefs.h.  */
   15529 #include <openssl/opensslv.h>
   15530 int
   15531 main ()
   15532 {
   15533 #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)
   15534 		       #error OpenSSL >= 1.0.0 or LibreSSL required
   15535 		       #endif
   15536 
   15537   ;
   15538   return 0;
   15539 }
   15540 _ACEOF
   15541 if ac_fn_c_try_compile "$LINENO"; then :
   15542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15543 $as_echo "yes" >&6; }
   15544 else
   15545   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15547 as_fn_error $? "not found
   15548 See \`config.log' for more details" "$LINENO" 5; }
   15549 fi
   15550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15551 
   15552 #
   15553 # Check for functions added in OpenSSL or LibreSSL
   15554 #
   15555 
   15556 for ac_func in CRYPTO_zalloc
   15557 do :
   15558   ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
   15559 if test "x$ac_cv_func_CRYPTO_zalloc" = xyes; then :
   15560   cat >>confdefs.h <<_ACEOF
   15561 #define HAVE_CRYPTO_ZALLOC 1
   15562 _ACEOF
   15563 
   15564 fi
   15565 done
   15566 
   15567 for ac_func in EVP_CIPHER_CTX_new EVP_CIPHER_CTX_free
   15568 do :
   15569   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15570 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15571 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15572   cat >>confdefs.h <<_ACEOF
   15573 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15574 _ACEOF
   15575 
   15576 fi
   15577 done
   15578 
   15579 for ac_func in EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset
   15580 do :
   15581   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15583 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15584   cat >>confdefs.h <<_ACEOF
   15585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15586 _ACEOF
   15587 
   15588 fi
   15589 done
   15590 
   15591 for ac_func in HMAC_CTX_new HMAC_CTX_free HMAC_CTX_reset HMAC_CTX_get_md
   15592 do :
   15593   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15594 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15595 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15596   cat >>confdefs.h <<_ACEOF
   15597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15598 _ACEOF
   15599 
   15600 fi
   15601 done
   15602 
   15603 
   15604 #
   15605 # Check for algorithm support in OpenSSL
   15606 #
   15607 
   15608 for ac_func in ECDSA_sign ECDSA_verify
   15609 do :
   15610   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15611 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15612 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15613   cat >>confdefs.h <<_ACEOF
   15614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15615 _ACEOF
   15616  :
   15617 else
   15618   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15620 as_fn_error $? "ECDSA support in OpenSSL is mandatory.
   15621 See \`config.log' for more details" "$LINENO" 5; }
   15622 fi
   15623 done
   15624 
   15625 
   15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
   15627 $as_echo_n "checking for ECDSA P-256 support... " >&6; }
   15628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15629 /* end confdefs.h.  */
   15630 #include <openssl/evp.h>
   15631 		       #include <openssl/ec.h>
   15632 int
   15633 main ()
   15634 {
   15635 EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
   15636   ;
   15637   return 0;
   15638 }
   15639 _ACEOF
   15640 if ac_fn_c_try_compile "$LINENO"; then :
   15641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15642 $as_echo "yes" >&6; }
   15643 else
   15644   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15646 as_fn_error $? "not found.  ECDSA P-256 support in OpenSSL is mandatory.
   15647 See \`config.log' for more details" "$LINENO" 5; }
   15648 fi
   15649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15650 
   15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
   15652 $as_echo_n "checking for ECDSA P-384 support... " >&6; }
   15653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15654 /* end confdefs.h.  */
   15655 #include <openssl/evp.h>
   15656 		       #include <openssl/ec.h>
   15657 int
   15658 main ()
   15659 {
   15660 EC_KEY *key = EC_KEY_new_by_curve_name(NID_secp384r1);
   15661   ;
   15662   return 0;
   15663 }
   15664 _ACEOF
   15665 if ac_fn_c_try_compile "$LINENO"; then :
   15666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15667 $as_echo "yes" >&6; }
   15668 else
   15669   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15671 as_fn_error $? "not found.  ECDSA P-384 support in OpenSSL is mandatory.
   15672 See \`config.log' for more details" "$LINENO" 5; }
   15673 fi
   15674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15675 
   15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
   15677 $as_echo_n "checking for Ed25519 support... " >&6; }
   15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15679 /* end confdefs.h.  */
   15680 #include <openssl/evp.h>
   15681 		       #include <openssl/ec.h>
   15682 int
   15683 main ()
   15684 {
   15685 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED25519);
   15686   ;
   15687   return 0;
   15688 }
   15689 _ACEOF
   15690 if ac_fn_c_try_compile "$LINENO"; then :
   15691 
   15692 $as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
   15693 
   15694      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15695 $as_echo "yes" >&6; }
   15696 else
   15697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15698 $as_echo "no" >&6; }
   15699 fi
   15700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15701 
   15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
   15703 $as_echo_n "checking for Ed448 support... " >&6; }
   15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
   15705 $as_echo "broken" >&6; }
   15706 #AC_COMPILE_IFELSE(
   15707 #    [AC_LANG_PROGRAM([[#include <openssl/evp.h>
   15708 #		       #include <openssl/ec.h>]],
   15709 #		     [[EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED448);]])],
   15710 #    [AC_DEFINE([HAVE_OPENSSL_ED448], [1], [define if OpenSSL supports Ed448])
   15711 #     AC_MSG_RESULT([yes])],
   15712 #    [AC_MSG_RESULT([no])])
   15713 
   15714 #
   15715 # Check for OpenSSL SHA-1 support
   15716 #
   15717 for ac_func in EVP_sha1
   15718 do :
   15719   ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
   15720 if test "x$ac_cv_func_EVP_sha1" = xyes; then :
   15721   cat >>confdefs.h <<_ACEOF
   15722 #define HAVE_EVP_SHA1 1
   15723 _ACEOF
   15724  :
   15725 else
   15726   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15728 as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
   15729 See \`config.log' for more details" "$LINENO" 5; }
   15730 fi
   15731 done
   15732 
   15733 
   15734 #
   15735 # Check for OpenSSL SHA-2 support
   15736 #
   15737 for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
   15738 do :
   15739   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15740 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15741 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15742   cat >>confdefs.h <<_ACEOF
   15743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15744 _ACEOF
   15745  :
   15746 else
   15747   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15749 as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
   15750 See \`config.log' for more details" "$LINENO" 5; }
   15751 fi
   15752 done
   15753 
   15754 
   15755 #
   15756 # Check for OpenSSL AES support
   15757 #
   15758 for ac_func in EVP_aes_128_ecb EVP_aes_192_ecb EVP_aes_256_ecb
   15759 do :
   15760   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15761 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15762 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15763   cat >>confdefs.h <<_ACEOF
   15764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15765 _ACEOF
   15766  :
   15767 else
   15768   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15770 as_fn_error $? "AES support in OpenSSL is mandatory.
   15771 See \`config.log' for more details" "$LINENO" 5; }
   15772 fi
   15773 done
   15774 
   15775 
   15776 #
   15777 # Check for OpenSSL 1.1.x/LibreSSL functions
   15778 #
   15779 for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key
   15780 do :
   15781   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15782 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15783 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15784   cat >>confdefs.h <<_ACEOF
   15785 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15786 _ACEOF
   15787 
   15788 fi
   15789 done
   15790 
   15791 
   15792 #
   15793 # Check whether FIPS mode is available and whether we should enable it
   15794 #
   15795 # Check whether --enable-fips-mode was given.
   15796 if test "${enable_fips_mode+set}" = set; then :
   15797   enableval=$enable_fips_mode;
   15798 else
   15799   enable_fips_mode="no"
   15800 fi
   15801 
   15802 
   15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
   15804 $as_echo_n "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
   15805 case $enable_fips_mode in #(
   15806   yes) :
   15807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15808 $as_echo "yes" >&6; }
   15809 		for ac_func in FIPS_mode
   15810 do :
   15811   ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
   15812 if test "x$ac_cv_func_FIPS_mode" = xyes; then :
   15813   cat >>confdefs.h <<_ACEOF
   15814 #define HAVE_FIPS_MODE 1
   15815 _ACEOF
   15816 
   15817 else
   15818   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15820 as_fn_error $? "OpenSSL FIPS mode requested but not available.
   15821 See \`config.log' for more details" "$LINENO" 5; }
   15822 fi
   15823 done
   15824  ;; #(
   15825   no) :
   15826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15827 $as_echo "no" >&6; } ;; #(
   15828   *) :
   15829      ;;
   15830 esac
   15831 
   15832 CFLAGS="$save_CFLAGS"
   15833 LIBS="$save_LIBS"
   15834 LDFLAGS="$save_LDFLAGS"
   15835 
   15836 
   15837 
   15838 
   15839 
   15840 #
   15841 # Client Cookie algorithm choice
   15842 #
   15843 
   15844 # Check whether --with-cc-alg was given.
   15845 if test "${with_cc_alg+set}" = set; then :
   15846   withval=$with_cc_alg; :
   15847 else
   15848   with_cc_alg="aes"
   15849 fi
   15850 
   15851 
   15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the algorithm for Client Cookie" >&5
   15853 $as_echo_n "checking for the algorithm for Client Cookie... " >&6; }
   15854 case $with_cc_alg in #(
   15855   sha1|SHA1) :
   15856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha1" >&5
   15857 $as_echo "sha1" >&6; }
   15858 
   15859 $as_echo "#define HMAC_SHA1_CC 1" >>confdefs.h
   15860  ;; #(
   15861   sha256|SHA256) :
   15862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha256" >&5
   15863 $as_echo "sha256" >&6; }
   15864 
   15865 $as_echo "#define HMAC_SHA256_CC 1" >>confdefs.h
   15866  ;; #(
   15867   aes|AES|auto) :
   15868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: aes" >&5
   15869 $as_echo "aes" >&6; }
   15870 
   15871 $as_echo "#define AES_CC 1" >>confdefs.h
   15872  ;; #(
   15873   *) :
   15874     as_fn_error $? "Invalid $with_cc_alg algorithm for Client Cookie" "$LINENO" 5 ;;
   15875 esac
   15876 
   15877 
   15878 PKCS11_TOOLS=
   15879 PKCS11_TEST=
   15880 #
   15881 # was --enable-native-pkcs11 specified?
   15882 #
   15883 # Check whether --enable-native-pkcs11 was given.
   15884 if test "${enable_native_pkcs11+set}" = set; then :
   15885   enableval=$enable_native_pkcs11; :
   15886 else
   15887   enable_native_pkcs11="no"
   15888 fi
   15889 
   15890 
   15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 for Public-Key Cryptography" >&5
   15892 $as_echo_n "checking for PKCS11 for Public-Key Cryptography... " >&6; }
   15893 case $enable_native_pkcs11 in #(
   15894   no) :
   15895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15896 $as_echo "no" >&6; } ;; #(
   15897   yes) :
   15898     PKCS11_TOOLS=pkcs11
   15899 	       PKCS11_TEST=pkcs11
   15900 	       CRYPTO=pkcs11
   15901 	       if $use_threads; then :
   15902   :
   15903 else
   15904   as_fn_error $? "PKCS11 requires threading support" "$LINENO" 5
   15905 fi
   15906 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15907 $as_echo "yes" >&6; }
   15908 	       for ac_func in getpassphrase
   15909 do :
   15910   ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
   15911 if test "x$ac_cv_func_getpassphrase" = xyes; then :
   15912   cat >>confdefs.h <<_ACEOF
   15913 #define HAVE_GETPASSPHRASE 1
   15914 _ACEOF
   15915 
   15916 fi
   15917 done
   15918 
   15919 	       ;; #(
   15920   *) :
   15921      ;;
   15922 esac
   15923 
   15924 
   15925 
   15926 case $CRYPTO in #(
   15927   pkcs11) :
   15928 
   15929 $as_echo "#define USE_PKCS11 1" >>confdefs.h
   15930  ;; #(
   15931   *) :
   15932 
   15933 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
   15934  ;;
   15935 esac
   15936 
   15937 # preparation for automake
   15938 # AM_CONDITIONAL([PKCS11_TOOLS], [test "$with_native_pkcs11" = "yes"])
   15939 
   15940 #
   15941 # was --with-pkcs11 specified?
   15942 #
   15943 
   15944 # Check whether --with-pkcs11 was given.
   15945 if test "${with_pkcs11+set}" = set; then :
   15946   withval=$with_pkcs11; :
   15947 else
   15948   with_pkcs11="undefined"
   15949 fi
   15950 
   15951 
   15952 case $with_pkcs11 in #(
   15953   yes|auto) :
   15954     as_fn_error $? "--with-pkcs11 needs explicit path to the PKCS11 library" "$LINENO" 5 ;; #(
   15955   no|undefined) :
   15956     with_pkcs11="undefined" ;; #(
   15957   *) :
   15958      ;;
   15959 esac
   15960 
   15961 cat >>confdefs.h <<_ACEOF
   15962 #define PK11_LIB_LOCATION "$with_pkcs11"
   15963 _ACEOF
   15964 
   15965 
   15966 # for PKCS11 benchmarks
   15967 
   15968 have_clock_gt=no
   15969 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
   15970 if test "x$ac_cv_func_clock_gettime" = xyes; then :
   15971   have_clock_gt=yes
   15972 fi
   15973 
   15974 if test "no" = "$have_clock_gt"; then
   15975 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
   15976 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
   15977 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
   15978   $as_echo_n "(cached) " >&6
   15979 else
   15980   ac_check_lib_save_LIBS=$LIBS
   15981 LIBS="-lrt  $LIBS"
   15982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15983 /* end confdefs.h.  */
   15984 
   15985 /* Override any GCC internal prototype to avoid an error.
   15986    Use char because int might match the return type of a GCC
   15987    builtin and then its argument prototype would still apply.  */
   15988 #ifdef __cplusplus
   15989 extern "C"
   15990 #endif
   15991 char clock_gettime ();
   15992 int
   15993 main ()
   15994 {
   15995 return clock_gettime ();
   15996   ;
   15997   return 0;
   15998 }
   15999 _ACEOF
   16000 if ac_fn_c_try_link "$LINENO"; then :
   16001   ac_cv_lib_rt_clock_gettime=yes
   16002 else
   16003   ac_cv_lib_rt_clock_gettime=no
   16004 fi
   16005 rm -f core conftest.err conftest.$ac_objext \
   16006     conftest$ac_exeext conftest.$ac_ext
   16007 LIBS=$ac_check_lib_save_LIBS
   16008 fi
   16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
   16010 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
   16011 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
   16012   have_clock_gt=rt
   16013 fi
   16014 
   16015 fi
   16016 
   16017 if test "no" != "$have_clock_gt"; then
   16018 
   16019 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
   16020 
   16021 fi
   16022 
   16023 if test "rt" = "$have_clock_gt"; then
   16024 	LIBS="-lrt $LIBS"
   16025 fi
   16026 
   16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
   16028 $as_echo_n "checking for GSSAPI library... " >&6; }
   16029 
   16030 # Check whether --with-gssapi was given.
   16031 if test "${with_gssapi+set}" = set; then :
   16032   withval=$with_gssapi; use_gssapi="$withval"
   16033 else
   16034   use_gssapi="yes"
   16035 fi
   16036 
   16037 
   16038 # first try using krb5-config, if that does not work then fall back to "yes" method.
   16039 
   16040 case "$use_gssapi" in
   16041 */krb5-config|krb5-config)
   16042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
   16043 $as_echo "trying $use_gssapi" >&6; }
   16044     if test krb5-config = "$use_gssapi"
   16045     then
   16046 	# Extract the first word of "$use_gssapi", so it can be a program name with args.
   16047 set dummy $use_gssapi; ac_word=$2
   16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16049 $as_echo_n "checking for $ac_word... " >&6; }
   16050 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
   16051   $as_echo_n "(cached) " >&6
   16052 else
   16053   case $KRB5_CONFIG in
   16054   [\\/]* | ?:[\\/]*)
   16055   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
   16056   ;;
   16057   *)
   16058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16059 for as_dir in $PATH
   16060 do
   16061   IFS=$as_save_IFS
   16062   test -z "$as_dir" && as_dir=.
   16063     for ac_exec_ext in '' $ac_executable_extensions; do
   16064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16065     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   16066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16067     break 2
   16068   fi
   16069 done
   16070   done
   16071 IFS=$as_save_IFS
   16072 
   16073   ;;
   16074 esac
   16075 fi
   16076 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
   16077 if test -n "$KRB5_CONFIG"; then
   16078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
   16079 $as_echo "$KRB5_CONFIG" >&6; }
   16080 else
   16081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16082 $as_echo "no" >&6; }
   16083 fi
   16084 
   16085 
   16086     else
   16087 	KRB5_CONFIG="$use_gssapi"
   16088     fi
   16089     gssapi_cflags=`$KRB5_CONFIG --cflags gssapi`
   16090     gssapi_libs=`$KRB5_CONFIG --libs gssapi`
   16091     saved_cppflags="$CPPFLAGS"
   16092     CPPFLAGS="$gssapi_cflags $CPPFLAGS"
   16093     for ac_header in gssapi.h gssapi/gssapi.h
   16094 do :
   16095   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16096 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16097 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16098   cat >>confdefs.h <<_ACEOF
   16099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16100 _ACEOF
   16101  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   16102 fi
   16103 
   16104 done
   16105 
   16106     if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   16107 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
   16108 $as_echo "krb5-config: gssapi.h not found" >&6; }
   16109 	CPPFLAGS="$saved_cppflags"
   16110 	use_gssapi="yes"
   16111     else
   16112 	for ac_header in krb5/krb5.h krb5.h
   16113 do :
   16114   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16115 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16116 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16117   cat >>confdefs.h <<_ACEOF
   16118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16119 _ACEOF
   16120  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   16121 fi
   16122 
   16123 done
   16124 
   16125 	if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   16126 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
   16127 $as_echo "krb5-config: krb5.h not found" >&6; }
   16128 	    CPPFLAGS="$saved_cppflags"
   16129 	    use_gssapi="yes"
   16130 	else
   16131 	    CPPFLAGS="$saved_cppflags"
   16132 	    saved_libs="$LIBS"
   16133 	    LIBS=$gssapi_libs
   16134 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
   16135 $as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
   16136 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16137 /* end confdefs.h.  */
   16138 
   16139 int
   16140 main ()
   16141 {
   16142 gss_acquire_cred();krb5_init_context()
   16143   ;
   16144   return 0;
   16145 }
   16146 _ACEOF
   16147 if ac_fn_c_try_link "$LINENO"; then :
   16148   gssapi_linked=yes
   16149 else
   16150   gssapi_linked=no
   16151 fi
   16152 rm -f core conftest.err conftest.$ac_objext \
   16153     conftest$ac_exeext conftest.$ac_ext
   16154 	    case $gssapi_linked in
   16155 		yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
   16156 $as_echo "krb5-config: linked" >&6; };;
   16157 		no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
   16158 $as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
   16159 		    use_gssapi="yes"
   16160 		    ;;
   16161 	    esac
   16162 	    LIBS=$saved_libs
   16163 	fi
   16164     fi
   16165     if test "yes" = "$use_gssapi"; then
   16166 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
   16167 $as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
   16168     fi
   16169     ;;
   16170 esac
   16171 
   16172 case "$host" in
   16173 *darwin*)
   16174 	if test "yes" = "$use_gssapi"
   16175 	then
   16176 		use_gssapi=framework
   16177 	fi
   16178 	;;
   16179 esac
   16180 
   16181 # gssapi is just the framework, we really require kerberos v5, so
   16182 # look for those headers (the gssapi headers must be there, too)
   16183 # The problem with this implementation is that it doesn't allow
   16184 # for the specification of gssapi and krb5 headers in different locations,
   16185 # which probably ought to be fixed although fixing might raise the issue of
   16186 # trying to build with incompatible versions of gssapi and krb5.
   16187 if test "yes" = "$use_gssapi"
   16188 then
   16189 	# first, deal with the obvious
   16190 	if test \( -f /usr/include/kerberosv5/krb5.h -o \
   16191 		   -f /usr/include/krb5/krb5.h -o \
   16192 		   -f /usr/include/krb5.h \)   -a \
   16193 		\( -f /usr/include/gssapi.h -o \
   16194 		   -f /usr/include/gssapi/gssapi.h \)
   16195 	then
   16196 		use_gssapi=/usr
   16197 	else
   16198 	    krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
   16199 	    for d in $krb5dirs
   16200 	    do
   16201 		if test -f $d/include/gssapi/gssapi_krb5.h -o \
   16202 			-f $d/include/krb5.h
   16203 		then
   16204 			if test -f $d/include/gssapi/gssapi.h -o \
   16205 				-f $d/include/gssapi.h
   16206 			then
   16207 				use_gssapi=$d
   16208 				break
   16209 			fi
   16210 		fi
   16211 		use_gssapi="no"
   16212 	    done
   16213 	fi
   16214 fi
   16215 
   16216 case "$use_gssapi" in
   16217 	no)
   16218 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   16219 $as_echo "disabled" >&6; }
   16220 		USE_GSSAPI=''
   16221 		;;
   16222 	yes)
   16223 		as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
   16224 		;;
   16225 	*/krb5-config|krb5-config)
   16226 		USE_GSSAPI='-DGSSAPI'
   16227 		DST_GSSAPI_INC="$gssapi_cflags"
   16228 		DNS_GSSAPI_LIBS="$gssapi_libs"
   16229 		;;
   16230 	framework)
   16231 		USE_GSSAPI='-DGSSAPI'
   16232 		ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
   16233 		ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
   16234 		DNS_GSSAPI_LIBS="-framework Kerberos"
   16235 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
   16236 $as_echo "framework" >&6; }
   16237 		;;
   16238 
   16239 	*)
   16240 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
   16241 $as_echo "looking in $use_gssapi/lib" >&6; }
   16242 		USE_GSSAPI='-DGSSAPI'
   16243 		saved_cppflags="$CPPFLAGS"
   16244 		CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
   16245 		for ac_header in gssapi.h gssapi/gssapi.h
   16246 do :
   16247   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16248 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16249 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16250   cat >>confdefs.h <<_ACEOF
   16251 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16252 _ACEOF
   16253  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   16254 		     gssapi_hack="#include <$ac_header>"
   16255 fi
   16256 
   16257 done
   16258 
   16259 
   16260 		if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   16261 		    as_fn_error $? "gssapi.h not found" "$LINENO" 5
   16262 		fi
   16263 
   16264 		for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
   16265 do :
   16266   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16267 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16268 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16269   cat >>confdefs.h <<_ACEOF
   16270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16271 _ACEOF
   16272  ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
   16273 		     gssapi_krb5_hack="#include <$ac_header>"
   16274 fi
   16275 
   16276 done
   16277 
   16278 
   16279 		for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
   16280 do :
   16281   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16282 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16283 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16284   cat >>confdefs.h <<_ACEOF
   16285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16286 _ACEOF
   16287  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   16288 		    krb5_hack="#include <$ac_header>"
   16289 fi
   16290 
   16291 done
   16292 
   16293 
   16294 		if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   16295 		    as_fn_error $? "krb5.h not found" "$LINENO" 5
   16296 		fi
   16297 
   16298 		#
   16299 		# XXXDCL This probably doesn't work right on all systems.
   16300 		# It will need to be worked on as problems become evident.
   16301 		#
   16302 		# Essentially the problems here relate to two different
   16303 		# areas.  The first area is building with either KTH
   16304 		# or MIT Kerberos, particularly when both are present on
   16305 		# the machine.  The other is static versus dynamic linking.
   16306 		#
   16307 		# On the KTH vs MIT issue, Both have libkrb5 that can mess
   16308 		# up the works if one implementation ends up trying to
   16309 		# use the other's krb.  This is unfortunately a situation
   16310 		# that very easily arises.
   16311 		#
   16312 		# Dynamic linking when the dependency information is built
   16313 		# into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
   16314 		# all such problems go away, but when that setup is not
   16315 		# present, because either the dynamic libraries lack
   16316 		# dependencies or static linking is being done, then the
   16317 		# problems start to show up.
   16318 		saved_libs="$LIBS"
   16319 		for TRY_LIBS in \
   16320 		    "-lgssapi_krb5" \
   16321 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
   16322 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
   16323 		    "-lgssapi" \
   16324 		    "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
   16325 		    "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \
   16326 		    "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \
   16327 		    "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \
   16328 		    "-lgss -lkrb5"
   16329 		do
   16330 		    # Note that this does not include $saved_libs, because
   16331 		    # on FreeBSD machines this configure script has added
   16332 		    # -L/usr/local/lib to LIBS, which can make the
   16333 		    # -lgssapi_krb5 test succeed with shared libraries even
   16334 		    # when you are trying to build with KTH in /usr/lib.
   16335 		    if test "/usr" = "$use_gssapi"
   16336 		    then
   16337 			    LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS"
   16338 		    else
   16339 			    LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS"
   16340 		    fi
   16341 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
   16342 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
   16343 		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16344 /* end confdefs.h.  */
   16345 
   16346 #include <sys/types.h>
   16347 $gssapi_hack
   16348 $gssapi_krb5_hack
   16349 $krb5_hack
   16350 
   16351 int
   16352 main ()
   16353 {
   16354 gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
   16355 #if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
   16356 gsskrb5_register_acceptor_identity(NULL);
   16357 #endif
   16358   ;
   16359   return 0;
   16360 }
   16361 _ACEOF
   16362 if ac_fn_c_try_link "$LINENO"; then :
   16363   gssapi_linked=yes
   16364 else
   16365   gssapi_linked=no
   16366 fi
   16367 rm -f core conftest.err conftest.$ac_objext \
   16368     conftest$ac_exeext conftest.$ac_ext
   16369 		    case $gssapi_linked in
   16370 		    yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16371 $as_echo "yes" >&6; }; break ;;
   16372 		    no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16373 $as_echo "no" >&6; } ;;
   16374 		    esac
   16375 		done
   16376 
   16377 		CPPFLAGS="$saved_cppflags"
   16378 
   16379 		case $gssapi_linked in
   16380 		no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
   16381 		esac
   16382 
   16383 		#
   16384 		# XXXDCL Major kludge.  Tries to cope with KTH in /usr/lib
   16385 		# but MIT in /usr/local/lib and trying to build with KTH.
   16386 		# /usr/local/lib can end up earlier on the link lines.
   16387 		# Like most kludges, this one is not only inelegant it
   16388 		# is also likely to be the wrong thing to do at least as
   16389 		# many times as it is the right thing.  Something better
   16390 		# needs to be done.
   16391 		#
   16392 		if test "/usr" = "$use_gssapi" -a \
   16393 			-f /usr/local/lib/libkrb5.a; then
   16394 		    FIX_KTH_VS_MIT=yes
   16395 		fi
   16396 
   16397 		case "$FIX_KTH_VS_MIT" in
   16398 		yes)
   16399 		    case "$enable_static_linking" in
   16400 		    yes) gssapi_lib_suffix=".a"  ;;
   16401 		    *)   gssapi_lib_suffix=".so" ;;
   16402 		    esac
   16403 
   16404 		    for lib in $LIBS; do
   16405 			case $lib in
   16406 			-L*)
   16407 			    ;;
   16408 			-l*)
   16409 			    new_lib=`echo $lib |
   16410 				     sed -e s%^-l%$use_gssapi/lib/lib% \
   16411 					 -e s%$%$gssapi_lib_suffix%`
   16412 			    NEW_LIBS="$NEW_LIBS $new_lib"
   16413 			    ;;
   16414 			*)
   16415 			   as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
   16416 			    ;;
   16417 			esac
   16418 		    done
   16419 		    LIBS="$NEW_LIBS"
   16420 		    ;;
   16421 		esac
   16422 
   16423 		DST_GSSAPI_INC="-I$use_gssapi/include"
   16424 		DNS_GSSAPI_LIBS="$LIBS"
   16425 
   16426 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
   16427 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
   16428 		LIBS="$saved_libs"
   16429 		;;
   16430 esac
   16431 
   16432 
   16433 
   16434 
   16435 
   16436 
   16437 
   16438 
   16439 
   16440 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
   16441 
   16442 #
   16443 # Applications linking with libdns also need to link with these libraries.
   16444 #
   16445 
   16446 
   16447 
   16448 #
   16449 # was --with-lmdb specified?
   16450 #
   16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
   16452 $as_echo_n "checking for lmdb library... " >&6; }
   16453 
   16454 # Check whether --with-lmdb was given.
   16455 if test "${with_lmdb+set}" = set; then :
   16456   withval=$with_lmdb; use_lmdb="$withval"
   16457 else
   16458   use_lmdb="auto"
   16459 fi
   16460 
   16461 
   16462 have_lmdb=""
   16463 case "$use_lmdb" in
   16464 	no)
   16465 		lmdb_libs=""
   16466 		;;
   16467 	auto|yes)
   16468 		for d in /usr /usr/local /opt/local
   16469 		do
   16470 			if test -f "${d}/include/lmdb.h"
   16471 			then
   16472 				if test ${d} != /usr
   16473 				then
   16474 					lmdb_cflags="-I ${d}/include"
   16475 					LIBS="$LIBS -L${d}/lib"
   16476 				fi
   16477 				have_lmdb="yes"
   16478 			fi
   16479 		done
   16480 		;;
   16481 	*)
   16482 		if test -f "${use_lmdb}/include/lmdb.h"
   16483 		then
   16484 			lmdb_cflags="-I${use_lmdb}/include"
   16485 			LIBS="$LIBS -L${use_lmdb}/lib"
   16486 			have_lmdb="yes"
   16487 		else
   16488 			as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
   16489 		fi
   16490 		;;
   16491 esac
   16492 
   16493 if test "X${have_lmdb}" != "X"
   16494 then
   16495 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16496 $as_echo "yes" >&6; }
   16497 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
   16498 $as_echo_n "checking for library containing mdb_env_create... " >&6; }
   16499 if ${ac_cv_search_mdb_env_create+:} false; then :
   16500   $as_echo_n "(cached) " >&6
   16501 else
   16502   ac_func_search_save_LIBS=$LIBS
   16503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16504 /* end confdefs.h.  */
   16505 
   16506 /* Override any GCC internal prototype to avoid an error.
   16507    Use char because int might match the return type of a GCC
   16508    builtin and then its argument prototype would still apply.  */
   16509 #ifdef __cplusplus
   16510 extern "C"
   16511 #endif
   16512 char mdb_env_create ();
   16513 int
   16514 main ()
   16515 {
   16516 return mdb_env_create ();
   16517   ;
   16518   return 0;
   16519 }
   16520 _ACEOF
   16521 for ac_lib in '' lmdb; do
   16522   if test -z "$ac_lib"; then
   16523     ac_res="none required"
   16524   else
   16525     ac_res=-l$ac_lib
   16526     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16527   fi
   16528   if ac_fn_c_try_link "$LINENO"; then :
   16529   ac_cv_search_mdb_env_create=$ac_res
   16530 fi
   16531 rm -f core conftest.err conftest.$ac_objext \
   16532     conftest$ac_exeext
   16533   if ${ac_cv_search_mdb_env_create+:} false; then :
   16534   break
   16535 fi
   16536 done
   16537 if ${ac_cv_search_mdb_env_create+:} false; then :
   16538 
   16539 else
   16540   ac_cv_search_mdb_env_create=no
   16541 fi
   16542 rm conftest.$ac_ext
   16543 LIBS=$ac_func_search_save_LIBS
   16544 fi
   16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
   16546 $as_echo "$ac_cv_search_mdb_env_create" >&6; }
   16547 ac_res=$ac_cv_search_mdb_env_create
   16548 if test "$ac_res" != no; then :
   16549   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16550 
   16551 else
   16552   as_fn_error $? "found lmdb include but not library." "$LINENO" 5
   16553 			have_lmdb=""
   16554 fi
   16555 
   16556 elif test "X$use_lmdb" = Xyes
   16557 then
   16558 	as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
   16559 else
   16560 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16561 $as_echo "no" >&6; }
   16562 fi
   16563 
   16564 NZD_TOOLS=""
   16565 NZDSRCS=
   16566 NZDTARGETS=
   16567 if test "X${have_lmdb}" != "X"
   16568 then
   16569 	CFLAGS="$CFLAGS $lmdb_cflags"
   16570 
   16571 $as_echo "#define HAVE_LMDB 1" >>confdefs.h
   16572 
   16573 	NZD_TOOLS="nzd"
   16574 	NZDSRCS='${NZDSRCS}'
   16575 	NZDTARGETS='${NZDTARGETS}'
   16576 fi
   16577 
   16578 
   16579 
   16580 
   16581 #
   16582 # was --with-libxml2 specified?
   16583 #
   16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5
   16585 $as_echo_n "checking for libxml2 library... " >&6; }
   16586 
   16587 # Check whether --with-libxml2 was given.
   16588 if test "${with_libxml2+set}" = set; then :
   16589   withval=$with_libxml2; use_libxml2="$withval"
   16590 else
   16591   use_libxml2="auto"
   16592 fi
   16593 
   16594 
   16595 case "$use_libxml2" in
   16596 	no)
   16597 		DST_LIBXML2_INC=""
   16598 		;;
   16599 	auto|yes)
   16600 		case X`(xml2-config --version) 2>/dev/null` in
   16601 		X2.[6789].*)
   16602 			libxml2_libs=`xml2-config --libs`
   16603 			libxml2_cflags=`xml2-config --cflags`
   16604 			;;
   16605 		*)
   16606 			if test "yes" = "$use_libxml2" ; then
   16607 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16608 $as_echo "no" >&6; }
   16609 				as_fn_error $? "required libxml2 version not available" "$LINENO" 5
   16610 			else
   16611 				libxml2_libs=
   16612 				libxml2_cflags=
   16613 			fi
   16614 			;;
   16615 		esac
   16616 		;;
   16617 	*)
   16618 		if test -f "$use_libxml2/bin/xml2-config" ; then
   16619 			libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
   16620 			libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
   16621 		fi
   16622 		;;
   16623 esac
   16624 
   16625 if test "X$libxml2_libs" != "X"
   16626 then
   16627 	CFLAGS="$CFLAGS $libxml2_cflags"
   16628 	LIBS="$LIBS $libxml2_libs"
   16629 	#
   16630 	# Sanity check xml2-config output.
   16631 	#
   16632 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16633 /* end confdefs.h.  */
   16634 #include <libxml/xmlwriter.h>
   16635 int
   16636 main ()
   16637 {
   16638 return(xmlTextWriterStartElement(NULL, NULL));
   16639   ;
   16640   return 0;
   16641 }
   16642 _ACEOF
   16643 if ac_fn_c_try_link "$LINENO"; then :
   16644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16645 $as_echo "yes" >&6; }
   16646 else
   16647   as_fn_error $? "xml2-config returns badness" "$LINENO" 5
   16648 fi
   16649 rm -f core conftest.err conftest.$ac_objext \
   16650     conftest$ac_exeext conftest.$ac_ext
   16651 
   16652 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
   16653 
   16654 	XMLSTATS=1
   16655 else
   16656 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16657 $as_echo "no" >&6; }
   16658 fi
   16659 
   16660 
   16661 #
   16662 # was --with-libjson specified?
   16663 #
   16664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json library" >&5
   16665 $as_echo_n "checking for json library... " >&6; }
   16666 
   16667 # Check whether --with-libjson was given.
   16668 if test "${with_libjson+set}" = set; then :
   16669   withval=$with_libjson; use_libjson="$withval"
   16670 else
   16671   use_libjson="auto"
   16672 fi
   16673 
   16674 
   16675 have_libjson=""
   16676 have_libjson_c=""
   16677 case "$use_libjson" in
   16678 	no)
   16679 		libjson_libs=""
   16680 		;;
   16681 	auto|yes)
   16682 		for d in /usr /usr/local /opt/local
   16683 		do
   16684 			if test -f "${d}/include/json/json.h"
   16685 			then
   16686 				if test ${d} != /usr
   16687 				then
   16688 					libjson_cflags="-I ${d}/include"
   16689 					LIBS="$LIBS -L${d}/lib"
   16690 				fi
   16691 				have_libjson="yes"
   16692 			elif test -f "${d}/include/json-c/json.h"
   16693 			then
   16694 				if test ${d} != /usr
   16695 				then
   16696 					libjson_cflags="-I ${d}/include"
   16697 					LIBS="$LIBS -L${d}/lib"
   16698 				fi
   16699 				have_libjson="yes"
   16700 				have_libjson_c="yes"
   16701 			fi
   16702 		done
   16703 		;;
   16704 	*)
   16705 		if test -f "${use_libjson}/include/json/json.h"
   16706 		then
   16707 			libjson_cflags="-I${use_libjson}/include"
   16708 			LIBS="$LIBS -L${use_libjson}/lib"
   16709 			have_libjson="yes"
   16710 		elif test -f "${use_libjson}/include/json-c/json.h"
   16711 		then
   16712 			libjson_cflags="-I${use_libjson}/include"
   16713 			LIBS="$LIBS -L${use_libjson}/lib"
   16714 			have_libjson="yes"
   16715 			have_libjson_c="yes"
   16716 		else
   16717 			as_fn_error $? "$use_libjson/include/json{,-c}/json.h not found." "$LINENO" 5
   16718 		fi
   16719 		;;
   16720 esac
   16721 
   16722 if test "X${have_libjson}" != "X"
   16723 then
   16724 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16725 $as_echo "yes" >&6; }
   16726 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_new_int64" >&5
   16727 $as_echo_n "checking for library containing json_object_new_int64... " >&6; }
   16728 if ${ac_cv_search_json_object_new_int64+:} false; then :
   16729   $as_echo_n "(cached) " >&6
   16730 else
   16731   ac_func_search_save_LIBS=$LIBS
   16732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16733 /* end confdefs.h.  */
   16734 
   16735 /* Override any GCC internal prototype to avoid an error.
   16736    Use char because int might match the return type of a GCC
   16737    builtin and then its argument prototype would still apply.  */
   16738 #ifdef __cplusplus
   16739 extern "C"
   16740 #endif
   16741 char json_object_new_int64 ();
   16742 int
   16743 main ()
   16744 {
   16745 return json_object_new_int64 ();
   16746   ;
   16747   return 0;
   16748 }
   16749 _ACEOF
   16750 for ac_lib in '' json json-c; do
   16751   if test -z "$ac_lib"; then
   16752     ac_res="none required"
   16753   else
   16754     ac_res=-l$ac_lib
   16755     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16756   fi
   16757   if ac_fn_c_try_link "$LINENO"; then :
   16758   ac_cv_search_json_object_new_int64=$ac_res
   16759 fi
   16760 rm -f core conftest.err conftest.$ac_objext \
   16761     conftest$ac_exeext
   16762   if ${ac_cv_search_json_object_new_int64+:} false; then :
   16763   break
   16764 fi
   16765 done
   16766 if ${ac_cv_search_json_object_new_int64+:} false; then :
   16767 
   16768 else
   16769   ac_cv_search_json_object_new_int64=no
   16770 fi
   16771 rm conftest.$ac_ext
   16772 LIBS=$ac_func_search_save_LIBS
   16773 fi
   16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_new_int64" >&5
   16775 $as_echo "$ac_cv_search_json_object_new_int64" >&6; }
   16776 ac_res=$ac_cv_search_json_object_new_int64
   16777 if test "$ac_res" != no; then :
   16778   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16779 
   16780 else
   16781   as_fn_error $? "found libjson include but not library." "$LINENO" 5
   16782 			have_libjson=""
   16783 fi
   16784 
   16785 elif test "X$use_libjson" = Xyes
   16786 then
   16787 	as_fn_error $? "include/json{,-c}/json.h not found." "$LINENO" 5
   16788 else
   16789 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16790 $as_echo "no" >&6; }
   16791 fi
   16792 
   16793 if test "X${have_libjson}" != "X"
   16794 then
   16795 	CFLAGS="$CFLAGS $libjson_cflags"
   16796 
   16797 $as_echo "#define HAVE_JSON 1" >>confdefs.h
   16798 
   16799 	if test "X${have_libjson_c}" = Xyes
   16800 	then
   16801 
   16802 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
   16803 
   16804 	fi
   16805 	JSONSTATS=1
   16806 fi
   16807 
   16808 
   16809 #
   16810 # was --with-zlib specified?
   16811 #
   16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
   16813 $as_echo_n "checking for zlib library... " >&6; }
   16814 
   16815 # Check whether --with-zlib was given.
   16816 if test "${with_zlib+set}" = set; then :
   16817   withval=$with_zlib; with_zlib="$withval"
   16818 else
   16819   with_zlib="auto"
   16820 fi
   16821 
   16822 
   16823 have_zlib=""
   16824 case "$with_zlib" in
   16825 	no)
   16826 		zlib_libs=""
   16827 		;;
   16828 	auto|yes)
   16829 		for d in /usr /usr/local /opt/local
   16830 		do
   16831 			if test -f "${d}/include/zlib.h"
   16832 			then
   16833 				if test ${d} != /usr
   16834 				then
   16835 					zlib_cflags="-I ${d}/include"
   16836 					LIBS="$LIBS -L${d}/lib"
   16837 				fi
   16838 				have_zlib="yes"
   16839 			fi
   16840 		done
   16841 		;;
   16842 	*)
   16843 		if test -f "${with_zlib}/include/zlib.h"
   16844 		then
   16845 			zlib_cflags="-I${with_zlib}/include"
   16846 			LIBS="$LIBS -L${with_zlib}/lib"
   16847 			have_zlib="yes"
   16848 		else
   16849 			as_fn_error $? "$with_zlib/include/zlib.h not found." "$LINENO" 5
   16850 		fi
   16851 		;;
   16852 esac
   16853 
   16854 if test "X${have_zlib}" != "X"
   16855 then
   16856 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16857 $as_echo "yes" >&6; }
   16858 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
   16859 $as_echo_n "checking for library containing deflate... " >&6; }
   16860 if ${ac_cv_search_deflate+:} false; then :
   16861   $as_echo_n "(cached) " >&6
   16862 else
   16863   ac_func_search_save_LIBS=$LIBS
   16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16865 /* end confdefs.h.  */
   16866 
   16867 /* Override any GCC internal prototype to avoid an error.
   16868    Use char because int might match the return type of a GCC
   16869    builtin and then its argument prototype would still apply.  */
   16870 #ifdef __cplusplus
   16871 extern "C"
   16872 #endif
   16873 char deflate ();
   16874 int
   16875 main ()
   16876 {
   16877 return deflate ();
   16878   ;
   16879   return 0;
   16880 }
   16881 _ACEOF
   16882 for ac_lib in '' z; do
   16883   if test -z "$ac_lib"; then
   16884     ac_res="none required"
   16885   else
   16886     ac_res=-l$ac_lib
   16887     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16888   fi
   16889   if ac_fn_c_try_link "$LINENO"; then :
   16890   ac_cv_search_deflate=$ac_res
   16891 fi
   16892 rm -f core conftest.err conftest.$ac_objext \
   16893     conftest$ac_exeext
   16894   if ${ac_cv_search_deflate+:} false; then :
   16895   break
   16896 fi
   16897 done
   16898 if ${ac_cv_search_deflate+:} false; then :
   16899 
   16900 else
   16901   ac_cv_search_deflate=no
   16902 fi
   16903 rm conftest.$ac_ext
   16904 LIBS=$ac_func_search_save_LIBS
   16905 fi
   16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
   16907 $as_echo "$ac_cv_search_deflate" >&6; }
   16908 ac_res=$ac_cv_search_deflate
   16909 if test "$ac_res" != no; then :
   16910   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16911 
   16912 else
   16913   as_fn_error $? "found zlib include but not library." "$LINENO" 5
   16914 			have_zlib=""
   16915 fi
   16916 
   16917 elif test "X$with_zlib" = Xyes
   16918 then
   16919 	as_fn_error $? "include/zlib.h not found." "$LINENO" 5
   16920 else
   16921 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16922 $as_echo "no" >&6; }
   16923 fi
   16924 
   16925 ZLIB=
   16926 if test "X${have_zlib}" != "X"
   16927 then
   16928 	CFLAGS="$CFLAGS $zlib_cflags"
   16929 
   16930 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
   16931 
   16932 	ZLIB=1
   16933 fi
   16934 
   16935 
   16936 
   16937 #
   16938 # In solaris 10, SMF can manage named service
   16939 #
   16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
   16941 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
   16942 if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
   16943   $as_echo_n "(cached) " >&6
   16944 else
   16945   ac_check_lib_save_LIBS=$LIBS
   16946 LIBS="-lscf  $LIBS"
   16947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16948 /* end confdefs.h.  */
   16949 
   16950 /* Override any GCC internal prototype to avoid an error.
   16951    Use char because int might match the return type of a GCC
   16952    builtin and then its argument prototype would still apply.  */
   16953 #ifdef __cplusplus
   16954 extern "C"
   16955 #endif
   16956 char smf_enable_instance ();
   16957 int
   16958 main ()
   16959 {
   16960 return smf_enable_instance ();
   16961   ;
   16962   return 0;
   16963 }
   16964 _ACEOF
   16965 if ac_fn_c_try_link "$LINENO"; then :
   16966   ac_cv_lib_scf_smf_enable_instance=yes
   16967 else
   16968   ac_cv_lib_scf_smf_enable_instance=no
   16969 fi
   16970 rm -f core conftest.err conftest.$ac_objext \
   16971     conftest$ac_exeext conftest.$ac_ext
   16972 LIBS=$ac_check_lib_save_LIBS
   16973 fi
   16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
   16975 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
   16976 if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
   16977   cat >>confdefs.h <<_ACEOF
   16978 #define HAVE_LIBSCF 1
   16979 _ACEOF
   16980 
   16981   LIBS="-lscf $LIBS"
   16982 
   16983 fi
   16984 
   16985 
   16986 #
   16987 # Large File
   16988 #
   16989 # Check whether --enable-largefile was given.
   16990 if test "${enable_largefile+set}" = set; then :
   16991   enableval=$enable_largefile; want_largefile="yes"
   16992 else
   16993   want_largefile="no"
   16994 fi
   16995 
   16996 case $want_largefile in
   16997 	yes)
   16998 		ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
   16999 		;;
   17000 	*)
   17001 		;;
   17002 esac
   17003 
   17004 #
   17005 # Additional compiler settings.
   17006 #
   17007 MKDEPCC="$CC"
   17008 MKDEPCFLAGS="-M"
   17009 
   17010 if test "X$GCC" = "Xyes"; then
   17011 	STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
   17012 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
   17013 $as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
   17014 	SAVE_CFLAGS="$CFLAGS"
   17015 	CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
   17016 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17017 /* end confdefs.h.  */
   17018 
   17019 int
   17020 main ()
   17021 {
   17022 
   17023   ;
   17024   return 0;
   17025 }
   17026 _ACEOF
   17027 if ac_fn_c_try_compile "$LINENO"; then :
   17028   FNOSTRICTALIASING=yes
   17029 else
   17030   FNOSTRICTALIASING=no
   17031 fi
   17032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17033 	CFLAGS="$SAVE_CFLAGS"
   17034 	if test "yes" = "$FNOSTRICTALIASING"; then
   17035 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17036 $as_echo "yes" >&6; }
   17037 		STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
   17038 	else
   17039 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17040 $as_echo "no" >&6; }
   17041 	fi
   17042 	#
   17043 	# turn off delete null pointer checks
   17044 	#
   17045 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-delete-null-pointer-checks" >&5
   17046 $as_echo_n "checking if \"$CC\" supports -fno-delete-null-pointer-checks... " >&6; }
   17047 	SAVE_CFLAGS="$CFLAGS"
   17048 	CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks"
   17049 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17050 /* end confdefs.h.  */
   17051 
   17052 int
   17053 main ()
   17054 {
   17055 
   17056   ;
   17057   return 0;
   17058 }
   17059 _ACEOF
   17060 if ac_fn_c_try_compile "$LINENO"; then :
   17061   FNODELETENULLPOINTERCHECKS=yes
   17062 else
   17063   FNODELETENULLPOINTERCHECKS=no
   17064 fi
   17065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17066 	CFLAGS="$SAVE_CFLAGS"
   17067 	if test "yes" = "$FNODELETENULLPOINTERCHECKS"; then
   17068 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17069 $as_echo "yes" >&6; }
   17070 		STD_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
   17071 	else
   17072 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17073 $as_echo "no" >&6; }
   17074 	fi
   17075 	if test "X$enable_warn_shadow" = Xyes; then
   17076 		STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
   17077 	fi
   17078 	if test "X$enable_warn_error" = Xyes; then
   17079 		STD_CWARNINGS="$STD_CWARNINGS -Werror"
   17080 	fi
   17081 else
   17082 	case $host in
   17083 	*-solaris*)
   17084 		MKDEPCFLAGS="-xM"
   17085 		;;
   17086 	esac
   17087 fi
   17088 
   17089 
   17090 
   17091 
   17092 
   17093 #
   17094 # -lxnet buys us one big porting headache...  standards, gotta love 'em.
   17095 #
   17096 # AC_CHECK_LIB(xnet, socket, ,
   17097 #    AC_CHECK_LIB(socket, socket)
   17098 # )
   17099 #
   17100 # Use this for now, instead:
   17101 #
   17102 case "$host" in
   17103 	*-linux*)
   17104 		;;
   17105 	*)
   17106 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   17107 $as_echo_n "checking for socket in -lsocket... " >&6; }
   17108 if ${ac_cv_lib_socket_socket+:} false; then :
   17109   $as_echo_n "(cached) " >&6
   17110 else
   17111   ac_check_lib_save_LIBS=$LIBS
   17112 LIBS="-lsocket  $LIBS"
   17113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17114 /* end confdefs.h.  */
   17115 
   17116 /* Override any GCC internal prototype to avoid an error.
   17117    Use char because int might match the return type of a GCC
   17118    builtin and then its argument prototype would still apply.  */
   17119 #ifdef __cplusplus
   17120 extern "C"
   17121 #endif
   17122 char socket ();
   17123 int
   17124 main ()
   17125 {
   17126 return socket ();
   17127   ;
   17128   return 0;
   17129 }
   17130 _ACEOF
   17131 if ac_fn_c_try_link "$LINENO"; then :
   17132   ac_cv_lib_socket_socket=yes
   17133 else
   17134   ac_cv_lib_socket_socket=no
   17135 fi
   17136 rm -f core conftest.err conftest.$ac_objext \
   17137     conftest$ac_exeext conftest.$ac_ext
   17138 LIBS=$ac_check_lib_save_LIBS
   17139 fi
   17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   17141 $as_echo "$ac_cv_lib_socket_socket" >&6; }
   17142 if test "x$ac_cv_lib_socket_socket" = xyes; then :
   17143   cat >>confdefs.h <<_ACEOF
   17144 #define HAVE_LIBSOCKET 1
   17145 _ACEOF
   17146 
   17147   LIBS="-lsocket $LIBS"
   17148 
   17149 fi
   17150 
   17151 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
   17152 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
   17153 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
   17154   $as_echo_n "(cached) " >&6
   17155 else
   17156   ac_check_lib_save_LIBS=$LIBS
   17157 LIBS="-lnsl  $LIBS"
   17158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17159 /* end confdefs.h.  */
   17160 
   17161 /* Override any GCC internal prototype to avoid an error.
   17162    Use char because int might match the return type of a GCC
   17163    builtin and then its argument prototype would still apply.  */
   17164 #ifdef __cplusplus
   17165 extern "C"
   17166 #endif
   17167 char inet_addr ();
   17168 int
   17169 main ()
   17170 {
   17171 return inet_addr ();
   17172   ;
   17173   return 0;
   17174 }
   17175 _ACEOF
   17176 if ac_fn_c_try_link "$LINENO"; then :
   17177   ac_cv_lib_nsl_inet_addr=yes
   17178 else
   17179   ac_cv_lib_nsl_inet_addr=no
   17180 fi
   17181 rm -f core conftest.err conftest.$ac_objext \
   17182     conftest$ac_exeext conftest.$ac_ext
   17183 LIBS=$ac_check_lib_save_LIBS
   17184 fi
   17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
   17186 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
   17187 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
   17188   cat >>confdefs.h <<_ACEOF
   17189 #define HAVE_LIBNSL 1
   17190 _ACEOF
   17191 
   17192   LIBS="-lnsl $LIBS"
   17193 
   17194 fi
   17195 
   17196 		;;
   17197 esac
   17198 
   17199 #
   17200 # Work around Solaris's select() limitations.
   17201 #
   17202 case "$host" in
   17203 	*-solaris2.[89]|*-solaris2.1?)
   17204 
   17205 $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
   17206 
   17207 	;;
   17208 esac
   17209 
   17210 #
   17211 # Purify support
   17212 #
   17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
   17214 $as_echo_n "checking whether to use purify... " >&6; }
   17215 
   17216 # Check whether --with-purify was given.
   17217 if test "${with_purify+set}" = set; then :
   17218   withval=$with_purify; use_purify="$withval"
   17219 else
   17220   use_purify="no"
   17221 fi
   17222 
   17223 
   17224 case "$use_purify" in
   17225 	no)
   17226 		;;
   17227 	yes)
   17228 		# Extract the first word of "purify", so it can be a program name with args.
   17229 set dummy purify; ac_word=$2
   17230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17231 $as_echo_n "checking for $ac_word... " >&6; }
   17232 if ${ac_cv_path_purify_path+:} false; then :
   17233   $as_echo_n "(cached) " >&6
   17234 else
   17235   case $purify_path in
   17236   [\\/]* | ?:[\\/]*)
   17237   ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
   17238   ;;
   17239   *)
   17240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17241 for as_dir in $PATH
   17242 do
   17243   IFS=$as_save_IFS
   17244   test -z "$as_dir" && as_dir=.
   17245     for ac_exec_ext in '' $ac_executable_extensions; do
   17246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17247     ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
   17248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17249     break 2
   17250   fi
   17251 done
   17252   done
   17253 IFS=$as_save_IFS
   17254 
   17255   test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
   17256   ;;
   17257 esac
   17258 fi
   17259 purify_path=$ac_cv_path_purify_path
   17260 if test -n "$purify_path"; then
   17261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   17262 $as_echo "$purify_path" >&6; }
   17263 else
   17264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17265 $as_echo "no" >&6; }
   17266 fi
   17267 
   17268 
   17269 		;;
   17270 	*)
   17271 		purify_path="$use_purify"
   17272 		;;
   17273 esac
   17274 
   17275 case "$use_purify" in
   17276 	no)
   17277 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17278 $as_echo "no" >&6; }
   17279 		PURIFY=""
   17280 		;;
   17281 	*)
   17282 		if test -f "$purify_path" || test purify = "$purify_path"; then
   17283 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   17284 $as_echo "$purify_path" >&6; }
   17285 			PURIFYFLAGS="`echo $PURIFYOPTIONS`"
   17286 			PURIFY="$purify_path $PURIFYFLAGS"
   17287 		else
   17288 			as_fn_error $? "$purify_path not found.
   17289 
   17290 Please choose the proper path with the following command:
   17291 
   17292     configure --with-purify=PATH
   17293 " "$LINENO" 5
   17294 		fi
   17295 		;;
   17296 esac
   17297 
   17298 
   17299 
   17300 #
   17301 # Google/Great Performance Tools CPU Profiler
   17302 #
   17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
   17304 $as_echo_n "checking whether to use gperftools profiler... " >&6; }
   17305 
   17306 # Check whether --with-gperftools-profiler was given.
   17307 if test "${with_gperftools_profiler+set}" = set; then :
   17308   withval=$with_gperftools_profiler; use_profiler="$withval"
   17309 else
   17310   use_profiler="no"
   17311 fi
   17312 
   17313 
   17314 case $use_profiler in
   17315 	yes)
   17316 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17317 $as_echo "yes" >&6; }
   17318 
   17319 $as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
   17320 
   17321 		LIBS="$LIBS -lprofiler"
   17322 		;;
   17323 	*)
   17324 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17325 $as_echo "no" >&6; }
   17326 		;;
   17327 esac
   17328 
   17329 #
   17330 # enable/disable dumping stack backtrace.  Also check if the system supports
   17331 # glibc-compatible backtrace() function.
   17332 #
   17333 # Check whether --enable-backtrace was given.
   17334 if test "${enable_backtrace+set}" = set; then :
   17335   enableval=$enable_backtrace;
   17336 else
   17337   enable_backtrace="yes"
   17338 fi
   17339 
   17340 
   17341 if test "$enable_backtrace" = "yes"; then :
   17342 
   17343 $as_echo "#define USE_BACKTRACE 1" >>confdefs.h
   17344 
   17345        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17346 /* end confdefs.h.  */
   17347 #include <execinfo.h>
   17348 int
   17349 main ()
   17350 {
   17351 return (backtrace((void **)0, 0));
   17352 
   17353   ;
   17354   return 0;
   17355 }
   17356 _ACEOF
   17357 if ac_fn_c_try_link "$LINENO"; then :
   17358 
   17359 $as_echo "#define HAVE_LIBCTRACE 1" >>confdefs.h
   17360 
   17361 
   17362 fi
   17363 rm -f core conftest.err conftest.$ac_objext \
   17364     conftest$ac_exeext conftest.$ac_ext
   17365 fi
   17366 
   17367 # Check whether --enable-symtable was given.
   17368 if test "${enable_symtable+set}" = set; then :
   17369   enableval=$enable_symtable; want_symtable="$enableval"
   17370 else
   17371   want_symtable="minimal"
   17372 fi
   17373 
   17374 case $want_symtable in
   17375 yes|all|minimal)     # "yes" is a hidden value equivalent to "minimal"
   17376 	if test "" = "$PERL"
   17377 	then
   17378 		as_fn_error $? "Internal symbol table requires perl but no perl is found.
   17379 Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
   17380 	fi
   17381 	if test "yes" = "$use_libtool"; then
   17382 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&5
   17383 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&2;}
   17384 	else
   17385 		# we generate the internal symbol table only for those systems
   17386 		# known to work to avoid unexpected build failure.  Also, warn
   17387 		# about unsupported systems when the feature is enabled
   17388 		#  manually.
   17389 		case $host_os in
   17390 		freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
   17391 			MKSYMTBL_PROGRAM="$PERL"
   17392 			if test "all" = "$want_symtable"; then
   17393 				ALWAYS_MAKE_SYMTABLE="yes"
   17394 			fi
   17395 			;;
   17396 		*)
   17397 			if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
   17398 			then
   17399 				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
   17400 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
   17401 			fi
   17402 		esac
   17403 	fi
   17404 	;;
   17405 *)
   17406 	;;
   17407 esac
   17408 
   17409 
   17410 
   17411 #
   17412 # File name extension for static archive files, for those few places
   17413 # where they are treated differently from dynamic ones.
   17414 #
   17415 SA=a
   17416 
   17417 
   17418 
   17419 
   17420 
   17421 
   17422 
   17423 
   17424 
   17425 
   17426 BIND9_CO_RULE=".c.$O:"
   17427 
   17428 
   17429 #
   17430 # Here begins a very long section to determine the system's networking
   17431 # capabilities.  The order of the tests is significant.
   17432 #
   17433 
   17434 #
   17435 # We do the IPv6 compilation checking after libtool so that we can put
   17436 # the right suffix on the files.
   17437 #
   17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
   17439 $as_echo_n "checking for IPv6 structures... " >&6; }
   17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17441 /* end confdefs.h.  */
   17442 
   17443        #include <sys/types.h>
   17444        #include <sys/socket.h>
   17445        #include <netinet/in.h>
   17446 
   17447 int
   17448 main ()
   17449 {
   17450 
   17451        struct sockaddr_in6 sin6;
   17452        struct in6_addr in6;
   17453        struct in6_pktinfo in6_pi;
   17454        struct sockaddr_storage storage;
   17455        in6 = in6addr_any;
   17456        in6 = in6addr_loopback;
   17457        sin6.sin6_scope_id = 0;
   17458        return (0);
   17459 
   17460   ;
   17461   return 0;
   17462 }
   17463 _ACEOF
   17464 if ac_fn_c_try_compile "$LINENO"; then :
   17465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17466 $as_echo "yes" >&6; }
   17467 else
   17468   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17470 as_fn_error $? "IPv6 support is mandatory
   17471 See \`config.log' for more details" "$LINENO" 5; }
   17472 fi
   17473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17474 
   17475 #
   17476 # Allow forcibly disabling TCP Fast Open support as autodetection might yield
   17477 # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
   17478 # comment in lib/isc/unix/socket.c).
   17479 #
   17480 
   17481 # Check whether --enable-tcp_fastopen was given.
   17482 if test "${enable_tcp_fastopen+set}" = set; then :
   17483   enableval=$enable_tcp_fastopen;
   17484 else
   17485   enable_tcp_fastopen="yes"
   17486 fi
   17487 
   17488 
   17489 if test "$enable_tcp_fastopen" = "yes"; then :
   17490 
   17491 $as_echo "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
   17492 
   17493 fi
   17494 
   17495 #
   17496 # Check for some other useful functions that are not ever-present.
   17497 #
   17498 for ac_func in strlcpy strlcat
   17499 do :
   17500   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17501 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17502 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17503   cat >>confdefs.h <<_ACEOF
   17504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17505 _ACEOF
   17506 
   17507 fi
   17508 done
   17509 
   17510 
   17511 
   17512 
   17513 # Check whether --with-readline was given.
   17514 if test "${with_readline+set}" = set; then :
   17515   withval=$with_readline; use_readline="$withval"
   17516 else
   17517   use_readline="auto"
   17518 fi
   17519 
   17520 case "$use_readline" in
   17521 no)	;;
   17522 *)
   17523 	saved_LIBS="$LIBS"
   17524 	case "$use_readline" in
   17525 	yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
   17526 	*) try_readline="$use_readline"
   17527 	esac
   17528 	for readline in "$try_readline" $or_readline
   17529 	do
   17530 		LIBS="$readline"
   17531 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
   17532 $as_echo "$as_me: checking for readline with $readline" >&6;}
   17533 		for ac_func in readline
   17534 do :
   17535   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   17536 if test "x$ac_cv_func_readline" = xyes; then :
   17537   cat >>confdefs.h <<_ACEOF
   17538 #define HAVE_READLINE 1
   17539 _ACEOF
   17540 
   17541 fi
   17542 done
   17543 
   17544 		if test "yes" = "$ac_cv_func_readline"
   17545 		then
   17546 			READLINE_LIB="$readline"
   17547 			break
   17548 		fi
   17549 		for lib in -lterminfo -ltermcap -lncurses -lcurses
   17550 		do
   17551 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
   17552 $as_echo "$as_me: checking for readline with $readline $lib" >&6;}
   17553 			unset ac_cv_func_readline
   17554 			LIBS="$readline $lib"
   17555 			for ac_func in readline
   17556 do :
   17557   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   17558 if test "x$ac_cv_func_readline" = xyes; then :
   17559   cat >>confdefs.h <<_ACEOF
   17560 #define HAVE_READLINE 1
   17561 _ACEOF
   17562 
   17563 fi
   17564 done
   17565 
   17566 			if test "yes" = "$ac_cv_func_readline"
   17567 			then
   17568 				READLINE_LIB="$readline $lib"
   17569 				break
   17570 			fi
   17571 		done
   17572 		if test "yes" = "$ac_cv_func_readline"
   17573 		then
   17574 			break
   17575 		fi
   17576 	done
   17577 	if test "auto" != "$use_readline" &&
   17578 	   test "X$READLINE_LIB" = "X"
   17579 	then
   17580 		as_fn_error $? "The readline library was not found." "$LINENO" 5
   17581 	fi
   17582 	LIBS="$saved_LIBS"
   17583 	;;
   17584 esac
   17585 if test "yes" = "$ac_cv_func_readline"
   17586 then
   17587 	case "$READLINE_LIB" in
   17588 	*edit*)
   17589 		for ac_header in editline/readline.h
   17590 do :
   17591   ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
   17592 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
   17593   cat >>confdefs.h <<_ACEOF
   17594 #define HAVE_EDITLINE_READLINE_H 1
   17595 _ACEOF
   17596 
   17597 fi
   17598 
   17599 done
   17600 
   17601 		for ac_header in edit/readline/readline.h
   17602 do :
   17603   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
   17604 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
   17605   cat >>confdefs.h <<_ACEOF
   17606 #define HAVE_EDIT_READLINE_READLINE_H 1
   17607 _ACEOF
   17608 
   17609 fi
   17610 
   17611 done
   17612 
   17613 		for ac_header in edit/readline/history.h
   17614 do :
   17615   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
   17616 if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
   17617   cat >>confdefs.h <<_ACEOF
   17618 #define HAVE_EDIT_READLINE_HISTORY_H 1
   17619 _ACEOF
   17620 
   17621 fi
   17622 
   17623 done
   17624 
   17625 		;;
   17626 	esac
   17627 	for ac_header in readline/readline.h
   17628 do :
   17629   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
   17630 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
   17631   cat >>confdefs.h <<_ACEOF
   17632 #define HAVE_READLINE_READLINE_H 1
   17633 _ACEOF
   17634 
   17635 fi
   17636 
   17637 done
   17638 
   17639 	for ac_header in readline/history.h
   17640 do :
   17641   ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
   17642 if test "x$ac_cv_header_readline_history_h" = xyes; then :
   17643   cat >>confdefs.h <<_ACEOF
   17644 #define HAVE_READLINE_HISTORY_H 1
   17645 _ACEOF
   17646 
   17647 fi
   17648 
   17649 done
   17650 
   17651 fi
   17652 
   17653 #
   17654 # Use our own SPNEGO implementation?
   17655 #
   17656 # Check whether --enable-isc-spnego was given.
   17657 if test "${enable_isc_spnego+set}" = set; then :
   17658   enableval=$enable_isc_spnego;
   17659 fi
   17660 
   17661 
   17662 if test -n "$USE_GSSAPI"
   17663 then
   17664 	case "$enable_isc_spnego" in
   17665 		yes|'')
   17666 			USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
   17667 			DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
   17668 			DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
   17669 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
   17670 $as_echo "using SPNEGO from lib/dns" >&6; }
   17671 			;;
   17672 		no)
   17673 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
   17674 $as_echo "using SPNEGO from GSSAPI library" >&6; }
   17675 			;;
   17676 	esac
   17677 fi
   17678 
   17679 
   17680 
   17681 
   17682 
   17683 
   17684 #
   17685 # Security Stuff
   17686 #
   17687 # Note it is very recommended to *not* disable chroot(),
   17688 # this is only because chroot() was made obsolete by Posix.
   17689 # Check whether --enable-chroot was given.
   17690 if test "${enable_chroot+set}" = set; then :
   17691   enableval=$enable_chroot;
   17692 fi
   17693 
   17694 case "$enable_chroot" in
   17695 	yes|'')
   17696 		for ac_func in chroot
   17697 do :
   17698   ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
   17699 if test "x$ac_cv_func_chroot" = xyes; then :
   17700   cat >>confdefs.h <<_ACEOF
   17701 #define HAVE_CHROOT 1
   17702 _ACEOF
   17703 
   17704 fi
   17705 done
   17706 
   17707 		;;
   17708 	no)
   17709 		;;
   17710 esac
   17711 
   17712 LIBCAP_LIBS=""
   17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capabilities" >&5
   17714 $as_echo_n "checking whether to enable Linux capabilities... " >&6; }
   17715 # Check whether --enable-linux-caps was given.
   17716 if test "${enable_linux_caps+set}" = set; then :
   17717   enableval=$enable_linux_caps;
   17718 else
   17719   case $host in #(
   17720   *-linux*) :
   17721     enable_linux_caps=yes ;; #(
   17722   *) :
   17723     enable_linux_caps=no ;;
   17724 esac
   17725 fi
   17726 
   17727 
   17728 if test "$enable_linux_caps" = "yes"; then :
   17729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17730 $as_echo "yes" >&6; }
   17731        for ac_header in sys/capability.h
   17732 do :
   17733   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
   17734 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
   17735   cat >>confdefs.h <<_ACEOF
   17736 #define HAVE_SYS_CAPABILITY_H 1
   17737 _ACEOF
   17738 
   17739 else
   17740   as_fn_error $? "sys/capability.h header is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   17741 fi
   17742 
   17743 done
   17744 
   17745        save_LIBS="$LIBS"
   17746        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
   17747 $as_echo_n "checking for library containing cap_set_proc... " >&6; }
   17748 if ${ac_cv_search_cap_set_proc+:} false; then :
   17749   $as_echo_n "(cached) " >&6
   17750 else
   17751   ac_func_search_save_LIBS=$LIBS
   17752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17753 /* end confdefs.h.  */
   17754 
   17755 /* Override any GCC internal prototype to avoid an error.
   17756    Use char because int might match the return type of a GCC
   17757    builtin and then its argument prototype would still apply.  */
   17758 #ifdef __cplusplus
   17759 extern "C"
   17760 #endif
   17761 char cap_set_proc ();
   17762 int
   17763 main ()
   17764 {
   17765 return cap_set_proc ();
   17766   ;
   17767   return 0;
   17768 }
   17769 _ACEOF
   17770 for ac_lib in '' cap; do
   17771   if test -z "$ac_lib"; then
   17772     ac_res="none required"
   17773   else
   17774     ac_res=-l$ac_lib
   17775     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17776   fi
   17777   if ac_fn_c_try_link "$LINENO"; then :
   17778   ac_cv_search_cap_set_proc=$ac_res
   17779 fi
   17780 rm -f core conftest.err conftest.$ac_objext \
   17781     conftest$ac_exeext
   17782   if ${ac_cv_search_cap_set_proc+:} false; then :
   17783   break
   17784 fi
   17785 done
   17786 if ${ac_cv_search_cap_set_proc+:} false; then :
   17787 
   17788 else
   17789   ac_cv_search_cap_set_proc=no
   17790 fi
   17791 rm conftest.$ac_ext
   17792 LIBS=$ac_func_search_save_LIBS
   17793 fi
   17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
   17795 $as_echo "$ac_cv_search_cap_set_proc" >&6; }
   17796 ac_res=$ac_cv_search_cap_set_proc
   17797 if test "$ac_res" != no; then :
   17798   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17799   LIBCAP_LIBS="$ac_cv_search_cap_set_proc"
   17800 else
   17801   as_fn_error $? "libcap is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   17802 fi
   17803 
   17804        LIBS="$save_LIBS"
   17805 else
   17806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17807 $as_echo "no" >&6; }
   17808 fi
   17809 
   17810 
   17811 for ac_header in sys/un.h
   17812 do :
   17813   ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
   17814 if test "x$ac_cv_header_sys_un_h" = xyes; then :
   17815   cat >>confdefs.h <<_ACEOF
   17816 #define HAVE_SYS_UN_H 1
   17817 _ACEOF
   17818  ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
   17819 
   17820 else
   17821   ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
   17822 
   17823 fi
   17824 
   17825 done
   17826 
   17827 
   17828 
   17829 case "$host" in
   17830 *-solaris*)
   17831 
   17832 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
   17833 
   17834 	;;
   17835 esac
   17836 
   17837 #
   17838 # Time Zone Stuff
   17839 #
   17840 for ac_func in tzset
   17841 do :
   17842   ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
   17843 if test "x$ac_cv_func_tzset" = xyes; then :
   17844   cat >>confdefs.h <<_ACEOF
   17845 #define HAVE_TZSET 1
   17846 _ACEOF
   17847 
   17848 fi
   17849 done
   17850 
   17851 
   17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
   17853 $as_echo_n "checking for optarg declaration... " >&6; }
   17854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17855 /* end confdefs.h.  */
   17856 
   17857 #include <unistd.h>
   17858 
   17859 int
   17860 main ()
   17861 {
   17862 optarg = 0;
   17863   ;
   17864   return 0;
   17865 }
   17866 _ACEOF
   17867 if ac_fn_c_try_compile "$LINENO"; then :
   17868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17869 $as_echo "yes" >&6; }
   17870 else
   17871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17872 $as_echo "no" >&6; }
   17873 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
   17874 
   17875 $as_echo "#define NEED_OPTARG 1" >>confdefs.h
   17876 
   17877 fi
   17878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17879 
   17880 #
   17881 # Check for nanoseconds in file stats
   17882 #
   17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
   17884 $as_echo_n "checking for st_mtim.tv_nsec... " >&6; }
   17885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17886 /* end confdefs.h.  */
   17887 #include <sys/fcntl.h>
   17888 int
   17889 main ()
   17890 {
   17891 struct stat s;
   17892        return(s.st_mtim.tv_nsec);
   17893 
   17894   ;
   17895   return 0;
   17896 }
   17897 _ACEOF
   17898 if ac_fn_c_try_compile "$LINENO"; then :
   17899 
   17900 $as_echo "#define HAVE_STAT_NSEC 1" >>confdefs.h
   17901 
   17902 fi
   17903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17904 
   17905 #
   17906 # Check for if_nametoindex() for IPv6 scoped addresses support
   17907 #
   17908 for ac_func in if_nametoindex
   17909 do :
   17910   ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
   17911 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
   17912   cat >>confdefs.h <<_ACEOF
   17913 #define HAVE_IF_NAMETOINDEX 1
   17914 _ACEOF
   17915 
   17916 fi
   17917 done
   17918 
   17919 
   17920 for ac_func in nanosleep usleep explicit_bzero
   17921 do :
   17922   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17923 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17924 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17925   cat >>confdefs.h <<_ACEOF
   17926 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17927 _ACEOF
   17928 
   17929 fi
   17930 done
   17931 
   17932 
   17933 ISC_ATOMIC_LIBS=""
   17934 for ac_header in stdatomic.h
   17935 do :
   17936   ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
   17937 if test "x$ac_cv_header_stdatomic_h" = xyes; then :
   17938   cat >>confdefs.h <<_ACEOF
   17939 #define HAVE_STDATOMIC_H 1
   17940 _ACEOF
   17941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   17942 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   17943    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17944 /* end confdefs.h.  */
   17945 #include <stdatomic.h>
   17946 int
   17947 main ()
   17948 {
   17949 atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   17950 
   17951   ;
   17952   return 0;
   17953 }
   17954 _ACEOF
   17955 if ac_fn_c_try_compile "$LINENO"; then :
   17956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdatomic.h" >&5
   17957 $as_echo "stdatomic.h" >&6; }
   17958       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
   17959 $as_echo_n "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
   17960       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17961 /* end confdefs.h.  */
   17962 #include <stdatomic.h>
   17963 int
   17964 main ()
   17965 {
   17966 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   17967 
   17968   ;
   17969   return 0;
   17970 }
   17971 _ACEOF
   17972 if ac_fn_c_try_link "$LINENO"; then :
   17973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17974 $as_echo "no" >&6; }
   17975 else
   17976   ISC_ATOMIC_LIBS="-latomic"
   17977 	 save_LIBS="$LIBS"
   17978 	 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   17979 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17980 /* end confdefs.h.  */
   17981 #include <stdatomic.h>
   17982 int
   17983 main ()
   17984 {
   17985 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   17986 
   17987   ;
   17988   return 0;
   17989 }
   17990 _ACEOF
   17991 if ac_fn_c_try_link "$LINENO"; then :
   17992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17993 $as_echo "yes" >&6; }
   17994 else
   17995   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17997 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
   17998 See \`config.log' for more details" "$LINENO" 5; }
   17999 fi
   18000 rm -f core conftest.err conftest.$ac_objext \
   18001     conftest$ac_exeext conftest.$ac_ext
   18002 	 LIBS="$save_LIBS"
   18003 
   18004 fi
   18005 rm -f core conftest.err conftest.$ac_objext \
   18006     conftest$ac_exeext conftest.$ac_ext
   18007 
   18008 else
   18009   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18011 as_fn_error $? "stdatomic.h header found, but compilation failed, please fix your toolchain.
   18012 See \`config.log' for more details" "$LINENO" 5; }
   18013 
   18014 fi
   18015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18016 else
   18017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   18018 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   18019    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18020 /* end confdefs.h.  */
   18021 #include <inttypes.h>
   18022 int
   18023 main ()
   18024 {
   18025 int32_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   18026 
   18027   ;
   18028   return 0;
   18029 }
   18030 _ACEOF
   18031 if ac_fn_c_try_compile "$LINENO"; then :
   18032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __atomic builtins" >&5
   18033 $as_echo "__atomic builtins" >&6; }
   18034 
   18035 $as_echo "#define HAVE___ATOMIC 1" >>confdefs.h
   18036 
   18037       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit __atomic builtins" >&5
   18038 $as_echo_n "checking whether -latomic is needed for 64-bit __atomic builtins... " >&6; }
   18039       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18040 /* end confdefs.h.  */
   18041 #include <inttypes.h>
   18042 int
   18043 main ()
   18044 {
   18045 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   18046 
   18047   ;
   18048   return 0;
   18049 }
   18050 _ACEOF
   18051 if ac_fn_c_try_link "$LINENO"; then :
   18052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18053 $as_echo "no" >&6; }
   18054 else
   18055   ISC_ATOMIC_LIBS="-latomic"
   18056 	 save_LIBS="$LIBS"
   18057 	 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   18058 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18059 /* end confdefs.h.  */
   18060 #include <inttypes.h>
   18061 int
   18062 main ()
   18063 {
   18064 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   18065 
   18066   ;
   18067   return 0;
   18068 }
   18069 _ACEOF
   18070 if ac_fn_c_try_link "$LINENO"; then :
   18071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18072 $as_echo "yes" >&6; }
   18073 else
   18074   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18076 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
   18077 See \`config.log' for more details" "$LINENO" 5; }
   18078 fi
   18079 rm -f core conftest.err conftest.$ac_objext \
   18080     conftest$ac_exeext conftest.$ac_ext
   18081 	 LIBS="$save_LIBS"
   18082 
   18083 fi
   18084 rm -f core conftest.err conftest.$ac_objext \
   18085     conftest$ac_exeext conftest.$ac_ext
   18086 
   18087 else
   18088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __sync builtins" >&5
   18089 $as_echo "__sync builtins" >&6; }
   18090 
   18091 fi
   18092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18093 
   18094 fi
   18095 
   18096 done
   18097 
   18098 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   18099 
   18100 for ac_header in uchar.h
   18101 do :
   18102   ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
   18103 if test "x$ac_cv_header_uchar_h" = xyes; then :
   18104   cat >>confdefs.h <<_ACEOF
   18105 #define HAVE_UCHAR_H 1
   18106 _ACEOF
   18107 
   18108 fi
   18109 
   18110 done
   18111 
   18112 
   18113 #
   18114 # Check for __builtin_unreachable
   18115 #
   18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
   18117 $as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; }
   18118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18119 /* end confdefs.h.  */
   18120 
   18121 int
   18122 main ()
   18123 {
   18124 __builtin_unreachable();
   18125 
   18126   ;
   18127   return 0;
   18128 }
   18129 _ACEOF
   18130 if ac_fn_c_try_link "$LINENO"; then :
   18131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18132 $as_echo "yes" >&6; }
   18133 
   18134 $as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
   18135 
   18136 
   18137 else
   18138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18139 $as_echo "no" >&6; }
   18140 
   18141 fi
   18142 rm -f core conftest.err conftest.$ac_objext \
   18143     conftest$ac_exeext conftest.$ac_ext
   18144 
   18145 #
   18146 # Check for __builtin_expect
   18147 #
   18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
   18149 $as_echo_n "checking compiler support for __builtin_expect... " >&6; }
   18150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18151 /* end confdefs.h.  */
   18152 
   18153 int
   18154 main ()
   18155 {
   18156 
   18157 	return (__builtin_expect(1, 1) ? 1 : 0);
   18158 
   18159   ;
   18160   return 0;
   18161 }
   18162 _ACEOF
   18163 if ac_fn_c_try_link "$LINENO"; then :
   18164 
   18165 	have_builtin_expect=yes
   18166 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18167 $as_echo "yes" >&6; }
   18168 
   18169 else
   18170 
   18171 	have_builtin_expect=no
   18172 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18173 $as_echo "no" >&6; }
   18174 
   18175 fi
   18176 rm -f core conftest.err conftest.$ac_objext \
   18177     conftest$ac_exeext conftest.$ac_ext
   18178 if test "yes" = "$have_builtin_expect"; then
   18179 
   18180 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
   18181 
   18182 fi
   18183 
   18184 #
   18185 # Check for __builtin_clz
   18186 #
   18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
   18188 $as_echo_n "checking compiler support for __builtin_clz... " >&6; }
   18189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18190 /* end confdefs.h.  */
   18191 
   18192 int
   18193 main ()
   18194 {
   18195 
   18196 	return (__builtin_clz(0xff) == 24 ? 1 : 0);
   18197 
   18198   ;
   18199   return 0;
   18200 }
   18201 _ACEOF
   18202 if ac_fn_c_try_link "$LINENO"; then :
   18203 
   18204 	have_builtin_clz=yes
   18205 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18206 $as_echo "yes" >&6; }
   18207 
   18208 else
   18209 
   18210 	have_builtin_clz=no
   18211 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18212 $as_echo "no" >&6; }
   18213 
   18214 fi
   18215 rm -f core conftest.err conftest.$ac_objext \
   18216     conftest$ac_exeext conftest.$ac_ext
   18217 if test "yes" = "$have_builtin_clz"; then
   18218 
   18219 $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
   18220 
   18221 fi
   18222 
   18223 #
   18224 # Activate "rrset-order fixed" or not?
   18225 #
   18226 # Check whether --enable-fixed-rrset was given.
   18227 if test "${enable_fixed_rrset+set}" = set; then :
   18228   enableval=$enable_fixed_rrset; enable_fixed="$enableval"
   18229 else
   18230   enable_fixed="no"
   18231 fi
   18232 
   18233 case "$enable_fixed" in
   18234 	yes)
   18235 
   18236 $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
   18237 
   18238 		;;
   18239 	no)
   18240 		;;
   18241 	*)
   18242 		;;
   18243 esac
   18244 
   18245 #
   18246 # Activate dnstap?
   18247 #
   18248 # Check whether --enable-dnstap was given.
   18249 if test "${enable_dnstap+set}" = set; then :
   18250   enableval=$enable_dnstap; use_dnstap=$enableval
   18251 else
   18252   use_dnstap=no
   18253 fi
   18254 
   18255 
   18256 DNSTAP=
   18257 DNSTAPSRCS=
   18258 DNSTAPOBJS=
   18259 DNSTAPTARGETS=
   18260 if test "x$use_dnstap" != "xno"; then
   18261 
   18262 # Check whether --with-protobuf-c was given.
   18263 if test "${with_protobuf_c+set}" = set; then :
   18264   withval=$with_protobuf_c;
   18265 	    # workaround for protobuf-c includes at old dir
   18266 	    # before protobuf-c-1.0.0
   18267 	    if test -f $withval/include/google/protobuf-c/protobuf-c.h
   18268 	    then
   18269 		CFLAGS="$CFLAGS -I$withval/include/google"
   18270 	    else
   18271 		CFLAGS="$CFLAGS -I$withval/include"
   18272 	    fi
   18273 	    LDFLAGS="$LDFLAGS -L$withval/lib"
   18274 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   18275 set dummy protoc-c; ac_word=$2
   18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18277 $as_echo_n "checking for $ac_word... " >&6; }
   18278 if ${ac_cv_path_PROTOC_C+:} false; then :
   18279   $as_echo_n "(cached) " >&6
   18280 else
   18281   case $PROTOC_C in
   18282   [\\/]* | ?:[\\/]*)
   18283   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   18284   ;;
   18285   *)
   18286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18287 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   18288 do
   18289   IFS=$as_save_IFS
   18290   test -z "$as_dir" && as_dir=.
   18291     for ac_exec_ext in '' $ac_executable_extensions; do
   18292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18293     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   18294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18295     break 2
   18296   fi
   18297 done
   18298   done
   18299 IFS=$as_save_IFS
   18300 
   18301   ;;
   18302 esac
   18303 fi
   18304 PROTOC_C=$ac_cv_path_PROTOC_C
   18305 if test -n "$PROTOC_C"; then
   18306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   18307 $as_echo "$PROTOC_C" >&6; }
   18308 else
   18309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18310 $as_echo "no" >&6; }
   18311 fi
   18312 
   18313 
   18314 
   18315 else
   18316 
   18317 	    # workaround for protobuf-c includes at old dir
   18318 	    # before protobuf-c-1.0.0
   18319 	    if test -f /usr/include/google/protobuf-c/protobuf-c.h
   18320 	    then
   18321 		CFLAGS="$CFLAGS -I/usr/include/google"
   18322 	    else
   18323 		if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
   18324 		then
   18325 		    CFLAGS="$CFLAGS -I/usr/local/include/google"
   18326 		    LDFLAGS="$LDFLAGS -L/usr/local/lib"
   18327 		fi
   18328 	    fi
   18329 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   18330 set dummy protoc-c; ac_word=$2
   18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18332 $as_echo_n "checking for $ac_word... " >&6; }
   18333 if ${ac_cv_path_PROTOC_C+:} false; then :
   18334   $as_echo_n "(cached) " >&6
   18335 else
   18336   case $PROTOC_C in
   18337   [\\/]* | ?:[\\/]*)
   18338   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   18339   ;;
   18340   *)
   18341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18342 for as_dir in $PATH
   18343 do
   18344   IFS=$as_save_IFS
   18345   test -z "$as_dir" && as_dir=.
   18346     for ac_exec_ext in '' $ac_executable_extensions; do
   18347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18348     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   18349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18350     break 2
   18351   fi
   18352 done
   18353   done
   18354 IFS=$as_save_IFS
   18355 
   18356   ;;
   18357 esac
   18358 fi
   18359 PROTOC_C=$ac_cv_path_PROTOC_C
   18360 if test -n "$PROTOC_C"; then
   18361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   18362 $as_echo "$PROTOC_C" >&6; }
   18363 else
   18364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18365 $as_echo "no" >&6; }
   18366 fi
   18367 
   18368 
   18369 
   18370 fi
   18371 
   18372 	if test -z "$PROTOC_C"; then
   18373 		as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
   18374 	fi
   18375 
   18376 # Check whether --with-libfstrm was given.
   18377 if test "${with_libfstrm+set}" = set; then :
   18378   withval=$with_libfstrm;
   18379 	    CFLAGS="$CFLAGS -I$withval/include"
   18380 	    LDFLAGS="$LDFLAGS -L$withval/lib"
   18381 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   18382 set dummy fstrm_capture; ac_word=$2
   18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18384 $as_echo_n "checking for $ac_word... " >&6; }
   18385 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   18386   $as_echo_n "(cached) " >&6
   18387 else
   18388   case $FSTRM_CAPTURE in
   18389   [\\/]* | ?:[\\/]*)
   18390   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   18391   ;;
   18392   *)
   18393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18394 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   18395 do
   18396   IFS=$as_save_IFS
   18397   test -z "$as_dir" && as_dir=.
   18398     for ac_exec_ext in '' $ac_executable_extensions; do
   18399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18400     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   18401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18402     break 2
   18403   fi
   18404 done
   18405   done
   18406 IFS=$as_save_IFS
   18407 
   18408   ;;
   18409 esac
   18410 fi
   18411 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   18412 if test -n "$FSTRM_CAPTURE"; then
   18413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   18414 $as_echo "$FSTRM_CAPTURE" >&6; }
   18415 else
   18416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18417 $as_echo "no" >&6; }
   18418 fi
   18419 
   18420 
   18421 
   18422 else
   18423 
   18424 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   18425 set dummy fstrm_capture; ac_word=$2
   18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18427 $as_echo_n "checking for $ac_word... " >&6; }
   18428 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   18429   $as_echo_n "(cached) " >&6
   18430 else
   18431   case $FSTRM_CAPTURE in
   18432   [\\/]* | ?:[\\/]*)
   18433   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   18434   ;;
   18435   *)
   18436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18437 for as_dir in $PATH
   18438 do
   18439   IFS=$as_save_IFS
   18440   test -z "$as_dir" && as_dir=.
   18441     for ac_exec_ext in '' $ac_executable_extensions; do
   18442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18443     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   18444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18445     break 2
   18446   fi
   18447 done
   18448   done
   18449 IFS=$as_save_IFS
   18450 
   18451   ;;
   18452 esac
   18453 fi
   18454 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   18455 if test -n "$FSTRM_CAPTURE"; then
   18456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   18457 $as_echo "$FSTRM_CAPTURE" >&6; }
   18458 else
   18459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18460 $as_echo "no" >&6; }
   18461 fi
   18462 
   18463 
   18464 
   18465 fi
   18466 
   18467 
   18468 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
   18469 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
   18470 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18471   $as_echo_n "(cached) " >&6
   18472 else
   18473   ac_func_search_save_LIBS=$LIBS
   18474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18475 /* end confdefs.h.  */
   18476 
   18477 /* Override any GCC internal prototype to avoid an error.
   18478    Use char because int might match the return type of a GCC
   18479    builtin and then its argument prototype would still apply.  */
   18480 #ifdef __cplusplus
   18481 extern "C"
   18482 #endif
   18483 char fstrm_iothr_init ();
   18484 int
   18485 main ()
   18486 {
   18487 return fstrm_iothr_init ();
   18488   ;
   18489   return 0;
   18490 }
   18491 _ACEOF
   18492 for ac_lib in '' fstrm; do
   18493   if test -z "$ac_lib"; then
   18494     ac_res="none required"
   18495   else
   18496     ac_res=-l$ac_lib
   18497     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18498   fi
   18499   if ac_fn_c_try_link "$LINENO"; then :
   18500   ac_cv_search_fstrm_iothr_init=$ac_res
   18501 fi
   18502 rm -f core conftest.err conftest.$ac_objext \
   18503     conftest$ac_exeext
   18504   if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18505   break
   18506 fi
   18507 done
   18508 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18509 
   18510 else
   18511   ac_cv_search_fstrm_iothr_init=no
   18512 fi
   18513 rm conftest.$ac_ext
   18514 LIBS=$ac_func_search_save_LIBS
   18515 fi
   18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
   18517 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
   18518 ac_res=$ac_cv_search_fstrm_iothr_init
   18519 if test "$ac_res" != no; then :
   18520   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18521 
   18522 else
   18523   as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
   18524 fi
   18525 
   18526 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
   18527 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
   18528 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18529   $as_echo_n "(cached) " >&6
   18530 else
   18531   ac_func_search_save_LIBS=$LIBS
   18532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18533 /* end confdefs.h.  */
   18534 
   18535 /* Override any GCC internal prototype to avoid an error.
   18536    Use char because int might match the return type of a GCC
   18537    builtin and then its argument prototype would still apply.  */
   18538 #ifdef __cplusplus
   18539 extern "C"
   18540 #endif
   18541 char protobuf_c_message_pack ();
   18542 int
   18543 main ()
   18544 {
   18545 return protobuf_c_message_pack ();
   18546   ;
   18547   return 0;
   18548 }
   18549 _ACEOF
   18550 for ac_lib in '' protobuf-c; do
   18551   if test -z "$ac_lib"; then
   18552     ac_res="none required"
   18553   else
   18554     ac_res=-l$ac_lib
   18555     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18556   fi
   18557   if ac_fn_c_try_link "$LINENO"; then :
   18558   ac_cv_search_protobuf_c_message_pack=$ac_res
   18559 fi
   18560 rm -f core conftest.err conftest.$ac_objext \
   18561     conftest$ac_exeext
   18562   if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18563   break
   18564 fi
   18565 done
   18566 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18567 
   18568 else
   18569   ac_cv_search_protobuf_c_message_pack=no
   18570 fi
   18571 rm conftest.$ac_ext
   18572 LIBS=$ac_func_search_save_LIBS
   18573 fi
   18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
   18575 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
   18576 ac_res=$ac_cv_search_protobuf_c_message_pack
   18577 if test "$ac_res" != no; then :
   18578   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18579 
   18580 else
   18581   as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
   18582 fi
   18583 
   18584 
   18585 
   18586 $as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
   18587 
   18588 	DNSTAP=dnstap
   18589 	DNSTAPSRCS='${DNSTAPSRCS}'
   18590 	DNSTAPOBJS='${DNSTAPOBJS}'
   18591 	DNSTAPTARGETS='${DNSTAPTARGETS}'
   18592 fi
   18593 
   18594 
   18595 
   18596 
   18597 
   18598 #
   18599 #  The following sets up how non-blocking i/o is established.
   18600 #  cygwin and solaris 2.x (x<5) require special handling.
   18601 #
   18602 case "$host" in
   18603 *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
   18604 ;;
   18605 *-solaris2.[01234])
   18606 	$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   18607 
   18608 
   18609 $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
   18610 
   18611 	;;
   18612 *)
   18613 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   18614 
   18615 	;;
   18616 esac
   18617 #
   18618 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
   18619 # This prevents the source address being set.
   18620 #
   18621 case "$host" in
   18622 *-solaris2.[012345]|*-solaris2.5.1)
   18623 
   18624 $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
   18625 
   18626 	;;
   18627 esac
   18628 #
   18629 # The following sections deal with tools used for formatting
   18630 # the documentation.  They are all optional, unless you are
   18631 # a developer editing the documentation source.
   18632 #
   18633 
   18634 #
   18635 # Look for TeX.
   18636 #
   18637 
   18638 for ac_prog in latex
   18639 do
   18640   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18641 set dummy $ac_prog; ac_word=$2
   18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18643 $as_echo_n "checking for $ac_word... " >&6; }
   18644 if ${ac_cv_path_LATEX+:} false; then :
   18645   $as_echo_n "(cached) " >&6
   18646 else
   18647   case $LATEX in
   18648   [\\/]* | ?:[\\/]*)
   18649   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
   18650   ;;
   18651   *)
   18652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18653 for as_dir in $PATH
   18654 do
   18655   IFS=$as_save_IFS
   18656   test -z "$as_dir" && as_dir=.
   18657     for ac_exec_ext in '' $ac_executable_extensions; do
   18658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18659     ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
   18660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18661     break 2
   18662   fi
   18663 done
   18664   done
   18665 IFS=$as_save_IFS
   18666 
   18667   ;;
   18668 esac
   18669 fi
   18670 LATEX=$ac_cv_path_LATEX
   18671 if test -n "$LATEX"; then
   18672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
   18673 $as_echo "$LATEX" >&6; }
   18674 else
   18675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18676 $as_echo "no" >&6; }
   18677 fi
   18678 
   18679 
   18680   test -n "$LATEX" && break
   18681 done
   18682 test -n "$LATEX" || LATEX="latex"
   18683 
   18684 
   18685 
   18686 for ac_prog in pdflatex
   18687 do
   18688   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18689 set dummy $ac_prog; ac_word=$2
   18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18691 $as_echo_n "checking for $ac_word... " >&6; }
   18692 if ${ac_cv_path_PDFLATEX+:} false; then :
   18693   $as_echo_n "(cached) " >&6
   18694 else
   18695   case $PDFLATEX in
   18696   [\\/]* | ?:[\\/]*)
   18697   ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
   18698   ;;
   18699   *)
   18700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18701 for as_dir in $PATH
   18702 do
   18703   IFS=$as_save_IFS
   18704   test -z "$as_dir" && as_dir=.
   18705     for ac_exec_ext in '' $ac_executable_extensions; do
   18706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18707     ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
   18708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18709     break 2
   18710   fi
   18711 done
   18712   done
   18713 IFS=$as_save_IFS
   18714 
   18715   ;;
   18716 esac
   18717 fi
   18718 PDFLATEX=$ac_cv_path_PDFLATEX
   18719 if test -n "$PDFLATEX"; then
   18720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
   18721 $as_echo "$PDFLATEX" >&6; }
   18722 else
   18723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18724 $as_echo "no" >&6; }
   18725 fi
   18726 
   18727 
   18728   test -n "$PDFLATEX" && break
   18729 done
   18730 test -n "$PDFLATEX" || PDFLATEX="pdflatex"
   18731 
   18732 
   18733 
   18734 for ac_prog in dblatex
   18735 do
   18736   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18737 set dummy $ac_prog; ac_word=$2
   18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18739 $as_echo_n "checking for $ac_word... " >&6; }
   18740 if ${ac_cv_path_DBLATEX+:} false; then :
   18741   $as_echo_n "(cached) " >&6
   18742 else
   18743   case $DBLATEX in
   18744   [\\/]* | ?:[\\/]*)
   18745   ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
   18746   ;;
   18747   *)
   18748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18749 for as_dir in $PATH
   18750 do
   18751   IFS=$as_save_IFS
   18752   test -z "$as_dir" && as_dir=.
   18753     for ac_exec_ext in '' $ac_executable_extensions; do
   18754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18755     ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
   18756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18757     break 2
   18758   fi
   18759 done
   18760   done
   18761 IFS=$as_save_IFS
   18762 
   18763   ;;
   18764 esac
   18765 fi
   18766 DBLATEX=$ac_cv_path_DBLATEX
   18767 if test -n "$DBLATEX"; then
   18768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
   18769 $as_echo "$DBLATEX" >&6; }
   18770 else
   18771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18772 $as_echo "no" >&6; }
   18773 fi
   18774 
   18775 
   18776   test -n "$DBLATEX" && break
   18777 done
   18778 test -n "$DBLATEX" || DBLATEX="dblatex"
   18779 
   18780 
   18781 
   18782 #
   18783 # Look for w3m
   18784 #
   18785 
   18786 for ac_prog in w3m
   18787 do
   18788   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18789 set dummy $ac_prog; ac_word=$2
   18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18791 $as_echo_n "checking for $ac_word... " >&6; }
   18792 if ${ac_cv_path_W3M+:} false; then :
   18793   $as_echo_n "(cached) " >&6
   18794 else
   18795   case $W3M in
   18796   [\\/]* | ?:[\\/]*)
   18797   ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
   18798   ;;
   18799   *)
   18800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18801 for as_dir in $PATH
   18802 do
   18803   IFS=$as_save_IFS
   18804   test -z "$as_dir" && as_dir=.
   18805     for ac_exec_ext in '' $ac_executable_extensions; do
   18806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18807     ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
   18808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18809     break 2
   18810   fi
   18811 done
   18812   done
   18813 IFS=$as_save_IFS
   18814 
   18815   ;;
   18816 esac
   18817 fi
   18818 W3M=$ac_cv_path_W3M
   18819 if test -n "$W3M"; then
   18820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
   18821 $as_echo "$W3M" >&6; }
   18822 else
   18823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18824 $as_echo "no" >&6; }
   18825 fi
   18826 
   18827 
   18828   test -n "$W3M" && break
   18829 done
   18830 test -n "$W3M" || W3M="w3m"
   18831 
   18832 
   18833 
   18834 #
   18835 # Look for pandoc
   18836 #
   18837 # Extract the first word of "pandoc", so it can be a program name with args.
   18838 set dummy pandoc; ac_word=$2
   18839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18840 $as_echo_n "checking for $ac_word... " >&6; }
   18841 if ${ac_cv_path_PANDOC+:} false; then :
   18842   $as_echo_n "(cached) " >&6
   18843 else
   18844   case $PANDOC in
   18845   [\\/]* | ?:[\\/]*)
   18846   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
   18847   ;;
   18848   *)
   18849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18850 for as_dir in $PATH
   18851 do
   18852   IFS=$as_save_IFS
   18853   test -z "$as_dir" && as_dir=.
   18854     for ac_exec_ext in '' $ac_executable_extensions; do
   18855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18856     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
   18857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18858     break 2
   18859   fi
   18860 done
   18861   done
   18862 IFS=$as_save_IFS
   18863 
   18864   test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc"
   18865   ;;
   18866 esac
   18867 fi
   18868 PANDOC=$ac_cv_path_PANDOC
   18869 if test -n "$PANDOC"; then
   18870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
   18871 $as_echo "$PANDOC" >&6; }
   18872 else
   18873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18874 $as_echo "no" >&6; }
   18875 fi
   18876 
   18877 
   18878 
   18879 
   18880 
   18881 #
   18882 # Look for xsltproc (libxslt)
   18883 #
   18884 
   18885 # Extract the first word of "xsltproc", so it can be a program name with args.
   18886 set dummy xsltproc; ac_word=$2
   18887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18888 $as_echo_n "checking for $ac_word... " >&6; }
   18889 if ${ac_cv_path_XSLTPROC+:} false; then :
   18890   $as_echo_n "(cached) " >&6
   18891 else
   18892   case $XSLTPROC in
   18893   [\\/]* | ?:[\\/]*)
   18894   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
   18895   ;;
   18896   *)
   18897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18898 for as_dir in $PATH
   18899 do
   18900   IFS=$as_save_IFS
   18901   test -z "$as_dir" && as_dir=.
   18902     for ac_exec_ext in '' $ac_executable_extensions; do
   18903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18904     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
   18905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18906     break 2
   18907   fi
   18908 done
   18909   done
   18910 IFS=$as_save_IFS
   18911 
   18912   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
   18913   ;;
   18914 esac
   18915 fi
   18916 XSLTPROC=$ac_cv_path_XSLTPROC
   18917 if test -n "$XSLTPROC"; then
   18918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
   18919 $as_echo "$XSLTPROC" >&6; }
   18920 else
   18921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18922 $as_echo "no" >&6; }
   18923 fi
   18924 
   18925 
   18926 
   18927 
   18928 #
   18929 # Look for xmllint (libxml2)
   18930 #
   18931 
   18932 # Extract the first word of "xmllint", so it can be a program name with args.
   18933 set dummy xmllint; ac_word=$2
   18934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18935 $as_echo_n "checking for $ac_word... " >&6; }
   18936 if ${ac_cv_path_XMLLINT+:} false; then :
   18937   $as_echo_n "(cached) " >&6
   18938 else
   18939   case $XMLLINT in
   18940   [\\/]* | ?:[\\/]*)
   18941   ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
   18942   ;;
   18943   *)
   18944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18945 for as_dir in $PATH
   18946 do
   18947   IFS=$as_save_IFS
   18948   test -z "$as_dir" && as_dir=.
   18949     for ac_exec_ext in '' $ac_executable_extensions; do
   18950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18951     ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
   18952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18953     break 2
   18954   fi
   18955 done
   18956   done
   18957 IFS=$as_save_IFS
   18958 
   18959   test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
   18960   ;;
   18961 esac
   18962 fi
   18963 XMLLINT=$ac_cv_path_XMLLINT
   18964 if test -n "$XMLLINT"; then
   18965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
   18966 $as_echo "$XMLLINT" >&6; }
   18967 else
   18968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18969 $as_echo "no" >&6; }
   18970 fi
   18971 
   18972 
   18973 
   18974 
   18975 #
   18976 # Look for Doxygen
   18977 #
   18978 
   18979 # Extract the first word of "doxygen", so it can be a program name with args.
   18980 set dummy doxygen; ac_word=$2
   18981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18982 $as_echo_n "checking for $ac_word... " >&6; }
   18983 if ${ac_cv_path_DOXYGEN+:} false; then :
   18984   $as_echo_n "(cached) " >&6
   18985 else
   18986   case $DOXYGEN in
   18987   [\\/]* | ?:[\\/]*)
   18988   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
   18989   ;;
   18990   *)
   18991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18992 for as_dir in $PATH
   18993 do
   18994   IFS=$as_save_IFS
   18995   test -z "$as_dir" && as_dir=.
   18996     for ac_exec_ext in '' $ac_executable_extensions; do
   18997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18998     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   18999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19000     break 2
   19001   fi
   19002 done
   19003   done
   19004 IFS=$as_save_IFS
   19005 
   19006   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
   19007   ;;
   19008 esac
   19009 fi
   19010 DOXYGEN=$ac_cv_path_DOXYGEN
   19011 if test -n "$DOXYGEN"; then
   19012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
   19013 $as_echo "$DOXYGEN" >&6; }
   19014 else
   19015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19016 $as_echo "no" >&6; }
   19017 fi
   19018 
   19019 
   19020 
   19021 
   19022 #
   19023 # Look for curl
   19024 #
   19025 
   19026 # Extract the first word of "curl", so it can be a program name with args.
   19027 set dummy curl; ac_word=$2
   19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19029 $as_echo_n "checking for $ac_word... " >&6; }
   19030 if ${ac_cv_path_CURL+:} false; then :
   19031   $as_echo_n "(cached) " >&6
   19032 else
   19033   case $CURL in
   19034   [\\/]* | ?:[\\/]*)
   19035   ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
   19036   ;;
   19037   *)
   19038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19039 for as_dir in $PATH
   19040 do
   19041   IFS=$as_save_IFS
   19042   test -z "$as_dir" && as_dir=.
   19043     for ac_exec_ext in '' $ac_executable_extensions; do
   19044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19045     ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
   19046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19047     break 2
   19048   fi
   19049 done
   19050   done
   19051 IFS=$as_save_IFS
   19052 
   19053   test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
   19054   ;;
   19055 esac
   19056 fi
   19057 CURL=$ac_cv_path_CURL
   19058 if test -n "$CURL"; then
   19059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
   19060 $as_echo "$CURL" >&6; }
   19061 else
   19062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19063 $as_echo "no" >&6; }
   19064 fi
   19065 
   19066 
   19067 
   19068 
   19069 #
   19070 # Subroutine for searching for an ordinary file (e.g., a stylesheet)
   19071 # in a number of directories:
   19072 #
   19073 #   NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
   19074 #
   19075 # If the file FILENAME is found in one of the DIRECTORIES, the shell
   19076 # variable VARIABLE is defined to its absolute pathname.  Otherwise,
   19077 # it is set to FILENAME, with no directory prefix (that's not terribly
   19078 # useful, but looks less confusing in substitutions than leaving it
   19079 # empty).  The variable VARIABLE will be substituted into output files.
   19080 #
   19081 
   19082 
   19083 
   19084 #
   19085 # Look for Docbook-XSL stylesheets.  Location probably varies by system.
   19086 # If it's not explicitly specified, guess where it might be found, based on
   19087 # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
   19088 # of at the moment).
   19089 #
   19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5
   19091 $as_echo_n "checking for Docbook-XSL path... " >&6; }
   19092 
   19093 # Check whether --with-docbook-xsl was given.
   19094 if test "${with_docbook_xsl+set}" = set; then :
   19095   withval=$with_docbook_xsl; docbook_path="$withval"
   19096 else
   19097   docbook_path="auto"
   19098 fi
   19099 
   19100 case "$docbook_path" in
   19101 auto)
   19102 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
   19103 $as_echo "auto" >&6; }
   19104 	docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook-ns /usr/local/share/xsl/docbook /usr/share/xsl/docbook /opt/local/share/xsl/docbook-xsl /opt/local/share/xsl/docbook-xsl-nons /usr/share/xml/docbook/stylesheet/docbook-xsl"
   19105 	;;
   19106 *)
   19107 	docbook_xsl_trees="$withval"
   19108 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
   19109 $as_echo "$docbook_xsl_trees" >&6; }
   19110 	;;
   19111 esac
   19112 
   19113 #
   19114 # Look for stylesheets we need.
   19115 #
   19116 
   19117 
   19118 XSLT_DOCBOOK_STYLE_HTML=""
   19119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5
   19120 $as_echo_n "checking for html/docbook.xsl... " >&6; }
   19121 for d in $docbook_xsl_trees
   19122 do
   19123 	f=$d/html/docbook.xsl
   19124 	if test -f $f
   19125 	then
   19126 		XSLT_DOCBOOK_STYLE_HTML=$f
   19127 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19128 $as_echo "$f" >&6; }
   19129 		break
   19130 	fi
   19131 done
   19132 if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
   19133 then
   19134 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19135 $as_echo "\"not found\"" >&6; };
   19136 	XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
   19137 fi
   19138 
   19139 
   19140 
   19141 XSLT_DOCBOOK_STYLE_XHTML=""
   19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5
   19143 $as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
   19144 for d in $docbook_xsl_trees
   19145 do
   19146 	f=$d/xhtml/docbook.xsl
   19147 	if test -f $f
   19148 	then
   19149 		XSLT_DOCBOOK_STYLE_XHTML=$f
   19150 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19151 $as_echo "$f" >&6; }
   19152 		break
   19153 	fi
   19154 done
   19155 if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
   19156 then
   19157 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19158 $as_echo "\"not found\"" >&6; };
   19159 	XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
   19160 fi
   19161 
   19162 
   19163 
   19164 XSLT_DOCBOOK_STYLE_MAN=""
   19165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5
   19166 $as_echo_n "checking for manpages/docbook.xsl... " >&6; }
   19167 for d in $docbook_xsl_trees
   19168 do
   19169 	f=$d/manpages/docbook.xsl
   19170 	if test -f $f
   19171 	then
   19172 		XSLT_DOCBOOK_STYLE_MAN=$f
   19173 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19174 $as_echo "$f" >&6; }
   19175 		break
   19176 	fi
   19177 done
   19178 if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
   19179 then
   19180 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19181 $as_echo "\"not found\"" >&6; };
   19182 	XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
   19183 fi
   19184 
   19185 
   19186 
   19187 XSLT_DOCBOOK_CHUNK_HTML=""
   19188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5
   19189 $as_echo_n "checking for html/chunk.xsl... " >&6; }
   19190 for d in $docbook_xsl_trees
   19191 do
   19192 	f=$d/html/chunk.xsl
   19193 	if test -f $f
   19194 	then
   19195 		XSLT_DOCBOOK_CHUNK_HTML=$f
   19196 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19197 $as_echo "$f" >&6; }
   19198 		break
   19199 	fi
   19200 done
   19201 if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
   19202 then
   19203 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19204 $as_echo "\"not found\"" >&6; };
   19205 	XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
   19206 fi
   19207 
   19208 
   19209 
   19210 XSLT_DOCBOOK_CHUNK_XHTML=""
   19211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5
   19212 $as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
   19213 for d in $docbook_xsl_trees
   19214 do
   19215 	f=$d/xhtml/chunk.xsl
   19216 	if test -f $f
   19217 	then
   19218 		XSLT_DOCBOOK_CHUNK_XHTML=$f
   19219 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19220 $as_echo "$f" >&6; }
   19221 		break
   19222 	fi
   19223 done
   19224 if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
   19225 then
   19226 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19227 $as_echo "\"not found\"" >&6; };
   19228 	XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
   19229 fi
   19230 
   19231 
   19232 
   19233 XSLT_DOCBOOK_CHUNKTOC_HTML=""
   19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5
   19235 $as_echo_n "checking for html/chunktoc.xsl... " >&6; }
   19236 for d in $docbook_xsl_trees
   19237 do
   19238 	f=$d/html/chunktoc.xsl
   19239 	if test -f $f
   19240 	then
   19241 		XSLT_DOCBOOK_CHUNKTOC_HTML=$f
   19242 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19243 $as_echo "$f" >&6; }
   19244 		break
   19245 	fi
   19246 done
   19247 if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
   19248 then
   19249 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19250 $as_echo "\"not found\"" >&6; };
   19251 	XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
   19252 fi
   19253 
   19254 
   19255 
   19256 XSLT_DOCBOOK_CHUNKTOC_XHTML=""
   19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5
   19258 $as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
   19259 for d in $docbook_xsl_trees
   19260 do
   19261 	f=$d/xhtml/chunktoc.xsl
   19262 	if test -f $f
   19263 	then
   19264 		XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
   19265 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19266 $as_echo "$f" >&6; }
   19267 		break
   19268 	fi
   19269 done
   19270 if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
   19271 then
   19272 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19273 $as_echo "\"not found\"" >&6; };
   19274 	XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
   19275 fi
   19276 
   19277 
   19278 
   19279 XSLT_DOCBOOK_MAKETOC_HTML=""
   19280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5
   19281 $as_echo_n "checking for html/maketoc.xsl... " >&6; }
   19282 for d in $docbook_xsl_trees
   19283 do
   19284 	f=$d/html/maketoc.xsl
   19285 	if test -f $f
   19286 	then
   19287 		XSLT_DOCBOOK_MAKETOC_HTML=$f
   19288 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19289 $as_echo "$f" >&6; }
   19290 		break
   19291 	fi
   19292 done
   19293 if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
   19294 then
   19295 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19296 $as_echo "\"not found\"" >&6; };
   19297 	XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
   19298 fi
   19299 
   19300 
   19301 
   19302 XSLT_DOCBOOK_MAKETOC_XHTML=""
   19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5
   19304 $as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
   19305 for d in $docbook_xsl_trees
   19306 do
   19307 	f=$d/xhtml/maketoc.xsl
   19308 	if test -f $f
   19309 	then
   19310 		XSLT_DOCBOOK_MAKETOC_XHTML=$f
   19311 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19312 $as_echo "$f" >&6; }
   19313 		break
   19314 	fi
   19315 done
   19316 if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
   19317 then
   19318 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19319 $as_echo "\"not found\"" >&6; };
   19320 	XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
   19321 fi
   19322 
   19323 
   19324 
   19325 #
   19326 # Same dance for dblatex
   19327 #
   19328 dblatex_xsl_trees="/usr/local/share/xml/docbook/stylesheet/dblatex /usr/pkg/share/xml/docbook/stylesheet/dblatex /usr/share/xml/docbook/stylesheet/dblatex"
   19329 
   19330 XSLT_DBLATEX_STYLE=""
   19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsl/docbook.xsl" >&5
   19332 $as_echo_n "checking for xsl/docbook.xsl... " >&6; }
   19333 for d in $dblatex_xsl_trees
   19334 do
   19335 	f=$d/xsl/docbook.xsl
   19336 	if test -f $f
   19337 	then
   19338 		XSLT_DBLATEX_STYLE=$f
   19339 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19340 $as_echo "$f" >&6; }
   19341 		break
   19342 	fi
   19343 done
   19344 if test "X$XSLT_DBLATEX_STYLE" = "X"
   19345 then
   19346 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19347 $as_echo "\"not found\"" >&6; };
   19348 	XSLT_DBLATEX_STYLE=xsl/docbook.xsl
   19349 fi
   19350 
   19351 
   19352 
   19353 XSLT_DBLATEX_FASTBOOK=""
   19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsl/latex_book_fast.xsl" >&5
   19355 $as_echo_n "checking for xsl/latex_book_fast.xsl... " >&6; }
   19356 for d in $dblatex_xsl_trees
   19357 do
   19358 	f=$d/xsl/latex_book_fast.xsl
   19359 	if test -f $f
   19360 	then
   19361 		XSLT_DBLATEX_FASTBOOK=$f
   19362 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19363 $as_echo "$f" >&6; }
   19364 		break
   19365 	fi
   19366 done
   19367 if test "X$XSLT_DBLATEX_FASTBOOK" = "X"
   19368 then
   19369 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19370 $as_echo "\"not found\"" >&6; };
   19371 	XSLT_DBLATEX_FASTBOOK=xsl/latex_book_fast.xsl
   19372 fi
   19373 
   19374 
   19375 
   19376 #
   19377 # IDN support using libidn2
   19378 #
   19379 
   19380 LIBIDN2_CFLAGS=
   19381 LIBIDN2_LDFLAGS=
   19382 LIBIDN2_LIBS=
   19383 
   19384 # Check whether --with-libidn2 was given.
   19385 if test "${with_libidn2+set}" = set; then :
   19386   withval=$with_libidn2; with_libidn2="$withval"
   19387 else
   19388   with_libidn2="no"
   19389 fi
   19390 
   19391 case $with_libidn2 in #(
   19392   yes) :
   19393 
   19394 pkg_failed=no
   19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
   19396 $as_echo_n "checking for libidn2... " >&6; }
   19397 
   19398 if test -n "$LIBIDN2_CFLAGS"; then
   19399     pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
   19400  elif test -n "$PKG_CONFIG"; then
   19401     if test -n "$PKG_CONFIG" && \
   19402     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   19403   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   19404   ac_status=$?
   19405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19406   test $ac_status = 0; }; then
   19407   pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
   19408 		      test "x$?" != "x0" && pkg_failed=yes
   19409 else
   19410   pkg_failed=yes
   19411 fi
   19412  else
   19413     pkg_failed=untried
   19414 fi
   19415 if test -n "$LIBIDN2_LIBS"; then
   19416     pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
   19417  elif test -n "$PKG_CONFIG"; then
   19418     if test -n "$PKG_CONFIG" && \
   19419     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   19420   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   19421   ac_status=$?
   19422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19423   test $ac_status = 0; }; then
   19424   pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
   19425 		      test "x$?" != "x0" && pkg_failed=yes
   19426 else
   19427   pkg_failed=yes
   19428 fi
   19429  else
   19430     pkg_failed=untried
   19431 fi
   19432 
   19433 
   19434 
   19435 if test $pkg_failed = yes; then
   19436         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19437 $as_echo "no" >&6; }
   19438 
   19439 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   19440         _pkg_short_errors_supported=yes
   19441 else
   19442         _pkg_short_errors_supported=no
   19443 fi
   19444         if test $_pkg_short_errors_supported = yes; then
   19445 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
   19446         else
   19447 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
   19448         fi
   19449 	# Put the nasty error message in config.log where it belongs
   19450 	echo "$LIBIDN2_PKG_ERRORS" >&5
   19451 
   19452 	as_fn_error $? "Package requirements (libidn2) were not met:
   19453 
   19454 $LIBIDN2_PKG_ERRORS
   19455 
   19456 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   19457 installed software in a non-standard prefix.
   19458 
   19459 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   19460 and LIBIDN2_LIBS to avoid the need to call pkg-config.
   19461 See the pkg-config man page for more details." "$LINENO" 5
   19462 elif test $pkg_failed = untried; then
   19463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19464 $as_echo "no" >&6; }
   19465 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19467 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   19468 is in your PATH or set the PKG_CONFIG environment variable to the full
   19469 path to pkg-config.
   19470 
   19471 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   19472 and LIBIDN2_LIBS to avoid the need to call pkg-config.
   19473 See the pkg-config man page for more details.
   19474 
   19475 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   19476 See \`config.log' for more details" "$LINENO" 5; }
   19477 else
   19478 	LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
   19479 	LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
   19480         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19481 $as_echo "yes" >&6; }
   19482 
   19483 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   19484 
   19485 fi ;; #(
   19486   no) :
   19487      ;; #(
   19488   *) :
   19489     save_CFLAGS="$CFLAGS"
   19490 		 save_CPPFLAGS="$CPPFLAGS"
   19491 		 save_LDFLAGS="$LDFLAGS"
   19492 		 save_LIBS="$LIBS"
   19493 		 LIBIDN2_CFLAGS="-I$with_libidn2/include"
   19494 		 LIBIDN2_LDFLAGS="-L$with_libidn2/lib"
   19495 		 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
   19496 		 CPPFLAGS="$LIBIDN2_CFLAGS $CPPFLAGS"
   19497 		 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
   19498 		 for ac_header in idn2.h
   19499 do :
   19500   ac_fn_c_check_header_mongrel "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
   19501 if test "x$ac_cv_header_idn2_h" = xyes; then :
   19502   cat >>confdefs.h <<_ACEOF
   19503 #define HAVE_IDN2_H 1
   19504 _ACEOF
   19505 
   19506 else
   19507   as_fn_error $? "idn2.h not found" "$LINENO" 5
   19508 fi
   19509 
   19510 done
   19511 
   19512 		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
   19513 $as_echo_n "checking for library containing idn2_to_ascii_lz... " >&6; }
   19514 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19515   $as_echo_n "(cached) " >&6
   19516 else
   19517   ac_func_search_save_LIBS=$LIBS
   19518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19519 /* end confdefs.h.  */
   19520 
   19521 /* Override any GCC internal prototype to avoid an error.
   19522    Use char because int might match the return type of a GCC
   19523    builtin and then its argument prototype would still apply.  */
   19524 #ifdef __cplusplus
   19525 extern "C"
   19526 #endif
   19527 char idn2_to_ascii_lz ();
   19528 int
   19529 main ()
   19530 {
   19531 return idn2_to_ascii_lz ();
   19532   ;
   19533   return 0;
   19534 }
   19535 _ACEOF
   19536 for ac_lib in '' idn2; do
   19537   if test -z "$ac_lib"; then
   19538     ac_res="none required"
   19539   else
   19540     ac_res=-l$ac_lib
   19541     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19542   fi
   19543   if ac_fn_c_try_link "$LINENO"; then :
   19544   ac_cv_search_idn2_to_ascii_lz=$ac_res
   19545 fi
   19546 rm -f core conftest.err conftest.$ac_objext \
   19547     conftest$ac_exeext
   19548   if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19549   break
   19550 fi
   19551 done
   19552 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19553 
   19554 else
   19555   ac_cv_search_idn2_to_ascii_lz=no
   19556 fi
   19557 rm conftest.$ac_ext
   19558 LIBS=$ac_func_search_save_LIBS
   19559 fi
   19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
   19561 $as_echo "$ac_cv_search_idn2_to_ascii_lz" >&6; }
   19562 ac_res=$ac_cv_search_idn2_to_ascii_lz
   19563 if test "$ac_res" != no; then :
   19564   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19565   LIBIDN2_LIBS="$ac_cv_search_idn2_to_ascii_lz"
   19566 
   19567 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   19568 
   19569 else
   19570   as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
   19571 fi
   19572 
   19573 		 CFLAGS="$save_CFLAGS"
   19574 		 CPPFLAGS="$save_CPPFLAGS"
   19575 		 LDFLAGS="$save_LDFLAGS"
   19576 		 LIBS="$save_LIBS" ;; #(
   19577   *) :
   19578      ;;
   19579 esac
   19580 
   19581 
   19582 
   19583 
   19584 #
   19585 # Check whether to build with cmocka unit testing framework
   19586 #
   19587 
   19588 
   19589 # Check whether --with-cmocka was given.
   19590 if test "${with_cmocka+set}" = set; then :
   19591   withval=$with_cmocka;
   19592 else
   19593   with_cmocka=detect
   19594 fi
   19595 
   19596 
   19597 case $with_cmocka in #(
   19598   no) :
   19599      ;; #(
   19600   detect) :
   19601 
   19602 pkg_failed=no
   19603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
   19604 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
   19605 
   19606 if test -n "$CMOCKA_CFLAGS"; then
   19607     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   19608  elif test -n "$PKG_CONFIG"; then
   19609     if test -n "$PKG_CONFIG" && \
   19610     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19611   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19612   ac_status=$?
   19613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19614   test $ac_status = 0; }; then
   19615   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
   19616 		      test "x$?" != "x0" && pkg_failed=yes
   19617 else
   19618   pkg_failed=yes
   19619 fi
   19620  else
   19621     pkg_failed=untried
   19622 fi
   19623 if test -n "$CMOCKA_LIBS"; then
   19624     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   19625  elif test -n "$PKG_CONFIG"; then
   19626     if test -n "$PKG_CONFIG" && \
   19627     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19628   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19629   ac_status=$?
   19630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19631   test $ac_status = 0; }; then
   19632   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
   19633 		      test "x$?" != "x0" && pkg_failed=yes
   19634 else
   19635   pkg_failed=yes
   19636 fi
   19637  else
   19638     pkg_failed=untried
   19639 fi
   19640 
   19641 
   19642 
   19643 if test $pkg_failed = yes; then
   19644         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19645 $as_echo "no" >&6; }
   19646 
   19647 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   19648         _pkg_short_errors_supported=yes
   19649 else
   19650         _pkg_short_errors_supported=no
   19651 fi
   19652         if test $_pkg_short_errors_supported = yes; then
   19653 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19654         else
   19655 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19656         fi
   19657 	# Put the nasty error message in config.log where it belongs
   19658 	echo "$CMOCKA_PKG_ERRORS" >&5
   19659 
   19660 	with_cmocka=no
   19661 elif test $pkg_failed = untried; then
   19662         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19663 $as_echo "no" >&6; }
   19664 	with_cmocka=no
   19665 else
   19666 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   19667 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   19668         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19669 $as_echo "yes" >&6; }
   19670 
   19671 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   19672 
   19673 				     UNITTESTS=tests
   19674 fi ;; #(
   19675   yes) :
   19676 
   19677 pkg_failed=no
   19678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
   19679 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
   19680 
   19681 if test -n "$CMOCKA_CFLAGS"; then
   19682     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   19683  elif test -n "$PKG_CONFIG"; then
   19684     if test -n "$PKG_CONFIG" && \
   19685     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19686   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19687   ac_status=$?
   19688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19689   test $ac_status = 0; }; then
   19690   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
   19691 		      test "x$?" != "x0" && pkg_failed=yes
   19692 else
   19693   pkg_failed=yes
   19694 fi
   19695  else
   19696     pkg_failed=untried
   19697 fi
   19698 if test -n "$CMOCKA_LIBS"; then
   19699     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   19700  elif test -n "$PKG_CONFIG"; then
   19701     if test -n "$PKG_CONFIG" && \
   19702     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19703   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19704   ac_status=$?
   19705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19706   test $ac_status = 0; }; then
   19707   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
   19708 		      test "x$?" != "x0" && pkg_failed=yes
   19709 else
   19710   pkg_failed=yes
   19711 fi
   19712  else
   19713     pkg_failed=untried
   19714 fi
   19715 
   19716 
   19717 
   19718 if test $pkg_failed = yes; then
   19719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19720 $as_echo "no" >&6; }
   19721 
   19722 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   19723         _pkg_short_errors_supported=yes
   19724 else
   19725         _pkg_short_errors_supported=no
   19726 fi
   19727         if test $_pkg_short_errors_supported = yes; then
   19728 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19729         else
   19730 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19731         fi
   19732 	# Put the nasty error message in config.log where it belongs
   19733 	echo "$CMOCKA_PKG_ERRORS" >&5
   19734 
   19735 	as_fn_error $? "Package requirements (cmocka >= 1.0.0) were not met:
   19736 
   19737 $CMOCKA_PKG_ERRORS
   19738 
   19739 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   19740 installed software in a non-standard prefix.
   19741 
   19742 Alternatively, you may set the environment variables CMOCKA_CFLAGS
   19743 and CMOCKA_LIBS to avoid the need to call pkg-config.
   19744 See the pkg-config man page for more details." "$LINENO" 5
   19745 elif test $pkg_failed = untried; then
   19746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19747 $as_echo "no" >&6; }
   19748 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19750 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   19751 is in your PATH or set the PKG_CONFIG environment variable to the full
   19752 path to pkg-config.
   19753 
   19754 Alternatively, you may set the environment variables CMOCKA_CFLAGS
   19755 and CMOCKA_LIBS to avoid the need to call pkg-config.
   19756 See the pkg-config man page for more details.
   19757 
   19758 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   19759 See \`config.log' for more details" "$LINENO" 5; }
   19760 else
   19761 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   19762 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   19763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19764 $as_echo "yes" >&6; }
   19765 
   19766 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   19767 
   19768 fi
   19769 	                          UNITTESTS=tests ;; #(
   19770   *) :
   19771     as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5
   19772         ;;
   19773 esac
   19774 
   19775 
   19776 
   19777 
   19778 #
   19779 # Check for kyua execution engine if CMocka was requested
   19780 # and bail out if execution engine was not found
   19781 #
   19782 
   19783 if test "$with_cmocka" != "no"; then :
   19784   for ac_prog in kyua
   19785 do
   19786   # Extract the first word of "$ac_prog", so it can be a program name with args.
   19787 set dummy $ac_prog; ac_word=$2
   19788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19789 $as_echo_n "checking for $ac_word... " >&6; }
   19790 if ${ac_cv_path_KYUA+:} false; then :
   19791   $as_echo_n "(cached) " >&6
   19792 else
   19793   case $KYUA in
   19794   [\\/]* | ?:[\\/]*)
   19795   ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
   19796   ;;
   19797   *)
   19798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19799 for as_dir in $PATH
   19800 do
   19801   IFS=$as_save_IFS
   19802   test -z "$as_dir" && as_dir=.
   19803     for ac_exec_ext in '' $ac_executable_extensions; do
   19804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19805     ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
   19806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19807     break 2
   19808   fi
   19809 done
   19810   done
   19811 IFS=$as_save_IFS
   19812 
   19813   ;;
   19814 esac
   19815 fi
   19816 KYUA=$ac_cv_path_KYUA
   19817 if test -n "$KYUA"; then
   19818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
   19819 $as_echo "$KYUA" >&6; }
   19820 else
   19821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19822 $as_echo "no" >&6; }
   19823 fi
   19824 
   19825 
   19826   test -n "$KYUA" && break
   19827 done
   19828 
   19829        if test -z "$KYUA"; then :
   19830   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
   19831 $as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
   19832 fi
   19833 fi
   19834 
   19835 
   19836 
   19837 #
   19838 # Check for -Wl,--wrap= support
   19839 #
   19840 
   19841 save_LDFLAGS=$LDFLAGS
   19842 LDFLAGS="--wrap=printf"
   19843 
   19844 LD_WRAP_TESTS=false
   19845 enable_ld_wrap=no
   19846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for --wrap option" >&5
   19847 $as_echo_n "checking for linker support for --wrap option... " >&6; }
   19848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19849 /* end confdefs.h.  */
   19850 #include <stdio.h>
   19851 int
   19852 main ()
   19853 {
   19854 __wrap_printf("success"); return (0);
   19855   ;
   19856   return 0;
   19857 }
   19858 _ACEOF
   19859 if ac_fn_c_try_link "$LINENO"; then :
   19860   enable_ld_wrap=yes
   19861      LD_WRAP_TESTS=true
   19862 
   19863 $as_echo "#define LD_WRAP 1" >>confdefs.h
   19864 
   19865      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19866 $as_echo "yes" >&6; }
   19867 else
   19868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19869 $as_echo "no" >&6; }
   19870 fi
   19871 rm -f core conftest.err conftest.$ac_objext \
   19872     conftest$ac_exeext conftest.$ac_ext
   19873 # AM_CONDITIONAL([LD_WRAP], [test $enable_ld_wrap = yes])
   19874 
   19875 
   19876 LDFLAGS=$save_LDFLAGS
   19877 
   19878 #
   19879 # Check for i18n
   19880 #
   19881 for ac_header in locale.h
   19882 do :
   19883   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
   19884 if test "x$ac_cv_header_locale_h" = xyes; then :
   19885   cat >>confdefs.h <<_ACEOF
   19886 #define HAVE_LOCALE_H 1
   19887 _ACEOF
   19888 
   19889 fi
   19890 
   19891 done
   19892 
   19893 for ac_func in setlocale
   19894 do :
   19895   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
   19896 if test "x$ac_cv_func_setlocale" = xyes; then :
   19897   cat >>confdefs.h <<_ACEOF
   19898 #define HAVE_SETLOCALE 1
   19899 _ACEOF
   19900 
   19901 fi
   19902 done
   19903 
   19904 
   19905 #
   19906 # was --with-tuning specified?
   19907 #
   19908 
   19909 # Check whether --with-tuning was given.
   19910 if test "${with_tuning+set}" = set; then :
   19911   withval=$with_tuning; use_tuning="$withval"
   19912 else
   19913   use_tuning="no"
   19914 fi
   19915 
   19916 
   19917 case "$use_tuning" in
   19918 	large)
   19919 
   19920 $as_echo "#define TUNE_LARGE 1" >>confdefs.h
   19921 
   19922 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using large-system tuning" >&5
   19923 $as_echo "using large-system tuning" >&6; }
   19924 		;;
   19925 	no|default)
   19926 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using default tuning" >&5
   19927 $as_echo "using default tuning" >&6; }
   19928 		;;
   19929 	yes|*)
   19930 		as_fn_error $? "You must specify \"large\" or \"default\" for --with-tuning." "$LINENO" 5
   19931 		;;
   19932 esac
   19933 
   19934 #
   19935 # was --enable-querytrace specified?
   19936 #
   19937 # Check whether --enable-querytrace was given.
   19938 if test "${enable_querytrace+set}" = set; then :
   19939   enableval=$enable_querytrace; want_querytrace="$enableval"
   19940 else
   19941   want_querytrace="no"
   19942 fi
   19943 
   19944 
   19945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
   19946 $as_echo_n "checking whether to enable query trace logging... " >&6; }
   19947 case "$want_querytrace" in
   19948 yes)
   19949 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19950 $as_echo "yes" >&6; }
   19951 
   19952 $as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
   19953 
   19954 	;;
   19955 no)
   19956 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19957 $as_echo "no" >&6; }
   19958 	;;
   19959 *)
   19960 	as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
   19961 	;;
   19962 esac
   19963 
   19964 #
   19965 # Was --disable-auto-validation specified?
   19966 #
   19967 validation_default=auto
   19968 # Check whether --enable-auto-validation was given.
   19969 if test "${enable_auto_validation+set}" = set; then :
   19970   enableval=$enable_auto_validation; :
   19971 else
   19972   enable_auto_validation=yes
   19973 fi
   19974 
   19975 if test "$enable_auto_validation" = "no"; then :
   19976   validation_default=yes
   19977 fi
   19978 
   19979 cat >>confdefs.h <<_ACEOF
   19980 #define VALIDATION_DEFAULT "$validation_default"
   19981 _ACEOF
   19982 
   19983 
   19984 #
   19985 # Substitutions
   19986 #
   19987 
   19988 BIND9_TOP_BUILDDIR=`pwd`
   19989 
   19990 
   19991 
   19992 
   19993 
   19994 
   19995 
   19996 
   19997 if test "X$srcdir" != "X"; then
   19998 	BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
   19999 	BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
   20000 	BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
   20001 	BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
   20002 	BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
   20003 	BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
   20004 	BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
   20005 else
   20006 	BIND9_ISC_BUILDINCLUDE=""
   20007 	BIND9_ISCCC_BUILDINCLUDE=""
   20008 	BIND9_ISCCFG_BUILDINCLUDE=""
   20009 	BIND9_DNS_BUILDINCLUDE=""
   20010 	BIND9_NS_BUILDINCLUDE=""
   20011 	BIND9_BIND9_BUILDINCLUDE=""
   20012 	BIND9_IRS_BUILDINCLUDE=""
   20013 fi
   20014 
   20015 
   20016 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
   20017 
   20018 
   20019 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
   20020 
   20021 . "$srcdir/version"
   20022 BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
   20023 
   20024 BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
   20025 
   20026 BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   20027 
   20028 BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
   20029 
   20030 BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
   20031 
   20032 BIND9_VERSIONSHORT="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   20033 
   20034 
   20035 BIND9_SRCID="SRCID=unset_id"
   20036 if test -f "${srcdir}/srcid"; then
   20037 	. "${srcdir}/srcid"
   20038 	BIND9_SRCID="SRCID=$SRCID"
   20039 elif test -d "${srcdir}/.git"; then
   20040 	BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
   20041 fi
   20042 
   20043 
   20044 
   20045 if test -z "$ac_configure_args"; then
   20046 	BIND9_CONFIGARGS="defaults"
   20047 else
   20048 	for a in $ac_configure_args
   20049 	do
   20050 		BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
   20051 	done
   20052 fi
   20053 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
   20054 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
   20055 
   20056 
   20057 
   20058 LIBISC_API="$srcdir/lib/isc/api"
   20059 
   20060 
   20061 LIBISCCC_API="$srcdir/lib/isccc/api"
   20062 
   20063 
   20064 LIBISCCFG_API="$srcdir/lib/isccfg/api"
   20065 
   20066 
   20067 LIBDNS_API="$srcdir/lib/dns/api"
   20068 
   20069 
   20070 LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
   20071 
   20072 
   20073 LIBBIND9_API="$srcdir/lib/bind9/api"
   20074 
   20075 
   20076 LIBIRS_API="$srcdir/lib/irs/api"
   20077 
   20078 
   20079 LIBNS_API="$srcdir/lib/ns/api"
   20080 
   20081 #
   20082 # Configure any DLZ drivers.
   20083 #
   20084 # If config.dlz.in selects one or more DLZ drivers, it will set
   20085 # CONTRIB_DLZ to a non-empty value, which will be our clue to
   20086 # build DLZ drivers in contrib.
   20087 #
   20088 # This section has to come after the libtool stuff because it needs to
   20089 # know how to name the driver object files.
   20090 #
   20091 
   20092 CONTRIB_DLZ=""
   20093 DLZ_DRIVER_INCLUDES=""
   20094 DLZ_DRIVER_LIBS=""
   20095 DLZ_DRIVER_SRCS=""
   20096 DLZ_DRIVER_OBJS=""
   20097 DLZ_SYSTEM_TEST=""
   20098 DLZ_DRIVER_MYSQL_INCLUDES=""
   20099 DLZ_DRIVER_MYSQL_LIBS=""
   20100 
   20101 #
   20102 # Configure support for building a shared library object
   20103 #
   20104 # Even when libtool is available it can't always be relied upon
   20105 # to build an object that can be dlopen()'ed, but this is necessary
   20106 # for building the dlzexternal system test, so we'll try it the
   20107 # old-fashioned way.
   20108 #
   20109 SO="so"
   20110 SO_CFLAGS=""
   20111 SO_LDFLAGS=""
   20112 SO_LD=""
   20113 SO_TARGETS=""
   20114 SO_STRIP="cat"
   20115 
   20116 
   20117 # Check whether --with-dlopen was given.
   20118 if test "${with_dlopen+set}" = set; then :
   20119   withval=$with_dlopen;
   20120 else
   20121   with_dlopen="auto"
   20122 fi
   20123 
   20124 
   20125 
   20126 #
   20127 # If PIC is disabled, dlopen must also be
   20128 #
   20129 if test "$pic_mode" = "no"; then :
   20130   case $with_dlopen in #(
   20131   auto) :
   20132     with_dlopen="no" ;; #(
   20133   yes) :
   20134     as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #(
   20135   *) :
   20136      ;;
   20137 esac
   20138 fi
   20139 
   20140 case $with_dlopen in #(
   20141   auto|yes) :
   20142 
   20143 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   20144 $as_echo_n "checking for library containing dlopen... " >&6; }
   20145 if ${ac_cv_search_dlopen+:} false; then :
   20146   $as_echo_n "(cached) " >&6
   20147 else
   20148   ac_func_search_save_LIBS=$LIBS
   20149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20150 /* end confdefs.h.  */
   20151 
   20152 /* Override any GCC internal prototype to avoid an error.
   20153    Use char because int might match the return type of a GCC
   20154    builtin and then its argument prototype would still apply.  */
   20155 #ifdef __cplusplus
   20156 extern "C"
   20157 #endif
   20158 char dlopen ();
   20159 int
   20160 main ()
   20161 {
   20162 return dlopen ();
   20163   ;
   20164   return 0;
   20165 }
   20166 _ACEOF
   20167 for ac_lib in '' dl; do
   20168   if test -z "$ac_lib"; then
   20169     ac_res="none required"
   20170   else
   20171     ac_res=-l$ac_lib
   20172     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20173   fi
   20174   if ac_fn_c_try_link "$LINENO"; then :
   20175   ac_cv_search_dlopen=$ac_res
   20176 fi
   20177 rm -f core conftest.err conftest.$ac_objext \
   20178     conftest$ac_exeext
   20179   if ${ac_cv_search_dlopen+:} false; then :
   20180   break
   20181 fi
   20182 done
   20183 if ${ac_cv_search_dlopen+:} false; then :
   20184 
   20185 else
   20186   ac_cv_search_dlopen=no
   20187 fi
   20188 rm conftest.$ac_ext
   20189 LIBS=$ac_func_search_save_LIBS
   20190 fi
   20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   20192 $as_echo "$ac_cv_search_dlopen" >&6; }
   20193 ac_res=$ac_cv_search_dlopen
   20194 if test "$ac_res" != no; then :
   20195   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20196 
   20197 fi
   20198 
   20199 	  for ac_func in dlopen dlclose dlsym
   20200 do :
   20201   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20202 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   20203 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   20204   cat >>confdefs.h <<_ACEOF
   20205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20206 _ACEOF
   20207  with_dlopen="yes"
   20208 else
   20209   with_dlopen="no"
   20210 fi
   20211 done
   20212 
   20213 	 ;; #(
   20214   *) :
   20215      ;;
   20216 esac
   20217 
   20218 if test "$with_dlopen" = "yes"; then :
   20219   case $host in #(
   20220   *-linux*|*-gnu*) :
   20221 
   20222 		 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
   20223 		 SO_CFLAGS="-fPIC"
   20224 		 SO_LDFLAGS=""
   20225 		 if test "$use_libtool" = "yes"; then :
   20226 
   20227 			 SO_LDFLAGS="-Xcompiler -shared"
   20228 			 SO_LD="${CC}"
   20229 
   20230 else
   20231 
   20232 			 SO_LDFLAGS="-shared"
   20233 			 SO_LD="${CC}"
   20234 
   20235 fi
   20236 	        ;; #(
   20237   *-freebsd*|*-openbsd*|*-netbsd*) :
   20238 
   20239 		 LDFLAGS="${LDFLAGS} -Wl,-E"
   20240 		 SO_CFLAGS="-fpic"
   20241 		 if test "$use_libtool" = "yes"; then :
   20242 
   20243 			 SO_LDFLAGS="-Xcompiler -shared"
   20244 			 SO_LD="${CC}"
   20245 
   20246 else
   20247 
   20248 			 SO_LDFLAGS="-shared"
   20249 			 SO_LD="${CC}"
   20250 
   20251 fi
   20252 	        ;; #(
   20253   *-darwin*) :
   20254 
   20255 		 SO_CFLAGS="-fPIC"
   20256                  SO_LD="${CC}"
   20257 		 if test "$use_libtool" = "yes"; then :
   20258 
   20259 			 SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
   20260 
   20261 else
   20262 
   20263 			 SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
   20264 
   20265 fi
   20266 	        ;; #(
   20267   *-solaris*) :
   20268 
   20269 		 SO_CFLAGS="-KPIC"
   20270 		 SO_LDFLAGS="-G -z text"
   20271 		 SO_LD="ld"
   20272 	        ;; #(
   20273   *) :
   20274 
   20275 		 SO_CFLAGS="-fPIC"
   20276 	        ;;
   20277 esac
   20278        if test "$GCC" = "yes"; then :
   20279 
   20280 	       SO_CFLAGS="-fPIC"
   20281 	       if test -z "$SO_LD"; then :
   20282   if test "$use_libtool" = "yes"; then :
   20283 
   20284 			      SO_LDFLAGS="-Xcompiler -shared"
   20285 			      SO_LD="${CC}"
   20286 
   20287 else
   20288 
   20289 			      SO_LDFLAGS="-shared"
   20290 			      SO_LD="${CC}"
   20291 
   20292 fi
   20293 
   20294 fi
   20295 
   20296 fi
   20297        # If we still don't know how to make shared objects, don't make any.
   20298        if test -n "$SO_LD"; then :
   20299   SO_TARGETS="\${SO_TARGETS}"
   20300 
   20301 $as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
   20302 
   20303 
   20304 fi
   20305 
   20306 fi
   20307 
   20308 CFLAGS="$CFLAGS $SO_CFLAGS"
   20309 
   20310 
   20311 
   20312 
   20313 
   20314 
   20315 
   20316 
   20317 #
   20318 # Response policy rewriting using DNS Response Policy Service (DNSRPS)
   20319 # interface.
   20320 #
   20321 # DNSRPS can be compiled into BIND everywhere with a reasonably
   20322 # modern C compiler.  It is enabled on systems with dlopen() and librpz.so.
   20323 #
   20324 dnsrps_avail=yes
   20325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
   20326 $as_echo_n "checking for librpz __attribute__s... " >&6; }
   20327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20328 /* end confdefs.h.  */
   20329 
   20330 int
   20331 main ()
   20332 {
   20333 
   20334        extern void f(char *p __attribute__((unused)), ...)
   20335        __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
   20336 
   20337   ;
   20338   return 0;
   20339 }
   20340 _ACEOF
   20341 if ac_fn_c_try_compile "$LINENO"; then :
   20342 
   20343     librpz_have_attr=yes
   20344 
   20345 $as_echo "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
   20346 
   20347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20348 $as_echo "yes" >&6; }
   20349 
   20350 else
   20351 
   20352     librpz_have_attr=no
   20353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20354 $as_echo "no" >&6; }
   20355 
   20356 fi
   20357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20358 
   20359 # Check whether --enable-dnsrps-dl was given.
   20360 if test "${enable_dnsrps_dl+set}" = set; then :
   20361   enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
   20362 else
   20363   enable_librpz_dl="$with_dlopen"
   20364 fi
   20365 
   20366 
   20367 if test "$enable_librpz_dl" = "yes" -a "$with_dlopen" = "no"; then :
   20368   as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
   20369 fi
   20370 
   20371 
   20372 # Check whether --with-dnsrps-libname was given.
   20373 if test "${with_dnsrps_libname+set}" = set; then :
   20374   withval=$with_dnsrps_libname; librpz_name="$withval"
   20375 else
   20376   librpz_name="librpz.so"
   20377 fi
   20378 
   20379 
   20380 # Check whether --with-dnsrps-dir was given.
   20381 if test "${with_dnsrps_dir+set}" = set; then :
   20382   withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
   20383 else
   20384   librpz_path="$librpz_name"
   20385 fi
   20386 
   20387 
   20388 cat >>confdefs.h <<_ACEOF
   20389 #define DNSRPS_LIBRPZ_PATH "$librpz_path"
   20390 _ACEOF
   20391 
   20392 if test "$enable_librpz_dl" = "yes"; then :
   20393 
   20394 	dnsrps_lib_open=2
   20395 
   20396 else
   20397 
   20398 	dnsrps_lib_open=1
   20399 	# Add librpz.so to linked libraries if we are not using dlopen()
   20400 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
   20401 $as_echo_n "checking for library containing librpz_client_create... " >&6; }
   20402 if ${ac_cv_search_librpz_client_create+:} false; then :
   20403   $as_echo_n "(cached) " >&6
   20404 else
   20405   ac_func_search_save_LIBS=$LIBS
   20406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20407 /* end confdefs.h.  */
   20408 
   20409 /* Override any GCC internal prototype to avoid an error.
   20410    Use char because int might match the return type of a GCC
   20411    builtin and then its argument prototype would still apply.  */
   20412 #ifdef __cplusplus
   20413 extern "C"
   20414 #endif
   20415 char librpz_client_create ();
   20416 int
   20417 main ()
   20418 {
   20419 return librpz_client_create ();
   20420   ;
   20421   return 0;
   20422 }
   20423 _ACEOF
   20424 for ac_lib in '' rpz; do
   20425   if test -z "$ac_lib"; then
   20426     ac_res="none required"
   20427   else
   20428     ac_res=-l$ac_lib
   20429     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20430   fi
   20431   if ac_fn_c_try_link "$LINENO"; then :
   20432   ac_cv_search_librpz_client_create=$ac_res
   20433 fi
   20434 rm -f core conftest.err conftest.$ac_objext \
   20435     conftest$ac_exeext
   20436   if ${ac_cv_search_librpz_client_create+:} false; then :
   20437   break
   20438 fi
   20439 done
   20440 if ${ac_cv_search_librpz_client_create+:} false; then :
   20441 
   20442 else
   20443   ac_cv_search_librpz_client_create=no
   20444 fi
   20445 rm conftest.$ac_ext
   20446 LIBS=$ac_func_search_save_LIBS
   20447 fi
   20448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
   20449 $as_echo "$ac_cv_search_librpz_client_create" >&6; }
   20450 ac_res=$ac_cv_search_librpz_client_create
   20451 if test "$ac_res" != no; then :
   20452   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20453 
   20454 else
   20455   dnsrps_lib_open=0
   20456 		 dnsrps_avail=no
   20457 fi
   20458 
   20459 
   20460 fi
   20461 
   20462 cat >>confdefs.h <<_ACEOF
   20463 #define DNSRPS_LIB_OPEN $dnsrps_lib_open
   20464 _ACEOF
   20465 
   20466 
   20467 # Check whether --enable-dnsrps was given.
   20468 if test "${enable_dnsrps+set}" = set; then :
   20469   enableval=$enable_dnsrps; enable_dnsrps=$enableval
   20470 else
   20471   enable_dnsrps=no
   20472 fi
   20473 
   20474 
   20475 if test "$enable_dnsrps" != "no"; then :
   20476 
   20477 	if test "$dnsrps_avail" != "yes"; then :
   20478   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   20479 fi
   20480 	if test "$dnsrps_lib_open" = "0"; then :
   20481   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   20482 fi
   20483 
   20484 $as_echo "#define USE_DNSRPS 1" >>confdefs.h
   20485 
   20486 
   20487 fi
   20488 
   20489 # Copyright (C) 2005  Internet Systems Consortium, Inc. ("ISC")
   20490 #
   20491 # Permission to use, copy, modify, and distribute this software for any
   20492 # purpose with or without fee is hereby granted, provided that the above
   20493 # copyright notice and this permission notice appear in all copies.
   20494 #
   20495 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
   20496 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
   20497 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
   20498 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
   20499 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
   20500 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
   20501 # PERFORMANCE OF THIS SOFTWARE.
   20502 
   20503 #
   20504 # Shorthand.  Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
   20505 #
   20506 dlzdir='${DLZ_DRIVER_DIR}'
   20507 
   20508 #
   20509 # Private autoconf macro to simplify configuring drivers:
   20510 #
   20511 #   DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
   20512 #
   20513 # where:
   20514 #   DEFINE is FOO (to define -DDLZ_FOO)
   20515 #   DRIVER is dlz_foo_driver (sources without the .c)
   20516 #   INCLUDES is any necessary include definitions
   20517 #   LIBS is any necessary library definitions
   20518 #
   20519 
   20520 
   20521 #
   20522 # Check for the various DLZ drivers
   20523 #
   20524 
   20525 #
   20526 # Was --with-dlz-postgres specified?
   20527 #
   20528 
   20529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
   20530 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
   20531 
   20532 # Check whether --with-dlz_postgres was given.
   20533 if test "${with_dlz_postgres+set}" = set; then :
   20534   withval=$with_dlz_postgres; use_dlz_postgres="$withval"
   20535 else
   20536   use_dlz_postgres="no"
   20537 fi
   20538 
   20539 
   20540 if test "$use_dlz_postgres" != "no"
   20541 then
   20542 	if test "$use_dlz_postgres" != "yes"
   20543         then
   20544                 for ac_prog in pg_config
   20545 do
   20546   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20547 set dummy $ac_prog; ac_word=$2
   20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20549 $as_echo_n "checking for $ac_word... " >&6; }
   20550 if ${ac_cv_path_PG_CONFIG+:} false; then :
   20551   $as_echo_n "(cached) " >&6
   20552 else
   20553   case $PG_CONFIG in
   20554   [\\/]* | ?:[\\/]*)
   20555   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   20556   ;;
   20557   *)
   20558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20559 for as_dir in $use_dlz_postgres/bin
   20560 do
   20561   IFS=$as_save_IFS
   20562   test -z "$as_dir" && as_dir=.
   20563     for ac_exec_ext in '' $ac_executable_extensions; do
   20564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20565     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   20566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20567     break 2
   20568   fi
   20569 done
   20570   done
   20571 IFS=$as_save_IFS
   20572 
   20573   ;;
   20574 esac
   20575 fi
   20576 PG_CONFIG=$ac_cv_path_PG_CONFIG
   20577 if test -n "$PG_CONFIG"; then
   20578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   20579 $as_echo "$PG_CONFIG" >&6; }
   20580 else
   20581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20582 $as_echo "no" >&6; }
   20583 fi
   20584 
   20585 
   20586   test -n "$PG_CONFIG" && break
   20587 done
   20588 test -n "$PG_CONFIG" || PG_CONFIG="not found"
   20589 
   20590 	else
   20591                 for ac_prog in pg_config
   20592 do
   20593   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20594 set dummy $ac_prog; ac_word=$2
   20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20596 $as_echo_n "checking for $ac_word... " >&6; }
   20597 if ${ac_cv_path_PG_CONFIG+:} false; then :
   20598   $as_echo_n "(cached) " >&6
   20599 else
   20600   case $PG_CONFIG in
   20601   [\\/]* | ?:[\\/]*)
   20602   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   20603   ;;
   20604   *)
   20605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20606 for as_dir in $PATH
   20607 do
   20608   IFS=$as_save_IFS
   20609   test -z "$as_dir" && as_dir=.
   20610     for ac_exec_ext in '' $ac_executable_extensions; do
   20611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20612     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   20613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20614     break 2
   20615   fi
   20616 done
   20617   done
   20618 IFS=$as_save_IFS
   20619 
   20620   ;;
   20621 esac
   20622 fi
   20623 PG_CONFIG=$ac_cv_path_PG_CONFIG
   20624 if test -n "$PG_CONFIG"; then
   20625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   20626 $as_echo "$PG_CONFIG" >&6; }
   20627 else
   20628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20629 $as_echo "no" >&6; }
   20630 fi
   20631 
   20632 
   20633   test -n "$PG_CONFIG" && break
   20634 done
   20635 test -n "$PG_CONFIG" || PG_CONFIG="not found"
   20636 
   20637 	fi
   20638 
   20639 	if test "$PG_CONFIG" != "not found"
   20640 	then
   20641 		use_dlz_postgres=`$PG_CONFIG --includedir`
   20642 		use_dlz_postgres_lib=`$PG_CONFIG --libdir`
   20643 	else
   20644 		pgprefix="$use_dlz_postgres"
   20645 		use_dlz_postgres="$pgprefix/include"
   20646 		use_dlz_postgres_lib="$pgprefix/lib"
   20647 	fi
   20648 fi
   20649 
   20650 if test "$use_dlz_postgres" = "yes/include"
   20651 then
   20652 	# User did not specify path and Postgres didn't say - guess it
   20653 	pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
   20654 	for d in $pgdirs
   20655 	do
   20656 		if test -f $d/include/libpq-fe.h
   20657 		then
   20658 			use_dlz_postgres=$d/include
   20659 			use_dlz_postgres_lib=$d/lib
   20660 			break
   20661 		fi
   20662 	done
   20663 fi
   20664 
   20665 if test "$use_dlz_postgres" = "yes/include"
   20666 then
   20667 	# Still no joy, give up
   20668 
   20669 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20670 $as_echo "not found" >&6; }
   20671 	as_fn_error $? "No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" "$LINENO" 5
   20672 fi
   20673 
   20674 case "$use_dlz_postgres" in
   20675 	no)
   20676 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20677 $as_echo "no" >&6; }
   20678 		;;
   20679 	*)
   20680 
   20681 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
   20682 	for i in dlz_postgres_driver
   20683 	do
   20684 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20685 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20686 	done
   20687 	if test -n "-I$use_dlz_postgres"
   20688 	then
   20689 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
   20690 		DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
   20691 	fi
   20692 	if test -n "-L$use_dlz_postgres_lib -lpq"
   20693 	then
   20694 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
   20695 		DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
   20696 	fi
   20697 
   20698 
   20699 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
   20700 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
   20701 		;;
   20702 esac
   20703 
   20704 
   20705 #
   20706 # Was --with-dlz-mysql specified?
   20707 #
   20708 
   20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
   20710 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
   20711 
   20712 # Check whether --with-dlz_mysql was given.
   20713 if test "${with_dlz_mysql+set}" = set; then :
   20714   withval=$with_dlz_mysql; use_dlz_mysql="$withval"
   20715 else
   20716   use_dlz_mysql="no"
   20717 fi
   20718 
   20719 
   20720 mysql_include=""
   20721 mysql_lib=""
   20722 if test "$use_dlz_mysql" = "yes"
   20723 then
   20724 	for ac_prog in mysql_config
   20725 do
   20726   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20727 set dummy $ac_prog; ac_word=$2
   20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20729 $as_echo_n "checking for $ac_word... " >&6; }
   20730 if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
   20731   $as_echo_n "(cached) " >&6
   20732 else
   20733   if test -n "$MYSQL_CONFIG"; then
   20734   ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
   20735 else
   20736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20737 for as_dir in $PATH
   20738 do
   20739   IFS=$as_save_IFS
   20740   test -z "$as_dir" && as_dir=.
   20741     for ac_exec_ext in '' $ac_executable_extensions; do
   20742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20743     ac_cv_prog_MYSQL_CONFIG="$ac_prog"
   20744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20745     break 2
   20746   fi
   20747 done
   20748   done
   20749 IFS=$as_save_IFS
   20750 
   20751 fi
   20752 fi
   20753 MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
   20754 if test -n "$MYSQL_CONFIG"; then
   20755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
   20756 $as_echo "$MYSQL_CONFIG" >&6; }
   20757 else
   20758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20759 $as_echo "no" >&6; }
   20760 fi
   20761 
   20762 
   20763   test -n "$MYSQL_CONFIG" && break
   20764 done
   20765 
   20766 	if test -n "$MYSQL_CONFIG"
   20767 	then
   20768 		mysql_include=`${MYSQL_CONFIG} --include`
   20769 		mysql_lib=`${MYSQL_CONFIG} --libs`
   20770 		use_dlz_mysql="config"
   20771 
   20772 	else
   20773 		# User did not specify a path - guess it
   20774 		mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
   20775 		for d in $mysqldirs
   20776 		do
   20777 			if test -f $d/include/mysql/mysql.h
   20778 			then
   20779 				use_dlz_mysql=$d
   20780 				mysql_include=$d/include/mysql
   20781 				break
   20782 			elif test -f $d/include/mysql.h
   20783 			then
   20784 				use_dlz_mysql=$d
   20785 				mysql_include=$d/include
   20786 				break
   20787 			fi
   20788 		done
   20789 	fi
   20790 elif test "$use_dlz_mysql" != "no"
   20791 then
   20792 	d=$use_dlz_mysql
   20793 	if test -f $d/include/mysql/mysql.h
   20794 	then
   20795 		mysql_include=$d/include/mysql
   20796 	elif test -f $d/include/mysql.h
   20797 	then
   20798 		mysql_include=$d/include
   20799 	fi
   20800 fi
   20801 
   20802 if test "$use_dlz_mysql" = "yes"
   20803 then
   20804 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20805 $as_echo "not found" >&6; }
   20806 	as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
   20807 fi
   20808 
   20809 case "$use_dlz_mysql" in
   20810 	no)
   20811 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20812 $as_echo "no" >&6; }
   20813 		;;
   20814 	config)
   20815 
   20816 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   20817 	for i in dlz_mysql_driver
   20818 	do
   20819 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20820 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20821 	done
   20822 	if test -n "${mysql_include}"
   20823 	then
   20824 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
   20825 		DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
   20826 	fi
   20827 	if test -n "${mysql_lib}"
   20828 	then
   20829 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
   20830 		DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
   20831 	fi
   20832 
   20833 
   20834 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
   20835 $as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
   20836 		;;
   20837 	*)
   20838 		if test -d "$use_dlz_mysql/lib/mysql"
   20839 		then
   20840 			mysql_lib="$use_dlz_mysql/lib/mysql"
   20841 		else
   20842 			mysql_lib="$use_dlz_mysql/lib"
   20843 		fi
   20844 
   20845 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   20846 	for i in dlz_mysql_driver
   20847 	do
   20848 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20849 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20850 	done
   20851 	if test -n "-I${mysql_include}"
   20852 	then
   20853 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
   20854 		DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
   20855 	fi
   20856 	if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20857 	then
   20858 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20859 		DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20860 	fi
   20861 
   20862 
   20863 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
   20864 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
   20865 		;;
   20866 esac
   20867 
   20868 
   20869 #
   20870 # Was --with-dlz-bdb specified?
   20871 #
   20872 
   20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
   20874 $as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
   20875 
   20876 # Check whether --with-dlz_bdb was given.
   20877 if test "${with_dlz_bdb+set}" = set; then :
   20878   withval=$with_dlz_bdb; use_dlz_bdb="$withval"
   20879 else
   20880   use_dlz_bdb="no"
   20881 fi
   20882 
   20883 
   20884 case "$use_dlz_bdb" in
   20885 	no)
   20886 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20887 $as_echo "no" >&6; }
   20888 		;;
   20889 	*)
   20890 		if test "$use_dlz_bdb" = "yes"
   20891 		then
   20892 			# User did not specify a path - guess directories
   20893 			bdbdirs="/usr/local /usr/pkg /usr"
   20894 		elif test -d "$use_dlz_bdb"
   20895 		then
   20896 			# User specified directory and it exists
   20897 			bdbdirs="$use_dlz_bdb"
   20898 		else
   20899 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20900 $as_echo "not found" >&6; }
   20901 			as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
   20902 			bdbdirs=""
   20903 		fi
   20904 
   20905 		# Use path we were given or guessed.  This is insanely
   20906 		# complicated because we have to search for a bunch of
   20907 		# platform-specific variations and have to check
   20908 		# separately for include and library directories.
   20909 
   20910 		# Set both to yes, so we can check them later
   20911 		dlz_bdb_inc="yes"
   20912 		dlz_bdb_libs="yes"
   20913 
   20914                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   20915 $as_echo "" >&6; }
   20916 		for dd in $bdbdirs
   20917 		do
   20918 			# Skip nonexistant directories
   20919 			if test ! -d "$dd"
   20920 			then
   20921 				continue
   20922 			fi
   20923 
   20924 			# Check other locations for includes.
   20925 			# Order is important (sigh).
   20926 
   20927 			bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
   20928 			# include a blank element first
   20929 			for d in "" $bdb_incdirs
   20930 			do
   20931 				if test -f "$dd/include${d}/db.h"
   20932 				then
   20933 					dlz_bdb_inc="-I$dd/include${d}"
   20934 					break
   20935 				fi
   20936 			done
   20937 
   20938 			# Give up on this directory if we couldn't
   20939 			# find the include subdir
   20940 
   20941 			if test "$dlz_bdb_inc" = "yes"
   20942 			then
   20943 				continue
   20944 			fi
   20945 
   20946 			# Look for libname other than libdb.so.
   20947 			# Order is important (sigh).
   20948 
   20949 			bdb_libnames="db53 db-5.3 db51 db-5.1 db48 db-4.8 db47 db-4.7 db46 db-4.6 db45 db-4.5 db44 db-4.4 db43 db-4.3 db42 db-4.2 db41 db-4.1 db"
   20950 			for d in $bdb_libnames
   20951 			do
   20952 				if test "$dd" = "/usr"
   20953 				then
   20954 					as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
   20955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
   20956 $as_echo_n "checking for db_create in -l$d... " >&6; }
   20957 if eval \${$as_ac_Lib+:} false; then :
   20958   $as_echo_n "(cached) " >&6
   20959 else
   20960   ac_check_lib_save_LIBS=$LIBS
   20961 LIBS="-l$d  $LIBS"
   20962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20963 /* end confdefs.h.  */
   20964 
   20965 /* Override any GCC internal prototype to avoid an error.
   20966    Use char because int might match the return type of a GCC
   20967    builtin and then its argument prototype would still apply.  */
   20968 #ifdef __cplusplus
   20969 extern "C"
   20970 #endif
   20971 char db_create ();
   20972 int
   20973 main ()
   20974 {
   20975 return db_create ();
   20976   ;
   20977   return 0;
   20978 }
   20979 _ACEOF
   20980 if ac_fn_c_try_link "$LINENO"; then :
   20981   eval "$as_ac_Lib=yes"
   20982 else
   20983   eval "$as_ac_Lib=no"
   20984 fi
   20985 rm -f core conftest.err conftest.$ac_objext \
   20986     conftest$ac_exeext conftest.$ac_ext
   20987 LIBS=$ac_check_lib_save_LIBS
   20988 fi
   20989 eval ac_res=\$$as_ac_Lib
   20990 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   20991 $as_echo "$ac_res" >&6; }
   20992 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
   20993   dlz_bdb_libs="-l${d}"
   20994 fi
   20995 
   20996 					if test $dlz_bdb_libs != "yes"
   20997 					then
   20998 						break
   20999 					fi
   21000 				elif test -f "$dd/lib/lib${d}.so"
   21001 				then
   21002 					dlz_bdb_libs="-L${dd}/lib -l${d}"
   21003 					break
   21004 				fi
   21005 			done
   21006 
   21007 			# If we found both incdir and lib, we're done
   21008 			if test "$dlz_bdb_libs" != "yes"
   21009 			then
   21010 				break
   21011 			fi
   21012 
   21013 			# Otherwise, we're starting over
   21014 
   21015 			dlz_bdb_inc="yes"
   21016 			dlz_bdb_libs="yes"
   21017 		done
   21018 
   21019 		# Done searching, now make sure we got everything.
   21020 
   21021 		if test "$dlz_bdb_inc" = "yes"
   21022 		then
   21023 			as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
   21024 		fi
   21025 
   21026 		if test "$dlz_bdb_libs" = "yes"
   21027 		then
   21028 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21029 $as_echo "not found" >&6; }
   21030 			as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
   21031 		fi
   21032 
   21033 
   21034 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
   21035 	for i in dlz_bdb_driver dlz_bdbhpt_driver
   21036 	do
   21037 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21038 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21039 	done
   21040 	if test -n "$dlz_bdb_inc"
   21041 	then
   21042 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
   21043 		DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
   21044 	fi
   21045 	if test -n "$dlz_bdb_libs"
   21046 	then
   21047 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
   21048 		DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
   21049 	fi
   21050 
   21051 
   21052 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
   21053 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
   21054 
   21055 		ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
   21056 
   21057 		;;
   21058 esac
   21059 
   21060 
   21061 #
   21062 # Was --with-dlz-filesystem specified?
   21063 #
   21064 
   21065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
   21066 $as_echo_n "checking for file system DLZ driver... " >&6; }
   21067 
   21068 # Check whether --with-dlz_filesystem was given.
   21069 if test "${with_dlz_filesystem+set}" = set; then :
   21070   withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
   21071 else
   21072   use_dlz_filesystem="no"
   21073 fi
   21074 
   21075 
   21076 case "$use_dlz_filesystem" in
   21077 	no)
   21078 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21079 $as_echo "no" >&6; }
   21080 		;;
   21081 	*)
   21082 
   21083 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
   21084 	for i in dlz_filesystem_driver
   21085 	do
   21086 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21087 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21088 	done
   21089 	if test -n ""
   21090 	then
   21091 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   21092 		DLZ_DRIVER_FILESYSTEM_INCLUDES=""
   21093 	fi
   21094 	if test -n ""
   21095 	then
   21096 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   21097 		DLZ_DRIVER_FILESYSTEM_LIBS=""
   21098 	fi
   21099 
   21100 		DLZ_SYSTEM_TEST=filesystem
   21101 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21102 $as_echo "yes" >&6; }
   21103 		;;
   21104 esac
   21105 
   21106 
   21107 #
   21108 # Was --with-dlz-ldap specified?
   21109 #
   21110 
   21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
   21112 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
   21113 
   21114 # Check whether --with-dlz_ldap was given.
   21115 if test "${with_dlz_ldap+set}" = set; then :
   21116   withval=$with_dlz_ldap; use_dlz_ldap="$withval"
   21117 else
   21118   use_dlz_ldap="no"
   21119 fi
   21120 
   21121 
   21122 if test "$use_dlz_ldap" = "yes"
   21123 then
   21124 	# User did not specify a path - guess it
   21125 	ldapdirs="/usr /usr/local /usr/pkg"
   21126 	for d in $ldapdirs
   21127 	do
   21128 		if test -f $d/include/ldap.h
   21129 		then
   21130 			use_dlz_ldap=$d
   21131 			break
   21132 		fi
   21133 	done
   21134 fi
   21135 
   21136 if test "$use_dlz_ldap" = "yes"
   21137 then
   21138 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21139 $as_echo "not found" >&6; }
   21140 	as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
   21141 fi
   21142 
   21143 case "$use_dlz_ldap" in
   21144 	no)
   21145 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21146 $as_echo "no" >&6; }
   21147 		;;
   21148 	*)
   21149 
   21150 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
   21151 	for i in dlz_ldap_driver
   21152 	do
   21153 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21154 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21155 	done
   21156 	if test -n "-I$use_dlz_ldap/include"
   21157 	then
   21158 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
   21159 		DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
   21160 	fi
   21161 	if test -n "-L$use_dlz_ldap/lib -lldap -llber"
   21162 	then
   21163 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
   21164 		DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
   21165 	fi
   21166 
   21167 
   21168 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
   21169 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
   21170 		;;
   21171 esac
   21172 
   21173 
   21174 #
   21175 # Was --with-dlz-odbc specified?
   21176 #
   21177 
   21178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
   21179 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
   21180 
   21181 # Check whether --with-dlz_odbc was given.
   21182 if test "${with_dlz_odbc+set}" = set; then :
   21183   withval=$with_dlz_odbc; use_dlz_odbc="$withval"
   21184 else
   21185   use_dlz_odbc="no"
   21186 fi
   21187 
   21188 
   21189 if test "$use_dlz_odbc" = "yes"
   21190 then
   21191 	# User did not specify a path - guess it
   21192 	libodbc_found=no
   21193 	sql_h_found=no
   21194 	ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
   21195 if test "x$ac_cv_header_sql_h" = xyes; then :
   21196   sql_h_found=yes
   21197 fi
   21198 
   21199 
   21200 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
   21201 $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
   21202 if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
   21203   $as_echo_n "(cached) " >&6
   21204 else
   21205   ac_check_lib_save_LIBS=$LIBS
   21206 LIBS="-lodbc  $LIBS"
   21207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21208 /* end confdefs.h.  */
   21209 
   21210 /* Override any GCC internal prototype to avoid an error.
   21211    Use char because int might match the return type of a GCC
   21212    builtin and then its argument prototype would still apply.  */
   21213 #ifdef __cplusplus
   21214 extern "C"
   21215 #endif
   21216 char SQLConnect ();
   21217 int
   21218 main ()
   21219 {
   21220 return SQLConnect ();
   21221   ;
   21222   return 0;
   21223 }
   21224 _ACEOF
   21225 if ac_fn_c_try_link "$LINENO"; then :
   21226   ac_cv_lib_odbc_SQLConnect=yes
   21227 else
   21228   ac_cv_lib_odbc_SQLConnect=no
   21229 fi
   21230 rm -f core conftest.err conftest.$ac_objext \
   21231     conftest$ac_exeext conftest.$ac_ext
   21232 LIBS=$ac_check_lib_save_LIBS
   21233 fi
   21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
   21235 $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
   21236 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
   21237   libodbc_found=yes
   21238 fi
   21239 
   21240 
   21241 	if test $libodbc_found = "yes" -o $sql_h_found = "yes"
   21242 	then
   21243 		use_dlz_odbc=system
   21244 		dlz_odbc_include=""
   21245 		dlz_odbc_libs="-lodbc"
   21246 	else
   21247 		odbcdirs="/usr /usr/local /usr/pkg"
   21248 		for d in $odbcdirs
   21249 		do
   21250 			if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
   21251 			then
   21252 				use_dlz_odbc=$d
   21253 				dlz_odbc_include="-I$use_dlz_odbc/include"
   21254 				dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
   21255 				break
   21256 			fi
   21257 		done
   21258 	fi
   21259 fi
   21260 
   21261 case "$use_dlz_odbc" in
   21262 	no)
   21263 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21264 $as_echo "no" >&6; }
   21265 		;;
   21266 	yes)
   21267 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21268 $as_echo "not found" >&6; }
   21269 		as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
   21270 		;;
   21271 	*)
   21272 
   21273 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
   21274 	for i in dlz_odbc_driver
   21275 	do
   21276 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21277 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21278 	done
   21279 	if test -n "$dlz_odbc_include"
   21280 	then
   21281 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
   21282 		DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
   21283 	fi
   21284 	if test -n "$dlz_odbc_libs"
   21285 	then
   21286 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
   21287 		DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
   21288 	fi
   21289 
   21290 
   21291 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
   21292 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
   21293 		;;
   21294 esac
   21295 
   21296 
   21297 #
   21298 # Was --with-dlz-stub specified?
   21299 #
   21300 
   21301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
   21302 $as_echo_n "checking for stub DLZ driver... " >&6; }
   21303 
   21304 # Check whether --with-dlz_stub was given.
   21305 if test "${with_dlz_stub+set}" = set; then :
   21306   withval=$with_dlz_stub; use_dlz_stub="$withval"
   21307 else
   21308   use_dlz_stub="no"
   21309 fi
   21310 
   21311 
   21312 case "$use_dlz_stub" in
   21313 	no)
   21314 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21315 $as_echo "no" >&6; }
   21316 		;;
   21317 	*)
   21318 
   21319 
   21320 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
   21321 	for i in dlz_stub_driver
   21322 	do
   21323 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21324 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21325 	done
   21326 	if test -n ""
   21327 	then
   21328 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   21329 		DLZ_DRIVER_STUB_INCLUDES=""
   21330 	fi
   21331 	if test -n ""
   21332 	then
   21333 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   21334 		DLZ_DRIVER_STUB_LIBS=""
   21335 	fi
   21336 
   21337 
   21338 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21339 $as_echo "yes" >&6; }
   21340 		;;
   21341 esac
   21342 
   21343 # Add any additional DLZ drivers here.
   21344 
   21345 #
   21346 # Finally, some generic stuff that applies to all drivers, assuming
   21347 # we're compiling contrib DLZ drivers at all.
   21348 #
   21349 if test -n "$CONTRIB_DLZ"
   21350 then
   21351 	CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
   21352 
   21353 	#
   21354 	# Where to find DLZ driver header files.
   21355 	#
   21356 	DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
   21357 
   21358 	#
   21359 	# Initialization and shutdown wrappers, helper functions.
   21360 	#
   21361 	DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
   21362 	DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
   21363 fi
   21364 
   21365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
   21366 $as_echo_n "checking contributed DLZ drivers... " >&6; }
   21367 
   21368 if test -n "$CONTRIB_DLZ"
   21369 then
   21370 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21371 $as_echo "yes" >&6; }
   21372 	DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
   21373 	ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
   21374 
   21375 else
   21376 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21377 $as_echo "no" >&6; }
   21378 	DLZ_DRIVER_RULES=/dev/null
   21379 fi
   21380 
   21381 
   21382 
   21383 
   21384 
   21385 
   21386 
   21387 
   21388 
   21389 
   21390 
   21391 if test "yes" = "$cross_compiling"; then
   21392 	if test -z "$BUILD_CC"; then
   21393 		as_fn_error $? "BUILD_CC not set" "$LINENO" 5
   21394 	fi
   21395 	BUILD_CFLAGS="$BUILD_CFLAGS"
   21396 	BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
   21397 	BUILD_LDFLAGS="$BUILD_LDFLAGS"
   21398 	BUILD_LIBS="$BUILD_LIBS"
   21399 else
   21400 	BUILD_CC="$CC"
   21401 	BUILD_CFLAGS="$CFLAGS"
   21402 	BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
   21403 	BUILD_LDFLAGS="$LDFLAGS"
   21404 	BUILD_LIBS="$LIBS"
   21405 fi
   21406 
   21407 NEWFLAGS=""
   21408 for e in $BUILD_LDFLAGS ; do
   21409     case $e in
   21410 	-L*)
   21411 	    case $host_os in
   21412 		netbsd*)
   21413 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21414 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21415 		    ;;
   21416 		freebsd*)
   21417 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21418 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21419 		    ;;
   21420 		solaris*)
   21421 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21422 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21423 		    ;;
   21424 		*)
   21425 		    NEWFLAGS="$NEWFLAGS $e"
   21426 		    ;;
   21427 		esac
   21428 	    ;;
   21429 	*)
   21430 	    NEWFLAGS="$NEWFLAGS $e"
   21431 	    ;;
   21432     esac
   21433 done
   21434 BUILD_LDFLAGS="$NEWFLAGS"
   21435 
   21436 NEWFLAGS=""
   21437 for e in $DNS_GSSAPI_LIBS ; do
   21438     case $e in
   21439 	-L*)
   21440 	    case $host_os in
   21441 		netbsd*)
   21442 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21443 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21444 		    ;;
   21445 		freebsd*)
   21446 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21447 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21448 		    ;;
   21449 		solaris*)
   21450 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21451 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21452 		    ;;
   21453 		*)
   21454 		    NEWFLAGS="$NEWFLAGS $e"
   21455 		    ;;
   21456 		esac
   21457 	    ;;
   21458 	*)
   21459 	    NEWFLAGS="$NEWFLAGS $e"
   21460 	    ;;
   21461     esac
   21462 done
   21463 DNS_GSSAPI_LIBS="$NEWFLAGS"
   21464 
   21465 NEWFLAGS=""
   21466 for e in $ISC_OPENSSL_LIBS ; do
   21467     case $e in
   21468 	-L*)
   21469 	    case $host_os in
   21470 		netbsd*)
   21471 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21472 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21473 		    ;;
   21474 		freebsd*)
   21475 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21476 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21477 		    ;;
   21478 		solaris*)
   21479 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21480 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21481 		    ;;
   21482 		*)
   21483 		    NEWFLAGS="$NEWFLAGS $e"
   21484 		    ;;
   21485 		esac
   21486 	    ;;
   21487 	*)
   21488 	    NEWFLAGS="$NEWFLAGS $e"
   21489 	    ;;
   21490     esac
   21491 done
   21492 ISC_OPENSSL_LIBS="$NEWFLAGS"
   21493 
   21494 NEWFLAGS=""
   21495 for e in $DNS_CRYPTO_LIBS ; do
   21496     case $e in
   21497 	-L*)
   21498 	    case $host_os in
   21499 		netbsd*)
   21500 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21501 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21502 		    ;;
   21503 		freebsd*)
   21504 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21505 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21506 		    ;;
   21507 		solaris*)
   21508 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21509 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21510 		    ;;
   21511 		*)
   21512 		    NEWFLAGS="$NEWFLAGS $e"
   21513 		    ;;
   21514 		esac
   21515 	    ;;
   21516 	*)
   21517 	    NEWFLAGS="$NEWFLAGS $e"
   21518 	    ;;
   21519     esac
   21520 done
   21521 DNS_CRYPTO_LIBS="$NEWFLAGS"
   21522 
   21523 
   21524 
   21525 
   21526 
   21527 
   21528 
   21529 #
   21530 # Commands to run at the end of config.status.
   21531 # Don't just put these into configure, it won't work right if somebody
   21532 # runs config.status directly (which autoconf allows).
   21533 #
   21534 
   21535 ac_config_commands="$ac_config_commands chmod"
   21536 
   21537 
   21538 #
   21539 # Files to configure.  These are listed here because we used to
   21540 # specify them as arguments to AC_OUTPUT.  It's (now) ok to move these
   21541 # elsewhere if there's a good reason for doing so.
   21542 #
   21543 
   21544 ac_config_files="$ac_config_files make/Makefile make/mkdep Makefile bin/Makefile bin/check/Makefile bin/confgen/Makefile bin/confgen/unix/Makefile bin/delv/Makefile bin/dig/Makefile bin/dnssec/Makefile bin/named/Makefile bin/named/unix/Makefile bin/nsupdate/Makefile bin/pkcs11/Makefile bin/plugins/Makefile bin/python/Makefile bin/python/isc/Makefile bin/python/isc/utils.py bin/python/isc/tests/Makefile bin/python/dnssec-checkds.py bin/python/dnssec-coverage.py bin/python/dnssec-keymgr.py bin/python/isc/__init__.py bin/python/isc/checkds.py bin/python/isc/coverage.py bin/python/isc/dnskey.py bin/python/isc/eventlist.py bin/python/isc/keydict.py bin/python/isc/keyevent.py bin/python/isc/keymgr.py bin/python/isc/keyseries.py bin/python/isc/keyzone.py bin/python/isc/policy.py bin/python/isc/rndc.py bin/python/isc/tests/dnskey_test.py bin/python/isc/tests/policy_test.py bin/rndc/Makefile bin/tests/Makefile bin/tests/headerdep_test.sh bin/tests/optional/Makefile bin/tests/pkcs11/Makefile bin/tests/pkcs11/benchmarks/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/dlzexternal/Makefile bin/tests/system/dlzexternal/ns1/dlzs.conf bin/tests/system/dyndb/Makefile bin/tests/system/dyndb/driver/Makefile bin/tests/system/pipelined/Makefile bin/tests/system/rndc/Makefile bin/tests/system/rpz/Makefile bin/tests/system/rsabigexponent/Makefile bin/tests/system/tkey/Makefile bin/tests/virtual-time/Makefile bin/tests/virtual-time/conf.sh bin/tools/Makefile contrib/scripts/check-secure-delegation.pl contrib/scripts/zone-edit.sh doc/Makefile doc/arm/Makefile doc/arm/noteversion.xml doc/arm/pkgversion.xml doc/arm/releaseinfo.xml doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter doc/misc/Makefile doc/tex/Makefile doc/tex/armstyle.sty doc/xsl/Makefile doc/xsl/isc-docbook-chunk.xsl doc/xsl/isc-docbook-html.xsl doc/xsl/isc-manpage.xsl doc/xsl/isc-notes-html.xsl isc-config.sh lib/Makefile lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/dns/tests/Makefile lib/irs/Makefile lib/irs/include/Makefile lib/irs/include/irs/Makefile lib/irs/include/irs/netdb.h lib/irs/include/irs/platform.h lib/irs/tests/Makefile lib/isc/pthreads/Makefile lib/isc/pthreads/include/Makefile lib/isc/pthreads/include/isc/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/include/pk11/Makefile lib/isc/include/pkcs11/Makefile lib/isc/tests/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isc/unix/include/pkcs11/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/isccc/tests/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/isccfg/tests/Makefile lib/ns/Makefile lib/ns/include/Makefile lib/ns/include/ns/Makefile lib/ns/tests/Makefile lib/samples/Makefile lib/samples/Makefile-postinstall unit/unittest.sh fuzz/Makefile"
   21545 
   21546 
   21547 #
   21548 # Do it
   21549 #
   21550 
   21551 cat >confcache <<\_ACEOF
   21552 # This file is a shell script that caches the results of configure
   21553 # tests run on this system so they can be shared between configure
   21554 # scripts and configure runs, see configure's option --config-cache.
   21555 # It is not useful on other systems.  If it contains results you don't
   21556 # want to keep, you may remove or edit it.
   21557 #
   21558 # config.status only pays attention to the cache file if you give it
   21559 # the --recheck option to rerun configure.
   21560 #
   21561 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   21562 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   21563 # following values.
   21564 
   21565 _ACEOF
   21566 
   21567 # The following way of writing the cache mishandles newlines in values,
   21568 # but we know of no workaround that is simple, portable, and efficient.
   21569 # So, we kill variables containing newlines.
   21570 # Ultrix sh set writes to stderr and can't be redirected directly,
   21571 # and sets the high bit in the cache file unless we assign to the vars.
   21572 (
   21573   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   21574     eval ac_val=\$$ac_var
   21575     case $ac_val in #(
   21576     *${as_nl}*)
   21577       case $ac_var in #(
   21578       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   21579 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   21580       esac
   21581       case $ac_var in #(
   21582       _ | IFS | as_nl) ;; #(
   21583       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   21584       *) { eval $ac_var=; unset $ac_var;} ;;
   21585       esac ;;
   21586     esac
   21587   done
   21588 
   21589   (set) 2>&1 |
   21590     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   21591     *${as_nl}ac_space=\ *)
   21592       # `set' does not quote correctly, so add quotes: double-quote
   21593       # substitution turns \\\\ into \\, and sed turns \\ into \.
   21594       sed -n \
   21595 	"s/'/'\\\\''/g;
   21596 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   21597       ;; #(
   21598     *)
   21599       # `set' quotes correctly as required by POSIX, so do not add quotes.
   21600       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   21601       ;;
   21602     esac |
   21603     sort
   21604 ) |
   21605   sed '
   21606      /^ac_cv_env_/b end
   21607      t clear
   21608      :clear
   21609      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   21610      t end
   21611      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   21612      :end' >>confcache
   21613 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   21614   if test -w "$cache_file"; then
   21615     if test "x$cache_file" != "x/dev/null"; then
   21616       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   21617 $as_echo "$as_me: updating cache $cache_file" >&6;}
   21618       if test ! -f "$cache_file" || test -h "$cache_file"; then
   21619 	cat confcache >"$cache_file"
   21620       else
   21621         case $cache_file in #(
   21622         */* | ?:*)
   21623 	  mv -f confcache "$cache_file"$$ &&
   21624 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   21625         *)
   21626 	  mv -f confcache "$cache_file" ;;
   21627 	esac
   21628       fi
   21629     fi
   21630   else
   21631     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   21632 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   21633   fi
   21634 fi
   21635 rm -f confcache
   21636 
   21637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   21638 # Let make expand exec_prefix.
   21639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   21640 
   21641 DEFS=-DHAVE_CONFIG_H
   21642 
   21643 ac_libobjs=
   21644 ac_ltlibobjs=
   21645 U=
   21646 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   21647   # 1. Remove the extension, and $U if already installed.
   21648   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   21649   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   21650   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   21651   #    will be set to the directory where LIBOBJS objects are built.
   21652   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   21653   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   21654 done
   21655 LIBOBJS=$ac_libobjs
   21656 
   21657 LTLIBOBJS=$ac_ltlibobjs
   21658 
   21659 
   21660 
   21661 
   21662 : "${CONFIG_STATUS=./config.status}"
   21663 ac_write_fail=0
   21664 ac_clean_files_save=$ac_clean_files
   21665 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   21666 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   21667 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   21668 as_write_fail=0
   21669 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   21670 #! $SHELL
   21671 # Generated by $as_me.
   21672 # Run this file to recreate the current configuration.
   21673 # Compiler output produced by configure, useful for debugging
   21674 # configure, is in config.log if it exists.
   21675 
   21676 debug=false
   21677 ac_cs_recheck=false
   21678 ac_cs_silent=false
   21679 
   21680 SHELL=\${CONFIG_SHELL-$SHELL}
   21681 export SHELL
   21682 _ASEOF
   21683 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   21684 ## -------------------- ##
   21685 ## M4sh Initialization. ##
   21686 ## -------------------- ##
   21687 
   21688 # Be more Bourne compatible
   21689 DUALCASE=1; export DUALCASE # for MKS sh
   21690 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   21691   emulate sh
   21692   NULLCMD=:
   21693   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   21694   # is contrary to our usage.  Disable this feature.
   21695   alias -g '${1+"$@"}'='"$@"'
   21696   setopt NO_GLOB_SUBST
   21697 else
   21698   case `(set -o) 2>/dev/null` in #(
   21699   *posix*) :
   21700     set -o posix ;; #(
   21701   *) :
   21702      ;;
   21703 esac
   21704 fi
   21705 
   21706 
   21707 as_nl='
   21708 '
   21709 export as_nl
   21710 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   21711 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   21712 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   21713 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   21714 # Prefer a ksh shell builtin over an external printf program on Solaris,
   21715 # but without wasting forks for bash or zsh.
   21716 if test -z "$BASH_VERSION$ZSH_VERSION" \
   21717     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   21718   as_echo='print -r --'
   21719   as_echo_n='print -rn --'
   21720 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   21721   as_echo='printf %s\n'
   21722   as_echo_n='printf %s'
   21723 else
   21724   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   21725     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   21726     as_echo_n='/usr/ucb/echo -n'
   21727   else
   21728     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   21729     as_echo_n_body='eval
   21730       arg=$1;
   21731       case $arg in #(
   21732       *"$as_nl"*)
   21733 	expr "X$arg" : "X\\(.*\\)$as_nl";
   21734 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   21735       esac;
   21736       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   21737     '
   21738     export as_echo_n_body
   21739     as_echo_n='sh -c $as_echo_n_body as_echo'
   21740   fi
   21741   export as_echo_body
   21742   as_echo='sh -c $as_echo_body as_echo'
   21743 fi
   21744 
   21745 # The user is always right.
   21746 if test "${PATH_SEPARATOR+set}" != set; then
   21747   PATH_SEPARATOR=:
   21748   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   21749     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   21750       PATH_SEPARATOR=';'
   21751   }
   21752 fi
   21753 
   21754 
   21755 # IFS
   21756 # We need space, tab and new line, in precisely that order.  Quoting is
   21757 # there to prevent editors from complaining about space-tab.
   21758 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   21759 # splitting by setting IFS to empty value.)
   21760 IFS=" ""	$as_nl"
   21761 
   21762 # Find who we are.  Look in the path if we contain no directory separator.
   21763 as_myself=
   21764 case $0 in #((
   21765   *[\\/]* ) as_myself=$0 ;;
   21766   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21767 for as_dir in $PATH
   21768 do
   21769   IFS=$as_save_IFS
   21770   test -z "$as_dir" && as_dir=.
   21771     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   21772   done
   21773 IFS=$as_save_IFS
   21774 
   21775      ;;
   21776 esac
   21777 # We did not find ourselves, most probably we were run as `sh COMMAND'
   21778 # in which case we are not to be found in the path.
   21779 if test "x$as_myself" = x; then
   21780   as_myself=$0
   21781 fi
   21782 if test ! -f "$as_myself"; then
   21783   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   21784   exit 1
   21785 fi
   21786 
   21787 # Unset variables that we do not need and which cause bugs (e.g. in
   21788 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   21789 # suppresses any "Segmentation fault" message there.  '((' could
   21790 # trigger a bug in pdksh 5.2.14.
   21791 for as_var in BASH_ENV ENV MAIL MAILPATH
   21792 do eval test x\${$as_var+set} = xset \
   21793   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   21794 done
   21795 PS1='$ '
   21796 PS2='> '
   21797 PS4='+ '
   21798 
   21799 # NLS nuisances.
   21800 LC_ALL=C
   21801 export LC_ALL
   21802 LANGUAGE=C
   21803 export LANGUAGE
   21804 
   21805 # CDPATH.
   21806 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   21807 
   21808 
   21809 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   21810 # ----------------------------------------
   21811 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   21812 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   21813 # script with STATUS, using 1 if that was 0.
   21814 as_fn_error ()
   21815 {
   21816   as_status=$1; test $as_status -eq 0 && as_status=1
   21817   if test "$4"; then
   21818     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   21819     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   21820   fi
   21821   $as_echo "$as_me: error: $2" >&2
   21822   as_fn_exit $as_status
   21823 } # as_fn_error
   21824 
   21825 
   21826 # as_fn_set_status STATUS
   21827 # -----------------------
   21828 # Set $? to STATUS, without forking.
   21829 as_fn_set_status ()
   21830 {
   21831   return $1
   21832 } # as_fn_set_status
   21833 
   21834 # as_fn_exit STATUS
   21835 # -----------------
   21836 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   21837 as_fn_exit ()
   21838 {
   21839   set +e
   21840   as_fn_set_status $1
   21841   exit $1
   21842 } # as_fn_exit
   21843 
   21844 # as_fn_unset VAR
   21845 # ---------------
   21846 # Portably unset VAR.
   21847 as_fn_unset ()
   21848 {
   21849   { eval $1=; unset $1;}
   21850 }
   21851 as_unset=as_fn_unset
   21852 # as_fn_append VAR VALUE
   21853 # ----------------------
   21854 # Append the text in VALUE to the end of the definition contained in VAR. Take
   21855 # advantage of any shell optimizations that allow amortized linear growth over
   21856 # repeated appends, instead of the typical quadratic growth present in naive
   21857 # implementations.
   21858 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   21859   eval 'as_fn_append ()
   21860   {
   21861     eval $1+=\$2
   21862   }'
   21863 else
   21864   as_fn_append ()
   21865   {
   21866     eval $1=\$$1\$2
   21867   }
   21868 fi # as_fn_append
   21869 
   21870 # as_fn_arith ARG...
   21871 # ------------------
   21872 # Perform arithmetic evaluation on the ARGs, and store the result in the
   21873 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   21874 # must be portable across $(()) and expr.
   21875 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   21876   eval 'as_fn_arith ()
   21877   {
   21878     as_val=$(( $* ))
   21879   }'
   21880 else
   21881   as_fn_arith ()
   21882   {
   21883     as_val=`expr "$@" || test $? -eq 1`
   21884   }
   21885 fi # as_fn_arith
   21886 
   21887 
   21888 if expr a : '\(a\)' >/dev/null 2>&1 &&
   21889    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   21890   as_expr=expr
   21891 else
   21892   as_expr=false
   21893 fi
   21894 
   21895 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   21896   as_basename=basename
   21897 else
   21898   as_basename=false
   21899 fi
   21900 
   21901 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   21902   as_dirname=dirname
   21903 else
   21904   as_dirname=false
   21905 fi
   21906 
   21907 as_me=`$as_basename -- "$0" ||
   21908 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   21909 	 X"$0" : 'X\(//\)$' \| \
   21910 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   21911 $as_echo X/"$0" |
   21912     sed '/^.*\/\([^/][^/]*\)\/*$/{
   21913 	    s//\1/
   21914 	    q
   21915 	  }
   21916 	  /^X\/\(\/\/\)$/{
   21917 	    s//\1/
   21918 	    q
   21919 	  }
   21920 	  /^X\/\(\/\).*/{
   21921 	    s//\1/
   21922 	    q
   21923 	  }
   21924 	  s/.*/./; q'`
   21925 
   21926 # Avoid depending upon Character Ranges.
   21927 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   21928 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   21929 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   21930 as_cr_digits='0123456789'
   21931 as_cr_alnum=$as_cr_Letters$as_cr_digits
   21932 
   21933 ECHO_C= ECHO_N= ECHO_T=
   21934 case `echo -n x` in #(((((
   21935 -n*)
   21936   case `echo 'xy\c'` in
   21937   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   21938   xy)  ECHO_C='\c';;
   21939   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   21940        ECHO_T='	';;
   21941   esac;;
   21942 *)
   21943   ECHO_N='-n';;
   21944 esac
   21945 
   21946 rm -f conf$$ conf$$.exe conf$$.file
   21947 if test -d conf$$.dir; then
   21948   rm -f conf$$.dir/conf$$.file
   21949 else
   21950   rm -f conf$$.dir
   21951   mkdir conf$$.dir 2>/dev/null
   21952 fi
   21953 if (echo >conf$$.file) 2>/dev/null; then
   21954   if ln -s conf$$.file conf$$ 2>/dev/null; then
   21955     as_ln_s='ln -s'
   21956     # ... but there are two gotchas:
   21957     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   21958     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   21959     # In both cases, we have to default to `cp -pR'.
   21960     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   21961       as_ln_s='cp -pR'
   21962   elif ln conf$$.file conf$$ 2>/dev/null; then
   21963     as_ln_s=ln
   21964   else
   21965     as_ln_s='cp -pR'
   21966   fi
   21967 else
   21968   as_ln_s='cp -pR'
   21969 fi
   21970 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   21971 rmdir conf$$.dir 2>/dev/null
   21972 
   21973 
   21974 # as_fn_mkdir_p
   21975 # -------------
   21976 # Create "$as_dir" as a directory, including parents if necessary.
   21977 as_fn_mkdir_p ()
   21978 {
   21979 
   21980   case $as_dir in #(
   21981   -*) as_dir=./$as_dir;;
   21982   esac
   21983   test -d "$as_dir" || eval $as_mkdir_p || {
   21984     as_dirs=
   21985     while :; do
   21986       case $as_dir in #(
   21987       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   21988       *) as_qdir=$as_dir;;
   21989       esac
   21990       as_dirs="'$as_qdir' $as_dirs"
   21991       as_dir=`$as_dirname -- "$as_dir" ||
   21992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21993 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   21994 	 X"$as_dir" : 'X\(//\)$' \| \
   21995 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   21996 $as_echo X"$as_dir" |
   21997     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21998 	    s//\1/
   21999 	    q
   22000 	  }
   22001 	  /^X\(\/\/\)[^/].*/{
   22002 	    s//\1/
   22003 	    q
   22004 	  }
   22005 	  /^X\(\/\/\)$/{
   22006 	    s//\1/
   22007 	    q
   22008 	  }
   22009 	  /^X\(\/\).*/{
   22010 	    s//\1/
   22011 	    q
   22012 	  }
   22013 	  s/.*/./; q'`
   22014       test -d "$as_dir" && break
   22015     done
   22016     test -z "$as_dirs" || eval "mkdir $as_dirs"
   22017   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   22018 
   22019 
   22020 } # as_fn_mkdir_p
   22021 if mkdir -p . 2>/dev/null; then
   22022   as_mkdir_p='mkdir -p "$as_dir"'
   22023 else
   22024   test -d ./-p && rmdir ./-p
   22025   as_mkdir_p=false
   22026 fi
   22027 
   22028 
   22029 # as_fn_executable_p FILE
   22030 # -----------------------
   22031 # Test if FILE is an executable regular file.
   22032 as_fn_executable_p ()
   22033 {
   22034   test -f "$1" && test -x "$1"
   22035 } # as_fn_executable_p
   22036 as_test_x='test -x'
   22037 as_executable_p=as_fn_executable_p
   22038 
   22039 # Sed expression to map a string onto a valid CPP name.
   22040 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   22041 
   22042 # Sed expression to map a string onto a valid variable name.
   22043 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   22044 
   22045 
   22046 exec 6>&1
   22047 ## ----------------------------------- ##
   22048 ## Main body of $CONFIG_STATUS script. ##
   22049 ## ----------------------------------- ##
   22050 _ASEOF
   22051 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   22052 
   22053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22054 # Save the log message, to keep $0 and so on meaningful, and to
   22055 # report actual input values of CONFIG_FILES etc. instead of their
   22056 # values after options handling.
   22057 ac_log="
   22058 This file was extended by BIND $as_me 9.14, which was
   22059 generated by GNU Autoconf 2.69.  Invocation command line was
   22060 
   22061   CONFIG_FILES    = $CONFIG_FILES
   22062   CONFIG_HEADERS  = $CONFIG_HEADERS
   22063   CONFIG_LINKS    = $CONFIG_LINKS
   22064   CONFIG_COMMANDS = $CONFIG_COMMANDS
   22065   $ $0 $@
   22066 
   22067 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   22068 "
   22069 
   22070 _ACEOF
   22071 
   22072 case $ac_config_files in *"
   22073 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   22074 esac
   22075 
   22076 case $ac_config_headers in *"
   22077 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   22078 esac
   22079 
   22080 
   22081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22082 # Files that config.status was made for.
   22083 config_files="$ac_config_files"
   22084 config_headers="$ac_config_headers"
   22085 config_commands="$ac_config_commands"
   22086 
   22087 _ACEOF
   22088 
   22089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22090 ac_cs_usage="\
   22091 \`$as_me' instantiates files and other configuration actions
   22092 from templates according to the current configuration.  Unless the files
   22093 and actions are specified as TAGs, all are instantiated by default.
   22094 
   22095 Usage: $0 [OPTION]... [TAG]...
   22096 
   22097   -h, --help       print this help, then exit
   22098   -V, --version    print version number and configuration settings, then exit
   22099       --config     print configuration, then exit
   22100   -q, --quiet, --silent
   22101                    do not print progress messages
   22102   -d, --debug      don't remove temporary files
   22103       --recheck    update $as_me by reconfiguring in the same conditions
   22104       --file=FILE[:TEMPLATE]
   22105                    instantiate the configuration file FILE
   22106       --header=FILE[:TEMPLATE]
   22107                    instantiate the configuration header FILE
   22108 
   22109 Configuration files:
   22110 $config_files
   22111 
   22112 Configuration headers:
   22113 $config_headers
   22114 
   22115 Configuration commands:
   22116 $config_commands
   22117 
   22118 Report bugs to <info@isc.org>.
   22119 BIND home page: <https://www.isc.org/downloads/BIND/>."
   22120 
   22121 _ACEOF
   22122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22123 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   22124 ac_cs_version="\\
   22125 BIND config.status 9.14
   22126 configured by $0, generated by GNU Autoconf 2.69,
   22127   with options \\"\$ac_cs_config\\"
   22128 
   22129 Copyright (C) 2012 Free Software Foundation, Inc.
   22130 This config.status script is free software; the Free Software Foundation
   22131 gives unlimited permission to copy, distribute and modify it."
   22132 
   22133 ac_pwd='$ac_pwd'
   22134 srcdir='$srcdir'
   22135 INSTALL='$INSTALL'
   22136 AWK='$AWK'
   22137 test -n "\$AWK" || AWK=awk
   22138 _ACEOF
   22139 
   22140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22141 # The default lists apply if the user does not specify any file.
   22142 ac_need_defaults=:
   22143 while test $# != 0
   22144 do
   22145   case $1 in
   22146   --*=?*)
   22147     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   22148     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   22149     ac_shift=:
   22150     ;;
   22151   --*=)
   22152     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   22153     ac_optarg=
   22154     ac_shift=:
   22155     ;;
   22156   *)
   22157     ac_option=$1
   22158     ac_optarg=$2
   22159     ac_shift=shift
   22160     ;;
   22161   esac
   22162 
   22163   case $ac_option in
   22164   # Handling of the options.
   22165   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   22166     ac_cs_recheck=: ;;
   22167   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   22168     $as_echo "$ac_cs_version"; exit ;;
   22169   --config | --confi | --conf | --con | --co | --c )
   22170     $as_echo "$ac_cs_config"; exit ;;
   22171   --debug | --debu | --deb | --de | --d | -d )
   22172     debug=: ;;
   22173   --file | --fil | --fi | --f )
   22174     $ac_shift
   22175     case $ac_optarg in
   22176     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22177     '') as_fn_error $? "missing file argument" ;;
   22178     esac
   22179     as_fn_append CONFIG_FILES " '$ac_optarg'"
   22180     ac_need_defaults=false;;
   22181   --header | --heade | --head | --hea )
   22182     $ac_shift
   22183     case $ac_optarg in
   22184     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22185     esac
   22186     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   22187     ac_need_defaults=false;;
   22188   --he | --h)
   22189     # Conflict between --help and --header
   22190     as_fn_error $? "ambiguous option: \`$1'
   22191 Try \`$0 --help' for more information.";;
   22192   --help | --hel | -h )
   22193     $as_echo "$ac_cs_usage"; exit ;;
   22194   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   22195   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   22196     ac_cs_silent=: ;;
   22197 
   22198   # This is an error.
   22199   -*) as_fn_error $? "unrecognized option: \`$1'
   22200 Try \`$0 --help' for more information." ;;
   22201 
   22202   *) as_fn_append ac_config_targets " $1"
   22203      ac_need_defaults=false ;;
   22204 
   22205   esac
   22206   shift
   22207 done
   22208 
   22209 ac_configure_extra_args=
   22210 
   22211 if $ac_cs_silent; then
   22212   exec 6>/dev/null
   22213   ac_configure_extra_args="$ac_configure_extra_args --silent"
   22214 fi
   22215 
   22216 _ACEOF
   22217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22218 if \$ac_cs_recheck; then
   22219   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   22220   shift
   22221   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   22222   CONFIG_SHELL='$SHELL'
   22223   export CONFIG_SHELL
   22224   exec "\$@"
   22225 fi
   22226 
   22227 _ACEOF
   22228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22229 exec 5>>config.log
   22230 {
   22231   echo
   22232   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   22233 ## Running $as_me. ##
   22234 _ASBOX
   22235   $as_echo "$ac_log"
   22236 } >&5
   22237 
   22238 _ACEOF
   22239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22240 #
   22241 # INIT-COMMANDS
   22242 #
   22243 
   22244 
   22245 # The HP-UX ksh and POSIX shell print the target directory to stdout
   22246 # if CDPATH is set.
   22247 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   22248 
   22249 sed_quote_subst='$sed_quote_subst'
   22250 double_quote_subst='$double_quote_subst'
   22251 delay_variable_subst='$delay_variable_subst'
   22252 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   22253 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   22254 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   22255 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   22256 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   22257 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   22258 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   22259 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   22260 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   22261 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   22262 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   22263 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   22264 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   22265 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   22266 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   22267 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   22268 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   22269 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   22270 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   22271 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   22272 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   22273 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   22274 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   22275 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   22276 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   22277 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   22278 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   22279 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   22280 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   22281 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   22282 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   22283 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   22284 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   22285 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   22286 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   22287 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   22288 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   22289 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   22290 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   22291 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   22292 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   22293 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   22294 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   22295 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   22296 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   22297 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   22298 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   22299 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   22300 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   22301 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   22302 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   22303 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   22304 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   22305 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   22306 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   22307 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   22308 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   22309 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   22310 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"`'
   22311 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   22312 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   22313 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   22314 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   22315 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   22316 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   22317 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   22318 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   22319 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   22320 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   22321 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   22322 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   22323 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   22324 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   22325 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   22326 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   22327 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   22328 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   22329 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   22330 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   22331 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   22332 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   22333 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   22334 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   22335 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   22336 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   22337 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   22338 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   22339 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   22340 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   22341 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   22342 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   22343 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   22344 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   22345 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   22346 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   22347 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   22348 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   22349 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   22350 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   22351 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   22352 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   22353 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   22354 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   22355 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   22356 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   22357 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   22358 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   22359 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   22360 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   22361 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   22362 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   22363 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   22364 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   22365 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   22366 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   22367 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   22368 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   22369 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   22370 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   22371 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   22372 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   22373 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   22374 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   22375 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   22376 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   22377 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   22378 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   22379 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   22380 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   22381 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   22382 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   22383 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   22384 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   22385 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   22386 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   22387 
   22388 LTCC='$LTCC'
   22389 LTCFLAGS='$LTCFLAGS'
   22390 compiler='$compiler_DEFAULT'
   22391 
   22392 # A function that is used when there is no print builtin or printf.
   22393 func_fallback_echo ()
   22394 {
   22395   eval 'cat <<_LTECHO_EOF
   22396 \$1
   22397 _LTECHO_EOF'
   22398 }
   22399 
   22400 # Quote evaled strings.
   22401 for var in SHELL \
   22402 ECHO \
   22403 PATH_SEPARATOR \
   22404 SED \
   22405 GREP \
   22406 EGREP \
   22407 FGREP \
   22408 LD \
   22409 NM \
   22410 LN_S \
   22411 lt_SP2NL \
   22412 lt_NL2SP \
   22413 reload_flag \
   22414 OBJDUMP \
   22415 deplibs_check_method \
   22416 file_magic_cmd \
   22417 file_magic_glob \
   22418 want_nocaseglob \
   22419 DLLTOOL \
   22420 sharedlib_from_linklib_cmd \
   22421 AR \
   22422 AR_FLAGS \
   22423 archiver_list_spec \
   22424 STRIP \
   22425 RANLIB \
   22426 CC \
   22427 CFLAGS \
   22428 compiler \
   22429 lt_cv_sys_global_symbol_pipe \
   22430 lt_cv_sys_global_symbol_to_cdecl \
   22431 lt_cv_sys_global_symbol_to_import \
   22432 lt_cv_sys_global_symbol_to_c_name_address \
   22433 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   22434 lt_cv_nm_interface \
   22435 nm_file_list_spec \
   22436 lt_cv_truncate_bin \
   22437 lt_prog_compiler_no_builtin_flag \
   22438 lt_prog_compiler_pic \
   22439 lt_prog_compiler_wl \
   22440 lt_prog_compiler_static \
   22441 lt_cv_prog_compiler_c_o \
   22442 need_locks \
   22443 MANIFEST_TOOL \
   22444 DSYMUTIL \
   22445 NMEDIT \
   22446 LIPO \
   22447 OTOOL \
   22448 OTOOL64 \
   22449 shrext_cmds \
   22450 export_dynamic_flag_spec \
   22451 whole_archive_flag_spec \
   22452 compiler_needs_object \
   22453 with_gnu_ld \
   22454 allow_undefined_flag \
   22455 no_undefined_flag \
   22456 hardcode_libdir_flag_spec \
   22457 hardcode_libdir_separator \
   22458 exclude_expsyms \
   22459 include_expsyms \
   22460 file_list_spec \
   22461 variables_saved_for_relink \
   22462 libname_spec \
   22463 library_names_spec \
   22464 soname_spec \
   22465 install_override_mode \
   22466 finish_eval \
   22467 old_striplib \
   22468 striplib; do
   22469     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   22470     *[\\\\\\\`\\"\\\$]*)
   22471       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   22472       ;;
   22473     *)
   22474       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   22475       ;;
   22476     esac
   22477 done
   22478 
   22479 # Double-quote double-evaled strings.
   22480 for var in reload_cmds \
   22481 old_postinstall_cmds \
   22482 old_postuninstall_cmds \
   22483 old_archive_cmds \
   22484 extract_expsyms_cmds \
   22485 old_archive_from_new_cmds \
   22486 old_archive_from_expsyms_cmds \
   22487 archive_cmds \
   22488 archive_expsym_cmds \
   22489 module_cmds \
   22490 module_expsym_cmds \
   22491 export_symbols_cmds \
   22492 prelink_cmds \
   22493 postlink_cmds \
   22494 postinstall_cmds \
   22495 postuninstall_cmds \
   22496 finish_cmds \
   22497 sys_lib_search_path_spec \
   22498 configure_time_dlsearch_path \
   22499 configure_time_lt_sys_library_path; do
   22500     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   22501     *[\\\\\\\`\\"\\\$]*)
   22502       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   22503       ;;
   22504     *)
   22505       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   22506       ;;
   22507     esac
   22508 done
   22509 
   22510 ac_aux_dir='$ac_aux_dir'
   22511 
   22512 # See if we are running on zsh, and set the options that allow our
   22513 # commands through without removal of \ escapes INIT.
   22514 if test -n "\${ZSH_VERSION+set}"; then
   22515    setopt NO_GLOB_SUBST
   22516 fi
   22517 
   22518 
   22519     PACKAGE='$PACKAGE'
   22520     VERSION='$VERSION'
   22521     RM='$RM'
   22522     ofile='$ofile'
   22523 
   22524 
   22525 
   22526 
   22527 _ACEOF
   22528 
   22529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22530 
   22531 # Handling of arguments.
   22532 for ac_config_target in $ac_config_targets
   22533 do
   22534   case $ac_config_target in
   22535     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   22536     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   22537     "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
   22538     "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
   22539     "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
   22540     "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
   22541     "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
   22542     "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
   22543     "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
   22544     "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
   22545     "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
   22546     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   22547     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
   22548     "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
   22549     "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
   22550     "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
   22551     "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
   22552     "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
   22553     "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
   22554     "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
   22555     "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
   22556     "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
   22557     "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
   22558     "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
   22559     "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
   22560     "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
   22561     "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
   22562     "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
   22563     "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
   22564     "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
   22565     "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
   22566     "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
   22567     "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
   22568     "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
   22569     "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
   22570     "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
   22571     "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
   22572     "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
   22573     "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
   22574     "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
   22575     "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
   22576     "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
   22577     "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
   22578     "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
   22579     "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
   22580     "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
   22581     "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
   22582     "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
   22583     "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
   22584     "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
   22585     "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
   22586     "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
   22587     "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
   22588     "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
   22589     "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
   22590     "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
   22591     "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
   22592     "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
   22593     "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
   22594     "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
   22595     "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
   22596     "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
   22597     "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;;
   22598     "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;;
   22599     "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
   22600     "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
   22601     "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
   22602     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   22603     "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
   22604     "doc/arm/noteversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/noteversion.xml" ;;
   22605     "doc/arm/pkgversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/pkgversion.xml" ;;
   22606     "doc/arm/releaseinfo.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/releaseinfo.xml" ;;
   22607     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
   22608     "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
   22609     "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
   22610     "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
   22611     "doc/tex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex/Makefile" ;;
   22612     "doc/tex/armstyle.sty") CONFIG_FILES="$CONFIG_FILES doc/tex/armstyle.sty" ;;
   22613     "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
   22614     "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
   22615     "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
   22616     "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
   22617     "doc/xsl/isc-notes-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-notes-html.xsl" ;;
   22618     "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
   22619     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
   22620     "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
   22621     "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
   22622     "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
   22623     "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
   22624     "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
   22625     "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
   22626     "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
   22627     "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
   22628     "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
   22629     "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
   22630     "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
   22631     "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
   22632     "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
   22633     "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
   22634     "lib/isc/pthreads/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/Makefile" ;;
   22635     "lib/isc/pthreads/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/Makefile" ;;
   22636     "lib/isc/pthreads/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/isc/Makefile" ;;
   22637     "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
   22638     "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
   22639     "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
   22640     "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
   22641     "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
   22642     "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
   22643     "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
   22644     "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
   22645     "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
   22646     "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
   22647     "lib/isc/unix/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/pkcs11/Makefile" ;;
   22648     "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
   22649     "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
   22650     "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
   22651     "lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;;
   22652     "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
   22653     "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
   22654     "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
   22655     "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
   22656     "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
   22657     "lib/ns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/Makefile" ;;
   22658     "lib/ns/include/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/ns/Makefile" ;;
   22659     "lib/ns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/tests/Makefile" ;;
   22660     "lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;;
   22661     "lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
   22662     "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
   22663     "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
   22664 
   22665   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   22666   esac
   22667 done
   22668 
   22669 
   22670 # If the user did not use the arguments to specify the items to instantiate,
   22671 # then the envvar interface is used.  Set only those that are not.
   22672 # We use the long form for the default assignment because of an extremely
   22673 # bizarre bug on SunOS 4.1.3.
   22674 if $ac_need_defaults; then
   22675   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   22676   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   22677   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   22678 fi
   22679 
   22680 # Have a temporary directory for convenience.  Make it in the build tree
   22681 # simply because there is no reason against having it here, and in addition,
   22682 # creating and moving files from /tmp can sometimes cause problems.
   22683 # Hook for its removal unless debugging.
   22684 # Note that there is a small window in which the directory will not be cleaned:
   22685 # after its creation but before its name has been assigned to `$tmp'.
   22686 $debug ||
   22687 {
   22688   tmp= ac_tmp=
   22689   trap 'exit_status=$?
   22690   : "${ac_tmp:=$tmp}"
   22691   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   22692 ' 0
   22693   trap 'as_fn_exit 1' 1 2 13 15
   22694 }
   22695 # Create a (secure) tmp directory for tmp files.
   22696 
   22697 {
   22698   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   22699   test -d "$tmp"
   22700 }  ||
   22701 {
   22702   tmp=./conf$$-$RANDOM
   22703   (umask 077 && mkdir "$tmp")
   22704 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   22705 ac_tmp=$tmp
   22706 
   22707 # Set up the scripts for CONFIG_FILES section.
   22708 # No need to generate them if there are no CONFIG_FILES.
   22709 # This happens for instance with `./config.status config.h'.
   22710 if test -n "$CONFIG_FILES"; then
   22711 
   22712 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   22713   ac_cs_awk_getline=:
   22714   ac_cs_awk_pipe_init=
   22715   ac_cs_awk_read_file='
   22716       while ((getline aline < (F[key])) > 0)
   22717 	print(aline)
   22718       close(F[key])'
   22719   ac_cs_awk_pipe_fini=
   22720 else
   22721   ac_cs_awk_getline=false
   22722   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   22723   ac_cs_awk_read_file='
   22724       print "|#_!!_#|"
   22725       print "cat " F[key] " &&"
   22726       '$ac_cs_awk_pipe_init
   22727   # The final `:' finishes the AND list.
   22728   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   22729 fi
   22730 ac_cr=`echo X | tr X '\015'`
   22731 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   22732 # But we know of no other shell where ac_cr would be empty at this
   22733 # point, so we can use a bashism as a fallback.
   22734 if test "x$ac_cr" = x; then
   22735   eval ac_cr=\$\'\\r\'
   22736 fi
   22737 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   22738 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   22739   ac_cs_awk_cr='\\r'
   22740 else
   22741   ac_cs_awk_cr=$ac_cr
   22742 fi
   22743 
   22744 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   22745 _ACEOF
   22746 
   22747 # Create commands to substitute file output variables.
   22748 {
   22749   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   22750   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   22751   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   22752   echo "_ACAWK" &&
   22753   echo "_ACEOF"
   22754 } >conf$$files.sh &&
   22755 . ./conf$$files.sh ||
   22756   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22757 rm -f conf$$files.sh
   22758 
   22759 {
   22760   echo "cat >conf$$subs.awk <<_ACEOF" &&
   22761   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   22762   echo "_ACEOF"
   22763 } >conf$$subs.sh ||
   22764   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22765 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   22766 ac_delim='%!_!# '
   22767 for ac_last_try in false false false false false :; do
   22768   . ./conf$$subs.sh ||
   22769     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22770 
   22771   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   22772   if test $ac_delim_n = $ac_delim_num; then
   22773     break
   22774   elif $ac_last_try; then
   22775     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22776   else
   22777     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   22778   fi
   22779 done
   22780 rm -f conf$$subs.sh
   22781 
   22782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22783 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   22784 _ACEOF
   22785 sed -n '
   22786 h
   22787 s/^/S["/; s/!.*/"]=/
   22788 p
   22789 g
   22790 s/^[^!]*!//
   22791 :repl
   22792 t repl
   22793 s/'"$ac_delim"'$//
   22794 t delim
   22795 :nl
   22796 h
   22797 s/\(.\{148\}\)..*/\1/
   22798 t more1
   22799 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   22800 p
   22801 n
   22802 b repl
   22803 :more1
   22804 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   22805 p
   22806 g
   22807 s/.\{148\}//
   22808 t nl
   22809 :delim
   22810 h
   22811 s/\(.\{148\}\)..*/\1/
   22812 t more2
   22813 s/["\\]/\\&/g; s/^/"/; s/$/"/
   22814 p
   22815 b
   22816 :more2
   22817 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   22818 p
   22819 g
   22820 s/.\{148\}//
   22821 t delim
   22822 ' <conf$$subs.awk | sed '
   22823 /^[^""]/{
   22824   N
   22825   s/\n//
   22826 }
   22827 ' >>$CONFIG_STATUS || ac_write_fail=1
   22828 rm -f conf$$subs.awk
   22829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22830 _ACAWK
   22831 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   22832   for (key in S) S_is_set[key] = 1
   22833   FS = ""
   22834   \$ac_cs_awk_pipe_init
   22835 }
   22836 {
   22837   line = $ 0
   22838   nfields = split(line, field, "@")
   22839   substed = 0
   22840   len = length(field[1])
   22841   for (i = 2; i < nfields; i++) {
   22842     key = field[i]
   22843     keylen = length(key)
   22844     if (S_is_set[key]) {
   22845       value = S[key]
   22846       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   22847       len += length(value) + length(field[++i])
   22848       substed = 1
   22849     } else
   22850       len += 1 + keylen
   22851   }
   22852   if (nfields == 3 && !substed) {
   22853     key = field[2]
   22854     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   22855       \$ac_cs_awk_read_file
   22856       next
   22857     }
   22858   }
   22859   print line
   22860 }
   22861 \$ac_cs_awk_pipe_fini
   22862 _ACAWK
   22863 _ACEOF
   22864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22865 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   22866   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   22867 else
   22868   cat
   22869 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   22870   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   22871 _ACEOF
   22872 
   22873 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   22874 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   22875 # trailing colons and then remove the whole line if VPATH becomes empty
   22876 # (actually we leave an empty line to preserve line numbers).
   22877 if test "x$srcdir" = x.; then
   22878   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   22879 h
   22880 s///
   22881 s/^/:/
   22882 s/[	 ]*$/:/
   22883 s/:\$(srcdir):/:/g
   22884 s/:\${srcdir}:/:/g
   22885 s/:@srcdir@:/:/g
   22886 s/^:*//
   22887 s/:*$//
   22888 x
   22889 s/\(=[	 ]*\).*/\1/
   22890 G
   22891 s/\n//
   22892 s/^[^=]*=[	 ]*$//
   22893 }'
   22894 fi
   22895 
   22896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22897 fi # test -n "$CONFIG_FILES"
   22898 
   22899 # Set up the scripts for CONFIG_HEADERS section.
   22900 # No need to generate them if there are no CONFIG_HEADERS.
   22901 # This happens for instance with `./config.status Makefile'.
   22902 if test -n "$CONFIG_HEADERS"; then
   22903 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   22904 BEGIN {
   22905 _ACEOF
   22906 
   22907 # Transform confdefs.h into an awk script `defines.awk', embedded as
   22908 # here-document in config.status, that substitutes the proper values into
   22909 # config.h.in to produce config.h.
   22910 
   22911 # Create a delimiter string that does not exist in confdefs.h, to ease
   22912 # handling of long lines.
   22913 ac_delim='%!_!# '
   22914 for ac_last_try in false false :; do
   22915   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   22916   if test -z "$ac_tt"; then
   22917     break
   22918   elif $ac_last_try; then
   22919     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   22920   else
   22921     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   22922   fi
   22923 done
   22924 
   22925 # For the awk script, D is an array of macro values keyed by name,
   22926 # likewise P contains macro parameters if any.  Preserve backslash
   22927 # newline sequences.
   22928 
   22929 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   22930 sed -n '
   22931 s/.\{148\}/&'"$ac_delim"'/g
   22932 t rset
   22933 :rset
   22934 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   22935 t def
   22936 d
   22937 :def
   22938 s/\\$//
   22939 t bsnl
   22940 s/["\\]/\\&/g
   22941 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   22942 D["\1"]=" \3"/p
   22943 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   22944 d
   22945 :bsnl
   22946 s/["\\]/\\&/g
   22947 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   22948 D["\1"]=" \3\\\\\\n"\\/p
   22949 t cont
   22950 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   22951 t cont
   22952 d
   22953 :cont
   22954 n
   22955 s/.\{148\}/&'"$ac_delim"'/g
   22956 t clear
   22957 :clear
   22958 s/\\$//
   22959 t bsnlc
   22960 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   22961 d
   22962 :bsnlc
   22963 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   22964 b cont
   22965 ' <confdefs.h | sed '
   22966 s/'"$ac_delim"'/"\\\
   22967 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   22968 
   22969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22970   for (key in D) D_is_set[key] = 1
   22971   FS = ""
   22972 }
   22973 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   22974   line = \$ 0
   22975   split(line, arg, " ")
   22976   if (arg[1] == "#") {
   22977     defundef = arg[2]
   22978     mac1 = arg[3]
   22979   } else {
   22980     defundef = substr(arg[1], 2)
   22981     mac1 = arg[2]
   22982   }
   22983   split(mac1, mac2, "(") #)
   22984   macro = mac2[1]
   22985   prefix = substr(line, 1, index(line, defundef) - 1)
   22986   if (D_is_set[macro]) {
   22987     # Preserve the white space surrounding the "#".
   22988     print prefix "define", macro P[macro] D[macro]
   22989     next
   22990   } else {
   22991     # Replace #undef with comments.  This is necessary, for example,
   22992     # in the case of _POSIX_SOURCE, which is predefined and required
   22993     # on some systems where configure will not decide to define it.
   22994     if (defundef == "undef") {
   22995       print "/*", prefix defundef, macro, "*/"
   22996       next
   22997     }
   22998   }
   22999 }
   23000 { print }
   23001 _ACAWK
   23002 _ACEOF
   23003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23004   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   23005 fi # test -n "$CONFIG_HEADERS"
   23006 
   23007 
   23008 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   23009 shift
   23010 for ac_tag
   23011 do
   23012   case $ac_tag in
   23013   :[FHLC]) ac_mode=$ac_tag; continue;;
   23014   esac
   23015   case $ac_mode$ac_tag in
   23016   :[FHL]*:*);;
   23017   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   23018   :[FH]-) ac_tag=-:-;;
   23019   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   23020   esac
   23021   ac_save_IFS=$IFS
   23022   IFS=:
   23023   set x $ac_tag
   23024   IFS=$ac_save_IFS
   23025   shift
   23026   ac_file=$1
   23027   shift
   23028 
   23029   case $ac_mode in
   23030   :L) ac_source=$1;;
   23031   :[FH])
   23032     ac_file_inputs=
   23033     for ac_f
   23034     do
   23035       case $ac_f in
   23036       -) ac_f="$ac_tmp/stdin";;
   23037       *) # Look for the file first in the build tree, then in the source tree
   23038 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   23039 	 # because $ac_f cannot contain `:'.
   23040 	 test -f "$ac_f" ||
   23041 	   case $ac_f in
   23042 	   [\\/$]*) false;;
   23043 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   23044 	   esac ||
   23045 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   23046       esac
   23047       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   23048       as_fn_append ac_file_inputs " '$ac_f'"
   23049     done
   23050 
   23051     # Let's still pretend it is `configure' which instantiates (i.e., don't
   23052     # use $as_me), people would be surprised to read:
   23053     #    /* config.h.  Generated by config.status.  */
   23054     configure_input='Generated from '`
   23055 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   23056 	`' by configure.'
   23057     if test x"$ac_file" != x-; then
   23058       configure_input="$ac_file.  $configure_input"
   23059       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   23060 $as_echo "$as_me: creating $ac_file" >&6;}
   23061     fi
   23062     # Neutralize special characters interpreted by sed in replacement strings.
   23063     case $configure_input in #(
   23064     *\&* | *\|* | *\\* )
   23065        ac_sed_conf_input=`$as_echo "$configure_input" |
   23066        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   23067     *) ac_sed_conf_input=$configure_input;;
   23068     esac
   23069 
   23070     case $ac_tag in
   23071     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   23072       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   23073     esac
   23074     ;;
   23075   esac
   23076 
   23077   ac_dir=`$as_dirname -- "$ac_file" ||
   23078 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   23079 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   23080 	 X"$ac_file" : 'X\(//\)$' \| \
   23081 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   23082 $as_echo X"$ac_file" |
   23083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   23084 	    s//\1/
   23085 	    q
   23086 	  }
   23087 	  /^X\(\/\/\)[^/].*/{
   23088 	    s//\1/
   23089 	    q
   23090 	  }
   23091 	  /^X\(\/\/\)$/{
   23092 	    s//\1/
   23093 	    q
   23094 	  }
   23095 	  /^X\(\/\).*/{
   23096 	    s//\1/
   23097 	    q
   23098 	  }
   23099 	  s/.*/./; q'`
   23100   as_dir="$ac_dir"; as_fn_mkdir_p
   23101   ac_builddir=.
   23102 
   23103 case "$ac_dir" in
   23104 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   23105 *)
   23106   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   23107   # A ".." for each directory in $ac_dir_suffix.
   23108   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   23109   case $ac_top_builddir_sub in
   23110   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   23111   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   23112   esac ;;
   23113 esac
   23114 ac_abs_top_builddir=$ac_pwd
   23115 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   23116 # for backward compatibility:
   23117 ac_top_builddir=$ac_top_build_prefix
   23118 
   23119 case $srcdir in
   23120   .)  # We are building in place.
   23121     ac_srcdir=.
   23122     ac_top_srcdir=$ac_top_builddir_sub
   23123     ac_abs_top_srcdir=$ac_pwd ;;
   23124   [\\/]* | ?:[\\/]* )  # Absolute name.
   23125     ac_srcdir=$srcdir$ac_dir_suffix;
   23126     ac_top_srcdir=$srcdir
   23127     ac_abs_top_srcdir=$srcdir ;;
   23128   *) # Relative name.
   23129     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   23130     ac_top_srcdir=$ac_top_build_prefix$srcdir
   23131     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   23132 esac
   23133 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   23134 
   23135 
   23136   case $ac_mode in
   23137   :F)
   23138   #
   23139   # CONFIG_FILE
   23140   #
   23141 
   23142   case $INSTALL in
   23143   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   23144   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   23145   esac
   23146 _ACEOF
   23147 
   23148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23149 # If the template does not know about datarootdir, expand it.
   23150 # FIXME: This hack should be removed a few years after 2.60.
   23151 ac_datarootdir_hack=; ac_datarootdir_seen=
   23152 ac_sed_dataroot='
   23153 /datarootdir/ {
   23154   p
   23155   q
   23156 }
   23157 /@datadir@/p
   23158 /@docdir@/p
   23159 /@infodir@/p
   23160 /@localedir@/p
   23161 /@mandir@/p'
   23162 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   23163 *datarootdir*) ac_datarootdir_seen=yes;;
   23164 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   23165   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   23166 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   23167 _ACEOF
   23168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23169   ac_datarootdir_hack='
   23170   s&@datadir@&$datadir&g
   23171   s&@docdir@&$docdir&g
   23172   s&@infodir@&$infodir&g
   23173   s&@localedir@&$localedir&g
   23174   s&@mandir@&$mandir&g
   23175   s&\\\${datarootdir}&$datarootdir&g' ;;
   23176 esac
   23177 _ACEOF
   23178 
   23179 # Neutralize VPATH when `$srcdir' = `.'.
   23180 # Shell code in configure.ac might set extrasub.
   23181 # FIXME: do we really want to maintain this feature?
   23182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23183 ac_sed_extra="$ac_vpsub
   23184 $extrasub
   23185 _ACEOF
   23186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23187 :t
   23188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   23189 s|@configure_input@|$ac_sed_conf_input|;t t
   23190 s&@top_builddir@&$ac_top_builddir_sub&;t t
   23191 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   23192 s&@srcdir@&$ac_srcdir&;t t
   23193 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   23194 s&@top_srcdir@&$ac_top_srcdir&;t t
   23195 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   23196 s&@builddir@&$ac_builddir&;t t
   23197 s&@abs_builddir@&$ac_abs_builddir&;t t
   23198 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   23199 s&@INSTALL@&$ac_INSTALL&;t t
   23200 $ac_datarootdir_hack
   23201 "
   23202 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   23203 if $ac_cs_awk_getline; then
   23204   $AWK -f "$ac_tmp/subs.awk"
   23205 else
   23206   $AWK -f "$ac_tmp/subs.awk" | $SHELL
   23207 fi \
   23208   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23209 
   23210 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   23211   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   23212   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   23213       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   23214   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   23215 which seems to be undefined.  Please make sure it is defined" >&5
   23216 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   23217 which seems to be undefined.  Please make sure it is defined" >&2;}
   23218 
   23219   rm -f "$ac_tmp/stdin"
   23220   case $ac_file in
   23221   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   23222   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   23223   esac \
   23224   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23225  ;;
   23226   :H)
   23227   #
   23228   # CONFIG_HEADER
   23229   #
   23230   if test x"$ac_file" != x-; then
   23231     {
   23232       $as_echo "/* $configure_input  */" \
   23233       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   23234     } >"$ac_tmp/config.h" \
   23235       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23236     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   23237       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   23238 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   23239     else
   23240       rm -f "$ac_file"
   23241       mv "$ac_tmp/config.h" "$ac_file" \
   23242 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23243     fi
   23244   else
   23245     $as_echo "/* $configure_input  */" \
   23246       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   23247       || as_fn_error $? "could not create -" "$LINENO" 5
   23248   fi
   23249  ;;
   23250 
   23251   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   23252 $as_echo "$as_me: executing $ac_file commands" >&6;}
   23253  ;;
   23254   esac
   23255 
   23256 
   23257   case $ac_file$ac_mode in
   23258     "libtool":C)
   23259 
   23260     # See if we are running on zsh, and set the options that allow our
   23261     # commands through without removal of \ escapes.
   23262     if test -n "${ZSH_VERSION+set}"; then
   23263       setopt NO_GLOB_SUBST
   23264     fi
   23265 
   23266     cfgfile=${ofile}T
   23267     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   23268     $RM "$cfgfile"
   23269 
   23270     cat <<_LT_EOF >> "$cfgfile"
   23271 #! $SHELL
   23272 # Generated automatically by $as_me ($PACKAGE) $VERSION
   23273 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   23274 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   23275 
   23276 # Provide generalized library-building support services.
   23277 # Written by Gordon Matzigkeit, 1996
   23278 
   23279 # Copyright (C) 2014 Free Software Foundation, Inc.
   23280 # This is free software; see the source for copying conditions.  There is NO
   23281 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   23282 
   23283 # GNU Libtool is free software; you can redistribute it and/or modify
   23284 # it under the terms of the GNU General Public License as published by
   23285 # the Free Software Foundation; either version 2 of of the License, or
   23286 # (at your option) any later version.
   23287 #
   23288 # As a special exception to the GNU General Public License, if you
   23289 # distribute this file as part of a program or library that is built
   23290 # using GNU Libtool, you may include this file under the  same
   23291 # distribution terms that you use for the rest of that program.
   23292 #
   23293 # GNU Libtool is distributed in the hope that it will be useful, but
   23294 # WITHOUT ANY WARRANTY; without even the implied warranty of
   23295 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   23296 # GNU General Public License for more details.
   23297 #
   23298 # You should have received a copy of the GNU General Public License
   23299 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   23300 
   23301 
   23302 # The names of the tagged configurations supported by this script.
   23303 available_tags=''
   23304 
   23305 # Configured defaults for sys_lib_dlsearch_path munging.
   23306 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   23307 
   23308 # ### BEGIN LIBTOOL CONFIG
   23309 
   23310 # Which release of libtool.m4 was used?
   23311 macro_version=$macro_version
   23312 macro_revision=$macro_revision
   23313 
   23314 # Whether or not to build shared libraries.
   23315 build_libtool_libs=$enable_shared
   23316 
   23317 # Whether or not to build static libraries.
   23318 build_old_libs=$enable_static
   23319 
   23320 # What type of objects to build.
   23321 pic_mode=$pic_mode
   23322 
   23323 # Whether or not to optimize for fast installation.
   23324 fast_install=$enable_fast_install
   23325 
   23326 # Shared archive member basename,for filename based shared library versioning on AIX.
   23327 shared_archive_member_spec=$shared_archive_member_spec
   23328 
   23329 # Shell to use when invoking shell scripts.
   23330 SHELL=$lt_SHELL
   23331 
   23332 # An echo program that protects backslashes.
   23333 ECHO=$lt_ECHO
   23334 
   23335 # The PATH separator for the build system.
   23336 PATH_SEPARATOR=$lt_PATH_SEPARATOR
   23337 
   23338 # The host system.
   23339 host_alias=$host_alias
   23340 host=$host
   23341 host_os=$host_os
   23342 
   23343 # The build system.
   23344 build_alias=$build_alias
   23345 build=$build
   23346 build_os=$build_os
   23347 
   23348 # A sed program that does not truncate output.
   23349 SED=$lt_SED
   23350 
   23351 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   23352 Xsed="\$SED -e 1s/^X//"
   23353 
   23354 # A grep program that handles long lines.
   23355 GREP=$lt_GREP
   23356 
   23357 # An ERE matcher.
   23358 EGREP=$lt_EGREP
   23359 
   23360 # A literal string matcher.
   23361 FGREP=$lt_FGREP
   23362 
   23363 # A BSD- or MS-compatible name lister.
   23364 NM=$lt_NM
   23365 
   23366 # Whether we need soft or hard links.
   23367 LN_S=$lt_LN_S
   23368 
   23369 # What is the maximum length of a command?
   23370 max_cmd_len=$max_cmd_len
   23371 
   23372 # Object file suffix (normally "o").
   23373 objext=$ac_objext
   23374 
   23375 # Executable file suffix (normally "").
   23376 exeext=$exeext
   23377 
   23378 # whether the shell understands "unset".
   23379 lt_unset=$lt_unset
   23380 
   23381 # turn spaces into newlines.
   23382 SP2NL=$lt_lt_SP2NL
   23383 
   23384 # turn newlines into spaces.
   23385 NL2SP=$lt_lt_NL2SP
   23386 
   23387 # convert \$build file names to \$host format.
   23388 to_host_file_cmd=$lt_cv_to_host_file_cmd
   23389 
   23390 # convert \$build files to toolchain format.
   23391 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   23392 
   23393 # An object symbol dumper.
   23394 OBJDUMP=$lt_OBJDUMP
   23395 
   23396 # Method to check whether dependent libraries are shared objects.
   23397 deplibs_check_method=$lt_deplibs_check_method
   23398 
   23399 # Command to use when deplibs_check_method = "file_magic".
   23400 file_magic_cmd=$lt_file_magic_cmd
   23401 
   23402 # How to find potential files when deplibs_check_method = "file_magic".
   23403 file_magic_glob=$lt_file_magic_glob
   23404 
   23405 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   23406 want_nocaseglob=$lt_want_nocaseglob
   23407 
   23408 # DLL creation program.
   23409 DLLTOOL=$lt_DLLTOOL
   23410 
   23411 # Command to associate shared and link libraries.
   23412 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   23413 
   23414 # The archiver.
   23415 AR=$lt_AR
   23416 
   23417 # Flags to create an archive.
   23418 AR_FLAGS=$lt_AR_FLAGS
   23419 
   23420 # How to feed a file listing to the archiver.
   23421 archiver_list_spec=$lt_archiver_list_spec
   23422 
   23423 # A symbol stripping program.
   23424 STRIP=$lt_STRIP
   23425 
   23426 # Commands used to install an old-style archive.
   23427 RANLIB=$lt_RANLIB
   23428 old_postinstall_cmds=$lt_old_postinstall_cmds
   23429 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   23430 
   23431 # Whether to use a lock for old archive extraction.
   23432 lock_old_archive_extraction=$lock_old_archive_extraction
   23433 
   23434 # A C compiler.
   23435 LTCC=$lt_CC
   23436 
   23437 # LTCC compiler flags.
   23438 LTCFLAGS=$lt_CFLAGS
   23439 
   23440 # Take the output of nm and produce a listing of raw symbols and C names.
   23441 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   23442 
   23443 # Transform the output of nm in a proper C declaration.
   23444 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   23445 
   23446 # Transform the output of nm into a list of symbols to manually relocate.
   23447 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   23448 
   23449 # Transform the output of nm in a C name address pair.
   23450 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   23451 
   23452 # Transform the output of nm in a C name address pair when lib prefix is needed.
   23453 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   23454 
   23455 # The name lister interface.
   23456 nm_interface=$lt_lt_cv_nm_interface
   23457 
   23458 # Specify filename containing input files for \$NM.
   23459 nm_file_list_spec=$lt_nm_file_list_spec
   23460 
   23461 # The root where to search for dependent libraries,and where our libraries should be installed.
   23462 lt_sysroot=$lt_sysroot
   23463 
   23464 # Command to truncate a binary pipe.
   23465 lt_truncate_bin=$lt_lt_cv_truncate_bin
   23466 
   23467 # The name of the directory that contains temporary libtool files.
   23468 objdir=$objdir
   23469 
   23470 # Used to examine libraries when file_magic_cmd begins with "file".
   23471 MAGIC_CMD=$MAGIC_CMD
   23472 
   23473 # Must we lock files when doing compilation?
   23474 need_locks=$lt_need_locks
   23475 
   23476 # Manifest tool.
   23477 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   23478 
   23479 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   23480 DSYMUTIL=$lt_DSYMUTIL
   23481 
   23482 # Tool to change global to local symbols on Mac OS X.
   23483 NMEDIT=$lt_NMEDIT
   23484 
   23485 # Tool to manipulate fat objects and archives on Mac OS X.
   23486 LIPO=$lt_LIPO
   23487 
   23488 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   23489 OTOOL=$lt_OTOOL
   23490 
   23491 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   23492 OTOOL64=$lt_OTOOL64
   23493 
   23494 # Old archive suffix (normally "a").
   23495 libext=$libext
   23496 
   23497 # Shared library suffix (normally ".so").
   23498 shrext_cmds=$lt_shrext_cmds
   23499 
   23500 # The commands to extract the exported symbol list from a shared archive.
   23501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   23502 
   23503 # Variables whose values should be saved in libtool wrapper scripts and
   23504 # restored at link time.
   23505 variables_saved_for_relink=$lt_variables_saved_for_relink
   23506 
   23507 # Do we need the "lib" prefix for modules?
   23508 need_lib_prefix=$need_lib_prefix
   23509 
   23510 # Do we need a version for libraries?
   23511 need_version=$need_version
   23512 
   23513 # Library versioning type.
   23514 version_type=$version_type
   23515 
   23516 # Shared library runtime path variable.
   23517 runpath_var=$runpath_var
   23518 
   23519 # Shared library path variable.
   23520 shlibpath_var=$shlibpath_var
   23521 
   23522 # Is shlibpath searched before the hard-coded library search path?
   23523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   23524 
   23525 # Format of library name prefix.
   23526 libname_spec=$lt_libname_spec
   23527 
   23528 # List of archive names.  First name is the real one, the rest are links.
   23529 # The last name is the one that the linker finds with -lNAME
   23530 library_names_spec=$lt_library_names_spec
   23531 
   23532 # The coded name of the library, if different from the real name.
   23533 soname_spec=$lt_soname_spec
   23534 
   23535 # Permission mode override for installation of shared libraries.
   23536 install_override_mode=$lt_install_override_mode
   23537 
   23538 # Command to use after installation of a shared archive.
   23539 postinstall_cmds=$lt_postinstall_cmds
   23540 
   23541 # Command to use after uninstallation of a shared archive.
   23542 postuninstall_cmds=$lt_postuninstall_cmds
   23543 
   23544 # Commands used to finish a libtool library installation in a directory.
   23545 finish_cmds=$lt_finish_cmds
   23546 
   23547 # As "finish_cmds", except a single script fragment to be evaled but
   23548 # not shown.
   23549 finish_eval=$lt_finish_eval
   23550 
   23551 # Whether we should hardcode library paths into libraries.
   23552 hardcode_into_libs=$hardcode_into_libs
   23553 
   23554 # Compile-time system search path for libraries.
   23555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   23556 
   23557 # Detected run-time system search path for libraries.
   23558 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   23559 
   23560 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   23561 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   23562 
   23563 # Whether dlopen is supported.
   23564 dlopen_support=$enable_dlopen
   23565 
   23566 # Whether dlopen of programs is supported.
   23567 dlopen_self=$enable_dlopen_self
   23568 
   23569 # Whether dlopen of statically linked programs is supported.
   23570 dlopen_self_static=$enable_dlopen_self_static
   23571 
   23572 # Commands to strip libraries.
   23573 old_striplib=$lt_old_striplib
   23574 striplib=$lt_striplib
   23575 
   23576 
   23577 # The linker used to build libraries.
   23578 LD=$lt_LD
   23579 
   23580 # How to create reloadable object files.
   23581 reload_flag=$lt_reload_flag
   23582 reload_cmds=$lt_reload_cmds
   23583 
   23584 # Commands used to build an old-style archive.
   23585 old_archive_cmds=$lt_old_archive_cmds
   23586 
   23587 # A language specific compiler.
   23588 CC=$lt_compiler
   23589 
   23590 # Is the compiler the GNU compiler?
   23591 with_gcc=$GCC
   23592 
   23593 # Compiler flag to turn off builtin functions.
   23594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   23595 
   23596 # Additional compiler flags for building library objects.
   23597 pic_flag=$lt_lt_prog_compiler_pic
   23598 
   23599 # How to pass a linker flag through the compiler.
   23600 wl=$lt_lt_prog_compiler_wl
   23601 
   23602 # Compiler flag to prevent dynamic linking.
   23603 link_static_flag=$lt_lt_prog_compiler_static
   23604 
   23605 # Does compiler simultaneously support -c and -o options?
   23606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   23607 
   23608 # Whether or not to add -lc for building shared libraries.
   23609 build_libtool_need_lc=$archive_cmds_need_lc
   23610 
   23611 # Whether or not to disallow shared libs when runtime libs are static.
   23612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   23613 
   23614 # Compiler flag to allow reflexive dlopens.
   23615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   23616 
   23617 # Compiler flag to generate shared objects directly from archives.
   23618 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   23619 
   23620 # Whether the compiler copes with passing no objects directly.
   23621 compiler_needs_object=$lt_compiler_needs_object
   23622 
   23623 # Create an old-style archive from a shared archive.
   23624 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   23625 
   23626 # Create a temporary old-style archive to link instead of a shared archive.
   23627 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   23628 
   23629 # Commands used to build a shared archive.
   23630 archive_cmds=$lt_archive_cmds
   23631 archive_expsym_cmds=$lt_archive_expsym_cmds
   23632 
   23633 # Commands used to build a loadable module if different from building
   23634 # a shared archive.
   23635 module_cmds=$lt_module_cmds
   23636 module_expsym_cmds=$lt_module_expsym_cmds
   23637 
   23638 # Whether we are building with GNU ld or not.
   23639 with_gnu_ld=$lt_with_gnu_ld
   23640 
   23641 # Flag that allows shared libraries with undefined symbols to be built.
   23642 allow_undefined_flag=$lt_allow_undefined_flag
   23643 
   23644 # Flag that enforces no undefined symbols.
   23645 no_undefined_flag=$lt_no_undefined_flag
   23646 
   23647 # Flag to hardcode \$libdir into a binary during linking.
   23648 # This must work even if \$libdir does not exist
   23649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   23650 
   23651 # Whether we need a single "-rpath" flag with a separated argument.
   23652 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   23653 
   23654 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   23655 # DIR into the resulting binary.
   23656 hardcode_direct=$hardcode_direct
   23657 
   23658 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   23659 # DIR into the resulting binary and the resulting library dependency is
   23660 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
   23661 # library is relocated.
   23662 hardcode_direct_absolute=$hardcode_direct_absolute
   23663 
   23664 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   23665 # into the resulting binary.
   23666 hardcode_minus_L=$hardcode_minus_L
   23667 
   23668 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   23669 # into the resulting binary.
   23670 hardcode_shlibpath_var=$hardcode_shlibpath_var
   23671 
   23672 # Set to "yes" if building a shared library automatically hardcodes DIR
   23673 # into the library and all subsequent libraries and executables linked
   23674 # against it.
   23675 hardcode_automatic=$hardcode_automatic
   23676 
   23677 # Set to yes if linker adds runtime paths of dependent libraries
   23678 # to runtime path list.
   23679 inherit_rpath=$inherit_rpath
   23680 
   23681 # Whether libtool must link a program against all its dependency libraries.
   23682 link_all_deplibs=$link_all_deplibs
   23683 
   23684 # Set to "yes" if exported symbols are required.
   23685 always_export_symbols=$always_export_symbols
   23686 
   23687 # The commands to list exported symbols.
   23688 export_symbols_cmds=$lt_export_symbols_cmds
   23689 
   23690 # Symbols that should not be listed in the preloaded symbols.
   23691 exclude_expsyms=$lt_exclude_expsyms
   23692 
   23693 # Symbols that must always be exported.
   23694 include_expsyms=$lt_include_expsyms
   23695 
   23696 # Commands necessary for linking programs (against libraries) with templates.
   23697 prelink_cmds=$lt_prelink_cmds
   23698 
   23699 # Commands necessary for finishing linking programs.
   23700 postlink_cmds=$lt_postlink_cmds
   23701 
   23702 # Specify filename containing input files.
   23703 file_list_spec=$lt_file_list_spec
   23704 
   23705 # How to hardcode a shared library path into an executable.
   23706 hardcode_action=$hardcode_action
   23707 
   23708 # ### END LIBTOOL CONFIG
   23709 
   23710 _LT_EOF
   23711 
   23712     cat <<'_LT_EOF' >> "$cfgfile"
   23713 
   23714 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   23715 
   23716 # func_munge_path_list VARIABLE PATH
   23717 # -----------------------------------
   23718 # VARIABLE is name of variable containing _space_ separated list of
   23719 # directories to be munged by the contents of PATH, which is string
   23720 # having a format:
   23721 # "DIR[:DIR]:"
   23722 #       string "DIR[ DIR]" will be prepended to VARIABLE
   23723 # ":DIR[:DIR]"
   23724 #       string "DIR[ DIR]" will be appended to VARIABLE
   23725 # "DIRP[:DIRP]::[DIRA:]DIRA"
   23726 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   23727 #       "DIRA[ DIRA]" will be appended to VARIABLE
   23728 # "DIR[:DIR]"
   23729 #       VARIABLE will be replaced by "DIR[ DIR]"
   23730 func_munge_path_list ()
   23731 {
   23732     case x$2 in
   23733     x)
   23734         ;;
   23735     *:)
   23736         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   23737         ;;
   23738     x:*)
   23739         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   23740         ;;
   23741     *::*)
   23742         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   23743         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   23744         ;;
   23745     *)
   23746         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   23747         ;;
   23748     esac
   23749 }
   23750 
   23751 
   23752 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   23753 func_cc_basename ()
   23754 {
   23755     for cc_temp in $*""; do
   23756       case $cc_temp in
   23757         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   23758         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   23759         \-*) ;;
   23760         *) break;;
   23761       esac
   23762     done
   23763     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   23764 }
   23765 
   23766 
   23767 # ### END FUNCTIONS SHARED WITH CONFIGURE
   23768 
   23769 _LT_EOF
   23770 
   23771   case $host_os in
   23772   aix3*)
   23773     cat <<\_LT_EOF >> "$cfgfile"
   23774 # AIX sometimes has problems with the GCC collect2 program.  For some
   23775 # reason, if we set the COLLECT_NAMES environment variable, the problems
   23776 # vanish in a puff of smoke.
   23777 if test set != "${COLLECT_NAMES+set}"; then
   23778   COLLECT_NAMES=
   23779   export COLLECT_NAMES
   23780 fi
   23781 _LT_EOF
   23782     ;;
   23783   esac
   23784 
   23785 
   23786 ltmain=$ac_aux_dir/ltmain.sh
   23787 
   23788 
   23789   # We use sed instead of cat because bash on DJGPP gets confused if
   23790   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   23791   # text mode, it properly converts lines to CR/LF.  This bash problem
   23792   # is reportedly fixed, but why not run on old versions too?
   23793   sed '$q' "$ltmain" >> "$cfgfile" \
   23794      || (rm -f "$cfgfile"; exit 1)
   23795 
   23796    mv -f "$cfgfile" "$ofile" ||
   23797     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   23798   chmod +x "$ofile"
   23799 
   23800  ;;
   23801     "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
   23802 
   23803   esac
   23804 done # for ac_tag
   23805 
   23806 
   23807 as_fn_exit 0
   23808 _ACEOF
   23809 ac_clean_files=$ac_clean_files_save
   23810 
   23811 test $ac_write_fail = 0 ||
   23812   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   23813 
   23814 
   23815 # configure is writing to config.log, and then calls config.status.
   23816 # config.status does its own redirection, appending to config.log.
   23817 # Unfortunately, on DOS this fails, as config.log is still kept open
   23818 # by configure, so config.status won't be able to write to it; its
   23819 # output is simply discarded.  So we exec the FD to /dev/null,
   23820 # effectively closing config.log, so it can be properly (re)opened and
   23821 # appended to by config.status.  When coming back to configure, we
   23822 # need to make the FD available again.
   23823 if test "$no_create" != yes; then
   23824   ac_cs_success=:
   23825   ac_config_status_args=
   23826   test "$silent" = yes &&
   23827     ac_config_status_args="$ac_config_status_args --quiet"
   23828   exec 5>/dev/null
   23829   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   23830   exec 5>>config.log
   23831   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   23832   # would make configure fail if this is the last instruction.
   23833   $ac_cs_success || as_fn_exit 1
   23834 fi
   23835 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   23836   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   23837 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   23838 fi
   23839 
   23840 
   23841 #
   23842 # Now that the Makefiles exist we can ensure that everything is rebuilt.
   23843 #
   23844 
   23845 # Check whether --with-make-clean was given.
   23846 if test "${with_make_clean+set}" = set; then :
   23847   withval=$with_make_clean; make_clean="$withval"
   23848 else
   23849   make_clean="yes"
   23850 fi
   23851 
   23852 case "$make_clean" in
   23853 yes)
   23854 	if test "yes" != "$no_create"
   23855 	then
   23856 		if test "yes" = "$silent"
   23857 		then
   23858 			make clean > /dev/null
   23859 		else
   23860 			make clean
   23861 		fi
   23862 	fi
   23863 	;;
   23864 esac
   23865 
   23866 # Check whether --enable-full-report was given.
   23867 if test "${enable_full_report+set}" = set; then :
   23868   enableval=$enable_full_report;
   23869 fi
   23870 
   23871 
   23872 report() {
   23873     echo "==============================================================================="
   23874     echo "Configuration summary:"
   23875     echo "-------------------------------------------------------------------------------"
   23876     echo "Optional features enabled:"
   23877     if test "yes" = "$enable_full_report" -o "standard" = "$locktype"; then
   23878 	echo "        Mutex lock type: $locktype"
   23879     fi
   23880     test "large" = "$use_tuning" && echo "    Large-system tuning (--with-tuning)"
   23881     test "no" = "$use_dnstap" || \
   23882 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   23883     test "no" = "$use_geoip" || echo "    GeoIP access control (--with-geoip)"
   23884     test "no" = "$use_gssapi" || echo "    GSS-API (--with-gssapi)"
   23885     if test "yes" = "$enable_full_report" -o "aes" != "$with_cc_alg"; then
   23886 	echo "        Algorithm: $with_cc_alg"
   23887     fi
   23888 
   23889     # these lines are only printed if run with --enable-full-report
   23890     if test "yes" = "$enable_full_report"; then
   23891 	test "no" = "$found_ipv6" || echo "    IPv6 support (--enable-ipv6)"
   23892 	test "X$PYTHON" = "X" || echo "    Python tools (--with-python)"
   23893 	test "X$XMLSTATS" = "X" || echo "    XML statistics (--with-libxml2)"
   23894 	test "X$JSONSTATS" = "X" || echo "    JSON statistics (--with-libjson)"
   23895 	test "X$ZLIB" = "X" || echo "    HTTP zlib compression (--with-zlib)"
   23896 	test "X$NZD_TOOLS" = "X" || echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   23897 	test "no" = "$with_libidn2" || echo "    IDN support (--with-libidn2)"
   23898     fi
   23899 
   23900     test "yes" = "$enable_dnsrps" && \
   23901 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   23902     test "yes" = "$enable_fixed" && \
   23903 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   23904     test "yes" = "$enable_backtrace" && \
   23905 	echo "    Print backtrace on crash (--enable-backtrace)"
   23906     test "minimal" = "$want_symtable" && \
   23907 	echo "    Use symbol table for backtrace, named only (--enable-symtable)"
   23908     test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
   23909 	echo "    Use symbol table for backtrace, all binaries (--enable-symtable=all)"
   23910     test "no" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   23911     test "yes" = "$want_querytrace" && \
   23912 	echo "    Very verbose query trace logging (--enable-querytrace)"
   23913     test "no" = "$with_cmocka" || echo "    CMocka Unit Testing Framework (--with-cmocka)"
   23914 
   23915     test "no" = "$want_autoval" || echo "    DNSSEC validation active by default (--enable-auto-validation)"
   23916 
   23917     test "$CRYPTO" = "pkcs11" && (
   23918 	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
   23919 	echo "    PKCS#11 module (--with-pkcs11): $with_pkcs11"
   23920     )
   23921 
   23922     echo "    Dynamically loadable zone (DLZ) drivers:"
   23923     test "no" = "$use_dlz_bdb" || \
   23924 	echo "        Berkeley DB (--with-dlz-bdb)"
   23925     test "no" = "$use_dlz_ldap" || \
   23926 	echo "        LDAP (--with-dlz-ldap)"
   23927     test "no" = "$use_dlz_mysql" || \
   23928 	echo "        MySQL (--with-dlz-mysql)"
   23929     test "no" = "$use_dlz_odbc" || \
   23930 	echo "        ODBC (--with-dlz-odbc)"
   23931     test "no" = "$use_dlz_postgres" || \
   23932 	echo "        Postgres (--with-dlz-postgres)"
   23933     test "no" = "$use_dlz_filesystem" || \
   23934 	echo "        Filesystem (--with-dlz-filesystem)"
   23935     test "no" = "$use_dlz_stub" || \
   23936 	echo "        Stub (--with-dlz-stub)"
   23937     test "$use_dlz_bdb $use_dlz_ldap $use_dlz_mysql $use_dlz_odbc $use_dlz_postgres $use_dlz_filesystem $use_dlz_stub" = "no no no no no no no" && echo "        None"
   23938 
   23939     echo "-------------------------------------------------------------------------------"
   23940 
   23941     echo "Features disabled or unavailable on this platform:"
   23942     test "no" = "$found_ipv6" && echo "    IPv6 support (--enable-ipv6)"
   23943     test "large" = "$use_tuning" || echo "    Large-system tuning (--with-tuning)"
   23944 
   23945     test "no" = "$use_dnstap" && \
   23946 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   23947     test "no" = "$use_geoip" && echo "    GeoIP access control (--with-geoip)"
   23948     test "no" = "$use_gssapi" && echo "    GSS-API (--with-gssapi)"
   23949 
   23950     test "no" = "$enable_dnsrps" && \
   23951 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   23952 
   23953     test "yes" = "$enable_fixed" || \
   23954 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   23955 
   23956     test "no" = "$want_autoval" && echo "    DNSSEC validation requires configuration (--disable-auto-validation)"
   23957 
   23958     test "$CRYPTO" = "pkcs11" || (
   23959 	echo "    Using PKCS#11 for Public-Key Cryptography (--without-native-pkcs11)"
   23960     )
   23961 
   23962     test "yes" = "$enable_backtrace" || \
   23963 	echo "    Print backtrace on crash (--enable-backtrace)"
   23964     test "yes" = "$want_querytrace" || \
   23965 	echo "    Very verbose query trace logging (--enable-querytrace)"
   23966 
   23967     test "yes" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   23968     test "no" = "$with_cmocka" && echo "    CMocka Unit Testing Framework (--with-cmocka)"
   23969 
   23970     test "X$PYTHON" = "X" && echo "    Python tools (--with-python)"
   23971     test "X$XMLSTATS" = "X" && echo "    XML statistics (--with-libxml2)"
   23972     test "X$JSONSTATS" = "X" && echo "    JSON statistics (--with-libjson)"
   23973     test "X$ZLIB" = "X" && echo "    HTTP zlib compression (--with-zlib)"
   23974     test "X$NZD_TOOLS" = "X" && echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   23975     test "no" = "$with_libidn2" && echo "    IDN support (--with-libidn2)"
   23976 
   23977     echo "-------------------------------------------------------------------------------"
   23978     echo "Configured paths:"
   23979     echo "    prefix: $prefix"
   23980     echo "    sysconfdir: $sysconfdir"
   23981     echo "    localstatedir: $localstatedir"
   23982     echo "-------------------------------------------------------------------------------"
   23983     echo "Compiler: $CC"
   23984     $CC --version 2>&1 | sed 's/^/    /'
   23985 
   23986     if test "X$ac_unrecognized_opts" != "X"; then
   23987 	echo "Unrecognized options:"
   23988 	echo "    $ac_unrecognized_opts"
   23989     fi
   23990 
   23991     if test "yes" != "$enable_full_report"; then
   23992 	echo "-------------------------------------------------------------------------------"
   23993 	echo "For more detail, use --enable-full-report."
   23994     fi
   23995     echo "==============================================================================="
   23996 }
   23997 
   23998 if test "yes" != "$silent"; then
   23999 	report
   24000 fi
   24001 
   24002 # Tell Emacs to edit this file in shell mode.
   24003 # Local Variables:
   24004 # mode: sh
   24005 # End:
   24006