Home | History | Annotate | Line # | Download | only in dist
configure revision 1.4
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for BIND 9.13.
      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.13'
    593 PACKAGE_STRING='BIND 9.13'
    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 DNSTAP_PB_C_H
    701 DNSTAPTARGETS
    702 DNSTAPOBJS
    703 DNSTAPSRCS
    704 DNSTAP
    705 FSTRM_CAPTURE
    706 PROTOC_C
    707 ISC_PLATFORM_HAVESYSUNH
    708 LIBCAP_LIBS
    709 DST_EXTRA_SRCS
    710 DST_EXTRA_OBJS
    711 USE_ISC_SPNEGO
    712 READLINE_LIB
    713 BIND9_CO_RULE
    714 LIBTOOL_MODE_UNINSTALL
    715 LIBTOOL_MODE_LINK
    716 LIBTOOL_MODE_INSTALL
    717 LIBTOOL_MODE_COMPILE
    718 LIBTOOL_MKDEP_SED
    719 SA
    720 A
    721 O
    722 ALWAYS_MAKE_SYMTABLE
    723 MKSYMTBL_PROGRAM
    724 PURIFY
    725 purify_path
    726 MKDEPPROG
    727 MKDEPCFLAGS
    728 MKDEPCC
    729 ZLIB
    730 JSONSTATS
    731 XMLSTATS
    732 NZDTARGETS
    733 NZDSRCS
    734 NZD_TOOLS
    735 DNS_CRYPTO_LIBS
    736 DNS_GSSAPI_LIBS
    737 DST_GSSAPI_INC
    738 USE_GSSAPI
    739 ISC_PLATFORM_KRB5HEADER
    740 ISC_PLATFORM_GSSAPI_KRB5_HEADER
    741 ISC_PLATFORM_GSSAPIHEADER
    742 ISC_PLATFORM_HAVEGSSAPI
    743 KRB5_CONFIG
    744 PKCS11_TOOLS
    745 PKCS11_TEST
    746 OPENSSL_LDFLAGS
    747 OPENSSL_INCLUDES
    748 OPENSSL_LIBS
    749 OPENSSL_CFLAGS
    750 INSTALL_LIBRARY
    751 ALWAYS_DEFINES
    752 PTHREAD_CFLAGS
    753 PTHREAD_LIBS
    754 PTHREAD_CC
    755 ax_pthread_config
    756 GEOIPLINKOBJS
    757 GEOIPLINKSRCS
    758 ISC_PLATFORM_NORETURN_POST
    759 ISC_PLATFORM_NORETURN_PRE
    760 expanded_sysconfdir
    761 PYTHON_INSTALL_LIB
    762 PYTHON_INSTALL_DIR
    763 PYTHON_TOOLS
    764 KEYMGR
    765 COVERAGE
    766 CHECKDS
    767 PYTHON
    768 PERL
    769 ETAGS
    770 LN
    771 ARFLAGS
    772 XTARGETS
    773 PKG_CONFIG_LIBDIR
    774 PKG_CONFIG_PATH
    775 PKG_CONFIG
    776 BACKTRACECFLAGS
    777 CCNOOPT
    778 CCOPT
    779 STD_CWARNINGS
    780 STD_CDEFINES
    781 STD_CINCLUDES
    782 INSTALL_DATA
    783 INSTALL_SCRIPT
    784 INSTALL_PROGRAM
    785 LT_SYS_LIBRARY_PATH
    786 OTOOL64
    787 OTOOL
    788 LIPO
    789 NMEDIT
    790 DSYMUTIL
    791 MANIFEST_TOOL
    792 AWK
    793 RANLIB
    794 STRIP
    795 ac_ct_AR
    796 AR
    797 DLLTOOL
    798 OBJDUMP
    799 LN_S
    800 NM
    801 ac_ct_DUMPBIN
    802 DUMPBIN
    803 LD
    804 FGREP
    805 SED
    806 LIBTOOL
    807 SET_MAKE
    808 EGREP
    809 GREP
    810 CPP
    811 OBJEXT
    812 EXEEXT
    813 ac_ct_CC
    814 CPPFLAGS
    815 LDFLAGS
    816 CFLAGS
    817 CC
    818 host_os
    819 host_vendor
    820 host_cpu
    821 host
    822 build_os
    823 build_vendor
    824 build_cpu
    825 build
    826 target_alias
    827 host_alias
    828 build_alias
    829 LIBS
    830 ECHO_T
    831 ECHO_N
    832 ECHO_C
    833 DEFS
    834 mandir
    835 localedir
    836 libdir
    837 psdir
    838 pdfdir
    839 dvidir
    840 htmldir
    841 infodir
    842 docdir
    843 oldincludedir
    844 includedir
    845 localstatedir
    846 sharedstatedir
    847 sysconfdir
    848 datadir
    849 datarootdir
    850 libexecdir
    851 sbindir
    852 bindir
    853 program_transform_name
    854 prefix
    855 exec_prefix
    856 PACKAGE_URL
    857 PACKAGE_BUGREPORT
    858 PACKAGE_STRING
    859 PACKAGE_VERSION
    860 PACKAGE_TARNAME
    861 PACKAGE_NAME
    862 PATH_SEPARATOR
    863 SHELL'
    864 ac_subst_files='BIND9_MAKE_INCLUDES
    865 BIND9_MAKE_RULES
    866 LIBISC_API
    867 LIBISCCC_API
    868 LIBISCCFG_API
    869 LIBDNS_API
    870 LIBDNS_MAPAPI
    871 LIBBIND9_API
    872 LIBIRS_API
    873 LIBNS_API
    874 DLZ_DRIVER_RULES'
    875 ac_user_opts='
    876 enable_option_checking
    877 enable_shared
    878 enable_static
    879 with_pic
    880 enable_fast_install
    881 with_aix_soname
    882 with_gnu_ld
    883 with_sysroot
    884 enable_libtool_lock
    885 enable_libbind
    886 enable_buffer_useinline
    887 enable_warn_shadow
    888 enable_warn_error
    889 enable_developer
    890 enable_fuzzing
    891 with_python
    892 with_python_install_dir
    893 enable_kqueue
    894 enable_epoll
    895 enable_devpoll
    896 with_geoip
    897 with_locktype
    898 with_libtool
    899 with_openssl
    900 enable_fips_mode
    901 with_cc_alg
    902 enable_native_pkcs11
    903 with_pkcs11
    904 with_gssapi
    905 with_lmdb
    906 with_libxml2
    907 with_libjson
    908 with_zlib
    909 enable_largefile
    910 with_purify
    911 with_gperftools_profiler
    912 enable_backtrace
    913 enable_symtable
    914 enable_tcp_fastopen
    915 with_readline
    916 enable_isc_spnego
    917 enable_chroot
    918 enable_linux_caps
    919 enable_fixed_rrset
    920 enable_dnstap
    921 with_protobuf_c
    922 with_libfstrm
    923 with_docbook_xsl
    924 with_libidn2
    925 with_cmocka
    926 with_tuning
    927 enable_querytrace
    928 enable_auto_validation
    929 with_dlopen
    930 enable_dnsrps_dl
    931 with_dnsrps_libname
    932 with_dnsrps_dir
    933 enable_dnsrps
    934 with_dlz_postgres
    935 with_dlz_mysql
    936 with_dlz_bdb
    937 with_dlz_filesystem
    938 with_dlz_ldap
    939 with_dlz_odbc
    940 with_dlz_stub
    941 with_make_clean
    942 enable_full_report
    943 '
    944       ac_precious_vars='build_alias
    945 host_alias
    946 target_alias
    947 CC
    948 CFLAGS
    949 LDFLAGS
    950 LIBS
    951 CPPFLAGS
    952 CPP
    953 LT_SYS_LIBRARY_PATH
    954 PKG_CONFIG
    955 PKG_CONFIG_PATH
    956 PKG_CONFIG_LIBDIR
    957 OPENSSL_CFLAGS
    958 OPENSSL_LIBS
    959 LIBIDN2_CFLAGS
    960 LIBIDN2_LIBS
    961 CMOCKA_CFLAGS
    962 CMOCKA_LIBS
    963 KYUA'
    964 
    965 
    966 # Initialize some variables set by options.
    967 ac_init_help=
    968 ac_init_version=false
    969 ac_unrecognized_opts=
    970 ac_unrecognized_sep=
    971 # The variables have the same names as the options, with
    972 # dashes changed to underlines.
    973 cache_file=/dev/null
    974 exec_prefix=NONE
    975 no_create=
    976 no_recursion=
    977 prefix=NONE
    978 program_prefix=NONE
    979 program_suffix=NONE
    980 program_transform_name=s,x,x,
    981 silent=
    982 site=
    983 srcdir=
    984 verbose=
    985 x_includes=NONE
    986 x_libraries=NONE
    987 
    988 # Installation directory options.
    989 # These are left unexpanded so users can "make install exec_prefix=/foo"
    990 # and all the variables that are supposed to be based on exec_prefix
    991 # by default will actually change.
    992 # Use braces instead of parens because sh, perl, etc. also accept them.
    993 # (The list follows the same order as the GNU Coding Standards.)
    994 bindir='${exec_prefix}/bin'
    995 sbindir='${exec_prefix}/sbin'
    996 libexecdir='${exec_prefix}/libexec'
    997 datarootdir='${prefix}/share'
    998 datadir='${datarootdir}'
    999 sysconfdir='${prefix}/etc'
   1000 sharedstatedir='${prefix}/com'
   1001 localstatedir='${prefix}/var'
   1002 includedir='${prefix}/include'
   1003 oldincludedir='/usr/include'
   1004 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   1005 infodir='${datarootdir}/info'
   1006 htmldir='${docdir}'
   1007 dvidir='${docdir}'
   1008 pdfdir='${docdir}'
   1009 psdir='${docdir}'
   1010 libdir='${exec_prefix}/lib'
   1011 localedir='${datarootdir}/locale'
   1012 mandir='${datarootdir}/man'
   1013 
   1014 ac_prev=
   1015 ac_dashdash=
   1016 for ac_option
   1017 do
   1018   # If the previous option needs an argument, assign it.
   1019   if test -n "$ac_prev"; then
   1020     eval $ac_prev=\$ac_option
   1021     ac_prev=
   1022     continue
   1023   fi
   1024 
   1025   case $ac_option in
   1026   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1027   *=)   ac_optarg= ;;
   1028   *)    ac_optarg=yes ;;
   1029   esac
   1030 
   1031   # Accept the important Cygnus configure options, so we can diagnose typos.
   1032 
   1033   case $ac_dashdash$ac_option in
   1034   --)
   1035     ac_dashdash=yes ;;
   1036 
   1037   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1038     ac_prev=bindir ;;
   1039   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1040     bindir=$ac_optarg ;;
   1041 
   1042   -build | --build | --buil | --bui | --bu)
   1043     ac_prev=build_alias ;;
   1044   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1045     build_alias=$ac_optarg ;;
   1046 
   1047   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1048   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1049     ac_prev=cache_file ;;
   1050   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1051   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1052     cache_file=$ac_optarg ;;
   1053 
   1054   --config-cache | -C)
   1055     cache_file=config.cache ;;
   1056 
   1057   -datadir | --datadir | --datadi | --datad)
   1058     ac_prev=datadir ;;
   1059   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1060     datadir=$ac_optarg ;;
   1061 
   1062   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1063   | --dataroo | --dataro | --datar)
   1064     ac_prev=datarootdir ;;
   1065   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1066   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1067     datarootdir=$ac_optarg ;;
   1068 
   1069   -disable-* | --disable-*)
   1070     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1071     # Reject names that are not valid shell variable names.
   1072     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1073       as_fn_error $? "invalid feature name: $ac_useropt"
   1074     ac_useropt_orig=$ac_useropt
   1075     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1076     case $ac_user_opts in
   1077       *"
   1078 "enable_$ac_useropt"
   1079 "*) ;;
   1080       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1081 	 ac_unrecognized_sep=', ';;
   1082     esac
   1083     eval enable_$ac_useropt=no ;;
   1084 
   1085   -docdir | --docdir | --docdi | --doc | --do)
   1086     ac_prev=docdir ;;
   1087   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1088     docdir=$ac_optarg ;;
   1089 
   1090   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1091     ac_prev=dvidir ;;
   1092   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1093     dvidir=$ac_optarg ;;
   1094 
   1095   -enable-* | --enable-*)
   1096     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1097     # Reject names that are not valid shell variable names.
   1098     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1099       as_fn_error $? "invalid feature name: $ac_useropt"
   1100     ac_useropt_orig=$ac_useropt
   1101     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1102     case $ac_user_opts in
   1103       *"
   1104 "enable_$ac_useropt"
   1105 "*) ;;
   1106       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1107 	 ac_unrecognized_sep=', ';;
   1108     esac
   1109     eval enable_$ac_useropt=\$ac_optarg ;;
   1110 
   1111   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1112   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1113   | --exec | --exe | --ex)
   1114     ac_prev=exec_prefix ;;
   1115   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1116   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1117   | --exec=* | --exe=* | --ex=*)
   1118     exec_prefix=$ac_optarg ;;
   1119 
   1120   -gas | --gas | --ga | --g)
   1121     # Obsolete; use --with-gas.
   1122     with_gas=yes ;;
   1123 
   1124   -help | --help | --hel | --he | -h)
   1125     ac_init_help=long ;;
   1126   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1127     ac_init_help=recursive ;;
   1128   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1129     ac_init_help=short ;;
   1130 
   1131   -host | --host | --hos | --ho)
   1132     ac_prev=host_alias ;;
   1133   -host=* | --host=* | --hos=* | --ho=*)
   1134     host_alias=$ac_optarg ;;
   1135 
   1136   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1137     ac_prev=htmldir ;;
   1138   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1139   | --ht=*)
   1140     htmldir=$ac_optarg ;;
   1141 
   1142   -includedir | --includedir | --includedi | --included | --include \
   1143   | --includ | --inclu | --incl | --inc)
   1144     ac_prev=includedir ;;
   1145   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1146   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1147     includedir=$ac_optarg ;;
   1148 
   1149   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1150     ac_prev=infodir ;;
   1151   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1152     infodir=$ac_optarg ;;
   1153 
   1154   -libdir | --libdir | --libdi | --libd)
   1155     ac_prev=libdir ;;
   1156   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1157     libdir=$ac_optarg ;;
   1158 
   1159   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1160   | --libexe | --libex | --libe)
   1161     ac_prev=libexecdir ;;
   1162   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1163   | --libexe=* | --libex=* | --libe=*)
   1164     libexecdir=$ac_optarg ;;
   1165 
   1166   -localedir | --localedir | --localedi | --localed | --locale)
   1167     ac_prev=localedir ;;
   1168   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1169     localedir=$ac_optarg ;;
   1170 
   1171   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1172   | --localstate | --localstat | --localsta | --localst | --locals)
   1173     ac_prev=localstatedir ;;
   1174   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1175   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1176     localstatedir=$ac_optarg ;;
   1177 
   1178   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1179     ac_prev=mandir ;;
   1180   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1181     mandir=$ac_optarg ;;
   1182 
   1183   -nfp | --nfp | --nf)
   1184     # Obsolete; use --without-fp.
   1185     with_fp=no ;;
   1186 
   1187   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1188   | --no-cr | --no-c | -n)
   1189     no_create=yes ;;
   1190 
   1191   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1192   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1193     no_recursion=yes ;;
   1194 
   1195   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1196   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1197   | --oldin | --oldi | --old | --ol | --o)
   1198     ac_prev=oldincludedir ;;
   1199   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1200   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1201   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1202     oldincludedir=$ac_optarg ;;
   1203 
   1204   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1205     ac_prev=prefix ;;
   1206   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1207     prefix=$ac_optarg ;;
   1208 
   1209   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1210   | --program-pre | --program-pr | --program-p)
   1211     ac_prev=program_prefix ;;
   1212   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1213   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1214     program_prefix=$ac_optarg ;;
   1215 
   1216   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1217   | --program-suf | --program-su | --program-s)
   1218     ac_prev=program_suffix ;;
   1219   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1220   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1221     program_suffix=$ac_optarg ;;
   1222 
   1223   -program-transform-name | --program-transform-name \
   1224   | --program-transform-nam | --program-transform-na \
   1225   | --program-transform-n | --program-transform- \
   1226   | --program-transform | --program-transfor \
   1227   | --program-transfo | --program-transf \
   1228   | --program-trans | --program-tran \
   1229   | --progr-tra | --program-tr | --program-t)
   1230     ac_prev=program_transform_name ;;
   1231   -program-transform-name=* | --program-transform-name=* \
   1232   | --program-transform-nam=* | --program-transform-na=* \
   1233   | --program-transform-n=* | --program-transform-=* \
   1234   | --program-transform=* | --program-transfor=* \
   1235   | --program-transfo=* | --program-transf=* \
   1236   | --program-trans=* | --program-tran=* \
   1237   | --progr-tra=* | --program-tr=* | --program-t=*)
   1238     program_transform_name=$ac_optarg ;;
   1239 
   1240   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1241     ac_prev=pdfdir ;;
   1242   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1243     pdfdir=$ac_optarg ;;
   1244 
   1245   -psdir | --psdir | --psdi | --psd | --ps)
   1246     ac_prev=psdir ;;
   1247   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1248     psdir=$ac_optarg ;;
   1249 
   1250   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1251   | -silent | --silent | --silen | --sile | --sil)
   1252     silent=yes ;;
   1253 
   1254   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1255     ac_prev=sbindir ;;
   1256   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1257   | --sbi=* | --sb=*)
   1258     sbindir=$ac_optarg ;;
   1259 
   1260   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1261   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1262   | --sharedst | --shareds | --shared | --share | --shar \
   1263   | --sha | --sh)
   1264     ac_prev=sharedstatedir ;;
   1265   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1266   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1267   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1268   | --sha=* | --sh=*)
   1269     sharedstatedir=$ac_optarg ;;
   1270 
   1271   -site | --site | --sit)
   1272     ac_prev=site ;;
   1273   -site=* | --site=* | --sit=*)
   1274     site=$ac_optarg ;;
   1275 
   1276   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1277     ac_prev=srcdir ;;
   1278   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1279     srcdir=$ac_optarg ;;
   1280 
   1281   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1282   | --syscon | --sysco | --sysc | --sys | --sy)
   1283     ac_prev=sysconfdir ;;
   1284   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1285   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1286     sysconfdir=$ac_optarg ;;
   1287 
   1288   -target | --target | --targe | --targ | --tar | --ta | --t)
   1289     ac_prev=target_alias ;;
   1290   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1291     target_alias=$ac_optarg ;;
   1292 
   1293   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1294     verbose=yes ;;
   1295 
   1296   -version | --version | --versio | --versi | --vers | -V)
   1297     ac_init_version=: ;;
   1298 
   1299   -with-* | --with-*)
   1300     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1301     # Reject names that are not valid shell variable names.
   1302     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1303       as_fn_error $? "invalid package name: $ac_useropt"
   1304     ac_useropt_orig=$ac_useropt
   1305     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1306     case $ac_user_opts in
   1307       *"
   1308 "with_$ac_useropt"
   1309 "*) ;;
   1310       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1311 	 ac_unrecognized_sep=', ';;
   1312     esac
   1313     eval with_$ac_useropt=\$ac_optarg ;;
   1314 
   1315   -without-* | --without-*)
   1316     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1317     # Reject names that are not valid shell variable names.
   1318     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1319       as_fn_error $? "invalid package name: $ac_useropt"
   1320     ac_useropt_orig=$ac_useropt
   1321     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1322     case $ac_user_opts in
   1323       *"
   1324 "with_$ac_useropt"
   1325 "*) ;;
   1326       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1327 	 ac_unrecognized_sep=', ';;
   1328     esac
   1329     eval with_$ac_useropt=no ;;
   1330 
   1331   --x)
   1332     # Obsolete; use --with-x.
   1333     with_x=yes ;;
   1334 
   1335   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1336   | --x-incl | --x-inc | --x-in | --x-i)
   1337     ac_prev=x_includes ;;
   1338   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1339   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1340     x_includes=$ac_optarg ;;
   1341 
   1342   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1343   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1344     ac_prev=x_libraries ;;
   1345   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1346   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1347     x_libraries=$ac_optarg ;;
   1348 
   1349   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1350 Try \`$0 --help' for more information"
   1351     ;;
   1352 
   1353   *=*)
   1354     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1355     # Reject names that are not valid shell variable names.
   1356     case $ac_envvar in #(
   1357       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1358       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1359     esac
   1360     eval $ac_envvar=\$ac_optarg
   1361     export $ac_envvar ;;
   1362 
   1363   *)
   1364     # FIXME: should be removed in autoconf 3.0.
   1365     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1366     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1367       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1368     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1369     ;;
   1370 
   1371   esac
   1372 done
   1373 
   1374 if test -n "$ac_prev"; then
   1375   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1376   as_fn_error $? "missing argument to $ac_option"
   1377 fi
   1378 
   1379 if test -n "$ac_unrecognized_opts"; then
   1380   case $enable_option_checking in
   1381     no) ;;
   1382     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1383     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1384   esac
   1385 fi
   1386 
   1387 # Check all directory arguments for consistency.
   1388 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1389 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1390 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1391 		libdir localedir mandir
   1392 do
   1393   eval ac_val=\$$ac_var
   1394   # Remove trailing slashes.
   1395   case $ac_val in
   1396     */ )
   1397       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1398       eval $ac_var=\$ac_val;;
   1399   esac
   1400   # Be sure to have absolute directory names.
   1401   case $ac_val in
   1402     [\\/$]* | ?:[\\/]* )  continue;;
   1403     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1404   esac
   1405   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1406 done
   1407 
   1408 # There might be people who depend on the old broken behavior: `$host'
   1409 # used to hold the argument of --host etc.
   1410 # FIXME: To remove some day.
   1411 build=$build_alias
   1412 host=$host_alias
   1413 target=$target_alias
   1414 
   1415 # FIXME: To remove some day.
   1416 if test "x$host_alias" != x; then
   1417   if test "x$build_alias" = x; then
   1418     cross_compiling=maybe
   1419   elif test "x$build_alias" != "x$host_alias"; then
   1420     cross_compiling=yes
   1421   fi
   1422 fi
   1423 
   1424 ac_tool_prefix=
   1425 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1426 
   1427 test "$silent" = yes && exec 6>/dev/null
   1428 
   1429 
   1430 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1431 ac_ls_di=`ls -di .` &&
   1432 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1433   as_fn_error $? "working directory cannot be determined"
   1434 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1435   as_fn_error $? "pwd does not report name of working directory"
   1436 
   1437 
   1438 # Find the source files, if location was not specified.
   1439 if test -z "$srcdir"; then
   1440   ac_srcdir_defaulted=yes
   1441   # Try the directory containing this script, then the parent directory.
   1442   ac_confdir=`$as_dirname -- "$as_myself" ||
   1443 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1444 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1445 	 X"$as_myself" : 'X\(//\)$' \| \
   1446 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1447 $as_echo X"$as_myself" |
   1448     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1449 	    s//\1/
   1450 	    q
   1451 	  }
   1452 	  /^X\(\/\/\)[^/].*/{
   1453 	    s//\1/
   1454 	    q
   1455 	  }
   1456 	  /^X\(\/\/\)$/{
   1457 	    s//\1/
   1458 	    q
   1459 	  }
   1460 	  /^X\(\/\).*/{
   1461 	    s//\1/
   1462 	    q
   1463 	  }
   1464 	  s/.*/./; q'`
   1465   srcdir=$ac_confdir
   1466   if test ! -r "$srcdir/$ac_unique_file"; then
   1467     srcdir=..
   1468   fi
   1469 else
   1470   ac_srcdir_defaulted=no
   1471 fi
   1472 if test ! -r "$srcdir/$ac_unique_file"; then
   1473   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1474   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1475 fi
   1476 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1477 ac_abs_confdir=`(
   1478 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1479 	pwd)`
   1480 # When building in place, set srcdir=.
   1481 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1482   srcdir=.
   1483 fi
   1484 # Remove unnecessary trailing slashes from srcdir.
   1485 # Double slashes in file names in object file debugging info
   1486 # mess up M-x gdb in Emacs.
   1487 case $srcdir in
   1488 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1489 esac
   1490 for ac_var in $ac_precious_vars; do
   1491   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1492   eval ac_env_${ac_var}_value=\$${ac_var}
   1493   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1494   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1495 done
   1496 
   1497 #
   1498 # Report the --help message.
   1499 #
   1500 if test "$ac_init_help" = "long"; then
   1501   # Omit some internal or obsolete options to make the list less imposing.
   1502   # This message is too long to be a string in the A/UX 3.1 sh.
   1503   cat <<_ACEOF
   1504 \`configure' configures BIND 9.13 to adapt to many kinds of systems.
   1505 
   1506 Usage: $0 [OPTION]... [VAR=VALUE]...
   1507 
   1508 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1509 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1510 
   1511 Defaults for the options are specified in brackets.
   1512 
   1513 Configuration:
   1514   -h, --help              display this help and exit
   1515       --help=short        display options specific to this package
   1516       --help=recursive    display the short help of all the included packages
   1517   -V, --version           display version information and exit
   1518   -q, --quiet, --silent   do not print \`checking ...' messages
   1519       --cache-file=FILE   cache test results in FILE [disabled]
   1520   -C, --config-cache      alias for \`--cache-file=config.cache'
   1521   -n, --no-create         do not create output files
   1522       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1523 
   1524 Installation directories:
   1525   --prefix=PREFIX         install architecture-independent files in PREFIX
   1526                           [$ac_default_prefix]
   1527   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1528                           [PREFIX]
   1529 
   1530 By default, \`make install' will install all the files in
   1531 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1532 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1533 for instance \`--prefix=\$HOME'.
   1534 
   1535 For better control, use the options below.
   1536 
   1537 Fine tuning of the installation directories:
   1538   --bindir=DIR            user executables [EPREFIX/bin]
   1539   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1540   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1541   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1542   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1543   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1544   --libdir=DIR            object code libraries [EPREFIX/lib]
   1545   --includedir=DIR        C header files [PREFIX/include]
   1546   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1547   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1548   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1549   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1550   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1551   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1552   --docdir=DIR            documentation root [DATAROOTDIR/doc/bind]
   1553   --htmldir=DIR           html documentation [DOCDIR]
   1554   --dvidir=DIR            dvi documentation [DOCDIR]
   1555   --pdfdir=DIR            pdf documentation [DOCDIR]
   1556   --psdir=DIR             ps documentation [DOCDIR]
   1557 _ACEOF
   1558 
   1559   cat <<\_ACEOF
   1560 
   1561 System types:
   1562   --build=BUILD     configure for building on BUILD [guessed]
   1563   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1564 _ACEOF
   1565 fi
   1566 
   1567 if test -n "$ac_init_help"; then
   1568   case $ac_init_help in
   1569      short | recursive ) echo "Configuration of BIND 9.13:";;
   1570    esac
   1571   cat <<\_ACEOF
   1572 
   1573 Optional Features:
   1574   --disable-option-checking  ignore unrecognized --enable/--with options
   1575   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1576   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1577   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1578   --enable-static[=PKGS]  build static libraries [default=yes]
   1579   --enable-fast-install[=PKGS]
   1580                           optimize for fast installation [default=yes]
   1581   --disable-libtool-lock  avoid locking (might break parallel builds)
   1582   --enable-libbind        deprecated
   1583   --enable-buffer-useinline
   1584                           define ISC_BUFFER_USEINLINE when compiling
   1585                           [default=yes]
   1586   --enable-warn-shadow    turn on -Wshadow when compiling
   1587   --enable-warn-error     turn on -Werror when compiling
   1588   --enable-developer      enable developer build settings
   1589   --enable-fuzzing=<afl|libfuzzer>
   1590                           Enable fuzzing using American Fuzzy Lop or libFuzzer
   1591                           (default=no)
   1592   --enable-kqueue         use BSD kqueue when available [default=yes]
   1593   --enable-epoll          use Linux epoll when available [default=auto]
   1594   --enable-devpoll        use /dev/poll when available [default=yes]
   1595   --enable-fips-mode      enable FIPS mode in OpenSSL library [default=no]
   1596   --enable-native-pkcs11  use native PKCS11 for public-key crypto [default=no]
   1597   --enable-largefile      64-bit file support
   1598   --enable-backtrace      log stack backtrace on abort [default=yes]
   1599   --enable-symtable       use internal symbol table for backtrace
   1600                           [all|minimal(default)|none]
   1601   --disable-tcp-fastopen  disable TCP Fast Open support [default=yes]
   1602   --disable-isc-spnego    use SPNEGO from GSSAPI library
   1603   --disable-chroot        disable chroot
   1604   --disable-linux-caps    disable Linux capabilities
   1605   --enable-fixed-rrset    enable fixed rrset ordering [default=no]
   1606   --enable-dnstap         enable dnstap support (requires fstrm, protobuf-c)
   1607   --enable-querytrace     enable very verbose query trace logging [default=no]
   1608   --enable-auto-validation
   1609                           turn on DNSSEC validation by default, using the IANA
   1610                           root key [default=yes]
   1611   --enable-dnsrps-dl      DNS Response Policy Service delayed link
   1612                           [default=$librpz_dl]
   1613   --enable-dnsrps         enable DNS Response Policy Service API
   1614   --enable-full-report    report values of all configure options
   1615 
   1616 Optional Packages:
   1617   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1618   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1619   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1620                           both]
   1621   --with-aix-soname=aix|svr4|both
   1622                           shared library versioning (aka "SONAME") variant to
   1623                           provide on AIX, [default=aix].
   1624   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1625   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1626                           compiler's sysroot if not specified).
   1627   --with-python=PATH      specify path to Python interpreter
   1628   --with-python-install-dir=PATH
   1629                           installation directory for Python modules
   1630   --with-geoip=PATH       Build with GeoIP support (yes|no|path)
   1631   --with-locktype=ARG     Specify mutex lock type (adaptive or standard)
   1632   --with-libtool          use GNU libtool
   1633   --with-openssl=DIR      root of the OpenSSL directory
   1634   --with-cc-alg=ALG       choose the algorithm for Client Cookie
   1635                           [aes|sha1|sha256] (default is aes)
   1636   --with-pkcs11=PATH      Build with PKCS11 support [no|path] (PATH is for the
   1637                           PKCS11 provider)
   1638   --with-gssapi=PATH|/path/krb5-config
   1639                           Specify path for system-supplied GSSAPI
   1640                           [default=yes]
   1641   --with-lmdb=PATH        build with LMDB library [yes|no|path]
   1642   --with-libxml2=PATH     build with libxml2 library [yes|no|path]
   1643   --with-libjson=PATH     build with libjson0 library [yes|no|path]
   1644   --with-zlib=PATH        build with zlib for HTTP compression [default=yes]
   1645   --with-purify=PATH      use Rational purify
   1646   --with-gperftools-profiler
   1647                           use gperftools CPU profiler
   1648   --with-readline=LIBSPEC specify readline library [default auto]
   1649   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
   1650   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
   1651   --with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets
   1652   --with-libidn2=PATH     enable IDN support using GNU libidn2
   1653                           [yes|no(default)|path]
   1654   --with-cmocka=detect    enable CMocka based tests (default is detect)
   1655   --with-tuning=ARG       Specify server tuning (large or default)
   1656   --with-dlopen=ARG       support dynamically loadable DLZ and DYNDB drivers
   1657   --with-dnsrps-libname   DNSRPS provider library name (librpz.so)
   1658   --with-dnsrps-dir       path to DNSRPS provider library
   1659   --with-dlz-postgres=PATH
   1660                           Build with Postgres DLZ driver [yes|no|path].
   1661                           (Required to use Postgres with DLZ)
   1662   --with-dlz-mysql=PATH   Build with MySQL DLZ driver [yes|no|path]. (Required
   1663                           to use MySQL with DLZ)
   1664   --with-dlz-bdb=PATH     Build with Berkeley DB DLZ driver [yes|no|path].
   1665                           (Required to use Berkeley DB with DLZ)
   1666   --with-dlz-filesystem=ARG
   1667                           Build with filesystem DLZ driver [yes|no]. (Required
   1668                           to use file system driver with DLZ)
   1669   --with-dlz-ldap=PATH    Build with LDAP DLZ driver [yes|no|path]. (Required
   1670                           to use LDAP with DLZ)
   1671   --with-dlz-odbc=PATH    Build with ODBC DLZ driver [yes|no|path]. (Required
   1672                           to use ODBC with DLZ)
   1673   --with-dlz-stub=ARG     Build with stub DLZ driver [yes|no]. (Required to
   1674                           use stub driver with DLZ)
   1675   --with-make-clean       run "make clean" at end of configure [yes|no]
   1676 
   1677 Some influential environment variables:
   1678   CC          C compiler command
   1679   CFLAGS      C compiler flags
   1680   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1681               nonstandard directory <lib dir>
   1682   LIBS        libraries to pass to the linker, e.g. -l<library>
   1683   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1684               you have headers in a nonstandard directory <include dir>
   1685   CPP         C preprocessor
   1686   LT_SYS_LIBRARY_PATH
   1687               User-defined run-time library search path.
   1688   PKG_CONFIG  path to pkg-config utility
   1689   PKG_CONFIG_PATH
   1690               directories to add to pkg-config's search path
   1691   PKG_CONFIG_LIBDIR
   1692               path overriding pkg-config's built-in search path
   1693   OPENSSL_CFLAGS
   1694               C compiler flags for OPENSSL, overriding pkg-config
   1695   OPENSSL_LIBS
   1696               linker flags for OPENSSL, overriding pkg-config
   1697   LIBIDN2_CFLAGS
   1698               C compiler flags for LIBIDN2, overriding pkg-config
   1699   LIBIDN2_LIBS
   1700               linker flags for LIBIDN2, overriding pkg-config
   1701   CMOCKA_CFLAGS
   1702               C compiler flags for CMOCKA, overriding pkg-config
   1703   CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
   1704   KYUA        path to kyua execution engine
   1705 
   1706 Use these variables to override the choices made by `configure' or to help
   1707 it to find libraries and programs with nonstandard names/locations.
   1708 
   1709 Report bugs to <info (at] isc.org>.
   1710 BIND home page: <https://www.isc.org/downloads/BIND/>.
   1711 _ACEOF
   1712 ac_status=$?
   1713 fi
   1714 
   1715 if test "$ac_init_help" = "recursive"; then
   1716   # If there are subdirs, report their specific --help.
   1717   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1718     test -d "$ac_dir" ||
   1719       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1720       continue
   1721     ac_builddir=.
   1722 
   1723 case "$ac_dir" in
   1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1725 *)
   1726   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1727   # A ".." for each directory in $ac_dir_suffix.
   1728   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1729   case $ac_top_builddir_sub in
   1730   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1731   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1732   esac ;;
   1733 esac
   1734 ac_abs_top_builddir=$ac_pwd
   1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1736 # for backward compatibility:
   1737 ac_top_builddir=$ac_top_build_prefix
   1738 
   1739 case $srcdir in
   1740   .)  # We are building in place.
   1741     ac_srcdir=.
   1742     ac_top_srcdir=$ac_top_builddir_sub
   1743     ac_abs_top_srcdir=$ac_pwd ;;
   1744   [\\/]* | ?:[\\/]* )  # Absolute name.
   1745     ac_srcdir=$srcdir$ac_dir_suffix;
   1746     ac_top_srcdir=$srcdir
   1747     ac_abs_top_srcdir=$srcdir ;;
   1748   *) # Relative name.
   1749     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1750     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1751     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1752 esac
   1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1754 
   1755     cd "$ac_dir" || { ac_status=$?; continue; }
   1756     # Check for guested configure.
   1757     if test -f "$ac_srcdir/configure.gnu"; then
   1758       echo &&
   1759       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1760     elif test -f "$ac_srcdir/configure"; then
   1761       echo &&
   1762       $SHELL "$ac_srcdir/configure" --help=recursive
   1763     else
   1764       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1765     fi || ac_status=$?
   1766     cd "$ac_pwd" || { ac_status=$?; break; }
   1767   done
   1768 fi
   1769 
   1770 test -n "$ac_init_help" && exit $ac_status
   1771 if $ac_init_version; then
   1772   cat <<\_ACEOF
   1773 BIND configure 9.13
   1774 generated by GNU Autoconf 2.69
   1775 
   1776 Copyright (C) 2012 Free Software Foundation, Inc.
   1777 This configure script is free software; the Free Software Foundation
   1778 gives unlimited permission to copy, distribute and modify it.
   1779 _ACEOF
   1780   exit
   1781 fi
   1782 
   1783 ## ------------------------ ##
   1784 ## Autoconf initialization. ##
   1785 ## ------------------------ ##
   1786 
   1787 # ac_fn_c_try_compile LINENO
   1788 # --------------------------
   1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1790 ac_fn_c_try_compile ()
   1791 {
   1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1793   rm -f conftest.$ac_objext
   1794   if { { ac_try="$ac_compile"
   1795 case "(($ac_try" in
   1796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1797   *) ac_try_echo=$ac_try;;
   1798 esac
   1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1800 $as_echo "$ac_try_echo"; } >&5
   1801   (eval "$ac_compile") 2>conftest.err
   1802   ac_status=$?
   1803   if test -s conftest.err; then
   1804     grep -v '^ *+' conftest.err >conftest.er1
   1805     cat conftest.er1 >&5
   1806     mv -f conftest.er1 conftest.err
   1807   fi
   1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1809   test $ac_status = 0; } && {
   1810 	 test -z "$ac_c_werror_flag" ||
   1811 	 test ! -s conftest.err
   1812        } && test -s conftest.$ac_objext; then :
   1813   ac_retval=0
   1814 else
   1815   $as_echo "$as_me: failed program was:" >&5
   1816 sed 's/^/| /' conftest.$ac_ext >&5
   1817 
   1818 	ac_retval=1
   1819 fi
   1820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1821   as_fn_set_status $ac_retval
   1822 
   1823 } # ac_fn_c_try_compile
   1824 
   1825 # ac_fn_c_try_cpp LINENO
   1826 # ----------------------
   1827 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1828 ac_fn_c_try_cpp ()
   1829 {
   1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1831   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1832 case "(($ac_try" in
   1833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1834   *) ac_try_echo=$ac_try;;
   1835 esac
   1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1837 $as_echo "$ac_try_echo"; } >&5
   1838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1839   ac_status=$?
   1840   if test -s conftest.err; then
   1841     grep -v '^ *+' conftest.err >conftest.er1
   1842     cat conftest.er1 >&5
   1843     mv -f conftest.er1 conftest.err
   1844   fi
   1845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1846   test $ac_status = 0; } > conftest.i && {
   1847 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1848 	 test ! -s conftest.err
   1849        }; then :
   1850   ac_retval=0
   1851 else
   1852   $as_echo "$as_me: failed program was:" >&5
   1853 sed 's/^/| /' conftest.$ac_ext >&5
   1854 
   1855     ac_retval=1
   1856 fi
   1857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1858   as_fn_set_status $ac_retval
   1859 
   1860 } # ac_fn_c_try_cpp
   1861 
   1862 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1863 # -------------------------------------------------------
   1864 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1865 # the include files in INCLUDES and setting the cache variable VAR
   1866 # accordingly.
   1867 ac_fn_c_check_header_mongrel ()
   1868 {
   1869   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1870   if eval \${$3+:} false; then :
   1871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1872 $as_echo_n "checking for $2... " >&6; }
   1873 if eval \${$3+:} false; then :
   1874   $as_echo_n "(cached) " >&6
   1875 fi
   1876 eval ac_res=\$$3
   1877 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1878 $as_echo "$ac_res" >&6; }
   1879 else
   1880   # Is the header compilable?
   1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1882 $as_echo_n "checking $2 usability... " >&6; }
   1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1884 /* end confdefs.h.  */
   1885 $4
   1886 #include <$2>
   1887 _ACEOF
   1888 if ac_fn_c_try_compile "$LINENO"; then :
   1889   ac_header_compiler=yes
   1890 else
   1891   ac_header_compiler=no
   1892 fi
   1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1895 $as_echo "$ac_header_compiler" >&6; }
   1896 
   1897 # Is the header present?
   1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1899 $as_echo_n "checking $2 presence... " >&6; }
   1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1901 /* end confdefs.h.  */
   1902 #include <$2>
   1903 _ACEOF
   1904 if ac_fn_c_try_cpp "$LINENO"; then :
   1905   ac_header_preproc=yes
   1906 else
   1907   ac_header_preproc=no
   1908 fi
   1909 rm -f conftest.err conftest.i conftest.$ac_ext
   1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1911 $as_echo "$ac_header_preproc" >&6; }
   1912 
   1913 # So?  What about this header?
   1914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1915   yes:no: )
   1916     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1917 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1918     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1919 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1920     ;;
   1921   no:yes:* )
   1922     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1923 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1924     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1925 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1926     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1927 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1928     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1929 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1930     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1931 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1932 ( $as_echo "## --------------------------- ##
   1933 ## Report this to info (at] isc.org ##
   1934 ## --------------------------- ##"
   1935      ) | sed "s/^/$as_me: WARNING:     /" >&2
   1936     ;;
   1937 esac
   1938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1939 $as_echo_n "checking for $2... " >&6; }
   1940 if eval \${$3+:} false; then :
   1941   $as_echo_n "(cached) " >&6
   1942 else
   1943   eval "$3=\$ac_header_compiler"
   1944 fi
   1945 eval ac_res=\$$3
   1946 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1947 $as_echo "$ac_res" >&6; }
   1948 fi
   1949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1950 
   1951 } # ac_fn_c_check_header_mongrel
   1952 
   1953 # ac_fn_c_try_run LINENO
   1954 # ----------------------
   1955 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1956 # that executables *can* be run.
   1957 ac_fn_c_try_run ()
   1958 {
   1959   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1960   if { { ac_try="$ac_link"
   1961 case "(($ac_try" in
   1962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1963   *) ac_try_echo=$ac_try;;
   1964 esac
   1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1966 $as_echo "$ac_try_echo"; } >&5
   1967   (eval "$ac_link") 2>&5
   1968   ac_status=$?
   1969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1970   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1971   { { case "(($ac_try" in
   1972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1973   *) ac_try_echo=$ac_try;;
   1974 esac
   1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1976 $as_echo "$ac_try_echo"; } >&5
   1977   (eval "$ac_try") 2>&5
   1978   ac_status=$?
   1979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1980   test $ac_status = 0; }; }; then :
   1981   ac_retval=0
   1982 else
   1983   $as_echo "$as_me: program exited with status $ac_status" >&5
   1984        $as_echo "$as_me: failed program was:" >&5
   1985 sed 's/^/| /' conftest.$ac_ext >&5
   1986 
   1987        ac_retval=$ac_status
   1988 fi
   1989   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1990   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1991   as_fn_set_status $ac_retval
   1992 
   1993 } # ac_fn_c_try_run
   1994 
   1995 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1996 # -------------------------------------------------------
   1997 # Tests whether HEADER exists and can be compiled using the include files in
   1998 # INCLUDES, setting the cache variable VAR accordingly.
   1999 ac_fn_c_check_header_compile ()
   2000 {
   2001   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2003 $as_echo_n "checking for $2... " >&6; }
   2004 if eval \${$3+:} false; then :
   2005   $as_echo_n "(cached) " >&6
   2006 else
   2007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2008 /* end confdefs.h.  */
   2009 $4
   2010 #include <$2>
   2011 _ACEOF
   2012 if ac_fn_c_try_compile "$LINENO"; then :
   2013   eval "$3=yes"
   2014 else
   2015   eval "$3=no"
   2016 fi
   2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2018 fi
   2019 eval ac_res=\$$3
   2020 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2021 $as_echo "$ac_res" >&6; }
   2022   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2023 
   2024 } # ac_fn_c_check_header_compile
   2025 
   2026 # ac_fn_c_try_link LINENO
   2027 # -----------------------
   2028 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2029 ac_fn_c_try_link ()
   2030 {
   2031   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2032   rm -f conftest.$ac_objext conftest$ac_exeext
   2033   if { { ac_try="$ac_link"
   2034 case "(($ac_try" in
   2035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2036   *) ac_try_echo=$ac_try;;
   2037 esac
   2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2039 $as_echo "$ac_try_echo"; } >&5
   2040   (eval "$ac_link") 2>conftest.err
   2041   ac_status=$?
   2042   if test -s conftest.err; then
   2043     grep -v '^ *+' conftest.err >conftest.er1
   2044     cat conftest.er1 >&5
   2045     mv -f conftest.er1 conftest.err
   2046   fi
   2047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2048   test $ac_status = 0; } && {
   2049 	 test -z "$ac_c_werror_flag" ||
   2050 	 test ! -s conftest.err
   2051        } && test -s conftest$ac_exeext && {
   2052 	 test "$cross_compiling" = yes ||
   2053 	 test -x conftest$ac_exeext
   2054        }; then :
   2055   ac_retval=0
   2056 else
   2057   $as_echo "$as_me: failed program was:" >&5
   2058 sed 's/^/| /' conftest.$ac_ext >&5
   2059 
   2060 	ac_retval=1
   2061 fi
   2062   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2063   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2064   # interfere with the next link command; also delete a directory that is
   2065   # left behind by Apple's compiler.  We do this before executing the actions.
   2066   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2067   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2068   as_fn_set_status $ac_retval
   2069 
   2070 } # ac_fn_c_try_link
   2071 
   2072 # ac_fn_c_check_func LINENO FUNC VAR
   2073 # ----------------------------------
   2074 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2075 ac_fn_c_check_func ()
   2076 {
   2077   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2079 $as_echo_n "checking for $2... " >&6; }
   2080 if eval \${$3+:} false; then :
   2081   $as_echo_n "(cached) " >&6
   2082 else
   2083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2084 /* end confdefs.h.  */
   2085 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2087 #define $2 innocuous_$2
   2088 
   2089 /* System header to define __stub macros and hopefully few prototypes,
   2090     which can conflict with char $2 (); below.
   2091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2092     <limits.h> exists even on freestanding compilers.  */
   2093 
   2094 #ifdef __STDC__
   2095 # include <limits.h>
   2096 #else
   2097 # include <assert.h>
   2098 #endif
   2099 
   2100 #undef $2
   2101 
   2102 /* Override any GCC internal prototype to avoid an error.
   2103    Use char because int might match the return type of a GCC
   2104    builtin and then its argument prototype would still apply.  */
   2105 #ifdef __cplusplus
   2106 extern "C"
   2107 #endif
   2108 char $2 ();
   2109 /* The GNU C library defines this for functions which it implements
   2110     to always fail with ENOSYS.  Some functions are actually named
   2111     something starting with __ and the normal name is an alias.  */
   2112 #if defined __stub_$2 || defined __stub___$2
   2113 choke me
   2114 #endif
   2115 
   2116 int
   2117 main ()
   2118 {
   2119 return $2 ();
   2120   ;
   2121   return 0;
   2122 }
   2123 _ACEOF
   2124 if ac_fn_c_try_link "$LINENO"; then :
   2125   eval "$3=yes"
   2126 else
   2127   eval "$3=no"
   2128 fi
   2129 rm -f core conftest.err conftest.$ac_objext \
   2130     conftest$ac_exeext conftest.$ac_ext
   2131 fi
   2132 eval ac_res=\$$3
   2133 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2134 $as_echo "$ac_res" >&6; }
   2135   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2136 
   2137 } # ac_fn_c_check_func
   2138 
   2139 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2140 # -------------------------------------------
   2141 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2142 # variable VAR accordingly.
   2143 ac_fn_c_check_type ()
   2144 {
   2145   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2147 $as_echo_n "checking for $2... " >&6; }
   2148 if eval \${$3+:} false; then :
   2149   $as_echo_n "(cached) " >&6
   2150 else
   2151   eval "$3=no"
   2152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2153 /* end confdefs.h.  */
   2154 $4
   2155 int
   2156 main ()
   2157 {
   2158 if (sizeof ($2))
   2159 	 return 0;
   2160   ;
   2161   return 0;
   2162 }
   2163 _ACEOF
   2164 if ac_fn_c_try_compile "$LINENO"; then :
   2165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2166 /* end confdefs.h.  */
   2167 $4
   2168 int
   2169 main ()
   2170 {
   2171 if (sizeof (($2)))
   2172 	    return 0;
   2173   ;
   2174   return 0;
   2175 }
   2176 _ACEOF
   2177 if ac_fn_c_try_compile "$LINENO"; then :
   2178 
   2179 else
   2180   eval "$3=yes"
   2181 fi
   2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2183 fi
   2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2185 fi
   2186 eval ac_res=\$$3
   2187 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2188 $as_echo "$ac_res" >&6; }
   2189   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2190 
   2191 } # ac_fn_c_check_type
   2192 cat >config.log <<_ACEOF
   2193 This file contains any messages produced by compilers while
   2194 running configure, to aid debugging if configure makes a mistake.
   2195 
   2196 It was created by BIND $as_me 9.13, which was
   2197 generated by GNU Autoconf 2.69.  Invocation command line was
   2198 
   2199   $ $0 $@
   2200 
   2201 _ACEOF
   2202 exec 5>>config.log
   2203 {
   2204 cat <<_ASUNAME
   2205 ## --------- ##
   2206 ## Platform. ##
   2207 ## --------- ##
   2208 
   2209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2214 
   2215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2216 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2217 
   2218 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2219 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2221 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2222 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2223 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2224 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2225 
   2226 _ASUNAME
   2227 
   2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2229 for as_dir in $PATH
   2230 do
   2231   IFS=$as_save_IFS
   2232   test -z "$as_dir" && as_dir=.
   2233     $as_echo "PATH: $as_dir"
   2234   done
   2235 IFS=$as_save_IFS
   2236 
   2237 } >&5
   2238 
   2239 cat >&5 <<_ACEOF
   2240 
   2241 
   2242 ## ----------- ##
   2243 ## Core tests. ##
   2244 ## ----------- ##
   2245 
   2246 _ACEOF
   2247 
   2248 
   2249 # Keep a trace of the command line.
   2250 # Strip out --no-create and --no-recursion so they do not pile up.
   2251 # Strip out --silent because we don't want to record it for future runs.
   2252 # Also quote any args containing shell meta-characters.
   2253 # Make two passes to allow for proper duplicate-argument suppression.
   2254 ac_configure_args=
   2255 ac_configure_args0=
   2256 ac_configure_args1=
   2257 ac_must_keep_next=false
   2258 for ac_pass in 1 2
   2259 do
   2260   for ac_arg
   2261   do
   2262     case $ac_arg in
   2263     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2264     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2265     | -silent | --silent | --silen | --sile | --sil)
   2266       continue ;;
   2267     *\'*)
   2268       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2269     esac
   2270     case $ac_pass in
   2271     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2272     2)
   2273       as_fn_append ac_configure_args1 " '$ac_arg'"
   2274       if test $ac_must_keep_next = true; then
   2275 	ac_must_keep_next=false # Got value, back to normal.
   2276       else
   2277 	case $ac_arg in
   2278 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2279 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2280 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2281 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2282 	    case "$ac_configure_args0 " in
   2283 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2284 	    esac
   2285 	    ;;
   2286 	  -* ) ac_must_keep_next=true ;;
   2287 	esac
   2288       fi
   2289       as_fn_append ac_configure_args " '$ac_arg'"
   2290       ;;
   2291     esac
   2292   done
   2293 done
   2294 { ac_configure_args0=; unset ac_configure_args0;}
   2295 { ac_configure_args1=; unset ac_configure_args1;}
   2296 
   2297 # When interrupted or exit'd, cleanup temporary files, and complete
   2298 # config.log.  We remove comments because anyway the quotes in there
   2299 # would cause problems or look ugly.
   2300 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2301 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2302 trap 'exit_status=$?
   2303   # Save into config.log some information that might help in debugging.
   2304   {
   2305     echo
   2306 
   2307     $as_echo "## ---------------- ##
   2308 ## Cache variables. ##
   2309 ## ---------------- ##"
   2310     echo
   2311     # The following way of writing the cache mishandles newlines in values,
   2312 (
   2313   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2314     eval ac_val=\$$ac_var
   2315     case $ac_val in #(
   2316     *${as_nl}*)
   2317       case $ac_var in #(
   2318       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2319 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2320       esac
   2321       case $ac_var in #(
   2322       _ | IFS | as_nl) ;; #(
   2323       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2324       *) { eval $ac_var=; unset $ac_var;} ;;
   2325       esac ;;
   2326     esac
   2327   done
   2328   (set) 2>&1 |
   2329     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2330     *${as_nl}ac_space=\ *)
   2331       sed -n \
   2332 	"s/'\''/'\''\\\\'\'''\''/g;
   2333 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2334       ;; #(
   2335     *)
   2336       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2337       ;;
   2338     esac |
   2339     sort
   2340 )
   2341     echo
   2342 
   2343     $as_echo "## ----------------- ##
   2344 ## Output variables. ##
   2345 ## ----------------- ##"
   2346     echo
   2347     for ac_var in $ac_subst_vars
   2348     do
   2349       eval ac_val=\$$ac_var
   2350       case $ac_val in
   2351       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2352       esac
   2353       $as_echo "$ac_var='\''$ac_val'\''"
   2354     done | sort
   2355     echo
   2356 
   2357     if test -n "$ac_subst_files"; then
   2358       $as_echo "## ------------------- ##
   2359 ## File substitutions. ##
   2360 ## ------------------- ##"
   2361       echo
   2362       for ac_var in $ac_subst_files
   2363       do
   2364 	eval ac_val=\$$ac_var
   2365 	case $ac_val in
   2366 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2367 	esac
   2368 	$as_echo "$ac_var='\''$ac_val'\''"
   2369       done | sort
   2370       echo
   2371     fi
   2372 
   2373     if test -s confdefs.h; then
   2374       $as_echo "## ----------- ##
   2375 ## confdefs.h. ##
   2376 ## ----------- ##"
   2377       echo
   2378       cat confdefs.h
   2379       echo
   2380     fi
   2381     test "$ac_signal" != 0 &&
   2382       $as_echo "$as_me: caught signal $ac_signal"
   2383     $as_echo "$as_me: exit $exit_status"
   2384   } >&5
   2385   rm -f core *.core core.conftest.* &&
   2386     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2387     exit $exit_status
   2388 ' 0
   2389 for ac_signal in 1 2 13 15; do
   2390   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2391 done
   2392 ac_signal=0
   2393 
   2394 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2395 rm -f -r conftest* confdefs.h
   2396 
   2397 $as_echo "/* confdefs.h */" > confdefs.h
   2398 
   2399 # Predefined preprocessor variables.
   2400 
   2401 cat >>confdefs.h <<_ACEOF
   2402 #define PACKAGE_NAME "$PACKAGE_NAME"
   2403 _ACEOF
   2404 
   2405 cat >>confdefs.h <<_ACEOF
   2406 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2407 _ACEOF
   2408 
   2409 cat >>confdefs.h <<_ACEOF
   2410 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2411 _ACEOF
   2412 
   2413 cat >>confdefs.h <<_ACEOF
   2414 #define PACKAGE_STRING "$PACKAGE_STRING"
   2415 _ACEOF
   2416 
   2417 cat >>confdefs.h <<_ACEOF
   2418 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2419 _ACEOF
   2420 
   2421 cat >>confdefs.h <<_ACEOF
   2422 #define PACKAGE_URL "$PACKAGE_URL"
   2423 _ACEOF
   2424 
   2425 
   2426 # Let the site file select an alternate cache file if it wants to.
   2427 # Prefer an explicitly selected file to automatically selected ones.
   2428 ac_site_file1=NONE
   2429 ac_site_file2=NONE
   2430 if test -n "$CONFIG_SITE"; then
   2431   # We do not want a PATH search for config.site.
   2432   case $CONFIG_SITE in #((
   2433     -*)  ac_site_file1=./$CONFIG_SITE;;
   2434     */*) ac_site_file1=$CONFIG_SITE;;
   2435     *)   ac_site_file1=./$CONFIG_SITE;;
   2436   esac
   2437 elif test "x$prefix" != xNONE; then
   2438   ac_site_file1=$prefix/share/config.site
   2439   ac_site_file2=$prefix/etc/config.site
   2440 else
   2441   ac_site_file1=$ac_default_prefix/share/config.site
   2442   ac_site_file2=$ac_default_prefix/etc/config.site
   2443 fi
   2444 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2445 do
   2446   test "x$ac_site_file" = xNONE && continue
   2447   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2448     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2449 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2450     sed 's/^/| /' "$ac_site_file" >&5
   2451     . "$ac_site_file" \
   2452       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2454 as_fn_error $? "failed to load site script $ac_site_file
   2455 See \`config.log' for more details" "$LINENO" 5; }
   2456   fi
   2457 done
   2458 
   2459 if test -r "$cache_file"; then
   2460   # Some versions of bash will fail to source /dev/null (special files
   2461   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2462   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2463     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2464 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2465     case $cache_file in
   2466       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2467       *)                      . "./$cache_file";;
   2468     esac
   2469   fi
   2470 else
   2471   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2472 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2473   >$cache_file
   2474 fi
   2475 
   2476 # Check that the precious variables saved in the cache have kept the same
   2477 # value.
   2478 ac_cache_corrupted=false
   2479 for ac_var in $ac_precious_vars; do
   2480   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2481   eval ac_new_set=\$ac_env_${ac_var}_set
   2482   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2483   eval ac_new_val=\$ac_env_${ac_var}_value
   2484   case $ac_old_set,$ac_new_set in
   2485     set,)
   2486       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2487 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2488       ac_cache_corrupted=: ;;
   2489     ,set)
   2490       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2491 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2492       ac_cache_corrupted=: ;;
   2493     ,);;
   2494     *)
   2495       if test "x$ac_old_val" != "x$ac_new_val"; then
   2496 	# differences in whitespace do not lead to failure.
   2497 	ac_old_val_w=`echo x $ac_old_val`
   2498 	ac_new_val_w=`echo x $ac_new_val`
   2499 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2500 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2501 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2502 	  ac_cache_corrupted=:
   2503 	else
   2504 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2505 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2506 	  eval $ac_var=\$ac_old_val
   2507 	fi
   2508 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2509 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2510 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2511 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2512       fi;;
   2513   esac
   2514   # Pass precious variables to config.status.
   2515   if test "$ac_new_set" = set; then
   2516     case $ac_new_val in
   2517     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2518     *) ac_arg=$ac_var=$ac_new_val ;;
   2519     esac
   2520     case " $ac_configure_args " in
   2521       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2522       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2523     esac
   2524   fi
   2525 done
   2526 if $ac_cache_corrupted; then
   2527   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2529   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2530 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2531   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2532 fi
   2533 ## -------------------- ##
   2534 ## Main body of script. ##
   2535 ## -------------------- ##
   2536 
   2537 ac_ext=c
   2538 ac_cpp='$CPP $CPPFLAGS'
   2539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2542 
   2543 
   2544 
   2545 
   2546 ac_config_headers="$ac_config_headers config.h"
   2547 
   2548 
   2549 
   2550 ac_aux_dir=
   2551 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2552   if test -f "$ac_dir/install-sh"; then
   2553     ac_aux_dir=$ac_dir
   2554     ac_install_sh="$ac_aux_dir/install-sh -c"
   2555     break
   2556   elif test -f "$ac_dir/install.sh"; then
   2557     ac_aux_dir=$ac_dir
   2558     ac_install_sh="$ac_aux_dir/install.sh -c"
   2559     break
   2560   elif test -f "$ac_dir/shtool"; then
   2561     ac_aux_dir=$ac_dir
   2562     ac_install_sh="$ac_aux_dir/shtool install -c"
   2563     break
   2564   fi
   2565 done
   2566 if test -z "$ac_aux_dir"; then
   2567   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2568 fi
   2569 
   2570 # These three variables are undocumented and unsupported,
   2571 # and are intended to be withdrawn in a future Autoconf release.
   2572 # They can cause serious problems if a builder's source tree is in a directory
   2573 # whose full name contains unusual characters.
   2574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2576 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2577 
   2578 
   2579 # Make sure we can run config.sub.
   2580 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2581   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2582 
   2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2584 $as_echo_n "checking build system type... " >&6; }
   2585 if ${ac_cv_build+:} false; then :
   2586   $as_echo_n "(cached) " >&6
   2587 else
   2588   ac_build_alias=$build_alias
   2589 test "x$ac_build_alias" = x &&
   2590   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2591 test "x$ac_build_alias" = x &&
   2592   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2593 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2594   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2595 
   2596 fi
   2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2598 $as_echo "$ac_cv_build" >&6; }
   2599 case $ac_cv_build in
   2600 *-*-*) ;;
   2601 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2602 esac
   2603 build=$ac_cv_build
   2604 ac_save_IFS=$IFS; IFS='-'
   2605 set x $ac_cv_build
   2606 shift
   2607 build_cpu=$1
   2608 build_vendor=$2
   2609 shift; shift
   2610 # Remember, the first character of IFS is used to create $*,
   2611 # except with old shells:
   2612 build_os=$*
   2613 IFS=$ac_save_IFS
   2614 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2615 
   2616 
   2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2618 $as_echo_n "checking host system type... " >&6; }
   2619 if ${ac_cv_host+:} false; then :
   2620   $as_echo_n "(cached) " >&6
   2621 else
   2622   if test "x$host_alias" = x; then
   2623   ac_cv_host=$ac_cv_build
   2624 else
   2625   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2626     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2627 fi
   2628 
   2629 fi
   2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2631 $as_echo "$ac_cv_host" >&6; }
   2632 case $ac_cv_host in
   2633 *-*-*) ;;
   2634 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2635 esac
   2636 host=$ac_cv_host
   2637 ac_save_IFS=$IFS; IFS='-'
   2638 set x $ac_cv_host
   2639 shift
   2640 host_cpu=$1
   2641 host_vendor=$2
   2642 shift; shift
   2643 # Remember, the first character of IFS is used to create $*,
   2644 # except with old shells:
   2645 host_os=$*
   2646 IFS=$ac_save_IFS
   2647 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2648 
   2649 
   2650 ac_ext=c
   2651 ac_cpp='$CPP $CPPFLAGS'
   2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2655 if test -n "$ac_tool_prefix"; then
   2656   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2657 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2659 $as_echo_n "checking for $ac_word... " >&6; }
   2660 if ${ac_cv_prog_CC+:} false; then :
   2661   $as_echo_n "(cached) " >&6
   2662 else
   2663   if test -n "$CC"; then
   2664   ac_cv_prog_CC="$CC" # Let the user override the test.
   2665 else
   2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2667 for as_dir in $PATH
   2668 do
   2669   IFS=$as_save_IFS
   2670   test -z "$as_dir" && as_dir=.
   2671     for ac_exec_ext in '' $ac_executable_extensions; do
   2672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2673     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2675     break 2
   2676   fi
   2677 done
   2678   done
   2679 IFS=$as_save_IFS
   2680 
   2681 fi
   2682 fi
   2683 CC=$ac_cv_prog_CC
   2684 if test -n "$CC"; then
   2685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2686 $as_echo "$CC" >&6; }
   2687 else
   2688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2689 $as_echo "no" >&6; }
   2690 fi
   2691 
   2692 
   2693 fi
   2694 if test -z "$ac_cv_prog_CC"; then
   2695   ac_ct_CC=$CC
   2696   # Extract the first word of "gcc", so it can be a program name with args.
   2697 set dummy gcc; ac_word=$2
   2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2699 $as_echo_n "checking for $ac_word... " >&6; }
   2700 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2701   $as_echo_n "(cached) " >&6
   2702 else
   2703   if test -n "$ac_ct_CC"; then
   2704   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2705 else
   2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2707 for as_dir in $PATH
   2708 do
   2709   IFS=$as_save_IFS
   2710   test -z "$as_dir" && as_dir=.
   2711     for ac_exec_ext in '' $ac_executable_extensions; do
   2712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2713     ac_cv_prog_ac_ct_CC="gcc"
   2714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2715     break 2
   2716   fi
   2717 done
   2718   done
   2719 IFS=$as_save_IFS
   2720 
   2721 fi
   2722 fi
   2723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2724 if test -n "$ac_ct_CC"; then
   2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2726 $as_echo "$ac_ct_CC" >&6; }
   2727 else
   2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2729 $as_echo "no" >&6; }
   2730 fi
   2731 
   2732   if test "x$ac_ct_CC" = x; then
   2733     CC=""
   2734   else
   2735     case $cross_compiling:$ac_tool_warned in
   2736 yes:)
   2737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2739 ac_tool_warned=yes ;;
   2740 esac
   2741     CC=$ac_ct_CC
   2742   fi
   2743 else
   2744   CC="$ac_cv_prog_CC"
   2745 fi
   2746 
   2747 if test -z "$CC"; then
   2748           if test -n "$ac_tool_prefix"; then
   2749     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2750 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2752 $as_echo_n "checking for $ac_word... " >&6; }
   2753 if ${ac_cv_prog_CC+:} false; then :
   2754   $as_echo_n "(cached) " >&6
   2755 else
   2756   if test -n "$CC"; then
   2757   ac_cv_prog_CC="$CC" # Let the user override the test.
   2758 else
   2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2760 for as_dir in $PATH
   2761 do
   2762   IFS=$as_save_IFS
   2763   test -z "$as_dir" && as_dir=.
   2764     for ac_exec_ext in '' $ac_executable_extensions; do
   2765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2766     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2768     break 2
   2769   fi
   2770 done
   2771   done
   2772 IFS=$as_save_IFS
   2773 
   2774 fi
   2775 fi
   2776 CC=$ac_cv_prog_CC
   2777 if test -n "$CC"; then
   2778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2779 $as_echo "$CC" >&6; }
   2780 else
   2781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2782 $as_echo "no" >&6; }
   2783 fi
   2784 
   2785 
   2786   fi
   2787 fi
   2788 if test -z "$CC"; then
   2789   # Extract the first word of "cc", so it can be a program name with args.
   2790 set dummy cc; ac_word=$2
   2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2792 $as_echo_n "checking for $ac_word... " >&6; }
   2793 if ${ac_cv_prog_CC+:} false; then :
   2794   $as_echo_n "(cached) " >&6
   2795 else
   2796   if test -n "$CC"; then
   2797   ac_cv_prog_CC="$CC" # Let the user override the test.
   2798 else
   2799   ac_prog_rejected=no
   2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2801 for as_dir in $PATH
   2802 do
   2803   IFS=$as_save_IFS
   2804   test -z "$as_dir" && as_dir=.
   2805     for ac_exec_ext in '' $ac_executable_extensions; do
   2806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2807     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2808        ac_prog_rejected=yes
   2809        continue
   2810      fi
   2811     ac_cv_prog_CC="cc"
   2812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2813     break 2
   2814   fi
   2815 done
   2816   done
   2817 IFS=$as_save_IFS
   2818 
   2819 if test $ac_prog_rejected = yes; then
   2820   # We found a bogon in the path, so make sure we never use it.
   2821   set dummy $ac_cv_prog_CC
   2822   shift
   2823   if test $# != 0; then
   2824     # We chose a different compiler from the bogus one.
   2825     # However, it has the same basename, so the bogon will be chosen
   2826     # first if we set CC to just the basename; use the full file name.
   2827     shift
   2828     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2829   fi
   2830 fi
   2831 fi
   2832 fi
   2833 CC=$ac_cv_prog_CC
   2834 if test -n "$CC"; then
   2835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2836 $as_echo "$CC" >&6; }
   2837 else
   2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2839 $as_echo "no" >&6; }
   2840 fi
   2841 
   2842 
   2843 fi
   2844 if test -z "$CC"; then
   2845   if test -n "$ac_tool_prefix"; then
   2846   for ac_prog in cl.exe
   2847   do
   2848     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2851 $as_echo_n "checking for $ac_word... " >&6; }
   2852 if ${ac_cv_prog_CC+:} false; then :
   2853   $as_echo_n "(cached) " >&6
   2854 else
   2855   if test -n "$CC"; then
   2856   ac_cv_prog_CC="$CC" # Let the user override the test.
   2857 else
   2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2859 for as_dir in $PATH
   2860 do
   2861   IFS=$as_save_IFS
   2862   test -z "$as_dir" && as_dir=.
   2863     for ac_exec_ext in '' $ac_executable_extensions; do
   2864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2865     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2867     break 2
   2868   fi
   2869 done
   2870   done
   2871 IFS=$as_save_IFS
   2872 
   2873 fi
   2874 fi
   2875 CC=$ac_cv_prog_CC
   2876 if test -n "$CC"; then
   2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2878 $as_echo "$CC" >&6; }
   2879 else
   2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2881 $as_echo "no" >&6; }
   2882 fi
   2883 
   2884 
   2885     test -n "$CC" && break
   2886   done
   2887 fi
   2888 if test -z "$CC"; then
   2889   ac_ct_CC=$CC
   2890   for ac_prog in cl.exe
   2891 do
   2892   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2893 set dummy $ac_prog; ac_word=$2
   2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2895 $as_echo_n "checking for $ac_word... " >&6; }
   2896 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2897   $as_echo_n "(cached) " >&6
   2898 else
   2899   if test -n "$ac_ct_CC"; then
   2900   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2901 else
   2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2903 for as_dir in $PATH
   2904 do
   2905   IFS=$as_save_IFS
   2906   test -z "$as_dir" && as_dir=.
   2907     for ac_exec_ext in '' $ac_executable_extensions; do
   2908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2909     ac_cv_prog_ac_ct_CC="$ac_prog"
   2910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2911     break 2
   2912   fi
   2913 done
   2914   done
   2915 IFS=$as_save_IFS
   2916 
   2917 fi
   2918 fi
   2919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2920 if test -n "$ac_ct_CC"; then
   2921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2922 $as_echo "$ac_ct_CC" >&6; }
   2923 else
   2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2925 $as_echo "no" >&6; }
   2926 fi
   2927 
   2928 
   2929   test -n "$ac_ct_CC" && break
   2930 done
   2931 
   2932   if test "x$ac_ct_CC" = x; then
   2933     CC=""
   2934   else
   2935     case $cross_compiling:$ac_tool_warned in
   2936 yes:)
   2937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2939 ac_tool_warned=yes ;;
   2940 esac
   2941     CC=$ac_ct_CC
   2942   fi
   2943 fi
   2944 
   2945 fi
   2946 
   2947 
   2948 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2950 as_fn_error $? "no acceptable C compiler found in \$PATH
   2951 See \`config.log' for more details" "$LINENO" 5; }
   2952 
   2953 # Provide some information about the compiler.
   2954 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   2955 set X $ac_compile
   2956 ac_compiler=$2
   2957 for ac_option in --version -v -V -qversion; do
   2958   { { ac_try="$ac_compiler $ac_option >&5"
   2959 case "(($ac_try" in
   2960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2961   *) ac_try_echo=$ac_try;;
   2962 esac
   2963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2964 $as_echo "$ac_try_echo"; } >&5
   2965   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   2966   ac_status=$?
   2967   if test -s conftest.err; then
   2968     sed '10a\
   2969 ... rest of stderr output deleted ...
   2970          10q' conftest.err >conftest.er1
   2971     cat conftest.er1 >&5
   2972   fi
   2973   rm -f conftest.er1 conftest.err
   2974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2975   test $ac_status = 0; }
   2976 done
   2977 
   2978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2979 /* end confdefs.h.  */
   2980 
   2981 int
   2982 main ()
   2983 {
   2984 
   2985   ;
   2986   return 0;
   2987 }
   2988 _ACEOF
   2989 ac_clean_files_save=$ac_clean_files
   2990 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   2991 # Try to create an executable without -o first, disregard a.out.
   2992 # It will help us diagnose broken compilers, and finding out an intuition
   2993 # of exeext.
   2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   2995 $as_echo_n "checking whether the C compiler works... " >&6; }
   2996 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2997 
   2998 # The possible output files:
   2999 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3000 
   3001 ac_rmfiles=
   3002 for ac_file in $ac_files
   3003 do
   3004   case $ac_file in
   3005     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3006     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3007   esac
   3008 done
   3009 rm -f $ac_rmfiles
   3010 
   3011 if { { ac_try="$ac_link_default"
   3012 case "(($ac_try" in
   3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3014   *) ac_try_echo=$ac_try;;
   3015 esac
   3016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3017 $as_echo "$ac_try_echo"; } >&5
   3018   (eval "$ac_link_default") 2>&5
   3019   ac_status=$?
   3020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3021   test $ac_status = 0; }; then :
   3022   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3023 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3024 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3025 # so that the user can short-circuit this test for compilers unknown to
   3026 # Autoconf.
   3027 for ac_file in $ac_files ''
   3028 do
   3029   test -f "$ac_file" || continue
   3030   case $ac_file in
   3031     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3032 	;;
   3033     [ab].out )
   3034 	# We found the default executable, but exeext='' is most
   3035 	# certainly right.
   3036 	break;;
   3037     *.* )
   3038 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3039 	then :; else
   3040 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3041 	fi
   3042 	# We set ac_cv_exeext here because the later test for it is not
   3043 	# safe: cross compilers may not add the suffix if given an `-o'
   3044 	# argument, so we may need to know it at that point already.
   3045 	# Even if this section looks crufty: it has the advantage of
   3046 	# actually working.
   3047 	break;;
   3048     * )
   3049 	break;;
   3050   esac
   3051 done
   3052 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3053 
   3054 else
   3055   ac_file=''
   3056 fi
   3057 if test -z "$ac_file"; then :
   3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3059 $as_echo "no" >&6; }
   3060 $as_echo "$as_me: failed program was:" >&5
   3061 sed 's/^/| /' conftest.$ac_ext >&5
   3062 
   3063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3065 as_fn_error 77 "C compiler cannot create executables
   3066 See \`config.log' for more details" "$LINENO" 5; }
   3067 else
   3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3069 $as_echo "yes" >&6; }
   3070 fi
   3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3072 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3074 $as_echo "$ac_file" >&6; }
   3075 ac_exeext=$ac_cv_exeext
   3076 
   3077 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3078 ac_clean_files=$ac_clean_files_save
   3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3080 $as_echo_n "checking for suffix of executables... " >&6; }
   3081 if { { ac_try="$ac_link"
   3082 case "(($ac_try" in
   3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3084   *) ac_try_echo=$ac_try;;
   3085 esac
   3086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3087 $as_echo "$ac_try_echo"; } >&5
   3088   (eval "$ac_link") 2>&5
   3089   ac_status=$?
   3090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3091   test $ac_status = 0; }; then :
   3092   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3093 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3094 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3095 # `rm'.
   3096 for ac_file in conftest.exe conftest conftest.*; do
   3097   test -f "$ac_file" || continue
   3098   case $ac_file in
   3099     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3100     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3101 	  break;;
   3102     * ) break;;
   3103   esac
   3104 done
   3105 else
   3106   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3108 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3109 See \`config.log' for more details" "$LINENO" 5; }
   3110 fi
   3111 rm -f conftest conftest$ac_cv_exeext
   3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3113 $as_echo "$ac_cv_exeext" >&6; }
   3114 
   3115 rm -f conftest.$ac_ext
   3116 EXEEXT=$ac_cv_exeext
   3117 ac_exeext=$EXEEXT
   3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3119 /* end confdefs.h.  */
   3120 #include <stdio.h>
   3121 int
   3122 main ()
   3123 {
   3124 FILE *f = fopen ("conftest.out", "w");
   3125  return ferror (f) || fclose (f) != 0;
   3126 
   3127   ;
   3128   return 0;
   3129 }
   3130 _ACEOF
   3131 ac_clean_files="$ac_clean_files conftest.out"
   3132 # Check that the compiler produces executables we can run.  If not, either
   3133 # the compiler is broken, or we cross compile.
   3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3135 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3136 if test "$cross_compiling" != yes; then
   3137   { { ac_try="$ac_link"
   3138 case "(($ac_try" in
   3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3140   *) ac_try_echo=$ac_try;;
   3141 esac
   3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3143 $as_echo "$ac_try_echo"; } >&5
   3144   (eval "$ac_link") 2>&5
   3145   ac_status=$?
   3146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3147   test $ac_status = 0; }
   3148   if { ac_try='./conftest$ac_cv_exeext'
   3149   { { case "(($ac_try" in
   3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3151   *) ac_try_echo=$ac_try;;
   3152 esac
   3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3154 $as_echo "$ac_try_echo"; } >&5
   3155   (eval "$ac_try") 2>&5
   3156   ac_status=$?
   3157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3158   test $ac_status = 0; }; }; then
   3159     cross_compiling=no
   3160   else
   3161     if test "$cross_compiling" = maybe; then
   3162 	cross_compiling=yes
   3163     else
   3164 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3166 as_fn_error $? "cannot run C compiled programs.
   3167 If you meant to cross compile, use \`--host'.
   3168 See \`config.log' for more details" "$LINENO" 5; }
   3169     fi
   3170   fi
   3171 fi
   3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3173 $as_echo "$cross_compiling" >&6; }
   3174 
   3175 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3176 ac_clean_files=$ac_clean_files_save
   3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3178 $as_echo_n "checking for suffix of object files... " >&6; }
   3179 if ${ac_cv_objext+:} false; then :
   3180   $as_echo_n "(cached) " >&6
   3181 else
   3182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3183 /* end confdefs.h.  */
   3184 
   3185 int
   3186 main ()
   3187 {
   3188 
   3189   ;
   3190   return 0;
   3191 }
   3192 _ACEOF
   3193 rm -f conftest.o conftest.obj
   3194 if { { ac_try="$ac_compile"
   3195 case "(($ac_try" in
   3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3197   *) ac_try_echo=$ac_try;;
   3198 esac
   3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3200 $as_echo "$ac_try_echo"; } >&5
   3201   (eval "$ac_compile") 2>&5
   3202   ac_status=$?
   3203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3204   test $ac_status = 0; }; then :
   3205   for ac_file in conftest.o conftest.obj conftest.*; do
   3206   test -f "$ac_file" || continue;
   3207   case $ac_file in
   3208     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3209     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3210        break;;
   3211   esac
   3212 done
   3213 else
   3214   $as_echo "$as_me: failed program was:" >&5
   3215 sed 's/^/| /' conftest.$ac_ext >&5
   3216 
   3217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3219 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3220 See \`config.log' for more details" "$LINENO" 5; }
   3221 fi
   3222 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3223 fi
   3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3225 $as_echo "$ac_cv_objext" >&6; }
   3226 OBJEXT=$ac_cv_objext
   3227 ac_objext=$OBJEXT
   3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3229 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3230 if ${ac_cv_c_compiler_gnu+:} false; then :
   3231   $as_echo_n "(cached) " >&6
   3232 else
   3233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3234 /* end confdefs.h.  */
   3235 
   3236 int
   3237 main ()
   3238 {
   3239 #ifndef __GNUC__
   3240        choke me
   3241 #endif
   3242 
   3243   ;
   3244   return 0;
   3245 }
   3246 _ACEOF
   3247 if ac_fn_c_try_compile "$LINENO"; then :
   3248   ac_compiler_gnu=yes
   3249 else
   3250   ac_compiler_gnu=no
   3251 fi
   3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3253 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3254 
   3255 fi
   3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3257 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3258 if test $ac_compiler_gnu = yes; then
   3259   GCC=yes
   3260 else
   3261   GCC=
   3262 fi
   3263 ac_test_CFLAGS=${CFLAGS+set}
   3264 ac_save_CFLAGS=$CFLAGS
   3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3266 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3267 if ${ac_cv_prog_cc_g+:} false; then :
   3268   $as_echo_n "(cached) " >&6
   3269 else
   3270   ac_save_c_werror_flag=$ac_c_werror_flag
   3271    ac_c_werror_flag=yes
   3272    ac_cv_prog_cc_g=no
   3273    CFLAGS="-g"
   3274    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3275 /* end confdefs.h.  */
   3276 
   3277 int
   3278 main ()
   3279 {
   3280 
   3281   ;
   3282   return 0;
   3283 }
   3284 _ACEOF
   3285 if ac_fn_c_try_compile "$LINENO"; then :
   3286   ac_cv_prog_cc_g=yes
   3287 else
   3288   CFLAGS=""
   3289       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3290 /* end confdefs.h.  */
   3291 
   3292 int
   3293 main ()
   3294 {
   3295 
   3296   ;
   3297   return 0;
   3298 }
   3299 _ACEOF
   3300 if ac_fn_c_try_compile "$LINENO"; then :
   3301 
   3302 else
   3303   ac_c_werror_flag=$ac_save_c_werror_flag
   3304 	 CFLAGS="-g"
   3305 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3306 /* end confdefs.h.  */
   3307 
   3308 int
   3309 main ()
   3310 {
   3311 
   3312   ;
   3313   return 0;
   3314 }
   3315 _ACEOF
   3316 if ac_fn_c_try_compile "$LINENO"; then :
   3317   ac_cv_prog_cc_g=yes
   3318 fi
   3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3320 fi
   3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3322 fi
   3323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3324    ac_c_werror_flag=$ac_save_c_werror_flag
   3325 fi
   3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3327 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3328 if test "$ac_test_CFLAGS" = set; then
   3329   CFLAGS=$ac_save_CFLAGS
   3330 elif test $ac_cv_prog_cc_g = yes; then
   3331   if test "$GCC" = yes; then
   3332     CFLAGS="-g -O2"
   3333   else
   3334     CFLAGS="-g"
   3335   fi
   3336 else
   3337   if test "$GCC" = yes; then
   3338     CFLAGS="-O2"
   3339   else
   3340     CFLAGS=
   3341   fi
   3342 fi
   3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3344 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3345 if ${ac_cv_prog_cc_c89+:} false; then :
   3346   $as_echo_n "(cached) " >&6
   3347 else
   3348   ac_cv_prog_cc_c89=no
   3349 ac_save_CC=$CC
   3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3351 /* end confdefs.h.  */
   3352 #include <stdarg.h>
   3353 #include <stdio.h>
   3354 struct stat;
   3355 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3356 struct buf { int x; };
   3357 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3358 static char *e (p, i)
   3359      char **p;
   3360      int i;
   3361 {
   3362   return p[i];
   3363 }
   3364 static char *f (char * (*g) (char **, int), char **p, ...)
   3365 {
   3366   char *s;
   3367   va_list v;
   3368   va_start (v,p);
   3369   s = g (p, va_arg (v,int));
   3370   va_end (v);
   3371   return s;
   3372 }
   3373 
   3374 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3375    function prototypes and stuff, but not '\xHH' hex character constants.
   3376    These don't provoke an error unfortunately, instead are silently treated
   3377    as 'x'.  The following induces an error, until -std is added to get
   3378    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3379    array size at least.  It's necessary to write '\x00'==0 to get something
   3380    that's true only with -std.  */
   3381 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3382 
   3383 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3384    inside strings and character constants.  */
   3385 #define FOO(x) 'x'
   3386 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3387 
   3388 int test (int i, double x);
   3389 struct s1 {int (*f) (int a);};
   3390 struct s2 {int (*f) (double a);};
   3391 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3392 int argc;
   3393 char **argv;
   3394 int
   3395 main ()
   3396 {
   3397 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3398   ;
   3399   return 0;
   3400 }
   3401 _ACEOF
   3402 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3403 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3404 do
   3405   CC="$ac_save_CC $ac_arg"
   3406   if ac_fn_c_try_compile "$LINENO"; then :
   3407   ac_cv_prog_cc_c89=$ac_arg
   3408 fi
   3409 rm -f core conftest.err conftest.$ac_objext
   3410   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3411 done
   3412 rm -f conftest.$ac_ext
   3413 CC=$ac_save_CC
   3414 
   3415 fi
   3416 # AC_CACHE_VAL
   3417 case "x$ac_cv_prog_cc_c89" in
   3418   x)
   3419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3420 $as_echo "none needed" >&6; } ;;
   3421   xno)
   3422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3423 $as_echo "unsupported" >&6; } ;;
   3424   *)
   3425     CC="$CC $ac_cv_prog_cc_c89"
   3426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3427 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3428 esac
   3429 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3430 
   3431 fi
   3432 
   3433 ac_ext=c
   3434 ac_cpp='$CPP $CPPFLAGS'
   3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3438 
   3439 
   3440 ac_ext=c
   3441 ac_cpp='$CPP $CPPFLAGS'
   3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3446 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3447 # On Suns, sometimes $CPP names a directory.
   3448 if test -n "$CPP" && test -d "$CPP"; then
   3449   CPP=
   3450 fi
   3451 if test -z "$CPP"; then
   3452   if ${ac_cv_prog_CPP+:} false; then :
   3453   $as_echo_n "(cached) " >&6
   3454 else
   3455       # Double quotes because CPP needs to be expanded
   3456     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3457     do
   3458       ac_preproc_ok=false
   3459 for ac_c_preproc_warn_flag in '' yes
   3460 do
   3461   # Use a header file that comes with gcc, so configuring glibc
   3462   # with a fresh cross-compiler works.
   3463   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3464   # <limits.h> exists even on freestanding compilers.
   3465   # On the NeXT, cc -E runs the code through the compiler's parser,
   3466   # not just through cpp. "Syntax error" is here to catch this case.
   3467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3468 /* end confdefs.h.  */
   3469 #ifdef __STDC__
   3470 # include <limits.h>
   3471 #else
   3472 # include <assert.h>
   3473 #endif
   3474 		     Syntax error
   3475 _ACEOF
   3476 if ac_fn_c_try_cpp "$LINENO"; then :
   3477 
   3478 else
   3479   # Broken: fails on valid input.
   3480 continue
   3481 fi
   3482 rm -f conftest.err conftest.i conftest.$ac_ext
   3483 
   3484   # OK, works on sane cases.  Now check whether nonexistent headers
   3485   # can be detected and how.
   3486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3487 /* end confdefs.h.  */
   3488 #include <ac_nonexistent.h>
   3489 _ACEOF
   3490 if ac_fn_c_try_cpp "$LINENO"; then :
   3491   # Broken: success on invalid input.
   3492 continue
   3493 else
   3494   # Passes both tests.
   3495 ac_preproc_ok=:
   3496 break
   3497 fi
   3498 rm -f conftest.err conftest.i conftest.$ac_ext
   3499 
   3500 done
   3501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3502 rm -f conftest.i conftest.err conftest.$ac_ext
   3503 if $ac_preproc_ok; then :
   3504   break
   3505 fi
   3506 
   3507     done
   3508     ac_cv_prog_CPP=$CPP
   3509 
   3510 fi
   3511   CPP=$ac_cv_prog_CPP
   3512 else
   3513   ac_cv_prog_CPP=$CPP
   3514 fi
   3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3516 $as_echo "$CPP" >&6; }
   3517 ac_preproc_ok=false
   3518 for ac_c_preproc_warn_flag in '' yes
   3519 do
   3520   # Use a header file that comes with gcc, so configuring glibc
   3521   # with a fresh cross-compiler works.
   3522   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3523   # <limits.h> exists even on freestanding compilers.
   3524   # On the NeXT, cc -E runs the code through the compiler's parser,
   3525   # not just through cpp. "Syntax error" is here to catch this case.
   3526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3527 /* end confdefs.h.  */
   3528 #ifdef __STDC__
   3529 # include <limits.h>
   3530 #else
   3531 # include <assert.h>
   3532 #endif
   3533 		     Syntax error
   3534 _ACEOF
   3535 if ac_fn_c_try_cpp "$LINENO"; then :
   3536 
   3537 else
   3538   # Broken: fails on valid input.
   3539 continue
   3540 fi
   3541 rm -f conftest.err conftest.i conftest.$ac_ext
   3542 
   3543   # OK, works on sane cases.  Now check whether nonexistent headers
   3544   # can be detected and how.
   3545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3546 /* end confdefs.h.  */
   3547 #include <ac_nonexistent.h>
   3548 _ACEOF
   3549 if ac_fn_c_try_cpp "$LINENO"; then :
   3550   # Broken: success on invalid input.
   3551 continue
   3552 else
   3553   # Passes both tests.
   3554 ac_preproc_ok=:
   3555 break
   3556 fi
   3557 rm -f conftest.err conftest.i conftest.$ac_ext
   3558 
   3559 done
   3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3561 rm -f conftest.i conftest.err conftest.$ac_ext
   3562 if $ac_preproc_ok; then :
   3563 
   3564 else
   3565   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3567 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   3568 See \`config.log' for more details" "$LINENO" 5; }
   3569 fi
   3570 
   3571 ac_ext=c
   3572 ac_cpp='$CPP $CPPFLAGS'
   3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3576 
   3577 
   3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3579 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3580 if ${ac_cv_path_GREP+:} false; then :
   3581   $as_echo_n "(cached) " >&6
   3582 else
   3583   if test -z "$GREP"; then
   3584   ac_path_GREP_found=false
   3585   # Loop through the user's path and test for each of PROGNAME-LIST
   3586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3587 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3588 do
   3589   IFS=$as_save_IFS
   3590   test -z "$as_dir" && as_dir=.
   3591     for ac_prog in grep ggrep; do
   3592     for ac_exec_ext in '' $ac_executable_extensions; do
   3593       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3594       as_fn_executable_p "$ac_path_GREP" || continue
   3595 # Check for GNU ac_path_GREP and select it if it is found.
   3596   # Check for GNU $ac_path_GREP
   3597 case `"$ac_path_GREP" --version 2>&1` in
   3598 *GNU*)
   3599   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3600 *)
   3601   ac_count=0
   3602   $as_echo_n 0123456789 >"conftest.in"
   3603   while :
   3604   do
   3605     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3606     mv "conftest.tmp" "conftest.in"
   3607     cp "conftest.in" "conftest.nl"
   3608     $as_echo 'GREP' >> "conftest.nl"
   3609     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3610     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3611     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3612     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3613       # Best one so far, save it but keep looking for a better one
   3614       ac_cv_path_GREP="$ac_path_GREP"
   3615       ac_path_GREP_max=$ac_count
   3616     fi
   3617     # 10*(2^10) chars as input seems more than enough
   3618     test $ac_count -gt 10 && break
   3619   done
   3620   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3621 esac
   3622 
   3623       $ac_path_GREP_found && break 3
   3624     done
   3625   done
   3626   done
   3627 IFS=$as_save_IFS
   3628   if test -z "$ac_cv_path_GREP"; then
   3629     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3630   fi
   3631 else
   3632   ac_cv_path_GREP=$GREP
   3633 fi
   3634 
   3635 fi
   3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3637 $as_echo "$ac_cv_path_GREP" >&6; }
   3638  GREP="$ac_cv_path_GREP"
   3639 
   3640 
   3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3642 $as_echo_n "checking for egrep... " >&6; }
   3643 if ${ac_cv_path_EGREP+:} false; then :
   3644   $as_echo_n "(cached) " >&6
   3645 else
   3646   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3647    then ac_cv_path_EGREP="$GREP -E"
   3648    else
   3649      if test -z "$EGREP"; then
   3650   ac_path_EGREP_found=false
   3651   # Loop through the user's path and test for each of PROGNAME-LIST
   3652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3653 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3654 do
   3655   IFS=$as_save_IFS
   3656   test -z "$as_dir" && as_dir=.
   3657     for ac_prog in egrep; do
   3658     for ac_exec_ext in '' $ac_executable_extensions; do
   3659       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3660       as_fn_executable_p "$ac_path_EGREP" || continue
   3661 # Check for GNU ac_path_EGREP and select it if it is found.
   3662   # Check for GNU $ac_path_EGREP
   3663 case `"$ac_path_EGREP" --version 2>&1` in
   3664 *GNU*)
   3665   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3666 *)
   3667   ac_count=0
   3668   $as_echo_n 0123456789 >"conftest.in"
   3669   while :
   3670   do
   3671     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3672     mv "conftest.tmp" "conftest.in"
   3673     cp "conftest.in" "conftest.nl"
   3674     $as_echo 'EGREP' >> "conftest.nl"
   3675     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3676     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3677     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3678     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3679       # Best one so far, save it but keep looking for a better one
   3680       ac_cv_path_EGREP="$ac_path_EGREP"
   3681       ac_path_EGREP_max=$ac_count
   3682     fi
   3683     # 10*(2^10) chars as input seems more than enough
   3684     test $ac_count -gt 10 && break
   3685   done
   3686   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3687 esac
   3688 
   3689       $ac_path_EGREP_found && break 3
   3690     done
   3691   done
   3692   done
   3693 IFS=$as_save_IFS
   3694   if test -z "$ac_cv_path_EGREP"; then
   3695     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3696   fi
   3697 else
   3698   ac_cv_path_EGREP=$EGREP
   3699 fi
   3700 
   3701    fi
   3702 fi
   3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   3704 $as_echo "$ac_cv_path_EGREP" >&6; }
   3705  EGREP="$ac_cv_path_EGREP"
   3706 
   3707 
   3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   3709 $as_echo_n "checking for ANSI C header files... " >&6; }
   3710 if ${ac_cv_header_stdc+:} false; then :
   3711   $as_echo_n "(cached) " >&6
   3712 else
   3713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3714 /* end confdefs.h.  */
   3715 #include <stdlib.h>
   3716 #include <stdarg.h>
   3717 #include <string.h>
   3718 #include <float.h>
   3719 
   3720 int
   3721 main ()
   3722 {
   3723 
   3724   ;
   3725   return 0;
   3726 }
   3727 _ACEOF
   3728 if ac_fn_c_try_compile "$LINENO"; then :
   3729   ac_cv_header_stdc=yes
   3730 else
   3731   ac_cv_header_stdc=no
   3732 fi
   3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3734 
   3735 if test $ac_cv_header_stdc = yes; then
   3736   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3738 /* end confdefs.h.  */
   3739 #include <string.h>
   3740 
   3741 _ACEOF
   3742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3743   $EGREP "memchr" >/dev/null 2>&1; then :
   3744 
   3745 else
   3746   ac_cv_header_stdc=no
   3747 fi
   3748 rm -f conftest*
   3749 
   3750 fi
   3751 
   3752 if test $ac_cv_header_stdc = yes; then
   3753   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3755 /* end confdefs.h.  */
   3756 #include <stdlib.h>
   3757 
   3758 _ACEOF
   3759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3760   $EGREP "free" >/dev/null 2>&1; then :
   3761 
   3762 else
   3763   ac_cv_header_stdc=no
   3764 fi
   3765 rm -f conftest*
   3766 
   3767 fi
   3768 
   3769 if test $ac_cv_header_stdc = yes; then
   3770   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3771   if test "$cross_compiling" = yes; then :
   3772   :
   3773 else
   3774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3775 /* end confdefs.h.  */
   3776 #include <ctype.h>
   3777 #include <stdlib.h>
   3778 #if ((' ' & 0x0FF) == 0x020)
   3779 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3780 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3781 #else
   3782 # define ISLOWER(c) \
   3783 		   (('a' <= (c) && (c) <= 'i') \
   3784 		     || ('j' <= (c) && (c) <= 'r') \
   3785 		     || ('s' <= (c) && (c) <= 'z'))
   3786 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3787 #endif
   3788 
   3789 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3790 int
   3791 main ()
   3792 {
   3793   int i;
   3794   for (i = 0; i < 256; i++)
   3795     if (XOR (islower (i), ISLOWER (i))
   3796 	|| toupper (i) != TOUPPER (i))
   3797       return 2;
   3798   return 0;
   3799 }
   3800 _ACEOF
   3801 if ac_fn_c_try_run "$LINENO"; then :
   3802 
   3803 else
   3804   ac_cv_header_stdc=no
   3805 fi
   3806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   3807   conftest.$ac_objext conftest.beam conftest.$ac_ext
   3808 fi
   3809 
   3810 fi
   3811 fi
   3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   3813 $as_echo "$ac_cv_header_stdc" >&6; }
   3814 if test $ac_cv_header_stdc = yes; then
   3815 
   3816 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   3817 
   3818 fi
   3819 
   3820 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3821 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3822 		  inttypes.h stdint.h unistd.h
   3823 do :
   3824   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3825 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   3826 "
   3827 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   3828   cat >>confdefs.h <<_ACEOF
   3829 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3830 _ACEOF
   3831 
   3832 fi
   3833 
   3834 done
   3835 
   3836 
   3837 
   3838   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   3839 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   3840   MINIX=yes
   3841 else
   3842   MINIX=
   3843 fi
   3844 
   3845 
   3846   if test "$MINIX" = yes; then
   3847 
   3848 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   3849 
   3850 
   3851 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   3852 
   3853 
   3854 $as_echo "#define _MINIX 1" >>confdefs.h
   3855 
   3856   fi
   3857 
   3858 
   3859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   3860 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   3861 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   3862   $as_echo_n "(cached) " >&6
   3863 else
   3864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3865 /* end confdefs.h.  */
   3866 
   3867 #         define __EXTENSIONS__ 1
   3868           $ac_includes_default
   3869 int
   3870 main ()
   3871 {
   3872 
   3873   ;
   3874   return 0;
   3875 }
   3876 _ACEOF
   3877 if ac_fn_c_try_compile "$LINENO"; then :
   3878   ac_cv_safe_to_define___extensions__=yes
   3879 else
   3880   ac_cv_safe_to_define___extensions__=no
   3881 fi
   3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3883 fi
   3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   3885 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   3886   test $ac_cv_safe_to_define___extensions__ = yes &&
   3887     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   3888 
   3889   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   3890 
   3891   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   3892 
   3893   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   3894 
   3895   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   3896 
   3897 
   3898 
   3899 # Enable RFC 3542 APIs on macOS
   3900 
   3901 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
   3902 
   3903 
   3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   3905 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   3906 set x ${MAKE-make}
   3907 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   3908 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   3909   $as_echo_n "(cached) " >&6
   3910 else
   3911   cat >conftest.make <<\_ACEOF
   3912 SHELL = /bin/sh
   3913 all:
   3914 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   3915 _ACEOF
   3916 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   3917 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   3918   *@@@%%%=?*=@@@%%%*)
   3919     eval ac_cv_prog_make_${ac_make}_set=yes;;
   3920   *)
   3921     eval ac_cv_prog_make_${ac_make}_set=no;;
   3922 esac
   3923 rm -f conftest.make
   3924 fi
   3925 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   3926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3927 $as_echo "yes" >&6; }
   3928   SET_MAKE=
   3929 else
   3930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3931 $as_echo "no" >&6; }
   3932   SET_MAKE="MAKE=${MAKE-make}"
   3933 fi
   3934 
   3935 
   3936 case `pwd` in
   3937   *\ * | *\	*)
   3938     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   3939 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   3940 esac
   3941 
   3942 
   3943 
   3944 macro_version='2.4.6'
   3945 macro_revision='2.4.6'
   3946 
   3947 
   3948 
   3949 
   3950 
   3951 
   3952 
   3953 
   3954 
   3955 
   3956 
   3957 
   3958 
   3959 ltmain=$ac_aux_dir/ltmain.sh
   3960 
   3961 # Backslashify metacharacters that are still active within
   3962 # double-quoted strings.
   3963 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   3964 
   3965 # Same as above, but do not quote variable references.
   3966 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   3967 
   3968 # Sed substitution to delay expansion of an escaped shell variable in a
   3969 # double_quote_subst'ed string.
   3970 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   3971 
   3972 # Sed substitution to delay expansion of an escaped single quote.
   3973 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   3974 
   3975 # Sed substitution to avoid accidental globbing in evaled expressions
   3976 no_glob_subst='s/\*/\\\*/g'
   3977 
   3978 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   3979 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   3980 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   3981 
   3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   3983 $as_echo_n "checking how to print strings... " >&6; }
   3984 # Test print first, because it will be a builtin if present.
   3985 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   3986    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   3987   ECHO='print -r --'
   3988 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   3989   ECHO='printf %s\n'
   3990 else
   3991   # Use this function as a fallback that always works.
   3992   func_fallback_echo ()
   3993   {
   3994     eval 'cat <<_LTECHO_EOF
   3995 $1
   3996 _LTECHO_EOF'
   3997   }
   3998   ECHO='func_fallback_echo'
   3999 fi
   4000 
   4001 # func_echo_all arg...
   4002 # Invoke $ECHO with all args, space-separated.
   4003 func_echo_all ()
   4004 {
   4005     $ECHO ""
   4006 }
   4007 
   4008 case $ECHO in
   4009   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   4010 $as_echo "printf" >&6; } ;;
   4011   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   4012 $as_echo "print -r" >&6; } ;;
   4013   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   4014 $as_echo "cat" >&6; } ;;
   4015 esac
   4016 
   4017 
   4018 
   4019 
   4020 
   4021 
   4022 
   4023 
   4024 
   4025 
   4026 
   4027 
   4028 
   4029 
   4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4031 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   4032 if ${ac_cv_path_SED+:} false; then :
   4033   $as_echo_n "(cached) " >&6
   4034 else
   4035             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4036      for ac_i in 1 2 3 4 5 6 7; do
   4037        ac_script="$ac_script$as_nl$ac_script"
   4038      done
   4039      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4040      { ac_script=; unset ac_script;}
   4041      if test -z "$SED"; then
   4042   ac_path_SED_found=false
   4043   # Loop through the user's path and test for each of PROGNAME-LIST
   4044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4045 for as_dir in $PATH
   4046 do
   4047   IFS=$as_save_IFS
   4048   test -z "$as_dir" && as_dir=.
   4049     for ac_prog in sed gsed; do
   4050     for ac_exec_ext in '' $ac_executable_extensions; do
   4051       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   4052       as_fn_executable_p "$ac_path_SED" || continue
   4053 # Check for GNU ac_path_SED and select it if it is found.
   4054   # Check for GNU $ac_path_SED
   4055 case `"$ac_path_SED" --version 2>&1` in
   4056 *GNU*)
   4057   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4058 *)
   4059   ac_count=0
   4060   $as_echo_n 0123456789 >"conftest.in"
   4061   while :
   4062   do
   4063     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4064     mv "conftest.tmp" "conftest.in"
   4065     cp "conftest.in" "conftest.nl"
   4066     $as_echo '' >> "conftest.nl"
   4067     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4068     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4069     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4070     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4071       # Best one so far, save it but keep looking for a better one
   4072       ac_cv_path_SED="$ac_path_SED"
   4073       ac_path_SED_max=$ac_count
   4074     fi
   4075     # 10*(2^10) chars as input seems more than enough
   4076     test $ac_count -gt 10 && break
   4077   done
   4078   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4079 esac
   4080 
   4081       $ac_path_SED_found && break 3
   4082     done
   4083   done
   4084   done
   4085 IFS=$as_save_IFS
   4086   if test -z "$ac_cv_path_SED"; then
   4087     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4088   fi
   4089 else
   4090   ac_cv_path_SED=$SED
   4091 fi
   4092 
   4093 fi
   4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4095 $as_echo "$ac_cv_path_SED" >&6; }
   4096  SED="$ac_cv_path_SED"
   4097   rm -f conftest.sed
   4098 
   4099 test -z "$SED" && SED=sed
   4100 Xsed="$SED -e 1s/^X//"
   4101 
   4102 
   4103 
   4104 
   4105 
   4106 
   4107 
   4108 
   4109 
   4110 
   4111 
   4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   4113 $as_echo_n "checking for fgrep... " >&6; }
   4114 if ${ac_cv_path_FGREP+:} false; then :
   4115   $as_echo_n "(cached) " >&6
   4116 else
   4117   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   4118    then ac_cv_path_FGREP="$GREP -F"
   4119    else
   4120      if test -z "$FGREP"; then
   4121   ac_path_FGREP_found=false
   4122   # Loop through the user's path and test for each of PROGNAME-LIST
   4123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4125 do
   4126   IFS=$as_save_IFS
   4127   test -z "$as_dir" && as_dir=.
   4128     for ac_prog in fgrep; do
   4129     for ac_exec_ext in '' $ac_executable_extensions; do
   4130       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   4131       as_fn_executable_p "$ac_path_FGREP" || continue
   4132 # Check for GNU ac_path_FGREP and select it if it is found.
   4133   # Check for GNU $ac_path_FGREP
   4134 case `"$ac_path_FGREP" --version 2>&1` in
   4135 *GNU*)
   4136   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   4137 *)
   4138   ac_count=0
   4139   $as_echo_n 0123456789 >"conftest.in"
   4140   while :
   4141   do
   4142     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4143     mv "conftest.tmp" "conftest.in"
   4144     cp "conftest.in" "conftest.nl"
   4145     $as_echo 'FGREP' >> "conftest.nl"
   4146     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4147     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4148     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4149     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   4150       # Best one so far, save it but keep looking for a better one
   4151       ac_cv_path_FGREP="$ac_path_FGREP"
   4152       ac_path_FGREP_max=$ac_count
   4153     fi
   4154     # 10*(2^10) chars as input seems more than enough
   4155     test $ac_count -gt 10 && break
   4156   done
   4157   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4158 esac
   4159 
   4160       $ac_path_FGREP_found && break 3
   4161     done
   4162   done
   4163   done
   4164 IFS=$as_save_IFS
   4165   if test -z "$ac_cv_path_FGREP"; then
   4166     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4167   fi
   4168 else
   4169   ac_cv_path_FGREP=$FGREP
   4170 fi
   4171 
   4172    fi
   4173 fi
   4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   4175 $as_echo "$ac_cv_path_FGREP" >&6; }
   4176  FGREP="$ac_cv_path_FGREP"
   4177 
   4178 
   4179 test -z "$GREP" && GREP=grep
   4180 
   4181 
   4182 
   4183 
   4184 
   4185 
   4186 
   4187 
   4188 
   4189 
   4190 
   4191 
   4192 
   4193 
   4194 
   4195 
   4196 
   4197 
   4198 
   4199 # Check whether --with-gnu-ld was given.
   4200 if test "${with_gnu_ld+set}" = set; then :
   4201   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
   4202 else
   4203   with_gnu_ld=no
   4204 fi
   4205 
   4206 ac_prog=ld
   4207 if test yes = "$GCC"; then
   4208   # Check if gcc -print-prog-name=ld gives a path.
   4209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   4210 $as_echo_n "checking for ld used by $CC... " >&6; }
   4211   case $host in
   4212   *-*-mingw*)
   4213     # gcc leaves a trailing carriage return, which upsets mingw
   4214     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   4215   *)
   4216     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   4217   esac
   4218   case $ac_prog in
   4219     # Accept absolute paths.
   4220     [\\/]* | ?:[\\/]*)
   4221       re_direlt='/[^/][^/]*/\.\./'
   4222       # Canonicalize the pathname of ld
   4223       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   4224       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   4225 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   4226       done
   4227       test -z "$LD" && LD=$ac_prog
   4228       ;;
   4229   "")
   4230     # If it fails, then pretend we aren't using GCC.
   4231     ac_prog=ld
   4232     ;;
   4233   *)
   4234     # If it is relative, then search for the first ld in PATH.
   4235     with_gnu_ld=unknown
   4236     ;;
   4237   esac
   4238 elif test yes = "$with_gnu_ld"; then
   4239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   4240 $as_echo_n "checking for GNU ld... " >&6; }
   4241 else
   4242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   4243 $as_echo_n "checking for non-GNU ld... " >&6; }
   4244 fi
   4245 if ${lt_cv_path_LD+:} false; then :
   4246   $as_echo_n "(cached) " >&6
   4247 else
   4248   if test -z "$LD"; then
   4249   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4250   for ac_dir in $PATH; do
   4251     IFS=$lt_save_ifs
   4252     test -z "$ac_dir" && ac_dir=.
   4253     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   4254       lt_cv_path_LD=$ac_dir/$ac_prog
   4255       # Check to see if the program is GNU ld.  I'd rather use --version,
   4256       # but apparently some variants of GNU ld only accept -v.
   4257       # Break only if it was the GNU/non-GNU ld that we prefer.
   4258       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   4259       *GNU* | *'with BFD'*)
   4260 	test no != "$with_gnu_ld" && break
   4261 	;;
   4262       *)
   4263 	test yes != "$with_gnu_ld" && break
   4264 	;;
   4265       esac
   4266     fi
   4267   done
   4268   IFS=$lt_save_ifs
   4269 else
   4270   lt_cv_path_LD=$LD # Let the user override the test with a path.
   4271 fi
   4272 fi
   4273 
   4274 LD=$lt_cv_path_LD
   4275 if test -n "$LD"; then
   4276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   4277 $as_echo "$LD" >&6; }
   4278 else
   4279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4280 $as_echo "no" >&6; }
   4281 fi
   4282 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   4284 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   4285 if ${lt_cv_prog_gnu_ld+:} false; then :
   4286   $as_echo_n "(cached) " >&6
   4287 else
   4288   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   4289 case `$LD -v 2>&1 </dev/null` in
   4290 *GNU* | *'with BFD'*)
   4291   lt_cv_prog_gnu_ld=yes
   4292   ;;
   4293 *)
   4294   lt_cv_prog_gnu_ld=no
   4295   ;;
   4296 esac
   4297 fi
   4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   4299 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   4300 with_gnu_ld=$lt_cv_prog_gnu_ld
   4301 
   4302 
   4303 
   4304 
   4305 
   4306 
   4307 
   4308 
   4309 
   4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   4311 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   4312 if ${lt_cv_path_NM+:} false; then :
   4313   $as_echo_n "(cached) " >&6
   4314 else
   4315   if test -n "$NM"; then
   4316   # Let the user override the test.
   4317   lt_cv_path_NM=$NM
   4318 else
   4319   lt_nm_to_check=${ac_tool_prefix}nm
   4320   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   4321     lt_nm_to_check="$lt_nm_to_check nm"
   4322   fi
   4323   for lt_tmp_nm in $lt_nm_to_check; do
   4324     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4325     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   4326       IFS=$lt_save_ifs
   4327       test -z "$ac_dir" && ac_dir=.
   4328       tmp_nm=$ac_dir/$lt_tmp_nm
   4329       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   4330 	# Check to see if the nm accepts a BSD-compat flag.
   4331 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   4332 	#   nm: unknown option "B" ignored
   4333 	# Tru64's nm complains that /dev/null is an invalid object file
   4334 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   4335 	case $build_os in
   4336 	mingw*) lt_bad_file=conftest.nm/nofile ;;
   4337 	*) lt_bad_file=/dev/null ;;
   4338 	esac
   4339 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
   4340 	*$lt_bad_file* | *'Invalid file or object type'*)
   4341 	  lt_cv_path_NM="$tmp_nm -B"
   4342 	  break 2
   4343 	  ;;
   4344 	*)
   4345 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   4346 	  */dev/null*)
   4347 	    lt_cv_path_NM="$tmp_nm -p"
   4348 	    break 2
   4349 	    ;;
   4350 	  *)
   4351 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   4352 	    continue # so that we can try to find one that supports BSD flags
   4353 	    ;;
   4354 	  esac
   4355 	  ;;
   4356 	esac
   4357       fi
   4358     done
   4359     IFS=$lt_save_ifs
   4360   done
   4361   : ${lt_cv_path_NM=no}
   4362 fi
   4363 fi
   4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   4365 $as_echo "$lt_cv_path_NM" >&6; }
   4366 if test no != "$lt_cv_path_NM"; then
   4367   NM=$lt_cv_path_NM
   4368 else
   4369   # Didn't find any BSD compatible name lister, look for dumpbin.
   4370   if test -n "$DUMPBIN"; then :
   4371     # Let the user override the test.
   4372   else
   4373     if test -n "$ac_tool_prefix"; then
   4374   for ac_prog in dumpbin "link -dump"
   4375   do
   4376     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4379 $as_echo_n "checking for $ac_word... " >&6; }
   4380 if ${ac_cv_prog_DUMPBIN+:} false; then :
   4381   $as_echo_n "(cached) " >&6
   4382 else
   4383   if test -n "$DUMPBIN"; then
   4384   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   4385 else
   4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4387 for as_dir in $PATH
   4388 do
   4389   IFS=$as_save_IFS
   4390   test -z "$as_dir" && as_dir=.
   4391     for ac_exec_ext in '' $ac_executable_extensions; do
   4392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4393     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   4394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4395     break 2
   4396   fi
   4397 done
   4398   done
   4399 IFS=$as_save_IFS
   4400 
   4401 fi
   4402 fi
   4403 DUMPBIN=$ac_cv_prog_DUMPBIN
   4404 if test -n "$DUMPBIN"; then
   4405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   4406 $as_echo "$DUMPBIN" >&6; }
   4407 else
   4408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4409 $as_echo "no" >&6; }
   4410 fi
   4411 
   4412 
   4413     test -n "$DUMPBIN" && break
   4414   done
   4415 fi
   4416 if test -z "$DUMPBIN"; then
   4417   ac_ct_DUMPBIN=$DUMPBIN
   4418   for ac_prog in dumpbin "link -dump"
   4419 do
   4420   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4421 set dummy $ac_prog; ac_word=$2
   4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4423 $as_echo_n "checking for $ac_word... " >&6; }
   4424 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   4425   $as_echo_n "(cached) " >&6
   4426 else
   4427   if test -n "$ac_ct_DUMPBIN"; then
   4428   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   4429 else
   4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4431 for as_dir in $PATH
   4432 do
   4433   IFS=$as_save_IFS
   4434   test -z "$as_dir" && as_dir=.
   4435     for ac_exec_ext in '' $ac_executable_extensions; do
   4436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4437     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   4438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4439     break 2
   4440   fi
   4441 done
   4442   done
   4443 IFS=$as_save_IFS
   4444 
   4445 fi
   4446 fi
   4447 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   4448 if test -n "$ac_ct_DUMPBIN"; then
   4449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   4450 $as_echo "$ac_ct_DUMPBIN" >&6; }
   4451 else
   4452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4453 $as_echo "no" >&6; }
   4454 fi
   4455 
   4456 
   4457   test -n "$ac_ct_DUMPBIN" && break
   4458 done
   4459 
   4460   if test "x$ac_ct_DUMPBIN" = x; then
   4461     DUMPBIN=":"
   4462   else
   4463     case $cross_compiling:$ac_tool_warned in
   4464 yes:)
   4465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4467 ac_tool_warned=yes ;;
   4468 esac
   4469     DUMPBIN=$ac_ct_DUMPBIN
   4470   fi
   4471 fi
   4472 
   4473     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
   4474     *COFF*)
   4475       DUMPBIN="$DUMPBIN -symbols -headers"
   4476       ;;
   4477     *)
   4478       DUMPBIN=:
   4479       ;;
   4480     esac
   4481   fi
   4482 
   4483   if test : != "$DUMPBIN"; then
   4484     NM=$DUMPBIN
   4485   fi
   4486 fi
   4487 test -z "$NM" && NM=nm
   4488 
   4489 
   4490 
   4491 
   4492 
   4493 
   4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   4495 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   4496 if ${lt_cv_nm_interface+:} false; then :
   4497   $as_echo_n "(cached) " >&6
   4498 else
   4499   lt_cv_nm_interface="BSD nm"
   4500   echo "int some_variable = 0;" > conftest.$ac_ext
   4501   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   4502   (eval "$ac_compile" 2>conftest.err)
   4503   cat conftest.err >&5
   4504   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   4505   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   4506   cat conftest.err >&5
   4507   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   4508   cat conftest.out >&5
   4509   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   4510     lt_cv_nm_interface="MS dumpbin"
   4511   fi
   4512   rm -f conftest*
   4513 fi
   4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   4515 $as_echo "$lt_cv_nm_interface" >&6; }
   4516 
   4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   4518 $as_echo_n "checking whether ln -s works... " >&6; }
   4519 LN_S=$as_ln_s
   4520 if test "$LN_S" = "ln -s"; then
   4521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4522 $as_echo "yes" >&6; }
   4523 else
   4524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   4525 $as_echo "no, using $LN_S" >&6; }
   4526 fi
   4527 
   4528 # find the maximum length of command line arguments
   4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   4530 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   4531 if ${lt_cv_sys_max_cmd_len+:} false; then :
   4532   $as_echo_n "(cached) " >&6
   4533 else
   4534     i=0
   4535   teststring=ABCD
   4536 
   4537   case $build_os in
   4538   msdosdjgpp*)
   4539     # On DJGPP, this test can blow up pretty badly due to problems in libc
   4540     # (any single argument exceeding 2000 bytes causes a buffer overrun
   4541     # during glob expansion).  Even if it were fixed, the result of this
   4542     # check would be larger than it should be.
   4543     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   4544     ;;
   4545 
   4546   gnu*)
   4547     # Under GNU Hurd, this test is not required because there is
   4548     # no limit to the length of command line arguments.
   4549     # Libtool will interpret -1 as no limit whatsoever
   4550     lt_cv_sys_max_cmd_len=-1;
   4551     ;;
   4552 
   4553   cygwin* | mingw* | cegcc*)
   4554     # On Win9x/ME, this test blows up -- it succeeds, but takes
   4555     # about 5 minutes as the teststring grows exponentially.
   4556     # Worse, since 9x/ME are not pre-emptively multitasking,
   4557     # you end up with a "frozen" computer, even though with patience
   4558     # the test eventually succeeds (with a max line length of 256k).
   4559     # Instead, let's just punt: use the minimum linelength reported by
   4560     # all of the supported platforms: 8192 (on NT/2K/XP).
   4561     lt_cv_sys_max_cmd_len=8192;
   4562     ;;
   4563 
   4564   mint*)
   4565     # On MiNT this can take a long time and run out of memory.
   4566     lt_cv_sys_max_cmd_len=8192;
   4567     ;;
   4568 
   4569   amigaos*)
   4570     # On AmigaOS with pdksh, this test takes hours, literally.
   4571     # So we just punt and use a minimum line length of 8192.
   4572     lt_cv_sys_max_cmd_len=8192;
   4573     ;;
   4574 
   4575   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
   4576     # This has been around since 386BSD, at least.  Likely further.
   4577     if test -x /sbin/sysctl; then
   4578       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   4579     elif test -x /usr/sbin/sysctl; then
   4580       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   4581     else
   4582       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   4583     fi
   4584     # And add a safety zone
   4585     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4586     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4587     ;;
   4588 
   4589   interix*)
   4590     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   4591     lt_cv_sys_max_cmd_len=196608
   4592     ;;
   4593 
   4594   os2*)
   4595     # The test takes a long time on OS/2.
   4596     lt_cv_sys_max_cmd_len=8192
   4597     ;;
   4598 
   4599   osf*)
   4600     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   4601     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   4602     # nice to cause kernel panics so lets avoid the loop below.
   4603     # First set a reasonable default.
   4604     lt_cv_sys_max_cmd_len=16384
   4605     #
   4606     if test -x /sbin/sysconfig; then
   4607       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   4608         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   4609       esac
   4610     fi
   4611     ;;
   4612   sco3.2v5*)
   4613     lt_cv_sys_max_cmd_len=102400
   4614     ;;
   4615   sysv5* | sco5v6* | sysv4.2uw2*)
   4616     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   4617     if test -n "$kargmax"; then
   4618       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   4619     else
   4620       lt_cv_sys_max_cmd_len=32768
   4621     fi
   4622     ;;
   4623   *)
   4624     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   4625     if test -n "$lt_cv_sys_max_cmd_len" && \
   4626        test undefined != "$lt_cv_sys_max_cmd_len"; then
   4627       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4628       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4629     else
   4630       # Make teststring a little bigger before we do anything with it.
   4631       # a 1K string should be a reasonable start.
   4632       for i in 1 2 3 4 5 6 7 8; do
   4633         teststring=$teststring$teststring
   4634       done
   4635       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   4636       # If test is not a shell built-in, we'll probably end up computing a
   4637       # maximum length that is only half of the actual maximum length, but
   4638       # we can't tell.
   4639       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   4640 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   4641 	      test 17 != "$i" # 1/2 MB should be enough
   4642       do
   4643         i=`expr $i + 1`
   4644         teststring=$teststring$teststring
   4645       done
   4646       # Only check the string length outside the loop.
   4647       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   4648       teststring=
   4649       # Add a significant safety factor because C++ compilers can tack on
   4650       # massive amounts of additional arguments before passing them to the
   4651       # linker.  It appears as though 1/2 is a usable value.
   4652       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   4653     fi
   4654     ;;
   4655   esac
   4656 
   4657 fi
   4658 
   4659 if test -n "$lt_cv_sys_max_cmd_len"; then
   4660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   4661 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   4662 else
   4663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   4664 $as_echo "none" >&6; }
   4665 fi
   4666 max_cmd_len=$lt_cv_sys_max_cmd_len
   4667 
   4668 
   4669 
   4670 
   4671 
   4672 
   4673 : ${CP="cp -f"}
   4674 : ${MV="mv -f"}
   4675 : ${RM="rm -f"}
   4676 
   4677 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   4678   lt_unset=unset
   4679 else
   4680   lt_unset=false
   4681 fi
   4682 
   4683 
   4684 
   4685 
   4686 
   4687 # test EBCDIC or ASCII
   4688 case `echo X|tr X '\101'` in
   4689  A) # ASCII based system
   4690     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   4691   lt_SP2NL='tr \040 \012'
   4692   lt_NL2SP='tr \015\012 \040\040'
   4693   ;;
   4694  *) # EBCDIC based system
   4695   lt_SP2NL='tr \100 \n'
   4696   lt_NL2SP='tr \r\n \100\100'
   4697   ;;
   4698 esac
   4699 
   4700 
   4701 
   4702 
   4703 
   4704 
   4705 
   4706 
   4707 
   4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   4709 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
   4710 if ${lt_cv_to_host_file_cmd+:} false; then :
   4711   $as_echo_n "(cached) " >&6
   4712 else
   4713   case $host in
   4714   *-*-mingw* )
   4715     case $build in
   4716       *-*-mingw* ) # actually msys
   4717         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   4718         ;;
   4719       *-*-cygwin* )
   4720         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   4721         ;;
   4722       * ) # otherwise, assume *nix
   4723         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   4724         ;;
   4725     esac
   4726     ;;
   4727   *-*-cygwin* )
   4728     case $build in
   4729       *-*-mingw* ) # actually msys
   4730         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   4731         ;;
   4732       *-*-cygwin* )
   4733         lt_cv_to_host_file_cmd=func_convert_file_noop
   4734         ;;
   4735       * ) # otherwise, assume *nix
   4736         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   4737         ;;
   4738     esac
   4739     ;;
   4740   * ) # unhandled hosts (and "normal" native builds)
   4741     lt_cv_to_host_file_cmd=func_convert_file_noop
   4742     ;;
   4743 esac
   4744 
   4745 fi
   4746 
   4747 to_host_file_cmd=$lt_cv_to_host_file_cmd
   4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   4749 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
   4750 
   4751 
   4752 
   4753 
   4754 
   4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   4756 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
   4757 if ${lt_cv_to_tool_file_cmd+:} false; then :
   4758   $as_echo_n "(cached) " >&6
   4759 else
   4760   #assume ordinary cross tools, or native build.
   4761 lt_cv_to_tool_file_cmd=func_convert_file_noop
   4762 case $host in
   4763   *-*-mingw* )
   4764     case $build in
   4765       *-*-mingw* ) # actually msys
   4766         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   4767         ;;
   4768     esac
   4769     ;;
   4770 esac
   4771 
   4772 fi
   4773 
   4774 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   4776 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
   4777 
   4778 
   4779 
   4780 
   4781 
   4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   4783 $as_echo_n "checking for $LD option to reload object files... " >&6; }
   4784 if ${lt_cv_ld_reload_flag+:} false; then :
   4785   $as_echo_n "(cached) " >&6
   4786 else
   4787   lt_cv_ld_reload_flag='-r'
   4788 fi
   4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   4790 $as_echo "$lt_cv_ld_reload_flag" >&6; }
   4791 reload_flag=$lt_cv_ld_reload_flag
   4792 case $reload_flag in
   4793 "" | " "*) ;;
   4794 *) reload_flag=" $reload_flag" ;;
   4795 esac
   4796 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4797 case $host_os in
   4798   cygwin* | mingw* | pw32* | cegcc*)
   4799     if test yes != "$GCC"; then
   4800       reload_cmds=false
   4801     fi
   4802     ;;
   4803   darwin*)
   4804     if test yes = "$GCC"; then
   4805       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   4806     else
   4807       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4808     fi
   4809     ;;
   4810 esac
   4811 
   4812 
   4813 
   4814 
   4815 
   4816 
   4817 
   4818 
   4819 
   4820 if test -n "$ac_tool_prefix"; then
   4821   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   4822 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4824 $as_echo_n "checking for $ac_word... " >&6; }
   4825 if ${ac_cv_prog_OBJDUMP+:} false; then :
   4826   $as_echo_n "(cached) " >&6
   4827 else
   4828   if test -n "$OBJDUMP"; then
   4829   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   4830 else
   4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4832 for as_dir in $PATH
   4833 do
   4834   IFS=$as_save_IFS
   4835   test -z "$as_dir" && as_dir=.
   4836     for ac_exec_ext in '' $ac_executable_extensions; do
   4837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4838     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   4839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4840     break 2
   4841   fi
   4842 done
   4843   done
   4844 IFS=$as_save_IFS
   4845 
   4846 fi
   4847 fi
   4848 OBJDUMP=$ac_cv_prog_OBJDUMP
   4849 if test -n "$OBJDUMP"; then
   4850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   4851 $as_echo "$OBJDUMP" >&6; }
   4852 else
   4853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4854 $as_echo "no" >&6; }
   4855 fi
   4856 
   4857 
   4858 fi
   4859 if test -z "$ac_cv_prog_OBJDUMP"; then
   4860   ac_ct_OBJDUMP=$OBJDUMP
   4861   # Extract the first word of "objdump", so it can be a program name with args.
   4862 set dummy objdump; ac_word=$2
   4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4864 $as_echo_n "checking for $ac_word... " >&6; }
   4865 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   4866   $as_echo_n "(cached) " >&6
   4867 else
   4868   if test -n "$ac_ct_OBJDUMP"; then
   4869   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   4870 else
   4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4872 for as_dir in $PATH
   4873 do
   4874   IFS=$as_save_IFS
   4875   test -z "$as_dir" && as_dir=.
   4876     for ac_exec_ext in '' $ac_executable_extensions; do
   4877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4878     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   4879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4880     break 2
   4881   fi
   4882 done
   4883   done
   4884 IFS=$as_save_IFS
   4885 
   4886 fi
   4887 fi
   4888 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   4889 if test -n "$ac_ct_OBJDUMP"; then
   4890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   4891 $as_echo "$ac_ct_OBJDUMP" >&6; }
   4892 else
   4893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4894 $as_echo "no" >&6; }
   4895 fi
   4896 
   4897   if test "x$ac_ct_OBJDUMP" = x; then
   4898     OBJDUMP="false"
   4899   else
   4900     case $cross_compiling:$ac_tool_warned in
   4901 yes:)
   4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4904 ac_tool_warned=yes ;;
   4905 esac
   4906     OBJDUMP=$ac_ct_OBJDUMP
   4907   fi
   4908 else
   4909   OBJDUMP="$ac_cv_prog_OBJDUMP"
   4910 fi
   4911 
   4912 test -z "$OBJDUMP" && OBJDUMP=objdump
   4913 
   4914 
   4915 
   4916 
   4917 
   4918 
   4919 
   4920 
   4921 
   4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   4923 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   4924 if ${lt_cv_deplibs_check_method+:} false; then :
   4925   $as_echo_n "(cached) " >&6
   4926 else
   4927   lt_cv_file_magic_cmd='$MAGIC_CMD'
   4928 lt_cv_file_magic_test_file=
   4929 lt_cv_deplibs_check_method='unknown'
   4930 # Need to set the preceding variable on all platforms that support
   4931 # interlibrary dependencies.
   4932 # 'none' -- dependencies not supported.
   4933 # 'unknown' -- same as none, but documents that we really don't know.
   4934 # 'pass_all' -- all dependencies passed with no checks.
   4935 # 'test_compile' -- check by making test program.
   4936 # 'file_magic [[regex]]' -- check by looking for files in library path
   4937 # that responds to the $file_magic_cmd with a given extended regex.
   4938 # If you have 'file' or equivalent on your system and you're not sure
   4939 # whether 'pass_all' will *always* work, you probably want this one.
   4940 
   4941 case $host_os in
   4942 aix[4-9]*)
   4943   lt_cv_deplibs_check_method=pass_all
   4944   ;;
   4945 
   4946 beos*)
   4947   lt_cv_deplibs_check_method=pass_all
   4948   ;;
   4949 
   4950 bsdi[45]*)
   4951   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   4952   lt_cv_file_magic_cmd='/usr/bin/file -L'
   4953   lt_cv_file_magic_test_file=/shlib/libc.so
   4954   ;;
   4955 
   4956 cygwin*)
   4957   # func_win32_libid is a shell function defined in ltmain.sh
   4958   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4959   lt_cv_file_magic_cmd='func_win32_libid'
   4960   ;;
   4961 
   4962 mingw* | pw32*)
   4963   # Base MSYS/MinGW do not provide the 'file' command needed by
   4964   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   4965   # unless we find 'file', for example because we are cross-compiling.
   4966   if ( file / ) >/dev/null 2>&1; then
   4967     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4968     lt_cv_file_magic_cmd='func_win32_libid'
   4969   else
   4970     # Keep this pattern in sync with the one in func_win32_libid.
   4971     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   4972     lt_cv_file_magic_cmd='$OBJDUMP -f'
   4973   fi
   4974   ;;
   4975 
   4976 cegcc*)
   4977   # use the weaker test based on 'objdump'. See mingw*.
   4978   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   4979   lt_cv_file_magic_cmd='$OBJDUMP -f'
   4980   ;;
   4981 
   4982 darwin* | rhapsody*)
   4983   lt_cv_deplibs_check_method=pass_all
   4984   ;;
   4985 
   4986 freebsd* | dragonfly*)
   4987   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   4988     case $host_cpu in
   4989     i*86 )
   4990       # Not sure whether the presence of OpenBSD here was a mistake.
   4991       # Let's accept both of them until this is cleared up.
   4992       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   4993       lt_cv_file_magic_cmd=/usr/bin/file
   4994       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   4995       ;;
   4996     esac
   4997   else
   4998     lt_cv_deplibs_check_method=pass_all
   4999   fi
   5000   ;;
   5001 
   5002 haiku*)
   5003   lt_cv_deplibs_check_method=pass_all
   5004   ;;
   5005 
   5006 hpux10.20* | hpux11*)
   5007   lt_cv_file_magic_cmd=/usr/bin/file
   5008   case $host_cpu in
   5009   ia64*)
   5010     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   5011     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   5012     ;;
   5013   hppa*64*)
   5014     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]'
   5015     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   5016     ;;
   5017   *)
   5018     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   5019     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   5020     ;;
   5021   esac
   5022   ;;
   5023 
   5024 interix[3-9]*)
   5025   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   5026   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   5027   ;;
   5028 
   5029 irix5* | irix6* | nonstopux*)
   5030   case $LD in
   5031   *-32|*"-32 ") libmagic=32-bit;;
   5032   *-n32|*"-n32 ") libmagic=N32;;
   5033   *-64|*"-64 ") libmagic=64-bit;;
   5034   *) libmagic=never-match;;
   5035   esac
   5036   lt_cv_deplibs_check_method=pass_all
   5037   ;;
   5038 
   5039 # This must be glibc/ELF.
   5040 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   5041   lt_cv_deplibs_check_method=pass_all
   5042   ;;
   5043 
   5044 netbsd*)
   5045   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   5046     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5047   else
   5048     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   5049   fi
   5050   ;;
   5051 
   5052 newos6*)
   5053   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   5054   lt_cv_file_magic_cmd=/usr/bin/file
   5055   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   5056   ;;
   5057 
   5058 *nto* | *qnx*)
   5059   lt_cv_deplibs_check_method=pass_all
   5060   ;;
   5061 
   5062 openbsd* | bitrig*)
   5063   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   5064     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   5065   else
   5066     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5067   fi
   5068   ;;
   5069 
   5070 osf3* | osf4* | osf5*)
   5071   lt_cv_deplibs_check_method=pass_all
   5072   ;;
   5073 
   5074 rdos*)
   5075   lt_cv_deplibs_check_method=pass_all
   5076   ;;
   5077 
   5078 solaris*)
   5079   lt_cv_deplibs_check_method=pass_all
   5080   ;;
   5081 
   5082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   5083   lt_cv_deplibs_check_method=pass_all
   5084   ;;
   5085 
   5086 sysv4 | sysv4.3*)
   5087   case $host_vendor in
   5088   motorola)
   5089     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]'
   5090     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   5091     ;;
   5092   ncr)
   5093     lt_cv_deplibs_check_method=pass_all
   5094     ;;
   5095   sequent)
   5096     lt_cv_file_magic_cmd='/bin/file'
   5097     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   5098     ;;
   5099   sni)
   5100     lt_cv_file_magic_cmd='/bin/file'
   5101     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   5102     lt_cv_file_magic_test_file=/lib/libc.so
   5103     ;;
   5104   siemens)
   5105     lt_cv_deplibs_check_method=pass_all
   5106     ;;
   5107   pc)
   5108     lt_cv_deplibs_check_method=pass_all
   5109     ;;
   5110   esac
   5111   ;;
   5112 
   5113 tpf*)
   5114   lt_cv_deplibs_check_method=pass_all
   5115   ;;
   5116 os2*)
   5117   lt_cv_deplibs_check_method=pass_all
   5118   ;;
   5119 esac
   5120 
   5121 fi
   5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   5123 $as_echo "$lt_cv_deplibs_check_method" >&6; }
   5124 
   5125 file_magic_glob=
   5126 want_nocaseglob=no
   5127 if test "$build" = "$host"; then
   5128   case $host_os in
   5129   mingw* | pw32*)
   5130     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   5131       want_nocaseglob=yes
   5132     else
   5133       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   5134     fi
   5135     ;;
   5136   esac
   5137 fi
   5138 
   5139 file_magic_cmd=$lt_cv_file_magic_cmd
   5140 deplibs_check_method=$lt_cv_deplibs_check_method
   5141 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   5142 
   5143 
   5144 
   5145 
   5146 
   5147 
   5148 
   5149 
   5150 
   5151 
   5152 
   5153 
   5154 
   5155 
   5156 
   5157 
   5158 
   5159 
   5160 
   5161 
   5162 
   5163 
   5164 if test -n "$ac_tool_prefix"; then
   5165   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   5166 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5168 $as_echo_n "checking for $ac_word... " >&6; }
   5169 if ${ac_cv_prog_DLLTOOL+:} false; then :
   5170   $as_echo_n "(cached) " >&6
   5171 else
   5172   if test -n "$DLLTOOL"; then
   5173   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   5174 else
   5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5176 for as_dir in $PATH
   5177 do
   5178   IFS=$as_save_IFS
   5179   test -z "$as_dir" && as_dir=.
   5180     for ac_exec_ext in '' $ac_executable_extensions; do
   5181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5182     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   5183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5184     break 2
   5185   fi
   5186 done
   5187   done
   5188 IFS=$as_save_IFS
   5189 
   5190 fi
   5191 fi
   5192 DLLTOOL=$ac_cv_prog_DLLTOOL
   5193 if test -n "$DLLTOOL"; then
   5194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   5195 $as_echo "$DLLTOOL" >&6; }
   5196 else
   5197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5198 $as_echo "no" >&6; }
   5199 fi
   5200 
   5201 
   5202 fi
   5203 if test -z "$ac_cv_prog_DLLTOOL"; then
   5204   ac_ct_DLLTOOL=$DLLTOOL
   5205   # Extract the first word of "dlltool", so it can be a program name with args.
   5206 set dummy dlltool; ac_word=$2
   5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5208 $as_echo_n "checking for $ac_word... " >&6; }
   5209 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   5210   $as_echo_n "(cached) " >&6
   5211 else
   5212   if test -n "$ac_ct_DLLTOOL"; then
   5213   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   5214 else
   5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5216 for as_dir in $PATH
   5217 do
   5218   IFS=$as_save_IFS
   5219   test -z "$as_dir" && as_dir=.
   5220     for ac_exec_ext in '' $ac_executable_extensions; do
   5221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5222     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   5223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5224     break 2
   5225   fi
   5226 done
   5227   done
   5228 IFS=$as_save_IFS
   5229 
   5230 fi
   5231 fi
   5232 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   5233 if test -n "$ac_ct_DLLTOOL"; then
   5234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   5235 $as_echo "$ac_ct_DLLTOOL" >&6; }
   5236 else
   5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5238 $as_echo "no" >&6; }
   5239 fi
   5240 
   5241   if test "x$ac_ct_DLLTOOL" = x; then
   5242     DLLTOOL="false"
   5243   else
   5244     case $cross_compiling:$ac_tool_warned in
   5245 yes:)
   5246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5248 ac_tool_warned=yes ;;
   5249 esac
   5250     DLLTOOL=$ac_ct_DLLTOOL
   5251   fi
   5252 else
   5253   DLLTOOL="$ac_cv_prog_DLLTOOL"
   5254 fi
   5255 
   5256 test -z "$DLLTOOL" && DLLTOOL=dlltool
   5257 
   5258 
   5259 
   5260 
   5261 
   5262 
   5263 
   5264 
   5265 
   5266 
   5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   5268 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
   5269 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
   5270   $as_echo_n "(cached) " >&6
   5271 else
   5272   lt_cv_sharedlib_from_linklib_cmd='unknown'
   5273 
   5274 case $host_os in
   5275 cygwin* | mingw* | pw32* | cegcc*)
   5276   # two different shell functions defined in ltmain.sh;
   5277   # decide which one to use based on capabilities of $DLLTOOL
   5278   case `$DLLTOOL --help 2>&1` in
   5279   *--identify-strict*)
   5280     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   5281     ;;
   5282   *)
   5283     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   5284     ;;
   5285   esac
   5286   ;;
   5287 *)
   5288   # fallback: assume linklib IS sharedlib
   5289   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   5290   ;;
   5291 esac
   5292 
   5293 fi
   5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   5295 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   5296 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   5297 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   5298 
   5299 
   5300 
   5301 
   5302 
   5303 
   5304 
   5305 if test -n "$ac_tool_prefix"; then
   5306   for ac_prog in ar
   5307   do
   5308     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5311 $as_echo_n "checking for $ac_word... " >&6; }
   5312 if ${ac_cv_prog_AR+:} false; then :
   5313   $as_echo_n "(cached) " >&6
   5314 else
   5315   if test -n "$AR"; then
   5316   ac_cv_prog_AR="$AR" # Let the user override the test.
   5317 else
   5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5319 for as_dir in $PATH
   5320 do
   5321   IFS=$as_save_IFS
   5322   test -z "$as_dir" && as_dir=.
   5323     for ac_exec_ext in '' $ac_executable_extensions; do
   5324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5325     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   5326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5327     break 2
   5328   fi
   5329 done
   5330   done
   5331 IFS=$as_save_IFS
   5332 
   5333 fi
   5334 fi
   5335 AR=$ac_cv_prog_AR
   5336 if test -n "$AR"; then
   5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   5338 $as_echo "$AR" >&6; }
   5339 else
   5340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5341 $as_echo "no" >&6; }
   5342 fi
   5343 
   5344 
   5345     test -n "$AR" && break
   5346   done
   5347 fi
   5348 if test -z "$AR"; then
   5349   ac_ct_AR=$AR
   5350   for ac_prog in ar
   5351 do
   5352   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5353 set dummy $ac_prog; ac_word=$2
   5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5355 $as_echo_n "checking for $ac_word... " >&6; }
   5356 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   5357   $as_echo_n "(cached) " >&6
   5358 else
   5359   if test -n "$ac_ct_AR"; then
   5360   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   5361 else
   5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5363 for as_dir in $PATH
   5364 do
   5365   IFS=$as_save_IFS
   5366   test -z "$as_dir" && as_dir=.
   5367     for ac_exec_ext in '' $ac_executable_extensions; do
   5368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5369     ac_cv_prog_ac_ct_AR="$ac_prog"
   5370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5371     break 2
   5372   fi
   5373 done
   5374   done
   5375 IFS=$as_save_IFS
   5376 
   5377 fi
   5378 fi
   5379 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   5380 if test -n "$ac_ct_AR"; then
   5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   5382 $as_echo "$ac_ct_AR" >&6; }
   5383 else
   5384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5385 $as_echo "no" >&6; }
   5386 fi
   5387 
   5388 
   5389   test -n "$ac_ct_AR" && break
   5390 done
   5391 
   5392   if test "x$ac_ct_AR" = x; then
   5393     AR="false"
   5394   else
   5395     case $cross_compiling:$ac_tool_warned in
   5396 yes:)
   5397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5399 ac_tool_warned=yes ;;
   5400 esac
   5401     AR=$ac_ct_AR
   5402   fi
   5403 fi
   5404 
   5405 : ${AR=ar}
   5406 : ${AR_FLAGS=cru}
   5407 
   5408 
   5409 
   5410 
   5411 
   5412 
   5413 
   5414 
   5415 
   5416 
   5417 
   5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   5419 $as_echo_n "checking for archiver @FILE support... " >&6; }
   5420 if ${lt_cv_ar_at_file+:} false; then :
   5421   $as_echo_n "(cached) " >&6
   5422 else
   5423   lt_cv_ar_at_file=no
   5424    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5425 /* end confdefs.h.  */
   5426 
   5427 int
   5428 main ()
   5429 {
   5430 
   5431   ;
   5432   return 0;
   5433 }
   5434 _ACEOF
   5435 if ac_fn_c_try_compile "$LINENO"; then :
   5436   echo conftest.$ac_objext > conftest.lst
   5437       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   5438       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5439   (eval $lt_ar_try) 2>&5
   5440   ac_status=$?
   5441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5442   test $ac_status = 0; }
   5443       if test 0 -eq "$ac_status"; then
   5444 	# Ensure the archiver fails upon bogus file names.
   5445 	rm -f conftest.$ac_objext libconftest.a
   5446 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5447   (eval $lt_ar_try) 2>&5
   5448   ac_status=$?
   5449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5450   test $ac_status = 0; }
   5451 	if test 0 -ne "$ac_status"; then
   5452           lt_cv_ar_at_file=@
   5453         fi
   5454       fi
   5455       rm -f conftest.* libconftest.a
   5456 
   5457 fi
   5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5459 
   5460 fi
   5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   5462 $as_echo "$lt_cv_ar_at_file" >&6; }
   5463 
   5464 if test no = "$lt_cv_ar_at_file"; then
   5465   archiver_list_spec=
   5466 else
   5467   archiver_list_spec=$lt_cv_ar_at_file
   5468 fi
   5469 
   5470 
   5471 
   5472 
   5473 
   5474 
   5475 
   5476 if test -n "$ac_tool_prefix"; then
   5477   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   5478 set dummy ${ac_tool_prefix}strip; ac_word=$2
   5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5480 $as_echo_n "checking for $ac_word... " >&6; }
   5481 if ${ac_cv_prog_STRIP+:} false; then :
   5482   $as_echo_n "(cached) " >&6
   5483 else
   5484   if test -n "$STRIP"; then
   5485   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   5486 else
   5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5488 for as_dir in $PATH
   5489 do
   5490   IFS=$as_save_IFS
   5491   test -z "$as_dir" && as_dir=.
   5492     for ac_exec_ext in '' $ac_executable_extensions; do
   5493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5494     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   5495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5496     break 2
   5497   fi
   5498 done
   5499   done
   5500 IFS=$as_save_IFS
   5501 
   5502 fi
   5503 fi
   5504 STRIP=$ac_cv_prog_STRIP
   5505 if test -n "$STRIP"; then
   5506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   5507 $as_echo "$STRIP" >&6; }
   5508 else
   5509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5510 $as_echo "no" >&6; }
   5511 fi
   5512 
   5513 
   5514 fi
   5515 if test -z "$ac_cv_prog_STRIP"; then
   5516   ac_ct_STRIP=$STRIP
   5517   # Extract the first word of "strip", so it can be a program name with args.
   5518 set dummy strip; ac_word=$2
   5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5520 $as_echo_n "checking for $ac_word... " >&6; }
   5521 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   5522   $as_echo_n "(cached) " >&6
   5523 else
   5524   if test -n "$ac_ct_STRIP"; then
   5525   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   5526 else
   5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5528 for as_dir in $PATH
   5529 do
   5530   IFS=$as_save_IFS
   5531   test -z "$as_dir" && as_dir=.
   5532     for ac_exec_ext in '' $ac_executable_extensions; do
   5533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5534     ac_cv_prog_ac_ct_STRIP="strip"
   5535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5536     break 2
   5537   fi
   5538 done
   5539   done
   5540 IFS=$as_save_IFS
   5541 
   5542 fi
   5543 fi
   5544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   5545 if test -n "$ac_ct_STRIP"; then
   5546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   5547 $as_echo "$ac_ct_STRIP" >&6; }
   5548 else
   5549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5550 $as_echo "no" >&6; }
   5551 fi
   5552 
   5553   if test "x$ac_ct_STRIP" = x; then
   5554     STRIP=":"
   5555   else
   5556     case $cross_compiling:$ac_tool_warned in
   5557 yes:)
   5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5560 ac_tool_warned=yes ;;
   5561 esac
   5562     STRIP=$ac_ct_STRIP
   5563   fi
   5564 else
   5565   STRIP="$ac_cv_prog_STRIP"
   5566 fi
   5567 
   5568 test -z "$STRIP" && STRIP=:
   5569 
   5570 
   5571 
   5572 
   5573 
   5574 
   5575 if test -n "$ac_tool_prefix"; then
   5576   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5577 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5579 $as_echo_n "checking for $ac_word... " >&6; }
   5580 if ${ac_cv_prog_RANLIB+:} false; then :
   5581   $as_echo_n "(cached) " >&6
   5582 else
   5583   if test -n "$RANLIB"; then
   5584   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5585 else
   5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5587 for as_dir in $PATH
   5588 do
   5589   IFS=$as_save_IFS
   5590   test -z "$as_dir" && as_dir=.
   5591     for ac_exec_ext in '' $ac_executable_extensions; do
   5592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5593     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5595     break 2
   5596   fi
   5597 done
   5598   done
   5599 IFS=$as_save_IFS
   5600 
   5601 fi
   5602 fi
   5603 RANLIB=$ac_cv_prog_RANLIB
   5604 if test -n "$RANLIB"; then
   5605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   5606 $as_echo "$RANLIB" >&6; }
   5607 else
   5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5609 $as_echo "no" >&6; }
   5610 fi
   5611 
   5612 
   5613 fi
   5614 if test -z "$ac_cv_prog_RANLIB"; then
   5615   ac_ct_RANLIB=$RANLIB
   5616   # Extract the first word of "ranlib", so it can be a program name with args.
   5617 set dummy ranlib; ac_word=$2
   5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5619 $as_echo_n "checking for $ac_word... " >&6; }
   5620 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   5621   $as_echo_n "(cached) " >&6
   5622 else
   5623   if test -n "$ac_ct_RANLIB"; then
   5624   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5625 else
   5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5627 for as_dir in $PATH
   5628 do
   5629   IFS=$as_save_IFS
   5630   test -z "$as_dir" && as_dir=.
   5631     for ac_exec_ext in '' $ac_executable_extensions; do
   5632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5633     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5635     break 2
   5636   fi
   5637 done
   5638   done
   5639 IFS=$as_save_IFS
   5640 
   5641 fi
   5642 fi
   5643 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5644 if test -n "$ac_ct_RANLIB"; then
   5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   5646 $as_echo "$ac_ct_RANLIB" >&6; }
   5647 else
   5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5649 $as_echo "no" >&6; }
   5650 fi
   5651 
   5652   if test "x$ac_ct_RANLIB" = x; then
   5653     RANLIB=":"
   5654   else
   5655     case $cross_compiling:$ac_tool_warned in
   5656 yes:)
   5657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5659 ac_tool_warned=yes ;;
   5660 esac
   5661     RANLIB=$ac_ct_RANLIB
   5662   fi
   5663 else
   5664   RANLIB="$ac_cv_prog_RANLIB"
   5665 fi
   5666 
   5667 test -z "$RANLIB" && RANLIB=:
   5668 
   5669 
   5670 
   5671 
   5672 
   5673 
   5674 # Determine commands to create old-style static archives.
   5675 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   5676 old_postinstall_cmds='chmod 644 $oldlib'
   5677 old_postuninstall_cmds=
   5678 
   5679 if test -n "$RANLIB"; then
   5680   case $host_os in
   5681   bitrig* | openbsd*)
   5682     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   5683     ;;
   5684   *)
   5685     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   5686     ;;
   5687   esac
   5688   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   5689 fi
   5690 
   5691 case $host_os in
   5692   darwin*)
   5693     lock_old_archive_extraction=yes ;;
   5694   *)
   5695     lock_old_archive_extraction=no ;;
   5696 esac
   5697 
   5698 
   5699 
   5700 
   5701 
   5702 
   5703 
   5704 
   5705 
   5706 
   5707 
   5708 
   5709 
   5710 
   5711 
   5712 
   5713 
   5714 
   5715 
   5716 
   5717 
   5718 for ac_prog in gawk mawk nawk awk
   5719 do
   5720   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5721 set dummy $ac_prog; ac_word=$2
   5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5723 $as_echo_n "checking for $ac_word... " >&6; }
   5724 if ${ac_cv_prog_AWK+:} false; then :
   5725   $as_echo_n "(cached) " >&6
   5726 else
   5727   if test -n "$AWK"; then
   5728   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   5729 else
   5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5731 for as_dir in $PATH
   5732 do
   5733   IFS=$as_save_IFS
   5734   test -z "$as_dir" && as_dir=.
   5735     for ac_exec_ext in '' $ac_executable_extensions; do
   5736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5737     ac_cv_prog_AWK="$ac_prog"
   5738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5739     break 2
   5740   fi
   5741 done
   5742   done
   5743 IFS=$as_save_IFS
   5744 
   5745 fi
   5746 fi
   5747 AWK=$ac_cv_prog_AWK
   5748 if test -n "$AWK"; then
   5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   5750 $as_echo "$AWK" >&6; }
   5751 else
   5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5753 $as_echo "no" >&6; }
   5754 fi
   5755 
   5756 
   5757   test -n "$AWK" && break
   5758 done
   5759 
   5760 
   5761 
   5762 
   5763 
   5764 
   5765 
   5766 
   5767 
   5768 
   5769 
   5770 
   5771 
   5772 
   5773 
   5774 
   5775 
   5776 
   5777 
   5778 # If no C compiler was specified, use CC.
   5779 LTCC=${LTCC-"$CC"}
   5780 
   5781 # If no C compiler flags were specified, use CFLAGS.
   5782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   5783 
   5784 # Allow CC to be a program name with arguments.
   5785 compiler=$CC
   5786 
   5787 
   5788 # Check for command to grab the raw symbol name followed by C symbol from nm.
   5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   5790 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   5791 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   5792   $as_echo_n "(cached) " >&6
   5793 else
   5794 
   5795 # These are sane defaults that work on at least a few old systems.
   5796 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   5797 
   5798 # Character class describing NM global symbol codes.
   5799 symcode='[BCDEGRST]'
   5800 
   5801 # Regexp to match symbols that can be accessed directly from C.
   5802 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   5803 
   5804 # Define system-specific variables.
   5805 case $host_os in
   5806 aix*)
   5807   symcode='[BCDT]'
   5808   ;;
   5809 cygwin* | mingw* | pw32* | cegcc*)
   5810   symcode='[ABCDGISTW]'
   5811   ;;
   5812 hpux*)
   5813   if test ia64 = "$host_cpu"; then
   5814     symcode='[ABCDEGRST]'
   5815   fi
   5816   ;;
   5817 irix* | nonstopux*)
   5818   symcode='[BCDEGRST]'
   5819   ;;
   5820 osf*)
   5821   symcode='[BCDEGQRST]'
   5822   ;;
   5823 solaris*)
   5824   symcode='[BDRT]'
   5825   ;;
   5826 sco3.2v5*)
   5827   symcode='[DT]'
   5828   ;;
   5829 sysv4.2uw2*)
   5830   symcode='[DT]'
   5831   ;;
   5832 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   5833   symcode='[ABDT]'
   5834   ;;
   5835 sysv4)
   5836   symcode='[DFNSTU]'
   5837   ;;
   5838 esac
   5839 
   5840 # If we're using GNU nm, then use its standard symbol codes.
   5841 case `$NM -V 2>&1` in
   5842 *GNU* | *'with BFD'*)
   5843   symcode='[ABCDGIRSTW]' ;;
   5844 esac
   5845 
   5846 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   5847   # Gets list of data symbols to import.
   5848   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
   5849   # Adjust the below global symbol transforms to fixup imported variables.
   5850   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   5851   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   5852   lt_c_name_lib_hook="\
   5853   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   5854   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   5855 else
   5856   # Disable hooks by default.
   5857   lt_cv_sys_global_symbol_to_import=
   5858   lt_cdecl_hook=
   5859   lt_c_name_hook=
   5860   lt_c_name_lib_hook=
   5861 fi
   5862 
   5863 # Transform an extracted symbol line into a proper C declaration.
   5864 # Some systems (esp. on ia64) link data and code symbols differently,
   5865 # so use this general approach.
   5866 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
   5867 $lt_cdecl_hook\
   5868 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   5869 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   5870 
   5871 # Transform an extracted symbol line into symbol name and symbol address
   5872 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
   5873 $lt_c_name_hook\
   5874 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   5875 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   5876 
   5877 # Transform an extracted symbol line into symbol name with lib prefix and
   5878 # symbol address.
   5879 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
   5880 $lt_c_name_lib_hook\
   5881 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   5882 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   5883 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   5884 
   5885 # Handle CRLF in mingw tool chain
   5886 opt_cr=
   5887 case $build_os in
   5888 mingw*)
   5889   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   5890   ;;
   5891 esac
   5892 
   5893 # Try without a prefix underscore, then with it.
   5894 for ac_symprfx in "" "_"; do
   5895 
   5896   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   5897   symxfrm="\\1 $ac_symprfx\\2 \\2"
   5898 
   5899   # Write the raw and C identifiers.
   5900   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   5901     # Fake it for dumpbin and say T for any non-static function,
   5902     # D for any global variable and I for any imported variable.
   5903     # Also find C++ and __fastcall symbols from MSVC++,
   5904     # which start with @ or ?.
   5905     lt_cv_sys_global_symbol_pipe="$AWK '"\
   5906 "     {last_section=section; section=\$ 3};"\
   5907 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   5908 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   5909 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   5910 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   5911 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   5912 "     \$ 0!~/External *\|/{next};"\
   5913 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   5914 "     {if(hide[section]) next};"\
   5915 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   5916 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   5917 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   5918 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   5919 "     ' prfx=^$ac_symprfx"
   5920   else
   5921     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   5922   fi
   5923   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   5924 
   5925   # Check to see that the pipe works correctly.
   5926   pipe_works=no
   5927 
   5928   rm -f conftest*
   5929   cat > conftest.$ac_ext <<_LT_EOF
   5930 #ifdef __cplusplus
   5931 extern "C" {
   5932 #endif
   5933 char nm_test_var;
   5934 void nm_test_func(void);
   5935 void nm_test_func(void){}
   5936 #ifdef __cplusplus
   5937 }
   5938 #endif
   5939 int main(){nm_test_var='a';nm_test_func();return(0);}
   5940 _LT_EOF
   5941 
   5942   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   5943   (eval $ac_compile) 2>&5
   5944   ac_status=$?
   5945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5946   test $ac_status = 0; }; then
   5947     # Now try to grab the symbols.
   5948     nlist=conftest.nm
   5949     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   5950   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   5951   ac_status=$?
   5952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5953   test $ac_status = 0; } && test -s "$nlist"; then
   5954       # Try sorting and uniquifying the output.
   5955       if sort "$nlist" | uniq > "$nlist"T; then
   5956 	mv -f "$nlist"T "$nlist"
   5957       else
   5958 	rm -f "$nlist"T
   5959       fi
   5960 
   5961       # Make sure that we snagged all the symbols we need.
   5962       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   5963 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   5964 	  cat <<_LT_EOF > conftest.$ac_ext
   5965 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   5966 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   5967 /* DATA imports from DLLs on WIN32 can't be const, because runtime
   5968    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   5969 # define LT_DLSYM_CONST
   5970 #elif defined __osf__
   5971 /* This system does not cope well with relocations in const data.  */
   5972 # define LT_DLSYM_CONST
   5973 #else
   5974 # define LT_DLSYM_CONST const
   5975 #endif
   5976 
   5977 #ifdef __cplusplus
   5978 extern "C" {
   5979 #endif
   5980 
   5981 _LT_EOF
   5982 	  # Now generate the symbol file.
   5983 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   5984 
   5985 	  cat <<_LT_EOF >> conftest.$ac_ext
   5986 
   5987 /* The mapping between symbol names and symbols.  */
   5988 LT_DLSYM_CONST struct {
   5989   const char *name;
   5990   void       *address;
   5991 }
   5992 lt__PROGRAM__LTX_preloaded_symbols[] =
   5993 {
   5994   { "@PROGRAM@", (void *) 0 },
   5995 _LT_EOF
   5996 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   5997 	  cat <<\_LT_EOF >> conftest.$ac_ext
   5998   {0, (void *) 0}
   5999 };
   6000 
   6001 /* This works around a problem in FreeBSD linker */
   6002 #ifdef FREEBSD_WORKAROUND
   6003 static const void *lt_preloaded_setup() {
   6004   return lt__PROGRAM__LTX_preloaded_symbols;
   6005 }
   6006 #endif
   6007 
   6008 #ifdef __cplusplus
   6009 }
   6010 #endif
   6011 _LT_EOF
   6012 	  # Now try linking the two files.
   6013 	  mv conftest.$ac_objext conftstm.$ac_objext
   6014 	  lt_globsym_save_LIBS=$LIBS
   6015 	  lt_globsym_save_CFLAGS=$CFLAGS
   6016 	  LIBS=conftstm.$ac_objext
   6017 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   6018 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   6019   (eval $ac_link) 2>&5
   6020   ac_status=$?
   6021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6022   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   6023 	    pipe_works=yes
   6024 	  fi
   6025 	  LIBS=$lt_globsym_save_LIBS
   6026 	  CFLAGS=$lt_globsym_save_CFLAGS
   6027 	else
   6028 	  echo "cannot find nm_test_func in $nlist" >&5
   6029 	fi
   6030       else
   6031 	echo "cannot find nm_test_var in $nlist" >&5
   6032       fi
   6033     else
   6034       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   6035     fi
   6036   else
   6037     echo "$progname: failed program was:" >&5
   6038     cat conftest.$ac_ext >&5
   6039   fi
   6040   rm -rf conftest* conftst*
   6041 
   6042   # Do not use the global_symbol_pipe unless it works.
   6043   if test yes = "$pipe_works"; then
   6044     break
   6045   else
   6046     lt_cv_sys_global_symbol_pipe=
   6047   fi
   6048 done
   6049 
   6050 fi
   6051 
   6052 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   6053   lt_cv_sys_global_symbol_to_cdecl=
   6054 fi
   6055 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   6056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6057 $as_echo "failed" >&6; }
   6058 else
   6059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   6060 $as_echo "ok" >&6; }
   6061 fi
   6062 
   6063 # Response file support.
   6064 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6065   nm_file_list_spec='@'
   6066 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   6067   nm_file_list_spec='@'
   6068 fi
   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 
   6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   6107 $as_echo_n "checking for sysroot... " >&6; }
   6108 
   6109 # Check whether --with-sysroot was given.
   6110 if test "${with_sysroot+set}" = set; then :
   6111   withval=$with_sysroot;
   6112 else
   6113   with_sysroot=no
   6114 fi
   6115 
   6116 
   6117 lt_sysroot=
   6118 case $with_sysroot in #(
   6119  yes)
   6120    if test yes = "$GCC"; then
   6121      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   6122    fi
   6123    ;; #(
   6124  /*)
   6125    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   6126    ;; #(
   6127  no|'')
   6128    ;; #(
   6129  *)
   6130    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
   6131 $as_echo "$with_sysroot" >&6; }
   6132    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   6133    ;;
   6134 esac
   6135 
   6136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   6137 $as_echo "${lt_sysroot:-no}" >&6; }
   6138 
   6139 
   6140 
   6141 
   6142 
   6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
   6144 $as_echo_n "checking for a working dd... " >&6; }
   6145 if ${ac_cv_path_lt_DD+:} false; then :
   6146   $as_echo_n "(cached) " >&6
   6147 else
   6148   printf 0123456789abcdef0123456789abcdef >conftest.i
   6149 cat conftest.i conftest.i >conftest2.i
   6150 : ${lt_DD:=$DD}
   6151 if test -z "$lt_DD"; then
   6152   ac_path_lt_DD_found=false
   6153   # Loop through the user's path and test for each of PROGNAME-LIST
   6154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6155 for as_dir in $PATH
   6156 do
   6157   IFS=$as_save_IFS
   6158   test -z "$as_dir" && as_dir=.
   6159     for ac_prog in dd; do
   6160     for ac_exec_ext in '' $ac_executable_extensions; do
   6161       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
   6162       as_fn_executable_p "$ac_path_lt_DD" || continue
   6163 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6164   cmp -s conftest.i conftest.out \
   6165   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   6166 fi
   6167       $ac_path_lt_DD_found && break 3
   6168     done
   6169   done
   6170   done
   6171 IFS=$as_save_IFS
   6172   if test -z "$ac_cv_path_lt_DD"; then
   6173     :
   6174   fi
   6175 else
   6176   ac_cv_path_lt_DD=$lt_DD
   6177 fi
   6178 
   6179 rm -f conftest.i conftest2.i conftest.out
   6180 fi
   6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
   6182 $as_echo "$ac_cv_path_lt_DD" >&6; }
   6183 
   6184 
   6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
   6186 $as_echo_n "checking how to truncate binary pipes... " >&6; }
   6187 if ${lt_cv_truncate_bin+:} false; then :
   6188   $as_echo_n "(cached) " >&6
   6189 else
   6190   printf 0123456789abcdef0123456789abcdef >conftest.i
   6191 cat conftest.i conftest.i >conftest2.i
   6192 lt_cv_truncate_bin=
   6193 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6194   cmp -s conftest.i conftest.out \
   6195   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   6196 fi
   6197 rm -f conftest.i conftest2.i conftest.out
   6198 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
   6199 fi
   6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
   6201 $as_echo "$lt_cv_truncate_bin" >&6; }
   6202 
   6203 
   6204 
   6205 
   6206 
   6207 
   6208 
   6209 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   6210 func_cc_basename ()
   6211 {
   6212     for cc_temp in $*""; do
   6213       case $cc_temp in
   6214         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   6215         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   6216         \-*) ;;
   6217         *) break;;
   6218       esac
   6219     done
   6220     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   6221 }
   6222 
   6223 # Check whether --enable-libtool-lock was given.
   6224 if test "${enable_libtool_lock+set}" = set; then :
   6225   enableval=$enable_libtool_lock;
   6226 fi
   6227 
   6228 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   6229 
   6230 # Some flags need to be propagated to the compiler or linker for good
   6231 # libtool support.
   6232 case $host in
   6233 ia64-*-hpux*)
   6234   # Find out what ABI is being produced by ac_compile, and set mode
   6235   # options accordingly.
   6236   echo 'int i;' > conftest.$ac_ext
   6237   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6238   (eval $ac_compile) 2>&5
   6239   ac_status=$?
   6240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6241   test $ac_status = 0; }; then
   6242     case `/usr/bin/file conftest.$ac_objext` in
   6243       *ELF-32*)
   6244 	HPUX_IA64_MODE=32
   6245 	;;
   6246       *ELF-64*)
   6247 	HPUX_IA64_MODE=64
   6248 	;;
   6249     esac
   6250   fi
   6251   rm -rf conftest*
   6252   ;;
   6253 *-*-irix6*)
   6254   # Find out what ABI is being produced by ac_compile, and set linker
   6255   # options accordingly.
   6256   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6257   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6258   (eval $ac_compile) 2>&5
   6259   ac_status=$?
   6260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6261   test $ac_status = 0; }; then
   6262     if test yes = "$lt_cv_prog_gnu_ld"; then
   6263       case `/usr/bin/file conftest.$ac_objext` in
   6264 	*32-bit*)
   6265 	  LD="${LD-ld} -melf32bsmip"
   6266 	  ;;
   6267 	*N32*)
   6268 	  LD="${LD-ld} -melf32bmipn32"
   6269 	  ;;
   6270 	*64-bit*)
   6271 	  LD="${LD-ld} -melf64bmip"
   6272 	;;
   6273       esac
   6274     else
   6275       case `/usr/bin/file conftest.$ac_objext` in
   6276 	*32-bit*)
   6277 	  LD="${LD-ld} -32"
   6278 	  ;;
   6279 	*N32*)
   6280 	  LD="${LD-ld} -n32"
   6281 	  ;;
   6282 	*64-bit*)
   6283 	  LD="${LD-ld} -64"
   6284 	  ;;
   6285       esac
   6286     fi
   6287   fi
   6288   rm -rf conftest*
   6289   ;;
   6290 
   6291 mips64*-*linux*)
   6292   # Find out what ABI is being produced by ac_compile, and set linker
   6293   # options accordingly.
   6294   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6295   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6296   (eval $ac_compile) 2>&5
   6297   ac_status=$?
   6298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6299   test $ac_status = 0; }; then
   6300     emul=elf
   6301     case `/usr/bin/file conftest.$ac_objext` in
   6302       *32-bit*)
   6303 	emul="${emul}32"
   6304 	;;
   6305       *64-bit*)
   6306 	emul="${emul}64"
   6307 	;;
   6308     esac
   6309     case `/usr/bin/file conftest.$ac_objext` in
   6310       *MSB*)
   6311 	emul="${emul}btsmip"
   6312 	;;
   6313       *LSB*)
   6314 	emul="${emul}ltsmip"
   6315 	;;
   6316     esac
   6317     case `/usr/bin/file conftest.$ac_objext` in
   6318       *N32*)
   6319 	emul="${emul}n32"
   6320 	;;
   6321     esac
   6322     LD="${LD-ld} -m $emul"
   6323   fi
   6324   rm -rf conftest*
   6325   ;;
   6326 
   6327 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   6328 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   6329   # Find out what ABI is being produced by ac_compile, and set linker
   6330   # options accordingly.  Note that the listed cases only cover the
   6331   # situations where additional linker options are needed (such as when
   6332   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   6333   # vice versa); the common cases where no linker options are needed do
   6334   # not appear in the list.
   6335   echo 'int i;' > conftest.$ac_ext
   6336   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6337   (eval $ac_compile) 2>&5
   6338   ac_status=$?
   6339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6340   test $ac_status = 0; }; then
   6341     case `/usr/bin/file conftest.o` in
   6342       *32-bit*)
   6343 	case $host in
   6344 	  x86_64-*kfreebsd*-gnu)
   6345 	    LD="${LD-ld} -m elf_i386_fbsd"
   6346 	    ;;
   6347 	  x86_64-*linux*)
   6348 	    case `/usr/bin/file conftest.o` in
   6349 	      *x86-64*)
   6350 		LD="${LD-ld} -m elf32_x86_64"
   6351 		;;
   6352 	      *)
   6353 		LD="${LD-ld} -m elf_i386"
   6354 		;;
   6355 	    esac
   6356 	    ;;
   6357 	  powerpc64le-*linux*)
   6358 	    LD="${LD-ld} -m elf32lppclinux"
   6359 	    ;;
   6360 	  powerpc64-*linux*)
   6361 	    LD="${LD-ld} -m elf32ppclinux"
   6362 	    ;;
   6363 	  s390x-*linux*)
   6364 	    LD="${LD-ld} -m elf_s390"
   6365 	    ;;
   6366 	  sparc64-*linux*)
   6367 	    LD="${LD-ld} -m elf32_sparc"
   6368 	    ;;
   6369 	esac
   6370 	;;
   6371       *64-bit*)
   6372 	case $host in
   6373 	  x86_64-*kfreebsd*-gnu)
   6374 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   6375 	    ;;
   6376 	  x86_64-*linux*)
   6377 	    LD="${LD-ld} -m elf_x86_64"
   6378 	    ;;
   6379 	  powerpcle-*linux*)
   6380 	    LD="${LD-ld} -m elf64lppc"
   6381 	    ;;
   6382 	  powerpc-*linux*)
   6383 	    LD="${LD-ld} -m elf64ppc"
   6384 	    ;;
   6385 	  s390*-*linux*|s390*-*tpf*)
   6386 	    LD="${LD-ld} -m elf64_s390"
   6387 	    ;;
   6388 	  sparc*-*linux*)
   6389 	    LD="${LD-ld} -m elf64_sparc"
   6390 	    ;;
   6391 	esac
   6392 	;;
   6393     esac
   6394   fi
   6395   rm -rf conftest*
   6396   ;;
   6397 
   6398 *-*-sco3.2v5*)
   6399   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   6400   SAVE_CFLAGS=$CFLAGS
   6401   CFLAGS="$CFLAGS -belf"
   6402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   6403 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   6404 if ${lt_cv_cc_needs_belf+:} false; then :
   6405   $as_echo_n "(cached) " >&6
   6406 else
   6407   ac_ext=c
   6408 ac_cpp='$CPP $CPPFLAGS'
   6409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6412 
   6413      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6414 /* end confdefs.h.  */
   6415 
   6416 int
   6417 main ()
   6418 {
   6419 
   6420   ;
   6421   return 0;
   6422 }
   6423 _ACEOF
   6424 if ac_fn_c_try_link "$LINENO"; then :
   6425   lt_cv_cc_needs_belf=yes
   6426 else
   6427   lt_cv_cc_needs_belf=no
   6428 fi
   6429 rm -f core conftest.err conftest.$ac_objext \
   6430     conftest$ac_exeext conftest.$ac_ext
   6431      ac_ext=c
   6432 ac_cpp='$CPP $CPPFLAGS'
   6433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6436 
   6437 fi
   6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   6439 $as_echo "$lt_cv_cc_needs_belf" >&6; }
   6440   if test yes != "$lt_cv_cc_needs_belf"; then
   6441     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   6442     CFLAGS=$SAVE_CFLAGS
   6443   fi
   6444   ;;
   6445 *-*solaris*)
   6446   # Find out what ABI is being produced by ac_compile, and set linker
   6447   # options accordingly.
   6448   echo 'int i;' > conftest.$ac_ext
   6449   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6450   (eval $ac_compile) 2>&5
   6451   ac_status=$?
   6452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6453   test $ac_status = 0; }; then
   6454     case `/usr/bin/file conftest.o` in
   6455     *64-bit*)
   6456       case $lt_cv_prog_gnu_ld in
   6457       yes*)
   6458         case $host in
   6459         i?86-*-solaris*|x86_64-*-solaris*)
   6460           LD="${LD-ld} -m elf_x86_64"
   6461           ;;
   6462         sparc*-*-solaris*)
   6463           LD="${LD-ld} -m elf64_sparc"
   6464           ;;
   6465         esac
   6466         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   6467         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   6468           LD=${LD-ld}_sol2
   6469         fi
   6470         ;;
   6471       *)
   6472 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   6473 	  LD="${LD-ld} -64"
   6474 	fi
   6475 	;;
   6476       esac
   6477       ;;
   6478     esac
   6479   fi
   6480   rm -rf conftest*
   6481   ;;
   6482 esac
   6483 
   6484 need_locks=$enable_libtool_lock
   6485 
   6486 if test -n "$ac_tool_prefix"; then
   6487   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   6488 set dummy ${ac_tool_prefix}mt; ac_word=$2
   6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6490 $as_echo_n "checking for $ac_word... " >&6; }
   6491 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
   6492   $as_echo_n "(cached) " >&6
   6493 else
   6494   if test -n "$MANIFEST_TOOL"; then
   6495   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   6496 else
   6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6498 for as_dir in $PATH
   6499 do
   6500   IFS=$as_save_IFS
   6501   test -z "$as_dir" && as_dir=.
   6502     for ac_exec_ext in '' $ac_executable_extensions; do
   6503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6504     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   6505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6506     break 2
   6507   fi
   6508 done
   6509   done
   6510 IFS=$as_save_IFS
   6511 
   6512 fi
   6513 fi
   6514 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   6515 if test -n "$MANIFEST_TOOL"; then
   6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   6517 $as_echo "$MANIFEST_TOOL" >&6; }
   6518 else
   6519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6520 $as_echo "no" >&6; }
   6521 fi
   6522 
   6523 
   6524 fi
   6525 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   6526   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   6527   # Extract the first word of "mt", so it can be a program name with args.
   6528 set dummy mt; ac_word=$2
   6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6530 $as_echo_n "checking for $ac_word... " >&6; }
   6531 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
   6532   $as_echo_n "(cached) " >&6
   6533 else
   6534   if test -n "$ac_ct_MANIFEST_TOOL"; then
   6535   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   6536 else
   6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6538 for as_dir in $PATH
   6539 do
   6540   IFS=$as_save_IFS
   6541   test -z "$as_dir" && as_dir=.
   6542     for ac_exec_ext in '' $ac_executable_extensions; do
   6543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6544     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   6545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6546     break 2
   6547   fi
   6548 done
   6549   done
   6550 IFS=$as_save_IFS
   6551 
   6552 fi
   6553 fi
   6554 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   6555 if test -n "$ac_ct_MANIFEST_TOOL"; then
   6556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   6557 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
   6558 else
   6559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6560 $as_echo "no" >&6; }
   6561 fi
   6562 
   6563   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   6564     MANIFEST_TOOL=":"
   6565   else
   6566     case $cross_compiling:$ac_tool_warned in
   6567 yes:)
   6568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6570 ac_tool_warned=yes ;;
   6571 esac
   6572     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   6573   fi
   6574 else
   6575   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   6576 fi
   6577 
   6578 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   6580 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   6581 if ${lt_cv_path_mainfest_tool+:} false; then :
   6582   $as_echo_n "(cached) " >&6
   6583 else
   6584   lt_cv_path_mainfest_tool=no
   6585   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   6586   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   6587   cat conftest.err >&5
   6588   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   6589     lt_cv_path_mainfest_tool=yes
   6590   fi
   6591   rm -f conftest*
   6592 fi
   6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   6594 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
   6595 if test yes != "$lt_cv_path_mainfest_tool"; then
   6596   MANIFEST_TOOL=:
   6597 fi
   6598 
   6599 
   6600 
   6601 
   6602 
   6603 
   6604   case $host_os in
   6605     rhapsody* | darwin*)
   6606     if test -n "$ac_tool_prefix"; then
   6607   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   6608 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6610 $as_echo_n "checking for $ac_word... " >&6; }
   6611 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   6612   $as_echo_n "(cached) " >&6
   6613 else
   6614   if test -n "$DSYMUTIL"; then
   6615   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   6616 else
   6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6618 for as_dir in $PATH
   6619 do
   6620   IFS=$as_save_IFS
   6621   test -z "$as_dir" && as_dir=.
   6622     for ac_exec_ext in '' $ac_executable_extensions; do
   6623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6624     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   6625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6626     break 2
   6627   fi
   6628 done
   6629   done
   6630 IFS=$as_save_IFS
   6631 
   6632 fi
   6633 fi
   6634 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   6635 if test -n "$DSYMUTIL"; then
   6636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   6637 $as_echo "$DSYMUTIL" >&6; }
   6638 else
   6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6640 $as_echo "no" >&6; }
   6641 fi
   6642 
   6643 
   6644 fi
   6645 if test -z "$ac_cv_prog_DSYMUTIL"; then
   6646   ac_ct_DSYMUTIL=$DSYMUTIL
   6647   # Extract the first word of "dsymutil", so it can be a program name with args.
   6648 set dummy dsymutil; ac_word=$2
   6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6650 $as_echo_n "checking for $ac_word... " >&6; }
   6651 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   6652   $as_echo_n "(cached) " >&6
   6653 else
   6654   if test -n "$ac_ct_DSYMUTIL"; then
   6655   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   6656 else
   6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6658 for as_dir in $PATH
   6659 do
   6660   IFS=$as_save_IFS
   6661   test -z "$as_dir" && as_dir=.
   6662     for ac_exec_ext in '' $ac_executable_extensions; do
   6663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6664     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   6665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6666     break 2
   6667   fi
   6668 done
   6669   done
   6670 IFS=$as_save_IFS
   6671 
   6672 fi
   6673 fi
   6674 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   6675 if test -n "$ac_ct_DSYMUTIL"; then
   6676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   6677 $as_echo "$ac_ct_DSYMUTIL" >&6; }
   6678 else
   6679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6680 $as_echo "no" >&6; }
   6681 fi
   6682 
   6683   if test "x$ac_ct_DSYMUTIL" = x; then
   6684     DSYMUTIL=":"
   6685   else
   6686     case $cross_compiling:$ac_tool_warned in
   6687 yes:)
   6688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6690 ac_tool_warned=yes ;;
   6691 esac
   6692     DSYMUTIL=$ac_ct_DSYMUTIL
   6693   fi
   6694 else
   6695   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   6696 fi
   6697 
   6698     if test -n "$ac_tool_prefix"; then
   6699   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   6700 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6702 $as_echo_n "checking for $ac_word... " >&6; }
   6703 if ${ac_cv_prog_NMEDIT+:} false; then :
   6704   $as_echo_n "(cached) " >&6
   6705 else
   6706   if test -n "$NMEDIT"; then
   6707   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   6708 else
   6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6710 for as_dir in $PATH
   6711 do
   6712   IFS=$as_save_IFS
   6713   test -z "$as_dir" && as_dir=.
   6714     for ac_exec_ext in '' $ac_executable_extensions; do
   6715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6716     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   6717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6718     break 2
   6719   fi
   6720 done
   6721   done
   6722 IFS=$as_save_IFS
   6723 
   6724 fi
   6725 fi
   6726 NMEDIT=$ac_cv_prog_NMEDIT
   6727 if test -n "$NMEDIT"; then
   6728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   6729 $as_echo "$NMEDIT" >&6; }
   6730 else
   6731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6732 $as_echo "no" >&6; }
   6733 fi
   6734 
   6735 
   6736 fi
   6737 if test -z "$ac_cv_prog_NMEDIT"; then
   6738   ac_ct_NMEDIT=$NMEDIT
   6739   # Extract the first word of "nmedit", so it can be a program name with args.
   6740 set dummy nmedit; ac_word=$2
   6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6742 $as_echo_n "checking for $ac_word... " >&6; }
   6743 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   6744   $as_echo_n "(cached) " >&6
   6745 else
   6746   if test -n "$ac_ct_NMEDIT"; then
   6747   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   6748 else
   6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6750 for as_dir in $PATH
   6751 do
   6752   IFS=$as_save_IFS
   6753   test -z "$as_dir" && as_dir=.
   6754     for ac_exec_ext in '' $ac_executable_extensions; do
   6755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6756     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   6757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6758     break 2
   6759   fi
   6760 done
   6761   done
   6762 IFS=$as_save_IFS
   6763 
   6764 fi
   6765 fi
   6766 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   6767 if test -n "$ac_ct_NMEDIT"; then
   6768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   6769 $as_echo "$ac_ct_NMEDIT" >&6; }
   6770 else
   6771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6772 $as_echo "no" >&6; }
   6773 fi
   6774 
   6775   if test "x$ac_ct_NMEDIT" = x; then
   6776     NMEDIT=":"
   6777   else
   6778     case $cross_compiling:$ac_tool_warned in
   6779 yes:)
   6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6782 ac_tool_warned=yes ;;
   6783 esac
   6784     NMEDIT=$ac_ct_NMEDIT
   6785   fi
   6786 else
   6787   NMEDIT="$ac_cv_prog_NMEDIT"
   6788 fi
   6789 
   6790     if test -n "$ac_tool_prefix"; then
   6791   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   6792 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6794 $as_echo_n "checking for $ac_word... " >&6; }
   6795 if ${ac_cv_prog_LIPO+:} false; then :
   6796   $as_echo_n "(cached) " >&6
   6797 else
   6798   if test -n "$LIPO"; then
   6799   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   6800 else
   6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6802 for as_dir in $PATH
   6803 do
   6804   IFS=$as_save_IFS
   6805   test -z "$as_dir" && as_dir=.
   6806     for ac_exec_ext in '' $ac_executable_extensions; do
   6807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6808     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   6809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6810     break 2
   6811   fi
   6812 done
   6813   done
   6814 IFS=$as_save_IFS
   6815 
   6816 fi
   6817 fi
   6818 LIPO=$ac_cv_prog_LIPO
   6819 if test -n "$LIPO"; then
   6820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   6821 $as_echo "$LIPO" >&6; }
   6822 else
   6823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6824 $as_echo "no" >&6; }
   6825 fi
   6826 
   6827 
   6828 fi
   6829 if test -z "$ac_cv_prog_LIPO"; then
   6830   ac_ct_LIPO=$LIPO
   6831   # Extract the first word of "lipo", so it can be a program name with args.
   6832 set dummy lipo; ac_word=$2
   6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6834 $as_echo_n "checking for $ac_word... " >&6; }
   6835 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   6836   $as_echo_n "(cached) " >&6
   6837 else
   6838   if test -n "$ac_ct_LIPO"; then
   6839   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   6840 else
   6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6842 for as_dir in $PATH
   6843 do
   6844   IFS=$as_save_IFS
   6845   test -z "$as_dir" && as_dir=.
   6846     for ac_exec_ext in '' $ac_executable_extensions; do
   6847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6848     ac_cv_prog_ac_ct_LIPO="lipo"
   6849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6850     break 2
   6851   fi
   6852 done
   6853   done
   6854 IFS=$as_save_IFS
   6855 
   6856 fi
   6857 fi
   6858 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   6859 if test -n "$ac_ct_LIPO"; then
   6860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   6861 $as_echo "$ac_ct_LIPO" >&6; }
   6862 else
   6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6864 $as_echo "no" >&6; }
   6865 fi
   6866 
   6867   if test "x$ac_ct_LIPO" = x; then
   6868     LIPO=":"
   6869   else
   6870     case $cross_compiling:$ac_tool_warned in
   6871 yes:)
   6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6874 ac_tool_warned=yes ;;
   6875 esac
   6876     LIPO=$ac_ct_LIPO
   6877   fi
   6878 else
   6879   LIPO="$ac_cv_prog_LIPO"
   6880 fi
   6881 
   6882     if test -n "$ac_tool_prefix"; then
   6883   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   6884 set dummy ${ac_tool_prefix}otool; ac_word=$2
   6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6886 $as_echo_n "checking for $ac_word... " >&6; }
   6887 if ${ac_cv_prog_OTOOL+:} false; then :
   6888   $as_echo_n "(cached) " >&6
   6889 else
   6890   if test -n "$OTOOL"; then
   6891   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   6892 else
   6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6894 for as_dir in $PATH
   6895 do
   6896   IFS=$as_save_IFS
   6897   test -z "$as_dir" && as_dir=.
   6898     for ac_exec_ext in '' $ac_executable_extensions; do
   6899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6900     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   6901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6902     break 2
   6903   fi
   6904 done
   6905   done
   6906 IFS=$as_save_IFS
   6907 
   6908 fi
   6909 fi
   6910 OTOOL=$ac_cv_prog_OTOOL
   6911 if test -n "$OTOOL"; then
   6912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   6913 $as_echo "$OTOOL" >&6; }
   6914 else
   6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6916 $as_echo "no" >&6; }
   6917 fi
   6918 
   6919 
   6920 fi
   6921 if test -z "$ac_cv_prog_OTOOL"; then
   6922   ac_ct_OTOOL=$OTOOL
   6923   # Extract the first word of "otool", so it can be a program name with args.
   6924 set dummy otool; ac_word=$2
   6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6926 $as_echo_n "checking for $ac_word... " >&6; }
   6927 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   6928   $as_echo_n "(cached) " >&6
   6929 else
   6930   if test -n "$ac_ct_OTOOL"; then
   6931   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   6932 else
   6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6934 for as_dir in $PATH
   6935 do
   6936   IFS=$as_save_IFS
   6937   test -z "$as_dir" && as_dir=.
   6938     for ac_exec_ext in '' $ac_executable_extensions; do
   6939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6940     ac_cv_prog_ac_ct_OTOOL="otool"
   6941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6942     break 2
   6943   fi
   6944 done
   6945   done
   6946 IFS=$as_save_IFS
   6947 
   6948 fi
   6949 fi
   6950 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   6951 if test -n "$ac_ct_OTOOL"; then
   6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   6953 $as_echo "$ac_ct_OTOOL" >&6; }
   6954 else
   6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6956 $as_echo "no" >&6; }
   6957 fi
   6958 
   6959   if test "x$ac_ct_OTOOL" = x; then
   6960     OTOOL=":"
   6961   else
   6962     case $cross_compiling:$ac_tool_warned in
   6963 yes:)
   6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6966 ac_tool_warned=yes ;;
   6967 esac
   6968     OTOOL=$ac_ct_OTOOL
   6969   fi
   6970 else
   6971   OTOOL="$ac_cv_prog_OTOOL"
   6972 fi
   6973 
   6974     if test -n "$ac_tool_prefix"; then
   6975   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   6976 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6978 $as_echo_n "checking for $ac_word... " >&6; }
   6979 if ${ac_cv_prog_OTOOL64+:} false; then :
   6980   $as_echo_n "(cached) " >&6
   6981 else
   6982   if test -n "$OTOOL64"; then
   6983   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   6984 else
   6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6986 for as_dir in $PATH
   6987 do
   6988   IFS=$as_save_IFS
   6989   test -z "$as_dir" && as_dir=.
   6990     for ac_exec_ext in '' $ac_executable_extensions; do
   6991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6992     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   6993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6994     break 2
   6995   fi
   6996 done
   6997   done
   6998 IFS=$as_save_IFS
   6999 
   7000 fi
   7001 fi
   7002 OTOOL64=$ac_cv_prog_OTOOL64
   7003 if test -n "$OTOOL64"; then
   7004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   7005 $as_echo "$OTOOL64" >&6; }
   7006 else
   7007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7008 $as_echo "no" >&6; }
   7009 fi
   7010 
   7011 
   7012 fi
   7013 if test -z "$ac_cv_prog_OTOOL64"; then
   7014   ac_ct_OTOOL64=$OTOOL64
   7015   # Extract the first word of "otool64", so it can be a program name with args.
   7016 set dummy otool64; ac_word=$2
   7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7018 $as_echo_n "checking for $ac_word... " >&6; }
   7019 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   7020   $as_echo_n "(cached) " >&6
   7021 else
   7022   if test -n "$ac_ct_OTOOL64"; then
   7023   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   7024 else
   7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7026 for as_dir in $PATH
   7027 do
   7028   IFS=$as_save_IFS
   7029   test -z "$as_dir" && as_dir=.
   7030     for ac_exec_ext in '' $ac_executable_extensions; do
   7031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7032     ac_cv_prog_ac_ct_OTOOL64="otool64"
   7033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7034     break 2
   7035   fi
   7036 done
   7037   done
   7038 IFS=$as_save_IFS
   7039 
   7040 fi
   7041 fi
   7042 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   7043 if test -n "$ac_ct_OTOOL64"; then
   7044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   7045 $as_echo "$ac_ct_OTOOL64" >&6; }
   7046 else
   7047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7048 $as_echo "no" >&6; }
   7049 fi
   7050 
   7051   if test "x$ac_ct_OTOOL64" = x; then
   7052     OTOOL64=":"
   7053   else
   7054     case $cross_compiling:$ac_tool_warned in
   7055 yes:)
   7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7058 ac_tool_warned=yes ;;
   7059 esac
   7060     OTOOL64=$ac_ct_OTOOL64
   7061   fi
   7062 else
   7063   OTOOL64="$ac_cv_prog_OTOOL64"
   7064 fi
   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 
   7092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   7093 $as_echo_n "checking for -single_module linker flag... " >&6; }
   7094 if ${lt_cv_apple_cc_single_mod+:} false; then :
   7095   $as_echo_n "(cached) " >&6
   7096 else
   7097   lt_cv_apple_cc_single_mod=no
   7098       if test -z "$LT_MULTI_MODULE"; then
   7099 	# By default we will add the -single_module flag. You can override
   7100 	# by either setting the environment variable LT_MULTI_MODULE
   7101 	# non-empty at configure time, or by adding -multi_module to the
   7102 	# link flags.
   7103 	rm -rf libconftest.dylib*
   7104 	echo "int foo(void){return 1;}" > conftest.c
   7105 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7106 -dynamiclib -Wl,-single_module conftest.c" >&5
   7107 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7108 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   7109         _lt_result=$?
   7110 	# If there is a non-empty error log, and "single_module"
   7111 	# appears in it, assume the flag caused a linker warning
   7112         if test -s conftest.err && $GREP single_module conftest.err; then
   7113 	  cat conftest.err >&5
   7114 	# Otherwise, if the output was created with a 0 exit code from
   7115 	# the compiler, it worked.
   7116 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   7117 	  lt_cv_apple_cc_single_mod=yes
   7118 	else
   7119 	  cat conftest.err >&5
   7120 	fi
   7121 	rm -rf libconftest.dylib*
   7122 	rm -f conftest.*
   7123       fi
   7124 fi
   7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   7126 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   7127 
   7128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   7129 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   7130 if ${lt_cv_ld_exported_symbols_list+:} false; then :
   7131   $as_echo_n "(cached) " >&6
   7132 else
   7133   lt_cv_ld_exported_symbols_list=no
   7134       save_LDFLAGS=$LDFLAGS
   7135       echo "_main" > conftest.sym
   7136       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   7137       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7138 /* end confdefs.h.  */
   7139 
   7140 int
   7141 main ()
   7142 {
   7143 
   7144   ;
   7145   return 0;
   7146 }
   7147 _ACEOF
   7148 if ac_fn_c_try_link "$LINENO"; then :
   7149   lt_cv_ld_exported_symbols_list=yes
   7150 else
   7151   lt_cv_ld_exported_symbols_list=no
   7152 fi
   7153 rm -f core conftest.err conftest.$ac_objext \
   7154     conftest$ac_exeext conftest.$ac_ext
   7155 	LDFLAGS=$save_LDFLAGS
   7156 
   7157 fi
   7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   7159 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   7160 
   7161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   7162 $as_echo_n "checking for -force_load linker flag... " >&6; }
   7163 if ${lt_cv_ld_force_load+:} false; then :
   7164   $as_echo_n "(cached) " >&6
   7165 else
   7166   lt_cv_ld_force_load=no
   7167       cat > conftest.c << _LT_EOF
   7168 int forced_loaded() { return 2;}
   7169 _LT_EOF
   7170       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   7171       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   7172       echo "$AR cru libconftest.a conftest.o" >&5
   7173       $AR cru libconftest.a conftest.o 2>&5
   7174       echo "$RANLIB libconftest.a" >&5
   7175       $RANLIB libconftest.a 2>&5
   7176       cat > conftest.c << _LT_EOF
   7177 int main() { return 0;}
   7178 _LT_EOF
   7179       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   7180       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   7181       _lt_result=$?
   7182       if test -s conftest.err && $GREP force_load conftest.err; then
   7183 	cat conftest.err >&5
   7184       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   7185 	lt_cv_ld_force_load=yes
   7186       else
   7187 	cat conftest.err >&5
   7188       fi
   7189         rm -f conftest.err libconftest.a conftest conftest.c
   7190         rm -rf conftest.dSYM
   7191 
   7192 fi
   7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   7194 $as_echo "$lt_cv_ld_force_load" >&6; }
   7195     case $host_os in
   7196     rhapsody* | darwin1.[012])
   7197       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   7198     darwin1.*)
   7199       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7200     darwin*) # darwin 5.x on
   7201       # if running on 10.5 or later, the deployment target defaults
   7202       # to the OS version, if on x86, and 10.4, the deployment
   7203       # target defaults to 10.4. Don't you love it?
   7204       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   7205 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   7206 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7207 	10.[012][,.]*)
   7208 	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7209 	10.*)
   7210 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7211       esac
   7212     ;;
   7213   esac
   7214     if test yes = "$lt_cv_apple_cc_single_mod"; then
   7215       _lt_dar_single_mod='$single_module'
   7216     fi
   7217     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   7218       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   7219     else
   7220       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   7221     fi
   7222     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   7223       _lt_dsymutil='~$DSYMUTIL $lib || :'
   7224     else
   7225       _lt_dsymutil=
   7226     fi
   7227     ;;
   7228   esac
   7229 
   7230 # func_munge_path_list VARIABLE PATH
   7231 # -----------------------------------
   7232 # VARIABLE is name of variable containing _space_ separated list of
   7233 # directories to be munged by the contents of PATH, which is string
   7234 # having a format:
   7235 # "DIR[:DIR]:"
   7236 #       string "DIR[ DIR]" will be prepended to VARIABLE
   7237 # ":DIR[:DIR]"
   7238 #       string "DIR[ DIR]" will be appended to VARIABLE
   7239 # "DIRP[:DIRP]::[DIRA:]DIRA"
   7240 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   7241 #       "DIRA[ DIRA]" will be appended to VARIABLE
   7242 # "DIR[:DIR]"
   7243 #       VARIABLE will be replaced by "DIR[ DIR]"
   7244 func_munge_path_list ()
   7245 {
   7246     case x$2 in
   7247     x)
   7248         ;;
   7249     *:)
   7250         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   7251         ;;
   7252     x:*)
   7253         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   7254         ;;
   7255     *::*)
   7256         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   7257         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   7258         ;;
   7259     *)
   7260         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   7261         ;;
   7262     esac
   7263 }
   7264 
   7265 for ac_header in dlfcn.h
   7266 do :
   7267   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   7268 "
   7269 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   7270   cat >>confdefs.h <<_ACEOF
   7271 #define HAVE_DLFCN_H 1
   7272 _ACEOF
   7273 
   7274 fi
   7275 
   7276 done
   7277 
   7278 
   7279 
   7280 
   7281 
   7282 # Set options
   7283 
   7284 
   7285 
   7286         enable_dlopen=no
   7287 
   7288 
   7289   enable_win32_dll=no
   7290 
   7291 
   7292             # Check whether --enable-shared was given.
   7293 if test "${enable_shared+set}" = set; then :
   7294   enableval=$enable_shared; p=${PACKAGE-default}
   7295     case $enableval in
   7296     yes) enable_shared=yes ;;
   7297     no) enable_shared=no ;;
   7298     *)
   7299       enable_shared=no
   7300       # Look at the argument we got.  We use all the common list separators.
   7301       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7302       for pkg in $enableval; do
   7303 	IFS=$lt_save_ifs
   7304 	if test "X$pkg" = "X$p"; then
   7305 	  enable_shared=yes
   7306 	fi
   7307       done
   7308       IFS=$lt_save_ifs
   7309       ;;
   7310     esac
   7311 else
   7312   enable_shared=yes
   7313 fi
   7314 
   7315 
   7316 
   7317 
   7318 
   7319 
   7320 
   7321 
   7322 
   7323   # Check whether --enable-static was given.
   7324 if test "${enable_static+set}" = set; then :
   7325   enableval=$enable_static; p=${PACKAGE-default}
   7326     case $enableval in
   7327     yes) enable_static=yes ;;
   7328     no) enable_static=no ;;
   7329     *)
   7330      enable_static=no
   7331       # Look at the argument we got.  We use all the common list separators.
   7332       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7333       for pkg in $enableval; do
   7334 	IFS=$lt_save_ifs
   7335 	if test "X$pkg" = "X$p"; then
   7336 	  enable_static=yes
   7337 	fi
   7338       done
   7339       IFS=$lt_save_ifs
   7340       ;;
   7341     esac
   7342 else
   7343   enable_static=yes
   7344 fi
   7345 
   7346 
   7347 
   7348 
   7349 
   7350 
   7351 
   7352 
   7353 
   7354 
   7355 # Check whether --with-pic was given.
   7356 if test "${with_pic+set}" = set; then :
   7357   withval=$with_pic; lt_p=${PACKAGE-default}
   7358     case $withval in
   7359     yes|no) pic_mode=$withval ;;
   7360     *)
   7361       pic_mode=default
   7362       # Look at the argument we got.  We use all the common list separators.
   7363       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7364       for lt_pkg in $withval; do
   7365 	IFS=$lt_save_ifs
   7366 	if test "X$lt_pkg" = "X$lt_p"; then
   7367 	  pic_mode=yes
   7368 	fi
   7369       done
   7370       IFS=$lt_save_ifs
   7371       ;;
   7372     esac
   7373 else
   7374   pic_mode=default
   7375 fi
   7376 
   7377 
   7378 
   7379 
   7380 
   7381 
   7382 
   7383 
   7384   # Check whether --enable-fast-install was given.
   7385 if test "${enable_fast_install+set}" = set; then :
   7386   enableval=$enable_fast_install; p=${PACKAGE-default}
   7387     case $enableval in
   7388     yes) enable_fast_install=yes ;;
   7389     no) enable_fast_install=no ;;
   7390     *)
   7391       enable_fast_install=no
   7392       # Look at the argument we got.  We use all the common list separators.
   7393       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7394       for pkg in $enableval; do
   7395 	IFS=$lt_save_ifs
   7396 	if test "X$pkg" = "X$p"; then
   7397 	  enable_fast_install=yes
   7398 	fi
   7399       done
   7400       IFS=$lt_save_ifs
   7401       ;;
   7402     esac
   7403 else
   7404   enable_fast_install=yes
   7405 fi
   7406 
   7407 
   7408 
   7409 
   7410 
   7411 
   7412 
   7413 
   7414   shared_archive_member_spec=
   7415 case $host,$enable_shared in
   7416 power*-*-aix[5-9]*,yes)
   7417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   7418 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
   7419 
   7420 # Check whether --with-aix-soname was given.
   7421 if test "${with_aix_soname+set}" = set; then :
   7422   withval=$with_aix_soname; case $withval in
   7423     aix|svr4|both)
   7424       ;;
   7425     *)
   7426       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   7427       ;;
   7428     esac
   7429     lt_cv_with_aix_soname=$with_aix_soname
   7430 else
   7431   if ${lt_cv_with_aix_soname+:} false; then :
   7432   $as_echo_n "(cached) " >&6
   7433 else
   7434   lt_cv_with_aix_soname=aix
   7435 fi
   7436 
   7437     with_aix_soname=$lt_cv_with_aix_soname
   7438 fi
   7439 
   7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   7441 $as_echo "$with_aix_soname" >&6; }
   7442   if test aix != "$with_aix_soname"; then
   7443     # For the AIX way of multilib, we name the shared archive member
   7444     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   7445     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   7446     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   7447     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   7448     if test 64 = "${OBJECT_MODE-32}"; then
   7449       shared_archive_member_spec=shr_64
   7450     else
   7451       shared_archive_member_spec=shr
   7452     fi
   7453   fi
   7454   ;;
   7455 *)
   7456   with_aix_soname=aix
   7457   ;;
   7458 esac
   7459 
   7460 
   7461 
   7462 
   7463 
   7464 
   7465 
   7466 
   7467 
   7468 
   7469 # This can be used to rebuild libtool when needed
   7470 LIBTOOL_DEPS=$ltmain
   7471 
   7472 # Always use our own libtool.
   7473 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   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 
   7504 test -z "$LN_S" && LN_S="ln -s"
   7505 
   7506 
   7507 
   7508 
   7509 
   7510 
   7511 
   7512 
   7513 
   7514 
   7515 
   7516 
   7517 
   7518 
   7519 if test -n "${ZSH_VERSION+set}"; then
   7520    setopt NO_GLOB_SUBST
   7521 fi
   7522 
   7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   7524 $as_echo_n "checking for objdir... " >&6; }
   7525 if ${lt_cv_objdir+:} false; then :
   7526   $as_echo_n "(cached) " >&6
   7527 else
   7528   rm -f .libs 2>/dev/null
   7529 mkdir .libs 2>/dev/null
   7530 if test -d .libs; then
   7531   lt_cv_objdir=.libs
   7532 else
   7533   # MS-DOS does not allow filenames that begin with a dot.
   7534   lt_cv_objdir=_libs
   7535 fi
   7536 rmdir .libs 2>/dev/null
   7537 fi
   7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   7539 $as_echo "$lt_cv_objdir" >&6; }
   7540 objdir=$lt_cv_objdir
   7541 
   7542 
   7543 
   7544 
   7545 
   7546 cat >>confdefs.h <<_ACEOF
   7547 #define LT_OBJDIR "$lt_cv_objdir/"
   7548 _ACEOF
   7549 
   7550 
   7551 
   7552 
   7553 case $host_os in
   7554 aix3*)
   7555   # AIX sometimes has problems with the GCC collect2 program.  For some
   7556   # reason, if we set the COLLECT_NAMES environment variable, the problems
   7557   # vanish in a puff of smoke.
   7558   if test set != "${COLLECT_NAMES+set}"; then
   7559     COLLECT_NAMES=
   7560     export COLLECT_NAMES
   7561   fi
   7562   ;;
   7563 esac
   7564 
   7565 # Global variables:
   7566 ofile=libtool
   7567 can_build_shared=yes
   7568 
   7569 # All known linkers require a '.a' archive for static linking (except MSVC,
   7570 # which needs '.lib').
   7571 libext=a
   7572 
   7573 with_gnu_ld=$lt_cv_prog_gnu_ld
   7574 
   7575 old_CC=$CC
   7576 old_CFLAGS=$CFLAGS
   7577 
   7578 # Set sane defaults for various variables
   7579 test -z "$CC" && CC=cc
   7580 test -z "$LTCC" && LTCC=$CC
   7581 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   7582 test -z "$LD" && LD=ld
   7583 test -z "$ac_objext" && ac_objext=o
   7584 
   7585 func_cc_basename $compiler
   7586 cc_basename=$func_cc_basename_result
   7587 
   7588 
   7589 # Only perform the check for file, if the check method requires it
   7590 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   7591 case $deplibs_check_method in
   7592 file_magic*)
   7593   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   7594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   7595 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   7596 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7597   $as_echo_n "(cached) " >&6
   7598 else
   7599   case $MAGIC_CMD in
   7600 [\\/*] |  ?:[\\/]*)
   7601   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   7602   ;;
   7603 *)
   7604   lt_save_MAGIC_CMD=$MAGIC_CMD
   7605   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7606   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7607   for ac_dir in $ac_dummy; do
   7608     IFS=$lt_save_ifs
   7609     test -z "$ac_dir" && ac_dir=.
   7610     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   7611       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   7612       if test -n "$file_magic_test_file"; then
   7613 	case $deplibs_check_method in
   7614 	"file_magic "*)
   7615 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7616 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7617 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7618 	    $EGREP "$file_magic_regex" > /dev/null; then
   7619 	    :
   7620 	  else
   7621 	    cat <<_LT_EOF 1>&2
   7622 
   7623 *** Warning: the command libtool uses to detect shared libraries,
   7624 *** $file_magic_cmd, produces output that libtool cannot recognize.
   7625 *** The result is that libtool may fail to recognize shared libraries
   7626 *** as such.  This will affect the creation of libtool libraries that
   7627 *** depend on shared libraries, but programs linked with such libtool
   7628 *** libraries will work regardless of this problem.  Nevertheless, you
   7629 *** may want to report the problem to your system manager and/or to
   7630 *** bug-libtool (at] gnu.org
   7631 
   7632 _LT_EOF
   7633 	  fi ;;
   7634 	esac
   7635       fi
   7636       break
   7637     fi
   7638   done
   7639   IFS=$lt_save_ifs
   7640   MAGIC_CMD=$lt_save_MAGIC_CMD
   7641   ;;
   7642 esac
   7643 fi
   7644 
   7645 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7646 if test -n "$MAGIC_CMD"; then
   7647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   7648 $as_echo "$MAGIC_CMD" >&6; }
   7649 else
   7650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7651 $as_echo "no" >&6; }
   7652 fi
   7653 
   7654 
   7655 
   7656 
   7657 
   7658 if test -z "$lt_cv_path_MAGIC_CMD"; then
   7659   if test -n "$ac_tool_prefix"; then
   7660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   7661 $as_echo_n "checking for file... " >&6; }
   7662 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7663   $as_echo_n "(cached) " >&6
   7664 else
   7665   case $MAGIC_CMD in
   7666 [\\/*] |  ?:[\\/]*)
   7667   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   7668   ;;
   7669 *)
   7670   lt_save_MAGIC_CMD=$MAGIC_CMD
   7671   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7672   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7673   for ac_dir in $ac_dummy; do
   7674     IFS=$lt_save_ifs
   7675     test -z "$ac_dir" && ac_dir=.
   7676     if test -f "$ac_dir/file"; then
   7677       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   7678       if test -n "$file_magic_test_file"; then
   7679 	case $deplibs_check_method in
   7680 	"file_magic "*)
   7681 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7682 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7683 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7684 	    $EGREP "$file_magic_regex" > /dev/null; then
   7685 	    :
   7686 	  else
   7687 	    cat <<_LT_EOF 1>&2
   7688 
   7689 *** Warning: the command libtool uses to detect shared libraries,
   7690 *** $file_magic_cmd, produces output that libtool cannot recognize.
   7691 *** The result is that libtool may fail to recognize shared libraries
   7692 *** as such.  This will affect the creation of libtool libraries that
   7693 *** depend on shared libraries, but programs linked with such libtool
   7694 *** libraries will work regardless of this problem.  Nevertheless, you
   7695 *** may want to report the problem to your system manager and/or to
   7696 *** bug-libtool (at] gnu.org
   7697 
   7698 _LT_EOF
   7699 	  fi ;;
   7700 	esac
   7701       fi
   7702       break
   7703     fi
   7704   done
   7705   IFS=$lt_save_ifs
   7706   MAGIC_CMD=$lt_save_MAGIC_CMD
   7707   ;;
   7708 esac
   7709 fi
   7710 
   7711 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7712 if test -n "$MAGIC_CMD"; then
   7713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   7714 $as_echo "$MAGIC_CMD" >&6; }
   7715 else
   7716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7717 $as_echo "no" >&6; }
   7718 fi
   7719 
   7720 
   7721   else
   7722     MAGIC_CMD=:
   7723   fi
   7724 fi
   7725 
   7726   fi
   7727   ;;
   7728 esac
   7729 
   7730 # Use C for the default configuration in the libtool script
   7731 
   7732 lt_save_CC=$CC
   7733 ac_ext=c
   7734 ac_cpp='$CPP $CPPFLAGS'
   7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7738 
   7739 
   7740 # Source file extension for C test sources.
   7741 ac_ext=c
   7742 
   7743 # Object file extension for compiled C test sources.
   7744 objext=o
   7745 objext=$objext
   7746 
   7747 # Code to be used in simple compile tests
   7748 lt_simple_compile_test_code="int some_variable = 0;"
   7749 
   7750 # Code to be used in simple link tests
   7751 lt_simple_link_test_code='int main(){return(0);}'
   7752 
   7753 
   7754 
   7755 
   7756 
   7757 
   7758 
   7759 # If no C compiler was specified, use CC.
   7760 LTCC=${LTCC-"$CC"}
   7761 
   7762 # If no C compiler flags were specified, use CFLAGS.
   7763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   7764 
   7765 # Allow CC to be a program name with arguments.
   7766 compiler=$CC
   7767 
   7768 # Save the default compiler, since it gets overwritten when the other
   7769 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   7770 compiler_DEFAULT=$CC
   7771 
   7772 # save warnings/boilerplate of simple test code
   7773 ac_outfile=conftest.$ac_objext
   7774 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   7775 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   7776 _lt_compiler_boilerplate=`cat conftest.err`
   7777 $RM conftest*
   7778 
   7779 ac_outfile=conftest.$ac_objext
   7780 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   7781 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   7782 _lt_linker_boilerplate=`cat conftest.err`
   7783 $RM -r conftest*
   7784 
   7785 
   7786 ## CAVEAT EMPTOR:
   7787 ## There is no encapsulation within the following macros, do not change
   7788 ## the running order or otherwise move them around unless you know exactly
   7789 ## what you are doing...
   7790 if test -n "$compiler"; then
   7791 
   7792 lt_prog_compiler_no_builtin_flag=
   7793 
   7794 if test yes = "$GCC"; then
   7795   case $cc_basename in
   7796   nvcc*)
   7797     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   7798   *)
   7799     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   7800   esac
   7801 
   7802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   7803 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   7804 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   7805   $as_echo_n "(cached) " >&6
   7806 else
   7807   lt_cv_prog_compiler_rtti_exceptions=no
   7808    ac_outfile=conftest.$ac_objext
   7809    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   7810    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   7811    # Insert the option either (1) after the last *FLAGS variable, or
   7812    # (2) before a word containing "conftest.", or (3) at the end.
   7813    # Note that $ac_compile itself does not contain backslashes and begins
   7814    # with a dollar sign (not a hyphen), so the echo should work correctly.
   7815    # The option is referenced via a variable to avoid confusing sed.
   7816    lt_compile=`echo "$ac_compile" | $SED \
   7817    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   7818    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   7819    -e 's:$: $lt_compiler_flag:'`
   7820    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   7821    (eval "$lt_compile" 2>conftest.err)
   7822    ac_status=$?
   7823    cat conftest.err >&5
   7824    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7825    if (exit $ac_status) && test -s "$ac_outfile"; then
   7826      # The compiler can only warn and ignore the option if not recognized
   7827      # So say no if there are warnings other than the usual output.
   7828      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   7829      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   7830      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   7831        lt_cv_prog_compiler_rtti_exceptions=yes
   7832      fi
   7833    fi
   7834    $RM conftest*
   7835 
   7836 fi
   7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   7838 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   7839 
   7840 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   7841     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   7842 else
   7843     :
   7844 fi
   7845 
   7846 fi
   7847 
   7848 
   7849 
   7850 
   7851 
   7852 
   7853   lt_prog_compiler_wl=
   7854 lt_prog_compiler_pic=
   7855 lt_prog_compiler_static=
   7856 
   7857 
   7858   if test yes = "$GCC"; then
   7859     lt_prog_compiler_wl='-Wl,'
   7860     lt_prog_compiler_static='-static'
   7861 
   7862     case $host_os in
   7863       aix*)
   7864       # All AIX code is PIC.
   7865       if test ia64 = "$host_cpu"; then
   7866 	# AIX 5 now supports IA64 processor
   7867 	lt_prog_compiler_static='-Bstatic'
   7868       fi
   7869       lt_prog_compiler_pic='-fPIC'
   7870       ;;
   7871 
   7872     amigaos*)
   7873       case $host_cpu in
   7874       powerpc)
   7875             # see comment about AmigaOS4 .so support
   7876             lt_prog_compiler_pic='-fPIC'
   7877         ;;
   7878       m68k)
   7879             # FIXME: we need at least 68020 code to build shared libraries, but
   7880             # adding the '-m68020' flag to GCC prevents building anything better,
   7881             # like '-m68040'.
   7882             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   7883         ;;
   7884       esac
   7885       ;;
   7886 
   7887     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   7888       # PIC is the default for these OSes.
   7889       ;;
   7890 
   7891     mingw* | cygwin* | pw32* | os2* | cegcc*)
   7892       # This hack is so that the source file can tell whether it is being
   7893       # built for inclusion in a dll (and should export symbols for example).
   7894       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   7895       # (--disable-auto-import) libraries
   7896       lt_prog_compiler_pic='-DDLL_EXPORT'
   7897       case $host_os in
   7898       os2*)
   7899 	lt_prog_compiler_static='$wl-static'
   7900 	;;
   7901       esac
   7902       ;;
   7903 
   7904     darwin* | rhapsody*)
   7905       # PIC is the default on this platform
   7906       # Common symbols not allowed in MH_DYLIB files
   7907       lt_prog_compiler_pic='-fno-common'
   7908       ;;
   7909 
   7910     haiku*)
   7911       # PIC is the default for Haiku.
   7912       # The "-static" flag exists, but is broken.
   7913       lt_prog_compiler_static=
   7914       ;;
   7915 
   7916     hpux*)
   7917       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   7918       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   7919       # sets the default TLS model and affects inlining.
   7920       case $host_cpu in
   7921       hppa*64*)
   7922 	# +Z the default
   7923 	;;
   7924       *)
   7925 	lt_prog_compiler_pic='-fPIC'
   7926 	;;
   7927       esac
   7928       ;;
   7929 
   7930     interix[3-9]*)
   7931       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   7932       # Instead, we relocate shared libraries at runtime.
   7933       ;;
   7934 
   7935     msdosdjgpp*)
   7936       # Just because we use GCC doesn't mean we suddenly get shared libraries
   7937       # on systems that don't support them.
   7938       lt_prog_compiler_can_build_shared=no
   7939       enable_shared=no
   7940       ;;
   7941 
   7942     *nto* | *qnx*)
   7943       # QNX uses GNU C++, but need to define -shared option too, otherwise
   7944       # it will coredump.
   7945       lt_prog_compiler_pic='-fPIC -shared'
   7946       ;;
   7947 
   7948     sysv4*MP*)
   7949       if test -d /usr/nec; then
   7950 	lt_prog_compiler_pic=-Kconform_pic
   7951       fi
   7952       ;;
   7953 
   7954     *)
   7955       lt_prog_compiler_pic='-fPIC'
   7956       ;;
   7957     esac
   7958 
   7959     case $cc_basename in
   7960     nvcc*) # Cuda Compiler Driver 2.2
   7961       lt_prog_compiler_wl='-Xlinker '
   7962       if test -n "$lt_prog_compiler_pic"; then
   7963         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   7964       fi
   7965       ;;
   7966     esac
   7967   else
   7968     # PORTME Check for flag to pass linker flags through the system compiler.
   7969     case $host_os in
   7970     aix*)
   7971       lt_prog_compiler_wl='-Wl,'
   7972       if test ia64 = "$host_cpu"; then
   7973 	# AIX 5 now supports IA64 processor
   7974 	lt_prog_compiler_static='-Bstatic'
   7975       else
   7976 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   7977       fi
   7978       ;;
   7979 
   7980     darwin* | rhapsody*)
   7981       # PIC is the default on this platform
   7982       # Common symbols not allowed in MH_DYLIB files
   7983       lt_prog_compiler_pic='-fno-common'
   7984       case $cc_basename in
   7985       nagfor*)
   7986         # NAG Fortran compiler
   7987         lt_prog_compiler_wl='-Wl,-Wl,,'
   7988         lt_prog_compiler_pic='-PIC'
   7989         lt_prog_compiler_static='-Bstatic'
   7990         ;;
   7991       esac
   7992       ;;
   7993 
   7994     mingw* | cygwin* | pw32* | os2* | cegcc*)
   7995       # This hack is so that the source file can tell whether it is being
   7996       # built for inclusion in a dll (and should export symbols for example).
   7997       lt_prog_compiler_pic='-DDLL_EXPORT'
   7998       case $host_os in
   7999       os2*)
   8000 	lt_prog_compiler_static='$wl-static'
   8001 	;;
   8002       esac
   8003       ;;
   8004 
   8005     hpux9* | hpux10* | hpux11*)
   8006       lt_prog_compiler_wl='-Wl,'
   8007       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   8008       # not for PA HP-UX.
   8009       case $host_cpu in
   8010       hppa*64*|ia64*)
   8011 	# +Z the default
   8012 	;;
   8013       *)
   8014 	lt_prog_compiler_pic='+Z'
   8015 	;;
   8016       esac
   8017       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   8018       lt_prog_compiler_static='$wl-a ${wl}archive'
   8019       ;;
   8020 
   8021     irix5* | irix6* | nonstopux*)
   8022       lt_prog_compiler_wl='-Wl,'
   8023       # PIC (with -KPIC) is the default.
   8024       lt_prog_compiler_static='-non_shared'
   8025       ;;
   8026 
   8027     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   8028       case $cc_basename in
   8029       # old Intel for x86_64, which still supported -KPIC.
   8030       ecc*)
   8031 	lt_prog_compiler_wl='-Wl,'
   8032 	lt_prog_compiler_pic='-KPIC'
   8033 	lt_prog_compiler_static='-static'
   8034         ;;
   8035       # icc used to be incompatible with GCC.
   8036       # ICC 10 doesn't accept -KPIC any more.
   8037       icc* | ifort*)
   8038 	lt_prog_compiler_wl='-Wl,'
   8039 	lt_prog_compiler_pic='-fPIC'
   8040 	lt_prog_compiler_static='-static'
   8041         ;;
   8042       # Lahey Fortran 8.1.
   8043       lf95*)
   8044 	lt_prog_compiler_wl='-Wl,'
   8045 	lt_prog_compiler_pic='--shared'
   8046 	lt_prog_compiler_static='--static'
   8047 	;;
   8048       nagfor*)
   8049 	# NAG Fortran compiler
   8050 	lt_prog_compiler_wl='-Wl,-Wl,,'
   8051 	lt_prog_compiler_pic='-PIC'
   8052 	lt_prog_compiler_static='-Bstatic'
   8053 	;;
   8054       tcc*)
   8055 	# Fabrice Bellard et al's Tiny C Compiler
   8056 	lt_prog_compiler_wl='-Wl,'
   8057 	lt_prog_compiler_pic='-fPIC'
   8058 	lt_prog_compiler_static='-static'
   8059 	;;
   8060       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   8061         # Portland Group compilers (*not* the Pentium gcc compiler,
   8062 	# which looks to be a dead project)
   8063 	lt_prog_compiler_wl='-Wl,'
   8064 	lt_prog_compiler_pic='-fpic'
   8065 	lt_prog_compiler_static='-Bstatic'
   8066         ;;
   8067       ccc*)
   8068         lt_prog_compiler_wl='-Wl,'
   8069         # All Alpha code is PIC.
   8070         lt_prog_compiler_static='-non_shared'
   8071         ;;
   8072       xl* | bgxl* | bgf* | mpixl*)
   8073 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   8074 	lt_prog_compiler_wl='-Wl,'
   8075 	lt_prog_compiler_pic='-qpic'
   8076 	lt_prog_compiler_static='-qstaticlink'
   8077 	;;
   8078       *)
   8079 	case `$CC -V 2>&1 | sed 5q` in
   8080 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   8081 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   8082 	  lt_prog_compiler_pic='-KPIC'
   8083 	  lt_prog_compiler_static='-Bstatic'
   8084 	  lt_prog_compiler_wl=''
   8085 	  ;;
   8086 	*Sun\ F* | *Sun*Fortran*)
   8087 	  lt_prog_compiler_pic='-KPIC'
   8088 	  lt_prog_compiler_static='-Bstatic'
   8089 	  lt_prog_compiler_wl='-Qoption ld '
   8090 	  ;;
   8091 	*Sun\ C*)
   8092 	  # Sun C 5.9
   8093 	  lt_prog_compiler_pic='-KPIC'
   8094 	  lt_prog_compiler_static='-Bstatic'
   8095 	  lt_prog_compiler_wl='-Wl,'
   8096 	  ;;
   8097         *Intel*\ [CF]*Compiler*)
   8098 	  lt_prog_compiler_wl='-Wl,'
   8099 	  lt_prog_compiler_pic='-fPIC'
   8100 	  lt_prog_compiler_static='-static'
   8101 	  ;;
   8102 	*Portland\ Group*)
   8103 	  lt_prog_compiler_wl='-Wl,'
   8104 	  lt_prog_compiler_pic='-fpic'
   8105 	  lt_prog_compiler_static='-Bstatic'
   8106 	  ;;
   8107 	esac
   8108 	;;
   8109       esac
   8110       ;;
   8111 
   8112     newsos6)
   8113       lt_prog_compiler_pic='-KPIC'
   8114       lt_prog_compiler_static='-Bstatic'
   8115       ;;
   8116 
   8117     *nto* | *qnx*)
   8118       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8119       # it will coredump.
   8120       lt_prog_compiler_pic='-fPIC -shared'
   8121       ;;
   8122 
   8123     osf3* | osf4* | osf5*)
   8124       lt_prog_compiler_wl='-Wl,'
   8125       # All OSF/1 code is PIC.
   8126       lt_prog_compiler_static='-non_shared'
   8127       ;;
   8128 
   8129     rdos*)
   8130       lt_prog_compiler_static='-non_shared'
   8131       ;;
   8132 
   8133     solaris*)
   8134       lt_prog_compiler_pic='-KPIC'
   8135       lt_prog_compiler_static='-Bstatic'
   8136       case $cc_basename in
   8137       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   8138 	lt_prog_compiler_wl='-Qoption ld ';;
   8139       *)
   8140 	lt_prog_compiler_wl='-Wl,';;
   8141       esac
   8142       ;;
   8143 
   8144     sunos4*)
   8145       lt_prog_compiler_wl='-Qoption ld '
   8146       lt_prog_compiler_pic='-PIC'
   8147       lt_prog_compiler_static='-Bstatic'
   8148       ;;
   8149 
   8150     sysv4 | sysv4.2uw2* | sysv4.3*)
   8151       lt_prog_compiler_wl='-Wl,'
   8152       lt_prog_compiler_pic='-KPIC'
   8153       lt_prog_compiler_static='-Bstatic'
   8154       ;;
   8155 
   8156     sysv4*MP*)
   8157       if test -d /usr/nec; then
   8158 	lt_prog_compiler_pic='-Kconform_pic'
   8159 	lt_prog_compiler_static='-Bstatic'
   8160       fi
   8161       ;;
   8162 
   8163     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   8164       lt_prog_compiler_wl='-Wl,'
   8165       lt_prog_compiler_pic='-KPIC'
   8166       lt_prog_compiler_static='-Bstatic'
   8167       ;;
   8168 
   8169     unicos*)
   8170       lt_prog_compiler_wl='-Wl,'
   8171       lt_prog_compiler_can_build_shared=no
   8172       ;;
   8173 
   8174     uts4*)
   8175       lt_prog_compiler_pic='-pic'
   8176       lt_prog_compiler_static='-Bstatic'
   8177       ;;
   8178 
   8179     *)
   8180       lt_prog_compiler_can_build_shared=no
   8181       ;;
   8182     esac
   8183   fi
   8184 
   8185 case $host_os in
   8186   # For platforms that do not support PIC, -DPIC is meaningless:
   8187   *djgpp*)
   8188     lt_prog_compiler_pic=
   8189     ;;
   8190   *)
   8191     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   8192     ;;
   8193 esac
   8194 
   8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   8196 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   8197 if ${lt_cv_prog_compiler_pic+:} false; then :
   8198   $as_echo_n "(cached) " >&6
   8199 else
   8200   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   8201 fi
   8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   8203 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
   8204 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   8205 
   8206 #
   8207 # Check to make sure the PIC flag actually works.
   8208 #
   8209 if test -n "$lt_prog_compiler_pic"; then
   8210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   8211 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   8212 if ${lt_cv_prog_compiler_pic_works+:} false; then :
   8213   $as_echo_n "(cached) " >&6
   8214 else
   8215   lt_cv_prog_compiler_pic_works=no
   8216    ac_outfile=conftest.$ac_objext
   8217    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8218    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   8219    # Insert the option either (1) after the last *FLAGS variable, or
   8220    # (2) before a word containing "conftest.", or (3) at the end.
   8221    # Note that $ac_compile itself does not contain backslashes and begins
   8222    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8223    # The option is referenced via a variable to avoid confusing sed.
   8224    lt_compile=`echo "$ac_compile" | $SED \
   8225    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8226    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8227    -e 's:$: $lt_compiler_flag:'`
   8228    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8229    (eval "$lt_compile" 2>conftest.err)
   8230    ac_status=$?
   8231    cat conftest.err >&5
   8232    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8233    if (exit $ac_status) && test -s "$ac_outfile"; then
   8234      # The compiler can only warn and ignore the option if not recognized
   8235      # So say no if there are warnings other than the usual output.
   8236      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8237      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8238      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8239        lt_cv_prog_compiler_pic_works=yes
   8240      fi
   8241    fi
   8242    $RM conftest*
   8243 
   8244 fi
   8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   8246 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   8247 
   8248 if test yes = "$lt_cv_prog_compiler_pic_works"; then
   8249     case $lt_prog_compiler_pic in
   8250      "" | " "*) ;;
   8251      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   8252      esac
   8253 else
   8254     lt_prog_compiler_pic=
   8255      lt_prog_compiler_can_build_shared=no
   8256 fi
   8257 
   8258 fi
   8259 
   8260 
   8261 
   8262 
   8263 
   8264 
   8265 
   8266 
   8267 
   8268 
   8269 
   8270 #
   8271 # Check to make sure the static flag actually works.
   8272 #
   8273 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   8275 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   8276 if ${lt_cv_prog_compiler_static_works+:} false; then :
   8277   $as_echo_n "(cached) " >&6
   8278 else
   8279   lt_cv_prog_compiler_static_works=no
   8280    save_LDFLAGS=$LDFLAGS
   8281    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   8282    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   8283    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   8284      # The linker can only warn and ignore the option if not recognized
   8285      # So say no if there are warnings
   8286      if test -s conftest.err; then
   8287        # Append any errors to the config.log.
   8288        cat conftest.err 1>&5
   8289        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   8290        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8291        if diff conftest.exp conftest.er2 >/dev/null; then
   8292          lt_cv_prog_compiler_static_works=yes
   8293        fi
   8294      else
   8295        lt_cv_prog_compiler_static_works=yes
   8296      fi
   8297    fi
   8298    $RM -r conftest*
   8299    LDFLAGS=$save_LDFLAGS
   8300 
   8301 fi
   8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   8303 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   8304 
   8305 if test yes = "$lt_cv_prog_compiler_static_works"; then
   8306     :
   8307 else
   8308     lt_prog_compiler_static=
   8309 fi
   8310 
   8311 
   8312 
   8313 
   8314 
   8315 
   8316 
   8317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8318 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8319 if ${lt_cv_prog_compiler_c_o+:} false; then :
   8320   $as_echo_n "(cached) " >&6
   8321 else
   8322   lt_cv_prog_compiler_c_o=no
   8323    $RM -r conftest 2>/dev/null
   8324    mkdir conftest
   8325    cd conftest
   8326    mkdir out
   8327    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8328 
   8329    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8330    # Insert the option either (1) after the last *FLAGS variable, or
   8331    # (2) before a word containing "conftest.", or (3) at the end.
   8332    # Note that $ac_compile itself does not contain backslashes and begins
   8333    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8334    lt_compile=`echo "$ac_compile" | $SED \
   8335    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8336    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8337    -e 's:$: $lt_compiler_flag:'`
   8338    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8339    (eval "$lt_compile" 2>out/conftest.err)
   8340    ac_status=$?
   8341    cat out/conftest.err >&5
   8342    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8343    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8344    then
   8345      # The compiler can only warn and ignore the option if not recognized
   8346      # So say no if there are warnings
   8347      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8348      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8349      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8350        lt_cv_prog_compiler_c_o=yes
   8351      fi
   8352    fi
   8353    chmod u+w . 2>&5
   8354    $RM conftest*
   8355    # SGI C++ compiler will create directory out/ii_files/ for
   8356    # template instantiation
   8357    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8358    $RM out/* && rmdir out
   8359    cd ..
   8360    $RM -r conftest
   8361    $RM conftest*
   8362 
   8363 fi
   8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8365 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8366 
   8367 
   8368 
   8369 
   8370 
   8371 
   8372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8373 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8374 if ${lt_cv_prog_compiler_c_o+:} false; then :
   8375   $as_echo_n "(cached) " >&6
   8376 else
   8377   lt_cv_prog_compiler_c_o=no
   8378    $RM -r conftest 2>/dev/null
   8379    mkdir conftest
   8380    cd conftest
   8381    mkdir out
   8382    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8383 
   8384    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8385    # Insert the option either (1) after the last *FLAGS variable, or
   8386    # (2) before a word containing "conftest.", or (3) at the end.
   8387    # Note that $ac_compile itself does not contain backslashes and begins
   8388    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8389    lt_compile=`echo "$ac_compile" | $SED \
   8390    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8391    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8392    -e 's:$: $lt_compiler_flag:'`
   8393    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8394    (eval "$lt_compile" 2>out/conftest.err)
   8395    ac_status=$?
   8396    cat out/conftest.err >&5
   8397    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8398    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8399    then
   8400      # The compiler can only warn and ignore the option if not recognized
   8401      # So say no if there are warnings
   8402      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8403      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8404      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8405        lt_cv_prog_compiler_c_o=yes
   8406      fi
   8407    fi
   8408    chmod u+w . 2>&5
   8409    $RM conftest*
   8410    # SGI C++ compiler will create directory out/ii_files/ for
   8411    # template instantiation
   8412    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8413    $RM out/* && rmdir out
   8414    cd ..
   8415    $RM -r conftest
   8416    $RM conftest*
   8417 
   8418 fi
   8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8420 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8421 
   8422 
   8423 
   8424 
   8425 hard_links=nottested
   8426 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   8427   # do not overwrite the value of need_locks provided by the user
   8428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   8429 $as_echo_n "checking if we can lock with hard links... " >&6; }
   8430   hard_links=yes
   8431   $RM conftest*
   8432   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8433   touch conftest.a
   8434   ln conftest.a conftest.b 2>&5 || hard_links=no
   8435   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   8437 $as_echo "$hard_links" >&6; }
   8438   if test no = "$hard_links"; then
   8439     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   8440 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   8441     need_locks=warn
   8442   fi
   8443 else
   8444   need_locks=no
   8445 fi
   8446 
   8447 
   8448 
   8449 
   8450 
   8451 
   8452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   8453 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   8454 
   8455   runpath_var=
   8456   allow_undefined_flag=
   8457   always_export_symbols=no
   8458   archive_cmds=
   8459   archive_expsym_cmds=
   8460   compiler_needs_object=no
   8461   enable_shared_with_static_runtimes=no
   8462   export_dynamic_flag_spec=
   8463   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   8464   hardcode_automatic=no
   8465   hardcode_direct=no
   8466   hardcode_direct_absolute=no
   8467   hardcode_libdir_flag_spec=
   8468   hardcode_libdir_separator=
   8469   hardcode_minus_L=no
   8470   hardcode_shlibpath_var=unsupported
   8471   inherit_rpath=no
   8472   link_all_deplibs=unknown
   8473   module_cmds=
   8474   module_expsym_cmds=
   8475   old_archive_from_new_cmds=
   8476   old_archive_from_expsyms_cmds=
   8477   thread_safe_flag_spec=
   8478   whole_archive_flag_spec=
   8479   # include_expsyms should be a list of space-separated symbols to be *always*
   8480   # included in the symbol list
   8481   include_expsyms=
   8482   # exclude_expsyms can be an extended regexp of symbols to exclude
   8483   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   8484   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   8485   # as well as any symbol that contains 'd'.
   8486   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   8487   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   8488   # platforms (ab)use it in PIC code, but their linkers get confused if
   8489   # the symbol is explicitly referenced.  Since portable code cannot
   8490   # rely on this symbol name, it's probably fine to never include it in
   8491   # preloaded symbol tables.
   8492   # Exclude shared library initialization/finalization symbols.
   8493   extract_expsyms_cmds=
   8494 
   8495   case $host_os in
   8496   cygwin* | mingw* | pw32* | cegcc*)
   8497     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   8498     # When not using gcc, we currently assume that we are using
   8499     # Microsoft Visual C++.
   8500     if test yes != "$GCC"; then
   8501       with_gnu_ld=no
   8502     fi
   8503     ;;
   8504   interix*)
   8505     # we just hope/assume this is gcc and not c89 (= MSVC++)
   8506     with_gnu_ld=yes
   8507     ;;
   8508   openbsd* | bitrig*)
   8509     with_gnu_ld=no
   8510     ;;
   8511   esac
   8512 
   8513   ld_shlibs=yes
   8514 
   8515   # On some targets, GNU ld is compatible enough with the native linker
   8516   # that we're better off using the native interface for both.
   8517   lt_use_gnu_ld_interface=no
   8518   if test yes = "$with_gnu_ld"; then
   8519     case $host_os in
   8520       aix*)
   8521 	# The AIX port of GNU ld has always aspired to compatibility
   8522 	# with the native linker.  However, as the warning in the GNU ld
   8523 	# block says, versions before 2.19.5* couldn't really create working
   8524 	# shared libraries, regardless of the interface used.
   8525 	case `$LD -v 2>&1` in
   8526 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   8527 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   8528 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   8529 	  *)
   8530 	    lt_use_gnu_ld_interface=yes
   8531 	    ;;
   8532 	esac
   8533 	;;
   8534       *)
   8535 	lt_use_gnu_ld_interface=yes
   8536 	;;
   8537     esac
   8538   fi
   8539 
   8540   if test yes = "$lt_use_gnu_ld_interface"; then
   8541     # If archive_cmds runs LD, not CC, wlarc should be empty
   8542     wlarc='$wl'
   8543 
   8544     # Set some defaults for GNU ld with shared library support. These
   8545     # are reset later if shared libraries are not supported. Putting them
   8546     # here allows them to be overridden if necessary.
   8547     runpath_var=LD_RUN_PATH
   8548     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8549     export_dynamic_flag_spec='$wl--export-dynamic'
   8550     # ancient GNU ld didn't support --whole-archive et. al.
   8551     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   8552       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   8553     else
   8554       whole_archive_flag_spec=
   8555     fi
   8556     supports_anon_versioning=no
   8557     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
   8558       *GNU\ gold*) supports_anon_versioning=yes ;;
   8559       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   8560       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   8561       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   8562       *\ 2.11.*) ;; # other 2.11 versions
   8563       *) supports_anon_versioning=yes ;;
   8564     esac
   8565 
   8566     # See if GNU ld supports shared libraries.
   8567     case $host_os in
   8568     aix[3-9]*)
   8569       # On AIX/PPC, the GNU linker is very broken
   8570       if test ia64 != "$host_cpu"; then
   8571 	ld_shlibs=no
   8572 	cat <<_LT_EOF 1>&2
   8573 
   8574 *** Warning: the GNU linker, at least up to release 2.19, is reported
   8575 *** to be unable to reliably create shared libraries on AIX.
   8576 *** Therefore, libtool is disabling shared libraries support.  If you
   8577 *** really care for shared libraries, you may want to install binutils
   8578 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   8579 *** You will then need to restart the configuration process.
   8580 
   8581 _LT_EOF
   8582       fi
   8583       ;;
   8584 
   8585     amigaos*)
   8586       case $host_cpu in
   8587       powerpc)
   8588             # see comment about AmigaOS4 .so support
   8589             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8590             archive_expsym_cmds=''
   8591         ;;
   8592       m68k)
   8593             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)'
   8594             hardcode_libdir_flag_spec='-L$libdir'
   8595             hardcode_minus_L=yes
   8596         ;;
   8597       esac
   8598       ;;
   8599 
   8600     beos*)
   8601       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8602 	allow_undefined_flag=unsupported
   8603 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   8604 	# support --undefined.  This deserves some investigation.  FIXME
   8605 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8606       else
   8607 	ld_shlibs=no
   8608       fi
   8609       ;;
   8610 
   8611     cygwin* | mingw* | pw32* | cegcc*)
   8612       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   8613       # as there is no search path for DLLs.
   8614       hardcode_libdir_flag_spec='-L$libdir'
   8615       export_dynamic_flag_spec='$wl--export-all-symbols'
   8616       allow_undefined_flag=unsupported
   8617       always_export_symbols=no
   8618       enable_shared_with_static_runtimes=yes
   8619       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'
   8620       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   8621 
   8622       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   8623         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   8624 	# If the export-symbols file already is a .def file, use it as
   8625 	# is; otherwise, prepend EXPORTS...
   8626 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   8627           cp $export_symbols $output_objdir/$soname.def;
   8628         else
   8629           echo EXPORTS > $output_objdir/$soname.def;
   8630           cat $export_symbols >> $output_objdir/$soname.def;
   8631         fi~
   8632         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   8633       else
   8634 	ld_shlibs=no
   8635       fi
   8636       ;;
   8637 
   8638     haiku*)
   8639       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8640       link_all_deplibs=yes
   8641       ;;
   8642 
   8643     os2*)
   8644       hardcode_libdir_flag_spec='-L$libdir'
   8645       hardcode_minus_L=yes
   8646       allow_undefined_flag=unsupported
   8647       shrext_cmds=.dll
   8648       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   8649 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   8650 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   8651 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   8652 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   8653 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   8654 	emximp -o $lib $output_objdir/$libname.def'
   8655       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   8656 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   8657 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   8658 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   8659 	prefix_cmds="$SED"~
   8660 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   8661 	  prefix_cmds="$prefix_cmds -e 1d";
   8662 	fi~
   8663 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   8664 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   8665 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   8666 	emximp -o $lib $output_objdir/$libname.def'
   8667       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   8668       enable_shared_with_static_runtimes=yes
   8669       ;;
   8670 
   8671     interix[3-9]*)
   8672       hardcode_direct=no
   8673       hardcode_shlibpath_var=no
   8674       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   8675       export_dynamic_flag_spec='$wl-E'
   8676       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   8677       # Instead, shared libraries are loaded at an image base (0x10000000 by
   8678       # default) and relocated if they conflict, which is a slow very memory
   8679       # consuming and fragmenting process.  To avoid this, we pick a random,
   8680       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   8681       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   8682       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   8683       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'
   8684       ;;
   8685 
   8686     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   8687       tmp_diet=no
   8688       if test linux-dietlibc = "$host_os"; then
   8689 	case $cc_basename in
   8690 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   8691 	esac
   8692       fi
   8693       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   8694 	 && test no = "$tmp_diet"
   8695       then
   8696 	tmp_addflag=' $pic_flag'
   8697 	tmp_sharedflag='-shared'
   8698 	case $cc_basename,$host_cpu in
   8699         pgcc*)				# Portland Group C compiler
   8700 	  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'
   8701 	  tmp_addflag=' $pic_flag'
   8702 	  ;;
   8703 	pgf77* | pgf90* | pgf95* | pgfortran*)
   8704 					# Portland Group f77 and f90 compilers
   8705 	  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'
   8706 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   8707 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   8708 	  tmp_addflag=' -i_dynamic' ;;
   8709 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   8710 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   8711 	ifc* | ifort*)			# Intel Fortran compiler
   8712 	  tmp_addflag=' -nofor_main' ;;
   8713 	lf95*)				# Lahey Fortran 8.1
   8714 	  whole_archive_flag_spec=
   8715 	  tmp_sharedflag='--shared' ;;
   8716         nagfor*)                        # NAGFOR 5.3
   8717           tmp_sharedflag='-Wl,-shared' ;;
   8718 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   8719 	  tmp_sharedflag='-qmkshrobj'
   8720 	  tmp_addflag= ;;
   8721 	nvcc*)	# Cuda Compiler Driver 2.2
   8722 	  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'
   8723 	  compiler_needs_object=yes
   8724 	  ;;
   8725 	esac
   8726 	case `$CC -V 2>&1 | sed 5q` in
   8727 	*Sun\ C*)			# Sun C 5.9
   8728 	  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'
   8729 	  compiler_needs_object=yes
   8730 	  tmp_sharedflag='-G' ;;
   8731 	*Sun\ F*)			# Sun Fortran 8.3
   8732 	  tmp_sharedflag='-G' ;;
   8733 	esac
   8734 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8735 
   8736         if test yes = "$supports_anon_versioning"; then
   8737           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   8738             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   8739             echo "local: *; };" >> $output_objdir/$libname.ver~
   8740             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   8741         fi
   8742 
   8743 	case $cc_basename in
   8744 	tcc*)
   8745 	  export_dynamic_flag_spec='-rdynamic'
   8746 	  ;;
   8747 	xlf* | bgf* | bgxlf* | mpixlf*)
   8748 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   8749 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   8750 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8751 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   8752 	  if test yes = "$supports_anon_versioning"; then
   8753 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   8754               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   8755               echo "local: *; };" >> $output_objdir/$libname.ver~
   8756               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   8757 	  fi
   8758 	  ;;
   8759 	esac
   8760       else
   8761         ld_shlibs=no
   8762       fi
   8763       ;;
   8764 
   8765     netbsd*)
   8766       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   8767 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   8768 	wlarc=
   8769       else
   8770 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8771 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   8772       fi
   8773       ;;
   8774 
   8775     solaris*)
   8776       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   8777 	ld_shlibs=no
   8778 	cat <<_LT_EOF 1>&2
   8779 
   8780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   8781 *** create shared libraries on Solaris systems.  Therefore, libtool
   8782 *** is disabling shared libraries support.  We urge you to upgrade GNU
   8783 *** binutils to release 2.9.1 or newer.  Another option is to modify
   8784 *** your PATH or compiler configuration so that the native linker is
   8785 *** used, and then restart.
   8786 
   8787 _LT_EOF
   8788       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8789 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8790 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   8791       else
   8792 	ld_shlibs=no
   8793       fi
   8794       ;;
   8795 
   8796     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   8797       case `$LD -v 2>&1` in
   8798         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   8799 	ld_shlibs=no
   8800 	cat <<_LT_EOF 1>&2
   8801 
   8802 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   8803 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   8804 *** is disabling shared libraries support.  We urge you to upgrade GNU
   8805 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   8806 *** your PATH or compiler configuration so that the native linker is
   8807 *** used, and then restart.
   8808 
   8809 _LT_EOF
   8810 	;;
   8811 	*)
   8812 	  # For security reasons, it is highly recommended that you always
   8813 	  # use absolute paths for naming shared libraries, and exclude the
   8814 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   8815 	  # requires that you compile everything twice, which is a pain.
   8816 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8817 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8818 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8819 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   8820 	  else
   8821 	    ld_shlibs=no
   8822 	  fi
   8823 	;;
   8824       esac
   8825       ;;
   8826 
   8827     sunos4*)
   8828       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   8829       wlarc=
   8830       hardcode_direct=yes
   8831       hardcode_shlibpath_var=no
   8832       ;;
   8833 
   8834     *)
   8835       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8836 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8837 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   8838       else
   8839 	ld_shlibs=no
   8840       fi
   8841       ;;
   8842     esac
   8843 
   8844     if test no = "$ld_shlibs"; then
   8845       runpath_var=
   8846       hardcode_libdir_flag_spec=
   8847       export_dynamic_flag_spec=
   8848       whole_archive_flag_spec=
   8849     fi
   8850   else
   8851     # PORTME fill in a description of your system's linker (not GNU ld)
   8852     case $host_os in
   8853     aix3*)
   8854       allow_undefined_flag=unsupported
   8855       always_export_symbols=yes
   8856       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'
   8857       # Note: this linker hardcodes the directories in LIBPATH if there
   8858       # are no directories specified by -L.
   8859       hardcode_minus_L=yes
   8860       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   8861 	# Neither direct hardcoding nor static linking is supported with a
   8862 	# broken collect2.
   8863 	hardcode_direct=unsupported
   8864       fi
   8865       ;;
   8866 
   8867     aix[4-9]*)
   8868       if test ia64 = "$host_cpu"; then
   8869 	# On IA64, the linker does run time linking by default, so we don't
   8870 	# have to do anything special.
   8871 	aix_use_runtimelinking=no
   8872 	exp_sym_flag='-Bexport'
   8873 	no_entry_flag=
   8874       else
   8875 	# If we're using GNU nm, then we don't want the "-C" option.
   8876 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   8877 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   8878 	# weak defined symbols like other global defined symbols, whereas
   8879 	# GNU nm marks them as "W".
   8880 	# While the 'weak' keyword is ignored in the Export File, we need
   8881 	# it in the Import File for the 'aix-soname' feature, so we have
   8882 	# to replace the "-B" option with "-P" for AIX nm.
   8883 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   8884 	  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'
   8885 	else
   8886 	  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'
   8887 	fi
   8888 	aix_use_runtimelinking=no
   8889 
   8890 	# Test if we are trying to use run time linking or normal
   8891 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   8892 	# have runtime linking enabled, and use it for executables.
   8893 	# For shared libraries, we enable/disable runtime linking
   8894 	# depending on the kind of the shared library created -
   8895 	# when "with_aix_soname,aix_use_runtimelinking" is:
   8896 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   8897 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   8898 	#            lib.a           static archive
   8899 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   8900 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   8901 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   8902 	#            lib.a(lib.so.V) shared, rtl:no
   8903 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   8904 	#            lib.a           static archive
   8905 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   8906 	  for ld_flag in $LDFLAGS; do
   8907 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   8908 	    aix_use_runtimelinking=yes
   8909 	    break
   8910 	  fi
   8911 	  done
   8912 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   8913 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   8914 	    # so we don't have lib.a shared libs to link our executables.
   8915 	    # We have to force runtime linking in this case.
   8916 	    aix_use_runtimelinking=yes
   8917 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   8918 	  fi
   8919 	  ;;
   8920 	esac
   8921 
   8922 	exp_sym_flag='-bexport'
   8923 	no_entry_flag='-bnoentry'
   8924       fi
   8925 
   8926       # When large executables or shared objects are built, AIX ld can
   8927       # have problems creating the table of contents.  If linking a library
   8928       # or program results in "error TOC overflow" add -mminimal-toc to
   8929       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   8930       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   8931 
   8932       archive_cmds=''
   8933       hardcode_direct=yes
   8934       hardcode_direct_absolute=yes
   8935       hardcode_libdir_separator=':'
   8936       link_all_deplibs=yes
   8937       file_list_spec='$wl-f,'
   8938       case $with_aix_soname,$aix_use_runtimelinking in
   8939       aix,*) ;; # traditional, no import file
   8940       svr4,* | *,yes) # use import file
   8941 	# The Import File defines what to hardcode.
   8942 	hardcode_direct=no
   8943 	hardcode_direct_absolute=no
   8944 	;;
   8945       esac
   8946 
   8947       if test yes = "$GCC"; then
   8948 	case $host_os in aix4.[012]|aix4.[012].*)
   8949 	# We only want to do this on AIX 4.2 and lower, the check
   8950 	# below for broken collect2 doesn't work under 4.3+
   8951 	  collect2name=`$CC -print-prog-name=collect2`
   8952 	  if test -f "$collect2name" &&
   8953 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   8954 	  then
   8955 	  # We have reworked collect2
   8956 	  :
   8957 	  else
   8958 	  # We have old collect2
   8959 	  hardcode_direct=unsupported
   8960 	  # It fails to find uninstalled libraries when the uninstalled
   8961 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   8962 	  # to unsupported forces relinking
   8963 	  hardcode_minus_L=yes
   8964 	  hardcode_libdir_flag_spec='-L$libdir'
   8965 	  hardcode_libdir_separator=
   8966 	  fi
   8967 	  ;;
   8968 	esac
   8969 	shared_flag='-shared'
   8970 	if test yes = "$aix_use_runtimelinking"; then
   8971 	  shared_flag="$shared_flag "'$wl-G'
   8972 	fi
   8973 	# Need to ensure runtime linking is disabled for the traditional
   8974 	# shared library, or the linker may eventually find shared libraries
   8975 	# /with/ Import File - we do not want to mix them.
   8976 	shared_flag_aix='-shared'
   8977 	shared_flag_svr4='-shared $wl-G'
   8978       else
   8979 	# not using gcc
   8980 	if test ia64 = "$host_cpu"; then
   8981 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   8982 	# chokes on -Wl,-G. The following line is correct:
   8983 	  shared_flag='-G'
   8984 	else
   8985 	  if test yes = "$aix_use_runtimelinking"; then
   8986 	    shared_flag='$wl-G'
   8987 	  else
   8988 	    shared_flag='$wl-bM:SRE'
   8989 	  fi
   8990 	  shared_flag_aix='$wl-bM:SRE'
   8991 	  shared_flag_svr4='$wl-G'
   8992 	fi
   8993       fi
   8994 
   8995       export_dynamic_flag_spec='$wl-bexpall'
   8996       # It seems that -bexpall does not export symbols beginning with
   8997       # underscore (_), so it is better to generate a list of symbols to export.
   8998       always_export_symbols=yes
   8999       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   9000 	# Warning - without using the other runtime loading flags (-brtl),
   9001 	# -berok will link without error, but may produce a broken library.
   9002 	allow_undefined_flag='-berok'
   9003         # Determine the default libpath from the value encoded in an
   9004         # empty executable.
   9005         if test set = "${lt_cv_aix_libpath+set}"; then
   9006   aix_libpath=$lt_cv_aix_libpath
   9007 else
   9008   if ${lt_cv_aix_libpath_+:} false; then :
   9009   $as_echo_n "(cached) " >&6
   9010 else
   9011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9012 /* end confdefs.h.  */
   9013 
   9014 int
   9015 main ()
   9016 {
   9017 
   9018   ;
   9019   return 0;
   9020 }
   9021 _ACEOF
   9022 if ac_fn_c_try_link "$LINENO"; then :
   9023 
   9024   lt_aix_libpath_sed='
   9025       /Import File Strings/,/^$/ {
   9026 	  /^0/ {
   9027 	      s/^0  *\([^ ]*\) *$/\1/
   9028 	      p
   9029 	  }
   9030       }'
   9031   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9032   # Check for a 64-bit object if we didn't find anything.
   9033   if test -z "$lt_cv_aix_libpath_"; then
   9034     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9035   fi
   9036 fi
   9037 rm -f core conftest.err conftest.$ac_objext \
   9038     conftest$ac_exeext conftest.$ac_ext
   9039   if test -z "$lt_cv_aix_libpath_"; then
   9040     lt_cv_aix_libpath_=/usr/lib:/lib
   9041   fi
   9042 
   9043 fi
   9044 
   9045   aix_libpath=$lt_cv_aix_libpath_
   9046 fi
   9047 
   9048         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9049         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
   9050       else
   9051 	if test ia64 = "$host_cpu"; then
   9052 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   9053 	  allow_undefined_flag="-z nodefs"
   9054 	  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"
   9055 	else
   9056 	 # Determine the default libpath from the value encoded in an
   9057 	 # empty executable.
   9058 	 if test set = "${lt_cv_aix_libpath+set}"; then
   9059   aix_libpath=$lt_cv_aix_libpath
   9060 else
   9061   if ${lt_cv_aix_libpath_+:} false; then :
   9062   $as_echo_n "(cached) " >&6
   9063 else
   9064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9065 /* end confdefs.h.  */
   9066 
   9067 int
   9068 main ()
   9069 {
   9070 
   9071   ;
   9072   return 0;
   9073 }
   9074 _ACEOF
   9075 if ac_fn_c_try_link "$LINENO"; then :
   9076 
   9077   lt_aix_libpath_sed='
   9078       /Import File Strings/,/^$/ {
   9079 	  /^0/ {
   9080 	      s/^0  *\([^ ]*\) *$/\1/
   9081 	      p
   9082 	  }
   9083       }'
   9084   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9085   # Check for a 64-bit object if we didn't find anything.
   9086   if test -z "$lt_cv_aix_libpath_"; then
   9087     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9088   fi
   9089 fi
   9090 rm -f core conftest.err conftest.$ac_objext \
   9091     conftest$ac_exeext conftest.$ac_ext
   9092   if test -z "$lt_cv_aix_libpath_"; then
   9093     lt_cv_aix_libpath_=/usr/lib:/lib
   9094   fi
   9095 
   9096 fi
   9097 
   9098   aix_libpath=$lt_cv_aix_libpath_
   9099 fi
   9100 
   9101 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9102 	  # Warning - without using the other run time loading flags,
   9103 	  # -berok will link without error, but may produce a broken library.
   9104 	  no_undefined_flag=' $wl-bernotok'
   9105 	  allow_undefined_flag=' $wl-berok'
   9106 	  if test yes = "$with_gnu_ld"; then
   9107 	    # We only use this code for GNU lds that support --whole-archive.
   9108 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   9109 	  else
   9110 	    # Exported symbols can be pulled into shared objects from archives
   9111 	    whole_archive_flag_spec='$convenience'
   9112 	  fi
   9113 	  archive_cmds_need_lc=yes
   9114 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   9115 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   9116 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   9117 	  if test svr4 != "$with_aix_soname"; then
   9118 	    # This is similar to how AIX traditionally builds its shared libraries.
   9119 	    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'
   9120 	  fi
   9121 	  if test aix != "$with_aix_soname"; then
   9122 	    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'
   9123 	  else
   9124 	    # used by -dlpreopen to get the symbols
   9125 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   9126 	  fi
   9127 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   9128 	fi
   9129       fi
   9130       ;;
   9131 
   9132     amigaos*)
   9133       case $host_cpu in
   9134       powerpc)
   9135             # see comment about AmigaOS4 .so support
   9136             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9137             archive_expsym_cmds=''
   9138         ;;
   9139       m68k)
   9140             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)'
   9141             hardcode_libdir_flag_spec='-L$libdir'
   9142             hardcode_minus_L=yes
   9143         ;;
   9144       esac
   9145       ;;
   9146 
   9147     bsdi[45]*)
   9148       export_dynamic_flag_spec=-rdynamic
   9149       ;;
   9150 
   9151     cygwin* | mingw* | pw32* | cegcc*)
   9152       # When not using gcc, we currently assume that we are using
   9153       # Microsoft Visual C++.
   9154       # hardcode_libdir_flag_spec is actually meaningless, as there is
   9155       # no search path for DLLs.
   9156       case $cc_basename in
   9157       cl*)
   9158 	# Native MSVC
   9159 	hardcode_libdir_flag_spec=' '
   9160 	allow_undefined_flag=unsupported
   9161 	always_export_symbols=yes
   9162 	file_list_spec='@'
   9163 	# Tell ltmain to make .lib files, not .a files.
   9164 	libext=lib
   9165 	# Tell ltmain to make .dll files, not .so files.
   9166 	shrext_cmds=.dll
   9167 	# FIXME: Setting linknames here is a bad hack.
   9168 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   9169 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   9170             cp "$export_symbols" "$output_objdir/$soname.def";
   9171             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   9172           else
   9173             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   9174           fi~
   9175           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   9176           linknames='
   9177 	# The linker will not automatically build a static lib if we build a DLL.
   9178 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   9179 	enable_shared_with_static_runtimes=yes
   9180 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   9181 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   9182 	# Don't use ranlib
   9183 	old_postinstall_cmds='chmod 644 $oldlib'
   9184 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   9185           lt_tool_outputfile="@TOOL_OUTPUT@"~
   9186           case $lt_outputfile in
   9187             *.exe|*.EXE) ;;
   9188             *)
   9189               lt_outputfile=$lt_outputfile.exe
   9190               lt_tool_outputfile=$lt_tool_outputfile.exe
   9191               ;;
   9192           esac~
   9193           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   9194             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   9195             $RM "$lt_outputfile.manifest";
   9196           fi'
   9197 	;;
   9198       *)
   9199 	# Assume MSVC wrapper
   9200 	hardcode_libdir_flag_spec=' '
   9201 	allow_undefined_flag=unsupported
   9202 	# Tell ltmain to make .lib files, not .a files.
   9203 	libext=lib
   9204 	# Tell ltmain to make .dll files, not .so files.
   9205 	shrext_cmds=.dll
   9206 	# FIXME: Setting linknames here is a bad hack.
   9207 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   9208 	# The linker will automatically build a .lib file if we build a DLL.
   9209 	old_archive_from_new_cmds='true'
   9210 	# FIXME: Should let the user specify the lib program.
   9211 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   9212 	enable_shared_with_static_runtimes=yes
   9213 	;;
   9214       esac
   9215       ;;
   9216 
   9217     darwin* | rhapsody*)
   9218 
   9219 
   9220   archive_cmds_need_lc=no
   9221   hardcode_direct=no
   9222   hardcode_automatic=yes
   9223   hardcode_shlibpath_var=unsupported
   9224   if test yes = "$lt_cv_ld_force_load"; then
   9225     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\"`'
   9226 
   9227   else
   9228     whole_archive_flag_spec=''
   9229   fi
   9230   link_all_deplibs=yes
   9231   allow_undefined_flag=$_lt_dar_allow_undefined
   9232   case $cc_basename in
   9233      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   9234      *) _lt_dar_can_shared=$GCC ;;
   9235   esac
   9236   if test yes = "$_lt_dar_can_shared"; then
   9237     output_verbose_link_cmd=func_echo_all
   9238     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
   9239     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   9240     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"
   9241     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"
   9242 
   9243   else
   9244   ld_shlibs=no
   9245   fi
   9246 
   9247       ;;
   9248 
   9249     dgux*)
   9250       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9251       hardcode_libdir_flag_spec='-L$libdir'
   9252       hardcode_shlibpath_var=no
   9253       ;;
   9254 
   9255     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   9256     # support.  Future versions do this automatically, but an explicit c++rt0.o
   9257     # does not break anything, and helps significantly (at the cost of a little
   9258     # extra space).
   9259     freebsd2.2*)
   9260       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   9261       hardcode_libdir_flag_spec='-R$libdir'
   9262       hardcode_direct=yes
   9263       hardcode_shlibpath_var=no
   9264       ;;
   9265 
   9266     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   9267     freebsd2.*)
   9268       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9269       hardcode_direct=yes
   9270       hardcode_minus_L=yes
   9271       hardcode_shlibpath_var=no
   9272       ;;
   9273 
   9274     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   9275     freebsd* | dragonfly*)
   9276       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9277       hardcode_libdir_flag_spec='-R$libdir'
   9278       hardcode_direct=yes
   9279       hardcode_shlibpath_var=no
   9280       ;;
   9281 
   9282     hpux9*)
   9283       if test yes = "$GCC"; then
   9284 	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'
   9285       else
   9286 	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'
   9287       fi
   9288       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9289       hardcode_libdir_separator=:
   9290       hardcode_direct=yes
   9291 
   9292       # hardcode_minus_L: Not really in the search PATH,
   9293       # but as the default location of the library.
   9294       hardcode_minus_L=yes
   9295       export_dynamic_flag_spec='$wl-E'
   9296       ;;
   9297 
   9298     hpux10*)
   9299       if test yes,no = "$GCC,$with_gnu_ld"; then
   9300 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9301       else
   9302 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9303       fi
   9304       if test no = "$with_gnu_ld"; then
   9305 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9306 	hardcode_libdir_separator=:
   9307 	hardcode_direct=yes
   9308 	hardcode_direct_absolute=yes
   9309 	export_dynamic_flag_spec='$wl-E'
   9310 	# hardcode_minus_L: Not really in the search PATH,
   9311 	# but as the default location of the library.
   9312 	hardcode_minus_L=yes
   9313       fi
   9314       ;;
   9315 
   9316     hpux11*)
   9317       if test yes,no = "$GCC,$with_gnu_ld"; then
   9318 	case $host_cpu in
   9319 	hppa*64*)
   9320 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9321 	  ;;
   9322 	ia64*)
   9323 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9324 	  ;;
   9325 	*)
   9326 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9327 	  ;;
   9328 	esac
   9329       else
   9330 	case $host_cpu in
   9331 	hppa*64*)
   9332 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9333 	  ;;
   9334 	ia64*)
   9335 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9336 	  ;;
   9337 	*)
   9338 
   9339 	  # Older versions of the 11.00 compiler do not understand -b yet
   9340 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   9341 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   9342 $as_echo_n "checking if $CC understands -b... " >&6; }
   9343 if ${lt_cv_prog_compiler__b+:} false; then :
   9344   $as_echo_n "(cached) " >&6
   9345 else
   9346   lt_cv_prog_compiler__b=no
   9347    save_LDFLAGS=$LDFLAGS
   9348    LDFLAGS="$LDFLAGS -b"
   9349    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   9350    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   9351      # The linker can only warn and ignore the option if not recognized
   9352      # So say no if there are warnings
   9353      if test -s conftest.err; then
   9354        # Append any errors to the config.log.
   9355        cat conftest.err 1>&5
   9356        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   9357        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9358        if diff conftest.exp conftest.er2 >/dev/null; then
   9359          lt_cv_prog_compiler__b=yes
   9360        fi
   9361      else
   9362        lt_cv_prog_compiler__b=yes
   9363      fi
   9364    fi
   9365    $RM -r conftest*
   9366    LDFLAGS=$save_LDFLAGS
   9367 
   9368 fi
   9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   9370 $as_echo "$lt_cv_prog_compiler__b" >&6; }
   9371 
   9372 if test yes = "$lt_cv_prog_compiler__b"; then
   9373     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9374 else
   9375     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9376 fi
   9377 
   9378 	  ;;
   9379 	esac
   9380       fi
   9381       if test no = "$with_gnu_ld"; then
   9382 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9383 	hardcode_libdir_separator=:
   9384 
   9385 	case $host_cpu in
   9386 	hppa*64*|ia64*)
   9387 	  hardcode_direct=no
   9388 	  hardcode_shlibpath_var=no
   9389 	  ;;
   9390 	*)
   9391 	  hardcode_direct=yes
   9392 	  hardcode_direct_absolute=yes
   9393 	  export_dynamic_flag_spec='$wl-E'
   9394 
   9395 	  # hardcode_minus_L: Not really in the search PATH,
   9396 	  # but as the default location of the library.
   9397 	  hardcode_minus_L=yes
   9398 	  ;;
   9399 	esac
   9400       fi
   9401       ;;
   9402 
   9403     irix5* | irix6* | nonstopux*)
   9404       if test yes = "$GCC"; then
   9405 	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'
   9406 	# Try to use the -exported_symbol ld option, if it does not
   9407 	# work, assume that -exports_file does not work either and
   9408 	# implicitly export all symbols.
   9409 	# This should be the same for all languages, so no per-tag cache variable.
   9410 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   9411 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   9412 if ${lt_cv_irix_exported_symbol+:} false; then :
   9413   $as_echo_n "(cached) " >&6
   9414 else
   9415   save_LDFLAGS=$LDFLAGS
   9416 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   9417 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9418 /* end confdefs.h.  */
   9419 int foo (void) { return 0; }
   9420 _ACEOF
   9421 if ac_fn_c_try_link "$LINENO"; then :
   9422   lt_cv_irix_exported_symbol=yes
   9423 else
   9424   lt_cv_irix_exported_symbol=no
   9425 fi
   9426 rm -f core conftest.err conftest.$ac_objext \
   9427     conftest$ac_exeext conftest.$ac_ext
   9428            LDFLAGS=$save_LDFLAGS
   9429 fi
   9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   9431 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
   9432 	if test yes = "$lt_cv_irix_exported_symbol"; then
   9433           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'
   9434 	fi
   9435       else
   9436 	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'
   9437 	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'
   9438       fi
   9439       archive_cmds_need_lc='no'
   9440       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9441       hardcode_libdir_separator=:
   9442       inherit_rpath=yes
   9443       link_all_deplibs=yes
   9444       ;;
   9445 
   9446     linux*)
   9447       case $cc_basename in
   9448       tcc*)
   9449 	# Fabrice Bellard et al's Tiny C Compiler
   9450 	ld_shlibs=yes
   9451 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9452 	;;
   9453       esac
   9454       ;;
   9455 
   9456     netbsd*)
   9457       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9458 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   9459       else
   9460 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   9461       fi
   9462       hardcode_libdir_flag_spec='-R$libdir'
   9463       hardcode_direct=yes
   9464       hardcode_shlibpath_var=no
   9465       ;;
   9466 
   9467     newsos6)
   9468       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9469       hardcode_direct=yes
   9470       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9471       hardcode_libdir_separator=:
   9472       hardcode_shlibpath_var=no
   9473       ;;
   9474 
   9475     *nto* | *qnx*)
   9476       ;;
   9477 
   9478     openbsd* | bitrig*)
   9479       if test -f /usr/libexec/ld.so; then
   9480 	hardcode_direct=yes
   9481 	hardcode_shlibpath_var=no
   9482 	hardcode_direct_absolute=yes
   9483 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   9484 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9485 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   9486 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9487 	  export_dynamic_flag_spec='$wl-E'
   9488 	else
   9489 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9490 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9491 	fi
   9492       else
   9493 	ld_shlibs=no
   9494       fi
   9495       ;;
   9496 
   9497     os2*)
   9498       hardcode_libdir_flag_spec='-L$libdir'
   9499       hardcode_minus_L=yes
   9500       allow_undefined_flag=unsupported
   9501       shrext_cmds=.dll
   9502       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9503 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9504 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9505 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9506 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9507 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9508 	emximp -o $lib $output_objdir/$libname.def'
   9509       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9510 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9511 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9512 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9513 	prefix_cmds="$SED"~
   9514 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9515 	  prefix_cmds="$prefix_cmds -e 1d";
   9516 	fi~
   9517 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9518 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9519 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9520 	emximp -o $lib $output_objdir/$libname.def'
   9521       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9522       enable_shared_with_static_runtimes=yes
   9523       ;;
   9524 
   9525     osf3*)
   9526       if test yes = "$GCC"; then
   9527 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9528 	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'
   9529       else
   9530 	allow_undefined_flag=' -expect_unresolved \*'
   9531 	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'
   9532       fi
   9533       archive_cmds_need_lc='no'
   9534       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9535       hardcode_libdir_separator=:
   9536       ;;
   9537 
   9538     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   9539       if test yes = "$GCC"; then
   9540 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9541 	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'
   9542 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9543       else
   9544 	allow_undefined_flag=' -expect_unresolved \*'
   9545 	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'
   9546 	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~
   9547           $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'
   9548 
   9549 	# Both c and cxx compiler support -rpath directly
   9550 	hardcode_libdir_flag_spec='-rpath $libdir'
   9551       fi
   9552       archive_cmds_need_lc='no'
   9553       hardcode_libdir_separator=:
   9554       ;;
   9555 
   9556     solaris*)
   9557       no_undefined_flag=' -z defs'
   9558       if test yes = "$GCC"; then
   9559 	wlarc='$wl'
   9560 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9561 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9562           $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'
   9563       else
   9564 	case `$CC -V 2>&1` in
   9565 	*"Compilers 5.0"*)
   9566 	  wlarc=''
   9567 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9568 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9569             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   9570 	  ;;
   9571 	*)
   9572 	  wlarc='$wl'
   9573 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9574 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9575             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   9576 	  ;;
   9577 	esac
   9578       fi
   9579       hardcode_libdir_flag_spec='-R$libdir'
   9580       hardcode_shlibpath_var=no
   9581       case $host_os in
   9582       solaris2.[0-5] | solaris2.[0-5].*) ;;
   9583       *)
   9584 	# The compiler driver will combine and reorder linker options,
   9585 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   9586 	# but is careful enough not to reorder.
   9587 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   9588 	if test yes = "$GCC"; then
   9589 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   9590 	else
   9591 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   9592 	fi
   9593 	;;
   9594       esac
   9595       link_all_deplibs=yes
   9596       ;;
   9597 
   9598     sunos4*)
   9599       if test sequent = "$host_vendor"; then
   9600 	# Use $CC to link under sequent, because it throws in some extra .o
   9601 	# files that make .init and .fini sections work.
   9602 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9603       else
   9604 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   9605       fi
   9606       hardcode_libdir_flag_spec='-L$libdir'
   9607       hardcode_direct=yes
   9608       hardcode_minus_L=yes
   9609       hardcode_shlibpath_var=no
   9610       ;;
   9611 
   9612     sysv4)
   9613       case $host_vendor in
   9614 	sni)
   9615 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9616 	  hardcode_direct=yes # is this really true???
   9617 	;;
   9618 	siemens)
   9619 	  ## LD is ld it makes a PLAMLIB
   9620 	  ## CC just makes a GrossModule.
   9621 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   9622 	  reload_cmds='$CC -r -o $output$reload_objs'
   9623 	  hardcode_direct=no
   9624         ;;
   9625 	motorola)
   9626 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9627 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   9628 	;;
   9629       esac
   9630       runpath_var='LD_RUN_PATH'
   9631       hardcode_shlibpath_var=no
   9632       ;;
   9633 
   9634     sysv4.3*)
   9635       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9636       hardcode_shlibpath_var=no
   9637       export_dynamic_flag_spec='-Bexport'
   9638       ;;
   9639 
   9640     sysv4*MP*)
   9641       if test -d /usr/nec; then
   9642 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9643 	hardcode_shlibpath_var=no
   9644 	runpath_var=LD_RUN_PATH
   9645 	hardcode_runpath_var=yes
   9646 	ld_shlibs=yes
   9647       fi
   9648       ;;
   9649 
   9650     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   9651       no_undefined_flag='$wl-z,text'
   9652       archive_cmds_need_lc=no
   9653       hardcode_shlibpath_var=no
   9654       runpath_var='LD_RUN_PATH'
   9655 
   9656       if test yes = "$GCC"; then
   9657 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9658 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9659       else
   9660 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9661 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9662       fi
   9663       ;;
   9664 
   9665     sysv5* | sco3.2v5* | sco5v6*)
   9666       # Note: We CANNOT use -z defs as we might desire, because we do not
   9667       # link with -lc, and that would cause any symbols used from libc to
   9668       # always be unresolved, which means just about no library would
   9669       # ever link correctly.  If we're not using GNU ld we use -z text
   9670       # though, which does catch some bad symbols but isn't as heavy-handed
   9671       # as -z defs.
   9672       no_undefined_flag='$wl-z,text'
   9673       allow_undefined_flag='$wl-z,nodefs'
   9674       archive_cmds_need_lc=no
   9675       hardcode_shlibpath_var=no
   9676       hardcode_libdir_flag_spec='$wl-R,$libdir'
   9677       hardcode_libdir_separator=':'
   9678       link_all_deplibs=yes
   9679       export_dynamic_flag_spec='$wl-Bexport'
   9680       runpath_var='LD_RUN_PATH'
   9681 
   9682       if test yes = "$GCC"; then
   9683 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9684 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9685       else
   9686 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9687 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9688       fi
   9689       ;;
   9690 
   9691     uts4*)
   9692       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9693       hardcode_libdir_flag_spec='-L$libdir'
   9694       hardcode_shlibpath_var=no
   9695       ;;
   9696 
   9697     *)
   9698       ld_shlibs=no
   9699       ;;
   9700     esac
   9701 
   9702     if test sni = "$host_vendor"; then
   9703       case $host in
   9704       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   9705 	export_dynamic_flag_spec='$wl-Blargedynsym'
   9706 	;;
   9707       esac
   9708     fi
   9709   fi
   9710 
   9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   9712 $as_echo "$ld_shlibs" >&6; }
   9713 test no = "$ld_shlibs" && can_build_shared=no
   9714 
   9715 with_gnu_ld=$with_gnu_ld
   9716 
   9717 
   9718 
   9719 
   9720 
   9721 
   9722 
   9723 
   9724 
   9725 
   9726 
   9727 
   9728 
   9729 
   9730 
   9731 #
   9732 # Do we need to explicitly link libc?
   9733 #
   9734 case "x$archive_cmds_need_lc" in
   9735 x|xyes)
   9736   # Assume -lc should be added
   9737   archive_cmds_need_lc=yes
   9738 
   9739   if test yes,yes = "$GCC,$enable_shared"; then
   9740     case $archive_cmds in
   9741     *'~'*)
   9742       # FIXME: we may have to deal with multi-command sequences.
   9743       ;;
   9744     '$CC '*)
   9745       # Test whether the compiler implicitly links with -lc since on some
   9746       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   9747       # to ld, don't add -lc before -lgcc.
   9748       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   9749 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   9750 if ${lt_cv_archive_cmds_need_lc+:} false; then :
   9751   $as_echo_n "(cached) " >&6
   9752 else
   9753   $RM conftest*
   9754 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9755 
   9756 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9757   (eval $ac_compile) 2>&5
   9758   ac_status=$?
   9759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9760   test $ac_status = 0; } 2>conftest.err; then
   9761 	  soname=conftest
   9762 	  lib=conftest
   9763 	  libobjs=conftest.$ac_objext
   9764 	  deplibs=
   9765 	  wl=$lt_prog_compiler_wl
   9766 	  pic_flag=$lt_prog_compiler_pic
   9767 	  compiler_flags=-v
   9768 	  linker_flags=-v
   9769 	  verstring=
   9770 	  output_objdir=.
   9771 	  libname=conftest
   9772 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   9773 	  allow_undefined_flag=
   9774 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   9775   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   9776   ac_status=$?
   9777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9778   test $ac_status = 0; }
   9779 	  then
   9780 	    lt_cv_archive_cmds_need_lc=no
   9781 	  else
   9782 	    lt_cv_archive_cmds_need_lc=yes
   9783 	  fi
   9784 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   9785 	else
   9786 	  cat conftest.err 1>&5
   9787 	fi
   9788 	$RM conftest*
   9789 
   9790 fi
   9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   9792 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   9793       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   9794       ;;
   9795     esac
   9796   fi
   9797   ;;
   9798 esac
   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 
   9951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   9952 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   9953 
   9954 if test yes = "$GCC"; then
   9955   case $host_os in
   9956     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   9957     *) lt_awk_arg='/^libraries:/' ;;
   9958   esac
   9959   case $host_os in
   9960     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   9961     *) lt_sed_strip_eq='s|=/|/|g' ;;
   9962   esac
   9963   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   9964   case $lt_search_path_spec in
   9965   *\;*)
   9966     # if the path contains ";" then we assume it to be the separator
   9967     # otherwise default to the standard path separator (i.e. ":") - it is
   9968     # assumed that no part of a normal pathname contains ";" but that should
   9969     # okay in the real world where ";" in dirpaths is itself problematic.
   9970     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   9971     ;;
   9972   *)
   9973     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   9974     ;;
   9975   esac
   9976   # Ok, now we have the path, separated by spaces, we can step through it
   9977   # and add multilib dir if necessary...
   9978   lt_tmp_lt_search_path_spec=
   9979   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   9980   # ...but if some path component already ends with the multilib dir we assume
   9981   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   9982   case "$lt_multi_os_dir; $lt_search_path_spec " in
   9983   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   9984     lt_multi_os_dir=
   9985     ;;
   9986   esac
   9987   for lt_sys_path in $lt_search_path_spec; do
   9988     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   9989       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   9990     elif test -n "$lt_multi_os_dir"; then
   9991       test -d "$lt_sys_path" && \
   9992 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   9993     fi
   9994   done
   9995   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   9996 BEGIN {RS = " "; FS = "/|\n";} {
   9997   lt_foo = "";
   9998   lt_count = 0;
   9999   for (lt_i = NF; lt_i > 0; lt_i--) {
   10000     if ($lt_i != "" && $lt_i != ".") {
   10001       if ($lt_i == "..") {
   10002         lt_count++;
   10003       } else {
   10004         if (lt_count == 0) {
   10005           lt_foo = "/" $lt_i lt_foo;
   10006         } else {
   10007           lt_count--;
   10008         }
   10009       }
   10010     }
   10011   }
   10012   if (lt_foo != "") { lt_freq[lt_foo]++; }
   10013   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   10014 }'`
   10015   # AWK program above erroneously prepends '/' to C:/dos/paths
   10016   # for these hosts.
   10017   case $host_os in
   10018     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   10019       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   10020   esac
   10021   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   10022 else
   10023   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10024 fi
   10025 library_names_spec=
   10026 libname_spec='lib$name'
   10027 soname_spec=
   10028 shrext_cmds=.so
   10029 postinstall_cmds=
   10030 postuninstall_cmds=
   10031 finish_cmds=
   10032 finish_eval=
   10033 shlibpath_var=
   10034 shlibpath_overrides_runpath=unknown
   10035 version_type=none
   10036 dynamic_linker="$host_os ld.so"
   10037 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   10038 need_lib_prefix=unknown
   10039 hardcode_into_libs=no
   10040 
   10041 # when you set need_version to no, make sure it does not cause -set_version
   10042 # flags to be left without arguments
   10043 need_version=unknown
   10044 
   10045 
   10046 
   10047 case $host_os in
   10048 aix3*)
   10049   version_type=linux # correct to gnu/linux during the next big refactor
   10050   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   10051   shlibpath_var=LIBPATH
   10052 
   10053   # AIX 3 has no versioning support, so we append a major version to the name.
   10054   soname_spec='$libname$release$shared_ext$major'
   10055   ;;
   10056 
   10057 aix[4-9]*)
   10058   version_type=linux # correct to gnu/linux during the next big refactor
   10059   need_lib_prefix=no
   10060   need_version=no
   10061   hardcode_into_libs=yes
   10062   if test ia64 = "$host_cpu"; then
   10063     # AIX 5 supports IA64
   10064     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   10065     shlibpath_var=LD_LIBRARY_PATH
   10066   else
   10067     # With GCC up to 2.95.x, collect2 would create an import file
   10068     # for dependence libraries.  The import file would start with
   10069     # the line '#! .'.  This would cause the generated library to
   10070     # depend on '.', always an invalid library.  This was fixed in
   10071     # development snapshots of GCC prior to 3.0.
   10072     case $host_os in
   10073       aix4 | aix4.[01] | aix4.[01].*)
   10074       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   10075 	   echo ' yes '
   10076 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   10077 	:
   10078       else
   10079 	can_build_shared=no
   10080       fi
   10081       ;;
   10082     esac
   10083     # Using Import Files as archive members, it is possible to support
   10084     # filename-based versioning of shared library archives on AIX. While
   10085     # this would work for both with and without runtime linking, it will
   10086     # prevent static linking of such archives. So we do filename-based
   10087     # shared library versioning with .so extension only, which is used
   10088     # when both runtime linking and shared linking is enabled.
   10089     # Unfortunately, runtime linking may impact performance, so we do
   10090     # not want this to be the default eventually. Also, we use the
   10091     # versioned .so libs for executables only if there is the -brtl
   10092     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
   10093     # To allow for filename-based versioning support, we need to create
   10094     # libNAME.so.V as an archive file, containing:
   10095     # *) an Import File, referring to the versioned filename of the
   10096     #    archive as well as the shared archive member, telling the
   10097     #    bitwidth (32 or 64) of that shared object, and providing the
   10098     #    list of exported symbols of that shared object, eventually
   10099     #    decorated with the 'weak' keyword
   10100     # *) the shared object with the F_LOADONLY flag set, to really avoid
   10101     #    it being seen by the linker.
   10102     # At run time we better use the real file rather than another symlink,
   10103     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   10104 
   10105     case $with_aix_soname,$aix_use_runtimelinking in
   10106     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   10107     # soname into executable. Probably we can add versioning support to
   10108     # collect2, so additional links can be useful in future.
   10109     aix,yes) # traditional libtool
   10110       dynamic_linker='AIX unversionable lib.so'
   10111       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   10112       # instead of lib<name>.a to let people know that these are not
   10113       # typical AIX shared libraries.
   10114       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10115       ;;
   10116     aix,no) # traditional AIX only
   10117       dynamic_linker='AIX lib.a(lib.so.V)'
   10118       # We preserve .a as extension for shared libraries through AIX4.2
   10119       # and later when we are not doing run time linking.
   10120       library_names_spec='$libname$release.a $libname.a'
   10121       soname_spec='$libname$release$shared_ext$major'
   10122       ;;
   10123     svr4,*) # full svr4 only
   10124       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   10125       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10126       # We do not specify a path in Import Files, so LIBPATH fires.
   10127       shlibpath_overrides_runpath=yes
   10128       ;;
   10129     *,yes) # both, prefer svr4
   10130       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   10131       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10132       # unpreferred sharedlib libNAME.a needs extra handling
   10133       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"'
   10134       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"'
   10135       # We do not specify a path in Import Files, so LIBPATH fires.
   10136       shlibpath_overrides_runpath=yes
   10137       ;;
   10138     *,no) # both, prefer aix
   10139       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   10140       library_names_spec='$libname$release.a $libname.a'
   10141       soname_spec='$libname$release$shared_ext$major'
   10142       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   10143       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)'
   10144       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"'
   10145       ;;
   10146     esac
   10147     shlibpath_var=LIBPATH
   10148   fi
   10149   ;;
   10150 
   10151 amigaos*)
   10152   case $host_cpu in
   10153   powerpc)
   10154     # Since July 2007 AmigaOS4 officially supports .so libraries.
   10155     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   10156     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10157     ;;
   10158   m68k)
   10159     library_names_spec='$libname.ixlibrary $libname.a'
   10160     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   10161     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'
   10162     ;;
   10163   esac
   10164   ;;
   10165 
   10166 beos*)
   10167   library_names_spec='$libname$shared_ext'
   10168   dynamic_linker="$host_os ld.so"
   10169   shlibpath_var=LIBRARY_PATH
   10170   ;;
   10171 
   10172 bsdi[45]*)
   10173   version_type=linux # correct to gnu/linux during the next big refactor
   10174   need_version=no
   10175   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10176   soname_spec='$libname$release$shared_ext$major'
   10177   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   10178   shlibpath_var=LD_LIBRARY_PATH
   10179   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   10180   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   10181   # the default ld.so.conf also contains /usr/contrib/lib and
   10182   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   10183   # libtool to hard-code these into programs
   10184   ;;
   10185 
   10186 cygwin* | mingw* | pw32* | cegcc*)
   10187   version_type=windows
   10188   shrext_cmds=.dll
   10189   need_version=no
   10190   need_lib_prefix=no
   10191 
   10192   case $GCC,$cc_basename in
   10193   yes,*)
   10194     # gcc
   10195     library_names_spec='$libname.dll.a'
   10196     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10197     postinstall_cmds='base_file=`basename \$file`~
   10198       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10199       dldir=$destdir/`dirname \$dlpath`~
   10200       test -d \$dldir || mkdir -p \$dldir~
   10201       $install_prog $dir/$dlname \$dldir/$dlname~
   10202       chmod a+x \$dldir/$dlname~
   10203       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10204         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10205       fi'
   10206     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10207       dlpath=$dir/\$dldll~
   10208        $RM \$dlpath'
   10209     shlibpath_overrides_runpath=yes
   10210 
   10211     case $host_os in
   10212     cygwin*)
   10213       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   10214       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10215 
   10216       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   10217       ;;
   10218     mingw* | cegcc*)
   10219       # MinGW DLLs use traditional 'lib' prefix
   10220       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10221       ;;
   10222     pw32*)
   10223       # pw32 DLLs use 'pw' prefix rather than 'lib'
   10224       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10225       ;;
   10226     esac
   10227     dynamic_linker='Win32 ld.exe'
   10228     ;;
   10229 
   10230   *,cl*)
   10231     # Native MSVC
   10232     libname_spec='$name'
   10233     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10234     library_names_spec='$libname.dll.lib'
   10235 
   10236     case $build_os in
   10237     mingw*)
   10238       sys_lib_search_path_spec=
   10239       lt_save_ifs=$IFS
   10240       IFS=';'
   10241       for lt_path in $LIB
   10242       do
   10243         IFS=$lt_save_ifs
   10244         # Let DOS variable expansion print the short 8.3 style file name.
   10245         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   10246         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   10247       done
   10248       IFS=$lt_save_ifs
   10249       # Convert to MSYS style.
   10250       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   10251       ;;
   10252     cygwin*)
   10253       # Convert to unix form, then to dos form, then back to unix form
   10254       # but this time dos style (no spaces!) so that the unix form looks
   10255       # like /cygdrive/c/PROGRA~1:/cygdr...
   10256       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   10257       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   10258       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10259       ;;
   10260     *)
   10261       sys_lib_search_path_spec=$LIB
   10262       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   10263         # It is most probably a Windows format PATH.
   10264         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   10265       else
   10266         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10267       fi
   10268       # FIXME: find the short name or the path components, as spaces are
   10269       # common. (e.g. "Program Files" -> "PROGRA~1")
   10270       ;;
   10271     esac
   10272 
   10273     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10274     postinstall_cmds='base_file=`basename \$file`~
   10275       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10276       dldir=$destdir/`dirname \$dlpath`~
   10277       test -d \$dldir || mkdir -p \$dldir~
   10278       $install_prog $dir/$dlname \$dldir/$dlname'
   10279     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10280       dlpath=$dir/\$dldll~
   10281        $RM \$dlpath'
   10282     shlibpath_overrides_runpath=yes
   10283     dynamic_linker='Win32 link.exe'
   10284     ;;
   10285 
   10286   *)
   10287     # Assume MSVC wrapper
   10288     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   10289     dynamic_linker='Win32 ld.exe'
   10290     ;;
   10291   esac
   10292   # FIXME: first we should search . and the directory the executable is in
   10293   shlibpath_var=PATH
   10294   ;;
   10295 
   10296 darwin* | rhapsody*)
   10297   dynamic_linker="$host_os dyld"
   10298   version_type=darwin
   10299   need_lib_prefix=no
   10300   need_version=no
   10301   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   10302   soname_spec='$libname$release$major$shared_ext'
   10303   shlibpath_overrides_runpath=yes
   10304   shlibpath_var=DYLD_LIBRARY_PATH
   10305   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   10306 
   10307   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   10308   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   10309   ;;
   10310 
   10311 dgux*)
   10312   version_type=linux # correct to gnu/linux during the next big refactor
   10313   need_lib_prefix=no
   10314   need_version=no
   10315   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10316   soname_spec='$libname$release$shared_ext$major'
   10317   shlibpath_var=LD_LIBRARY_PATH
   10318   ;;
   10319 
   10320 freebsd* | dragonfly*)
   10321   # DragonFly does not have aout.  When/if they implement a new
   10322   # versioning mechanism, adjust this.
   10323   if test -x /usr/bin/objformat; then
   10324     objformat=`/usr/bin/objformat`
   10325   else
   10326     case $host_os in
   10327     freebsd[23].*) objformat=aout ;;
   10328     *) objformat=elf ;;
   10329     esac
   10330   fi
   10331   version_type=freebsd-$objformat
   10332   case $version_type in
   10333     freebsd-elf*)
   10334       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10335       soname_spec='$libname$release$shared_ext$major'
   10336       need_version=no
   10337       need_lib_prefix=no
   10338       ;;
   10339     freebsd-*)
   10340       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10341       need_version=yes
   10342       ;;
   10343   esac
   10344   shlibpath_var=LD_LIBRARY_PATH
   10345   case $host_os in
   10346   freebsd2.*)
   10347     shlibpath_overrides_runpath=yes
   10348     ;;
   10349   freebsd3.[01]* | freebsdelf3.[01]*)
   10350     shlibpath_overrides_runpath=yes
   10351     hardcode_into_libs=yes
   10352     ;;
   10353   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   10354   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   10355     shlibpath_overrides_runpath=no
   10356     hardcode_into_libs=yes
   10357     ;;
   10358   *) # from 4.6 on, and DragonFly
   10359     shlibpath_overrides_runpath=yes
   10360     hardcode_into_libs=yes
   10361     ;;
   10362   esac
   10363   ;;
   10364 
   10365 haiku*)
   10366   version_type=linux # correct to gnu/linux during the next big refactor
   10367   need_lib_prefix=no
   10368   need_version=no
   10369   dynamic_linker="$host_os runtime_loader"
   10370   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10371   soname_spec='$libname$release$shared_ext$major'
   10372   shlibpath_var=LIBRARY_PATH
   10373   shlibpath_overrides_runpath=no
   10374   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   10375   hardcode_into_libs=yes
   10376   ;;
   10377 
   10378 hpux9* | hpux10* | hpux11*)
   10379   # Give a soname corresponding to the major version so that dld.sl refuses to
   10380   # link against other versions.
   10381   version_type=sunos
   10382   need_lib_prefix=no
   10383   need_version=no
   10384   case $host_cpu in
   10385   ia64*)
   10386     shrext_cmds='.so'
   10387     hardcode_into_libs=yes
   10388     dynamic_linker="$host_os dld.so"
   10389     shlibpath_var=LD_LIBRARY_PATH
   10390     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10391     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10392     soname_spec='$libname$release$shared_ext$major'
   10393     if test 32 = "$HPUX_IA64_MODE"; then
   10394       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   10395       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   10396     else
   10397       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   10398       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   10399     fi
   10400     ;;
   10401   hppa*64*)
   10402     shrext_cmds='.sl'
   10403     hardcode_into_libs=yes
   10404     dynamic_linker="$host_os dld.sl"
   10405     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   10406     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10407     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10408     soname_spec='$libname$release$shared_ext$major'
   10409     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   10410     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10411     ;;
   10412   *)
   10413     shrext_cmds='.sl'
   10414     dynamic_linker="$host_os dld.sl"
   10415     shlibpath_var=SHLIB_PATH
   10416     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   10417     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10418     soname_spec='$libname$release$shared_ext$major'
   10419     ;;
   10420   esac
   10421   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   10422   postinstall_cmds='chmod 555 $lib'
   10423   # or fails outright, so override atomically:
   10424   install_override_mode=555
   10425   ;;
   10426 
   10427 interix[3-9]*)
   10428   version_type=linux # correct to gnu/linux during the next big refactor
   10429   need_lib_prefix=no
   10430   need_version=no
   10431   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10432   soname_spec='$libname$release$shared_ext$major'
   10433   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   10434   shlibpath_var=LD_LIBRARY_PATH
   10435   shlibpath_overrides_runpath=no
   10436   hardcode_into_libs=yes
   10437   ;;
   10438 
   10439 irix5* | irix6* | nonstopux*)
   10440   case $host_os in
   10441     nonstopux*) version_type=nonstopux ;;
   10442     *)
   10443 	if test yes = "$lt_cv_prog_gnu_ld"; then
   10444 		version_type=linux # correct to gnu/linux during the next big refactor
   10445 	else
   10446 		version_type=irix
   10447 	fi ;;
   10448   esac
   10449   need_lib_prefix=no
   10450   need_version=no
   10451   soname_spec='$libname$release$shared_ext$major'
   10452   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   10453   case $host_os in
   10454   irix5* | nonstopux*)
   10455     libsuff= shlibsuff=
   10456     ;;
   10457   *)
   10458     case $LD in # libtool.m4 will add one of these switches to LD
   10459     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   10460       libsuff= shlibsuff= libmagic=32-bit;;
   10461     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   10462       libsuff=32 shlibsuff=N32 libmagic=N32;;
   10463     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   10464       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   10465     *) libsuff= shlibsuff= libmagic=never-match;;
   10466     esac
   10467     ;;
   10468   esac
   10469   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   10470   shlibpath_overrides_runpath=no
   10471   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   10472   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   10473   hardcode_into_libs=yes
   10474   ;;
   10475 
   10476 # No shared lib support for Linux oldld, aout, or coff.
   10477 linux*oldld* | linux*aout* | linux*coff*)
   10478   dynamic_linker=no
   10479   ;;
   10480 
   10481 linux*android*)
   10482   version_type=none # Android doesn't support versioned libraries.
   10483   need_lib_prefix=no
   10484   need_version=no
   10485   library_names_spec='$libname$release$shared_ext'
   10486   soname_spec='$libname$release$shared_ext'
   10487   finish_cmds=
   10488   shlibpath_var=LD_LIBRARY_PATH
   10489   shlibpath_overrides_runpath=yes
   10490 
   10491   # This implies no fast_install, which is unacceptable.
   10492   # Some rework will be needed to allow for fast_install
   10493   # before this can be enabled.
   10494   hardcode_into_libs=yes
   10495 
   10496   dynamic_linker='Android linker'
   10497   # Don't embed -rpath directories since the linker doesn't support them.
   10498   hardcode_libdir_flag_spec='-L$libdir'
   10499   ;;
   10500 
   10501 # This must be glibc/ELF.
   10502 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   10503   version_type=linux # correct to gnu/linux during the next big refactor
   10504   need_lib_prefix=no
   10505   need_version=no
   10506   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10507   soname_spec='$libname$release$shared_ext$major'
   10508   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   10509   shlibpath_var=LD_LIBRARY_PATH
   10510   shlibpath_overrides_runpath=no
   10511 
   10512   # Some binutils ld are patched to set DT_RUNPATH
   10513   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   10514   $as_echo_n "(cached) " >&6
   10515 else
   10516   lt_cv_shlibpath_overrides_runpath=no
   10517     save_LDFLAGS=$LDFLAGS
   10518     save_libdir=$libdir
   10519     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   10520 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   10521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10522 /* end confdefs.h.  */
   10523 
   10524 int
   10525 main ()
   10526 {
   10527 
   10528   ;
   10529   return 0;
   10530 }
   10531 _ACEOF
   10532 if ac_fn_c_try_link "$LINENO"; then :
   10533   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   10534   lt_cv_shlibpath_overrides_runpath=yes
   10535 fi
   10536 fi
   10537 rm -f core conftest.err conftest.$ac_objext \
   10538     conftest$ac_exeext conftest.$ac_ext
   10539     LDFLAGS=$save_LDFLAGS
   10540     libdir=$save_libdir
   10541 
   10542 fi
   10543 
   10544   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   10545 
   10546   # This implies no fast_install, which is unacceptable.
   10547   # Some rework will be needed to allow for fast_install
   10548   # before this can be enabled.
   10549   hardcode_into_libs=yes
   10550 
   10551   # Ideally, we could use ldconfig to report *all* directores which are
   10552   # searched for libraries, however this is still not possible.  Aside from not
   10553   # being certain /sbin/ldconfig is available, command
   10554   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   10555   # even though it is searched at run-time.  Try to do the best guess by
   10556   # appending ld.so.conf contents (and includes) to the search path.
   10557   if test -f /etc/ld.so.conf; then
   10558     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' ' '`
   10559     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   10560   fi
   10561 
   10562   # We used to test for /lib/ld.so.1 and disable shared libraries on
   10563   # powerpc, because MkLinux only supported shared libraries with the
   10564   # GNU dynamic linker.  Since this was broken with cross compilers,
   10565   # most powerpc-linux boxes support dynamic linking these days and
   10566   # people can always --disable-shared, the test was removed, and we
   10567   # assume the GNU/Linux dynamic linker is in use.
   10568   dynamic_linker='GNU/Linux ld.so'
   10569   ;;
   10570 
   10571 netbsd*)
   10572   version_type=sunos
   10573   need_lib_prefix=no
   10574   need_version=no
   10575   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   10576     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10577     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10578     dynamic_linker='NetBSD (a.out) ld.so'
   10579   else
   10580     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10581     soname_spec='$libname$release$shared_ext$major'
   10582     dynamic_linker='NetBSD ld.elf_so'
   10583   fi
   10584   shlibpath_var=LD_LIBRARY_PATH
   10585   shlibpath_overrides_runpath=yes
   10586   hardcode_into_libs=yes
   10587   ;;
   10588 
   10589 newsos6)
   10590   version_type=linux # correct to gnu/linux during the next big refactor
   10591   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10592   shlibpath_var=LD_LIBRARY_PATH
   10593   shlibpath_overrides_runpath=yes
   10594   ;;
   10595 
   10596 *nto* | *qnx*)
   10597   version_type=qnx
   10598   need_lib_prefix=no
   10599   need_version=no
   10600   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10601   soname_spec='$libname$release$shared_ext$major'
   10602   shlibpath_var=LD_LIBRARY_PATH
   10603   shlibpath_overrides_runpath=no
   10604   hardcode_into_libs=yes
   10605   dynamic_linker='ldqnx.so'
   10606   ;;
   10607 
   10608 openbsd* | bitrig*)
   10609   version_type=sunos
   10610   sys_lib_dlsearch_path_spec=/usr/lib
   10611   need_lib_prefix=no
   10612   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   10613     need_version=no
   10614   else
   10615     need_version=yes
   10616   fi
   10617   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10618   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10619   shlibpath_var=LD_LIBRARY_PATH
   10620   shlibpath_overrides_runpath=yes
   10621   ;;
   10622 
   10623 os2*)
   10624   libname_spec='$name'
   10625   version_type=windows
   10626   shrext_cmds=.dll
   10627   need_version=no
   10628   need_lib_prefix=no
   10629   # OS/2 can only load a DLL with a base name of 8 characters or less.
   10630   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   10631     v=$($ECHO $release$versuffix | tr -d .-);
   10632     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   10633     $ECHO $n$v`$shared_ext'
   10634   library_names_spec='${libname}_dll.$libext'
   10635   dynamic_linker='OS/2 ld.exe'
   10636   shlibpath_var=BEGINLIBPATH
   10637   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10638   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10639   postinstall_cmds='base_file=`basename \$file`~
   10640     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   10641     dldir=$destdir/`dirname \$dlpath`~
   10642     test -d \$dldir || mkdir -p \$dldir~
   10643     $install_prog $dir/$dlname \$dldir/$dlname~
   10644     chmod a+x \$dldir/$dlname~
   10645     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10646       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10647     fi'
   10648   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   10649     dlpath=$dir/\$dldll~
   10650     $RM \$dlpath'
   10651   ;;
   10652 
   10653 osf3* | osf4* | osf5*)
   10654   version_type=osf
   10655   need_lib_prefix=no
   10656   need_version=no
   10657   soname_spec='$libname$release$shared_ext$major'
   10658   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10659   shlibpath_var=LD_LIBRARY_PATH
   10660   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   10661   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10662   ;;
   10663 
   10664 rdos*)
   10665   dynamic_linker=no
   10666   ;;
   10667 
   10668 solaris*)
   10669   version_type=linux # correct to gnu/linux during the next big refactor
   10670   need_lib_prefix=no
   10671   need_version=no
   10672   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10673   soname_spec='$libname$release$shared_ext$major'
   10674   shlibpath_var=LD_LIBRARY_PATH
   10675   shlibpath_overrides_runpath=yes
   10676   hardcode_into_libs=yes
   10677   # ldd complains unless libraries are executable
   10678   postinstall_cmds='chmod +x $lib'
   10679   ;;
   10680 
   10681 sunos4*)
   10682   version_type=sunos
   10683   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10684   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   10685   shlibpath_var=LD_LIBRARY_PATH
   10686   shlibpath_overrides_runpath=yes
   10687   if test yes = "$with_gnu_ld"; then
   10688     need_lib_prefix=no
   10689   fi
   10690   need_version=yes
   10691   ;;
   10692 
   10693 sysv4 | sysv4.3*)
   10694   version_type=linux # correct to gnu/linux during the next big refactor
   10695   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10696   soname_spec='$libname$release$shared_ext$major'
   10697   shlibpath_var=LD_LIBRARY_PATH
   10698   case $host_vendor in
   10699     sni)
   10700       shlibpath_overrides_runpath=no
   10701       need_lib_prefix=no
   10702       runpath_var=LD_RUN_PATH
   10703       ;;
   10704     siemens)
   10705       need_lib_prefix=no
   10706       ;;
   10707     motorola)
   10708       need_lib_prefix=no
   10709       need_version=no
   10710       shlibpath_overrides_runpath=no
   10711       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   10712       ;;
   10713   esac
   10714   ;;
   10715 
   10716 sysv4*MP*)
   10717   if test -d /usr/nec; then
   10718     version_type=linux # correct to gnu/linux during the next big refactor
   10719     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   10720     soname_spec='$libname$shared_ext.$major'
   10721     shlibpath_var=LD_LIBRARY_PATH
   10722   fi
   10723   ;;
   10724 
   10725 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   10726   version_type=sco
   10727   need_lib_prefix=no
   10728   need_version=no
   10729   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   10730   soname_spec='$libname$release$shared_ext$major'
   10731   shlibpath_var=LD_LIBRARY_PATH
   10732   shlibpath_overrides_runpath=yes
   10733   hardcode_into_libs=yes
   10734   if test yes = "$with_gnu_ld"; then
   10735     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   10736   else
   10737     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   10738     case $host_os in
   10739       sco3.2v5*)
   10740         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   10741 	;;
   10742     esac
   10743   fi
   10744   sys_lib_dlsearch_path_spec='/usr/lib'
   10745   ;;
   10746 
   10747 tpf*)
   10748   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   10749   version_type=linux # correct to gnu/linux during the next big refactor
   10750   need_lib_prefix=no
   10751   need_version=no
   10752   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10753   shlibpath_var=LD_LIBRARY_PATH
   10754   shlibpath_overrides_runpath=no
   10755   hardcode_into_libs=yes
   10756   ;;
   10757 
   10758 uts4*)
   10759   version_type=linux # correct to gnu/linux during the next big refactor
   10760   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10761   soname_spec='$libname$release$shared_ext$major'
   10762   shlibpath_var=LD_LIBRARY_PATH
   10763   ;;
   10764 
   10765 *)
   10766   dynamic_linker=no
   10767   ;;
   10768 esac
   10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   10770 $as_echo "$dynamic_linker" >&6; }
   10771 test no = "$dynamic_linker" && can_build_shared=no
   10772 
   10773 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   10774 if test yes = "$GCC"; then
   10775   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   10776 fi
   10777 
   10778 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   10779   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   10780 fi
   10781 
   10782 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   10783   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   10784 fi
   10785 
   10786 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   10787 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   10788 
   10789 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   10790 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   10791 
   10792 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   10793 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   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 
   10891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   10892 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   10893 hardcode_action=
   10894 if test -n "$hardcode_libdir_flag_spec" ||
   10895    test -n "$runpath_var" ||
   10896    test yes = "$hardcode_automatic"; then
   10897 
   10898   # We can hardcode non-existent directories.
   10899   if test no != "$hardcode_direct" &&
   10900      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   10901      # have to relink, otherwise we might link with an installed library
   10902      # when we should be linking with a yet-to-be-installed one
   10903      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   10904      test no != "$hardcode_minus_L"; then
   10905     # Linking always hardcodes the temporary library directory.
   10906     hardcode_action=relink
   10907   else
   10908     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   10909     hardcode_action=immediate
   10910   fi
   10911 else
   10912   # We cannot hardcode anything, or else we can only hardcode existing
   10913   # directories.
   10914   hardcode_action=unsupported
   10915 fi
   10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   10917 $as_echo "$hardcode_action" >&6; }
   10918 
   10919 if test relink = "$hardcode_action" ||
   10920    test yes = "$inherit_rpath"; then
   10921   # Fast installation is not supported
   10922   enable_fast_install=no
   10923 elif test yes = "$shlibpath_overrides_runpath" ||
   10924      test no = "$enable_shared"; then
   10925   # Fast installation is not necessary
   10926   enable_fast_install=needless
   10927 fi
   10928 
   10929 
   10930 
   10931 
   10932 
   10933 
   10934   if test yes != "$enable_dlopen"; then
   10935   enable_dlopen=unknown
   10936   enable_dlopen_self=unknown
   10937   enable_dlopen_self_static=unknown
   10938 else
   10939   lt_cv_dlopen=no
   10940   lt_cv_dlopen_libs=
   10941 
   10942   case $host_os in
   10943   beos*)
   10944     lt_cv_dlopen=load_add_on
   10945     lt_cv_dlopen_libs=
   10946     lt_cv_dlopen_self=yes
   10947     ;;
   10948 
   10949   mingw* | pw32* | cegcc*)
   10950     lt_cv_dlopen=LoadLibrary
   10951     lt_cv_dlopen_libs=
   10952     ;;
   10953 
   10954   cygwin*)
   10955     lt_cv_dlopen=dlopen
   10956     lt_cv_dlopen_libs=
   10957     ;;
   10958 
   10959   darwin*)
   10960     # if libdl is installed we need to link against it
   10961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   10962 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   10963 if ${ac_cv_lib_dl_dlopen+:} false; then :
   10964   $as_echo_n "(cached) " >&6
   10965 else
   10966   ac_check_lib_save_LIBS=$LIBS
   10967 LIBS="-ldl  $LIBS"
   10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10969 /* end confdefs.h.  */
   10970 
   10971 /* Override any GCC internal prototype to avoid an error.
   10972    Use char because int might match the return type of a GCC
   10973    builtin and then its argument prototype would still apply.  */
   10974 #ifdef __cplusplus
   10975 extern "C"
   10976 #endif
   10977 char dlopen ();
   10978 int
   10979 main ()
   10980 {
   10981 return dlopen ();
   10982   ;
   10983   return 0;
   10984 }
   10985 _ACEOF
   10986 if ac_fn_c_try_link "$LINENO"; then :
   10987   ac_cv_lib_dl_dlopen=yes
   10988 else
   10989   ac_cv_lib_dl_dlopen=no
   10990 fi
   10991 rm -f core conftest.err conftest.$ac_objext \
   10992     conftest$ac_exeext conftest.$ac_ext
   10993 LIBS=$ac_check_lib_save_LIBS
   10994 fi
   10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   10996 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   10997 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   10998   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   10999 else
   11000 
   11001     lt_cv_dlopen=dyld
   11002     lt_cv_dlopen_libs=
   11003     lt_cv_dlopen_self=yes
   11004 
   11005 fi
   11006 
   11007     ;;
   11008 
   11009   tpf*)
   11010     # Don't try to run any link tests for TPF.  We know it's impossible
   11011     # because TPF is a cross-compiler, and we know how we open DSOs.
   11012     lt_cv_dlopen=dlopen
   11013     lt_cv_dlopen_libs=
   11014     lt_cv_dlopen_self=no
   11015     ;;
   11016 
   11017   *)
   11018     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   11019 if test "x$ac_cv_func_shl_load" = xyes; then :
   11020   lt_cv_dlopen=shl_load
   11021 else
   11022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   11023 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   11024 if ${ac_cv_lib_dld_shl_load+:} false; then :
   11025   $as_echo_n "(cached) " >&6
   11026 else
   11027   ac_check_lib_save_LIBS=$LIBS
   11028 LIBS="-ldld  $LIBS"
   11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11030 /* end confdefs.h.  */
   11031 
   11032 /* Override any GCC internal prototype to avoid an error.
   11033    Use char because int might match the return type of a GCC
   11034    builtin and then its argument prototype would still apply.  */
   11035 #ifdef __cplusplus
   11036 extern "C"
   11037 #endif
   11038 char shl_load ();
   11039 int
   11040 main ()
   11041 {
   11042 return shl_load ();
   11043   ;
   11044   return 0;
   11045 }
   11046 _ACEOF
   11047 if ac_fn_c_try_link "$LINENO"; then :
   11048   ac_cv_lib_dld_shl_load=yes
   11049 else
   11050   ac_cv_lib_dld_shl_load=no
   11051 fi
   11052 rm -f core conftest.err conftest.$ac_objext \
   11053     conftest$ac_exeext conftest.$ac_ext
   11054 LIBS=$ac_check_lib_save_LIBS
   11055 fi
   11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   11057 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   11058 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   11059   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   11060 else
   11061   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   11062 if test "x$ac_cv_func_dlopen" = xyes; then :
   11063   lt_cv_dlopen=dlopen
   11064 else
   11065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11066 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11067 if ${ac_cv_lib_dl_dlopen+:} false; then :
   11068   $as_echo_n "(cached) " >&6
   11069 else
   11070   ac_check_lib_save_LIBS=$LIBS
   11071 LIBS="-ldl  $LIBS"
   11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11073 /* end confdefs.h.  */
   11074 
   11075 /* Override any GCC internal prototype to avoid an error.
   11076    Use char because int might match the return type of a GCC
   11077    builtin and then its argument prototype would still apply.  */
   11078 #ifdef __cplusplus
   11079 extern "C"
   11080 #endif
   11081 char dlopen ();
   11082 int
   11083 main ()
   11084 {
   11085 return dlopen ();
   11086   ;
   11087   return 0;
   11088 }
   11089 _ACEOF
   11090 if ac_fn_c_try_link "$LINENO"; then :
   11091   ac_cv_lib_dl_dlopen=yes
   11092 else
   11093   ac_cv_lib_dl_dlopen=no
   11094 fi
   11095 rm -f core conftest.err conftest.$ac_objext \
   11096     conftest$ac_exeext conftest.$ac_ext
   11097 LIBS=$ac_check_lib_save_LIBS
   11098 fi
   11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11101 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11102   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11103 else
   11104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   11105 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   11106 if ${ac_cv_lib_svld_dlopen+:} false; then :
   11107   $as_echo_n "(cached) " >&6
   11108 else
   11109   ac_check_lib_save_LIBS=$LIBS
   11110 LIBS="-lsvld  $LIBS"
   11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11112 /* end confdefs.h.  */
   11113 
   11114 /* Override any GCC internal prototype to avoid an error.
   11115    Use char because int might match the return type of a GCC
   11116    builtin and then its argument prototype would still apply.  */
   11117 #ifdef __cplusplus
   11118 extern "C"
   11119 #endif
   11120 char dlopen ();
   11121 int
   11122 main ()
   11123 {
   11124 return dlopen ();
   11125   ;
   11126   return 0;
   11127 }
   11128 _ACEOF
   11129 if ac_fn_c_try_link "$LINENO"; then :
   11130   ac_cv_lib_svld_dlopen=yes
   11131 else
   11132   ac_cv_lib_svld_dlopen=no
   11133 fi
   11134 rm -f core conftest.err conftest.$ac_objext \
   11135     conftest$ac_exeext conftest.$ac_ext
   11136 LIBS=$ac_check_lib_save_LIBS
   11137 fi
   11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   11139 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   11140 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   11141   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   11142 else
   11143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   11144 $as_echo_n "checking for dld_link in -ldld... " >&6; }
   11145 if ${ac_cv_lib_dld_dld_link+:} false; then :
   11146   $as_echo_n "(cached) " >&6
   11147 else
   11148   ac_check_lib_save_LIBS=$LIBS
   11149 LIBS="-ldld  $LIBS"
   11150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11151 /* end confdefs.h.  */
   11152 
   11153 /* Override any GCC internal prototype to avoid an error.
   11154    Use char because int might match the return type of a GCC
   11155    builtin and then its argument prototype would still apply.  */
   11156 #ifdef __cplusplus
   11157 extern "C"
   11158 #endif
   11159 char dld_link ();
   11160 int
   11161 main ()
   11162 {
   11163 return dld_link ();
   11164   ;
   11165   return 0;
   11166 }
   11167 _ACEOF
   11168 if ac_fn_c_try_link "$LINENO"; then :
   11169   ac_cv_lib_dld_dld_link=yes
   11170 else
   11171   ac_cv_lib_dld_dld_link=no
   11172 fi
   11173 rm -f core conftest.err conftest.$ac_objext \
   11174     conftest$ac_exeext conftest.$ac_ext
   11175 LIBS=$ac_check_lib_save_LIBS
   11176 fi
   11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   11178 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   11179 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   11180   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   11181 fi
   11182 
   11183 
   11184 fi
   11185 
   11186 
   11187 fi
   11188 
   11189 
   11190 fi
   11191 
   11192 
   11193 fi
   11194 
   11195 
   11196 fi
   11197 
   11198     ;;
   11199   esac
   11200 
   11201   if test no = "$lt_cv_dlopen"; then
   11202     enable_dlopen=no
   11203   else
   11204     enable_dlopen=yes
   11205   fi
   11206 
   11207   case $lt_cv_dlopen in
   11208   dlopen)
   11209     save_CPPFLAGS=$CPPFLAGS
   11210     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   11211 
   11212     save_LDFLAGS=$LDFLAGS
   11213     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   11214 
   11215     save_LIBS=$LIBS
   11216     LIBS="$lt_cv_dlopen_libs $LIBS"
   11217 
   11218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   11219 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   11220 if ${lt_cv_dlopen_self+:} false; then :
   11221   $as_echo_n "(cached) " >&6
   11222 else
   11223   	  if test yes = "$cross_compiling"; then :
   11224   lt_cv_dlopen_self=cross
   11225 else
   11226   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11227   lt_status=$lt_dlunknown
   11228   cat > conftest.$ac_ext <<_LT_EOF
   11229 #line $LINENO "configure"
   11230 #include "confdefs.h"
   11231 
   11232 #if HAVE_DLFCN_H
   11233 #include <dlfcn.h>
   11234 #endif
   11235 
   11236 #include <stdio.h>
   11237 
   11238 #ifdef RTLD_GLOBAL
   11239 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11240 #else
   11241 #  ifdef DL_GLOBAL
   11242 #    define LT_DLGLOBAL		DL_GLOBAL
   11243 #  else
   11244 #    define LT_DLGLOBAL		0
   11245 #  endif
   11246 #endif
   11247 
   11248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11249    find out it does not work in some platform. */
   11250 #ifndef LT_DLLAZY_OR_NOW
   11251 #  ifdef RTLD_LAZY
   11252 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11253 #  else
   11254 #    ifdef DL_LAZY
   11255 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11256 #    else
   11257 #      ifdef RTLD_NOW
   11258 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11259 #      else
   11260 #        ifdef DL_NOW
   11261 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11262 #        else
   11263 #          define LT_DLLAZY_OR_NOW	0
   11264 #        endif
   11265 #      endif
   11266 #    endif
   11267 #  endif
   11268 #endif
   11269 
   11270 /* When -fvisibility=hidden is used, assume the code has been annotated
   11271    correspondingly for the symbols needed.  */
   11272 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11273 int fnord () __attribute__((visibility("default")));
   11274 #endif
   11275 
   11276 int fnord () { return 42; }
   11277 int main ()
   11278 {
   11279   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11280   int status = $lt_dlunknown;
   11281 
   11282   if (self)
   11283     {
   11284       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11285       else
   11286         {
   11287 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11288           else puts (dlerror ());
   11289 	}
   11290       /* dlclose (self); */
   11291     }
   11292   else
   11293     puts (dlerror ());
   11294 
   11295   return status;
   11296 }
   11297 _LT_EOF
   11298   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11299   (eval $ac_link) 2>&5
   11300   ac_status=$?
   11301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11302   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11303     (./conftest; exit; ) >&5 2>/dev/null
   11304     lt_status=$?
   11305     case x$lt_status in
   11306       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   11307       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   11308       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   11309     esac
   11310   else :
   11311     # compilation failed
   11312     lt_cv_dlopen_self=no
   11313   fi
   11314 fi
   11315 rm -fr conftest*
   11316 
   11317 
   11318 fi
   11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   11320 $as_echo "$lt_cv_dlopen_self" >&6; }
   11321 
   11322     if test yes = "$lt_cv_dlopen_self"; then
   11323       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   11324       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   11325 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   11326 if ${lt_cv_dlopen_self_static+:} false; then :
   11327   $as_echo_n "(cached) " >&6
   11328 else
   11329   	  if test yes = "$cross_compiling"; then :
   11330   lt_cv_dlopen_self_static=cross
   11331 else
   11332   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11333   lt_status=$lt_dlunknown
   11334   cat > conftest.$ac_ext <<_LT_EOF
   11335 #line $LINENO "configure"
   11336 #include "confdefs.h"
   11337 
   11338 #if HAVE_DLFCN_H
   11339 #include <dlfcn.h>
   11340 #endif
   11341 
   11342 #include <stdio.h>
   11343 
   11344 #ifdef RTLD_GLOBAL
   11345 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11346 #else
   11347 #  ifdef DL_GLOBAL
   11348 #    define LT_DLGLOBAL		DL_GLOBAL
   11349 #  else
   11350 #    define LT_DLGLOBAL		0
   11351 #  endif
   11352 #endif
   11353 
   11354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11355    find out it does not work in some platform. */
   11356 #ifndef LT_DLLAZY_OR_NOW
   11357 #  ifdef RTLD_LAZY
   11358 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11359 #  else
   11360 #    ifdef DL_LAZY
   11361 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11362 #    else
   11363 #      ifdef RTLD_NOW
   11364 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11365 #      else
   11366 #        ifdef DL_NOW
   11367 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11368 #        else
   11369 #          define LT_DLLAZY_OR_NOW	0
   11370 #        endif
   11371 #      endif
   11372 #    endif
   11373 #  endif
   11374 #endif
   11375 
   11376 /* When -fvisibility=hidden is used, assume the code has been annotated
   11377    correspondingly for the symbols needed.  */
   11378 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11379 int fnord () __attribute__((visibility("default")));
   11380 #endif
   11381 
   11382 int fnord () { return 42; }
   11383 int main ()
   11384 {
   11385   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11386   int status = $lt_dlunknown;
   11387 
   11388   if (self)
   11389     {
   11390       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11391       else
   11392         {
   11393 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11394           else puts (dlerror ());
   11395 	}
   11396       /* dlclose (self); */
   11397     }
   11398   else
   11399     puts (dlerror ());
   11400 
   11401   return status;
   11402 }
   11403 _LT_EOF
   11404   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11405   (eval $ac_link) 2>&5
   11406   ac_status=$?
   11407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11408   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11409     (./conftest; exit; ) >&5 2>/dev/null
   11410     lt_status=$?
   11411     case x$lt_status in
   11412       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   11413       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   11414       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   11415     esac
   11416   else :
   11417     # compilation failed
   11418     lt_cv_dlopen_self_static=no
   11419   fi
   11420 fi
   11421 rm -fr conftest*
   11422 
   11423 
   11424 fi
   11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   11426 $as_echo "$lt_cv_dlopen_self_static" >&6; }
   11427     fi
   11428 
   11429     CPPFLAGS=$save_CPPFLAGS
   11430     LDFLAGS=$save_LDFLAGS
   11431     LIBS=$save_LIBS
   11432     ;;
   11433   esac
   11434 
   11435   case $lt_cv_dlopen_self in
   11436   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   11437   *) enable_dlopen_self=unknown ;;
   11438   esac
   11439 
   11440   case $lt_cv_dlopen_self_static in
   11441   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   11442   *) enable_dlopen_self_static=unknown ;;
   11443   esac
   11444 fi
   11445 
   11446 
   11447 
   11448 
   11449 
   11450 
   11451 
   11452 
   11453 
   11454 
   11455 
   11456 
   11457 
   11458 
   11459 
   11460 
   11461 
   11462 striplib=
   11463 old_striplib=
   11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   11465 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   11466 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   11467   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   11468   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   11469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11470 $as_echo "yes" >&6; }
   11471 else
   11472 # FIXME - insert some real tests, host_os isn't really good enough
   11473   case $host_os in
   11474   darwin*)
   11475     if test -n "$STRIP"; then
   11476       striplib="$STRIP -x"
   11477       old_striplib="$STRIP -S"
   11478       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11479 $as_echo "yes" >&6; }
   11480     else
   11481       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11482 $as_echo "no" >&6; }
   11483     fi
   11484     ;;
   11485   *)
   11486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11487 $as_echo "no" >&6; }
   11488     ;;
   11489   esac
   11490 fi
   11491 
   11492 
   11493 
   11494 
   11495 
   11496 
   11497 
   11498 
   11499 
   11500 
   11501 
   11502 
   11503   # Report what library types will actually be built
   11504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   11505 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   11506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   11507 $as_echo "$can_build_shared" >&6; }
   11508 
   11509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   11510 $as_echo_n "checking whether to build shared libraries... " >&6; }
   11511   test no = "$can_build_shared" && enable_shared=no
   11512 
   11513   # On AIX, shared libraries and static libraries use the same namespace, and
   11514   # are all built from PIC.
   11515   case $host_os in
   11516   aix3*)
   11517     test yes = "$enable_shared" && enable_static=no
   11518     if test -n "$RANLIB"; then
   11519       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   11520       postinstall_cmds='$RANLIB $lib'
   11521     fi
   11522     ;;
   11523 
   11524   aix[4-9]*)
   11525     if test ia64 != "$host_cpu"; then
   11526       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   11527       yes,aix,yes) ;;			# shared object as lib.so file only
   11528       yes,svr4,*) ;;			# shared object as lib.so archive member only
   11529       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   11530       esac
   11531     fi
   11532     ;;
   11533   esac
   11534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   11535 $as_echo "$enable_shared" >&6; }
   11536 
   11537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   11538 $as_echo_n "checking whether to build static libraries... " >&6; }
   11539   # Make sure either enable_shared or enable_static is yes.
   11540   test yes = "$enable_shared" || enable_static=yes
   11541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   11542 $as_echo "$enable_static" >&6; }
   11543 
   11544 
   11545 
   11546 
   11547 fi
   11548 ac_ext=c
   11549 ac_cpp='$CPP $CPPFLAGS'
   11550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   11551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   11552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   11553 
   11554 CC=$lt_save_CC
   11555 
   11556 
   11557 
   11558 
   11559 
   11560 
   11561 
   11562 
   11563 
   11564 
   11565 
   11566 
   11567 
   11568 
   11569 
   11570         ac_config_commands="$ac_config_commands libtool"
   11571 
   11572 
   11573 
   11574 
   11575 # Only expand once:
   11576 
   11577 
   11578 # Find a good install program.  We prefer a C program (faster),
   11579 # so one script is as good as another.  But avoid the broken or
   11580 # incompatible versions:
   11581 # SysV /etc/install, /usr/sbin/install
   11582 # SunOS /usr/etc/install
   11583 # IRIX /sbin/install
   11584 # AIX /bin/install
   11585 # AmigaOS /C/install, which installs bootblocks on floppy discs
   11586 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   11587 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   11588 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   11589 # OS/2's system install, which has a completely different semantic
   11590 # ./install, which can be erroneously created by make from ./install.sh.
   11591 # Reject install programs that cannot install multiple files.
   11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   11593 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   11594 if test -z "$INSTALL"; then
   11595 if ${ac_cv_path_install+:} false; then :
   11596   $as_echo_n "(cached) " >&6
   11597 else
   11598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11599 for as_dir in $PATH
   11600 do
   11601   IFS=$as_save_IFS
   11602   test -z "$as_dir" && as_dir=.
   11603     # Account for people who put trailing slashes in PATH elements.
   11604 case $as_dir/ in #((
   11605   ./ | .// | /[cC]/* | \
   11606   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   11607   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   11608   /usr/ucb/* ) ;;
   11609   *)
   11610     # OSF1 and SCO ODT 3.0 have their own names for install.
   11611     # Don't use installbsd from OSF since it installs stuff as root
   11612     # by default.
   11613     for ac_prog in ginstall scoinst install; do
   11614       for ac_exec_ext in '' $ac_executable_extensions; do
   11615 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   11616 	  if test $ac_prog = install &&
   11617 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11618 	    # AIX install.  It has an incompatible calling convention.
   11619 	    :
   11620 	  elif test $ac_prog = install &&
   11621 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11622 	    # program-specific install script used by HP pwplus--don't use.
   11623 	    :
   11624 	  else
   11625 	    rm -rf conftest.one conftest.two conftest.dir
   11626 	    echo one > conftest.one
   11627 	    echo two > conftest.two
   11628 	    mkdir conftest.dir
   11629 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   11630 	      test -s conftest.one && test -s conftest.two &&
   11631 	      test -s conftest.dir/conftest.one &&
   11632 	      test -s conftest.dir/conftest.two
   11633 	    then
   11634 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   11635 	      break 3
   11636 	    fi
   11637 	  fi
   11638 	fi
   11639       done
   11640     done
   11641     ;;
   11642 esac
   11643 
   11644   done
   11645 IFS=$as_save_IFS
   11646 
   11647 rm -rf conftest.one conftest.two conftest.dir
   11648 
   11649 fi
   11650   if test "${ac_cv_path_install+set}" = set; then
   11651     INSTALL=$ac_cv_path_install
   11652   else
   11653     # As a last resort, use the slow shell script.  Don't cache a
   11654     # value for INSTALL within a source directory, because that will
   11655     # break other packages using the cache if that directory is
   11656     # removed, or if the value is a relative name.
   11657     INSTALL=$ac_install_sh
   11658   fi
   11659 fi
   11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   11661 $as_echo "$INSTALL" >&6; }
   11662 
   11663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   11664 # It thinks the first close brace ends the variable substitution.
   11665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   11666 
   11667 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   11668 
   11669 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   11670 
   11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   11672 $as_echo_n "checking whether ln -s works... " >&6; }
   11673 LN_S=$as_ln_s
   11674 if test "$LN_S" = "ln -s"; then
   11675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11676 $as_echo "yes" >&6; }
   11677 else
   11678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   11679 $as_echo "no, using $LN_S" >&6; }
   11680 fi
   11681 
   11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
   11683 $as_echo_n "checking for a POSIX-compatible shell... " >&6; }
   11684 if ${ac_cv_prog_shell+:} false; then :
   11685   $as_echo_n "(cached) " >&6
   11686 else
   11687   ac_test_shell_script='
   11688 			  test "$(expr 1 + 1)" = "2" &&
   11689 			  test "$(( 1 + 1 ))" = "2"
   11690 			  '
   11691 
   11692 			  for ac_cv_prog_shell in \
   11693 			    "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
   11694 			    case $ac_cv_prog_shell in #(
   11695   /*) :
   11696 
   11697 				      if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null; then :
   11698   break
   11699 fi
   11700 				     ;; #(
   11701   *) :
   11702      ;;
   11703 esac
   11704 			  done
   11705 
   11706 fi
   11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
   11708 $as_echo "$ac_cv_prog_shell" >&6; }
   11709 	  if test "$ac_cv_prog_shell" = "no"; then :
   11710   SHELL=/bin/sh
   11711 		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
   11712 $as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
   11713 
   11714 else
   11715   SHELL="$ac_cv_prog_shell"
   11716 
   11717 fi
   11718 
   11719 
   11720 
   11721 
   11722 
   11723 
   11724 
   11725 
   11726 
   11727 
   11728 #
   11729 # Use pkg-config
   11730 #
   11731 
   11732 
   11733 
   11734 
   11735 
   11736 
   11737 
   11738 
   11739 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   11740 	if test -n "$ac_tool_prefix"; then
   11741   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   11742 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11744 $as_echo_n "checking for $ac_word... " >&6; }
   11745 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   11746   $as_echo_n "(cached) " >&6
   11747 else
   11748   case $PKG_CONFIG in
   11749   [\\/]* | ?:[\\/]*)
   11750   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   11751   ;;
   11752   *)
   11753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11754 for as_dir in $PATH
   11755 do
   11756   IFS=$as_save_IFS
   11757   test -z "$as_dir" && as_dir=.
   11758     for ac_exec_ext in '' $ac_executable_extensions; do
   11759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11760     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   11761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11762     break 2
   11763   fi
   11764 done
   11765   done
   11766 IFS=$as_save_IFS
   11767 
   11768   ;;
   11769 esac
   11770 fi
   11771 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   11772 if test -n "$PKG_CONFIG"; then
   11773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   11774 $as_echo "$PKG_CONFIG" >&6; }
   11775 else
   11776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11777 $as_echo "no" >&6; }
   11778 fi
   11779 
   11780 
   11781 fi
   11782 if test -z "$ac_cv_path_PKG_CONFIG"; then
   11783   ac_pt_PKG_CONFIG=$PKG_CONFIG
   11784   # Extract the first word of "pkg-config", so it can be a program name with args.
   11785 set dummy pkg-config; ac_word=$2
   11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11787 $as_echo_n "checking for $ac_word... " >&6; }
   11788 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   11789   $as_echo_n "(cached) " >&6
   11790 else
   11791   case $ac_pt_PKG_CONFIG in
   11792   [\\/]* | ?:[\\/]*)
   11793   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   11794   ;;
   11795   *)
   11796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11797 for as_dir in $PATH
   11798 do
   11799   IFS=$as_save_IFS
   11800   test -z "$as_dir" && as_dir=.
   11801     for ac_exec_ext in '' $ac_executable_extensions; do
   11802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11803     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   11804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11805     break 2
   11806   fi
   11807 done
   11808   done
   11809 IFS=$as_save_IFS
   11810 
   11811   ;;
   11812 esac
   11813 fi
   11814 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   11815 if test -n "$ac_pt_PKG_CONFIG"; then
   11816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   11817 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   11818 else
   11819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11820 $as_echo "no" >&6; }
   11821 fi
   11822 
   11823   if test "x$ac_pt_PKG_CONFIG" = x; then
   11824     PKG_CONFIG=""
   11825   else
   11826     case $cross_compiling:$ac_tool_warned in
   11827 yes:)
   11828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   11829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   11830 ac_tool_warned=yes ;;
   11831 esac
   11832     PKG_CONFIG=$ac_pt_PKG_CONFIG
   11833   fi
   11834 else
   11835   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   11836 fi
   11837 
   11838 fi
   11839 if test -n "$PKG_CONFIG"; then
   11840 	_pkg_min_version=0.9.0
   11841 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   11842 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   11843 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   11844 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11845 $as_echo "yes" >&6; }
   11846 	else
   11847 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11848 $as_echo "no" >&6; }
   11849 		PKG_CONFIG=""
   11850 	fi
   11851 fi
   11852 
   11853 # Warn if the user specified libbind, which is now deprecated
   11854 # Check whether --enable-libbind was given.
   11855 if test "${enable_libbind+set}" = set; then :
   11856   enableval=$enable_libbind;
   11857 fi
   11858 
   11859 
   11860 case "$enable_libbind" in
   11861 	yes)
   11862 		as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution.
   11863 It is available from http://www.isc.org as a separate download." "$LINENO" 5
   11864 		;;
   11865 	no|'')
   11866 		;;
   11867 esac
   11868 
   11869 # Check whether --enable-buffer_useinline was given.
   11870 if test "${enable_buffer_useinline+set}" = set; then :
   11871   enableval=$enable_buffer_useinline; if test yes = "${enable}"
   11872 	      then
   11873 
   11874 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   11875 
   11876 	      fi
   11877 else
   11878   $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   11879 
   11880 fi
   11881 
   11882 
   11883 # Check whether --enable-warn_shadow was given.
   11884 if test "${enable_warn_shadow+set}" = set; then :
   11885   enableval=$enable_warn_shadow;
   11886 fi
   11887 
   11888 
   11889 # Check whether --enable-warn_error was given.
   11890 if test "${enable_warn_error+set}" = set; then :
   11891   enableval=$enable_warn_error;
   11892 fi
   11893 
   11894 
   11895 # Check whether --enable-developer was given.
   11896 if test "${enable_developer+set}" = set; then :
   11897   enableval=$enable_developer;
   11898 fi
   11899 
   11900 XTARGETS=
   11901 case "$enable_developer" in
   11902 yes)
   11903 	STD_CDEFINES="$STD_CDEFINES -DISC_MEM_DEFAULTFILL=1 -DISC_LIST_CHECKINIT=1"
   11904 	test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
   11905 	test "${enable_querytrace+set}" = set || enable_querytrace=yes
   11906 	test "${with_cmocka+set}" = set || with_cmocka=yes
   11907 	test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
   11908 	test "${enable_symtable+set}" = set || enable_symtable=all
   11909 	test "${enable_warn_error+set}" = set || enable_warn_error=yes
   11910 	test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
   11911 	test "${with_zlib+set}" = set || with_zlib=yes
   11912 	XTARGETS='${XTARGETS}'
   11913 	;;
   11914 esac
   11915 
   11916 
   11917 # Check whether --enable-fuzzing was given.
   11918 if test "${enable_fuzzing+set}" = set; then :
   11919   enableval=$enable_fuzzing;
   11920 else
   11921   enable_fuzzing=no
   11922 fi
   11923 
   11924 
   11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
   11926 $as_echo_n "checking whether to enable fuzzing mode... " >&6; }
   11927 case $enable_fuzzing in #(
   11928   no) :
   11929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11930 $as_echo "no" >&6; } ;; #(
   11931   afl) :
   11932 
   11933 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
   11934 $as_echo "using AFL" >&6; }
   11935 
   11936 $as_echo "#define ENABLE_AFL 1" >>confdefs.h
   11937 
   11938 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
   11939 	  LIBS="$LIBS -lpthread" ;; #(
   11940   libfuzzer) :
   11941 
   11942 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
   11943 $as_echo "using libFuzzer" >&6; }
   11944 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer,address,undefined"
   11945 	  LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address,undefined" ;; #(
   11946   *) :
   11947     as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
   11948   *) :
   11949      ;;
   11950 esac
   11951 
   11952 if test "$enable_fuzzing" = "afl"; then :
   11953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
   11954 $as_echo_n "checking \"for AFL enabled compiler\"... " >&6; }
   11955        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11956 /* end confdefs.h.  */
   11957 
   11958 int
   11959 main ()
   11960 {
   11961 #ifndef __AFL_COMPILER
   11962 					   #error AFL compiler required
   11963 					   #endif
   11964 
   11965   ;
   11966   return 0;
   11967 }
   11968 _ACEOF
   11969 if ac_fn_c_try_compile "$LINENO"; then :
   11970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11971 $as_echo "yes" >&6; }
   11972 else
   11973   as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
   11974 fi
   11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11976 
   11977 fi
   11978 
   11979 #
   11980 # Make very sure that these are the first files processed by
   11981 # config.status, since we use the processed output as the input for
   11982 # AC_SUBST_FILE() substitutions in other files.
   11983 #
   11984 ac_config_files="$ac_config_files make/rules make/includes"
   11985 
   11986 
   11987 # Extract the first word of "ar", so it can be a program name with args.
   11988 set dummy ar; ac_word=$2
   11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11990 $as_echo_n "checking for $ac_word... " >&6; }
   11991 if ${ac_cv_path_AR+:} false; then :
   11992   $as_echo_n "(cached) " >&6
   11993 else
   11994   case $AR in
   11995   [\\/]* | ?:[\\/]*)
   11996   ac_cv_path_AR="$AR" # Let the user override the test with a path.
   11997   ;;
   11998   *)
   11999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12000 for as_dir in $PATH
   12001 do
   12002   IFS=$as_save_IFS
   12003   test -z "$as_dir" && as_dir=.
   12004     for ac_exec_ext in '' $ac_executable_extensions; do
   12005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12006     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
   12007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12008     break 2
   12009   fi
   12010 done
   12011   done
   12012 IFS=$as_save_IFS
   12013 
   12014   ;;
   12015 esac
   12016 fi
   12017 AR=$ac_cv_path_AR
   12018 if test -n "$AR"; then
   12019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12020 $as_echo "$AR" >&6; }
   12021 else
   12022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12023 $as_echo "no" >&6; }
   12024 fi
   12025 
   12026 
   12027 ARFLAGS="cruv"
   12028 
   12029 
   12030 
   12031 # The POSIX ln(1) program.  Non-POSIX systems may substitute
   12032 # "copy" or something.
   12033 LN=ln
   12034 
   12035 
   12036 case "$AR" in
   12037 	"")
   12038 		as_fn_error $? "
   12039 ar program not found.  Please fix your PATH to include the directory in
   12040 which ar resides, or set AR in the environment with the full path to ar.
   12041 " "$LINENO" 5
   12042 
   12043 		;;
   12044 esac
   12045 
   12046 #
   12047 # Etags.
   12048 #
   12049 for ac_prog in etags emacs-etags
   12050 do
   12051   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12052 set dummy $ac_prog; ac_word=$2
   12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12054 $as_echo_n "checking for $ac_word... " >&6; }
   12055 if ${ac_cv_path_ETAGS+:} false; then :
   12056   $as_echo_n "(cached) " >&6
   12057 else
   12058   case $ETAGS in
   12059   [\\/]* | ?:[\\/]*)
   12060   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
   12061   ;;
   12062   *)
   12063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12064 for as_dir in $PATH
   12065 do
   12066   IFS=$as_save_IFS
   12067   test -z "$as_dir" && as_dir=.
   12068     for ac_exec_ext in '' $ac_executable_extensions; do
   12069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12070     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
   12071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12072     break 2
   12073   fi
   12074 done
   12075   done
   12076 IFS=$as_save_IFS
   12077 
   12078   ;;
   12079 esac
   12080 fi
   12081 ETAGS=$ac_cv_path_ETAGS
   12082 if test -n "$ETAGS"; then
   12083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
   12084 $as_echo "$ETAGS" >&6; }
   12085 else
   12086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12087 $as_echo "no" >&6; }
   12088 fi
   12089 
   12090 
   12091   test -n "$ETAGS" && break
   12092 done
   12093 
   12094 
   12095 #
   12096 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
   12097 # GNU emacs etags, and it requires the -L flag.
   12098 #
   12099 if test "X$ETAGS" != "X"; then
   12100 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5
   12101 $as_echo_n "checking for Exuberant Ctags etags... " >&6; }
   12102 	if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
   12103 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12104 $as_echo "yes" >&6; }
   12105 		ETAGS="$ETAGS -L"
   12106 	else
   12107 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12108 $as_echo "no" >&6; }
   12109 	fi
   12110 fi
   12111 
   12112 
   12113 #
   12114 # Perl is optional; it is used only by some of the system test scripts.
   12115 # Note: the backtrace feature (see below) uses perl to build the symbol table,
   12116 # but it still compiles without perl, in which case an empty table will be used.
   12117 #
   12118 for ac_prog in perl5 perl
   12119 do
   12120   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12121 set dummy $ac_prog; ac_word=$2
   12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12123 $as_echo_n "checking for $ac_word... " >&6; }
   12124 if ${ac_cv_path_PERL+:} false; then :
   12125   $as_echo_n "(cached) " >&6
   12126 else
   12127   case $PERL in
   12128   [\\/]* | ?:[\\/]*)
   12129   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
   12130   ;;
   12131   *)
   12132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12133 for as_dir in $PATH
   12134 do
   12135   IFS=$as_save_IFS
   12136   test -z "$as_dir" && as_dir=.
   12137     for ac_exec_ext in '' $ac_executable_extensions; do
   12138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12139     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
   12140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12141     break 2
   12142   fi
   12143 done
   12144   done
   12145 IFS=$as_save_IFS
   12146 
   12147   ;;
   12148 esac
   12149 fi
   12150 PERL=$ac_cv_path_PERL
   12151 if test -n "$PERL"; then
   12152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
   12153 $as_echo "$PERL" >&6; }
   12154 else
   12155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12156 $as_echo "no" >&6; }
   12157 fi
   12158 
   12159 
   12160   test -n "$PERL" && break
   12161 done
   12162 
   12163 
   12164 
   12165 #
   12166 # Python is also optional but required by default so that dnssec-keymgr gets
   12167 # installed unless explicitly prevented by the user using --without-python.
   12168 #
   12169 testminvers='import sys
   12170 if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
   12171    exit(1)'
   12172 
   12173 testargparse='try: import argparse
   12174 except: exit(1)'
   12175 
   12176 testply='try: import ply
   12177 except: exit(1)'
   12178 
   12179 default_with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
   12180 
   12181 
   12182 # Check whether --with-python was given.
   12183 if test "${with_python+set}" = set; then :
   12184   withval=$with_python;
   12185 else
   12186   with_python=$default_with_python
   12187 fi
   12188 
   12189 
   12190 # Check whether --with-python-install-dir was given.
   12191 if test "${with_python_install_dir+set}" = set; then :
   12192   withval=$with_python_install_dir;
   12193 else
   12194   with_python_install_dir=""
   12195 fi
   12196 
   12197 
   12198 if test "$with_python" = "yes"; then :
   12199   with_python=$default_with_python
   12200 fi
   12201 
   12202 if test "$with_python" = "no"; then :
   12203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12204 $as_echo_n "checking for Python support... " >&6; }
   12205        { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   12206 $as_echo "disabled" >&6; }
   12207 else
   12208   for p in $with_python
   12209        do
   12210 	 case $p in #(
   12211   /*) :
   12212     PYTHON="$p" ;; #(
   12213   *) :
   12214      ;;
   12215 esac
   12216 
   12217 	 # Extract the first word of "$p", so it can be a program name with args.
   12218 set dummy $p; ac_word=$2
   12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12220 $as_echo_n "checking for $ac_word... " >&6; }
   12221 if ${ac_cv_path_PYTHON+:} false; then :
   12222   $as_echo_n "(cached) " >&6
   12223 else
   12224   case $PYTHON in
   12225   [\\/]* | ?:[\\/]*)
   12226   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
   12227   ;;
   12228   *)
   12229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12230 for as_dir in $PATH
   12231 do
   12232   IFS=$as_save_IFS
   12233   test -z "$as_dir" && as_dir=.
   12234     for ac_exec_ext in '' $ac_executable_extensions; do
   12235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12236     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
   12237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12238     break 2
   12239   fi
   12240 done
   12241   done
   12242 IFS=$as_save_IFS
   12243 
   12244   ;;
   12245 esac
   12246 fi
   12247 PYTHON=$ac_cv_path_PYTHON
   12248 if test -n "$PYTHON"; then
   12249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
   12250 $as_echo "$PYTHON" >&6; }
   12251 else
   12252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12253 $as_echo "no" >&6; }
   12254 fi
   12255 
   12256 
   12257 	 # Do not cache the result of the check from the previous line.  If the
   12258 	 # first found Python interpreter has missing module dependencies and
   12259 	 # the result of the above check is cached, subsequent module checks
   12260 	 # will erroneously keep on using the cached path to the first found
   12261 	 # Python interpreter instead of different ones.
   12262 	 unset ac_cv_path_PYTHON
   12263 
   12264 	 if test -z "$PYTHON"; then :
   12265   continue
   12266 fi
   12267 
   12268 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5
   12269 $as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
   12270 	 if "$PYTHON" -c "$testminvers" 2>/dev/null; then :
   12271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12272 $as_echo "yes" >&6; }
   12273 else
   12274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12275 $as_echo "no" >&6; }
   12276 		unset PYTHON
   12277 		continue
   12278 fi
   12279 
   12280 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5
   12281 $as_echo_n "checking Python module 'argparse'... " >&6; }
   12282 	 if "$PYTHON" -c "$testargparse" 2>/dev/null; then :
   12283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12284 $as_echo "yes" >&6; }
   12285 else
   12286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12287 $as_echo "no" >&6; }
   12288 		unset PYTHON
   12289 		continue
   12290 fi
   12291 
   12292 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5
   12293 $as_echo_n "checking Python module 'ply'... " >&6; }
   12294 	 if "$PYTHON" -c "$testply" 2>/dev/null; then :
   12295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12296 $as_echo "yes" >&6; }
   12297 else
   12298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12299 $as_echo "no" >&6; }
   12300 		unset PYTHON
   12301 		continue
   12302 fi
   12303 
   12304 	 # Stop looking any further once we find a Python interpreter
   12305 	 # satisfying all requirements.
   12306 	 break
   12307        done
   12308 
   12309        if test "X$PYTHON" = "X"; then :
   12310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12311 $as_echo_n "checking for Python support... " >&6; }
   12312 	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12313 $as_echo "no" >&6; }
   12314 	      as_fn_error $? "Python required for dnssec-keymgr" "$LINENO" 5
   12315 fi
   12316 fi
   12317 
   12318 PYTHON_TOOLS=''
   12319 CHECKDS=''
   12320 COVERAGE=''
   12321 KEYMGR=''
   12322 if test "X$PYTHON" != "X"; then :
   12323   PYTHON_TOOLS=python
   12324        CHECKDS=checkds
   12325        COVERAGE=coverage
   12326        KEYMGR=keymgr
   12327        PYTHON_INSTALL_DIR="$with_python_install_dir"
   12328        if test -n "$with_python_install_dir"; then :
   12329   PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir"
   12330 fi
   12331 fi
   12332 
   12333 
   12334 
   12335 
   12336 
   12337 
   12338 
   12339 #
   12340 # Special processing of paths depending on whether --prefix,
   12341 # --sysconfdir or --localstatedir arguments were given.  What's
   12342 # desired is some compatibility with the way previous versions
   12343 # of BIND built; they defaulted to /usr/local for most parts of
   12344 # the installation, but named.boot/named.conf was in /etc
   12345 # and named.pid was in /var/run.
   12346 #
   12347 # So ... if none of --prefix, --sysconfdir or --localstatedir are
   12348 # specified, set things up that way.  If --prefix is given, use
   12349 # it for sysconfdir and localstatedir the way configure normally
   12350 # would.  To change the prefix for everything but leave named.conf
   12351 # in /etc or named.pid in /var/run, then do this the usual configure way:
   12352 # ./configure --prefix=/somewhere --sysconfdir=/etc
   12353 # ./configure --prefix=/somewhere --localstatedir=/var
   12354 #
   12355 # To put named.conf and named.pid in /usr/local with everything else,
   12356 # set the prefix explicitly to /usr/local even though that's the default:
   12357 # ./configure --prefix=/usr/local
   12358 #
   12359 case "$prefix" in
   12360 	NONE)
   12361 		case "$sysconfdir" in
   12362 			'${prefix}/etc')
   12363 				sysconfdir=/etc
   12364 				;;
   12365 		esac
   12366 		case "$localstatedir" in
   12367 			'${prefix}/var')
   12368 				localstatedir=/var
   12369 				;;
   12370 		esac
   12371 		;;
   12372 esac
   12373 expanded_sysconfdir=`eval echo $sysconfdir`
   12374 
   12375 
   12376 #
   12377 # Make sure INSTALL uses an absolute path, else it will be wrong in all
   12378 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
   12379 # configure based on the location of the file where it is substituted.
   12380 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
   12381 # subdirectory of install-sh, This relative path will be wrong for all
   12382 # directories more than one level down from install-sh.
   12383 #
   12384 case "$INSTALL" in
   12385 	/*)
   12386 		;;
   12387 	*)
   12388 		#
   12389 		# Not all systems have dirname.
   12390 		#
   12391 
   12392 		ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
   12393 
   12394 
   12395 		ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
   12396 		test "X$ac_dir" = "X$ac_prog" && ac_dir=.
   12397 		test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
   12398 		INSTALL="$ac_dir/$ac_prog"
   12399 		;;
   12400 esac
   12401 
   12402 ac_ext=c
   12403 ac_cpp='$CPP $CPPFLAGS'
   12404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12407 if test -n "$ac_tool_prefix"; then
   12408   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   12409 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12411 $as_echo_n "checking for $ac_word... " >&6; }
   12412 if ${ac_cv_prog_CC+:} false; then :
   12413   $as_echo_n "(cached) " >&6
   12414 else
   12415   if test -n "$CC"; then
   12416   ac_cv_prog_CC="$CC" # Let the user override the test.
   12417 else
   12418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12419 for as_dir in $PATH
   12420 do
   12421   IFS=$as_save_IFS
   12422   test -z "$as_dir" && as_dir=.
   12423     for ac_exec_ext in '' $ac_executable_extensions; do
   12424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12425     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   12426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12427     break 2
   12428   fi
   12429 done
   12430   done
   12431 IFS=$as_save_IFS
   12432 
   12433 fi
   12434 fi
   12435 CC=$ac_cv_prog_CC
   12436 if test -n "$CC"; then
   12437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12438 $as_echo "$CC" >&6; }
   12439 else
   12440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12441 $as_echo "no" >&6; }
   12442 fi
   12443 
   12444 
   12445 fi
   12446 if test -z "$ac_cv_prog_CC"; then
   12447   ac_ct_CC=$CC
   12448   # Extract the first word of "gcc", so it can be a program name with args.
   12449 set dummy gcc; ac_word=$2
   12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12451 $as_echo_n "checking for $ac_word... " >&6; }
   12452 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   12453   $as_echo_n "(cached) " >&6
   12454 else
   12455   if test -n "$ac_ct_CC"; then
   12456   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   12457 else
   12458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12459 for as_dir in $PATH
   12460 do
   12461   IFS=$as_save_IFS
   12462   test -z "$as_dir" && as_dir=.
   12463     for ac_exec_ext in '' $ac_executable_extensions; do
   12464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12465     ac_cv_prog_ac_ct_CC="gcc"
   12466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12467     break 2
   12468   fi
   12469 done
   12470   done
   12471 IFS=$as_save_IFS
   12472 
   12473 fi
   12474 fi
   12475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   12476 if test -n "$ac_ct_CC"; then
   12477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   12478 $as_echo "$ac_ct_CC" >&6; }
   12479 else
   12480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12481 $as_echo "no" >&6; }
   12482 fi
   12483 
   12484   if test "x$ac_ct_CC" = x; then
   12485     CC=""
   12486   else
   12487     case $cross_compiling:$ac_tool_warned in
   12488 yes:)
   12489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12491 ac_tool_warned=yes ;;
   12492 esac
   12493     CC=$ac_ct_CC
   12494   fi
   12495 else
   12496   CC="$ac_cv_prog_CC"
   12497 fi
   12498 
   12499 if test -z "$CC"; then
   12500           if test -n "$ac_tool_prefix"; then
   12501     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   12502 set dummy ${ac_tool_prefix}cc; ac_word=$2
   12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12504 $as_echo_n "checking for $ac_word... " >&6; }
   12505 if ${ac_cv_prog_CC+:} false; then :
   12506   $as_echo_n "(cached) " >&6
   12507 else
   12508   if test -n "$CC"; then
   12509   ac_cv_prog_CC="$CC" # Let the user override the test.
   12510 else
   12511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12512 for as_dir in $PATH
   12513 do
   12514   IFS=$as_save_IFS
   12515   test -z "$as_dir" && as_dir=.
   12516     for ac_exec_ext in '' $ac_executable_extensions; do
   12517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12518     ac_cv_prog_CC="${ac_tool_prefix}cc"
   12519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12520     break 2
   12521   fi
   12522 done
   12523   done
   12524 IFS=$as_save_IFS
   12525 
   12526 fi
   12527 fi
   12528 CC=$ac_cv_prog_CC
   12529 if test -n "$CC"; then
   12530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12531 $as_echo "$CC" >&6; }
   12532 else
   12533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12534 $as_echo "no" >&6; }
   12535 fi
   12536 
   12537 
   12538   fi
   12539 fi
   12540 if test -z "$CC"; then
   12541   # Extract the first word of "cc", so it can be a program name with args.
   12542 set dummy cc; ac_word=$2
   12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12544 $as_echo_n "checking for $ac_word... " >&6; }
   12545 if ${ac_cv_prog_CC+:} false; then :
   12546   $as_echo_n "(cached) " >&6
   12547 else
   12548   if test -n "$CC"; then
   12549   ac_cv_prog_CC="$CC" # Let the user override the test.
   12550 else
   12551   ac_prog_rejected=no
   12552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12553 for as_dir in $PATH
   12554 do
   12555   IFS=$as_save_IFS
   12556   test -z "$as_dir" && as_dir=.
   12557     for ac_exec_ext in '' $ac_executable_extensions; do
   12558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12559     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   12560        ac_prog_rejected=yes
   12561        continue
   12562      fi
   12563     ac_cv_prog_CC="cc"
   12564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12565     break 2
   12566   fi
   12567 done
   12568   done
   12569 IFS=$as_save_IFS
   12570 
   12571 if test $ac_prog_rejected = yes; then
   12572   # We found a bogon in the path, so make sure we never use it.
   12573   set dummy $ac_cv_prog_CC
   12574   shift
   12575   if test $# != 0; then
   12576     # We chose a different compiler from the bogus one.
   12577     # However, it has the same basename, so the bogon will be chosen
   12578     # first if we set CC to just the basename; use the full file name.
   12579     shift
   12580     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   12581   fi
   12582 fi
   12583 fi
   12584 fi
   12585 CC=$ac_cv_prog_CC
   12586 if test -n "$CC"; then
   12587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12588 $as_echo "$CC" >&6; }
   12589 else
   12590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12591 $as_echo "no" >&6; }
   12592 fi
   12593 
   12594 
   12595 fi
   12596 if test -z "$CC"; then
   12597   if test -n "$ac_tool_prefix"; then
   12598   for ac_prog in cl.exe
   12599   do
   12600     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   12601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12603 $as_echo_n "checking for $ac_word... " >&6; }
   12604 if ${ac_cv_prog_CC+:} false; then :
   12605   $as_echo_n "(cached) " >&6
   12606 else
   12607   if test -n "$CC"; then
   12608   ac_cv_prog_CC="$CC" # Let the user override the test.
   12609 else
   12610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12611 for as_dir in $PATH
   12612 do
   12613   IFS=$as_save_IFS
   12614   test -z "$as_dir" && as_dir=.
   12615     for ac_exec_ext in '' $ac_executable_extensions; do
   12616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12617     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   12618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12619     break 2
   12620   fi
   12621 done
   12622   done
   12623 IFS=$as_save_IFS
   12624 
   12625 fi
   12626 fi
   12627 CC=$ac_cv_prog_CC
   12628 if test -n "$CC"; then
   12629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12630 $as_echo "$CC" >&6; }
   12631 else
   12632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12633 $as_echo "no" >&6; }
   12634 fi
   12635 
   12636 
   12637     test -n "$CC" && break
   12638   done
   12639 fi
   12640 if test -z "$CC"; then
   12641   ac_ct_CC=$CC
   12642   for ac_prog in cl.exe
   12643 do
   12644   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12645 set dummy $ac_prog; ac_word=$2
   12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12647 $as_echo_n "checking for $ac_word... " >&6; }
   12648 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   12649   $as_echo_n "(cached) " >&6
   12650 else
   12651   if test -n "$ac_ct_CC"; then
   12652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   12653 else
   12654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12655 for as_dir in $PATH
   12656 do
   12657   IFS=$as_save_IFS
   12658   test -z "$as_dir" && as_dir=.
   12659     for ac_exec_ext in '' $ac_executable_extensions; do
   12660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12661     ac_cv_prog_ac_ct_CC="$ac_prog"
   12662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12663     break 2
   12664   fi
   12665 done
   12666   done
   12667 IFS=$as_save_IFS
   12668 
   12669 fi
   12670 fi
   12671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   12672 if test -n "$ac_ct_CC"; then
   12673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   12674 $as_echo "$ac_ct_CC" >&6; }
   12675 else
   12676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12677 $as_echo "no" >&6; }
   12678 fi
   12679 
   12680 
   12681   test -n "$ac_ct_CC" && break
   12682 done
   12683 
   12684   if test "x$ac_ct_CC" = x; then
   12685     CC=""
   12686   else
   12687     case $cross_compiling:$ac_tool_warned in
   12688 yes:)
   12689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12691 ac_tool_warned=yes ;;
   12692 esac
   12693     CC=$ac_ct_CC
   12694   fi
   12695 fi
   12696 
   12697 fi
   12698 
   12699 
   12700 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   12701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   12702 as_fn_error $? "no acceptable C compiler found in \$PATH
   12703 See \`config.log' for more details" "$LINENO" 5; }
   12704 
   12705 # Provide some information about the compiler.
   12706 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   12707 set X $ac_compile
   12708 ac_compiler=$2
   12709 for ac_option in --version -v -V -qversion; do
   12710   { { ac_try="$ac_compiler $ac_option >&5"
   12711 case "(($ac_try" in
   12712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12713   *) ac_try_echo=$ac_try;;
   12714 esac
   12715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   12716 $as_echo "$ac_try_echo"; } >&5
   12717   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   12718   ac_status=$?
   12719   if test -s conftest.err; then
   12720     sed '10a\
   12721 ... rest of stderr output deleted ...
   12722          10q' conftest.err >conftest.er1
   12723     cat conftest.er1 >&5
   12724   fi
   12725   rm -f conftest.er1 conftest.err
   12726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12727   test $ac_status = 0; }
   12728 done
   12729 
   12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   12731 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   12732 if ${ac_cv_c_compiler_gnu+:} false; then :
   12733   $as_echo_n "(cached) " >&6
   12734 else
   12735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12736 /* end confdefs.h.  */
   12737 
   12738 int
   12739 main ()
   12740 {
   12741 #ifndef __GNUC__
   12742        choke me
   12743 #endif
   12744 
   12745   ;
   12746   return 0;
   12747 }
   12748 _ACEOF
   12749 if ac_fn_c_try_compile "$LINENO"; then :
   12750   ac_compiler_gnu=yes
   12751 else
   12752   ac_compiler_gnu=no
   12753 fi
   12754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12755 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   12756 
   12757 fi
   12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   12759 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   12760 if test $ac_compiler_gnu = yes; then
   12761   GCC=yes
   12762 else
   12763   GCC=
   12764 fi
   12765 ac_test_CFLAGS=${CFLAGS+set}
   12766 ac_save_CFLAGS=$CFLAGS
   12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   12768 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   12769 if ${ac_cv_prog_cc_g+:} false; then :
   12770   $as_echo_n "(cached) " >&6
   12771 else
   12772   ac_save_c_werror_flag=$ac_c_werror_flag
   12773    ac_c_werror_flag=yes
   12774    ac_cv_prog_cc_g=no
   12775    CFLAGS="-g"
   12776    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12777 /* end confdefs.h.  */
   12778 
   12779 int
   12780 main ()
   12781 {
   12782 
   12783   ;
   12784   return 0;
   12785 }
   12786 _ACEOF
   12787 if ac_fn_c_try_compile "$LINENO"; then :
   12788   ac_cv_prog_cc_g=yes
   12789 else
   12790   CFLAGS=""
   12791       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12792 /* end confdefs.h.  */
   12793 
   12794 int
   12795 main ()
   12796 {
   12797 
   12798   ;
   12799   return 0;
   12800 }
   12801 _ACEOF
   12802 if ac_fn_c_try_compile "$LINENO"; then :
   12803 
   12804 else
   12805   ac_c_werror_flag=$ac_save_c_werror_flag
   12806 	 CFLAGS="-g"
   12807 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12808 /* end confdefs.h.  */
   12809 
   12810 int
   12811 main ()
   12812 {
   12813 
   12814   ;
   12815   return 0;
   12816 }
   12817 _ACEOF
   12818 if ac_fn_c_try_compile "$LINENO"; then :
   12819   ac_cv_prog_cc_g=yes
   12820 fi
   12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12822 fi
   12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12824 fi
   12825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12826    ac_c_werror_flag=$ac_save_c_werror_flag
   12827 fi
   12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   12829 $as_echo "$ac_cv_prog_cc_g" >&6; }
   12830 if test "$ac_test_CFLAGS" = set; then
   12831   CFLAGS=$ac_save_CFLAGS
   12832 elif test $ac_cv_prog_cc_g = yes; then
   12833   if test "$GCC" = yes; then
   12834     CFLAGS="-g -O2"
   12835   else
   12836     CFLAGS="-g"
   12837   fi
   12838 else
   12839   if test "$GCC" = yes; then
   12840     CFLAGS="-O2"
   12841   else
   12842     CFLAGS=
   12843   fi
   12844 fi
   12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   12846 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   12847 if ${ac_cv_prog_cc_c89+:} false; then :
   12848   $as_echo_n "(cached) " >&6
   12849 else
   12850   ac_cv_prog_cc_c89=no
   12851 ac_save_CC=$CC
   12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12853 /* end confdefs.h.  */
   12854 #include <stdarg.h>
   12855 #include <stdio.h>
   12856 struct stat;
   12857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   12858 struct buf { int x; };
   12859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   12860 static char *e (p, i)
   12861      char **p;
   12862      int i;
   12863 {
   12864   return p[i];
   12865 }
   12866 static char *f (char * (*g) (char **, int), char **p, ...)
   12867 {
   12868   char *s;
   12869   va_list v;
   12870   va_start (v,p);
   12871   s = g (p, va_arg (v,int));
   12872   va_end (v);
   12873   return s;
   12874 }
   12875 
   12876 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   12877    function prototypes and stuff, but not '\xHH' hex character constants.
   12878    These don't provoke an error unfortunately, instead are silently treated
   12879    as 'x'.  The following induces an error, until -std is added to get
   12880    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   12881    array size at least.  It's necessary to write '\x00'==0 to get something
   12882    that's true only with -std.  */
   12883 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   12884 
   12885 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   12886    inside strings and character constants.  */
   12887 #define FOO(x) 'x'
   12888 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   12889 
   12890 int test (int i, double x);
   12891 struct s1 {int (*f) (int a);};
   12892 struct s2 {int (*f) (double a);};
   12893 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   12894 int argc;
   12895 char **argv;
   12896 int
   12897 main ()
   12898 {
   12899 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   12900   ;
   12901   return 0;
   12902 }
   12903 _ACEOF
   12904 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   12905 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   12906 do
   12907   CC="$ac_save_CC $ac_arg"
   12908   if ac_fn_c_try_compile "$LINENO"; then :
   12909   ac_cv_prog_cc_c89=$ac_arg
   12910 fi
   12911 rm -f core conftest.err conftest.$ac_objext
   12912   test "x$ac_cv_prog_cc_c89" != "xno" && break
   12913 done
   12914 rm -f conftest.$ac_ext
   12915 CC=$ac_save_CC
   12916 
   12917 fi
   12918 # AC_CACHE_VAL
   12919 case "x$ac_cv_prog_cc_c89" in
   12920   x)
   12921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   12922 $as_echo "none needed" >&6; } ;;
   12923   xno)
   12924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   12925 $as_echo "unsupported" >&6; } ;;
   12926   *)
   12927     CC="$CC $ac_cv_prog_cc_c89"
   12928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   12929 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   12930 esac
   12931 if test "x$ac_cv_prog_cc_c89" != xno; then :
   12932 
   12933 fi
   12934 
   12935 ac_ext=c
   12936 ac_cpp='$CPP $CPPFLAGS'
   12937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12940 
   12941    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   12942 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   12943 if ${ac_cv_prog_cc_c99+:} false; then :
   12944   $as_echo_n "(cached) " >&6
   12945 else
   12946   ac_cv_prog_cc_c99=no
   12947 ac_save_CC=$CC
   12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12949 /* end confdefs.h.  */
   12950 #include <stdarg.h>
   12951 #include <stdbool.h>
   12952 #include <stdlib.h>
   12953 #include <wchar.h>
   12954 #include <stdio.h>
   12955 
   12956 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   12957 #define debug(...) fprintf (stderr, __VA_ARGS__)
   12958 #define showlist(...) puts (#__VA_ARGS__)
   12959 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   12960 static void
   12961 test_varargs_macros (void)
   12962 {
   12963   int x = 1234;
   12964   int y = 5678;
   12965   debug ("Flag");
   12966   debug ("X = %d\n", x);
   12967   showlist (The first, second, and third items.);
   12968   report (x>y, "x is %d but y is %d", x, y);
   12969 }
   12970 
   12971 // Check long long types.
   12972 #define BIG64 18446744073709551615ull
   12973 #define BIG32 4294967295ul
   12974 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   12975 #if !BIG_OK
   12976   your preprocessor is broken;
   12977 #endif
   12978 #if BIG_OK
   12979 #else
   12980   your preprocessor is broken;
   12981 #endif
   12982 static long long int bignum = -9223372036854775807LL;
   12983 static unsigned long long int ubignum = BIG64;
   12984 
   12985 struct incomplete_array
   12986 {
   12987   int datasize;
   12988   double data[];
   12989 };
   12990 
   12991 struct named_init {
   12992   int number;
   12993   const wchar_t *name;
   12994   double average;
   12995 };
   12996 
   12997 typedef const char *ccp;
   12998 
   12999 static inline int
   13000 test_restrict (ccp restrict text)
   13001 {
   13002   // See if C++-style comments work.
   13003   // Iterate through items via the restricted pointer.
   13004   // Also check for declarations in for loops.
   13005   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   13006     continue;
   13007   return 0;
   13008 }
   13009 
   13010 // Check varargs and va_copy.
   13011 static void
   13012 test_varargs (const char *format, ...)
   13013 {
   13014   va_list args;
   13015   va_start (args, format);
   13016   va_list args_copy;
   13017   va_copy (args_copy, args);
   13018 
   13019   const char *str;
   13020   int number;
   13021   float fnumber;
   13022 
   13023   while (*format)
   13024     {
   13025       switch (*format++)
   13026 	{
   13027 	case 's': // string
   13028 	  str = va_arg (args_copy, const char *);
   13029 	  break;
   13030 	case 'd': // int
   13031 	  number = va_arg (args_copy, int);
   13032 	  break;
   13033 	case 'f': // float
   13034 	  fnumber = va_arg (args_copy, double);
   13035 	  break;
   13036 	default:
   13037 	  break;
   13038 	}
   13039     }
   13040   va_end (args_copy);
   13041   va_end (args);
   13042 }
   13043 
   13044 int
   13045 main ()
   13046 {
   13047 
   13048   // Check bool.
   13049   _Bool success = false;
   13050 
   13051   // Check restrict.
   13052   if (test_restrict ("String literal") == 0)
   13053     success = true;
   13054   char *restrict newvar = "Another string";
   13055 
   13056   // Check varargs.
   13057   test_varargs ("s, d' f .", "string", 65, 34.234);
   13058   test_varargs_macros ();
   13059 
   13060   // Check flexible array members.
   13061   struct incomplete_array *ia =
   13062     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   13063   ia->datasize = 10;
   13064   for (int i = 0; i < ia->datasize; ++i)
   13065     ia->data[i] = i * 1.234;
   13066 
   13067   // Check named initializers.
   13068   struct named_init ni = {
   13069     .number = 34,
   13070     .name = L"Test wide string",
   13071     .average = 543.34343,
   13072   };
   13073 
   13074   ni.number = 58;
   13075 
   13076   int dynamic_array[ni.number];
   13077   dynamic_array[ni.number - 1] = 543;
   13078 
   13079   // work around unused variable warnings
   13080   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   13081 	  || dynamic_array[ni.number - 1] != 543);
   13082 
   13083   ;
   13084   return 0;
   13085 }
   13086 _ACEOF
   13087 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   13088 do
   13089   CC="$ac_save_CC $ac_arg"
   13090   if ac_fn_c_try_compile "$LINENO"; then :
   13091   ac_cv_prog_cc_c99=$ac_arg
   13092 fi
   13093 rm -f core conftest.err conftest.$ac_objext
   13094   test "x$ac_cv_prog_cc_c99" != "xno" && break
   13095 done
   13096 rm -f conftest.$ac_ext
   13097 CC=$ac_save_CC
   13098 
   13099 fi
   13100 # AC_CACHE_VAL
   13101 case "x$ac_cv_prog_cc_c99" in
   13102   x)
   13103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   13104 $as_echo "none needed" >&6; } ;;
   13105   xno)
   13106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   13107 $as_echo "unsupported" >&6; } ;;
   13108   *)
   13109     CC="$CC $ac_cv_prog_cc_c99"
   13110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   13111 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   13112 esac
   13113 if test "x$ac_cv_prog_cc_c99" != xno; then :
   13114 
   13115 fi
   13116 
   13117 
   13118 
   13119 #
   13120 # CCNOOPT defaults to -O0 on gcc and disables optimization when is last
   13121 #
   13122 if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
   13123 	CCNOOPT="-O0"
   13124 fi
   13125 
   13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   13127 $as_echo_n "checking for ANSI C header files... " >&6; }
   13128 if ${ac_cv_header_stdc+:} false; then :
   13129   $as_echo_n "(cached) " >&6
   13130 else
   13131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13132 /* end confdefs.h.  */
   13133 #include <stdlib.h>
   13134 #include <stdarg.h>
   13135 #include <string.h>
   13136 #include <float.h>
   13137 
   13138 int
   13139 main ()
   13140 {
   13141 
   13142   ;
   13143   return 0;
   13144 }
   13145 _ACEOF
   13146 if ac_fn_c_try_compile "$LINENO"; then :
   13147   ac_cv_header_stdc=yes
   13148 else
   13149   ac_cv_header_stdc=no
   13150 fi
   13151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13152 
   13153 if test $ac_cv_header_stdc = yes; then
   13154   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   13155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13156 /* end confdefs.h.  */
   13157 #include <string.h>
   13158 
   13159 _ACEOF
   13160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13161   $EGREP "memchr" >/dev/null 2>&1; then :
   13162 
   13163 else
   13164   ac_cv_header_stdc=no
   13165 fi
   13166 rm -f conftest*
   13167 
   13168 fi
   13169 
   13170 if test $ac_cv_header_stdc = yes; then
   13171   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   13172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13173 /* end confdefs.h.  */
   13174 #include <stdlib.h>
   13175 
   13176 _ACEOF
   13177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13178   $EGREP "free" >/dev/null 2>&1; then :
   13179 
   13180 else
   13181   ac_cv_header_stdc=no
   13182 fi
   13183 rm -f conftest*
   13184 
   13185 fi
   13186 
   13187 if test $ac_cv_header_stdc = yes; then
   13188   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   13189   if test "$cross_compiling" = yes; then :
   13190   :
   13191 else
   13192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13193 /* end confdefs.h.  */
   13194 #include <ctype.h>
   13195 #include <stdlib.h>
   13196 #if ((' ' & 0x0FF) == 0x020)
   13197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   13198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   13199 #else
   13200 # define ISLOWER(c) \
   13201 		   (('a' <= (c) && (c) <= 'i') \
   13202 		     || ('j' <= (c) && (c) <= 'r') \
   13203 		     || ('s' <= (c) && (c) <= 'z'))
   13204 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   13205 #endif
   13206 
   13207 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   13208 int
   13209 main ()
   13210 {
   13211   int i;
   13212   for (i = 0; i < 256; i++)
   13213     if (XOR (islower (i), ISLOWER (i))
   13214 	|| toupper (i) != TOUPPER (i))
   13215       return 2;
   13216   return 0;
   13217 }
   13218 _ACEOF
   13219 if ac_fn_c_try_run "$LINENO"; then :
   13220 
   13221 else
   13222   ac_cv_header_stdc=no
   13223 fi
   13224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13225   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13226 fi
   13227 
   13228 fi
   13229 fi
   13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   13231 $as_echo "$ac_cv_header_stdc" >&6; }
   13232 if test $ac_cv_header_stdc = yes; then
   13233 
   13234 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   13235 
   13236 fi
   13237 
   13238 
   13239 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
   13240 do :
   13241   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13242 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   13243 #ifdef HAVE_SYS_PARAM_H
   13244 # include <sys/param.h>
   13245 #endif
   13246 #ifdef HAVE_SYS_SOCKET_H
   13247 # include <sys/socket.h>
   13248 #endif
   13249 
   13250 "
   13251 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13252   cat >>confdefs.h <<_ACEOF
   13253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13254 _ACEOF
   13255 
   13256 fi
   13257 
   13258 done
   13259 
   13260 
   13261 #
   13262 # Check for thread local storage
   13263 #
   13264 for ac_header in threads.h
   13265 do :
   13266   ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
   13267 if test "x$ac_cv_header_threads_h" = xyes; then :
   13268   cat >>confdefs.h <<_ACEOF
   13269 #define HAVE_THREADS_H 1
   13270 _ACEOF
   13271 
   13272 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 Thread-Local Storage using thread_local" >&5
   13273 $as_echo_n "checking for C11 Thread-Local Storage using thread_local... " >&6; }
   13274 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13275 /* end confdefs.h.  */
   13276 
   13277 				  #include <threads.h>
   13278 
   13279 int
   13280 main ()
   13281 {
   13282 
   13283 				  static thread_local int tls = 0;
   13284 				  return (tls);
   13285 
   13286   ;
   13287   return 0;
   13288 }
   13289 
   13290 _ACEOF
   13291 if ac_fn_c_try_compile "$LINENO"; then :
   13292 
   13293 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13294 $as_echo "yes" >&6; }
   13295 
   13296 $as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
   13297 
   13298 
   13299 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13300 
   13301 
   13302 else
   13303 
   13304 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13305 $as_echo "no" >&6; }
   13306 
   13307 fi
   13308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13309 
   13310 else
   13311 
   13312 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Thread-Local Storage using __thread" >&5
   13313 $as_echo_n "checking for Thread-Local Storage using __thread... " >&6; }
   13314 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13315 /* end confdefs.h.  */
   13316 
   13317 
   13318 int
   13319 main ()
   13320 {
   13321 
   13322 				  static __thread int tls = 0;
   13323 				  return (tls);
   13324 
   13325   ;
   13326   return 0;
   13327 }
   13328 
   13329 _ACEOF
   13330 if ac_fn_c_try_compile "$LINENO"; then :
   13331 
   13332 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13333 $as_echo "yes" >&6; }
   13334 
   13335 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
   13336 
   13337 
   13338 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13339 
   13340 
   13341 else
   13342 
   13343 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13344 $as_echo "no" >&6; }
   13345 
   13346 fi
   13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13348 
   13349 fi
   13350 
   13351 done
   13352 
   13353 
   13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   13355 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   13356 if ${ac_cv_c_const+:} false; then :
   13357   $as_echo_n "(cached) " >&6
   13358 else
   13359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13360 /* end confdefs.h.  */
   13361 
   13362 int
   13363 main ()
   13364 {
   13365 
   13366 #ifndef __cplusplus
   13367   /* Ultrix mips cc rejects this sort of thing.  */
   13368   typedef int charset[2];
   13369   const charset cs = { 0, 0 };
   13370   /* SunOS 4.1.1 cc rejects this.  */
   13371   char const *const *pcpcc;
   13372   char **ppc;
   13373   /* NEC SVR4.0.2 mips cc rejects this.  */
   13374   struct point {int x, y;};
   13375   static struct point const zero = {0,0};
   13376   /* AIX XL C 1.02.0.0 rejects this.
   13377      It does not let you subtract one const X* pointer from another in
   13378      an arm of an if-expression whose if-part is not a constant
   13379      expression */
   13380   const char *g = "string";
   13381   pcpcc = &g + (g ? g-g : 0);
   13382   /* HPUX 7.0 cc rejects these. */
   13383   ++pcpcc;
   13384   ppc = (char**) pcpcc;
   13385   pcpcc = (char const *const *) ppc;
   13386   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   13387     char tx;
   13388     char *t = &tx;
   13389     char const *s = 0 ? (char *) 0 : (char const *) 0;
   13390 
   13391     *t++ = 0;
   13392     if (s) return 0;
   13393   }
   13394   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   13395     int x[] = {25, 17};
   13396     const int *foo = &x[0];
   13397     ++foo;
   13398   }
   13399   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   13400     typedef const int *iptr;
   13401     iptr p = 0;
   13402     ++p;
   13403   }
   13404   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   13405        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   13406     struct s { int j; const int *ap[3]; } bx;
   13407     struct s *b = &bx; b->j = 5;
   13408   }
   13409   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   13410     const int foo = 10;
   13411     if (!foo) return 0;
   13412   }
   13413   return !cs[0] && !zero.x;
   13414 #endif
   13415 
   13416   ;
   13417   return 0;
   13418 }
   13419 _ACEOF
   13420 if ac_fn_c_try_compile "$LINENO"; then :
   13421   ac_cv_c_const=yes
   13422 else
   13423   ac_cv_c_const=no
   13424 fi
   13425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13426 fi
   13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   13428 $as_echo "$ac_cv_c_const" >&6; }
   13429 if test $ac_cv_c_const = no; then
   13430 
   13431 $as_echo "#define const /**/" >>confdefs.h
   13432 
   13433 fi
   13434 
   13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   13436 $as_echo_n "checking for inline... " >&6; }
   13437 if ${ac_cv_c_inline+:} false; then :
   13438   $as_echo_n "(cached) " >&6
   13439 else
   13440   ac_cv_c_inline=no
   13441 for ac_kw in inline __inline__ __inline; do
   13442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13443 /* end confdefs.h.  */
   13444 #ifndef __cplusplus
   13445 typedef int foo_t;
   13446 static $ac_kw foo_t static_foo () {return 0; }
   13447 $ac_kw foo_t foo () {return 0; }
   13448 #endif
   13449 
   13450 _ACEOF
   13451 if ac_fn_c_try_compile "$LINENO"; then :
   13452   ac_cv_c_inline=$ac_kw
   13453 fi
   13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13455   test "$ac_cv_c_inline" != no && break
   13456 done
   13457 
   13458 fi
   13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   13460 $as_echo "$ac_cv_c_inline" >&6; }
   13461 
   13462 case $ac_cv_c_inline in
   13463   inline | yes) ;;
   13464   *)
   13465     case $ac_cv_c_inline in
   13466       no) ac_val=;;
   13467       *) ac_val=$ac_cv_c_inline;;
   13468     esac
   13469     cat >>confdefs.h <<_ACEOF
   13470 #ifndef __cplusplus
   13471 #define inline $ac_val
   13472 #endif
   13473 _ACEOF
   13474     ;;
   13475 esac
   13476 
   13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
   13478 $as_echo_n "checking for working volatile... " >&6; }
   13479 if ${ac_cv_c_volatile+:} false; then :
   13480   $as_echo_n "(cached) " >&6
   13481 else
   13482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13483 /* end confdefs.h.  */
   13484 
   13485 int
   13486 main ()
   13487 {
   13488 
   13489 volatile int x;
   13490 int * volatile y = (int *) 0;
   13491 return !x && !y;
   13492   ;
   13493   return 0;
   13494 }
   13495 _ACEOF
   13496 if ac_fn_c_try_compile "$LINENO"; then :
   13497   ac_cv_c_volatile=yes
   13498 else
   13499   ac_cv_c_volatile=no
   13500 fi
   13501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13502 fi
   13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
   13504 $as_echo "$ac_cv_c_volatile" >&6; }
   13505 if test $ac_cv_c_volatile = no; then
   13506 
   13507 $as_echo "#define volatile /**/" >>confdefs.h
   13508 
   13509 fi
   13510 
   13511 
   13512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
   13513 $as_echo_n "checking for flexible array members... " >&6; }
   13514 if ${ac_cv_c_flexmember+:} false; then :
   13515   $as_echo_n "(cached) " >&6
   13516 else
   13517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13518 /* end confdefs.h.  */
   13519 #include <stdlib.h>
   13520 	    #include <stdio.h>
   13521 	    #include <stddef.h>
   13522 	    struct s { int n; double d[]; };
   13523 int
   13524 main ()
   13525 {
   13526 int m = getchar ();
   13527 	    struct s *p = malloc (offsetof (struct s, d)
   13528 				  + m * sizeof (double));
   13529 	    p->d[0] = 0.0;
   13530 	    return p->d != (double *) NULL;
   13531   ;
   13532   return 0;
   13533 }
   13534 _ACEOF
   13535 if ac_fn_c_try_compile "$LINENO"; then :
   13536   ac_cv_c_flexmember=yes
   13537 else
   13538   ac_cv_c_flexmember=no
   13539 fi
   13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13541 fi
   13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
   13543 $as_echo "$ac_cv_c_flexmember" >&6; }
   13544   if test $ac_cv_c_flexmember = yes; then
   13545 
   13546 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
   13547 
   13548   else
   13549     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
   13550 
   13551   fi
   13552 
   13553 
   13554 #
   13555 # Check for yield support on ARM processors
   13556 #
   13557 case $host in #(
   13558   arm*) :
   13559 
   13560 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yield instruction support" >&5
   13561 $as_echo_n "checking for yield instruction support... " >&6; }
   13562 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13563 /* end confdefs.h.  */
   13564 
   13565 int
   13566 main ()
   13567 {
   13568 __asm__ __volatile__ ("yield")
   13569 
   13570   ;
   13571   return 0;
   13572 }
   13573 _ACEOF
   13574 if ac_fn_c_try_compile "$LINENO"; then :
   13575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13576 $as_echo "yes" >&6; }
   13577 else
   13578   as_fn_error $? "no, try adding -march=native or -march=armv7-a to CFLAGS (see PLATFORMS.md for more information)" "$LINENO" 5
   13579 fi
   13580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   13581   *) :
   13582      ;;
   13583 esac
   13584 
   13585 for ac_func in sysctlbyname
   13586 do :
   13587   ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
   13588 if test "x$ac_cv_func_sysctlbyname" = xyes; then :
   13589   cat >>confdefs.h <<_ACEOF
   13590 #define HAVE_SYSCTLBYNAME 1
   13591 _ACEOF
   13592 
   13593 fi
   13594 done
   13595 
   13596 
   13597 #
   13598 # Check for the existence of mmap to enable the fast format zones
   13599 #
   13600 for ac_func in mmap
   13601 do :
   13602   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   13603 if test "x$ac_cv_func_mmap" = xyes; then :
   13604   cat >>confdefs.h <<_ACEOF
   13605 #define HAVE_MMAP 1
   13606 _ACEOF
   13607 
   13608 fi
   13609 done
   13610 
   13611 
   13612 #
   13613 # Older versions of HP/UX don't define seteuid() and setegid()
   13614 #
   13615 for ac_func in seteuid setresuid
   13616 do :
   13617   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13618 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13619 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13620   cat >>confdefs.h <<_ACEOF
   13621 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13622 _ACEOF
   13623 
   13624 fi
   13625 done
   13626 
   13627 for ac_func in setegid setresgid
   13628 do :
   13629   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13630 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13631 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13632   cat >>confdefs.h <<_ACEOF
   13633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13634 _ACEOF
   13635 
   13636 fi
   13637 done
   13638 
   13639 
   13640 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   13641 if test "x$ac_cv_type_size_t" = xyes; then :
   13642 
   13643 else
   13644 
   13645 cat >>confdefs.h <<_ACEOF
   13646 #define size_t unsigned int
   13647 _ACEOF
   13648 
   13649 fi
   13650 
   13651 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   13652 if test "x$ac_cv_type_ssize_t" = xyes; then :
   13653 
   13654 else
   13655 
   13656 cat >>confdefs.h <<_ACEOF
   13657 #define ssize_t int
   13658 _ACEOF
   13659 
   13660 fi
   13661 
   13662 
   13663   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
   13664 if test "x$ac_cv_type_uintptr_t" = xyes; then :
   13665 
   13666 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
   13667 
   13668 else
   13669   for ac_type in 'unsigned int' 'unsigned long int' \
   13670 	'unsigned long long int'; do
   13671        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13672 /* end confdefs.h.  */
   13673 $ac_includes_default
   13674 int
   13675 main ()
   13676 {
   13677 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   13678 test_array [0] = 0;
   13679 return test_array [0];
   13680 
   13681   ;
   13682   return 0;
   13683 }
   13684 _ACEOF
   13685 if ac_fn_c_try_compile "$LINENO"; then :
   13686 
   13687 cat >>confdefs.h <<_ACEOF
   13688 #define uintptr_t $ac_type
   13689 _ACEOF
   13690 
   13691 	  ac_type=
   13692 fi
   13693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13694        test -z "$ac_type" && break
   13695      done
   13696 fi
   13697 
   13698 
   13699 
   13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   13701 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   13702 if ${ac_cv_header_time+:} false; then :
   13703   $as_echo_n "(cached) " >&6
   13704 else
   13705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13706 /* end confdefs.h.  */
   13707 #include <sys/types.h>
   13708 #include <sys/time.h>
   13709 #include <time.h>
   13710 
   13711 int
   13712 main ()
   13713 {
   13714 if ((struct tm *) 0)
   13715 return 0;
   13716   ;
   13717   return 0;
   13718 }
   13719 _ACEOF
   13720 if ac_fn_c_try_compile "$LINENO"; then :
   13721   ac_cv_header_time=yes
   13722 else
   13723   ac_cv_header_time=no
   13724 fi
   13725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13726 fi
   13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   13728 $as_echo "$ac_cv_header_time" >&6; }
   13729 if test $ac_cv_header_time = yes; then
   13730 
   13731 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   13732 
   13733 fi
   13734 
   13735 
   13736 #
   13737 # check for uname library routine
   13738 #
   13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
   13740 $as_echo_n "checking for uname... " >&6; }
   13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13742 /* end confdefs.h.  */
   13743 #include <sys/utsname.h>
   13744        #include <stdio.h>
   13745 
   13746 int
   13747 main ()
   13748 {
   13749 
   13750        struct utsname uts;
   13751        uname(&uts);
   13752        printf("running on %s %s %s for %s\n",
   13753 	      uts.sysname, uts.release, uts.version, uts.machine);
   13754 
   13755   ;
   13756   return 0;
   13757 }
   13758 _ACEOF
   13759 if ac_fn_c_try_compile "$LINENO"; then :
   13760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13761 $as_echo "yes" >&6; }
   13762 
   13763 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
   13764 
   13765 
   13766 else
   13767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13768 $as_echo "no" >&6; }
   13769    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
   13770 $as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
   13771 
   13772 fi
   13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13774 
   13775 #
   13776 # check for GCC noreturn attribute
   13777 #
   13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
   13779 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
   13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13781 /* end confdefs.h.  */
   13782 
   13783 int
   13784 main ()
   13785 {
   13786 void foo() __attribute__((noreturn));
   13787   ;
   13788   return 0;
   13789 }
   13790 _ACEOF
   13791 if ac_fn_c_try_compile "$LINENO"; then :
   13792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13793 $as_echo "yes" >&6; }
   13794 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   13795 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
   13796 else
   13797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13798 $as_echo "no" >&6; }
   13799 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   13800 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
   13801 fi
   13802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13803 
   13804 
   13805 
   13806 #
   13807 # check if we have kqueue
   13808 #
   13809 # Check whether --enable-kqueue was given.
   13810 if test "${enable_kqueue+set}" = set; then :
   13811   enableval=$enable_kqueue;
   13812 else
   13813   enable_kqueue="yes"
   13814 fi
   13815 
   13816 
   13817 if test "$enable_kqueue" = "yes"; then :
   13818   for ac_func in kqueue
   13819 do :
   13820   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
   13821 if test "x$ac_cv_func_kqueue" = xyes; then :
   13822   cat >>confdefs.h <<_ACEOF
   13823 #define HAVE_KQUEUE 1
   13824 _ACEOF
   13825 
   13826 fi
   13827 done
   13828 
   13829 fi
   13830 
   13831 #
   13832 # check if we have epoll.  Linux kernel 2.4 has epoll_create() which fails,
   13833 # so we need to try running the code, not just test its existence.
   13834 #
   13835 # Check whether --enable-epoll was given.
   13836 if test "${enable_epoll+set}" = set; then :
   13837   enableval=$enable_epoll;
   13838 else
   13839   enable_epoll="yes"
   13840 fi
   13841 
   13842 
   13843 if test "$enable_epoll" = "yes"; then :
   13844   for ac_func in epoll_create1
   13845 do :
   13846   ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
   13847 if test "x$ac_cv_func_epoll_create1" = xyes; then :
   13848   cat >>confdefs.h <<_ACEOF
   13849 #define HAVE_EPOLL_CREATE1 1
   13850 _ACEOF
   13851 
   13852 fi
   13853 done
   13854 
   13855 fi
   13856 
   13857 #
   13858 # check if we support /dev/poll
   13859 #
   13860 # Check whether --enable-devpoll was given.
   13861 if test "${enable_devpoll+set}" = set; then :
   13862   enableval=$enable_devpoll;
   13863 else
   13864   enable_devpoll="yes"
   13865 fi
   13866 
   13867 if test "$enable_devpoll" = "yes"; then :
   13868   for ac_header in sys/devpoll.h devpoll.h
   13869 do :
   13870   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13871 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   13872 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13873   cat >>confdefs.h <<_ACEOF
   13874 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13875 _ACEOF
   13876 
   13877 fi
   13878 
   13879 done
   13880 
   13881 fi
   13882 
   13883 #
   13884 # Find the machine's endian flavor.
   13885 #
   13886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   13887 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   13888 if ${ac_cv_c_bigendian+:} false; then :
   13889   $as_echo_n "(cached) " >&6
   13890 else
   13891   ac_cv_c_bigendian=unknown
   13892     # See if we're dealing with a universal compiler.
   13893     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13894 /* end confdefs.h.  */
   13895 #ifndef __APPLE_CC__
   13896 	       not a universal capable compiler
   13897 	     #endif
   13898 	     typedef int dummy;
   13899 
   13900 _ACEOF
   13901 if ac_fn_c_try_compile "$LINENO"; then :
   13902 
   13903 	# Check for potential -arch flags.  It is not universal unless
   13904 	# there are at least two -arch flags with different values.
   13905 	ac_arch=
   13906 	ac_prev=
   13907 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   13908 	 if test -n "$ac_prev"; then
   13909 	   case $ac_word in
   13910 	     i?86 | x86_64 | ppc | ppc64)
   13911 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   13912 		 ac_arch=$ac_word
   13913 	       else
   13914 		 ac_cv_c_bigendian=universal
   13915 		 break
   13916 	       fi
   13917 	       ;;
   13918 	   esac
   13919 	   ac_prev=
   13920 	 elif test "x$ac_word" = "x-arch"; then
   13921 	   ac_prev=arch
   13922 	 fi
   13923        done
   13924 fi
   13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13926     if test $ac_cv_c_bigendian = unknown; then
   13927       # See if sys/param.h defines the BYTE_ORDER macro.
   13928       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13929 /* end confdefs.h.  */
   13930 #include <sys/types.h>
   13931 	     #include <sys/param.h>
   13932 
   13933 int
   13934 main ()
   13935 {
   13936 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   13937 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   13938 		     && LITTLE_ENDIAN)
   13939 	      bogus endian macros
   13940 	     #endif
   13941 
   13942   ;
   13943   return 0;
   13944 }
   13945 _ACEOF
   13946 if ac_fn_c_try_compile "$LINENO"; then :
   13947   # It does; now see whether it defined to BIG_ENDIAN or not.
   13948 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13949 /* end confdefs.h.  */
   13950 #include <sys/types.h>
   13951 		#include <sys/param.h>
   13952 
   13953 int
   13954 main ()
   13955 {
   13956 #if BYTE_ORDER != BIG_ENDIAN
   13957 		 not big endian
   13958 		#endif
   13959 
   13960   ;
   13961   return 0;
   13962 }
   13963 _ACEOF
   13964 if ac_fn_c_try_compile "$LINENO"; then :
   13965   ac_cv_c_bigendian=yes
   13966 else
   13967   ac_cv_c_bigendian=no
   13968 fi
   13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13970 fi
   13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13972     fi
   13973     if test $ac_cv_c_bigendian = unknown; then
   13974       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   13975       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13976 /* end confdefs.h.  */
   13977 #include <limits.h>
   13978 
   13979 int
   13980 main ()
   13981 {
   13982 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   13983 	      bogus endian macros
   13984 	     #endif
   13985 
   13986   ;
   13987   return 0;
   13988 }
   13989 _ACEOF
   13990 if ac_fn_c_try_compile "$LINENO"; then :
   13991   # It does; now see whether it defined to _BIG_ENDIAN or not.
   13992 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13993 /* end confdefs.h.  */
   13994 #include <limits.h>
   13995 
   13996 int
   13997 main ()
   13998 {
   13999 #ifndef _BIG_ENDIAN
   14000 		 not big endian
   14001 		#endif
   14002 
   14003   ;
   14004   return 0;
   14005 }
   14006 _ACEOF
   14007 if ac_fn_c_try_compile "$LINENO"; then :
   14008   ac_cv_c_bigendian=yes
   14009 else
   14010   ac_cv_c_bigendian=no
   14011 fi
   14012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14013 fi
   14014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14015     fi
   14016     if test $ac_cv_c_bigendian = unknown; then
   14017       # Compile a test program.
   14018       if test "$cross_compiling" = yes; then :
   14019   # Try to guess by grepping values from an object file.
   14020 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14021 /* end confdefs.h.  */
   14022 short int ascii_mm[] =
   14023 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   14024 		short int ascii_ii[] =
   14025 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   14026 		int use_ascii (int i) {
   14027 		  return ascii_mm[i] + ascii_ii[i];
   14028 		}
   14029 		short int ebcdic_ii[] =
   14030 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   14031 		short int ebcdic_mm[] =
   14032 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   14033 		int use_ebcdic (int i) {
   14034 		  return ebcdic_mm[i] + ebcdic_ii[i];
   14035 		}
   14036 		extern int foo;
   14037 
   14038 int
   14039 main ()
   14040 {
   14041 return use_ascii (foo) == use_ebcdic (foo);
   14042   ;
   14043   return 0;
   14044 }
   14045 _ACEOF
   14046 if ac_fn_c_try_compile "$LINENO"; then :
   14047   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   14048 	      ac_cv_c_bigendian=yes
   14049 	    fi
   14050 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   14051 	      if test "$ac_cv_c_bigendian" = unknown; then
   14052 		ac_cv_c_bigendian=no
   14053 	      else
   14054 		# finding both strings is unlikely to happen, but who knows?
   14055 		ac_cv_c_bigendian=unknown
   14056 	      fi
   14057 	    fi
   14058 fi
   14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14060 else
   14061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14062 /* end confdefs.h.  */
   14063 $ac_includes_default
   14064 int
   14065 main ()
   14066 {
   14067 
   14068 	     /* Are we little or big endian?  From Harbison&Steele.  */
   14069 	     union
   14070 	     {
   14071 	       long int l;
   14072 	       char c[sizeof (long int)];
   14073 	     } u;
   14074 	     u.l = 1;
   14075 	     return u.c[sizeof (long int) - 1] == 1;
   14076 
   14077   ;
   14078   return 0;
   14079 }
   14080 _ACEOF
   14081 if ac_fn_c_try_run "$LINENO"; then :
   14082   ac_cv_c_bigendian=no
   14083 else
   14084   ac_cv_c_bigendian=yes
   14085 fi
   14086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14087   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14088 fi
   14089 
   14090     fi
   14091 fi
   14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   14093 $as_echo "$ac_cv_c_bigendian" >&6; }
   14094  case $ac_cv_c_bigendian in #(
   14095    yes)
   14096      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   14097 ;; #(
   14098    no)
   14099       ;; #(
   14100    universal)
   14101 
   14102 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   14103 
   14104      ;; #(
   14105    *)
   14106      as_fn_error $? "unknown endianness
   14107  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   14108  esac
   14109 
   14110 
   14111 #
   14112 # GeoIP support?
   14113 #
   14114 GEOIPLINKSRCS=
   14115 GEOIPLINKOBJS=
   14116 
   14117 # Check whether --with-geoip was given.
   14118 if test "${with_geoip+set}" = set; then :
   14119   withval=$with_geoip; use_geoip="$withval"
   14120 else
   14121   use_geoip="no"
   14122 fi
   14123 
   14124 
   14125 if test "yes" = "$use_geoip"
   14126 then
   14127 	for d in /usr /usr/local /opt/local
   14128 	do
   14129 		if test -f $d/include/GeoIP.h
   14130 		then
   14131 			use_geoip=$d
   14132 			break
   14133 		fi
   14134 	done
   14135 fi
   14136 
   14137 case "$use_geoip" in
   14138 	no|'')
   14139 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
   14140 $as_echo_n "checking for GeoIP support... " >&6; }
   14141 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   14142 $as_echo "disabled" >&6; }
   14143 		;;
   14144 	*)
   14145 		if test -d "$use_geoip" -o -L "$use_geoip"
   14146 		then
   14147 			CFLAGS="$CFLAGS -I$use_geoip/include"
   14148 			CPPFLAGS="$CPPFLAGS -I$use_geoip/include"
   14149 			LIBS="$LIBS -L$use_geoip/lib"
   14150 			case "$host_os" in
   14151 				netbsd*|openbsd*|solaris*)
   14152 					LIBS="$LIBS -Wl,-rpath=$use_geoip/lib"
   14153 					;;
   14154 			esac
   14155 		elif test "yes" = "$use_geoip"
   14156 		then
   14157 			as_fn_error $? "GeoIP path not found" "$LINENO" 5
   14158 		else
   14159 			as_fn_error $? "GeoIP path $use_geoip does not exist" "$LINENO" 5
   14160 		fi
   14161 		ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
   14162 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
   14163 
   14164 else
   14165   as_fn_error $? "GeoIP header file not found" "$LINENO" 5
   14166 
   14167 fi
   14168 
   14169 
   14170 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_addr_gl" >&5
   14171 $as_echo_n "checking for library containing GeoIP_id_by_addr_gl... " >&6; }
   14172 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14173   $as_echo_n "(cached) " >&6
   14174 else
   14175   ac_func_search_save_LIBS=$LIBS
   14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14177 /* end confdefs.h.  */
   14178 
   14179 /* Override any GCC internal prototype to avoid an error.
   14180    Use char because int might match the return type of a GCC
   14181    builtin and then its argument prototype would still apply.  */
   14182 #ifdef __cplusplus
   14183 extern "C"
   14184 #endif
   14185 char GeoIP_id_by_addr_gl ();
   14186 int
   14187 main ()
   14188 {
   14189 return GeoIP_id_by_addr_gl ();
   14190   ;
   14191   return 0;
   14192 }
   14193 _ACEOF
   14194 for ac_lib in '' GeoIP; do
   14195   if test -z "$ac_lib"; then
   14196     ac_res="none required"
   14197   else
   14198     ac_res=-l$ac_lib
   14199     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14200   fi
   14201   if ac_fn_c_try_link "$LINENO"; then :
   14202   ac_cv_search_GeoIP_id_by_addr_gl=$ac_res
   14203 fi
   14204 rm -f core conftest.err conftest.$ac_objext \
   14205     conftest$ac_exeext
   14206   if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14207   break
   14208 fi
   14209 done
   14210 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   14211 
   14212 else
   14213   ac_cv_search_GeoIP_id_by_addr_gl=no
   14214 fi
   14215 rm conftest.$ac_ext
   14216 LIBS=$ac_func_search_save_LIBS
   14217 fi
   14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_addr_gl" >&5
   14219 $as_echo "$ac_cv_search_GeoIP_id_by_addr_gl" >&6; }
   14220 ac_res=$ac_cv_search_GeoIP_id_by_addr_gl
   14221 if test "$ac_res" != no; then :
   14222   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14223 
   14224 else
   14225   as_fn_error $? "suitable GeoIP library not found" "$LINENO" 5
   14226 
   14227 fi
   14228 
   14229 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
   14230 $as_echo_n "checking for library containing fabsf... " >&6; }
   14231 if ${ac_cv_search_fabsf+:} false; then :
   14232   $as_echo_n "(cached) " >&6
   14233 else
   14234   ac_func_search_save_LIBS=$LIBS
   14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14236 /* end confdefs.h.  */
   14237 
   14238 /* Override any GCC internal prototype to avoid an error.
   14239    Use char because int might match the return type of a GCC
   14240    builtin and then its argument prototype would still apply.  */
   14241 #ifdef __cplusplus
   14242 extern "C"
   14243 #endif
   14244 char fabsf ();
   14245 int
   14246 main ()
   14247 {
   14248 return fabsf ();
   14249   ;
   14250   return 0;
   14251 }
   14252 _ACEOF
   14253 for ac_lib in '' m; do
   14254   if test -z "$ac_lib"; then
   14255     ac_res="none required"
   14256   else
   14257     ac_res=-l$ac_lib
   14258     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14259   fi
   14260   if ac_fn_c_try_link "$LINENO"; then :
   14261   ac_cv_search_fabsf=$ac_res
   14262 fi
   14263 rm -f core conftest.err conftest.$ac_objext \
   14264     conftest$ac_exeext
   14265   if ${ac_cv_search_fabsf+:} false; then :
   14266   break
   14267 fi
   14268 done
   14269 if ${ac_cv_search_fabsf+:} false; then :
   14270 
   14271 else
   14272   ac_cv_search_fabsf=no
   14273 fi
   14274 rm conftest.$ac_ext
   14275 LIBS=$ac_func_search_save_LIBS
   14276 fi
   14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
   14278 $as_echo "$ac_cv_search_fabsf" >&6; }
   14279 ac_res=$ac_cv_search_fabsf
   14280 if test "$ac_res" != no; then :
   14281   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14282 
   14283 else
   14284   as_fn_error $? "Math library not found" "$LINENO" 5
   14285 
   14286 fi
   14287 
   14288 
   14289 $as_echo "#define HAVE_GEOIP 1" >>confdefs.h
   14290 
   14291 		GEOIPLINKSRCS='${GEOIPLINKSRCS}'
   14292 		GEOIPLINKOBJS='${GEOIPLINKOBJS}'
   14293 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
   14294 $as_echo_n "checking for GeoIP support... " >&6; }
   14295 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14296 $as_echo "yes" >&6; }
   14297 
   14298 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP Country IPv6 support" >&5
   14299 $as_echo_n "checking for GeoIP Country IPv6 support... " >&6; }
   14300 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14301 /* end confdefs.h.  */
   14302 
   14303 				#include <GeoIP.h>
   14304 				#include <netinet/in.h>
   14305 
   14306 int
   14307 main ()
   14308 {
   14309 
   14310 				struct in6_addr in6;
   14311 				GeoIP_country_name_by_ipnum_v6(NULL, in6);
   14312 
   14313   ;
   14314   return 0;
   14315 }
   14316 _ACEOF
   14317 if ac_fn_c_try_compile "$LINENO"; then :
   14318 
   14319 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14320 $as_echo "yes" >&6; }
   14321 
   14322 $as_echo "#define HAVE_GEOIP_V6 1" >>confdefs.h
   14323 
   14324 
   14325 else
   14326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14327 $as_echo "no" >&6; }
   14328 
   14329 fi
   14330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14331 
   14332 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP City IPv6 support" >&5
   14333 $as_echo_n "checking for GeoIP City IPv6 support... " >&6; }
   14334 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14335 /* end confdefs.h.  */
   14336 
   14337 				#include <GeoIP.h>
   14338 				#include <GeoIPCity.h>
   14339 				#include <netinet/in.h>
   14340 
   14341 int
   14342 main ()
   14343 {
   14344 
   14345 				struct in6_addr in6;
   14346 				int i = GEOIP_CITY_EDITION_REV0_V6;
   14347 				GeoIP_record_by_ipnum_v6(NULL, in6);
   14348 
   14349   ;
   14350   return 0;
   14351 }
   14352 _ACEOF
   14353 if ac_fn_c_try_compile "$LINENO"; then :
   14354 
   14355 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14356 $as_echo "yes" >&6; }
   14357 
   14358 $as_echo "#define HAVE_GEOIP_CITY_V6 1" >>confdefs.h
   14359 
   14360 
   14361 else
   14362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14363 $as_echo "no" >&6; }
   14364 
   14365 fi
   14366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14367 		;;
   14368 esac
   14369 
   14370 
   14371 
   14372 #
   14373 # Do we have arc4random(), etc ?
   14374 #
   14375 for ac_func in arc4random arc4random_buf arc4random_uniform getrandom
   14376 do :
   14377   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14378 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14379 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14380   cat >>confdefs.h <<_ACEOF
   14381 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14382 _ACEOF
   14383 
   14384 fi
   14385 done
   14386 
   14387 
   14388 
   14389 
   14390 
   14391 
   14392 ac_ext=c
   14393 ac_cpp='$CPP $CPPFLAGS'
   14394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14397 
   14398 ax_pthread_ok=no
   14399 
   14400 # We used to check for pthread.h first, but this fails if pthread.h
   14401 # requires special compiler flags (e.g. on Tru64 or Sequent).
   14402 # It gets checked for in the link test anyway.
   14403 
   14404 # First of all, check if the user has set any of the PTHREAD_LIBS,
   14405 # etcetera environment variables, and if threads linking works using
   14406 # them:
   14407 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
   14408         ax_pthread_save_CC="$CC"
   14409         ax_pthread_save_CFLAGS="$CFLAGS"
   14410         ax_pthread_save_LIBS="$LIBS"
   14411         if test "x$PTHREAD_CC" != "x"; then :
   14412   CC="$PTHREAD_CC"
   14413 fi
   14414         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14415         LIBS="$PTHREAD_LIBS $LIBS"
   14416         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
   14417 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
   14418         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14419 /* end confdefs.h.  */
   14420 
   14421 /* Override any GCC internal prototype to avoid an error.
   14422    Use char because int might match the return type of a GCC
   14423    builtin and then its argument prototype would still apply.  */
   14424 #ifdef __cplusplus
   14425 extern "C"
   14426 #endif
   14427 char pthread_join ();
   14428 int
   14429 main ()
   14430 {
   14431 return pthread_join ();
   14432   ;
   14433   return 0;
   14434 }
   14435 _ACEOF
   14436 if ac_fn_c_try_link "$LINENO"; then :
   14437   ax_pthread_ok=yes
   14438 fi
   14439 rm -f core conftest.err conftest.$ac_objext \
   14440     conftest$ac_exeext conftest.$ac_ext
   14441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   14442 $as_echo "$ax_pthread_ok" >&6; }
   14443         if test "x$ax_pthread_ok" = "xno"; then
   14444                 PTHREAD_LIBS=""
   14445                 PTHREAD_CFLAGS=""
   14446         fi
   14447         CC="$ax_pthread_save_CC"
   14448         CFLAGS="$ax_pthread_save_CFLAGS"
   14449         LIBS="$ax_pthread_save_LIBS"
   14450 fi
   14451 
   14452 # We must check for the threads library under a number of different
   14453 # names; the ordering is very important because some systems
   14454 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   14455 # libraries is broken (non-POSIX).
   14456 
   14457 # Create a list of thread flags to try.  Items starting with a "-" are
   14458 # C compiler flags, and other items are library names, except for "none"
   14459 # which indicates that we try without any flags at all, and "pthread-config"
   14460 # which is a program returning the flags for the Pth emulation library.
   14461 
   14462 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   14463 
   14464 # The ordering *is* (sometimes) important.  Some notes on the
   14465 # individual items follow:
   14466 
   14467 # pthreads: AIX (must check this before -lpthread)
   14468 # none: in case threads are in libc; should be tried before -Kthread and
   14469 #       other compiler flags to prevent continual compiler warnings
   14470 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   14471 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
   14472 #           (Note: HP C rejects this with "bad form for `-t' option")
   14473 # -pthreads: Solaris/gcc (Note: HP C also rejects)
   14474 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   14475 #      doesn't hurt to check since this sometimes defines pthreads and
   14476 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
   14477 #      is present but should not be used directly; and before -mthreads,
   14478 #      because the compiler interprets this as "-mt" + "-hreads")
   14479 # -mthreads: Mingw32/gcc, Lynx/gcc
   14480 # pthread: Linux, etcetera
   14481 # --thread-safe: KAI C++
   14482 # pthread-config: use pthread-config program (for GNU Pth library)
   14483 
   14484 case $host_os in
   14485 
   14486         freebsd*)
   14487 
   14488         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   14489         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   14490 
   14491         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
   14492         ;;
   14493 
   14494         hpux*)
   14495 
   14496         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
   14497         # multi-threading and also sets -lpthread."
   14498 
   14499         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
   14500         ;;
   14501 
   14502         openedition*)
   14503 
   14504         # IBM z/OS requires a feature-test macro to be defined in order to
   14505         # enable POSIX threads at all, so give the user a hint if this is
   14506         # not set. (We don't define these ourselves, as they can affect
   14507         # other portions of the system API in unpredictable ways.)
   14508 
   14509         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14510 /* end confdefs.h.  */
   14511 
   14512 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
   14513              AX_PTHREAD_ZOS_MISSING
   14514 #            endif
   14515 
   14516 _ACEOF
   14517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14518   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
   14519   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
   14520 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
   14521 fi
   14522 rm -f conftest*
   14523 
   14524         ;;
   14525 
   14526         solaris*)
   14527 
   14528         # On Solaris (at least, for some versions), libc contains stubbed
   14529         # (non-functional) versions of the pthreads routines, so link-based
   14530         # tests will erroneously succeed. (N.B.: The stubs are missing
   14531         # pthread_cleanup_push, or rather a function called by this macro,
   14532         # so we could check for that, but who knows whether they'll stub
   14533         # that too in a future libc.)  So we'll check first for the
   14534         # standard Solaris way of linking pthreads (-mt -lpthread).
   14535 
   14536         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
   14537         ;;
   14538 esac
   14539 
   14540 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
   14541 
   14542 if test "x$GCC" = "xyes"; then :
   14543   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
   14544 fi
   14545 
   14546 # The presence of a feature test macro requesting re-entrant function
   14547 # definitions is, on some systems, a strong hint that pthreads support is
   14548 # correctly enabled
   14549 
   14550 case $host_os in
   14551         darwin* | hpux* | linux* | osf* | solaris*)
   14552         ax_pthread_check_macro="_REENTRANT"
   14553         ;;
   14554 
   14555         aix*)
   14556         ax_pthread_check_macro="_THREAD_SAFE"
   14557         ;;
   14558 
   14559         *)
   14560         ax_pthread_check_macro="--"
   14561         ;;
   14562 esac
   14563 if test "x$ax_pthread_check_macro" = "x--"; then :
   14564   ax_pthread_check_cond=0
   14565 else
   14566   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
   14567 fi
   14568 
   14569 # Are we compiling with Clang?
   14570 
   14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
   14572 $as_echo_n "checking whether $CC is Clang... " >&6; }
   14573 if ${ax_cv_PTHREAD_CLANG+:} false; then :
   14574   $as_echo_n "(cached) " >&6
   14575 else
   14576   ax_cv_PTHREAD_CLANG=no
   14577      # Note that Autoconf sets GCC=yes for Clang as well as GCC
   14578      if test "x$GCC" = "xyes"; then
   14579         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14580 /* end confdefs.h.  */
   14581 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
   14582 #            if defined(__clang__) && defined(__llvm__)
   14583              AX_PTHREAD_CC_IS_CLANG
   14584 #            endif
   14585 
   14586 _ACEOF
   14587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14588   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
   14589   ax_cv_PTHREAD_CLANG=yes
   14590 fi
   14591 rm -f conftest*
   14592 
   14593      fi
   14594 
   14595 fi
   14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
   14597 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
   14598 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
   14599 
   14600 ax_pthread_clang_warning=no
   14601 
   14602 # Clang needs special handling, because older versions handle the -pthread
   14603 # option in a rather... idiosyncratic way
   14604 
   14605 if test "x$ax_pthread_clang" = "xyes"; then
   14606 
   14607         # Clang takes -pthread; it has never supported any other flag
   14608 
   14609         # (Note 1: This will need to be revisited if a system that Clang
   14610         # supports has POSIX threads in a separate library.  This tends not
   14611         # to be the way of modern systems, but it's conceivable.)
   14612 
   14613         # (Note 2: On some systems, notably Darwin, -pthread is not needed
   14614         # to get POSIX threads support; the API is always present and
   14615         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
   14616         # -pthread does define _REENTRANT, and while the Darwin headers
   14617         # ignore this macro, third-party headers might not.)
   14618 
   14619         PTHREAD_CFLAGS="-pthread"
   14620         PTHREAD_LIBS=
   14621 
   14622         ax_pthread_ok=yes
   14623 
   14624         # However, older versions of Clang make a point of warning the user
   14625         # that, in an invocation where only linking and no compilation is
   14626         # taking place, the -pthread option has no effect ("argument unused
   14627         # during compilation").  They expect -pthread to be passed in only
   14628         # when source code is being compiled.
   14629         #
   14630         # Problem is, this is at odds with the way Automake and most other
   14631         # C build frameworks function, which is that the same flags used in
   14632         # compilation (CFLAGS) are also used in linking.  Many systems
   14633         # supported by AX_PTHREAD require exactly this for POSIX threads
   14634         # support, and in fact it is often not straightforward to specify a
   14635         # flag that is used only in the compilation phase and not in
   14636         # linking.  Such a scenario is extremely rare in practice.
   14637         #
   14638         # Even though use of the -pthread flag in linking would only print
   14639         # a warning, this can be a nuisance for well-run software projects
   14640         # that build with -Werror.  So if the active version of Clang has
   14641         # this misfeature, we search for an option to squash it.
   14642 
   14643         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
   14644 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
   14645 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
   14646   $as_echo_n "(cached) " >&6
   14647 else
   14648   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
   14649              # Create an alternate version of $ac_link that compiles and
   14650              # links in two steps (.c -> .o, .o -> exe) instead of one
   14651              # (.c -> exe), because the warning occurs only in the second
   14652              # step
   14653              ax_pthread_save_ac_link="$ac_link"
   14654              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
   14655              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
   14656              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
   14657              ax_pthread_save_CFLAGS="$CFLAGS"
   14658              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
   14659                 if test "x$ax_pthread_try" = "xunknown"; then :
   14660   break
   14661 fi
   14662                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
   14663                 ac_link="$ax_pthread_save_ac_link"
   14664                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14665 /* end confdefs.h.  */
   14666 int main(void){return 0;}
   14667 _ACEOF
   14668 if ac_fn_c_try_link "$LINENO"; then :
   14669   ac_link="$ax_pthread_2step_ac_link"
   14670                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14671 /* end confdefs.h.  */
   14672 int main(void){return 0;}
   14673 _ACEOF
   14674 if ac_fn_c_try_link "$LINENO"; then :
   14675   break
   14676 fi
   14677 rm -f core conftest.err conftest.$ac_objext \
   14678     conftest$ac_exeext conftest.$ac_ext
   14679 
   14680 fi
   14681 rm -f core conftest.err conftest.$ac_objext \
   14682     conftest$ac_exeext conftest.$ac_ext
   14683              done
   14684              ac_link="$ax_pthread_save_ac_link"
   14685              CFLAGS="$ax_pthread_save_CFLAGS"
   14686              if test "x$ax_pthread_try" = "x"; then :
   14687   ax_pthread_try=no
   14688 fi
   14689              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
   14690 
   14691 fi
   14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
   14693 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
   14694 
   14695         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
   14696                 no | unknown) ;;
   14697                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
   14698         esac
   14699 
   14700 fi # $ax_pthread_clang = yes
   14701 
   14702 if test "x$ax_pthread_ok" = "xno"; then
   14703 for ax_pthread_try_flag in $ax_pthread_flags; do
   14704 
   14705         case $ax_pthread_try_flag in
   14706                 none)
   14707                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   14708 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
   14709                 ;;
   14710 
   14711                 -mt,pthread)
   14712                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
   14713 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
   14714                 PTHREAD_CFLAGS="-mt"
   14715                 PTHREAD_LIBS="-lpthread"
   14716                 ;;
   14717 
   14718                 -*)
   14719                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
   14720 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
   14721                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
   14722                 ;;
   14723 
   14724                 pthread-config)
   14725                 # Extract the first word of "pthread-config", so it can be a program name with args.
   14726 set dummy pthread-config; ac_word=$2
   14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14728 $as_echo_n "checking for $ac_word... " >&6; }
   14729 if ${ac_cv_prog_ax_pthread_config+:} false; then :
   14730   $as_echo_n "(cached) " >&6
   14731 else
   14732   if test -n "$ax_pthread_config"; then
   14733   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   14734 else
   14735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14736 for as_dir in $PATH
   14737 do
   14738   IFS=$as_save_IFS
   14739   test -z "$as_dir" && as_dir=.
   14740     for ac_exec_ext in '' $ac_executable_extensions; do
   14741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14742     ac_cv_prog_ax_pthread_config="yes"
   14743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14744     break 2
   14745   fi
   14746 done
   14747   done
   14748 IFS=$as_save_IFS
   14749 
   14750   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   14751 fi
   14752 fi
   14753 ax_pthread_config=$ac_cv_prog_ax_pthread_config
   14754 if test -n "$ax_pthread_config"; then
   14755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   14756 $as_echo "$ax_pthread_config" >&6; }
   14757 else
   14758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14759 $as_echo "no" >&6; }
   14760 fi
   14761 
   14762 
   14763                 if test "x$ax_pthread_config" = "xno"; then :
   14764   continue
   14765 fi
   14766                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   14767                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   14768                 ;;
   14769 
   14770                 *)
   14771                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
   14772 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
   14773                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
   14774                 ;;
   14775         esac
   14776 
   14777         ax_pthread_save_CFLAGS="$CFLAGS"
   14778         ax_pthread_save_LIBS="$LIBS"
   14779         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14780         LIBS="$PTHREAD_LIBS $LIBS"
   14781 
   14782         # Check for various functions.  We must include pthread.h,
   14783         # since some functions may be macros.  (On the Sequent, we
   14784         # need a special flag -Kthread to make this header compile.)
   14785         # We check for pthread_join because it is in -lpthread on IRIX
   14786         # while pthread_create is in libc.  We check for pthread_attr_init
   14787         # due to DEC craziness with -lpthreads.  We check for
   14788         # pthread_cleanup_push because it is one of the few pthread
   14789         # functions on Solaris that doesn't have a non-functional libc stub.
   14790         # We try pthread_create on general principles.
   14791 
   14792         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14793 /* end confdefs.h.  */
   14794 #include <pthread.h>
   14795 #                       if $ax_pthread_check_cond
   14796 #                        error "$ax_pthread_check_macro must be defined"
   14797 #                       endif
   14798                         static void routine(void *a) { a = 0; }
   14799                         static void *start_routine(void *a) { return a; }
   14800 int
   14801 main ()
   14802 {
   14803 pthread_t th; pthread_attr_t attr;
   14804                         pthread_create(&th, 0, start_routine, 0);
   14805                         pthread_join(th, 0);
   14806                         pthread_attr_init(&attr);
   14807                         pthread_cleanup_push(routine, 0);
   14808                         pthread_cleanup_pop(0) /* ; */
   14809   ;
   14810   return 0;
   14811 }
   14812 _ACEOF
   14813 if ac_fn_c_try_link "$LINENO"; then :
   14814   ax_pthread_ok=yes
   14815 fi
   14816 rm -f core conftest.err conftest.$ac_objext \
   14817     conftest$ac_exeext conftest.$ac_ext
   14818 
   14819         CFLAGS="$ax_pthread_save_CFLAGS"
   14820         LIBS="$ax_pthread_save_LIBS"
   14821 
   14822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   14823 $as_echo "$ax_pthread_ok" >&6; }
   14824         if test "x$ax_pthread_ok" = "xyes"; then :
   14825   break
   14826 fi
   14827 
   14828         PTHREAD_LIBS=""
   14829         PTHREAD_CFLAGS=""
   14830 done
   14831 fi
   14832 
   14833 # Various other checks:
   14834 if test "x$ax_pthread_ok" = "xyes"; then
   14835         ax_pthread_save_CFLAGS="$CFLAGS"
   14836         ax_pthread_save_LIBS="$LIBS"
   14837         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14838         LIBS="$PTHREAD_LIBS $LIBS"
   14839 
   14840         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   14841         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   14842 $as_echo_n "checking for joinable pthread attribute... " >&6; }
   14843 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
   14844   $as_echo_n "(cached) " >&6
   14845 else
   14846   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
   14847              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   14848                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14849 /* end confdefs.h.  */
   14850 #include <pthread.h>
   14851 int
   14852 main ()
   14853 {
   14854 int attr = $ax_pthread_attr; return attr /* ; */
   14855   ;
   14856   return 0;
   14857 }
   14858 _ACEOF
   14859 if ac_fn_c_try_link "$LINENO"; then :
   14860   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
   14861 fi
   14862 rm -f core conftest.err conftest.$ac_objext \
   14863     conftest$ac_exeext conftest.$ac_ext
   14864              done
   14865 
   14866 fi
   14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
   14868 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
   14869         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
   14870                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
   14871                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
   14872 
   14873 cat >>confdefs.h <<_ACEOF
   14874 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
   14875 _ACEOF
   14876 
   14877                ax_pthread_joinable_attr_defined=yes
   14878 
   14879 fi
   14880 
   14881         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
   14882 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
   14883 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
   14884   $as_echo_n "(cached) " >&6
   14885 else
   14886   ax_cv_PTHREAD_SPECIAL_FLAGS=no
   14887              case $host_os in
   14888              solaris*)
   14889              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
   14890              ;;
   14891              esac
   14892 
   14893 fi
   14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
   14895 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
   14896         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
   14897                test "x$ax_pthread_special_flags_added" != "xyes"; then :
   14898   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
   14899                ax_pthread_special_flags_added=yes
   14900 fi
   14901 
   14902         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   14903 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   14904 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
   14905   $as_echo_n "(cached) " >&6
   14906 else
   14907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14908 /* end confdefs.h.  */
   14909 #include <pthread.h>
   14910 int
   14911 main ()
   14912 {
   14913 int i = PTHREAD_PRIO_INHERIT;
   14914   ;
   14915   return 0;
   14916 }
   14917 _ACEOF
   14918 if ac_fn_c_try_link "$LINENO"; then :
   14919   ax_cv_PTHREAD_PRIO_INHERIT=yes
   14920 else
   14921   ax_cv_PTHREAD_PRIO_INHERIT=no
   14922 fi
   14923 rm -f core conftest.err conftest.$ac_objext \
   14924     conftest$ac_exeext conftest.$ac_ext
   14925 
   14926 fi
   14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   14928 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   14929         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
   14930                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
   14931 
   14932 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   14933 
   14934                ax_pthread_prio_inherit_defined=yes
   14935 
   14936 fi
   14937 
   14938         CFLAGS="$ax_pthread_save_CFLAGS"
   14939         LIBS="$ax_pthread_save_LIBS"
   14940 
   14941         # More AIX lossage: compile with *_r variant
   14942         if test "x$GCC" != "xyes"; then
   14943             case $host_os in
   14944                 aix*)
   14945                 case "x/$CC" in #(
   14946   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
   14947     #handle absolute path differently from PATH based program lookup
   14948                      case "x$CC" in #(
   14949   x/*) :
   14950     if as_fn_executable_p ${CC}_r; then :
   14951   PTHREAD_CC="${CC}_r"
   14952 fi ;; #(
   14953   *) :
   14954     for ac_prog in ${CC}_r
   14955 do
   14956   # Extract the first word of "$ac_prog", so it can be a program name with args.
   14957 set dummy $ac_prog; ac_word=$2
   14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14959 $as_echo_n "checking for $ac_word... " >&6; }
   14960 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
   14961   $as_echo_n "(cached) " >&6
   14962 else
   14963   if test -n "$PTHREAD_CC"; then
   14964   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   14965 else
   14966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14967 for as_dir in $PATH
   14968 do
   14969   IFS=$as_save_IFS
   14970   test -z "$as_dir" && as_dir=.
   14971     for ac_exec_ext in '' $ac_executable_extensions; do
   14972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14973     ac_cv_prog_PTHREAD_CC="$ac_prog"
   14974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14975     break 2
   14976   fi
   14977 done
   14978   done
   14979 IFS=$as_save_IFS
   14980 
   14981 fi
   14982 fi
   14983 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   14984 if test -n "$PTHREAD_CC"; then
   14985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   14986 $as_echo "$PTHREAD_CC" >&6; }
   14987 else
   14988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14989 $as_echo "no" >&6; }
   14990 fi
   14991 
   14992 
   14993   test -n "$PTHREAD_CC" && break
   14994 done
   14995 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   14996  ;;
   14997 esac ;; #(
   14998   *) :
   14999      ;;
   15000 esac
   15001                 ;;
   15002             esac
   15003         fi
   15004 fi
   15005 
   15006 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   15007 
   15008 
   15009 
   15010 
   15011 
   15012 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   15013 if test "x$ax_pthread_ok" = "xyes"; then
   15014 
   15015 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
   15016 
   15017         :
   15018 else
   15019         ax_pthread_ok=no
   15020 
   15021 fi
   15022 ac_ext=c
   15023 ac_cpp='$CPP $CPPFLAGS'
   15024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15027 
   15028 
   15029 
   15030 LIBS="$PTHREAD_LIBS $LIBS"
   15031 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15032 CC="$PTHREAD_CC"
   15033 
   15034 #
   15035 # We'd like to use sigwait() too
   15036 #
   15037 for ac_func in sigwait pthread_attr_getstacksize pthread_attr_setstacksize
   15038 do :
   15039   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15040 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15041 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15042   cat >>confdefs.h <<_ACEOF
   15043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15044 _ACEOF
   15045 
   15046 fi
   15047 done
   15048 
   15049 
   15050 
   15051 # Check whether --with-locktype was given.
   15052 if test "${with_locktype+set}" = set; then :
   15053   withval=$with_locktype;
   15054 else
   15055   with_locktype="adaptive"
   15056 fi
   15057 
   15058 
   15059 case $with_locktype in #(
   15060   adaptive) :
   15061 
   15062 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
   15063 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
   15064 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15065 /* end confdefs.h.  */
   15066 
   15067 		 #ifndef _GNU_SOURCE
   15068 		 #define _GNU_SOURCE
   15069 		 #endif
   15070 		 #include <pthread.h>
   15071 
   15072 int
   15073 main ()
   15074 {
   15075 
   15076 		 return (PTHREAD_MUTEX_ADAPTIVE_NP);
   15077 
   15078 
   15079   ;
   15080   return 0;
   15081 }
   15082 _ACEOF
   15083 if ac_fn_c_try_compile "$LINENO"; then :
   15084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
   15085 $as_echo "using adaptive lock type" >&6; }
   15086 
   15087 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
   15088 
   15089 else
   15090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15091 $as_echo "using standard lock type" >&6; }
   15092 
   15093 fi
   15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   15095   standard) :
   15096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15097 $as_echo "using standard lock type" >&6; } ;; #(
   15098   *) :
   15099     as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
   15100         ;;
   15101 esac
   15102 
   15103 for ac_header in sched.h
   15104 do :
   15105   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
   15106 if test "x$ac_cv_header_sched_h" = xyes; then :
   15107   cat >>confdefs.h <<_ACEOF
   15108 #define HAVE_SCHED_H 1
   15109 _ACEOF
   15110 
   15111 fi
   15112 
   15113 done
   15114 
   15115 
   15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
   15117 $as_echo_n "checking for library containing sched_yield... " >&6; }
   15118 if ${ac_cv_search_sched_yield+:} false; then :
   15119   $as_echo_n "(cached) " >&6
   15120 else
   15121   ac_func_search_save_LIBS=$LIBS
   15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15123 /* end confdefs.h.  */
   15124 
   15125 /* Override any GCC internal prototype to avoid an error.
   15126    Use char because int might match the return type of a GCC
   15127    builtin and then its argument prototype would still apply.  */
   15128 #ifdef __cplusplus
   15129 extern "C"
   15130 #endif
   15131 char sched_yield ();
   15132 int
   15133 main ()
   15134 {
   15135 return sched_yield ();
   15136   ;
   15137   return 0;
   15138 }
   15139 _ACEOF
   15140 for ac_lib in '' rt; do
   15141   if test -z "$ac_lib"; then
   15142     ac_res="none required"
   15143   else
   15144     ac_res=-l$ac_lib
   15145     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15146   fi
   15147   if ac_fn_c_try_link "$LINENO"; then :
   15148   ac_cv_search_sched_yield=$ac_res
   15149 fi
   15150 rm -f core conftest.err conftest.$ac_objext \
   15151     conftest$ac_exeext
   15152   if ${ac_cv_search_sched_yield+:} false; then :
   15153   break
   15154 fi
   15155 done
   15156 if ${ac_cv_search_sched_yield+:} false; then :
   15157 
   15158 else
   15159   ac_cv_search_sched_yield=no
   15160 fi
   15161 rm conftest.$ac_ext
   15162 LIBS=$ac_func_search_save_LIBS
   15163 fi
   15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
   15165 $as_echo "$ac_cv_search_sched_yield" >&6; }
   15166 ac_res=$ac_cv_search_sched_yield
   15167 if test "$ac_res" != no; then :
   15168   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15169 
   15170 fi
   15171 
   15172 for ac_func in sched_yield pthread_yield pthread_yield_np
   15173 do :
   15174   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15175 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15176 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15177   cat >>confdefs.h <<_ACEOF
   15178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15179 _ACEOF
   15180 
   15181 fi
   15182 done
   15183 
   15184 
   15185 for ac_header in sys/cpuset.h
   15186 do :
   15187   ac_fn_c_check_header_mongrel "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default"
   15188 if test "x$ac_cv_header_sys_cpuset_h" = xyes; then :
   15189   cat >>confdefs.h <<_ACEOF
   15190 #define HAVE_SYS_CPUSET_H 1
   15191 _ACEOF
   15192 
   15193 fi
   15194 
   15195 done
   15196 
   15197 for ac_header in sys/procset.h
   15198 do :
   15199   ac_fn_c_check_header_mongrel "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
   15200 if test "x$ac_cv_header_sys_procset_h" = xyes; then :
   15201   cat >>confdefs.h <<_ACEOF
   15202 #define HAVE_SYS_PROCSET_H 1
   15203 _ACEOF
   15204 
   15205 fi
   15206 
   15207 done
   15208 
   15209 for ac_func in pthread_setaffinity_np cpuset_setaffinity processor_bind sched_setaffinity
   15210 do :
   15211   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15212 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15213 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15214   cat >>confdefs.h <<_ACEOF
   15215 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15216 _ACEOF
   15217 
   15218 fi
   15219 done
   15220 
   15221 
   15222 # Look for functions relating to thread naming
   15223 for ac_func in pthread_setname_np pthread_set_name_np
   15224 do :
   15225   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15226 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15227 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15228   cat >>confdefs.h <<_ACEOF
   15229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15230 _ACEOF
   15231 
   15232 fi
   15233 done
   15234 
   15235 for ac_header in pthread_np.h
   15236 do :
   15237   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
   15238 "
   15239 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
   15240   cat >>confdefs.h <<_ACEOF
   15241 #define HAVE_PTHREAD_NP_H 1
   15242 _ACEOF
   15243 
   15244 fi
   15245 
   15246 done
   15247 
   15248 
   15249 #
   15250 # Look for sysconf to allow detection of the number of processors.
   15251 #
   15252 for ac_func in sysconf
   15253 do :
   15254   ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
   15255 if test "x$ac_cv_func_sysconf" = xyes; then :
   15256   cat >>confdefs.h <<_ACEOF
   15257 #define HAVE_SYSCONF 1
   15258 _ACEOF
   15259 
   15260 fi
   15261 done
   15262 
   15263 
   15264 
   15265 
   15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
   15267 $as_echo_n "checking for libtool... " >&6; }
   15268 
   15269 # Check whether --with-libtool was given.
   15270 if test "${with_libtool+set}" = set; then :
   15271   withval=$with_libtool; use_libtool="$withval"
   15272 else
   15273   use_libtool="no"
   15274 fi
   15275 
   15276 
   15277 case $use_libtool in
   15278 	yes)
   15279 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15280 $as_echo "yes" >&6; }
   15281 
   15282 		O=lo
   15283 		A=la
   15284 		LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
   15285 		LIBTOOL_MODE_COMPILE='--mode=compile'
   15286 		LIBTOOL_MODE_INSTALL='--mode=install'
   15287 		LIBTOOL_MODE_LINK='--mode=link'
   15288 		LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
   15289 		INSTALL_LIBRARY='${INSTALL_PROGRAM}'
   15290 		;;
   15291 	*)
   15292 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15293 $as_echo "no" >&6; }
   15294 		O=o
   15295 		A=a
   15296 		LIBTOOL=
   15297 
   15298 		LIBTOOL_MKDEP_SED=
   15299 		LIBTOOL_MODE_COMPILE=
   15300 		LIBTOOL_MODE_INSTALL=
   15301 		LIBTOOL_MODE_LINK=
   15302 		LIBTOOL_MODE_UNINSTALL=
   15303 		INSTALL_LIBRARY='${INSTALL_DATA}'
   15304 		;;
   15305 esac
   15306 
   15307 
   15308 #
   15309 # If PIC is disabled, shared libraries must also be
   15310 #
   15311 if test "$pic_mode" = "no"; then :
   15312   enable_shared="no"
   15313 fi
   15314 
   15315 CRYPTO=OpenSSL
   15316 
   15317 #
   15318 # was --with-openssl specified?
   15319 #
   15320 
   15321     found=false
   15322     default_ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr/local/opt/openssl /usr/local/opt/libressl /usr"
   15323 
   15324 # Check whether --with-openssl was given.
   15325 if test "${with_openssl+set}" = set; then :
   15326   withval=$with_openssl;
   15327 	    case $with_openssl in #(
   15328   ""|y|ye|yes) :
   15329     ssldirs="$default_ssldirs" ;; #(
   15330   n|no) :
   15331     as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
   15332   *) :
   15333     ssldirs="$withval" ;; #(
   15334   *) :
   15335     ssldirs="$default_ssldirs"
   15336 	     ;;
   15337 esac
   15338 
   15339 else
   15340 
   15341             # if pkg-config is installed and openssl has installed a .pc file,
   15342             # then use that information and don't search ssldirs
   15343 
   15344 pkg_failed=no
   15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
   15346 $as_echo_n "checking for crypto... " >&6; }
   15347 
   15348 if test -n "$OPENSSL_CFLAGS"; then
   15349     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   15350  elif test -n "$PKG_CONFIG"; then
   15351     if test -n "$PKG_CONFIG" && \
   15352     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   15353   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   15354   ac_status=$?
   15355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15356   test $ac_status = 0; }; then
   15357   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
   15358 		      test "x$?" != "x0" && pkg_failed=yes
   15359 else
   15360   pkg_failed=yes
   15361 fi
   15362  else
   15363     pkg_failed=untried
   15364 fi
   15365 if test -n "$OPENSSL_LIBS"; then
   15366     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   15367  elif test -n "$PKG_CONFIG"; then
   15368     if test -n "$PKG_CONFIG" && \
   15369     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   15370   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   15371   ac_status=$?
   15372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15373   test $ac_status = 0; }; then
   15374   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
   15375 		      test "x$?" != "x0" && pkg_failed=yes
   15376 else
   15377   pkg_failed=yes
   15378 fi
   15379  else
   15380     pkg_failed=untried
   15381 fi
   15382 
   15383 
   15384 
   15385 if test $pkg_failed = yes; then
   15386         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15387 $as_echo "no" >&6; }
   15388 
   15389 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   15390         _pkg_short_errors_supported=yes
   15391 else
   15392         _pkg_short_errors_supported=no
   15393 fi
   15394         if test $_pkg_short_errors_supported = yes; then
   15395 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
   15396         else
   15397 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
   15398         fi
   15399 	# Put the nasty error message in config.log where it belongs
   15400 	echo "$OPENSSL_PKG_ERRORS" >&5
   15401 
   15402 	ssldirs="$default_ssldirs"
   15403 elif test $pkg_failed = untried; then
   15404         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15405 $as_echo "no" >&6; }
   15406 	ssldirs="$default_ssldirs"
   15407 else
   15408 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   15409 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   15410         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15411 $as_echo "yes" >&6; }
   15412 	found=true
   15413 fi
   15414 
   15415 
   15416 
   15417 fi
   15418 
   15419 
   15420 
   15421     # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
   15422     # an 'openssl' subdirectory
   15423 
   15424     if ! $found; then :
   15425 
   15426         OPENSSL_INCLUDES=
   15427         for ssldir in $ssldirs; do
   15428             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
   15429 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
   15430 	    if test -f "$ssldir/include/openssl/ssl.h"; then :
   15431 
   15432 		    OPENSSL_INCLUDES="-I$ssldir/include"
   15433                     OPENSSL_LIBS="-L$ssldir/lib -lcrypto"
   15434                     found=true
   15435                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15436 $as_echo "yes" >&6; }
   15437                     break
   15438 
   15439 else
   15440 
   15441 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15442 $as_echo "no" >&6; }
   15443 
   15444 fi
   15445         done
   15446 
   15447         # if the file wasn't found, well, go ahead and try the link anyway -- maybe
   15448         # it will just work!
   15449 
   15450 fi
   15451 
   15452     # try the preprocessor and linker with our new flags,
   15453     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
   15454 
   15455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
   15456 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
   15457     # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES])
   15458 
   15459     save_LIBS="$LIBS"
   15460     save_CPPFLAGS="$CPPFLAGS"
   15461     LIBS="$OPENSSL_LIBS $LIBS"
   15462     CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
   15463     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15464 /* end confdefs.h.  */
   15465 
   15466                 #include <openssl/crypto.h>
   15467 
   15468 int
   15469 main ()
   15470 {
   15471 
   15472 	        OPENSSL_free(NULL);
   15473 
   15474   ;
   15475   return 0;
   15476 }
   15477 _ACEOF
   15478 if ac_fn_c_try_link "$LINENO"; then :
   15479 
   15480             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15481 $as_echo "yes" >&6; }
   15482             :
   15483 
   15484 else
   15485 
   15486             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15487 $as_echo "no" >&6; }
   15488             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15490 as_fn_error $? "OpenSSL/LibreSSL not found
   15491 See \`config.log' for more details" "$LINENO" 5; }
   15492 
   15493 fi
   15494 rm -f core conftest.err conftest.$ac_objext \
   15495     conftest$ac_exeext conftest.$ac_ext
   15496     CPPFLAGS="$save_CPPFLAGS"
   15497     LIBS="$save_LIBS"
   15498 
   15499 
   15500 
   15501 
   15502 
   15503 save_CFLAGS="$CFLAGS"
   15504 save_LIBS="$LIBS"
   15505 save_LDFLAGS="$LDFLAGS"
   15506 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
   15507 LIBS="$LIBS $OPENSSL_LIBS"
   15508 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
   15509 
   15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL" >&5
   15511 $as_echo_n "checking for OpenSSL >= 1.0.0 or LibreSSL... " >&6; }
   15512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15513 /* end confdefs.h.  */
   15514 #include <openssl/opensslv.h>
   15515 int
   15516 main ()
   15517 {
   15518 #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)
   15519 		       #error OpenSSL >= 1.0.0 or LibreSSL required
   15520 		       #endif
   15521 
   15522   ;
   15523   return 0;
   15524 }
   15525 _ACEOF
   15526 if ac_fn_c_try_compile "$LINENO"; then :
   15527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15528 $as_echo "yes" >&6; }
   15529 else
   15530   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15532 as_fn_error $? "not found
   15533 See \`config.log' for more details" "$LINENO" 5; }
   15534 fi
   15535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15536 
   15537 #
   15538 # Check for functions added in OpenSSL or LibreSSL
   15539 #
   15540 
   15541 for ac_func in CRYPTO_zalloc
   15542 do :
   15543   ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
   15544 if test "x$ac_cv_func_CRYPTO_zalloc" = xyes; then :
   15545   cat >>confdefs.h <<_ACEOF
   15546 #define HAVE_CRYPTO_ZALLOC 1
   15547 _ACEOF
   15548 
   15549 fi
   15550 done
   15551 
   15552 for ac_func in EVP_CIPHER_CTX_new EVP_CIPHER_CTX_free
   15553 do :
   15554   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15555 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15556 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15557   cat >>confdefs.h <<_ACEOF
   15558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15559 _ACEOF
   15560 
   15561 fi
   15562 done
   15563 
   15564 for ac_func in EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset
   15565 do :
   15566   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15567 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15568 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15569   cat >>confdefs.h <<_ACEOF
   15570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15571 _ACEOF
   15572 
   15573 fi
   15574 done
   15575 
   15576 for ac_func in HMAC_CTX_new HMAC_CTX_free HMAC_CTX_reset HMAC_CTX_get_md
   15577 do :
   15578   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15579 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15580 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15581   cat >>confdefs.h <<_ACEOF
   15582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15583 _ACEOF
   15584 
   15585 fi
   15586 done
   15587 
   15588 
   15589 #
   15590 # Check for algorithm support in OpenSSL
   15591 #
   15592 
   15593 for ac_func in ECDSA_sign ECDSA_verify
   15594 do :
   15595   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15596 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15597 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15598   cat >>confdefs.h <<_ACEOF
   15599 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15600 _ACEOF
   15601  :
   15602 else
   15603   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15605 as_fn_error $? "ECDSA support in OpenSSL is mandatory.
   15606 See \`config.log' for more details" "$LINENO" 5; }
   15607 fi
   15608 done
   15609 
   15610 
   15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
   15612 $as_echo_n "checking for ECDSA P-256 support... " >&6; }
   15613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15614 /* end confdefs.h.  */
   15615 #include <openssl/evp.h>
   15616 		       #include <openssl/ec.h>
   15617 int
   15618 main ()
   15619 {
   15620 EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
   15621   ;
   15622   return 0;
   15623 }
   15624 _ACEOF
   15625 if ac_fn_c_try_compile "$LINENO"; then :
   15626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15627 $as_echo "yes" >&6; }
   15628 else
   15629   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15631 as_fn_error $? "not found.  ECDSA P-256 support in OpenSSL is mandatory.
   15632 See \`config.log' for more details" "$LINENO" 5; }
   15633 fi
   15634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15635 
   15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
   15637 $as_echo_n "checking for ECDSA P-384 support... " >&6; }
   15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15639 /* end confdefs.h.  */
   15640 #include <openssl/evp.h>
   15641 		       #include <openssl/ec.h>
   15642 int
   15643 main ()
   15644 {
   15645 EC_KEY *key = EC_KEY_new_by_curve_name(NID_secp384r1);
   15646   ;
   15647   return 0;
   15648 }
   15649 _ACEOF
   15650 if ac_fn_c_try_compile "$LINENO"; then :
   15651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15652 $as_echo "yes" >&6; }
   15653 else
   15654   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15656 as_fn_error $? "not found.  ECDSA P-384 support in OpenSSL is mandatory.
   15657 See \`config.log' for more details" "$LINENO" 5; }
   15658 fi
   15659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15660 
   15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
   15662 $as_echo_n "checking for Ed25519 support... " >&6; }
   15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15664 /* end confdefs.h.  */
   15665 #include <openssl/evp.h>
   15666 		       #include <openssl/ec.h>
   15667 int
   15668 main ()
   15669 {
   15670 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED25519);
   15671   ;
   15672   return 0;
   15673 }
   15674 _ACEOF
   15675 if ac_fn_c_try_compile "$LINENO"; then :
   15676 
   15677 $as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
   15678 
   15679      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15680 $as_echo "yes" >&6; }
   15681 else
   15682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15683 $as_echo "no" >&6; }
   15684 fi
   15685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15686 
   15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
   15688 $as_echo_n "checking for Ed448 support... " >&6; }
   15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
   15690 $as_echo "broken" >&6; }
   15691 #AC_COMPILE_IFELSE(
   15692 #    [AC_LANG_PROGRAM([[#include <openssl/evp.h>
   15693 #		       #include <openssl/ec.h>]],
   15694 #		     [[EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED448);]])],
   15695 #    [AC_DEFINE([HAVE_OPENSSL_ED448], [1], [define if OpenSSL supports Ed448])
   15696 #     AC_MSG_RESULT([yes])],
   15697 #    [AC_MSG_RESULT([no])])
   15698 
   15699 #
   15700 # Check for OpenSSL SHA-1 support
   15701 #
   15702 for ac_func in EVP_sha1
   15703 do :
   15704   ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
   15705 if test "x$ac_cv_func_EVP_sha1" = xyes; then :
   15706   cat >>confdefs.h <<_ACEOF
   15707 #define HAVE_EVP_SHA1 1
   15708 _ACEOF
   15709  :
   15710 else
   15711   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15713 as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
   15714 See \`config.log' for more details" "$LINENO" 5; }
   15715 fi
   15716 done
   15717 
   15718 
   15719 #
   15720 # Check for OpenSSL SHA-2 support
   15721 #
   15722 for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
   15723 do :
   15724   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15725 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15726 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15727   cat >>confdefs.h <<_ACEOF
   15728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15729 _ACEOF
   15730  :
   15731 else
   15732   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15734 as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
   15735 See \`config.log' for more details" "$LINENO" 5; }
   15736 fi
   15737 done
   15738 
   15739 
   15740 #
   15741 # Check for OpenSSL AES support
   15742 #
   15743 for ac_func in EVP_aes_128_ecb EVP_aes_192_ecb EVP_aes_256_ecb
   15744 do :
   15745   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15746 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15747 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15748   cat >>confdefs.h <<_ACEOF
   15749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15750 _ACEOF
   15751  :
   15752 else
   15753   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15755 as_fn_error $? "AES support in OpenSSL is mandatory.
   15756 See \`config.log' for more details" "$LINENO" 5; }
   15757 fi
   15758 done
   15759 
   15760 
   15761 #
   15762 # Check for OpenSSL 1.1.x/LibreSSL functions
   15763 #
   15764 for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key
   15765 do :
   15766   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15767 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15768 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15769   cat >>confdefs.h <<_ACEOF
   15770 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15771 _ACEOF
   15772 
   15773 fi
   15774 done
   15775 
   15776 
   15777 #
   15778 # Check whether FIPS mode is available and whether we should enable it
   15779 #
   15780 # Check whether --enable-fips-mode was given.
   15781 if test "${enable_fips_mode+set}" = set; then :
   15782   enableval=$enable_fips_mode;
   15783 else
   15784   enable_fips_mode="no"
   15785 fi
   15786 
   15787 
   15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
   15789 $as_echo_n "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
   15790 case $enable_fips_mode in #(
   15791   yes) :
   15792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15793 $as_echo "yes" >&6; }
   15794 		for ac_func in FIPS_mode
   15795 do :
   15796   ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
   15797 if test "x$ac_cv_func_FIPS_mode" = xyes; then :
   15798   cat >>confdefs.h <<_ACEOF
   15799 #define HAVE_FIPS_MODE 1
   15800 _ACEOF
   15801 
   15802 else
   15803   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15805 as_fn_error $? "OpenSSL FIPS mode requested but not available.
   15806 See \`config.log' for more details" "$LINENO" 5; }
   15807 fi
   15808 done
   15809  ;; #(
   15810   no) :
   15811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15812 $as_echo "no" >&6; } ;; #(
   15813   *) :
   15814      ;;
   15815 esac
   15816 
   15817 CFLAGS="$save_CFLAGS"
   15818 LIBS="$save_LIBS"
   15819 LDFLAGS="$save_LDFLAGS"
   15820 
   15821 
   15822 
   15823 
   15824 
   15825 #
   15826 # Client Cookie algorithm choice
   15827 #
   15828 
   15829 # Check whether --with-cc-alg was given.
   15830 if test "${with_cc_alg+set}" = set; then :
   15831   withval=$with_cc_alg; :
   15832 else
   15833   with_cc_alg="aes"
   15834 fi
   15835 
   15836 
   15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the algorithm for Client Cookie" >&5
   15838 $as_echo_n "checking for the algorithm for Client Cookie... " >&6; }
   15839 case $with_cc_alg in #(
   15840   sha1|SHA1) :
   15841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha1" >&5
   15842 $as_echo "sha1" >&6; }
   15843 
   15844 $as_echo "#define HMAC_SHA1_CC 1" >>confdefs.h
   15845  ;; #(
   15846   sha256|SHA256) :
   15847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha256" >&5
   15848 $as_echo "sha256" >&6; }
   15849 
   15850 $as_echo "#define HMAC_SHA256_CC 1" >>confdefs.h
   15851  ;; #(
   15852   aes|AES|auto) :
   15853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: aes" >&5
   15854 $as_echo "aes" >&6; }
   15855 
   15856 $as_echo "#define AES_CC 1" >>confdefs.h
   15857  ;; #(
   15858   *) :
   15859     as_fn_error $? "Invalid $with_cc_alg algorithm for Client Cookie" "$LINENO" 5 ;;
   15860 esac
   15861 
   15862 
   15863 PKCS11_TOOLS=
   15864 PKCS11_TEST=
   15865 #
   15866 # was --enable-native-pkcs11 specified?
   15867 #
   15868 # Check whether --enable-native-pkcs11 was given.
   15869 if test "${enable_native_pkcs11+set}" = set; then :
   15870   enableval=$enable_native_pkcs11; :
   15871 else
   15872   enable_native_pkcs11="no"
   15873 fi
   15874 
   15875 
   15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 for Public-Key Cryptography" >&5
   15877 $as_echo_n "checking for PKCS11 for Public-Key Cryptography... " >&6; }
   15878 case $enable_native_pkcs11 in #(
   15879   no) :
   15880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15881 $as_echo "no" >&6; } ;; #(
   15882   yes) :
   15883     PKCS11_TOOLS=pkcs11
   15884 	       PKCS11_TEST=pkcs11
   15885 	       CRYPTO=pkcs11
   15886 	       if $use_threads; then :
   15887   :
   15888 else
   15889   as_fn_error $? "PKCS11 requires threading support" "$LINENO" 5
   15890 fi
   15891 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15892 $as_echo "yes" >&6; }
   15893 	       for ac_func in getpassphrase
   15894 do :
   15895   ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
   15896 if test "x$ac_cv_func_getpassphrase" = xyes; then :
   15897   cat >>confdefs.h <<_ACEOF
   15898 #define HAVE_GETPASSPHRASE 1
   15899 _ACEOF
   15900 
   15901 fi
   15902 done
   15903 
   15904 	       ;; #(
   15905   *) :
   15906      ;;
   15907 esac
   15908 
   15909 
   15910 
   15911 case $CRYPTO in #(
   15912   pkcs11) :
   15913 
   15914 $as_echo "#define USE_PKCS11 1" >>confdefs.h
   15915  ;; #(
   15916   *) :
   15917 
   15918 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
   15919  ;;
   15920 esac
   15921 
   15922 # preparation for automake
   15923 # AM_CONDITIONAL([PKCS11_TOOLS], [test "$with_native_pkcs11" = "yes"])
   15924 
   15925 #
   15926 # was --with-pkcs11 specified?
   15927 #
   15928 
   15929 # Check whether --with-pkcs11 was given.
   15930 if test "${with_pkcs11+set}" = set; then :
   15931   withval=$with_pkcs11; :
   15932 else
   15933   with_pkcs11="undefined"
   15934 fi
   15935 
   15936 
   15937 case $with_pkcs11 in #(
   15938   yes|auto) :
   15939     as_fn_error $? "--with-pkcs11 needs explicit path to the PKCS11 library" "$LINENO" 5 ;; #(
   15940   no|undefined) :
   15941     with_pkcs11="undefined" ;; #(
   15942   *) :
   15943      ;;
   15944 esac
   15945 
   15946 cat >>confdefs.h <<_ACEOF
   15947 #define PK11_LIB_LOCATION "$with_pkcs11"
   15948 _ACEOF
   15949 
   15950 
   15951 # for PKCS11 benchmarks
   15952 
   15953 have_clock_gt=no
   15954 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
   15955 if test "x$ac_cv_func_clock_gettime" = xyes; then :
   15956   have_clock_gt=yes
   15957 fi
   15958 
   15959 if test "no" = "$have_clock_gt"; then
   15960 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
   15961 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
   15962 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
   15963   $as_echo_n "(cached) " >&6
   15964 else
   15965   ac_check_lib_save_LIBS=$LIBS
   15966 LIBS="-lrt  $LIBS"
   15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15968 /* end confdefs.h.  */
   15969 
   15970 /* Override any GCC internal prototype to avoid an error.
   15971    Use char because int might match the return type of a GCC
   15972    builtin and then its argument prototype would still apply.  */
   15973 #ifdef __cplusplus
   15974 extern "C"
   15975 #endif
   15976 char clock_gettime ();
   15977 int
   15978 main ()
   15979 {
   15980 return clock_gettime ();
   15981   ;
   15982   return 0;
   15983 }
   15984 _ACEOF
   15985 if ac_fn_c_try_link "$LINENO"; then :
   15986   ac_cv_lib_rt_clock_gettime=yes
   15987 else
   15988   ac_cv_lib_rt_clock_gettime=no
   15989 fi
   15990 rm -f core conftest.err conftest.$ac_objext \
   15991     conftest$ac_exeext conftest.$ac_ext
   15992 LIBS=$ac_check_lib_save_LIBS
   15993 fi
   15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
   15995 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
   15996 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
   15997   have_clock_gt=rt
   15998 fi
   15999 
   16000 fi
   16001 
   16002 if test "no" != "$have_clock_gt"; then
   16003 
   16004 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
   16005 
   16006 fi
   16007 
   16008 if test "rt" = "$have_clock_gt"; then
   16009 	LIBS="-lrt $LIBS"
   16010 fi
   16011 
   16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
   16013 $as_echo_n "checking for GSSAPI library... " >&6; }
   16014 
   16015 # Check whether --with-gssapi was given.
   16016 if test "${with_gssapi+set}" = set; then :
   16017   withval=$with_gssapi; use_gssapi="$withval"
   16018 else
   16019   use_gssapi="yes"
   16020 fi
   16021 
   16022 
   16023 # first try using krb5-config, if that does not work then fall back to "yes" method.
   16024 
   16025 case "$use_gssapi" in
   16026 */krb5-config|krb5-config)
   16027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
   16028 $as_echo "trying $use_gssapi" >&6; }
   16029     if test krb5-config = "$use_gssapi"
   16030     then
   16031 	# Extract the first word of "$use_gssapi", so it can be a program name with args.
   16032 set dummy $use_gssapi; ac_word=$2
   16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16034 $as_echo_n "checking for $ac_word... " >&6; }
   16035 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
   16036   $as_echo_n "(cached) " >&6
   16037 else
   16038   case $KRB5_CONFIG in
   16039   [\\/]* | ?:[\\/]*)
   16040   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
   16041   ;;
   16042   *)
   16043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16044 for as_dir in $PATH
   16045 do
   16046   IFS=$as_save_IFS
   16047   test -z "$as_dir" && as_dir=.
   16048     for ac_exec_ext in '' $ac_executable_extensions; do
   16049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16050     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   16051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16052     break 2
   16053   fi
   16054 done
   16055   done
   16056 IFS=$as_save_IFS
   16057 
   16058   ;;
   16059 esac
   16060 fi
   16061 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
   16062 if test -n "$KRB5_CONFIG"; then
   16063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
   16064 $as_echo "$KRB5_CONFIG" >&6; }
   16065 else
   16066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16067 $as_echo "no" >&6; }
   16068 fi
   16069 
   16070 
   16071     else
   16072 	KRB5_CONFIG="$use_gssapi"
   16073     fi
   16074     gssapi_cflags=`$KRB5_CONFIG --cflags gssapi`
   16075     gssapi_libs=`$KRB5_CONFIG --libs gssapi`
   16076     saved_cppflags="$CPPFLAGS"
   16077     CPPFLAGS="$gssapi_cflags $CPPFLAGS"
   16078     for ac_header in gssapi.h gssapi/gssapi.h
   16079 do :
   16080   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16081 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16082 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16083   cat >>confdefs.h <<_ACEOF
   16084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16085 _ACEOF
   16086  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   16087 fi
   16088 
   16089 done
   16090 
   16091     if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   16092 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
   16093 $as_echo "krb5-config: gssapi.h not found" >&6; }
   16094 	CPPFLAGS="$saved_cppflags"
   16095 	use_gssapi="yes"
   16096     else
   16097 	for ac_header in krb5/krb5.h krb5.h
   16098 do :
   16099   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16100 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16101 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16102   cat >>confdefs.h <<_ACEOF
   16103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16104 _ACEOF
   16105  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   16106 fi
   16107 
   16108 done
   16109 
   16110 	if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   16111 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
   16112 $as_echo "krb5-config: krb5.h not found" >&6; }
   16113 	    CPPFLAGS="$saved_cppflags"
   16114 	    use_gssapi="yes"
   16115 	else
   16116 	    CPPFLAGS="$saved_cppflags"
   16117 	    saved_libs="$LIBS"
   16118 	    LIBS=$gssapi_libs
   16119 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
   16120 $as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
   16121 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16122 /* end confdefs.h.  */
   16123 
   16124 int
   16125 main ()
   16126 {
   16127 gss_acquire_cred();krb5_init_context()
   16128   ;
   16129   return 0;
   16130 }
   16131 _ACEOF
   16132 if ac_fn_c_try_link "$LINENO"; then :
   16133   gssapi_linked=yes
   16134 else
   16135   gssapi_linked=no
   16136 fi
   16137 rm -f core conftest.err conftest.$ac_objext \
   16138     conftest$ac_exeext conftest.$ac_ext
   16139 	    case $gssapi_linked in
   16140 		yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
   16141 $as_echo "krb5-config: linked" >&6; };;
   16142 		no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
   16143 $as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
   16144 		    use_gssapi="yes"
   16145 		    ;;
   16146 	    esac
   16147 	    LIBS=$saved_libs
   16148 	fi
   16149     fi
   16150     if test "yes" = "$use_gssapi"; then
   16151 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
   16152 $as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
   16153     fi
   16154     ;;
   16155 esac
   16156 
   16157 case "$host" in
   16158 *darwin*)
   16159 	if test "yes" = "$use_gssapi"
   16160 	then
   16161 		use_gssapi=framework
   16162 	fi
   16163 	;;
   16164 esac
   16165 
   16166 # gssapi is just the framework, we really require kerberos v5, so
   16167 # look for those headers (the gssapi headers must be there, too)
   16168 # The problem with this implementation is that it doesn't allow
   16169 # for the specification of gssapi and krb5 headers in different locations,
   16170 # which probably ought to be fixed although fixing might raise the issue of
   16171 # trying to build with incompatible versions of gssapi and krb5.
   16172 if test "yes" = "$use_gssapi"
   16173 then
   16174 	# first, deal with the obvious
   16175 	if test \( -f /usr/include/kerberosv5/krb5.h -o \
   16176 		   -f /usr/include/krb5/krb5.h -o \
   16177 		   -f /usr/include/krb5.h \)   -a \
   16178 		\( -f /usr/include/gssapi.h -o \
   16179 		   -f /usr/include/gssapi/gssapi.h \)
   16180 	then
   16181 		use_gssapi=/usr
   16182 	else
   16183 	    krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
   16184 	    for d in $krb5dirs
   16185 	    do
   16186 		if test -f $d/include/gssapi/gssapi_krb5.h -o \
   16187 			-f $d/include/krb5.h
   16188 		then
   16189 			if test -f $d/include/gssapi/gssapi.h -o \
   16190 				-f $d/include/gssapi.h
   16191 			then
   16192 				use_gssapi=$d
   16193 				break
   16194 			fi
   16195 		fi
   16196 		use_gssapi="no"
   16197 	    done
   16198 	fi
   16199 fi
   16200 
   16201 case "$use_gssapi" in
   16202 	no)
   16203 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   16204 $as_echo "disabled" >&6; }
   16205 		USE_GSSAPI=''
   16206 		;;
   16207 	yes)
   16208 		as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
   16209 		;;
   16210 	*/krb5-config|krb5-config)
   16211 		USE_GSSAPI='-DGSSAPI'
   16212 		DST_GSSAPI_INC="$gssapi_cflags"
   16213 		DNS_GSSAPI_LIBS="$gssapi_libs"
   16214 		;;
   16215 	framework)
   16216 		USE_GSSAPI='-DGSSAPI'
   16217 		ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
   16218 		ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
   16219 		DNS_GSSAPI_LIBS="-framework Kerberos"
   16220 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
   16221 $as_echo "framework" >&6; }
   16222 		;;
   16223 
   16224 	*)
   16225 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
   16226 $as_echo "looking in $use_gssapi/lib" >&6; }
   16227 		USE_GSSAPI='-DGSSAPI'
   16228 		saved_cppflags="$CPPFLAGS"
   16229 		CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
   16230 		for ac_header in gssapi.h gssapi/gssapi.h
   16231 do :
   16232   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16233 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16234 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16235   cat >>confdefs.h <<_ACEOF
   16236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16237 _ACEOF
   16238  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   16239 		     gssapi_hack="#include <$ac_header>"
   16240 fi
   16241 
   16242 done
   16243 
   16244 
   16245 		if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   16246 		    as_fn_error $? "gssapi.h not found" "$LINENO" 5
   16247 		fi
   16248 
   16249 		for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
   16250 do :
   16251   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16252 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16253 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16254   cat >>confdefs.h <<_ACEOF
   16255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16256 _ACEOF
   16257  ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
   16258 		     gssapi_krb5_hack="#include <$ac_header>"
   16259 fi
   16260 
   16261 done
   16262 
   16263 
   16264 		for ac_header in krb5.h krb5/krb5.h kerberosv5/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_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   16273 		    krb5_hack="#include <$ac_header>"
   16274 fi
   16275 
   16276 done
   16277 
   16278 
   16279 		if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   16280 		    as_fn_error $? "krb5.h not found" "$LINENO" 5
   16281 		fi
   16282 
   16283 		#
   16284 		# XXXDCL This probably doesn't work right on all systems.
   16285 		# It will need to be worked on as problems become evident.
   16286 		#
   16287 		# Essentially the problems here relate to two different
   16288 		# areas.  The first area is building with either KTH
   16289 		# or MIT Kerberos, particularly when both are present on
   16290 		# the machine.  The other is static versus dynamic linking.
   16291 		#
   16292 		# On the KTH vs MIT issue, Both have libkrb5 that can mess
   16293 		# up the works if one implementation ends up trying to
   16294 		# use the other's krb.  This is unfortunately a situation
   16295 		# that very easily arises.
   16296 		#
   16297 		# Dynamic linking when the dependency information is built
   16298 		# into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
   16299 		# all such problems go away, but when that setup is not
   16300 		# present, because either the dynamic libraries lack
   16301 		# dependencies or static linking is being done, then the
   16302 		# problems start to show up.
   16303 		saved_libs="$LIBS"
   16304 		for TRY_LIBS in \
   16305 		    "-lgssapi_krb5" \
   16306 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
   16307 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
   16308 		    "-lgssapi" \
   16309 		    "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
   16310 		    "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \
   16311 		    "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \
   16312 		    "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \
   16313 		    "-lgss -lkrb5"
   16314 		do
   16315 		    # Note that this does not include $saved_libs, because
   16316 		    # on FreeBSD machines this configure script has added
   16317 		    # -L/usr/local/lib to LIBS, which can make the
   16318 		    # -lgssapi_krb5 test succeed with shared libraries even
   16319 		    # when you are trying to build with KTH in /usr/lib.
   16320 		    if test "/usr" = "$use_gssapi"
   16321 		    then
   16322 			    LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS"
   16323 		    else
   16324 			    LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS"
   16325 		    fi
   16326 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
   16327 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
   16328 		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16329 /* end confdefs.h.  */
   16330 
   16331 #include <sys/types.h>
   16332 $gssapi_hack
   16333 $gssapi_krb5_hack
   16334 $krb5_hack
   16335 
   16336 int
   16337 main ()
   16338 {
   16339 gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
   16340 #if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
   16341 gsskrb5_register_acceptor_identity(NULL);
   16342 #endif
   16343   ;
   16344   return 0;
   16345 }
   16346 _ACEOF
   16347 if ac_fn_c_try_link "$LINENO"; then :
   16348   gssapi_linked=yes
   16349 else
   16350   gssapi_linked=no
   16351 fi
   16352 rm -f core conftest.err conftest.$ac_objext \
   16353     conftest$ac_exeext conftest.$ac_ext
   16354 		    case $gssapi_linked in
   16355 		    yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16356 $as_echo "yes" >&6; }; break ;;
   16357 		    no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16358 $as_echo "no" >&6; } ;;
   16359 		    esac
   16360 		done
   16361 
   16362 		CPPFLAGS="$saved_cppflags"
   16363 
   16364 		case $gssapi_linked in
   16365 		no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
   16366 		esac
   16367 
   16368 		#
   16369 		# XXXDCL Major kludge.  Tries to cope with KTH in /usr/lib
   16370 		# but MIT in /usr/local/lib and trying to build with KTH.
   16371 		# /usr/local/lib can end up earlier on the link lines.
   16372 		# Like most kludges, this one is not only inelegant it
   16373 		# is also likely to be the wrong thing to do at least as
   16374 		# many times as it is the right thing.  Something better
   16375 		# needs to be done.
   16376 		#
   16377 		if test "/usr" = "$use_gssapi" -a \
   16378 			-f /usr/local/lib/libkrb5.a; then
   16379 		    FIX_KTH_VS_MIT=yes
   16380 		fi
   16381 
   16382 		case "$FIX_KTH_VS_MIT" in
   16383 		yes)
   16384 		    case "$enable_static_linking" in
   16385 		    yes) gssapi_lib_suffix=".a"  ;;
   16386 		    *)   gssapi_lib_suffix=".so" ;;
   16387 		    esac
   16388 
   16389 		    for lib in $LIBS; do
   16390 			case $lib in
   16391 			-L*)
   16392 			    ;;
   16393 			-l*)
   16394 			    new_lib=`echo $lib |
   16395 				     sed -e s%^-l%$use_gssapi/lib/lib% \
   16396 					 -e s%$%$gssapi_lib_suffix%`
   16397 			    NEW_LIBS="$NEW_LIBS $new_lib"
   16398 			    ;;
   16399 			*)
   16400 			   as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
   16401 			    ;;
   16402 			esac
   16403 		    done
   16404 		    LIBS="$NEW_LIBS"
   16405 		    ;;
   16406 		esac
   16407 
   16408 		DST_GSSAPI_INC="-I$use_gssapi/include"
   16409 		DNS_GSSAPI_LIBS="$LIBS"
   16410 
   16411 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
   16412 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
   16413 		LIBS="$saved_libs"
   16414 		;;
   16415 esac
   16416 
   16417 
   16418 
   16419 
   16420 
   16421 
   16422 
   16423 
   16424 
   16425 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
   16426 
   16427 #
   16428 # Applications linking with libdns also need to link with these libraries.
   16429 #
   16430 
   16431 
   16432 
   16433 #
   16434 # was --with-lmdb specified?
   16435 #
   16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
   16437 $as_echo_n "checking for lmdb library... " >&6; }
   16438 
   16439 # Check whether --with-lmdb was given.
   16440 if test "${with_lmdb+set}" = set; then :
   16441   withval=$with_lmdb; use_lmdb="$withval"
   16442 else
   16443   use_lmdb="auto"
   16444 fi
   16445 
   16446 
   16447 have_lmdb=""
   16448 case "$use_lmdb" in
   16449 	no)
   16450 		lmdb_libs=""
   16451 		;;
   16452 	auto|yes)
   16453 		for d in /usr /usr/local /opt/local
   16454 		do
   16455 			if test -f "${d}/include/lmdb.h"
   16456 			then
   16457 				if test ${d} != /usr
   16458 				then
   16459 					lmdb_cflags="-I ${d}/include"
   16460 					LIBS="$LIBS -L${d}/lib"
   16461 				fi
   16462 				have_lmdb="yes"
   16463 			fi
   16464 		done
   16465 		;;
   16466 	*)
   16467 		if test -f "${use_lmdb}/include/lmdb.h"
   16468 		then
   16469 			lmdb_cflags="-I${use_lmdb}/include"
   16470 			LIBS="$LIBS -L${use_lmdb}/lib"
   16471 			have_lmdb="yes"
   16472 		else
   16473 			as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
   16474 		fi
   16475 		;;
   16476 esac
   16477 
   16478 if test "X${have_lmdb}" != "X"
   16479 then
   16480 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16481 $as_echo "yes" >&6; }
   16482 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
   16483 $as_echo_n "checking for library containing mdb_env_create... " >&6; }
   16484 if ${ac_cv_search_mdb_env_create+:} false; then :
   16485   $as_echo_n "(cached) " >&6
   16486 else
   16487   ac_func_search_save_LIBS=$LIBS
   16488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16489 /* end confdefs.h.  */
   16490 
   16491 /* Override any GCC internal prototype to avoid an error.
   16492    Use char because int might match the return type of a GCC
   16493    builtin and then its argument prototype would still apply.  */
   16494 #ifdef __cplusplus
   16495 extern "C"
   16496 #endif
   16497 char mdb_env_create ();
   16498 int
   16499 main ()
   16500 {
   16501 return mdb_env_create ();
   16502   ;
   16503   return 0;
   16504 }
   16505 _ACEOF
   16506 for ac_lib in '' lmdb; do
   16507   if test -z "$ac_lib"; then
   16508     ac_res="none required"
   16509   else
   16510     ac_res=-l$ac_lib
   16511     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16512   fi
   16513   if ac_fn_c_try_link "$LINENO"; then :
   16514   ac_cv_search_mdb_env_create=$ac_res
   16515 fi
   16516 rm -f core conftest.err conftest.$ac_objext \
   16517     conftest$ac_exeext
   16518   if ${ac_cv_search_mdb_env_create+:} false; then :
   16519   break
   16520 fi
   16521 done
   16522 if ${ac_cv_search_mdb_env_create+:} false; then :
   16523 
   16524 else
   16525   ac_cv_search_mdb_env_create=no
   16526 fi
   16527 rm conftest.$ac_ext
   16528 LIBS=$ac_func_search_save_LIBS
   16529 fi
   16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
   16531 $as_echo "$ac_cv_search_mdb_env_create" >&6; }
   16532 ac_res=$ac_cv_search_mdb_env_create
   16533 if test "$ac_res" != no; then :
   16534   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16535 
   16536 else
   16537   as_fn_error $? "found lmdb include but not library." "$LINENO" 5
   16538 			have_lmdb=""
   16539 fi
   16540 
   16541 elif test "X$use_lmdb" = Xyes
   16542 then
   16543 	as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
   16544 else
   16545 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16546 $as_echo "no" >&6; }
   16547 fi
   16548 
   16549 NZD_TOOLS=""
   16550 NZDSRCS=
   16551 NZDTARGETS=
   16552 if test "X${have_lmdb}" != "X"
   16553 then
   16554 	CFLAGS="$CFLAGS $lmdb_cflags"
   16555 
   16556 $as_echo "#define HAVE_LMDB 1" >>confdefs.h
   16557 
   16558 	NZD_TOOLS="nzd"
   16559 	NZDSRCS='${NZDSRCS}'
   16560 	NZDTARGETS='${NZDTARGETS}'
   16561 fi
   16562 
   16563 
   16564 
   16565 
   16566 #
   16567 # was --with-libxml2 specified?
   16568 #
   16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5
   16570 $as_echo_n "checking for libxml2 library... " >&6; }
   16571 
   16572 # Check whether --with-libxml2 was given.
   16573 if test "${with_libxml2+set}" = set; then :
   16574   withval=$with_libxml2; use_libxml2="$withval"
   16575 else
   16576   use_libxml2="auto"
   16577 fi
   16578 
   16579 
   16580 case "$use_libxml2" in
   16581 	no)
   16582 		DST_LIBXML2_INC=""
   16583 		;;
   16584 	auto|yes)
   16585 		case X`(xml2-config --version) 2>/dev/null` in
   16586 		X2.[6789].*)
   16587 			libxml2_libs=`xml2-config --libs`
   16588 			libxml2_cflags=`xml2-config --cflags`
   16589 			;;
   16590 		*)
   16591 			if test "yes" = "$use_libxml2" ; then
   16592 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16593 $as_echo "no" >&6; }
   16594 				as_fn_error $? "required libxml2 version not available" "$LINENO" 5
   16595 			else
   16596 				libxml2_libs=
   16597 				libxml2_cflags=
   16598 			fi
   16599 			;;
   16600 		esac
   16601 		;;
   16602 	*)
   16603 		if test -f "$use_libxml2/bin/xml2-config" ; then
   16604 			libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
   16605 			libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
   16606 		fi
   16607 		;;
   16608 esac
   16609 
   16610 if test "X$libxml2_libs" != "X"
   16611 then
   16612 	CFLAGS="$CFLAGS $libxml2_cflags"
   16613 	LIBS="$LIBS $libxml2_libs"
   16614 	#
   16615 	# Sanity check xml2-config output.
   16616 	#
   16617 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16618 /* end confdefs.h.  */
   16619 #include <libxml/xmlwriter.h>
   16620 int
   16621 main ()
   16622 {
   16623 return(xmlTextWriterStartElement(NULL, NULL));
   16624   ;
   16625   return 0;
   16626 }
   16627 _ACEOF
   16628 if ac_fn_c_try_link "$LINENO"; then :
   16629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16630 $as_echo "yes" >&6; }
   16631 else
   16632   as_fn_error $? "xml2-config returns badness" "$LINENO" 5
   16633 fi
   16634 rm -f core conftest.err conftest.$ac_objext \
   16635     conftest$ac_exeext conftest.$ac_ext
   16636 
   16637 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
   16638 
   16639 	XMLSTATS=1
   16640 else
   16641 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16642 $as_echo "no" >&6; }
   16643 fi
   16644 
   16645 
   16646 #
   16647 # was --with-libjson specified?
   16648 #
   16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json library" >&5
   16650 $as_echo_n "checking for json library... " >&6; }
   16651 
   16652 # Check whether --with-libjson was given.
   16653 if test "${with_libjson+set}" = set; then :
   16654   withval=$with_libjson; use_libjson="$withval"
   16655 else
   16656   use_libjson="auto"
   16657 fi
   16658 
   16659 
   16660 have_libjson=""
   16661 have_libjson_c=""
   16662 case "$use_libjson" in
   16663 	no)
   16664 		libjson_libs=""
   16665 		;;
   16666 	auto|yes)
   16667 		for d in /usr /usr/local /opt/local
   16668 		do
   16669 			if test -f "${d}/include/json/json.h"
   16670 			then
   16671 				if test ${d} != /usr
   16672 				then
   16673 					libjson_cflags="-I ${d}/include"
   16674 					LIBS="$LIBS -L${d}/lib"
   16675 				fi
   16676 				have_libjson="yes"
   16677 			elif test -f "${d}/include/json-c/json.h"
   16678 			then
   16679 				if test ${d} != /usr
   16680 				then
   16681 					libjson_cflags="-I ${d}/include"
   16682 					LIBS="$LIBS -L${d}/lib"
   16683 				fi
   16684 				have_libjson="yes"
   16685 				have_libjson_c="yes"
   16686 			fi
   16687 		done
   16688 		;;
   16689 	*)
   16690 		if test -f "${use_libjson}/include/json/json.h"
   16691 		then
   16692 			libjson_cflags="-I${use_libjson}/include"
   16693 			LIBS="$LIBS -L${use_libjson}/lib"
   16694 			have_libjson="yes"
   16695 		elif test -f "${use_libjson}/include/json-c/json.h"
   16696 		then
   16697 			libjson_cflags="-I${use_libjson}/include"
   16698 			LIBS="$LIBS -L${use_libjson}/lib"
   16699 			have_libjson="yes"
   16700 			have_libjson_c="yes"
   16701 		else
   16702 			as_fn_error $? "$use_libjson/include/json{,-c}/json.h not found." "$LINENO" 5
   16703 		fi
   16704 		;;
   16705 esac
   16706 
   16707 if test "X${have_libjson}" != "X"
   16708 then
   16709 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16710 $as_echo "yes" >&6; }
   16711 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_new_int64" >&5
   16712 $as_echo_n "checking for library containing json_object_new_int64... " >&6; }
   16713 if ${ac_cv_search_json_object_new_int64+:} false; then :
   16714   $as_echo_n "(cached) " >&6
   16715 else
   16716   ac_func_search_save_LIBS=$LIBS
   16717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16718 /* end confdefs.h.  */
   16719 
   16720 /* Override any GCC internal prototype to avoid an error.
   16721    Use char because int might match the return type of a GCC
   16722    builtin and then its argument prototype would still apply.  */
   16723 #ifdef __cplusplus
   16724 extern "C"
   16725 #endif
   16726 char json_object_new_int64 ();
   16727 int
   16728 main ()
   16729 {
   16730 return json_object_new_int64 ();
   16731   ;
   16732   return 0;
   16733 }
   16734 _ACEOF
   16735 for ac_lib in '' json json-c; do
   16736   if test -z "$ac_lib"; then
   16737     ac_res="none required"
   16738   else
   16739     ac_res=-l$ac_lib
   16740     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16741   fi
   16742   if ac_fn_c_try_link "$LINENO"; then :
   16743   ac_cv_search_json_object_new_int64=$ac_res
   16744 fi
   16745 rm -f core conftest.err conftest.$ac_objext \
   16746     conftest$ac_exeext
   16747   if ${ac_cv_search_json_object_new_int64+:} false; then :
   16748   break
   16749 fi
   16750 done
   16751 if ${ac_cv_search_json_object_new_int64+:} false; then :
   16752 
   16753 else
   16754   ac_cv_search_json_object_new_int64=no
   16755 fi
   16756 rm conftest.$ac_ext
   16757 LIBS=$ac_func_search_save_LIBS
   16758 fi
   16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_new_int64" >&5
   16760 $as_echo "$ac_cv_search_json_object_new_int64" >&6; }
   16761 ac_res=$ac_cv_search_json_object_new_int64
   16762 if test "$ac_res" != no; then :
   16763   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16764 
   16765 else
   16766   as_fn_error $? "found libjson include but not library." "$LINENO" 5
   16767 			have_libjson=""
   16768 fi
   16769 
   16770 elif test "X$use_libjson" = Xyes
   16771 then
   16772 	as_fn_error $? "include/json{,-c}/json.h not found." "$LINENO" 5
   16773 else
   16774 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16775 $as_echo "no" >&6; }
   16776 fi
   16777 
   16778 if test "X${have_libjson}" != "X"
   16779 then
   16780 	CFLAGS="$CFLAGS $libjson_cflags"
   16781 
   16782 $as_echo "#define HAVE_JSON 1" >>confdefs.h
   16783 
   16784 	if test "X${have_libjson_c}" = Xyes
   16785 	then
   16786 
   16787 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
   16788 
   16789 	fi
   16790 	JSONSTATS=1
   16791 fi
   16792 
   16793 
   16794 #
   16795 # was --with-zlib specified?
   16796 #
   16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
   16798 $as_echo_n "checking for zlib library... " >&6; }
   16799 
   16800 # Check whether --with-zlib was given.
   16801 if test "${with_zlib+set}" = set; then :
   16802   withval=$with_zlib; with_zlib="$withval"
   16803 else
   16804   with_zlib="auto"
   16805 fi
   16806 
   16807 
   16808 have_zlib=""
   16809 case "$with_zlib" in
   16810 	no)
   16811 		zlib_libs=""
   16812 		;;
   16813 	auto|yes)
   16814 		for d in /usr /usr/local /opt/local
   16815 		do
   16816 			if test -f "${d}/include/zlib.h"
   16817 			then
   16818 				if test ${d} != /usr
   16819 				then
   16820 					zlib_cflags="-I ${d}/include"
   16821 					LIBS="$LIBS -L${d}/lib"
   16822 				fi
   16823 				have_zlib="yes"
   16824 			fi
   16825 		done
   16826 		;;
   16827 	*)
   16828 		if test -f "${with_zlib}/include/zlib.h"
   16829 		then
   16830 			zlib_cflags="-I${with_zlib}/include"
   16831 			LIBS="$LIBS -L${with_zlib}/lib"
   16832 			have_zlib="yes"
   16833 		else
   16834 			as_fn_error $? "$with_zlib/include/zlib.h not found." "$LINENO" 5
   16835 		fi
   16836 		;;
   16837 esac
   16838 
   16839 if test "X${have_zlib}" != "X"
   16840 then
   16841 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16842 $as_echo "yes" >&6; }
   16843 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
   16844 $as_echo_n "checking for library containing deflate... " >&6; }
   16845 if ${ac_cv_search_deflate+:} false; then :
   16846   $as_echo_n "(cached) " >&6
   16847 else
   16848   ac_func_search_save_LIBS=$LIBS
   16849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16850 /* end confdefs.h.  */
   16851 
   16852 /* Override any GCC internal prototype to avoid an error.
   16853    Use char because int might match the return type of a GCC
   16854    builtin and then its argument prototype would still apply.  */
   16855 #ifdef __cplusplus
   16856 extern "C"
   16857 #endif
   16858 char deflate ();
   16859 int
   16860 main ()
   16861 {
   16862 return deflate ();
   16863   ;
   16864   return 0;
   16865 }
   16866 _ACEOF
   16867 for ac_lib in '' z; do
   16868   if test -z "$ac_lib"; then
   16869     ac_res="none required"
   16870   else
   16871     ac_res=-l$ac_lib
   16872     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16873   fi
   16874   if ac_fn_c_try_link "$LINENO"; then :
   16875   ac_cv_search_deflate=$ac_res
   16876 fi
   16877 rm -f core conftest.err conftest.$ac_objext \
   16878     conftest$ac_exeext
   16879   if ${ac_cv_search_deflate+:} false; then :
   16880   break
   16881 fi
   16882 done
   16883 if ${ac_cv_search_deflate+:} false; then :
   16884 
   16885 else
   16886   ac_cv_search_deflate=no
   16887 fi
   16888 rm conftest.$ac_ext
   16889 LIBS=$ac_func_search_save_LIBS
   16890 fi
   16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
   16892 $as_echo "$ac_cv_search_deflate" >&6; }
   16893 ac_res=$ac_cv_search_deflate
   16894 if test "$ac_res" != no; then :
   16895   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16896 
   16897 else
   16898   as_fn_error $? "found zlib include but not library." "$LINENO" 5
   16899 			have_zlib=""
   16900 fi
   16901 
   16902 elif test "X$with_zlib" = Xyes
   16903 then
   16904 	as_fn_error $? "include/zlib.h not found." "$LINENO" 5
   16905 else
   16906 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16907 $as_echo "no" >&6; }
   16908 fi
   16909 
   16910 ZLIB=
   16911 if test "X${have_zlib}" != "X"
   16912 then
   16913 	CFLAGS="$CFLAGS $zlib_cflags"
   16914 
   16915 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
   16916 
   16917 	ZLIB=1
   16918 fi
   16919 
   16920 
   16921 
   16922 #
   16923 # In solaris 10, SMF can manage named service
   16924 #
   16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
   16926 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
   16927 if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
   16928   $as_echo_n "(cached) " >&6
   16929 else
   16930   ac_check_lib_save_LIBS=$LIBS
   16931 LIBS="-lscf  $LIBS"
   16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16933 /* end confdefs.h.  */
   16934 
   16935 /* Override any GCC internal prototype to avoid an error.
   16936    Use char because int might match the return type of a GCC
   16937    builtin and then its argument prototype would still apply.  */
   16938 #ifdef __cplusplus
   16939 extern "C"
   16940 #endif
   16941 char smf_enable_instance ();
   16942 int
   16943 main ()
   16944 {
   16945 return smf_enable_instance ();
   16946   ;
   16947   return 0;
   16948 }
   16949 _ACEOF
   16950 if ac_fn_c_try_link "$LINENO"; then :
   16951   ac_cv_lib_scf_smf_enable_instance=yes
   16952 else
   16953   ac_cv_lib_scf_smf_enable_instance=no
   16954 fi
   16955 rm -f core conftest.err conftest.$ac_objext \
   16956     conftest$ac_exeext conftest.$ac_ext
   16957 LIBS=$ac_check_lib_save_LIBS
   16958 fi
   16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
   16960 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
   16961 if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
   16962   cat >>confdefs.h <<_ACEOF
   16963 #define HAVE_LIBSCF 1
   16964 _ACEOF
   16965 
   16966   LIBS="-lscf $LIBS"
   16967 
   16968 fi
   16969 
   16970 
   16971 #
   16972 # Large File
   16973 #
   16974 # Check whether --enable-largefile was given.
   16975 if test "${enable_largefile+set}" = set; then :
   16976   enableval=$enable_largefile; want_largefile="yes"
   16977 else
   16978   want_largefile="no"
   16979 fi
   16980 
   16981 case $want_largefile in
   16982 	yes)
   16983 		ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
   16984 		;;
   16985 	*)
   16986 		;;
   16987 esac
   16988 
   16989 #
   16990 # Additional compiler settings.
   16991 #
   16992 MKDEPCC="$CC"
   16993 MKDEPCFLAGS="-M"
   16994 
   16995 if test "X$GCC" = "Xyes"; then
   16996 	STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
   16997 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
   16998 $as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
   16999 	SAVE_CFLAGS="$CFLAGS"
   17000 	CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
   17001 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17002 /* end confdefs.h.  */
   17003 
   17004 int
   17005 main ()
   17006 {
   17007 
   17008   ;
   17009   return 0;
   17010 }
   17011 _ACEOF
   17012 if ac_fn_c_try_compile "$LINENO"; then :
   17013   FNOSTRICTALIASING=yes
   17014 else
   17015   FNOSTRICTALIASING=no
   17016 fi
   17017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17018 	CFLAGS="$SAVE_CFLAGS"
   17019 	if test "yes" = "$FNOSTRICTALIASING"; then
   17020 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17021 $as_echo "yes" >&6; }
   17022 		STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
   17023 	else
   17024 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17025 $as_echo "no" >&6; }
   17026 	fi
   17027 	#
   17028 	# turn off delete null pointer checks
   17029 	#
   17030 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-delete-null-pointer-checks" >&5
   17031 $as_echo_n "checking if \"$CC\" supports -fno-delete-null-pointer-checks... " >&6; }
   17032 	SAVE_CFLAGS="$CFLAGS"
   17033 	CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks"
   17034 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17035 /* end confdefs.h.  */
   17036 
   17037 int
   17038 main ()
   17039 {
   17040 
   17041   ;
   17042   return 0;
   17043 }
   17044 _ACEOF
   17045 if ac_fn_c_try_compile "$LINENO"; then :
   17046   FNODELETENULLPOINTERCHECKS=yes
   17047 else
   17048   FNODELETENULLPOINTERCHECKS=no
   17049 fi
   17050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17051 	CFLAGS="$SAVE_CFLAGS"
   17052 	if test "yes" = "$FNODELETENULLPOINTERCHECKS"; then
   17053 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17054 $as_echo "yes" >&6; }
   17055 		STD_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
   17056 	else
   17057 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17058 $as_echo "no" >&6; }
   17059 	fi
   17060 	if test "X$enable_warn_shadow" = Xyes; then
   17061 		STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
   17062 	fi
   17063 	if test "X$enable_warn_error" = Xyes; then
   17064 		STD_CWARNINGS="$STD_CWARNINGS -Werror"
   17065 	fi
   17066 else
   17067 	case $host in
   17068 	*-solaris*)
   17069 		MKDEPCFLAGS="-xM"
   17070 		;;
   17071 	esac
   17072 fi
   17073 
   17074 
   17075 
   17076 
   17077 
   17078 #
   17079 # -lxnet buys us one big porting headache...  standards, gotta love 'em.
   17080 #
   17081 # AC_CHECK_LIB(xnet, socket, ,
   17082 #    AC_CHECK_LIB(socket, socket)
   17083 # )
   17084 #
   17085 # Use this for now, instead:
   17086 #
   17087 case "$host" in
   17088 	*-linux*)
   17089 		;;
   17090 	*)
   17091 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   17092 $as_echo_n "checking for socket in -lsocket... " >&6; }
   17093 if ${ac_cv_lib_socket_socket+:} false; then :
   17094   $as_echo_n "(cached) " >&6
   17095 else
   17096   ac_check_lib_save_LIBS=$LIBS
   17097 LIBS="-lsocket  $LIBS"
   17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17099 /* end confdefs.h.  */
   17100 
   17101 /* Override any GCC internal prototype to avoid an error.
   17102    Use char because int might match the return type of a GCC
   17103    builtin and then its argument prototype would still apply.  */
   17104 #ifdef __cplusplus
   17105 extern "C"
   17106 #endif
   17107 char socket ();
   17108 int
   17109 main ()
   17110 {
   17111 return socket ();
   17112   ;
   17113   return 0;
   17114 }
   17115 _ACEOF
   17116 if ac_fn_c_try_link "$LINENO"; then :
   17117   ac_cv_lib_socket_socket=yes
   17118 else
   17119   ac_cv_lib_socket_socket=no
   17120 fi
   17121 rm -f core conftest.err conftest.$ac_objext \
   17122     conftest$ac_exeext conftest.$ac_ext
   17123 LIBS=$ac_check_lib_save_LIBS
   17124 fi
   17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   17126 $as_echo "$ac_cv_lib_socket_socket" >&6; }
   17127 if test "x$ac_cv_lib_socket_socket" = xyes; then :
   17128   cat >>confdefs.h <<_ACEOF
   17129 #define HAVE_LIBSOCKET 1
   17130 _ACEOF
   17131 
   17132   LIBS="-lsocket $LIBS"
   17133 
   17134 fi
   17135 
   17136 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
   17137 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
   17138 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
   17139   $as_echo_n "(cached) " >&6
   17140 else
   17141   ac_check_lib_save_LIBS=$LIBS
   17142 LIBS="-lnsl  $LIBS"
   17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17144 /* end confdefs.h.  */
   17145 
   17146 /* Override any GCC internal prototype to avoid an error.
   17147    Use char because int might match the return type of a GCC
   17148    builtin and then its argument prototype would still apply.  */
   17149 #ifdef __cplusplus
   17150 extern "C"
   17151 #endif
   17152 char inet_addr ();
   17153 int
   17154 main ()
   17155 {
   17156 return inet_addr ();
   17157   ;
   17158   return 0;
   17159 }
   17160 _ACEOF
   17161 if ac_fn_c_try_link "$LINENO"; then :
   17162   ac_cv_lib_nsl_inet_addr=yes
   17163 else
   17164   ac_cv_lib_nsl_inet_addr=no
   17165 fi
   17166 rm -f core conftest.err conftest.$ac_objext \
   17167     conftest$ac_exeext conftest.$ac_ext
   17168 LIBS=$ac_check_lib_save_LIBS
   17169 fi
   17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
   17171 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
   17172 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
   17173   cat >>confdefs.h <<_ACEOF
   17174 #define HAVE_LIBNSL 1
   17175 _ACEOF
   17176 
   17177   LIBS="-lnsl $LIBS"
   17178 
   17179 fi
   17180 
   17181 		;;
   17182 esac
   17183 
   17184 #
   17185 # Work around Solaris's select() limitations.
   17186 #
   17187 case "$host" in
   17188 	*-solaris2.[89]|*-solaris2.1?)
   17189 
   17190 $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
   17191 
   17192 	;;
   17193 esac
   17194 
   17195 #
   17196 # Purify support
   17197 #
   17198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
   17199 $as_echo_n "checking whether to use purify... " >&6; }
   17200 
   17201 # Check whether --with-purify was given.
   17202 if test "${with_purify+set}" = set; then :
   17203   withval=$with_purify; use_purify="$withval"
   17204 else
   17205   use_purify="no"
   17206 fi
   17207 
   17208 
   17209 case "$use_purify" in
   17210 	no)
   17211 		;;
   17212 	yes)
   17213 		# Extract the first word of "purify", so it can be a program name with args.
   17214 set dummy purify; ac_word=$2
   17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17216 $as_echo_n "checking for $ac_word... " >&6; }
   17217 if ${ac_cv_path_purify_path+:} false; then :
   17218   $as_echo_n "(cached) " >&6
   17219 else
   17220   case $purify_path in
   17221   [\\/]* | ?:[\\/]*)
   17222   ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
   17223   ;;
   17224   *)
   17225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17226 for as_dir in $PATH
   17227 do
   17228   IFS=$as_save_IFS
   17229   test -z "$as_dir" && as_dir=.
   17230     for ac_exec_ext in '' $ac_executable_extensions; do
   17231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17232     ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
   17233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17234     break 2
   17235   fi
   17236 done
   17237   done
   17238 IFS=$as_save_IFS
   17239 
   17240   test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
   17241   ;;
   17242 esac
   17243 fi
   17244 purify_path=$ac_cv_path_purify_path
   17245 if test -n "$purify_path"; then
   17246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   17247 $as_echo "$purify_path" >&6; }
   17248 else
   17249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17250 $as_echo "no" >&6; }
   17251 fi
   17252 
   17253 
   17254 		;;
   17255 	*)
   17256 		purify_path="$use_purify"
   17257 		;;
   17258 esac
   17259 
   17260 case "$use_purify" in
   17261 	no)
   17262 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17263 $as_echo "no" >&6; }
   17264 		PURIFY=""
   17265 		;;
   17266 	*)
   17267 		if test -f "$purify_path" || test purify = "$purify_path"; then
   17268 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   17269 $as_echo "$purify_path" >&6; }
   17270 			PURIFYFLAGS="`echo $PURIFYOPTIONS`"
   17271 			PURIFY="$purify_path $PURIFYFLAGS"
   17272 		else
   17273 			as_fn_error $? "$purify_path not found.
   17274 
   17275 Please choose the proper path with the following command:
   17276 
   17277     configure --with-purify=PATH
   17278 " "$LINENO" 5
   17279 		fi
   17280 		;;
   17281 esac
   17282 
   17283 
   17284 
   17285 #
   17286 # Google/Great Performance Tools CPU Profiler
   17287 #
   17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
   17289 $as_echo_n "checking whether to use gperftools profiler... " >&6; }
   17290 
   17291 # Check whether --with-gperftools-profiler was given.
   17292 if test "${with_gperftools_profiler+set}" = set; then :
   17293   withval=$with_gperftools_profiler; use_profiler="$withval"
   17294 else
   17295   use_profiler="no"
   17296 fi
   17297 
   17298 
   17299 case $use_profiler in
   17300 	yes)
   17301 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17302 $as_echo "yes" >&6; }
   17303 
   17304 $as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
   17305 
   17306 		LIBS="$LIBS -lprofiler"
   17307 		;;
   17308 	*)
   17309 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17310 $as_echo "no" >&6; }
   17311 		;;
   17312 esac
   17313 
   17314 #
   17315 # enable/disable dumping stack backtrace.  Also check if the system supports
   17316 # glibc-compatible backtrace() function.
   17317 #
   17318 # Check whether --enable-backtrace was given.
   17319 if test "${enable_backtrace+set}" = set; then :
   17320   enableval=$enable_backtrace;
   17321 else
   17322   enable_backtrace="yes"
   17323 fi
   17324 
   17325 
   17326 if test "$enable_backtrace" = "yes"; then :
   17327 
   17328 $as_echo "#define USE_BACKTRACE 1" >>confdefs.h
   17329 
   17330        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17331 /* end confdefs.h.  */
   17332 #include <execinfo.h>
   17333 int
   17334 main ()
   17335 {
   17336 return (backtrace((void **)0, 0));
   17337 
   17338   ;
   17339   return 0;
   17340 }
   17341 _ACEOF
   17342 if ac_fn_c_try_link "$LINENO"; then :
   17343 
   17344 $as_echo "#define HAVE_LIBCTRACE 1" >>confdefs.h
   17345 
   17346 
   17347 fi
   17348 rm -f core conftest.err conftest.$ac_objext \
   17349     conftest$ac_exeext conftest.$ac_ext
   17350 fi
   17351 
   17352 # Check whether --enable-symtable was given.
   17353 if test "${enable_symtable+set}" = set; then :
   17354   enableval=$enable_symtable; want_symtable="$enableval"
   17355 else
   17356   want_symtable="minimal"
   17357 fi
   17358 
   17359 case $want_symtable in
   17360 yes|all|minimal)     # "yes" is a hidden value equivalent to "minimal"
   17361 	if test "" = "$PERL"
   17362 	then
   17363 		as_fn_error $? "Internal symbol table requires perl but no perl is found.
   17364 Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
   17365 	fi
   17366 	if test "yes" = "$use_libtool"; then
   17367 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&5
   17368 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&2;}
   17369 	else
   17370 		# we generate the internal symbol table only for those systems
   17371 		# known to work to avoid unexpected build failure.  Also, warn
   17372 		# about unsupported systems when the feature is enabled
   17373 		#  manually.
   17374 		case $host_os in
   17375 		freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
   17376 			MKSYMTBL_PROGRAM="$PERL"
   17377 			if test "all" = "$want_symtable"; then
   17378 				ALWAYS_MAKE_SYMTABLE="yes"
   17379 			fi
   17380 			;;
   17381 		*)
   17382 			if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
   17383 			then
   17384 				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
   17385 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
   17386 			fi
   17387 		esac
   17388 	fi
   17389 	;;
   17390 *)
   17391 	;;
   17392 esac
   17393 
   17394 
   17395 
   17396 #
   17397 # File name extension for static archive files, for those few places
   17398 # where they are treated differently from dynamic ones.
   17399 #
   17400 SA=a
   17401 
   17402 
   17403 
   17404 
   17405 
   17406 
   17407 
   17408 
   17409 
   17410 
   17411 BIND9_CO_RULE=".c.$O:"
   17412 
   17413 
   17414 #
   17415 # Here begins a very long section to determine the system's networking
   17416 # capabilities.  The order of the tests is significant.
   17417 #
   17418 
   17419 #
   17420 # We do the IPv6 compilation checking after libtool so that we can put
   17421 # the right suffix on the files.
   17422 #
   17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
   17424 $as_echo_n "checking for IPv6 structures... " >&6; }
   17425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17426 /* end confdefs.h.  */
   17427 
   17428        #include <sys/types.h>
   17429        #include <sys/socket.h>
   17430        #include <netinet/in.h>
   17431 
   17432 int
   17433 main ()
   17434 {
   17435 
   17436        struct sockaddr_in6 sin6;
   17437        struct in6_addr in6;
   17438        struct in6_pktinfo in6_pi;
   17439        struct sockaddr_storage storage;
   17440        in6 = in6addr_any;
   17441        in6 = in6addr_loopback;
   17442        sin6.sin6_scope_id = 0;
   17443        return (0);
   17444 
   17445   ;
   17446   return 0;
   17447 }
   17448 _ACEOF
   17449 if ac_fn_c_try_compile "$LINENO"; then :
   17450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17451 $as_echo "yes" >&6; }
   17452 else
   17453   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17455 as_fn_error $? "IPv6 support is mandatory
   17456 See \`config.log' for more details" "$LINENO" 5; }
   17457 fi
   17458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17459 
   17460 #
   17461 # Allow forcibly disabling TCP Fast Open support as autodetection might yield
   17462 # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
   17463 # comment in lib/isc/unix/socket.c).
   17464 #
   17465 
   17466 # Check whether --enable-tcp_fastopen was given.
   17467 if test "${enable_tcp_fastopen+set}" = set; then :
   17468   enableval=$enable_tcp_fastopen;
   17469 else
   17470   enable_tcp_fastopen="yes"
   17471 fi
   17472 
   17473 
   17474 if test "$enable_tcp_fastopen" = "yes"; then :
   17475 
   17476 $as_echo "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
   17477 
   17478 fi
   17479 
   17480 #
   17481 # Check for some other useful functions that are not ever-present.
   17482 #
   17483 for ac_func in strlcpy strlcat
   17484 do :
   17485   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17486 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17487 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17488   cat >>confdefs.h <<_ACEOF
   17489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17490 _ACEOF
   17491 
   17492 fi
   17493 done
   17494 
   17495 
   17496 
   17497 
   17498 # Check whether --with-readline was given.
   17499 if test "${with_readline+set}" = set; then :
   17500   withval=$with_readline; use_readline="$withval"
   17501 else
   17502   use_readline="auto"
   17503 fi
   17504 
   17505 case "$use_readline" in
   17506 no)	;;
   17507 *)
   17508 	saved_LIBS="$LIBS"
   17509 	case "$use_readline" in
   17510 	yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
   17511 	*) try_readline="$use_readline"
   17512 	esac
   17513 	for readline in "$try_readline" $or_readline
   17514 	do
   17515 		LIBS="$readline"
   17516 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
   17517 $as_echo "$as_me: checking for readline with $readline" >&6;}
   17518 		for ac_func in readline
   17519 do :
   17520   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   17521 if test "x$ac_cv_func_readline" = xyes; then :
   17522   cat >>confdefs.h <<_ACEOF
   17523 #define HAVE_READLINE 1
   17524 _ACEOF
   17525 
   17526 fi
   17527 done
   17528 
   17529 		if test "yes" = "$ac_cv_func_readline"
   17530 		then
   17531 			READLINE_LIB="$readline"
   17532 			break
   17533 		fi
   17534 		for lib in -lterminfo -ltermcap -lncurses -lcurses
   17535 		do
   17536 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
   17537 $as_echo "$as_me: checking for readline with $readline $lib" >&6;}
   17538 			unset ac_cv_func_readline
   17539 			LIBS="$readline $lib"
   17540 			for ac_func in readline
   17541 do :
   17542   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   17543 if test "x$ac_cv_func_readline" = xyes; then :
   17544   cat >>confdefs.h <<_ACEOF
   17545 #define HAVE_READLINE 1
   17546 _ACEOF
   17547 
   17548 fi
   17549 done
   17550 
   17551 			if test "yes" = "$ac_cv_func_readline"
   17552 			then
   17553 				READLINE_LIB="$readline $lib"
   17554 				break
   17555 			fi
   17556 		done
   17557 		if test "yes" = "$ac_cv_func_readline"
   17558 		then
   17559 			break
   17560 		fi
   17561 	done
   17562 	if test "auto" != "$use_readline" &&
   17563 	   test "X$READLINE_LIB" = "X"
   17564 	then
   17565 		as_fn_error $? "The readline library was not found." "$LINENO" 5
   17566 	fi
   17567 	LIBS="$saved_LIBS"
   17568 	;;
   17569 esac
   17570 if test "yes" = "$ac_cv_func_readline"
   17571 then
   17572 	case "$READLINE_LIB" in
   17573 	*edit*)
   17574 		for ac_header in editline/readline.h
   17575 do :
   17576   ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
   17577 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
   17578   cat >>confdefs.h <<_ACEOF
   17579 #define HAVE_EDITLINE_READLINE_H 1
   17580 _ACEOF
   17581 
   17582 fi
   17583 
   17584 done
   17585 
   17586 		for ac_header in edit/readline/readline.h
   17587 do :
   17588   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
   17589 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
   17590   cat >>confdefs.h <<_ACEOF
   17591 #define HAVE_EDIT_READLINE_READLINE_H 1
   17592 _ACEOF
   17593 
   17594 fi
   17595 
   17596 done
   17597 
   17598 		for ac_header in edit/readline/history.h
   17599 do :
   17600   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
   17601 if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
   17602   cat >>confdefs.h <<_ACEOF
   17603 #define HAVE_EDIT_READLINE_HISTORY_H 1
   17604 _ACEOF
   17605 
   17606 fi
   17607 
   17608 done
   17609 
   17610 		;;
   17611 	esac
   17612 	for ac_header in readline/readline.h
   17613 do :
   17614   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
   17615 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
   17616   cat >>confdefs.h <<_ACEOF
   17617 #define HAVE_READLINE_READLINE_H 1
   17618 _ACEOF
   17619 
   17620 fi
   17621 
   17622 done
   17623 
   17624 	for ac_header in readline/history.h
   17625 do :
   17626   ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
   17627 if test "x$ac_cv_header_readline_history_h" = xyes; then :
   17628   cat >>confdefs.h <<_ACEOF
   17629 #define HAVE_READLINE_HISTORY_H 1
   17630 _ACEOF
   17631 
   17632 fi
   17633 
   17634 done
   17635 
   17636 fi
   17637 
   17638 #
   17639 # Use our own SPNEGO implementation?
   17640 #
   17641 # Check whether --enable-isc-spnego was given.
   17642 if test "${enable_isc_spnego+set}" = set; then :
   17643   enableval=$enable_isc_spnego;
   17644 fi
   17645 
   17646 
   17647 if test -n "$USE_GSSAPI"
   17648 then
   17649 	case "$enable_isc_spnego" in
   17650 		yes|'')
   17651 			USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
   17652 			DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
   17653 			DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
   17654 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
   17655 $as_echo "using SPNEGO from lib/dns" >&6; }
   17656 			;;
   17657 		no)
   17658 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
   17659 $as_echo "using SPNEGO from GSSAPI library" >&6; }
   17660 			;;
   17661 	esac
   17662 fi
   17663 
   17664 
   17665 
   17666 
   17667 
   17668 
   17669 #
   17670 # Security Stuff
   17671 #
   17672 # Note it is very recommended to *not* disable chroot(),
   17673 # this is only because chroot() was made obsolete by Posix.
   17674 # Check whether --enable-chroot was given.
   17675 if test "${enable_chroot+set}" = set; then :
   17676   enableval=$enable_chroot;
   17677 fi
   17678 
   17679 case "$enable_chroot" in
   17680 	yes|'')
   17681 		for ac_func in chroot
   17682 do :
   17683   ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
   17684 if test "x$ac_cv_func_chroot" = xyes; then :
   17685   cat >>confdefs.h <<_ACEOF
   17686 #define HAVE_CHROOT 1
   17687 _ACEOF
   17688 
   17689 fi
   17690 done
   17691 
   17692 		;;
   17693 	no)
   17694 		;;
   17695 esac
   17696 
   17697 LIBCAP_LIBS=""
   17698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capabilities" >&5
   17699 $as_echo_n "checking whether to enable Linux capabilities... " >&6; }
   17700 # Check whether --enable-linux-caps was given.
   17701 if test "${enable_linux_caps+set}" = set; then :
   17702   enableval=$enable_linux_caps;
   17703 else
   17704   case $host in #(
   17705   *-linux*) :
   17706     enable_linux_caps=yes ;; #(
   17707   *) :
   17708     enable_linux_caps=no ;;
   17709 esac
   17710 fi
   17711 
   17712 
   17713 if test "$enable_linux_caps" = "yes"; then :
   17714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17715 $as_echo "yes" >&6; }
   17716        for ac_header in sys/capability.h
   17717 do :
   17718   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
   17719 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
   17720   cat >>confdefs.h <<_ACEOF
   17721 #define HAVE_SYS_CAPABILITY_H 1
   17722 _ACEOF
   17723 
   17724 else
   17725   as_fn_error $? "sys/capability.h header is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   17726 fi
   17727 
   17728 done
   17729 
   17730        save_LIBS="$LIBS"
   17731        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
   17732 $as_echo_n "checking for library containing cap_set_proc... " >&6; }
   17733 if ${ac_cv_search_cap_set_proc+:} false; then :
   17734   $as_echo_n "(cached) " >&6
   17735 else
   17736   ac_func_search_save_LIBS=$LIBS
   17737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17738 /* end confdefs.h.  */
   17739 
   17740 /* Override any GCC internal prototype to avoid an error.
   17741    Use char because int might match the return type of a GCC
   17742    builtin and then its argument prototype would still apply.  */
   17743 #ifdef __cplusplus
   17744 extern "C"
   17745 #endif
   17746 char cap_set_proc ();
   17747 int
   17748 main ()
   17749 {
   17750 return cap_set_proc ();
   17751   ;
   17752   return 0;
   17753 }
   17754 _ACEOF
   17755 for ac_lib in '' cap; do
   17756   if test -z "$ac_lib"; then
   17757     ac_res="none required"
   17758   else
   17759     ac_res=-l$ac_lib
   17760     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17761   fi
   17762   if ac_fn_c_try_link "$LINENO"; then :
   17763   ac_cv_search_cap_set_proc=$ac_res
   17764 fi
   17765 rm -f core conftest.err conftest.$ac_objext \
   17766     conftest$ac_exeext
   17767   if ${ac_cv_search_cap_set_proc+:} false; then :
   17768   break
   17769 fi
   17770 done
   17771 if ${ac_cv_search_cap_set_proc+:} false; then :
   17772 
   17773 else
   17774   ac_cv_search_cap_set_proc=no
   17775 fi
   17776 rm conftest.$ac_ext
   17777 LIBS=$ac_func_search_save_LIBS
   17778 fi
   17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
   17780 $as_echo "$ac_cv_search_cap_set_proc" >&6; }
   17781 ac_res=$ac_cv_search_cap_set_proc
   17782 if test "$ac_res" != no; then :
   17783   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17784   LIBCAP_LIBS="$ac_cv_search_cap_set_proc"
   17785 else
   17786   as_fn_error $? "libcap is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   17787 fi
   17788 
   17789        LIBS="$save_LIBS"
   17790 else
   17791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17792 $as_echo "no" >&6; }
   17793 fi
   17794 
   17795 
   17796 for ac_header in sys/un.h
   17797 do :
   17798   ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
   17799 if test "x$ac_cv_header_sys_un_h" = xyes; then :
   17800   cat >>confdefs.h <<_ACEOF
   17801 #define HAVE_SYS_UN_H 1
   17802 _ACEOF
   17803  ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
   17804 
   17805 else
   17806   ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
   17807 
   17808 fi
   17809 
   17810 done
   17811 
   17812 
   17813 
   17814 case "$host" in
   17815 *-solaris*)
   17816 
   17817 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
   17818 
   17819 	;;
   17820 esac
   17821 
   17822 #
   17823 # Time Zone Stuff
   17824 #
   17825 for ac_func in tzset
   17826 do :
   17827   ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
   17828 if test "x$ac_cv_func_tzset" = xyes; then :
   17829   cat >>confdefs.h <<_ACEOF
   17830 #define HAVE_TZSET 1
   17831 _ACEOF
   17832 
   17833 fi
   17834 done
   17835 
   17836 
   17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
   17838 $as_echo_n "checking for optarg declaration... " >&6; }
   17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17840 /* end confdefs.h.  */
   17841 
   17842 #include <unistd.h>
   17843 
   17844 int
   17845 main ()
   17846 {
   17847 optarg = 0;
   17848   ;
   17849   return 0;
   17850 }
   17851 _ACEOF
   17852 if ac_fn_c_try_compile "$LINENO"; then :
   17853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17854 $as_echo "yes" >&6; }
   17855 else
   17856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17857 $as_echo "no" >&6; }
   17858 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
   17859 
   17860 $as_echo "#define NEED_OPTARG 1" >>confdefs.h
   17861 
   17862 fi
   17863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17864 
   17865 #
   17866 # Check for nanoseconds in file stats
   17867 #
   17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
   17869 $as_echo_n "checking for st_mtim.tv_nsec... " >&6; }
   17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17871 /* end confdefs.h.  */
   17872 #include <sys/fcntl.h>
   17873 int
   17874 main ()
   17875 {
   17876 struct stat s;
   17877        return(s.st_mtim.tv_nsec);
   17878 
   17879   ;
   17880   return 0;
   17881 }
   17882 _ACEOF
   17883 if ac_fn_c_try_compile "$LINENO"; then :
   17884 
   17885 $as_echo "#define HAVE_STAT_NSEC 1" >>confdefs.h
   17886 
   17887 fi
   17888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17889 
   17890 #
   17891 # Check for if_nametoindex() for IPv6 scoped addresses support
   17892 #
   17893 for ac_func in if_nametoindex
   17894 do :
   17895   ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
   17896 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
   17897   cat >>confdefs.h <<_ACEOF
   17898 #define HAVE_IF_NAMETOINDEX 1
   17899 _ACEOF
   17900 
   17901 fi
   17902 done
   17903 
   17904 
   17905 for ac_func in nanosleep usleep explicit_bzero
   17906 do :
   17907   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17908 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17909 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17910   cat >>confdefs.h <<_ACEOF
   17911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17912 _ACEOF
   17913 
   17914 fi
   17915 done
   17916 
   17917 
   17918 ISC_ATOMIC_LIBS=""
   17919 for ac_header in stdatomic.h
   17920 do :
   17921   ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
   17922 if test "x$ac_cv_header_stdatomic_h" = xyes; then :
   17923   cat >>confdefs.h <<_ACEOF
   17924 #define HAVE_STDATOMIC_H 1
   17925 _ACEOF
   17926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   17927 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   17928    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17929 /* end confdefs.h.  */
   17930 #include <stdatomic.h>
   17931 int
   17932 main ()
   17933 {
   17934 atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   17935 
   17936   ;
   17937   return 0;
   17938 }
   17939 _ACEOF
   17940 if ac_fn_c_try_compile "$LINENO"; then :
   17941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdatomic.h" >&5
   17942 $as_echo "stdatomic.h" >&6; }
   17943       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
   17944 $as_echo_n "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
   17945       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17946 /* end confdefs.h.  */
   17947 #include <stdatomic.h>
   17948 int
   17949 main ()
   17950 {
   17951 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   17952 
   17953   ;
   17954   return 0;
   17955 }
   17956 _ACEOF
   17957 if ac_fn_c_try_link "$LINENO"; then :
   17958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17959 $as_echo "no" >&6; }
   17960 else
   17961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17962 $as_echo "yes" >&6; }
   17963 	 ISC_ATOMIC_LIBS="-latomic"
   17964 
   17965 fi
   17966 rm -f core conftest.err conftest.$ac_objext \
   17967     conftest$ac_exeext conftest.$ac_ext
   17968 
   17969 else
   17970   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17972 as_fn_error $? "stdatomic.h header found, but compilation failed, fix your toolchaing.
   17973 See \`config.log' for more details" "$LINENO" 5; }
   17974 
   17975 fi
   17976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17977 else
   17978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   17979 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   17980    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17981 /* end confdefs.h.  */
   17982 #include <inttypes.h>
   17983 int
   17984 main ()
   17985 {
   17986 int32_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   17987 
   17988   ;
   17989   return 0;
   17990 }
   17991 _ACEOF
   17992 if ac_fn_c_try_compile "$LINENO"; then :
   17993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __atomic builtins" >&5
   17994 $as_echo "__atomic builtins" >&6; }
   17995 
   17996 $as_echo "#define HAVE___ATOMIC 1" >>confdefs.h
   17997 
   17998       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit __atomic builtins" >&5
   17999 $as_echo_n "checking whether -latomic is needed for 64-bit __atomic builtins... " >&6; }
   18000       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18001 /* end confdefs.h.  */
   18002 #include <inttypes.h>
   18003 int
   18004 main ()
   18005 {
   18006 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   18007 
   18008   ;
   18009   return 0;
   18010 }
   18011 _ACEOF
   18012 if ac_fn_c_try_link "$LINENO"; then :
   18013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18014 $as_echo "no" >&6; }
   18015 else
   18016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18017 $as_echo "yes" >&6; }
   18018 	 ISC_ATOMIC_LIBS="-latomic"
   18019 
   18020 fi
   18021 rm -f core conftest.err conftest.$ac_objext \
   18022     conftest$ac_exeext conftest.$ac_ext
   18023 
   18024 else
   18025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __sync builtins" >&5
   18026 $as_echo "__sync builtins" >&6; }
   18027 
   18028 fi
   18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18030 
   18031 fi
   18032 
   18033 done
   18034 
   18035 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   18036 
   18037 for ac_header in uchar.h
   18038 do :
   18039   ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
   18040 if test "x$ac_cv_header_uchar_h" = xyes; then :
   18041   cat >>confdefs.h <<_ACEOF
   18042 #define HAVE_UCHAR_H 1
   18043 _ACEOF
   18044 
   18045 fi
   18046 
   18047 done
   18048 
   18049 
   18050 #
   18051 # Check for __builtin_unreachable
   18052 #
   18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
   18054 $as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; }
   18055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18056 /* end confdefs.h.  */
   18057 
   18058 int
   18059 main ()
   18060 {
   18061 __builtin_unreachable();
   18062 
   18063   ;
   18064   return 0;
   18065 }
   18066 _ACEOF
   18067 if ac_fn_c_try_link "$LINENO"; then :
   18068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18069 $as_echo "yes" >&6; }
   18070 
   18071 $as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
   18072 
   18073 
   18074 else
   18075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18076 $as_echo "no" >&6; }
   18077 
   18078 fi
   18079 rm -f core conftest.err conftest.$ac_objext \
   18080     conftest$ac_exeext conftest.$ac_ext
   18081 
   18082 #
   18083 # Check for __builtin_expect
   18084 #
   18085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
   18086 $as_echo_n "checking compiler support for __builtin_expect... " >&6; }
   18087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18088 /* end confdefs.h.  */
   18089 
   18090 int
   18091 main ()
   18092 {
   18093 
   18094 	return (__builtin_expect(1, 1) ? 1 : 0);
   18095 
   18096   ;
   18097   return 0;
   18098 }
   18099 _ACEOF
   18100 if ac_fn_c_try_link "$LINENO"; then :
   18101 
   18102 	have_builtin_expect=yes
   18103 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18104 $as_echo "yes" >&6; }
   18105 
   18106 else
   18107 
   18108 	have_builtin_expect=no
   18109 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18110 $as_echo "no" >&6; }
   18111 
   18112 fi
   18113 rm -f core conftest.err conftest.$ac_objext \
   18114     conftest$ac_exeext conftest.$ac_ext
   18115 if test "yes" = "$have_builtin_expect"; then
   18116 
   18117 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
   18118 
   18119 fi
   18120 
   18121 #
   18122 # Check for __builtin_clz
   18123 #
   18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
   18125 $as_echo_n "checking compiler support for __builtin_clz... " >&6; }
   18126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18127 /* end confdefs.h.  */
   18128 
   18129 int
   18130 main ()
   18131 {
   18132 
   18133 	return (__builtin_clz(0xff) == 24 ? 1 : 0);
   18134 
   18135   ;
   18136   return 0;
   18137 }
   18138 _ACEOF
   18139 if ac_fn_c_try_link "$LINENO"; then :
   18140 
   18141 	have_builtin_clz=yes
   18142 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18143 $as_echo "yes" >&6; }
   18144 
   18145 else
   18146 
   18147 	have_builtin_clz=no
   18148 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18149 $as_echo "no" >&6; }
   18150 
   18151 fi
   18152 rm -f core conftest.err conftest.$ac_objext \
   18153     conftest$ac_exeext conftest.$ac_ext
   18154 if test "yes" = "$have_builtin_clz"; then
   18155 
   18156 $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
   18157 
   18158 fi
   18159 
   18160 #
   18161 # Activate "rrset-order fixed" or not?
   18162 #
   18163 # Check whether --enable-fixed-rrset was given.
   18164 if test "${enable_fixed_rrset+set}" = set; then :
   18165   enableval=$enable_fixed_rrset; enable_fixed="$enableval"
   18166 else
   18167   enable_fixed="no"
   18168 fi
   18169 
   18170 case "$enable_fixed" in
   18171 	yes)
   18172 
   18173 $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
   18174 
   18175 		;;
   18176 	no)
   18177 		;;
   18178 	*)
   18179 		;;
   18180 esac
   18181 
   18182 #
   18183 # Activate dnstap?
   18184 #
   18185 # Check whether --enable-dnstap was given.
   18186 if test "${enable_dnstap+set}" = set; then :
   18187   enableval=$enable_dnstap; use_dnstap=$enableval
   18188 else
   18189   use_dnstap=no
   18190 fi
   18191 
   18192 
   18193 DNSTAP=
   18194 DNSTAPSRCS=
   18195 DNSTAPOBJS=
   18196 DNSTAPTARGETS=
   18197 DNSTAP_PB_C_H=
   18198 if test "x$use_dnstap" != "xno"; then
   18199 
   18200 # Check whether --with-protobuf-c was given.
   18201 if test "${with_protobuf_c+set}" = set; then :
   18202   withval=$with_protobuf_c;
   18203 	    # workaround for protobuf-c includes at old dir
   18204 	    # before protobuf-c-1.0.0
   18205 	    if test -f $withval/include/google/protobuf-c/protobuf-c.h
   18206 	    then
   18207 		CFLAGS="$CFLAGS -I$withval/include/google"
   18208 	    else
   18209 		CFLAGS="$CFLAGS -I$withval/include"
   18210 	    fi
   18211 	    LDFLAGS="$LDFLAGS -L$withval/lib"
   18212 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   18213 set dummy protoc-c; ac_word=$2
   18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18215 $as_echo_n "checking for $ac_word... " >&6; }
   18216 if ${ac_cv_path_PROTOC_C+:} false; then :
   18217   $as_echo_n "(cached) " >&6
   18218 else
   18219   case $PROTOC_C in
   18220   [\\/]* | ?:[\\/]*)
   18221   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   18222   ;;
   18223   *)
   18224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18225 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   18226 do
   18227   IFS=$as_save_IFS
   18228   test -z "$as_dir" && as_dir=.
   18229     for ac_exec_ext in '' $ac_executable_extensions; do
   18230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18231     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   18232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18233     break 2
   18234   fi
   18235 done
   18236   done
   18237 IFS=$as_save_IFS
   18238 
   18239   ;;
   18240 esac
   18241 fi
   18242 PROTOC_C=$ac_cv_path_PROTOC_C
   18243 if test -n "$PROTOC_C"; then
   18244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   18245 $as_echo "$PROTOC_C" >&6; }
   18246 else
   18247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18248 $as_echo "no" >&6; }
   18249 fi
   18250 
   18251 
   18252 
   18253 else
   18254 
   18255 	    # workaround for protobuf-c includes at old dir
   18256 	    # before protobuf-c-1.0.0
   18257 	    if test -f /usr/include/google/protobuf-c/protobuf-c.h
   18258 	    then
   18259 		CFLAGS="$CFLAGS -I/usr/include/google"
   18260 	    else
   18261 		if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
   18262 		then
   18263 		    CFLAGS="$CFLAGS -I/usr/local/include/google"
   18264 		    LDFLAGS="$LDFLAGS -L/usr/local/lib"
   18265 		fi
   18266 	    fi
   18267 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   18268 set dummy protoc-c; ac_word=$2
   18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18270 $as_echo_n "checking for $ac_word... " >&6; }
   18271 if ${ac_cv_path_PROTOC_C+:} false; then :
   18272   $as_echo_n "(cached) " >&6
   18273 else
   18274   case $PROTOC_C in
   18275   [\\/]* | ?:[\\/]*)
   18276   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   18277   ;;
   18278   *)
   18279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18280 for as_dir in $PATH
   18281 do
   18282   IFS=$as_save_IFS
   18283   test -z "$as_dir" && as_dir=.
   18284     for ac_exec_ext in '' $ac_executable_extensions; do
   18285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18286     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   18287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18288     break 2
   18289   fi
   18290 done
   18291   done
   18292 IFS=$as_save_IFS
   18293 
   18294   ;;
   18295 esac
   18296 fi
   18297 PROTOC_C=$ac_cv_path_PROTOC_C
   18298 if test -n "$PROTOC_C"; then
   18299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   18300 $as_echo "$PROTOC_C" >&6; }
   18301 else
   18302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18303 $as_echo "no" >&6; }
   18304 fi
   18305 
   18306 
   18307 
   18308 fi
   18309 
   18310 	if test -z "$PROTOC_C"; then
   18311 		as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
   18312 	fi
   18313 
   18314 # Check whether --with-libfstrm was given.
   18315 if test "${with_libfstrm+set}" = set; then :
   18316   withval=$with_libfstrm;
   18317 	    CFLAGS="$CFLAGS -I$withval/include"
   18318 	    LDFLAGS="$LDFLAGS -L$withval/lib"
   18319 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   18320 set dummy fstrm_capture; ac_word=$2
   18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18322 $as_echo_n "checking for $ac_word... " >&6; }
   18323 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   18324   $as_echo_n "(cached) " >&6
   18325 else
   18326   case $FSTRM_CAPTURE in
   18327   [\\/]* | ?:[\\/]*)
   18328   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   18329   ;;
   18330   *)
   18331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18332 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   18333 do
   18334   IFS=$as_save_IFS
   18335   test -z "$as_dir" && as_dir=.
   18336     for ac_exec_ext in '' $ac_executable_extensions; do
   18337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18338     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   18339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18340     break 2
   18341   fi
   18342 done
   18343   done
   18344 IFS=$as_save_IFS
   18345 
   18346   ;;
   18347 esac
   18348 fi
   18349 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   18350 if test -n "$FSTRM_CAPTURE"; then
   18351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   18352 $as_echo "$FSTRM_CAPTURE" >&6; }
   18353 else
   18354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18355 $as_echo "no" >&6; }
   18356 fi
   18357 
   18358 
   18359 
   18360 else
   18361 
   18362 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   18363 set dummy fstrm_capture; ac_word=$2
   18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18365 $as_echo_n "checking for $ac_word... " >&6; }
   18366 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   18367   $as_echo_n "(cached) " >&6
   18368 else
   18369   case $FSTRM_CAPTURE in
   18370   [\\/]* | ?:[\\/]*)
   18371   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   18372   ;;
   18373   *)
   18374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18375 for as_dir in $PATH
   18376 do
   18377   IFS=$as_save_IFS
   18378   test -z "$as_dir" && as_dir=.
   18379     for ac_exec_ext in '' $ac_executable_extensions; do
   18380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18381     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   18382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18383     break 2
   18384   fi
   18385 done
   18386   done
   18387 IFS=$as_save_IFS
   18388 
   18389   ;;
   18390 esac
   18391 fi
   18392 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   18393 if test -n "$FSTRM_CAPTURE"; then
   18394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   18395 $as_echo "$FSTRM_CAPTURE" >&6; }
   18396 else
   18397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18398 $as_echo "no" >&6; }
   18399 fi
   18400 
   18401 
   18402 
   18403 fi
   18404 
   18405 
   18406 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
   18407 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
   18408 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18409   $as_echo_n "(cached) " >&6
   18410 else
   18411   ac_func_search_save_LIBS=$LIBS
   18412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18413 /* end confdefs.h.  */
   18414 
   18415 /* Override any GCC internal prototype to avoid an error.
   18416    Use char because int might match the return type of a GCC
   18417    builtin and then its argument prototype would still apply.  */
   18418 #ifdef __cplusplus
   18419 extern "C"
   18420 #endif
   18421 char fstrm_iothr_init ();
   18422 int
   18423 main ()
   18424 {
   18425 return fstrm_iothr_init ();
   18426   ;
   18427   return 0;
   18428 }
   18429 _ACEOF
   18430 for ac_lib in '' fstrm; do
   18431   if test -z "$ac_lib"; then
   18432     ac_res="none required"
   18433   else
   18434     ac_res=-l$ac_lib
   18435     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18436   fi
   18437   if ac_fn_c_try_link "$LINENO"; then :
   18438   ac_cv_search_fstrm_iothr_init=$ac_res
   18439 fi
   18440 rm -f core conftest.err conftest.$ac_objext \
   18441     conftest$ac_exeext
   18442   if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18443   break
   18444 fi
   18445 done
   18446 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   18447 
   18448 else
   18449   ac_cv_search_fstrm_iothr_init=no
   18450 fi
   18451 rm conftest.$ac_ext
   18452 LIBS=$ac_func_search_save_LIBS
   18453 fi
   18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
   18455 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
   18456 ac_res=$ac_cv_search_fstrm_iothr_init
   18457 if test "$ac_res" != no; then :
   18458   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18459 
   18460 else
   18461   as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
   18462 fi
   18463 
   18464 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
   18465 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
   18466 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18467   $as_echo_n "(cached) " >&6
   18468 else
   18469   ac_func_search_save_LIBS=$LIBS
   18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18471 /* end confdefs.h.  */
   18472 
   18473 /* Override any GCC internal prototype to avoid an error.
   18474    Use char because int might match the return type of a GCC
   18475    builtin and then its argument prototype would still apply.  */
   18476 #ifdef __cplusplus
   18477 extern "C"
   18478 #endif
   18479 char protobuf_c_message_pack ();
   18480 int
   18481 main ()
   18482 {
   18483 return protobuf_c_message_pack ();
   18484   ;
   18485   return 0;
   18486 }
   18487 _ACEOF
   18488 for ac_lib in '' protobuf-c; do
   18489   if test -z "$ac_lib"; then
   18490     ac_res="none required"
   18491   else
   18492     ac_res=-l$ac_lib
   18493     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18494   fi
   18495   if ac_fn_c_try_link "$LINENO"; then :
   18496   ac_cv_search_protobuf_c_message_pack=$ac_res
   18497 fi
   18498 rm -f core conftest.err conftest.$ac_objext \
   18499     conftest$ac_exeext
   18500   if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18501   break
   18502 fi
   18503 done
   18504 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   18505 
   18506 else
   18507   ac_cv_search_protobuf_c_message_pack=no
   18508 fi
   18509 rm conftest.$ac_ext
   18510 LIBS=$ac_func_search_save_LIBS
   18511 fi
   18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
   18513 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
   18514 ac_res=$ac_cv_search_protobuf_c_message_pack
   18515 if test "$ac_res" != no; then :
   18516   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18517 
   18518 else
   18519   as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
   18520 fi
   18521 
   18522 
   18523 
   18524 $as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
   18525 
   18526 	DNSTAP=dnstap
   18527 	DNSTAPSRCS='${DNSTAPSRCS}'
   18528 	DNSTAPOBJS='${DNSTAPOBJS}'
   18529 	DNSTAPTARGETS='${DNSTAPTARGETS}'
   18530 	DNSTAP_PB_C_H="dnstap.pb-c.h"
   18531 fi
   18532 
   18533 
   18534 
   18535 
   18536 
   18537 
   18538 #
   18539 #  The following sets up how non-blocking i/o is established.
   18540 #  cygwin and solaris 2.x (x<5) require special handling.
   18541 #
   18542 case "$host" in
   18543 *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
   18544 ;;
   18545 *-solaris2.[01234])
   18546 	$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   18547 
   18548 
   18549 $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
   18550 
   18551 	;;
   18552 *)
   18553 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   18554 
   18555 	;;
   18556 esac
   18557 #
   18558 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
   18559 # This prevents the source address being set.
   18560 #
   18561 case "$host" in
   18562 *-solaris2.[012345]|*-solaris2.5.1)
   18563 
   18564 $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
   18565 
   18566 	;;
   18567 esac
   18568 #
   18569 # The following sections deal with tools used for formatting
   18570 # the documentation.  They are all optional, unless you are
   18571 # a developer editing the documentation source.
   18572 #
   18573 
   18574 #
   18575 # Look for TeX.
   18576 #
   18577 
   18578 for ac_prog in latex
   18579 do
   18580   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18581 set dummy $ac_prog; ac_word=$2
   18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18583 $as_echo_n "checking for $ac_word... " >&6; }
   18584 if ${ac_cv_path_LATEX+:} false; then :
   18585   $as_echo_n "(cached) " >&6
   18586 else
   18587   case $LATEX in
   18588   [\\/]* | ?:[\\/]*)
   18589   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
   18590   ;;
   18591   *)
   18592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18593 for as_dir in $PATH
   18594 do
   18595   IFS=$as_save_IFS
   18596   test -z "$as_dir" && as_dir=.
   18597     for ac_exec_ext in '' $ac_executable_extensions; do
   18598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18599     ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
   18600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18601     break 2
   18602   fi
   18603 done
   18604   done
   18605 IFS=$as_save_IFS
   18606 
   18607   ;;
   18608 esac
   18609 fi
   18610 LATEX=$ac_cv_path_LATEX
   18611 if test -n "$LATEX"; then
   18612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
   18613 $as_echo "$LATEX" >&6; }
   18614 else
   18615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18616 $as_echo "no" >&6; }
   18617 fi
   18618 
   18619 
   18620   test -n "$LATEX" && break
   18621 done
   18622 test -n "$LATEX" || LATEX="latex"
   18623 
   18624 
   18625 
   18626 for ac_prog in pdflatex
   18627 do
   18628   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18629 set dummy $ac_prog; ac_word=$2
   18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18631 $as_echo_n "checking for $ac_word... " >&6; }
   18632 if ${ac_cv_path_PDFLATEX+:} false; then :
   18633   $as_echo_n "(cached) " >&6
   18634 else
   18635   case $PDFLATEX in
   18636   [\\/]* | ?:[\\/]*)
   18637   ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
   18638   ;;
   18639   *)
   18640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18641 for as_dir in $PATH
   18642 do
   18643   IFS=$as_save_IFS
   18644   test -z "$as_dir" && as_dir=.
   18645     for ac_exec_ext in '' $ac_executable_extensions; do
   18646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18647     ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
   18648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18649     break 2
   18650   fi
   18651 done
   18652   done
   18653 IFS=$as_save_IFS
   18654 
   18655   ;;
   18656 esac
   18657 fi
   18658 PDFLATEX=$ac_cv_path_PDFLATEX
   18659 if test -n "$PDFLATEX"; then
   18660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
   18661 $as_echo "$PDFLATEX" >&6; }
   18662 else
   18663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18664 $as_echo "no" >&6; }
   18665 fi
   18666 
   18667 
   18668   test -n "$PDFLATEX" && break
   18669 done
   18670 test -n "$PDFLATEX" || PDFLATEX="pdflatex"
   18671 
   18672 
   18673 
   18674 for ac_prog in dblatex
   18675 do
   18676   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18677 set dummy $ac_prog; ac_word=$2
   18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18679 $as_echo_n "checking for $ac_word... " >&6; }
   18680 if ${ac_cv_path_DBLATEX+:} false; then :
   18681   $as_echo_n "(cached) " >&6
   18682 else
   18683   case $DBLATEX in
   18684   [\\/]* | ?:[\\/]*)
   18685   ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
   18686   ;;
   18687   *)
   18688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18689 for as_dir in $PATH
   18690 do
   18691   IFS=$as_save_IFS
   18692   test -z "$as_dir" && as_dir=.
   18693     for ac_exec_ext in '' $ac_executable_extensions; do
   18694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18695     ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
   18696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18697     break 2
   18698   fi
   18699 done
   18700   done
   18701 IFS=$as_save_IFS
   18702 
   18703   ;;
   18704 esac
   18705 fi
   18706 DBLATEX=$ac_cv_path_DBLATEX
   18707 if test -n "$DBLATEX"; then
   18708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
   18709 $as_echo "$DBLATEX" >&6; }
   18710 else
   18711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18712 $as_echo "no" >&6; }
   18713 fi
   18714 
   18715 
   18716   test -n "$DBLATEX" && break
   18717 done
   18718 test -n "$DBLATEX" || DBLATEX="dblatex"
   18719 
   18720 
   18721 
   18722 #
   18723 # Look for w3m
   18724 #
   18725 
   18726 for ac_prog in w3m
   18727 do
   18728   # Extract the first word of "$ac_prog", so it can be a program name with args.
   18729 set dummy $ac_prog; ac_word=$2
   18730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18731 $as_echo_n "checking for $ac_word... " >&6; }
   18732 if ${ac_cv_path_W3M+:} false; then :
   18733   $as_echo_n "(cached) " >&6
   18734 else
   18735   case $W3M in
   18736   [\\/]* | ?:[\\/]*)
   18737   ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
   18738   ;;
   18739   *)
   18740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18741 for as_dir in $PATH
   18742 do
   18743   IFS=$as_save_IFS
   18744   test -z "$as_dir" && as_dir=.
   18745     for ac_exec_ext in '' $ac_executable_extensions; do
   18746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18747     ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
   18748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18749     break 2
   18750   fi
   18751 done
   18752   done
   18753 IFS=$as_save_IFS
   18754 
   18755   ;;
   18756 esac
   18757 fi
   18758 W3M=$ac_cv_path_W3M
   18759 if test -n "$W3M"; then
   18760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
   18761 $as_echo "$W3M" >&6; }
   18762 else
   18763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18764 $as_echo "no" >&6; }
   18765 fi
   18766 
   18767 
   18768   test -n "$W3M" && break
   18769 done
   18770 test -n "$W3M" || W3M="w3m"
   18771 
   18772 
   18773 
   18774 #
   18775 # Look for pandoc
   18776 #
   18777 # Extract the first word of "pandoc", so it can be a program name with args.
   18778 set dummy pandoc; ac_word=$2
   18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18780 $as_echo_n "checking for $ac_word... " >&6; }
   18781 if ${ac_cv_path_PANDOC+:} false; then :
   18782   $as_echo_n "(cached) " >&6
   18783 else
   18784   case $PANDOC in
   18785   [\\/]* | ?:[\\/]*)
   18786   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
   18787   ;;
   18788   *)
   18789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18790 for as_dir in $PATH
   18791 do
   18792   IFS=$as_save_IFS
   18793   test -z "$as_dir" && as_dir=.
   18794     for ac_exec_ext in '' $ac_executable_extensions; do
   18795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18796     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
   18797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18798     break 2
   18799   fi
   18800 done
   18801   done
   18802 IFS=$as_save_IFS
   18803 
   18804   test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc"
   18805   ;;
   18806 esac
   18807 fi
   18808 PANDOC=$ac_cv_path_PANDOC
   18809 if test -n "$PANDOC"; then
   18810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
   18811 $as_echo "$PANDOC" >&6; }
   18812 else
   18813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18814 $as_echo "no" >&6; }
   18815 fi
   18816 
   18817 
   18818 
   18819 
   18820 
   18821 #
   18822 # Look for xsltproc (libxslt)
   18823 #
   18824 
   18825 # Extract the first word of "xsltproc", so it can be a program name with args.
   18826 set dummy xsltproc; ac_word=$2
   18827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18828 $as_echo_n "checking for $ac_word... " >&6; }
   18829 if ${ac_cv_path_XSLTPROC+:} false; then :
   18830   $as_echo_n "(cached) " >&6
   18831 else
   18832   case $XSLTPROC in
   18833   [\\/]* | ?:[\\/]*)
   18834   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
   18835   ;;
   18836   *)
   18837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18838 for as_dir in $PATH
   18839 do
   18840   IFS=$as_save_IFS
   18841   test -z "$as_dir" && as_dir=.
   18842     for ac_exec_ext in '' $ac_executable_extensions; do
   18843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18844     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
   18845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18846     break 2
   18847   fi
   18848 done
   18849   done
   18850 IFS=$as_save_IFS
   18851 
   18852   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
   18853   ;;
   18854 esac
   18855 fi
   18856 XSLTPROC=$ac_cv_path_XSLTPROC
   18857 if test -n "$XSLTPROC"; then
   18858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
   18859 $as_echo "$XSLTPROC" >&6; }
   18860 else
   18861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18862 $as_echo "no" >&6; }
   18863 fi
   18864 
   18865 
   18866 
   18867 
   18868 #
   18869 # Look for xmllint (libxml2)
   18870 #
   18871 
   18872 # Extract the first word of "xmllint", so it can be a program name with args.
   18873 set dummy xmllint; ac_word=$2
   18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18875 $as_echo_n "checking for $ac_word... " >&6; }
   18876 if ${ac_cv_path_XMLLINT+:} false; then :
   18877   $as_echo_n "(cached) " >&6
   18878 else
   18879   case $XMLLINT in
   18880   [\\/]* | ?:[\\/]*)
   18881   ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
   18882   ;;
   18883   *)
   18884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18885 for as_dir in $PATH
   18886 do
   18887   IFS=$as_save_IFS
   18888   test -z "$as_dir" && as_dir=.
   18889     for ac_exec_ext in '' $ac_executable_extensions; do
   18890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18891     ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
   18892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18893     break 2
   18894   fi
   18895 done
   18896   done
   18897 IFS=$as_save_IFS
   18898 
   18899   test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
   18900   ;;
   18901 esac
   18902 fi
   18903 XMLLINT=$ac_cv_path_XMLLINT
   18904 if test -n "$XMLLINT"; then
   18905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
   18906 $as_echo "$XMLLINT" >&6; }
   18907 else
   18908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18909 $as_echo "no" >&6; }
   18910 fi
   18911 
   18912 
   18913 
   18914 
   18915 #
   18916 # Look for Doxygen
   18917 #
   18918 
   18919 # Extract the first word of "doxygen", so it can be a program name with args.
   18920 set dummy doxygen; ac_word=$2
   18921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18922 $as_echo_n "checking for $ac_word... " >&6; }
   18923 if ${ac_cv_path_DOXYGEN+:} false; then :
   18924   $as_echo_n "(cached) " >&6
   18925 else
   18926   case $DOXYGEN in
   18927   [\\/]* | ?:[\\/]*)
   18928   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
   18929   ;;
   18930   *)
   18931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18932 for as_dir in $PATH
   18933 do
   18934   IFS=$as_save_IFS
   18935   test -z "$as_dir" && as_dir=.
   18936     for ac_exec_ext in '' $ac_executable_extensions; do
   18937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18938     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   18939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18940     break 2
   18941   fi
   18942 done
   18943   done
   18944 IFS=$as_save_IFS
   18945 
   18946   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
   18947   ;;
   18948 esac
   18949 fi
   18950 DOXYGEN=$ac_cv_path_DOXYGEN
   18951 if test -n "$DOXYGEN"; then
   18952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
   18953 $as_echo "$DOXYGEN" >&6; }
   18954 else
   18955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18956 $as_echo "no" >&6; }
   18957 fi
   18958 
   18959 
   18960 
   18961 
   18962 #
   18963 # Look for curl
   18964 #
   18965 
   18966 # Extract the first word of "curl", so it can be a program name with args.
   18967 set dummy curl; ac_word=$2
   18968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18969 $as_echo_n "checking for $ac_word... " >&6; }
   18970 if ${ac_cv_path_CURL+:} false; then :
   18971   $as_echo_n "(cached) " >&6
   18972 else
   18973   case $CURL in
   18974   [\\/]* | ?:[\\/]*)
   18975   ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
   18976   ;;
   18977   *)
   18978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18979 for as_dir in $PATH
   18980 do
   18981   IFS=$as_save_IFS
   18982   test -z "$as_dir" && as_dir=.
   18983     for ac_exec_ext in '' $ac_executable_extensions; do
   18984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18985     ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
   18986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18987     break 2
   18988   fi
   18989 done
   18990   done
   18991 IFS=$as_save_IFS
   18992 
   18993   test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
   18994   ;;
   18995 esac
   18996 fi
   18997 CURL=$ac_cv_path_CURL
   18998 if test -n "$CURL"; then
   18999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
   19000 $as_echo "$CURL" >&6; }
   19001 else
   19002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19003 $as_echo "no" >&6; }
   19004 fi
   19005 
   19006 
   19007 
   19008 
   19009 #
   19010 # Subroutine for searching for an ordinary file (e.g., a stylesheet)
   19011 # in a number of directories:
   19012 #
   19013 #   NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
   19014 #
   19015 # If the file FILENAME is found in one of the DIRECTORIES, the shell
   19016 # variable VARIABLE is defined to its absolute pathname.  Otherwise,
   19017 # it is set to FILENAME, with no directory prefix (that's not terribly
   19018 # useful, but looks less confusing in substitutions than leaving it
   19019 # empty).  The variable VARIABLE will be substituted into output files.
   19020 #
   19021 
   19022 
   19023 
   19024 #
   19025 # Look for Docbook-XSL stylesheets.  Location probably varies by system.
   19026 # If it's not explicitly specified, guess where it might be found, based on
   19027 # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
   19028 # of at the moment).
   19029 #
   19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5
   19031 $as_echo_n "checking for Docbook-XSL path... " >&6; }
   19032 
   19033 # Check whether --with-docbook-xsl was given.
   19034 if test "${with_docbook_xsl+set}" = set; then :
   19035   withval=$with_docbook_xsl; docbook_path="$withval"
   19036 else
   19037   docbook_path="auto"
   19038 fi
   19039 
   19040 case "$docbook_path" in
   19041 auto)
   19042 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
   19043 $as_echo "auto" >&6; }
   19044 	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"
   19045 	;;
   19046 *)
   19047 	docbook_xsl_trees="$withval"
   19048 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
   19049 $as_echo "$docbook_xsl_trees" >&6; }
   19050 	;;
   19051 esac
   19052 
   19053 #
   19054 # Look for stylesheets we need.
   19055 #
   19056 
   19057 
   19058 XSLT_DOCBOOK_STYLE_HTML=""
   19059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5
   19060 $as_echo_n "checking for html/docbook.xsl... " >&6; }
   19061 for d in $docbook_xsl_trees
   19062 do
   19063 	f=$d/html/docbook.xsl
   19064 	if test -f $f
   19065 	then
   19066 		XSLT_DOCBOOK_STYLE_HTML=$f
   19067 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19068 $as_echo "$f" >&6; }
   19069 		break
   19070 	fi
   19071 done
   19072 if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
   19073 then
   19074 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19075 $as_echo "\"not found\"" >&6; };
   19076 	XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
   19077 fi
   19078 
   19079 
   19080 
   19081 XSLT_DOCBOOK_STYLE_XHTML=""
   19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5
   19083 $as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
   19084 for d in $docbook_xsl_trees
   19085 do
   19086 	f=$d/xhtml/docbook.xsl
   19087 	if test -f $f
   19088 	then
   19089 		XSLT_DOCBOOK_STYLE_XHTML=$f
   19090 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19091 $as_echo "$f" >&6; }
   19092 		break
   19093 	fi
   19094 done
   19095 if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
   19096 then
   19097 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19098 $as_echo "\"not found\"" >&6; };
   19099 	XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
   19100 fi
   19101 
   19102 
   19103 
   19104 XSLT_DOCBOOK_STYLE_MAN=""
   19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5
   19106 $as_echo_n "checking for manpages/docbook.xsl... " >&6; }
   19107 for d in $docbook_xsl_trees
   19108 do
   19109 	f=$d/manpages/docbook.xsl
   19110 	if test -f $f
   19111 	then
   19112 		XSLT_DOCBOOK_STYLE_MAN=$f
   19113 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19114 $as_echo "$f" >&6; }
   19115 		break
   19116 	fi
   19117 done
   19118 if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
   19119 then
   19120 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19121 $as_echo "\"not found\"" >&6; };
   19122 	XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
   19123 fi
   19124 
   19125 
   19126 
   19127 XSLT_DOCBOOK_CHUNK_HTML=""
   19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5
   19129 $as_echo_n "checking for html/chunk.xsl... " >&6; }
   19130 for d in $docbook_xsl_trees
   19131 do
   19132 	f=$d/html/chunk.xsl
   19133 	if test -f $f
   19134 	then
   19135 		XSLT_DOCBOOK_CHUNK_HTML=$f
   19136 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19137 $as_echo "$f" >&6; }
   19138 		break
   19139 	fi
   19140 done
   19141 if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
   19142 then
   19143 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19144 $as_echo "\"not found\"" >&6; };
   19145 	XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
   19146 fi
   19147 
   19148 
   19149 
   19150 XSLT_DOCBOOK_CHUNK_XHTML=""
   19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5
   19152 $as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
   19153 for d in $docbook_xsl_trees
   19154 do
   19155 	f=$d/xhtml/chunk.xsl
   19156 	if test -f $f
   19157 	then
   19158 		XSLT_DOCBOOK_CHUNK_XHTML=$f
   19159 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19160 $as_echo "$f" >&6; }
   19161 		break
   19162 	fi
   19163 done
   19164 if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
   19165 then
   19166 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19167 $as_echo "\"not found\"" >&6; };
   19168 	XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
   19169 fi
   19170 
   19171 
   19172 
   19173 XSLT_DOCBOOK_CHUNKTOC_HTML=""
   19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5
   19175 $as_echo_n "checking for html/chunktoc.xsl... " >&6; }
   19176 for d in $docbook_xsl_trees
   19177 do
   19178 	f=$d/html/chunktoc.xsl
   19179 	if test -f $f
   19180 	then
   19181 		XSLT_DOCBOOK_CHUNKTOC_HTML=$f
   19182 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19183 $as_echo "$f" >&6; }
   19184 		break
   19185 	fi
   19186 done
   19187 if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
   19188 then
   19189 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19190 $as_echo "\"not found\"" >&6; };
   19191 	XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
   19192 fi
   19193 
   19194 
   19195 
   19196 XSLT_DOCBOOK_CHUNKTOC_XHTML=""
   19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5
   19198 $as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
   19199 for d in $docbook_xsl_trees
   19200 do
   19201 	f=$d/xhtml/chunktoc.xsl
   19202 	if test -f $f
   19203 	then
   19204 		XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
   19205 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19206 $as_echo "$f" >&6; }
   19207 		break
   19208 	fi
   19209 done
   19210 if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
   19211 then
   19212 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19213 $as_echo "\"not found\"" >&6; };
   19214 	XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
   19215 fi
   19216 
   19217 
   19218 
   19219 XSLT_DOCBOOK_MAKETOC_HTML=""
   19220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5
   19221 $as_echo_n "checking for html/maketoc.xsl... " >&6; }
   19222 for d in $docbook_xsl_trees
   19223 do
   19224 	f=$d/html/maketoc.xsl
   19225 	if test -f $f
   19226 	then
   19227 		XSLT_DOCBOOK_MAKETOC_HTML=$f
   19228 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19229 $as_echo "$f" >&6; }
   19230 		break
   19231 	fi
   19232 done
   19233 if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
   19234 then
   19235 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19236 $as_echo "\"not found\"" >&6; };
   19237 	XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
   19238 fi
   19239 
   19240 
   19241 
   19242 XSLT_DOCBOOK_MAKETOC_XHTML=""
   19243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5
   19244 $as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
   19245 for d in $docbook_xsl_trees
   19246 do
   19247 	f=$d/xhtml/maketoc.xsl
   19248 	if test -f $f
   19249 	then
   19250 		XSLT_DOCBOOK_MAKETOC_XHTML=$f
   19251 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19252 $as_echo "$f" >&6; }
   19253 		break
   19254 	fi
   19255 done
   19256 if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
   19257 then
   19258 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19259 $as_echo "\"not found\"" >&6; };
   19260 	XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
   19261 fi
   19262 
   19263 
   19264 
   19265 #
   19266 # Same dance for dblatex
   19267 #
   19268 dblatex_xsl_trees="/usr/local/share/xml/docbook/stylesheet/dblatex /usr/pkg/share/xml/docbook/stylesheet/dblatex /usr/share/xml/docbook/stylesheet/dblatex"
   19269 
   19270 XSLT_DBLATEX_STYLE=""
   19271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsl/docbook.xsl" >&5
   19272 $as_echo_n "checking for xsl/docbook.xsl... " >&6; }
   19273 for d in $dblatex_xsl_trees
   19274 do
   19275 	f=$d/xsl/docbook.xsl
   19276 	if test -f $f
   19277 	then
   19278 		XSLT_DBLATEX_STYLE=$f
   19279 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19280 $as_echo "$f" >&6; }
   19281 		break
   19282 	fi
   19283 done
   19284 if test "X$XSLT_DBLATEX_STYLE" = "X"
   19285 then
   19286 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19287 $as_echo "\"not found\"" >&6; };
   19288 	XSLT_DBLATEX_STYLE=xsl/docbook.xsl
   19289 fi
   19290 
   19291 
   19292 
   19293 XSLT_DBLATEX_FASTBOOK=""
   19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsl/latex_book_fast.xsl" >&5
   19295 $as_echo_n "checking for xsl/latex_book_fast.xsl... " >&6; }
   19296 for d in $dblatex_xsl_trees
   19297 do
   19298 	f=$d/xsl/latex_book_fast.xsl
   19299 	if test -f $f
   19300 	then
   19301 		XSLT_DBLATEX_FASTBOOK=$f
   19302 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   19303 $as_echo "$f" >&6; }
   19304 		break
   19305 	fi
   19306 done
   19307 if test "X$XSLT_DBLATEX_FASTBOOK" = "X"
   19308 then
   19309 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   19310 $as_echo "\"not found\"" >&6; };
   19311 	XSLT_DBLATEX_FASTBOOK=xsl/latex_book_fast.xsl
   19312 fi
   19313 
   19314 
   19315 
   19316 #
   19317 # IDN support using libidn2
   19318 #
   19319 
   19320 LIBIDN2_CFLAGS=
   19321 LIBIDN2_LDFLAGS=
   19322 LIBIDN2_LIBS=
   19323 
   19324 # Check whether --with-libidn2 was given.
   19325 if test "${with_libidn2+set}" = set; then :
   19326   withval=$with_libidn2; with_libidn2="$withval"
   19327 else
   19328   with_libidn2="no"
   19329 fi
   19330 
   19331 case $with_libidn2 in #(
   19332   yes) :
   19333 
   19334 pkg_failed=no
   19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
   19336 $as_echo_n "checking for libidn2... " >&6; }
   19337 
   19338 if test -n "$LIBIDN2_CFLAGS"; then
   19339     pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
   19340  elif test -n "$PKG_CONFIG"; then
   19341     if test -n "$PKG_CONFIG" && \
   19342     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   19343   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   19344   ac_status=$?
   19345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19346   test $ac_status = 0; }; then
   19347   pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
   19348 		      test "x$?" != "x0" && pkg_failed=yes
   19349 else
   19350   pkg_failed=yes
   19351 fi
   19352  else
   19353     pkg_failed=untried
   19354 fi
   19355 if test -n "$LIBIDN2_LIBS"; then
   19356     pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
   19357  elif test -n "$PKG_CONFIG"; then
   19358     if test -n "$PKG_CONFIG" && \
   19359     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   19360   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   19361   ac_status=$?
   19362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19363   test $ac_status = 0; }; then
   19364   pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
   19365 		      test "x$?" != "x0" && pkg_failed=yes
   19366 else
   19367   pkg_failed=yes
   19368 fi
   19369  else
   19370     pkg_failed=untried
   19371 fi
   19372 
   19373 
   19374 
   19375 if test $pkg_failed = yes; then
   19376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19377 $as_echo "no" >&6; }
   19378 
   19379 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   19380         _pkg_short_errors_supported=yes
   19381 else
   19382         _pkg_short_errors_supported=no
   19383 fi
   19384         if test $_pkg_short_errors_supported = yes; then
   19385 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
   19386         else
   19387 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
   19388         fi
   19389 	# Put the nasty error message in config.log where it belongs
   19390 	echo "$LIBIDN2_PKG_ERRORS" >&5
   19391 
   19392 	as_fn_error $? "Package requirements (libidn2) were not met:
   19393 
   19394 $LIBIDN2_PKG_ERRORS
   19395 
   19396 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   19397 installed software in a non-standard prefix.
   19398 
   19399 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   19400 and LIBIDN2_LIBS to avoid the need to call pkg-config.
   19401 See the pkg-config man page for more details." "$LINENO" 5
   19402 elif test $pkg_failed = untried; then
   19403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19404 $as_echo "no" >&6; }
   19405 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19407 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   19408 is in your PATH or set the PKG_CONFIG environment variable to the full
   19409 path to pkg-config.
   19410 
   19411 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   19412 and LIBIDN2_LIBS to avoid the need to call pkg-config.
   19413 See the pkg-config man page for more details.
   19414 
   19415 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   19416 See \`config.log' for more details" "$LINENO" 5; }
   19417 else
   19418 	LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
   19419 	LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
   19420         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19421 $as_echo "yes" >&6; }
   19422 
   19423 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   19424 
   19425 fi ;; #(
   19426   no) :
   19427      ;; #(
   19428   *) :
   19429     save_CFLAGS="$CFLAGS"
   19430 		 save_CPPFLAGS="$CPPFLAGS"
   19431 		 save_LDFLAGS="$LDFLAGS"
   19432 		 save_LIBS="$LIBS"
   19433 		 LIBIDN2_CFLAGS="-I$with_libidn2/include"
   19434 		 LIBIDN2_LDFLAGS="-L$with_libidn2/lib"
   19435 		 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
   19436 		 CPPFLAGS="$LIBIDN2_CFLAGS $CPPFLAGS"
   19437 		 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
   19438 		 for ac_header in idn2.h
   19439 do :
   19440   ac_fn_c_check_header_mongrel "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
   19441 if test "x$ac_cv_header_idn2_h" = xyes; then :
   19442   cat >>confdefs.h <<_ACEOF
   19443 #define HAVE_IDN2_H 1
   19444 _ACEOF
   19445 
   19446 else
   19447   as_fn_error $? "idn2.h not found" "$LINENO" 5
   19448 fi
   19449 
   19450 done
   19451 
   19452 		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
   19453 $as_echo_n "checking for library containing idn2_to_ascii_lz... " >&6; }
   19454 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19455   $as_echo_n "(cached) " >&6
   19456 else
   19457   ac_func_search_save_LIBS=$LIBS
   19458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19459 /* end confdefs.h.  */
   19460 
   19461 /* Override any GCC internal prototype to avoid an error.
   19462    Use char because int might match the return type of a GCC
   19463    builtin and then its argument prototype would still apply.  */
   19464 #ifdef __cplusplus
   19465 extern "C"
   19466 #endif
   19467 char idn2_to_ascii_lz ();
   19468 int
   19469 main ()
   19470 {
   19471 return idn2_to_ascii_lz ();
   19472   ;
   19473   return 0;
   19474 }
   19475 _ACEOF
   19476 for ac_lib in '' idn2; do
   19477   if test -z "$ac_lib"; then
   19478     ac_res="none required"
   19479   else
   19480     ac_res=-l$ac_lib
   19481     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19482   fi
   19483   if ac_fn_c_try_link "$LINENO"; then :
   19484   ac_cv_search_idn2_to_ascii_lz=$ac_res
   19485 fi
   19486 rm -f core conftest.err conftest.$ac_objext \
   19487     conftest$ac_exeext
   19488   if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19489   break
   19490 fi
   19491 done
   19492 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   19493 
   19494 else
   19495   ac_cv_search_idn2_to_ascii_lz=no
   19496 fi
   19497 rm conftest.$ac_ext
   19498 LIBS=$ac_func_search_save_LIBS
   19499 fi
   19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
   19501 $as_echo "$ac_cv_search_idn2_to_ascii_lz" >&6; }
   19502 ac_res=$ac_cv_search_idn2_to_ascii_lz
   19503 if test "$ac_res" != no; then :
   19504   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19505   LIBIDN2_LIBS="$ac_cv_search_idn2_to_ascii_lz"
   19506 
   19507 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   19508 
   19509 else
   19510   as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
   19511 fi
   19512 
   19513 		 CFLAGS="$save_CFLAGS"
   19514 		 CPPFLAGS="$save_CPPFLAGS"
   19515 		 LDFLAGS="$save_LDFLAGS"
   19516 		 LIBS="$save_LIBS" ;; #(
   19517   *) :
   19518      ;;
   19519 esac
   19520 
   19521 
   19522 
   19523 
   19524 #
   19525 # Check whether to build with cmocka unit testing framework
   19526 #
   19527 
   19528 
   19529 # Check whether --with-cmocka was given.
   19530 if test "${with_cmocka+set}" = set; then :
   19531   withval=$with_cmocka;
   19532 else
   19533   with_cmocka=detect
   19534 fi
   19535 
   19536 
   19537 case $with_cmocka in #(
   19538   no) :
   19539      ;; #(
   19540   detect) :
   19541 
   19542 pkg_failed=no
   19543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
   19544 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
   19545 
   19546 if test -n "$CMOCKA_CFLAGS"; then
   19547     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   19548  elif test -n "$PKG_CONFIG"; then
   19549     if test -n "$PKG_CONFIG" && \
   19550     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19551   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19552   ac_status=$?
   19553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19554   test $ac_status = 0; }; then
   19555   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
   19556 		      test "x$?" != "x0" && pkg_failed=yes
   19557 else
   19558   pkg_failed=yes
   19559 fi
   19560  else
   19561     pkg_failed=untried
   19562 fi
   19563 if test -n "$CMOCKA_LIBS"; then
   19564     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   19565  elif test -n "$PKG_CONFIG"; then
   19566     if test -n "$PKG_CONFIG" && \
   19567     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19568   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19569   ac_status=$?
   19570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19571   test $ac_status = 0; }; then
   19572   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
   19573 		      test "x$?" != "x0" && pkg_failed=yes
   19574 else
   19575   pkg_failed=yes
   19576 fi
   19577  else
   19578     pkg_failed=untried
   19579 fi
   19580 
   19581 
   19582 
   19583 if test $pkg_failed = yes; then
   19584         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19585 $as_echo "no" >&6; }
   19586 
   19587 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   19588         _pkg_short_errors_supported=yes
   19589 else
   19590         _pkg_short_errors_supported=no
   19591 fi
   19592         if test $_pkg_short_errors_supported = yes; then
   19593 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19594         else
   19595 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19596         fi
   19597 	# Put the nasty error message in config.log where it belongs
   19598 	echo "$CMOCKA_PKG_ERRORS" >&5
   19599 
   19600 	with_cmocka=no
   19601 elif test $pkg_failed = untried; then
   19602         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19603 $as_echo "no" >&6; }
   19604 	with_cmocka=no
   19605 else
   19606 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   19607 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   19608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19609 $as_echo "yes" >&6; }
   19610 
   19611 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   19612 
   19613 				     UNITTESTS=tests
   19614 fi ;; #(
   19615   yes) :
   19616 
   19617 pkg_failed=no
   19618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
   19619 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
   19620 
   19621 if test -n "$CMOCKA_CFLAGS"; then
   19622     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   19623  elif test -n "$PKG_CONFIG"; then
   19624     if test -n "$PKG_CONFIG" && \
   19625     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19626   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19627   ac_status=$?
   19628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19629   test $ac_status = 0; }; then
   19630   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
   19631 		      test "x$?" != "x0" && pkg_failed=yes
   19632 else
   19633   pkg_failed=yes
   19634 fi
   19635  else
   19636     pkg_failed=untried
   19637 fi
   19638 if test -n "$CMOCKA_LIBS"; then
   19639     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   19640  elif test -n "$PKG_CONFIG"; then
   19641     if test -n "$PKG_CONFIG" && \
   19642     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   19643   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   19644   ac_status=$?
   19645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19646   test $ac_status = 0; }; then
   19647   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
   19648 		      test "x$?" != "x0" && pkg_failed=yes
   19649 else
   19650   pkg_failed=yes
   19651 fi
   19652  else
   19653     pkg_failed=untried
   19654 fi
   19655 
   19656 
   19657 
   19658 if test $pkg_failed = yes; then
   19659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19660 $as_echo "no" >&6; }
   19661 
   19662 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   19663         _pkg_short_errors_supported=yes
   19664 else
   19665         _pkg_short_errors_supported=no
   19666 fi
   19667         if test $_pkg_short_errors_supported = yes; then
   19668 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19669         else
   19670 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   19671         fi
   19672 	# Put the nasty error message in config.log where it belongs
   19673 	echo "$CMOCKA_PKG_ERRORS" >&5
   19674 
   19675 	as_fn_error $? "Package requirements (cmocka >= 1.0.0) were not met:
   19676 
   19677 $CMOCKA_PKG_ERRORS
   19678 
   19679 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   19680 installed software in a non-standard prefix.
   19681 
   19682 Alternatively, you may set the environment variables CMOCKA_CFLAGS
   19683 and CMOCKA_LIBS to avoid the need to call pkg-config.
   19684 See the pkg-config man page for more details." "$LINENO" 5
   19685 elif test $pkg_failed = untried; then
   19686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19687 $as_echo "no" >&6; }
   19688 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19690 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   19691 is in your PATH or set the PKG_CONFIG environment variable to the full
   19692 path to pkg-config.
   19693 
   19694 Alternatively, you may set the environment variables CMOCKA_CFLAGS
   19695 and CMOCKA_LIBS to avoid the need to call pkg-config.
   19696 See the pkg-config man page for more details.
   19697 
   19698 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   19699 See \`config.log' for more details" "$LINENO" 5; }
   19700 else
   19701 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   19702 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   19703         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19704 $as_echo "yes" >&6; }
   19705 
   19706 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   19707 
   19708 fi
   19709 	                          UNITTESTS=tests ;; #(
   19710   *) :
   19711     as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5
   19712         ;;
   19713 esac
   19714 
   19715 
   19716 
   19717 
   19718 #
   19719 # Check for kyua execution engine if CMocka was requested
   19720 # and bail out if execution engine was not found
   19721 #
   19722 
   19723 if test "$with_cmocka" != "no"; then :
   19724   for ac_prog in kyua
   19725 do
   19726   # Extract the first word of "$ac_prog", so it can be a program name with args.
   19727 set dummy $ac_prog; ac_word=$2
   19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19729 $as_echo_n "checking for $ac_word... " >&6; }
   19730 if ${ac_cv_path_KYUA+:} false; then :
   19731   $as_echo_n "(cached) " >&6
   19732 else
   19733   case $KYUA in
   19734   [\\/]* | ?:[\\/]*)
   19735   ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
   19736   ;;
   19737   *)
   19738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19739 for as_dir in $PATH
   19740 do
   19741   IFS=$as_save_IFS
   19742   test -z "$as_dir" && as_dir=.
   19743     for ac_exec_ext in '' $ac_executable_extensions; do
   19744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19745     ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
   19746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19747     break 2
   19748   fi
   19749 done
   19750   done
   19751 IFS=$as_save_IFS
   19752 
   19753   ;;
   19754 esac
   19755 fi
   19756 KYUA=$ac_cv_path_KYUA
   19757 if test -n "$KYUA"; then
   19758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
   19759 $as_echo "$KYUA" >&6; }
   19760 else
   19761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19762 $as_echo "no" >&6; }
   19763 fi
   19764 
   19765 
   19766   test -n "$KYUA" && break
   19767 done
   19768 
   19769        if test -z "$KYUA"; then :
   19770   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
   19771 $as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
   19772 fi
   19773 fi
   19774 
   19775 
   19776 
   19777 #
   19778 # Check for -Wl,--wrap= support
   19779 #
   19780 
   19781 save_LDFLAGS=$LDFLAGS
   19782 LDFLAGS="--wrap=printf"
   19783 
   19784 LD_WRAP_TESTS=false
   19785 enable_ld_wrap=no
   19786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for --wrap option" >&5
   19787 $as_echo_n "checking for linker support for --wrap option... " >&6; }
   19788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19789 /* end confdefs.h.  */
   19790 #include <stdio.h>
   19791 int
   19792 main ()
   19793 {
   19794 __wrap_printf("success"); return (0);
   19795   ;
   19796   return 0;
   19797 }
   19798 _ACEOF
   19799 if ac_fn_c_try_link "$LINENO"; then :
   19800   enable_ld_wrap=yes
   19801      LD_WRAP_TESTS=true
   19802 
   19803 $as_echo "#define LD_WRAP 1" >>confdefs.h
   19804 
   19805      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19806 $as_echo "yes" >&6; }
   19807 else
   19808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19809 $as_echo "no" >&6; }
   19810 fi
   19811 rm -f core conftest.err conftest.$ac_objext \
   19812     conftest$ac_exeext conftest.$ac_ext
   19813 # AM_CONDITIONAL([LD_WRAP], [test $enable_ld_wrap = yes])
   19814 
   19815 
   19816 LDFLAGS=$save_LDFLAGS
   19817 
   19818 #
   19819 # Check for i18n
   19820 #
   19821 for ac_header in locale.h
   19822 do :
   19823   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
   19824 if test "x$ac_cv_header_locale_h" = xyes; then :
   19825   cat >>confdefs.h <<_ACEOF
   19826 #define HAVE_LOCALE_H 1
   19827 _ACEOF
   19828 
   19829 fi
   19830 
   19831 done
   19832 
   19833 for ac_func in setlocale
   19834 do :
   19835   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
   19836 if test "x$ac_cv_func_setlocale" = xyes; then :
   19837   cat >>confdefs.h <<_ACEOF
   19838 #define HAVE_SETLOCALE 1
   19839 _ACEOF
   19840 
   19841 fi
   19842 done
   19843 
   19844 
   19845 #
   19846 # was --with-tuning specified?
   19847 #
   19848 
   19849 # Check whether --with-tuning was given.
   19850 if test "${with_tuning+set}" = set; then :
   19851   withval=$with_tuning; use_tuning="$withval"
   19852 else
   19853   use_tuning="no"
   19854 fi
   19855 
   19856 
   19857 case "$use_tuning" in
   19858 	large)
   19859 
   19860 $as_echo "#define TUNE_LARGE 1" >>confdefs.h
   19861 
   19862 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using large-system tuning" >&5
   19863 $as_echo "using large-system tuning" >&6; }
   19864 		;;
   19865 	no|default)
   19866 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using default tuning" >&5
   19867 $as_echo "using default tuning" >&6; }
   19868 		;;
   19869 	yes|*)
   19870 		as_fn_error $? "You must specify \"large\" or \"default\" for --with-tuning." "$LINENO" 5
   19871 		;;
   19872 esac
   19873 
   19874 #
   19875 # was --enable-querytrace specified?
   19876 #
   19877 # Check whether --enable-querytrace was given.
   19878 if test "${enable_querytrace+set}" = set; then :
   19879   enableval=$enable_querytrace; want_querytrace="$enableval"
   19880 else
   19881   want_querytrace="no"
   19882 fi
   19883 
   19884 
   19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
   19886 $as_echo_n "checking whether to enable query trace logging... " >&6; }
   19887 case "$want_querytrace" in
   19888 yes)
   19889 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19890 $as_echo "yes" >&6; }
   19891 
   19892 $as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
   19893 
   19894 	;;
   19895 no)
   19896 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19897 $as_echo "no" >&6; }
   19898 	;;
   19899 *)
   19900 	as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
   19901 	;;
   19902 esac
   19903 
   19904 #
   19905 # Was --disable-auto-validation specified?
   19906 #
   19907 validation_default=auto
   19908 # Check whether --enable-auto-validation was given.
   19909 if test "${enable_auto_validation+set}" = set; then :
   19910   enableval=$enable_auto_validation; :
   19911 else
   19912   enable_auto_validation=yes
   19913 fi
   19914 
   19915 if test "$enable_auto_validation" = "no"; then :
   19916   validation_default=yes
   19917 fi
   19918 
   19919 cat >>confdefs.h <<_ACEOF
   19920 #define VALIDATION_DEFAULT "$validation_default"
   19921 _ACEOF
   19922 
   19923 
   19924 #
   19925 # Substitutions
   19926 #
   19927 
   19928 BIND9_TOP_BUILDDIR=`pwd`
   19929 
   19930 
   19931 
   19932 
   19933 
   19934 
   19935 
   19936 
   19937 if test "X$srcdir" != "X"; then
   19938 	BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
   19939 	BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
   19940 	BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
   19941 	BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
   19942 	BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
   19943 	BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
   19944 	BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
   19945 else
   19946 	BIND9_ISC_BUILDINCLUDE=""
   19947 	BIND9_ISCCC_BUILDINCLUDE=""
   19948 	BIND9_ISCCFG_BUILDINCLUDE=""
   19949 	BIND9_DNS_BUILDINCLUDE=""
   19950 	BIND9_NS_BUILDINCLUDE=""
   19951 	BIND9_BIND9_BUILDINCLUDE=""
   19952 	BIND9_IRS_BUILDINCLUDE=""
   19953 fi
   19954 
   19955 
   19956 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
   19957 
   19958 
   19959 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
   19960 
   19961 . "$srcdir/version"
   19962 BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
   19963 
   19964 BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
   19965 
   19966 BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   19967 
   19968 BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
   19969 
   19970 BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
   19971 
   19972 BIND9_VERSIONSHORT="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   19973 
   19974 
   19975 BIND9_SRCID="SRCID=unset_id"
   19976 if test -f "${srcdir}/srcid"; then
   19977 	. "${srcdir}/srcid"
   19978 	BIND9_SRCID="SRCID=$SRCID"
   19979 elif test -d "${srcdir}/.git"; then
   19980 	BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
   19981 fi
   19982 
   19983 
   19984 
   19985 if test -z "$ac_configure_args"; then
   19986 	BIND9_CONFIGARGS="defaults"
   19987 else
   19988 	for a in $ac_configure_args
   19989 	do
   19990 		BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
   19991 	done
   19992 fi
   19993 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
   19994 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
   19995 
   19996 
   19997 
   19998 LIBISC_API="$srcdir/lib/isc/api"
   19999 
   20000 
   20001 LIBISCCC_API="$srcdir/lib/isccc/api"
   20002 
   20003 
   20004 LIBISCCFG_API="$srcdir/lib/isccfg/api"
   20005 
   20006 
   20007 LIBDNS_API="$srcdir/lib/dns/api"
   20008 
   20009 
   20010 LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
   20011 
   20012 
   20013 LIBBIND9_API="$srcdir/lib/bind9/api"
   20014 
   20015 
   20016 LIBIRS_API="$srcdir/lib/irs/api"
   20017 
   20018 
   20019 LIBNS_API="$srcdir/lib/ns/api"
   20020 
   20021 #
   20022 # Configure any DLZ drivers.
   20023 #
   20024 # If config.dlz.in selects one or more DLZ drivers, it will set
   20025 # CONTRIB_DLZ to a non-empty value, which will be our clue to
   20026 # build DLZ drivers in contrib.
   20027 #
   20028 # This section has to come after the libtool stuff because it needs to
   20029 # know how to name the driver object files.
   20030 #
   20031 
   20032 CONTRIB_DLZ=""
   20033 DLZ_DRIVER_INCLUDES=""
   20034 DLZ_DRIVER_LIBS=""
   20035 DLZ_DRIVER_SRCS=""
   20036 DLZ_DRIVER_OBJS=""
   20037 DLZ_SYSTEM_TEST=""
   20038 DLZ_DRIVER_MYSQL_INCLUDES=""
   20039 DLZ_DRIVER_MYSQL_LIBS=""
   20040 
   20041 #
   20042 # Configure support for building a shared library object
   20043 #
   20044 # Even when libtool is available it can't always be relied upon
   20045 # to build an object that can be dlopen()'ed, but this is necessary
   20046 # for building the dlzexternal system test, so we'll try it the
   20047 # old-fashioned way.
   20048 #
   20049 SO="so"
   20050 SO_CFLAGS=""
   20051 SO_LDFLAGS=""
   20052 SO_LD=""
   20053 SO_TARGETS=""
   20054 SO_STRIP="cat"
   20055 
   20056 
   20057 # Check whether --with-dlopen was given.
   20058 if test "${with_dlopen+set}" = set; then :
   20059   withval=$with_dlopen;
   20060 else
   20061   with_dlopen="auto"
   20062 fi
   20063 
   20064 
   20065 
   20066 #
   20067 # If PIC is disabled, dlopen must also be
   20068 #
   20069 if test "$pic_mode" = "no"; then :
   20070   case $with_dlopen in #(
   20071   auto) :
   20072     with_dlopen="no" ;; #(
   20073   yes) :
   20074     as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #(
   20075   *) :
   20076      ;;
   20077 esac
   20078 fi
   20079 
   20080 case $with_dlopen in #(
   20081   auto|yes) :
   20082 
   20083 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   20084 $as_echo_n "checking for library containing dlopen... " >&6; }
   20085 if ${ac_cv_search_dlopen+:} false; then :
   20086   $as_echo_n "(cached) " >&6
   20087 else
   20088   ac_func_search_save_LIBS=$LIBS
   20089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20090 /* end confdefs.h.  */
   20091 
   20092 /* Override any GCC internal prototype to avoid an error.
   20093    Use char because int might match the return type of a GCC
   20094    builtin and then its argument prototype would still apply.  */
   20095 #ifdef __cplusplus
   20096 extern "C"
   20097 #endif
   20098 char dlopen ();
   20099 int
   20100 main ()
   20101 {
   20102 return dlopen ();
   20103   ;
   20104   return 0;
   20105 }
   20106 _ACEOF
   20107 for ac_lib in '' dl; do
   20108   if test -z "$ac_lib"; then
   20109     ac_res="none required"
   20110   else
   20111     ac_res=-l$ac_lib
   20112     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20113   fi
   20114   if ac_fn_c_try_link "$LINENO"; then :
   20115   ac_cv_search_dlopen=$ac_res
   20116 fi
   20117 rm -f core conftest.err conftest.$ac_objext \
   20118     conftest$ac_exeext
   20119   if ${ac_cv_search_dlopen+:} false; then :
   20120   break
   20121 fi
   20122 done
   20123 if ${ac_cv_search_dlopen+:} false; then :
   20124 
   20125 else
   20126   ac_cv_search_dlopen=no
   20127 fi
   20128 rm conftest.$ac_ext
   20129 LIBS=$ac_func_search_save_LIBS
   20130 fi
   20131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   20132 $as_echo "$ac_cv_search_dlopen" >&6; }
   20133 ac_res=$ac_cv_search_dlopen
   20134 if test "$ac_res" != no; then :
   20135   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20136 
   20137 fi
   20138 
   20139 	  for ac_func in dlopen dlclose dlsym
   20140 do :
   20141   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20142 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   20143 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   20144   cat >>confdefs.h <<_ACEOF
   20145 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20146 _ACEOF
   20147  with_dlopen="yes"
   20148 else
   20149   with_dlopen="no"
   20150 fi
   20151 done
   20152 
   20153 	 ;; #(
   20154   *) :
   20155      ;;
   20156 esac
   20157 
   20158 if test "$with_dlopen" = "yes"; then :
   20159   case $host in #(
   20160   *-linux*|*-gnu*) :
   20161 
   20162 		 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
   20163 		 SO_CFLAGS="-fPIC"
   20164 		 SO_LDFLAGS=""
   20165 		 if test "$use_libtool" = "yes"; then :
   20166 
   20167 			 SO_LDFLAGS="-Xcompiler -shared"
   20168 			 SO_LD="${CC}"
   20169 
   20170 else
   20171 
   20172 			 SO_LDFLAGS="-shared"
   20173 			 SO_LD="${CC}"
   20174 
   20175 fi
   20176 	        ;; #(
   20177   *-freebsd*|*-openbsd*|*-netbsd*) :
   20178 
   20179 		 LDFLAGS="${LDFLAGS} -Wl,-E"
   20180 		 SO_CFLAGS="-fpic"
   20181 		 if test "$use_libtool" = "yes"; then :
   20182 
   20183 			 SO_LDFLAGS="-Xcompiler -shared"
   20184 			 SO_LD="${CC}"
   20185 
   20186 else
   20187 
   20188 			 SO_LDFLAGS="-shared"
   20189 			 SO_LD="${CC}"
   20190 
   20191 fi
   20192 	        ;; #(
   20193   *-darwin*) :
   20194 
   20195 		 SO_CFLAGS="-fPIC"
   20196                  SO_LD="${CC}"
   20197 		 if test "$use_libtool" = "yes"; then :
   20198 
   20199 			 SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
   20200 
   20201 else
   20202 
   20203 			 SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
   20204 
   20205 fi
   20206 	        ;; #(
   20207   *-solaris*) :
   20208 
   20209 		 SO_CFLAGS="-KPIC"
   20210 		 SO_LDFLAGS="-G -z text"
   20211 		 SO_LD="ld"
   20212 	        ;; #(
   20213   *) :
   20214 
   20215 		 SO_CFLAGS="-fPIC"
   20216 	        ;;
   20217 esac
   20218        if test "$GCC" = "yes"; then :
   20219 
   20220 	       SO_CFLAGS="-fPIC"
   20221 	       if test -z "$SO_LD"; then :
   20222   if test "$use_libtool" = "yes"; then :
   20223 
   20224 			      SO_LDFLAGS="-Xcompiler -shared"
   20225 			      SO_LD="${CC}"
   20226 
   20227 else
   20228 
   20229 			      SO_LDFLAGS="-shared"
   20230 			      SO_LD="${CC}"
   20231 
   20232 fi
   20233 
   20234 fi
   20235 
   20236 fi
   20237        # If we still don't know how to make shared objects, don't make any.
   20238        if test -n "$SO_LD"; then :
   20239   SO_TARGETS="\${SO_TARGETS}"
   20240 
   20241 $as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
   20242 
   20243 
   20244 fi
   20245 
   20246 fi
   20247 
   20248 CFLAGS="$CFLAGS $SO_CFLAGS"
   20249 
   20250 
   20251 
   20252 
   20253 
   20254 
   20255 
   20256 
   20257 #
   20258 # Response policy rewriting using DNS Response Policy Service (DNSRPS)
   20259 # interface.
   20260 #
   20261 # DNSRPS can be compiled into BIND everywhere with a reasonably
   20262 # modern C compiler.  It is enabled on systems with dlopen() and librpz.so.
   20263 #
   20264 dnsrps_avail=yes
   20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
   20266 $as_echo_n "checking for librpz __attribute__s... " >&6; }
   20267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20268 /* end confdefs.h.  */
   20269 
   20270 int
   20271 main ()
   20272 {
   20273 
   20274        extern void f(char *p __attribute__((unused)), ...)
   20275        __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
   20276 
   20277   ;
   20278   return 0;
   20279 }
   20280 _ACEOF
   20281 if ac_fn_c_try_compile "$LINENO"; then :
   20282 
   20283     librpz_have_attr=yes
   20284 
   20285 $as_echo "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
   20286 
   20287     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20288 $as_echo "yes" >&6; }
   20289 
   20290 else
   20291 
   20292     librpz_have_attr=no
   20293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20294 $as_echo "no" >&6; }
   20295 
   20296 fi
   20297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20298 
   20299 # Check whether --enable-dnsrps-dl was given.
   20300 if test "${enable_dnsrps_dl+set}" = set; then :
   20301   enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
   20302 else
   20303   enable_librpz_dl="$with_dlopen"
   20304 fi
   20305 
   20306 
   20307 if test "$enable_librpz_dl" = "yes" -a "$with_dlopen" = "no"; then :
   20308   as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
   20309 fi
   20310 
   20311 
   20312 # Check whether --with-dnsrps-libname was given.
   20313 if test "${with_dnsrps_libname+set}" = set; then :
   20314   withval=$with_dnsrps_libname; librpz_name="$withval"
   20315 else
   20316   librpz_name="librpz.so"
   20317 fi
   20318 
   20319 
   20320 # Check whether --with-dnsrps-dir was given.
   20321 if test "${with_dnsrps_dir+set}" = set; then :
   20322   withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
   20323 else
   20324   librpz_path="$librpz_name"
   20325 fi
   20326 
   20327 
   20328 cat >>confdefs.h <<_ACEOF
   20329 #define DNSRPS_LIBRPZ_PATH "$librpz_path"
   20330 _ACEOF
   20331 
   20332 if test "$enable_librpz_dl" = "yes"; then :
   20333 
   20334 	dnsrps_lib_open=2
   20335 
   20336 else
   20337 
   20338 	dnsrps_lib_open=1
   20339 	# Add librpz.so to linked libraries if we are not using dlopen()
   20340 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
   20341 $as_echo_n "checking for library containing librpz_client_create... " >&6; }
   20342 if ${ac_cv_search_librpz_client_create+:} false; then :
   20343   $as_echo_n "(cached) " >&6
   20344 else
   20345   ac_func_search_save_LIBS=$LIBS
   20346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20347 /* end confdefs.h.  */
   20348 
   20349 /* Override any GCC internal prototype to avoid an error.
   20350    Use char because int might match the return type of a GCC
   20351    builtin and then its argument prototype would still apply.  */
   20352 #ifdef __cplusplus
   20353 extern "C"
   20354 #endif
   20355 char librpz_client_create ();
   20356 int
   20357 main ()
   20358 {
   20359 return librpz_client_create ();
   20360   ;
   20361   return 0;
   20362 }
   20363 _ACEOF
   20364 for ac_lib in '' rpz; do
   20365   if test -z "$ac_lib"; then
   20366     ac_res="none required"
   20367   else
   20368     ac_res=-l$ac_lib
   20369     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20370   fi
   20371   if ac_fn_c_try_link "$LINENO"; then :
   20372   ac_cv_search_librpz_client_create=$ac_res
   20373 fi
   20374 rm -f core conftest.err conftest.$ac_objext \
   20375     conftest$ac_exeext
   20376   if ${ac_cv_search_librpz_client_create+:} false; then :
   20377   break
   20378 fi
   20379 done
   20380 if ${ac_cv_search_librpz_client_create+:} false; then :
   20381 
   20382 else
   20383   ac_cv_search_librpz_client_create=no
   20384 fi
   20385 rm conftest.$ac_ext
   20386 LIBS=$ac_func_search_save_LIBS
   20387 fi
   20388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
   20389 $as_echo "$ac_cv_search_librpz_client_create" >&6; }
   20390 ac_res=$ac_cv_search_librpz_client_create
   20391 if test "$ac_res" != no; then :
   20392   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20393 
   20394 else
   20395   dnsrps_lib_open=0
   20396 		 dnsrps_avail=no
   20397 fi
   20398 
   20399 
   20400 fi
   20401 
   20402 cat >>confdefs.h <<_ACEOF
   20403 #define DNSRPS_LIB_OPEN $dnsrps_lib_open
   20404 _ACEOF
   20405 
   20406 
   20407 # Check whether --enable-dnsrps was given.
   20408 if test "${enable_dnsrps+set}" = set; then :
   20409   enableval=$enable_dnsrps; enable_dnsrps=$enableval
   20410 else
   20411   enable_dnsrps=no
   20412 fi
   20413 
   20414 
   20415 if test "$enable_dnsrps" != "no"; then :
   20416 
   20417 	if test "$dnsrps_avail" != "yes"; then :
   20418   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   20419 fi
   20420 	if test "$dnsrps_lib_open" = "0"; then :
   20421   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   20422 fi
   20423 
   20424 $as_echo "#define USE_DNSRPS 1" >>confdefs.h
   20425 
   20426 
   20427 fi
   20428 
   20429 # Copyright (C) 2005  Internet Systems Consortium, Inc. ("ISC")
   20430 #
   20431 # Permission to use, copy, modify, and distribute this software for any
   20432 # purpose with or without fee is hereby granted, provided that the above
   20433 # copyright notice and this permission notice appear in all copies.
   20434 #
   20435 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
   20436 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
   20437 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
   20438 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
   20439 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
   20440 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
   20441 # PERFORMANCE OF THIS SOFTWARE.
   20442 
   20443 #
   20444 # Shorthand.  Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
   20445 #
   20446 dlzdir='${DLZ_DRIVER_DIR}'
   20447 
   20448 #
   20449 # Private autoconf macro to simplify configuring drivers:
   20450 #
   20451 #   DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
   20452 #
   20453 # where:
   20454 #   DEFINE is FOO (to define -DDLZ_FOO)
   20455 #   DRIVER is dlz_foo_driver (sources without the .c)
   20456 #   INCLUDES is any necessary include definitions
   20457 #   LIBS is any necessary library definitions
   20458 #
   20459 
   20460 
   20461 #
   20462 # Check for the various DLZ drivers
   20463 #
   20464 
   20465 #
   20466 # Was --with-dlz-postgres specified?
   20467 #
   20468 
   20469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
   20470 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
   20471 
   20472 # Check whether --with-dlz_postgres was given.
   20473 if test "${with_dlz_postgres+set}" = set; then :
   20474   withval=$with_dlz_postgres; use_dlz_postgres="$withval"
   20475 else
   20476   use_dlz_postgres="no"
   20477 fi
   20478 
   20479 
   20480 if test "$use_dlz_postgres" != "no"
   20481 then
   20482 	if test "$use_dlz_postgres" != "yes"
   20483         then
   20484                 for ac_prog in pg_config
   20485 do
   20486   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20487 set dummy $ac_prog; ac_word=$2
   20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20489 $as_echo_n "checking for $ac_word... " >&6; }
   20490 if ${ac_cv_path_PG_CONFIG+:} false; then :
   20491   $as_echo_n "(cached) " >&6
   20492 else
   20493   case $PG_CONFIG in
   20494   [\\/]* | ?:[\\/]*)
   20495   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   20496   ;;
   20497   *)
   20498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20499 for as_dir in $use_dlz_postgres/bin
   20500 do
   20501   IFS=$as_save_IFS
   20502   test -z "$as_dir" && as_dir=.
   20503     for ac_exec_ext in '' $ac_executable_extensions; do
   20504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20505     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   20506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20507     break 2
   20508   fi
   20509 done
   20510   done
   20511 IFS=$as_save_IFS
   20512 
   20513   ;;
   20514 esac
   20515 fi
   20516 PG_CONFIG=$ac_cv_path_PG_CONFIG
   20517 if test -n "$PG_CONFIG"; then
   20518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   20519 $as_echo "$PG_CONFIG" >&6; }
   20520 else
   20521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20522 $as_echo "no" >&6; }
   20523 fi
   20524 
   20525 
   20526   test -n "$PG_CONFIG" && break
   20527 done
   20528 test -n "$PG_CONFIG" || PG_CONFIG="not found"
   20529 
   20530 	else
   20531                 for ac_prog in pg_config
   20532 do
   20533   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20534 set dummy $ac_prog; ac_word=$2
   20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20536 $as_echo_n "checking for $ac_word... " >&6; }
   20537 if ${ac_cv_path_PG_CONFIG+:} false; then :
   20538   $as_echo_n "(cached) " >&6
   20539 else
   20540   case $PG_CONFIG in
   20541   [\\/]* | ?:[\\/]*)
   20542   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   20543   ;;
   20544   *)
   20545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20546 for as_dir in $PATH
   20547 do
   20548   IFS=$as_save_IFS
   20549   test -z "$as_dir" && as_dir=.
   20550     for ac_exec_ext in '' $ac_executable_extensions; do
   20551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20552     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   20553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20554     break 2
   20555   fi
   20556 done
   20557   done
   20558 IFS=$as_save_IFS
   20559 
   20560   ;;
   20561 esac
   20562 fi
   20563 PG_CONFIG=$ac_cv_path_PG_CONFIG
   20564 if test -n "$PG_CONFIG"; then
   20565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   20566 $as_echo "$PG_CONFIG" >&6; }
   20567 else
   20568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20569 $as_echo "no" >&6; }
   20570 fi
   20571 
   20572 
   20573   test -n "$PG_CONFIG" && break
   20574 done
   20575 test -n "$PG_CONFIG" || PG_CONFIG="not found"
   20576 
   20577 	fi
   20578 
   20579 	if test "$PG_CONFIG" != "not found"
   20580 	then
   20581 		use_dlz_postgres=`$PG_CONFIG --includedir`
   20582 		use_dlz_postgres_lib=`$PG_CONFIG --libdir`
   20583 	else
   20584 		pgprefix="$use_dlz_postgres"
   20585 		use_dlz_postgres="$pgprefix/include"
   20586 		use_dlz_postgres_lib="$pgprefix/lib"
   20587 	fi
   20588 fi
   20589 
   20590 if test "$use_dlz_postgres" = "yes/include"
   20591 then
   20592 	# User did not specify path and Postgres didn't say - guess it
   20593 	pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
   20594 	for d in $pgdirs
   20595 	do
   20596 		if test -f $d/include/libpq-fe.h
   20597 		then
   20598 			use_dlz_postgres=$d/include
   20599 			use_dlz_postgres_lib=$d/lib
   20600 			break
   20601 		fi
   20602 	done
   20603 fi
   20604 
   20605 if test "$use_dlz_postgres" = "yes/include"
   20606 then
   20607 	# Still no joy, give up
   20608 
   20609 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20610 $as_echo "not found" >&6; }
   20611 	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
   20612 fi
   20613 
   20614 case "$use_dlz_postgres" in
   20615 	no)
   20616 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20617 $as_echo "no" >&6; }
   20618 		;;
   20619 	*)
   20620 
   20621 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
   20622 	for i in dlz_postgres_driver
   20623 	do
   20624 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20625 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20626 	done
   20627 	if test -n "-I$use_dlz_postgres"
   20628 	then
   20629 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
   20630 		DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
   20631 	fi
   20632 	if test -n "-L$use_dlz_postgres_lib -lpq"
   20633 	then
   20634 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
   20635 		DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
   20636 	fi
   20637 
   20638 
   20639 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
   20640 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
   20641 		;;
   20642 esac
   20643 
   20644 
   20645 #
   20646 # Was --with-dlz-mysql specified?
   20647 #
   20648 
   20649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
   20650 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
   20651 
   20652 # Check whether --with-dlz_mysql was given.
   20653 if test "${with_dlz_mysql+set}" = set; then :
   20654   withval=$with_dlz_mysql; use_dlz_mysql="$withval"
   20655 else
   20656   use_dlz_mysql="no"
   20657 fi
   20658 
   20659 
   20660 mysql_include=""
   20661 mysql_lib=""
   20662 if test "$use_dlz_mysql" = "yes"
   20663 then
   20664 	for ac_prog in mysql_config
   20665 do
   20666   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20667 set dummy $ac_prog; ac_word=$2
   20668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20669 $as_echo_n "checking for $ac_word... " >&6; }
   20670 if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
   20671   $as_echo_n "(cached) " >&6
   20672 else
   20673   if test -n "$MYSQL_CONFIG"; then
   20674   ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
   20675 else
   20676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20677 for as_dir in $PATH
   20678 do
   20679   IFS=$as_save_IFS
   20680   test -z "$as_dir" && as_dir=.
   20681     for ac_exec_ext in '' $ac_executable_extensions; do
   20682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20683     ac_cv_prog_MYSQL_CONFIG="$ac_prog"
   20684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20685     break 2
   20686   fi
   20687 done
   20688   done
   20689 IFS=$as_save_IFS
   20690 
   20691 fi
   20692 fi
   20693 MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
   20694 if test -n "$MYSQL_CONFIG"; then
   20695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
   20696 $as_echo "$MYSQL_CONFIG" >&6; }
   20697 else
   20698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20699 $as_echo "no" >&6; }
   20700 fi
   20701 
   20702 
   20703   test -n "$MYSQL_CONFIG" && break
   20704 done
   20705 
   20706 	if test -n "$MYSQL_CONFIG"
   20707 	then
   20708 		mysql_include=`${MYSQL_CONFIG} --include`
   20709 		mysql_lib=`${MYSQL_CONFIG} --libs`
   20710 		use_dlz_mysql="config"
   20711 
   20712 	else
   20713 		# User did not specify a path - guess it
   20714 		mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
   20715 		for d in $mysqldirs
   20716 		do
   20717 			if test -f $d/include/mysql/mysql.h
   20718 			then
   20719 				use_dlz_mysql=$d
   20720 				mysql_include=$d/include/mysql
   20721 				break
   20722 			elif test -f $d/include/mysql.h
   20723 			then
   20724 				use_dlz_mysql=$d
   20725 				mysql_include=$d/include
   20726 				break
   20727 			fi
   20728 		done
   20729 	fi
   20730 elif test "$use_dlz_mysql" != "no"
   20731 then
   20732 	d=$use_dlz_mysql
   20733 	if test -f $d/include/mysql/mysql.h
   20734 	then
   20735 		mysql_include=$d/include/mysql
   20736 	elif test -f $d/include/mysql.h
   20737 	then
   20738 		mysql_include=$d/include
   20739 	fi
   20740 fi
   20741 
   20742 if test "$use_dlz_mysql" = "yes"
   20743 then
   20744 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20745 $as_echo "not found" >&6; }
   20746 	as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
   20747 fi
   20748 
   20749 case "$use_dlz_mysql" in
   20750 	no)
   20751 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20752 $as_echo "no" >&6; }
   20753 		;;
   20754 	config)
   20755 
   20756 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   20757 	for i in dlz_mysql_driver
   20758 	do
   20759 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20760 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20761 	done
   20762 	if test -n "${mysql_include}"
   20763 	then
   20764 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
   20765 		DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
   20766 	fi
   20767 	if test -n "${mysql_lib}"
   20768 	then
   20769 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
   20770 		DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
   20771 	fi
   20772 
   20773 
   20774 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
   20775 $as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
   20776 		;;
   20777 	*)
   20778 		if test -d "$use_dlz_mysql/lib/mysql"
   20779 		then
   20780 			mysql_lib="$use_dlz_mysql/lib/mysql"
   20781 		else
   20782 			mysql_lib="$use_dlz_mysql/lib"
   20783 		fi
   20784 
   20785 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   20786 	for i in dlz_mysql_driver
   20787 	do
   20788 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20789 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20790 	done
   20791 	if test -n "-I${mysql_include}"
   20792 	then
   20793 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
   20794 		DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
   20795 	fi
   20796 	if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20797 	then
   20798 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20799 		DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   20800 	fi
   20801 
   20802 
   20803 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
   20804 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
   20805 		;;
   20806 esac
   20807 
   20808 
   20809 #
   20810 # Was --with-dlz-bdb specified?
   20811 #
   20812 
   20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
   20814 $as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
   20815 
   20816 # Check whether --with-dlz_bdb was given.
   20817 if test "${with_dlz_bdb+set}" = set; then :
   20818   withval=$with_dlz_bdb; use_dlz_bdb="$withval"
   20819 else
   20820   use_dlz_bdb="no"
   20821 fi
   20822 
   20823 
   20824 case "$use_dlz_bdb" in
   20825 	no)
   20826 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20827 $as_echo "no" >&6; }
   20828 		;;
   20829 	*)
   20830 		if test "$use_dlz_bdb" = "yes"
   20831 		then
   20832 			# User did not specify a path - guess directories
   20833 			bdbdirs="/usr/local /usr/pkg /usr"
   20834 		elif test -d "$use_dlz_bdb"
   20835 		then
   20836 			# User specified directory and it exists
   20837 			bdbdirs="$use_dlz_bdb"
   20838 		else
   20839 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20840 $as_echo "not found" >&6; }
   20841 			as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
   20842 			bdbdirs=""
   20843 		fi
   20844 
   20845 		# Use path we were given or guessed.  This is insanely
   20846 		# complicated because we have to search for a bunch of
   20847 		# platform-specific variations and have to check
   20848 		# separately for include and library directories.
   20849 
   20850 		# Set both to yes, so we can check them later
   20851 		dlz_bdb_inc="yes"
   20852 		dlz_bdb_libs="yes"
   20853 
   20854                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   20855 $as_echo "" >&6; }
   20856 		for dd in $bdbdirs
   20857 		do
   20858 			# Skip nonexistant directories
   20859 			if test ! -d "$dd"
   20860 			then
   20861 				continue
   20862 			fi
   20863 
   20864 			# Check other locations for includes.
   20865 			# Order is important (sigh).
   20866 
   20867 			bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
   20868 			# include a blank element first
   20869 			for d in "" $bdb_incdirs
   20870 			do
   20871 				if test -f "$dd/include${d}/db.h"
   20872 				then
   20873 					dlz_bdb_inc="-I$dd/include${d}"
   20874 					break
   20875 				fi
   20876 			done
   20877 
   20878 			# Give up on this directory if we couldn't
   20879 			# find the include subdir
   20880 
   20881 			if test "$dlz_bdb_inc" = "yes"
   20882 			then
   20883 				continue
   20884 			fi
   20885 
   20886 			# Look for libname other than libdb.so.
   20887 			# Order is important (sigh).
   20888 
   20889 			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"
   20890 			for d in $bdb_libnames
   20891 			do
   20892 				if test "$dd" = "/usr"
   20893 				then
   20894 					as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
   20895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
   20896 $as_echo_n "checking for db_create in -l$d... " >&6; }
   20897 if eval \${$as_ac_Lib+:} false; then :
   20898   $as_echo_n "(cached) " >&6
   20899 else
   20900   ac_check_lib_save_LIBS=$LIBS
   20901 LIBS="-l$d  $LIBS"
   20902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20903 /* end confdefs.h.  */
   20904 
   20905 /* Override any GCC internal prototype to avoid an error.
   20906    Use char because int might match the return type of a GCC
   20907    builtin and then its argument prototype would still apply.  */
   20908 #ifdef __cplusplus
   20909 extern "C"
   20910 #endif
   20911 char db_create ();
   20912 int
   20913 main ()
   20914 {
   20915 return db_create ();
   20916   ;
   20917   return 0;
   20918 }
   20919 _ACEOF
   20920 if ac_fn_c_try_link "$LINENO"; then :
   20921   eval "$as_ac_Lib=yes"
   20922 else
   20923   eval "$as_ac_Lib=no"
   20924 fi
   20925 rm -f core conftest.err conftest.$ac_objext \
   20926     conftest$ac_exeext conftest.$ac_ext
   20927 LIBS=$ac_check_lib_save_LIBS
   20928 fi
   20929 eval ac_res=\$$as_ac_Lib
   20930 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   20931 $as_echo "$ac_res" >&6; }
   20932 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
   20933   dlz_bdb_libs="-l${d}"
   20934 fi
   20935 
   20936 					if test $dlz_bdb_libs != "yes"
   20937 					then
   20938 						break
   20939 					fi
   20940 				elif test -f "$dd/lib/lib${d}.so"
   20941 				then
   20942 					dlz_bdb_libs="-L${dd}/lib -l${d}"
   20943 					break
   20944 				fi
   20945 			done
   20946 
   20947 			# If we found both incdir and lib, we're done
   20948 			if test "$dlz_bdb_libs" != "yes"
   20949 			then
   20950 				break
   20951 			fi
   20952 
   20953 			# Otherwise, we're starting over
   20954 
   20955 			dlz_bdb_inc="yes"
   20956 			dlz_bdb_libs="yes"
   20957 		done
   20958 
   20959 		# Done searching, now make sure we got everything.
   20960 
   20961 		if test "$dlz_bdb_inc" = "yes"
   20962 		then
   20963 			as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
   20964 		fi
   20965 
   20966 		if test "$dlz_bdb_libs" = "yes"
   20967 		then
   20968 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   20969 $as_echo "not found" >&6; }
   20970 			as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
   20971 		fi
   20972 
   20973 
   20974 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
   20975 	for i in dlz_bdb_driver dlz_bdbhpt_driver
   20976 	do
   20977 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   20978 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   20979 	done
   20980 	if test -n "$dlz_bdb_inc"
   20981 	then
   20982 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
   20983 		DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
   20984 	fi
   20985 	if test -n "$dlz_bdb_libs"
   20986 	then
   20987 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
   20988 		DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
   20989 	fi
   20990 
   20991 
   20992 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
   20993 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
   20994 
   20995 		ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
   20996 
   20997 		;;
   20998 esac
   20999 
   21000 
   21001 #
   21002 # Was --with-dlz-filesystem specified?
   21003 #
   21004 
   21005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
   21006 $as_echo_n "checking for file system DLZ driver... " >&6; }
   21007 
   21008 # Check whether --with-dlz_filesystem was given.
   21009 if test "${with_dlz_filesystem+set}" = set; then :
   21010   withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
   21011 else
   21012   use_dlz_filesystem="no"
   21013 fi
   21014 
   21015 
   21016 case "$use_dlz_filesystem" in
   21017 	no)
   21018 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21019 $as_echo "no" >&6; }
   21020 		;;
   21021 	*)
   21022 
   21023 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
   21024 	for i in dlz_filesystem_driver
   21025 	do
   21026 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21027 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21028 	done
   21029 	if test -n ""
   21030 	then
   21031 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   21032 		DLZ_DRIVER_FILESYSTEM_INCLUDES=""
   21033 	fi
   21034 	if test -n ""
   21035 	then
   21036 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   21037 		DLZ_DRIVER_FILESYSTEM_LIBS=""
   21038 	fi
   21039 
   21040 		DLZ_SYSTEM_TEST=filesystem
   21041 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21042 $as_echo "yes" >&6; }
   21043 		;;
   21044 esac
   21045 
   21046 
   21047 #
   21048 # Was --with-dlz-ldap specified?
   21049 #
   21050 
   21051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
   21052 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
   21053 
   21054 # Check whether --with-dlz_ldap was given.
   21055 if test "${with_dlz_ldap+set}" = set; then :
   21056   withval=$with_dlz_ldap; use_dlz_ldap="$withval"
   21057 else
   21058   use_dlz_ldap="no"
   21059 fi
   21060 
   21061 
   21062 if test "$use_dlz_ldap" = "yes"
   21063 then
   21064 	# User did not specify a path - guess it
   21065 	ldapdirs="/usr /usr/local /usr/pkg"
   21066 	for d in $ldapdirs
   21067 	do
   21068 		if test -f $d/include/ldap.h
   21069 		then
   21070 			use_dlz_ldap=$d
   21071 			break
   21072 		fi
   21073 	done
   21074 fi
   21075 
   21076 if test "$use_dlz_ldap" = "yes"
   21077 then
   21078 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21079 $as_echo "not found" >&6; }
   21080 	as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
   21081 fi
   21082 
   21083 case "$use_dlz_ldap" in
   21084 	no)
   21085 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21086 $as_echo "no" >&6; }
   21087 		;;
   21088 	*)
   21089 
   21090 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
   21091 	for i in dlz_ldap_driver
   21092 	do
   21093 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21094 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21095 	done
   21096 	if test -n "-I$use_dlz_ldap/include"
   21097 	then
   21098 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
   21099 		DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
   21100 	fi
   21101 	if test -n "-L$use_dlz_ldap/lib -lldap -llber"
   21102 	then
   21103 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
   21104 		DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
   21105 	fi
   21106 
   21107 
   21108 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
   21109 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
   21110 		;;
   21111 esac
   21112 
   21113 
   21114 #
   21115 # Was --with-dlz-odbc specified?
   21116 #
   21117 
   21118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
   21119 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
   21120 
   21121 # Check whether --with-dlz_odbc was given.
   21122 if test "${with_dlz_odbc+set}" = set; then :
   21123   withval=$with_dlz_odbc; use_dlz_odbc="$withval"
   21124 else
   21125   use_dlz_odbc="no"
   21126 fi
   21127 
   21128 
   21129 if test "$use_dlz_odbc" = "yes"
   21130 then
   21131 	# User did not specify a path - guess it
   21132 	libodbc_found=no
   21133 	sql_h_found=no
   21134 	ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
   21135 if test "x$ac_cv_header_sql_h" = xyes; then :
   21136   sql_h_found=yes
   21137 fi
   21138 
   21139 
   21140 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
   21141 $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
   21142 if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
   21143   $as_echo_n "(cached) " >&6
   21144 else
   21145   ac_check_lib_save_LIBS=$LIBS
   21146 LIBS="-lodbc  $LIBS"
   21147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21148 /* end confdefs.h.  */
   21149 
   21150 /* Override any GCC internal prototype to avoid an error.
   21151    Use char because int might match the return type of a GCC
   21152    builtin and then its argument prototype would still apply.  */
   21153 #ifdef __cplusplus
   21154 extern "C"
   21155 #endif
   21156 char SQLConnect ();
   21157 int
   21158 main ()
   21159 {
   21160 return SQLConnect ();
   21161   ;
   21162   return 0;
   21163 }
   21164 _ACEOF
   21165 if ac_fn_c_try_link "$LINENO"; then :
   21166   ac_cv_lib_odbc_SQLConnect=yes
   21167 else
   21168   ac_cv_lib_odbc_SQLConnect=no
   21169 fi
   21170 rm -f core conftest.err conftest.$ac_objext \
   21171     conftest$ac_exeext conftest.$ac_ext
   21172 LIBS=$ac_check_lib_save_LIBS
   21173 fi
   21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
   21175 $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
   21176 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
   21177   libodbc_found=yes
   21178 fi
   21179 
   21180 
   21181 	if test $libodbc_found = "yes" -o $sql_h_found = "yes"
   21182 	then
   21183 		use_dlz_odbc=system
   21184 		dlz_odbc_include=""
   21185 		dlz_odbc_libs="-lodbc"
   21186 	else
   21187 		odbcdirs="/usr /usr/local /usr/pkg"
   21188 		for d in $odbcdirs
   21189 		do
   21190 			if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
   21191 			then
   21192 				use_dlz_odbc=$d
   21193 				dlz_odbc_include="-I$use_dlz_odbc/include"
   21194 				dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
   21195 				break
   21196 			fi
   21197 		done
   21198 	fi
   21199 fi
   21200 
   21201 case "$use_dlz_odbc" in
   21202 	no)
   21203 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21204 $as_echo "no" >&6; }
   21205 		;;
   21206 	yes)
   21207 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21208 $as_echo "not found" >&6; }
   21209 		as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
   21210 		;;
   21211 	*)
   21212 
   21213 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
   21214 	for i in dlz_odbc_driver
   21215 	do
   21216 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21217 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21218 	done
   21219 	if test -n "$dlz_odbc_include"
   21220 	then
   21221 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
   21222 		DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
   21223 	fi
   21224 	if test -n "$dlz_odbc_libs"
   21225 	then
   21226 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
   21227 		DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
   21228 	fi
   21229 
   21230 
   21231 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
   21232 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
   21233 		;;
   21234 esac
   21235 
   21236 
   21237 #
   21238 # Was --with-dlz-stub specified?
   21239 #
   21240 
   21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
   21242 $as_echo_n "checking for stub DLZ driver... " >&6; }
   21243 
   21244 # Check whether --with-dlz_stub was given.
   21245 if test "${with_dlz_stub+set}" = set; then :
   21246   withval=$with_dlz_stub; use_dlz_stub="$withval"
   21247 else
   21248   use_dlz_stub="no"
   21249 fi
   21250 
   21251 
   21252 case "$use_dlz_stub" in
   21253 	no)
   21254 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21255 $as_echo "no" >&6; }
   21256 		;;
   21257 	*)
   21258 
   21259 
   21260 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
   21261 	for i in dlz_stub_driver
   21262 	do
   21263 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   21264 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   21265 	done
   21266 	if test -n ""
   21267 	then
   21268 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   21269 		DLZ_DRIVER_STUB_INCLUDES=""
   21270 	fi
   21271 	if test -n ""
   21272 	then
   21273 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   21274 		DLZ_DRIVER_STUB_LIBS=""
   21275 	fi
   21276 
   21277 
   21278 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21279 $as_echo "yes" >&6; }
   21280 		;;
   21281 esac
   21282 
   21283 # Add any additional DLZ drivers here.
   21284 
   21285 #
   21286 # Finally, some generic stuff that applies to all drivers, assuming
   21287 # we're compiling contrib DLZ drivers at all.
   21288 #
   21289 if test -n "$CONTRIB_DLZ"
   21290 then
   21291 	CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
   21292 
   21293 	#
   21294 	# Where to find DLZ driver header files.
   21295 	#
   21296 	DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
   21297 
   21298 	#
   21299 	# Initialization and shutdown wrappers, helper functions.
   21300 	#
   21301 	DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
   21302 	DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
   21303 fi
   21304 
   21305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
   21306 $as_echo_n "checking contributed DLZ drivers... " >&6; }
   21307 
   21308 if test -n "$CONTRIB_DLZ"
   21309 then
   21310 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21311 $as_echo "yes" >&6; }
   21312 	DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
   21313 	ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
   21314 
   21315 else
   21316 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21317 $as_echo "no" >&6; }
   21318 	DLZ_DRIVER_RULES=/dev/null
   21319 fi
   21320 
   21321 
   21322 
   21323 
   21324 
   21325 
   21326 
   21327 
   21328 
   21329 
   21330 
   21331 if test "yes" = "$cross_compiling"; then
   21332 	if test -z "$BUILD_CC"; then
   21333 		as_fn_error $? "BUILD_CC not set" "$LINENO" 5
   21334 	fi
   21335 	BUILD_CFLAGS="$BUILD_CFLAGS"
   21336 	BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
   21337 	BUILD_LDFLAGS="$BUILD_LDFLAGS"
   21338 	BUILD_LIBS="$BUILD_LIBS"
   21339 else
   21340 	BUILD_CC="$CC"
   21341 	BUILD_CFLAGS="$CFLAGS"
   21342 	BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
   21343 	BUILD_LDFLAGS="$LDFLAGS"
   21344 	BUILD_LIBS="$LIBS"
   21345 fi
   21346 
   21347 NEWFLAGS=""
   21348 for e in $BUILD_LDFLAGS ; do
   21349     case $e in
   21350 	-L*)
   21351 	    case $host_os in
   21352 		netbsd*)
   21353 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21354 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21355 		    ;;
   21356 		freebsd*)
   21357 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21358 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21359 		    ;;
   21360 		solaris*)
   21361 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21362 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21363 		    ;;
   21364 		*)
   21365 		    NEWFLAGS="$NEWFLAGS $e"
   21366 		    ;;
   21367 		esac
   21368 	    ;;
   21369 	*)
   21370 	    NEWFLAGS="$NEWFLAGS $e"
   21371 	    ;;
   21372     esac
   21373 done
   21374 BUILD_LDFLAGS="$NEWFLAGS"
   21375 
   21376 NEWFLAGS=""
   21377 for e in $DNS_GSSAPI_LIBS ; do
   21378     case $e in
   21379 	-L*)
   21380 	    case $host_os in
   21381 		netbsd*)
   21382 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21383 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21384 		    ;;
   21385 		freebsd*)
   21386 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21387 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21388 		    ;;
   21389 		solaris*)
   21390 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21391 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21392 		    ;;
   21393 		*)
   21394 		    NEWFLAGS="$NEWFLAGS $e"
   21395 		    ;;
   21396 		esac
   21397 	    ;;
   21398 	*)
   21399 	    NEWFLAGS="$NEWFLAGS $e"
   21400 	    ;;
   21401     esac
   21402 done
   21403 DNS_GSSAPI_LIBS="$NEWFLAGS"
   21404 
   21405 NEWFLAGS=""
   21406 for e in $ISC_OPENSSL_LIBS ; do
   21407     case $e in
   21408 	-L*)
   21409 	    case $host_os in
   21410 		netbsd*)
   21411 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21412 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21413 		    ;;
   21414 		freebsd*)
   21415 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21416 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21417 		    ;;
   21418 		solaris*)
   21419 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21420 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21421 		    ;;
   21422 		*)
   21423 		    NEWFLAGS="$NEWFLAGS $e"
   21424 		    ;;
   21425 		esac
   21426 	    ;;
   21427 	*)
   21428 	    NEWFLAGS="$NEWFLAGS $e"
   21429 	    ;;
   21430     esac
   21431 done
   21432 ISC_OPENSSL_LIBS="$NEWFLAGS"
   21433 
   21434 NEWFLAGS=""
   21435 for e in $DNS_CRYPTO_LIBS ; do
   21436     case $e in
   21437 	-L*)
   21438 	    case $host_os in
   21439 		netbsd*)
   21440 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21441 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21442 		    ;;
   21443 		freebsd*)
   21444 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   21445 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21446 		    ;;
   21447 		solaris*)
   21448 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   21449 		    NEWFLAGS="$NEWFLAGS $e $ee"
   21450 		    ;;
   21451 		*)
   21452 		    NEWFLAGS="$NEWFLAGS $e"
   21453 		    ;;
   21454 		esac
   21455 	    ;;
   21456 	*)
   21457 	    NEWFLAGS="$NEWFLAGS $e"
   21458 	    ;;
   21459     esac
   21460 done
   21461 DNS_CRYPTO_LIBS="$NEWFLAGS"
   21462 
   21463 
   21464 
   21465 
   21466 
   21467 
   21468 
   21469 #
   21470 # Commands to run at the end of config.status.
   21471 # Don't just put these into configure, it won't work right if somebody
   21472 # runs config.status directly (which autoconf allows).
   21473 #
   21474 
   21475 ac_config_commands="$ac_config_commands chmod"
   21476 
   21477 
   21478 #
   21479 # Files to configure.  These are listed here because we used to
   21480 # specify them as arguments to AC_OUTPUT.  It's (now) ok to move these
   21481 # elsewhere if there's a good reason for doing so.
   21482 #
   21483 
   21484 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/dlz/prereq.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"
   21485 
   21486 
   21487 #
   21488 # Do it
   21489 #
   21490 
   21491 cat >confcache <<\_ACEOF
   21492 # This file is a shell script that caches the results of configure
   21493 # tests run on this system so they can be shared between configure
   21494 # scripts and configure runs, see configure's option --config-cache.
   21495 # It is not useful on other systems.  If it contains results you don't
   21496 # want to keep, you may remove or edit it.
   21497 #
   21498 # config.status only pays attention to the cache file if you give it
   21499 # the --recheck option to rerun configure.
   21500 #
   21501 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   21502 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   21503 # following values.
   21504 
   21505 _ACEOF
   21506 
   21507 # The following way of writing the cache mishandles newlines in values,
   21508 # but we know of no workaround that is simple, portable, and efficient.
   21509 # So, we kill variables containing newlines.
   21510 # Ultrix sh set writes to stderr and can't be redirected directly,
   21511 # and sets the high bit in the cache file unless we assign to the vars.
   21512 (
   21513   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   21514     eval ac_val=\$$ac_var
   21515     case $ac_val in #(
   21516     *${as_nl}*)
   21517       case $ac_var in #(
   21518       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   21519 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   21520       esac
   21521       case $ac_var in #(
   21522       _ | IFS | as_nl) ;; #(
   21523       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   21524       *) { eval $ac_var=; unset $ac_var;} ;;
   21525       esac ;;
   21526     esac
   21527   done
   21528 
   21529   (set) 2>&1 |
   21530     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   21531     *${as_nl}ac_space=\ *)
   21532       # `set' does not quote correctly, so add quotes: double-quote
   21533       # substitution turns \\\\ into \\, and sed turns \\ into \.
   21534       sed -n \
   21535 	"s/'/'\\\\''/g;
   21536 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   21537       ;; #(
   21538     *)
   21539       # `set' quotes correctly as required by POSIX, so do not add quotes.
   21540       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   21541       ;;
   21542     esac |
   21543     sort
   21544 ) |
   21545   sed '
   21546      /^ac_cv_env_/b end
   21547      t clear
   21548      :clear
   21549      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   21550      t end
   21551      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   21552      :end' >>confcache
   21553 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   21554   if test -w "$cache_file"; then
   21555     if test "x$cache_file" != "x/dev/null"; then
   21556       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   21557 $as_echo "$as_me: updating cache $cache_file" >&6;}
   21558       if test ! -f "$cache_file" || test -h "$cache_file"; then
   21559 	cat confcache >"$cache_file"
   21560       else
   21561         case $cache_file in #(
   21562         */* | ?:*)
   21563 	  mv -f confcache "$cache_file"$$ &&
   21564 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   21565         *)
   21566 	  mv -f confcache "$cache_file" ;;
   21567 	esac
   21568       fi
   21569     fi
   21570   else
   21571     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   21572 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   21573   fi
   21574 fi
   21575 rm -f confcache
   21576 
   21577 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   21578 # Let make expand exec_prefix.
   21579 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   21580 
   21581 DEFS=-DHAVE_CONFIG_H
   21582 
   21583 ac_libobjs=
   21584 ac_ltlibobjs=
   21585 U=
   21586 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   21587   # 1. Remove the extension, and $U if already installed.
   21588   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   21589   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   21590   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   21591   #    will be set to the directory where LIBOBJS objects are built.
   21592   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   21593   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   21594 done
   21595 LIBOBJS=$ac_libobjs
   21596 
   21597 LTLIBOBJS=$ac_ltlibobjs
   21598 
   21599 
   21600 
   21601 
   21602 : "${CONFIG_STATUS=./config.status}"
   21603 ac_write_fail=0
   21604 ac_clean_files_save=$ac_clean_files
   21605 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   21606 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   21607 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   21608 as_write_fail=0
   21609 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   21610 #! $SHELL
   21611 # Generated by $as_me.
   21612 # Run this file to recreate the current configuration.
   21613 # Compiler output produced by configure, useful for debugging
   21614 # configure, is in config.log if it exists.
   21615 
   21616 debug=false
   21617 ac_cs_recheck=false
   21618 ac_cs_silent=false
   21619 
   21620 SHELL=\${CONFIG_SHELL-$SHELL}
   21621 export SHELL
   21622 _ASEOF
   21623 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   21624 ## -------------------- ##
   21625 ## M4sh Initialization. ##
   21626 ## -------------------- ##
   21627 
   21628 # Be more Bourne compatible
   21629 DUALCASE=1; export DUALCASE # for MKS sh
   21630 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   21631   emulate sh
   21632   NULLCMD=:
   21633   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   21634   # is contrary to our usage.  Disable this feature.
   21635   alias -g '${1+"$@"}'='"$@"'
   21636   setopt NO_GLOB_SUBST
   21637 else
   21638   case `(set -o) 2>/dev/null` in #(
   21639   *posix*) :
   21640     set -o posix ;; #(
   21641   *) :
   21642      ;;
   21643 esac
   21644 fi
   21645 
   21646 
   21647 as_nl='
   21648 '
   21649 export as_nl
   21650 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   21651 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   21652 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   21653 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   21654 # Prefer a ksh shell builtin over an external printf program on Solaris,
   21655 # but without wasting forks for bash or zsh.
   21656 if test -z "$BASH_VERSION$ZSH_VERSION" \
   21657     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   21658   as_echo='print -r --'
   21659   as_echo_n='print -rn --'
   21660 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   21661   as_echo='printf %s\n'
   21662   as_echo_n='printf %s'
   21663 else
   21664   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   21665     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   21666     as_echo_n='/usr/ucb/echo -n'
   21667   else
   21668     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   21669     as_echo_n_body='eval
   21670       arg=$1;
   21671       case $arg in #(
   21672       *"$as_nl"*)
   21673 	expr "X$arg" : "X\\(.*\\)$as_nl";
   21674 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   21675       esac;
   21676       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   21677     '
   21678     export as_echo_n_body
   21679     as_echo_n='sh -c $as_echo_n_body as_echo'
   21680   fi
   21681   export as_echo_body
   21682   as_echo='sh -c $as_echo_body as_echo'
   21683 fi
   21684 
   21685 # The user is always right.
   21686 if test "${PATH_SEPARATOR+set}" != set; then
   21687   PATH_SEPARATOR=:
   21688   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   21689     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   21690       PATH_SEPARATOR=';'
   21691   }
   21692 fi
   21693 
   21694 
   21695 # IFS
   21696 # We need space, tab and new line, in precisely that order.  Quoting is
   21697 # there to prevent editors from complaining about space-tab.
   21698 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   21699 # splitting by setting IFS to empty value.)
   21700 IFS=" ""	$as_nl"
   21701 
   21702 # Find who we are.  Look in the path if we contain no directory separator.
   21703 as_myself=
   21704 case $0 in #((
   21705   *[\\/]* ) as_myself=$0 ;;
   21706   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21707 for as_dir in $PATH
   21708 do
   21709   IFS=$as_save_IFS
   21710   test -z "$as_dir" && as_dir=.
   21711     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   21712   done
   21713 IFS=$as_save_IFS
   21714 
   21715      ;;
   21716 esac
   21717 # We did not find ourselves, most probably we were run as `sh COMMAND'
   21718 # in which case we are not to be found in the path.
   21719 if test "x$as_myself" = x; then
   21720   as_myself=$0
   21721 fi
   21722 if test ! -f "$as_myself"; then
   21723   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   21724   exit 1
   21725 fi
   21726 
   21727 # Unset variables that we do not need and which cause bugs (e.g. in
   21728 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   21729 # suppresses any "Segmentation fault" message there.  '((' could
   21730 # trigger a bug in pdksh 5.2.14.
   21731 for as_var in BASH_ENV ENV MAIL MAILPATH
   21732 do eval test x\${$as_var+set} = xset \
   21733   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   21734 done
   21735 PS1='$ '
   21736 PS2='> '
   21737 PS4='+ '
   21738 
   21739 # NLS nuisances.
   21740 LC_ALL=C
   21741 export LC_ALL
   21742 LANGUAGE=C
   21743 export LANGUAGE
   21744 
   21745 # CDPATH.
   21746 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   21747 
   21748 
   21749 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   21750 # ----------------------------------------
   21751 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   21752 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   21753 # script with STATUS, using 1 if that was 0.
   21754 as_fn_error ()
   21755 {
   21756   as_status=$1; test $as_status -eq 0 && as_status=1
   21757   if test "$4"; then
   21758     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   21759     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   21760   fi
   21761   $as_echo "$as_me: error: $2" >&2
   21762   as_fn_exit $as_status
   21763 } # as_fn_error
   21764 
   21765 
   21766 # as_fn_set_status STATUS
   21767 # -----------------------
   21768 # Set $? to STATUS, without forking.
   21769 as_fn_set_status ()
   21770 {
   21771   return $1
   21772 } # as_fn_set_status
   21773 
   21774 # as_fn_exit STATUS
   21775 # -----------------
   21776 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   21777 as_fn_exit ()
   21778 {
   21779   set +e
   21780   as_fn_set_status $1
   21781   exit $1
   21782 } # as_fn_exit
   21783 
   21784 # as_fn_unset VAR
   21785 # ---------------
   21786 # Portably unset VAR.
   21787 as_fn_unset ()
   21788 {
   21789   { eval $1=; unset $1;}
   21790 }
   21791 as_unset=as_fn_unset
   21792 # as_fn_append VAR VALUE
   21793 # ----------------------
   21794 # Append the text in VALUE to the end of the definition contained in VAR. Take
   21795 # advantage of any shell optimizations that allow amortized linear growth over
   21796 # repeated appends, instead of the typical quadratic growth present in naive
   21797 # implementations.
   21798 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   21799   eval 'as_fn_append ()
   21800   {
   21801     eval $1+=\$2
   21802   }'
   21803 else
   21804   as_fn_append ()
   21805   {
   21806     eval $1=\$$1\$2
   21807   }
   21808 fi # as_fn_append
   21809 
   21810 # as_fn_arith ARG...
   21811 # ------------------
   21812 # Perform arithmetic evaluation on the ARGs, and store the result in the
   21813 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   21814 # must be portable across $(()) and expr.
   21815 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   21816   eval 'as_fn_arith ()
   21817   {
   21818     as_val=$(( $* ))
   21819   }'
   21820 else
   21821   as_fn_arith ()
   21822   {
   21823     as_val=`expr "$@" || test $? -eq 1`
   21824   }
   21825 fi # as_fn_arith
   21826 
   21827 
   21828 if expr a : '\(a\)' >/dev/null 2>&1 &&
   21829    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   21830   as_expr=expr
   21831 else
   21832   as_expr=false
   21833 fi
   21834 
   21835 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   21836   as_basename=basename
   21837 else
   21838   as_basename=false
   21839 fi
   21840 
   21841 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   21842   as_dirname=dirname
   21843 else
   21844   as_dirname=false
   21845 fi
   21846 
   21847 as_me=`$as_basename -- "$0" ||
   21848 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   21849 	 X"$0" : 'X\(//\)$' \| \
   21850 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   21851 $as_echo X/"$0" |
   21852     sed '/^.*\/\([^/][^/]*\)\/*$/{
   21853 	    s//\1/
   21854 	    q
   21855 	  }
   21856 	  /^X\/\(\/\/\)$/{
   21857 	    s//\1/
   21858 	    q
   21859 	  }
   21860 	  /^X\/\(\/\).*/{
   21861 	    s//\1/
   21862 	    q
   21863 	  }
   21864 	  s/.*/./; q'`
   21865 
   21866 # Avoid depending upon Character Ranges.
   21867 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   21868 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   21869 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   21870 as_cr_digits='0123456789'
   21871 as_cr_alnum=$as_cr_Letters$as_cr_digits
   21872 
   21873 ECHO_C= ECHO_N= ECHO_T=
   21874 case `echo -n x` in #(((((
   21875 -n*)
   21876   case `echo 'xy\c'` in
   21877   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   21878   xy)  ECHO_C='\c';;
   21879   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   21880        ECHO_T='	';;
   21881   esac;;
   21882 *)
   21883   ECHO_N='-n';;
   21884 esac
   21885 
   21886 rm -f conf$$ conf$$.exe conf$$.file
   21887 if test -d conf$$.dir; then
   21888   rm -f conf$$.dir/conf$$.file
   21889 else
   21890   rm -f conf$$.dir
   21891   mkdir conf$$.dir 2>/dev/null
   21892 fi
   21893 if (echo >conf$$.file) 2>/dev/null; then
   21894   if ln -s conf$$.file conf$$ 2>/dev/null; then
   21895     as_ln_s='ln -s'
   21896     # ... but there are two gotchas:
   21897     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   21898     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   21899     # In both cases, we have to default to `cp -pR'.
   21900     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   21901       as_ln_s='cp -pR'
   21902   elif ln conf$$.file conf$$ 2>/dev/null; then
   21903     as_ln_s=ln
   21904   else
   21905     as_ln_s='cp -pR'
   21906   fi
   21907 else
   21908   as_ln_s='cp -pR'
   21909 fi
   21910 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   21911 rmdir conf$$.dir 2>/dev/null
   21912 
   21913 
   21914 # as_fn_mkdir_p
   21915 # -------------
   21916 # Create "$as_dir" as a directory, including parents if necessary.
   21917 as_fn_mkdir_p ()
   21918 {
   21919 
   21920   case $as_dir in #(
   21921   -*) as_dir=./$as_dir;;
   21922   esac
   21923   test -d "$as_dir" || eval $as_mkdir_p || {
   21924     as_dirs=
   21925     while :; do
   21926       case $as_dir in #(
   21927       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   21928       *) as_qdir=$as_dir;;
   21929       esac
   21930       as_dirs="'$as_qdir' $as_dirs"
   21931       as_dir=`$as_dirname -- "$as_dir" ||
   21932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21933 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   21934 	 X"$as_dir" : 'X\(//\)$' \| \
   21935 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   21936 $as_echo X"$as_dir" |
   21937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21938 	    s//\1/
   21939 	    q
   21940 	  }
   21941 	  /^X\(\/\/\)[^/].*/{
   21942 	    s//\1/
   21943 	    q
   21944 	  }
   21945 	  /^X\(\/\/\)$/{
   21946 	    s//\1/
   21947 	    q
   21948 	  }
   21949 	  /^X\(\/\).*/{
   21950 	    s//\1/
   21951 	    q
   21952 	  }
   21953 	  s/.*/./; q'`
   21954       test -d "$as_dir" && break
   21955     done
   21956     test -z "$as_dirs" || eval "mkdir $as_dirs"
   21957   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   21958 
   21959 
   21960 } # as_fn_mkdir_p
   21961 if mkdir -p . 2>/dev/null; then
   21962   as_mkdir_p='mkdir -p "$as_dir"'
   21963 else
   21964   test -d ./-p && rmdir ./-p
   21965   as_mkdir_p=false
   21966 fi
   21967 
   21968 
   21969 # as_fn_executable_p FILE
   21970 # -----------------------
   21971 # Test if FILE is an executable regular file.
   21972 as_fn_executable_p ()
   21973 {
   21974   test -f "$1" && test -x "$1"
   21975 } # as_fn_executable_p
   21976 as_test_x='test -x'
   21977 as_executable_p=as_fn_executable_p
   21978 
   21979 # Sed expression to map a string onto a valid CPP name.
   21980 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   21981 
   21982 # Sed expression to map a string onto a valid variable name.
   21983 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   21984 
   21985 
   21986 exec 6>&1
   21987 ## ----------------------------------- ##
   21988 ## Main body of $CONFIG_STATUS script. ##
   21989 ## ----------------------------------- ##
   21990 _ASEOF
   21991 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   21992 
   21993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21994 # Save the log message, to keep $0 and so on meaningful, and to
   21995 # report actual input values of CONFIG_FILES etc. instead of their
   21996 # values after options handling.
   21997 ac_log="
   21998 This file was extended by BIND $as_me 9.13, which was
   21999 generated by GNU Autoconf 2.69.  Invocation command line was
   22000 
   22001   CONFIG_FILES    = $CONFIG_FILES
   22002   CONFIG_HEADERS  = $CONFIG_HEADERS
   22003   CONFIG_LINKS    = $CONFIG_LINKS
   22004   CONFIG_COMMANDS = $CONFIG_COMMANDS
   22005   $ $0 $@
   22006 
   22007 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   22008 "
   22009 
   22010 _ACEOF
   22011 
   22012 case $ac_config_files in *"
   22013 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   22014 esac
   22015 
   22016 case $ac_config_headers in *"
   22017 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   22018 esac
   22019 
   22020 
   22021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22022 # Files that config.status was made for.
   22023 config_files="$ac_config_files"
   22024 config_headers="$ac_config_headers"
   22025 config_commands="$ac_config_commands"
   22026 
   22027 _ACEOF
   22028 
   22029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22030 ac_cs_usage="\
   22031 \`$as_me' instantiates files and other configuration actions
   22032 from templates according to the current configuration.  Unless the files
   22033 and actions are specified as TAGs, all are instantiated by default.
   22034 
   22035 Usage: $0 [OPTION]... [TAG]...
   22036 
   22037   -h, --help       print this help, then exit
   22038   -V, --version    print version number and configuration settings, then exit
   22039       --config     print configuration, then exit
   22040   -q, --quiet, --silent
   22041                    do not print progress messages
   22042   -d, --debug      don't remove temporary files
   22043       --recheck    update $as_me by reconfiguring in the same conditions
   22044       --file=FILE[:TEMPLATE]
   22045                    instantiate the configuration file FILE
   22046       --header=FILE[:TEMPLATE]
   22047                    instantiate the configuration header FILE
   22048 
   22049 Configuration files:
   22050 $config_files
   22051 
   22052 Configuration headers:
   22053 $config_headers
   22054 
   22055 Configuration commands:
   22056 $config_commands
   22057 
   22058 Report bugs to <info@isc.org>.
   22059 BIND home page: <https://www.isc.org/downloads/BIND/>."
   22060 
   22061 _ACEOF
   22062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22063 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   22064 ac_cs_version="\\
   22065 BIND config.status 9.13
   22066 configured by $0, generated by GNU Autoconf 2.69,
   22067   with options \\"\$ac_cs_config\\"
   22068 
   22069 Copyright (C) 2012 Free Software Foundation, Inc.
   22070 This config.status script is free software; the Free Software Foundation
   22071 gives unlimited permission to copy, distribute and modify it."
   22072 
   22073 ac_pwd='$ac_pwd'
   22074 srcdir='$srcdir'
   22075 INSTALL='$INSTALL'
   22076 AWK='$AWK'
   22077 test -n "\$AWK" || AWK=awk
   22078 _ACEOF
   22079 
   22080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22081 # The default lists apply if the user does not specify any file.
   22082 ac_need_defaults=:
   22083 while test $# != 0
   22084 do
   22085   case $1 in
   22086   --*=?*)
   22087     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   22088     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   22089     ac_shift=:
   22090     ;;
   22091   --*=)
   22092     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   22093     ac_optarg=
   22094     ac_shift=:
   22095     ;;
   22096   *)
   22097     ac_option=$1
   22098     ac_optarg=$2
   22099     ac_shift=shift
   22100     ;;
   22101   esac
   22102 
   22103   case $ac_option in
   22104   # Handling of the options.
   22105   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   22106     ac_cs_recheck=: ;;
   22107   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   22108     $as_echo "$ac_cs_version"; exit ;;
   22109   --config | --confi | --conf | --con | --co | --c )
   22110     $as_echo "$ac_cs_config"; exit ;;
   22111   --debug | --debu | --deb | --de | --d | -d )
   22112     debug=: ;;
   22113   --file | --fil | --fi | --f )
   22114     $ac_shift
   22115     case $ac_optarg in
   22116     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22117     '') as_fn_error $? "missing file argument" ;;
   22118     esac
   22119     as_fn_append CONFIG_FILES " '$ac_optarg'"
   22120     ac_need_defaults=false;;
   22121   --header | --heade | --head | --hea )
   22122     $ac_shift
   22123     case $ac_optarg in
   22124     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22125     esac
   22126     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   22127     ac_need_defaults=false;;
   22128   --he | --h)
   22129     # Conflict between --help and --header
   22130     as_fn_error $? "ambiguous option: \`$1'
   22131 Try \`$0 --help' for more information.";;
   22132   --help | --hel | -h )
   22133     $as_echo "$ac_cs_usage"; exit ;;
   22134   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   22135   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   22136     ac_cs_silent=: ;;
   22137 
   22138   # This is an error.
   22139   -*) as_fn_error $? "unrecognized option: \`$1'
   22140 Try \`$0 --help' for more information." ;;
   22141 
   22142   *) as_fn_append ac_config_targets " $1"
   22143      ac_need_defaults=false ;;
   22144 
   22145   esac
   22146   shift
   22147 done
   22148 
   22149 ac_configure_extra_args=
   22150 
   22151 if $ac_cs_silent; then
   22152   exec 6>/dev/null
   22153   ac_configure_extra_args="$ac_configure_extra_args --silent"
   22154 fi
   22155 
   22156 _ACEOF
   22157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22158 if \$ac_cs_recheck; then
   22159   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   22160   shift
   22161   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   22162   CONFIG_SHELL='$SHELL'
   22163   export CONFIG_SHELL
   22164   exec "\$@"
   22165 fi
   22166 
   22167 _ACEOF
   22168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22169 exec 5>>config.log
   22170 {
   22171   echo
   22172   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   22173 ## Running $as_me. ##
   22174 _ASBOX
   22175   $as_echo "$ac_log"
   22176 } >&5
   22177 
   22178 _ACEOF
   22179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22180 #
   22181 # INIT-COMMANDS
   22182 #
   22183 
   22184 
   22185 # The HP-UX ksh and POSIX shell print the target directory to stdout
   22186 # if CDPATH is set.
   22187 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   22188 
   22189 sed_quote_subst='$sed_quote_subst'
   22190 double_quote_subst='$double_quote_subst'
   22191 delay_variable_subst='$delay_variable_subst'
   22192 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   22193 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   22194 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   22195 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   22196 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   22197 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   22198 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   22199 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   22200 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   22201 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   22202 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   22203 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   22204 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   22205 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   22206 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   22207 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   22208 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   22209 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   22210 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   22211 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   22212 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   22213 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   22214 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   22215 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   22216 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   22217 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   22218 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   22219 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   22220 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   22221 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   22222 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   22223 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   22224 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   22225 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   22226 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   22227 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   22228 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   22229 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   22230 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   22231 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   22232 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   22233 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   22234 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   22235 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   22236 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   22237 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   22238 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   22239 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   22240 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   22241 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   22242 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   22243 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   22244 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   22245 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   22246 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   22247 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   22248 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   22249 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   22250 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"`'
   22251 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   22252 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   22253 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   22254 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   22255 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   22256 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   22257 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   22258 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   22259 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   22260 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   22261 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   22262 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   22263 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   22264 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   22265 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   22266 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   22267 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   22268 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   22269 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   22270 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   22271 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   22272 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   22273 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   22274 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   22275 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   22276 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   22277 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   22278 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   22279 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   22280 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   22281 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   22282 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   22283 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   22284 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   22285 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   22286 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   22287 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   22288 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   22289 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   22290 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   22291 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   22292 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   22293 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   22294 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   22295 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   22296 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   22297 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   22298 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   22299 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   22300 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   22301 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   22302 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   22303 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   22304 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   22305 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   22306 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   22307 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   22308 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   22309 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   22310 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   22311 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   22312 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   22313 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   22314 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   22315 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   22316 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   22317 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   22318 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   22319 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   22320 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   22321 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   22322 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   22323 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   22324 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   22325 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   22326 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   22327 
   22328 LTCC='$LTCC'
   22329 LTCFLAGS='$LTCFLAGS'
   22330 compiler='$compiler_DEFAULT'
   22331 
   22332 # A function that is used when there is no print builtin or printf.
   22333 func_fallback_echo ()
   22334 {
   22335   eval 'cat <<_LTECHO_EOF
   22336 \$1
   22337 _LTECHO_EOF'
   22338 }
   22339 
   22340 # Quote evaled strings.
   22341 for var in SHELL \
   22342 ECHO \
   22343 PATH_SEPARATOR \
   22344 SED \
   22345 GREP \
   22346 EGREP \
   22347 FGREP \
   22348 LD \
   22349 NM \
   22350 LN_S \
   22351 lt_SP2NL \
   22352 lt_NL2SP \
   22353 reload_flag \
   22354 OBJDUMP \
   22355 deplibs_check_method \
   22356 file_magic_cmd \
   22357 file_magic_glob \
   22358 want_nocaseglob \
   22359 DLLTOOL \
   22360 sharedlib_from_linklib_cmd \
   22361 AR \
   22362 AR_FLAGS \
   22363 archiver_list_spec \
   22364 STRIP \
   22365 RANLIB \
   22366 CC \
   22367 CFLAGS \
   22368 compiler \
   22369 lt_cv_sys_global_symbol_pipe \
   22370 lt_cv_sys_global_symbol_to_cdecl \
   22371 lt_cv_sys_global_symbol_to_import \
   22372 lt_cv_sys_global_symbol_to_c_name_address \
   22373 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   22374 lt_cv_nm_interface \
   22375 nm_file_list_spec \
   22376 lt_cv_truncate_bin \
   22377 lt_prog_compiler_no_builtin_flag \
   22378 lt_prog_compiler_pic \
   22379 lt_prog_compiler_wl \
   22380 lt_prog_compiler_static \
   22381 lt_cv_prog_compiler_c_o \
   22382 need_locks \
   22383 MANIFEST_TOOL \
   22384 DSYMUTIL \
   22385 NMEDIT \
   22386 LIPO \
   22387 OTOOL \
   22388 OTOOL64 \
   22389 shrext_cmds \
   22390 export_dynamic_flag_spec \
   22391 whole_archive_flag_spec \
   22392 compiler_needs_object \
   22393 with_gnu_ld \
   22394 allow_undefined_flag \
   22395 no_undefined_flag \
   22396 hardcode_libdir_flag_spec \
   22397 hardcode_libdir_separator \
   22398 exclude_expsyms \
   22399 include_expsyms \
   22400 file_list_spec \
   22401 variables_saved_for_relink \
   22402 libname_spec \
   22403 library_names_spec \
   22404 soname_spec \
   22405 install_override_mode \
   22406 finish_eval \
   22407 old_striplib \
   22408 striplib; do
   22409     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   22410     *[\\\\\\\`\\"\\\$]*)
   22411       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   22412       ;;
   22413     *)
   22414       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   22415       ;;
   22416     esac
   22417 done
   22418 
   22419 # Double-quote double-evaled strings.
   22420 for var in reload_cmds \
   22421 old_postinstall_cmds \
   22422 old_postuninstall_cmds \
   22423 old_archive_cmds \
   22424 extract_expsyms_cmds \
   22425 old_archive_from_new_cmds \
   22426 old_archive_from_expsyms_cmds \
   22427 archive_cmds \
   22428 archive_expsym_cmds \
   22429 module_cmds \
   22430 module_expsym_cmds \
   22431 export_symbols_cmds \
   22432 prelink_cmds \
   22433 postlink_cmds \
   22434 postinstall_cmds \
   22435 postuninstall_cmds \
   22436 finish_cmds \
   22437 sys_lib_search_path_spec \
   22438 configure_time_dlsearch_path \
   22439 configure_time_lt_sys_library_path; do
   22440     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   22441     *[\\\\\\\`\\"\\\$]*)
   22442       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   22443       ;;
   22444     *)
   22445       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   22446       ;;
   22447     esac
   22448 done
   22449 
   22450 ac_aux_dir='$ac_aux_dir'
   22451 
   22452 # See if we are running on zsh, and set the options that allow our
   22453 # commands through without removal of \ escapes INIT.
   22454 if test -n "\${ZSH_VERSION+set}"; then
   22455    setopt NO_GLOB_SUBST
   22456 fi
   22457 
   22458 
   22459     PACKAGE='$PACKAGE'
   22460     VERSION='$VERSION'
   22461     RM='$RM'
   22462     ofile='$ofile'
   22463 
   22464 
   22465 
   22466 
   22467 _ACEOF
   22468 
   22469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22470 
   22471 # Handling of arguments.
   22472 for ac_config_target in $ac_config_targets
   22473 do
   22474   case $ac_config_target in
   22475     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   22476     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   22477     "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
   22478     "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
   22479     "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
   22480     "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
   22481     "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
   22482     "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
   22483     "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
   22484     "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
   22485     "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
   22486     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   22487     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
   22488     "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
   22489     "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
   22490     "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
   22491     "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
   22492     "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
   22493     "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
   22494     "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
   22495     "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
   22496     "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
   22497     "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
   22498     "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
   22499     "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
   22500     "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
   22501     "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
   22502     "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
   22503     "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
   22504     "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
   22505     "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
   22506     "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
   22507     "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
   22508     "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
   22509     "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
   22510     "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
   22511     "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
   22512     "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
   22513     "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
   22514     "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
   22515     "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
   22516     "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
   22517     "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
   22518     "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
   22519     "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
   22520     "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
   22521     "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
   22522     "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
   22523     "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
   22524     "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
   22525     "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
   22526     "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
   22527     "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
   22528     "bin/tests/system/dlz/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlz/prereq.sh" ;;
   22529     "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
   22530     "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
   22531     "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
   22532     "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
   22533     "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
   22534     "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
   22535     "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
   22536     "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
   22537     "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
   22538     "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;;
   22539     "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;;
   22540     "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
   22541     "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
   22542     "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
   22543     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   22544     "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
   22545     "doc/arm/noteversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/noteversion.xml" ;;
   22546     "doc/arm/pkgversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/pkgversion.xml" ;;
   22547     "doc/arm/releaseinfo.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/releaseinfo.xml" ;;
   22548     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
   22549     "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
   22550     "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
   22551     "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
   22552     "doc/tex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex/Makefile" ;;
   22553     "doc/tex/armstyle.sty") CONFIG_FILES="$CONFIG_FILES doc/tex/armstyle.sty" ;;
   22554     "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
   22555     "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
   22556     "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
   22557     "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
   22558     "doc/xsl/isc-notes-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-notes-html.xsl" ;;
   22559     "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
   22560     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
   22561     "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
   22562     "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
   22563     "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
   22564     "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
   22565     "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
   22566     "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
   22567     "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
   22568     "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
   22569     "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
   22570     "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
   22571     "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
   22572     "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
   22573     "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
   22574     "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
   22575     "lib/isc/pthreads/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/Makefile" ;;
   22576     "lib/isc/pthreads/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/Makefile" ;;
   22577     "lib/isc/pthreads/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/isc/Makefile" ;;
   22578     "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
   22579     "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
   22580     "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
   22581     "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
   22582     "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
   22583     "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
   22584     "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
   22585     "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
   22586     "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
   22587     "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
   22588     "lib/isc/unix/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/pkcs11/Makefile" ;;
   22589     "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
   22590     "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
   22591     "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
   22592     "lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;;
   22593     "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
   22594     "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
   22595     "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
   22596     "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
   22597     "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
   22598     "lib/ns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/Makefile" ;;
   22599     "lib/ns/include/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/ns/Makefile" ;;
   22600     "lib/ns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/tests/Makefile" ;;
   22601     "lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;;
   22602     "lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
   22603     "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
   22604     "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
   22605 
   22606   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   22607   esac
   22608 done
   22609 
   22610 
   22611 # If the user did not use the arguments to specify the items to instantiate,
   22612 # then the envvar interface is used.  Set only those that are not.
   22613 # We use the long form for the default assignment because of an extremely
   22614 # bizarre bug on SunOS 4.1.3.
   22615 if $ac_need_defaults; then
   22616   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   22617   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   22618   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   22619 fi
   22620 
   22621 # Have a temporary directory for convenience.  Make it in the build tree
   22622 # simply because there is no reason against having it here, and in addition,
   22623 # creating and moving files from /tmp can sometimes cause problems.
   22624 # Hook for its removal unless debugging.
   22625 # Note that there is a small window in which the directory will not be cleaned:
   22626 # after its creation but before its name has been assigned to `$tmp'.
   22627 $debug ||
   22628 {
   22629   tmp= ac_tmp=
   22630   trap 'exit_status=$?
   22631   : "${ac_tmp:=$tmp}"
   22632   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   22633 ' 0
   22634   trap 'as_fn_exit 1' 1 2 13 15
   22635 }
   22636 # Create a (secure) tmp directory for tmp files.
   22637 
   22638 {
   22639   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   22640   test -d "$tmp"
   22641 }  ||
   22642 {
   22643   tmp=./conf$$-$RANDOM
   22644   (umask 077 && mkdir "$tmp")
   22645 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   22646 ac_tmp=$tmp
   22647 
   22648 # Set up the scripts for CONFIG_FILES section.
   22649 # No need to generate them if there are no CONFIG_FILES.
   22650 # This happens for instance with `./config.status config.h'.
   22651 if test -n "$CONFIG_FILES"; then
   22652 
   22653 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   22654   ac_cs_awk_getline=:
   22655   ac_cs_awk_pipe_init=
   22656   ac_cs_awk_read_file='
   22657       while ((getline aline < (F[key])) > 0)
   22658 	print(aline)
   22659       close(F[key])'
   22660   ac_cs_awk_pipe_fini=
   22661 else
   22662   ac_cs_awk_getline=false
   22663   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   22664   ac_cs_awk_read_file='
   22665       print "|#_!!_#|"
   22666       print "cat " F[key] " &&"
   22667       '$ac_cs_awk_pipe_init
   22668   # The final `:' finishes the AND list.
   22669   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   22670 fi
   22671 ac_cr=`echo X | tr X '\015'`
   22672 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   22673 # But we know of no other shell where ac_cr would be empty at this
   22674 # point, so we can use a bashism as a fallback.
   22675 if test "x$ac_cr" = x; then
   22676   eval ac_cr=\$\'\\r\'
   22677 fi
   22678 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   22679 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   22680   ac_cs_awk_cr='\\r'
   22681 else
   22682   ac_cs_awk_cr=$ac_cr
   22683 fi
   22684 
   22685 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   22686 _ACEOF
   22687 
   22688 # Create commands to substitute file output variables.
   22689 {
   22690   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   22691   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   22692   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   22693   echo "_ACAWK" &&
   22694   echo "_ACEOF"
   22695 } >conf$$files.sh &&
   22696 . ./conf$$files.sh ||
   22697   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22698 rm -f conf$$files.sh
   22699 
   22700 {
   22701   echo "cat >conf$$subs.awk <<_ACEOF" &&
   22702   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   22703   echo "_ACEOF"
   22704 } >conf$$subs.sh ||
   22705   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22706 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   22707 ac_delim='%!_!# '
   22708 for ac_last_try in false false false false false :; do
   22709   . ./conf$$subs.sh ||
   22710     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22711 
   22712   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   22713   if test $ac_delim_n = $ac_delim_num; then
   22714     break
   22715   elif $ac_last_try; then
   22716     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   22717   else
   22718     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   22719   fi
   22720 done
   22721 rm -f conf$$subs.sh
   22722 
   22723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22724 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   22725 _ACEOF
   22726 sed -n '
   22727 h
   22728 s/^/S["/; s/!.*/"]=/
   22729 p
   22730 g
   22731 s/^[^!]*!//
   22732 :repl
   22733 t repl
   22734 s/'"$ac_delim"'$//
   22735 t delim
   22736 :nl
   22737 h
   22738 s/\(.\{148\}\)..*/\1/
   22739 t more1
   22740 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   22741 p
   22742 n
   22743 b repl
   22744 :more1
   22745 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   22746 p
   22747 g
   22748 s/.\{148\}//
   22749 t nl
   22750 :delim
   22751 h
   22752 s/\(.\{148\}\)..*/\1/
   22753 t more2
   22754 s/["\\]/\\&/g; s/^/"/; s/$/"/
   22755 p
   22756 b
   22757 :more2
   22758 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   22759 p
   22760 g
   22761 s/.\{148\}//
   22762 t delim
   22763 ' <conf$$subs.awk | sed '
   22764 /^[^""]/{
   22765   N
   22766   s/\n//
   22767 }
   22768 ' >>$CONFIG_STATUS || ac_write_fail=1
   22769 rm -f conf$$subs.awk
   22770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22771 _ACAWK
   22772 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   22773   for (key in S) S_is_set[key] = 1
   22774   FS = ""
   22775   \$ac_cs_awk_pipe_init
   22776 }
   22777 {
   22778   line = $ 0
   22779   nfields = split(line, field, "@")
   22780   substed = 0
   22781   len = length(field[1])
   22782   for (i = 2; i < nfields; i++) {
   22783     key = field[i]
   22784     keylen = length(key)
   22785     if (S_is_set[key]) {
   22786       value = S[key]
   22787       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   22788       len += length(value) + length(field[++i])
   22789       substed = 1
   22790     } else
   22791       len += 1 + keylen
   22792   }
   22793   if (nfields == 3 && !substed) {
   22794     key = field[2]
   22795     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   22796       \$ac_cs_awk_read_file
   22797       next
   22798     }
   22799   }
   22800   print line
   22801 }
   22802 \$ac_cs_awk_pipe_fini
   22803 _ACAWK
   22804 _ACEOF
   22805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22806 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   22807   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   22808 else
   22809   cat
   22810 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   22811   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   22812 _ACEOF
   22813 
   22814 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   22815 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   22816 # trailing colons and then remove the whole line if VPATH becomes empty
   22817 # (actually we leave an empty line to preserve line numbers).
   22818 if test "x$srcdir" = x.; then
   22819   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   22820 h
   22821 s///
   22822 s/^/:/
   22823 s/[	 ]*$/:/
   22824 s/:\$(srcdir):/:/g
   22825 s/:\${srcdir}:/:/g
   22826 s/:@srcdir@:/:/g
   22827 s/^:*//
   22828 s/:*$//
   22829 x
   22830 s/\(=[	 ]*\).*/\1/
   22831 G
   22832 s/\n//
   22833 s/^[^=]*=[	 ]*$//
   22834 }'
   22835 fi
   22836 
   22837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22838 fi # test -n "$CONFIG_FILES"
   22839 
   22840 # Set up the scripts for CONFIG_HEADERS section.
   22841 # No need to generate them if there are no CONFIG_HEADERS.
   22842 # This happens for instance with `./config.status Makefile'.
   22843 if test -n "$CONFIG_HEADERS"; then
   22844 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   22845 BEGIN {
   22846 _ACEOF
   22847 
   22848 # Transform confdefs.h into an awk script `defines.awk', embedded as
   22849 # here-document in config.status, that substitutes the proper values into
   22850 # config.h.in to produce config.h.
   22851 
   22852 # Create a delimiter string that does not exist in confdefs.h, to ease
   22853 # handling of long lines.
   22854 ac_delim='%!_!# '
   22855 for ac_last_try in false false :; do
   22856   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   22857   if test -z "$ac_tt"; then
   22858     break
   22859   elif $ac_last_try; then
   22860     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   22861   else
   22862     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   22863   fi
   22864 done
   22865 
   22866 # For the awk script, D is an array of macro values keyed by name,
   22867 # likewise P contains macro parameters if any.  Preserve backslash
   22868 # newline sequences.
   22869 
   22870 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   22871 sed -n '
   22872 s/.\{148\}/&'"$ac_delim"'/g
   22873 t rset
   22874 :rset
   22875 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   22876 t def
   22877 d
   22878 :def
   22879 s/\\$//
   22880 t bsnl
   22881 s/["\\]/\\&/g
   22882 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   22883 D["\1"]=" \3"/p
   22884 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   22885 d
   22886 :bsnl
   22887 s/["\\]/\\&/g
   22888 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   22889 D["\1"]=" \3\\\\\\n"\\/p
   22890 t cont
   22891 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   22892 t cont
   22893 d
   22894 :cont
   22895 n
   22896 s/.\{148\}/&'"$ac_delim"'/g
   22897 t clear
   22898 :clear
   22899 s/\\$//
   22900 t bsnlc
   22901 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   22902 d
   22903 :bsnlc
   22904 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   22905 b cont
   22906 ' <confdefs.h | sed '
   22907 s/'"$ac_delim"'/"\\\
   22908 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   22909 
   22910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22911   for (key in D) D_is_set[key] = 1
   22912   FS = ""
   22913 }
   22914 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   22915   line = \$ 0
   22916   split(line, arg, " ")
   22917   if (arg[1] == "#") {
   22918     defundef = arg[2]
   22919     mac1 = arg[3]
   22920   } else {
   22921     defundef = substr(arg[1], 2)
   22922     mac1 = arg[2]
   22923   }
   22924   split(mac1, mac2, "(") #)
   22925   macro = mac2[1]
   22926   prefix = substr(line, 1, index(line, defundef) - 1)
   22927   if (D_is_set[macro]) {
   22928     # Preserve the white space surrounding the "#".
   22929     print prefix "define", macro P[macro] D[macro]
   22930     next
   22931   } else {
   22932     # Replace #undef with comments.  This is necessary, for example,
   22933     # in the case of _POSIX_SOURCE, which is predefined and required
   22934     # on some systems where configure will not decide to define it.
   22935     if (defundef == "undef") {
   22936       print "/*", prefix defundef, macro, "*/"
   22937       next
   22938     }
   22939   }
   22940 }
   22941 { print }
   22942 _ACAWK
   22943 _ACEOF
   22944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22945   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   22946 fi # test -n "$CONFIG_HEADERS"
   22947 
   22948 
   22949 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   22950 shift
   22951 for ac_tag
   22952 do
   22953   case $ac_tag in
   22954   :[FHLC]) ac_mode=$ac_tag; continue;;
   22955   esac
   22956   case $ac_mode$ac_tag in
   22957   :[FHL]*:*);;
   22958   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   22959   :[FH]-) ac_tag=-:-;;
   22960   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   22961   esac
   22962   ac_save_IFS=$IFS
   22963   IFS=:
   22964   set x $ac_tag
   22965   IFS=$ac_save_IFS
   22966   shift
   22967   ac_file=$1
   22968   shift
   22969 
   22970   case $ac_mode in
   22971   :L) ac_source=$1;;
   22972   :[FH])
   22973     ac_file_inputs=
   22974     for ac_f
   22975     do
   22976       case $ac_f in
   22977       -) ac_f="$ac_tmp/stdin";;
   22978       *) # Look for the file first in the build tree, then in the source tree
   22979 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   22980 	 # because $ac_f cannot contain `:'.
   22981 	 test -f "$ac_f" ||
   22982 	   case $ac_f in
   22983 	   [\\/$]*) false;;
   22984 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   22985 	   esac ||
   22986 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   22987       esac
   22988       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   22989       as_fn_append ac_file_inputs " '$ac_f'"
   22990     done
   22991 
   22992     # Let's still pretend it is `configure' which instantiates (i.e., don't
   22993     # use $as_me), people would be surprised to read:
   22994     #    /* config.h.  Generated by config.status.  */
   22995     configure_input='Generated from '`
   22996 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   22997 	`' by configure.'
   22998     if test x"$ac_file" != x-; then
   22999       configure_input="$ac_file.  $configure_input"
   23000       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   23001 $as_echo "$as_me: creating $ac_file" >&6;}
   23002     fi
   23003     # Neutralize special characters interpreted by sed in replacement strings.
   23004     case $configure_input in #(
   23005     *\&* | *\|* | *\\* )
   23006        ac_sed_conf_input=`$as_echo "$configure_input" |
   23007        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   23008     *) ac_sed_conf_input=$configure_input;;
   23009     esac
   23010 
   23011     case $ac_tag in
   23012     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   23013       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   23014     esac
   23015     ;;
   23016   esac
   23017 
   23018   ac_dir=`$as_dirname -- "$ac_file" ||
   23019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   23020 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   23021 	 X"$ac_file" : 'X\(//\)$' \| \
   23022 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   23023 $as_echo X"$ac_file" |
   23024     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   23025 	    s//\1/
   23026 	    q
   23027 	  }
   23028 	  /^X\(\/\/\)[^/].*/{
   23029 	    s//\1/
   23030 	    q
   23031 	  }
   23032 	  /^X\(\/\/\)$/{
   23033 	    s//\1/
   23034 	    q
   23035 	  }
   23036 	  /^X\(\/\).*/{
   23037 	    s//\1/
   23038 	    q
   23039 	  }
   23040 	  s/.*/./; q'`
   23041   as_dir="$ac_dir"; as_fn_mkdir_p
   23042   ac_builddir=.
   23043 
   23044 case "$ac_dir" in
   23045 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   23046 *)
   23047   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   23048   # A ".." for each directory in $ac_dir_suffix.
   23049   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   23050   case $ac_top_builddir_sub in
   23051   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   23052   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   23053   esac ;;
   23054 esac
   23055 ac_abs_top_builddir=$ac_pwd
   23056 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   23057 # for backward compatibility:
   23058 ac_top_builddir=$ac_top_build_prefix
   23059 
   23060 case $srcdir in
   23061   .)  # We are building in place.
   23062     ac_srcdir=.
   23063     ac_top_srcdir=$ac_top_builddir_sub
   23064     ac_abs_top_srcdir=$ac_pwd ;;
   23065   [\\/]* | ?:[\\/]* )  # Absolute name.
   23066     ac_srcdir=$srcdir$ac_dir_suffix;
   23067     ac_top_srcdir=$srcdir
   23068     ac_abs_top_srcdir=$srcdir ;;
   23069   *) # Relative name.
   23070     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   23071     ac_top_srcdir=$ac_top_build_prefix$srcdir
   23072     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   23073 esac
   23074 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   23075 
   23076 
   23077   case $ac_mode in
   23078   :F)
   23079   #
   23080   # CONFIG_FILE
   23081   #
   23082 
   23083   case $INSTALL in
   23084   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   23085   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   23086   esac
   23087 _ACEOF
   23088 
   23089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23090 # If the template does not know about datarootdir, expand it.
   23091 # FIXME: This hack should be removed a few years after 2.60.
   23092 ac_datarootdir_hack=; ac_datarootdir_seen=
   23093 ac_sed_dataroot='
   23094 /datarootdir/ {
   23095   p
   23096   q
   23097 }
   23098 /@datadir@/p
   23099 /@docdir@/p
   23100 /@infodir@/p
   23101 /@localedir@/p
   23102 /@mandir@/p'
   23103 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   23104 *datarootdir*) ac_datarootdir_seen=yes;;
   23105 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   23106   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   23107 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   23108 _ACEOF
   23109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23110   ac_datarootdir_hack='
   23111   s&@datadir@&$datadir&g
   23112   s&@docdir@&$docdir&g
   23113   s&@infodir@&$infodir&g
   23114   s&@localedir@&$localedir&g
   23115   s&@mandir@&$mandir&g
   23116   s&\\\${datarootdir}&$datarootdir&g' ;;
   23117 esac
   23118 _ACEOF
   23119 
   23120 # Neutralize VPATH when `$srcdir' = `.'.
   23121 # Shell code in configure.ac might set extrasub.
   23122 # FIXME: do we really want to maintain this feature?
   23123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   23124 ac_sed_extra="$ac_vpsub
   23125 $extrasub
   23126 _ACEOF
   23127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   23128 :t
   23129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   23130 s|@configure_input@|$ac_sed_conf_input|;t t
   23131 s&@top_builddir@&$ac_top_builddir_sub&;t t
   23132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   23133 s&@srcdir@&$ac_srcdir&;t t
   23134 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   23135 s&@top_srcdir@&$ac_top_srcdir&;t t
   23136 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   23137 s&@builddir@&$ac_builddir&;t t
   23138 s&@abs_builddir@&$ac_abs_builddir&;t t
   23139 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   23140 s&@INSTALL@&$ac_INSTALL&;t t
   23141 $ac_datarootdir_hack
   23142 "
   23143 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   23144 if $ac_cs_awk_getline; then
   23145   $AWK -f "$ac_tmp/subs.awk"
   23146 else
   23147   $AWK -f "$ac_tmp/subs.awk" | $SHELL
   23148 fi \
   23149   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23150 
   23151 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   23152   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   23153   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   23154       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   23155   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   23156 which seems to be undefined.  Please make sure it is defined" >&5
   23157 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   23158 which seems to be undefined.  Please make sure it is defined" >&2;}
   23159 
   23160   rm -f "$ac_tmp/stdin"
   23161   case $ac_file in
   23162   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   23163   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   23164   esac \
   23165   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23166  ;;
   23167   :H)
   23168   #
   23169   # CONFIG_HEADER
   23170   #
   23171   if test x"$ac_file" != x-; then
   23172     {
   23173       $as_echo "/* $configure_input  */" \
   23174       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   23175     } >"$ac_tmp/config.h" \
   23176       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23177     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   23178       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   23179 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   23180     else
   23181       rm -f "$ac_file"
   23182       mv "$ac_tmp/config.h" "$ac_file" \
   23183 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   23184     fi
   23185   else
   23186     $as_echo "/* $configure_input  */" \
   23187       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   23188       || as_fn_error $? "could not create -" "$LINENO" 5
   23189   fi
   23190  ;;
   23191 
   23192   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   23193 $as_echo "$as_me: executing $ac_file commands" >&6;}
   23194  ;;
   23195   esac
   23196 
   23197 
   23198   case $ac_file$ac_mode in
   23199     "libtool":C)
   23200 
   23201     # See if we are running on zsh, and set the options that allow our
   23202     # commands through without removal of \ escapes.
   23203     if test -n "${ZSH_VERSION+set}"; then
   23204       setopt NO_GLOB_SUBST
   23205     fi
   23206 
   23207     cfgfile=${ofile}T
   23208     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   23209     $RM "$cfgfile"
   23210 
   23211     cat <<_LT_EOF >> "$cfgfile"
   23212 #! $SHELL
   23213 # Generated automatically by $as_me ($PACKAGE) $VERSION
   23214 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   23215 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   23216 
   23217 # Provide generalized library-building support services.
   23218 # Written by Gordon Matzigkeit, 1996
   23219 
   23220 # Copyright (C) 2014 Free Software Foundation, Inc.
   23221 # This is free software; see the source for copying conditions.  There is NO
   23222 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   23223 
   23224 # GNU Libtool is free software; you can redistribute it and/or modify
   23225 # it under the terms of the GNU General Public License as published by
   23226 # the Free Software Foundation; either version 2 of of the License, or
   23227 # (at your option) any later version.
   23228 #
   23229 # As a special exception to the GNU General Public License, if you
   23230 # distribute this file as part of a program or library that is built
   23231 # using GNU Libtool, you may include this file under the  same
   23232 # distribution terms that you use for the rest of that program.
   23233 #
   23234 # GNU Libtool is distributed in the hope that it will be useful, but
   23235 # WITHOUT ANY WARRANTY; without even the implied warranty of
   23236 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   23237 # GNU General Public License for more details.
   23238 #
   23239 # You should have received a copy of the GNU General Public License
   23240 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   23241 
   23242 
   23243 # The names of the tagged configurations supported by this script.
   23244 available_tags=''
   23245 
   23246 # Configured defaults for sys_lib_dlsearch_path munging.
   23247 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   23248 
   23249 # ### BEGIN LIBTOOL CONFIG
   23250 
   23251 # Which release of libtool.m4 was used?
   23252 macro_version=$macro_version
   23253 macro_revision=$macro_revision
   23254 
   23255 # Whether or not to build shared libraries.
   23256 build_libtool_libs=$enable_shared
   23257 
   23258 # Whether or not to build static libraries.
   23259 build_old_libs=$enable_static
   23260 
   23261 # What type of objects to build.
   23262 pic_mode=$pic_mode
   23263 
   23264 # Whether or not to optimize for fast installation.
   23265 fast_install=$enable_fast_install
   23266 
   23267 # Shared archive member basename,for filename based shared library versioning on AIX.
   23268 shared_archive_member_spec=$shared_archive_member_spec
   23269 
   23270 # Shell to use when invoking shell scripts.
   23271 SHELL=$lt_SHELL
   23272 
   23273 # An echo program that protects backslashes.
   23274 ECHO=$lt_ECHO
   23275 
   23276 # The PATH separator for the build system.
   23277 PATH_SEPARATOR=$lt_PATH_SEPARATOR
   23278 
   23279 # The host system.
   23280 host_alias=$host_alias
   23281 host=$host
   23282 host_os=$host_os
   23283 
   23284 # The build system.
   23285 build_alias=$build_alias
   23286 build=$build
   23287 build_os=$build_os
   23288 
   23289 # A sed program that does not truncate output.
   23290 SED=$lt_SED
   23291 
   23292 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   23293 Xsed="\$SED -e 1s/^X//"
   23294 
   23295 # A grep program that handles long lines.
   23296 GREP=$lt_GREP
   23297 
   23298 # An ERE matcher.
   23299 EGREP=$lt_EGREP
   23300 
   23301 # A literal string matcher.
   23302 FGREP=$lt_FGREP
   23303 
   23304 # A BSD- or MS-compatible name lister.
   23305 NM=$lt_NM
   23306 
   23307 # Whether we need soft or hard links.
   23308 LN_S=$lt_LN_S
   23309 
   23310 # What is the maximum length of a command?
   23311 max_cmd_len=$max_cmd_len
   23312 
   23313 # Object file suffix (normally "o").
   23314 objext=$ac_objext
   23315 
   23316 # Executable file suffix (normally "").
   23317 exeext=$exeext
   23318 
   23319 # whether the shell understands "unset".
   23320 lt_unset=$lt_unset
   23321 
   23322 # turn spaces into newlines.
   23323 SP2NL=$lt_lt_SP2NL
   23324 
   23325 # turn newlines into spaces.
   23326 NL2SP=$lt_lt_NL2SP
   23327 
   23328 # convert \$build file names to \$host format.
   23329 to_host_file_cmd=$lt_cv_to_host_file_cmd
   23330 
   23331 # convert \$build files to toolchain format.
   23332 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   23333 
   23334 # An object symbol dumper.
   23335 OBJDUMP=$lt_OBJDUMP
   23336 
   23337 # Method to check whether dependent libraries are shared objects.
   23338 deplibs_check_method=$lt_deplibs_check_method
   23339 
   23340 # Command to use when deplibs_check_method = "file_magic".
   23341 file_magic_cmd=$lt_file_magic_cmd
   23342 
   23343 # How to find potential files when deplibs_check_method = "file_magic".
   23344 file_magic_glob=$lt_file_magic_glob
   23345 
   23346 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   23347 want_nocaseglob=$lt_want_nocaseglob
   23348 
   23349 # DLL creation program.
   23350 DLLTOOL=$lt_DLLTOOL
   23351 
   23352 # Command to associate shared and link libraries.
   23353 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   23354 
   23355 # The archiver.
   23356 AR=$lt_AR
   23357 
   23358 # Flags to create an archive.
   23359 AR_FLAGS=$lt_AR_FLAGS
   23360 
   23361 # How to feed a file listing to the archiver.
   23362 archiver_list_spec=$lt_archiver_list_spec
   23363 
   23364 # A symbol stripping program.
   23365 STRIP=$lt_STRIP
   23366 
   23367 # Commands used to install an old-style archive.
   23368 RANLIB=$lt_RANLIB
   23369 old_postinstall_cmds=$lt_old_postinstall_cmds
   23370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   23371 
   23372 # Whether to use a lock for old archive extraction.
   23373 lock_old_archive_extraction=$lock_old_archive_extraction
   23374 
   23375 # A C compiler.
   23376 LTCC=$lt_CC
   23377 
   23378 # LTCC compiler flags.
   23379 LTCFLAGS=$lt_CFLAGS
   23380 
   23381 # Take the output of nm and produce a listing of raw symbols and C names.
   23382 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   23383 
   23384 # Transform the output of nm in a proper C declaration.
   23385 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   23386 
   23387 # Transform the output of nm into a list of symbols to manually relocate.
   23388 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   23389 
   23390 # Transform the output of nm in a C name address pair.
   23391 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   23392 
   23393 # Transform the output of nm in a C name address pair when lib prefix is needed.
   23394 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   23395 
   23396 # The name lister interface.
   23397 nm_interface=$lt_lt_cv_nm_interface
   23398 
   23399 # Specify filename containing input files for \$NM.
   23400 nm_file_list_spec=$lt_nm_file_list_spec
   23401 
   23402 # The root where to search for dependent libraries,and where our libraries should be installed.
   23403 lt_sysroot=$lt_sysroot
   23404 
   23405 # Command to truncate a binary pipe.
   23406 lt_truncate_bin=$lt_lt_cv_truncate_bin
   23407 
   23408 # The name of the directory that contains temporary libtool files.
   23409 objdir=$objdir
   23410 
   23411 # Used to examine libraries when file_magic_cmd begins with "file".
   23412 MAGIC_CMD=$MAGIC_CMD
   23413 
   23414 # Must we lock files when doing compilation?
   23415 need_locks=$lt_need_locks
   23416 
   23417 # Manifest tool.
   23418 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   23419 
   23420 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   23421 DSYMUTIL=$lt_DSYMUTIL
   23422 
   23423 # Tool to change global to local symbols on Mac OS X.
   23424 NMEDIT=$lt_NMEDIT
   23425 
   23426 # Tool to manipulate fat objects and archives on Mac OS X.
   23427 LIPO=$lt_LIPO
   23428 
   23429 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   23430 OTOOL=$lt_OTOOL
   23431 
   23432 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   23433 OTOOL64=$lt_OTOOL64
   23434 
   23435 # Old archive suffix (normally "a").
   23436 libext=$libext
   23437 
   23438 # Shared library suffix (normally ".so").
   23439 shrext_cmds=$lt_shrext_cmds
   23440 
   23441 # The commands to extract the exported symbol list from a shared archive.
   23442 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   23443 
   23444 # Variables whose values should be saved in libtool wrapper scripts and
   23445 # restored at link time.
   23446 variables_saved_for_relink=$lt_variables_saved_for_relink
   23447 
   23448 # Do we need the "lib" prefix for modules?
   23449 need_lib_prefix=$need_lib_prefix
   23450 
   23451 # Do we need a version for libraries?
   23452 need_version=$need_version
   23453 
   23454 # Library versioning type.
   23455 version_type=$version_type
   23456 
   23457 # Shared library runtime path variable.
   23458 runpath_var=$runpath_var
   23459 
   23460 # Shared library path variable.
   23461 shlibpath_var=$shlibpath_var
   23462 
   23463 # Is shlibpath searched before the hard-coded library search path?
   23464 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   23465 
   23466 # Format of library name prefix.
   23467 libname_spec=$lt_libname_spec
   23468 
   23469 # List of archive names.  First name is the real one, the rest are links.
   23470 # The last name is the one that the linker finds with -lNAME
   23471 library_names_spec=$lt_library_names_spec
   23472 
   23473 # The coded name of the library, if different from the real name.
   23474 soname_spec=$lt_soname_spec
   23475 
   23476 # Permission mode override for installation of shared libraries.
   23477 install_override_mode=$lt_install_override_mode
   23478 
   23479 # Command to use after installation of a shared archive.
   23480 postinstall_cmds=$lt_postinstall_cmds
   23481 
   23482 # Command to use after uninstallation of a shared archive.
   23483 postuninstall_cmds=$lt_postuninstall_cmds
   23484 
   23485 # Commands used to finish a libtool library installation in a directory.
   23486 finish_cmds=$lt_finish_cmds
   23487 
   23488 # As "finish_cmds", except a single script fragment to be evaled but
   23489 # not shown.
   23490 finish_eval=$lt_finish_eval
   23491 
   23492 # Whether we should hardcode library paths into libraries.
   23493 hardcode_into_libs=$hardcode_into_libs
   23494 
   23495 # Compile-time system search path for libraries.
   23496 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   23497 
   23498 # Detected run-time system search path for libraries.
   23499 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   23500 
   23501 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   23502 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   23503 
   23504 # Whether dlopen is supported.
   23505 dlopen_support=$enable_dlopen
   23506 
   23507 # Whether dlopen of programs is supported.
   23508 dlopen_self=$enable_dlopen_self
   23509 
   23510 # Whether dlopen of statically linked programs is supported.
   23511 dlopen_self_static=$enable_dlopen_self_static
   23512 
   23513 # Commands to strip libraries.
   23514 old_striplib=$lt_old_striplib
   23515 striplib=$lt_striplib
   23516 
   23517 
   23518 # The linker used to build libraries.
   23519 LD=$lt_LD
   23520 
   23521 # How to create reloadable object files.
   23522 reload_flag=$lt_reload_flag
   23523 reload_cmds=$lt_reload_cmds
   23524 
   23525 # Commands used to build an old-style archive.
   23526 old_archive_cmds=$lt_old_archive_cmds
   23527 
   23528 # A language specific compiler.
   23529 CC=$lt_compiler
   23530 
   23531 # Is the compiler the GNU compiler?
   23532 with_gcc=$GCC
   23533 
   23534 # Compiler flag to turn off builtin functions.
   23535 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   23536 
   23537 # Additional compiler flags for building library objects.
   23538 pic_flag=$lt_lt_prog_compiler_pic
   23539 
   23540 # How to pass a linker flag through the compiler.
   23541 wl=$lt_lt_prog_compiler_wl
   23542 
   23543 # Compiler flag to prevent dynamic linking.
   23544 link_static_flag=$lt_lt_prog_compiler_static
   23545 
   23546 # Does compiler simultaneously support -c and -o options?
   23547 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   23548 
   23549 # Whether or not to add -lc for building shared libraries.
   23550 build_libtool_need_lc=$archive_cmds_need_lc
   23551 
   23552 # Whether or not to disallow shared libs when runtime libs are static.
   23553 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   23554 
   23555 # Compiler flag to allow reflexive dlopens.
   23556 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   23557 
   23558 # Compiler flag to generate shared objects directly from archives.
   23559 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   23560 
   23561 # Whether the compiler copes with passing no objects directly.
   23562 compiler_needs_object=$lt_compiler_needs_object
   23563 
   23564 # Create an old-style archive from a shared archive.
   23565 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   23566 
   23567 # Create a temporary old-style archive to link instead of a shared archive.
   23568 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   23569 
   23570 # Commands used to build a shared archive.
   23571 archive_cmds=$lt_archive_cmds
   23572 archive_expsym_cmds=$lt_archive_expsym_cmds
   23573 
   23574 # Commands used to build a loadable module if different from building
   23575 # a shared archive.
   23576 module_cmds=$lt_module_cmds
   23577 module_expsym_cmds=$lt_module_expsym_cmds
   23578 
   23579 # Whether we are building with GNU ld or not.
   23580 with_gnu_ld=$lt_with_gnu_ld
   23581 
   23582 # Flag that allows shared libraries with undefined symbols to be built.
   23583 allow_undefined_flag=$lt_allow_undefined_flag
   23584 
   23585 # Flag that enforces no undefined symbols.
   23586 no_undefined_flag=$lt_no_undefined_flag
   23587 
   23588 # Flag to hardcode \$libdir into a binary during linking.
   23589 # This must work even if \$libdir does not exist
   23590 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   23591 
   23592 # Whether we need a single "-rpath" flag with a separated argument.
   23593 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   23594 
   23595 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   23596 # DIR into the resulting binary.
   23597 hardcode_direct=$hardcode_direct
   23598 
   23599 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   23600 # DIR into the resulting binary and the resulting library dependency is
   23601 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
   23602 # library is relocated.
   23603 hardcode_direct_absolute=$hardcode_direct_absolute
   23604 
   23605 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   23606 # into the resulting binary.
   23607 hardcode_minus_L=$hardcode_minus_L
   23608 
   23609 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   23610 # into the resulting binary.
   23611 hardcode_shlibpath_var=$hardcode_shlibpath_var
   23612 
   23613 # Set to "yes" if building a shared library automatically hardcodes DIR
   23614 # into the library and all subsequent libraries and executables linked
   23615 # against it.
   23616 hardcode_automatic=$hardcode_automatic
   23617 
   23618 # Set to yes if linker adds runtime paths of dependent libraries
   23619 # to runtime path list.
   23620 inherit_rpath=$inherit_rpath
   23621 
   23622 # Whether libtool must link a program against all its dependency libraries.
   23623 link_all_deplibs=$link_all_deplibs
   23624 
   23625 # Set to "yes" if exported symbols are required.
   23626 always_export_symbols=$always_export_symbols
   23627 
   23628 # The commands to list exported symbols.
   23629 export_symbols_cmds=$lt_export_symbols_cmds
   23630 
   23631 # Symbols that should not be listed in the preloaded symbols.
   23632 exclude_expsyms=$lt_exclude_expsyms
   23633 
   23634 # Symbols that must always be exported.
   23635 include_expsyms=$lt_include_expsyms
   23636 
   23637 # Commands necessary for linking programs (against libraries) with templates.
   23638 prelink_cmds=$lt_prelink_cmds
   23639 
   23640 # Commands necessary for finishing linking programs.
   23641 postlink_cmds=$lt_postlink_cmds
   23642 
   23643 # Specify filename containing input files.
   23644 file_list_spec=$lt_file_list_spec
   23645 
   23646 # How to hardcode a shared library path into an executable.
   23647 hardcode_action=$hardcode_action
   23648 
   23649 # ### END LIBTOOL CONFIG
   23650 
   23651 _LT_EOF
   23652 
   23653     cat <<'_LT_EOF' >> "$cfgfile"
   23654 
   23655 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   23656 
   23657 # func_munge_path_list VARIABLE PATH
   23658 # -----------------------------------
   23659 # VARIABLE is name of variable containing _space_ separated list of
   23660 # directories to be munged by the contents of PATH, which is string
   23661 # having a format:
   23662 # "DIR[:DIR]:"
   23663 #       string "DIR[ DIR]" will be prepended to VARIABLE
   23664 # ":DIR[:DIR]"
   23665 #       string "DIR[ DIR]" will be appended to VARIABLE
   23666 # "DIRP[:DIRP]::[DIRA:]DIRA"
   23667 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   23668 #       "DIRA[ DIRA]" will be appended to VARIABLE
   23669 # "DIR[:DIR]"
   23670 #       VARIABLE will be replaced by "DIR[ DIR]"
   23671 func_munge_path_list ()
   23672 {
   23673     case x$2 in
   23674     x)
   23675         ;;
   23676     *:)
   23677         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   23678         ;;
   23679     x:*)
   23680         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   23681         ;;
   23682     *::*)
   23683         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   23684         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   23685         ;;
   23686     *)
   23687         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   23688         ;;
   23689     esac
   23690 }
   23691 
   23692 
   23693 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   23694 func_cc_basename ()
   23695 {
   23696     for cc_temp in $*""; do
   23697       case $cc_temp in
   23698         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   23699         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   23700         \-*) ;;
   23701         *) break;;
   23702       esac
   23703     done
   23704     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   23705 }
   23706 
   23707 
   23708 # ### END FUNCTIONS SHARED WITH CONFIGURE
   23709 
   23710 _LT_EOF
   23711 
   23712   case $host_os in
   23713   aix3*)
   23714     cat <<\_LT_EOF >> "$cfgfile"
   23715 # AIX sometimes has problems with the GCC collect2 program.  For some
   23716 # reason, if we set the COLLECT_NAMES environment variable, the problems
   23717 # vanish in a puff of smoke.
   23718 if test set != "${COLLECT_NAMES+set}"; then
   23719   COLLECT_NAMES=
   23720   export COLLECT_NAMES
   23721 fi
   23722 _LT_EOF
   23723     ;;
   23724   esac
   23725 
   23726 
   23727 ltmain=$ac_aux_dir/ltmain.sh
   23728 
   23729 
   23730   # We use sed instead of cat because bash on DJGPP gets confused if
   23731   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   23732   # text mode, it properly converts lines to CR/LF.  This bash problem
   23733   # is reportedly fixed, but why not run on old versions too?
   23734   sed '$q' "$ltmain" >> "$cfgfile" \
   23735      || (rm -f "$cfgfile"; exit 1)
   23736 
   23737    mv -f "$cfgfile" "$ofile" ||
   23738     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   23739   chmod +x "$ofile"
   23740 
   23741  ;;
   23742     "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
   23743 
   23744   esac
   23745 done # for ac_tag
   23746 
   23747 
   23748 as_fn_exit 0
   23749 _ACEOF
   23750 ac_clean_files=$ac_clean_files_save
   23751 
   23752 test $ac_write_fail = 0 ||
   23753   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   23754 
   23755 
   23756 # configure is writing to config.log, and then calls config.status.
   23757 # config.status does its own redirection, appending to config.log.
   23758 # Unfortunately, on DOS this fails, as config.log is still kept open
   23759 # by configure, so config.status won't be able to write to it; its
   23760 # output is simply discarded.  So we exec the FD to /dev/null,
   23761 # effectively closing config.log, so it can be properly (re)opened and
   23762 # appended to by config.status.  When coming back to configure, we
   23763 # need to make the FD available again.
   23764 if test "$no_create" != yes; then
   23765   ac_cs_success=:
   23766   ac_config_status_args=
   23767   test "$silent" = yes &&
   23768     ac_config_status_args="$ac_config_status_args --quiet"
   23769   exec 5>/dev/null
   23770   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   23771   exec 5>>config.log
   23772   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   23773   # would make configure fail if this is the last instruction.
   23774   $ac_cs_success || as_fn_exit 1
   23775 fi
   23776 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   23777   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   23778 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   23779 fi
   23780 
   23781 
   23782 #
   23783 # Now that the Makefiles exist we can ensure that everything is rebuilt.
   23784 #
   23785 
   23786 # Check whether --with-make-clean was given.
   23787 if test "${with_make_clean+set}" = set; then :
   23788   withval=$with_make_clean; make_clean="$withval"
   23789 else
   23790   make_clean="yes"
   23791 fi
   23792 
   23793 case "$make_clean" in
   23794 yes)
   23795 	if test "yes" != "$no_create"
   23796 	then
   23797 		if test "yes" = "$silent"
   23798 		then
   23799 			make clean > /dev/null
   23800 		else
   23801 			make clean
   23802 		fi
   23803 	fi
   23804 	;;
   23805 esac
   23806 
   23807 # Check whether --enable-full-report was given.
   23808 if test "${enable_full_report+set}" = set; then :
   23809   enableval=$enable_full_report;
   23810 fi
   23811 
   23812 
   23813 report() {
   23814     echo "==============================================================================="
   23815     echo "Configuration summary:"
   23816     echo "-------------------------------------------------------------------------------"
   23817     echo "Optional features enabled:"
   23818     if test "yes" = "$enable_full_report" -o "standard" = "$locktype"; then
   23819 	echo "        Mutex lock type: $locktype"
   23820     fi
   23821     test "large" = "$use_tuning" && echo "    Large-system tuning (--with-tuning)"
   23822     test "no" = "$use_dnstap" || \
   23823 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   23824     test "no" = "$use_geoip" || echo "    GeoIP access control (--with-geoip)"
   23825     test "no" = "$use_gssapi" || echo "    GSS-API (--with-gssapi)"
   23826     if test "yes" = "$enable_full_report" -o "aes" != "$with_cc_alg"; then
   23827 	echo "        Algorithm: $with_cc_alg"
   23828     fi
   23829 
   23830     # these lines are only printed if run with --enable-full-report
   23831     if test "yes" = "$enable_full_report"; then
   23832 	test "no" = "$found_ipv6" || echo "    IPv6 support (--enable-ipv6)"
   23833 	test "X$PYTHON" = "X" || echo "    Python tools (--with-python)"
   23834 	test "X$XMLSTATS" = "X" || echo "    XML statistics (--with-libxml2)"
   23835 	test "X$JSONSTATS" = "X" || echo "    JSON statistics (--with-libjson)"
   23836 	test "X$ZLIB" = "X" || echo "    HTTP zlib compression (--with-zlib)"
   23837 	test "X$NZD_TOOLS" = "X" || echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   23838 	test "no" = "$with_libidn2" || echo "    IDN support (--with-libidn2)"
   23839     fi
   23840 
   23841     test "yes" = "$enable_dnsrps" && \
   23842 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   23843     test "yes" = "$enable_fixed" && \
   23844 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   23845     test "yes" = "$enable_backtrace" && \
   23846 	echo "    Print backtrace on crash (--enable-backtrace)"
   23847     test "minimal" = "$want_symtable" && \
   23848 	echo "    Use symbol table for backtrace, named only (--enable-symtable)"
   23849     test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
   23850 	echo "    Use symbol table for backtrace, all binaries (--enable-symtable=all)"
   23851     test "no" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   23852     test "yes" = "$want_querytrace" && \
   23853 	echo "    Very verbose query trace logging (--enable-querytrace)"
   23854     test "no" = "$with_cmocka" || echo "    CMocka Unit Testing Framework (--with-cmocka)"
   23855 
   23856     test "no" = "$want_autoval" || echo "    DNSSEC validation active by default (--enable-auto-validation)"
   23857 
   23858     test "$CRYPTO" = "pkcs11" && (
   23859 	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
   23860 	echo "    PKCS#11 module (--with-pkcs11): $with_pkcs11"
   23861     )
   23862 
   23863     echo "    Dynamically loadable zone (DLZ) drivers:"
   23864     test "no" = "$use_dlz_bdb" || \
   23865 	echo "        Berkeley DB (--with-dlz-bdb)"
   23866     test "no" = "$use_dlz_ldap" || \
   23867 	echo "        LDAP (--with-dlz-ldap)"
   23868     test "no" = "$use_dlz_mysql" || \
   23869 	echo "        MySQL (--with-dlz-mysql)"
   23870     test "no" = "$use_dlz_odbc" || \
   23871 	echo "        ODBC (--with-dlz-odbc)"
   23872     test "no" = "$use_dlz_postgres" || \
   23873 	echo "        Postgres (--with-dlz-postgres)"
   23874     test "no" = "$use_dlz_filesystem" || \
   23875 	echo "        Filesystem (--with-dlz-filesystem)"
   23876     test "no" = "$use_dlz_stub" || \
   23877 	echo "        Stub (--with-dlz-stub)"
   23878     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"
   23879 
   23880     echo "-------------------------------------------------------------------------------"
   23881 
   23882     echo "Features disabled or unavailable on this platform:"
   23883     test "no" = "$found_ipv6" && echo "    IPv6 support (--enable-ipv6)"
   23884     test "large" = "$use_tuning" || echo "    Large-system tuning (--with-tuning)"
   23885 
   23886     test "no" = "$use_dnstap" && \
   23887 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   23888     test "no" = "$use_geoip" && echo "    GeoIP access control (--with-geoip)"
   23889     test "no" = "$use_gssapi" && echo "    GSS-API (--with-gssapi)"
   23890 
   23891     test "no" = "$enable_dnsrps" && \
   23892 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   23893 
   23894     test "yes" = "$enable_fixed" || \
   23895 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   23896 
   23897     test "no" = "$want_autoval" && echo "    DNSSEC validation requires configuration (--disable-auto-validation)"
   23898 
   23899     test "$CRYPTO" = "pkcs11" || (
   23900 	echo "    Using PKCS#11 for Public-Key Cryptography (--without-native-pkcs11)"
   23901     )
   23902 
   23903     test "yes" = "$enable_backtrace" || \
   23904 	echo "    Print backtrace on crash (--enable-backtrace)"
   23905     test "yes" = "$want_querytrace" || \
   23906 	echo "    Very verbose query trace logging (--enable-querytrace)"
   23907 
   23908     test "yes" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   23909     test "no" = "$with_cmocka" && echo "    CMocka Unit Testing Framework (--with-cmocka)"
   23910 
   23911     test "X$PYTHON" = "X" && echo "    Python tools (--with-python)"
   23912     test "X$XMLSTATS" = "X" && echo "    XML statistics (--with-libxml2)"
   23913     test "X$JSONSTATS" = "X" && echo "    JSON statistics (--with-libjson)"
   23914     test "X$ZLIB" = "X" && echo "    HTTP zlib compression (--with-zlib)"
   23915     test "X$NZD_TOOLS" = "X" && echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   23916     test "no" = "$with_libidn2" && echo "    IDN support (--with-libidn2)"
   23917 
   23918     echo "-------------------------------------------------------------------------------"
   23919     echo "Configured paths:"
   23920     echo "    prefix: $prefix"
   23921     echo "    sysconfdir: $sysconfdir"
   23922     echo "    localstatedir: $localstatedir"
   23923     echo "-------------------------------------------------------------------------------"
   23924     echo "Compiler: $CC"
   23925     $CC --version 2>&1 | sed 's/^/    /'
   23926 
   23927     if test "X$ac_unrecognized_opts" != "X"; then
   23928 	echo "Unrecognized options:"
   23929 	echo "    $ac_unrecognized_opts"
   23930     fi
   23931 
   23932     if test "yes" != "$enable_full_report"; then
   23933 	echo "-------------------------------------------------------------------------------"
   23934 	echo "For more detail, use --enable-full-report."
   23935     fi
   23936     echo "==============================================================================="
   23937 }
   23938 
   23939 if test "yes" != "$silent"; then
   23940 	report
   23941 fi
   23942 
   23943 # Tell Emacs to edit this file in shell mode.
   23944 # Local Variables:
   23945 # mode: sh
   23946 # End:
   23947