Home | History | Annotate | Line # | Download | only in dist
configure revision 1.10
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for BIND 9.16.
      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.16'
    593 PACKAGE_STRING='BIND 9.16'
    594 PACKAGE_BUGREPORT='info (at] isc.org'
    595 PACKAGE_URL='https://www.isc.org/downloads/'
    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 WRAP_NAME
    673 WRAP_INTERPOSE
    674 LD_WRAP_TESTS
    675 UNITTESTS
    676 KYUA
    677 CMOCKA_LIBS
    678 CMOCKA_CFLAGS
    679 LIBIDN2_LDFLAGS
    680 LIBIDN2_LIBS
    681 LIBIDN2_CFLAGS
    682 CURL
    683 DOXYGEN
    684 MANSRCS
    685 PDFTARGET
    686 HTMLTARGET
    687 PDFLATEX
    688 RELEASE_DATE
    689 HAVE_XELATEX_FALSE
    690 HAVE_XELATEX_TRUE
    691 LATEXMK
    692 XELATEX
    693 HAVE_SPHINX_BUILD_FALSE
    694 HAVE_SPHINX_BUILD_TRUE
    695 SPHINX_BUILD
    696 FSTRM_LIBS
    697 FSTRM_CFLAGS
    698 PROTOBUF_C_LIBS
    699 PROTOBUF_C_CFLAGS
    700 DNSTAP_MANS
    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_LIBS
    730 ZLIB_CFLAGS
    731 JSON_C_LIBS
    732 JSON_C_CFLAGS
    733 LIBXML2_LIBS
    734 LIBXML2_CFLAGS
    735 NZD_MANS
    736 NZDTARGETS
    737 NZDSRCS
    738 NZD_TOOLS
    739 LMDB_LIBS
    740 LMDB_CFLAGS
    741 DNS_CRYPTO_LIBS
    742 DNS_GSSAPI_LIBS
    743 DST_GSSAPI_INC
    744 USE_GSSAPI
    745 ISC_PLATFORM_KRB5HEADER
    746 ISC_PLATFORM_GSSAPI_KRB5_HEADER
    747 ISC_PLATFORM_GSSAPIHEADER
    748 ISC_PLATFORM_HAVEGSSAPI
    749 KRB5_CONFIG
    750 CRYPTO
    751 PKCS11_MANS
    752 PKCS11_TOOLS
    753 PKCS11_TEST
    754 OPENSSL_LIBS
    755 OPENSSL_CFLAGS
    756 NO_LIBTOOL_DNSLIBS
    757 NO_LIBTOOL_ISCLIBS
    758 INSTALL_LIBRARY
    759 ALWAYS_DEFINES
    760 LIBUV_LIBS
    761 LIBUV_CFLAGS
    762 PTHREAD_CFLAGS
    763 PTHREAD_LIBS
    764 PTHREAD_CC
    765 ax_pthread_config
    766 GEOIP2LINKOBJS
    767 GEOIP2LINKSRCS
    768 MAXMINDDB_PREFIX
    769 MAXMINDDB_LIBS
    770 MAXMINDDB_CFLAGS
    771 ISC_PLATFORM_NORETURN_POST
    772 ISC_PLATFORM_NORETURN_PRE
    773 PYTEST
    774 expanded_sysconfdir
    775 PYTHON_INSTALL_LIB
    776 PYTHON_INSTALL_DIR
    777 PYTHON_TOOLS
    778 KEYMGR
    779 COVERAGE
    780 CHECKDS
    781 PYTHON
    782 PERL
    783 LN
    784 ARFLAGS
    785 XTARGETS
    786 PKG_CONFIG_LIBDIR
    787 PKG_CONFIG_PATH
    788 PKG_CONFIG
    789 BACKTRACECFLAGS
    790 CCNOOPT
    791 CCOPT
    792 STD_CWARNINGS
    793 STD_CDEFINES
    794 STD_CINCLUDES
    795 MKDIR_P
    796 INSTALL_DATA
    797 INSTALL_SCRIPT
    798 INSTALL_PROGRAM
    799 LT_SYS_LIBRARY_PATH
    800 OTOOL64
    801 OTOOL
    802 LIPO
    803 NMEDIT
    804 DSYMUTIL
    805 MANIFEST_TOOL
    806 AWK
    807 RANLIB
    808 STRIP
    809 ac_ct_AR
    810 AR
    811 DLLTOOL
    812 OBJDUMP
    813 LN_S
    814 NM
    815 ac_ct_DUMPBIN
    816 DUMPBIN
    817 LD
    818 FGREP
    819 SED
    820 LIBTOOL
    821 SET_MAKE
    822 LFS_LIBS
    823 LFS_LDFLAGS
    824 LFS_CFLAGS
    825 EGREP
    826 GREP
    827 CPP
    828 OBJEXT
    829 EXEEXT
    830 ac_ct_CC
    831 CPPFLAGS
    832 LDFLAGS
    833 CFLAGS
    834 CC
    835 host_os
    836 host_vendor
    837 host_cpu
    838 host
    839 build_os
    840 build_vendor
    841 build_cpu
    842 build
    843 MAINT
    844 MAINTAINER_MODE_FALSE
    845 MAINTAINER_MODE_TRUE
    846 target_alias
    847 host_alias
    848 build_alias
    849 LIBS
    850 ECHO_T
    851 ECHO_N
    852 ECHO_C
    853 DEFS
    854 mandir
    855 localedir
    856 libdir
    857 psdir
    858 pdfdir
    859 dvidir
    860 htmldir
    861 infodir
    862 docdir
    863 oldincludedir
    864 includedir
    865 localstatedir
    866 sharedstatedir
    867 sysconfdir
    868 datadir
    869 datarootdir
    870 libexecdir
    871 sbindir
    872 bindir
    873 program_transform_name
    874 prefix
    875 exec_prefix
    876 PACKAGE_URL
    877 PACKAGE_BUGREPORT
    878 PACKAGE_STRING
    879 PACKAGE_VERSION
    880 PACKAGE_TARNAME
    881 PACKAGE_NAME
    882 PATH_SEPARATOR
    883 SHELL'
    884 ac_subst_files='BIND9_MAKE_INCLUDES
    885 BIND9_MAKE_RULES
    886 LIBISC_API
    887 LIBISCCC_API
    888 LIBISCCFG_API
    889 LIBDNS_API
    890 LIBDNS_MAPAPI
    891 LIBBIND9_API
    892 LIBIRS_API
    893 LIBNS_API
    894 DLZ_DRIVER_RULES'
    895 ac_user_opts='
    896 enable_option_checking
    897 enable_maintainer_mode
    898 enable_largefile
    899 enable_shared
    900 enable_static
    901 with_pic
    902 enable_fast_install
    903 with_aix_soname
    904 with_gnu_ld
    905 with_sysroot
    906 enable_libtool_lock
    907 enable_buffer_useinline
    908 enable_warn_shadow
    909 enable_warn_error
    910 enable_developer
    911 enable_fuzzing
    912 enable_mutex_atomics
    913 with_python
    914 with_python_install_dir
    915 enable_kqueue
    916 enable_epoll
    917 enable_devpoll
    918 with_geoip2
    919 enable_geoip
    920 with_maxminddb
    921 with_locktype
    922 with_libtool
    923 enable_pthread_rwlock
    924 with_openssl
    925 enable_fips_mode
    926 enable_native_pkcs11
    927 with_pkcs11
    928 with_gssapi
    929 with_lmdb
    930 with_libxml2
    931 with_libjson
    932 with_json_c
    933 with_zlib
    934 with_purify
    935 with_gperftools_profiler
    936 enable_backtrace
    937 enable_symtable
    938 enable_tcp_fastopen
    939 with_readline
    940 enable_isc_spnego
    941 enable_chroot
    942 enable_linux_caps
    943 enable_fixed_rrset
    944 enable_dnstap
    945 with_protobuf_c
    946 with_libfstrm
    947 with_libidn2
    948 with_cmocka
    949 with_tuning
    950 enable_querytrace
    951 enable_auto_validation
    952 with_dlopen
    953 enable_dnsrps_dl
    954 with_dnsrps_libname
    955 with_dnsrps_dir
    956 enable_dnsrps
    957 with_dlz_postgres
    958 with_dlz_mysql
    959 with_dlz_bdb
    960 with_dlz_filesystem
    961 with_dlz_ldap
    962 with_dlz_odbc
    963 with_dlz_stub
    964 with_make_clean
    965 enable_full_report
    966 '
    967       ac_precious_vars='build_alias
    968 host_alias
    969 target_alias
    970 CC
    971 CFLAGS
    972 LDFLAGS
    973 LIBS
    974 CPPFLAGS
    975 CPP
    976 LT_SYS_LIBRARY_PATH
    977 PKG_CONFIG
    978 PKG_CONFIG_PATH
    979 PKG_CONFIG_LIBDIR
    980 PYTHON
    981 MAXMINDDB_CFLAGS
    982 MAXMINDDB_LIBS
    983 MAXMINDDB_PREFIX
    984 LIBUV_CFLAGS
    985 LIBUV_LIBS
    986 OPENSSL_CFLAGS
    987 OPENSSL_LIBS
    988 LIBXML2_CFLAGS
    989 LIBXML2_LIBS
    990 JSON_C_CFLAGS
    991 JSON_C_LIBS
    992 ZLIB_CFLAGS
    993 ZLIB_LIBS
    994 SPHINX_BUILD
    995 LIBIDN2_CFLAGS
    996 LIBIDN2_LIBS
    997 CMOCKA_CFLAGS
    998 CMOCKA_LIBS
    999 KYUA'
   1000 
   1001 
   1002 # Initialize some variables set by options.
   1003 ac_init_help=
   1004 ac_init_version=false
   1005 ac_unrecognized_opts=
   1006 ac_unrecognized_sep=
   1007 # The variables have the same names as the options, with
   1008 # dashes changed to underlines.
   1009 cache_file=/dev/null
   1010 exec_prefix=NONE
   1011 no_create=
   1012 no_recursion=
   1013 prefix=NONE
   1014 program_prefix=NONE
   1015 program_suffix=NONE
   1016 program_transform_name=s,x,x,
   1017 silent=
   1018 site=
   1019 srcdir=
   1020 verbose=
   1021 x_includes=NONE
   1022 x_libraries=NONE
   1023 
   1024 # Installation directory options.
   1025 # These are left unexpanded so users can "make install exec_prefix=/foo"
   1026 # and all the variables that are supposed to be based on exec_prefix
   1027 # by default will actually change.
   1028 # Use braces instead of parens because sh, perl, etc. also accept them.
   1029 # (The list follows the same order as the GNU Coding Standards.)
   1030 bindir='${exec_prefix}/bin'
   1031 sbindir='${exec_prefix}/sbin'
   1032 libexecdir='${exec_prefix}/libexec'
   1033 datarootdir='${prefix}/share'
   1034 datadir='${datarootdir}'
   1035 sysconfdir='${prefix}/etc'
   1036 sharedstatedir='${prefix}/com'
   1037 localstatedir='${prefix}/var'
   1038 includedir='${prefix}/include'
   1039 oldincludedir='/usr/include'
   1040 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   1041 infodir='${datarootdir}/info'
   1042 htmldir='${docdir}'
   1043 dvidir='${docdir}'
   1044 pdfdir='${docdir}'
   1045 psdir='${docdir}'
   1046 libdir='${exec_prefix}/lib'
   1047 localedir='${datarootdir}/locale'
   1048 mandir='${datarootdir}/man'
   1049 
   1050 ac_prev=
   1051 ac_dashdash=
   1052 for ac_option
   1053 do
   1054   # If the previous option needs an argument, assign it.
   1055   if test -n "$ac_prev"; then
   1056     eval $ac_prev=\$ac_option
   1057     ac_prev=
   1058     continue
   1059   fi
   1060 
   1061   case $ac_option in
   1062   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1063   *=)   ac_optarg= ;;
   1064   *)    ac_optarg=yes ;;
   1065   esac
   1066 
   1067   # Accept the important Cygnus configure options, so we can diagnose typos.
   1068 
   1069   case $ac_dashdash$ac_option in
   1070   --)
   1071     ac_dashdash=yes ;;
   1072 
   1073   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1074     ac_prev=bindir ;;
   1075   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1076     bindir=$ac_optarg ;;
   1077 
   1078   -build | --build | --buil | --bui | --bu)
   1079     ac_prev=build_alias ;;
   1080   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1081     build_alias=$ac_optarg ;;
   1082 
   1083   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1084   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1085     ac_prev=cache_file ;;
   1086   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1087   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1088     cache_file=$ac_optarg ;;
   1089 
   1090   --config-cache | -C)
   1091     cache_file=config.cache ;;
   1092 
   1093   -datadir | --datadir | --datadi | --datad)
   1094     ac_prev=datadir ;;
   1095   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1096     datadir=$ac_optarg ;;
   1097 
   1098   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1099   | --dataroo | --dataro | --datar)
   1100     ac_prev=datarootdir ;;
   1101   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1102   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1103     datarootdir=$ac_optarg ;;
   1104 
   1105   -disable-* | --disable-*)
   1106     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1107     # Reject names that are not valid shell variable names.
   1108     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1109       as_fn_error $? "invalid feature name: $ac_useropt"
   1110     ac_useropt_orig=$ac_useropt
   1111     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1112     case $ac_user_opts in
   1113       *"
   1114 "enable_$ac_useropt"
   1115 "*) ;;
   1116       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1117 	 ac_unrecognized_sep=', ';;
   1118     esac
   1119     eval enable_$ac_useropt=no ;;
   1120 
   1121   -docdir | --docdir | --docdi | --doc | --do)
   1122     ac_prev=docdir ;;
   1123   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1124     docdir=$ac_optarg ;;
   1125 
   1126   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1127     ac_prev=dvidir ;;
   1128   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1129     dvidir=$ac_optarg ;;
   1130 
   1131   -enable-* | --enable-*)
   1132     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1133     # Reject names that are not valid shell variable names.
   1134     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1135       as_fn_error $? "invalid feature name: $ac_useropt"
   1136     ac_useropt_orig=$ac_useropt
   1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1138     case $ac_user_opts in
   1139       *"
   1140 "enable_$ac_useropt"
   1141 "*) ;;
   1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1143 	 ac_unrecognized_sep=', ';;
   1144     esac
   1145     eval enable_$ac_useropt=\$ac_optarg ;;
   1146 
   1147   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1148   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1149   | --exec | --exe | --ex)
   1150     ac_prev=exec_prefix ;;
   1151   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1152   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1153   | --exec=* | --exe=* | --ex=*)
   1154     exec_prefix=$ac_optarg ;;
   1155 
   1156   -gas | --gas | --ga | --g)
   1157     # Obsolete; use --with-gas.
   1158     with_gas=yes ;;
   1159 
   1160   -help | --help | --hel | --he | -h)
   1161     ac_init_help=long ;;
   1162   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1163     ac_init_help=recursive ;;
   1164   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1165     ac_init_help=short ;;
   1166 
   1167   -host | --host | --hos | --ho)
   1168     ac_prev=host_alias ;;
   1169   -host=* | --host=* | --hos=* | --ho=*)
   1170     host_alias=$ac_optarg ;;
   1171 
   1172   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1173     ac_prev=htmldir ;;
   1174   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1175   | --ht=*)
   1176     htmldir=$ac_optarg ;;
   1177 
   1178   -includedir | --includedir | --includedi | --included | --include \
   1179   | --includ | --inclu | --incl | --inc)
   1180     ac_prev=includedir ;;
   1181   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1182   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1183     includedir=$ac_optarg ;;
   1184 
   1185   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1186     ac_prev=infodir ;;
   1187   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1188     infodir=$ac_optarg ;;
   1189 
   1190   -libdir | --libdir | --libdi | --libd)
   1191     ac_prev=libdir ;;
   1192   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1193     libdir=$ac_optarg ;;
   1194 
   1195   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1196   | --libexe | --libex | --libe)
   1197     ac_prev=libexecdir ;;
   1198   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1199   | --libexe=* | --libex=* | --libe=*)
   1200     libexecdir=$ac_optarg ;;
   1201 
   1202   -localedir | --localedir | --localedi | --localed | --locale)
   1203     ac_prev=localedir ;;
   1204   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1205     localedir=$ac_optarg ;;
   1206 
   1207   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1208   | --localstate | --localstat | --localsta | --localst | --locals)
   1209     ac_prev=localstatedir ;;
   1210   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1211   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1212     localstatedir=$ac_optarg ;;
   1213 
   1214   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1215     ac_prev=mandir ;;
   1216   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1217     mandir=$ac_optarg ;;
   1218 
   1219   -nfp | --nfp | --nf)
   1220     # Obsolete; use --without-fp.
   1221     with_fp=no ;;
   1222 
   1223   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1224   | --no-cr | --no-c | -n)
   1225     no_create=yes ;;
   1226 
   1227   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1228   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1229     no_recursion=yes ;;
   1230 
   1231   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1232   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1233   | --oldin | --oldi | --old | --ol | --o)
   1234     ac_prev=oldincludedir ;;
   1235   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1236   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1237   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1238     oldincludedir=$ac_optarg ;;
   1239 
   1240   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1241     ac_prev=prefix ;;
   1242   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1243     prefix=$ac_optarg ;;
   1244 
   1245   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1246   | --program-pre | --program-pr | --program-p)
   1247     ac_prev=program_prefix ;;
   1248   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1249   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1250     program_prefix=$ac_optarg ;;
   1251 
   1252   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1253   | --program-suf | --program-su | --program-s)
   1254     ac_prev=program_suffix ;;
   1255   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1256   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1257     program_suffix=$ac_optarg ;;
   1258 
   1259   -program-transform-name | --program-transform-name \
   1260   | --program-transform-nam | --program-transform-na \
   1261   | --program-transform-n | --program-transform- \
   1262   | --program-transform | --program-transfor \
   1263   | --program-transfo | --program-transf \
   1264   | --program-trans | --program-tran \
   1265   | --progr-tra | --program-tr | --program-t)
   1266     ac_prev=program_transform_name ;;
   1267   -program-transform-name=* | --program-transform-name=* \
   1268   | --program-transform-nam=* | --program-transform-na=* \
   1269   | --program-transform-n=* | --program-transform-=* \
   1270   | --program-transform=* | --program-transfor=* \
   1271   | --program-transfo=* | --program-transf=* \
   1272   | --program-trans=* | --program-tran=* \
   1273   | --progr-tra=* | --program-tr=* | --program-t=*)
   1274     program_transform_name=$ac_optarg ;;
   1275 
   1276   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1277     ac_prev=pdfdir ;;
   1278   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1279     pdfdir=$ac_optarg ;;
   1280 
   1281   -psdir | --psdir | --psdi | --psd | --ps)
   1282     ac_prev=psdir ;;
   1283   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1284     psdir=$ac_optarg ;;
   1285 
   1286   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1287   | -silent | --silent | --silen | --sile | --sil)
   1288     silent=yes ;;
   1289 
   1290   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1291     ac_prev=sbindir ;;
   1292   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1293   | --sbi=* | --sb=*)
   1294     sbindir=$ac_optarg ;;
   1295 
   1296   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1297   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1298   | --sharedst | --shareds | --shared | --share | --shar \
   1299   | --sha | --sh)
   1300     ac_prev=sharedstatedir ;;
   1301   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1302   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1303   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1304   | --sha=* | --sh=*)
   1305     sharedstatedir=$ac_optarg ;;
   1306 
   1307   -site | --site | --sit)
   1308     ac_prev=site ;;
   1309   -site=* | --site=* | --sit=*)
   1310     site=$ac_optarg ;;
   1311 
   1312   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1313     ac_prev=srcdir ;;
   1314   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1315     srcdir=$ac_optarg ;;
   1316 
   1317   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1318   | --syscon | --sysco | --sysc | --sys | --sy)
   1319     ac_prev=sysconfdir ;;
   1320   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1321   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1322     sysconfdir=$ac_optarg ;;
   1323 
   1324   -target | --target | --targe | --targ | --tar | --ta | --t)
   1325     ac_prev=target_alias ;;
   1326   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1327     target_alias=$ac_optarg ;;
   1328 
   1329   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1330     verbose=yes ;;
   1331 
   1332   -version | --version | --versio | --versi | --vers | -V)
   1333     ac_init_version=: ;;
   1334 
   1335   -with-* | --with-*)
   1336     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1337     # Reject names that are not valid shell variable names.
   1338     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1339       as_fn_error $? "invalid package name: $ac_useropt"
   1340     ac_useropt_orig=$ac_useropt
   1341     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1342     case $ac_user_opts in
   1343       *"
   1344 "with_$ac_useropt"
   1345 "*) ;;
   1346       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1347 	 ac_unrecognized_sep=', ';;
   1348     esac
   1349     eval with_$ac_useropt=\$ac_optarg ;;
   1350 
   1351   -without-* | --without-*)
   1352     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1353     # Reject names that are not valid shell variable names.
   1354     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1355       as_fn_error $? "invalid package name: $ac_useropt"
   1356     ac_useropt_orig=$ac_useropt
   1357     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1358     case $ac_user_opts in
   1359       *"
   1360 "with_$ac_useropt"
   1361 "*) ;;
   1362       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1363 	 ac_unrecognized_sep=', ';;
   1364     esac
   1365     eval with_$ac_useropt=no ;;
   1366 
   1367   --x)
   1368     # Obsolete; use --with-x.
   1369     with_x=yes ;;
   1370 
   1371   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1372   | --x-incl | --x-inc | --x-in | --x-i)
   1373     ac_prev=x_includes ;;
   1374   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1375   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1376     x_includes=$ac_optarg ;;
   1377 
   1378   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1379   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1380     ac_prev=x_libraries ;;
   1381   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1382   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1383     x_libraries=$ac_optarg ;;
   1384 
   1385   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1386 Try \`$0 --help' for more information"
   1387     ;;
   1388 
   1389   *=*)
   1390     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1391     # Reject names that are not valid shell variable names.
   1392     case $ac_envvar in #(
   1393       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1394       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1395     esac
   1396     eval $ac_envvar=\$ac_optarg
   1397     export $ac_envvar ;;
   1398 
   1399   *)
   1400     # FIXME: should be removed in autoconf 3.0.
   1401     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1402     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1403       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1404     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1405     ;;
   1406 
   1407   esac
   1408 done
   1409 
   1410 if test -n "$ac_prev"; then
   1411   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1412   as_fn_error $? "missing argument to $ac_option"
   1413 fi
   1414 
   1415 if test -n "$ac_unrecognized_opts"; then
   1416   case $enable_option_checking in
   1417     no) ;;
   1418     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1419     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1420   esac
   1421 fi
   1422 
   1423 # Check all directory arguments for consistency.
   1424 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1425 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1426 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1427 		libdir localedir mandir
   1428 do
   1429   eval ac_val=\$$ac_var
   1430   # Remove trailing slashes.
   1431   case $ac_val in
   1432     */ )
   1433       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1434       eval $ac_var=\$ac_val;;
   1435   esac
   1436   # Be sure to have absolute directory names.
   1437   case $ac_val in
   1438     [\\/$]* | ?:[\\/]* )  continue;;
   1439     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1440   esac
   1441   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1442 done
   1443 
   1444 # There might be people who depend on the old broken behavior: `$host'
   1445 # used to hold the argument of --host etc.
   1446 # FIXME: To remove some day.
   1447 build=$build_alias
   1448 host=$host_alias
   1449 target=$target_alias
   1450 
   1451 # FIXME: To remove some day.
   1452 if test "x$host_alias" != x; then
   1453   if test "x$build_alias" = x; then
   1454     cross_compiling=maybe
   1455   elif test "x$build_alias" != "x$host_alias"; then
   1456     cross_compiling=yes
   1457   fi
   1458 fi
   1459 
   1460 ac_tool_prefix=
   1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1462 
   1463 test "$silent" = yes && exec 6>/dev/null
   1464 
   1465 
   1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1467 ac_ls_di=`ls -di .` &&
   1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1469   as_fn_error $? "working directory cannot be determined"
   1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1471   as_fn_error $? "pwd does not report name of working directory"
   1472 
   1473 
   1474 # Find the source files, if location was not specified.
   1475 if test -z "$srcdir"; then
   1476   ac_srcdir_defaulted=yes
   1477   # Try the directory containing this script, then the parent directory.
   1478   ac_confdir=`$as_dirname -- "$as_myself" ||
   1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1480 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1481 	 X"$as_myself" : 'X\(//\)$' \| \
   1482 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1483 $as_echo X"$as_myself" |
   1484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1485 	    s//\1/
   1486 	    q
   1487 	  }
   1488 	  /^X\(\/\/\)[^/].*/{
   1489 	    s//\1/
   1490 	    q
   1491 	  }
   1492 	  /^X\(\/\/\)$/{
   1493 	    s//\1/
   1494 	    q
   1495 	  }
   1496 	  /^X\(\/\).*/{
   1497 	    s//\1/
   1498 	    q
   1499 	  }
   1500 	  s/.*/./; q'`
   1501   srcdir=$ac_confdir
   1502   if test ! -r "$srcdir/$ac_unique_file"; then
   1503     srcdir=..
   1504   fi
   1505 else
   1506   ac_srcdir_defaulted=no
   1507 fi
   1508 if test ! -r "$srcdir/$ac_unique_file"; then
   1509   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1510   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1511 fi
   1512 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1513 ac_abs_confdir=`(
   1514 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1515 	pwd)`
   1516 # When building in place, set srcdir=.
   1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1518   srcdir=.
   1519 fi
   1520 # Remove unnecessary trailing slashes from srcdir.
   1521 # Double slashes in file names in object file debugging info
   1522 # mess up M-x gdb in Emacs.
   1523 case $srcdir in
   1524 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1525 esac
   1526 for ac_var in $ac_precious_vars; do
   1527   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1528   eval ac_env_${ac_var}_value=\$${ac_var}
   1529   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1530   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1531 done
   1532 
   1533 #
   1534 # Report the --help message.
   1535 #
   1536 if test "$ac_init_help" = "long"; then
   1537   # Omit some internal or obsolete options to make the list less imposing.
   1538   # This message is too long to be a string in the A/UX 3.1 sh.
   1539   cat <<_ACEOF
   1540 \`configure' configures BIND 9.16 to adapt to many kinds of systems.
   1541 
   1542 Usage: $0 [OPTION]... [VAR=VALUE]...
   1543 
   1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1545 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1546 
   1547 Defaults for the options are specified in brackets.
   1548 
   1549 Configuration:
   1550   -h, --help              display this help and exit
   1551       --help=short        display options specific to this package
   1552       --help=recursive    display the short help of all the included packages
   1553   -V, --version           display version information and exit
   1554   -q, --quiet, --silent   do not print \`checking ...' messages
   1555       --cache-file=FILE   cache test results in FILE [disabled]
   1556   -C, --config-cache      alias for \`--cache-file=config.cache'
   1557   -n, --no-create         do not create output files
   1558       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1559 
   1560 Installation directories:
   1561   --prefix=PREFIX         install architecture-independent files in PREFIX
   1562                           [$ac_default_prefix]
   1563   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1564                           [PREFIX]
   1565 
   1566 By default, \`make install' will install all the files in
   1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1569 for instance \`--prefix=\$HOME'.
   1570 
   1571 For better control, use the options below.
   1572 
   1573 Fine tuning of the installation directories:
   1574   --bindir=DIR            user executables [EPREFIX/bin]
   1575   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1576   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1577   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1578   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1579   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1580   --libdir=DIR            object code libraries [EPREFIX/lib]
   1581   --includedir=DIR        C header files [PREFIX/include]
   1582   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1583   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1584   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1585   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1586   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1587   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1588   --docdir=DIR            documentation root [DATAROOTDIR/doc/bind]
   1589   --htmldir=DIR           html documentation [DOCDIR]
   1590   --dvidir=DIR            dvi documentation [DOCDIR]
   1591   --pdfdir=DIR            pdf documentation [DOCDIR]
   1592   --psdir=DIR             ps documentation [DOCDIR]
   1593 _ACEOF
   1594 
   1595   cat <<\_ACEOF
   1596 
   1597 System types:
   1598   --build=BUILD     configure for building on BUILD [guessed]
   1599   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1600 _ACEOF
   1601 fi
   1602 
   1603 if test -n "$ac_init_help"; then
   1604   case $ac_init_help in
   1605      short | recursive ) echo "Configuration of BIND 9.16:";;
   1606    esac
   1607   cat <<\_ACEOF
   1608 
   1609 Optional Features:
   1610   --disable-option-checking  ignore unrecognized --enable/--with options
   1611   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1612   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1613   --disable-maintainer-mode
   1614                           disable make rules and dependencies not useful (and
   1615                           sometimes confusing) to the casual installer
   1616   --disable-largefile     omit support for large files
   1617   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1618   --enable-static[=PKGS]  build static libraries [default=yes]
   1619   --enable-fast-install[=PKGS]
   1620                           optimize for fast installation [default=yes]
   1621   --disable-libtool-lock  avoid locking (might break parallel builds)
   1622   --enable-buffer-useinline
   1623                           define ISC_BUFFER_USEINLINE when compiling
   1624                           [default=yes]
   1625   --enable-warn-shadow    turn on -Wshadow when compiling
   1626   --enable-warn-error     turn on -Werror when compiling
   1627   --enable-developer      enable developer build settings
   1628   --enable-fuzzing=<afl|libfuzzer>
   1629                           Enable fuzzing using American Fuzzy Lop or libFuzzer
   1630                           (default=no)
   1631   --enable-mutex-atomics  emulate atomics by mutex-locked variables, useful
   1632                           for debugging [default=no]
   1633   --enable-kqueue         use BSD kqueue when available [default=yes]
   1634   --enable-epoll          use Linux epoll when available [default=auto]
   1635   --enable-devpoll        use /dev/poll when available [default=yes]
   1636   --disable-geoip         support GeoIP2 geolocation ACLs if available
   1637                           [default=yes]
   1638   --enable-pthread-rwlock use pthread rwlock instead of internal rwlock
   1639                           implementation
   1640   --enable-fips-mode      enable FIPS mode in OpenSSL library [default=no]
   1641   --enable-native-pkcs11  use native PKCS11 for public-key crypto [default=no]
   1642   --enable-backtrace      log stack backtrace on abort [default=yes]
   1643   --enable-symtable       use internal symbol table for backtrace
   1644                           [all|minimal(default)|none]
   1645   --disable-tcp-fastopen  disable TCP Fast Open support [default=yes]
   1646   --disable-isc-spnego    use SPNEGO from GSSAPI library
   1647   --disable-chroot        disable chroot
   1648   --disable-linux-caps    disable Linux capabilities
   1649   --enable-fixed-rrset    enable fixed rrset ordering [default=no]
   1650   --enable-dnstap         enable dnstap support (requires fstrm, protobuf-c)
   1651   --enable-querytrace     enable very verbose query trace logging [default=no]
   1652   --enable-auto-validation
   1653                           turn on DNSSEC validation by default, using the IANA
   1654                           root key [default=yes]
   1655   --enable-dnsrps-dl      DNS Response Policy Service delayed link
   1656                           [default=$librpz_dl]
   1657   --enable-dnsrps         enable DNS Response Policy Service API
   1658   --enable-full-report    report values of all configure options
   1659 
   1660 Optional Packages:
   1661   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1662   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1663   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1664                           both]
   1665   --with-aix-soname=aix|svr4|both
   1666                           shared library versioning (aka "SONAME") variant to
   1667                           provide on AIX, [default=aix].
   1668   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1669   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1670                           compiler's sysroot if not specified).
   1671   --with-python=PATH      specify path to Python interpreter
   1672   --with-python-install-dir=PATH
   1673                           installation directory for Python modules
   1674   --with-geoip2           deprecated, use --with-maxminddb
   1675   --with-maxminddb=PATH   Build with MaxMind GeoIP2 support (auto|yes|no|path)
   1676                           [default=auto]
   1677   --with-locktype=ARG     Specify mutex lock type (adaptive or standard)
   1678   --with-libtool          use GNU libtool
   1679   --with-openssl=DIR      root of the OpenSSL directory
   1680   --with-pkcs11=PATH      Build with PKCS11 support [no|path] (PATH is for the
   1681                           PKCS11 provider)
   1682   --with-gssapi=PATH|/path/krb5-config
   1683                           Specify path for system-supplied GSSAPI
   1684                           [default=auto]
   1685   --with-lmdb=PATH        build with LMDB library [yes|no|path]
   1686   --with-libxml2          build with libxml2 library [yes|no|auto] (default is
   1687                           auto)
   1688   --with-libjson          deprecated, use --with-json-c
   1689   --with-json-c           build with json-c library [yes|no|detect] (default
   1690                           is detect)
   1691   --with-zlib             build with zlib for HTTP compression [default=yes]
   1692   --with-purify=PATH      use Rational purify
   1693   --with-gperftools-profiler
   1694                           use gperftools CPU profiler
   1695   --with-readline=LIBSPEC specify readline library [default auto]
   1696   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
   1697   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
   1698   --with-libidn2=PATH     enable IDN support using GNU libidn2
   1699                           [yes|no(default)|path]
   1700   --with-cmocka=detect    enable CMocka based tests (default is detect)
   1701   --with-tuning=ARG       Specify server tuning (default or small)
   1702   --with-dlopen=ARG       support dynamically loadable DLZ and DYNDB drivers
   1703   --with-dnsrps-libname   DNSRPS provider library name (librpz.so)
   1704   --with-dnsrps-dir       path to DNSRPS provider library
   1705   --with-dlz-postgres=PATH
   1706                           Build with Postgres DLZ driver [yes|no|path].
   1707                           (Required to use Postgres with DLZ)
   1708   --with-dlz-mysql=PATH   Build with MySQL DLZ driver [yes|no|path]. (Required
   1709                           to use MySQL with DLZ)
   1710   --with-dlz-bdb=PATH     Build with Berkeley DB DLZ driver [yes|no|path].
   1711                           (Required to use Berkeley DB with DLZ)
   1712   --with-dlz-filesystem=ARG
   1713                           Build with filesystem DLZ driver [yes|no]. (Required
   1714                           to use file system driver with DLZ)
   1715   --with-dlz-ldap=PATH    Build with LDAP DLZ driver [yes|no|path]. (Required
   1716                           to use LDAP with DLZ)
   1717   --with-dlz-odbc=PATH    Build with ODBC DLZ driver [yes|no|path]. (Required
   1718                           to use ODBC with DLZ)
   1719   --with-dlz-stub=ARG     Build with stub DLZ driver [yes|no]. (Required to
   1720                           use stub driver with DLZ)
   1721   --with-make-clean       run "make clean" at end of configure [yes|no]
   1722 
   1723 Some influential environment variables:
   1724   CC          C compiler command
   1725   CFLAGS      C compiler flags
   1726   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1727               nonstandard directory <lib dir>
   1728   LIBS        libraries to pass to the linker, e.g. -l<library>
   1729   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1730               you have headers in a nonstandard directory <include dir>
   1731   CPP         C preprocessor
   1732   LT_SYS_LIBRARY_PATH
   1733               User-defined run-time library search path.
   1734   PKG_CONFIG  path to pkg-config utility
   1735   PKG_CONFIG_PATH
   1736               directories to add to pkg-config's search path
   1737   PKG_CONFIG_LIBDIR
   1738               path overriding pkg-config's built-in search path
   1739   PYTHON      path to python executable
   1740   MAXMINDDB_CFLAGS
   1741               C compiler flags for MAXMINDDB, overriding pkg-config
   1742   MAXMINDDB_LIBS
   1743               linker flags for MAXMINDDB, overriding pkg-config
   1744   MAXMINDDB_PREFIX
   1745               value of prefix for libmaxminddb, overriding pkg-config
   1746   LIBUV_CFLAGS
   1747               C compiler flags for LIBUV, overriding pkg-config
   1748   LIBUV_LIBS  linker flags for LIBUV, overriding pkg-config
   1749   OPENSSL_CFLAGS
   1750               C compiler flags for OPENSSL, overriding pkg-config
   1751   OPENSSL_LIBS
   1752               linker flags for OPENSSL, overriding pkg-config
   1753   LIBXML2_CFLAGS
   1754               C compiler flags for LIBXML2, overriding pkg-config
   1755   LIBXML2_LIBS
   1756               linker flags for LIBXML2, overriding pkg-config
   1757   JSON_C_CFLAGS
   1758               C compiler flags for JSON_C, overriding pkg-config
   1759   JSON_C_LIBS linker flags for JSON_C, overriding pkg-config
   1760   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
   1761   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
   1762   SPHINX_BUILD
   1763               path to sphinx-build binary used to build the documentation
   1764   LIBIDN2_CFLAGS
   1765               C compiler flags for LIBIDN2, overriding pkg-config
   1766   LIBIDN2_LIBS
   1767               linker flags for LIBIDN2, overriding pkg-config
   1768   CMOCKA_CFLAGS
   1769               C compiler flags for CMOCKA, overriding pkg-config
   1770   CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
   1771   KYUA        path to kyua execution engine
   1772 
   1773 Use these variables to override the choices made by `configure' or to help
   1774 it to find libraries and programs with nonstandard names/locations.
   1775 
   1776 Report bugs to <info (at] isc.org>.
   1777 BIND home page: <https://www.isc.org/downloads/>.
   1778 _ACEOF
   1779 ac_status=$?
   1780 fi
   1781 
   1782 if test "$ac_init_help" = "recursive"; then
   1783   # If there are subdirs, report their specific --help.
   1784   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1785     test -d "$ac_dir" ||
   1786       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1787       continue
   1788     ac_builddir=.
   1789 
   1790 case "$ac_dir" in
   1791 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1792 *)
   1793   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1794   # A ".." for each directory in $ac_dir_suffix.
   1795   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1796   case $ac_top_builddir_sub in
   1797   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1798   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1799   esac ;;
   1800 esac
   1801 ac_abs_top_builddir=$ac_pwd
   1802 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1803 # for backward compatibility:
   1804 ac_top_builddir=$ac_top_build_prefix
   1805 
   1806 case $srcdir in
   1807   .)  # We are building in place.
   1808     ac_srcdir=.
   1809     ac_top_srcdir=$ac_top_builddir_sub
   1810     ac_abs_top_srcdir=$ac_pwd ;;
   1811   [\\/]* | ?:[\\/]* )  # Absolute name.
   1812     ac_srcdir=$srcdir$ac_dir_suffix;
   1813     ac_top_srcdir=$srcdir
   1814     ac_abs_top_srcdir=$srcdir ;;
   1815   *) # Relative name.
   1816     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1817     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1818     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1819 esac
   1820 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1821 
   1822     cd "$ac_dir" || { ac_status=$?; continue; }
   1823     # Check for guested configure.
   1824     if test -f "$ac_srcdir/configure.gnu"; then
   1825       echo &&
   1826       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1827     elif test -f "$ac_srcdir/configure"; then
   1828       echo &&
   1829       $SHELL "$ac_srcdir/configure" --help=recursive
   1830     else
   1831       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1832     fi || ac_status=$?
   1833     cd "$ac_pwd" || { ac_status=$?; break; }
   1834   done
   1835 fi
   1836 
   1837 test -n "$ac_init_help" && exit $ac_status
   1838 if $ac_init_version; then
   1839   cat <<\_ACEOF
   1840 BIND configure 9.16
   1841 generated by GNU Autoconf 2.69
   1842 
   1843 Copyright (C) 2012 Free Software Foundation, Inc.
   1844 This configure script is free software; the Free Software Foundation
   1845 gives unlimited permission to copy, distribute and modify it.
   1846 _ACEOF
   1847   exit
   1848 fi
   1849 
   1850 ## ------------------------ ##
   1851 ## Autoconf initialization. ##
   1852 ## ------------------------ ##
   1853 
   1854 # ac_fn_c_try_compile LINENO
   1855 # --------------------------
   1856 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1857 ac_fn_c_try_compile ()
   1858 {
   1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1860   rm -f conftest.$ac_objext
   1861   if { { ac_try="$ac_compile"
   1862 case "(($ac_try" in
   1863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1864   *) ac_try_echo=$ac_try;;
   1865 esac
   1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1867 $as_echo "$ac_try_echo"; } >&5
   1868   (eval "$ac_compile") 2>conftest.err
   1869   ac_status=$?
   1870   if test -s conftest.err; then
   1871     grep -v '^ *+' conftest.err >conftest.er1
   1872     cat conftest.er1 >&5
   1873     mv -f conftest.er1 conftest.err
   1874   fi
   1875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1876   test $ac_status = 0; } && {
   1877 	 test -z "$ac_c_werror_flag" ||
   1878 	 test ! -s conftest.err
   1879        } && test -s conftest.$ac_objext; then :
   1880   ac_retval=0
   1881 else
   1882   $as_echo "$as_me: failed program was:" >&5
   1883 sed 's/^/| /' conftest.$ac_ext >&5
   1884 
   1885 	ac_retval=1
   1886 fi
   1887   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1888   as_fn_set_status $ac_retval
   1889 
   1890 } # ac_fn_c_try_compile
   1891 
   1892 # ac_fn_c_try_cpp LINENO
   1893 # ----------------------
   1894 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1895 ac_fn_c_try_cpp ()
   1896 {
   1897   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1898   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1899 case "(($ac_try" in
   1900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1901   *) ac_try_echo=$ac_try;;
   1902 esac
   1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1904 $as_echo "$ac_try_echo"; } >&5
   1905   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1906   ac_status=$?
   1907   if test -s conftest.err; then
   1908     grep -v '^ *+' conftest.err >conftest.er1
   1909     cat conftest.er1 >&5
   1910     mv -f conftest.er1 conftest.err
   1911   fi
   1912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1913   test $ac_status = 0; } > conftest.i && {
   1914 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1915 	 test ! -s conftest.err
   1916        }; then :
   1917   ac_retval=0
   1918 else
   1919   $as_echo "$as_me: failed program was:" >&5
   1920 sed 's/^/| /' conftest.$ac_ext >&5
   1921 
   1922     ac_retval=1
   1923 fi
   1924   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1925   as_fn_set_status $ac_retval
   1926 
   1927 } # ac_fn_c_try_cpp
   1928 
   1929 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1930 # -------------------------------------------------------
   1931 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1932 # the include files in INCLUDES and setting the cache variable VAR
   1933 # accordingly.
   1934 ac_fn_c_check_header_mongrel ()
   1935 {
   1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1937   if eval \${$3+:} false; then :
   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 fi
   1943 eval ac_res=\$$3
   1944 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1945 $as_echo "$ac_res" >&6; }
   1946 else
   1947   # Is the header compilable?
   1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1949 $as_echo_n "checking $2 usability... " >&6; }
   1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1951 /* end confdefs.h.  */
   1952 $4
   1953 #include <$2>
   1954 _ACEOF
   1955 if ac_fn_c_try_compile "$LINENO"; then :
   1956   ac_header_compiler=yes
   1957 else
   1958   ac_header_compiler=no
   1959 fi
   1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1962 $as_echo "$ac_header_compiler" >&6; }
   1963 
   1964 # Is the header present?
   1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1966 $as_echo_n "checking $2 presence... " >&6; }
   1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1968 /* end confdefs.h.  */
   1969 #include <$2>
   1970 _ACEOF
   1971 if ac_fn_c_try_cpp "$LINENO"; then :
   1972   ac_header_preproc=yes
   1973 else
   1974   ac_header_preproc=no
   1975 fi
   1976 rm -f conftest.err conftest.i conftest.$ac_ext
   1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1978 $as_echo "$ac_header_preproc" >&6; }
   1979 
   1980 # So?  What about this header?
   1981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1982   yes:no: )
   1983     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1984 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1985     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1986 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1987     ;;
   1988   no:yes:* )
   1989     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1990 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1991     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1992 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1993     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1994 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1995     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1996 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1997     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1998 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1999 ( $as_echo "## --------------------------- ##
   2000 ## Report this to info (at] isc.org ##
   2001 ## --------------------------- ##"
   2002      ) | sed "s/^/$as_me: WARNING:     /" >&2
   2003     ;;
   2004 esac
   2005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2006 $as_echo_n "checking for $2... " >&6; }
   2007 if eval \${$3+:} false; then :
   2008   $as_echo_n "(cached) " >&6
   2009 else
   2010   eval "$3=\$ac_header_compiler"
   2011 fi
   2012 eval ac_res=\$$3
   2013 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2014 $as_echo "$ac_res" >&6; }
   2015 fi
   2016   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2017 
   2018 } # ac_fn_c_check_header_mongrel
   2019 
   2020 # ac_fn_c_try_run LINENO
   2021 # ----------------------
   2022 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   2023 # that executables *can* be run.
   2024 ac_fn_c_try_run ()
   2025 {
   2026   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2027   if { { ac_try="$ac_link"
   2028 case "(($ac_try" in
   2029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2030   *) ac_try_echo=$ac_try;;
   2031 esac
   2032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2033 $as_echo "$ac_try_echo"; } >&5
   2034   (eval "$ac_link") 2>&5
   2035   ac_status=$?
   2036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2037   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   2038   { { case "(($ac_try" in
   2039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2040   *) ac_try_echo=$ac_try;;
   2041 esac
   2042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2043 $as_echo "$ac_try_echo"; } >&5
   2044   (eval "$ac_try") 2>&5
   2045   ac_status=$?
   2046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2047   test $ac_status = 0; }; }; then :
   2048   ac_retval=0
   2049 else
   2050   $as_echo "$as_me: program exited with status $ac_status" >&5
   2051        $as_echo "$as_me: failed program was:" >&5
   2052 sed 's/^/| /' conftest.$ac_ext >&5
   2053 
   2054        ac_retval=$ac_status
   2055 fi
   2056   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2057   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2058   as_fn_set_status $ac_retval
   2059 
   2060 } # ac_fn_c_try_run
   2061 
   2062 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   2063 # -------------------------------------------------------
   2064 # Tests whether HEADER exists and can be compiled using the include files in
   2065 # INCLUDES, setting the cache variable VAR accordingly.
   2066 ac_fn_c_check_header_compile ()
   2067 {
   2068   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2070 $as_echo_n "checking for $2... " >&6; }
   2071 if eval \${$3+:} false; then :
   2072   $as_echo_n "(cached) " >&6
   2073 else
   2074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2075 /* end confdefs.h.  */
   2076 $4
   2077 #include <$2>
   2078 _ACEOF
   2079 if ac_fn_c_try_compile "$LINENO"; then :
   2080   eval "$3=yes"
   2081 else
   2082   eval "$3=no"
   2083 fi
   2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2085 fi
   2086 eval ac_res=\$$3
   2087 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2088 $as_echo "$ac_res" >&6; }
   2089   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2090 
   2091 } # ac_fn_c_check_header_compile
   2092 
   2093 # ac_fn_c_try_link LINENO
   2094 # -----------------------
   2095 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2096 ac_fn_c_try_link ()
   2097 {
   2098   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2099   rm -f conftest.$ac_objext conftest$ac_exeext
   2100   if { { ac_try="$ac_link"
   2101 case "(($ac_try" in
   2102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2103   *) ac_try_echo=$ac_try;;
   2104 esac
   2105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2106 $as_echo "$ac_try_echo"; } >&5
   2107   (eval "$ac_link") 2>conftest.err
   2108   ac_status=$?
   2109   if test -s conftest.err; then
   2110     grep -v '^ *+' conftest.err >conftest.er1
   2111     cat conftest.er1 >&5
   2112     mv -f conftest.er1 conftest.err
   2113   fi
   2114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2115   test $ac_status = 0; } && {
   2116 	 test -z "$ac_c_werror_flag" ||
   2117 	 test ! -s conftest.err
   2118        } && test -s conftest$ac_exeext && {
   2119 	 test "$cross_compiling" = yes ||
   2120 	 test -x conftest$ac_exeext
   2121        }; then :
   2122   ac_retval=0
   2123 else
   2124   $as_echo "$as_me: failed program was:" >&5
   2125 sed 's/^/| /' conftest.$ac_ext >&5
   2126 
   2127 	ac_retval=1
   2128 fi
   2129   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2130   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2131   # interfere with the next link command; also delete a directory that is
   2132   # left behind by Apple's compiler.  We do this before executing the actions.
   2133   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2134   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2135   as_fn_set_status $ac_retval
   2136 
   2137 } # ac_fn_c_try_link
   2138 
   2139 # ac_fn_c_check_func LINENO FUNC VAR
   2140 # ----------------------------------
   2141 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2142 ac_fn_c_check_func ()
   2143 {
   2144   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2146 $as_echo_n "checking for $2... " >&6; }
   2147 if eval \${$3+:} false; then :
   2148   $as_echo_n "(cached) " >&6
   2149 else
   2150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2151 /* end confdefs.h.  */
   2152 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2154 #define $2 innocuous_$2
   2155 
   2156 /* System header to define __stub macros and hopefully few prototypes,
   2157     which can conflict with char $2 (); below.
   2158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2159     <limits.h> exists even on freestanding compilers.  */
   2160 
   2161 #ifdef __STDC__
   2162 # include <limits.h>
   2163 #else
   2164 # include <assert.h>
   2165 #endif
   2166 
   2167 #undef $2
   2168 
   2169 /* Override any GCC internal prototype to avoid an error.
   2170    Use char because int might match the return type of a GCC
   2171    builtin and then its argument prototype would still apply.  */
   2172 #ifdef __cplusplus
   2173 extern "C"
   2174 #endif
   2175 char $2 ();
   2176 /* The GNU C library defines this for functions which it implements
   2177     to always fail with ENOSYS.  Some functions are actually named
   2178     something starting with __ and the normal name is an alias.  */
   2179 #if defined __stub_$2 || defined __stub___$2
   2180 choke me
   2181 #endif
   2182 
   2183 int
   2184 main ()
   2185 {
   2186 return $2 ();
   2187   ;
   2188   return 0;
   2189 }
   2190 _ACEOF
   2191 if ac_fn_c_try_link "$LINENO"; then :
   2192   eval "$3=yes"
   2193 else
   2194   eval "$3=no"
   2195 fi
   2196 rm -f core conftest.err conftest.$ac_objext \
   2197     conftest$ac_exeext conftest.$ac_ext
   2198 fi
   2199 eval ac_res=\$$3
   2200 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2201 $as_echo "$ac_res" >&6; }
   2202   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2203 
   2204 } # ac_fn_c_check_func
   2205 
   2206 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2207 # -------------------------------------------
   2208 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2209 # variable VAR accordingly.
   2210 ac_fn_c_check_type ()
   2211 {
   2212   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2214 $as_echo_n "checking for $2... " >&6; }
   2215 if eval \${$3+:} false; then :
   2216   $as_echo_n "(cached) " >&6
   2217 else
   2218   eval "$3=no"
   2219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2220 /* end confdefs.h.  */
   2221 $4
   2222 int
   2223 main ()
   2224 {
   2225 if (sizeof ($2))
   2226 	 return 0;
   2227   ;
   2228   return 0;
   2229 }
   2230 _ACEOF
   2231 if ac_fn_c_try_compile "$LINENO"; then :
   2232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2233 /* end confdefs.h.  */
   2234 $4
   2235 int
   2236 main ()
   2237 {
   2238 if (sizeof (($2)))
   2239 	    return 0;
   2240   ;
   2241   return 0;
   2242 }
   2243 _ACEOF
   2244 if ac_fn_c_try_compile "$LINENO"; then :
   2245 
   2246 else
   2247   eval "$3=yes"
   2248 fi
   2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2250 fi
   2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2252 fi
   2253 eval ac_res=\$$3
   2254 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2255 $as_echo "$ac_res" >&6; }
   2256   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2257 
   2258 } # ac_fn_c_check_type
   2259 cat >config.log <<_ACEOF
   2260 This file contains any messages produced by compilers while
   2261 running configure, to aid debugging if configure makes a mistake.
   2262 
   2263 It was created by BIND $as_me 9.16, which was
   2264 generated by GNU Autoconf 2.69.  Invocation command line was
   2265 
   2266   $ $0 $@
   2267 
   2268 _ACEOF
   2269 exec 5>>config.log
   2270 {
   2271 cat <<_ASUNAME
   2272 ## --------- ##
   2273 ## Platform. ##
   2274 ## --------- ##
   2275 
   2276 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2277 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2278 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2279 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2280 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2281 
   2282 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2283 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2284 
   2285 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2286 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2287 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2288 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2289 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2290 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2291 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2292 
   2293 _ASUNAME
   2294 
   2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2296 for as_dir in $PATH
   2297 do
   2298   IFS=$as_save_IFS
   2299   test -z "$as_dir" && as_dir=.
   2300     $as_echo "PATH: $as_dir"
   2301   done
   2302 IFS=$as_save_IFS
   2303 
   2304 } >&5
   2305 
   2306 cat >&5 <<_ACEOF
   2307 
   2308 
   2309 ## ----------- ##
   2310 ## Core tests. ##
   2311 ## ----------- ##
   2312 
   2313 _ACEOF
   2314 
   2315 
   2316 # Keep a trace of the command line.
   2317 # Strip out --no-create and --no-recursion so they do not pile up.
   2318 # Strip out --silent because we don't want to record it for future runs.
   2319 # Also quote any args containing shell meta-characters.
   2320 # Make two passes to allow for proper duplicate-argument suppression.
   2321 ac_configure_args=
   2322 ac_configure_args0=
   2323 ac_configure_args1=
   2324 ac_must_keep_next=false
   2325 for ac_pass in 1 2
   2326 do
   2327   for ac_arg
   2328   do
   2329     case $ac_arg in
   2330     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2331     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2332     | -silent | --silent | --silen | --sile | --sil)
   2333       continue ;;
   2334     *\'*)
   2335       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2336     esac
   2337     case $ac_pass in
   2338     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2339     2)
   2340       as_fn_append ac_configure_args1 " '$ac_arg'"
   2341       if test $ac_must_keep_next = true; then
   2342 	ac_must_keep_next=false # Got value, back to normal.
   2343       else
   2344 	case $ac_arg in
   2345 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2346 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2347 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2348 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2349 	    case "$ac_configure_args0 " in
   2350 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2351 	    esac
   2352 	    ;;
   2353 	  -* ) ac_must_keep_next=true ;;
   2354 	esac
   2355       fi
   2356       as_fn_append ac_configure_args " '$ac_arg'"
   2357       ;;
   2358     esac
   2359   done
   2360 done
   2361 { ac_configure_args0=; unset ac_configure_args0;}
   2362 { ac_configure_args1=; unset ac_configure_args1;}
   2363 
   2364 # When interrupted or exit'd, cleanup temporary files, and complete
   2365 # config.log.  We remove comments because anyway the quotes in there
   2366 # would cause problems or look ugly.
   2367 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2368 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2369 trap 'exit_status=$?
   2370   # Save into config.log some information that might help in debugging.
   2371   {
   2372     echo
   2373 
   2374     $as_echo "## ---------------- ##
   2375 ## Cache variables. ##
   2376 ## ---------------- ##"
   2377     echo
   2378     # The following way of writing the cache mishandles newlines in values,
   2379 (
   2380   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2381     eval ac_val=\$$ac_var
   2382     case $ac_val in #(
   2383     *${as_nl}*)
   2384       case $ac_var in #(
   2385       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2386 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2387       esac
   2388       case $ac_var in #(
   2389       _ | IFS | as_nl) ;; #(
   2390       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2391       *) { eval $ac_var=; unset $ac_var;} ;;
   2392       esac ;;
   2393     esac
   2394   done
   2395   (set) 2>&1 |
   2396     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2397     *${as_nl}ac_space=\ *)
   2398       sed -n \
   2399 	"s/'\''/'\''\\\\'\'''\''/g;
   2400 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2401       ;; #(
   2402     *)
   2403       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2404       ;;
   2405     esac |
   2406     sort
   2407 )
   2408     echo
   2409 
   2410     $as_echo "## ----------------- ##
   2411 ## Output variables. ##
   2412 ## ----------------- ##"
   2413     echo
   2414     for ac_var in $ac_subst_vars
   2415     do
   2416       eval ac_val=\$$ac_var
   2417       case $ac_val in
   2418       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2419       esac
   2420       $as_echo "$ac_var='\''$ac_val'\''"
   2421     done | sort
   2422     echo
   2423 
   2424     if test -n "$ac_subst_files"; then
   2425       $as_echo "## ------------------- ##
   2426 ## File substitutions. ##
   2427 ## ------------------- ##"
   2428       echo
   2429       for ac_var in $ac_subst_files
   2430       do
   2431 	eval ac_val=\$$ac_var
   2432 	case $ac_val in
   2433 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2434 	esac
   2435 	$as_echo "$ac_var='\''$ac_val'\''"
   2436       done | sort
   2437       echo
   2438     fi
   2439 
   2440     if test -s confdefs.h; then
   2441       $as_echo "## ----------- ##
   2442 ## confdefs.h. ##
   2443 ## ----------- ##"
   2444       echo
   2445       cat confdefs.h
   2446       echo
   2447     fi
   2448     test "$ac_signal" != 0 &&
   2449       $as_echo "$as_me: caught signal $ac_signal"
   2450     $as_echo "$as_me: exit $exit_status"
   2451   } >&5
   2452   rm -f core *.core core.conftest.* &&
   2453     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2454     exit $exit_status
   2455 ' 0
   2456 for ac_signal in 1 2 13 15; do
   2457   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2458 done
   2459 ac_signal=0
   2460 
   2461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2462 rm -f -r conftest* confdefs.h
   2463 
   2464 $as_echo "/* confdefs.h */" > confdefs.h
   2465 
   2466 # Predefined preprocessor variables.
   2467 
   2468 cat >>confdefs.h <<_ACEOF
   2469 #define PACKAGE_NAME "$PACKAGE_NAME"
   2470 _ACEOF
   2471 
   2472 cat >>confdefs.h <<_ACEOF
   2473 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2474 _ACEOF
   2475 
   2476 cat >>confdefs.h <<_ACEOF
   2477 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2478 _ACEOF
   2479 
   2480 cat >>confdefs.h <<_ACEOF
   2481 #define PACKAGE_STRING "$PACKAGE_STRING"
   2482 _ACEOF
   2483 
   2484 cat >>confdefs.h <<_ACEOF
   2485 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2486 _ACEOF
   2487 
   2488 cat >>confdefs.h <<_ACEOF
   2489 #define PACKAGE_URL "$PACKAGE_URL"
   2490 _ACEOF
   2491 
   2492 
   2493 # Let the site file select an alternate cache file if it wants to.
   2494 # Prefer an explicitly selected file to automatically selected ones.
   2495 ac_site_file1=NONE
   2496 ac_site_file2=NONE
   2497 if test -n "$CONFIG_SITE"; then
   2498   # We do not want a PATH search for config.site.
   2499   case $CONFIG_SITE in #((
   2500     -*)  ac_site_file1=./$CONFIG_SITE;;
   2501     */*) ac_site_file1=$CONFIG_SITE;;
   2502     *)   ac_site_file1=./$CONFIG_SITE;;
   2503   esac
   2504 elif test "x$prefix" != xNONE; then
   2505   ac_site_file1=$prefix/share/config.site
   2506   ac_site_file2=$prefix/etc/config.site
   2507 else
   2508   ac_site_file1=$ac_default_prefix/share/config.site
   2509   ac_site_file2=$ac_default_prefix/etc/config.site
   2510 fi
   2511 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2512 do
   2513   test "x$ac_site_file" = xNONE && continue
   2514   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2515     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2516 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2517     sed 's/^/| /' "$ac_site_file" >&5
   2518     . "$ac_site_file" \
   2519       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2521 as_fn_error $? "failed to load site script $ac_site_file
   2522 See \`config.log' for more details" "$LINENO" 5; }
   2523   fi
   2524 done
   2525 
   2526 if test -r "$cache_file"; then
   2527   # Some versions of bash will fail to source /dev/null (special files
   2528   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2529   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2530     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2531 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2532     case $cache_file in
   2533       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2534       *)                      . "./$cache_file";;
   2535     esac
   2536   fi
   2537 else
   2538   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2539 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2540   >$cache_file
   2541 fi
   2542 
   2543 # Check that the precious variables saved in the cache have kept the same
   2544 # value.
   2545 ac_cache_corrupted=false
   2546 for ac_var in $ac_precious_vars; do
   2547   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2548   eval ac_new_set=\$ac_env_${ac_var}_set
   2549   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2550   eval ac_new_val=\$ac_env_${ac_var}_value
   2551   case $ac_old_set,$ac_new_set in
   2552     set,)
   2553       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2554 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2555       ac_cache_corrupted=: ;;
   2556     ,set)
   2557       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2558 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2559       ac_cache_corrupted=: ;;
   2560     ,);;
   2561     *)
   2562       if test "x$ac_old_val" != "x$ac_new_val"; then
   2563 	# differences in whitespace do not lead to failure.
   2564 	ac_old_val_w=`echo x $ac_old_val`
   2565 	ac_new_val_w=`echo x $ac_new_val`
   2566 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2567 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2568 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2569 	  ac_cache_corrupted=:
   2570 	else
   2571 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2572 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2573 	  eval $ac_var=\$ac_old_val
   2574 	fi
   2575 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2576 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2577 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2578 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2579       fi;;
   2580   esac
   2581   # Pass precious variables to config.status.
   2582   if test "$ac_new_set" = set; then
   2583     case $ac_new_val in
   2584     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2585     *) ac_arg=$ac_var=$ac_new_val ;;
   2586     esac
   2587     case " $ac_configure_args " in
   2588       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2589       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2590     esac
   2591   fi
   2592 done
   2593 if $ac_cache_corrupted; then
   2594   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2596   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2597 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2598   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2599 fi
   2600 ## -------------------- ##
   2601 ## Main body of script. ##
   2602 ## -------------------- ##
   2603 
   2604 ac_ext=c
   2605 ac_cpp='$CPP $CPPFLAGS'
   2606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2609 
   2610 
   2611 
   2612 
   2613 #
   2614 # Enable maintainer mode by default, but allow to disable it in the CI
   2615 #
   2616 
   2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   2618 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   2619     # Check whether --enable-maintainer-mode was given.
   2620 if test "${enable_maintainer_mode+set}" = set; then :
   2621   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   2622 else
   2623   USE_MAINTAINER_MODE=yes
   2624 fi
   2625 
   2626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   2627 $as_echo "$USE_MAINTAINER_MODE" >&6; }
   2628    if test $USE_MAINTAINER_MODE = yes; then
   2629   MAINTAINER_MODE_TRUE=
   2630   MAINTAINER_MODE_FALSE='#'
   2631 else
   2632   MAINTAINER_MODE_TRUE='#'
   2633   MAINTAINER_MODE_FALSE=
   2634 fi
   2635 
   2636   MAINT=$MAINTAINER_MODE_TRUE
   2637 
   2638 
   2639 
   2640 ac_config_headers="$ac_config_headers config.h"
   2641 
   2642 
   2643 
   2644 ac_aux_dir=
   2645 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2646   if test -f "$ac_dir/install-sh"; then
   2647     ac_aux_dir=$ac_dir
   2648     ac_install_sh="$ac_aux_dir/install-sh -c"
   2649     break
   2650   elif test -f "$ac_dir/install.sh"; then
   2651     ac_aux_dir=$ac_dir
   2652     ac_install_sh="$ac_aux_dir/install.sh -c"
   2653     break
   2654   elif test -f "$ac_dir/shtool"; then
   2655     ac_aux_dir=$ac_dir
   2656     ac_install_sh="$ac_aux_dir/shtool install -c"
   2657     break
   2658   fi
   2659 done
   2660 if test -z "$ac_aux_dir"; then
   2661   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2662 fi
   2663 
   2664 # These three variables are undocumented and unsupported,
   2665 # and are intended to be withdrawn in a future Autoconf release.
   2666 # They can cause serious problems if a builder's source tree is in a directory
   2667 # whose full name contains unusual characters.
   2668 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2669 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2670 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2671 
   2672 
   2673 # Make sure we can run config.sub.
   2674 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2675   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2676 
   2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2678 $as_echo_n "checking build system type... " >&6; }
   2679 if ${ac_cv_build+:} false; then :
   2680   $as_echo_n "(cached) " >&6
   2681 else
   2682   ac_build_alias=$build_alias
   2683 test "x$ac_build_alias" = x &&
   2684   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2685 test "x$ac_build_alias" = x &&
   2686   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2687 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2688   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2689 
   2690 fi
   2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2692 $as_echo "$ac_cv_build" >&6; }
   2693 case $ac_cv_build in
   2694 *-*-*) ;;
   2695 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2696 esac
   2697 build=$ac_cv_build
   2698 ac_save_IFS=$IFS; IFS='-'
   2699 set x $ac_cv_build
   2700 shift
   2701 build_cpu=$1
   2702 build_vendor=$2
   2703 shift; shift
   2704 # Remember, the first character of IFS is used to create $*,
   2705 # except with old shells:
   2706 build_os=$*
   2707 IFS=$ac_save_IFS
   2708 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2709 
   2710 
   2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2712 $as_echo_n "checking host system type... " >&6; }
   2713 if ${ac_cv_host+:} false; then :
   2714   $as_echo_n "(cached) " >&6
   2715 else
   2716   if test "x$host_alias" = x; then
   2717   ac_cv_host=$ac_cv_build
   2718 else
   2719   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2720     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2721 fi
   2722 
   2723 fi
   2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2725 $as_echo "$ac_cv_host" >&6; }
   2726 case $ac_cv_host in
   2727 *-*-*) ;;
   2728 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2729 esac
   2730 host=$ac_cv_host
   2731 ac_save_IFS=$IFS; IFS='-'
   2732 set x $ac_cv_host
   2733 shift
   2734 host_cpu=$1
   2735 host_vendor=$2
   2736 shift; shift
   2737 # Remember, the first character of IFS is used to create $*,
   2738 # except with old shells:
   2739 host_os=$*
   2740 IFS=$ac_save_IFS
   2741 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2742 
   2743 
   2744 
   2745 #
   2746 # Enable system extensions to C and POSIX
   2747 #
   2748 ac_ext=c
   2749 ac_cpp='$CPP $CPPFLAGS'
   2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2753 if test -n "$ac_tool_prefix"; then
   2754   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2755 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2757 $as_echo_n "checking for $ac_word... " >&6; }
   2758 if ${ac_cv_prog_CC+:} false; then :
   2759   $as_echo_n "(cached) " >&6
   2760 else
   2761   if test -n "$CC"; then
   2762   ac_cv_prog_CC="$CC" # Let the user override the test.
   2763 else
   2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2765 for as_dir in $PATH
   2766 do
   2767   IFS=$as_save_IFS
   2768   test -z "$as_dir" && as_dir=.
   2769     for ac_exec_ext in '' $ac_executable_extensions; do
   2770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2771     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2773     break 2
   2774   fi
   2775 done
   2776   done
   2777 IFS=$as_save_IFS
   2778 
   2779 fi
   2780 fi
   2781 CC=$ac_cv_prog_CC
   2782 if test -n "$CC"; then
   2783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2784 $as_echo "$CC" >&6; }
   2785 else
   2786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2787 $as_echo "no" >&6; }
   2788 fi
   2789 
   2790 
   2791 fi
   2792 if test -z "$ac_cv_prog_CC"; then
   2793   ac_ct_CC=$CC
   2794   # Extract the first word of "gcc", so it can be a program name with args.
   2795 set dummy gcc; ac_word=$2
   2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2797 $as_echo_n "checking for $ac_word... " >&6; }
   2798 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2799   $as_echo_n "(cached) " >&6
   2800 else
   2801   if test -n "$ac_ct_CC"; then
   2802   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2803 else
   2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2805 for as_dir in $PATH
   2806 do
   2807   IFS=$as_save_IFS
   2808   test -z "$as_dir" && as_dir=.
   2809     for ac_exec_ext in '' $ac_executable_extensions; do
   2810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2811     ac_cv_prog_ac_ct_CC="gcc"
   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 fi
   2820 fi
   2821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2822 if test -n "$ac_ct_CC"; then
   2823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2824 $as_echo "$ac_ct_CC" >&6; }
   2825 else
   2826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2827 $as_echo "no" >&6; }
   2828 fi
   2829 
   2830   if test "x$ac_ct_CC" = x; then
   2831     CC=""
   2832   else
   2833     case $cross_compiling:$ac_tool_warned in
   2834 yes:)
   2835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2837 ac_tool_warned=yes ;;
   2838 esac
   2839     CC=$ac_ct_CC
   2840   fi
   2841 else
   2842   CC="$ac_cv_prog_CC"
   2843 fi
   2844 
   2845 if test -z "$CC"; then
   2846           if test -n "$ac_tool_prefix"; then
   2847     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2848 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2850 $as_echo_n "checking for $ac_word... " >&6; }
   2851 if ${ac_cv_prog_CC+:} false; then :
   2852   $as_echo_n "(cached) " >&6
   2853 else
   2854   if test -n "$CC"; then
   2855   ac_cv_prog_CC="$CC" # Let the user override the test.
   2856 else
   2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2858 for as_dir in $PATH
   2859 do
   2860   IFS=$as_save_IFS
   2861   test -z "$as_dir" && as_dir=.
   2862     for ac_exec_ext in '' $ac_executable_extensions; do
   2863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2864     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2866     break 2
   2867   fi
   2868 done
   2869   done
   2870 IFS=$as_save_IFS
   2871 
   2872 fi
   2873 fi
   2874 CC=$ac_cv_prog_CC
   2875 if test -n "$CC"; then
   2876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2877 $as_echo "$CC" >&6; }
   2878 else
   2879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2880 $as_echo "no" >&6; }
   2881 fi
   2882 
   2883 
   2884   fi
   2885 fi
   2886 if test -z "$CC"; then
   2887   # Extract the first word of "cc", so it can be a program name with args.
   2888 set dummy cc; ac_word=$2
   2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2890 $as_echo_n "checking for $ac_word... " >&6; }
   2891 if ${ac_cv_prog_CC+:} false; then :
   2892   $as_echo_n "(cached) " >&6
   2893 else
   2894   if test -n "$CC"; then
   2895   ac_cv_prog_CC="$CC" # Let the user override the test.
   2896 else
   2897   ac_prog_rejected=no
   2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2899 for as_dir in $PATH
   2900 do
   2901   IFS=$as_save_IFS
   2902   test -z "$as_dir" && as_dir=.
   2903     for ac_exec_ext in '' $ac_executable_extensions; do
   2904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2905     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2906        ac_prog_rejected=yes
   2907        continue
   2908      fi
   2909     ac_cv_prog_CC="cc"
   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 if test $ac_prog_rejected = yes; then
   2918   # We found a bogon in the path, so make sure we never use it.
   2919   set dummy $ac_cv_prog_CC
   2920   shift
   2921   if test $# != 0; then
   2922     # We chose a different compiler from the bogus one.
   2923     # However, it has the same basename, so the bogon will be chosen
   2924     # first if we set CC to just the basename; use the full file name.
   2925     shift
   2926     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2927   fi
   2928 fi
   2929 fi
   2930 fi
   2931 CC=$ac_cv_prog_CC
   2932 if test -n "$CC"; then
   2933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2934 $as_echo "$CC" >&6; }
   2935 else
   2936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2937 $as_echo "no" >&6; }
   2938 fi
   2939 
   2940 
   2941 fi
   2942 if test -z "$CC"; then
   2943   if test -n "$ac_tool_prefix"; then
   2944   for ac_prog in cl.exe
   2945   do
   2946     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2949 $as_echo_n "checking for $ac_word... " >&6; }
   2950 if ${ac_cv_prog_CC+:} false; then :
   2951   $as_echo_n "(cached) " >&6
   2952 else
   2953   if test -n "$CC"; then
   2954   ac_cv_prog_CC="$CC" # Let the user override the test.
   2955 else
   2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2957 for as_dir in $PATH
   2958 do
   2959   IFS=$as_save_IFS
   2960   test -z "$as_dir" && as_dir=.
   2961     for ac_exec_ext in '' $ac_executable_extensions; do
   2962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2963     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2965     break 2
   2966   fi
   2967 done
   2968   done
   2969 IFS=$as_save_IFS
   2970 
   2971 fi
   2972 fi
   2973 CC=$ac_cv_prog_CC
   2974 if test -n "$CC"; then
   2975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2976 $as_echo "$CC" >&6; }
   2977 else
   2978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2979 $as_echo "no" >&6; }
   2980 fi
   2981 
   2982 
   2983     test -n "$CC" && break
   2984   done
   2985 fi
   2986 if test -z "$CC"; then
   2987   ac_ct_CC=$CC
   2988   for ac_prog in cl.exe
   2989 do
   2990   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2991 set dummy $ac_prog; ac_word=$2
   2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2993 $as_echo_n "checking for $ac_word... " >&6; }
   2994 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2995   $as_echo_n "(cached) " >&6
   2996 else
   2997   if test -n "$ac_ct_CC"; then
   2998   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2999 else
   3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3001 for as_dir in $PATH
   3002 do
   3003   IFS=$as_save_IFS
   3004   test -z "$as_dir" && as_dir=.
   3005     for ac_exec_ext in '' $ac_executable_extensions; do
   3006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3007     ac_cv_prog_ac_ct_CC="$ac_prog"
   3008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3009     break 2
   3010   fi
   3011 done
   3012   done
   3013 IFS=$as_save_IFS
   3014 
   3015 fi
   3016 fi
   3017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3018 if test -n "$ac_ct_CC"; then
   3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3020 $as_echo "$ac_ct_CC" >&6; }
   3021 else
   3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3023 $as_echo "no" >&6; }
   3024 fi
   3025 
   3026 
   3027   test -n "$ac_ct_CC" && break
   3028 done
   3029 
   3030   if test "x$ac_ct_CC" = x; then
   3031     CC=""
   3032   else
   3033     case $cross_compiling:$ac_tool_warned in
   3034 yes:)
   3035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3037 ac_tool_warned=yes ;;
   3038 esac
   3039     CC=$ac_ct_CC
   3040   fi
   3041 fi
   3042 
   3043 fi
   3044 
   3045 
   3046 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3048 as_fn_error $? "no acceptable C compiler found in \$PATH
   3049 See \`config.log' for more details" "$LINENO" 5; }
   3050 
   3051 # Provide some information about the compiler.
   3052 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3053 set X $ac_compile
   3054 ac_compiler=$2
   3055 for ac_option in --version -v -V -qversion; do
   3056   { { ac_try="$ac_compiler $ac_option >&5"
   3057 case "(($ac_try" in
   3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3059   *) ac_try_echo=$ac_try;;
   3060 esac
   3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3062 $as_echo "$ac_try_echo"; } >&5
   3063   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3064   ac_status=$?
   3065   if test -s conftest.err; then
   3066     sed '10a\
   3067 ... rest of stderr output deleted ...
   3068          10q' conftest.err >conftest.er1
   3069     cat conftest.er1 >&5
   3070   fi
   3071   rm -f conftest.er1 conftest.err
   3072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3073   test $ac_status = 0; }
   3074 done
   3075 
   3076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3077 /* end confdefs.h.  */
   3078 
   3079 int
   3080 main ()
   3081 {
   3082 
   3083   ;
   3084   return 0;
   3085 }
   3086 _ACEOF
   3087 ac_clean_files_save=$ac_clean_files
   3088 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3089 # Try to create an executable without -o first, disregard a.out.
   3090 # It will help us diagnose broken compilers, and finding out an intuition
   3091 # of exeext.
   3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3093 $as_echo_n "checking whether the C compiler works... " >&6; }
   3094 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3095 
   3096 # The possible output files:
   3097 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3098 
   3099 ac_rmfiles=
   3100 for ac_file in $ac_files
   3101 do
   3102   case $ac_file in
   3103     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3104     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3105   esac
   3106 done
   3107 rm -f $ac_rmfiles
   3108 
   3109 if { { ac_try="$ac_link_default"
   3110 case "(($ac_try" in
   3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3112   *) ac_try_echo=$ac_try;;
   3113 esac
   3114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3115 $as_echo "$ac_try_echo"; } >&5
   3116   (eval "$ac_link_default") 2>&5
   3117   ac_status=$?
   3118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3119   test $ac_status = 0; }; then :
   3120   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3121 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3122 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3123 # so that the user can short-circuit this test for compilers unknown to
   3124 # Autoconf.
   3125 for ac_file in $ac_files ''
   3126 do
   3127   test -f "$ac_file" || continue
   3128   case $ac_file in
   3129     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3130 	;;
   3131     [ab].out )
   3132 	# We found the default executable, but exeext='' is most
   3133 	# certainly right.
   3134 	break;;
   3135     *.* )
   3136 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3137 	then :; else
   3138 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3139 	fi
   3140 	# We set ac_cv_exeext here because the later test for it is not
   3141 	# safe: cross compilers may not add the suffix if given an `-o'
   3142 	# argument, so we may need to know it at that point already.
   3143 	# Even if this section looks crufty: it has the advantage of
   3144 	# actually working.
   3145 	break;;
   3146     * )
   3147 	break;;
   3148   esac
   3149 done
   3150 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3151 
   3152 else
   3153   ac_file=''
   3154 fi
   3155 if test -z "$ac_file"; then :
   3156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3157 $as_echo "no" >&6; }
   3158 $as_echo "$as_me: failed program was:" >&5
   3159 sed 's/^/| /' conftest.$ac_ext >&5
   3160 
   3161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3163 as_fn_error 77 "C compiler cannot create executables
   3164 See \`config.log' for more details" "$LINENO" 5; }
   3165 else
   3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3167 $as_echo "yes" >&6; }
   3168 fi
   3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3170 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3172 $as_echo "$ac_file" >&6; }
   3173 ac_exeext=$ac_cv_exeext
   3174 
   3175 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3176 ac_clean_files=$ac_clean_files_save
   3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3178 $as_echo_n "checking for suffix of executables... " >&6; }
   3179 if { { ac_try="$ac_link"
   3180 case "(($ac_try" in
   3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3182   *) ac_try_echo=$ac_try;;
   3183 esac
   3184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3185 $as_echo "$ac_try_echo"; } >&5
   3186   (eval "$ac_link") 2>&5
   3187   ac_status=$?
   3188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3189   test $ac_status = 0; }; then :
   3190   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3191 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3192 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3193 # `rm'.
   3194 for ac_file in conftest.exe conftest conftest.*; do
   3195   test -f "$ac_file" || continue
   3196   case $ac_file in
   3197     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3198     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3199 	  break;;
   3200     * ) break;;
   3201   esac
   3202 done
   3203 else
   3204   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3206 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3207 See \`config.log' for more details" "$LINENO" 5; }
   3208 fi
   3209 rm -f conftest conftest$ac_cv_exeext
   3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3211 $as_echo "$ac_cv_exeext" >&6; }
   3212 
   3213 rm -f conftest.$ac_ext
   3214 EXEEXT=$ac_cv_exeext
   3215 ac_exeext=$EXEEXT
   3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3217 /* end confdefs.h.  */
   3218 #include <stdio.h>
   3219 int
   3220 main ()
   3221 {
   3222 FILE *f = fopen ("conftest.out", "w");
   3223  return ferror (f) || fclose (f) != 0;
   3224 
   3225   ;
   3226   return 0;
   3227 }
   3228 _ACEOF
   3229 ac_clean_files="$ac_clean_files conftest.out"
   3230 # Check that the compiler produces executables we can run.  If not, either
   3231 # the compiler is broken, or we cross compile.
   3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3233 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3234 if test "$cross_compiling" != yes; then
   3235   { { ac_try="$ac_link"
   3236 case "(($ac_try" in
   3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3238   *) ac_try_echo=$ac_try;;
   3239 esac
   3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3241 $as_echo "$ac_try_echo"; } >&5
   3242   (eval "$ac_link") 2>&5
   3243   ac_status=$?
   3244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3245   test $ac_status = 0; }
   3246   if { ac_try='./conftest$ac_cv_exeext'
   3247   { { case "(($ac_try" in
   3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3249   *) ac_try_echo=$ac_try;;
   3250 esac
   3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3252 $as_echo "$ac_try_echo"; } >&5
   3253   (eval "$ac_try") 2>&5
   3254   ac_status=$?
   3255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3256   test $ac_status = 0; }; }; then
   3257     cross_compiling=no
   3258   else
   3259     if test "$cross_compiling" = maybe; then
   3260 	cross_compiling=yes
   3261     else
   3262 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3264 as_fn_error $? "cannot run C compiled programs.
   3265 If you meant to cross compile, use \`--host'.
   3266 See \`config.log' for more details" "$LINENO" 5; }
   3267     fi
   3268   fi
   3269 fi
   3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3271 $as_echo "$cross_compiling" >&6; }
   3272 
   3273 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3274 ac_clean_files=$ac_clean_files_save
   3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3276 $as_echo_n "checking for suffix of object files... " >&6; }
   3277 if ${ac_cv_objext+:} false; then :
   3278   $as_echo_n "(cached) " >&6
   3279 else
   3280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3281 /* end confdefs.h.  */
   3282 
   3283 int
   3284 main ()
   3285 {
   3286 
   3287   ;
   3288   return 0;
   3289 }
   3290 _ACEOF
   3291 rm -f conftest.o conftest.obj
   3292 if { { ac_try="$ac_compile"
   3293 case "(($ac_try" in
   3294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3295   *) ac_try_echo=$ac_try;;
   3296 esac
   3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3298 $as_echo "$ac_try_echo"; } >&5
   3299   (eval "$ac_compile") 2>&5
   3300   ac_status=$?
   3301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3302   test $ac_status = 0; }; then :
   3303   for ac_file in conftest.o conftest.obj conftest.*; do
   3304   test -f "$ac_file" || continue;
   3305   case $ac_file in
   3306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3307     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3308        break;;
   3309   esac
   3310 done
   3311 else
   3312   $as_echo "$as_me: failed program was:" >&5
   3313 sed 's/^/| /' conftest.$ac_ext >&5
   3314 
   3315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3317 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3318 See \`config.log' for more details" "$LINENO" 5; }
   3319 fi
   3320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3321 fi
   3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3323 $as_echo "$ac_cv_objext" >&6; }
   3324 OBJEXT=$ac_cv_objext
   3325 ac_objext=$OBJEXT
   3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3327 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3328 if ${ac_cv_c_compiler_gnu+:} false; then :
   3329   $as_echo_n "(cached) " >&6
   3330 else
   3331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3332 /* end confdefs.h.  */
   3333 
   3334 int
   3335 main ()
   3336 {
   3337 #ifndef __GNUC__
   3338        choke me
   3339 #endif
   3340 
   3341   ;
   3342   return 0;
   3343 }
   3344 _ACEOF
   3345 if ac_fn_c_try_compile "$LINENO"; then :
   3346   ac_compiler_gnu=yes
   3347 else
   3348   ac_compiler_gnu=no
   3349 fi
   3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3352 
   3353 fi
   3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3355 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3356 if test $ac_compiler_gnu = yes; then
   3357   GCC=yes
   3358 else
   3359   GCC=
   3360 fi
   3361 ac_test_CFLAGS=${CFLAGS+set}
   3362 ac_save_CFLAGS=$CFLAGS
   3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3364 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3365 if ${ac_cv_prog_cc_g+:} false; then :
   3366   $as_echo_n "(cached) " >&6
   3367 else
   3368   ac_save_c_werror_flag=$ac_c_werror_flag
   3369    ac_c_werror_flag=yes
   3370    ac_cv_prog_cc_g=no
   3371    CFLAGS="-g"
   3372    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3373 /* end confdefs.h.  */
   3374 
   3375 int
   3376 main ()
   3377 {
   3378 
   3379   ;
   3380   return 0;
   3381 }
   3382 _ACEOF
   3383 if ac_fn_c_try_compile "$LINENO"; then :
   3384   ac_cv_prog_cc_g=yes
   3385 else
   3386   CFLAGS=""
   3387       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3388 /* end confdefs.h.  */
   3389 
   3390 int
   3391 main ()
   3392 {
   3393 
   3394   ;
   3395   return 0;
   3396 }
   3397 _ACEOF
   3398 if ac_fn_c_try_compile "$LINENO"; then :
   3399 
   3400 else
   3401   ac_c_werror_flag=$ac_save_c_werror_flag
   3402 	 CFLAGS="-g"
   3403 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3404 /* end confdefs.h.  */
   3405 
   3406 int
   3407 main ()
   3408 {
   3409 
   3410   ;
   3411   return 0;
   3412 }
   3413 _ACEOF
   3414 if ac_fn_c_try_compile "$LINENO"; then :
   3415   ac_cv_prog_cc_g=yes
   3416 fi
   3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3418 fi
   3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3420 fi
   3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3422    ac_c_werror_flag=$ac_save_c_werror_flag
   3423 fi
   3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3425 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3426 if test "$ac_test_CFLAGS" = set; then
   3427   CFLAGS=$ac_save_CFLAGS
   3428 elif test $ac_cv_prog_cc_g = yes; then
   3429   if test "$GCC" = yes; then
   3430     CFLAGS="-g -O2"
   3431   else
   3432     CFLAGS="-g"
   3433   fi
   3434 else
   3435   if test "$GCC" = yes; then
   3436     CFLAGS="-O2"
   3437   else
   3438     CFLAGS=
   3439   fi
   3440 fi
   3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3442 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3443 if ${ac_cv_prog_cc_c89+:} false; then :
   3444   $as_echo_n "(cached) " >&6
   3445 else
   3446   ac_cv_prog_cc_c89=no
   3447 ac_save_CC=$CC
   3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3449 /* end confdefs.h.  */
   3450 #include <stdarg.h>
   3451 #include <stdio.h>
   3452 struct stat;
   3453 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3454 struct buf { int x; };
   3455 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3456 static char *e (p, i)
   3457      char **p;
   3458      int i;
   3459 {
   3460   return p[i];
   3461 }
   3462 static char *f (char * (*g) (char **, int), char **p, ...)
   3463 {
   3464   char *s;
   3465   va_list v;
   3466   va_start (v,p);
   3467   s = g (p, va_arg (v,int));
   3468   va_end (v);
   3469   return s;
   3470 }
   3471 
   3472 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3473    function prototypes and stuff, but not '\xHH' hex character constants.
   3474    These don't provoke an error unfortunately, instead are silently treated
   3475    as 'x'.  The following induces an error, until -std is added to get
   3476    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3477    array size at least.  It's necessary to write '\x00'==0 to get something
   3478    that's true only with -std.  */
   3479 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3480 
   3481 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3482    inside strings and character constants.  */
   3483 #define FOO(x) 'x'
   3484 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3485 
   3486 int test (int i, double x);
   3487 struct s1 {int (*f) (int a);};
   3488 struct s2 {int (*f) (double a);};
   3489 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3490 int argc;
   3491 char **argv;
   3492 int
   3493 main ()
   3494 {
   3495 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3496   ;
   3497   return 0;
   3498 }
   3499 _ACEOF
   3500 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3501 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3502 do
   3503   CC="$ac_save_CC $ac_arg"
   3504   if ac_fn_c_try_compile "$LINENO"; then :
   3505   ac_cv_prog_cc_c89=$ac_arg
   3506 fi
   3507 rm -f core conftest.err conftest.$ac_objext
   3508   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3509 done
   3510 rm -f conftest.$ac_ext
   3511 CC=$ac_save_CC
   3512 
   3513 fi
   3514 # AC_CACHE_VAL
   3515 case "x$ac_cv_prog_cc_c89" in
   3516   x)
   3517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3518 $as_echo "none needed" >&6; } ;;
   3519   xno)
   3520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3521 $as_echo "unsupported" >&6; } ;;
   3522   *)
   3523     CC="$CC $ac_cv_prog_cc_c89"
   3524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3525 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3526 esac
   3527 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3528 
   3529 fi
   3530 
   3531 ac_ext=c
   3532 ac_cpp='$CPP $CPPFLAGS'
   3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3536 
   3537 
   3538 ac_ext=c
   3539 ac_cpp='$CPP $CPPFLAGS'
   3540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3544 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3545 # On Suns, sometimes $CPP names a directory.
   3546 if test -n "$CPP" && test -d "$CPP"; then
   3547   CPP=
   3548 fi
   3549 if test -z "$CPP"; then
   3550   if ${ac_cv_prog_CPP+:} false; then :
   3551   $as_echo_n "(cached) " >&6
   3552 else
   3553       # Double quotes because CPP needs to be expanded
   3554     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3555     do
   3556       ac_preproc_ok=false
   3557 for ac_c_preproc_warn_flag in '' yes
   3558 do
   3559   # Use a header file that comes with gcc, so configuring glibc
   3560   # with a fresh cross-compiler works.
   3561   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3562   # <limits.h> exists even on freestanding compilers.
   3563   # On the NeXT, cc -E runs the code through the compiler's parser,
   3564   # not just through cpp. "Syntax error" is here to catch this case.
   3565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3566 /* end confdefs.h.  */
   3567 #ifdef __STDC__
   3568 # include <limits.h>
   3569 #else
   3570 # include <assert.h>
   3571 #endif
   3572 		     Syntax error
   3573 _ACEOF
   3574 if ac_fn_c_try_cpp "$LINENO"; then :
   3575 
   3576 else
   3577   # Broken: fails on valid input.
   3578 continue
   3579 fi
   3580 rm -f conftest.err conftest.i conftest.$ac_ext
   3581 
   3582   # OK, works on sane cases.  Now check whether nonexistent headers
   3583   # can be detected and how.
   3584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3585 /* end confdefs.h.  */
   3586 #include <ac_nonexistent.h>
   3587 _ACEOF
   3588 if ac_fn_c_try_cpp "$LINENO"; then :
   3589   # Broken: success on invalid input.
   3590 continue
   3591 else
   3592   # Passes both tests.
   3593 ac_preproc_ok=:
   3594 break
   3595 fi
   3596 rm -f conftest.err conftest.i conftest.$ac_ext
   3597 
   3598 done
   3599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3600 rm -f conftest.i conftest.err conftest.$ac_ext
   3601 if $ac_preproc_ok; then :
   3602   break
   3603 fi
   3604 
   3605     done
   3606     ac_cv_prog_CPP=$CPP
   3607 
   3608 fi
   3609   CPP=$ac_cv_prog_CPP
   3610 else
   3611   ac_cv_prog_CPP=$CPP
   3612 fi
   3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3614 $as_echo "$CPP" >&6; }
   3615 ac_preproc_ok=false
   3616 for ac_c_preproc_warn_flag in '' yes
   3617 do
   3618   # Use a header file that comes with gcc, so configuring glibc
   3619   # with a fresh cross-compiler works.
   3620   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3621   # <limits.h> exists even on freestanding compilers.
   3622   # On the NeXT, cc -E runs the code through the compiler's parser,
   3623   # not just through cpp. "Syntax error" is here to catch this case.
   3624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3625 /* end confdefs.h.  */
   3626 #ifdef __STDC__
   3627 # include <limits.h>
   3628 #else
   3629 # include <assert.h>
   3630 #endif
   3631 		     Syntax error
   3632 _ACEOF
   3633 if ac_fn_c_try_cpp "$LINENO"; then :
   3634 
   3635 else
   3636   # Broken: fails on valid input.
   3637 continue
   3638 fi
   3639 rm -f conftest.err conftest.i conftest.$ac_ext
   3640 
   3641   # OK, works on sane cases.  Now check whether nonexistent headers
   3642   # can be detected and how.
   3643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3644 /* end confdefs.h.  */
   3645 #include <ac_nonexistent.h>
   3646 _ACEOF
   3647 if ac_fn_c_try_cpp "$LINENO"; then :
   3648   # Broken: success on invalid input.
   3649 continue
   3650 else
   3651   # Passes both tests.
   3652 ac_preproc_ok=:
   3653 break
   3654 fi
   3655 rm -f conftest.err conftest.i conftest.$ac_ext
   3656 
   3657 done
   3658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3659 rm -f conftest.i conftest.err conftest.$ac_ext
   3660 if $ac_preproc_ok; then :
   3661 
   3662 else
   3663   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3665 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   3666 See \`config.log' for more details" "$LINENO" 5; }
   3667 fi
   3668 
   3669 ac_ext=c
   3670 ac_cpp='$CPP $CPPFLAGS'
   3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3674 
   3675 
   3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3677 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3678 if ${ac_cv_path_GREP+:} false; then :
   3679   $as_echo_n "(cached) " >&6
   3680 else
   3681   if test -z "$GREP"; then
   3682   ac_path_GREP_found=false
   3683   # Loop through the user's path and test for each of PROGNAME-LIST
   3684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3686 do
   3687   IFS=$as_save_IFS
   3688   test -z "$as_dir" && as_dir=.
   3689     for ac_prog in grep ggrep; do
   3690     for ac_exec_ext in '' $ac_executable_extensions; do
   3691       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3692       as_fn_executable_p "$ac_path_GREP" || continue
   3693 # Check for GNU ac_path_GREP and select it if it is found.
   3694   # Check for GNU $ac_path_GREP
   3695 case `"$ac_path_GREP" --version 2>&1` in
   3696 *GNU*)
   3697   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3698 *)
   3699   ac_count=0
   3700   $as_echo_n 0123456789 >"conftest.in"
   3701   while :
   3702   do
   3703     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3704     mv "conftest.tmp" "conftest.in"
   3705     cp "conftest.in" "conftest.nl"
   3706     $as_echo 'GREP' >> "conftest.nl"
   3707     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3708     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3709     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3710     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3711       # Best one so far, save it but keep looking for a better one
   3712       ac_cv_path_GREP="$ac_path_GREP"
   3713       ac_path_GREP_max=$ac_count
   3714     fi
   3715     # 10*(2^10) chars as input seems more than enough
   3716     test $ac_count -gt 10 && break
   3717   done
   3718   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3719 esac
   3720 
   3721       $ac_path_GREP_found && break 3
   3722     done
   3723   done
   3724   done
   3725 IFS=$as_save_IFS
   3726   if test -z "$ac_cv_path_GREP"; then
   3727     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3728   fi
   3729 else
   3730   ac_cv_path_GREP=$GREP
   3731 fi
   3732 
   3733 fi
   3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3735 $as_echo "$ac_cv_path_GREP" >&6; }
   3736  GREP="$ac_cv_path_GREP"
   3737 
   3738 
   3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3740 $as_echo_n "checking for egrep... " >&6; }
   3741 if ${ac_cv_path_EGREP+:} false; then :
   3742   $as_echo_n "(cached) " >&6
   3743 else
   3744   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3745    then ac_cv_path_EGREP="$GREP -E"
   3746    else
   3747      if test -z "$EGREP"; then
   3748   ac_path_EGREP_found=false
   3749   # Loop through the user's path and test for each of PROGNAME-LIST
   3750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3752 do
   3753   IFS=$as_save_IFS
   3754   test -z "$as_dir" && as_dir=.
   3755     for ac_prog in egrep; do
   3756     for ac_exec_ext in '' $ac_executable_extensions; do
   3757       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3758       as_fn_executable_p "$ac_path_EGREP" || continue
   3759 # Check for GNU ac_path_EGREP and select it if it is found.
   3760   # Check for GNU $ac_path_EGREP
   3761 case `"$ac_path_EGREP" --version 2>&1` in
   3762 *GNU*)
   3763   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3764 *)
   3765   ac_count=0
   3766   $as_echo_n 0123456789 >"conftest.in"
   3767   while :
   3768   do
   3769     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3770     mv "conftest.tmp" "conftest.in"
   3771     cp "conftest.in" "conftest.nl"
   3772     $as_echo 'EGREP' >> "conftest.nl"
   3773     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3774     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3775     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3776     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3777       # Best one so far, save it but keep looking for a better one
   3778       ac_cv_path_EGREP="$ac_path_EGREP"
   3779       ac_path_EGREP_max=$ac_count
   3780     fi
   3781     # 10*(2^10) chars as input seems more than enough
   3782     test $ac_count -gt 10 && break
   3783   done
   3784   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3785 esac
   3786 
   3787       $ac_path_EGREP_found && break 3
   3788     done
   3789   done
   3790   done
   3791 IFS=$as_save_IFS
   3792   if test -z "$ac_cv_path_EGREP"; then
   3793     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3794   fi
   3795 else
   3796   ac_cv_path_EGREP=$EGREP
   3797 fi
   3798 
   3799    fi
   3800 fi
   3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   3802 $as_echo "$ac_cv_path_EGREP" >&6; }
   3803  EGREP="$ac_cv_path_EGREP"
   3804 
   3805 
   3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   3807 $as_echo_n "checking for ANSI C header files... " >&6; }
   3808 if ${ac_cv_header_stdc+:} false; then :
   3809   $as_echo_n "(cached) " >&6
   3810 else
   3811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3812 /* end confdefs.h.  */
   3813 #include <stdlib.h>
   3814 #include <stdarg.h>
   3815 #include <string.h>
   3816 #include <float.h>
   3817 
   3818 int
   3819 main ()
   3820 {
   3821 
   3822   ;
   3823   return 0;
   3824 }
   3825 _ACEOF
   3826 if ac_fn_c_try_compile "$LINENO"; then :
   3827   ac_cv_header_stdc=yes
   3828 else
   3829   ac_cv_header_stdc=no
   3830 fi
   3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3832 
   3833 if test $ac_cv_header_stdc = yes; then
   3834   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3836 /* end confdefs.h.  */
   3837 #include <string.h>
   3838 
   3839 _ACEOF
   3840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3841   $EGREP "memchr" >/dev/null 2>&1; then :
   3842 
   3843 else
   3844   ac_cv_header_stdc=no
   3845 fi
   3846 rm -f conftest*
   3847 
   3848 fi
   3849 
   3850 if test $ac_cv_header_stdc = yes; then
   3851   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3853 /* end confdefs.h.  */
   3854 #include <stdlib.h>
   3855 
   3856 _ACEOF
   3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3858   $EGREP "free" >/dev/null 2>&1; then :
   3859 
   3860 else
   3861   ac_cv_header_stdc=no
   3862 fi
   3863 rm -f conftest*
   3864 
   3865 fi
   3866 
   3867 if test $ac_cv_header_stdc = yes; then
   3868   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3869   if test "$cross_compiling" = yes; then :
   3870   :
   3871 else
   3872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3873 /* end confdefs.h.  */
   3874 #include <ctype.h>
   3875 #include <stdlib.h>
   3876 #if ((' ' & 0x0FF) == 0x020)
   3877 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3878 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3879 #else
   3880 # define ISLOWER(c) \
   3881 		   (('a' <= (c) && (c) <= 'i') \
   3882 		     || ('j' <= (c) && (c) <= 'r') \
   3883 		     || ('s' <= (c) && (c) <= 'z'))
   3884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3885 #endif
   3886 
   3887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3888 int
   3889 main ()
   3890 {
   3891   int i;
   3892   for (i = 0; i < 256; i++)
   3893     if (XOR (islower (i), ISLOWER (i))
   3894 	|| toupper (i) != TOUPPER (i))
   3895       return 2;
   3896   return 0;
   3897 }
   3898 _ACEOF
   3899 if ac_fn_c_try_run "$LINENO"; then :
   3900 
   3901 else
   3902   ac_cv_header_stdc=no
   3903 fi
   3904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   3905   conftest.$ac_objext conftest.beam conftest.$ac_ext
   3906 fi
   3907 
   3908 fi
   3909 fi
   3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   3911 $as_echo "$ac_cv_header_stdc" >&6; }
   3912 if test $ac_cv_header_stdc = yes; then
   3913 
   3914 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   3915 
   3916 fi
   3917 
   3918 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3919 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3920 		  inttypes.h stdint.h unistd.h
   3921 do :
   3922   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3923 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   3924 "
   3925 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   3926   cat >>confdefs.h <<_ACEOF
   3927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3928 _ACEOF
   3929 
   3930 fi
   3931 
   3932 done
   3933 
   3934 
   3935 
   3936   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   3937 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   3938   MINIX=yes
   3939 else
   3940   MINIX=
   3941 fi
   3942 
   3943 
   3944   if test "$MINIX" = yes; then
   3945 
   3946 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   3947 
   3948 
   3949 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   3950 
   3951 
   3952 $as_echo "#define _MINIX 1" >>confdefs.h
   3953 
   3954   fi
   3955 
   3956 
   3957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   3958 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   3959 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   3960   $as_echo_n "(cached) " >&6
   3961 else
   3962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3963 /* end confdefs.h.  */
   3964 
   3965 #         define __EXTENSIONS__ 1
   3966           $ac_includes_default
   3967 int
   3968 main ()
   3969 {
   3970 
   3971   ;
   3972   return 0;
   3973 }
   3974 _ACEOF
   3975 if ac_fn_c_try_compile "$LINENO"; then :
   3976   ac_cv_safe_to_define___extensions__=yes
   3977 else
   3978   ac_cv_safe_to_define___extensions__=no
   3979 fi
   3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3981 fi
   3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   3983 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   3984   test $ac_cv_safe_to_define___extensions__ = yes &&
   3985     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   3986 
   3987   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   3988 
   3989   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   3990 
   3991   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   3992 
   3993   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   3994 
   3995 
   3996 
   3997 #
   3998 # Enable large file support
   3999 #
   4000 # Check whether --enable-largefile was given.
   4001 if test "${enable_largefile+set}" = set; then :
   4002   enableval=$enable_largefile;
   4003 fi
   4004 
   4005 if test "$enable_largefile" != no; then
   4006 
   4007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   4008 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   4009 if ${ac_cv_sys_largefile_CC+:} false; then :
   4010   $as_echo_n "(cached) " >&6
   4011 else
   4012   ac_cv_sys_largefile_CC=no
   4013      if test "$GCC" != yes; then
   4014        ac_save_CC=$CC
   4015        while :; do
   4016 	 # IRIX 6.2 and later do not support large files by default,
   4017 	 # so use the C compiler's -n32 option if that helps.
   4018 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4019 /* end confdefs.h.  */
   4020 #include <sys/types.h>
   4021  /* Check that off_t can represent 2**63 - 1 correctly.
   4022     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4023     since some C++ compilers masquerading as C compilers
   4024     incorrectly reject 9223372036854775807.  */
   4025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4026   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4027 		       && LARGE_OFF_T % 2147483647 == 1)
   4028 		      ? 1 : -1];
   4029 int
   4030 main ()
   4031 {
   4032 
   4033   ;
   4034   return 0;
   4035 }
   4036 _ACEOF
   4037 	 if ac_fn_c_try_compile "$LINENO"; then :
   4038   break
   4039 fi
   4040 rm -f core conftest.err conftest.$ac_objext
   4041 	 CC="$CC -n32"
   4042 	 if ac_fn_c_try_compile "$LINENO"; then :
   4043   ac_cv_sys_largefile_CC=' -n32'; break
   4044 fi
   4045 rm -f core conftest.err conftest.$ac_objext
   4046 	 break
   4047        done
   4048        CC=$ac_save_CC
   4049        rm -f conftest.$ac_ext
   4050     fi
   4051 fi
   4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   4053 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   4054   if test "$ac_cv_sys_largefile_CC" != no; then
   4055     CC=$CC$ac_cv_sys_largefile_CC
   4056   fi
   4057 
   4058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   4059 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   4060 if ${ac_cv_sys_file_offset_bits+:} false; then :
   4061   $as_echo_n "(cached) " >&6
   4062 else
   4063   while :; do
   4064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4065 /* end confdefs.h.  */
   4066 #include <sys/types.h>
   4067  /* Check that off_t can represent 2**63 - 1 correctly.
   4068     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4069     since some C++ compilers masquerading as C compilers
   4070     incorrectly reject 9223372036854775807.  */
   4071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4072   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4073 		       && LARGE_OFF_T % 2147483647 == 1)
   4074 		      ? 1 : -1];
   4075 int
   4076 main ()
   4077 {
   4078 
   4079   ;
   4080   return 0;
   4081 }
   4082 _ACEOF
   4083 if ac_fn_c_try_compile "$LINENO"; then :
   4084   ac_cv_sys_file_offset_bits=no; break
   4085 fi
   4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4088 /* end confdefs.h.  */
   4089 #define _FILE_OFFSET_BITS 64
   4090 #include <sys/types.h>
   4091  /* Check that off_t can represent 2**63 - 1 correctly.
   4092     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4093     since some C++ compilers masquerading as C compilers
   4094     incorrectly reject 9223372036854775807.  */
   4095 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4096   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4097 		       && LARGE_OFF_T % 2147483647 == 1)
   4098 		      ? 1 : -1];
   4099 int
   4100 main ()
   4101 {
   4102 
   4103   ;
   4104   return 0;
   4105 }
   4106 _ACEOF
   4107 if ac_fn_c_try_compile "$LINENO"; then :
   4108   ac_cv_sys_file_offset_bits=64; break
   4109 fi
   4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4111   ac_cv_sys_file_offset_bits=unknown
   4112   break
   4113 done
   4114 fi
   4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   4116 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   4117 case $ac_cv_sys_file_offset_bits in #(
   4118   no | unknown) ;;
   4119   *)
   4120 cat >>confdefs.h <<_ACEOF
   4121 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   4122 _ACEOF
   4123 ;;
   4124 esac
   4125 rm -rf conftest*
   4126   if test $ac_cv_sys_file_offset_bits = unknown; then
   4127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   4128 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   4129 if ${ac_cv_sys_large_files+:} false; then :
   4130   $as_echo_n "(cached) " >&6
   4131 else
   4132   while :; do
   4133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4134 /* end confdefs.h.  */
   4135 #include <sys/types.h>
   4136  /* Check that off_t can represent 2**63 - 1 correctly.
   4137     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4138     since some C++ compilers masquerading as C compilers
   4139     incorrectly reject 9223372036854775807.  */
   4140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4141   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4142 		       && LARGE_OFF_T % 2147483647 == 1)
   4143 		      ? 1 : -1];
   4144 int
   4145 main ()
   4146 {
   4147 
   4148   ;
   4149   return 0;
   4150 }
   4151 _ACEOF
   4152 if ac_fn_c_try_compile "$LINENO"; then :
   4153   ac_cv_sys_large_files=no; break
   4154 fi
   4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4157 /* end confdefs.h.  */
   4158 #define _LARGE_FILES 1
   4159 #include <sys/types.h>
   4160  /* Check that off_t can represent 2**63 - 1 correctly.
   4161     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4162     since some C++ compilers masquerading as C compilers
   4163     incorrectly reject 9223372036854775807.  */
   4164 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4165   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4166 		       && LARGE_OFF_T % 2147483647 == 1)
   4167 		      ? 1 : -1];
   4168 int
   4169 main ()
   4170 {
   4171 
   4172   ;
   4173   return 0;
   4174 }
   4175 _ACEOF
   4176 if ac_fn_c_try_compile "$LINENO"; then :
   4177   ac_cv_sys_large_files=1; break
   4178 fi
   4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4180   ac_cv_sys_large_files=unknown
   4181   break
   4182 done
   4183 fi
   4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   4185 $as_echo "$ac_cv_sys_large_files" >&6; }
   4186 case $ac_cv_sys_large_files in #(
   4187   no | unknown) ;;
   4188   *)
   4189 cat >>confdefs.h <<_ACEOF
   4190 #define _LARGE_FILES $ac_cv_sys_large_files
   4191 _ACEOF
   4192 ;;
   4193 esac
   4194 rm -rf conftest*
   4195   fi
   4196 
   4197 
   4198 fi
   4199 
   4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
   4201 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
   4202 if ${ac_cv_sys_largefile_source+:} false; then :
   4203   $as_echo_n "(cached) " >&6
   4204 else
   4205   while :; do
   4206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4207 /* end confdefs.h.  */
   4208 #include <sys/types.h> /* for off_t */
   4209      #include <stdio.h>
   4210 int
   4211 main ()
   4212 {
   4213 int (*fp) (FILE *, off_t, int) = fseeko;
   4214      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   4215   ;
   4216   return 0;
   4217 }
   4218 _ACEOF
   4219 if ac_fn_c_try_link "$LINENO"; then :
   4220   ac_cv_sys_largefile_source=no; break
   4221 fi
   4222 rm -f core conftest.err conftest.$ac_objext \
   4223     conftest$ac_exeext conftest.$ac_ext
   4224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4225 /* end confdefs.h.  */
   4226 #define _LARGEFILE_SOURCE 1
   4227 #include <sys/types.h> /* for off_t */
   4228      #include <stdio.h>
   4229 int
   4230 main ()
   4231 {
   4232 int (*fp) (FILE *, off_t, int) = fseeko;
   4233      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   4234   ;
   4235   return 0;
   4236 }
   4237 _ACEOF
   4238 if ac_fn_c_try_link "$LINENO"; then :
   4239   ac_cv_sys_largefile_source=1; break
   4240 fi
   4241 rm -f core conftest.err conftest.$ac_objext \
   4242     conftest$ac_exeext conftest.$ac_ext
   4243   ac_cv_sys_largefile_source=unknown
   4244   break
   4245 done
   4246 fi
   4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
   4248 $as_echo "$ac_cv_sys_largefile_source" >&6; }
   4249 case $ac_cv_sys_largefile_source in #(
   4250   no | unknown) ;;
   4251   *)
   4252 cat >>confdefs.h <<_ACEOF
   4253 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
   4254 _ACEOF
   4255 ;;
   4256 esac
   4257 rm -rf conftest*
   4258 
   4259 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
   4260 # in glibc 2.1.3, but that breaks too many other things.
   4261 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
   4262 if test $ac_cv_sys_largefile_source != unknown; then
   4263 
   4264 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
   4265 
   4266 fi
   4267 
   4268 
   4269 LFS_CFLAGS=`getconf LFS_CFLAGS 2>/dev/null`
   4270 LFS_LDFLAGS=`getconf LFS_LDFLAGS 2>/dev/null`
   4271 LFS_LIBS=`getconf LFS_LIBS 2>/dev/null`
   4272 
   4273 
   4274 
   4275 
   4276 
   4277 # Enable RFC 3542 APIs on macOS
   4278 
   4279 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
   4280 
   4281 
   4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   4283 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   4284 set x ${MAKE-make}
   4285 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   4286 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   4287   $as_echo_n "(cached) " >&6
   4288 else
   4289   cat >conftest.make <<\_ACEOF
   4290 SHELL = /bin/sh
   4291 all:
   4292 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   4293 _ACEOF
   4294 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   4295 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   4296   *@@@%%%=?*=@@@%%%*)
   4297     eval ac_cv_prog_make_${ac_make}_set=yes;;
   4298   *)
   4299     eval ac_cv_prog_make_${ac_make}_set=no;;
   4300 esac
   4301 rm -f conftest.make
   4302 fi
   4303 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   4304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4305 $as_echo "yes" >&6; }
   4306   SET_MAKE=
   4307 else
   4308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4309 $as_echo "no" >&6; }
   4310   SET_MAKE="MAKE=${MAKE-make}"
   4311 fi
   4312 
   4313 
   4314 case `pwd` in
   4315   *\ * | *\	*)
   4316     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   4317 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   4318 esac
   4319 
   4320 
   4321 
   4322 macro_version='2.4.6'
   4323 macro_revision='2.4.6'
   4324 
   4325 
   4326 
   4327 
   4328 
   4329 
   4330 
   4331 
   4332 
   4333 
   4334 
   4335 
   4336 
   4337 ltmain=$ac_aux_dir/ltmain.sh
   4338 
   4339 # Backslashify metacharacters that are still active within
   4340 # double-quoted strings.
   4341 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   4342 
   4343 # Same as above, but do not quote variable references.
   4344 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   4345 
   4346 # Sed substitution to delay expansion of an escaped shell variable in a
   4347 # double_quote_subst'ed string.
   4348 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   4349 
   4350 # Sed substitution to delay expansion of an escaped single quote.
   4351 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   4352 
   4353 # Sed substitution to avoid accidental globbing in evaled expressions
   4354 no_glob_subst='s/\*/\\\*/g'
   4355 
   4356 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   4357 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   4358 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   4359 
   4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   4361 $as_echo_n "checking how to print strings... " >&6; }
   4362 # Test print first, because it will be a builtin if present.
   4363 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   4364    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   4365   ECHO='print -r --'
   4366 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   4367   ECHO='printf %s\n'
   4368 else
   4369   # Use this function as a fallback that always works.
   4370   func_fallback_echo ()
   4371   {
   4372     eval 'cat <<_LTECHO_EOF
   4373 $1
   4374 _LTECHO_EOF'
   4375   }
   4376   ECHO='func_fallback_echo'
   4377 fi
   4378 
   4379 # func_echo_all arg...
   4380 # Invoke $ECHO with all args, space-separated.
   4381 func_echo_all ()
   4382 {
   4383     $ECHO ""
   4384 }
   4385 
   4386 case $ECHO in
   4387   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   4388 $as_echo "printf" >&6; } ;;
   4389   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   4390 $as_echo "print -r" >&6; } ;;
   4391   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   4392 $as_echo "cat" >&6; } ;;
   4393 esac
   4394 
   4395 
   4396 
   4397 
   4398 
   4399 
   4400 
   4401 
   4402 
   4403 
   4404 
   4405 
   4406 
   4407 
   4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4409 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   4410 if ${ac_cv_path_SED+:} false; then :
   4411   $as_echo_n "(cached) " >&6
   4412 else
   4413             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4414      for ac_i in 1 2 3 4 5 6 7; do
   4415        ac_script="$ac_script$as_nl$ac_script"
   4416      done
   4417      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4418      { ac_script=; unset ac_script;}
   4419      if test -z "$SED"; then
   4420   ac_path_SED_found=false
   4421   # Loop through the user's path and test for each of PROGNAME-LIST
   4422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4423 for as_dir in $PATH
   4424 do
   4425   IFS=$as_save_IFS
   4426   test -z "$as_dir" && as_dir=.
   4427     for ac_prog in sed gsed; do
   4428     for ac_exec_ext in '' $ac_executable_extensions; do
   4429       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   4430       as_fn_executable_p "$ac_path_SED" || continue
   4431 # Check for GNU ac_path_SED and select it if it is found.
   4432   # Check for GNU $ac_path_SED
   4433 case `"$ac_path_SED" --version 2>&1` in
   4434 *GNU*)
   4435   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4436 *)
   4437   ac_count=0
   4438   $as_echo_n 0123456789 >"conftest.in"
   4439   while :
   4440   do
   4441     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4442     mv "conftest.tmp" "conftest.in"
   4443     cp "conftest.in" "conftest.nl"
   4444     $as_echo '' >> "conftest.nl"
   4445     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4446     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4447     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4448     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4449       # Best one so far, save it but keep looking for a better one
   4450       ac_cv_path_SED="$ac_path_SED"
   4451       ac_path_SED_max=$ac_count
   4452     fi
   4453     # 10*(2^10) chars as input seems more than enough
   4454     test $ac_count -gt 10 && break
   4455   done
   4456   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4457 esac
   4458 
   4459       $ac_path_SED_found && break 3
   4460     done
   4461   done
   4462   done
   4463 IFS=$as_save_IFS
   4464   if test -z "$ac_cv_path_SED"; then
   4465     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4466   fi
   4467 else
   4468   ac_cv_path_SED=$SED
   4469 fi
   4470 
   4471 fi
   4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4473 $as_echo "$ac_cv_path_SED" >&6; }
   4474  SED="$ac_cv_path_SED"
   4475   rm -f conftest.sed
   4476 
   4477 test -z "$SED" && SED=sed
   4478 Xsed="$SED -e 1s/^X//"
   4479 
   4480 
   4481 
   4482 
   4483 
   4484 
   4485 
   4486 
   4487 
   4488 
   4489 
   4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   4491 $as_echo_n "checking for fgrep... " >&6; }
   4492 if ${ac_cv_path_FGREP+:} false; then :
   4493   $as_echo_n "(cached) " >&6
   4494 else
   4495   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   4496    then ac_cv_path_FGREP="$GREP -F"
   4497    else
   4498      if test -z "$FGREP"; then
   4499   ac_path_FGREP_found=false
   4500   # Loop through the user's path and test for each of PROGNAME-LIST
   4501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4502 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4503 do
   4504   IFS=$as_save_IFS
   4505   test -z "$as_dir" && as_dir=.
   4506     for ac_prog in fgrep; do
   4507     for ac_exec_ext in '' $ac_executable_extensions; do
   4508       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   4509       as_fn_executable_p "$ac_path_FGREP" || continue
   4510 # Check for GNU ac_path_FGREP and select it if it is found.
   4511   # Check for GNU $ac_path_FGREP
   4512 case `"$ac_path_FGREP" --version 2>&1` in
   4513 *GNU*)
   4514   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   4515 *)
   4516   ac_count=0
   4517   $as_echo_n 0123456789 >"conftest.in"
   4518   while :
   4519   do
   4520     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4521     mv "conftest.tmp" "conftest.in"
   4522     cp "conftest.in" "conftest.nl"
   4523     $as_echo 'FGREP' >> "conftest.nl"
   4524     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4525     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4526     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4527     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   4528       # Best one so far, save it but keep looking for a better one
   4529       ac_cv_path_FGREP="$ac_path_FGREP"
   4530       ac_path_FGREP_max=$ac_count
   4531     fi
   4532     # 10*(2^10) chars as input seems more than enough
   4533     test $ac_count -gt 10 && break
   4534   done
   4535   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4536 esac
   4537 
   4538       $ac_path_FGREP_found && break 3
   4539     done
   4540   done
   4541   done
   4542 IFS=$as_save_IFS
   4543   if test -z "$ac_cv_path_FGREP"; then
   4544     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4545   fi
   4546 else
   4547   ac_cv_path_FGREP=$FGREP
   4548 fi
   4549 
   4550    fi
   4551 fi
   4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   4553 $as_echo "$ac_cv_path_FGREP" >&6; }
   4554  FGREP="$ac_cv_path_FGREP"
   4555 
   4556 
   4557 test -z "$GREP" && GREP=grep
   4558 
   4559 
   4560 
   4561 
   4562 
   4563 
   4564 
   4565 
   4566 
   4567 
   4568 
   4569 
   4570 
   4571 
   4572 
   4573 
   4574 
   4575 
   4576 
   4577 # Check whether --with-gnu-ld was given.
   4578 if test "${with_gnu_ld+set}" = set; then :
   4579   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
   4580 else
   4581   with_gnu_ld=no
   4582 fi
   4583 
   4584 ac_prog=ld
   4585 if test yes = "$GCC"; then
   4586   # Check if gcc -print-prog-name=ld gives a path.
   4587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   4588 $as_echo_n "checking for ld used by $CC... " >&6; }
   4589   case $host in
   4590   *-*-mingw*)
   4591     # gcc leaves a trailing carriage return, which upsets mingw
   4592     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   4593   *)
   4594     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   4595   esac
   4596   case $ac_prog in
   4597     # Accept absolute paths.
   4598     [\\/]* | ?:[\\/]*)
   4599       re_direlt='/[^/][^/]*/\.\./'
   4600       # Canonicalize the pathname of ld
   4601       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   4602       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   4603 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   4604       done
   4605       test -z "$LD" && LD=$ac_prog
   4606       ;;
   4607   "")
   4608     # If it fails, then pretend we aren't using GCC.
   4609     ac_prog=ld
   4610     ;;
   4611   *)
   4612     # If it is relative, then search for the first ld in PATH.
   4613     with_gnu_ld=unknown
   4614     ;;
   4615   esac
   4616 elif test yes = "$with_gnu_ld"; then
   4617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   4618 $as_echo_n "checking for GNU ld... " >&6; }
   4619 else
   4620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   4621 $as_echo_n "checking for non-GNU ld... " >&6; }
   4622 fi
   4623 if ${lt_cv_path_LD+:} false; then :
   4624   $as_echo_n "(cached) " >&6
   4625 else
   4626   if test -z "$LD"; then
   4627   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4628   for ac_dir in $PATH; do
   4629     IFS=$lt_save_ifs
   4630     test -z "$ac_dir" && ac_dir=.
   4631     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   4632       lt_cv_path_LD=$ac_dir/$ac_prog
   4633       # Check to see if the program is GNU ld.  I'd rather use --version,
   4634       # but apparently some variants of GNU ld only accept -v.
   4635       # Break only if it was the GNU/non-GNU ld that we prefer.
   4636       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   4637       *GNU* | *'with BFD'*)
   4638 	test no != "$with_gnu_ld" && break
   4639 	;;
   4640       *)
   4641 	test yes != "$with_gnu_ld" && break
   4642 	;;
   4643       esac
   4644     fi
   4645   done
   4646   IFS=$lt_save_ifs
   4647 else
   4648   lt_cv_path_LD=$LD # Let the user override the test with a path.
   4649 fi
   4650 fi
   4651 
   4652 LD=$lt_cv_path_LD
   4653 if test -n "$LD"; then
   4654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   4655 $as_echo "$LD" >&6; }
   4656 else
   4657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4658 $as_echo "no" >&6; }
   4659 fi
   4660 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   4662 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   4663 if ${lt_cv_prog_gnu_ld+:} false; then :
   4664   $as_echo_n "(cached) " >&6
   4665 else
   4666   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   4667 case `$LD -v 2>&1 </dev/null` in
   4668 *GNU* | *'with BFD'*)
   4669   lt_cv_prog_gnu_ld=yes
   4670   ;;
   4671 *)
   4672   lt_cv_prog_gnu_ld=no
   4673   ;;
   4674 esac
   4675 fi
   4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   4677 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   4678 with_gnu_ld=$lt_cv_prog_gnu_ld
   4679 
   4680 
   4681 
   4682 
   4683 
   4684 
   4685 
   4686 
   4687 
   4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   4689 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   4690 if ${lt_cv_path_NM+:} false; then :
   4691   $as_echo_n "(cached) " >&6
   4692 else
   4693   if test -n "$NM"; then
   4694   # Let the user override the test.
   4695   lt_cv_path_NM=$NM
   4696 else
   4697   lt_nm_to_check=${ac_tool_prefix}nm
   4698   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   4699     lt_nm_to_check="$lt_nm_to_check nm"
   4700   fi
   4701   for lt_tmp_nm in $lt_nm_to_check; do
   4702     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4703     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   4704       IFS=$lt_save_ifs
   4705       test -z "$ac_dir" && ac_dir=.
   4706       tmp_nm=$ac_dir/$lt_tmp_nm
   4707       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   4708 	# Check to see if the nm accepts a BSD-compat flag.
   4709 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   4710 	#   nm: unknown option "B" ignored
   4711 	# Tru64's nm complains that /dev/null is an invalid object file
   4712 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   4713 	case $build_os in
   4714 	mingw*) lt_bad_file=conftest.nm/nofile ;;
   4715 	*) lt_bad_file=/dev/null ;;
   4716 	esac
   4717 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
   4718 	*$lt_bad_file* | *'Invalid file or object type'*)
   4719 	  lt_cv_path_NM="$tmp_nm -B"
   4720 	  break 2
   4721 	  ;;
   4722 	*)
   4723 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   4724 	  */dev/null*)
   4725 	    lt_cv_path_NM="$tmp_nm -p"
   4726 	    break 2
   4727 	    ;;
   4728 	  *)
   4729 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   4730 	    continue # so that we can try to find one that supports BSD flags
   4731 	    ;;
   4732 	  esac
   4733 	  ;;
   4734 	esac
   4735       fi
   4736     done
   4737     IFS=$lt_save_ifs
   4738   done
   4739   : ${lt_cv_path_NM=no}
   4740 fi
   4741 fi
   4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   4743 $as_echo "$lt_cv_path_NM" >&6; }
   4744 if test no != "$lt_cv_path_NM"; then
   4745   NM=$lt_cv_path_NM
   4746 else
   4747   # Didn't find any BSD compatible name lister, look for dumpbin.
   4748   if test -n "$DUMPBIN"; then :
   4749     # Let the user override the test.
   4750   else
   4751     if test -n "$ac_tool_prefix"; then
   4752   for ac_prog in dumpbin "link -dump"
   4753   do
   4754     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4757 $as_echo_n "checking for $ac_word... " >&6; }
   4758 if ${ac_cv_prog_DUMPBIN+:} false; then :
   4759   $as_echo_n "(cached) " >&6
   4760 else
   4761   if test -n "$DUMPBIN"; then
   4762   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   4763 else
   4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4765 for as_dir in $PATH
   4766 do
   4767   IFS=$as_save_IFS
   4768   test -z "$as_dir" && as_dir=.
   4769     for ac_exec_ext in '' $ac_executable_extensions; do
   4770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4771     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   4772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4773     break 2
   4774   fi
   4775 done
   4776   done
   4777 IFS=$as_save_IFS
   4778 
   4779 fi
   4780 fi
   4781 DUMPBIN=$ac_cv_prog_DUMPBIN
   4782 if test -n "$DUMPBIN"; then
   4783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   4784 $as_echo "$DUMPBIN" >&6; }
   4785 else
   4786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4787 $as_echo "no" >&6; }
   4788 fi
   4789 
   4790 
   4791     test -n "$DUMPBIN" && break
   4792   done
   4793 fi
   4794 if test -z "$DUMPBIN"; then
   4795   ac_ct_DUMPBIN=$DUMPBIN
   4796   for ac_prog in dumpbin "link -dump"
   4797 do
   4798   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4799 set dummy $ac_prog; ac_word=$2
   4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4801 $as_echo_n "checking for $ac_word... " >&6; }
   4802 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   4803   $as_echo_n "(cached) " >&6
   4804 else
   4805   if test -n "$ac_ct_DUMPBIN"; then
   4806   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   4807 else
   4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4809 for as_dir in $PATH
   4810 do
   4811   IFS=$as_save_IFS
   4812   test -z "$as_dir" && as_dir=.
   4813     for ac_exec_ext in '' $ac_executable_extensions; do
   4814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4815     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   4816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4817     break 2
   4818   fi
   4819 done
   4820   done
   4821 IFS=$as_save_IFS
   4822 
   4823 fi
   4824 fi
   4825 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   4826 if test -n "$ac_ct_DUMPBIN"; then
   4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   4828 $as_echo "$ac_ct_DUMPBIN" >&6; }
   4829 else
   4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4831 $as_echo "no" >&6; }
   4832 fi
   4833 
   4834 
   4835   test -n "$ac_ct_DUMPBIN" && break
   4836 done
   4837 
   4838   if test "x$ac_ct_DUMPBIN" = x; then
   4839     DUMPBIN=":"
   4840   else
   4841     case $cross_compiling:$ac_tool_warned in
   4842 yes:)
   4843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4845 ac_tool_warned=yes ;;
   4846 esac
   4847     DUMPBIN=$ac_ct_DUMPBIN
   4848   fi
   4849 fi
   4850 
   4851     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
   4852     *COFF*)
   4853       DUMPBIN="$DUMPBIN -symbols -headers"
   4854       ;;
   4855     *)
   4856       DUMPBIN=:
   4857       ;;
   4858     esac
   4859   fi
   4860 
   4861   if test : != "$DUMPBIN"; then
   4862     NM=$DUMPBIN
   4863   fi
   4864 fi
   4865 test -z "$NM" && NM=nm
   4866 
   4867 
   4868 
   4869 
   4870 
   4871 
   4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   4873 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   4874 if ${lt_cv_nm_interface+:} false; then :
   4875   $as_echo_n "(cached) " >&6
   4876 else
   4877   lt_cv_nm_interface="BSD nm"
   4878   echo "int some_variable = 0;" > conftest.$ac_ext
   4879   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   4880   (eval "$ac_compile" 2>conftest.err)
   4881   cat conftest.err >&5
   4882   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   4883   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   4884   cat conftest.err >&5
   4885   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   4886   cat conftest.out >&5
   4887   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   4888     lt_cv_nm_interface="MS dumpbin"
   4889   fi
   4890   rm -f conftest*
   4891 fi
   4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   4893 $as_echo "$lt_cv_nm_interface" >&6; }
   4894 
   4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   4896 $as_echo_n "checking whether ln -s works... " >&6; }
   4897 LN_S=$as_ln_s
   4898 if test "$LN_S" = "ln -s"; then
   4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4900 $as_echo "yes" >&6; }
   4901 else
   4902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   4903 $as_echo "no, using $LN_S" >&6; }
   4904 fi
   4905 
   4906 # find the maximum length of command line arguments
   4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   4908 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   4909 if ${lt_cv_sys_max_cmd_len+:} false; then :
   4910   $as_echo_n "(cached) " >&6
   4911 else
   4912     i=0
   4913   teststring=ABCD
   4914 
   4915   case $build_os in
   4916   msdosdjgpp*)
   4917     # On DJGPP, this test can blow up pretty badly due to problems in libc
   4918     # (any single argument exceeding 2000 bytes causes a buffer overrun
   4919     # during glob expansion).  Even if it were fixed, the result of this
   4920     # check would be larger than it should be.
   4921     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   4922     ;;
   4923 
   4924   gnu*)
   4925     # Under GNU Hurd, this test is not required because there is
   4926     # no limit to the length of command line arguments.
   4927     # Libtool will interpret -1 as no limit whatsoever
   4928     lt_cv_sys_max_cmd_len=-1;
   4929     ;;
   4930 
   4931   cygwin* | mingw* | cegcc*)
   4932     # On Win9x/ME, this test blows up -- it succeeds, but takes
   4933     # about 5 minutes as the teststring grows exponentially.
   4934     # Worse, since 9x/ME are not pre-emptively multitasking,
   4935     # you end up with a "frozen" computer, even though with patience
   4936     # the test eventually succeeds (with a max line length of 256k).
   4937     # Instead, let's just punt: use the minimum linelength reported by
   4938     # all of the supported platforms: 8192 (on NT/2K/XP).
   4939     lt_cv_sys_max_cmd_len=8192;
   4940     ;;
   4941 
   4942   mint*)
   4943     # On MiNT this can take a long time and run out of memory.
   4944     lt_cv_sys_max_cmd_len=8192;
   4945     ;;
   4946 
   4947   amigaos*)
   4948     # On AmigaOS with pdksh, this test takes hours, literally.
   4949     # So we just punt and use a minimum line length of 8192.
   4950     lt_cv_sys_max_cmd_len=8192;
   4951     ;;
   4952 
   4953   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
   4954     # This has been around since 386BSD, at least.  Likely further.
   4955     if test -x /sbin/sysctl; then
   4956       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   4957     elif test -x /usr/sbin/sysctl; then
   4958       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   4959     else
   4960       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   4961     fi
   4962     # And add a safety zone
   4963     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4964     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4965     ;;
   4966 
   4967   interix*)
   4968     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   4969     lt_cv_sys_max_cmd_len=196608
   4970     ;;
   4971 
   4972   os2*)
   4973     # The test takes a long time on OS/2.
   4974     lt_cv_sys_max_cmd_len=8192
   4975     ;;
   4976 
   4977   osf*)
   4978     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   4979     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   4980     # nice to cause kernel panics so lets avoid the loop below.
   4981     # First set a reasonable default.
   4982     lt_cv_sys_max_cmd_len=16384
   4983     #
   4984     if test -x /sbin/sysconfig; then
   4985       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   4986         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   4987       esac
   4988     fi
   4989     ;;
   4990   sco3.2v5*)
   4991     lt_cv_sys_max_cmd_len=102400
   4992     ;;
   4993   sysv5* | sco5v6* | sysv4.2uw2*)
   4994     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   4995     if test -n "$kargmax"; then
   4996       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   4997     else
   4998       lt_cv_sys_max_cmd_len=32768
   4999     fi
   5000     ;;
   5001   *)
   5002     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   5003     if test -n "$lt_cv_sys_max_cmd_len" && \
   5004        test undefined != "$lt_cv_sys_max_cmd_len"; then
   5005       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   5006       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   5007     else
   5008       # Make teststring a little bigger before we do anything with it.
   5009       # a 1K string should be a reasonable start.
   5010       for i in 1 2 3 4 5 6 7 8; do
   5011         teststring=$teststring$teststring
   5012       done
   5013       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   5014       # If test is not a shell built-in, we'll probably end up computing a
   5015       # maximum length that is only half of the actual maximum length, but
   5016       # we can't tell.
   5017       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   5018 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   5019 	      test 17 != "$i" # 1/2 MB should be enough
   5020       do
   5021         i=`expr $i + 1`
   5022         teststring=$teststring$teststring
   5023       done
   5024       # Only check the string length outside the loop.
   5025       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   5026       teststring=
   5027       # Add a significant safety factor because C++ compilers can tack on
   5028       # massive amounts of additional arguments before passing them to the
   5029       # linker.  It appears as though 1/2 is a usable value.
   5030       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   5031     fi
   5032     ;;
   5033   esac
   5034 
   5035 fi
   5036 
   5037 if test -n "$lt_cv_sys_max_cmd_len"; then
   5038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   5039 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   5040 else
   5041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   5042 $as_echo "none" >&6; }
   5043 fi
   5044 max_cmd_len=$lt_cv_sys_max_cmd_len
   5045 
   5046 
   5047 
   5048 
   5049 
   5050 
   5051 : ${CP="cp -f"}
   5052 : ${MV="mv -f"}
   5053 : ${RM="rm -f"}
   5054 
   5055 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   5056   lt_unset=unset
   5057 else
   5058   lt_unset=false
   5059 fi
   5060 
   5061 
   5062 
   5063 
   5064 
   5065 # test EBCDIC or ASCII
   5066 case `echo X|tr X '\101'` in
   5067  A) # ASCII based system
   5068     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   5069   lt_SP2NL='tr \040 \012'
   5070   lt_NL2SP='tr \015\012 \040\040'
   5071   ;;
   5072  *) # EBCDIC based system
   5073   lt_SP2NL='tr \100 \n'
   5074   lt_NL2SP='tr \r\n \100\100'
   5075   ;;
   5076 esac
   5077 
   5078 
   5079 
   5080 
   5081 
   5082 
   5083 
   5084 
   5085 
   5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   5087 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
   5088 if ${lt_cv_to_host_file_cmd+:} false; then :
   5089   $as_echo_n "(cached) " >&6
   5090 else
   5091   case $host in
   5092   *-*-mingw* )
   5093     case $build in
   5094       *-*-mingw* ) # actually msys
   5095         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   5096         ;;
   5097       *-*-cygwin* )
   5098         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   5099         ;;
   5100       * ) # otherwise, assume *nix
   5101         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   5102         ;;
   5103     esac
   5104     ;;
   5105   *-*-cygwin* )
   5106     case $build in
   5107       *-*-mingw* ) # actually msys
   5108         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   5109         ;;
   5110       *-*-cygwin* )
   5111         lt_cv_to_host_file_cmd=func_convert_file_noop
   5112         ;;
   5113       * ) # otherwise, assume *nix
   5114         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   5115         ;;
   5116     esac
   5117     ;;
   5118   * ) # unhandled hosts (and "normal" native builds)
   5119     lt_cv_to_host_file_cmd=func_convert_file_noop
   5120     ;;
   5121 esac
   5122 
   5123 fi
   5124 
   5125 to_host_file_cmd=$lt_cv_to_host_file_cmd
   5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   5127 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
   5128 
   5129 
   5130 
   5131 
   5132 
   5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   5134 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
   5135 if ${lt_cv_to_tool_file_cmd+:} false; then :
   5136   $as_echo_n "(cached) " >&6
   5137 else
   5138   #assume ordinary cross tools, or native build.
   5139 lt_cv_to_tool_file_cmd=func_convert_file_noop
   5140 case $host in
   5141   *-*-mingw* )
   5142     case $build in
   5143       *-*-mingw* ) # actually msys
   5144         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   5145         ;;
   5146     esac
   5147     ;;
   5148 esac
   5149 
   5150 fi
   5151 
   5152 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   5154 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
   5155 
   5156 
   5157 
   5158 
   5159 
   5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   5161 $as_echo_n "checking for $LD option to reload object files... " >&6; }
   5162 if ${lt_cv_ld_reload_flag+:} false; then :
   5163   $as_echo_n "(cached) " >&6
   5164 else
   5165   lt_cv_ld_reload_flag='-r'
   5166 fi
   5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   5168 $as_echo "$lt_cv_ld_reload_flag" >&6; }
   5169 reload_flag=$lt_cv_ld_reload_flag
   5170 case $reload_flag in
   5171 "" | " "*) ;;
   5172 *) reload_flag=" $reload_flag" ;;
   5173 esac
   5174 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   5175 case $host_os in
   5176   cygwin* | mingw* | pw32* | cegcc*)
   5177     if test yes != "$GCC"; then
   5178       reload_cmds=false
   5179     fi
   5180     ;;
   5181   darwin*)
   5182     if test yes = "$GCC"; then
   5183       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   5184     else
   5185       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   5186     fi
   5187     ;;
   5188 esac
   5189 
   5190 
   5191 
   5192 
   5193 
   5194 
   5195 
   5196 
   5197 
   5198 if test -n "$ac_tool_prefix"; then
   5199   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   5200 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5202 $as_echo_n "checking for $ac_word... " >&6; }
   5203 if ${ac_cv_prog_OBJDUMP+:} false; then :
   5204   $as_echo_n "(cached) " >&6
   5205 else
   5206   if test -n "$OBJDUMP"; then
   5207   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   5208 else
   5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5210 for as_dir in $PATH
   5211 do
   5212   IFS=$as_save_IFS
   5213   test -z "$as_dir" && as_dir=.
   5214     for ac_exec_ext in '' $ac_executable_extensions; do
   5215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5216     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   5217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5218     break 2
   5219   fi
   5220 done
   5221   done
   5222 IFS=$as_save_IFS
   5223 
   5224 fi
   5225 fi
   5226 OBJDUMP=$ac_cv_prog_OBJDUMP
   5227 if test -n "$OBJDUMP"; then
   5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   5229 $as_echo "$OBJDUMP" >&6; }
   5230 else
   5231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5232 $as_echo "no" >&6; }
   5233 fi
   5234 
   5235 
   5236 fi
   5237 if test -z "$ac_cv_prog_OBJDUMP"; then
   5238   ac_ct_OBJDUMP=$OBJDUMP
   5239   # Extract the first word of "objdump", so it can be a program name with args.
   5240 set dummy objdump; ac_word=$2
   5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5242 $as_echo_n "checking for $ac_word... " >&6; }
   5243 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   5244   $as_echo_n "(cached) " >&6
   5245 else
   5246   if test -n "$ac_ct_OBJDUMP"; then
   5247   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   5248 else
   5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5250 for as_dir in $PATH
   5251 do
   5252   IFS=$as_save_IFS
   5253   test -z "$as_dir" && as_dir=.
   5254     for ac_exec_ext in '' $ac_executable_extensions; do
   5255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5256     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   5257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5258     break 2
   5259   fi
   5260 done
   5261   done
   5262 IFS=$as_save_IFS
   5263 
   5264 fi
   5265 fi
   5266 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   5267 if test -n "$ac_ct_OBJDUMP"; then
   5268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   5269 $as_echo "$ac_ct_OBJDUMP" >&6; }
   5270 else
   5271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5272 $as_echo "no" >&6; }
   5273 fi
   5274 
   5275   if test "x$ac_ct_OBJDUMP" = x; then
   5276     OBJDUMP="false"
   5277   else
   5278     case $cross_compiling:$ac_tool_warned in
   5279 yes:)
   5280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5282 ac_tool_warned=yes ;;
   5283 esac
   5284     OBJDUMP=$ac_ct_OBJDUMP
   5285   fi
   5286 else
   5287   OBJDUMP="$ac_cv_prog_OBJDUMP"
   5288 fi
   5289 
   5290 test -z "$OBJDUMP" && OBJDUMP=objdump
   5291 
   5292 
   5293 
   5294 
   5295 
   5296 
   5297 
   5298 
   5299 
   5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   5301 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   5302 if ${lt_cv_deplibs_check_method+:} false; then :
   5303   $as_echo_n "(cached) " >&6
   5304 else
   5305   lt_cv_file_magic_cmd='$MAGIC_CMD'
   5306 lt_cv_file_magic_test_file=
   5307 lt_cv_deplibs_check_method='unknown'
   5308 # Need to set the preceding variable on all platforms that support
   5309 # interlibrary dependencies.
   5310 # 'none' -- dependencies not supported.
   5311 # 'unknown' -- same as none, but documents that we really don't know.
   5312 # 'pass_all' -- all dependencies passed with no checks.
   5313 # 'test_compile' -- check by making test program.
   5314 # 'file_magic [[regex]]' -- check by looking for files in library path
   5315 # that responds to the $file_magic_cmd with a given extended regex.
   5316 # If you have 'file' or equivalent on your system and you're not sure
   5317 # whether 'pass_all' will *always* work, you probably want this one.
   5318 
   5319 case $host_os in
   5320 aix[4-9]*)
   5321   lt_cv_deplibs_check_method=pass_all
   5322   ;;
   5323 
   5324 beos*)
   5325   lt_cv_deplibs_check_method=pass_all
   5326   ;;
   5327 
   5328 bsdi[45]*)
   5329   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   5330   lt_cv_file_magic_cmd='/usr/bin/file -L'
   5331   lt_cv_file_magic_test_file=/shlib/libc.so
   5332   ;;
   5333 
   5334 cygwin*)
   5335   # func_win32_libid is a shell function defined in ltmain.sh
   5336   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   5337   lt_cv_file_magic_cmd='func_win32_libid'
   5338   ;;
   5339 
   5340 mingw* | pw32*)
   5341   # Base MSYS/MinGW do not provide the 'file' command needed by
   5342   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   5343   # unless we find 'file', for example because we are cross-compiling.
   5344   if ( file / ) >/dev/null 2>&1; then
   5345     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   5346     lt_cv_file_magic_cmd='func_win32_libid'
   5347   else
   5348     # Keep this pattern in sync with the one in func_win32_libid.
   5349     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   5350     lt_cv_file_magic_cmd='$OBJDUMP -f'
   5351   fi
   5352   ;;
   5353 
   5354 cegcc*)
   5355   # use the weaker test based on 'objdump'. See mingw*.
   5356   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   5357   lt_cv_file_magic_cmd='$OBJDUMP -f'
   5358   ;;
   5359 
   5360 darwin* | rhapsody*)
   5361   lt_cv_deplibs_check_method=pass_all
   5362   ;;
   5363 
   5364 freebsd* | dragonfly*)
   5365   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   5366     case $host_cpu in
   5367     i*86 )
   5368       # Not sure whether the presence of OpenBSD here was a mistake.
   5369       # Let's accept both of them until this is cleared up.
   5370       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   5371       lt_cv_file_magic_cmd=/usr/bin/file
   5372       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   5373       ;;
   5374     esac
   5375   else
   5376     lt_cv_deplibs_check_method=pass_all
   5377   fi
   5378   ;;
   5379 
   5380 haiku*)
   5381   lt_cv_deplibs_check_method=pass_all
   5382   ;;
   5383 
   5384 hpux10.20* | hpux11*)
   5385   lt_cv_file_magic_cmd=/usr/bin/file
   5386   case $host_cpu in
   5387   ia64*)
   5388     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   5389     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   5390     ;;
   5391   hppa*64*)
   5392     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]'
   5393     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   5394     ;;
   5395   *)
   5396     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   5397     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   5398     ;;
   5399   esac
   5400   ;;
   5401 
   5402 interix[3-9]*)
   5403   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   5404   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   5405   ;;
   5406 
   5407 irix5* | irix6* | nonstopux*)
   5408   case $LD in
   5409   *-32|*"-32 ") libmagic=32-bit;;
   5410   *-n32|*"-n32 ") libmagic=N32;;
   5411   *-64|*"-64 ") libmagic=64-bit;;
   5412   *) libmagic=never-match;;
   5413   esac
   5414   lt_cv_deplibs_check_method=pass_all
   5415   ;;
   5416 
   5417 # This must be glibc/ELF.
   5418 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   5419   lt_cv_deplibs_check_method=pass_all
   5420   ;;
   5421 
   5422 netbsd*)
   5423   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   5424     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5425   else
   5426     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   5427   fi
   5428   ;;
   5429 
   5430 newos6*)
   5431   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   5432   lt_cv_file_magic_cmd=/usr/bin/file
   5433   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   5434   ;;
   5435 
   5436 *nto* | *qnx*)
   5437   lt_cv_deplibs_check_method=pass_all
   5438   ;;
   5439 
   5440 openbsd* | bitrig*)
   5441   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   5442     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   5443   else
   5444     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5445   fi
   5446   ;;
   5447 
   5448 osf3* | osf4* | osf5*)
   5449   lt_cv_deplibs_check_method=pass_all
   5450   ;;
   5451 
   5452 rdos*)
   5453   lt_cv_deplibs_check_method=pass_all
   5454   ;;
   5455 
   5456 solaris*)
   5457   lt_cv_deplibs_check_method=pass_all
   5458   ;;
   5459 
   5460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   5461   lt_cv_deplibs_check_method=pass_all
   5462   ;;
   5463 
   5464 sysv4 | sysv4.3*)
   5465   case $host_vendor in
   5466   motorola)
   5467     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]'
   5468     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   5469     ;;
   5470   ncr)
   5471     lt_cv_deplibs_check_method=pass_all
   5472     ;;
   5473   sequent)
   5474     lt_cv_file_magic_cmd='/bin/file'
   5475     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   5476     ;;
   5477   sni)
   5478     lt_cv_file_magic_cmd='/bin/file'
   5479     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   5480     lt_cv_file_magic_test_file=/lib/libc.so
   5481     ;;
   5482   siemens)
   5483     lt_cv_deplibs_check_method=pass_all
   5484     ;;
   5485   pc)
   5486     lt_cv_deplibs_check_method=pass_all
   5487     ;;
   5488   esac
   5489   ;;
   5490 
   5491 tpf*)
   5492   lt_cv_deplibs_check_method=pass_all
   5493   ;;
   5494 os2*)
   5495   lt_cv_deplibs_check_method=pass_all
   5496   ;;
   5497 esac
   5498 
   5499 fi
   5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   5501 $as_echo "$lt_cv_deplibs_check_method" >&6; }
   5502 
   5503 file_magic_glob=
   5504 want_nocaseglob=no
   5505 if test "$build" = "$host"; then
   5506   case $host_os in
   5507   mingw* | pw32*)
   5508     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   5509       want_nocaseglob=yes
   5510     else
   5511       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   5512     fi
   5513     ;;
   5514   esac
   5515 fi
   5516 
   5517 file_magic_cmd=$lt_cv_file_magic_cmd
   5518 deplibs_check_method=$lt_cv_deplibs_check_method
   5519 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   5520 
   5521 
   5522 
   5523 
   5524 
   5525 
   5526 
   5527 
   5528 
   5529 
   5530 
   5531 
   5532 
   5533 
   5534 
   5535 
   5536 
   5537 
   5538 
   5539 
   5540 
   5541 
   5542 if test -n "$ac_tool_prefix"; then
   5543   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   5544 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5546 $as_echo_n "checking for $ac_word... " >&6; }
   5547 if ${ac_cv_prog_DLLTOOL+:} false; then :
   5548   $as_echo_n "(cached) " >&6
   5549 else
   5550   if test -n "$DLLTOOL"; then
   5551   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   5552 else
   5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5554 for as_dir in $PATH
   5555 do
   5556   IFS=$as_save_IFS
   5557   test -z "$as_dir" && as_dir=.
   5558     for ac_exec_ext in '' $ac_executable_extensions; do
   5559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5560     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   5561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5562     break 2
   5563   fi
   5564 done
   5565   done
   5566 IFS=$as_save_IFS
   5567 
   5568 fi
   5569 fi
   5570 DLLTOOL=$ac_cv_prog_DLLTOOL
   5571 if test -n "$DLLTOOL"; then
   5572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   5573 $as_echo "$DLLTOOL" >&6; }
   5574 else
   5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5576 $as_echo "no" >&6; }
   5577 fi
   5578 
   5579 
   5580 fi
   5581 if test -z "$ac_cv_prog_DLLTOOL"; then
   5582   ac_ct_DLLTOOL=$DLLTOOL
   5583   # Extract the first word of "dlltool", so it can be a program name with args.
   5584 set dummy dlltool; ac_word=$2
   5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5586 $as_echo_n "checking for $ac_word... " >&6; }
   5587 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   5588   $as_echo_n "(cached) " >&6
   5589 else
   5590   if test -n "$ac_ct_DLLTOOL"; then
   5591   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   5592 else
   5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5594 for as_dir in $PATH
   5595 do
   5596   IFS=$as_save_IFS
   5597   test -z "$as_dir" && as_dir=.
   5598     for ac_exec_ext in '' $ac_executable_extensions; do
   5599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5600     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   5601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5602     break 2
   5603   fi
   5604 done
   5605   done
   5606 IFS=$as_save_IFS
   5607 
   5608 fi
   5609 fi
   5610 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   5611 if test -n "$ac_ct_DLLTOOL"; then
   5612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   5613 $as_echo "$ac_ct_DLLTOOL" >&6; }
   5614 else
   5615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5616 $as_echo "no" >&6; }
   5617 fi
   5618 
   5619   if test "x$ac_ct_DLLTOOL" = x; then
   5620     DLLTOOL="false"
   5621   else
   5622     case $cross_compiling:$ac_tool_warned in
   5623 yes:)
   5624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5626 ac_tool_warned=yes ;;
   5627 esac
   5628     DLLTOOL=$ac_ct_DLLTOOL
   5629   fi
   5630 else
   5631   DLLTOOL="$ac_cv_prog_DLLTOOL"
   5632 fi
   5633 
   5634 test -z "$DLLTOOL" && DLLTOOL=dlltool
   5635 
   5636 
   5637 
   5638 
   5639 
   5640 
   5641 
   5642 
   5643 
   5644 
   5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   5646 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
   5647 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
   5648   $as_echo_n "(cached) " >&6
   5649 else
   5650   lt_cv_sharedlib_from_linklib_cmd='unknown'
   5651 
   5652 case $host_os in
   5653 cygwin* | mingw* | pw32* | cegcc*)
   5654   # two different shell functions defined in ltmain.sh;
   5655   # decide which one to use based on capabilities of $DLLTOOL
   5656   case `$DLLTOOL --help 2>&1` in
   5657   *--identify-strict*)
   5658     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   5659     ;;
   5660   *)
   5661     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   5662     ;;
   5663   esac
   5664   ;;
   5665 *)
   5666   # fallback: assume linklib IS sharedlib
   5667   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   5668   ;;
   5669 esac
   5670 
   5671 fi
   5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   5673 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   5674 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   5675 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   5676 
   5677 
   5678 
   5679 
   5680 
   5681 
   5682 
   5683 if test -n "$ac_tool_prefix"; then
   5684   for ac_prog in ar
   5685   do
   5686     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5689 $as_echo_n "checking for $ac_word... " >&6; }
   5690 if ${ac_cv_prog_AR+:} false; then :
   5691   $as_echo_n "(cached) " >&6
   5692 else
   5693   if test -n "$AR"; then
   5694   ac_cv_prog_AR="$AR" # Let the user override the test.
   5695 else
   5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5697 for as_dir in $PATH
   5698 do
   5699   IFS=$as_save_IFS
   5700   test -z "$as_dir" && as_dir=.
   5701     for ac_exec_ext in '' $ac_executable_extensions; do
   5702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5703     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   5704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5705     break 2
   5706   fi
   5707 done
   5708   done
   5709 IFS=$as_save_IFS
   5710 
   5711 fi
   5712 fi
   5713 AR=$ac_cv_prog_AR
   5714 if test -n "$AR"; then
   5715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   5716 $as_echo "$AR" >&6; }
   5717 else
   5718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5719 $as_echo "no" >&6; }
   5720 fi
   5721 
   5722 
   5723     test -n "$AR" && break
   5724   done
   5725 fi
   5726 if test -z "$AR"; then
   5727   ac_ct_AR=$AR
   5728   for ac_prog in ar
   5729 do
   5730   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5731 set dummy $ac_prog; ac_word=$2
   5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5733 $as_echo_n "checking for $ac_word... " >&6; }
   5734 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   5735   $as_echo_n "(cached) " >&6
   5736 else
   5737   if test -n "$ac_ct_AR"; then
   5738   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   5739 else
   5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5741 for as_dir in $PATH
   5742 do
   5743   IFS=$as_save_IFS
   5744   test -z "$as_dir" && as_dir=.
   5745     for ac_exec_ext in '' $ac_executable_extensions; do
   5746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5747     ac_cv_prog_ac_ct_AR="$ac_prog"
   5748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5749     break 2
   5750   fi
   5751 done
   5752   done
   5753 IFS=$as_save_IFS
   5754 
   5755 fi
   5756 fi
   5757 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   5758 if test -n "$ac_ct_AR"; then
   5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   5760 $as_echo "$ac_ct_AR" >&6; }
   5761 else
   5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5763 $as_echo "no" >&6; }
   5764 fi
   5765 
   5766 
   5767   test -n "$ac_ct_AR" && break
   5768 done
   5769 
   5770   if test "x$ac_ct_AR" = x; then
   5771     AR="false"
   5772   else
   5773     case $cross_compiling:$ac_tool_warned in
   5774 yes:)
   5775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5777 ac_tool_warned=yes ;;
   5778 esac
   5779     AR=$ac_ct_AR
   5780   fi
   5781 fi
   5782 
   5783 : ${AR=ar}
   5784 : ${AR_FLAGS=cru}
   5785 
   5786 
   5787 
   5788 
   5789 
   5790 
   5791 
   5792 
   5793 
   5794 
   5795 
   5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   5797 $as_echo_n "checking for archiver @FILE support... " >&6; }
   5798 if ${lt_cv_ar_at_file+:} false; then :
   5799   $as_echo_n "(cached) " >&6
   5800 else
   5801   lt_cv_ar_at_file=no
   5802    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5803 /* end confdefs.h.  */
   5804 
   5805 int
   5806 main ()
   5807 {
   5808 
   5809   ;
   5810   return 0;
   5811 }
   5812 _ACEOF
   5813 if ac_fn_c_try_compile "$LINENO"; then :
   5814   echo conftest.$ac_objext > conftest.lst
   5815       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   5816       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5817   (eval $lt_ar_try) 2>&5
   5818   ac_status=$?
   5819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5820   test $ac_status = 0; }
   5821       if test 0 -eq "$ac_status"; then
   5822 	# Ensure the archiver fails upon bogus file names.
   5823 	rm -f conftest.$ac_objext libconftest.a
   5824 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5825   (eval $lt_ar_try) 2>&5
   5826   ac_status=$?
   5827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5828   test $ac_status = 0; }
   5829 	if test 0 -ne "$ac_status"; then
   5830           lt_cv_ar_at_file=@
   5831         fi
   5832       fi
   5833       rm -f conftest.* libconftest.a
   5834 
   5835 fi
   5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5837 
   5838 fi
   5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   5840 $as_echo "$lt_cv_ar_at_file" >&6; }
   5841 
   5842 if test no = "$lt_cv_ar_at_file"; then
   5843   archiver_list_spec=
   5844 else
   5845   archiver_list_spec=$lt_cv_ar_at_file
   5846 fi
   5847 
   5848 
   5849 
   5850 
   5851 
   5852 
   5853 
   5854 if test -n "$ac_tool_prefix"; then
   5855   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   5856 set dummy ${ac_tool_prefix}strip; ac_word=$2
   5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5858 $as_echo_n "checking for $ac_word... " >&6; }
   5859 if ${ac_cv_prog_STRIP+:} false; then :
   5860   $as_echo_n "(cached) " >&6
   5861 else
   5862   if test -n "$STRIP"; then
   5863   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   5864 else
   5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5866 for as_dir in $PATH
   5867 do
   5868   IFS=$as_save_IFS
   5869   test -z "$as_dir" && as_dir=.
   5870     for ac_exec_ext in '' $ac_executable_extensions; do
   5871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5872     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   5873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5874     break 2
   5875   fi
   5876 done
   5877   done
   5878 IFS=$as_save_IFS
   5879 
   5880 fi
   5881 fi
   5882 STRIP=$ac_cv_prog_STRIP
   5883 if test -n "$STRIP"; then
   5884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   5885 $as_echo "$STRIP" >&6; }
   5886 else
   5887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5888 $as_echo "no" >&6; }
   5889 fi
   5890 
   5891 
   5892 fi
   5893 if test -z "$ac_cv_prog_STRIP"; then
   5894   ac_ct_STRIP=$STRIP
   5895   # Extract the first word of "strip", so it can be a program name with args.
   5896 set dummy strip; ac_word=$2
   5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5898 $as_echo_n "checking for $ac_word... " >&6; }
   5899 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   5900   $as_echo_n "(cached) " >&6
   5901 else
   5902   if test -n "$ac_ct_STRIP"; then
   5903   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   5904 else
   5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5906 for as_dir in $PATH
   5907 do
   5908   IFS=$as_save_IFS
   5909   test -z "$as_dir" && as_dir=.
   5910     for ac_exec_ext in '' $ac_executable_extensions; do
   5911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5912     ac_cv_prog_ac_ct_STRIP="strip"
   5913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5914     break 2
   5915   fi
   5916 done
   5917   done
   5918 IFS=$as_save_IFS
   5919 
   5920 fi
   5921 fi
   5922 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   5923 if test -n "$ac_ct_STRIP"; then
   5924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   5925 $as_echo "$ac_ct_STRIP" >&6; }
   5926 else
   5927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5928 $as_echo "no" >&6; }
   5929 fi
   5930 
   5931   if test "x$ac_ct_STRIP" = x; then
   5932     STRIP=":"
   5933   else
   5934     case $cross_compiling:$ac_tool_warned in
   5935 yes:)
   5936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5938 ac_tool_warned=yes ;;
   5939 esac
   5940     STRIP=$ac_ct_STRIP
   5941   fi
   5942 else
   5943   STRIP="$ac_cv_prog_STRIP"
   5944 fi
   5945 
   5946 test -z "$STRIP" && STRIP=:
   5947 
   5948 
   5949 
   5950 
   5951 
   5952 
   5953 if test -n "$ac_tool_prefix"; then
   5954   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5955 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5957 $as_echo_n "checking for $ac_word... " >&6; }
   5958 if ${ac_cv_prog_RANLIB+:} false; then :
   5959   $as_echo_n "(cached) " >&6
   5960 else
   5961   if test -n "$RANLIB"; then
   5962   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5963 else
   5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5965 for as_dir in $PATH
   5966 do
   5967   IFS=$as_save_IFS
   5968   test -z "$as_dir" && as_dir=.
   5969     for ac_exec_ext in '' $ac_executable_extensions; do
   5970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5971     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5973     break 2
   5974   fi
   5975 done
   5976   done
   5977 IFS=$as_save_IFS
   5978 
   5979 fi
   5980 fi
   5981 RANLIB=$ac_cv_prog_RANLIB
   5982 if test -n "$RANLIB"; then
   5983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   5984 $as_echo "$RANLIB" >&6; }
   5985 else
   5986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5987 $as_echo "no" >&6; }
   5988 fi
   5989 
   5990 
   5991 fi
   5992 if test -z "$ac_cv_prog_RANLIB"; then
   5993   ac_ct_RANLIB=$RANLIB
   5994   # Extract the first word of "ranlib", so it can be a program name with args.
   5995 set dummy ranlib; ac_word=$2
   5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5997 $as_echo_n "checking for $ac_word... " >&6; }
   5998 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   5999   $as_echo_n "(cached) " >&6
   6000 else
   6001   if test -n "$ac_ct_RANLIB"; then
   6002   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6003 else
   6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6005 for as_dir in $PATH
   6006 do
   6007   IFS=$as_save_IFS
   6008   test -z "$as_dir" && as_dir=.
   6009     for ac_exec_ext in '' $ac_executable_extensions; do
   6010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6011     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6013     break 2
   6014   fi
   6015 done
   6016   done
   6017 IFS=$as_save_IFS
   6018 
   6019 fi
   6020 fi
   6021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6022 if test -n "$ac_ct_RANLIB"; then
   6023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   6024 $as_echo "$ac_ct_RANLIB" >&6; }
   6025 else
   6026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6027 $as_echo "no" >&6; }
   6028 fi
   6029 
   6030   if test "x$ac_ct_RANLIB" = x; then
   6031     RANLIB=":"
   6032   else
   6033     case $cross_compiling:$ac_tool_warned in
   6034 yes:)
   6035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6037 ac_tool_warned=yes ;;
   6038 esac
   6039     RANLIB=$ac_ct_RANLIB
   6040   fi
   6041 else
   6042   RANLIB="$ac_cv_prog_RANLIB"
   6043 fi
   6044 
   6045 test -z "$RANLIB" && RANLIB=:
   6046 
   6047 
   6048 
   6049 
   6050 
   6051 
   6052 # Determine commands to create old-style static archives.
   6053 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   6054 old_postinstall_cmds='chmod 644 $oldlib'
   6055 old_postuninstall_cmds=
   6056 
   6057 if test -n "$RANLIB"; then
   6058   case $host_os in
   6059   bitrig* | openbsd*)
   6060     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   6061     ;;
   6062   *)
   6063     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   6064     ;;
   6065   esac
   6066   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   6067 fi
   6068 
   6069 case $host_os in
   6070   darwin*)
   6071     lock_old_archive_extraction=yes ;;
   6072   *)
   6073     lock_old_archive_extraction=no ;;
   6074 esac
   6075 
   6076 
   6077 
   6078 
   6079 
   6080 
   6081 
   6082 
   6083 
   6084 
   6085 
   6086 
   6087 
   6088 
   6089 
   6090 
   6091 
   6092 
   6093 
   6094 
   6095 
   6096 for ac_prog in gawk mawk nawk awk
   6097 do
   6098   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6099 set dummy $ac_prog; ac_word=$2
   6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6101 $as_echo_n "checking for $ac_word... " >&6; }
   6102 if ${ac_cv_prog_AWK+:} false; then :
   6103   $as_echo_n "(cached) " >&6
   6104 else
   6105   if test -n "$AWK"; then
   6106   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   6107 else
   6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6109 for as_dir in $PATH
   6110 do
   6111   IFS=$as_save_IFS
   6112   test -z "$as_dir" && as_dir=.
   6113     for ac_exec_ext in '' $ac_executable_extensions; do
   6114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6115     ac_cv_prog_AWK="$ac_prog"
   6116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6117     break 2
   6118   fi
   6119 done
   6120   done
   6121 IFS=$as_save_IFS
   6122 
   6123 fi
   6124 fi
   6125 AWK=$ac_cv_prog_AWK
   6126 if test -n "$AWK"; then
   6127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   6128 $as_echo "$AWK" >&6; }
   6129 else
   6130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6131 $as_echo "no" >&6; }
   6132 fi
   6133 
   6134 
   6135   test -n "$AWK" && break
   6136 done
   6137 
   6138 
   6139 
   6140 
   6141 
   6142 
   6143 
   6144 
   6145 
   6146 
   6147 
   6148 
   6149 
   6150 
   6151 
   6152 
   6153 
   6154 
   6155 
   6156 # If no C compiler was specified, use CC.
   6157 LTCC=${LTCC-"$CC"}
   6158 
   6159 # If no C compiler flags were specified, use CFLAGS.
   6160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   6161 
   6162 # Allow CC to be a program name with arguments.
   6163 compiler=$CC
   6164 
   6165 
   6166 # Check for command to grab the raw symbol name followed by C symbol from nm.
   6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   6168 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   6169 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   6170   $as_echo_n "(cached) " >&6
   6171 else
   6172 
   6173 # These are sane defaults that work on at least a few old systems.
   6174 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   6175 
   6176 # Character class describing NM global symbol codes.
   6177 symcode='[BCDEGRST]'
   6178 
   6179 # Regexp to match symbols that can be accessed directly from C.
   6180 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   6181 
   6182 # Define system-specific variables.
   6183 case $host_os in
   6184 aix*)
   6185   symcode='[BCDT]'
   6186   ;;
   6187 cygwin* | mingw* | pw32* | cegcc*)
   6188   symcode='[ABCDGISTW]'
   6189   ;;
   6190 hpux*)
   6191   if test ia64 = "$host_cpu"; then
   6192     symcode='[ABCDEGRST]'
   6193   fi
   6194   ;;
   6195 irix* | nonstopux*)
   6196   symcode='[BCDEGRST]'
   6197   ;;
   6198 osf*)
   6199   symcode='[BCDEGQRST]'
   6200   ;;
   6201 solaris*)
   6202   symcode='[BDRT]'
   6203   ;;
   6204 sco3.2v5*)
   6205   symcode='[DT]'
   6206   ;;
   6207 sysv4.2uw2*)
   6208   symcode='[DT]'
   6209   ;;
   6210 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   6211   symcode='[ABDT]'
   6212   ;;
   6213 sysv4)
   6214   symcode='[DFNSTU]'
   6215   ;;
   6216 esac
   6217 
   6218 # If we're using GNU nm, then use its standard symbol codes.
   6219 case `$NM -V 2>&1` in
   6220 *GNU* | *'with BFD'*)
   6221   symcode='[ABCDGIRSTW]' ;;
   6222 esac
   6223 
   6224 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6225   # Gets list of data symbols to import.
   6226   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
   6227   # Adjust the below global symbol transforms to fixup imported variables.
   6228   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   6229   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   6230   lt_c_name_lib_hook="\
   6231   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   6232   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   6233 else
   6234   # Disable hooks by default.
   6235   lt_cv_sys_global_symbol_to_import=
   6236   lt_cdecl_hook=
   6237   lt_c_name_hook=
   6238   lt_c_name_lib_hook=
   6239 fi
   6240 
   6241 # Transform an extracted symbol line into a proper C declaration.
   6242 # Some systems (esp. on ia64) link data and code symbols differently,
   6243 # so use this general approach.
   6244 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
   6245 $lt_cdecl_hook\
   6246 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   6247 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   6248 
   6249 # Transform an extracted symbol line into symbol name and symbol address
   6250 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
   6251 $lt_c_name_hook\
   6252 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   6253 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   6254 
   6255 # Transform an extracted symbol line into symbol name with lib prefix and
   6256 # symbol address.
   6257 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
   6258 $lt_c_name_lib_hook\
   6259 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   6260 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   6261 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   6262 
   6263 # Handle CRLF in mingw tool chain
   6264 opt_cr=
   6265 case $build_os in
   6266 mingw*)
   6267   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   6268   ;;
   6269 esac
   6270 
   6271 # Try without a prefix underscore, then with it.
   6272 for ac_symprfx in "" "_"; do
   6273 
   6274   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   6275   symxfrm="\\1 $ac_symprfx\\2 \\2"
   6276 
   6277   # Write the raw and C identifiers.
   6278   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6279     # Fake it for dumpbin and say T for any non-static function,
   6280     # D for any global variable and I for any imported variable.
   6281     # Also find C++ and __fastcall symbols from MSVC++,
   6282     # which start with @ or ?.
   6283     lt_cv_sys_global_symbol_pipe="$AWK '"\
   6284 "     {last_section=section; section=\$ 3};"\
   6285 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   6286 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   6287 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   6288 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   6289 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   6290 "     \$ 0!~/External *\|/{next};"\
   6291 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   6292 "     {if(hide[section]) next};"\
   6293 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   6294 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   6295 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   6296 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   6297 "     ' prfx=^$ac_symprfx"
   6298   else
   6299     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   6300   fi
   6301   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   6302 
   6303   # Check to see that the pipe works correctly.
   6304   pipe_works=no
   6305 
   6306   rm -f conftest*
   6307   cat > conftest.$ac_ext <<_LT_EOF
   6308 #ifdef __cplusplus
   6309 extern "C" {
   6310 #endif
   6311 char nm_test_var;
   6312 void nm_test_func(void);
   6313 void nm_test_func(void){}
   6314 #ifdef __cplusplus
   6315 }
   6316 #endif
   6317 int main(){nm_test_var='a';nm_test_func();return(0);}
   6318 _LT_EOF
   6319 
   6320   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6321   (eval $ac_compile) 2>&5
   6322   ac_status=$?
   6323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6324   test $ac_status = 0; }; then
   6325     # Now try to grab the symbols.
   6326     nlist=conftest.nm
   6327     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   6328   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   6329   ac_status=$?
   6330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6331   test $ac_status = 0; } && test -s "$nlist"; then
   6332       # Try sorting and uniquifying the output.
   6333       if sort "$nlist" | uniq > "$nlist"T; then
   6334 	mv -f "$nlist"T "$nlist"
   6335       else
   6336 	rm -f "$nlist"T
   6337       fi
   6338 
   6339       # Make sure that we snagged all the symbols we need.
   6340       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   6341 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   6342 	  cat <<_LT_EOF > conftest.$ac_ext
   6343 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   6344 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   6345 /* DATA imports from DLLs on WIN32 can't be const, because runtime
   6346    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   6347 # define LT_DLSYM_CONST
   6348 #elif defined __osf__
   6349 /* This system does not cope well with relocations in const data.  */
   6350 # define LT_DLSYM_CONST
   6351 #else
   6352 # define LT_DLSYM_CONST const
   6353 #endif
   6354 
   6355 #ifdef __cplusplus
   6356 extern "C" {
   6357 #endif
   6358 
   6359 _LT_EOF
   6360 	  # Now generate the symbol file.
   6361 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   6362 
   6363 	  cat <<_LT_EOF >> conftest.$ac_ext
   6364 
   6365 /* The mapping between symbol names and symbols.  */
   6366 LT_DLSYM_CONST struct {
   6367   const char *name;
   6368   void       *address;
   6369 }
   6370 lt__PROGRAM__LTX_preloaded_symbols[] =
   6371 {
   6372   { "@PROGRAM@", (void *) 0 },
   6373 _LT_EOF
   6374 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   6375 	  cat <<\_LT_EOF >> conftest.$ac_ext
   6376   {0, (void *) 0}
   6377 };
   6378 
   6379 /* This works around a problem in FreeBSD linker */
   6380 #ifdef FREEBSD_WORKAROUND
   6381 static const void *lt_preloaded_setup() {
   6382   return lt__PROGRAM__LTX_preloaded_symbols;
   6383 }
   6384 #endif
   6385 
   6386 #ifdef __cplusplus
   6387 }
   6388 #endif
   6389 _LT_EOF
   6390 	  # Now try linking the two files.
   6391 	  mv conftest.$ac_objext conftstm.$ac_objext
   6392 	  lt_globsym_save_LIBS=$LIBS
   6393 	  lt_globsym_save_CFLAGS=$CFLAGS
   6394 	  LIBS=conftstm.$ac_objext
   6395 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   6396 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   6397   (eval $ac_link) 2>&5
   6398   ac_status=$?
   6399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6400   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   6401 	    pipe_works=yes
   6402 	  fi
   6403 	  LIBS=$lt_globsym_save_LIBS
   6404 	  CFLAGS=$lt_globsym_save_CFLAGS
   6405 	else
   6406 	  echo "cannot find nm_test_func in $nlist" >&5
   6407 	fi
   6408       else
   6409 	echo "cannot find nm_test_var in $nlist" >&5
   6410       fi
   6411     else
   6412       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   6413     fi
   6414   else
   6415     echo "$progname: failed program was:" >&5
   6416     cat conftest.$ac_ext >&5
   6417   fi
   6418   rm -rf conftest* conftst*
   6419 
   6420   # Do not use the global_symbol_pipe unless it works.
   6421   if test yes = "$pipe_works"; then
   6422     break
   6423   else
   6424     lt_cv_sys_global_symbol_pipe=
   6425   fi
   6426 done
   6427 
   6428 fi
   6429 
   6430 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   6431   lt_cv_sys_global_symbol_to_cdecl=
   6432 fi
   6433 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   6434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6435 $as_echo "failed" >&6; }
   6436 else
   6437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   6438 $as_echo "ok" >&6; }
   6439 fi
   6440 
   6441 # Response file support.
   6442 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6443   nm_file_list_spec='@'
   6444 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   6445   nm_file_list_spec='@'
   6446 fi
   6447 
   6448 
   6449 
   6450 
   6451 
   6452 
   6453 
   6454 
   6455 
   6456 
   6457 
   6458 
   6459 
   6460 
   6461 
   6462 
   6463 
   6464 
   6465 
   6466 
   6467 
   6468 
   6469 
   6470 
   6471 
   6472 
   6473 
   6474 
   6475 
   6476 
   6477 
   6478 
   6479 
   6480 
   6481 
   6482 
   6483 
   6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   6485 $as_echo_n "checking for sysroot... " >&6; }
   6486 
   6487 # Check whether --with-sysroot was given.
   6488 if test "${with_sysroot+set}" = set; then :
   6489   withval=$with_sysroot;
   6490 else
   6491   with_sysroot=no
   6492 fi
   6493 
   6494 
   6495 lt_sysroot=
   6496 case $with_sysroot in #(
   6497  yes)
   6498    if test yes = "$GCC"; then
   6499      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   6500    fi
   6501    ;; #(
   6502  /*)
   6503    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   6504    ;; #(
   6505  no|'')
   6506    ;; #(
   6507  *)
   6508    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
   6509 $as_echo "$with_sysroot" >&6; }
   6510    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   6511    ;;
   6512 esac
   6513 
   6514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   6515 $as_echo "${lt_sysroot:-no}" >&6; }
   6516 
   6517 
   6518 
   6519 
   6520 
   6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
   6522 $as_echo_n "checking for a working dd... " >&6; }
   6523 if ${ac_cv_path_lt_DD+:} false; then :
   6524   $as_echo_n "(cached) " >&6
   6525 else
   6526   printf 0123456789abcdef0123456789abcdef >conftest.i
   6527 cat conftest.i conftest.i >conftest2.i
   6528 : ${lt_DD:=$DD}
   6529 if test -z "$lt_DD"; then
   6530   ac_path_lt_DD_found=false
   6531   # Loop through the user's path and test for each of PROGNAME-LIST
   6532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6533 for as_dir in $PATH
   6534 do
   6535   IFS=$as_save_IFS
   6536   test -z "$as_dir" && as_dir=.
   6537     for ac_prog in dd; do
   6538     for ac_exec_ext in '' $ac_executable_extensions; do
   6539       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
   6540       as_fn_executable_p "$ac_path_lt_DD" || continue
   6541 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6542   cmp -s conftest.i conftest.out \
   6543   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   6544 fi
   6545       $ac_path_lt_DD_found && break 3
   6546     done
   6547   done
   6548   done
   6549 IFS=$as_save_IFS
   6550   if test -z "$ac_cv_path_lt_DD"; then
   6551     :
   6552   fi
   6553 else
   6554   ac_cv_path_lt_DD=$lt_DD
   6555 fi
   6556 
   6557 rm -f conftest.i conftest2.i conftest.out
   6558 fi
   6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
   6560 $as_echo "$ac_cv_path_lt_DD" >&6; }
   6561 
   6562 
   6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
   6564 $as_echo_n "checking how to truncate binary pipes... " >&6; }
   6565 if ${lt_cv_truncate_bin+:} false; then :
   6566   $as_echo_n "(cached) " >&6
   6567 else
   6568   printf 0123456789abcdef0123456789abcdef >conftest.i
   6569 cat conftest.i conftest.i >conftest2.i
   6570 lt_cv_truncate_bin=
   6571 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6572   cmp -s conftest.i conftest.out \
   6573   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   6574 fi
   6575 rm -f conftest.i conftest2.i conftest.out
   6576 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
   6577 fi
   6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
   6579 $as_echo "$lt_cv_truncate_bin" >&6; }
   6580 
   6581 
   6582 
   6583 
   6584 
   6585 
   6586 
   6587 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   6588 func_cc_basename ()
   6589 {
   6590     for cc_temp in $*""; do
   6591       case $cc_temp in
   6592         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   6593         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   6594         \-*) ;;
   6595         *) break;;
   6596       esac
   6597     done
   6598     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   6599 }
   6600 
   6601 # Check whether --enable-libtool-lock was given.
   6602 if test "${enable_libtool_lock+set}" = set; then :
   6603   enableval=$enable_libtool_lock;
   6604 fi
   6605 
   6606 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   6607 
   6608 # Some flags need to be propagated to the compiler or linker for good
   6609 # libtool support.
   6610 case $host in
   6611 ia64-*-hpux*)
   6612   # Find out what ABI is being produced by ac_compile, and set mode
   6613   # options accordingly.
   6614   echo 'int i;' > conftest.$ac_ext
   6615   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6616   (eval $ac_compile) 2>&5
   6617   ac_status=$?
   6618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6619   test $ac_status = 0; }; then
   6620     case `/usr/bin/file conftest.$ac_objext` in
   6621       *ELF-32*)
   6622 	HPUX_IA64_MODE=32
   6623 	;;
   6624       *ELF-64*)
   6625 	HPUX_IA64_MODE=64
   6626 	;;
   6627     esac
   6628   fi
   6629   rm -rf conftest*
   6630   ;;
   6631 *-*-irix6*)
   6632   # Find out what ABI is being produced by ac_compile, and set linker
   6633   # options accordingly.
   6634   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6635   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6636   (eval $ac_compile) 2>&5
   6637   ac_status=$?
   6638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6639   test $ac_status = 0; }; then
   6640     if test yes = "$lt_cv_prog_gnu_ld"; then
   6641       case `/usr/bin/file conftest.$ac_objext` in
   6642 	*32-bit*)
   6643 	  LD="${LD-ld} -melf32bsmip"
   6644 	  ;;
   6645 	*N32*)
   6646 	  LD="${LD-ld} -melf32bmipn32"
   6647 	  ;;
   6648 	*64-bit*)
   6649 	  LD="${LD-ld} -melf64bmip"
   6650 	;;
   6651       esac
   6652     else
   6653       case `/usr/bin/file conftest.$ac_objext` in
   6654 	*32-bit*)
   6655 	  LD="${LD-ld} -32"
   6656 	  ;;
   6657 	*N32*)
   6658 	  LD="${LD-ld} -n32"
   6659 	  ;;
   6660 	*64-bit*)
   6661 	  LD="${LD-ld} -64"
   6662 	  ;;
   6663       esac
   6664     fi
   6665   fi
   6666   rm -rf conftest*
   6667   ;;
   6668 
   6669 mips64*-*linux*)
   6670   # Find out what ABI is being produced by ac_compile, and set linker
   6671   # options accordingly.
   6672   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6673   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6674   (eval $ac_compile) 2>&5
   6675   ac_status=$?
   6676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6677   test $ac_status = 0; }; then
   6678     emul=elf
   6679     case `/usr/bin/file conftest.$ac_objext` in
   6680       *32-bit*)
   6681 	emul="${emul}32"
   6682 	;;
   6683       *64-bit*)
   6684 	emul="${emul}64"
   6685 	;;
   6686     esac
   6687     case `/usr/bin/file conftest.$ac_objext` in
   6688       *MSB*)
   6689 	emul="${emul}btsmip"
   6690 	;;
   6691       *LSB*)
   6692 	emul="${emul}ltsmip"
   6693 	;;
   6694     esac
   6695     case `/usr/bin/file conftest.$ac_objext` in
   6696       *N32*)
   6697 	emul="${emul}n32"
   6698 	;;
   6699     esac
   6700     LD="${LD-ld} -m $emul"
   6701   fi
   6702   rm -rf conftest*
   6703   ;;
   6704 
   6705 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   6706 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   6707   # Find out what ABI is being produced by ac_compile, and set linker
   6708   # options accordingly.  Note that the listed cases only cover the
   6709   # situations where additional linker options are needed (such as when
   6710   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   6711   # vice versa); the common cases where no linker options are needed do
   6712   # not appear in the list.
   6713   echo 'int i;' > conftest.$ac_ext
   6714   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6715   (eval $ac_compile) 2>&5
   6716   ac_status=$?
   6717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6718   test $ac_status = 0; }; then
   6719     case `/usr/bin/file conftest.o` in
   6720       *32-bit*)
   6721 	case $host in
   6722 	  x86_64-*kfreebsd*-gnu)
   6723 	    LD="${LD-ld} -m elf_i386_fbsd"
   6724 	    ;;
   6725 	  x86_64-*linux*)
   6726 	    case `/usr/bin/file conftest.o` in
   6727 	      *x86-64*)
   6728 		LD="${LD-ld} -m elf32_x86_64"
   6729 		;;
   6730 	      *)
   6731 		LD="${LD-ld} -m elf_i386"
   6732 		;;
   6733 	    esac
   6734 	    ;;
   6735 	  powerpc64le-*linux*)
   6736 	    LD="${LD-ld} -m elf32lppclinux"
   6737 	    ;;
   6738 	  powerpc64-*linux*)
   6739 	    LD="${LD-ld} -m elf32ppclinux"
   6740 	    ;;
   6741 	  s390x-*linux*)
   6742 	    LD="${LD-ld} -m elf_s390"
   6743 	    ;;
   6744 	  sparc64-*linux*)
   6745 	    LD="${LD-ld} -m elf32_sparc"
   6746 	    ;;
   6747 	esac
   6748 	;;
   6749       *64-bit*)
   6750 	case $host in
   6751 	  x86_64-*kfreebsd*-gnu)
   6752 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   6753 	    ;;
   6754 	  x86_64-*linux*)
   6755 	    LD="${LD-ld} -m elf_x86_64"
   6756 	    ;;
   6757 	  powerpcle-*linux*)
   6758 	    LD="${LD-ld} -m elf64lppc"
   6759 	    ;;
   6760 	  powerpc-*linux*)
   6761 	    LD="${LD-ld} -m elf64ppc"
   6762 	    ;;
   6763 	  s390*-*linux*|s390*-*tpf*)
   6764 	    LD="${LD-ld} -m elf64_s390"
   6765 	    ;;
   6766 	  sparc*-*linux*)
   6767 	    LD="${LD-ld} -m elf64_sparc"
   6768 	    ;;
   6769 	esac
   6770 	;;
   6771     esac
   6772   fi
   6773   rm -rf conftest*
   6774   ;;
   6775 
   6776 *-*-sco3.2v5*)
   6777   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   6778   SAVE_CFLAGS=$CFLAGS
   6779   CFLAGS="$CFLAGS -belf"
   6780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   6781 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   6782 if ${lt_cv_cc_needs_belf+:} false; then :
   6783   $as_echo_n "(cached) " >&6
   6784 else
   6785   ac_ext=c
   6786 ac_cpp='$CPP $CPPFLAGS'
   6787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6790 
   6791      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6792 /* end confdefs.h.  */
   6793 
   6794 int
   6795 main ()
   6796 {
   6797 
   6798   ;
   6799   return 0;
   6800 }
   6801 _ACEOF
   6802 if ac_fn_c_try_link "$LINENO"; then :
   6803   lt_cv_cc_needs_belf=yes
   6804 else
   6805   lt_cv_cc_needs_belf=no
   6806 fi
   6807 rm -f core conftest.err conftest.$ac_objext \
   6808     conftest$ac_exeext conftest.$ac_ext
   6809      ac_ext=c
   6810 ac_cpp='$CPP $CPPFLAGS'
   6811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6814 
   6815 fi
   6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   6817 $as_echo "$lt_cv_cc_needs_belf" >&6; }
   6818   if test yes != "$lt_cv_cc_needs_belf"; then
   6819     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   6820     CFLAGS=$SAVE_CFLAGS
   6821   fi
   6822   ;;
   6823 *-*solaris*)
   6824   # Find out what ABI is being produced by ac_compile, and set linker
   6825   # options accordingly.
   6826   echo 'int i;' > conftest.$ac_ext
   6827   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6828   (eval $ac_compile) 2>&5
   6829   ac_status=$?
   6830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6831   test $ac_status = 0; }; then
   6832     case `/usr/bin/file conftest.o` in
   6833     *64-bit*)
   6834       case $lt_cv_prog_gnu_ld in
   6835       yes*)
   6836         case $host in
   6837         i?86-*-solaris*|x86_64-*-solaris*)
   6838           LD="${LD-ld} -m elf_x86_64"
   6839           ;;
   6840         sparc*-*-solaris*)
   6841           LD="${LD-ld} -m elf64_sparc"
   6842           ;;
   6843         esac
   6844         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   6845         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   6846           LD=${LD-ld}_sol2
   6847         fi
   6848         ;;
   6849       *)
   6850 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   6851 	  LD="${LD-ld} -64"
   6852 	fi
   6853 	;;
   6854       esac
   6855       ;;
   6856     esac
   6857   fi
   6858   rm -rf conftest*
   6859   ;;
   6860 esac
   6861 
   6862 need_locks=$enable_libtool_lock
   6863 
   6864 if test -n "$ac_tool_prefix"; then
   6865   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   6866 set dummy ${ac_tool_prefix}mt; ac_word=$2
   6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6868 $as_echo_n "checking for $ac_word... " >&6; }
   6869 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
   6870   $as_echo_n "(cached) " >&6
   6871 else
   6872   if test -n "$MANIFEST_TOOL"; then
   6873   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   6874 else
   6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6876 for as_dir in $PATH
   6877 do
   6878   IFS=$as_save_IFS
   6879   test -z "$as_dir" && as_dir=.
   6880     for ac_exec_ext in '' $ac_executable_extensions; do
   6881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6882     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   6883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6884     break 2
   6885   fi
   6886 done
   6887   done
   6888 IFS=$as_save_IFS
   6889 
   6890 fi
   6891 fi
   6892 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   6893 if test -n "$MANIFEST_TOOL"; then
   6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   6895 $as_echo "$MANIFEST_TOOL" >&6; }
   6896 else
   6897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6898 $as_echo "no" >&6; }
   6899 fi
   6900 
   6901 
   6902 fi
   6903 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   6904   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   6905   # Extract the first word of "mt", so it can be a program name with args.
   6906 set dummy mt; ac_word=$2
   6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6908 $as_echo_n "checking for $ac_word... " >&6; }
   6909 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
   6910   $as_echo_n "(cached) " >&6
   6911 else
   6912   if test -n "$ac_ct_MANIFEST_TOOL"; then
   6913   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   6914 else
   6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6916 for as_dir in $PATH
   6917 do
   6918   IFS=$as_save_IFS
   6919   test -z "$as_dir" && as_dir=.
   6920     for ac_exec_ext in '' $ac_executable_extensions; do
   6921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6922     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   6923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6924     break 2
   6925   fi
   6926 done
   6927   done
   6928 IFS=$as_save_IFS
   6929 
   6930 fi
   6931 fi
   6932 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   6933 if test -n "$ac_ct_MANIFEST_TOOL"; then
   6934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   6935 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
   6936 else
   6937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6938 $as_echo "no" >&6; }
   6939 fi
   6940 
   6941   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   6942     MANIFEST_TOOL=":"
   6943   else
   6944     case $cross_compiling:$ac_tool_warned in
   6945 yes:)
   6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6948 ac_tool_warned=yes ;;
   6949 esac
   6950     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   6951   fi
   6952 else
   6953   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   6954 fi
   6955 
   6956 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   6958 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   6959 if ${lt_cv_path_mainfest_tool+:} false; then :
   6960   $as_echo_n "(cached) " >&6
   6961 else
   6962   lt_cv_path_mainfest_tool=no
   6963   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   6964   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   6965   cat conftest.err >&5
   6966   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   6967     lt_cv_path_mainfest_tool=yes
   6968   fi
   6969   rm -f conftest*
   6970 fi
   6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   6972 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
   6973 if test yes != "$lt_cv_path_mainfest_tool"; then
   6974   MANIFEST_TOOL=:
   6975 fi
   6976 
   6977 
   6978 
   6979 
   6980 
   6981 
   6982   case $host_os in
   6983     rhapsody* | darwin*)
   6984     if test -n "$ac_tool_prefix"; then
   6985   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   6986 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6988 $as_echo_n "checking for $ac_word... " >&6; }
   6989 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   6990   $as_echo_n "(cached) " >&6
   6991 else
   6992   if test -n "$DSYMUTIL"; then
   6993   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   6994 else
   6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6996 for as_dir in $PATH
   6997 do
   6998   IFS=$as_save_IFS
   6999   test -z "$as_dir" && as_dir=.
   7000     for ac_exec_ext in '' $ac_executable_extensions; do
   7001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7002     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   7003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7004     break 2
   7005   fi
   7006 done
   7007   done
   7008 IFS=$as_save_IFS
   7009 
   7010 fi
   7011 fi
   7012 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   7013 if test -n "$DSYMUTIL"; then
   7014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   7015 $as_echo "$DSYMUTIL" >&6; }
   7016 else
   7017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7018 $as_echo "no" >&6; }
   7019 fi
   7020 
   7021 
   7022 fi
   7023 if test -z "$ac_cv_prog_DSYMUTIL"; then
   7024   ac_ct_DSYMUTIL=$DSYMUTIL
   7025   # Extract the first word of "dsymutil", so it can be a program name with args.
   7026 set dummy dsymutil; ac_word=$2
   7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7028 $as_echo_n "checking for $ac_word... " >&6; }
   7029 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   7030   $as_echo_n "(cached) " >&6
   7031 else
   7032   if test -n "$ac_ct_DSYMUTIL"; then
   7033   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   7034 else
   7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7036 for as_dir in $PATH
   7037 do
   7038   IFS=$as_save_IFS
   7039   test -z "$as_dir" && as_dir=.
   7040     for ac_exec_ext in '' $ac_executable_extensions; do
   7041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7042     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   7043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7044     break 2
   7045   fi
   7046 done
   7047   done
   7048 IFS=$as_save_IFS
   7049 
   7050 fi
   7051 fi
   7052 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   7053 if test -n "$ac_ct_DSYMUTIL"; then
   7054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   7055 $as_echo "$ac_ct_DSYMUTIL" >&6; }
   7056 else
   7057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7058 $as_echo "no" >&6; }
   7059 fi
   7060 
   7061   if test "x$ac_ct_DSYMUTIL" = x; then
   7062     DSYMUTIL=":"
   7063   else
   7064     case $cross_compiling:$ac_tool_warned in
   7065 yes:)
   7066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7068 ac_tool_warned=yes ;;
   7069 esac
   7070     DSYMUTIL=$ac_ct_DSYMUTIL
   7071   fi
   7072 else
   7073   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   7074 fi
   7075 
   7076     if test -n "$ac_tool_prefix"; then
   7077   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   7078 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7080 $as_echo_n "checking for $ac_word... " >&6; }
   7081 if ${ac_cv_prog_NMEDIT+:} false; then :
   7082   $as_echo_n "(cached) " >&6
   7083 else
   7084   if test -n "$NMEDIT"; then
   7085   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   7086 else
   7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7088 for as_dir in $PATH
   7089 do
   7090   IFS=$as_save_IFS
   7091   test -z "$as_dir" && as_dir=.
   7092     for ac_exec_ext in '' $ac_executable_extensions; do
   7093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7094     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   7095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7096     break 2
   7097   fi
   7098 done
   7099   done
   7100 IFS=$as_save_IFS
   7101 
   7102 fi
   7103 fi
   7104 NMEDIT=$ac_cv_prog_NMEDIT
   7105 if test -n "$NMEDIT"; then
   7106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   7107 $as_echo "$NMEDIT" >&6; }
   7108 else
   7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7110 $as_echo "no" >&6; }
   7111 fi
   7112 
   7113 
   7114 fi
   7115 if test -z "$ac_cv_prog_NMEDIT"; then
   7116   ac_ct_NMEDIT=$NMEDIT
   7117   # Extract the first word of "nmedit", so it can be a program name with args.
   7118 set dummy nmedit; ac_word=$2
   7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7120 $as_echo_n "checking for $ac_word... " >&6; }
   7121 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   7122   $as_echo_n "(cached) " >&6
   7123 else
   7124   if test -n "$ac_ct_NMEDIT"; then
   7125   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   7126 else
   7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7128 for as_dir in $PATH
   7129 do
   7130   IFS=$as_save_IFS
   7131   test -z "$as_dir" && as_dir=.
   7132     for ac_exec_ext in '' $ac_executable_extensions; do
   7133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7134     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   7135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7136     break 2
   7137   fi
   7138 done
   7139   done
   7140 IFS=$as_save_IFS
   7141 
   7142 fi
   7143 fi
   7144 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   7145 if test -n "$ac_ct_NMEDIT"; then
   7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   7147 $as_echo "$ac_ct_NMEDIT" >&6; }
   7148 else
   7149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7150 $as_echo "no" >&6; }
   7151 fi
   7152 
   7153   if test "x$ac_ct_NMEDIT" = x; then
   7154     NMEDIT=":"
   7155   else
   7156     case $cross_compiling:$ac_tool_warned in
   7157 yes:)
   7158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7160 ac_tool_warned=yes ;;
   7161 esac
   7162     NMEDIT=$ac_ct_NMEDIT
   7163   fi
   7164 else
   7165   NMEDIT="$ac_cv_prog_NMEDIT"
   7166 fi
   7167 
   7168     if test -n "$ac_tool_prefix"; then
   7169   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   7170 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7172 $as_echo_n "checking for $ac_word... " >&6; }
   7173 if ${ac_cv_prog_LIPO+:} false; then :
   7174   $as_echo_n "(cached) " >&6
   7175 else
   7176   if test -n "$LIPO"; then
   7177   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   7178 else
   7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7180 for as_dir in $PATH
   7181 do
   7182   IFS=$as_save_IFS
   7183   test -z "$as_dir" && as_dir=.
   7184     for ac_exec_ext in '' $ac_executable_extensions; do
   7185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7186     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   7187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7188     break 2
   7189   fi
   7190 done
   7191   done
   7192 IFS=$as_save_IFS
   7193 
   7194 fi
   7195 fi
   7196 LIPO=$ac_cv_prog_LIPO
   7197 if test -n "$LIPO"; then
   7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   7199 $as_echo "$LIPO" >&6; }
   7200 else
   7201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7202 $as_echo "no" >&6; }
   7203 fi
   7204 
   7205 
   7206 fi
   7207 if test -z "$ac_cv_prog_LIPO"; then
   7208   ac_ct_LIPO=$LIPO
   7209   # Extract the first word of "lipo", so it can be a program name with args.
   7210 set dummy lipo; ac_word=$2
   7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7212 $as_echo_n "checking for $ac_word... " >&6; }
   7213 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   7214   $as_echo_n "(cached) " >&6
   7215 else
   7216   if test -n "$ac_ct_LIPO"; then
   7217   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   7218 else
   7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7220 for as_dir in $PATH
   7221 do
   7222   IFS=$as_save_IFS
   7223   test -z "$as_dir" && as_dir=.
   7224     for ac_exec_ext in '' $ac_executable_extensions; do
   7225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7226     ac_cv_prog_ac_ct_LIPO="lipo"
   7227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7228     break 2
   7229   fi
   7230 done
   7231   done
   7232 IFS=$as_save_IFS
   7233 
   7234 fi
   7235 fi
   7236 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   7237 if test -n "$ac_ct_LIPO"; then
   7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   7239 $as_echo "$ac_ct_LIPO" >&6; }
   7240 else
   7241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7242 $as_echo "no" >&6; }
   7243 fi
   7244 
   7245   if test "x$ac_ct_LIPO" = x; then
   7246     LIPO=":"
   7247   else
   7248     case $cross_compiling:$ac_tool_warned in
   7249 yes:)
   7250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7252 ac_tool_warned=yes ;;
   7253 esac
   7254     LIPO=$ac_ct_LIPO
   7255   fi
   7256 else
   7257   LIPO="$ac_cv_prog_LIPO"
   7258 fi
   7259 
   7260     if test -n "$ac_tool_prefix"; then
   7261   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   7262 set dummy ${ac_tool_prefix}otool; ac_word=$2
   7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7264 $as_echo_n "checking for $ac_word... " >&6; }
   7265 if ${ac_cv_prog_OTOOL+:} false; then :
   7266   $as_echo_n "(cached) " >&6
   7267 else
   7268   if test -n "$OTOOL"; then
   7269   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   7270 else
   7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7272 for as_dir in $PATH
   7273 do
   7274   IFS=$as_save_IFS
   7275   test -z "$as_dir" && as_dir=.
   7276     for ac_exec_ext in '' $ac_executable_extensions; do
   7277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7278     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   7279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7280     break 2
   7281   fi
   7282 done
   7283   done
   7284 IFS=$as_save_IFS
   7285 
   7286 fi
   7287 fi
   7288 OTOOL=$ac_cv_prog_OTOOL
   7289 if test -n "$OTOOL"; then
   7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   7291 $as_echo "$OTOOL" >&6; }
   7292 else
   7293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7294 $as_echo "no" >&6; }
   7295 fi
   7296 
   7297 
   7298 fi
   7299 if test -z "$ac_cv_prog_OTOOL"; then
   7300   ac_ct_OTOOL=$OTOOL
   7301   # Extract the first word of "otool", so it can be a program name with args.
   7302 set dummy otool; ac_word=$2
   7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7304 $as_echo_n "checking for $ac_word... " >&6; }
   7305 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   7306   $as_echo_n "(cached) " >&6
   7307 else
   7308   if test -n "$ac_ct_OTOOL"; then
   7309   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   7310 else
   7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7312 for as_dir in $PATH
   7313 do
   7314   IFS=$as_save_IFS
   7315   test -z "$as_dir" && as_dir=.
   7316     for ac_exec_ext in '' $ac_executable_extensions; do
   7317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7318     ac_cv_prog_ac_ct_OTOOL="otool"
   7319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7320     break 2
   7321   fi
   7322 done
   7323   done
   7324 IFS=$as_save_IFS
   7325 
   7326 fi
   7327 fi
   7328 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   7329 if test -n "$ac_ct_OTOOL"; then
   7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   7331 $as_echo "$ac_ct_OTOOL" >&6; }
   7332 else
   7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7334 $as_echo "no" >&6; }
   7335 fi
   7336 
   7337   if test "x$ac_ct_OTOOL" = x; then
   7338     OTOOL=":"
   7339   else
   7340     case $cross_compiling:$ac_tool_warned in
   7341 yes:)
   7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7344 ac_tool_warned=yes ;;
   7345 esac
   7346     OTOOL=$ac_ct_OTOOL
   7347   fi
   7348 else
   7349   OTOOL="$ac_cv_prog_OTOOL"
   7350 fi
   7351 
   7352     if test -n "$ac_tool_prefix"; then
   7353   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   7354 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7356 $as_echo_n "checking for $ac_word... " >&6; }
   7357 if ${ac_cv_prog_OTOOL64+:} false; then :
   7358   $as_echo_n "(cached) " >&6
   7359 else
   7360   if test -n "$OTOOL64"; then
   7361   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   7362 else
   7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7364 for as_dir in $PATH
   7365 do
   7366   IFS=$as_save_IFS
   7367   test -z "$as_dir" && as_dir=.
   7368     for ac_exec_ext in '' $ac_executable_extensions; do
   7369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7370     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   7371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7372     break 2
   7373   fi
   7374 done
   7375   done
   7376 IFS=$as_save_IFS
   7377 
   7378 fi
   7379 fi
   7380 OTOOL64=$ac_cv_prog_OTOOL64
   7381 if test -n "$OTOOL64"; then
   7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   7383 $as_echo "$OTOOL64" >&6; }
   7384 else
   7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7386 $as_echo "no" >&6; }
   7387 fi
   7388 
   7389 
   7390 fi
   7391 if test -z "$ac_cv_prog_OTOOL64"; then
   7392   ac_ct_OTOOL64=$OTOOL64
   7393   # Extract the first word of "otool64", so it can be a program name with args.
   7394 set dummy otool64; ac_word=$2
   7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7396 $as_echo_n "checking for $ac_word... " >&6; }
   7397 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   7398   $as_echo_n "(cached) " >&6
   7399 else
   7400   if test -n "$ac_ct_OTOOL64"; then
   7401   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   7402 else
   7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7404 for as_dir in $PATH
   7405 do
   7406   IFS=$as_save_IFS
   7407   test -z "$as_dir" && as_dir=.
   7408     for ac_exec_ext in '' $ac_executable_extensions; do
   7409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7410     ac_cv_prog_ac_ct_OTOOL64="otool64"
   7411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7412     break 2
   7413   fi
   7414 done
   7415   done
   7416 IFS=$as_save_IFS
   7417 
   7418 fi
   7419 fi
   7420 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   7421 if test -n "$ac_ct_OTOOL64"; then
   7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   7423 $as_echo "$ac_ct_OTOOL64" >&6; }
   7424 else
   7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7426 $as_echo "no" >&6; }
   7427 fi
   7428 
   7429   if test "x$ac_ct_OTOOL64" = x; then
   7430     OTOOL64=":"
   7431   else
   7432     case $cross_compiling:$ac_tool_warned in
   7433 yes:)
   7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7436 ac_tool_warned=yes ;;
   7437 esac
   7438     OTOOL64=$ac_ct_OTOOL64
   7439   fi
   7440 else
   7441   OTOOL64="$ac_cv_prog_OTOOL64"
   7442 fi
   7443 
   7444 
   7445 
   7446 
   7447 
   7448 
   7449 
   7450 
   7451 
   7452 
   7453 
   7454 
   7455 
   7456 
   7457 
   7458 
   7459 
   7460 
   7461 
   7462 
   7463 
   7464 
   7465 
   7466 
   7467 
   7468 
   7469 
   7470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   7471 $as_echo_n "checking for -single_module linker flag... " >&6; }
   7472 if ${lt_cv_apple_cc_single_mod+:} false; then :
   7473   $as_echo_n "(cached) " >&6
   7474 else
   7475   lt_cv_apple_cc_single_mod=no
   7476       if test -z "$LT_MULTI_MODULE"; then
   7477 	# By default we will add the -single_module flag. You can override
   7478 	# by either setting the environment variable LT_MULTI_MODULE
   7479 	# non-empty at configure time, or by adding -multi_module to the
   7480 	# link flags.
   7481 	rm -rf libconftest.dylib*
   7482 	echo "int foo(void){return 1;}" > conftest.c
   7483 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7484 -dynamiclib -Wl,-single_module conftest.c" >&5
   7485 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7486 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   7487         _lt_result=$?
   7488 	# If there is a non-empty error log, and "single_module"
   7489 	# appears in it, assume the flag caused a linker warning
   7490         if test -s conftest.err && $GREP single_module conftest.err; then
   7491 	  cat conftest.err >&5
   7492 	# Otherwise, if the output was created with a 0 exit code from
   7493 	# the compiler, it worked.
   7494 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   7495 	  lt_cv_apple_cc_single_mod=yes
   7496 	else
   7497 	  cat conftest.err >&5
   7498 	fi
   7499 	rm -rf libconftest.dylib*
   7500 	rm -f conftest.*
   7501       fi
   7502 fi
   7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   7504 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   7505 
   7506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   7507 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   7508 if ${lt_cv_ld_exported_symbols_list+:} false; then :
   7509   $as_echo_n "(cached) " >&6
   7510 else
   7511   lt_cv_ld_exported_symbols_list=no
   7512       save_LDFLAGS=$LDFLAGS
   7513       echo "_main" > conftest.sym
   7514       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   7515       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7516 /* end confdefs.h.  */
   7517 
   7518 int
   7519 main ()
   7520 {
   7521 
   7522   ;
   7523   return 0;
   7524 }
   7525 _ACEOF
   7526 if ac_fn_c_try_link "$LINENO"; then :
   7527   lt_cv_ld_exported_symbols_list=yes
   7528 else
   7529   lt_cv_ld_exported_symbols_list=no
   7530 fi
   7531 rm -f core conftest.err conftest.$ac_objext \
   7532     conftest$ac_exeext conftest.$ac_ext
   7533 	LDFLAGS=$save_LDFLAGS
   7534 
   7535 fi
   7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   7537 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   7538 
   7539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   7540 $as_echo_n "checking for -force_load linker flag... " >&6; }
   7541 if ${lt_cv_ld_force_load+:} false; then :
   7542   $as_echo_n "(cached) " >&6
   7543 else
   7544   lt_cv_ld_force_load=no
   7545       cat > conftest.c << _LT_EOF
   7546 int forced_loaded() { return 2;}
   7547 _LT_EOF
   7548       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   7549       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   7550       echo "$AR cru libconftest.a conftest.o" >&5
   7551       $AR cru libconftest.a conftest.o 2>&5
   7552       echo "$RANLIB libconftest.a" >&5
   7553       $RANLIB libconftest.a 2>&5
   7554       cat > conftest.c << _LT_EOF
   7555 int main() { return 0;}
   7556 _LT_EOF
   7557       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   7558       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   7559       _lt_result=$?
   7560       if test -s conftest.err && $GREP force_load conftest.err; then
   7561 	cat conftest.err >&5
   7562       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   7563 	lt_cv_ld_force_load=yes
   7564       else
   7565 	cat conftest.err >&5
   7566       fi
   7567         rm -f conftest.err libconftest.a conftest conftest.c
   7568         rm -rf conftest.dSYM
   7569 
   7570 fi
   7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   7572 $as_echo "$lt_cv_ld_force_load" >&6; }
   7573     case $host_os in
   7574     rhapsody* | darwin1.[012])
   7575       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   7576     darwin1.*)
   7577       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7578     darwin*) # darwin 5.x on
   7579       # if running on 10.5 or later, the deployment target defaults
   7580       # to the OS version, if on x86, and 10.4, the deployment
   7581       # target defaults to 10.4. Don't you love it?
   7582       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   7583 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   7584 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7585 	10.[012][,.]*)
   7586 	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7587 	10.*)
   7588 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7589       esac
   7590     ;;
   7591   esac
   7592     if test yes = "$lt_cv_apple_cc_single_mod"; then
   7593       _lt_dar_single_mod='$single_module'
   7594     fi
   7595     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   7596       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   7597     else
   7598       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   7599     fi
   7600     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   7601       _lt_dsymutil='~$DSYMUTIL $lib || :'
   7602     else
   7603       _lt_dsymutil=
   7604     fi
   7605     ;;
   7606   esac
   7607 
   7608 # func_munge_path_list VARIABLE PATH
   7609 # -----------------------------------
   7610 # VARIABLE is name of variable containing _space_ separated list of
   7611 # directories to be munged by the contents of PATH, which is string
   7612 # having a format:
   7613 # "DIR[:DIR]:"
   7614 #       string "DIR[ DIR]" will be prepended to VARIABLE
   7615 # ":DIR[:DIR]"
   7616 #       string "DIR[ DIR]" will be appended to VARIABLE
   7617 # "DIRP[:DIRP]::[DIRA:]DIRA"
   7618 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   7619 #       "DIRA[ DIRA]" will be appended to VARIABLE
   7620 # "DIR[:DIR]"
   7621 #       VARIABLE will be replaced by "DIR[ DIR]"
   7622 func_munge_path_list ()
   7623 {
   7624     case x$2 in
   7625     x)
   7626         ;;
   7627     *:)
   7628         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   7629         ;;
   7630     x:*)
   7631         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   7632         ;;
   7633     *::*)
   7634         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   7635         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   7636         ;;
   7637     *)
   7638         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   7639         ;;
   7640     esac
   7641 }
   7642 
   7643 for ac_header in dlfcn.h
   7644 do :
   7645   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   7646 "
   7647 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   7648   cat >>confdefs.h <<_ACEOF
   7649 #define HAVE_DLFCN_H 1
   7650 _ACEOF
   7651 
   7652 fi
   7653 
   7654 done
   7655 
   7656 
   7657 
   7658 
   7659 
   7660 # Set options
   7661 
   7662 
   7663 
   7664         enable_dlopen=no
   7665 
   7666 
   7667   enable_win32_dll=no
   7668 
   7669 
   7670             # Check whether --enable-shared was given.
   7671 if test "${enable_shared+set}" = set; then :
   7672   enableval=$enable_shared; p=${PACKAGE-default}
   7673     case $enableval in
   7674     yes) enable_shared=yes ;;
   7675     no) enable_shared=no ;;
   7676     *)
   7677       enable_shared=no
   7678       # Look at the argument we got.  We use all the common list separators.
   7679       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7680       for pkg in $enableval; do
   7681 	IFS=$lt_save_ifs
   7682 	if test "X$pkg" = "X$p"; then
   7683 	  enable_shared=yes
   7684 	fi
   7685       done
   7686       IFS=$lt_save_ifs
   7687       ;;
   7688     esac
   7689 else
   7690   enable_shared=yes
   7691 fi
   7692 
   7693 
   7694 
   7695 
   7696 
   7697 
   7698 
   7699 
   7700 
   7701   # Check whether --enable-static was given.
   7702 if test "${enable_static+set}" = set; then :
   7703   enableval=$enable_static; p=${PACKAGE-default}
   7704     case $enableval in
   7705     yes) enable_static=yes ;;
   7706     no) enable_static=no ;;
   7707     *)
   7708      enable_static=no
   7709       # Look at the argument we got.  We use all the common list separators.
   7710       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7711       for pkg in $enableval; do
   7712 	IFS=$lt_save_ifs
   7713 	if test "X$pkg" = "X$p"; then
   7714 	  enable_static=yes
   7715 	fi
   7716       done
   7717       IFS=$lt_save_ifs
   7718       ;;
   7719     esac
   7720 else
   7721   enable_static=yes
   7722 fi
   7723 
   7724 
   7725 
   7726 
   7727 
   7728 
   7729 
   7730 
   7731 
   7732 
   7733 # Check whether --with-pic was given.
   7734 if test "${with_pic+set}" = set; then :
   7735   withval=$with_pic; lt_p=${PACKAGE-default}
   7736     case $withval in
   7737     yes|no) pic_mode=$withval ;;
   7738     *)
   7739       pic_mode=default
   7740       # Look at the argument we got.  We use all the common list separators.
   7741       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7742       for lt_pkg in $withval; do
   7743 	IFS=$lt_save_ifs
   7744 	if test "X$lt_pkg" = "X$lt_p"; then
   7745 	  pic_mode=yes
   7746 	fi
   7747       done
   7748       IFS=$lt_save_ifs
   7749       ;;
   7750     esac
   7751 else
   7752   pic_mode=default
   7753 fi
   7754 
   7755 
   7756 
   7757 
   7758 
   7759 
   7760 
   7761 
   7762   # Check whether --enable-fast-install was given.
   7763 if test "${enable_fast_install+set}" = set; then :
   7764   enableval=$enable_fast_install; p=${PACKAGE-default}
   7765     case $enableval in
   7766     yes) enable_fast_install=yes ;;
   7767     no) enable_fast_install=no ;;
   7768     *)
   7769       enable_fast_install=no
   7770       # Look at the argument we got.  We use all the common list separators.
   7771       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7772       for pkg in $enableval; do
   7773 	IFS=$lt_save_ifs
   7774 	if test "X$pkg" = "X$p"; then
   7775 	  enable_fast_install=yes
   7776 	fi
   7777       done
   7778       IFS=$lt_save_ifs
   7779       ;;
   7780     esac
   7781 else
   7782   enable_fast_install=yes
   7783 fi
   7784 
   7785 
   7786 
   7787 
   7788 
   7789 
   7790 
   7791 
   7792   shared_archive_member_spec=
   7793 case $host,$enable_shared in
   7794 power*-*-aix[5-9]*,yes)
   7795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   7796 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
   7797 
   7798 # Check whether --with-aix-soname was given.
   7799 if test "${with_aix_soname+set}" = set; then :
   7800   withval=$with_aix_soname; case $withval in
   7801     aix|svr4|both)
   7802       ;;
   7803     *)
   7804       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   7805       ;;
   7806     esac
   7807     lt_cv_with_aix_soname=$with_aix_soname
   7808 else
   7809   if ${lt_cv_with_aix_soname+:} false; then :
   7810   $as_echo_n "(cached) " >&6
   7811 else
   7812   lt_cv_with_aix_soname=aix
   7813 fi
   7814 
   7815     with_aix_soname=$lt_cv_with_aix_soname
   7816 fi
   7817 
   7818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   7819 $as_echo "$with_aix_soname" >&6; }
   7820   if test aix != "$with_aix_soname"; then
   7821     # For the AIX way of multilib, we name the shared archive member
   7822     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   7823     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   7824     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   7825     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   7826     if test 64 = "${OBJECT_MODE-32}"; then
   7827       shared_archive_member_spec=shr_64
   7828     else
   7829       shared_archive_member_spec=shr
   7830     fi
   7831   fi
   7832   ;;
   7833 *)
   7834   with_aix_soname=aix
   7835   ;;
   7836 esac
   7837 
   7838 
   7839 
   7840 
   7841 
   7842 
   7843 
   7844 
   7845 
   7846 
   7847 # This can be used to rebuild libtool when needed
   7848 LIBTOOL_DEPS=$ltmain
   7849 
   7850 # Always use our own libtool.
   7851 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   7852 
   7853 
   7854 
   7855 
   7856 
   7857 
   7858 
   7859 
   7860 
   7861 
   7862 
   7863 
   7864 
   7865 
   7866 
   7867 
   7868 
   7869 
   7870 
   7871 
   7872 
   7873 
   7874 
   7875 
   7876 
   7877 
   7878 
   7879 
   7880 
   7881 
   7882 test -z "$LN_S" && LN_S="ln -s"
   7883 
   7884 
   7885 
   7886 
   7887 
   7888 
   7889 
   7890 
   7891 
   7892 
   7893 
   7894 
   7895 
   7896 
   7897 if test -n "${ZSH_VERSION+set}"; then
   7898    setopt NO_GLOB_SUBST
   7899 fi
   7900 
   7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   7902 $as_echo_n "checking for objdir... " >&6; }
   7903 if ${lt_cv_objdir+:} false; then :
   7904   $as_echo_n "(cached) " >&6
   7905 else
   7906   rm -f .libs 2>/dev/null
   7907 mkdir .libs 2>/dev/null
   7908 if test -d .libs; then
   7909   lt_cv_objdir=.libs
   7910 else
   7911   # MS-DOS does not allow filenames that begin with a dot.
   7912   lt_cv_objdir=_libs
   7913 fi
   7914 rmdir .libs 2>/dev/null
   7915 fi
   7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   7917 $as_echo "$lt_cv_objdir" >&6; }
   7918 objdir=$lt_cv_objdir
   7919 
   7920 
   7921 
   7922 
   7923 
   7924 cat >>confdefs.h <<_ACEOF
   7925 #define LT_OBJDIR "$lt_cv_objdir/"
   7926 _ACEOF
   7927 
   7928 
   7929 
   7930 
   7931 case $host_os in
   7932 aix3*)
   7933   # AIX sometimes has problems with the GCC collect2 program.  For some
   7934   # reason, if we set the COLLECT_NAMES environment variable, the problems
   7935   # vanish in a puff of smoke.
   7936   if test set != "${COLLECT_NAMES+set}"; then
   7937     COLLECT_NAMES=
   7938     export COLLECT_NAMES
   7939   fi
   7940   ;;
   7941 esac
   7942 
   7943 # Global variables:
   7944 ofile=libtool
   7945 can_build_shared=yes
   7946 
   7947 # All known linkers require a '.a' archive for static linking (except MSVC,
   7948 # which needs '.lib').
   7949 libext=a
   7950 
   7951 with_gnu_ld=$lt_cv_prog_gnu_ld
   7952 
   7953 old_CC=$CC
   7954 old_CFLAGS=$CFLAGS
   7955 
   7956 # Set sane defaults for various variables
   7957 test -z "$CC" && CC=cc
   7958 test -z "$LTCC" && LTCC=$CC
   7959 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   7960 test -z "$LD" && LD=ld
   7961 test -z "$ac_objext" && ac_objext=o
   7962 
   7963 func_cc_basename $compiler
   7964 cc_basename=$func_cc_basename_result
   7965 
   7966 
   7967 # Only perform the check for file, if the check method requires it
   7968 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   7969 case $deplibs_check_method in
   7970 file_magic*)
   7971   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   7972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   7973 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   7974 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7975   $as_echo_n "(cached) " >&6
   7976 else
   7977   case $MAGIC_CMD in
   7978 [\\/*] |  ?:[\\/]*)
   7979   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   7980   ;;
   7981 *)
   7982   lt_save_MAGIC_CMD=$MAGIC_CMD
   7983   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7984   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7985   for ac_dir in $ac_dummy; do
   7986     IFS=$lt_save_ifs
   7987     test -z "$ac_dir" && ac_dir=.
   7988     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   7989       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   7990       if test -n "$file_magic_test_file"; then
   7991 	case $deplibs_check_method in
   7992 	"file_magic "*)
   7993 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7994 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7995 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7996 	    $EGREP "$file_magic_regex" > /dev/null; then
   7997 	    :
   7998 	  else
   7999 	    cat <<_LT_EOF 1>&2
   8000 
   8001 *** Warning: the command libtool uses to detect shared libraries,
   8002 *** $file_magic_cmd, produces output that libtool cannot recognize.
   8003 *** The result is that libtool may fail to recognize shared libraries
   8004 *** as such.  This will affect the creation of libtool libraries that
   8005 *** depend on shared libraries, but programs linked with such libtool
   8006 *** libraries will work regardless of this problem.  Nevertheless, you
   8007 *** may want to report the problem to your system manager and/or to
   8008 *** bug-libtool (at] gnu.org
   8009 
   8010 _LT_EOF
   8011 	  fi ;;
   8012 	esac
   8013       fi
   8014       break
   8015     fi
   8016   done
   8017   IFS=$lt_save_ifs
   8018   MAGIC_CMD=$lt_save_MAGIC_CMD
   8019   ;;
   8020 esac
   8021 fi
   8022 
   8023 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8024 if test -n "$MAGIC_CMD"; then
   8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   8026 $as_echo "$MAGIC_CMD" >&6; }
   8027 else
   8028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8029 $as_echo "no" >&6; }
   8030 fi
   8031 
   8032 
   8033 
   8034 
   8035 
   8036 if test -z "$lt_cv_path_MAGIC_CMD"; then
   8037   if test -n "$ac_tool_prefix"; then
   8038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   8039 $as_echo_n "checking for file... " >&6; }
   8040 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   8041   $as_echo_n "(cached) " >&6
   8042 else
   8043   case $MAGIC_CMD in
   8044 [\\/*] |  ?:[\\/]*)
   8045   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   8046   ;;
   8047 *)
   8048   lt_save_MAGIC_CMD=$MAGIC_CMD
   8049   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   8050   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   8051   for ac_dir in $ac_dummy; do
   8052     IFS=$lt_save_ifs
   8053     test -z "$ac_dir" && ac_dir=.
   8054     if test -f "$ac_dir/file"; then
   8055       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   8056       if test -n "$file_magic_test_file"; then
   8057 	case $deplibs_check_method in
   8058 	"file_magic "*)
   8059 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   8060 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8061 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   8062 	    $EGREP "$file_magic_regex" > /dev/null; then
   8063 	    :
   8064 	  else
   8065 	    cat <<_LT_EOF 1>&2
   8066 
   8067 *** Warning: the command libtool uses to detect shared libraries,
   8068 *** $file_magic_cmd, produces output that libtool cannot recognize.
   8069 *** The result is that libtool may fail to recognize shared libraries
   8070 *** as such.  This will affect the creation of libtool libraries that
   8071 *** depend on shared libraries, but programs linked with such libtool
   8072 *** libraries will work regardless of this problem.  Nevertheless, you
   8073 *** may want to report the problem to your system manager and/or to
   8074 *** bug-libtool (at] gnu.org
   8075 
   8076 _LT_EOF
   8077 	  fi ;;
   8078 	esac
   8079       fi
   8080       break
   8081     fi
   8082   done
   8083   IFS=$lt_save_ifs
   8084   MAGIC_CMD=$lt_save_MAGIC_CMD
   8085   ;;
   8086 esac
   8087 fi
   8088 
   8089 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8090 if test -n "$MAGIC_CMD"; then
   8091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   8092 $as_echo "$MAGIC_CMD" >&6; }
   8093 else
   8094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8095 $as_echo "no" >&6; }
   8096 fi
   8097 
   8098 
   8099   else
   8100     MAGIC_CMD=:
   8101   fi
   8102 fi
   8103 
   8104   fi
   8105   ;;
   8106 esac
   8107 
   8108 # Use C for the default configuration in the libtool script
   8109 
   8110 lt_save_CC=$CC
   8111 ac_ext=c
   8112 ac_cpp='$CPP $CPPFLAGS'
   8113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8116 
   8117 
   8118 # Source file extension for C test sources.
   8119 ac_ext=c
   8120 
   8121 # Object file extension for compiled C test sources.
   8122 objext=o
   8123 objext=$objext
   8124 
   8125 # Code to be used in simple compile tests
   8126 lt_simple_compile_test_code="int some_variable = 0;"
   8127 
   8128 # Code to be used in simple link tests
   8129 lt_simple_link_test_code='int main(){return(0);}'
   8130 
   8131 
   8132 
   8133 
   8134 
   8135 
   8136 
   8137 # If no C compiler was specified, use CC.
   8138 LTCC=${LTCC-"$CC"}
   8139 
   8140 # If no C compiler flags were specified, use CFLAGS.
   8141 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   8142 
   8143 # Allow CC to be a program name with arguments.
   8144 compiler=$CC
   8145 
   8146 # Save the default compiler, since it gets overwritten when the other
   8147 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   8148 compiler_DEFAULT=$CC
   8149 
   8150 # save warnings/boilerplate of simple test code
   8151 ac_outfile=conftest.$ac_objext
   8152 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   8153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   8154 _lt_compiler_boilerplate=`cat conftest.err`
   8155 $RM conftest*
   8156 
   8157 ac_outfile=conftest.$ac_objext
   8158 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   8159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   8160 _lt_linker_boilerplate=`cat conftest.err`
   8161 $RM -r conftest*
   8162 
   8163 
   8164 ## CAVEAT EMPTOR:
   8165 ## There is no encapsulation within the following macros, do not change
   8166 ## the running order or otherwise move them around unless you know exactly
   8167 ## what you are doing...
   8168 if test -n "$compiler"; then
   8169 
   8170 lt_prog_compiler_no_builtin_flag=
   8171 
   8172 if test yes = "$GCC"; then
   8173   case $cc_basename in
   8174   nvcc*)
   8175     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   8176   *)
   8177     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   8178   esac
   8179 
   8180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   8181 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   8182 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   8183   $as_echo_n "(cached) " >&6
   8184 else
   8185   lt_cv_prog_compiler_rtti_exceptions=no
   8186    ac_outfile=conftest.$ac_objext
   8187    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8188    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   8189    # Insert the option either (1) after the last *FLAGS variable, or
   8190    # (2) before a word containing "conftest.", or (3) at the end.
   8191    # Note that $ac_compile itself does not contain backslashes and begins
   8192    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8193    # The option is referenced via a variable to avoid confusing sed.
   8194    lt_compile=`echo "$ac_compile" | $SED \
   8195    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8196    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8197    -e 's:$: $lt_compiler_flag:'`
   8198    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8199    (eval "$lt_compile" 2>conftest.err)
   8200    ac_status=$?
   8201    cat conftest.err >&5
   8202    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8203    if (exit $ac_status) && test -s "$ac_outfile"; then
   8204      # The compiler can only warn and ignore the option if not recognized
   8205      # So say no if there are warnings other than the usual output.
   8206      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8207      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8208      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8209        lt_cv_prog_compiler_rtti_exceptions=yes
   8210      fi
   8211    fi
   8212    $RM conftest*
   8213 
   8214 fi
   8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   8216 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   8217 
   8218 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   8219     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   8220 else
   8221     :
   8222 fi
   8223 
   8224 fi
   8225 
   8226 
   8227 
   8228 
   8229 
   8230 
   8231   lt_prog_compiler_wl=
   8232 lt_prog_compiler_pic=
   8233 lt_prog_compiler_static=
   8234 
   8235 
   8236   if test yes = "$GCC"; then
   8237     lt_prog_compiler_wl='-Wl,'
   8238     lt_prog_compiler_static='-static'
   8239 
   8240     case $host_os in
   8241       aix*)
   8242       # All AIX code is PIC.
   8243       if test ia64 = "$host_cpu"; then
   8244 	# AIX 5 now supports IA64 processor
   8245 	lt_prog_compiler_static='-Bstatic'
   8246       fi
   8247       lt_prog_compiler_pic='-fPIC'
   8248       ;;
   8249 
   8250     amigaos*)
   8251       case $host_cpu in
   8252       powerpc)
   8253             # see comment about AmigaOS4 .so support
   8254             lt_prog_compiler_pic='-fPIC'
   8255         ;;
   8256       m68k)
   8257             # FIXME: we need at least 68020 code to build shared libraries, but
   8258             # adding the '-m68020' flag to GCC prevents building anything better,
   8259             # like '-m68040'.
   8260             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   8261         ;;
   8262       esac
   8263       ;;
   8264 
   8265     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   8266       # PIC is the default for these OSes.
   8267       ;;
   8268 
   8269     mingw* | cygwin* | pw32* | os2* | cegcc*)
   8270       # This hack is so that the source file can tell whether it is being
   8271       # built for inclusion in a dll (and should export symbols for example).
   8272       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   8273       # (--disable-auto-import) libraries
   8274       lt_prog_compiler_pic='-DDLL_EXPORT'
   8275       case $host_os in
   8276       os2*)
   8277 	lt_prog_compiler_static='$wl-static'
   8278 	;;
   8279       esac
   8280       ;;
   8281 
   8282     darwin* | rhapsody*)
   8283       # PIC is the default on this platform
   8284       # Common symbols not allowed in MH_DYLIB files
   8285       lt_prog_compiler_pic='-fno-common'
   8286       ;;
   8287 
   8288     haiku*)
   8289       # PIC is the default for Haiku.
   8290       # The "-static" flag exists, but is broken.
   8291       lt_prog_compiler_static=
   8292       ;;
   8293 
   8294     hpux*)
   8295       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   8296       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   8297       # sets the default TLS model and affects inlining.
   8298       case $host_cpu in
   8299       hppa*64*)
   8300 	# +Z the default
   8301 	;;
   8302       *)
   8303 	lt_prog_compiler_pic='-fPIC'
   8304 	;;
   8305       esac
   8306       ;;
   8307 
   8308     interix[3-9]*)
   8309       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   8310       # Instead, we relocate shared libraries at runtime.
   8311       ;;
   8312 
   8313     msdosdjgpp*)
   8314       # Just because we use GCC doesn't mean we suddenly get shared libraries
   8315       # on systems that don't support them.
   8316       lt_prog_compiler_can_build_shared=no
   8317       enable_shared=no
   8318       ;;
   8319 
   8320     *nto* | *qnx*)
   8321       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8322       # it will coredump.
   8323       lt_prog_compiler_pic='-fPIC -shared'
   8324       ;;
   8325 
   8326     sysv4*MP*)
   8327       if test -d /usr/nec; then
   8328 	lt_prog_compiler_pic=-Kconform_pic
   8329       fi
   8330       ;;
   8331 
   8332     *)
   8333       lt_prog_compiler_pic='-fPIC'
   8334       ;;
   8335     esac
   8336 
   8337     case $cc_basename in
   8338     nvcc*) # Cuda Compiler Driver 2.2
   8339       lt_prog_compiler_wl='-Xlinker '
   8340       if test -n "$lt_prog_compiler_pic"; then
   8341         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   8342       fi
   8343       ;;
   8344     esac
   8345   else
   8346     # PORTME Check for flag to pass linker flags through the system compiler.
   8347     case $host_os in
   8348     aix*)
   8349       lt_prog_compiler_wl='-Wl,'
   8350       if test ia64 = "$host_cpu"; then
   8351 	# AIX 5 now supports IA64 processor
   8352 	lt_prog_compiler_static='-Bstatic'
   8353       else
   8354 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   8355       fi
   8356       ;;
   8357 
   8358     darwin* | rhapsody*)
   8359       # PIC is the default on this platform
   8360       # Common symbols not allowed in MH_DYLIB files
   8361       lt_prog_compiler_pic='-fno-common'
   8362       case $cc_basename in
   8363       nagfor*)
   8364         # NAG Fortran compiler
   8365         lt_prog_compiler_wl='-Wl,-Wl,,'
   8366         lt_prog_compiler_pic='-PIC'
   8367         lt_prog_compiler_static='-Bstatic'
   8368         ;;
   8369       esac
   8370       ;;
   8371 
   8372     mingw* | cygwin* | pw32* | os2* | cegcc*)
   8373       # This hack is so that the source file can tell whether it is being
   8374       # built for inclusion in a dll (and should export symbols for example).
   8375       lt_prog_compiler_pic='-DDLL_EXPORT'
   8376       case $host_os in
   8377       os2*)
   8378 	lt_prog_compiler_static='$wl-static'
   8379 	;;
   8380       esac
   8381       ;;
   8382 
   8383     hpux9* | hpux10* | hpux11*)
   8384       lt_prog_compiler_wl='-Wl,'
   8385       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   8386       # not for PA HP-UX.
   8387       case $host_cpu in
   8388       hppa*64*|ia64*)
   8389 	# +Z the default
   8390 	;;
   8391       *)
   8392 	lt_prog_compiler_pic='+Z'
   8393 	;;
   8394       esac
   8395       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   8396       lt_prog_compiler_static='$wl-a ${wl}archive'
   8397       ;;
   8398 
   8399     irix5* | irix6* | nonstopux*)
   8400       lt_prog_compiler_wl='-Wl,'
   8401       # PIC (with -KPIC) is the default.
   8402       lt_prog_compiler_static='-non_shared'
   8403       ;;
   8404 
   8405     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   8406       case $cc_basename in
   8407       # old Intel for x86_64, which still supported -KPIC.
   8408       ecc*)
   8409 	lt_prog_compiler_wl='-Wl,'
   8410 	lt_prog_compiler_pic='-KPIC'
   8411 	lt_prog_compiler_static='-static'
   8412         ;;
   8413       # icc used to be incompatible with GCC.
   8414       # ICC 10 doesn't accept -KPIC any more.
   8415       icc* | ifort*)
   8416 	lt_prog_compiler_wl='-Wl,'
   8417 	lt_prog_compiler_pic='-fPIC'
   8418 	lt_prog_compiler_static='-static'
   8419         ;;
   8420       # Lahey Fortran 8.1.
   8421       lf95*)
   8422 	lt_prog_compiler_wl='-Wl,'
   8423 	lt_prog_compiler_pic='--shared'
   8424 	lt_prog_compiler_static='--static'
   8425 	;;
   8426       nagfor*)
   8427 	# NAG Fortran compiler
   8428 	lt_prog_compiler_wl='-Wl,-Wl,,'
   8429 	lt_prog_compiler_pic='-PIC'
   8430 	lt_prog_compiler_static='-Bstatic'
   8431 	;;
   8432       tcc*)
   8433 	# Fabrice Bellard et al's Tiny C Compiler
   8434 	lt_prog_compiler_wl='-Wl,'
   8435 	lt_prog_compiler_pic='-fPIC'
   8436 	lt_prog_compiler_static='-static'
   8437 	;;
   8438       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   8439         # Portland Group compilers (*not* the Pentium gcc compiler,
   8440 	# which looks to be a dead project)
   8441 	lt_prog_compiler_wl='-Wl,'
   8442 	lt_prog_compiler_pic='-fpic'
   8443 	lt_prog_compiler_static='-Bstatic'
   8444         ;;
   8445       ccc*)
   8446         lt_prog_compiler_wl='-Wl,'
   8447         # All Alpha code is PIC.
   8448         lt_prog_compiler_static='-non_shared'
   8449         ;;
   8450       xl* | bgxl* | bgf* | mpixl*)
   8451 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   8452 	lt_prog_compiler_wl='-Wl,'
   8453 	lt_prog_compiler_pic='-qpic'
   8454 	lt_prog_compiler_static='-qstaticlink'
   8455 	;;
   8456       *)
   8457 	case `$CC -V 2>&1 | sed 5q` in
   8458 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   8459 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   8460 	  lt_prog_compiler_pic='-KPIC'
   8461 	  lt_prog_compiler_static='-Bstatic'
   8462 	  lt_prog_compiler_wl=''
   8463 	  ;;
   8464 	*Sun\ F* | *Sun*Fortran*)
   8465 	  lt_prog_compiler_pic='-KPIC'
   8466 	  lt_prog_compiler_static='-Bstatic'
   8467 	  lt_prog_compiler_wl='-Qoption ld '
   8468 	  ;;
   8469 	*Sun\ C*)
   8470 	  # Sun C 5.9
   8471 	  lt_prog_compiler_pic='-KPIC'
   8472 	  lt_prog_compiler_static='-Bstatic'
   8473 	  lt_prog_compiler_wl='-Wl,'
   8474 	  ;;
   8475         *Intel*\ [CF]*Compiler*)
   8476 	  lt_prog_compiler_wl='-Wl,'
   8477 	  lt_prog_compiler_pic='-fPIC'
   8478 	  lt_prog_compiler_static='-static'
   8479 	  ;;
   8480 	*Portland\ Group*)
   8481 	  lt_prog_compiler_wl='-Wl,'
   8482 	  lt_prog_compiler_pic='-fpic'
   8483 	  lt_prog_compiler_static='-Bstatic'
   8484 	  ;;
   8485 	esac
   8486 	;;
   8487       esac
   8488       ;;
   8489 
   8490     newsos6)
   8491       lt_prog_compiler_pic='-KPIC'
   8492       lt_prog_compiler_static='-Bstatic'
   8493       ;;
   8494 
   8495     *nto* | *qnx*)
   8496       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8497       # it will coredump.
   8498       lt_prog_compiler_pic='-fPIC -shared'
   8499       ;;
   8500 
   8501     osf3* | osf4* | osf5*)
   8502       lt_prog_compiler_wl='-Wl,'
   8503       # All OSF/1 code is PIC.
   8504       lt_prog_compiler_static='-non_shared'
   8505       ;;
   8506 
   8507     rdos*)
   8508       lt_prog_compiler_static='-non_shared'
   8509       ;;
   8510 
   8511     solaris*)
   8512       lt_prog_compiler_pic='-KPIC'
   8513       lt_prog_compiler_static='-Bstatic'
   8514       case $cc_basename in
   8515       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   8516 	lt_prog_compiler_wl='-Qoption ld ';;
   8517       *)
   8518 	lt_prog_compiler_wl='-Wl,';;
   8519       esac
   8520       ;;
   8521 
   8522     sunos4*)
   8523       lt_prog_compiler_wl='-Qoption ld '
   8524       lt_prog_compiler_pic='-PIC'
   8525       lt_prog_compiler_static='-Bstatic'
   8526       ;;
   8527 
   8528     sysv4 | sysv4.2uw2* | sysv4.3*)
   8529       lt_prog_compiler_wl='-Wl,'
   8530       lt_prog_compiler_pic='-KPIC'
   8531       lt_prog_compiler_static='-Bstatic'
   8532       ;;
   8533 
   8534     sysv4*MP*)
   8535       if test -d /usr/nec; then
   8536 	lt_prog_compiler_pic='-Kconform_pic'
   8537 	lt_prog_compiler_static='-Bstatic'
   8538       fi
   8539       ;;
   8540 
   8541     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   8542       lt_prog_compiler_wl='-Wl,'
   8543       lt_prog_compiler_pic='-KPIC'
   8544       lt_prog_compiler_static='-Bstatic'
   8545       ;;
   8546 
   8547     unicos*)
   8548       lt_prog_compiler_wl='-Wl,'
   8549       lt_prog_compiler_can_build_shared=no
   8550       ;;
   8551 
   8552     uts4*)
   8553       lt_prog_compiler_pic='-pic'
   8554       lt_prog_compiler_static='-Bstatic'
   8555       ;;
   8556 
   8557     *)
   8558       lt_prog_compiler_can_build_shared=no
   8559       ;;
   8560     esac
   8561   fi
   8562 
   8563 case $host_os in
   8564   # For platforms that do not support PIC, -DPIC is meaningless:
   8565   *djgpp*)
   8566     lt_prog_compiler_pic=
   8567     ;;
   8568   *)
   8569     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   8570     ;;
   8571 esac
   8572 
   8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   8574 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   8575 if ${lt_cv_prog_compiler_pic+:} false; then :
   8576   $as_echo_n "(cached) " >&6
   8577 else
   8578   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   8579 fi
   8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   8581 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
   8582 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   8583 
   8584 #
   8585 # Check to make sure the PIC flag actually works.
   8586 #
   8587 if test -n "$lt_prog_compiler_pic"; then
   8588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   8589 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   8590 if ${lt_cv_prog_compiler_pic_works+:} false; then :
   8591   $as_echo_n "(cached) " >&6
   8592 else
   8593   lt_cv_prog_compiler_pic_works=no
   8594    ac_outfile=conftest.$ac_objext
   8595    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8596    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   8597    # Insert the option either (1) after the last *FLAGS variable, or
   8598    # (2) before a word containing "conftest.", or (3) at the end.
   8599    # Note that $ac_compile itself does not contain backslashes and begins
   8600    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8601    # The option is referenced via a variable to avoid confusing sed.
   8602    lt_compile=`echo "$ac_compile" | $SED \
   8603    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8604    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8605    -e 's:$: $lt_compiler_flag:'`
   8606    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8607    (eval "$lt_compile" 2>conftest.err)
   8608    ac_status=$?
   8609    cat conftest.err >&5
   8610    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8611    if (exit $ac_status) && test -s "$ac_outfile"; then
   8612      # The compiler can only warn and ignore the option if not recognized
   8613      # So say no if there are warnings other than the usual output.
   8614      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8615      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8616      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8617        lt_cv_prog_compiler_pic_works=yes
   8618      fi
   8619    fi
   8620    $RM conftest*
   8621 
   8622 fi
   8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   8624 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   8625 
   8626 if test yes = "$lt_cv_prog_compiler_pic_works"; then
   8627     case $lt_prog_compiler_pic in
   8628      "" | " "*) ;;
   8629      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   8630      esac
   8631 else
   8632     lt_prog_compiler_pic=
   8633      lt_prog_compiler_can_build_shared=no
   8634 fi
   8635 
   8636 fi
   8637 
   8638 
   8639 
   8640 
   8641 
   8642 
   8643 
   8644 
   8645 
   8646 
   8647 
   8648 #
   8649 # Check to make sure the static flag actually works.
   8650 #
   8651 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   8653 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   8654 if ${lt_cv_prog_compiler_static_works+:} false; then :
   8655   $as_echo_n "(cached) " >&6
   8656 else
   8657   lt_cv_prog_compiler_static_works=no
   8658    save_LDFLAGS=$LDFLAGS
   8659    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   8660    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   8661    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   8662      # The linker can only warn and ignore the option if not recognized
   8663      # So say no if there are warnings
   8664      if test -s conftest.err; then
   8665        # Append any errors to the config.log.
   8666        cat conftest.err 1>&5
   8667        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   8668        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8669        if diff conftest.exp conftest.er2 >/dev/null; then
   8670          lt_cv_prog_compiler_static_works=yes
   8671        fi
   8672      else
   8673        lt_cv_prog_compiler_static_works=yes
   8674      fi
   8675    fi
   8676    $RM -r conftest*
   8677    LDFLAGS=$save_LDFLAGS
   8678 
   8679 fi
   8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   8681 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   8682 
   8683 if test yes = "$lt_cv_prog_compiler_static_works"; then
   8684     :
   8685 else
   8686     lt_prog_compiler_static=
   8687 fi
   8688 
   8689 
   8690 
   8691 
   8692 
   8693 
   8694 
   8695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8696 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8697 if ${lt_cv_prog_compiler_c_o+:} false; then :
   8698   $as_echo_n "(cached) " >&6
   8699 else
   8700   lt_cv_prog_compiler_c_o=no
   8701    $RM -r conftest 2>/dev/null
   8702    mkdir conftest
   8703    cd conftest
   8704    mkdir out
   8705    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8706 
   8707    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8708    # Insert the option either (1) after the last *FLAGS variable, or
   8709    # (2) before a word containing "conftest.", or (3) at the end.
   8710    # Note that $ac_compile itself does not contain backslashes and begins
   8711    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8712    lt_compile=`echo "$ac_compile" | $SED \
   8713    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8714    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8715    -e 's:$: $lt_compiler_flag:'`
   8716    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8717    (eval "$lt_compile" 2>out/conftest.err)
   8718    ac_status=$?
   8719    cat out/conftest.err >&5
   8720    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8721    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8722    then
   8723      # The compiler can only warn and ignore the option if not recognized
   8724      # So say no if there are warnings
   8725      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8726      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8727      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8728        lt_cv_prog_compiler_c_o=yes
   8729      fi
   8730    fi
   8731    chmod u+w . 2>&5
   8732    $RM conftest*
   8733    # SGI C++ compiler will create directory out/ii_files/ for
   8734    # template instantiation
   8735    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8736    $RM out/* && rmdir out
   8737    cd ..
   8738    $RM -r conftest
   8739    $RM conftest*
   8740 
   8741 fi
   8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8743 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8744 
   8745 
   8746 
   8747 
   8748 
   8749 
   8750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8751 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8752 if ${lt_cv_prog_compiler_c_o+:} false; then :
   8753   $as_echo_n "(cached) " >&6
   8754 else
   8755   lt_cv_prog_compiler_c_o=no
   8756    $RM -r conftest 2>/dev/null
   8757    mkdir conftest
   8758    cd conftest
   8759    mkdir out
   8760    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8761 
   8762    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8763    # Insert the option either (1) after the last *FLAGS variable, or
   8764    # (2) before a word containing "conftest.", or (3) at the end.
   8765    # Note that $ac_compile itself does not contain backslashes and begins
   8766    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8767    lt_compile=`echo "$ac_compile" | $SED \
   8768    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8769    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8770    -e 's:$: $lt_compiler_flag:'`
   8771    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8772    (eval "$lt_compile" 2>out/conftest.err)
   8773    ac_status=$?
   8774    cat out/conftest.err >&5
   8775    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8776    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8777    then
   8778      # The compiler can only warn and ignore the option if not recognized
   8779      # So say no if there are warnings
   8780      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8781      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8782      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8783        lt_cv_prog_compiler_c_o=yes
   8784      fi
   8785    fi
   8786    chmod u+w . 2>&5
   8787    $RM conftest*
   8788    # SGI C++ compiler will create directory out/ii_files/ for
   8789    # template instantiation
   8790    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8791    $RM out/* && rmdir out
   8792    cd ..
   8793    $RM -r conftest
   8794    $RM conftest*
   8795 
   8796 fi
   8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8798 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8799 
   8800 
   8801 
   8802 
   8803 hard_links=nottested
   8804 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   8805   # do not overwrite the value of need_locks provided by the user
   8806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   8807 $as_echo_n "checking if we can lock with hard links... " >&6; }
   8808   hard_links=yes
   8809   $RM conftest*
   8810   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8811   touch conftest.a
   8812   ln conftest.a conftest.b 2>&5 || hard_links=no
   8813   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   8815 $as_echo "$hard_links" >&6; }
   8816   if test no = "$hard_links"; then
   8817     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   8818 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   8819     need_locks=warn
   8820   fi
   8821 else
   8822   need_locks=no
   8823 fi
   8824 
   8825 
   8826 
   8827 
   8828 
   8829 
   8830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   8831 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   8832 
   8833   runpath_var=
   8834   allow_undefined_flag=
   8835   always_export_symbols=no
   8836   archive_cmds=
   8837   archive_expsym_cmds=
   8838   compiler_needs_object=no
   8839   enable_shared_with_static_runtimes=no
   8840   export_dynamic_flag_spec=
   8841   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   8842   hardcode_automatic=no
   8843   hardcode_direct=no
   8844   hardcode_direct_absolute=no
   8845   hardcode_libdir_flag_spec=
   8846   hardcode_libdir_separator=
   8847   hardcode_minus_L=no
   8848   hardcode_shlibpath_var=unsupported
   8849   inherit_rpath=no
   8850   link_all_deplibs=unknown
   8851   module_cmds=
   8852   module_expsym_cmds=
   8853   old_archive_from_new_cmds=
   8854   old_archive_from_expsyms_cmds=
   8855   thread_safe_flag_spec=
   8856   whole_archive_flag_spec=
   8857   # include_expsyms should be a list of space-separated symbols to be *always*
   8858   # included in the symbol list
   8859   include_expsyms=
   8860   # exclude_expsyms can be an extended regexp of symbols to exclude
   8861   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   8862   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   8863   # as well as any symbol that contains 'd'.
   8864   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   8865   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   8866   # platforms (ab)use it in PIC code, but their linkers get confused if
   8867   # the symbol is explicitly referenced.  Since portable code cannot
   8868   # rely on this symbol name, it's probably fine to never include it in
   8869   # preloaded symbol tables.
   8870   # Exclude shared library initialization/finalization symbols.
   8871   extract_expsyms_cmds=
   8872 
   8873   case $host_os in
   8874   cygwin* | mingw* | pw32* | cegcc*)
   8875     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   8876     # When not using gcc, we currently assume that we are using
   8877     # Microsoft Visual C++.
   8878     if test yes != "$GCC"; then
   8879       with_gnu_ld=no
   8880     fi
   8881     ;;
   8882   interix*)
   8883     # we just hope/assume this is gcc and not c89 (= MSVC++)
   8884     with_gnu_ld=yes
   8885     ;;
   8886   openbsd* | bitrig*)
   8887     with_gnu_ld=no
   8888     ;;
   8889   esac
   8890 
   8891   ld_shlibs=yes
   8892 
   8893   # On some targets, GNU ld is compatible enough with the native linker
   8894   # that we're better off using the native interface for both.
   8895   lt_use_gnu_ld_interface=no
   8896   if test yes = "$with_gnu_ld"; then
   8897     case $host_os in
   8898       aix*)
   8899 	# The AIX port of GNU ld has always aspired to compatibility
   8900 	# with the native linker.  However, as the warning in the GNU ld
   8901 	# block says, versions before 2.19.5* couldn't really create working
   8902 	# shared libraries, regardless of the interface used.
   8903 	case `$LD -v 2>&1` in
   8904 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   8905 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   8906 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   8907 	  *)
   8908 	    lt_use_gnu_ld_interface=yes
   8909 	    ;;
   8910 	esac
   8911 	;;
   8912       *)
   8913 	lt_use_gnu_ld_interface=yes
   8914 	;;
   8915     esac
   8916   fi
   8917 
   8918   if test yes = "$lt_use_gnu_ld_interface"; then
   8919     # If archive_cmds runs LD, not CC, wlarc should be empty
   8920     wlarc='$wl'
   8921 
   8922     # Set some defaults for GNU ld with shared library support. These
   8923     # are reset later if shared libraries are not supported. Putting them
   8924     # here allows them to be overridden if necessary.
   8925     runpath_var=LD_RUN_PATH
   8926     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8927     export_dynamic_flag_spec='$wl--export-dynamic'
   8928     # ancient GNU ld didn't support --whole-archive et. al.
   8929     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   8930       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   8931     else
   8932       whole_archive_flag_spec=
   8933     fi
   8934     supports_anon_versioning=no
   8935     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
   8936       *GNU\ gold*) supports_anon_versioning=yes ;;
   8937       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   8938       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   8939       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   8940       *\ 2.11.*) ;; # other 2.11 versions
   8941       *) supports_anon_versioning=yes ;;
   8942     esac
   8943 
   8944     # See if GNU ld supports shared libraries.
   8945     case $host_os in
   8946     aix[3-9]*)
   8947       # On AIX/PPC, the GNU linker is very broken
   8948       if test ia64 != "$host_cpu"; then
   8949 	ld_shlibs=no
   8950 	cat <<_LT_EOF 1>&2
   8951 
   8952 *** Warning: the GNU linker, at least up to release 2.19, is reported
   8953 *** to be unable to reliably create shared libraries on AIX.
   8954 *** Therefore, libtool is disabling shared libraries support.  If you
   8955 *** really care for shared libraries, you may want to install binutils
   8956 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   8957 *** You will then need to restart the configuration process.
   8958 
   8959 _LT_EOF
   8960       fi
   8961       ;;
   8962 
   8963     amigaos*)
   8964       case $host_cpu in
   8965       powerpc)
   8966             # see comment about AmigaOS4 .so support
   8967             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8968             archive_expsym_cmds=''
   8969         ;;
   8970       m68k)
   8971             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)'
   8972             hardcode_libdir_flag_spec='-L$libdir'
   8973             hardcode_minus_L=yes
   8974         ;;
   8975       esac
   8976       ;;
   8977 
   8978     beos*)
   8979       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8980 	allow_undefined_flag=unsupported
   8981 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   8982 	# support --undefined.  This deserves some investigation.  FIXME
   8983 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8984       else
   8985 	ld_shlibs=no
   8986       fi
   8987       ;;
   8988 
   8989     cygwin* | mingw* | pw32* | cegcc*)
   8990       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   8991       # as there is no search path for DLLs.
   8992       hardcode_libdir_flag_spec='-L$libdir'
   8993       export_dynamic_flag_spec='$wl--export-all-symbols'
   8994       allow_undefined_flag=unsupported
   8995       always_export_symbols=no
   8996       enable_shared_with_static_runtimes=yes
   8997       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'
   8998       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   8999 
   9000       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   9001         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   9002 	# If the export-symbols file already is a .def file, use it as
   9003 	# is; otherwise, prepend EXPORTS...
   9004 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   9005           cp $export_symbols $output_objdir/$soname.def;
   9006         else
   9007           echo EXPORTS > $output_objdir/$soname.def;
   9008           cat $export_symbols >> $output_objdir/$soname.def;
   9009         fi~
   9010         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   9011       else
   9012 	ld_shlibs=no
   9013       fi
   9014       ;;
   9015 
   9016     haiku*)
   9017       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9018       link_all_deplibs=yes
   9019       ;;
   9020 
   9021     os2*)
   9022       hardcode_libdir_flag_spec='-L$libdir'
   9023       hardcode_minus_L=yes
   9024       allow_undefined_flag=unsupported
   9025       shrext_cmds=.dll
   9026       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9027 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9028 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9029 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9030 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9031 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9032 	emximp -o $lib $output_objdir/$libname.def'
   9033       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9034 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9035 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9036 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9037 	prefix_cmds="$SED"~
   9038 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9039 	  prefix_cmds="$prefix_cmds -e 1d";
   9040 	fi~
   9041 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9042 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9043 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9044 	emximp -o $lib $output_objdir/$libname.def'
   9045       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9046       enable_shared_with_static_runtimes=yes
   9047       ;;
   9048 
   9049     interix[3-9]*)
   9050       hardcode_direct=no
   9051       hardcode_shlibpath_var=no
   9052       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9053       export_dynamic_flag_spec='$wl-E'
   9054       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   9055       # Instead, shared libraries are loaded at an image base (0x10000000 by
   9056       # default) and relocated if they conflict, which is a slow very memory
   9057       # consuming and fragmenting process.  To avoid this, we pick a random,
   9058       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   9059       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   9060       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   9061       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'
   9062       ;;
   9063 
   9064     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   9065       tmp_diet=no
   9066       if test linux-dietlibc = "$host_os"; then
   9067 	case $cc_basename in
   9068 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   9069 	esac
   9070       fi
   9071       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   9072 	 && test no = "$tmp_diet"
   9073       then
   9074 	tmp_addflag=' $pic_flag'
   9075 	tmp_sharedflag='-shared'
   9076 	case $cc_basename,$host_cpu in
   9077         pgcc*)				# Portland Group C compiler
   9078 	  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'
   9079 	  tmp_addflag=' $pic_flag'
   9080 	  ;;
   9081 	pgf77* | pgf90* | pgf95* | pgfortran*)
   9082 					# Portland Group f77 and f90 compilers
   9083 	  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'
   9084 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   9085 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   9086 	  tmp_addflag=' -i_dynamic' ;;
   9087 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   9088 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   9089 	ifc* | ifort*)			# Intel Fortran compiler
   9090 	  tmp_addflag=' -nofor_main' ;;
   9091 	lf95*)				# Lahey Fortran 8.1
   9092 	  whole_archive_flag_spec=
   9093 	  tmp_sharedflag='--shared' ;;
   9094         nagfor*)                        # NAGFOR 5.3
   9095           tmp_sharedflag='-Wl,-shared' ;;
   9096 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   9097 	  tmp_sharedflag='-qmkshrobj'
   9098 	  tmp_addflag= ;;
   9099 	nvcc*)	# Cuda Compiler Driver 2.2
   9100 	  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'
   9101 	  compiler_needs_object=yes
   9102 	  ;;
   9103 	esac
   9104 	case `$CC -V 2>&1 | sed 5q` in
   9105 	*Sun\ C*)			# Sun C 5.9
   9106 	  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'
   9107 	  compiler_needs_object=yes
   9108 	  tmp_sharedflag='-G' ;;
   9109 	*Sun\ F*)			# Sun Fortran 8.3
   9110 	  tmp_sharedflag='-G' ;;
   9111 	esac
   9112 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9113 
   9114         if test yes = "$supports_anon_versioning"; then
   9115           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   9116             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   9117             echo "local: *; };" >> $output_objdir/$libname.ver~
   9118             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   9119         fi
   9120 
   9121 	case $cc_basename in
   9122 	tcc*)
   9123 	  export_dynamic_flag_spec='-rdynamic'
   9124 	  ;;
   9125 	xlf* | bgf* | bgxlf* | mpixlf*)
   9126 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   9127 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   9128 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9129 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   9130 	  if test yes = "$supports_anon_versioning"; then
   9131 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   9132               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   9133               echo "local: *; };" >> $output_objdir/$libname.ver~
   9134               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   9135 	  fi
   9136 	  ;;
   9137 	esac
   9138       else
   9139         ld_shlibs=no
   9140       fi
   9141       ;;
   9142 
   9143     netbsd*)
   9144       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9145 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   9146 	wlarc=
   9147       else
   9148 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9149 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9150       fi
   9151       ;;
   9152 
   9153     solaris*)
   9154       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   9155 	ld_shlibs=no
   9156 	cat <<_LT_EOF 1>&2
   9157 
   9158 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   9159 *** create shared libraries on Solaris systems.  Therefore, libtool
   9160 *** is disabling shared libraries support.  We urge you to upgrade GNU
   9161 *** binutils to release 2.9.1 or newer.  Another option is to modify
   9162 *** your PATH or compiler configuration so that the native linker is
   9163 *** used, and then restart.
   9164 
   9165 _LT_EOF
   9166       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9167 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9168 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9169       else
   9170 	ld_shlibs=no
   9171       fi
   9172       ;;
   9173 
   9174     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   9175       case `$LD -v 2>&1` in
   9176         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   9177 	ld_shlibs=no
   9178 	cat <<_LT_EOF 1>&2
   9179 
   9180 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   9181 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   9182 *** is disabling shared libraries support.  We urge you to upgrade GNU
   9183 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   9184 *** your PATH or compiler configuration so that the native linker is
   9185 *** used, and then restart.
   9186 
   9187 _LT_EOF
   9188 	;;
   9189 	*)
   9190 	  # For security reasons, it is highly recommended that you always
   9191 	  # use absolute paths for naming shared libraries, and exclude the
   9192 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   9193 	  # requires that you compile everything twice, which is a pain.
   9194 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9195 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9196 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9197 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9198 	  else
   9199 	    ld_shlibs=no
   9200 	  fi
   9201 	;;
   9202       esac
   9203       ;;
   9204 
   9205     sunos4*)
   9206       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9207       wlarc=
   9208       hardcode_direct=yes
   9209       hardcode_shlibpath_var=no
   9210       ;;
   9211 
   9212     *)
   9213       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9214 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9215 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9216       else
   9217 	ld_shlibs=no
   9218       fi
   9219       ;;
   9220     esac
   9221 
   9222     if test no = "$ld_shlibs"; then
   9223       runpath_var=
   9224       hardcode_libdir_flag_spec=
   9225       export_dynamic_flag_spec=
   9226       whole_archive_flag_spec=
   9227     fi
   9228   else
   9229     # PORTME fill in a description of your system's linker (not GNU ld)
   9230     case $host_os in
   9231     aix3*)
   9232       allow_undefined_flag=unsupported
   9233       always_export_symbols=yes
   9234       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'
   9235       # Note: this linker hardcodes the directories in LIBPATH if there
   9236       # are no directories specified by -L.
   9237       hardcode_minus_L=yes
   9238       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   9239 	# Neither direct hardcoding nor static linking is supported with a
   9240 	# broken collect2.
   9241 	hardcode_direct=unsupported
   9242       fi
   9243       ;;
   9244 
   9245     aix[4-9]*)
   9246       if test ia64 = "$host_cpu"; then
   9247 	# On IA64, the linker does run time linking by default, so we don't
   9248 	# have to do anything special.
   9249 	aix_use_runtimelinking=no
   9250 	exp_sym_flag='-Bexport'
   9251 	no_entry_flag=
   9252       else
   9253 	# If we're using GNU nm, then we don't want the "-C" option.
   9254 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   9255 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   9256 	# weak defined symbols like other global defined symbols, whereas
   9257 	# GNU nm marks them as "W".
   9258 	# While the 'weak' keyword is ignored in the Export File, we need
   9259 	# it in the Import File for the 'aix-soname' feature, so we have
   9260 	# to replace the "-B" option with "-P" for AIX nm.
   9261 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   9262 	  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'
   9263 	else
   9264 	  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'
   9265 	fi
   9266 	aix_use_runtimelinking=no
   9267 
   9268 	# Test if we are trying to use run time linking or normal
   9269 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   9270 	# have runtime linking enabled, and use it for executables.
   9271 	# For shared libraries, we enable/disable runtime linking
   9272 	# depending on the kind of the shared library created -
   9273 	# when "with_aix_soname,aix_use_runtimelinking" is:
   9274 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   9275 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   9276 	#            lib.a           static archive
   9277 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   9278 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   9279 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   9280 	#            lib.a(lib.so.V) shared, rtl:no
   9281 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   9282 	#            lib.a           static archive
   9283 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   9284 	  for ld_flag in $LDFLAGS; do
   9285 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   9286 	    aix_use_runtimelinking=yes
   9287 	    break
   9288 	  fi
   9289 	  done
   9290 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   9291 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   9292 	    # so we don't have lib.a shared libs to link our executables.
   9293 	    # We have to force runtime linking in this case.
   9294 	    aix_use_runtimelinking=yes
   9295 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   9296 	  fi
   9297 	  ;;
   9298 	esac
   9299 
   9300 	exp_sym_flag='-bexport'
   9301 	no_entry_flag='-bnoentry'
   9302       fi
   9303 
   9304       # When large executables or shared objects are built, AIX ld can
   9305       # have problems creating the table of contents.  If linking a library
   9306       # or program results in "error TOC overflow" add -mminimal-toc to
   9307       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   9308       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   9309 
   9310       archive_cmds=''
   9311       hardcode_direct=yes
   9312       hardcode_direct_absolute=yes
   9313       hardcode_libdir_separator=':'
   9314       link_all_deplibs=yes
   9315       file_list_spec='$wl-f,'
   9316       case $with_aix_soname,$aix_use_runtimelinking in
   9317       aix,*) ;; # traditional, no import file
   9318       svr4,* | *,yes) # use import file
   9319 	# The Import File defines what to hardcode.
   9320 	hardcode_direct=no
   9321 	hardcode_direct_absolute=no
   9322 	;;
   9323       esac
   9324 
   9325       if test yes = "$GCC"; then
   9326 	case $host_os in aix4.[012]|aix4.[012].*)
   9327 	# We only want to do this on AIX 4.2 and lower, the check
   9328 	# below for broken collect2 doesn't work under 4.3+
   9329 	  collect2name=`$CC -print-prog-name=collect2`
   9330 	  if test -f "$collect2name" &&
   9331 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   9332 	  then
   9333 	  # We have reworked collect2
   9334 	  :
   9335 	  else
   9336 	  # We have old collect2
   9337 	  hardcode_direct=unsupported
   9338 	  # It fails to find uninstalled libraries when the uninstalled
   9339 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   9340 	  # to unsupported forces relinking
   9341 	  hardcode_minus_L=yes
   9342 	  hardcode_libdir_flag_spec='-L$libdir'
   9343 	  hardcode_libdir_separator=
   9344 	  fi
   9345 	  ;;
   9346 	esac
   9347 	shared_flag='-shared'
   9348 	if test yes = "$aix_use_runtimelinking"; then
   9349 	  shared_flag="$shared_flag "'$wl-G'
   9350 	fi
   9351 	# Need to ensure runtime linking is disabled for the traditional
   9352 	# shared library, or the linker may eventually find shared libraries
   9353 	# /with/ Import File - we do not want to mix them.
   9354 	shared_flag_aix='-shared'
   9355 	shared_flag_svr4='-shared $wl-G'
   9356       else
   9357 	# not using gcc
   9358 	if test ia64 = "$host_cpu"; then
   9359 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   9360 	# chokes on -Wl,-G. The following line is correct:
   9361 	  shared_flag='-G'
   9362 	else
   9363 	  if test yes = "$aix_use_runtimelinking"; then
   9364 	    shared_flag='$wl-G'
   9365 	  else
   9366 	    shared_flag='$wl-bM:SRE'
   9367 	  fi
   9368 	  shared_flag_aix='$wl-bM:SRE'
   9369 	  shared_flag_svr4='$wl-G'
   9370 	fi
   9371       fi
   9372 
   9373       export_dynamic_flag_spec='$wl-bexpall'
   9374       # It seems that -bexpall does not export symbols beginning with
   9375       # underscore (_), so it is better to generate a list of symbols to export.
   9376       always_export_symbols=yes
   9377       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   9378 	# Warning - without using the other runtime loading flags (-brtl),
   9379 	# -berok will link without error, but may produce a broken library.
   9380 	allow_undefined_flag='-berok'
   9381         # Determine the default libpath from the value encoded in an
   9382         # empty executable.
   9383         if test set = "${lt_cv_aix_libpath+set}"; then
   9384   aix_libpath=$lt_cv_aix_libpath
   9385 else
   9386   if ${lt_cv_aix_libpath_+:} false; then :
   9387   $as_echo_n "(cached) " >&6
   9388 else
   9389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9390 /* end confdefs.h.  */
   9391 
   9392 int
   9393 main ()
   9394 {
   9395 
   9396   ;
   9397   return 0;
   9398 }
   9399 _ACEOF
   9400 if ac_fn_c_try_link "$LINENO"; then :
   9401 
   9402   lt_aix_libpath_sed='
   9403       /Import File Strings/,/^$/ {
   9404 	  /^0/ {
   9405 	      s/^0  *\([^ ]*\) *$/\1/
   9406 	      p
   9407 	  }
   9408       }'
   9409   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9410   # Check for a 64-bit object if we didn't find anything.
   9411   if test -z "$lt_cv_aix_libpath_"; then
   9412     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9413   fi
   9414 fi
   9415 rm -f core conftest.err conftest.$ac_objext \
   9416     conftest$ac_exeext conftest.$ac_ext
   9417   if test -z "$lt_cv_aix_libpath_"; then
   9418     lt_cv_aix_libpath_=/usr/lib:/lib
   9419   fi
   9420 
   9421 fi
   9422 
   9423   aix_libpath=$lt_cv_aix_libpath_
   9424 fi
   9425 
   9426         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9427         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
   9428       else
   9429 	if test ia64 = "$host_cpu"; then
   9430 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   9431 	  allow_undefined_flag="-z nodefs"
   9432 	  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"
   9433 	else
   9434 	 # Determine the default libpath from the value encoded in an
   9435 	 # empty executable.
   9436 	 if test set = "${lt_cv_aix_libpath+set}"; then
   9437   aix_libpath=$lt_cv_aix_libpath
   9438 else
   9439   if ${lt_cv_aix_libpath_+:} false; then :
   9440   $as_echo_n "(cached) " >&6
   9441 else
   9442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9443 /* end confdefs.h.  */
   9444 
   9445 int
   9446 main ()
   9447 {
   9448 
   9449   ;
   9450   return 0;
   9451 }
   9452 _ACEOF
   9453 if ac_fn_c_try_link "$LINENO"; then :
   9454 
   9455   lt_aix_libpath_sed='
   9456       /Import File Strings/,/^$/ {
   9457 	  /^0/ {
   9458 	      s/^0  *\([^ ]*\) *$/\1/
   9459 	      p
   9460 	  }
   9461       }'
   9462   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9463   # Check for a 64-bit object if we didn't find anything.
   9464   if test -z "$lt_cv_aix_libpath_"; then
   9465     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9466   fi
   9467 fi
   9468 rm -f core conftest.err conftest.$ac_objext \
   9469     conftest$ac_exeext conftest.$ac_ext
   9470   if test -z "$lt_cv_aix_libpath_"; then
   9471     lt_cv_aix_libpath_=/usr/lib:/lib
   9472   fi
   9473 
   9474 fi
   9475 
   9476   aix_libpath=$lt_cv_aix_libpath_
   9477 fi
   9478 
   9479 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9480 	  # Warning - without using the other run time loading flags,
   9481 	  # -berok will link without error, but may produce a broken library.
   9482 	  no_undefined_flag=' $wl-bernotok'
   9483 	  allow_undefined_flag=' $wl-berok'
   9484 	  if test yes = "$with_gnu_ld"; then
   9485 	    # We only use this code for GNU lds that support --whole-archive.
   9486 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   9487 	  else
   9488 	    # Exported symbols can be pulled into shared objects from archives
   9489 	    whole_archive_flag_spec='$convenience'
   9490 	  fi
   9491 	  archive_cmds_need_lc=yes
   9492 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   9493 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   9494 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   9495 	  if test svr4 != "$with_aix_soname"; then
   9496 	    # This is similar to how AIX traditionally builds its shared libraries.
   9497 	    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'
   9498 	  fi
   9499 	  if test aix != "$with_aix_soname"; then
   9500 	    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'
   9501 	  else
   9502 	    # used by -dlpreopen to get the symbols
   9503 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   9504 	  fi
   9505 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   9506 	fi
   9507       fi
   9508       ;;
   9509 
   9510     amigaos*)
   9511       case $host_cpu in
   9512       powerpc)
   9513             # see comment about AmigaOS4 .so support
   9514             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9515             archive_expsym_cmds=''
   9516         ;;
   9517       m68k)
   9518             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)'
   9519             hardcode_libdir_flag_spec='-L$libdir'
   9520             hardcode_minus_L=yes
   9521         ;;
   9522       esac
   9523       ;;
   9524 
   9525     bsdi[45]*)
   9526       export_dynamic_flag_spec=-rdynamic
   9527       ;;
   9528 
   9529     cygwin* | mingw* | pw32* | cegcc*)
   9530       # When not using gcc, we currently assume that we are using
   9531       # Microsoft Visual C++.
   9532       # hardcode_libdir_flag_spec is actually meaningless, as there is
   9533       # no search path for DLLs.
   9534       case $cc_basename in
   9535       cl*)
   9536 	# Native MSVC
   9537 	hardcode_libdir_flag_spec=' '
   9538 	allow_undefined_flag=unsupported
   9539 	always_export_symbols=yes
   9540 	file_list_spec='@'
   9541 	# Tell ltmain to make .lib files, not .a files.
   9542 	libext=lib
   9543 	# Tell ltmain to make .dll files, not .so files.
   9544 	shrext_cmds=.dll
   9545 	# FIXME: Setting linknames here is a bad hack.
   9546 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   9547 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   9548             cp "$export_symbols" "$output_objdir/$soname.def";
   9549             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   9550           else
   9551             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   9552           fi~
   9553           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   9554           linknames='
   9555 	# The linker will not automatically build a static lib if we build a DLL.
   9556 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   9557 	enable_shared_with_static_runtimes=yes
   9558 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   9559 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   9560 	# Don't use ranlib
   9561 	old_postinstall_cmds='chmod 644 $oldlib'
   9562 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   9563           lt_tool_outputfile="@TOOL_OUTPUT@"~
   9564           case $lt_outputfile in
   9565             *.exe|*.EXE) ;;
   9566             *)
   9567               lt_outputfile=$lt_outputfile.exe
   9568               lt_tool_outputfile=$lt_tool_outputfile.exe
   9569               ;;
   9570           esac~
   9571           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   9572             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   9573             $RM "$lt_outputfile.manifest";
   9574           fi'
   9575 	;;
   9576       *)
   9577 	# Assume MSVC wrapper
   9578 	hardcode_libdir_flag_spec=' '
   9579 	allow_undefined_flag=unsupported
   9580 	# Tell ltmain to make .lib files, not .a files.
   9581 	libext=lib
   9582 	# Tell ltmain to make .dll files, not .so files.
   9583 	shrext_cmds=.dll
   9584 	# FIXME: Setting linknames here is a bad hack.
   9585 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   9586 	# The linker will automatically build a .lib file if we build a DLL.
   9587 	old_archive_from_new_cmds='true'
   9588 	# FIXME: Should let the user specify the lib program.
   9589 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   9590 	enable_shared_with_static_runtimes=yes
   9591 	;;
   9592       esac
   9593       ;;
   9594 
   9595     darwin* | rhapsody*)
   9596 
   9597 
   9598   archive_cmds_need_lc=no
   9599   hardcode_direct=no
   9600   hardcode_automatic=yes
   9601   hardcode_shlibpath_var=unsupported
   9602   if test yes = "$lt_cv_ld_force_load"; then
   9603     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\"`'
   9604 
   9605   else
   9606     whole_archive_flag_spec=''
   9607   fi
   9608   link_all_deplibs=yes
   9609   allow_undefined_flag=$_lt_dar_allow_undefined
   9610   case $cc_basename in
   9611      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   9612      *) _lt_dar_can_shared=$GCC ;;
   9613   esac
   9614   if test yes = "$_lt_dar_can_shared"; then
   9615     output_verbose_link_cmd=func_echo_all
   9616     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
   9617     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   9618     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"
   9619     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"
   9620 
   9621   else
   9622   ld_shlibs=no
   9623   fi
   9624 
   9625       ;;
   9626 
   9627     dgux*)
   9628       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9629       hardcode_libdir_flag_spec='-L$libdir'
   9630       hardcode_shlibpath_var=no
   9631       ;;
   9632 
   9633     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   9634     # support.  Future versions do this automatically, but an explicit c++rt0.o
   9635     # does not break anything, and helps significantly (at the cost of a little
   9636     # extra space).
   9637     freebsd2.2*)
   9638       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   9639       hardcode_libdir_flag_spec='-R$libdir'
   9640       hardcode_direct=yes
   9641       hardcode_shlibpath_var=no
   9642       ;;
   9643 
   9644     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   9645     freebsd2.*)
   9646       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9647       hardcode_direct=yes
   9648       hardcode_minus_L=yes
   9649       hardcode_shlibpath_var=no
   9650       ;;
   9651 
   9652     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   9653     freebsd* | dragonfly*)
   9654       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9655       hardcode_libdir_flag_spec='-R$libdir'
   9656       hardcode_direct=yes
   9657       hardcode_shlibpath_var=no
   9658       ;;
   9659 
   9660     hpux9*)
   9661       if test yes = "$GCC"; then
   9662 	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'
   9663       else
   9664 	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'
   9665       fi
   9666       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9667       hardcode_libdir_separator=:
   9668       hardcode_direct=yes
   9669 
   9670       # hardcode_minus_L: Not really in the search PATH,
   9671       # but as the default location of the library.
   9672       hardcode_minus_L=yes
   9673       export_dynamic_flag_spec='$wl-E'
   9674       ;;
   9675 
   9676     hpux10*)
   9677       if test yes,no = "$GCC,$with_gnu_ld"; then
   9678 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9679       else
   9680 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9681       fi
   9682       if test no = "$with_gnu_ld"; then
   9683 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9684 	hardcode_libdir_separator=:
   9685 	hardcode_direct=yes
   9686 	hardcode_direct_absolute=yes
   9687 	export_dynamic_flag_spec='$wl-E'
   9688 	# hardcode_minus_L: Not really in the search PATH,
   9689 	# but as the default location of the library.
   9690 	hardcode_minus_L=yes
   9691       fi
   9692       ;;
   9693 
   9694     hpux11*)
   9695       if test yes,no = "$GCC,$with_gnu_ld"; then
   9696 	case $host_cpu in
   9697 	hppa*64*)
   9698 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9699 	  ;;
   9700 	ia64*)
   9701 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9702 	  ;;
   9703 	*)
   9704 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9705 	  ;;
   9706 	esac
   9707       else
   9708 	case $host_cpu in
   9709 	hppa*64*)
   9710 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9711 	  ;;
   9712 	ia64*)
   9713 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9714 	  ;;
   9715 	*)
   9716 
   9717 	  # Older versions of the 11.00 compiler do not understand -b yet
   9718 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   9719 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   9720 $as_echo_n "checking if $CC understands -b... " >&6; }
   9721 if ${lt_cv_prog_compiler__b+:} false; then :
   9722   $as_echo_n "(cached) " >&6
   9723 else
   9724   lt_cv_prog_compiler__b=no
   9725    save_LDFLAGS=$LDFLAGS
   9726    LDFLAGS="$LDFLAGS -b"
   9727    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   9728    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   9729      # The linker can only warn and ignore the option if not recognized
   9730      # So say no if there are warnings
   9731      if test -s conftest.err; then
   9732        # Append any errors to the config.log.
   9733        cat conftest.err 1>&5
   9734        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   9735        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9736        if diff conftest.exp conftest.er2 >/dev/null; then
   9737          lt_cv_prog_compiler__b=yes
   9738        fi
   9739      else
   9740        lt_cv_prog_compiler__b=yes
   9741      fi
   9742    fi
   9743    $RM -r conftest*
   9744    LDFLAGS=$save_LDFLAGS
   9745 
   9746 fi
   9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   9748 $as_echo "$lt_cv_prog_compiler__b" >&6; }
   9749 
   9750 if test yes = "$lt_cv_prog_compiler__b"; then
   9751     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9752 else
   9753     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9754 fi
   9755 
   9756 	  ;;
   9757 	esac
   9758       fi
   9759       if test no = "$with_gnu_ld"; then
   9760 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9761 	hardcode_libdir_separator=:
   9762 
   9763 	case $host_cpu in
   9764 	hppa*64*|ia64*)
   9765 	  hardcode_direct=no
   9766 	  hardcode_shlibpath_var=no
   9767 	  ;;
   9768 	*)
   9769 	  hardcode_direct=yes
   9770 	  hardcode_direct_absolute=yes
   9771 	  export_dynamic_flag_spec='$wl-E'
   9772 
   9773 	  # hardcode_minus_L: Not really in the search PATH,
   9774 	  # but as the default location of the library.
   9775 	  hardcode_minus_L=yes
   9776 	  ;;
   9777 	esac
   9778       fi
   9779       ;;
   9780 
   9781     irix5* | irix6* | nonstopux*)
   9782       if test yes = "$GCC"; then
   9783 	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'
   9784 	# Try to use the -exported_symbol ld option, if it does not
   9785 	# work, assume that -exports_file does not work either and
   9786 	# implicitly export all symbols.
   9787 	# This should be the same for all languages, so no per-tag cache variable.
   9788 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   9789 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   9790 if ${lt_cv_irix_exported_symbol+:} false; then :
   9791   $as_echo_n "(cached) " >&6
   9792 else
   9793   save_LDFLAGS=$LDFLAGS
   9794 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   9795 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9796 /* end confdefs.h.  */
   9797 int foo (void) { return 0; }
   9798 _ACEOF
   9799 if ac_fn_c_try_link "$LINENO"; then :
   9800   lt_cv_irix_exported_symbol=yes
   9801 else
   9802   lt_cv_irix_exported_symbol=no
   9803 fi
   9804 rm -f core conftest.err conftest.$ac_objext \
   9805     conftest$ac_exeext conftest.$ac_ext
   9806            LDFLAGS=$save_LDFLAGS
   9807 fi
   9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   9809 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
   9810 	if test yes = "$lt_cv_irix_exported_symbol"; then
   9811           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'
   9812 	fi
   9813       else
   9814 	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'
   9815 	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'
   9816       fi
   9817       archive_cmds_need_lc='no'
   9818       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9819       hardcode_libdir_separator=:
   9820       inherit_rpath=yes
   9821       link_all_deplibs=yes
   9822       ;;
   9823 
   9824     linux*)
   9825       case $cc_basename in
   9826       tcc*)
   9827 	# Fabrice Bellard et al's Tiny C Compiler
   9828 	ld_shlibs=yes
   9829 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9830 	;;
   9831       esac
   9832       ;;
   9833 
   9834     netbsd*)
   9835       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9836 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   9837       else
   9838 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   9839       fi
   9840       hardcode_libdir_flag_spec='-R$libdir'
   9841       hardcode_direct=yes
   9842       hardcode_shlibpath_var=no
   9843       ;;
   9844 
   9845     newsos6)
   9846       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9847       hardcode_direct=yes
   9848       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9849       hardcode_libdir_separator=:
   9850       hardcode_shlibpath_var=no
   9851       ;;
   9852 
   9853     *nto* | *qnx*)
   9854       ;;
   9855 
   9856     openbsd* | bitrig*)
   9857       if test -f /usr/libexec/ld.so; then
   9858 	hardcode_direct=yes
   9859 	hardcode_shlibpath_var=no
   9860 	hardcode_direct_absolute=yes
   9861 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   9862 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9863 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   9864 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9865 	  export_dynamic_flag_spec='$wl-E'
   9866 	else
   9867 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9868 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9869 	fi
   9870       else
   9871 	ld_shlibs=no
   9872       fi
   9873       ;;
   9874 
   9875     os2*)
   9876       hardcode_libdir_flag_spec='-L$libdir'
   9877       hardcode_minus_L=yes
   9878       allow_undefined_flag=unsupported
   9879       shrext_cmds=.dll
   9880       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9881 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9882 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9883 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9884 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9885 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9886 	emximp -o $lib $output_objdir/$libname.def'
   9887       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9888 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9889 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9890 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9891 	prefix_cmds="$SED"~
   9892 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9893 	  prefix_cmds="$prefix_cmds -e 1d";
   9894 	fi~
   9895 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9896 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9897 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9898 	emximp -o $lib $output_objdir/$libname.def'
   9899       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9900       enable_shared_with_static_runtimes=yes
   9901       ;;
   9902 
   9903     osf3*)
   9904       if test yes = "$GCC"; then
   9905 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9906 	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'
   9907       else
   9908 	allow_undefined_flag=' -expect_unresolved \*'
   9909 	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'
   9910       fi
   9911       archive_cmds_need_lc='no'
   9912       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9913       hardcode_libdir_separator=:
   9914       ;;
   9915 
   9916     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   9917       if test yes = "$GCC"; then
   9918 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9919 	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'
   9920 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9921       else
   9922 	allow_undefined_flag=' -expect_unresolved \*'
   9923 	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'
   9924 	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~
   9925           $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'
   9926 
   9927 	# Both c and cxx compiler support -rpath directly
   9928 	hardcode_libdir_flag_spec='-rpath $libdir'
   9929       fi
   9930       archive_cmds_need_lc='no'
   9931       hardcode_libdir_separator=:
   9932       ;;
   9933 
   9934     solaris*)
   9935       no_undefined_flag=' -z defs'
   9936       if test yes = "$GCC"; then
   9937 	wlarc='$wl'
   9938 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9939 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9940           $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'
   9941       else
   9942 	case `$CC -V 2>&1` in
   9943 	*"Compilers 5.0"*)
   9944 	  wlarc=''
   9945 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9946 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9947             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   9948 	  ;;
   9949 	*)
   9950 	  wlarc='$wl'
   9951 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9952 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9953             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   9954 	  ;;
   9955 	esac
   9956       fi
   9957       hardcode_libdir_flag_spec='-R$libdir'
   9958       hardcode_shlibpath_var=no
   9959       case $host_os in
   9960       solaris2.[0-5] | solaris2.[0-5].*) ;;
   9961       *)
   9962 	# The compiler driver will combine and reorder linker options,
   9963 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   9964 	# but is careful enough not to reorder.
   9965 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   9966 	if test yes = "$GCC"; then
   9967 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   9968 	else
   9969 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   9970 	fi
   9971 	;;
   9972       esac
   9973       link_all_deplibs=yes
   9974       ;;
   9975 
   9976     sunos4*)
   9977       if test sequent = "$host_vendor"; then
   9978 	# Use $CC to link under sequent, because it throws in some extra .o
   9979 	# files that make .init and .fini sections work.
   9980 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9981       else
   9982 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   9983       fi
   9984       hardcode_libdir_flag_spec='-L$libdir'
   9985       hardcode_direct=yes
   9986       hardcode_minus_L=yes
   9987       hardcode_shlibpath_var=no
   9988       ;;
   9989 
   9990     sysv4)
   9991       case $host_vendor in
   9992 	sni)
   9993 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9994 	  hardcode_direct=yes # is this really true???
   9995 	;;
   9996 	siemens)
   9997 	  ## LD is ld it makes a PLAMLIB
   9998 	  ## CC just makes a GrossModule.
   9999 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   10000 	  reload_cmds='$CC -r -o $output$reload_objs'
   10001 	  hardcode_direct=no
   10002         ;;
   10003 	motorola)
   10004 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10005 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   10006 	;;
   10007       esac
   10008       runpath_var='LD_RUN_PATH'
   10009       hardcode_shlibpath_var=no
   10010       ;;
   10011 
   10012     sysv4.3*)
   10013       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10014       hardcode_shlibpath_var=no
   10015       export_dynamic_flag_spec='-Bexport'
   10016       ;;
   10017 
   10018     sysv4*MP*)
   10019       if test -d /usr/nec; then
   10020 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10021 	hardcode_shlibpath_var=no
   10022 	runpath_var=LD_RUN_PATH
   10023 	hardcode_runpath_var=yes
   10024 	ld_shlibs=yes
   10025       fi
   10026       ;;
   10027 
   10028     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   10029       no_undefined_flag='$wl-z,text'
   10030       archive_cmds_need_lc=no
   10031       hardcode_shlibpath_var=no
   10032       runpath_var='LD_RUN_PATH'
   10033 
   10034       if test yes = "$GCC"; then
   10035 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10036 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10037       else
   10038 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10039 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10040       fi
   10041       ;;
   10042 
   10043     sysv5* | sco3.2v5* | sco5v6*)
   10044       # Note: We CANNOT use -z defs as we might desire, because we do not
   10045       # link with -lc, and that would cause any symbols used from libc to
   10046       # always be unresolved, which means just about no library would
   10047       # ever link correctly.  If we're not using GNU ld we use -z text
   10048       # though, which does catch some bad symbols but isn't as heavy-handed
   10049       # as -z defs.
   10050       no_undefined_flag='$wl-z,text'
   10051       allow_undefined_flag='$wl-z,nodefs'
   10052       archive_cmds_need_lc=no
   10053       hardcode_shlibpath_var=no
   10054       hardcode_libdir_flag_spec='$wl-R,$libdir'
   10055       hardcode_libdir_separator=':'
   10056       link_all_deplibs=yes
   10057       export_dynamic_flag_spec='$wl-Bexport'
   10058       runpath_var='LD_RUN_PATH'
   10059 
   10060       if test yes = "$GCC"; then
   10061 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10062 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10063       else
   10064 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10065 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10066       fi
   10067       ;;
   10068 
   10069     uts4*)
   10070       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10071       hardcode_libdir_flag_spec='-L$libdir'
   10072       hardcode_shlibpath_var=no
   10073       ;;
   10074 
   10075     *)
   10076       ld_shlibs=no
   10077       ;;
   10078     esac
   10079 
   10080     if test sni = "$host_vendor"; then
   10081       case $host in
   10082       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   10083 	export_dynamic_flag_spec='$wl-Blargedynsym'
   10084 	;;
   10085       esac
   10086     fi
   10087   fi
   10088 
   10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   10090 $as_echo "$ld_shlibs" >&6; }
   10091 test no = "$ld_shlibs" && can_build_shared=no
   10092 
   10093 with_gnu_ld=$with_gnu_ld
   10094 
   10095 
   10096 
   10097 
   10098 
   10099 
   10100 
   10101 
   10102 
   10103 
   10104 
   10105 
   10106 
   10107 
   10108 
   10109 #
   10110 # Do we need to explicitly link libc?
   10111 #
   10112 case "x$archive_cmds_need_lc" in
   10113 x|xyes)
   10114   # Assume -lc should be added
   10115   archive_cmds_need_lc=yes
   10116 
   10117   if test yes,yes = "$GCC,$enable_shared"; then
   10118     case $archive_cmds in
   10119     *'~'*)
   10120       # FIXME: we may have to deal with multi-command sequences.
   10121       ;;
   10122     '$CC '*)
   10123       # Test whether the compiler implicitly links with -lc since on some
   10124       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   10125       # to ld, don't add -lc before -lgcc.
   10126       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   10127 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   10128 if ${lt_cv_archive_cmds_need_lc+:} false; then :
   10129   $as_echo_n "(cached) " >&6
   10130 else
   10131   $RM conftest*
   10132 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   10133 
   10134 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   10135   (eval $ac_compile) 2>&5
   10136   ac_status=$?
   10137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10138   test $ac_status = 0; } 2>conftest.err; then
   10139 	  soname=conftest
   10140 	  lib=conftest
   10141 	  libobjs=conftest.$ac_objext
   10142 	  deplibs=
   10143 	  wl=$lt_prog_compiler_wl
   10144 	  pic_flag=$lt_prog_compiler_pic
   10145 	  compiler_flags=-v
   10146 	  linker_flags=-v
   10147 	  verstring=
   10148 	  output_objdir=.
   10149 	  libname=conftest
   10150 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   10151 	  allow_undefined_flag=
   10152 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   10153   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   10154   ac_status=$?
   10155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10156   test $ac_status = 0; }
   10157 	  then
   10158 	    lt_cv_archive_cmds_need_lc=no
   10159 	  else
   10160 	    lt_cv_archive_cmds_need_lc=yes
   10161 	  fi
   10162 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   10163 	else
   10164 	  cat conftest.err 1>&5
   10165 	fi
   10166 	$RM conftest*
   10167 
   10168 fi
   10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   10170 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   10171       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   10172       ;;
   10173     esac
   10174   fi
   10175   ;;
   10176 esac
   10177 
   10178 
   10179 
   10180 
   10181 
   10182 
   10183 
   10184 
   10185 
   10186 
   10187 
   10188 
   10189 
   10190 
   10191 
   10192 
   10193 
   10194 
   10195 
   10196 
   10197 
   10198 
   10199 
   10200 
   10201 
   10202 
   10203 
   10204 
   10205 
   10206 
   10207 
   10208 
   10209 
   10210 
   10211 
   10212 
   10213 
   10214 
   10215 
   10216 
   10217 
   10218 
   10219 
   10220 
   10221 
   10222 
   10223 
   10224 
   10225 
   10226 
   10227 
   10228 
   10229 
   10230 
   10231 
   10232 
   10233 
   10234 
   10235 
   10236 
   10237 
   10238 
   10239 
   10240 
   10241 
   10242 
   10243 
   10244 
   10245 
   10246 
   10247 
   10248 
   10249 
   10250 
   10251 
   10252 
   10253 
   10254 
   10255 
   10256 
   10257 
   10258 
   10259 
   10260 
   10261 
   10262 
   10263 
   10264 
   10265 
   10266 
   10267 
   10268 
   10269 
   10270 
   10271 
   10272 
   10273 
   10274 
   10275 
   10276 
   10277 
   10278 
   10279 
   10280 
   10281 
   10282 
   10283 
   10284 
   10285 
   10286 
   10287 
   10288 
   10289 
   10290 
   10291 
   10292 
   10293 
   10294 
   10295 
   10296 
   10297 
   10298 
   10299 
   10300 
   10301 
   10302 
   10303 
   10304 
   10305 
   10306 
   10307 
   10308 
   10309 
   10310 
   10311 
   10312 
   10313 
   10314 
   10315 
   10316 
   10317 
   10318 
   10319 
   10320 
   10321 
   10322 
   10323 
   10324 
   10325 
   10326 
   10327 
   10328 
   10329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   10330 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   10331 
   10332 if test yes = "$GCC"; then
   10333   case $host_os in
   10334     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   10335     *) lt_awk_arg='/^libraries:/' ;;
   10336   esac
   10337   case $host_os in
   10338     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   10339     *) lt_sed_strip_eq='s|=/|/|g' ;;
   10340   esac
   10341   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   10342   case $lt_search_path_spec in
   10343   *\;*)
   10344     # if the path contains ";" then we assume it to be the separator
   10345     # otherwise default to the standard path separator (i.e. ":") - it is
   10346     # assumed that no part of a normal pathname contains ";" but that should
   10347     # okay in the real world where ";" in dirpaths is itself problematic.
   10348     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   10349     ;;
   10350   *)
   10351     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   10352     ;;
   10353   esac
   10354   # Ok, now we have the path, separated by spaces, we can step through it
   10355   # and add multilib dir if necessary...
   10356   lt_tmp_lt_search_path_spec=
   10357   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   10358   # ...but if some path component already ends with the multilib dir we assume
   10359   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   10360   case "$lt_multi_os_dir; $lt_search_path_spec " in
   10361   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   10362     lt_multi_os_dir=
   10363     ;;
   10364   esac
   10365   for lt_sys_path in $lt_search_path_spec; do
   10366     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   10367       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   10368     elif test -n "$lt_multi_os_dir"; then
   10369       test -d "$lt_sys_path" && \
   10370 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   10371     fi
   10372   done
   10373   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   10374 BEGIN {RS = " "; FS = "/|\n";} {
   10375   lt_foo = "";
   10376   lt_count = 0;
   10377   for (lt_i = NF; lt_i > 0; lt_i--) {
   10378     if ($lt_i != "" && $lt_i != ".") {
   10379       if ($lt_i == "..") {
   10380         lt_count++;
   10381       } else {
   10382         if (lt_count == 0) {
   10383           lt_foo = "/" $lt_i lt_foo;
   10384         } else {
   10385           lt_count--;
   10386         }
   10387       }
   10388     }
   10389   }
   10390   if (lt_foo != "") { lt_freq[lt_foo]++; }
   10391   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   10392 }'`
   10393   # AWK program above erroneously prepends '/' to C:/dos/paths
   10394   # for these hosts.
   10395   case $host_os in
   10396     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   10397       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   10398   esac
   10399   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   10400 else
   10401   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10402 fi
   10403 library_names_spec=
   10404 libname_spec='lib$name'
   10405 soname_spec=
   10406 shrext_cmds=.so
   10407 postinstall_cmds=
   10408 postuninstall_cmds=
   10409 finish_cmds=
   10410 finish_eval=
   10411 shlibpath_var=
   10412 shlibpath_overrides_runpath=unknown
   10413 version_type=none
   10414 dynamic_linker="$host_os ld.so"
   10415 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   10416 need_lib_prefix=unknown
   10417 hardcode_into_libs=no
   10418 
   10419 # when you set need_version to no, make sure it does not cause -set_version
   10420 # flags to be left without arguments
   10421 need_version=unknown
   10422 
   10423 
   10424 
   10425 case $host_os in
   10426 aix3*)
   10427   version_type=linux # correct to gnu/linux during the next big refactor
   10428   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   10429   shlibpath_var=LIBPATH
   10430 
   10431   # AIX 3 has no versioning support, so we append a major version to the name.
   10432   soname_spec='$libname$release$shared_ext$major'
   10433   ;;
   10434 
   10435 aix[4-9]*)
   10436   version_type=linux # correct to gnu/linux during the next big refactor
   10437   need_lib_prefix=no
   10438   need_version=no
   10439   hardcode_into_libs=yes
   10440   if test ia64 = "$host_cpu"; then
   10441     # AIX 5 supports IA64
   10442     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   10443     shlibpath_var=LD_LIBRARY_PATH
   10444   else
   10445     # With GCC up to 2.95.x, collect2 would create an import file
   10446     # for dependence libraries.  The import file would start with
   10447     # the line '#! .'.  This would cause the generated library to
   10448     # depend on '.', always an invalid library.  This was fixed in
   10449     # development snapshots of GCC prior to 3.0.
   10450     case $host_os in
   10451       aix4 | aix4.[01] | aix4.[01].*)
   10452       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   10453 	   echo ' yes '
   10454 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   10455 	:
   10456       else
   10457 	can_build_shared=no
   10458       fi
   10459       ;;
   10460     esac
   10461     # Using Import Files as archive members, it is possible to support
   10462     # filename-based versioning of shared library archives on AIX. While
   10463     # this would work for both with and without runtime linking, it will
   10464     # prevent static linking of such archives. So we do filename-based
   10465     # shared library versioning with .so extension only, which is used
   10466     # when both runtime linking and shared linking is enabled.
   10467     # Unfortunately, runtime linking may impact performance, so we do
   10468     # not want this to be the default eventually. Also, we use the
   10469     # versioned .so libs for executables only if there is the -brtl
   10470     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
   10471     # To allow for filename-based versioning support, we need to create
   10472     # libNAME.so.V as an archive file, containing:
   10473     # *) an Import File, referring to the versioned filename of the
   10474     #    archive as well as the shared archive member, telling the
   10475     #    bitwidth (32 or 64) of that shared object, and providing the
   10476     #    list of exported symbols of that shared object, eventually
   10477     #    decorated with the 'weak' keyword
   10478     # *) the shared object with the F_LOADONLY flag set, to really avoid
   10479     #    it being seen by the linker.
   10480     # At run time we better use the real file rather than another symlink,
   10481     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   10482 
   10483     case $with_aix_soname,$aix_use_runtimelinking in
   10484     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   10485     # soname into executable. Probably we can add versioning support to
   10486     # collect2, so additional links can be useful in future.
   10487     aix,yes) # traditional libtool
   10488       dynamic_linker='AIX unversionable lib.so'
   10489       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   10490       # instead of lib<name>.a to let people know that these are not
   10491       # typical AIX shared libraries.
   10492       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10493       ;;
   10494     aix,no) # traditional AIX only
   10495       dynamic_linker='AIX lib.a(lib.so.V)'
   10496       # We preserve .a as extension for shared libraries through AIX4.2
   10497       # and later when we are not doing run time linking.
   10498       library_names_spec='$libname$release.a $libname.a'
   10499       soname_spec='$libname$release$shared_ext$major'
   10500       ;;
   10501     svr4,*) # full svr4 only
   10502       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   10503       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10504       # We do not specify a path in Import Files, so LIBPATH fires.
   10505       shlibpath_overrides_runpath=yes
   10506       ;;
   10507     *,yes) # both, prefer svr4
   10508       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   10509       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10510       # unpreferred sharedlib libNAME.a needs extra handling
   10511       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"'
   10512       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"'
   10513       # We do not specify a path in Import Files, so LIBPATH fires.
   10514       shlibpath_overrides_runpath=yes
   10515       ;;
   10516     *,no) # both, prefer aix
   10517       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   10518       library_names_spec='$libname$release.a $libname.a'
   10519       soname_spec='$libname$release$shared_ext$major'
   10520       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   10521       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)'
   10522       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"'
   10523       ;;
   10524     esac
   10525     shlibpath_var=LIBPATH
   10526   fi
   10527   ;;
   10528 
   10529 amigaos*)
   10530   case $host_cpu in
   10531   powerpc)
   10532     # Since July 2007 AmigaOS4 officially supports .so libraries.
   10533     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   10534     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10535     ;;
   10536   m68k)
   10537     library_names_spec='$libname.ixlibrary $libname.a'
   10538     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   10539     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'
   10540     ;;
   10541   esac
   10542   ;;
   10543 
   10544 beos*)
   10545   library_names_spec='$libname$shared_ext'
   10546   dynamic_linker="$host_os ld.so"
   10547   shlibpath_var=LIBRARY_PATH
   10548   ;;
   10549 
   10550 bsdi[45]*)
   10551   version_type=linux # correct to gnu/linux during the next big refactor
   10552   need_version=no
   10553   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10554   soname_spec='$libname$release$shared_ext$major'
   10555   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   10556   shlibpath_var=LD_LIBRARY_PATH
   10557   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   10558   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   10559   # the default ld.so.conf also contains /usr/contrib/lib and
   10560   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   10561   # libtool to hard-code these into programs
   10562   ;;
   10563 
   10564 cygwin* | mingw* | pw32* | cegcc*)
   10565   version_type=windows
   10566   shrext_cmds=.dll
   10567   need_version=no
   10568   need_lib_prefix=no
   10569 
   10570   case $GCC,$cc_basename in
   10571   yes,*)
   10572     # gcc
   10573     library_names_spec='$libname.dll.a'
   10574     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10575     postinstall_cmds='base_file=`basename \$file`~
   10576       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10577       dldir=$destdir/`dirname \$dlpath`~
   10578       test -d \$dldir || mkdir -p \$dldir~
   10579       $install_prog $dir/$dlname \$dldir/$dlname~
   10580       chmod a+x \$dldir/$dlname~
   10581       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10582         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10583       fi'
   10584     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10585       dlpath=$dir/\$dldll~
   10586        $RM \$dlpath'
   10587     shlibpath_overrides_runpath=yes
   10588 
   10589     case $host_os in
   10590     cygwin*)
   10591       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   10592       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10593 
   10594       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   10595       ;;
   10596     mingw* | cegcc*)
   10597       # MinGW DLLs use traditional 'lib' prefix
   10598       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10599       ;;
   10600     pw32*)
   10601       # pw32 DLLs use 'pw' prefix rather than 'lib'
   10602       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10603       ;;
   10604     esac
   10605     dynamic_linker='Win32 ld.exe'
   10606     ;;
   10607 
   10608   *,cl*)
   10609     # Native MSVC
   10610     libname_spec='$name'
   10611     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10612     library_names_spec='$libname.dll.lib'
   10613 
   10614     case $build_os in
   10615     mingw*)
   10616       sys_lib_search_path_spec=
   10617       lt_save_ifs=$IFS
   10618       IFS=';'
   10619       for lt_path in $LIB
   10620       do
   10621         IFS=$lt_save_ifs
   10622         # Let DOS variable expansion print the short 8.3 style file name.
   10623         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   10624         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   10625       done
   10626       IFS=$lt_save_ifs
   10627       # Convert to MSYS style.
   10628       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   10629       ;;
   10630     cygwin*)
   10631       # Convert to unix form, then to dos form, then back to unix form
   10632       # but this time dos style (no spaces!) so that the unix form looks
   10633       # like /cygdrive/c/PROGRA~1:/cygdr...
   10634       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   10635       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   10636       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10637       ;;
   10638     *)
   10639       sys_lib_search_path_spec=$LIB
   10640       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   10641         # It is most probably a Windows format PATH.
   10642         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   10643       else
   10644         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10645       fi
   10646       # FIXME: find the short name or the path components, as spaces are
   10647       # common. (e.g. "Program Files" -> "PROGRA~1")
   10648       ;;
   10649     esac
   10650 
   10651     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10652     postinstall_cmds='base_file=`basename \$file`~
   10653       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10654       dldir=$destdir/`dirname \$dlpath`~
   10655       test -d \$dldir || mkdir -p \$dldir~
   10656       $install_prog $dir/$dlname \$dldir/$dlname'
   10657     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10658       dlpath=$dir/\$dldll~
   10659        $RM \$dlpath'
   10660     shlibpath_overrides_runpath=yes
   10661     dynamic_linker='Win32 link.exe'
   10662     ;;
   10663 
   10664   *)
   10665     # Assume MSVC wrapper
   10666     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   10667     dynamic_linker='Win32 ld.exe'
   10668     ;;
   10669   esac
   10670   # FIXME: first we should search . and the directory the executable is in
   10671   shlibpath_var=PATH
   10672   ;;
   10673 
   10674 darwin* | rhapsody*)
   10675   dynamic_linker="$host_os dyld"
   10676   version_type=darwin
   10677   need_lib_prefix=no
   10678   need_version=no
   10679   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   10680   soname_spec='$libname$release$major$shared_ext'
   10681   shlibpath_overrides_runpath=yes
   10682   shlibpath_var=DYLD_LIBRARY_PATH
   10683   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   10684 
   10685   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   10686   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   10687   ;;
   10688 
   10689 dgux*)
   10690   version_type=linux # correct to gnu/linux during the next big refactor
   10691   need_lib_prefix=no
   10692   need_version=no
   10693   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10694   soname_spec='$libname$release$shared_ext$major'
   10695   shlibpath_var=LD_LIBRARY_PATH
   10696   ;;
   10697 
   10698 freebsd* | dragonfly*)
   10699   # DragonFly does not have aout.  When/if they implement a new
   10700   # versioning mechanism, adjust this.
   10701   if test -x /usr/bin/objformat; then
   10702     objformat=`/usr/bin/objformat`
   10703   else
   10704     case $host_os in
   10705     freebsd[23].*) objformat=aout ;;
   10706     *) objformat=elf ;;
   10707     esac
   10708   fi
   10709   version_type=freebsd-$objformat
   10710   case $version_type in
   10711     freebsd-elf*)
   10712       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10713       soname_spec='$libname$release$shared_ext$major'
   10714       need_version=no
   10715       need_lib_prefix=no
   10716       ;;
   10717     freebsd-*)
   10718       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10719       need_version=yes
   10720       ;;
   10721   esac
   10722   shlibpath_var=LD_LIBRARY_PATH
   10723   case $host_os in
   10724   freebsd2.*)
   10725     shlibpath_overrides_runpath=yes
   10726     ;;
   10727   freebsd3.[01]* | freebsdelf3.[01]*)
   10728     shlibpath_overrides_runpath=yes
   10729     hardcode_into_libs=yes
   10730     ;;
   10731   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   10732   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   10733     shlibpath_overrides_runpath=no
   10734     hardcode_into_libs=yes
   10735     ;;
   10736   *) # from 4.6 on, and DragonFly
   10737     shlibpath_overrides_runpath=yes
   10738     hardcode_into_libs=yes
   10739     ;;
   10740   esac
   10741   ;;
   10742 
   10743 haiku*)
   10744   version_type=linux # correct to gnu/linux during the next big refactor
   10745   need_lib_prefix=no
   10746   need_version=no
   10747   dynamic_linker="$host_os runtime_loader"
   10748   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10749   soname_spec='$libname$release$shared_ext$major'
   10750   shlibpath_var=LIBRARY_PATH
   10751   shlibpath_overrides_runpath=no
   10752   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   10753   hardcode_into_libs=yes
   10754   ;;
   10755 
   10756 hpux9* | hpux10* | hpux11*)
   10757   # Give a soname corresponding to the major version so that dld.sl refuses to
   10758   # link against other versions.
   10759   version_type=sunos
   10760   need_lib_prefix=no
   10761   need_version=no
   10762   case $host_cpu in
   10763   ia64*)
   10764     shrext_cmds='.so'
   10765     hardcode_into_libs=yes
   10766     dynamic_linker="$host_os dld.so"
   10767     shlibpath_var=LD_LIBRARY_PATH
   10768     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10769     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10770     soname_spec='$libname$release$shared_ext$major'
   10771     if test 32 = "$HPUX_IA64_MODE"; then
   10772       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   10773       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   10774     else
   10775       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   10776       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   10777     fi
   10778     ;;
   10779   hppa*64*)
   10780     shrext_cmds='.sl'
   10781     hardcode_into_libs=yes
   10782     dynamic_linker="$host_os dld.sl"
   10783     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   10784     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10785     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10786     soname_spec='$libname$release$shared_ext$major'
   10787     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   10788     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10789     ;;
   10790   *)
   10791     shrext_cmds='.sl'
   10792     dynamic_linker="$host_os dld.sl"
   10793     shlibpath_var=SHLIB_PATH
   10794     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   10795     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10796     soname_spec='$libname$release$shared_ext$major'
   10797     ;;
   10798   esac
   10799   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   10800   postinstall_cmds='chmod 555 $lib'
   10801   # or fails outright, so override atomically:
   10802   install_override_mode=555
   10803   ;;
   10804 
   10805 interix[3-9]*)
   10806   version_type=linux # correct to gnu/linux during the next big refactor
   10807   need_lib_prefix=no
   10808   need_version=no
   10809   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10810   soname_spec='$libname$release$shared_ext$major'
   10811   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   10812   shlibpath_var=LD_LIBRARY_PATH
   10813   shlibpath_overrides_runpath=no
   10814   hardcode_into_libs=yes
   10815   ;;
   10816 
   10817 irix5* | irix6* | nonstopux*)
   10818   case $host_os in
   10819     nonstopux*) version_type=nonstopux ;;
   10820     *)
   10821 	if test yes = "$lt_cv_prog_gnu_ld"; then
   10822 		version_type=linux # correct to gnu/linux during the next big refactor
   10823 	else
   10824 		version_type=irix
   10825 	fi ;;
   10826   esac
   10827   need_lib_prefix=no
   10828   need_version=no
   10829   soname_spec='$libname$release$shared_ext$major'
   10830   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   10831   case $host_os in
   10832   irix5* | nonstopux*)
   10833     libsuff= shlibsuff=
   10834     ;;
   10835   *)
   10836     case $LD in # libtool.m4 will add one of these switches to LD
   10837     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   10838       libsuff= shlibsuff= libmagic=32-bit;;
   10839     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   10840       libsuff=32 shlibsuff=N32 libmagic=N32;;
   10841     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   10842       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   10843     *) libsuff= shlibsuff= libmagic=never-match;;
   10844     esac
   10845     ;;
   10846   esac
   10847   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   10848   shlibpath_overrides_runpath=no
   10849   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   10850   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   10851   hardcode_into_libs=yes
   10852   ;;
   10853 
   10854 # No shared lib support for Linux oldld, aout, or coff.
   10855 linux*oldld* | linux*aout* | linux*coff*)
   10856   dynamic_linker=no
   10857   ;;
   10858 
   10859 linux*android*)
   10860   version_type=none # Android doesn't support versioned libraries.
   10861   need_lib_prefix=no
   10862   need_version=no
   10863   library_names_spec='$libname$release$shared_ext'
   10864   soname_spec='$libname$release$shared_ext'
   10865   finish_cmds=
   10866   shlibpath_var=LD_LIBRARY_PATH
   10867   shlibpath_overrides_runpath=yes
   10868 
   10869   # This implies no fast_install, which is unacceptable.
   10870   # Some rework will be needed to allow for fast_install
   10871   # before this can be enabled.
   10872   hardcode_into_libs=yes
   10873 
   10874   dynamic_linker='Android linker'
   10875   # Don't embed -rpath directories since the linker doesn't support them.
   10876   hardcode_libdir_flag_spec='-L$libdir'
   10877   ;;
   10878 
   10879 # This must be glibc/ELF.
   10880 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   10881   version_type=linux # correct to gnu/linux during the next big refactor
   10882   need_lib_prefix=no
   10883   need_version=no
   10884   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10885   soname_spec='$libname$release$shared_ext$major'
   10886   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   10887   shlibpath_var=LD_LIBRARY_PATH
   10888   shlibpath_overrides_runpath=no
   10889 
   10890   # Some binutils ld are patched to set DT_RUNPATH
   10891   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   10892   $as_echo_n "(cached) " >&6
   10893 else
   10894   lt_cv_shlibpath_overrides_runpath=no
   10895     save_LDFLAGS=$LDFLAGS
   10896     save_libdir=$libdir
   10897     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   10898 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   10899     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10900 /* end confdefs.h.  */
   10901 
   10902 int
   10903 main ()
   10904 {
   10905 
   10906   ;
   10907   return 0;
   10908 }
   10909 _ACEOF
   10910 if ac_fn_c_try_link "$LINENO"; then :
   10911   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   10912   lt_cv_shlibpath_overrides_runpath=yes
   10913 fi
   10914 fi
   10915 rm -f core conftest.err conftest.$ac_objext \
   10916     conftest$ac_exeext conftest.$ac_ext
   10917     LDFLAGS=$save_LDFLAGS
   10918     libdir=$save_libdir
   10919 
   10920 fi
   10921 
   10922   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   10923 
   10924   # This implies no fast_install, which is unacceptable.
   10925   # Some rework will be needed to allow for fast_install
   10926   # before this can be enabled.
   10927   hardcode_into_libs=yes
   10928 
   10929   # Ideally, we could use ldconfig to report *all* directores which are
   10930   # searched for libraries, however this is still not possible.  Aside from not
   10931   # being certain /sbin/ldconfig is available, command
   10932   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   10933   # even though it is searched at run-time.  Try to do the best guess by
   10934   # appending ld.so.conf contents (and includes) to the search path.
   10935   if test -f /etc/ld.so.conf; then
   10936     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' ' '`
   10937     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   10938   fi
   10939 
   10940   # We used to test for /lib/ld.so.1 and disable shared libraries on
   10941   # powerpc, because MkLinux only supported shared libraries with the
   10942   # GNU dynamic linker.  Since this was broken with cross compilers,
   10943   # most powerpc-linux boxes support dynamic linking these days and
   10944   # people can always --disable-shared, the test was removed, and we
   10945   # assume the GNU/Linux dynamic linker is in use.
   10946   dynamic_linker='GNU/Linux ld.so'
   10947   ;;
   10948 
   10949 netbsd*)
   10950   version_type=sunos
   10951   need_lib_prefix=no
   10952   need_version=no
   10953   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   10954     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10955     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10956     dynamic_linker='NetBSD (a.out) ld.so'
   10957   else
   10958     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10959     soname_spec='$libname$release$shared_ext$major'
   10960     dynamic_linker='NetBSD ld.elf_so'
   10961   fi
   10962   shlibpath_var=LD_LIBRARY_PATH
   10963   shlibpath_overrides_runpath=yes
   10964   hardcode_into_libs=yes
   10965   ;;
   10966 
   10967 newsos6)
   10968   version_type=linux # correct to gnu/linux during the next big refactor
   10969   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10970   shlibpath_var=LD_LIBRARY_PATH
   10971   shlibpath_overrides_runpath=yes
   10972   ;;
   10973 
   10974 *nto* | *qnx*)
   10975   version_type=qnx
   10976   need_lib_prefix=no
   10977   need_version=no
   10978   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10979   soname_spec='$libname$release$shared_ext$major'
   10980   shlibpath_var=LD_LIBRARY_PATH
   10981   shlibpath_overrides_runpath=no
   10982   hardcode_into_libs=yes
   10983   dynamic_linker='ldqnx.so'
   10984   ;;
   10985 
   10986 openbsd* | bitrig*)
   10987   version_type=sunos
   10988   sys_lib_dlsearch_path_spec=/usr/lib
   10989   need_lib_prefix=no
   10990   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   10991     need_version=no
   10992   else
   10993     need_version=yes
   10994   fi
   10995   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10996   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10997   shlibpath_var=LD_LIBRARY_PATH
   10998   shlibpath_overrides_runpath=yes
   10999   ;;
   11000 
   11001 os2*)
   11002   libname_spec='$name'
   11003   version_type=windows
   11004   shrext_cmds=.dll
   11005   need_version=no
   11006   need_lib_prefix=no
   11007   # OS/2 can only load a DLL with a base name of 8 characters or less.
   11008   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   11009     v=$($ECHO $release$versuffix | tr -d .-);
   11010     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   11011     $ECHO $n$v`$shared_ext'
   11012   library_names_spec='${libname}_dll.$libext'
   11013   dynamic_linker='OS/2 ld.exe'
   11014   shlibpath_var=BEGINLIBPATH
   11015   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   11016   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11017   postinstall_cmds='base_file=`basename \$file`~
   11018     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   11019     dldir=$destdir/`dirname \$dlpath`~
   11020     test -d \$dldir || mkdir -p \$dldir~
   11021     $install_prog $dir/$dlname \$dldir/$dlname~
   11022     chmod a+x \$dldir/$dlname~
   11023     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   11024       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   11025     fi'
   11026   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   11027     dlpath=$dir/\$dldll~
   11028     $RM \$dlpath'
   11029   ;;
   11030 
   11031 osf3* | osf4* | osf5*)
   11032   version_type=osf
   11033   need_lib_prefix=no
   11034   need_version=no
   11035   soname_spec='$libname$release$shared_ext$major'
   11036   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11037   shlibpath_var=LD_LIBRARY_PATH
   11038   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   11039   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11040   ;;
   11041 
   11042 rdos*)
   11043   dynamic_linker=no
   11044   ;;
   11045 
   11046 solaris*)
   11047   version_type=linux # correct to gnu/linux during the next big refactor
   11048   need_lib_prefix=no
   11049   need_version=no
   11050   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11051   soname_spec='$libname$release$shared_ext$major'
   11052   shlibpath_var=LD_LIBRARY_PATH
   11053   shlibpath_overrides_runpath=yes
   11054   hardcode_into_libs=yes
   11055   # ldd complains unless libraries are executable
   11056   postinstall_cmds='chmod +x $lib'
   11057   ;;
   11058 
   11059 sunos4*)
   11060   version_type=sunos
   11061   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   11062   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   11063   shlibpath_var=LD_LIBRARY_PATH
   11064   shlibpath_overrides_runpath=yes
   11065   if test yes = "$with_gnu_ld"; then
   11066     need_lib_prefix=no
   11067   fi
   11068   need_version=yes
   11069   ;;
   11070 
   11071 sysv4 | sysv4.3*)
   11072   version_type=linux # correct to gnu/linux during the next big refactor
   11073   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11074   soname_spec='$libname$release$shared_ext$major'
   11075   shlibpath_var=LD_LIBRARY_PATH
   11076   case $host_vendor in
   11077     sni)
   11078       shlibpath_overrides_runpath=no
   11079       need_lib_prefix=no
   11080       runpath_var=LD_RUN_PATH
   11081       ;;
   11082     siemens)
   11083       need_lib_prefix=no
   11084       ;;
   11085     motorola)
   11086       need_lib_prefix=no
   11087       need_version=no
   11088       shlibpath_overrides_runpath=no
   11089       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   11090       ;;
   11091   esac
   11092   ;;
   11093 
   11094 sysv4*MP*)
   11095   if test -d /usr/nec; then
   11096     version_type=linux # correct to gnu/linux during the next big refactor
   11097     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   11098     soname_spec='$libname$shared_ext.$major'
   11099     shlibpath_var=LD_LIBRARY_PATH
   11100   fi
   11101   ;;
   11102 
   11103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   11104   version_type=sco
   11105   need_lib_prefix=no
   11106   need_version=no
   11107   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   11108   soname_spec='$libname$release$shared_ext$major'
   11109   shlibpath_var=LD_LIBRARY_PATH
   11110   shlibpath_overrides_runpath=yes
   11111   hardcode_into_libs=yes
   11112   if test yes = "$with_gnu_ld"; then
   11113     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   11114   else
   11115     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   11116     case $host_os in
   11117       sco3.2v5*)
   11118         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   11119 	;;
   11120     esac
   11121   fi
   11122   sys_lib_dlsearch_path_spec='/usr/lib'
   11123   ;;
   11124 
   11125 tpf*)
   11126   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   11127   version_type=linux # correct to gnu/linux during the next big refactor
   11128   need_lib_prefix=no
   11129   need_version=no
   11130   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11131   shlibpath_var=LD_LIBRARY_PATH
   11132   shlibpath_overrides_runpath=no
   11133   hardcode_into_libs=yes
   11134   ;;
   11135 
   11136 uts4*)
   11137   version_type=linux # correct to gnu/linux during the next big refactor
   11138   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11139   soname_spec='$libname$release$shared_ext$major'
   11140   shlibpath_var=LD_LIBRARY_PATH
   11141   ;;
   11142 
   11143 *)
   11144   dynamic_linker=no
   11145   ;;
   11146 esac
   11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   11148 $as_echo "$dynamic_linker" >&6; }
   11149 test no = "$dynamic_linker" && can_build_shared=no
   11150 
   11151 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   11152 if test yes = "$GCC"; then
   11153   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   11154 fi
   11155 
   11156 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   11157   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   11158 fi
   11159 
   11160 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   11161   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   11162 fi
   11163 
   11164 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   11165 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   11166 
   11167 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   11168 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   11169 
   11170 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   11171 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   11172 
   11173 
   11174 
   11175 
   11176 
   11177 
   11178 
   11179 
   11180 
   11181 
   11182 
   11183 
   11184 
   11185 
   11186 
   11187 
   11188 
   11189 
   11190 
   11191 
   11192 
   11193 
   11194 
   11195 
   11196 
   11197 
   11198 
   11199 
   11200 
   11201 
   11202 
   11203 
   11204 
   11205 
   11206 
   11207 
   11208 
   11209 
   11210 
   11211 
   11212 
   11213 
   11214 
   11215 
   11216 
   11217 
   11218 
   11219 
   11220 
   11221 
   11222 
   11223 
   11224 
   11225 
   11226 
   11227 
   11228 
   11229 
   11230 
   11231 
   11232 
   11233 
   11234 
   11235 
   11236 
   11237 
   11238 
   11239 
   11240 
   11241 
   11242 
   11243 
   11244 
   11245 
   11246 
   11247 
   11248 
   11249 
   11250 
   11251 
   11252 
   11253 
   11254 
   11255 
   11256 
   11257 
   11258 
   11259 
   11260 
   11261 
   11262 
   11263 
   11264 
   11265 
   11266 
   11267 
   11268 
   11269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   11270 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   11271 hardcode_action=
   11272 if test -n "$hardcode_libdir_flag_spec" ||
   11273    test -n "$runpath_var" ||
   11274    test yes = "$hardcode_automatic"; then
   11275 
   11276   # We can hardcode non-existent directories.
   11277   if test no != "$hardcode_direct" &&
   11278      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   11279      # have to relink, otherwise we might link with an installed library
   11280      # when we should be linking with a yet-to-be-installed one
   11281      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   11282      test no != "$hardcode_minus_L"; then
   11283     # Linking always hardcodes the temporary library directory.
   11284     hardcode_action=relink
   11285   else
   11286     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   11287     hardcode_action=immediate
   11288   fi
   11289 else
   11290   # We cannot hardcode anything, or else we can only hardcode existing
   11291   # directories.
   11292   hardcode_action=unsupported
   11293 fi
   11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   11295 $as_echo "$hardcode_action" >&6; }
   11296 
   11297 if test relink = "$hardcode_action" ||
   11298    test yes = "$inherit_rpath"; then
   11299   # Fast installation is not supported
   11300   enable_fast_install=no
   11301 elif test yes = "$shlibpath_overrides_runpath" ||
   11302      test no = "$enable_shared"; then
   11303   # Fast installation is not necessary
   11304   enable_fast_install=needless
   11305 fi
   11306 
   11307 
   11308 
   11309 
   11310 
   11311 
   11312   if test yes != "$enable_dlopen"; then
   11313   enable_dlopen=unknown
   11314   enable_dlopen_self=unknown
   11315   enable_dlopen_self_static=unknown
   11316 else
   11317   lt_cv_dlopen=no
   11318   lt_cv_dlopen_libs=
   11319 
   11320   case $host_os in
   11321   beos*)
   11322     lt_cv_dlopen=load_add_on
   11323     lt_cv_dlopen_libs=
   11324     lt_cv_dlopen_self=yes
   11325     ;;
   11326 
   11327   mingw* | pw32* | cegcc*)
   11328     lt_cv_dlopen=LoadLibrary
   11329     lt_cv_dlopen_libs=
   11330     ;;
   11331 
   11332   cygwin*)
   11333     lt_cv_dlopen=dlopen
   11334     lt_cv_dlopen_libs=
   11335     ;;
   11336 
   11337   darwin*)
   11338     # if libdl is installed we need to link against it
   11339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11340 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11341 if ${ac_cv_lib_dl_dlopen+:} false; then :
   11342   $as_echo_n "(cached) " >&6
   11343 else
   11344   ac_check_lib_save_LIBS=$LIBS
   11345 LIBS="-ldl  $LIBS"
   11346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11347 /* end confdefs.h.  */
   11348 
   11349 /* Override any GCC internal prototype to avoid an error.
   11350    Use char because int might match the return type of a GCC
   11351    builtin and then its argument prototype would still apply.  */
   11352 #ifdef __cplusplus
   11353 extern "C"
   11354 #endif
   11355 char dlopen ();
   11356 int
   11357 main ()
   11358 {
   11359 return dlopen ();
   11360   ;
   11361   return 0;
   11362 }
   11363 _ACEOF
   11364 if ac_fn_c_try_link "$LINENO"; then :
   11365   ac_cv_lib_dl_dlopen=yes
   11366 else
   11367   ac_cv_lib_dl_dlopen=no
   11368 fi
   11369 rm -f core conftest.err conftest.$ac_objext \
   11370     conftest$ac_exeext conftest.$ac_ext
   11371 LIBS=$ac_check_lib_save_LIBS
   11372 fi
   11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11374 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11375 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11376   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11377 else
   11378 
   11379     lt_cv_dlopen=dyld
   11380     lt_cv_dlopen_libs=
   11381     lt_cv_dlopen_self=yes
   11382 
   11383 fi
   11384 
   11385     ;;
   11386 
   11387   tpf*)
   11388     # Don't try to run any link tests for TPF.  We know it's impossible
   11389     # because TPF is a cross-compiler, and we know how we open DSOs.
   11390     lt_cv_dlopen=dlopen
   11391     lt_cv_dlopen_libs=
   11392     lt_cv_dlopen_self=no
   11393     ;;
   11394 
   11395   *)
   11396     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   11397 if test "x$ac_cv_func_shl_load" = xyes; then :
   11398   lt_cv_dlopen=shl_load
   11399 else
   11400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   11401 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   11402 if ${ac_cv_lib_dld_shl_load+:} false; then :
   11403   $as_echo_n "(cached) " >&6
   11404 else
   11405   ac_check_lib_save_LIBS=$LIBS
   11406 LIBS="-ldld  $LIBS"
   11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11408 /* end confdefs.h.  */
   11409 
   11410 /* Override any GCC internal prototype to avoid an error.
   11411    Use char because int might match the return type of a GCC
   11412    builtin and then its argument prototype would still apply.  */
   11413 #ifdef __cplusplus
   11414 extern "C"
   11415 #endif
   11416 char shl_load ();
   11417 int
   11418 main ()
   11419 {
   11420 return shl_load ();
   11421   ;
   11422   return 0;
   11423 }
   11424 _ACEOF
   11425 if ac_fn_c_try_link "$LINENO"; then :
   11426   ac_cv_lib_dld_shl_load=yes
   11427 else
   11428   ac_cv_lib_dld_shl_load=no
   11429 fi
   11430 rm -f core conftest.err conftest.$ac_objext \
   11431     conftest$ac_exeext conftest.$ac_ext
   11432 LIBS=$ac_check_lib_save_LIBS
   11433 fi
   11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   11435 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   11436 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   11437   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   11438 else
   11439   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   11440 if test "x$ac_cv_func_dlopen" = xyes; then :
   11441   lt_cv_dlopen=dlopen
   11442 else
   11443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11444 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11445 if ${ac_cv_lib_dl_dlopen+:} false; then :
   11446   $as_echo_n "(cached) " >&6
   11447 else
   11448   ac_check_lib_save_LIBS=$LIBS
   11449 LIBS="-ldl  $LIBS"
   11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11451 /* end confdefs.h.  */
   11452 
   11453 /* Override any GCC internal prototype to avoid an error.
   11454    Use char because int might match the return type of a GCC
   11455    builtin and then its argument prototype would still apply.  */
   11456 #ifdef __cplusplus
   11457 extern "C"
   11458 #endif
   11459 char dlopen ();
   11460 int
   11461 main ()
   11462 {
   11463 return dlopen ();
   11464   ;
   11465   return 0;
   11466 }
   11467 _ACEOF
   11468 if ac_fn_c_try_link "$LINENO"; then :
   11469   ac_cv_lib_dl_dlopen=yes
   11470 else
   11471   ac_cv_lib_dl_dlopen=no
   11472 fi
   11473 rm -f core conftest.err conftest.$ac_objext \
   11474     conftest$ac_exeext conftest.$ac_ext
   11475 LIBS=$ac_check_lib_save_LIBS
   11476 fi
   11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11478 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11479 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11480   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11481 else
   11482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   11483 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   11484 if ${ac_cv_lib_svld_dlopen+:} false; then :
   11485   $as_echo_n "(cached) " >&6
   11486 else
   11487   ac_check_lib_save_LIBS=$LIBS
   11488 LIBS="-lsvld  $LIBS"
   11489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11490 /* end confdefs.h.  */
   11491 
   11492 /* Override any GCC internal prototype to avoid an error.
   11493    Use char because int might match the return type of a GCC
   11494    builtin and then its argument prototype would still apply.  */
   11495 #ifdef __cplusplus
   11496 extern "C"
   11497 #endif
   11498 char dlopen ();
   11499 int
   11500 main ()
   11501 {
   11502 return dlopen ();
   11503   ;
   11504   return 0;
   11505 }
   11506 _ACEOF
   11507 if ac_fn_c_try_link "$LINENO"; then :
   11508   ac_cv_lib_svld_dlopen=yes
   11509 else
   11510   ac_cv_lib_svld_dlopen=no
   11511 fi
   11512 rm -f core conftest.err conftest.$ac_objext \
   11513     conftest$ac_exeext conftest.$ac_ext
   11514 LIBS=$ac_check_lib_save_LIBS
   11515 fi
   11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   11517 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   11518 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   11519   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   11520 else
   11521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   11522 $as_echo_n "checking for dld_link in -ldld... " >&6; }
   11523 if ${ac_cv_lib_dld_dld_link+:} false; then :
   11524   $as_echo_n "(cached) " >&6
   11525 else
   11526   ac_check_lib_save_LIBS=$LIBS
   11527 LIBS="-ldld  $LIBS"
   11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11529 /* end confdefs.h.  */
   11530 
   11531 /* Override any GCC internal prototype to avoid an error.
   11532    Use char because int might match the return type of a GCC
   11533    builtin and then its argument prototype would still apply.  */
   11534 #ifdef __cplusplus
   11535 extern "C"
   11536 #endif
   11537 char dld_link ();
   11538 int
   11539 main ()
   11540 {
   11541 return dld_link ();
   11542   ;
   11543   return 0;
   11544 }
   11545 _ACEOF
   11546 if ac_fn_c_try_link "$LINENO"; then :
   11547   ac_cv_lib_dld_dld_link=yes
   11548 else
   11549   ac_cv_lib_dld_dld_link=no
   11550 fi
   11551 rm -f core conftest.err conftest.$ac_objext \
   11552     conftest$ac_exeext conftest.$ac_ext
   11553 LIBS=$ac_check_lib_save_LIBS
   11554 fi
   11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   11556 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   11557 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   11558   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   11559 fi
   11560 
   11561 
   11562 fi
   11563 
   11564 
   11565 fi
   11566 
   11567 
   11568 fi
   11569 
   11570 
   11571 fi
   11572 
   11573 
   11574 fi
   11575 
   11576     ;;
   11577   esac
   11578 
   11579   if test no = "$lt_cv_dlopen"; then
   11580     enable_dlopen=no
   11581   else
   11582     enable_dlopen=yes
   11583   fi
   11584 
   11585   case $lt_cv_dlopen in
   11586   dlopen)
   11587     save_CPPFLAGS=$CPPFLAGS
   11588     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   11589 
   11590     save_LDFLAGS=$LDFLAGS
   11591     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   11592 
   11593     save_LIBS=$LIBS
   11594     LIBS="$lt_cv_dlopen_libs $LIBS"
   11595 
   11596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   11597 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   11598 if ${lt_cv_dlopen_self+:} false; then :
   11599   $as_echo_n "(cached) " >&6
   11600 else
   11601   	  if test yes = "$cross_compiling"; then :
   11602   lt_cv_dlopen_self=cross
   11603 else
   11604   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11605   lt_status=$lt_dlunknown
   11606   cat > conftest.$ac_ext <<_LT_EOF
   11607 #line $LINENO "configure"
   11608 #include "confdefs.h"
   11609 
   11610 #if HAVE_DLFCN_H
   11611 #include <dlfcn.h>
   11612 #endif
   11613 
   11614 #include <stdio.h>
   11615 
   11616 #ifdef RTLD_GLOBAL
   11617 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11618 #else
   11619 #  ifdef DL_GLOBAL
   11620 #    define LT_DLGLOBAL		DL_GLOBAL
   11621 #  else
   11622 #    define LT_DLGLOBAL		0
   11623 #  endif
   11624 #endif
   11625 
   11626 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11627    find out it does not work in some platform. */
   11628 #ifndef LT_DLLAZY_OR_NOW
   11629 #  ifdef RTLD_LAZY
   11630 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11631 #  else
   11632 #    ifdef DL_LAZY
   11633 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11634 #    else
   11635 #      ifdef RTLD_NOW
   11636 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11637 #      else
   11638 #        ifdef DL_NOW
   11639 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11640 #        else
   11641 #          define LT_DLLAZY_OR_NOW	0
   11642 #        endif
   11643 #      endif
   11644 #    endif
   11645 #  endif
   11646 #endif
   11647 
   11648 /* When -fvisibility=hidden is used, assume the code has been annotated
   11649    correspondingly for the symbols needed.  */
   11650 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11651 int fnord () __attribute__((visibility("default")));
   11652 #endif
   11653 
   11654 int fnord () { return 42; }
   11655 int main ()
   11656 {
   11657   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11658   int status = $lt_dlunknown;
   11659 
   11660   if (self)
   11661     {
   11662       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11663       else
   11664         {
   11665 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11666           else puts (dlerror ());
   11667 	}
   11668       /* dlclose (self); */
   11669     }
   11670   else
   11671     puts (dlerror ());
   11672 
   11673   return status;
   11674 }
   11675 _LT_EOF
   11676   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11677   (eval $ac_link) 2>&5
   11678   ac_status=$?
   11679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11680   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11681     (./conftest; exit; ) >&5 2>/dev/null
   11682     lt_status=$?
   11683     case x$lt_status in
   11684       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   11685       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   11686       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   11687     esac
   11688   else :
   11689     # compilation failed
   11690     lt_cv_dlopen_self=no
   11691   fi
   11692 fi
   11693 rm -fr conftest*
   11694 
   11695 
   11696 fi
   11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   11698 $as_echo "$lt_cv_dlopen_self" >&6; }
   11699 
   11700     if test yes = "$lt_cv_dlopen_self"; then
   11701       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   11702       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   11703 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   11704 if ${lt_cv_dlopen_self_static+:} false; then :
   11705   $as_echo_n "(cached) " >&6
   11706 else
   11707   	  if test yes = "$cross_compiling"; then :
   11708   lt_cv_dlopen_self_static=cross
   11709 else
   11710   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11711   lt_status=$lt_dlunknown
   11712   cat > conftest.$ac_ext <<_LT_EOF
   11713 #line $LINENO "configure"
   11714 #include "confdefs.h"
   11715 
   11716 #if HAVE_DLFCN_H
   11717 #include <dlfcn.h>
   11718 #endif
   11719 
   11720 #include <stdio.h>
   11721 
   11722 #ifdef RTLD_GLOBAL
   11723 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11724 #else
   11725 #  ifdef DL_GLOBAL
   11726 #    define LT_DLGLOBAL		DL_GLOBAL
   11727 #  else
   11728 #    define LT_DLGLOBAL		0
   11729 #  endif
   11730 #endif
   11731 
   11732 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11733    find out it does not work in some platform. */
   11734 #ifndef LT_DLLAZY_OR_NOW
   11735 #  ifdef RTLD_LAZY
   11736 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11737 #  else
   11738 #    ifdef DL_LAZY
   11739 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11740 #    else
   11741 #      ifdef RTLD_NOW
   11742 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11743 #      else
   11744 #        ifdef DL_NOW
   11745 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11746 #        else
   11747 #          define LT_DLLAZY_OR_NOW	0
   11748 #        endif
   11749 #      endif
   11750 #    endif
   11751 #  endif
   11752 #endif
   11753 
   11754 /* When -fvisibility=hidden is used, assume the code has been annotated
   11755    correspondingly for the symbols needed.  */
   11756 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11757 int fnord () __attribute__((visibility("default")));
   11758 #endif
   11759 
   11760 int fnord () { return 42; }
   11761 int main ()
   11762 {
   11763   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11764   int status = $lt_dlunknown;
   11765 
   11766   if (self)
   11767     {
   11768       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11769       else
   11770         {
   11771 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11772           else puts (dlerror ());
   11773 	}
   11774       /* dlclose (self); */
   11775     }
   11776   else
   11777     puts (dlerror ());
   11778 
   11779   return status;
   11780 }
   11781 _LT_EOF
   11782   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11783   (eval $ac_link) 2>&5
   11784   ac_status=$?
   11785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11786   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11787     (./conftest; exit; ) >&5 2>/dev/null
   11788     lt_status=$?
   11789     case x$lt_status in
   11790       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   11791       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   11792       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   11793     esac
   11794   else :
   11795     # compilation failed
   11796     lt_cv_dlopen_self_static=no
   11797   fi
   11798 fi
   11799 rm -fr conftest*
   11800 
   11801 
   11802 fi
   11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   11804 $as_echo "$lt_cv_dlopen_self_static" >&6; }
   11805     fi
   11806 
   11807     CPPFLAGS=$save_CPPFLAGS
   11808     LDFLAGS=$save_LDFLAGS
   11809     LIBS=$save_LIBS
   11810     ;;
   11811   esac
   11812 
   11813   case $lt_cv_dlopen_self in
   11814   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   11815   *) enable_dlopen_self=unknown ;;
   11816   esac
   11817 
   11818   case $lt_cv_dlopen_self_static in
   11819   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   11820   *) enable_dlopen_self_static=unknown ;;
   11821   esac
   11822 fi
   11823 
   11824 
   11825 
   11826 
   11827 
   11828 
   11829 
   11830 
   11831 
   11832 
   11833 
   11834 
   11835 
   11836 
   11837 
   11838 
   11839 
   11840 striplib=
   11841 old_striplib=
   11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   11843 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   11844 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   11845   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   11846   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   11847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11848 $as_echo "yes" >&6; }
   11849 else
   11850 # FIXME - insert some real tests, host_os isn't really good enough
   11851   case $host_os in
   11852   darwin*)
   11853     if test -n "$STRIP"; then
   11854       striplib="$STRIP -x"
   11855       old_striplib="$STRIP -S"
   11856       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11857 $as_echo "yes" >&6; }
   11858     else
   11859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11860 $as_echo "no" >&6; }
   11861     fi
   11862     ;;
   11863   *)
   11864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11865 $as_echo "no" >&6; }
   11866     ;;
   11867   esac
   11868 fi
   11869 
   11870 
   11871 
   11872 
   11873 
   11874 
   11875 
   11876 
   11877 
   11878 
   11879 
   11880 
   11881   # Report what library types will actually be built
   11882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   11883 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   11884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   11885 $as_echo "$can_build_shared" >&6; }
   11886 
   11887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   11888 $as_echo_n "checking whether to build shared libraries... " >&6; }
   11889   test no = "$can_build_shared" && enable_shared=no
   11890 
   11891   # On AIX, shared libraries and static libraries use the same namespace, and
   11892   # are all built from PIC.
   11893   case $host_os in
   11894   aix3*)
   11895     test yes = "$enable_shared" && enable_static=no
   11896     if test -n "$RANLIB"; then
   11897       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   11898       postinstall_cmds='$RANLIB $lib'
   11899     fi
   11900     ;;
   11901 
   11902   aix[4-9]*)
   11903     if test ia64 != "$host_cpu"; then
   11904       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   11905       yes,aix,yes) ;;			# shared object as lib.so file only
   11906       yes,svr4,*) ;;			# shared object as lib.so archive member only
   11907       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   11908       esac
   11909     fi
   11910     ;;
   11911   esac
   11912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   11913 $as_echo "$enable_shared" >&6; }
   11914 
   11915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   11916 $as_echo_n "checking whether to build static libraries... " >&6; }
   11917   # Make sure either enable_shared or enable_static is yes.
   11918   test yes = "$enable_shared" || enable_static=yes
   11919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   11920 $as_echo "$enable_static" >&6; }
   11921 
   11922 
   11923 
   11924 
   11925 fi
   11926 ac_ext=c
   11927 ac_cpp='$CPP $CPPFLAGS'
   11928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   11929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   11930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   11931 
   11932 CC=$lt_save_CC
   11933 
   11934 
   11935 
   11936 
   11937 
   11938 
   11939 
   11940 
   11941 
   11942 
   11943 
   11944 
   11945 
   11946 
   11947 
   11948         ac_config_commands="$ac_config_commands libtool"
   11949 
   11950 
   11951 
   11952 
   11953 # Only expand once:
   11954 
   11955 
   11956 # Find a good install program.  We prefer a C program (faster),
   11957 # so one script is as good as another.  But avoid the broken or
   11958 # incompatible versions:
   11959 # SysV /etc/install, /usr/sbin/install
   11960 # SunOS /usr/etc/install
   11961 # IRIX /sbin/install
   11962 # AIX /bin/install
   11963 # AmigaOS /C/install, which installs bootblocks on floppy discs
   11964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   11965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   11966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   11967 # OS/2's system install, which has a completely different semantic
   11968 # ./install, which can be erroneously created by make from ./install.sh.
   11969 # Reject install programs that cannot install multiple files.
   11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   11971 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   11972 if test -z "$INSTALL"; then
   11973 if ${ac_cv_path_install+:} false; then :
   11974   $as_echo_n "(cached) " >&6
   11975 else
   11976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11977 for as_dir in $PATH
   11978 do
   11979   IFS=$as_save_IFS
   11980   test -z "$as_dir" && as_dir=.
   11981     # Account for people who put trailing slashes in PATH elements.
   11982 case $as_dir/ in #((
   11983   ./ | .// | /[cC]/* | \
   11984   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   11985   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   11986   /usr/ucb/* ) ;;
   11987   *)
   11988     # OSF1 and SCO ODT 3.0 have their own names for install.
   11989     # Don't use installbsd from OSF since it installs stuff as root
   11990     # by default.
   11991     for ac_prog in ginstall scoinst install; do
   11992       for ac_exec_ext in '' $ac_executable_extensions; do
   11993 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   11994 	  if test $ac_prog = install &&
   11995 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11996 	    # AIX install.  It has an incompatible calling convention.
   11997 	    :
   11998 	  elif test $ac_prog = install &&
   11999 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   12000 	    # program-specific install script used by HP pwplus--don't use.
   12001 	    :
   12002 	  else
   12003 	    rm -rf conftest.one conftest.two conftest.dir
   12004 	    echo one > conftest.one
   12005 	    echo two > conftest.two
   12006 	    mkdir conftest.dir
   12007 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   12008 	      test -s conftest.one && test -s conftest.two &&
   12009 	      test -s conftest.dir/conftest.one &&
   12010 	      test -s conftest.dir/conftest.two
   12011 	    then
   12012 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   12013 	      break 3
   12014 	    fi
   12015 	  fi
   12016 	fi
   12017       done
   12018     done
   12019     ;;
   12020 esac
   12021 
   12022   done
   12023 IFS=$as_save_IFS
   12024 
   12025 rm -rf conftest.one conftest.two conftest.dir
   12026 
   12027 fi
   12028   if test "${ac_cv_path_install+set}" = set; then
   12029     INSTALL=$ac_cv_path_install
   12030   else
   12031     # As a last resort, use the slow shell script.  Don't cache a
   12032     # value for INSTALL within a source directory, because that will
   12033     # break other packages using the cache if that directory is
   12034     # removed, or if the value is a relative name.
   12035     INSTALL=$ac_install_sh
   12036   fi
   12037 fi
   12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   12039 $as_echo "$INSTALL" >&6; }
   12040 
   12041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   12042 # It thinks the first close brace ends the variable substitution.
   12043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   12044 
   12045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   12046 
   12047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   12048 
   12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   12050 $as_echo_n "checking whether ln -s works... " >&6; }
   12051 LN_S=$as_ln_s
   12052 if test "$LN_S" = "ln -s"; then
   12053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12054 $as_echo "yes" >&6; }
   12055 else
   12056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   12057 $as_echo "no, using $LN_S" >&6; }
   12058 fi
   12059 
   12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
   12061 $as_echo_n "checking for a POSIX-compatible shell... " >&6; }
   12062 if ${ac_cv_prog_shell+:} false; then :
   12063   $as_echo_n "(cached) " >&6
   12064 else
   12065   ac_test_shell_script='
   12066 			  test "$(expr 1 + 1)" = "2" &&
   12067 			  test "$(( 1 + 1 ))" = "2"
   12068 			  '
   12069 
   12070 			  for ac_cv_prog_shell in \
   12071 			    "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
   12072 			    case $ac_cv_prog_shell in #(
   12073   /*) :
   12074 
   12075 				      if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null; then :
   12076   break
   12077 fi
   12078 				     ;; #(
   12079   *) :
   12080      ;;
   12081 esac
   12082 			  done
   12083 
   12084 fi
   12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
   12086 $as_echo "$ac_cv_prog_shell" >&6; }
   12087 	  if test "$ac_cv_prog_shell" = "no"; then :
   12088   SHELL=/bin/sh
   12089 		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
   12090 $as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
   12091 
   12092 else
   12093   SHELL="$ac_cv_prog_shell"
   12094 
   12095 fi
   12096 
   12097 
   12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   12099 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   12100 if test -z "$MKDIR_P"; then
   12101   if ${ac_cv_path_mkdir+:} false; then :
   12102   $as_echo_n "(cached) " >&6
   12103 else
   12104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12105 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   12106 do
   12107   IFS=$as_save_IFS
   12108   test -z "$as_dir" && as_dir=.
   12109     for ac_prog in mkdir gmkdir; do
   12110 	 for ac_exec_ext in '' $ac_executable_extensions; do
   12111 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
   12112 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   12113 	     'mkdir (GNU coreutils) '* | \
   12114 	     'mkdir (coreutils) '* | \
   12115 	     'mkdir (fileutils) '4.1*)
   12116 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   12117 	       break 3;;
   12118 	   esac
   12119 	 done
   12120        done
   12121   done
   12122 IFS=$as_save_IFS
   12123 
   12124 fi
   12125 
   12126   test -d ./--version && rmdir ./--version
   12127   if test "${ac_cv_path_mkdir+set}" = set; then
   12128     MKDIR_P="$ac_cv_path_mkdir -p"
   12129   else
   12130     # As a last resort, use the slow shell script.  Don't cache a
   12131     # value for MKDIR_P within a source directory, because that will
   12132     # break other packages using the cache if that directory is
   12133     # removed, or if the value is a relative name.
   12134     MKDIR_P="$ac_install_sh -d"
   12135   fi
   12136 fi
   12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   12138 $as_echo "$MKDIR_P" >&6; }
   12139 
   12140 
   12141 
   12142 
   12143 
   12144 
   12145 
   12146 
   12147 
   12148 #
   12149 # Use pkg-config
   12150 #
   12151 
   12152 
   12153 
   12154 
   12155 
   12156 
   12157 
   12158 
   12159 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   12160 	if test -n "$ac_tool_prefix"; then
   12161   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   12162 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12164 $as_echo_n "checking for $ac_word... " >&6; }
   12165 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   12166   $as_echo_n "(cached) " >&6
   12167 else
   12168   case $PKG_CONFIG in
   12169   [\\/]* | ?:[\\/]*)
   12170   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   12171   ;;
   12172   *)
   12173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12174 for as_dir in $PATH
   12175 do
   12176   IFS=$as_save_IFS
   12177   test -z "$as_dir" && as_dir=.
   12178     for ac_exec_ext in '' $ac_executable_extensions; do
   12179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12180     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   12181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12182     break 2
   12183   fi
   12184 done
   12185   done
   12186 IFS=$as_save_IFS
   12187 
   12188   ;;
   12189 esac
   12190 fi
   12191 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   12192 if test -n "$PKG_CONFIG"; then
   12193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   12194 $as_echo "$PKG_CONFIG" >&6; }
   12195 else
   12196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12197 $as_echo "no" >&6; }
   12198 fi
   12199 
   12200 
   12201 fi
   12202 if test -z "$ac_cv_path_PKG_CONFIG"; then
   12203   ac_pt_PKG_CONFIG=$PKG_CONFIG
   12204   # Extract the first word of "pkg-config", so it can be a program name with args.
   12205 set dummy pkg-config; ac_word=$2
   12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12207 $as_echo_n "checking for $ac_word... " >&6; }
   12208 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   12209   $as_echo_n "(cached) " >&6
   12210 else
   12211   case $ac_pt_PKG_CONFIG in
   12212   [\\/]* | ?:[\\/]*)
   12213   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   12214   ;;
   12215   *)
   12216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12217 for as_dir in $PATH
   12218 do
   12219   IFS=$as_save_IFS
   12220   test -z "$as_dir" && as_dir=.
   12221     for ac_exec_ext in '' $ac_executable_extensions; do
   12222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12223     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   12224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12225     break 2
   12226   fi
   12227 done
   12228   done
   12229 IFS=$as_save_IFS
   12230 
   12231   ;;
   12232 esac
   12233 fi
   12234 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   12235 if test -n "$ac_pt_PKG_CONFIG"; then
   12236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   12237 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   12238 else
   12239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12240 $as_echo "no" >&6; }
   12241 fi
   12242 
   12243   if test "x$ac_pt_PKG_CONFIG" = x; then
   12244     PKG_CONFIG=""
   12245   else
   12246     case $cross_compiling:$ac_tool_warned in
   12247 yes:)
   12248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12250 ac_tool_warned=yes ;;
   12251 esac
   12252     PKG_CONFIG=$ac_pt_PKG_CONFIG
   12253   fi
   12254 else
   12255   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   12256 fi
   12257 
   12258 fi
   12259 if test -n "$PKG_CONFIG"; then
   12260 	_pkg_min_version=0.9.0
   12261 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   12262 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   12263 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   12264 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12265 $as_echo "yes" >&6; }
   12266 	else
   12267 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12268 $as_echo "no" >&6; }
   12269 		PKG_CONFIG=""
   12270 	fi
   12271 fi
   12272 if test -z "$PKG_CONFIG"; then :
   12273   as_fn_error $? "The pkg-config script could not be found or is too old." "$LINENO" 5
   12274 fi
   12275 
   12276 # Check whether --enable-buffer_useinline was given.
   12277 if test "${enable_buffer_useinline+set}" = set; then :
   12278   enableval=$enable_buffer_useinline; if test yes = "${enable}"
   12279 	      then
   12280 
   12281 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   12282 
   12283 	      fi
   12284 else
   12285   $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   12286 
   12287 fi
   12288 
   12289 
   12290 # Check whether --enable-warn_shadow was given.
   12291 if test "${enable_warn_shadow+set}" = set; then :
   12292   enableval=$enable_warn_shadow;
   12293 fi
   12294 
   12295 
   12296 # Check whether --enable-warn_error was given.
   12297 if test "${enable_warn_error+set}" = set; then :
   12298   enableval=$enable_warn_error;
   12299 fi
   12300 
   12301 
   12302 # Check whether --enable-developer was given.
   12303 if test "${enable_developer+set}" = set; then :
   12304   enableval=$enable_developer;
   12305 fi
   12306 
   12307 
   12308 XTARGETS=
   12309 if test "$enable_developer" = "yes"; then :
   12310   STD_CDEFINES="$STD_CDEFINES -DISC_MEM_DEFAULTFILL=1 -DISC_LIST_CHECKINIT=1"
   12311        test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
   12312        test "${enable_querytrace+set}" = set || enable_querytrace=yes
   12313        test "${with_cmocka+set}" = set || with_cmocka=yes
   12314        test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
   12315        test "${enable_symtable+set}" = set || enable_symtable=all
   12316        test "${enable_warn_error+set}" = set || enable_warn_error=yes
   12317        test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
   12318        test "${with_zlib+set}" = set || with_zlib=yes
   12319        XTARGETS='${XTARGETS}'
   12320 
   12321 fi
   12322 
   12323 
   12324 # Check whether --enable-fuzzing was given.
   12325 if test "${enable_fuzzing+set}" = set; then :
   12326   enableval=$enable_fuzzing;
   12327 else
   12328   enable_fuzzing=no
   12329 fi
   12330 
   12331 
   12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
   12333 $as_echo_n "checking whether to enable fuzzing mode... " >&6; }
   12334 case $enable_fuzzing in #(
   12335   no) :
   12336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12337 $as_echo "no" >&6; } ;; #(
   12338   afl) :
   12339 
   12340 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
   12341 $as_echo "using AFL" >&6; }
   12342 
   12343 $as_echo "#define ENABLE_AFL 1" >>confdefs.h
   12344 
   12345 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
   12346 	  LIBS="$LIBS -lpthread" ;; #(
   12347   libfuzzer) :
   12348 
   12349 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
   12350 $as_echo "using libFuzzer" >&6; }
   12351 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer,address,undefined"
   12352 	  LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address,undefined" ;; #(
   12353   *) :
   12354     as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
   12355   *) :
   12356      ;;
   12357 esac
   12358 
   12359 if test "$enable_fuzzing" = "afl"; then :
   12360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
   12361 $as_echo_n "checking \"for AFL enabled compiler\"... " >&6; }
   12362        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12363 /* end confdefs.h.  */
   12364 
   12365 int
   12366 main ()
   12367 {
   12368 #ifndef __AFL_COMPILER
   12369 					   #error AFL compiler required
   12370 					   #endif
   12371 
   12372   ;
   12373   return 0;
   12374 }
   12375 _ACEOF
   12376 if ac_fn_c_try_compile "$LINENO"; then :
   12377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12378 $as_echo "yes" >&6; }
   12379 else
   12380   as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
   12381 fi
   12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12383 
   12384 fi
   12385 
   12386 # Check whether --enable-mutex_atomics was given.
   12387 if test "${enable_mutex_atomics+set}" = set; then :
   12388   enableval=$enable_mutex_atomics;
   12389 else
   12390   enable_mutex_atomics=no
   12391 fi
   12392 
   12393 
   12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to emulate atomics with mutexes" >&5
   12395 $as_echo_n "checking whether to emulate atomics with mutexes... " >&6; }
   12396 case "$enable_mutex_atomics" in
   12397 yes)
   12398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12399 $as_echo "yes" >&6; }
   12400 
   12401 $as_echo "#define ISC_MUTEX_ATOMICS 1" >>confdefs.h
   12402 
   12403         ;;
   12404 no)
   12405         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12406 $as_echo "no" >&6; }
   12407         ;;
   12408 *)
   12409         as_fn_error $? "\"--enable-mutex-atomics requires yes or no\"" "$LINENO" 5
   12410         ;;
   12411 esac
   12412 
   12413 #
   12414 # Make very sure that these are the first files processed by
   12415 # config.status, since we use the processed output as the input for
   12416 # AC_SUBST_FILE() substitutions in other files.
   12417 #
   12418 ac_config_files="$ac_config_files make/rules make/includes"
   12419 
   12420 
   12421 # Extract the first word of "ar", so it can be a program name with args.
   12422 set dummy ar; ac_word=$2
   12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12424 $as_echo_n "checking for $ac_word... " >&6; }
   12425 if ${ac_cv_path_AR+:} false; then :
   12426   $as_echo_n "(cached) " >&6
   12427 else
   12428   case $AR in
   12429   [\\/]* | ?:[\\/]*)
   12430   ac_cv_path_AR="$AR" # Let the user override the test with a path.
   12431   ;;
   12432   *)
   12433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12434 for as_dir in $PATH
   12435 do
   12436   IFS=$as_save_IFS
   12437   test -z "$as_dir" && as_dir=.
   12438     for ac_exec_ext in '' $ac_executable_extensions; do
   12439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12440     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
   12441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12442     break 2
   12443   fi
   12444 done
   12445   done
   12446 IFS=$as_save_IFS
   12447 
   12448   ;;
   12449 esac
   12450 fi
   12451 AR=$ac_cv_path_AR
   12452 if test -n "$AR"; then
   12453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12454 $as_echo "$AR" >&6; }
   12455 else
   12456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12457 $as_echo "no" >&6; }
   12458 fi
   12459 
   12460 
   12461 ARFLAGS="cruv"
   12462 
   12463 
   12464 
   12465 # The POSIX ln(1) program.  Non-POSIX systems may substitute
   12466 # "copy" or something.
   12467 LN=ln
   12468 
   12469 
   12470 case "$AR" in
   12471 	"")
   12472 		as_fn_error $? "
   12473 ar program not found.  Please fix your PATH to include the directory in
   12474 which ar resides, or set AR in the environment with the full path to ar.
   12475 " "$LINENO" 5
   12476 
   12477 		;;
   12478 esac
   12479 
   12480 #
   12481 # Perl is optional; it is used only by some of the system test scripts.
   12482 # Note: the backtrace feature (see below) uses perl to build the symbol table,
   12483 # but it still compiles without perl, in which case an empty table will be used.
   12484 #
   12485 for ac_prog in perl5 perl
   12486 do
   12487   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12488 set dummy $ac_prog; ac_word=$2
   12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12490 $as_echo_n "checking for $ac_word... " >&6; }
   12491 if ${ac_cv_path_PERL+:} false; then :
   12492   $as_echo_n "(cached) " >&6
   12493 else
   12494   case $PERL in
   12495   [\\/]* | ?:[\\/]*)
   12496   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
   12497   ;;
   12498   *)
   12499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12500 for as_dir in $PATH
   12501 do
   12502   IFS=$as_save_IFS
   12503   test -z "$as_dir" && as_dir=.
   12504     for ac_exec_ext in '' $ac_executable_extensions; do
   12505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12506     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
   12507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12508     break 2
   12509   fi
   12510 done
   12511   done
   12512 IFS=$as_save_IFS
   12513 
   12514   ;;
   12515 esac
   12516 fi
   12517 PERL=$ac_cv_path_PERL
   12518 if test -n "$PERL"; then
   12519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
   12520 $as_echo "$PERL" >&6; }
   12521 else
   12522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12523 $as_echo "no" >&6; }
   12524 fi
   12525 
   12526 
   12527   test -n "$PERL" && break
   12528 done
   12529 
   12530 
   12531 
   12532 #
   12533 # Python is also optional but required by default so that dnssec-keymgr gets
   12534 # installed unless explicitly prevented by the user using --without-python.
   12535 #
   12536 testminvers='import sys
   12537 if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
   12538    exit(1)'
   12539 
   12540 testargparse='try: import argparse
   12541 except: exit(1)'
   12542 
   12543 testply='try: import ply
   12544 except: exit(1)'
   12545 
   12546 testsetup='try: from distutils.core import setup
   12547 except: exit(1)'
   12548 
   12549 default_with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
   12550 
   12551 
   12552 
   12553 
   12554 # Check whether --with-python was given.
   12555 if test "${with_python+set}" = set; then :
   12556   withval=$with_python;
   12557 else
   12558   with_python=$default_with_python
   12559 fi
   12560 
   12561 
   12562 # Check whether --with-python-install-dir was given.
   12563 if test "${with_python_install_dir+set}" = set; then :
   12564   withval=$with_python_install_dir;
   12565 else
   12566   with_python_install_dir=""
   12567 fi
   12568 
   12569 
   12570 if test "$with_python" = "yes"; then :
   12571   with_python=$default_with_python
   12572 fi
   12573 
   12574 if test "$with_python" = "no"; then :
   12575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12576 $as_echo_n "checking for Python support... " >&6; }
   12577        unset PYTHON
   12578        { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   12579 $as_echo "disabled" >&6; }
   12580 else
   12581   for p in $with_python
   12582        do
   12583 	 case $p in #(
   12584   /*) :
   12585     PYTHON="$p" ;; #(
   12586   *) :
   12587      ;;
   12588 esac
   12589 
   12590 	 # Extract the first word of "$p", so it can be a program name with args.
   12591 set dummy $p; ac_word=$2
   12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12593 $as_echo_n "checking for $ac_word... " >&6; }
   12594 if ${ac_cv_path_PYTHON+:} false; then :
   12595   $as_echo_n "(cached) " >&6
   12596 else
   12597   case $PYTHON in
   12598   [\\/]* | ?:[\\/]*)
   12599   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
   12600   ;;
   12601   *)
   12602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12603 for as_dir in $PATH
   12604 do
   12605   IFS=$as_save_IFS
   12606   test -z "$as_dir" && as_dir=.
   12607     for ac_exec_ext in '' $ac_executable_extensions; do
   12608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12609     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
   12610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12611     break 2
   12612   fi
   12613 done
   12614   done
   12615 IFS=$as_save_IFS
   12616 
   12617   ;;
   12618 esac
   12619 fi
   12620 PYTHON=$ac_cv_path_PYTHON
   12621 if test -n "$PYTHON"; then
   12622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
   12623 $as_echo "$PYTHON" >&6; }
   12624 else
   12625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12626 $as_echo "no" >&6; }
   12627 fi
   12628 
   12629 
   12630 	 # Do not cache the result of the check from the previous line.  If the
   12631 	 # first found Python interpreter has missing module dependencies and
   12632 	 # the result of the above check is cached, subsequent module checks
   12633 	 # will erroneously keep on using the cached path to the first found
   12634 	 # Python interpreter instead of different ones.
   12635 	 unset ac_cv_path_PYTHON
   12636 
   12637 	 if test -z "$PYTHON"; then :
   12638   continue
   12639 fi
   12640 
   12641 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5
   12642 $as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
   12643 	 if "$PYTHON" -c "$testminvers" 2>/dev/null; then :
   12644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12645 $as_echo "yes" >&6; }
   12646 else
   12647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12648 $as_echo "no" >&6; }
   12649 		unset PYTHON
   12650 		continue
   12651 fi
   12652 
   12653 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5
   12654 $as_echo_n "checking Python module 'argparse'... " >&6; }
   12655 	 if "$PYTHON" -c "$testargparse" 2>/dev/null; then :
   12656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12657 $as_echo "yes" >&6; }
   12658 else
   12659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12660 $as_echo "no" >&6; }
   12661 		unset PYTHON
   12662 		continue
   12663 fi
   12664 
   12665 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5
   12666 $as_echo_n "checking Python module 'ply'... " >&6; }
   12667 	 if "$PYTHON" -c "$testply" 2>/dev/null; then :
   12668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12669 $as_echo "yes" >&6; }
   12670 else
   12671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12672 $as_echo "no" >&6; }
   12673 		unset PYTHON
   12674 		continue
   12675 fi
   12676 
   12677 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'distutils.core setup'" >&5
   12678 $as_echo_n "checking Python module 'distutils.core setup'... " >&6; }
   12679 	 if "$PYTHON" -c "$testsetup" 2>/dev/null; then :
   12680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12681 $as_echo "yes" >&6; }
   12682 else
   12683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12684 $as_echo "no" >&6; }
   12685 		unset PYTHON
   12686 		continue
   12687 fi
   12688 
   12689 	 # Stop looking any further once we find a Python interpreter
   12690 	 # satisfying all requirements.
   12691 	 break
   12692        done
   12693 
   12694        if test "X$PYTHON" = "X"; then :
   12695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12696 $as_echo_n "checking for Python support... " >&6; }
   12697 	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12698 $as_echo "no" >&6; }
   12699 	      as_fn_error $? "Python >= 2.7 or >= 3.2 and the PLY package are required for dnssec-keymgr and other Python-based tools. PLY may be available from your OS package manager as python-ply or python3-ply; it can also be installed via pip. To build without Python/PLY, use --without-python." "$LINENO" 5
   12700 fi
   12701 fi
   12702 
   12703 PYTHON_TOOLS=''
   12704 CHECKDS=''
   12705 COVERAGE=''
   12706 KEYMGR=''
   12707 if test "X$PYTHON" != "X"; then :
   12708   PYTHON_TOOLS=python
   12709        CHECKDS=checkds
   12710        COVERAGE=coverage
   12711        KEYMGR=keymgr
   12712        PYTHON_INSTALL_DIR="$with_python_install_dir"
   12713        if test -n "$with_python_install_dir"; then :
   12714   PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir"
   12715 fi
   12716 fi
   12717 
   12718 
   12719 
   12720 
   12721 
   12722 
   12723 
   12724 #
   12725 # expanded_sysconfdir is needed for replacement in the python utilities
   12726 #
   12727 expanded_sysconfdir=`eval echo $sysconfdir`
   12728 
   12729 
   12730 #
   12731 # Make sure INSTALL uses an absolute path, else it will be wrong in all
   12732 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
   12733 # configure based on the location of the file where it is substituted.
   12734 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
   12735 # subdirectory of install-sh, This relative path will be wrong for all
   12736 # directories more than one level down from install-sh.
   12737 #
   12738 case "$INSTALL" in
   12739 	/*)
   12740 		;;
   12741 	*)
   12742 		#
   12743 		# Not all systems have dirname.
   12744 		#
   12745 
   12746 		ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
   12747 
   12748 
   12749 		ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
   12750 		test "X$ac_dir" = "X$ac_prog" && ac_dir=.
   12751 		test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
   12752 		INSTALL="$ac_dir/$ac_prog"
   12753 		;;
   12754 esac
   12755 
   12756 for ac_prog in pytest-3 py.test-3 pytest pytest-pypy
   12757 do
   12758   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12759 set dummy $ac_prog; ac_word=$2
   12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12761 $as_echo_n "checking for $ac_word... " >&6; }
   12762 if ${ac_cv_path_PYTEST+:} false; then :
   12763   $as_echo_n "(cached) " >&6
   12764 else
   12765   case $PYTEST in
   12766   [\\/]* | ?:[\\/]*)
   12767   ac_cv_path_PYTEST="$PYTEST" # Let the user override the test with a path.
   12768   ;;
   12769   *)
   12770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12771 for as_dir in $PATH
   12772 do
   12773   IFS=$as_save_IFS
   12774   test -z "$as_dir" && as_dir=.
   12775     for ac_exec_ext in '' $ac_executable_extensions; do
   12776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12777     ac_cv_path_PYTEST="$as_dir/$ac_word$ac_exec_ext"
   12778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12779     break 2
   12780   fi
   12781 done
   12782   done
   12783 IFS=$as_save_IFS
   12784 
   12785   ;;
   12786 esac
   12787 fi
   12788 PYTEST=$ac_cv_path_PYTEST
   12789 if test -n "$PYTEST"; then
   12790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTEST" >&5
   12791 $as_echo "$PYTEST" >&6; }
   12792 else
   12793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12794 $as_echo "no" >&6; }
   12795 fi
   12796 
   12797 
   12798   test -n "$PYTEST" && break
   12799 done
   12800 
   12801 if test -z "$PYTEST"; then :
   12802   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pytest not found, some system tests will be skipped" >&5
   12803 $as_echo "$as_me: WARNING: pytest not found, some system tests will be skipped" >&2;}
   12804 fi
   12805 
   12806 
   12807 
   12808 ac_ext=c
   12809 ac_cpp='$CPP $CPPFLAGS'
   12810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12813 if test -n "$ac_tool_prefix"; then
   12814   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   12815 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12817 $as_echo_n "checking for $ac_word... " >&6; }
   12818 if ${ac_cv_prog_CC+:} false; then :
   12819   $as_echo_n "(cached) " >&6
   12820 else
   12821   if test -n "$CC"; then
   12822   ac_cv_prog_CC="$CC" # Let the user override the test.
   12823 else
   12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12825 for as_dir in $PATH
   12826 do
   12827   IFS=$as_save_IFS
   12828   test -z "$as_dir" && as_dir=.
   12829     for ac_exec_ext in '' $ac_executable_extensions; do
   12830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12831     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   12832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12833     break 2
   12834   fi
   12835 done
   12836   done
   12837 IFS=$as_save_IFS
   12838 
   12839 fi
   12840 fi
   12841 CC=$ac_cv_prog_CC
   12842 if test -n "$CC"; then
   12843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12844 $as_echo "$CC" >&6; }
   12845 else
   12846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12847 $as_echo "no" >&6; }
   12848 fi
   12849 
   12850 
   12851 fi
   12852 if test -z "$ac_cv_prog_CC"; then
   12853   ac_ct_CC=$CC
   12854   # Extract the first word of "gcc", so it can be a program name with args.
   12855 set dummy gcc; ac_word=$2
   12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12857 $as_echo_n "checking for $ac_word... " >&6; }
   12858 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   12859   $as_echo_n "(cached) " >&6
   12860 else
   12861   if test -n "$ac_ct_CC"; then
   12862   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   12863 else
   12864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12865 for as_dir in $PATH
   12866 do
   12867   IFS=$as_save_IFS
   12868   test -z "$as_dir" && as_dir=.
   12869     for ac_exec_ext in '' $ac_executable_extensions; do
   12870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12871     ac_cv_prog_ac_ct_CC="gcc"
   12872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12873     break 2
   12874   fi
   12875 done
   12876   done
   12877 IFS=$as_save_IFS
   12878 
   12879 fi
   12880 fi
   12881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   12882 if test -n "$ac_ct_CC"; then
   12883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   12884 $as_echo "$ac_ct_CC" >&6; }
   12885 else
   12886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12887 $as_echo "no" >&6; }
   12888 fi
   12889 
   12890   if test "x$ac_ct_CC" = x; then
   12891     CC=""
   12892   else
   12893     case $cross_compiling:$ac_tool_warned in
   12894 yes:)
   12895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12897 ac_tool_warned=yes ;;
   12898 esac
   12899     CC=$ac_ct_CC
   12900   fi
   12901 else
   12902   CC="$ac_cv_prog_CC"
   12903 fi
   12904 
   12905 if test -z "$CC"; then
   12906           if test -n "$ac_tool_prefix"; then
   12907     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   12908 set dummy ${ac_tool_prefix}cc; ac_word=$2
   12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12910 $as_echo_n "checking for $ac_word... " >&6; }
   12911 if ${ac_cv_prog_CC+:} false; then :
   12912   $as_echo_n "(cached) " >&6
   12913 else
   12914   if test -n "$CC"; then
   12915   ac_cv_prog_CC="$CC" # Let the user override the test.
   12916 else
   12917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12918 for as_dir in $PATH
   12919 do
   12920   IFS=$as_save_IFS
   12921   test -z "$as_dir" && as_dir=.
   12922     for ac_exec_ext in '' $ac_executable_extensions; do
   12923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12924     ac_cv_prog_CC="${ac_tool_prefix}cc"
   12925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12926     break 2
   12927   fi
   12928 done
   12929   done
   12930 IFS=$as_save_IFS
   12931 
   12932 fi
   12933 fi
   12934 CC=$ac_cv_prog_CC
   12935 if test -n "$CC"; then
   12936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12937 $as_echo "$CC" >&6; }
   12938 else
   12939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12940 $as_echo "no" >&6; }
   12941 fi
   12942 
   12943 
   12944   fi
   12945 fi
   12946 if test -z "$CC"; then
   12947   # Extract the first word of "cc", so it can be a program name with args.
   12948 set dummy cc; ac_word=$2
   12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12950 $as_echo_n "checking for $ac_word... " >&6; }
   12951 if ${ac_cv_prog_CC+:} false; then :
   12952   $as_echo_n "(cached) " >&6
   12953 else
   12954   if test -n "$CC"; then
   12955   ac_cv_prog_CC="$CC" # Let the user override the test.
   12956 else
   12957   ac_prog_rejected=no
   12958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12959 for as_dir in $PATH
   12960 do
   12961   IFS=$as_save_IFS
   12962   test -z "$as_dir" && as_dir=.
   12963     for ac_exec_ext in '' $ac_executable_extensions; do
   12964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12965     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   12966        ac_prog_rejected=yes
   12967        continue
   12968      fi
   12969     ac_cv_prog_CC="cc"
   12970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12971     break 2
   12972   fi
   12973 done
   12974   done
   12975 IFS=$as_save_IFS
   12976 
   12977 if test $ac_prog_rejected = yes; then
   12978   # We found a bogon in the path, so make sure we never use it.
   12979   set dummy $ac_cv_prog_CC
   12980   shift
   12981   if test $# != 0; then
   12982     # We chose a different compiler from the bogus one.
   12983     # However, it has the same basename, so the bogon will be chosen
   12984     # first if we set CC to just the basename; use the full file name.
   12985     shift
   12986     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   12987   fi
   12988 fi
   12989 fi
   12990 fi
   12991 CC=$ac_cv_prog_CC
   12992 if test -n "$CC"; then
   12993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12994 $as_echo "$CC" >&6; }
   12995 else
   12996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12997 $as_echo "no" >&6; }
   12998 fi
   12999 
   13000 
   13001 fi
   13002 if test -z "$CC"; then
   13003   if test -n "$ac_tool_prefix"; then
   13004   for ac_prog in cl.exe
   13005   do
   13006     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   13007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13009 $as_echo_n "checking for $ac_word... " >&6; }
   13010 if ${ac_cv_prog_CC+:} false; then :
   13011   $as_echo_n "(cached) " >&6
   13012 else
   13013   if test -n "$CC"; then
   13014   ac_cv_prog_CC="$CC" # Let the user override the test.
   13015 else
   13016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13017 for as_dir in $PATH
   13018 do
   13019   IFS=$as_save_IFS
   13020   test -z "$as_dir" && as_dir=.
   13021     for ac_exec_ext in '' $ac_executable_extensions; do
   13022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13023     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   13024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13025     break 2
   13026   fi
   13027 done
   13028   done
   13029 IFS=$as_save_IFS
   13030 
   13031 fi
   13032 fi
   13033 CC=$ac_cv_prog_CC
   13034 if test -n "$CC"; then
   13035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   13036 $as_echo "$CC" >&6; }
   13037 else
   13038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13039 $as_echo "no" >&6; }
   13040 fi
   13041 
   13042 
   13043     test -n "$CC" && break
   13044   done
   13045 fi
   13046 if test -z "$CC"; then
   13047   ac_ct_CC=$CC
   13048   for ac_prog in cl.exe
   13049 do
   13050   # Extract the first word of "$ac_prog", so it can be a program name with args.
   13051 set dummy $ac_prog; ac_word=$2
   13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13053 $as_echo_n "checking for $ac_word... " >&6; }
   13054 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   13055   $as_echo_n "(cached) " >&6
   13056 else
   13057   if test -n "$ac_ct_CC"; then
   13058   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   13059 else
   13060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13061 for as_dir in $PATH
   13062 do
   13063   IFS=$as_save_IFS
   13064   test -z "$as_dir" && as_dir=.
   13065     for ac_exec_ext in '' $ac_executable_extensions; do
   13066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13067     ac_cv_prog_ac_ct_CC="$ac_prog"
   13068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13069     break 2
   13070   fi
   13071 done
   13072   done
   13073 IFS=$as_save_IFS
   13074 
   13075 fi
   13076 fi
   13077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   13078 if test -n "$ac_ct_CC"; then
   13079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   13080 $as_echo "$ac_ct_CC" >&6; }
   13081 else
   13082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13083 $as_echo "no" >&6; }
   13084 fi
   13085 
   13086 
   13087   test -n "$ac_ct_CC" && break
   13088 done
   13089 
   13090   if test "x$ac_ct_CC" = x; then
   13091     CC=""
   13092   else
   13093     case $cross_compiling:$ac_tool_warned in
   13094 yes:)
   13095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   13096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   13097 ac_tool_warned=yes ;;
   13098 esac
   13099     CC=$ac_ct_CC
   13100   fi
   13101 fi
   13102 
   13103 fi
   13104 
   13105 
   13106 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   13107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   13108 as_fn_error $? "no acceptable C compiler found in \$PATH
   13109 See \`config.log' for more details" "$LINENO" 5; }
   13110 
   13111 # Provide some information about the compiler.
   13112 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   13113 set X $ac_compile
   13114 ac_compiler=$2
   13115 for ac_option in --version -v -V -qversion; do
   13116   { { ac_try="$ac_compiler $ac_option >&5"
   13117 case "(($ac_try" in
   13118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13119   *) ac_try_echo=$ac_try;;
   13120 esac
   13121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   13122 $as_echo "$ac_try_echo"; } >&5
   13123   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   13124   ac_status=$?
   13125   if test -s conftest.err; then
   13126     sed '10a\
   13127 ... rest of stderr output deleted ...
   13128          10q' conftest.err >conftest.er1
   13129     cat conftest.er1 >&5
   13130   fi
   13131   rm -f conftest.er1 conftest.err
   13132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   13133   test $ac_status = 0; }
   13134 done
   13135 
   13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   13137 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   13138 if ${ac_cv_c_compiler_gnu+:} false; then :
   13139   $as_echo_n "(cached) " >&6
   13140 else
   13141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13142 /* end confdefs.h.  */
   13143 
   13144 int
   13145 main ()
   13146 {
   13147 #ifndef __GNUC__
   13148        choke me
   13149 #endif
   13150 
   13151   ;
   13152   return 0;
   13153 }
   13154 _ACEOF
   13155 if ac_fn_c_try_compile "$LINENO"; then :
   13156   ac_compiler_gnu=yes
   13157 else
   13158   ac_compiler_gnu=no
   13159 fi
   13160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13161 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   13162 
   13163 fi
   13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   13165 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   13166 if test $ac_compiler_gnu = yes; then
   13167   GCC=yes
   13168 else
   13169   GCC=
   13170 fi
   13171 ac_test_CFLAGS=${CFLAGS+set}
   13172 ac_save_CFLAGS=$CFLAGS
   13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   13174 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   13175 if ${ac_cv_prog_cc_g+:} false; then :
   13176   $as_echo_n "(cached) " >&6
   13177 else
   13178   ac_save_c_werror_flag=$ac_c_werror_flag
   13179    ac_c_werror_flag=yes
   13180    ac_cv_prog_cc_g=no
   13181    CFLAGS="-g"
   13182    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13183 /* end confdefs.h.  */
   13184 
   13185 int
   13186 main ()
   13187 {
   13188 
   13189   ;
   13190   return 0;
   13191 }
   13192 _ACEOF
   13193 if ac_fn_c_try_compile "$LINENO"; then :
   13194   ac_cv_prog_cc_g=yes
   13195 else
   13196   CFLAGS=""
   13197       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13198 /* end confdefs.h.  */
   13199 
   13200 int
   13201 main ()
   13202 {
   13203 
   13204   ;
   13205   return 0;
   13206 }
   13207 _ACEOF
   13208 if ac_fn_c_try_compile "$LINENO"; then :
   13209 
   13210 else
   13211   ac_c_werror_flag=$ac_save_c_werror_flag
   13212 	 CFLAGS="-g"
   13213 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13214 /* end confdefs.h.  */
   13215 
   13216 int
   13217 main ()
   13218 {
   13219 
   13220   ;
   13221   return 0;
   13222 }
   13223 _ACEOF
   13224 if ac_fn_c_try_compile "$LINENO"; then :
   13225   ac_cv_prog_cc_g=yes
   13226 fi
   13227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13228 fi
   13229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13230 fi
   13231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13232    ac_c_werror_flag=$ac_save_c_werror_flag
   13233 fi
   13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   13235 $as_echo "$ac_cv_prog_cc_g" >&6; }
   13236 if test "$ac_test_CFLAGS" = set; then
   13237   CFLAGS=$ac_save_CFLAGS
   13238 elif test $ac_cv_prog_cc_g = yes; then
   13239   if test "$GCC" = yes; then
   13240     CFLAGS="-g -O2"
   13241   else
   13242     CFLAGS="-g"
   13243   fi
   13244 else
   13245   if test "$GCC" = yes; then
   13246     CFLAGS="-O2"
   13247   else
   13248     CFLAGS=
   13249   fi
   13250 fi
   13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   13252 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   13253 if ${ac_cv_prog_cc_c89+:} false; then :
   13254   $as_echo_n "(cached) " >&6
   13255 else
   13256   ac_cv_prog_cc_c89=no
   13257 ac_save_CC=$CC
   13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13259 /* end confdefs.h.  */
   13260 #include <stdarg.h>
   13261 #include <stdio.h>
   13262 struct stat;
   13263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   13264 struct buf { int x; };
   13265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   13266 static char *e (p, i)
   13267      char **p;
   13268      int i;
   13269 {
   13270   return p[i];
   13271 }
   13272 static char *f (char * (*g) (char **, int), char **p, ...)
   13273 {
   13274   char *s;
   13275   va_list v;
   13276   va_start (v,p);
   13277   s = g (p, va_arg (v,int));
   13278   va_end (v);
   13279   return s;
   13280 }
   13281 
   13282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   13283    function prototypes and stuff, but not '\xHH' hex character constants.
   13284    These don't provoke an error unfortunately, instead are silently treated
   13285    as 'x'.  The following induces an error, until -std is added to get
   13286    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   13287    array size at least.  It's necessary to write '\x00'==0 to get something
   13288    that's true only with -std.  */
   13289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   13290 
   13291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   13292    inside strings and character constants.  */
   13293 #define FOO(x) 'x'
   13294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   13295 
   13296 int test (int i, double x);
   13297 struct s1 {int (*f) (int a);};
   13298 struct s2 {int (*f) (double a);};
   13299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   13300 int argc;
   13301 char **argv;
   13302 int
   13303 main ()
   13304 {
   13305 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   13306   ;
   13307   return 0;
   13308 }
   13309 _ACEOF
   13310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   13311 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   13312 do
   13313   CC="$ac_save_CC $ac_arg"
   13314   if ac_fn_c_try_compile "$LINENO"; then :
   13315   ac_cv_prog_cc_c89=$ac_arg
   13316 fi
   13317 rm -f core conftest.err conftest.$ac_objext
   13318   test "x$ac_cv_prog_cc_c89" != "xno" && break
   13319 done
   13320 rm -f conftest.$ac_ext
   13321 CC=$ac_save_CC
   13322 
   13323 fi
   13324 # AC_CACHE_VAL
   13325 case "x$ac_cv_prog_cc_c89" in
   13326   x)
   13327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   13328 $as_echo "none needed" >&6; } ;;
   13329   xno)
   13330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   13331 $as_echo "unsupported" >&6; } ;;
   13332   *)
   13333     CC="$CC $ac_cv_prog_cc_c89"
   13334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   13335 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   13336 esac
   13337 if test "x$ac_cv_prog_cc_c89" != xno; then :
   13338 
   13339 fi
   13340 
   13341 ac_ext=c
   13342 ac_cpp='$CPP $CPPFLAGS'
   13343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   13346 
   13347    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   13348 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   13349 if ${ac_cv_prog_cc_c99+:} false; then :
   13350   $as_echo_n "(cached) " >&6
   13351 else
   13352   ac_cv_prog_cc_c99=no
   13353 ac_save_CC=$CC
   13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13355 /* end confdefs.h.  */
   13356 #include <stdarg.h>
   13357 #include <stdbool.h>
   13358 #include <stdlib.h>
   13359 #include <wchar.h>
   13360 #include <stdio.h>
   13361 
   13362 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   13363 #define debug(...) fprintf (stderr, __VA_ARGS__)
   13364 #define showlist(...) puts (#__VA_ARGS__)
   13365 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   13366 static void
   13367 test_varargs_macros (void)
   13368 {
   13369   int x = 1234;
   13370   int y = 5678;
   13371   debug ("Flag");
   13372   debug ("X = %d\n", x);
   13373   showlist (The first, second, and third items.);
   13374   report (x>y, "x is %d but y is %d", x, y);
   13375 }
   13376 
   13377 // Check long long types.
   13378 #define BIG64 18446744073709551615ull
   13379 #define BIG32 4294967295ul
   13380 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   13381 #if !BIG_OK
   13382   your preprocessor is broken;
   13383 #endif
   13384 #if BIG_OK
   13385 #else
   13386   your preprocessor is broken;
   13387 #endif
   13388 static long long int bignum = -9223372036854775807LL;
   13389 static unsigned long long int ubignum = BIG64;
   13390 
   13391 struct incomplete_array
   13392 {
   13393   int datasize;
   13394   double data[];
   13395 };
   13396 
   13397 struct named_init {
   13398   int number;
   13399   const wchar_t *name;
   13400   double average;
   13401 };
   13402 
   13403 typedef const char *ccp;
   13404 
   13405 static inline int
   13406 test_restrict (ccp restrict text)
   13407 {
   13408   // See if C++-style comments work.
   13409   // Iterate through items via the restricted pointer.
   13410   // Also check for declarations in for loops.
   13411   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   13412     continue;
   13413   return 0;
   13414 }
   13415 
   13416 // Check varargs and va_copy.
   13417 static void
   13418 test_varargs (const char *format, ...)
   13419 {
   13420   va_list args;
   13421   va_start (args, format);
   13422   va_list args_copy;
   13423   va_copy (args_copy, args);
   13424 
   13425   const char *str;
   13426   int number;
   13427   float fnumber;
   13428 
   13429   while (*format)
   13430     {
   13431       switch (*format++)
   13432 	{
   13433 	case 's': // string
   13434 	  str = va_arg (args_copy, const char *);
   13435 	  break;
   13436 	case 'd': // int
   13437 	  number = va_arg (args_copy, int);
   13438 	  break;
   13439 	case 'f': // float
   13440 	  fnumber = va_arg (args_copy, double);
   13441 	  break;
   13442 	default:
   13443 	  break;
   13444 	}
   13445     }
   13446   va_end (args_copy);
   13447   va_end (args);
   13448 }
   13449 
   13450 int
   13451 main ()
   13452 {
   13453 
   13454   // Check bool.
   13455   _Bool success = false;
   13456 
   13457   // Check restrict.
   13458   if (test_restrict ("String literal") == 0)
   13459     success = true;
   13460   char *restrict newvar = "Another string";
   13461 
   13462   // Check varargs.
   13463   test_varargs ("s, d' f .", "string", 65, 34.234);
   13464   test_varargs_macros ();
   13465 
   13466   // Check flexible array members.
   13467   struct incomplete_array *ia =
   13468     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   13469   ia->datasize = 10;
   13470   for (int i = 0; i < ia->datasize; ++i)
   13471     ia->data[i] = i * 1.234;
   13472 
   13473   // Check named initializers.
   13474   struct named_init ni = {
   13475     .number = 34,
   13476     .name = L"Test wide string",
   13477     .average = 543.34343,
   13478   };
   13479 
   13480   ni.number = 58;
   13481 
   13482   int dynamic_array[ni.number];
   13483   dynamic_array[ni.number - 1] = 543;
   13484 
   13485   // work around unused variable warnings
   13486   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   13487 	  || dynamic_array[ni.number - 1] != 543);
   13488 
   13489   ;
   13490   return 0;
   13491 }
   13492 _ACEOF
   13493 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   13494 do
   13495   CC="$ac_save_CC $ac_arg"
   13496   if ac_fn_c_try_compile "$LINENO"; then :
   13497   ac_cv_prog_cc_c99=$ac_arg
   13498 fi
   13499 rm -f core conftest.err conftest.$ac_objext
   13500   test "x$ac_cv_prog_cc_c99" != "xno" && break
   13501 done
   13502 rm -f conftest.$ac_ext
   13503 CC=$ac_save_CC
   13504 
   13505 fi
   13506 # AC_CACHE_VAL
   13507 case "x$ac_cv_prog_cc_c99" in
   13508   x)
   13509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   13510 $as_echo "none needed" >&6; } ;;
   13511   xno)
   13512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   13513 $as_echo "unsupported" >&6; } ;;
   13514   *)
   13515     CC="$CC $ac_cv_prog_cc_c99"
   13516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   13517 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   13518 esac
   13519 if test "x$ac_cv_prog_cc_c99" != xno; then :
   13520 
   13521 fi
   13522 
   13523 
   13524 
   13525 #
   13526 # Using Solaris linker with gcc on Solaris breaks Thread Local Storage
   13527 #
   13528 case $host in #(
   13529   *-solaris*) :
   13530 
   13531 	    if test "$GCC" = "yes"; then :
   13532   LDFLAGS="$LDFLAGS -zrelax=transtls"
   13533 		   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&5
   13534 $as_echo "$as_me: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&2;}
   13535 
   13536 fi
   13537 	 ;; #(
   13538   *) :
   13539      ;;
   13540 esac
   13541 
   13542 #
   13543 # CCNOOPT defaults to -O0 on gcc and disables optimization when is last
   13544 #
   13545 if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
   13546 	CCNOOPT="-O0"
   13547 fi
   13548 
   13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   13550 $as_echo_n "checking for ANSI C header files... " >&6; }
   13551 if ${ac_cv_header_stdc+:} false; then :
   13552   $as_echo_n "(cached) " >&6
   13553 else
   13554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13555 /* end confdefs.h.  */
   13556 #include <stdlib.h>
   13557 #include <stdarg.h>
   13558 #include <string.h>
   13559 #include <float.h>
   13560 
   13561 int
   13562 main ()
   13563 {
   13564 
   13565   ;
   13566   return 0;
   13567 }
   13568 _ACEOF
   13569 if ac_fn_c_try_compile "$LINENO"; then :
   13570   ac_cv_header_stdc=yes
   13571 else
   13572   ac_cv_header_stdc=no
   13573 fi
   13574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13575 
   13576 if test $ac_cv_header_stdc = yes; then
   13577   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   13578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13579 /* end confdefs.h.  */
   13580 #include <string.h>
   13581 
   13582 _ACEOF
   13583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13584   $EGREP "memchr" >/dev/null 2>&1; then :
   13585 
   13586 else
   13587   ac_cv_header_stdc=no
   13588 fi
   13589 rm -f conftest*
   13590 
   13591 fi
   13592 
   13593 if test $ac_cv_header_stdc = yes; then
   13594   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   13595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13596 /* end confdefs.h.  */
   13597 #include <stdlib.h>
   13598 
   13599 _ACEOF
   13600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13601   $EGREP "free" >/dev/null 2>&1; then :
   13602 
   13603 else
   13604   ac_cv_header_stdc=no
   13605 fi
   13606 rm -f conftest*
   13607 
   13608 fi
   13609 
   13610 if test $ac_cv_header_stdc = yes; then
   13611   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   13612   if test "$cross_compiling" = yes; then :
   13613   :
   13614 else
   13615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13616 /* end confdefs.h.  */
   13617 #include <ctype.h>
   13618 #include <stdlib.h>
   13619 #if ((' ' & 0x0FF) == 0x020)
   13620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   13621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   13622 #else
   13623 # define ISLOWER(c) \
   13624 		   (('a' <= (c) && (c) <= 'i') \
   13625 		     || ('j' <= (c) && (c) <= 'r') \
   13626 		     || ('s' <= (c) && (c) <= 'z'))
   13627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   13628 #endif
   13629 
   13630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   13631 int
   13632 main ()
   13633 {
   13634   int i;
   13635   for (i = 0; i < 256; i++)
   13636     if (XOR (islower (i), ISLOWER (i))
   13637 	|| toupper (i) != TOUPPER (i))
   13638       return 2;
   13639   return 0;
   13640 }
   13641 _ACEOF
   13642 if ac_fn_c_try_run "$LINENO"; then :
   13643 
   13644 else
   13645   ac_cv_header_stdc=no
   13646 fi
   13647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13648   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13649 fi
   13650 
   13651 fi
   13652 fi
   13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   13654 $as_echo "$ac_cv_header_stdc" >&6; }
   13655 if test $ac_cv_header_stdc = yes; then
   13656 
   13657 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   13658 
   13659 fi
   13660 
   13661 
   13662 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
   13663 do :
   13664   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13665 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   13666 #ifdef HAVE_SYS_PARAM_H
   13667 # include <sys/param.h>
   13668 #endif
   13669 #ifdef HAVE_SYS_SOCKET_H
   13670 # include <sys/socket.h>
   13671 #endif
   13672 
   13673 "
   13674 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13675   cat >>confdefs.h <<_ACEOF
   13676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13677 _ACEOF
   13678 
   13679 fi
   13680 
   13681 done
   13682 
   13683 
   13684 #
   13685 # Check for thread local storage
   13686 #
   13687 for ac_header in threads.h
   13688 do :
   13689   ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
   13690 if test "x$ac_cv_header_threads_h" = xyes; then :
   13691   cat >>confdefs.h <<_ACEOF
   13692 #define HAVE_THREADS_H 1
   13693 _ACEOF
   13694 
   13695 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 Thread-Local Storage using thread_local" >&5
   13696 $as_echo_n "checking for C11 Thread-Local Storage using thread_local... " >&6; }
   13697 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13698 /* end confdefs.h.  */
   13699 
   13700 				  #include <threads.h>
   13701 
   13702 int
   13703 main ()
   13704 {
   13705 
   13706 				  static thread_local int tls = 0;
   13707 				  return (tls);
   13708 
   13709   ;
   13710   return 0;
   13711 }
   13712 
   13713 _ACEOF
   13714 if ac_fn_c_try_compile "$LINENO"; then :
   13715 
   13716 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13717 $as_echo "yes" >&6; }
   13718 
   13719 $as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
   13720 
   13721 
   13722 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13723 
   13724 
   13725 else
   13726 
   13727 			     as_fn_error $? "Thread Local Storage support required, update your toolchain to build BIND 9" "$LINENO" 5
   13728 
   13729 fi
   13730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13731 
   13732 else
   13733 
   13734 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Thread-Local Storage using __thread" >&5
   13735 $as_echo_n "checking for Thread-Local Storage using __thread... " >&6; }
   13736 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13737 /* end confdefs.h.  */
   13738 
   13739 
   13740 int
   13741 main ()
   13742 {
   13743 
   13744 				  static __thread int tls = 0;
   13745 				  return (tls);
   13746 
   13747   ;
   13748   return 0;
   13749 }
   13750 
   13751 _ACEOF
   13752 if ac_fn_c_try_compile "$LINENO"; then :
   13753 
   13754 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13755 $as_echo "yes" >&6; }
   13756 
   13757 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
   13758 
   13759 
   13760 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13761 
   13762 
   13763 else
   13764 
   13765 			     as_fn_error $? "Thread Local Storage support required, update your toolchain to build BIND 9" "$LINENO" 5
   13766 
   13767 fi
   13768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13769 
   13770 fi
   13771 
   13772 done
   13773 
   13774 
   13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   13776 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   13777 if ${ac_cv_c_const+:} false; then :
   13778   $as_echo_n "(cached) " >&6
   13779 else
   13780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13781 /* end confdefs.h.  */
   13782 
   13783 int
   13784 main ()
   13785 {
   13786 
   13787 #ifndef __cplusplus
   13788   /* Ultrix mips cc rejects this sort of thing.  */
   13789   typedef int charset[2];
   13790   const charset cs = { 0, 0 };
   13791   /* SunOS 4.1.1 cc rejects this.  */
   13792   char const *const *pcpcc;
   13793   char **ppc;
   13794   /* NEC SVR4.0.2 mips cc rejects this.  */
   13795   struct point {int x, y;};
   13796   static struct point const zero = {0,0};
   13797   /* AIX XL C 1.02.0.0 rejects this.
   13798      It does not let you subtract one const X* pointer from another in
   13799      an arm of an if-expression whose if-part is not a constant
   13800      expression */
   13801   const char *g = "string";
   13802   pcpcc = &g + (g ? g-g : 0);
   13803   /* HPUX 7.0 cc rejects these. */
   13804   ++pcpcc;
   13805   ppc = (char**) pcpcc;
   13806   pcpcc = (char const *const *) ppc;
   13807   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   13808     char tx;
   13809     char *t = &tx;
   13810     char const *s = 0 ? (char *) 0 : (char const *) 0;
   13811 
   13812     *t++ = 0;
   13813     if (s) return 0;
   13814   }
   13815   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   13816     int x[] = {25, 17};
   13817     const int *foo = &x[0];
   13818     ++foo;
   13819   }
   13820   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   13821     typedef const int *iptr;
   13822     iptr p = 0;
   13823     ++p;
   13824   }
   13825   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   13826        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   13827     struct s { int j; const int *ap[3]; } bx;
   13828     struct s *b = &bx; b->j = 5;
   13829   }
   13830   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   13831     const int foo = 10;
   13832     if (!foo) return 0;
   13833   }
   13834   return !cs[0] && !zero.x;
   13835 #endif
   13836 
   13837   ;
   13838   return 0;
   13839 }
   13840 _ACEOF
   13841 if ac_fn_c_try_compile "$LINENO"; then :
   13842   ac_cv_c_const=yes
   13843 else
   13844   ac_cv_c_const=no
   13845 fi
   13846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13847 fi
   13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   13849 $as_echo "$ac_cv_c_const" >&6; }
   13850 if test $ac_cv_c_const = no; then
   13851 
   13852 $as_echo "#define const /**/" >>confdefs.h
   13853 
   13854 fi
   13855 
   13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   13857 $as_echo_n "checking for inline... " >&6; }
   13858 if ${ac_cv_c_inline+:} false; then :
   13859   $as_echo_n "(cached) " >&6
   13860 else
   13861   ac_cv_c_inline=no
   13862 for ac_kw in inline __inline__ __inline; do
   13863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13864 /* end confdefs.h.  */
   13865 #ifndef __cplusplus
   13866 typedef int foo_t;
   13867 static $ac_kw foo_t static_foo () {return 0; }
   13868 $ac_kw foo_t foo () {return 0; }
   13869 #endif
   13870 
   13871 _ACEOF
   13872 if ac_fn_c_try_compile "$LINENO"; then :
   13873   ac_cv_c_inline=$ac_kw
   13874 fi
   13875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13876   test "$ac_cv_c_inline" != no && break
   13877 done
   13878 
   13879 fi
   13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   13881 $as_echo "$ac_cv_c_inline" >&6; }
   13882 
   13883 case $ac_cv_c_inline in
   13884   inline | yes) ;;
   13885   *)
   13886     case $ac_cv_c_inline in
   13887       no) ac_val=;;
   13888       *) ac_val=$ac_cv_c_inline;;
   13889     esac
   13890     cat >>confdefs.h <<_ACEOF
   13891 #ifndef __cplusplus
   13892 #define inline $ac_val
   13893 #endif
   13894 _ACEOF
   13895     ;;
   13896 esac
   13897 
   13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
   13899 $as_echo_n "checking for working volatile... " >&6; }
   13900 if ${ac_cv_c_volatile+:} false; then :
   13901   $as_echo_n "(cached) " >&6
   13902 else
   13903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13904 /* end confdefs.h.  */
   13905 
   13906 int
   13907 main ()
   13908 {
   13909 
   13910 volatile int x;
   13911 int * volatile y = (int *) 0;
   13912 return !x && !y;
   13913   ;
   13914   return 0;
   13915 }
   13916 _ACEOF
   13917 if ac_fn_c_try_compile "$LINENO"; then :
   13918   ac_cv_c_volatile=yes
   13919 else
   13920   ac_cv_c_volatile=no
   13921 fi
   13922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13923 fi
   13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
   13925 $as_echo "$ac_cv_c_volatile" >&6; }
   13926 if test $ac_cv_c_volatile = no; then
   13927 
   13928 $as_echo "#define volatile /**/" >>confdefs.h
   13929 
   13930 fi
   13931 
   13932 
   13933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
   13934 $as_echo_n "checking for flexible array members... " >&6; }
   13935 if ${ac_cv_c_flexmember+:} false; then :
   13936   $as_echo_n "(cached) " >&6
   13937 else
   13938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13939 /* end confdefs.h.  */
   13940 #include <stdlib.h>
   13941 	    #include <stdio.h>
   13942 	    #include <stddef.h>
   13943 	    struct s { int n; double d[]; };
   13944 int
   13945 main ()
   13946 {
   13947 int m = getchar ();
   13948 	    struct s *p = malloc (offsetof (struct s, d)
   13949 				  + m * sizeof (double));
   13950 	    p->d[0] = 0.0;
   13951 	    return p->d != (double *) NULL;
   13952   ;
   13953   return 0;
   13954 }
   13955 _ACEOF
   13956 if ac_fn_c_try_compile "$LINENO"; then :
   13957   ac_cv_c_flexmember=yes
   13958 else
   13959   ac_cv_c_flexmember=no
   13960 fi
   13961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13962 fi
   13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
   13964 $as_echo "$ac_cv_c_flexmember" >&6; }
   13965   if test $ac_cv_c_flexmember = yes; then
   13966 
   13967 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
   13968 
   13969   else
   13970     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
   13971 
   13972   fi
   13973 
   13974 
   13975 #
   13976 # Check for yield support on ARM processors
   13977 #
   13978 case $host in #(
   13979   arm*) :
   13980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yield instruction support" >&5
   13981 $as_echo_n "checking for yield instruction support... " >&6; }
   13982 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13983 /* end confdefs.h.  */
   13984 
   13985 int
   13986 main ()
   13987 {
   13988 __asm__ __volatile__ ("yield")
   13989   ;
   13990   return 0;
   13991 }
   13992 _ACEOF
   13993 if ac_fn_c_try_compile "$LINENO"; then :
   13994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13995 $as_echo "yes" >&6; }
   13996 
   13997 $as_echo "#define HAVE_ARM_YIELD 1" >>confdefs.h
   13998 
   13999 else
   14000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14001 $as_echo "no" >&6; }
   14002 fi
   14003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   14004   *) :
   14005      ;;
   14006 esac
   14007 
   14008 #
   14009 # Check for pause support on SPARC processors
   14010 #
   14011 case $host in #(
   14012   sparc*) :
   14013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause instruction support" >&5
   14014 $as_echo_n "checking for pause instruction support... " >&6; }
   14015 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14016 /* end confdefs.h.  */
   14017 
   14018 int
   14019 main ()
   14020 {
   14021 __asm__ __volatile__ ("pause")
   14022   ;
   14023   return 0;
   14024 }
   14025 _ACEOF
   14026 if ac_fn_c_try_compile "$LINENO"; then :
   14027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14028 $as_echo "yes" >&6; }
   14029 
   14030 $as_echo "#define HAVE_SPARC_PAUSE 1" >>confdefs.h
   14031 
   14032 else
   14033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14034 $as_echo "no" >&6; }
   14035 fi
   14036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   14037   *) :
   14038      ;;
   14039 esac
   14040 
   14041 for ac_func in sysctlbyname
   14042 do :
   14043   ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
   14044 if test "x$ac_cv_func_sysctlbyname" = xyes; then :
   14045   cat >>confdefs.h <<_ACEOF
   14046 #define HAVE_SYSCTLBYNAME 1
   14047 _ACEOF
   14048 
   14049 fi
   14050 done
   14051 
   14052 
   14053 #
   14054 # Check for the existence of mmap to enable the fast format zones
   14055 #
   14056 for ac_func in mmap
   14057 do :
   14058   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   14059 if test "x$ac_cv_func_mmap" = xyes; then :
   14060   cat >>confdefs.h <<_ACEOF
   14061 #define HAVE_MMAP 1
   14062 _ACEOF
   14063 
   14064 fi
   14065 done
   14066 
   14067 
   14068 #
   14069 # Older versions of HP/UX don't define seteuid() and setegid()
   14070 #
   14071 for ac_func in seteuid setresuid
   14072 do :
   14073   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14074 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14075 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14076   cat >>confdefs.h <<_ACEOF
   14077 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14078 _ACEOF
   14079 
   14080 fi
   14081 done
   14082 
   14083 for ac_func in setegid setresgid
   14084 do :
   14085   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14086 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14087 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14088   cat >>confdefs.h <<_ACEOF
   14089 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14090 _ACEOF
   14091 
   14092 fi
   14093 done
   14094 
   14095 
   14096 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   14097 if test "x$ac_cv_type_size_t" = xyes; then :
   14098 
   14099 else
   14100 
   14101 cat >>confdefs.h <<_ACEOF
   14102 #define size_t unsigned int
   14103 _ACEOF
   14104 
   14105 fi
   14106 
   14107 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   14108 if test "x$ac_cv_type_ssize_t" = xyes; then :
   14109 
   14110 else
   14111 
   14112 cat >>confdefs.h <<_ACEOF
   14113 #define ssize_t int
   14114 _ACEOF
   14115 
   14116 fi
   14117 
   14118 
   14119   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
   14120 if test "x$ac_cv_type_uintptr_t" = xyes; then :
   14121 
   14122 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
   14123 
   14124 else
   14125   for ac_type in 'unsigned int' 'unsigned long int' \
   14126 	'unsigned long long int'; do
   14127        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14128 /* end confdefs.h.  */
   14129 $ac_includes_default
   14130 int
   14131 main ()
   14132 {
   14133 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   14134 test_array [0] = 0;
   14135 return test_array [0];
   14136 
   14137   ;
   14138   return 0;
   14139 }
   14140 _ACEOF
   14141 if ac_fn_c_try_compile "$LINENO"; then :
   14142 
   14143 cat >>confdefs.h <<_ACEOF
   14144 #define uintptr_t $ac_type
   14145 _ACEOF
   14146 
   14147 	  ac_type=
   14148 fi
   14149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14150        test -z "$ac_type" && break
   14151      done
   14152 fi
   14153 
   14154 
   14155 
   14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   14157 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   14158 if ${ac_cv_header_time+:} false; then :
   14159   $as_echo_n "(cached) " >&6
   14160 else
   14161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14162 /* end confdefs.h.  */
   14163 #include <sys/types.h>
   14164 #include <sys/time.h>
   14165 #include <time.h>
   14166 
   14167 int
   14168 main ()
   14169 {
   14170 if ((struct tm *) 0)
   14171 return 0;
   14172   ;
   14173   return 0;
   14174 }
   14175 _ACEOF
   14176 if ac_fn_c_try_compile "$LINENO"; then :
   14177   ac_cv_header_time=yes
   14178 else
   14179   ac_cv_header_time=no
   14180 fi
   14181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14182 fi
   14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   14184 $as_echo "$ac_cv_header_time" >&6; }
   14185 if test $ac_cv_header_time = yes; then
   14186 
   14187 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   14188 
   14189 fi
   14190 
   14191 
   14192 #
   14193 # check for uname library routine
   14194 #
   14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
   14196 $as_echo_n "checking for uname... " >&6; }
   14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14198 /* end confdefs.h.  */
   14199 #include <sys/utsname.h>
   14200        #include <stdio.h>
   14201 
   14202 int
   14203 main ()
   14204 {
   14205 
   14206        struct utsname uts;
   14207        uname(&uts);
   14208        printf("running on %s %s %s for %s\n",
   14209 	      uts.sysname, uts.release, uts.version, uts.machine);
   14210 
   14211   ;
   14212   return 0;
   14213 }
   14214 _ACEOF
   14215 if ac_fn_c_try_compile "$LINENO"; then :
   14216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14217 $as_echo "yes" >&6; }
   14218 
   14219 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
   14220 
   14221 
   14222 else
   14223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14224 $as_echo "no" >&6; }
   14225    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
   14226 $as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
   14227 
   14228 fi
   14229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14230 
   14231 #
   14232 # check for GCC noreturn attribute
   14233 #
   14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
   14235 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
   14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14237 /* end confdefs.h.  */
   14238 
   14239 int
   14240 main ()
   14241 {
   14242 void foo() __attribute__((noreturn));
   14243   ;
   14244   return 0;
   14245 }
   14246 _ACEOF
   14247 if ac_fn_c_try_compile "$LINENO"; then :
   14248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14249 $as_echo "yes" >&6; }
   14250 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   14251 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
   14252 else
   14253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14254 $as_echo "no" >&6; }
   14255 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   14256 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
   14257 fi
   14258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14259 
   14260 
   14261 
   14262 #
   14263 # check if we have kqueue
   14264 #
   14265 # Check whether --enable-kqueue was given.
   14266 if test "${enable_kqueue+set}" = set; then :
   14267   enableval=$enable_kqueue;
   14268 else
   14269   enable_kqueue="yes"
   14270 fi
   14271 
   14272 
   14273 if test "$enable_kqueue" = "yes"; then :
   14274   for ac_func in kqueue
   14275 do :
   14276   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
   14277 if test "x$ac_cv_func_kqueue" = xyes; then :
   14278   cat >>confdefs.h <<_ACEOF
   14279 #define HAVE_KQUEUE 1
   14280 _ACEOF
   14281 
   14282 fi
   14283 done
   14284 
   14285 fi
   14286 
   14287 #
   14288 # check if we have epoll.  Linux kernel 2.4 has epoll_create() which fails,
   14289 # so we need to try running the code, not just test its existence.
   14290 #
   14291 # Check whether --enable-epoll was given.
   14292 if test "${enable_epoll+set}" = set; then :
   14293   enableval=$enable_epoll;
   14294 else
   14295   enable_epoll="yes"
   14296 fi
   14297 
   14298 
   14299 if test "$enable_epoll" = "yes"; then :
   14300   for ac_func in epoll_create1
   14301 do :
   14302   ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
   14303 if test "x$ac_cv_func_epoll_create1" = xyes; then :
   14304   cat >>confdefs.h <<_ACEOF
   14305 #define HAVE_EPOLL_CREATE1 1
   14306 _ACEOF
   14307 
   14308 fi
   14309 done
   14310 
   14311 fi
   14312 
   14313 #
   14314 # check if we support /dev/poll
   14315 #
   14316 # Check whether --enable-devpoll was given.
   14317 if test "${enable_devpoll+set}" = set; then :
   14318   enableval=$enable_devpoll;
   14319 else
   14320   enable_devpoll="yes"
   14321 fi
   14322 
   14323 if test "$enable_devpoll" = "yes"; then :
   14324   for ac_header in sys/devpoll.h devpoll.h
   14325 do :
   14326   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14327 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   14328 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   14329   cat >>confdefs.h <<_ACEOF
   14330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14331 _ACEOF
   14332 
   14333 fi
   14334 
   14335 done
   14336 
   14337 fi
   14338 
   14339 #
   14340 # Find the machine's endian flavor.
   14341 #
   14342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   14343 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   14344 if ${ac_cv_c_bigendian+:} false; then :
   14345   $as_echo_n "(cached) " >&6
   14346 else
   14347   ac_cv_c_bigendian=unknown
   14348     # See if we're dealing with a universal compiler.
   14349     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14350 /* end confdefs.h.  */
   14351 #ifndef __APPLE_CC__
   14352 	       not a universal capable compiler
   14353 	     #endif
   14354 	     typedef int dummy;
   14355 
   14356 _ACEOF
   14357 if ac_fn_c_try_compile "$LINENO"; then :
   14358 
   14359 	# Check for potential -arch flags.  It is not universal unless
   14360 	# there are at least two -arch flags with different values.
   14361 	ac_arch=
   14362 	ac_prev=
   14363 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   14364 	 if test -n "$ac_prev"; then
   14365 	   case $ac_word in
   14366 	     i?86 | x86_64 | ppc | ppc64)
   14367 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   14368 		 ac_arch=$ac_word
   14369 	       else
   14370 		 ac_cv_c_bigendian=universal
   14371 		 break
   14372 	       fi
   14373 	       ;;
   14374 	   esac
   14375 	   ac_prev=
   14376 	 elif test "x$ac_word" = "x-arch"; then
   14377 	   ac_prev=arch
   14378 	 fi
   14379        done
   14380 fi
   14381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14382     if test $ac_cv_c_bigendian = unknown; then
   14383       # See if sys/param.h defines the BYTE_ORDER macro.
   14384       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14385 /* end confdefs.h.  */
   14386 #include <sys/types.h>
   14387 	     #include <sys/param.h>
   14388 
   14389 int
   14390 main ()
   14391 {
   14392 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   14393 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   14394 		     && LITTLE_ENDIAN)
   14395 	      bogus endian macros
   14396 	     #endif
   14397 
   14398   ;
   14399   return 0;
   14400 }
   14401 _ACEOF
   14402 if ac_fn_c_try_compile "$LINENO"; then :
   14403   # It does; now see whether it defined to BIG_ENDIAN or not.
   14404 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14405 /* end confdefs.h.  */
   14406 #include <sys/types.h>
   14407 		#include <sys/param.h>
   14408 
   14409 int
   14410 main ()
   14411 {
   14412 #if BYTE_ORDER != BIG_ENDIAN
   14413 		 not big endian
   14414 		#endif
   14415 
   14416   ;
   14417   return 0;
   14418 }
   14419 _ACEOF
   14420 if ac_fn_c_try_compile "$LINENO"; then :
   14421   ac_cv_c_bigendian=yes
   14422 else
   14423   ac_cv_c_bigendian=no
   14424 fi
   14425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14426 fi
   14427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14428     fi
   14429     if test $ac_cv_c_bigendian = unknown; then
   14430       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   14431       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14432 /* end confdefs.h.  */
   14433 #include <limits.h>
   14434 
   14435 int
   14436 main ()
   14437 {
   14438 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   14439 	      bogus endian macros
   14440 	     #endif
   14441 
   14442   ;
   14443   return 0;
   14444 }
   14445 _ACEOF
   14446 if ac_fn_c_try_compile "$LINENO"; then :
   14447   # It does; now see whether it defined to _BIG_ENDIAN or not.
   14448 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14449 /* end confdefs.h.  */
   14450 #include <limits.h>
   14451 
   14452 int
   14453 main ()
   14454 {
   14455 #ifndef _BIG_ENDIAN
   14456 		 not big endian
   14457 		#endif
   14458 
   14459   ;
   14460   return 0;
   14461 }
   14462 _ACEOF
   14463 if ac_fn_c_try_compile "$LINENO"; then :
   14464   ac_cv_c_bigendian=yes
   14465 else
   14466   ac_cv_c_bigendian=no
   14467 fi
   14468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14469 fi
   14470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14471     fi
   14472     if test $ac_cv_c_bigendian = unknown; then
   14473       # Compile a test program.
   14474       if test "$cross_compiling" = yes; then :
   14475   # Try to guess by grepping values from an object file.
   14476 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14477 /* end confdefs.h.  */
   14478 short int ascii_mm[] =
   14479 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   14480 		short int ascii_ii[] =
   14481 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   14482 		int use_ascii (int i) {
   14483 		  return ascii_mm[i] + ascii_ii[i];
   14484 		}
   14485 		short int ebcdic_ii[] =
   14486 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   14487 		short int ebcdic_mm[] =
   14488 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   14489 		int use_ebcdic (int i) {
   14490 		  return ebcdic_mm[i] + ebcdic_ii[i];
   14491 		}
   14492 		extern int foo;
   14493 
   14494 int
   14495 main ()
   14496 {
   14497 return use_ascii (foo) == use_ebcdic (foo);
   14498   ;
   14499   return 0;
   14500 }
   14501 _ACEOF
   14502 if ac_fn_c_try_compile "$LINENO"; then :
   14503   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   14504 	      ac_cv_c_bigendian=yes
   14505 	    fi
   14506 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   14507 	      if test "$ac_cv_c_bigendian" = unknown; then
   14508 		ac_cv_c_bigendian=no
   14509 	      else
   14510 		# finding both strings is unlikely to happen, but who knows?
   14511 		ac_cv_c_bigendian=unknown
   14512 	      fi
   14513 	    fi
   14514 fi
   14515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14516 else
   14517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14518 /* end confdefs.h.  */
   14519 $ac_includes_default
   14520 int
   14521 main ()
   14522 {
   14523 
   14524 	     /* Are we little or big endian?  From Harbison&Steele.  */
   14525 	     union
   14526 	     {
   14527 	       long int l;
   14528 	       char c[sizeof (long int)];
   14529 	     } u;
   14530 	     u.l = 1;
   14531 	     return u.c[sizeof (long int) - 1] == 1;
   14532 
   14533   ;
   14534   return 0;
   14535 }
   14536 _ACEOF
   14537 if ac_fn_c_try_run "$LINENO"; then :
   14538   ac_cv_c_bigendian=no
   14539 else
   14540   ac_cv_c_bigendian=yes
   14541 fi
   14542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14543   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14544 fi
   14545 
   14546     fi
   14547 fi
   14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   14549 $as_echo "$ac_cv_c_bigendian" >&6; }
   14550  case $ac_cv_c_bigendian in #(
   14551    yes)
   14552      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   14553 ;; #(
   14554    no)
   14555       ;; #(
   14556    universal)
   14557 
   14558 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   14559 
   14560      ;; #(
   14561    *)
   14562      as_fn_error $? "unknown endianness
   14563  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   14564  esac
   14565 
   14566 
   14567 #
   14568 # GeoIP support?
   14569 #
   14570 # Should be on by default if libmaxminddb exists.
   14571 #
   14572 
   14573 # Check whether --with-geoip2 was given.
   14574 if test "${with_geoip2+set}" = set; then :
   14575   withval=$with_geoip2; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-geoip2 is DEPRECATED and will be removed in a future release, use --with-maxminddb instead" >&5
   14576 $as_echo "$as_me: WARNING: --with-geoip2 is DEPRECATED and will be removed in a future release, use --with-maxminddb instead" >&2;}
   14577 else
   14578   with_geoip2="auto"
   14579 fi
   14580 
   14581 
   14582 # Check whether --enable-geoip was given.
   14583 if test "${enable_geoip+set}" = set; then :
   14584   enableval=$enable_geoip;
   14585 else
   14586   enable_geoip="yes"
   14587 fi
   14588 
   14589 
   14590 
   14591 # Check whether --with-maxminddb was given.
   14592 if test "${with_maxminddb+set}" = set; then :
   14593   withval=$with_maxminddb;
   14594 else
   14595   with_maxminddb="$with_geoip2"
   14596 fi
   14597 
   14598 
   14599 GEOIP2LINKSRCS=
   14600 GEOIP2LINKOBJS=
   14601 if test "$enable_geoip" = "yes"; then :
   14602   case $with_maxminddb in #(
   14603   no) :
   14604     as_fn_error $? "Use '--disable-geoip' to disable the GeoIP" "$LINENO" 5 ;; #(
   14605   auto) :
   14606 
   14607 pkg_failed=no
   14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
   14609 $as_echo_n "checking for libmaxminddb... " >&6; }
   14610 
   14611 if test -n "$MAXMINDDB_CFLAGS"; then
   14612     pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
   14613  elif test -n "$PKG_CONFIG"; then
   14614     if test -n "$PKG_CONFIG" && \
   14615     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14616   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14617   ac_status=$?
   14618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14619   test $ac_status = 0; }; then
   14620   pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
   14621 		      test "x$?" != "x0" && pkg_failed=yes
   14622 else
   14623   pkg_failed=yes
   14624 fi
   14625  else
   14626     pkg_failed=untried
   14627 fi
   14628 if test -n "$MAXMINDDB_LIBS"; then
   14629     pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
   14630  elif test -n "$PKG_CONFIG"; then
   14631     if test -n "$PKG_CONFIG" && \
   14632     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14633   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14634   ac_status=$?
   14635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14636   test $ac_status = 0; }; then
   14637   pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
   14638 		      test "x$?" != "x0" && pkg_failed=yes
   14639 else
   14640   pkg_failed=yes
   14641 fi
   14642  else
   14643     pkg_failed=untried
   14644 fi
   14645 
   14646 
   14647 
   14648 if test $pkg_failed = yes; then
   14649         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14650 $as_echo "no" >&6; }
   14651 
   14652 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   14653         _pkg_short_errors_supported=yes
   14654 else
   14655         _pkg_short_errors_supported=no
   14656 fi
   14657         if test $_pkg_short_errors_supported = yes; then
   14658 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
   14659         else
   14660 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
   14661         fi
   14662 	# Put the nasty error message in config.log where it belongs
   14663 	echo "$MAXMINDDB_PKG_ERRORS" >&5
   14664 
   14665 	:
   14666 elif test $pkg_failed = untried; then
   14667         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14668 $as_echo "no" >&6; }
   14669 	:
   14670 else
   14671 	MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
   14672 	MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
   14673         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14674 $as_echo "yes" >&6; }
   14675 
   14676 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
   14677 
   14678 
   14679 if test -n "$MAXMINDDB_PREFIX"; then
   14680     pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
   14681  elif test -n "$PKG_CONFIG"; then
   14682     if test -n "$PKG_CONFIG" && \
   14683     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14684   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14685   ac_status=$?
   14686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14687   test $ac_status = 0; }; then
   14688   pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
   14689 		      test "x$?" != "x0" && pkg_failed=yes
   14690 else
   14691   pkg_failed=yes
   14692 fi
   14693  else
   14694     pkg_failed=untried
   14695 fi
   14696 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
   14697 
   14698 if test "x$MAXMINDDB_PREFIX" = x""; then :
   14699   as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
   14700 fi
   14701 					  GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
   14702 					  GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
   14703 
   14704 fi ;; #(
   14705   yes) :
   14706 
   14707 pkg_failed=no
   14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
   14709 $as_echo_n "checking for libmaxminddb... " >&6; }
   14710 
   14711 if test -n "$MAXMINDDB_CFLAGS"; then
   14712     pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
   14713  elif test -n "$PKG_CONFIG"; then
   14714     if test -n "$PKG_CONFIG" && \
   14715     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14716   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14717   ac_status=$?
   14718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14719   test $ac_status = 0; }; then
   14720   pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
   14721 		      test "x$?" != "x0" && pkg_failed=yes
   14722 else
   14723   pkg_failed=yes
   14724 fi
   14725  else
   14726     pkg_failed=untried
   14727 fi
   14728 if test -n "$MAXMINDDB_LIBS"; then
   14729     pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
   14730  elif test -n "$PKG_CONFIG"; then
   14731     if test -n "$PKG_CONFIG" && \
   14732     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14733   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14734   ac_status=$?
   14735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14736   test $ac_status = 0; }; then
   14737   pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
   14738 		      test "x$?" != "x0" && pkg_failed=yes
   14739 else
   14740   pkg_failed=yes
   14741 fi
   14742  else
   14743     pkg_failed=untried
   14744 fi
   14745 
   14746 
   14747 
   14748 if test $pkg_failed = yes; then
   14749         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14750 $as_echo "no" >&6; }
   14751 
   14752 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   14753         _pkg_short_errors_supported=yes
   14754 else
   14755         _pkg_short_errors_supported=no
   14756 fi
   14757         if test $_pkg_short_errors_supported = yes; then
   14758 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
   14759         else
   14760 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
   14761         fi
   14762 	# Put the nasty error message in config.log where it belongs
   14763 	echo "$MAXMINDDB_PKG_ERRORS" >&5
   14764 
   14765 	as_fn_error $? "Package requirements (libmaxminddb) were not met:
   14766 
   14767 $MAXMINDDB_PKG_ERRORS
   14768 
   14769 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   14770 installed software in a non-standard prefix.
   14771 
   14772 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
   14773 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
   14774 See the pkg-config man page for more details." "$LINENO" 5
   14775 elif test $pkg_failed = untried; then
   14776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14777 $as_echo "no" >&6; }
   14778 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14780 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   14781 is in your PATH or set the PKG_CONFIG environment variable to the full
   14782 path to pkg-config.
   14783 
   14784 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
   14785 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
   14786 See the pkg-config man page for more details.
   14787 
   14788 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   14789 See \`config.log' for more details" "$LINENO" 5; }
   14790 else
   14791 	MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
   14792 	MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
   14793         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14794 $as_echo "yes" >&6; }
   14795 
   14796 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
   14797 
   14798 
   14799 if test -n "$MAXMINDDB_PREFIX"; then
   14800     pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
   14801  elif test -n "$PKG_CONFIG"; then
   14802     if test -n "$PKG_CONFIG" && \
   14803     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14804   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14805   ac_status=$?
   14806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14807   test $ac_status = 0; }; then
   14808   pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
   14809 		      test "x$?" != "x0" && pkg_failed=yes
   14810 else
   14811   pkg_failed=yes
   14812 fi
   14813  else
   14814     pkg_failed=untried
   14815 fi
   14816 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
   14817 
   14818 if test "x$MAXMINDDB_PREFIX" = x""; then :
   14819   as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
   14820 fi
   14821 					 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
   14822 					 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
   14823 
   14824 fi ;; #(
   14825   *) :
   14826      # default
   14827 
   14828 
   14829   CCASFLAGS_maxminddb_ax_save_flags=$CCASFLAGS
   14830 
   14831 
   14832 
   14833   CFLAGS_maxminddb_ax_save_flags=$CFLAGS
   14834 
   14835 
   14836 
   14837   CPPFLAGS_maxminddb_ax_save_flags=$CPPFLAGS
   14838 
   14839 
   14840 
   14841   CXXFLAGS_maxminddb_ax_save_flags=$CXXFLAGS
   14842 
   14843 
   14844 
   14845   ERLCFLAGS_maxminddb_ax_save_flags=$ERLCFLAGS
   14846 
   14847 
   14848 
   14849   FCFLAGS_maxminddb_ax_save_flags=$FCFLAGS
   14850 
   14851 
   14852 
   14853   FCLIBS_maxminddb_ax_save_flags=$FCLIBS
   14854 
   14855 
   14856 
   14857   FFLAGS_maxminddb_ax_save_flags=$FFLAGS
   14858 
   14859 
   14860 
   14861   FLIBS_maxminddb_ax_save_flags=$FLIBS
   14862 
   14863 
   14864 
   14865   GCJFLAGS_maxminddb_ax_save_flags=$GCJFLAGS
   14866 
   14867 
   14868 
   14869   JAVACFLAGS_maxminddb_ax_save_flags=$JAVACFLAGS
   14870 
   14871 
   14872 
   14873   LDFLAGS_maxminddb_ax_save_flags=$LDFLAGS
   14874 
   14875 
   14876 
   14877   LIBS_maxminddb_ax_save_flags=$LIBS
   14878 
   14879 
   14880 
   14881   OBJCFLAGS_maxminddb_ax_save_flags=$OBJCFLAGS
   14882 
   14883 
   14884 
   14885   OBJCXXFLAGS_maxminddb_ax_save_flags=$OBJCXXFLAGS
   14886 
   14887 
   14888 
   14889   UPCFLAGS_maxminddb_ax_save_flags=$UPCFLAGS
   14890 
   14891 
   14892 
   14893   VALAFLAGS_maxminddb_ax_save_flags=$VALAFLAGS
   14894 
   14895 
   14896 
   14897 		   MAXMINDDB_CFLAGS="-I$with_maxminddb/include"
   14898 		   MAXMINDDB_LIBS="-L$with_maxminddb/lib"
   14899 		   CFLAGS="$CFLAGS $MAXMINDDB_CFLAGS"
   14900 		   LDFLAGS="$LDFLAGS $MAXMINDDB_LIBS"
   14901 		   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5
   14902 $as_echo_n "checking for library containing MMDB_open... " >&6; }
   14903 if ${ac_cv_search_MMDB_open+:} false; then :
   14904   $as_echo_n "(cached) " >&6
   14905 else
   14906   ac_func_search_save_LIBS=$LIBS
   14907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14908 /* end confdefs.h.  */
   14909 
   14910 /* Override any GCC internal prototype to avoid an error.
   14911    Use char because int might match the return type of a GCC
   14912    builtin and then its argument prototype would still apply.  */
   14913 #ifdef __cplusplus
   14914 extern "C"
   14915 #endif
   14916 char MMDB_open ();
   14917 int
   14918 main ()
   14919 {
   14920 return MMDB_open ();
   14921   ;
   14922   return 0;
   14923 }
   14924 _ACEOF
   14925 for ac_lib in '' maxminddb; do
   14926   if test -z "$ac_lib"; then
   14927     ac_res="none required"
   14928   else
   14929     ac_res=-l$ac_lib
   14930     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14931   fi
   14932   if ac_fn_c_try_link "$LINENO"; then :
   14933   ac_cv_search_MMDB_open=$ac_res
   14934 fi
   14935 rm -f core conftest.err conftest.$ac_objext \
   14936     conftest$ac_exeext
   14937   if ${ac_cv_search_MMDB_open+:} false; then :
   14938   break
   14939 fi
   14940 done
   14941 if ${ac_cv_search_MMDB_open+:} false; then :
   14942 
   14943 else
   14944   ac_cv_search_MMDB_open=no
   14945 fi
   14946 rm conftest.$ac_ext
   14947 LIBS=$ac_func_search_save_LIBS
   14948 fi
   14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5
   14950 $as_echo "$ac_cv_search_MMDB_open" >&6; }
   14951 ac_res=$ac_cv_search_MMDB_open
   14952 if test "$ac_res" != no; then :
   14953   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14954 
   14955 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
   14956 
   14957 				   GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
   14958 				   GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
   14959 				   MAXMINDDB_LIBS="$MAXMINDDB_LIBS $ac_cv_search_mmdb_open"
   14960 				   { $as_echo "$as_me:${as_lineno-$LINENO}: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&5
   14961 $as_echo "$as_me: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&6;}
   14962 				   eval MAXMINDDB_PREFIX=\$$with_maxminddb
   14963 
   14964 else
   14965   as_fn_error $? "GeoIP2 requested, but libmaxminddb not found" "$LINENO" 5
   14966 fi
   14967 
   14968 
   14969   CCASFLAGS=$CCASFLAGS_maxminddb_ax_save_flags
   14970 
   14971 
   14972   CFLAGS=$CFLAGS_maxminddb_ax_save_flags
   14973 
   14974 
   14975   CPPFLAGS=$CPPFLAGS_maxminddb_ax_save_flags
   14976 
   14977 
   14978   CXXFLAGS=$CXXFLAGS_maxminddb_ax_save_flags
   14979 
   14980 
   14981   ERLCFLAGS=$ERLCFLAGS_maxminddb_ax_save_flags
   14982 
   14983 
   14984   FCFLAGS=$FCFLAGS_maxminddb_ax_save_flags
   14985 
   14986 
   14987   FCLIBS=$FCLIBS_maxminddb_ax_save_flags
   14988 
   14989 
   14990   FFLAGS=$FFLAGS_maxminddb_ax_save_flags
   14991 
   14992 
   14993   FLIBS=$FLIBS_maxminddb_ax_save_flags
   14994 
   14995 
   14996   GCJFLAGS=$GCJFLAGS_maxminddb_ax_save_flags
   14997 
   14998 
   14999   JAVACFLAGS=$JAVACFLAGS_maxminddb_ax_save_flags
   15000 
   15001 
   15002   LDFLAGS=$LDFLAGS_maxminddb_ax_save_flags
   15003 
   15004 
   15005   LIBS=$LIBS_maxminddb_ax_save_flags
   15006 
   15007 
   15008   OBJCFLAGS=$OBJCFLAGS_maxminddb_ax_save_flags
   15009 
   15010 
   15011   OBJCXXFLAGS=$OBJCXXFLAGS_maxminddb_ax_save_flags
   15012 
   15013 
   15014   UPCFLAGS=$UPCFLAGS_maxminddb_ax_save_flags
   15015 
   15016 
   15017   VALAFLAGS=$VALAFLAGS_maxminddb_ax_save_flags
   15018 
   15019 
   15020 
   15021 	        ;;
   15022 esac
   15023 
   15024 
   15025 fi
   15026 
   15027 
   15028 
   15029 
   15030 
   15031 
   15032 #
   15033 # Do we have arc4random(), etc ?
   15034 #
   15035 for ac_func in arc4random arc4random_buf arc4random_uniform getrandom
   15036 do :
   15037   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15039 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15040   cat >>confdefs.h <<_ACEOF
   15041 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15042 _ACEOF
   15043 
   15044 fi
   15045 done
   15046 
   15047 
   15048 
   15049 
   15050 
   15051 
   15052 ac_ext=c
   15053 ac_cpp='$CPP $CPPFLAGS'
   15054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15057 
   15058 ax_pthread_ok=no
   15059 
   15060 # We used to check for pthread.h first, but this fails if pthread.h
   15061 # requires special compiler flags (e.g. on Tru64 or Sequent).
   15062 # It gets checked for in the link test anyway.
   15063 
   15064 # First of all, check if the user has set any of the PTHREAD_LIBS,
   15065 # etcetera environment variables, and if threads linking works using
   15066 # them:
   15067 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
   15068         ax_pthread_save_CC="$CC"
   15069         ax_pthread_save_CFLAGS="$CFLAGS"
   15070         ax_pthread_save_LIBS="$LIBS"
   15071         if test "x$PTHREAD_CC" != "x"; then :
   15072   CC="$PTHREAD_CC"
   15073 fi
   15074         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15075         LIBS="$PTHREAD_LIBS $LIBS"
   15076         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
   15077 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
   15078         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15079 /* end confdefs.h.  */
   15080 
   15081 /* Override any GCC internal prototype to avoid an error.
   15082    Use char because int might match the return type of a GCC
   15083    builtin and then its argument prototype would still apply.  */
   15084 #ifdef __cplusplus
   15085 extern "C"
   15086 #endif
   15087 char pthread_join ();
   15088 int
   15089 main ()
   15090 {
   15091 return pthread_join ();
   15092   ;
   15093   return 0;
   15094 }
   15095 _ACEOF
   15096 if ac_fn_c_try_link "$LINENO"; then :
   15097   ax_pthread_ok=yes
   15098 fi
   15099 rm -f core conftest.err conftest.$ac_objext \
   15100     conftest$ac_exeext conftest.$ac_ext
   15101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   15102 $as_echo "$ax_pthread_ok" >&6; }
   15103         if test "x$ax_pthread_ok" = "xno"; then
   15104                 PTHREAD_LIBS=""
   15105                 PTHREAD_CFLAGS=""
   15106         fi
   15107         CC="$ax_pthread_save_CC"
   15108         CFLAGS="$ax_pthread_save_CFLAGS"
   15109         LIBS="$ax_pthread_save_LIBS"
   15110 fi
   15111 
   15112 # We must check for the threads library under a number of different
   15113 # names; the ordering is very important because some systems
   15114 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   15115 # libraries is broken (non-POSIX).
   15116 
   15117 # Create a list of thread flags to try.  Items starting with a "-" are
   15118 # C compiler flags, and other items are library names, except for "none"
   15119 # which indicates that we try without any flags at all, and "pthread-config"
   15120 # which is a program returning the flags for the Pth emulation library.
   15121 
   15122 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   15123 
   15124 # The ordering *is* (sometimes) important.  Some notes on the
   15125 # individual items follow:
   15126 
   15127 # pthreads: AIX (must check this before -lpthread)
   15128 # none: in case threads are in libc; should be tried before -Kthread and
   15129 #       other compiler flags to prevent continual compiler warnings
   15130 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   15131 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
   15132 #           (Note: HP C rejects this with "bad form for `-t' option")
   15133 # -pthreads: Solaris/gcc (Note: HP C also rejects)
   15134 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   15135 #      doesn't hurt to check since this sometimes defines pthreads and
   15136 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
   15137 #      is present but should not be used directly; and before -mthreads,
   15138 #      because the compiler interprets this as "-mt" + "-hreads")
   15139 # -mthreads: Mingw32/gcc, Lynx/gcc
   15140 # pthread: Linux, etcetera
   15141 # --thread-safe: KAI C++
   15142 # pthread-config: use pthread-config program (for GNU Pth library)
   15143 
   15144 case $host_os in
   15145 
   15146         freebsd*)
   15147 
   15148         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   15149         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   15150 
   15151         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
   15152         ;;
   15153 
   15154         hpux*)
   15155 
   15156         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
   15157         # multi-threading and also sets -lpthread."
   15158 
   15159         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
   15160         ;;
   15161 
   15162         openedition*)
   15163 
   15164         # IBM z/OS requires a feature-test macro to be defined in order to
   15165         # enable POSIX threads at all, so give the user a hint if this is
   15166         # not set. (We don't define these ourselves, as they can affect
   15167         # other portions of the system API in unpredictable ways.)
   15168 
   15169         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15170 /* end confdefs.h.  */
   15171 
   15172 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
   15173              AX_PTHREAD_ZOS_MISSING
   15174 #            endif
   15175 
   15176 _ACEOF
   15177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15178   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
   15179   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
   15180 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
   15181 fi
   15182 rm -f conftest*
   15183 
   15184         ;;
   15185 
   15186         solaris*)
   15187 
   15188         # On Solaris (at least, for some versions), libc contains stubbed
   15189         # (non-functional) versions of the pthreads routines, so link-based
   15190         # tests will erroneously succeed. (N.B.: The stubs are missing
   15191         # pthread_cleanup_push, or rather a function called by this macro,
   15192         # so we could check for that, but who knows whether they'll stub
   15193         # that too in a future libc.)  So we'll check first for the
   15194         # standard Solaris way of linking pthreads (-mt -lpthread).
   15195 
   15196         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
   15197         ;;
   15198 esac
   15199 
   15200 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
   15201 
   15202 if test "x$GCC" = "xyes"; then :
   15203   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
   15204 fi
   15205 
   15206 # The presence of a feature test macro requesting re-entrant function
   15207 # definitions is, on some systems, a strong hint that pthreads support is
   15208 # correctly enabled
   15209 
   15210 case $host_os in
   15211         darwin* | hpux* | linux* | osf* | solaris*)
   15212         ax_pthread_check_macro="_REENTRANT"
   15213         ;;
   15214 
   15215         aix*)
   15216         ax_pthread_check_macro="_THREAD_SAFE"
   15217         ;;
   15218 
   15219         *)
   15220         ax_pthread_check_macro="--"
   15221         ;;
   15222 esac
   15223 if test "x$ax_pthread_check_macro" = "x--"; then :
   15224   ax_pthread_check_cond=0
   15225 else
   15226   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
   15227 fi
   15228 
   15229 # Are we compiling with Clang?
   15230 
   15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
   15232 $as_echo_n "checking whether $CC is Clang... " >&6; }
   15233 if ${ax_cv_PTHREAD_CLANG+:} false; then :
   15234   $as_echo_n "(cached) " >&6
   15235 else
   15236   ax_cv_PTHREAD_CLANG=no
   15237      # Note that Autoconf sets GCC=yes for Clang as well as GCC
   15238      if test "x$GCC" = "xyes"; then
   15239         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15240 /* end confdefs.h.  */
   15241 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
   15242 #            if defined(__clang__) && defined(__llvm__)
   15243              AX_PTHREAD_CC_IS_CLANG
   15244 #            endif
   15245 
   15246 _ACEOF
   15247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15248   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
   15249   ax_cv_PTHREAD_CLANG=yes
   15250 fi
   15251 rm -f conftest*
   15252 
   15253      fi
   15254 
   15255 fi
   15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
   15257 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
   15258 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
   15259 
   15260 ax_pthread_clang_warning=no
   15261 
   15262 # Clang needs special handling, because older versions handle the -pthread
   15263 # option in a rather... idiosyncratic way
   15264 
   15265 if test "x$ax_pthread_clang" = "xyes"; then
   15266 
   15267         # Clang takes -pthread; it has never supported any other flag
   15268 
   15269         # (Note 1: This will need to be revisited if a system that Clang
   15270         # supports has POSIX threads in a separate library.  This tends not
   15271         # to be the way of modern systems, but it's conceivable.)
   15272 
   15273         # (Note 2: On some systems, notably Darwin, -pthread is not needed
   15274         # to get POSIX threads support; the API is always present and
   15275         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
   15276         # -pthread does define _REENTRANT, and while the Darwin headers
   15277         # ignore this macro, third-party headers might not.)
   15278 
   15279         PTHREAD_CFLAGS="-pthread"
   15280         PTHREAD_LIBS=
   15281 
   15282         ax_pthread_ok=yes
   15283 
   15284         # However, older versions of Clang make a point of warning the user
   15285         # that, in an invocation where only linking and no compilation is
   15286         # taking place, the -pthread option has no effect ("argument unused
   15287         # during compilation").  They expect -pthread to be passed in only
   15288         # when source code is being compiled.
   15289         #
   15290         # Problem is, this is at odds with the way Automake and most other
   15291         # C build frameworks function, which is that the same flags used in
   15292         # compilation (CFLAGS) are also used in linking.  Many systems
   15293         # supported by AX_PTHREAD require exactly this for POSIX threads
   15294         # support, and in fact it is often not straightforward to specify a
   15295         # flag that is used only in the compilation phase and not in
   15296         # linking.  Such a scenario is extremely rare in practice.
   15297         #
   15298         # Even though use of the -pthread flag in linking would only print
   15299         # a warning, this can be a nuisance for well-run software projects
   15300         # that build with -Werror.  So if the active version of Clang has
   15301         # this misfeature, we search for an option to squash it.
   15302 
   15303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
   15304 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
   15305 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
   15306   $as_echo_n "(cached) " >&6
   15307 else
   15308   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
   15309              # Create an alternate version of $ac_link that compiles and
   15310              # links in two steps (.c -> .o, .o -> exe) instead of one
   15311              # (.c -> exe), because the warning occurs only in the second
   15312              # step
   15313              ax_pthread_save_ac_link="$ac_link"
   15314              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
   15315              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
   15316              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
   15317              ax_pthread_save_CFLAGS="$CFLAGS"
   15318              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
   15319                 if test "x$ax_pthread_try" = "xunknown"; then :
   15320   break
   15321 fi
   15322                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
   15323                 ac_link="$ax_pthread_save_ac_link"
   15324                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15325 /* end confdefs.h.  */
   15326 int main(void){return 0;}
   15327 _ACEOF
   15328 if ac_fn_c_try_link "$LINENO"; then :
   15329   ac_link="$ax_pthread_2step_ac_link"
   15330                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15331 /* end confdefs.h.  */
   15332 int main(void){return 0;}
   15333 _ACEOF
   15334 if ac_fn_c_try_link "$LINENO"; then :
   15335   break
   15336 fi
   15337 rm -f core conftest.err conftest.$ac_objext \
   15338     conftest$ac_exeext conftest.$ac_ext
   15339 
   15340 fi
   15341 rm -f core conftest.err conftest.$ac_objext \
   15342     conftest$ac_exeext conftest.$ac_ext
   15343              done
   15344              ac_link="$ax_pthread_save_ac_link"
   15345              CFLAGS="$ax_pthread_save_CFLAGS"
   15346              if test "x$ax_pthread_try" = "x"; then :
   15347   ax_pthread_try=no
   15348 fi
   15349              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
   15350 
   15351 fi
   15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
   15353 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
   15354 
   15355         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
   15356                 no | unknown) ;;
   15357                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
   15358         esac
   15359 
   15360 fi # $ax_pthread_clang = yes
   15361 
   15362 if test "x$ax_pthread_ok" = "xno"; then
   15363 for ax_pthread_try_flag in $ax_pthread_flags; do
   15364 
   15365         case $ax_pthread_try_flag in
   15366                 none)
   15367                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   15368 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
   15369                 ;;
   15370 
   15371                 -mt,pthread)
   15372                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
   15373 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
   15374                 PTHREAD_CFLAGS="-mt"
   15375                 PTHREAD_LIBS="-lpthread"
   15376                 ;;
   15377 
   15378                 -*)
   15379                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
   15380 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
   15381                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
   15382                 ;;
   15383 
   15384                 pthread-config)
   15385                 # Extract the first word of "pthread-config", so it can be a program name with args.
   15386 set dummy pthread-config; ac_word=$2
   15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15388 $as_echo_n "checking for $ac_word... " >&6; }
   15389 if ${ac_cv_prog_ax_pthread_config+:} false; then :
   15390   $as_echo_n "(cached) " >&6
   15391 else
   15392   if test -n "$ax_pthread_config"; then
   15393   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   15394 else
   15395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15396 for as_dir in $PATH
   15397 do
   15398   IFS=$as_save_IFS
   15399   test -z "$as_dir" && as_dir=.
   15400     for ac_exec_ext in '' $ac_executable_extensions; do
   15401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15402     ac_cv_prog_ax_pthread_config="yes"
   15403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15404     break 2
   15405   fi
   15406 done
   15407   done
   15408 IFS=$as_save_IFS
   15409 
   15410   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   15411 fi
   15412 fi
   15413 ax_pthread_config=$ac_cv_prog_ax_pthread_config
   15414 if test -n "$ax_pthread_config"; then
   15415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   15416 $as_echo "$ax_pthread_config" >&6; }
   15417 else
   15418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15419 $as_echo "no" >&6; }
   15420 fi
   15421 
   15422 
   15423                 if test "x$ax_pthread_config" = "xno"; then :
   15424   continue
   15425 fi
   15426                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   15427                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   15428                 ;;
   15429 
   15430                 *)
   15431                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
   15432 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
   15433                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
   15434                 ;;
   15435         esac
   15436 
   15437         ax_pthread_save_CFLAGS="$CFLAGS"
   15438         ax_pthread_save_LIBS="$LIBS"
   15439         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15440         LIBS="$PTHREAD_LIBS $LIBS"
   15441 
   15442         # Check for various functions.  We must include pthread.h,
   15443         # since some functions may be macros.  (On the Sequent, we
   15444         # need a special flag -Kthread to make this header compile.)
   15445         # We check for pthread_join because it is in -lpthread on IRIX
   15446         # while pthread_create is in libc.  We check for pthread_attr_init
   15447         # due to DEC craziness with -lpthreads.  We check for
   15448         # pthread_cleanup_push because it is one of the few pthread
   15449         # functions on Solaris that doesn't have a non-functional libc stub.
   15450         # We try pthread_create on general principles.
   15451 
   15452         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15453 /* end confdefs.h.  */
   15454 #include <pthread.h>
   15455 #                       if $ax_pthread_check_cond
   15456 #                        error "$ax_pthread_check_macro must be defined"
   15457 #                       endif
   15458                         static void routine(void *a) { a = 0; }
   15459                         static void *start_routine(void *a) { return a; }
   15460 int
   15461 main ()
   15462 {
   15463 pthread_t th; pthread_attr_t attr;
   15464                         pthread_create(&th, 0, start_routine, 0);
   15465                         pthread_join(th, 0);
   15466                         pthread_attr_init(&attr);
   15467                         pthread_cleanup_push(routine, 0);
   15468                         pthread_cleanup_pop(0) /* ; */
   15469   ;
   15470   return 0;
   15471 }
   15472 _ACEOF
   15473 if ac_fn_c_try_link "$LINENO"; then :
   15474   ax_pthread_ok=yes
   15475 fi
   15476 rm -f core conftest.err conftest.$ac_objext \
   15477     conftest$ac_exeext conftest.$ac_ext
   15478 
   15479         CFLAGS="$ax_pthread_save_CFLAGS"
   15480         LIBS="$ax_pthread_save_LIBS"
   15481 
   15482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   15483 $as_echo "$ax_pthread_ok" >&6; }
   15484         if test "x$ax_pthread_ok" = "xyes"; then :
   15485   break
   15486 fi
   15487 
   15488         PTHREAD_LIBS=""
   15489         PTHREAD_CFLAGS=""
   15490 done
   15491 fi
   15492 
   15493 # Various other checks:
   15494 if test "x$ax_pthread_ok" = "xyes"; then
   15495         ax_pthread_save_CFLAGS="$CFLAGS"
   15496         ax_pthread_save_LIBS="$LIBS"
   15497         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15498         LIBS="$PTHREAD_LIBS $LIBS"
   15499 
   15500         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   15501         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   15502 $as_echo_n "checking for joinable pthread attribute... " >&6; }
   15503 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
   15504   $as_echo_n "(cached) " >&6
   15505 else
   15506   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
   15507              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   15508                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15509 /* end confdefs.h.  */
   15510 #include <pthread.h>
   15511 int
   15512 main ()
   15513 {
   15514 int attr = $ax_pthread_attr; return attr /* ; */
   15515   ;
   15516   return 0;
   15517 }
   15518 _ACEOF
   15519 if ac_fn_c_try_link "$LINENO"; then :
   15520   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
   15521 fi
   15522 rm -f core conftest.err conftest.$ac_objext \
   15523     conftest$ac_exeext conftest.$ac_ext
   15524              done
   15525 
   15526 fi
   15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
   15528 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
   15529         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
   15530                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
   15531                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
   15532 
   15533 cat >>confdefs.h <<_ACEOF
   15534 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
   15535 _ACEOF
   15536 
   15537                ax_pthread_joinable_attr_defined=yes
   15538 
   15539 fi
   15540 
   15541         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
   15542 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
   15543 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
   15544   $as_echo_n "(cached) " >&6
   15545 else
   15546   ax_cv_PTHREAD_SPECIAL_FLAGS=no
   15547              case $host_os in
   15548              solaris*)
   15549              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
   15550              ;;
   15551              esac
   15552 
   15553 fi
   15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
   15555 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
   15556         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
   15557                test "x$ax_pthread_special_flags_added" != "xyes"; then :
   15558   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
   15559                ax_pthread_special_flags_added=yes
   15560 fi
   15561 
   15562         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   15563 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   15564 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
   15565   $as_echo_n "(cached) " >&6
   15566 else
   15567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15568 /* end confdefs.h.  */
   15569 #include <pthread.h>
   15570 int
   15571 main ()
   15572 {
   15573 int i = PTHREAD_PRIO_INHERIT;
   15574   ;
   15575   return 0;
   15576 }
   15577 _ACEOF
   15578 if ac_fn_c_try_link "$LINENO"; then :
   15579   ax_cv_PTHREAD_PRIO_INHERIT=yes
   15580 else
   15581   ax_cv_PTHREAD_PRIO_INHERIT=no
   15582 fi
   15583 rm -f core conftest.err conftest.$ac_objext \
   15584     conftest$ac_exeext conftest.$ac_ext
   15585 
   15586 fi
   15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   15588 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   15589         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
   15590                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
   15591 
   15592 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   15593 
   15594                ax_pthread_prio_inherit_defined=yes
   15595 
   15596 fi
   15597 
   15598         CFLAGS="$ax_pthread_save_CFLAGS"
   15599         LIBS="$ax_pthread_save_LIBS"
   15600 
   15601         # More AIX lossage: compile with *_r variant
   15602         if test "x$GCC" != "xyes"; then
   15603             case $host_os in
   15604                 aix*)
   15605                 case "x/$CC" in #(
   15606   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
   15607     #handle absolute path differently from PATH based program lookup
   15608                      case "x$CC" in #(
   15609   x/*) :
   15610     if as_fn_executable_p ${CC}_r; then :
   15611   PTHREAD_CC="${CC}_r"
   15612 fi ;; #(
   15613   *) :
   15614     for ac_prog in ${CC}_r
   15615 do
   15616   # Extract the first word of "$ac_prog", so it can be a program name with args.
   15617 set dummy $ac_prog; ac_word=$2
   15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15619 $as_echo_n "checking for $ac_word... " >&6; }
   15620 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
   15621   $as_echo_n "(cached) " >&6
   15622 else
   15623   if test -n "$PTHREAD_CC"; then
   15624   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   15625 else
   15626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15627 for as_dir in $PATH
   15628 do
   15629   IFS=$as_save_IFS
   15630   test -z "$as_dir" && as_dir=.
   15631     for ac_exec_ext in '' $ac_executable_extensions; do
   15632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15633     ac_cv_prog_PTHREAD_CC="$ac_prog"
   15634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15635     break 2
   15636   fi
   15637 done
   15638   done
   15639 IFS=$as_save_IFS
   15640 
   15641 fi
   15642 fi
   15643 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   15644 if test -n "$PTHREAD_CC"; then
   15645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   15646 $as_echo "$PTHREAD_CC" >&6; }
   15647 else
   15648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15649 $as_echo "no" >&6; }
   15650 fi
   15651 
   15652 
   15653   test -n "$PTHREAD_CC" && break
   15654 done
   15655 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   15656  ;;
   15657 esac ;; #(
   15658   *) :
   15659      ;;
   15660 esac
   15661                 ;;
   15662             esac
   15663         fi
   15664 fi
   15665 
   15666 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   15667 
   15668 
   15669 
   15670 
   15671 
   15672 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   15673 if test "x$ax_pthread_ok" = "xyes"; then
   15674 
   15675 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
   15676 
   15677         :
   15678 else
   15679         ax_pthread_ok=no
   15680 
   15681 fi
   15682 ac_ext=c
   15683 ac_cpp='$CPP $CPPFLAGS'
   15684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15687 
   15688 
   15689 
   15690 LIBS="$PTHREAD_LIBS $LIBS"
   15691 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15692 CC="$PTHREAD_CC"
   15693 
   15694 for ac_func in pthread_attr_getstacksize pthread_attr_setstacksize
   15695 do :
   15696   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15697 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15698 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15699   cat >>confdefs.h <<_ACEOF
   15700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15701 _ACEOF
   15702 
   15703 fi
   15704 done
   15705 
   15706 
   15707 
   15708 # Check whether --with-locktype was given.
   15709 if test "${with_locktype+set}" = set; then :
   15710   withval=$with_locktype;
   15711 else
   15712   with_locktype="adaptive"
   15713 fi
   15714 
   15715 
   15716 case $with_locktype in #(
   15717   adaptive) :
   15718 
   15719 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
   15720 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
   15721 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15722 /* end confdefs.h.  */
   15723 
   15724 		 #ifndef _GNU_SOURCE
   15725 		 #define _GNU_SOURCE
   15726 		 #endif
   15727 		 #include <pthread.h>
   15728 
   15729 int
   15730 main ()
   15731 {
   15732 
   15733 		 return (PTHREAD_MUTEX_ADAPTIVE_NP);
   15734 
   15735 
   15736   ;
   15737   return 0;
   15738 }
   15739 _ACEOF
   15740 if ac_fn_c_try_compile "$LINENO"; then :
   15741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
   15742 $as_echo "using adaptive lock type" >&6; }
   15743 
   15744 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
   15745 
   15746 else
   15747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15748 $as_echo "using standard lock type" >&6; }
   15749 
   15750 fi
   15751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   15752   standard) :
   15753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15754 $as_echo "using standard lock type" >&6; } ;; #(
   15755   *) :
   15756     as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
   15757         ;;
   15758 esac
   15759 
   15760 for ac_header in sched.h
   15761 do :
   15762   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
   15763 if test "x$ac_cv_header_sched_h" = xyes; then :
   15764   cat >>confdefs.h <<_ACEOF
   15765 #define HAVE_SCHED_H 1
   15766 _ACEOF
   15767 
   15768 fi
   15769 
   15770 done
   15771 
   15772 
   15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
   15774 $as_echo_n "checking for library containing sched_yield... " >&6; }
   15775 if ${ac_cv_search_sched_yield+:} false; then :
   15776   $as_echo_n "(cached) " >&6
   15777 else
   15778   ac_func_search_save_LIBS=$LIBS
   15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15780 /* end confdefs.h.  */
   15781 
   15782 /* Override any GCC internal prototype to avoid an error.
   15783    Use char because int might match the return type of a GCC
   15784    builtin and then its argument prototype would still apply.  */
   15785 #ifdef __cplusplus
   15786 extern "C"
   15787 #endif
   15788 char sched_yield ();
   15789 int
   15790 main ()
   15791 {
   15792 return sched_yield ();
   15793   ;
   15794   return 0;
   15795 }
   15796 _ACEOF
   15797 for ac_lib in '' rt; do
   15798   if test -z "$ac_lib"; then
   15799     ac_res="none required"
   15800   else
   15801     ac_res=-l$ac_lib
   15802     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15803   fi
   15804   if ac_fn_c_try_link "$LINENO"; then :
   15805   ac_cv_search_sched_yield=$ac_res
   15806 fi
   15807 rm -f core conftest.err conftest.$ac_objext \
   15808     conftest$ac_exeext
   15809   if ${ac_cv_search_sched_yield+:} false; then :
   15810   break
   15811 fi
   15812 done
   15813 if ${ac_cv_search_sched_yield+:} false; then :
   15814 
   15815 else
   15816   ac_cv_search_sched_yield=no
   15817 fi
   15818 rm conftest.$ac_ext
   15819 LIBS=$ac_func_search_save_LIBS
   15820 fi
   15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
   15822 $as_echo "$ac_cv_search_sched_yield" >&6; }
   15823 ac_res=$ac_cv_search_sched_yield
   15824 if test "$ac_res" != no; then :
   15825   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15826 
   15827 fi
   15828 
   15829 for ac_func in sched_yield pthread_yield pthread_yield_np
   15830 do :
   15831   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15832 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15833 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15834   cat >>confdefs.h <<_ACEOF
   15835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15836 _ACEOF
   15837 
   15838 fi
   15839 done
   15840 
   15841 
   15842 for ac_header in sys/cpuset.h
   15843 do :
   15844   ac_fn_c_check_header_mongrel "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default"
   15845 if test "x$ac_cv_header_sys_cpuset_h" = xyes; then :
   15846   cat >>confdefs.h <<_ACEOF
   15847 #define HAVE_SYS_CPUSET_H 1
   15848 _ACEOF
   15849 
   15850 fi
   15851 
   15852 done
   15853 
   15854 for ac_header in sys/procset.h
   15855 do :
   15856   ac_fn_c_check_header_mongrel "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
   15857 if test "x$ac_cv_header_sys_procset_h" = xyes; then :
   15858   cat >>confdefs.h <<_ACEOF
   15859 #define HAVE_SYS_PROCSET_H 1
   15860 _ACEOF
   15861 
   15862 fi
   15863 
   15864 done
   15865 
   15866 for ac_func in pthread_setaffinity_np cpuset_setaffinity processor_bind sched_setaffinity
   15867 do :
   15868   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15870 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15871   cat >>confdefs.h <<_ACEOF
   15872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15873 _ACEOF
   15874 
   15875 fi
   15876 done
   15877 
   15878 
   15879 # Look for functions relating to thread naming
   15880 for ac_func in pthread_setname_np pthread_set_name_np
   15881 do :
   15882   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15883 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15884 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15885   cat >>confdefs.h <<_ACEOF
   15886 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15887 _ACEOF
   15888 
   15889 fi
   15890 done
   15891 
   15892 for ac_header in pthread_np.h
   15893 do :
   15894   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
   15895 "
   15896 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
   15897   cat >>confdefs.h <<_ACEOF
   15898 #define HAVE_PTHREAD_NP_H 1
   15899 _ACEOF
   15900 
   15901 fi
   15902 
   15903 done
   15904 
   15905 
   15906 # libuv
   15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuv" >&5
   15908 $as_echo_n "checking for libuv... " >&6; }
   15909 
   15910 pkg_failed=no
   15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.0.0" >&5
   15912 $as_echo_n "checking for libuv >= 1.0.0... " >&6; }
   15913 
   15914 if test -n "$LIBUV_CFLAGS"; then
   15915     pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS"
   15916  elif test -n "$PKG_CONFIG"; then
   15917     if test -n "$PKG_CONFIG" && \
   15918     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0\""; } >&5
   15919   ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0") 2>&5
   15920   ac_status=$?
   15921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15922   test $ac_status = 0; }; then
   15923   pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.0.0" 2>/dev/null`
   15924 		      test "x$?" != "x0" && pkg_failed=yes
   15925 else
   15926   pkg_failed=yes
   15927 fi
   15928  else
   15929     pkg_failed=untried
   15930 fi
   15931 if test -n "$LIBUV_LIBS"; then
   15932     pkg_cv_LIBUV_LIBS="$LIBUV_LIBS"
   15933  elif test -n "$PKG_CONFIG"; then
   15934     if test -n "$PKG_CONFIG" && \
   15935     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0\""; } >&5
   15936   ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0") 2>&5
   15937   ac_status=$?
   15938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15939   test $ac_status = 0; }; then
   15940   pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.0.0" 2>/dev/null`
   15941 		      test "x$?" != "x0" && pkg_failed=yes
   15942 else
   15943   pkg_failed=yes
   15944 fi
   15945  else
   15946     pkg_failed=untried
   15947 fi
   15948 
   15949 
   15950 
   15951 if test $pkg_failed = yes; then
   15952         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15953 $as_echo "no" >&6; }
   15954 
   15955 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   15956         _pkg_short_errors_supported=yes
   15957 else
   15958         _pkg_short_errors_supported=no
   15959 fi
   15960         if test $_pkg_short_errors_supported = yes; then
   15961 	        LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.0.0" 2>&1`
   15962         else
   15963 	        LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.0.0" 2>&1`
   15964         fi
   15965 	# Put the nasty error message in config.log where it belongs
   15966 	echo "$LIBUV_PKG_ERRORS" >&5
   15967 
   15968 	as_fn_error $? "libuv not found" "$LINENO" 5
   15969 elif test $pkg_failed = untried; then
   15970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15971 $as_echo "no" >&6; }
   15972 	as_fn_error $? "libuv not found" "$LINENO" 5
   15973 else
   15974 	LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS
   15975 	LIBUV_LIBS=$pkg_cv_LIBUV_LIBS
   15976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15977 $as_echo "yes" >&6; }
   15978 
   15979 fi
   15980 
   15981 
   15982 
   15983 
   15984 
   15985   CCASFLAGS_libuv_ax_save_flags=$CCASFLAGS
   15986 
   15987 
   15988 
   15989   CFLAGS_libuv_ax_save_flags=$CFLAGS
   15990 
   15991 
   15992 
   15993   CPPFLAGS_libuv_ax_save_flags=$CPPFLAGS
   15994 
   15995 
   15996 
   15997   CXXFLAGS_libuv_ax_save_flags=$CXXFLAGS
   15998 
   15999 
   16000 
   16001   ERLCFLAGS_libuv_ax_save_flags=$ERLCFLAGS
   16002 
   16003 
   16004 
   16005   FCFLAGS_libuv_ax_save_flags=$FCFLAGS
   16006 
   16007 
   16008 
   16009   FCLIBS_libuv_ax_save_flags=$FCLIBS
   16010 
   16011 
   16012 
   16013   FFLAGS_libuv_ax_save_flags=$FFLAGS
   16014 
   16015 
   16016 
   16017   FLIBS_libuv_ax_save_flags=$FLIBS
   16018 
   16019 
   16020 
   16021   GCJFLAGS_libuv_ax_save_flags=$GCJFLAGS
   16022 
   16023 
   16024 
   16025   JAVACFLAGS_libuv_ax_save_flags=$JAVACFLAGS
   16026 
   16027 
   16028 
   16029   LDFLAGS_libuv_ax_save_flags=$LDFLAGS
   16030 
   16031 
   16032 
   16033   LIBS_libuv_ax_save_flags=$LIBS
   16034 
   16035 
   16036 
   16037   OBJCFLAGS_libuv_ax_save_flags=$OBJCFLAGS
   16038 
   16039 
   16040 
   16041   OBJCXXFLAGS_libuv_ax_save_flags=$OBJCXXFLAGS
   16042 
   16043 
   16044 
   16045   UPCFLAGS_libuv_ax_save_flags=$UPCFLAGS
   16046 
   16047 
   16048 
   16049   VALAFLAGS_libuv_ax_save_flags=$VALAFLAGS
   16050 
   16051 
   16052 
   16053 CFLAGS="$CFLAGS $LIBUV_CFLAGS"
   16054 LIBS="$LDFLAGS $LIBUV_LIBS"
   16055 # Those functions are only provided in newer versions of libuv, we'll be emulating them
   16056 # for now
   16057 for ac_func in uv_handle_get_data uv_handle_set_data uv_import
   16058 do :
   16059   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16060 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16061 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16062   cat >>confdefs.h <<_ACEOF
   16063 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16064 _ACEOF
   16065 
   16066 fi
   16067 done
   16068 
   16069 
   16070   CCASFLAGS=$CCASFLAGS_libuv_ax_save_flags
   16071 
   16072 
   16073   CFLAGS=$CFLAGS_libuv_ax_save_flags
   16074 
   16075 
   16076   CPPFLAGS=$CPPFLAGS_libuv_ax_save_flags
   16077 
   16078 
   16079   CXXFLAGS=$CXXFLAGS_libuv_ax_save_flags
   16080 
   16081 
   16082   ERLCFLAGS=$ERLCFLAGS_libuv_ax_save_flags
   16083 
   16084 
   16085   FCFLAGS=$FCFLAGS_libuv_ax_save_flags
   16086 
   16087 
   16088   FCLIBS=$FCLIBS_libuv_ax_save_flags
   16089 
   16090 
   16091   FFLAGS=$FFLAGS_libuv_ax_save_flags
   16092 
   16093 
   16094   FLIBS=$FLIBS_libuv_ax_save_flags
   16095 
   16096 
   16097   GCJFLAGS=$GCJFLAGS_libuv_ax_save_flags
   16098 
   16099 
   16100   JAVACFLAGS=$JAVACFLAGS_libuv_ax_save_flags
   16101 
   16102 
   16103   LDFLAGS=$LDFLAGS_libuv_ax_save_flags
   16104 
   16105 
   16106   LIBS=$LIBS_libuv_ax_save_flags
   16107 
   16108 
   16109   OBJCFLAGS=$OBJCFLAGS_libuv_ax_save_flags
   16110 
   16111 
   16112   OBJCXXFLAGS=$OBJCXXFLAGS_libuv_ax_save_flags
   16113 
   16114 
   16115   UPCFLAGS=$UPCFLAGS_libuv_ax_save_flags
   16116 
   16117 
   16118   VALAFLAGS=$VALAFLAGS_libuv_ax_save_flags
   16119 
   16120 
   16121 
   16122 
   16123 #
   16124 # flockfile is usually provided by pthreads
   16125 #
   16126 for ac_func in flockfile getc_unlocked
   16127 do :
   16128   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16129 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16130 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16131   cat >>confdefs.h <<_ACEOF
   16132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16133 _ACEOF
   16134 
   16135 fi
   16136 done
   16137 
   16138 
   16139 #
   16140 # Look for sysconf to allow detection of the number of processors.
   16141 #
   16142 for ac_func in sysconf
   16143 do :
   16144   ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
   16145 if test "x$ac_cv_func_sysconf" = xyes; then :
   16146   cat >>confdefs.h <<_ACEOF
   16147 #define HAVE_SYSCONF 1
   16148 _ACEOF
   16149 
   16150 fi
   16151 done
   16152 
   16153 
   16154 
   16155 
   16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
   16157 $as_echo_n "checking for libtool... " >&6; }
   16158 
   16159 # Check whether --with-libtool was given.
   16160 if test "${with_libtool+set}" = set; then :
   16161   withval=$with_libtool; use_libtool="$withval"
   16162 else
   16163   use_libtool="no"
   16164 fi
   16165 
   16166 NO_LIBTOOL_ISCLIBS=
   16167 NO_LIBTOOL_DNSLIBS=
   16168 case $use_libtool in
   16169 	yes)
   16170 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16171 $as_echo "yes" >&6; }
   16172 
   16173 		O=lo
   16174 		A=la
   16175 		LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
   16176 		LIBTOOL_MODE_COMPILE='--mode=compile'
   16177 		LIBTOOL_MODE_INSTALL='--mode=install'
   16178 		LIBTOOL_MODE_LINK='--mode=link'
   16179 		LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
   16180 		INSTALL_LIBRARY='${INSTALL_PROGRAM}'
   16181 
   16182 $as_echo "#define USE_LIBTOOL 1" >>confdefs.h
   16183 
   16184 		;;
   16185 	*)
   16186 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16187 $as_echo "no" >&6; }
   16188 		O=o
   16189 		A=a
   16190 		LIBTOOL=
   16191 
   16192 		LIBTOOL_MKDEP_SED=
   16193 		LIBTOOL_MODE_COMPILE=
   16194 		LIBTOOL_MODE_INSTALL=
   16195 		LIBTOOL_MODE_LINK=
   16196 		LIBTOOL_MODE_UNINSTALL=
   16197 		INSTALL_LIBRARY='${INSTALL_DATA}'
   16198 		NO_LIBTOOL_ISCLIBS='${NO_LIBTOOL_ISCLIBS}'
   16199 		NO_LIBTOOL_DNSLIBS='${NO_LIBTOOL_DNSLIBS}'
   16200 		;;
   16201 esac
   16202 
   16203 
   16204 
   16205 
   16206 #
   16207 # Do we want to use pthread rwlock?
   16208 #
   16209 # Check whether --enable-pthread_rwlock was given.
   16210 if test "${enable_pthread_rwlock+set}" = set; then :
   16211   enableval=$enable_pthread_rwlock;
   16212 else
   16213   enable_pthread_rwlock=no
   16214 fi
   16215 
   16216 
   16217 if test "$enable_pthread_rwlock" = "yes"; then :
   16218   for ac_func in pthread_rwlock_rdlock
   16219 do :
   16220   ac_fn_c_check_func "$LINENO" "pthread_rwlock_rdlock" "ac_cv_func_pthread_rwlock_rdlock"
   16221 if test "x$ac_cv_func_pthread_rwlock_rdlock" = xyes; then :
   16222   cat >>confdefs.h <<_ACEOF
   16223 #define HAVE_PTHREAD_RWLOCK_RDLOCK 1
   16224 _ACEOF
   16225 
   16226 else
   16227   as_fn_error $? "pthread_rwlock_rdlock requested but not found" "$LINENO" 5
   16228 fi
   16229 done
   16230 
   16231 
   16232 $as_echo "#define USE_PTHREAD_RWLOCK 1" >>confdefs.h
   16233 
   16234 
   16235 fi
   16236 
   16237 CRYPTO=OpenSSL
   16238 
   16239 #
   16240 # OpenSSL/LibreSSL is mandatory
   16241 #
   16242 
   16243 pkg_failed=no
   16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcrypto" >&5
   16245 $as_echo_n "checking for libcrypto... " >&6; }
   16246 
   16247 if test -n "$OPENSSL_CFLAGS"; then
   16248     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   16249  elif test -n "$PKG_CONFIG"; then
   16250     if test -n "$PKG_CONFIG" && \
   16251     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
   16252   ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
   16253   ac_status=$?
   16254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16255   test $ac_status = 0; }; then
   16256   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null`
   16257 		      test "x$?" != "x0" && pkg_failed=yes
   16258 else
   16259   pkg_failed=yes
   16260 fi
   16261  else
   16262     pkg_failed=untried
   16263 fi
   16264 if test -n "$OPENSSL_LIBS"; then
   16265     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   16266  elif test -n "$PKG_CONFIG"; then
   16267     if test -n "$PKG_CONFIG" && \
   16268     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
   16269   ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
   16270   ac_status=$?
   16271   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16272   test $ac_status = 0; }; then
   16273   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null`
   16274 		      test "x$?" != "x0" && pkg_failed=yes
   16275 else
   16276   pkg_failed=yes
   16277 fi
   16278  else
   16279     pkg_failed=untried
   16280 fi
   16281 
   16282 
   16283 
   16284 if test $pkg_failed = yes; then
   16285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16286 $as_echo "no" >&6; }
   16287 
   16288 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16289         _pkg_short_errors_supported=yes
   16290 else
   16291         _pkg_short_errors_supported=no
   16292 fi
   16293         if test $_pkg_short_errors_supported = yes; then
   16294 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto" 2>&1`
   16295         else
   16296 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto" 2>&1`
   16297         fi
   16298 	# Put the nasty error message in config.log where it belongs
   16299 	echo "$OPENSSL_PKG_ERRORS" >&5
   16300 
   16301 
   16302     found=false
   16303     default_ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/local/opt/openssl /usr/local/opt/libressl /usr"
   16304 
   16305 # Check whether --with-openssl was given.
   16306 if test "${with_openssl+set}" = set; then :
   16307   withval=$with_openssl;
   16308 	    case $with_openssl in #(
   16309   ""|y|ye|yes) :
   16310     ssldirs="$default_ssldirs" ;; #(
   16311   n|no) :
   16312     as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
   16313   *) :
   16314     ssldirs="$withval" ;; #(
   16315   *) :
   16316     ssldirs="$default_ssldirs"
   16317 	     ;;
   16318 esac
   16319 
   16320 else
   16321 
   16322             # if pkg-config is installed and openssl has installed a .pc file,
   16323             # then use that information and don't search ssldirs
   16324 
   16325 pkg_failed=no
   16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
   16327 $as_echo_n "checking for crypto... " >&6; }
   16328 
   16329 if test -n "$OPENSSL_CFLAGS"; then
   16330     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   16331  elif test -n "$PKG_CONFIG"; then
   16332     if test -n "$PKG_CONFIG" && \
   16333     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16334   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16335   ac_status=$?
   16336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16337   test $ac_status = 0; }; then
   16338   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
   16339 		      test "x$?" != "x0" && pkg_failed=yes
   16340 else
   16341   pkg_failed=yes
   16342 fi
   16343  else
   16344     pkg_failed=untried
   16345 fi
   16346 if test -n "$OPENSSL_LIBS"; then
   16347     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   16348  elif test -n "$PKG_CONFIG"; then
   16349     if test -n "$PKG_CONFIG" && \
   16350     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16351   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16352   ac_status=$?
   16353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16354   test $ac_status = 0; }; then
   16355   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
   16356 		      test "x$?" != "x0" && pkg_failed=yes
   16357 else
   16358   pkg_failed=yes
   16359 fi
   16360  else
   16361     pkg_failed=untried
   16362 fi
   16363 
   16364 
   16365 
   16366 if test $pkg_failed = yes; then
   16367         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16368 $as_echo "no" >&6; }
   16369 
   16370 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16371         _pkg_short_errors_supported=yes
   16372 else
   16373         _pkg_short_errors_supported=no
   16374 fi
   16375         if test $_pkg_short_errors_supported = yes; then
   16376 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
   16377         else
   16378 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
   16379         fi
   16380 	# Put the nasty error message in config.log where it belongs
   16381 	echo "$OPENSSL_PKG_ERRORS" >&5
   16382 
   16383 	ssldirs="$default_ssldirs"
   16384 elif test $pkg_failed = untried; then
   16385         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16386 $as_echo "no" >&6; }
   16387 	ssldirs="$default_ssldirs"
   16388 else
   16389 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   16390 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   16391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16392 $as_echo "yes" >&6; }
   16393 	found=true
   16394 fi
   16395 
   16396 
   16397 
   16398 fi
   16399 
   16400 
   16401 
   16402     # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
   16403     # an 'openssl' subdirectory
   16404 
   16405     if ! $found; then :
   16406 
   16407         OPENSSL_CFLAGS=
   16408         for ssldir in $ssldirs; do
   16409             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
   16410 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
   16411 	    if test -f "$ssldir/include/openssl/ssl.h"; then :
   16412 
   16413 		    OPENSSL_CFLAGS="-I$ssldir/include"
   16414                     OPENSSL_LIBS="-L$ssldir/lib -lcrypto"
   16415                     found=true
   16416                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16417 $as_echo "yes" >&6; }
   16418                     break
   16419 
   16420 else
   16421 
   16422 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16423 $as_echo "no" >&6; }
   16424 
   16425 fi
   16426         done
   16427 
   16428         # if the file wasn't found, well, go ahead and try the link anyway -- maybe
   16429         # it will just work!
   16430 
   16431 fi
   16432 
   16433     # try the preprocessor and linker with our new flags,
   16434     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
   16435 
   16436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
   16437 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
   16438     # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS])
   16439 
   16440     save_LIBS="$LIBS"
   16441     save_CPPFLAGS="$CPPFLAGS"
   16442     LIBS="$OPENSSL_LIBS $LIBS"
   16443     CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
   16444     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16445 /* end confdefs.h.  */
   16446 
   16447                 #include <openssl/crypto.h>
   16448 
   16449 int
   16450 main ()
   16451 {
   16452 
   16453 	        OPENSSL_free(NULL);
   16454 
   16455   ;
   16456   return 0;
   16457 }
   16458 _ACEOF
   16459 if ac_fn_c_try_link "$LINENO"; then :
   16460 
   16461             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16462 $as_echo "yes" >&6; }
   16463             :
   16464 
   16465 else
   16466 
   16467             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16468 $as_echo "no" >&6; }
   16469             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16471 as_fn_error $? "OpenSSL/LibreSSL not found
   16472 See \`config.log' for more details" "$LINENO" 5; }
   16473 
   16474 fi
   16475 rm -f core conftest.err conftest.$ac_objext \
   16476     conftest$ac_exeext conftest.$ac_ext
   16477     CPPFLAGS="$save_CPPFLAGS"
   16478     LIBS="$save_LIBS"
   16479 
   16480 
   16481 
   16482 
   16483 elif test $pkg_failed = untried; then
   16484         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16485 $as_echo "no" >&6; }
   16486 
   16487     found=false
   16488     default_ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/local/opt/openssl /usr/local/opt/libressl /usr"
   16489 
   16490 # Check whether --with-openssl was given.
   16491 if test "${with_openssl+set}" = set; then :
   16492   withval=$with_openssl;
   16493 	    case $with_openssl in #(
   16494   ""|y|ye|yes) :
   16495     ssldirs="$default_ssldirs" ;; #(
   16496   n|no) :
   16497     as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
   16498   *) :
   16499     ssldirs="$withval" ;; #(
   16500   *) :
   16501     ssldirs="$default_ssldirs"
   16502 	     ;;
   16503 esac
   16504 
   16505 else
   16506 
   16507             # if pkg-config is installed and openssl has installed a .pc file,
   16508             # then use that information and don't search ssldirs
   16509 
   16510 pkg_failed=no
   16511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
   16512 $as_echo_n "checking for crypto... " >&6; }
   16513 
   16514 if test -n "$OPENSSL_CFLAGS"; then
   16515     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   16516  elif test -n "$PKG_CONFIG"; then
   16517     if test -n "$PKG_CONFIG" && \
   16518     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16519   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16520   ac_status=$?
   16521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16522   test $ac_status = 0; }; then
   16523   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
   16524 		      test "x$?" != "x0" && pkg_failed=yes
   16525 else
   16526   pkg_failed=yes
   16527 fi
   16528  else
   16529     pkg_failed=untried
   16530 fi
   16531 if test -n "$OPENSSL_LIBS"; then
   16532     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   16533  elif test -n "$PKG_CONFIG"; then
   16534     if test -n "$PKG_CONFIG" && \
   16535     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16536   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16537   ac_status=$?
   16538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16539   test $ac_status = 0; }; then
   16540   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
   16541 		      test "x$?" != "x0" && pkg_failed=yes
   16542 else
   16543   pkg_failed=yes
   16544 fi
   16545  else
   16546     pkg_failed=untried
   16547 fi
   16548 
   16549 
   16550 
   16551 if test $pkg_failed = yes; then
   16552         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16553 $as_echo "no" >&6; }
   16554 
   16555 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16556         _pkg_short_errors_supported=yes
   16557 else
   16558         _pkg_short_errors_supported=no
   16559 fi
   16560         if test $_pkg_short_errors_supported = yes; then
   16561 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
   16562         else
   16563 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
   16564         fi
   16565 	# Put the nasty error message in config.log where it belongs
   16566 	echo "$OPENSSL_PKG_ERRORS" >&5
   16567 
   16568 	ssldirs="$default_ssldirs"
   16569 elif test $pkg_failed = untried; then
   16570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16571 $as_echo "no" >&6; }
   16572 	ssldirs="$default_ssldirs"
   16573 else
   16574 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   16575 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   16576         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16577 $as_echo "yes" >&6; }
   16578 	found=true
   16579 fi
   16580 
   16581 
   16582 
   16583 fi
   16584 
   16585 
   16586 
   16587     # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
   16588     # an 'openssl' subdirectory
   16589 
   16590     if ! $found; then :
   16591 
   16592         OPENSSL_CFLAGS=
   16593         for ssldir in $ssldirs; do
   16594             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
   16595 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
   16596 	    if test -f "$ssldir/include/openssl/ssl.h"; then :
   16597 
   16598 		    OPENSSL_CFLAGS="-I$ssldir/include"
   16599                     OPENSSL_LIBS="-L$ssldir/lib -lcrypto"
   16600                     found=true
   16601                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16602 $as_echo "yes" >&6; }
   16603                     break
   16604 
   16605 else
   16606 
   16607 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16608 $as_echo "no" >&6; }
   16609 
   16610 fi
   16611         done
   16612 
   16613         # if the file wasn't found, well, go ahead and try the link anyway -- maybe
   16614         # it will just work!
   16615 
   16616 fi
   16617 
   16618     # try the preprocessor and linker with our new flags,
   16619     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
   16620 
   16621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
   16622 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
   16623     # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS])
   16624 
   16625     save_LIBS="$LIBS"
   16626     save_CPPFLAGS="$CPPFLAGS"
   16627     LIBS="$OPENSSL_LIBS $LIBS"
   16628     CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
   16629     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16630 /* end confdefs.h.  */
   16631 
   16632                 #include <openssl/crypto.h>
   16633 
   16634 int
   16635 main ()
   16636 {
   16637 
   16638 	        OPENSSL_free(NULL);
   16639 
   16640   ;
   16641   return 0;
   16642 }
   16643 _ACEOF
   16644 if ac_fn_c_try_link "$LINENO"; then :
   16645 
   16646             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16647 $as_echo "yes" >&6; }
   16648             :
   16649 
   16650 else
   16651 
   16652             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16653 $as_echo "no" >&6; }
   16654             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16656 as_fn_error $? "OpenSSL/LibreSSL not found
   16657 See \`config.log' for more details" "$LINENO" 5; }
   16658 
   16659 fi
   16660 rm -f core conftest.err conftest.$ac_objext \
   16661     conftest$ac_exeext conftest.$ac_ext
   16662     CPPFLAGS="$save_CPPFLAGS"
   16663     LIBS="$save_LIBS"
   16664 
   16665 
   16666 
   16667 
   16668 else
   16669 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   16670 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   16671         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16672 $as_echo "yes" >&6; }
   16673 
   16674 fi
   16675 
   16676 
   16677 
   16678   CCASFLAGS_openssl_ax_save_flags=$CCASFLAGS
   16679 
   16680 
   16681 
   16682   CFLAGS_openssl_ax_save_flags=$CFLAGS
   16683 
   16684 
   16685 
   16686   CPPFLAGS_openssl_ax_save_flags=$CPPFLAGS
   16687 
   16688 
   16689 
   16690   CXXFLAGS_openssl_ax_save_flags=$CXXFLAGS
   16691 
   16692 
   16693 
   16694   ERLCFLAGS_openssl_ax_save_flags=$ERLCFLAGS
   16695 
   16696 
   16697 
   16698   FCFLAGS_openssl_ax_save_flags=$FCFLAGS
   16699 
   16700 
   16701 
   16702   FCLIBS_openssl_ax_save_flags=$FCLIBS
   16703 
   16704 
   16705 
   16706   FFLAGS_openssl_ax_save_flags=$FFLAGS
   16707 
   16708 
   16709 
   16710   FLIBS_openssl_ax_save_flags=$FLIBS
   16711 
   16712 
   16713 
   16714   GCJFLAGS_openssl_ax_save_flags=$GCJFLAGS
   16715 
   16716 
   16717 
   16718   JAVACFLAGS_openssl_ax_save_flags=$JAVACFLAGS
   16719 
   16720 
   16721 
   16722   LDFLAGS_openssl_ax_save_flags=$LDFLAGS
   16723 
   16724 
   16725 
   16726   LIBS_openssl_ax_save_flags=$LIBS
   16727 
   16728 
   16729 
   16730   OBJCFLAGS_openssl_ax_save_flags=$OBJCFLAGS
   16731 
   16732 
   16733 
   16734   OBJCXXFLAGS_openssl_ax_save_flags=$OBJCXXFLAGS
   16735 
   16736 
   16737 
   16738   UPCFLAGS_openssl_ax_save_flags=$UPCFLAGS
   16739 
   16740 
   16741 
   16742   VALAFLAGS_openssl_ax_save_flags=$VALAFLAGS
   16743 
   16744 
   16745 
   16746 
   16747 CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
   16748 LIBS="$LIBS $OPENSSL_LIBS"
   16749 
   16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL" >&5
   16751 $as_echo_n "checking for OpenSSL >= 1.0.0 or LibreSSL... " >&6; }
   16752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16753 /* end confdefs.h.  */
   16754 #include <openssl/opensslv.h>
   16755 int
   16756 main ()
   16757 {
   16758 #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)
   16759 		       #error OpenSSL >= 1.0.0 or LibreSSL required
   16760 		       #endif
   16761 
   16762   ;
   16763   return 0;
   16764 }
   16765 _ACEOF
   16766 if ac_fn_c_try_compile "$LINENO"; then :
   16767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16768 $as_echo "yes" >&6; }
   16769 else
   16770   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16772 as_fn_error $? "not found
   16773 See \`config.log' for more details" "$LINENO" 5; }
   16774 fi
   16775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16776 
   16777 #
   16778 # Check for functions added in OpenSSL or LibreSSL
   16779 #
   16780 
   16781 for ac_func in CRYPTO_zalloc
   16782 do :
   16783   ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
   16784 if test "x$ac_cv_func_CRYPTO_zalloc" = xyes; then :
   16785   cat >>confdefs.h <<_ACEOF
   16786 #define HAVE_CRYPTO_ZALLOC 1
   16787 _ACEOF
   16788 
   16789 fi
   16790 done
   16791 
   16792 for ac_func in EVP_CIPHER_CTX_new EVP_CIPHER_CTX_free
   16793 do :
   16794   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16795 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16796 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16797   cat >>confdefs.h <<_ACEOF
   16798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16799 _ACEOF
   16800 
   16801 fi
   16802 done
   16803 
   16804 for ac_func in EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset
   16805 do :
   16806   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16807 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16808 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16809   cat >>confdefs.h <<_ACEOF
   16810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16811 _ACEOF
   16812 
   16813 fi
   16814 done
   16815 
   16816 for ac_func in HMAC_CTX_new HMAC_CTX_free HMAC_CTX_reset HMAC_CTX_get_md
   16817 do :
   16818   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16820 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16821   cat >>confdefs.h <<_ACEOF
   16822 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16823 _ACEOF
   16824 
   16825 fi
   16826 done
   16827 
   16828 
   16829 #
   16830 # Check for algorithm support in OpenSSL
   16831 #
   16832 
   16833 for ac_func in ECDSA_sign ECDSA_verify
   16834 do :
   16835   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16836 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16837 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16838   cat >>confdefs.h <<_ACEOF
   16839 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16840 _ACEOF
   16841  :
   16842 else
   16843   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16845 as_fn_error $? "ECDSA support in OpenSSL is mandatory.
   16846 See \`config.log' for more details" "$LINENO" 5; }
   16847 fi
   16848 done
   16849 
   16850 
   16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
   16852 $as_echo_n "checking for ECDSA P-256 support... " >&6; }
   16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16854 /* end confdefs.h.  */
   16855 #include <openssl/evp.h>
   16856 		       #include <openssl/ec.h>
   16857 int
   16858 main ()
   16859 {
   16860 EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
   16861   ;
   16862   return 0;
   16863 }
   16864 _ACEOF
   16865 if ac_fn_c_try_compile "$LINENO"; then :
   16866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16867 $as_echo "yes" >&6; }
   16868 else
   16869   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16871 as_fn_error $? "not found.  ECDSA P-256 support in OpenSSL is mandatory.
   16872 See \`config.log' for more details" "$LINENO" 5; }
   16873 fi
   16874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16875 
   16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
   16877 $as_echo_n "checking for ECDSA P-384 support... " >&6; }
   16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16879 /* end confdefs.h.  */
   16880 #include <openssl/evp.h>
   16881 		       #include <openssl/ec.h>
   16882 int
   16883 main ()
   16884 {
   16885 EC_KEY *key = EC_KEY_new_by_curve_name(NID_secp384r1);
   16886   ;
   16887   return 0;
   16888 }
   16889 _ACEOF
   16890 if ac_fn_c_try_compile "$LINENO"; then :
   16891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16892 $as_echo "yes" >&6; }
   16893 else
   16894   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16896 as_fn_error $? "not found.  ECDSA P-384 support in OpenSSL is mandatory.
   16897 See \`config.log' for more details" "$LINENO" 5; }
   16898 fi
   16899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16900 
   16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
   16902 $as_echo_n "checking for Ed25519 support... " >&6; }
   16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16904 /* end confdefs.h.  */
   16905 #include <openssl/evp.h>
   16906 		       #include <openssl/ec.h>
   16907 int
   16908 main ()
   16909 {
   16910 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED25519);
   16911   ;
   16912   return 0;
   16913 }
   16914 _ACEOF
   16915 if ac_fn_c_try_compile "$LINENO"; then :
   16916 
   16917 $as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
   16918 
   16919      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16920 $as_echo "yes" >&6; }
   16921 else
   16922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16923 $as_echo "no" >&6; }
   16924 fi
   16925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16926 
   16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
   16928 $as_echo_n "checking for Ed448 support... " >&6; }
   16929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16930 /* end confdefs.h.  */
   16931 #include <openssl/evp.h>
   16932 		       #include <openssl/ec.h>
   16933 int
   16934 main ()
   16935 {
   16936 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED448);
   16937   ;
   16938   return 0;
   16939 }
   16940 _ACEOF
   16941 if ac_fn_c_try_compile "$LINENO"; then :
   16942 
   16943 $as_echo "#define HAVE_OPENSSL_ED448 1" >>confdefs.h
   16944 
   16945      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16946 $as_echo "yes" >&6; }
   16947 else
   16948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16949 $as_echo "no" >&6; }
   16950 fi
   16951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16952 
   16953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SipHash support" >&5
   16954 $as_echo_n "checking for SipHash support... " >&6; }
   16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16956 /* end confdefs.h.  */
   16957 #include <openssl/evp.h>
   16958 		       #include <openssl/opensslv.h>
   16959 int
   16960 main ()
   16961 {
   16962 #if OPENSSL_VERSION_NUMBER < 0x10101010L
   16963 		       #error OpenSSL >= 1.1.1a required for working SipHash initialization
   16964 		       #endif
   16965 		       EVP_PKEY *key = EVP_PKEY_new_raw_private_key(
   16966 			   EVP_PKEY_SIPHASH, NULL, NULL, 0);
   16967   ;
   16968   return 0;
   16969 }
   16970 _ACEOF
   16971 if ac_fn_c_try_compile "$LINENO"; then :
   16972 
   16973 $as_echo "#define HAVE_OPENSSL_SIPHASH 1" >>confdefs.h
   16974 
   16975      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16976 $as_echo "yes" >&6; }
   16977 else
   16978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16979 $as_echo "no" >&6; }
   16980 fi
   16981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16982 
   16983 #
   16984 # Check for OpenSSL SHA-1 support
   16985 #
   16986 for ac_func in EVP_sha1
   16987 do :
   16988   ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
   16989 if test "x$ac_cv_func_EVP_sha1" = xyes; then :
   16990   cat >>confdefs.h <<_ACEOF
   16991 #define HAVE_EVP_SHA1 1
   16992 _ACEOF
   16993  :
   16994 else
   16995   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16997 as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
   16998 See \`config.log' for more details" "$LINENO" 5; }
   16999 fi
   17000 done
   17001 
   17002 
   17003 #
   17004 # Check for OpenSSL SHA-2 support
   17005 #
   17006 for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
   17007 do :
   17008   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17010 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17011   cat >>confdefs.h <<_ACEOF
   17012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17013 _ACEOF
   17014  :
   17015 else
   17016   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17018 as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
   17019 See \`config.log' for more details" "$LINENO" 5; }
   17020 fi
   17021 done
   17022 
   17023 
   17024 #
   17025 # Check for OpenSSL AES support
   17026 #
   17027 for ac_func in EVP_aes_128_ecb EVP_aes_192_ecb EVP_aes_256_ecb
   17028 do :
   17029   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17030 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17031 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17032   cat >>confdefs.h <<_ACEOF
   17033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17034 _ACEOF
   17035  :
   17036 else
   17037   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17039 as_fn_error $? "AES support in OpenSSL is mandatory.
   17040 See \`config.log' for more details" "$LINENO" 5; }
   17041 fi
   17042 done
   17043 
   17044 
   17045 #
   17046 # Check for OpenSSL 1.1.x/LibreSSL functions
   17047 #
   17048 for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key
   17049 do :
   17050   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17051 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17052 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17053   cat >>confdefs.h <<_ACEOF
   17054 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17055 _ACEOF
   17056 
   17057 fi
   17058 done
   17059 
   17060 
   17061 #
   17062 # Check whether FIPS mode is available and whether we should enable it
   17063 #
   17064 # Check whether --enable-fips-mode was given.
   17065 if test "${enable_fips_mode+set}" = set; then :
   17066   enableval=$enable_fips_mode;
   17067 else
   17068   enable_fips_mode="no"
   17069 fi
   17070 
   17071 
   17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
   17073 $as_echo_n "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
   17074 case $enable_fips_mode in #(
   17075   yes) :
   17076     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17077 $as_echo "yes" >&6; }
   17078 		for ac_func in FIPS_mode
   17079 do :
   17080   ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
   17081 if test "x$ac_cv_func_FIPS_mode" = xyes; then :
   17082   cat >>confdefs.h <<_ACEOF
   17083 #define HAVE_FIPS_MODE 1
   17084 _ACEOF
   17085 
   17086 else
   17087   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17089 as_fn_error $? "OpenSSL FIPS mode requested but not available.
   17090 See \`config.log' for more details" "$LINENO" 5; }
   17091 fi
   17092 done
   17093  ;; #(
   17094   no) :
   17095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17096 $as_echo "no" >&6; } ;; #(
   17097   *) :
   17098      ;;
   17099 esac
   17100 
   17101 
   17102   CCASFLAGS=$CCASFLAGS_openssl_ax_save_flags
   17103 
   17104 
   17105   CFLAGS=$CFLAGS_openssl_ax_save_flags
   17106 
   17107 
   17108   CPPFLAGS=$CPPFLAGS_openssl_ax_save_flags
   17109 
   17110 
   17111   CXXFLAGS=$CXXFLAGS_openssl_ax_save_flags
   17112 
   17113 
   17114   ERLCFLAGS=$ERLCFLAGS_openssl_ax_save_flags
   17115 
   17116 
   17117   FCFLAGS=$FCFLAGS_openssl_ax_save_flags
   17118 
   17119 
   17120   FCLIBS=$FCLIBS_openssl_ax_save_flags
   17121 
   17122 
   17123   FFLAGS=$FFLAGS_openssl_ax_save_flags
   17124 
   17125 
   17126   FLIBS=$FLIBS_openssl_ax_save_flags
   17127 
   17128 
   17129   GCJFLAGS=$GCJFLAGS_openssl_ax_save_flags
   17130 
   17131 
   17132   JAVACFLAGS=$JAVACFLAGS_openssl_ax_save_flags
   17133 
   17134 
   17135   LDFLAGS=$LDFLAGS_openssl_ax_save_flags
   17136 
   17137 
   17138   LIBS=$LIBS_openssl_ax_save_flags
   17139 
   17140 
   17141   OBJCFLAGS=$OBJCFLAGS_openssl_ax_save_flags
   17142 
   17143 
   17144   OBJCXXFLAGS=$OBJCXXFLAGS_openssl_ax_save_flags
   17145 
   17146 
   17147   UPCFLAGS=$UPCFLAGS_openssl_ax_save_flags
   17148 
   17149 
   17150   VALAFLAGS=$VALAFLAGS_openssl_ax_save_flags
   17151 
   17152 
   17153 
   17154 
   17155 
   17156 
   17157 
   17158 PKCS11_TOOLS=
   17159 PKCS11_TEST=
   17160 PKCS11_MANS=
   17161 #
   17162 # was --enable-native-pkcs11 specified?
   17163 #
   17164 # Check whether --enable-native-pkcs11 was given.
   17165 if test "${enable_native_pkcs11+set}" = set; then :
   17166   enableval=$enable_native_pkcs11; :
   17167 else
   17168   enable_native_pkcs11="no"
   17169 fi
   17170 
   17171 
   17172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 for Public-Key Cryptography" >&5
   17173 $as_echo_n "checking for PKCS11 for Public-Key Cryptography... " >&6; }
   17174 case $enable_native_pkcs11 in #(
   17175   no) :
   17176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17177 $as_echo "no" >&6; } ;; #(
   17178   yes) :
   17179     PKCS11_TOOLS=pkcs11
   17180 	       PKCS11_TEST=pkcs11
   17181 	       PKCS11_MANS='${pkcs11_man8_MANS}'
   17182 	       CRYPTO=pkcs11
   17183 	       if $use_threads; then :
   17184   :
   17185 else
   17186   as_fn_error $? "PKCS11 requires threading support" "$LINENO" 5
   17187 fi
   17188 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17189 $as_echo "yes" >&6; }
   17190 	       for ac_func in getpassphrase
   17191 do :
   17192   ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
   17193 if test "x$ac_cv_func_getpassphrase" = xyes; then :
   17194   cat >>confdefs.h <<_ACEOF
   17195 #define HAVE_GETPASSPHRASE 1
   17196 _ACEOF
   17197 
   17198 fi
   17199 done
   17200 
   17201 	       ;; #(
   17202   *) :
   17203      ;;
   17204 esac
   17205 
   17206 
   17207 
   17208 
   17209 
   17210 case $CRYPTO in #(
   17211   pkcs11) :
   17212 
   17213 $as_echo "#define USE_PKCS11 1" >>confdefs.h
   17214  ;; #(
   17215   *) :
   17216 
   17217 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
   17218  ;;
   17219 esac
   17220 
   17221 # preparation for automake
   17222 # AM_CONDITIONAL([PKCS11_TOOLS], [test "$with_native_pkcs11" = "yes"])
   17223 
   17224 #
   17225 # was --with-pkcs11 specified?
   17226 #
   17227 
   17228 # Check whether --with-pkcs11 was given.
   17229 if test "${with_pkcs11+set}" = set; then :
   17230   withval=$with_pkcs11; :
   17231 else
   17232   with_pkcs11="undefined"
   17233 fi
   17234 
   17235 
   17236 case $with_pkcs11 in #(
   17237   yes|auto) :
   17238     as_fn_error $? "--with-pkcs11 needs explicit path to the PKCS11 library" "$LINENO" 5 ;; #(
   17239   no|undefined) :
   17240     with_pkcs11="undefined" ;; #(
   17241   *) :
   17242      ;;
   17243 esac
   17244 
   17245 cat >>confdefs.h <<_ACEOF
   17246 #define PK11_LIB_LOCATION "$with_pkcs11"
   17247 _ACEOF
   17248 
   17249 
   17250 # for PKCS11 benchmarks
   17251 
   17252 have_clock_gt=no
   17253 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
   17254 if test "x$ac_cv_func_clock_gettime" = xyes; then :
   17255   have_clock_gt=yes
   17256 fi
   17257 
   17258 if test "no" = "$have_clock_gt"; then
   17259 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
   17260 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
   17261 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
   17262   $as_echo_n "(cached) " >&6
   17263 else
   17264   ac_check_lib_save_LIBS=$LIBS
   17265 LIBS="-lrt  $LIBS"
   17266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17267 /* end confdefs.h.  */
   17268 
   17269 /* Override any GCC internal prototype to avoid an error.
   17270    Use char because int might match the return type of a GCC
   17271    builtin and then its argument prototype would still apply.  */
   17272 #ifdef __cplusplus
   17273 extern "C"
   17274 #endif
   17275 char clock_gettime ();
   17276 int
   17277 main ()
   17278 {
   17279 return clock_gettime ();
   17280   ;
   17281   return 0;
   17282 }
   17283 _ACEOF
   17284 if ac_fn_c_try_link "$LINENO"; then :
   17285   ac_cv_lib_rt_clock_gettime=yes
   17286 else
   17287   ac_cv_lib_rt_clock_gettime=no
   17288 fi
   17289 rm -f core conftest.err conftest.$ac_objext \
   17290     conftest$ac_exeext conftest.$ac_ext
   17291 LIBS=$ac_check_lib_save_LIBS
   17292 fi
   17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
   17294 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
   17295 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
   17296   have_clock_gt=rt
   17297 fi
   17298 
   17299 fi
   17300 
   17301 if test "no" != "$have_clock_gt"; then
   17302 
   17303 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
   17304 
   17305 fi
   17306 
   17307 if test "rt" = "$have_clock_gt"; then
   17308 	LIBS="-lrt $LIBS"
   17309 fi
   17310 
   17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
   17312 $as_echo_n "checking for GSSAPI library... " >&6; }
   17313 
   17314 # Check whether --with-gssapi was given.
   17315 if test "${with_gssapi+set}" = set; then :
   17316   withval=$with_gssapi; use_gssapi="$withval"
   17317 else
   17318   use_gssapi="auto"
   17319 fi
   17320 
   17321 
   17322 # first try using krb5-config, if that does not work then fall back to "yes" method.
   17323 
   17324 case "$use_gssapi" in
   17325 */krb5-config|krb5-config)
   17326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
   17327 $as_echo "trying $use_gssapi" >&6; }
   17328     if test krb5-config = "$use_gssapi"
   17329     then
   17330 	# Extract the first word of "$use_gssapi", so it can be a program name with args.
   17331 set dummy $use_gssapi; ac_word=$2
   17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17333 $as_echo_n "checking for $ac_word... " >&6; }
   17334 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
   17335   $as_echo_n "(cached) " >&6
   17336 else
   17337   case $KRB5_CONFIG in
   17338   [\\/]* | ?:[\\/]*)
   17339   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
   17340   ;;
   17341   *)
   17342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17343 for as_dir in $PATH
   17344 do
   17345   IFS=$as_save_IFS
   17346   test -z "$as_dir" && as_dir=.
   17347     for ac_exec_ext in '' $ac_executable_extensions; do
   17348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17349     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   17350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17351     break 2
   17352   fi
   17353 done
   17354   done
   17355 IFS=$as_save_IFS
   17356 
   17357   ;;
   17358 esac
   17359 fi
   17360 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
   17361 if test -n "$KRB5_CONFIG"; then
   17362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
   17363 $as_echo "$KRB5_CONFIG" >&6; }
   17364 else
   17365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17366 $as_echo "no" >&6; }
   17367 fi
   17368 
   17369 
   17370     else
   17371 	KRB5_CONFIG="$use_gssapi"
   17372     fi
   17373     gssapi_cflags=`$KRB5_CONFIG --cflags gssapi`
   17374     gssapi_libs=`$KRB5_CONFIG --libs gssapi`
   17375     saved_cppflags="$CPPFLAGS"
   17376     CPPFLAGS="$gssapi_cflags $CPPFLAGS"
   17377     for ac_header in gssapi.h gssapi/gssapi.h
   17378 do :
   17379   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17380 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17381 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17382   cat >>confdefs.h <<_ACEOF
   17383 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17384 _ACEOF
   17385  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   17386 fi
   17387 
   17388 done
   17389 
   17390     if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   17391 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
   17392 $as_echo "krb5-config: gssapi.h not found" >&6; }
   17393 	CPPFLAGS="$saved_cppflags"
   17394 	use_gssapi="yes"
   17395     else
   17396 	for ac_header in krb5/krb5.h krb5.h
   17397 do :
   17398   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17399 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17400 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17401   cat >>confdefs.h <<_ACEOF
   17402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17403 _ACEOF
   17404  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   17405 fi
   17406 
   17407 done
   17408 
   17409 	if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   17410 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
   17411 $as_echo "krb5-config: krb5.h not found" >&6; }
   17412 	    CPPFLAGS="$saved_cppflags"
   17413 	    use_gssapi="yes"
   17414 	else
   17415 	    CPPFLAGS="$saved_cppflags"
   17416 	    saved_libs="$LIBS"
   17417 	    LIBS=$gssapi_libs
   17418 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
   17419 $as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
   17420 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17421 /* end confdefs.h.  */
   17422 
   17423 int
   17424 main ()
   17425 {
   17426 gss_acquire_cred();krb5_init_context()
   17427   ;
   17428   return 0;
   17429 }
   17430 _ACEOF
   17431 if ac_fn_c_try_link "$LINENO"; then :
   17432   gssapi_linked=yes
   17433 else
   17434   gssapi_linked=no
   17435 fi
   17436 rm -f core conftest.err conftest.$ac_objext \
   17437     conftest$ac_exeext conftest.$ac_ext
   17438 	    case $gssapi_linked in
   17439 		yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
   17440 $as_echo "krb5-config: linked" >&6; };;
   17441 		no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
   17442 $as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
   17443 		    use_gssapi="yes"
   17444 		    ;;
   17445 	    esac
   17446 	    LIBS=$saved_libs
   17447 	fi
   17448     fi
   17449     if test "yes" = "$use_gssapi"; then
   17450 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
   17451 $as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
   17452     fi
   17453     ;;
   17454 esac
   17455 
   17456 case "$host" in
   17457 *darwin*)
   17458 	if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
   17459 	then
   17460 		use_gssapi=framework
   17461 	fi
   17462 	;;
   17463 esac
   17464 
   17465 # gssapi is just the framework, we really require kerberos v5, so
   17466 # look for those headers (the gssapi headers must be there, too)
   17467 # The problem with this implementation is that it doesn't allow
   17468 # for the specification of gssapi and krb5 headers in different locations,
   17469 # which probably ought to be fixed although fixing might raise the issue of
   17470 # trying to build with incompatible versions of gssapi and krb5.
   17471 if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
   17472 then
   17473 	# first, deal with the obvious
   17474 	if test \( -f /usr/include/kerberosv5/krb5.h -o \
   17475 		   -f /usr/include/krb5/krb5.h -o \
   17476 		   -f /usr/include/krb5.h \)   -a \
   17477 		\( -f /usr/include/gssapi.h -o \
   17478 		   -f /usr/include/gssapi/gssapi.h \)
   17479 	then
   17480 		use_gssapi=/usr
   17481 	else
   17482 	    krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
   17483 	    for d in $krb5dirs
   17484 	    do
   17485 		if test -f $d/include/gssapi/gssapi_krb5.h -o \
   17486 			-f $d/include/krb5.h
   17487 		then
   17488 			if test -f $d/include/gssapi/gssapi.h -o \
   17489 				-f $d/include/gssapi.h
   17490 			then
   17491 				use_gssapi=$d
   17492 				break
   17493 			fi
   17494 		fi
   17495 	    done
   17496 	    if test "auto" = "$use_gssapi"
   17497 	    then
   17498 		use_gssapi="no"
   17499 	    fi
   17500 	fi
   17501 fi
   17502 
   17503 case "$use_gssapi" in
   17504 	no)
   17505 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   17506 $as_echo "disabled" >&6; }
   17507 		USE_GSSAPI=''
   17508 		;;
   17509 	yes)
   17510 		as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
   17511 		;;
   17512 	*/krb5-config|krb5-config)
   17513 		USE_GSSAPI='-DGSSAPI'
   17514 		DST_GSSAPI_INC="$gssapi_cflags"
   17515 		DNS_GSSAPI_LIBS="$gssapi_libs"
   17516 		;;
   17517 	framework)
   17518 		USE_GSSAPI='-DGSSAPI'
   17519 		ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
   17520 		ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
   17521 		DNS_GSSAPI_LIBS="-framework Kerberos"
   17522 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
   17523 $as_echo "framework" >&6; }
   17524 		;;
   17525 
   17526 	*)
   17527 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
   17528 $as_echo "looking in $use_gssapi/lib" >&6; }
   17529 		USE_GSSAPI='-DGSSAPI'
   17530 		saved_cppflags="$CPPFLAGS"
   17531 		CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
   17532 		for ac_header in gssapi.h gssapi/gssapi.h
   17533 do :
   17534   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17535 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17536 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17537   cat >>confdefs.h <<_ACEOF
   17538 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17539 _ACEOF
   17540  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   17541 		     gssapi_hack="#include <$ac_header>"
   17542 fi
   17543 
   17544 done
   17545 
   17546 
   17547 		if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   17548 		    as_fn_error $? "gssapi.h not found" "$LINENO" 5
   17549 		fi
   17550 
   17551 		for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
   17552 do :
   17553   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17554 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17555 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17556   cat >>confdefs.h <<_ACEOF
   17557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17558 _ACEOF
   17559  ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
   17560 		     gssapi_krb5_hack="#include <$ac_header>"
   17561 fi
   17562 
   17563 done
   17564 
   17565 
   17566 		for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
   17567 do :
   17568   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17569 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17570 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17571   cat >>confdefs.h <<_ACEOF
   17572 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17573 _ACEOF
   17574  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   17575 		    krb5_hack="#include <$ac_header>"
   17576 fi
   17577 
   17578 done
   17579 
   17580 
   17581 		if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   17582 		    as_fn_error $? "krb5.h not found" "$LINENO" 5
   17583 		fi
   17584 
   17585 		#
   17586 		# XXXDCL This probably doesn't work right on all systems.
   17587 		# It will need to be worked on as problems become evident.
   17588 		#
   17589 		# Essentially the problems here relate to two different
   17590 		# areas.  The first area is building with either KTH
   17591 		# or MIT Kerberos, particularly when both are present on
   17592 		# the machine.  The other is static versus dynamic linking.
   17593 		#
   17594 		# On the KTH vs MIT issue, Both have libkrb5 that can mess
   17595 		# up the works if one implementation ends up trying to
   17596 		# use the other's krb.  This is unfortunately a situation
   17597 		# that very easily arises.
   17598 		#
   17599 		# Dynamic linking when the dependency information is built
   17600 		# into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
   17601 		# all such problems go away, but when that setup is not
   17602 		# present, because either the dynamic libraries lack
   17603 		# dependencies or static linking is being done, then the
   17604 		# problems start to show up.
   17605 		saved_libs="$LIBS"
   17606 		for TRY_LIBS in \
   17607 		    "-lgssapi_krb5" \
   17608 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
   17609 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
   17610 		    "-lgssapi" \
   17611 		    "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
   17612 		    "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \
   17613 		    "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \
   17614 		    "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \
   17615 		    "-lgss -lkrb5"
   17616 		do
   17617 		    # Note that this does not include $saved_libs, because
   17618 		    # on FreeBSD machines this configure script has added
   17619 		    # -L/usr/local/lib to LIBS, which can make the
   17620 		    # -lgssapi_krb5 test succeed with shared libraries even
   17621 		    # when you are trying to build with KTH in /usr/lib.
   17622 		    if test "/usr" = "$use_gssapi"
   17623 		    then
   17624 			    LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS"
   17625 		    else
   17626 			    LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS"
   17627 		    fi
   17628 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
   17629 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
   17630 		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17631 /* end confdefs.h.  */
   17632 
   17633 #include <sys/types.h>
   17634 $gssapi_hack
   17635 $gssapi_krb5_hack
   17636 $krb5_hack
   17637 
   17638 int
   17639 main ()
   17640 {
   17641 gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
   17642 #if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
   17643 gsskrb5_register_acceptor_identity(NULL);
   17644 #endif
   17645   ;
   17646   return 0;
   17647 }
   17648 _ACEOF
   17649 if ac_fn_c_try_link "$LINENO"; then :
   17650   gssapi_linked=yes
   17651 else
   17652   gssapi_linked=no
   17653 fi
   17654 rm -f core conftest.err conftest.$ac_objext \
   17655     conftest$ac_exeext conftest.$ac_ext
   17656 		    case $gssapi_linked in
   17657 		    yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17658 $as_echo "yes" >&6; }; break ;;
   17659 		    no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17660 $as_echo "no" >&6; } ;;
   17661 		    esac
   17662 		done
   17663 
   17664 		CPPFLAGS="$saved_cppflags"
   17665 
   17666 		case $gssapi_linked in
   17667 		no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
   17668 		esac
   17669 
   17670 		#
   17671 		# XXXDCL Major kludge.  Tries to cope with KTH in /usr/lib
   17672 		# but MIT in /usr/local/lib and trying to build with KTH.
   17673 		# /usr/local/lib can end up earlier on the link lines.
   17674 		# Like most kludges, this one is not only inelegant it
   17675 		# is also likely to be the wrong thing to do at least as
   17676 		# many times as it is the right thing.  Something better
   17677 		# needs to be done.
   17678 		#
   17679 		if test "/usr" = "$use_gssapi" -a \
   17680 			-f /usr/local/lib/libkrb5.a; then
   17681 		    FIX_KTH_VS_MIT=yes
   17682 		fi
   17683 
   17684 		case "$FIX_KTH_VS_MIT" in
   17685 		yes)
   17686 		    case "$enable_static_linking" in
   17687 		    yes) gssapi_lib_suffix=".a"  ;;
   17688 		    *)   gssapi_lib_suffix=".so" ;;
   17689 		    esac
   17690 
   17691 		    for lib in $LIBS; do
   17692 			case $lib in
   17693 			-L*)
   17694 			    ;;
   17695 			-l*)
   17696 			    new_lib=`echo $lib |
   17697 				     sed -e s%^-l%$use_gssapi/lib/lib% \
   17698 					 -e s%$%$gssapi_lib_suffix%`
   17699 			    NEW_LIBS="$NEW_LIBS $new_lib"
   17700 			    ;;
   17701 			*)
   17702 			   as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
   17703 			    ;;
   17704 			esac
   17705 		    done
   17706 		    LIBS="$NEW_LIBS"
   17707 		    ;;
   17708 		esac
   17709 
   17710 		DST_GSSAPI_INC="-I$use_gssapi/include"
   17711 		DNS_GSSAPI_LIBS="$LIBS"
   17712 
   17713 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
   17714 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
   17715 		LIBS="$saved_libs"
   17716 		;;
   17717 esac
   17718 
   17719 
   17720 
   17721 
   17722 
   17723 
   17724 
   17725 
   17726 
   17727 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
   17728 
   17729 #
   17730 # Applications linking with libdns also need to link with these libraries.
   17731 #
   17732 
   17733 
   17734 
   17735 #
   17736 # was --with-lmdb specified?
   17737 #
   17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
   17739 $as_echo_n "checking for lmdb library... " >&6; }
   17740 
   17741 # Check whether --with-lmdb was given.
   17742 if test "${with_lmdb+set}" = set; then :
   17743   withval=$with_lmdb; use_lmdb="$withval"
   17744 else
   17745   use_lmdb="auto"
   17746 fi
   17747 
   17748 
   17749 have_lmdb=""
   17750 case "$use_lmdb" in
   17751 	no)
   17752 		LMDB_LIBS=""
   17753 		;;
   17754 	auto|yes)
   17755 		for d in /usr /usr/local /opt/local
   17756 		do
   17757 			if test -f "${d}/include/lmdb.h"
   17758 			then
   17759 				if test ${d} != /usr
   17760 				then
   17761 					LMDB_CFLAGS="-I ${d}/include"
   17762 					LMDB_LIBS="-L${d}/lib"
   17763 				fi
   17764 				have_lmdb="yes"
   17765 			fi
   17766 		done
   17767 		;;
   17768 	*)
   17769 		if test -f "${use_lmdb}/include/lmdb.h"
   17770 		then
   17771 			LMDB_CFLAGS="-I${use_lmdb}/include"
   17772 			LMDB_LIBS="-L${use_lmdb}/lib"
   17773 			have_lmdb="yes"
   17774 		else
   17775 			as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
   17776 		fi
   17777 		;;
   17778 esac
   17779 
   17780 if test "X${have_lmdb}" != "X"
   17781 then
   17782 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17783 $as_echo "yes" >&6; }
   17784 
   17785 
   17786   CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS
   17787 
   17788 
   17789 
   17790   CFLAGS_lmdb_ax_save_flags=$CFLAGS
   17791 
   17792 
   17793 
   17794   CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS
   17795 
   17796 
   17797 
   17798   CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS
   17799 
   17800 
   17801 
   17802   ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS
   17803 
   17804 
   17805 
   17806   FCFLAGS_lmdb_ax_save_flags=$FCFLAGS
   17807 
   17808 
   17809 
   17810   FCLIBS_lmdb_ax_save_flags=$FCLIBS
   17811 
   17812 
   17813 
   17814   FFLAGS_lmdb_ax_save_flags=$FFLAGS
   17815 
   17816 
   17817 
   17818   FLIBS_lmdb_ax_save_flags=$FLIBS
   17819 
   17820 
   17821 
   17822   GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS
   17823 
   17824 
   17825 
   17826   JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS
   17827 
   17828 
   17829 
   17830   LDFLAGS_lmdb_ax_save_flags=$LDFLAGS
   17831 
   17832 
   17833 
   17834   LIBS_lmdb_ax_save_flags=$LIBS
   17835 
   17836 
   17837 
   17838   OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS
   17839 
   17840 
   17841 
   17842   OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS
   17843 
   17844 
   17845 
   17846   UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS
   17847 
   17848 
   17849 
   17850   VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS
   17851 
   17852 
   17853 
   17854 	CFLAGS="$CFLAGS $LMDB_CFLAGS"
   17855 	LIBS="$LIBS $LMDB_LIBS"
   17856 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
   17857 $as_echo_n "checking for library containing mdb_env_create... " >&6; }
   17858 if ${ac_cv_search_mdb_env_create+:} false; then :
   17859   $as_echo_n "(cached) " >&6
   17860 else
   17861   ac_func_search_save_LIBS=$LIBS
   17862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17863 /* end confdefs.h.  */
   17864 
   17865 /* Override any GCC internal prototype to avoid an error.
   17866    Use char because int might match the return type of a GCC
   17867    builtin and then its argument prototype would still apply.  */
   17868 #ifdef __cplusplus
   17869 extern "C"
   17870 #endif
   17871 char mdb_env_create ();
   17872 int
   17873 main ()
   17874 {
   17875 return mdb_env_create ();
   17876   ;
   17877   return 0;
   17878 }
   17879 _ACEOF
   17880 for ac_lib in '' lmdb; do
   17881   if test -z "$ac_lib"; then
   17882     ac_res="none required"
   17883   else
   17884     ac_res=-l$ac_lib
   17885     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17886   fi
   17887   if ac_fn_c_try_link "$LINENO"; then :
   17888   ac_cv_search_mdb_env_create=$ac_res
   17889 fi
   17890 rm -f core conftest.err conftest.$ac_objext \
   17891     conftest$ac_exeext
   17892   if ${ac_cv_search_mdb_env_create+:} false; then :
   17893   break
   17894 fi
   17895 done
   17896 if ${ac_cv_search_mdb_env_create+:} false; then :
   17897 
   17898 else
   17899   ac_cv_search_mdb_env_create=no
   17900 fi
   17901 rm conftest.$ac_ext
   17902 LIBS=$ac_func_search_save_LIBS
   17903 fi
   17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
   17905 $as_echo "$ac_cv_search_mdb_env_create" >&6; }
   17906 ac_res=$ac_cv_search_mdb_env_create
   17907 if test "$ac_res" != no; then :
   17908   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17909 
   17910 else
   17911   as_fn_error $? "found lmdb include but not library." "$LINENO" 5
   17912 			have_lmdb=""
   17913 fi
   17914 
   17915 	LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create"
   17916 
   17917   CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
   17918 
   17919 
   17920   CFLAGS=$CFLAGS_lmdb_ax_save_flags
   17921 
   17922 
   17923   CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
   17924 
   17925 
   17926   CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
   17927 
   17928 
   17929   ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
   17930 
   17931 
   17932   FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
   17933 
   17934 
   17935   FCLIBS=$FCLIBS_lmdb_ax_save_flags
   17936 
   17937 
   17938   FFLAGS=$FFLAGS_lmdb_ax_save_flags
   17939 
   17940 
   17941   FLIBS=$FLIBS_lmdb_ax_save_flags
   17942 
   17943 
   17944   GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
   17945 
   17946 
   17947   JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
   17948 
   17949 
   17950   LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
   17951 
   17952 
   17953   LIBS=$LIBS_lmdb_ax_save_flags
   17954 
   17955 
   17956   OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
   17957 
   17958 
   17959   OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
   17960 
   17961 
   17962   UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
   17963 
   17964 
   17965   VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
   17966 
   17967 
   17968 
   17969 elif test "X$use_lmdb" = Xyes
   17970 then
   17971 	as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
   17972 else
   17973 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17974 $as_echo "no" >&6; }
   17975 fi
   17976 
   17977 
   17978 
   17979 NZD_TOOLS=""
   17980 NZDSRCS=
   17981 NZDTARGETS=
   17982 if test "X${have_lmdb}" != "X"
   17983 then
   17984 
   17985 $as_echo "#define HAVE_LMDB 1" >>confdefs.h
   17986 
   17987 	NZD_TOOLS="nzd"
   17988 	NZDSRCS='${NZDSRCS}'
   17989 	NZDTARGETS='${NZDTARGETS}'
   17990 	NZD_MANS='${nzd_man8_MANS}'
   17991 fi
   17992 
   17993 
   17994 
   17995 
   17996 
   17997 #
   17998 # was --with-libxml2 specified?
   17999 #
   18000 
   18001 # Check whether --with-libxml2 was given.
   18002 if test "${with_libxml2+set}" = set; then :
   18003   withval=$with_libxml2;
   18004 else
   18005   with_libxml2="auto"
   18006 fi
   18007 
   18008 
   18009 case $with_libxml2 in #(
   18010   no) :
   18011      ;; #(
   18012   auto) :
   18013 
   18014 pkg_failed=no
   18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
   18016 $as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; }
   18017 
   18018 if test -n "$LIBXML2_CFLAGS"; then
   18019     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
   18020  elif test -n "$PKG_CONFIG"; then
   18021     if test -n "$PKG_CONFIG" && \
   18022     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   18023   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   18024   ac_status=$?
   18025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18026   test $ac_status = 0; }; then
   18027   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
   18028 		      test "x$?" != "x0" && pkg_failed=yes
   18029 else
   18030   pkg_failed=yes
   18031 fi
   18032  else
   18033     pkg_failed=untried
   18034 fi
   18035 if test -n "$LIBXML2_LIBS"; then
   18036     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
   18037  elif test -n "$PKG_CONFIG"; then
   18038     if test -n "$PKG_CONFIG" && \
   18039     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   18040   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   18041   ac_status=$?
   18042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18043   test $ac_status = 0; }; then
   18044   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
   18045 		      test "x$?" != "x0" && pkg_failed=yes
   18046 else
   18047   pkg_failed=yes
   18048 fi
   18049  else
   18050     pkg_failed=untried
   18051 fi
   18052 
   18053 
   18054 
   18055 if test $pkg_failed = yes; then
   18056         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18057 $as_echo "no" >&6; }
   18058 
   18059 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18060         _pkg_short_errors_supported=yes
   18061 else
   18062         _pkg_short_errors_supported=no
   18063 fi
   18064         if test $_pkg_short_errors_supported = yes; then
   18065 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   18066         else
   18067 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   18068         fi
   18069 	# Put the nasty error message in config.log where it belongs
   18070 	echo "$LIBXML2_PKG_ERRORS" >&5
   18071 
   18072 	:
   18073 elif test $pkg_failed = untried; then
   18074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18075 $as_echo "no" >&6; }
   18076 	:
   18077 else
   18078 	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
   18079 	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
   18080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18081 $as_echo "yes" >&6; }
   18082 
   18083 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
   18084 
   18085 fi ;; #(
   18086   yes) :
   18087 
   18088 pkg_failed=no
   18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
   18090 $as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; }
   18091 
   18092 if test -n "$LIBXML2_CFLAGS"; then
   18093     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
   18094  elif test -n "$PKG_CONFIG"; then
   18095     if test -n "$PKG_CONFIG" && \
   18096     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   18097   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   18098   ac_status=$?
   18099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18100   test $ac_status = 0; }; then
   18101   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
   18102 		      test "x$?" != "x0" && pkg_failed=yes
   18103 else
   18104   pkg_failed=yes
   18105 fi
   18106  else
   18107     pkg_failed=untried
   18108 fi
   18109 if test -n "$LIBXML2_LIBS"; then
   18110     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
   18111  elif test -n "$PKG_CONFIG"; then
   18112     if test -n "$PKG_CONFIG" && \
   18113     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   18114   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   18115   ac_status=$?
   18116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18117   test $ac_status = 0; }; then
   18118   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
   18119 		      test "x$?" != "x0" && pkg_failed=yes
   18120 else
   18121   pkg_failed=yes
   18122 fi
   18123  else
   18124     pkg_failed=untried
   18125 fi
   18126 
   18127 
   18128 
   18129 if test $pkg_failed = yes; then
   18130         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18131 $as_echo "no" >&6; }
   18132 
   18133 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18134         _pkg_short_errors_supported=yes
   18135 else
   18136         _pkg_short_errors_supported=no
   18137 fi
   18138         if test $_pkg_short_errors_supported = yes; then
   18139 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   18140         else
   18141 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   18142         fi
   18143 	# Put the nasty error message in config.log where it belongs
   18144 	echo "$LIBXML2_PKG_ERRORS" >&5
   18145 
   18146 	as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.0) were not met:
   18147 
   18148 $LIBXML2_PKG_ERRORS
   18149 
   18150 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   18151 installed software in a non-standard prefix.
   18152 
   18153 Alternatively, you may set the environment variables LIBXML2_CFLAGS
   18154 and LIBXML2_LIBS to avoid the need to call pkg-config.
   18155 See the pkg-config man page for more details." "$LINENO" 5
   18156 elif test $pkg_failed = untried; then
   18157         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18158 $as_echo "no" >&6; }
   18159 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18161 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   18162 is in your PATH or set the PKG_CONFIG environment variable to the full
   18163 path to pkg-config.
   18164 
   18165 Alternatively, you may set the environment variables LIBXML2_CFLAGS
   18166 and LIBXML2_LIBS to avoid the need to call pkg-config.
   18167 See the pkg-config man page for more details.
   18168 
   18169 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   18170 See \`config.log' for more details" "$LINENO" 5; }
   18171 else
   18172 	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
   18173 	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
   18174         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18175 $as_echo "yes" >&6; }
   18176 
   18177 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
   18178 
   18179 fi ;; #(
   18180   *) :
   18181     as_fn_error $? "Specifying libxml2 installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
   18182 esac
   18183 
   18184 #
   18185 # DEPRECATED
   18186 #
   18187 
   18188 # Check whether --with-libjson was given.
   18189 if test "${with_libjson+set}" = set; then :
   18190   withval=$with_libjson; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libjson is DEPRECATED and will be removed in a future release, use --with-json-c instead" >&5
   18191 $as_echo "$as_me: WARNING: --with-libjson is DEPRECATED and will be removed in a future release, use --with-json-c instead" >&2;}
   18192 else
   18193   with_libjson="detect"
   18194 fi
   18195 
   18196 
   18197 #
   18198 # was --with-json-c specified?
   18199 #
   18200 
   18201 # Check whether --with-json-c was given.
   18202 if test "${with_json_c+set}" = set; then :
   18203   withval=$with_json_c;
   18204 else
   18205   with_json_c="$with_libjson"
   18206 fi
   18207 
   18208 
   18209 case $with_json_c in #(
   18210   no) :
   18211      ;; #(
   18212   detect) :
   18213 
   18214 pkg_failed=no
   18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
   18216 $as_echo_n "checking for json-c >= 0.11... " >&6; }
   18217 
   18218 if test -n "$JSON_C_CFLAGS"; then
   18219     pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
   18220  elif test -n "$PKG_CONFIG"; then
   18221     if test -n "$PKG_CONFIG" && \
   18222     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   18223   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   18224   ac_status=$?
   18225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18226   test $ac_status = 0; }; then
   18227   pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
   18228 		      test "x$?" != "x0" && pkg_failed=yes
   18229 else
   18230   pkg_failed=yes
   18231 fi
   18232  else
   18233     pkg_failed=untried
   18234 fi
   18235 if test -n "$JSON_C_LIBS"; then
   18236     pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
   18237  elif test -n "$PKG_CONFIG"; then
   18238     if test -n "$PKG_CONFIG" && \
   18239     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   18240   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   18241   ac_status=$?
   18242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18243   test $ac_status = 0; }; then
   18244   pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
   18245 		      test "x$?" != "x0" && pkg_failed=yes
   18246 else
   18247   pkg_failed=yes
   18248 fi
   18249  else
   18250     pkg_failed=untried
   18251 fi
   18252 
   18253 
   18254 
   18255 if test $pkg_failed = yes; then
   18256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18257 $as_echo "no" >&6; }
   18258 
   18259 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18260         _pkg_short_errors_supported=yes
   18261 else
   18262         _pkg_short_errors_supported=no
   18263 fi
   18264         if test $_pkg_short_errors_supported = yes; then
   18265 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18266         else
   18267 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18268         fi
   18269 	# Put the nasty error message in config.log where it belongs
   18270 	echo "$JSON_C_PKG_ERRORS" >&5
   18271 
   18272 	:
   18273 elif test $pkg_failed = untried; then
   18274         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18275 $as_echo "no" >&6; }
   18276 	:
   18277 else
   18278 	JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
   18279 	JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
   18280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18281 $as_echo "yes" >&6; }
   18282 
   18283 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
   18284 
   18285 fi ;; #(
   18286   yes) :
   18287 
   18288 pkg_failed=no
   18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
   18290 $as_echo_n "checking for json-c >= 0.11... " >&6; }
   18291 
   18292 if test -n "$JSON_C_CFLAGS"; then
   18293     pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
   18294  elif test -n "$PKG_CONFIG"; then
   18295     if test -n "$PKG_CONFIG" && \
   18296     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   18297   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   18298   ac_status=$?
   18299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18300   test $ac_status = 0; }; then
   18301   pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
   18302 		      test "x$?" != "x0" && pkg_failed=yes
   18303 else
   18304   pkg_failed=yes
   18305 fi
   18306  else
   18307     pkg_failed=untried
   18308 fi
   18309 if test -n "$JSON_C_LIBS"; then
   18310     pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
   18311  elif test -n "$PKG_CONFIG"; then
   18312     if test -n "$PKG_CONFIG" && \
   18313     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   18314   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   18315   ac_status=$?
   18316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18317   test $ac_status = 0; }; then
   18318   pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
   18319 		      test "x$?" != "x0" && pkg_failed=yes
   18320 else
   18321   pkg_failed=yes
   18322 fi
   18323  else
   18324     pkg_failed=untried
   18325 fi
   18326 
   18327 
   18328 
   18329 if test $pkg_failed = yes; then
   18330         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18331 $as_echo "no" >&6; }
   18332 
   18333 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18334         _pkg_short_errors_supported=yes
   18335 else
   18336         _pkg_short_errors_supported=no
   18337 fi
   18338         if test $_pkg_short_errors_supported = yes; then
   18339 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18340         else
   18341 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18342         fi
   18343 	# Put the nasty error message in config.log where it belongs
   18344 	echo "$JSON_C_PKG_ERRORS" >&5
   18345 
   18346 	as_fn_error $? "Package requirements (json-c >= 0.11) were not met:
   18347 
   18348 $JSON_C_PKG_ERRORS
   18349 
   18350 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   18351 installed software in a non-standard prefix.
   18352 
   18353 Alternatively, you may set the environment variables JSON_C_CFLAGS
   18354 and JSON_C_LIBS to avoid the need to call pkg-config.
   18355 See the pkg-config man page for more details." "$LINENO" 5
   18356 elif test $pkg_failed = untried; then
   18357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18358 $as_echo "no" >&6; }
   18359 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18361 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   18362 is in your PATH or set the PKG_CONFIG environment variable to the full
   18363 path to pkg-config.
   18364 
   18365 Alternatively, you may set the environment variables JSON_C_CFLAGS
   18366 and JSON_C_LIBS to avoid the need to call pkg-config.
   18367 See the pkg-config man page for more details.
   18368 
   18369 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   18370 See \`config.log' for more details" "$LINENO" 5; }
   18371 else
   18372 	JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
   18373 	JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
   18374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18375 $as_echo "yes" >&6; }
   18376 
   18377 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
   18378 
   18379 fi ;; #(
   18380   *) :
   18381     as_fn_error $? "Specifying json-c installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5
   18382         ;;
   18383 esac
   18384 
   18385 
   18386 
   18387 
   18388 
   18389 # Check whether --with-zlib was given.
   18390 if test "${with_zlib+set}" = set; then :
   18391   withval=$with_zlib;
   18392 else
   18393   with_zlib="auto"
   18394 fi
   18395 
   18396 
   18397 case $with_zlib in #(
   18398   no) :
   18399      ;; #(
   18400   auto) :
   18401 
   18402 pkg_failed=no
   18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
   18404 $as_echo_n "checking for zlib... " >&6; }
   18405 
   18406 if test -n "$ZLIB_CFLAGS"; then
   18407     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
   18408  elif test -n "$PKG_CONFIG"; then
   18409     if test -n "$PKG_CONFIG" && \
   18410     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18411   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18412   ac_status=$?
   18413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18414   test $ac_status = 0; }; then
   18415   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
   18416 		      test "x$?" != "x0" && pkg_failed=yes
   18417 else
   18418   pkg_failed=yes
   18419 fi
   18420  else
   18421     pkg_failed=untried
   18422 fi
   18423 if test -n "$ZLIB_LIBS"; then
   18424     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
   18425  elif test -n "$PKG_CONFIG"; then
   18426     if test -n "$PKG_CONFIG" && \
   18427     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18428   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18429   ac_status=$?
   18430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18431   test $ac_status = 0; }; then
   18432   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
   18433 		      test "x$?" != "x0" && pkg_failed=yes
   18434 else
   18435   pkg_failed=yes
   18436 fi
   18437  else
   18438     pkg_failed=untried
   18439 fi
   18440 
   18441 
   18442 
   18443 if test $pkg_failed = yes; then
   18444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18445 $as_echo "no" >&6; }
   18446 
   18447 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18448         _pkg_short_errors_supported=yes
   18449 else
   18450         _pkg_short_errors_supported=no
   18451 fi
   18452         if test $_pkg_short_errors_supported = yes; then
   18453 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
   18454         else
   18455 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
   18456         fi
   18457 	# Put the nasty error message in config.log where it belongs
   18458 	echo "$ZLIB_PKG_ERRORS" >&5
   18459 
   18460 	:
   18461 elif test $pkg_failed = untried; then
   18462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18463 $as_echo "no" >&6; }
   18464 	:
   18465 else
   18466 	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
   18467 	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
   18468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18469 $as_echo "yes" >&6; }
   18470 
   18471 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
   18472 
   18473 fi ;; #(
   18474   yes) :
   18475 
   18476 pkg_failed=no
   18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
   18478 $as_echo_n "checking for zlib... " >&6; }
   18479 
   18480 if test -n "$ZLIB_CFLAGS"; then
   18481     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
   18482  elif test -n "$PKG_CONFIG"; then
   18483     if test -n "$PKG_CONFIG" && \
   18484     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18485   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18486   ac_status=$?
   18487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18488   test $ac_status = 0; }; then
   18489   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
   18490 		      test "x$?" != "x0" && pkg_failed=yes
   18491 else
   18492   pkg_failed=yes
   18493 fi
   18494  else
   18495     pkg_failed=untried
   18496 fi
   18497 if test -n "$ZLIB_LIBS"; then
   18498     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
   18499  elif test -n "$PKG_CONFIG"; then
   18500     if test -n "$PKG_CONFIG" && \
   18501     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18502   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18503   ac_status=$?
   18504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18505   test $ac_status = 0; }; then
   18506   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
   18507 		      test "x$?" != "x0" && pkg_failed=yes
   18508 else
   18509   pkg_failed=yes
   18510 fi
   18511  else
   18512     pkg_failed=untried
   18513 fi
   18514 
   18515 
   18516 
   18517 if test $pkg_failed = yes; then
   18518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18519 $as_echo "no" >&6; }
   18520 
   18521 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18522         _pkg_short_errors_supported=yes
   18523 else
   18524         _pkg_short_errors_supported=no
   18525 fi
   18526         if test $_pkg_short_errors_supported = yes; then
   18527 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
   18528         else
   18529 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
   18530         fi
   18531 	# Put the nasty error message in config.log where it belongs
   18532 	echo "$ZLIB_PKG_ERRORS" >&5
   18533 
   18534 	as_fn_error $? "Package requirements (zlib) were not met:
   18535 
   18536 $ZLIB_PKG_ERRORS
   18537 
   18538 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   18539 installed software in a non-standard prefix.
   18540 
   18541 Alternatively, you may set the environment variables ZLIB_CFLAGS
   18542 and ZLIB_LIBS to avoid the need to call pkg-config.
   18543 See the pkg-config man page for more details." "$LINENO" 5
   18544 elif test $pkg_failed = untried; then
   18545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18546 $as_echo "no" >&6; }
   18547 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18549 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   18550 is in your PATH or set the PKG_CONFIG environment variable to the full
   18551 path to pkg-config.
   18552 
   18553 Alternatively, you may set the environment variables ZLIB_CFLAGS
   18554 and ZLIB_LIBS to avoid the need to call pkg-config.
   18555 See the pkg-config man page for more details.
   18556 
   18557 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   18558 See \`config.log' for more details" "$LINENO" 5; }
   18559 else
   18560 	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
   18561 	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
   18562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18563 $as_echo "yes" >&6; }
   18564 
   18565 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
   18566 
   18567 fi ;; #(
   18568   *) :
   18569     as_fn_error $? "Specifying zlib installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
   18570 esac
   18571 
   18572 
   18573 
   18574 #
   18575 # In solaris 10, SMF can manage named service
   18576 #
   18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
   18578 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
   18579 if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
   18580   $as_echo_n "(cached) " >&6
   18581 else
   18582   ac_check_lib_save_LIBS=$LIBS
   18583 LIBS="-lscf  $LIBS"
   18584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18585 /* end confdefs.h.  */
   18586 
   18587 /* Override any GCC internal prototype to avoid an error.
   18588    Use char because int might match the return type of a GCC
   18589    builtin and then its argument prototype would still apply.  */
   18590 #ifdef __cplusplus
   18591 extern "C"
   18592 #endif
   18593 char smf_enable_instance ();
   18594 int
   18595 main ()
   18596 {
   18597 return smf_enable_instance ();
   18598   ;
   18599   return 0;
   18600 }
   18601 _ACEOF
   18602 if ac_fn_c_try_link "$LINENO"; then :
   18603   ac_cv_lib_scf_smf_enable_instance=yes
   18604 else
   18605   ac_cv_lib_scf_smf_enable_instance=no
   18606 fi
   18607 rm -f core conftest.err conftest.$ac_objext \
   18608     conftest$ac_exeext conftest.$ac_ext
   18609 LIBS=$ac_check_lib_save_LIBS
   18610 fi
   18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
   18612 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
   18613 if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
   18614   cat >>confdefs.h <<_ACEOF
   18615 #define HAVE_LIBSCF 1
   18616 _ACEOF
   18617 
   18618   LIBS="-lscf $LIBS"
   18619 
   18620 fi
   18621 
   18622 
   18623 #
   18624 # Additional compiler settings.
   18625 #
   18626 MKDEPCC="$CC"
   18627 
   18628 MKDEPCFLAGS="-M"
   18629 case $host in #(
   18630   *-solaris*) :
   18631 
   18632 	    if test "$GCC" != "yes"; then :
   18633   MKDEPCFLAGS="-xM"
   18634 fi ;; #(
   18635   *) :
   18636      ;;
   18637 esac
   18638 
   18639 if test "$GCC" = "yes"; then :
   18640   STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -Wno-missing-field-initializers"
   18641 
   18642 fi
   18643 
   18644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
   18645 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
   18646 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
   18647   $as_echo_n "(cached) " >&6
   18648 else
   18649 
   18650   ax_check_save_flags=$CFLAGS
   18651   CFLAGS="$CFLAGS  -fno-strict-aliasing"
   18652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18653 /* end confdefs.h.  */
   18654 
   18655 int
   18656 main ()
   18657 {
   18658 
   18659   ;
   18660   return 0;
   18661 }
   18662 _ACEOF
   18663 if ac_fn_c_try_compile "$LINENO"; then :
   18664   ax_cv_check_cflags___fno_strict_aliasing=yes
   18665 else
   18666   ax_cv_check_cflags___fno_strict_aliasing=no
   18667 fi
   18668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18669   CFLAGS=$ax_check_save_flags
   18670 fi
   18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
   18672 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
   18673 if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
   18674   STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
   18675 else
   18676   :
   18677 fi
   18678 
   18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks" >&5
   18680 $as_echo_n "checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks... " >&6; }
   18681 if ${ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks+:} false; then :
   18682   $as_echo_n "(cached) " >&6
   18683 else
   18684 
   18685   ax_check_save_flags=$CFLAGS
   18686   CFLAGS="$CFLAGS  -Werror -fno-delete-null-pointer-checks"
   18687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18688 /* end confdefs.h.  */
   18689 
   18690 int
   18691 main ()
   18692 {
   18693 
   18694   ;
   18695   return 0;
   18696 }
   18697 _ACEOF
   18698 if ac_fn_c_try_compile "$LINENO"; then :
   18699   ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=yes
   18700 else
   18701   ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=no
   18702 fi
   18703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18704   CFLAGS=$ax_check_save_flags
   18705 fi
   18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&5
   18707 $as_echo "$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&6; }
   18708 if test "x$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" = xyes; then :
   18709   STC_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
   18710 else
   18711   :
   18712 fi
   18713 
   18714 if test "$enable_warn_shadow" = "yes"; then :
   18715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshadow" >&5
   18716 $as_echo_n "checking whether C compiler accepts -Wshadow... " >&6; }
   18717 if ${ax_cv_check_cflags___Wshadow+:} false; then :
   18718   $as_echo_n "(cached) " >&6
   18719 else
   18720 
   18721   ax_check_save_flags=$CFLAGS
   18722   CFLAGS="$CFLAGS  -Wshadow"
   18723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18724 /* end confdefs.h.  */
   18725 
   18726 int
   18727 main ()
   18728 {
   18729 
   18730   ;
   18731   return 0;
   18732 }
   18733 _ACEOF
   18734 if ac_fn_c_try_compile "$LINENO"; then :
   18735   ax_cv_check_cflags___Wshadow=yes
   18736 else
   18737   ax_cv_check_cflags___Wshadow=no
   18738 fi
   18739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18740   CFLAGS=$ax_check_save_flags
   18741 fi
   18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshadow" >&5
   18743 $as_echo "$ax_cv_check_cflags___Wshadow" >&6; }
   18744 if test "x$ax_cv_check_cflags___Wshadow" = xyes; then :
   18745   STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
   18746 else
   18747   :
   18748 fi
   18749 
   18750 fi
   18751 if test "$enable_warn_error" = "yes"; then :
   18752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
   18753 $as_echo_n "checking whether C compiler accepts -Werror... " >&6; }
   18754 if ${ax_cv_check_cflags___Werror+:} false; then :
   18755   $as_echo_n "(cached) " >&6
   18756 else
   18757 
   18758   ax_check_save_flags=$CFLAGS
   18759   CFLAGS="$CFLAGS  -Werror"
   18760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18761 /* end confdefs.h.  */
   18762 
   18763 int
   18764 main ()
   18765 {
   18766 
   18767   ;
   18768   return 0;
   18769 }
   18770 _ACEOF
   18771 if ac_fn_c_try_compile "$LINENO"; then :
   18772   ax_cv_check_cflags___Werror=yes
   18773 else
   18774   ax_cv_check_cflags___Werror=no
   18775 fi
   18776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18777   CFLAGS=$ax_check_save_flags
   18778 fi
   18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
   18780 $as_echo "$ax_cv_check_cflags___Werror" >&6; }
   18781 if test "x$ax_cv_check_cflags___Werror" = xyes; then :
   18782   STD_CWARNINGS="$STD_CWARNINGS -Werror"
   18783 else
   18784   :
   18785 fi
   18786 
   18787 fi
   18788 
   18789 
   18790 
   18791 
   18792 
   18793 #
   18794 # -lxnet buys us one big porting headache...  standards, gotta love 'em.
   18795 #
   18796 # AC_CHECK_LIB(xnet, socket, ,
   18797 #    AC_CHECK_LIB(socket, socket)
   18798 # )
   18799 #
   18800 # Use this for now, instead:
   18801 #
   18802 case "$host" in
   18803 	*-linux*)
   18804 		;;
   18805 	*)
   18806 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   18807 $as_echo_n "checking for socket in -lsocket... " >&6; }
   18808 if ${ac_cv_lib_socket_socket+:} false; then :
   18809   $as_echo_n "(cached) " >&6
   18810 else
   18811   ac_check_lib_save_LIBS=$LIBS
   18812 LIBS="-lsocket  $LIBS"
   18813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18814 /* end confdefs.h.  */
   18815 
   18816 /* Override any GCC internal prototype to avoid an error.
   18817    Use char because int might match the return type of a GCC
   18818    builtin and then its argument prototype would still apply.  */
   18819 #ifdef __cplusplus
   18820 extern "C"
   18821 #endif
   18822 char socket ();
   18823 int
   18824 main ()
   18825 {
   18826 return socket ();
   18827   ;
   18828   return 0;
   18829 }
   18830 _ACEOF
   18831 if ac_fn_c_try_link "$LINENO"; then :
   18832   ac_cv_lib_socket_socket=yes
   18833 else
   18834   ac_cv_lib_socket_socket=no
   18835 fi
   18836 rm -f core conftest.err conftest.$ac_objext \
   18837     conftest$ac_exeext conftest.$ac_ext
   18838 LIBS=$ac_check_lib_save_LIBS
   18839 fi
   18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   18841 $as_echo "$ac_cv_lib_socket_socket" >&6; }
   18842 if test "x$ac_cv_lib_socket_socket" = xyes; then :
   18843   cat >>confdefs.h <<_ACEOF
   18844 #define HAVE_LIBSOCKET 1
   18845 _ACEOF
   18846 
   18847   LIBS="-lsocket $LIBS"
   18848 
   18849 fi
   18850 
   18851 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
   18852 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
   18853 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
   18854   $as_echo_n "(cached) " >&6
   18855 else
   18856   ac_check_lib_save_LIBS=$LIBS
   18857 LIBS="-lnsl  $LIBS"
   18858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18859 /* end confdefs.h.  */
   18860 
   18861 /* Override any GCC internal prototype to avoid an error.
   18862    Use char because int might match the return type of a GCC
   18863    builtin and then its argument prototype would still apply.  */
   18864 #ifdef __cplusplus
   18865 extern "C"
   18866 #endif
   18867 char inet_addr ();
   18868 int
   18869 main ()
   18870 {
   18871 return inet_addr ();
   18872   ;
   18873   return 0;
   18874 }
   18875 _ACEOF
   18876 if ac_fn_c_try_link "$LINENO"; then :
   18877   ac_cv_lib_nsl_inet_addr=yes
   18878 else
   18879   ac_cv_lib_nsl_inet_addr=no
   18880 fi
   18881 rm -f core conftest.err conftest.$ac_objext \
   18882     conftest$ac_exeext conftest.$ac_ext
   18883 LIBS=$ac_check_lib_save_LIBS
   18884 fi
   18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
   18886 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
   18887 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
   18888   cat >>confdefs.h <<_ACEOF
   18889 #define HAVE_LIBNSL 1
   18890 _ACEOF
   18891 
   18892   LIBS="-lnsl $LIBS"
   18893 
   18894 fi
   18895 
   18896 		;;
   18897 esac
   18898 
   18899 #
   18900 # Work around Solaris's select() limitations.
   18901 #
   18902 case "$host" in
   18903 	*-solaris2.[89]|*-solaris2.1?)
   18904 
   18905 $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
   18906 
   18907 	;;
   18908 esac
   18909 
   18910 #
   18911 # Purify support
   18912 #
   18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
   18914 $as_echo_n "checking whether to use purify... " >&6; }
   18915 
   18916 # Check whether --with-purify was given.
   18917 if test "${with_purify+set}" = set; then :
   18918   withval=$with_purify; use_purify="$withval"
   18919 else
   18920   use_purify="no"
   18921 fi
   18922 
   18923 
   18924 case "$use_purify" in
   18925 	no)
   18926 		;;
   18927 	yes)
   18928 		# Extract the first word of "purify", so it can be a program name with args.
   18929 set dummy purify; ac_word=$2
   18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18931 $as_echo_n "checking for $ac_word... " >&6; }
   18932 if ${ac_cv_path_purify_path+:} false; then :
   18933   $as_echo_n "(cached) " >&6
   18934 else
   18935   case $purify_path in
   18936   [\\/]* | ?:[\\/]*)
   18937   ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
   18938   ;;
   18939   *)
   18940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18941 for as_dir in $PATH
   18942 do
   18943   IFS=$as_save_IFS
   18944   test -z "$as_dir" && as_dir=.
   18945     for ac_exec_ext in '' $ac_executable_extensions; do
   18946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18947     ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
   18948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18949     break 2
   18950   fi
   18951 done
   18952   done
   18953 IFS=$as_save_IFS
   18954 
   18955   test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
   18956   ;;
   18957 esac
   18958 fi
   18959 purify_path=$ac_cv_path_purify_path
   18960 if test -n "$purify_path"; then
   18961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   18962 $as_echo "$purify_path" >&6; }
   18963 else
   18964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18965 $as_echo "no" >&6; }
   18966 fi
   18967 
   18968 
   18969 		;;
   18970 	*)
   18971 		purify_path="$use_purify"
   18972 		;;
   18973 esac
   18974 
   18975 case "$use_purify" in
   18976 	no)
   18977 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18978 $as_echo "no" >&6; }
   18979 		PURIFY=""
   18980 		;;
   18981 	*)
   18982 		if test -f "$purify_path" || test purify = "$purify_path"; then
   18983 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   18984 $as_echo "$purify_path" >&6; }
   18985 			PURIFYFLAGS="`echo $PURIFYOPTIONS`"
   18986 			PURIFY="$purify_path $PURIFYFLAGS"
   18987 		else
   18988 			as_fn_error $? "$purify_path not found.
   18989 
   18990 Please choose the proper path with the following command:
   18991 
   18992     configure --with-purify=PATH
   18993 " "$LINENO" 5
   18994 		fi
   18995 		;;
   18996 esac
   18997 
   18998 
   18999 
   19000 #
   19001 # Google/Great Performance Tools CPU Profiler
   19002 #
   19003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
   19004 $as_echo_n "checking whether to use gperftools profiler... " >&6; }
   19005 
   19006 # Check whether --with-gperftools-profiler was given.
   19007 if test "${with_gperftools_profiler+set}" = set; then :
   19008   withval=$with_gperftools_profiler; use_profiler="$withval"
   19009 else
   19010   use_profiler="no"
   19011 fi
   19012 
   19013 
   19014 case $use_profiler in
   19015 	yes)
   19016 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19017 $as_echo "yes" >&6; }
   19018 
   19019 $as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
   19020 
   19021 		LIBS="$LIBS -lprofiler"
   19022 		;;
   19023 	*)
   19024 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19025 $as_echo "no" >&6; }
   19026 		;;
   19027 esac
   19028 
   19029 #
   19030 # enable/disable dumping stack backtrace.  Also check if the system supports
   19031 # glibc-compatible backtrace() function.
   19032 #
   19033 # Check whether --enable-backtrace was given.
   19034 if test "${enable_backtrace+set}" = set; then :
   19035   enableval=$enable_backtrace;
   19036 else
   19037   enable_backtrace="yes"
   19038 fi
   19039 
   19040 
   19041 if test "$enable_backtrace" = "yes"; then :
   19042 
   19043 $as_echo "#define USE_BACKTRACE 1" >>confdefs.h
   19044 
   19045        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19046 /* end confdefs.h.  */
   19047 #include <execinfo.h>
   19048 int
   19049 main ()
   19050 {
   19051 return (backtrace((void **)0, 0));
   19052 
   19053   ;
   19054   return 0;
   19055 }
   19056 _ACEOF
   19057 if ac_fn_c_try_link "$LINENO"; then :
   19058 
   19059 $as_echo "#define HAVE_LIBCTRACE 1" >>confdefs.h
   19060 
   19061 
   19062 fi
   19063 rm -f core conftest.err conftest.$ac_objext \
   19064     conftest$ac_exeext conftest.$ac_ext
   19065 fi
   19066 
   19067 # Check whether --enable-symtable was given.
   19068 if test "${enable_symtable+set}" = set; then :
   19069   enableval=$enable_symtable; want_symtable="$enableval"
   19070 else
   19071   want_symtable="minimal"
   19072 fi
   19073 
   19074 case $want_symtable in
   19075 yes|all|minimal)     # "yes" is a hidden value equivalent to "minimal"
   19076 	if test "" = "$PERL"
   19077 	then
   19078 		as_fn_error $? "Internal symbol table requires perl but no perl is found.
   19079 Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
   19080 	fi
   19081 	if test "yes" = "$use_libtool"; then
   19082 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&5
   19083 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&2;}
   19084 	else
   19085 		# we generate the internal symbol table only for those systems
   19086 		# known to work to avoid unexpected build failure.  Also, warn
   19087 		# about unsupported systems when the feature is enabled
   19088 		#  manually.
   19089 		case $host_os in
   19090 		freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
   19091 			MKSYMTBL_PROGRAM="$PERL"
   19092 			if test "all" = "$want_symtable"; then
   19093 				ALWAYS_MAKE_SYMTABLE="yes"
   19094 			fi
   19095 			;;
   19096 		*)
   19097 			if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
   19098 			then
   19099 				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
   19100 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
   19101 			fi
   19102 		esac
   19103 	fi
   19104 	;;
   19105 *)
   19106 	;;
   19107 esac
   19108 
   19109 
   19110 
   19111 #
   19112 # File name extension for static archive files, for those few places
   19113 # where they are treated differently from dynamic ones.
   19114 #
   19115 SA=a
   19116 
   19117 
   19118 
   19119 
   19120 
   19121 
   19122 
   19123 
   19124 
   19125 
   19126 BIND9_CO_RULE=".c.$O:"
   19127 
   19128 
   19129 #
   19130 # Here begins a very long section to determine the system's networking
   19131 # capabilities.  The order of the tests is significant.
   19132 #
   19133 
   19134 #
   19135 # We do the IPv6 compilation checking after libtool so that we can put
   19136 # the right suffix on the files.
   19137 #
   19138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
   19139 $as_echo_n "checking for IPv6 structures... " >&6; }
   19140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19141 /* end confdefs.h.  */
   19142 
   19143        #include <sys/types.h>
   19144        #include <sys/socket.h>
   19145        #include <netinet/in.h>
   19146 
   19147 int
   19148 main ()
   19149 {
   19150 
   19151        struct sockaddr_in6 sin6;
   19152        struct in6_addr in6;
   19153        struct in6_pktinfo in6_pi;
   19154        struct sockaddr_storage storage;
   19155        in6 = in6addr_any;
   19156        in6 = in6addr_loopback;
   19157        sin6.sin6_scope_id = 0;
   19158        return (0);
   19159 
   19160   ;
   19161   return 0;
   19162 }
   19163 _ACEOF
   19164 if ac_fn_c_try_compile "$LINENO"; then :
   19165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19166 $as_echo "yes" >&6; }
   19167 else
   19168   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19170 as_fn_error $? "IPv6 support is mandatory
   19171 See \`config.log' for more details" "$LINENO" 5; }
   19172 fi
   19173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19174 
   19175 #
   19176 # Allow forcibly disabling TCP Fast Open support as autodetection might yield
   19177 # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
   19178 # comment in lib/isc/unix/socket.c).
   19179 #
   19180 
   19181 # Check whether --enable-tcp_fastopen was given.
   19182 if test "${enable_tcp_fastopen+set}" = set; then :
   19183   enableval=$enable_tcp_fastopen;
   19184 else
   19185   enable_tcp_fastopen="yes"
   19186 fi
   19187 
   19188 
   19189 if test "$enable_tcp_fastopen" = "yes"; then :
   19190 
   19191 $as_echo "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
   19192 
   19193 fi
   19194 
   19195 #
   19196 # Check for some other useful functions that are not ever-present.
   19197 #
   19198 for ac_func in strlcpy strlcat
   19199 do :
   19200   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   19201 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   19202 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   19203   cat >>confdefs.h <<_ACEOF
   19204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   19205 _ACEOF
   19206 
   19207 fi
   19208 done
   19209 
   19210 
   19211 
   19212 
   19213 # Check whether --with-readline was given.
   19214 if test "${with_readline+set}" = set; then :
   19215   withval=$with_readline; use_readline="$withval"
   19216 else
   19217   use_readline="auto"
   19218 fi
   19219 
   19220 case "$use_readline" in
   19221 no)	;;
   19222 *)
   19223 	saved_LIBS="$LIBS"
   19224 	case "$use_readline" in
   19225 	yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
   19226 	*) try_readline="$use_readline"
   19227 	esac
   19228 	for readline in "$try_readline" $or_readline
   19229 	do
   19230 		LIBS="$readline"
   19231 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
   19232 $as_echo "$as_me: checking for readline with $readline" >&6;}
   19233 		for ac_func in readline
   19234 do :
   19235   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   19236 if test "x$ac_cv_func_readline" = xyes; then :
   19237   cat >>confdefs.h <<_ACEOF
   19238 #define HAVE_READLINE 1
   19239 _ACEOF
   19240 
   19241 fi
   19242 done
   19243 
   19244 		if test "yes" = "$ac_cv_func_readline"
   19245 		then
   19246 			READLINE_LIB="$readline"
   19247 			break
   19248 		fi
   19249 		for lib in -lterminfo -ltermcap -lncurses -lcurses
   19250 		do
   19251 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
   19252 $as_echo "$as_me: checking for readline with $readline $lib" >&6;}
   19253 			unset ac_cv_func_readline
   19254 			LIBS="$readline $lib"
   19255 			for ac_func in readline
   19256 do :
   19257   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   19258 if test "x$ac_cv_func_readline" = xyes; then :
   19259   cat >>confdefs.h <<_ACEOF
   19260 #define HAVE_READLINE 1
   19261 _ACEOF
   19262 
   19263 fi
   19264 done
   19265 
   19266 			if test "yes" = "$ac_cv_func_readline"
   19267 			then
   19268 				READLINE_LIB="$readline $lib"
   19269 				break
   19270 			fi
   19271 		done
   19272 		if test "yes" = "$ac_cv_func_readline"
   19273 		then
   19274 			break
   19275 		fi
   19276 	done
   19277 	if test "auto" != "$use_readline" &&
   19278 	   test "X$READLINE_LIB" = "X"
   19279 	then
   19280 		as_fn_error $? "The readline library was not found." "$LINENO" 5
   19281 	fi
   19282 	LIBS="$saved_LIBS"
   19283 	;;
   19284 esac
   19285 if test "yes" = "$ac_cv_func_readline"
   19286 then
   19287 	case "$READLINE_LIB" in
   19288 	*edit*)
   19289 		for ac_header in editline/readline.h
   19290 do :
   19291   ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
   19292 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
   19293   cat >>confdefs.h <<_ACEOF
   19294 #define HAVE_EDITLINE_READLINE_H 1
   19295 _ACEOF
   19296 
   19297 fi
   19298 
   19299 done
   19300 
   19301 		for ac_header in edit/readline/readline.h
   19302 do :
   19303   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
   19304 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
   19305   cat >>confdefs.h <<_ACEOF
   19306 #define HAVE_EDIT_READLINE_READLINE_H 1
   19307 _ACEOF
   19308 
   19309 fi
   19310 
   19311 done
   19312 
   19313 		for ac_header in edit/readline/history.h
   19314 do :
   19315   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
   19316 if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
   19317   cat >>confdefs.h <<_ACEOF
   19318 #define HAVE_EDIT_READLINE_HISTORY_H 1
   19319 _ACEOF
   19320 
   19321 fi
   19322 
   19323 done
   19324 
   19325 		;;
   19326 	esac
   19327 	for ac_header in readline/readline.h
   19328 do :
   19329   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
   19330 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
   19331   cat >>confdefs.h <<_ACEOF
   19332 #define HAVE_READLINE_READLINE_H 1
   19333 _ACEOF
   19334 
   19335 fi
   19336 
   19337 done
   19338 
   19339 	for ac_header in readline/history.h
   19340 do :
   19341   ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
   19342 if test "x$ac_cv_header_readline_history_h" = xyes; then :
   19343   cat >>confdefs.h <<_ACEOF
   19344 #define HAVE_READLINE_HISTORY_H 1
   19345 _ACEOF
   19346 
   19347 fi
   19348 
   19349 done
   19350 
   19351 fi
   19352 
   19353 #
   19354 # Use our own SPNEGO implementation?
   19355 #
   19356 # Check whether --enable-isc-spnego was given.
   19357 if test "${enable_isc_spnego+set}" = set; then :
   19358   enableval=$enable_isc_spnego;
   19359 fi
   19360 
   19361 
   19362 if test -n "$USE_GSSAPI"
   19363 then
   19364 	case "$enable_isc_spnego" in
   19365 		yes|'')
   19366 			USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
   19367 			DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
   19368 			DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
   19369 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
   19370 $as_echo "using SPNEGO from lib/dns" >&6; }
   19371 			;;
   19372 		no)
   19373 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
   19374 $as_echo "using SPNEGO from GSSAPI library" >&6; }
   19375 			;;
   19376 	esac
   19377 fi
   19378 
   19379 
   19380 
   19381 
   19382 
   19383 
   19384 #
   19385 # Security Stuff
   19386 #
   19387 # Note it is very recommended to *not* disable chroot(),
   19388 # this is only because chroot() was made obsolete by Posix.
   19389 # Check whether --enable-chroot was given.
   19390 if test "${enable_chroot+set}" = set; then :
   19391   enableval=$enable_chroot;
   19392 fi
   19393 
   19394 case "$enable_chroot" in
   19395 	yes|'')
   19396 		for ac_func in chroot
   19397 do :
   19398   ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
   19399 if test "x$ac_cv_func_chroot" = xyes; then :
   19400   cat >>confdefs.h <<_ACEOF
   19401 #define HAVE_CHROOT 1
   19402 _ACEOF
   19403 
   19404 fi
   19405 done
   19406 
   19407 		;;
   19408 	no)
   19409 		;;
   19410 esac
   19411 
   19412 LIBCAP_LIBS=""
   19413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capabilities" >&5
   19414 $as_echo_n "checking whether to enable Linux capabilities... " >&6; }
   19415 # Check whether --enable-linux-caps was given.
   19416 if test "${enable_linux_caps+set}" = set; then :
   19417   enableval=$enable_linux_caps;
   19418 else
   19419   case $host in #(
   19420   *-linux*) :
   19421     enable_linux_caps=yes ;; #(
   19422   *) :
   19423     enable_linux_caps=no ;;
   19424 esac
   19425 fi
   19426 
   19427 
   19428 if test "$enable_linux_caps" = "yes"; then :
   19429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19430 $as_echo "yes" >&6; }
   19431        for ac_header in sys/capability.h
   19432 do :
   19433   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
   19434 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
   19435   cat >>confdefs.h <<_ACEOF
   19436 #define HAVE_SYS_CAPABILITY_H 1
   19437 _ACEOF
   19438 
   19439 else
   19440   as_fn_error $? "sys/capability.h header is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   19441 fi
   19442 
   19443 done
   19444 
   19445 
   19446 
   19447   CCASFLAGS_cap_ax_save_flags=$CCASFLAGS
   19448 
   19449 
   19450 
   19451   CFLAGS_cap_ax_save_flags=$CFLAGS
   19452 
   19453 
   19454 
   19455   CPPFLAGS_cap_ax_save_flags=$CPPFLAGS
   19456 
   19457 
   19458 
   19459   CXXFLAGS_cap_ax_save_flags=$CXXFLAGS
   19460 
   19461 
   19462 
   19463   ERLCFLAGS_cap_ax_save_flags=$ERLCFLAGS
   19464 
   19465 
   19466 
   19467   FCFLAGS_cap_ax_save_flags=$FCFLAGS
   19468 
   19469 
   19470 
   19471   FCLIBS_cap_ax_save_flags=$FCLIBS
   19472 
   19473 
   19474 
   19475   FFLAGS_cap_ax_save_flags=$FFLAGS
   19476 
   19477 
   19478 
   19479   FLIBS_cap_ax_save_flags=$FLIBS
   19480 
   19481 
   19482 
   19483   GCJFLAGS_cap_ax_save_flags=$GCJFLAGS
   19484 
   19485 
   19486 
   19487   JAVACFLAGS_cap_ax_save_flags=$JAVACFLAGS
   19488 
   19489 
   19490 
   19491   LDFLAGS_cap_ax_save_flags=$LDFLAGS
   19492 
   19493 
   19494 
   19495   LIBS_cap_ax_save_flags=$LIBS
   19496 
   19497 
   19498 
   19499   OBJCFLAGS_cap_ax_save_flags=$OBJCFLAGS
   19500 
   19501 
   19502 
   19503   OBJCXXFLAGS_cap_ax_save_flags=$OBJCXXFLAGS
   19504 
   19505 
   19506 
   19507   UPCFLAGS_cap_ax_save_flags=$UPCFLAGS
   19508 
   19509 
   19510 
   19511   VALAFLAGS_cap_ax_save_flags=$VALAFLAGS
   19512 
   19513 
   19514 
   19515        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
   19516 $as_echo_n "checking for library containing cap_set_proc... " >&6; }
   19517 if ${ac_cv_search_cap_set_proc+:} false; then :
   19518   $as_echo_n "(cached) " >&6
   19519 else
   19520   ac_func_search_save_LIBS=$LIBS
   19521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19522 /* end confdefs.h.  */
   19523 
   19524 /* Override any GCC internal prototype to avoid an error.
   19525    Use char because int might match the return type of a GCC
   19526    builtin and then its argument prototype would still apply.  */
   19527 #ifdef __cplusplus
   19528 extern "C"
   19529 #endif
   19530 char cap_set_proc ();
   19531 int
   19532 main ()
   19533 {
   19534 return cap_set_proc ();
   19535   ;
   19536   return 0;
   19537 }
   19538 _ACEOF
   19539 for ac_lib in '' cap; do
   19540   if test -z "$ac_lib"; then
   19541     ac_res="none required"
   19542   else
   19543     ac_res=-l$ac_lib
   19544     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19545   fi
   19546   if ac_fn_c_try_link "$LINENO"; then :
   19547   ac_cv_search_cap_set_proc=$ac_res
   19548 fi
   19549 rm -f core conftest.err conftest.$ac_objext \
   19550     conftest$ac_exeext
   19551   if ${ac_cv_search_cap_set_proc+:} false; then :
   19552   break
   19553 fi
   19554 done
   19555 if ${ac_cv_search_cap_set_proc+:} false; then :
   19556 
   19557 else
   19558   ac_cv_search_cap_set_proc=no
   19559 fi
   19560 rm conftest.$ac_ext
   19561 LIBS=$ac_func_search_save_LIBS
   19562 fi
   19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
   19564 $as_echo "$ac_cv_search_cap_set_proc" >&6; }
   19565 ac_res=$ac_cv_search_cap_set_proc
   19566 if test "$ac_res" != no; then :
   19567   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19568   LIBCAP_LIBS="$ac_cv_search_cap_set_proc"
   19569 else
   19570   as_fn_error $? "libcap is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   19571 fi
   19572 
   19573 
   19574   CCASFLAGS=$CCASFLAGS_cap_ax_save_flags
   19575 
   19576 
   19577   CFLAGS=$CFLAGS_cap_ax_save_flags
   19578 
   19579 
   19580   CPPFLAGS=$CPPFLAGS_cap_ax_save_flags
   19581 
   19582 
   19583   CXXFLAGS=$CXXFLAGS_cap_ax_save_flags
   19584 
   19585 
   19586   ERLCFLAGS=$ERLCFLAGS_cap_ax_save_flags
   19587 
   19588 
   19589   FCFLAGS=$FCFLAGS_cap_ax_save_flags
   19590 
   19591 
   19592   FCLIBS=$FCLIBS_cap_ax_save_flags
   19593 
   19594 
   19595   FFLAGS=$FFLAGS_cap_ax_save_flags
   19596 
   19597 
   19598   FLIBS=$FLIBS_cap_ax_save_flags
   19599 
   19600 
   19601   GCJFLAGS=$GCJFLAGS_cap_ax_save_flags
   19602 
   19603 
   19604   JAVACFLAGS=$JAVACFLAGS_cap_ax_save_flags
   19605 
   19606 
   19607   LDFLAGS=$LDFLAGS_cap_ax_save_flags
   19608 
   19609 
   19610   LIBS=$LIBS_cap_ax_save_flags
   19611 
   19612 
   19613   OBJCFLAGS=$OBJCFLAGS_cap_ax_save_flags
   19614 
   19615 
   19616   OBJCXXFLAGS=$OBJCXXFLAGS_cap_ax_save_flags
   19617 
   19618 
   19619   UPCFLAGS=$UPCFLAGS_cap_ax_save_flags
   19620 
   19621 
   19622   VALAFLAGS=$VALAFLAGS_cap_ax_save_flags
   19623 
   19624 
   19625 
   19626 else
   19627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19628 $as_echo "no" >&6; }
   19629 fi
   19630 
   19631 
   19632 for ac_header in sys/un.h
   19633 do :
   19634   ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
   19635 if test "x$ac_cv_header_sys_un_h" = xyes; then :
   19636   cat >>confdefs.h <<_ACEOF
   19637 #define HAVE_SYS_UN_H 1
   19638 _ACEOF
   19639  ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
   19640 
   19641 else
   19642   ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
   19643 
   19644 fi
   19645 
   19646 done
   19647 
   19648 
   19649 
   19650 case "$host" in
   19651 *-solaris*)
   19652 
   19653 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
   19654 
   19655 	;;
   19656 esac
   19657 
   19658 #
   19659 # Time Zone Stuff
   19660 #
   19661 for ac_func in tzset
   19662 do :
   19663   ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
   19664 if test "x$ac_cv_func_tzset" = xyes; then :
   19665   cat >>confdefs.h <<_ACEOF
   19666 #define HAVE_TZSET 1
   19667 _ACEOF
   19668 
   19669 fi
   19670 done
   19671 
   19672 
   19673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
   19674 $as_echo_n "checking for optarg declaration... " >&6; }
   19675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19676 /* end confdefs.h.  */
   19677 
   19678 #include <unistd.h>
   19679 
   19680 int
   19681 main ()
   19682 {
   19683 optarg = 0;
   19684   ;
   19685   return 0;
   19686 }
   19687 _ACEOF
   19688 if ac_fn_c_try_compile "$LINENO"; then :
   19689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19690 $as_echo "yes" >&6; }
   19691 else
   19692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19693 $as_echo "no" >&6; }
   19694 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
   19695 
   19696 $as_echo "#define NEED_OPTARG 1" >>confdefs.h
   19697 
   19698 fi
   19699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19700 
   19701 #
   19702 # Check for nanoseconds in file stats
   19703 #
   19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
   19705 $as_echo_n "checking for st_mtim.tv_nsec... " >&6; }
   19706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19707 /* end confdefs.h.  */
   19708 #include <sys/fcntl.h>
   19709 int
   19710 main ()
   19711 {
   19712 struct stat s;
   19713        return(s.st_mtim.tv_nsec);
   19714 
   19715   ;
   19716   return 0;
   19717 }
   19718 _ACEOF
   19719 if ac_fn_c_try_compile "$LINENO"; then :
   19720 
   19721 $as_echo "#define HAVE_STAT_NSEC 1" >>confdefs.h
   19722 
   19723 fi
   19724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19725 
   19726 #
   19727 # Check for if_nametoindex() for IPv6 scoped addresses support
   19728 #
   19729 for ac_func in if_nametoindex
   19730 do :
   19731   ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
   19732 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
   19733   cat >>confdefs.h <<_ACEOF
   19734 #define HAVE_IF_NAMETOINDEX 1
   19735 _ACEOF
   19736 
   19737 fi
   19738 done
   19739 
   19740 
   19741 for ac_func in nanosleep usleep explicit_bzero
   19742 do :
   19743   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   19744 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   19745 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   19746   cat >>confdefs.h <<_ACEOF
   19747 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   19748 _ACEOF
   19749 
   19750 fi
   19751 done
   19752 
   19753 
   19754 ISC_ATOMIC_LIBS=""
   19755 for ac_header in stdatomic.h
   19756 do :
   19757   ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
   19758 if test "x$ac_cv_header_stdatomic_h" = xyes; then :
   19759   cat >>confdefs.h <<_ACEOF
   19760 #define HAVE_STDATOMIC_H 1
   19761 _ACEOF
   19762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   19763 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   19764    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19765 /* end confdefs.h.  */
   19766 #include <stdatomic.h>
   19767 int
   19768 main ()
   19769 {
   19770 atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   19771 
   19772   ;
   19773   return 0;
   19774 }
   19775 _ACEOF
   19776 if ac_fn_c_try_compile "$LINENO"; then :
   19777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdatomic.h" >&5
   19778 $as_echo "stdatomic.h" >&6; }
   19779       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
   19780 $as_echo_n "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
   19781       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19782 /* end confdefs.h.  */
   19783 #include <stdatomic.h>
   19784 int
   19785 main ()
   19786 {
   19787 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   19788 
   19789   ;
   19790   return 0;
   19791 }
   19792 _ACEOF
   19793 if ac_fn_c_try_link "$LINENO"; then :
   19794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19795 $as_echo "no" >&6; }
   19796 else
   19797   ISC_ATOMIC_LIBS="-latomic"
   19798 
   19799 
   19800   CCASFLAGS_atomic_ax_save_flags=$CCASFLAGS
   19801 
   19802 
   19803 
   19804   CFLAGS_atomic_ax_save_flags=$CFLAGS
   19805 
   19806 
   19807 
   19808   CPPFLAGS_atomic_ax_save_flags=$CPPFLAGS
   19809 
   19810 
   19811 
   19812   CXXFLAGS_atomic_ax_save_flags=$CXXFLAGS
   19813 
   19814 
   19815 
   19816   ERLCFLAGS_atomic_ax_save_flags=$ERLCFLAGS
   19817 
   19818 
   19819 
   19820   FCFLAGS_atomic_ax_save_flags=$FCFLAGS
   19821 
   19822 
   19823 
   19824   FCLIBS_atomic_ax_save_flags=$FCLIBS
   19825 
   19826 
   19827 
   19828   FFLAGS_atomic_ax_save_flags=$FFLAGS
   19829 
   19830 
   19831 
   19832   FLIBS_atomic_ax_save_flags=$FLIBS
   19833 
   19834 
   19835 
   19836   GCJFLAGS_atomic_ax_save_flags=$GCJFLAGS
   19837 
   19838 
   19839 
   19840   JAVACFLAGS_atomic_ax_save_flags=$JAVACFLAGS
   19841 
   19842 
   19843 
   19844   LDFLAGS_atomic_ax_save_flags=$LDFLAGS
   19845 
   19846 
   19847 
   19848   LIBS_atomic_ax_save_flags=$LIBS
   19849 
   19850 
   19851 
   19852   OBJCFLAGS_atomic_ax_save_flags=$OBJCFLAGS
   19853 
   19854 
   19855 
   19856   OBJCXXFLAGS_atomic_ax_save_flags=$OBJCXXFLAGS
   19857 
   19858 
   19859 
   19860   UPCFLAGS_atomic_ax_save_flags=$UPCFLAGS
   19861 
   19862 
   19863 
   19864   VALAFLAGS_atomic_ax_save_flags=$VALAFLAGS
   19865 
   19866 
   19867 
   19868 	 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   19869 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19870 /* end confdefs.h.  */
   19871 #include <stdatomic.h>
   19872 int
   19873 main ()
   19874 {
   19875 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   19876 
   19877   ;
   19878   return 0;
   19879 }
   19880 _ACEOF
   19881 if ac_fn_c_try_link "$LINENO"; then :
   19882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19883 $as_echo "yes" >&6; }
   19884 else
   19885   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19887 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
   19888 See \`config.log' for more details" "$LINENO" 5; }
   19889 fi
   19890 rm -f core conftest.err conftest.$ac_objext \
   19891     conftest$ac_exeext conftest.$ac_ext
   19892 
   19893   CCASFLAGS=$CCASFLAGS_atomic_ax_save_flags
   19894 
   19895 
   19896   CFLAGS=$CFLAGS_atomic_ax_save_flags
   19897 
   19898 
   19899   CPPFLAGS=$CPPFLAGS_atomic_ax_save_flags
   19900 
   19901 
   19902   CXXFLAGS=$CXXFLAGS_atomic_ax_save_flags
   19903 
   19904 
   19905   ERLCFLAGS=$ERLCFLAGS_atomic_ax_save_flags
   19906 
   19907 
   19908   FCFLAGS=$FCFLAGS_atomic_ax_save_flags
   19909 
   19910 
   19911   FCLIBS=$FCLIBS_atomic_ax_save_flags
   19912 
   19913 
   19914   FFLAGS=$FFLAGS_atomic_ax_save_flags
   19915 
   19916 
   19917   FLIBS=$FLIBS_atomic_ax_save_flags
   19918 
   19919 
   19920   GCJFLAGS=$GCJFLAGS_atomic_ax_save_flags
   19921 
   19922 
   19923   JAVACFLAGS=$JAVACFLAGS_atomic_ax_save_flags
   19924 
   19925 
   19926   LDFLAGS=$LDFLAGS_atomic_ax_save_flags
   19927 
   19928 
   19929   LIBS=$LIBS_atomic_ax_save_flags
   19930 
   19931 
   19932   OBJCFLAGS=$OBJCFLAGS_atomic_ax_save_flags
   19933 
   19934 
   19935   OBJCXXFLAGS=$OBJCXXFLAGS_atomic_ax_save_flags
   19936 
   19937 
   19938   UPCFLAGS=$UPCFLAGS_atomic_ax_save_flags
   19939 
   19940 
   19941   VALAFLAGS=$VALAFLAGS_atomic_ax_save_flags
   19942 
   19943 
   19944 
   19945 
   19946 fi
   19947 rm -f core conftest.err conftest.$ac_objext \
   19948     conftest$ac_exeext conftest.$ac_ext
   19949 
   19950 else
   19951   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19953 as_fn_error $? "stdatomic.h header found, but compilation failed, please fix your toolchain.
   19954 See \`config.log' for more details" "$LINENO" 5; }
   19955 
   19956 fi
   19957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19958 else
   19959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   19960 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   19961    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19962 /* end confdefs.h.  */
   19963 #include <inttypes.h>
   19964 int
   19965 main ()
   19966 {
   19967 int32_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   19968 
   19969   ;
   19970   return 0;
   19971 }
   19972 _ACEOF
   19973 if ac_fn_c_try_compile "$LINENO"; then :
   19974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __atomic builtins" >&5
   19975 $as_echo "__atomic builtins" >&6; }
   19976 
   19977 $as_echo "#define HAVE___ATOMIC 1" >>confdefs.h
   19978 
   19979       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit __atomic builtins" >&5
   19980 $as_echo_n "checking whether -latomic is needed for 64-bit __atomic builtins... " >&6; }
   19981       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19982 /* end confdefs.h.  */
   19983 #include <inttypes.h>
   19984 int
   19985 main ()
   19986 {
   19987 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   19988 
   19989   ;
   19990   return 0;
   19991 }
   19992 _ACEOF
   19993 if ac_fn_c_try_link "$LINENO"; then :
   19994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19995 $as_echo "no" >&6; }
   19996 else
   19997   ISC_ATOMIC_LIBS="-latomic"
   19998 
   19999 
   20000   CCASFLAGS_atomic_ax_save_flags=$CCASFLAGS
   20001 
   20002 
   20003 
   20004   CFLAGS_atomic_ax_save_flags=$CFLAGS
   20005 
   20006 
   20007 
   20008   CPPFLAGS_atomic_ax_save_flags=$CPPFLAGS
   20009 
   20010 
   20011 
   20012   CXXFLAGS_atomic_ax_save_flags=$CXXFLAGS
   20013 
   20014 
   20015 
   20016   ERLCFLAGS_atomic_ax_save_flags=$ERLCFLAGS
   20017 
   20018 
   20019 
   20020   FCFLAGS_atomic_ax_save_flags=$FCFLAGS
   20021 
   20022 
   20023 
   20024   FCLIBS_atomic_ax_save_flags=$FCLIBS
   20025 
   20026 
   20027 
   20028   FFLAGS_atomic_ax_save_flags=$FFLAGS
   20029 
   20030 
   20031 
   20032   FLIBS_atomic_ax_save_flags=$FLIBS
   20033 
   20034 
   20035 
   20036   GCJFLAGS_atomic_ax_save_flags=$GCJFLAGS
   20037 
   20038 
   20039 
   20040   JAVACFLAGS_atomic_ax_save_flags=$JAVACFLAGS
   20041 
   20042 
   20043 
   20044   LDFLAGS_atomic_ax_save_flags=$LDFLAGS
   20045 
   20046 
   20047 
   20048   LIBS_atomic_ax_save_flags=$LIBS
   20049 
   20050 
   20051 
   20052   OBJCFLAGS_atomic_ax_save_flags=$OBJCFLAGS
   20053 
   20054 
   20055 
   20056   OBJCXXFLAGS_atomic_ax_save_flags=$OBJCXXFLAGS
   20057 
   20058 
   20059 
   20060   UPCFLAGS_atomic_ax_save_flags=$UPCFLAGS
   20061 
   20062 
   20063 
   20064   VALAFLAGS_atomic_ax_save_flags=$VALAFLAGS
   20065 
   20066 
   20067 
   20068 	 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   20069 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20070 /* end confdefs.h.  */
   20071 #include <inttypes.h>
   20072 int
   20073 main ()
   20074 {
   20075 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   20076 
   20077   ;
   20078   return 0;
   20079 }
   20080 _ACEOF
   20081 if ac_fn_c_try_link "$LINENO"; then :
   20082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20083 $as_echo "yes" >&6; }
   20084 else
   20085   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   20086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   20087 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
   20088 See \`config.log' for more details" "$LINENO" 5; }
   20089 fi
   20090 rm -f core conftest.err conftest.$ac_objext \
   20091     conftest$ac_exeext conftest.$ac_ext
   20092 
   20093   CCASFLAGS=$CCASFLAGS_atomic_ax_save_flags
   20094 
   20095 
   20096   CFLAGS=$CFLAGS_atomic_ax_save_flags
   20097 
   20098 
   20099   CPPFLAGS=$CPPFLAGS_atomic_ax_save_flags
   20100 
   20101 
   20102   CXXFLAGS=$CXXFLAGS_atomic_ax_save_flags
   20103 
   20104 
   20105   ERLCFLAGS=$ERLCFLAGS_atomic_ax_save_flags
   20106 
   20107 
   20108   FCFLAGS=$FCFLAGS_atomic_ax_save_flags
   20109 
   20110 
   20111   FCLIBS=$FCLIBS_atomic_ax_save_flags
   20112 
   20113 
   20114   FFLAGS=$FFLAGS_atomic_ax_save_flags
   20115 
   20116 
   20117   FLIBS=$FLIBS_atomic_ax_save_flags
   20118 
   20119 
   20120   GCJFLAGS=$GCJFLAGS_atomic_ax_save_flags
   20121 
   20122 
   20123   JAVACFLAGS=$JAVACFLAGS_atomic_ax_save_flags
   20124 
   20125 
   20126   LDFLAGS=$LDFLAGS_atomic_ax_save_flags
   20127 
   20128 
   20129   LIBS=$LIBS_atomic_ax_save_flags
   20130 
   20131 
   20132   OBJCFLAGS=$OBJCFLAGS_atomic_ax_save_flags
   20133 
   20134 
   20135   OBJCXXFLAGS=$OBJCXXFLAGS_atomic_ax_save_flags
   20136 
   20137 
   20138   UPCFLAGS=$UPCFLAGS_atomic_ax_save_flags
   20139 
   20140 
   20141   VALAFLAGS=$VALAFLAGS_atomic_ax_save_flags
   20142 
   20143 
   20144 
   20145 
   20146 fi
   20147 rm -f core conftest.err conftest.$ac_objext \
   20148     conftest$ac_exeext conftest.$ac_ext
   20149 
   20150 else
   20151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __sync builtins" >&5
   20152 $as_echo "__sync builtins" >&6; }
   20153 
   20154 fi
   20155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20156 
   20157 fi
   20158 
   20159 done
   20160 
   20161 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   20162 
   20163 for ac_header in stdalign.h
   20164 do :
   20165   ac_fn_c_check_header_mongrel "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default"
   20166 if test "x$ac_cv_header_stdalign_h" = xyes; then :
   20167   cat >>confdefs.h <<_ACEOF
   20168 #define HAVE_STDALIGN_H 1
   20169 _ACEOF
   20170 
   20171 fi
   20172 
   20173 done
   20174 
   20175 
   20176 for ac_header in uchar.h
   20177 do :
   20178   ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
   20179 if test "x$ac_cv_header_uchar_h" = xyes; then :
   20180   cat >>confdefs.h <<_ACEOF
   20181 #define HAVE_UCHAR_H 1
   20182 _ACEOF
   20183 
   20184 fi
   20185 
   20186 done
   20187 
   20188 
   20189 #
   20190 # Check for __builtin_unreachable
   20191 #
   20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
   20193 $as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; }
   20194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20195 /* end confdefs.h.  */
   20196 
   20197 int
   20198 main ()
   20199 {
   20200 __builtin_unreachable();
   20201 
   20202   ;
   20203   return 0;
   20204 }
   20205 _ACEOF
   20206 if ac_fn_c_try_link "$LINENO"; then :
   20207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20208 $as_echo "yes" >&6; }
   20209 
   20210 $as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
   20211 
   20212 
   20213 else
   20214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20215 $as_echo "no" >&6; }
   20216 
   20217 fi
   20218 rm -f core conftest.err conftest.$ac_objext \
   20219     conftest$ac_exeext conftest.$ac_ext
   20220 
   20221 #
   20222 # Check for __builtin_expect
   20223 #
   20224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
   20225 $as_echo_n "checking compiler support for __builtin_expect... " >&6; }
   20226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20227 /* end confdefs.h.  */
   20228 
   20229 int
   20230 main ()
   20231 {
   20232 
   20233 	return (__builtin_expect(1, 1) ? 1 : 0);
   20234 
   20235   ;
   20236   return 0;
   20237 }
   20238 _ACEOF
   20239 if ac_fn_c_try_link "$LINENO"; then :
   20240 
   20241 	have_builtin_expect=yes
   20242 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20243 $as_echo "yes" >&6; }
   20244 
   20245 else
   20246 
   20247 	have_builtin_expect=no
   20248 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20249 $as_echo "no" >&6; }
   20250 
   20251 fi
   20252 rm -f core conftest.err conftest.$ac_objext \
   20253     conftest$ac_exeext conftest.$ac_ext
   20254 if test "yes" = "$have_builtin_expect"; then
   20255 
   20256 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
   20257 
   20258 fi
   20259 
   20260 #
   20261 # Check for __builtin_clz
   20262 #
   20263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
   20264 $as_echo_n "checking compiler support for __builtin_clz... " >&6; }
   20265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20266 /* end confdefs.h.  */
   20267 
   20268 int
   20269 main ()
   20270 {
   20271 
   20272 	return (__builtin_clz(0xff) == 24 ? 1 : 0);
   20273 
   20274   ;
   20275   return 0;
   20276 }
   20277 _ACEOF
   20278 if ac_fn_c_try_link "$LINENO"; then :
   20279 
   20280 	have_builtin_clz=yes
   20281 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20282 $as_echo "yes" >&6; }
   20283 
   20284 else
   20285 
   20286 	have_builtin_clz=no
   20287 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20288 $as_echo "no" >&6; }
   20289 
   20290 fi
   20291 rm -f core conftest.err conftest.$ac_objext \
   20292     conftest$ac_exeext conftest.$ac_ext
   20293 if test "yes" = "$have_builtin_clz"; then
   20294 
   20295 $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
   20296 
   20297 fi
   20298 
   20299 #
   20300 # Activate "rrset-order fixed" or not?
   20301 #
   20302 # Check whether --enable-fixed-rrset was given.
   20303 if test "${enable_fixed_rrset+set}" = set; then :
   20304   enableval=$enable_fixed_rrset; enable_fixed="$enableval"
   20305 else
   20306   enable_fixed="no"
   20307 fi
   20308 
   20309 case "$enable_fixed" in
   20310 	yes)
   20311 
   20312 $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
   20313 
   20314 		;;
   20315 	no)
   20316 		;;
   20317 	*)
   20318 		;;
   20319 esac
   20320 
   20321 #
   20322 # Activate dnstap?
   20323 #
   20324 # Check whether --enable-dnstap was given.
   20325 if test "${enable_dnstap+set}" = set; then :
   20326   enableval=$enable_dnstap; use_dnstap=$enableval
   20327 else
   20328   use_dnstap=no
   20329 fi
   20330 
   20331 
   20332 DNSTAP=
   20333 DNSTAPSRCS=
   20334 DNSTAPOBJS=
   20335 DNSTAPTARGETS=
   20336 if test "x$use_dnstap" != "xno"; then
   20337 
   20338 # Check whether --with-protobuf-c was given.
   20339 if test "${with_protobuf_c+set}" = set; then :
   20340   withval=$with_protobuf_c;
   20341 	    # workaround for protobuf-c includes at old dir
   20342 	    # before protobuf-c-1.0.0
   20343 	    if test -f $withval/include/google/protobuf-c/protobuf-c.h
   20344 	    then
   20345 		PROTOBUF_C_CFLAGS="-I$withval/include/google"
   20346 	    else
   20347 		PROTOBUF_C_CFLAGS="-I$withval/include"
   20348 	    fi
   20349 	    PROTOBUF_C_LIBS="-L$withval/lib"
   20350 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   20351 set dummy protoc-c; ac_word=$2
   20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20353 $as_echo_n "checking for $ac_word... " >&6; }
   20354 if ${ac_cv_path_PROTOC_C+:} false; then :
   20355   $as_echo_n "(cached) " >&6
   20356 else
   20357   case $PROTOC_C in
   20358   [\\/]* | ?:[\\/]*)
   20359   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   20360   ;;
   20361   *)
   20362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20363 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   20364 do
   20365   IFS=$as_save_IFS
   20366   test -z "$as_dir" && as_dir=.
   20367     for ac_exec_ext in '' $ac_executable_extensions; do
   20368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20369     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   20370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20371     break 2
   20372   fi
   20373 done
   20374   done
   20375 IFS=$as_save_IFS
   20376 
   20377   ;;
   20378 esac
   20379 fi
   20380 PROTOC_C=$ac_cv_path_PROTOC_C
   20381 if test -n "$PROTOC_C"; then
   20382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   20383 $as_echo "$PROTOC_C" >&6; }
   20384 else
   20385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20386 $as_echo "no" >&6; }
   20387 fi
   20388 
   20389 
   20390 
   20391 else
   20392 
   20393 	    # workaround for protobuf-c includes at old dir
   20394 	    # before protobuf-c-1.0.0
   20395 	    if test -f /usr/include/google/protobuf-c/protobuf-c.h
   20396 	    then
   20397 		PROTOBUF_C_CFLAGS="-I/usr/include/google"
   20398 	    else
   20399 		if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
   20400 		then
   20401 		    PROTOBUF_C_CFLAGS="-I/usr/local/include/google"
   20402 		    PROTOBUF_C_LIBS="-L/usr/local/lib"
   20403 		elif test -f /opt/local/include/google/protobuf-c/protobuf-c.h
   20404 		then
   20405 		    PROTOBUF_C_CFLAGS="-I/opt/local/include/google"
   20406 		    PROTOBUF_C_LIBS="-L/opt/local/lib"
   20407 		fi
   20408 	    fi
   20409 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   20410 set dummy protoc-c; ac_word=$2
   20411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20412 $as_echo_n "checking for $ac_word... " >&6; }
   20413 if ${ac_cv_path_PROTOC_C+:} false; then :
   20414   $as_echo_n "(cached) " >&6
   20415 else
   20416   case $PROTOC_C in
   20417   [\\/]* | ?:[\\/]*)
   20418   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   20419   ;;
   20420   *)
   20421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20422 for as_dir in $PATH
   20423 do
   20424   IFS=$as_save_IFS
   20425   test -z "$as_dir" && as_dir=.
   20426     for ac_exec_ext in '' $ac_executable_extensions; do
   20427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20428     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   20429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20430     break 2
   20431   fi
   20432 done
   20433   done
   20434 IFS=$as_save_IFS
   20435 
   20436   ;;
   20437 esac
   20438 fi
   20439 PROTOC_C=$ac_cv_path_PROTOC_C
   20440 if test -n "$PROTOC_C"; then
   20441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   20442 $as_echo "$PROTOC_C" >&6; }
   20443 else
   20444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20445 $as_echo "no" >&6; }
   20446 fi
   20447 
   20448 
   20449 
   20450 fi
   20451 
   20452 	if test -z "$PROTOC_C"; then
   20453 		as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
   20454 	fi
   20455 
   20456 # Check whether --with-libfstrm was given.
   20457 if test "${with_libfstrm+set}" = set; then :
   20458   withval=$with_libfstrm;
   20459 	    FSTRM_CFLAGS="-I$withval/include"
   20460 	    FSTRM_LIBS="-L$withval/lib"
   20461 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   20462 set dummy fstrm_capture; ac_word=$2
   20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20464 $as_echo_n "checking for $ac_word... " >&6; }
   20465 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   20466   $as_echo_n "(cached) " >&6
   20467 else
   20468   case $FSTRM_CAPTURE in
   20469   [\\/]* | ?:[\\/]*)
   20470   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   20471   ;;
   20472   *)
   20473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20474 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   20475 do
   20476   IFS=$as_save_IFS
   20477   test -z "$as_dir" && as_dir=.
   20478     for ac_exec_ext in '' $ac_executable_extensions; do
   20479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20480     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   20481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20482     break 2
   20483   fi
   20484 done
   20485   done
   20486 IFS=$as_save_IFS
   20487 
   20488   ;;
   20489 esac
   20490 fi
   20491 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   20492 if test -n "$FSTRM_CAPTURE"; then
   20493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   20494 $as_echo "$FSTRM_CAPTURE" >&6; }
   20495 else
   20496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20497 $as_echo "no" >&6; }
   20498 fi
   20499 
   20500 
   20501 
   20502 else
   20503 
   20504 	    for d in /usr /usr/local /opt/local
   20505 	    do
   20506 		if test -f "${d}/include/fstrm.h"
   20507 		then
   20508 		    if test ${d} != /usr
   20509 		    then
   20510 			FSTRM_CFLAGS="-I${d}/include"
   20511 			FSTRM_LIBS="-L${d}/lib"
   20512 		    fi
   20513 		    have_fstrm="$d"
   20514 		    break
   20515 		fi
   20516 	    done
   20517 	    if test -z "$have_fstrm"; then
   20518 		# Extract the first word of "fstrm_capture", so it can be a program name with args.
   20519 set dummy fstrm_capture; ac_word=$2
   20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20521 $as_echo_n "checking for $ac_word... " >&6; }
   20522 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   20523   $as_echo_n "(cached) " >&6
   20524 else
   20525   case $FSTRM_CAPTURE in
   20526   [\\/]* | ?:[\\/]*)
   20527   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   20528   ;;
   20529   *)
   20530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20531 for as_dir in $PATH
   20532 do
   20533   IFS=$as_save_IFS
   20534   test -z "$as_dir" && as_dir=.
   20535     for ac_exec_ext in '' $ac_executable_extensions; do
   20536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20537     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   20538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20539     break 2
   20540   fi
   20541 done
   20542   done
   20543 IFS=$as_save_IFS
   20544 
   20545   ;;
   20546 esac
   20547 fi
   20548 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   20549 if test -n "$FSTRM_CAPTURE"; then
   20550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   20551 $as_echo "$FSTRM_CAPTURE" >&6; }
   20552 else
   20553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20554 $as_echo "no" >&6; }
   20555 fi
   20556 
   20557 
   20558 	    else
   20559 		# Extract the first word of "fstrm_capture", so it can be a program name with args.
   20560 set dummy fstrm_capture; ac_word=$2
   20561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20562 $as_echo_n "checking for $ac_word... " >&6; }
   20563 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   20564   $as_echo_n "(cached) " >&6
   20565 else
   20566   case $FSTRM_CAPTURE in
   20567   [\\/]* | ?:[\\/]*)
   20568   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   20569   ;;
   20570   *)
   20571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20572 for as_dir in $PATH$PATH_SEPARATOR$have_fstrm/bin
   20573 do
   20574   IFS=$as_save_IFS
   20575   test -z "$as_dir" && as_dir=.
   20576     for ac_exec_ext in '' $ac_executable_extensions; do
   20577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20578     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   20579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20580     break 2
   20581   fi
   20582 done
   20583   done
   20584 IFS=$as_save_IFS
   20585 
   20586   ;;
   20587 esac
   20588 fi
   20589 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   20590 if test -n "$FSTRM_CAPTURE"; then
   20591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   20592 $as_echo "$FSTRM_CAPTURE" >&6; }
   20593 else
   20594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20595 $as_echo "no" >&6; }
   20596 fi
   20597 
   20598 
   20599 	    fi
   20600 
   20601 fi
   20602 
   20603 
   20604 
   20605   CCASFLAGS_dnstap_ax_save_flags=$CCASFLAGS
   20606 
   20607 
   20608 
   20609   CFLAGS_dnstap_ax_save_flags=$CFLAGS
   20610 
   20611 
   20612 
   20613   CPPFLAGS_dnstap_ax_save_flags=$CPPFLAGS
   20614 
   20615 
   20616 
   20617   CXXFLAGS_dnstap_ax_save_flags=$CXXFLAGS
   20618 
   20619 
   20620 
   20621   ERLCFLAGS_dnstap_ax_save_flags=$ERLCFLAGS
   20622 
   20623 
   20624 
   20625   FCFLAGS_dnstap_ax_save_flags=$FCFLAGS
   20626 
   20627 
   20628 
   20629   FCLIBS_dnstap_ax_save_flags=$FCLIBS
   20630 
   20631 
   20632 
   20633   FFLAGS_dnstap_ax_save_flags=$FFLAGS
   20634 
   20635 
   20636 
   20637   FLIBS_dnstap_ax_save_flags=$FLIBS
   20638 
   20639 
   20640 
   20641   GCJFLAGS_dnstap_ax_save_flags=$GCJFLAGS
   20642 
   20643 
   20644 
   20645   JAVACFLAGS_dnstap_ax_save_flags=$JAVACFLAGS
   20646 
   20647 
   20648 
   20649   LDFLAGS_dnstap_ax_save_flags=$LDFLAGS
   20650 
   20651 
   20652 
   20653   LIBS_dnstap_ax_save_flags=$LIBS
   20654 
   20655 
   20656 
   20657   OBJCFLAGS_dnstap_ax_save_flags=$OBJCFLAGS
   20658 
   20659 
   20660 
   20661   OBJCXXFLAGS_dnstap_ax_save_flags=$OBJCXXFLAGS
   20662 
   20663 
   20664 
   20665   UPCFLAGS_dnstap_ax_save_flags=$UPCFLAGS
   20666 
   20667 
   20668 
   20669   VALAFLAGS_dnstap_ax_save_flags=$VALAFLAGS
   20670 
   20671 
   20672 
   20673 	CFLAGS="$CFLAGS $PROTOBUF_C_CFLAGS $FSTRM_CFLAGS"
   20674 	LIBS="$LDFLAGS $PROTOBUF_C_LIBS $FSTRM_LIBS"
   20675 
   20676 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
   20677 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
   20678 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   20679   $as_echo_n "(cached) " >&6
   20680 else
   20681   ac_func_search_save_LIBS=$LIBS
   20682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20683 /* end confdefs.h.  */
   20684 
   20685 /* Override any GCC internal prototype to avoid an error.
   20686    Use char because int might match the return type of a GCC
   20687    builtin and then its argument prototype would still apply.  */
   20688 #ifdef __cplusplus
   20689 extern "C"
   20690 #endif
   20691 char fstrm_iothr_init ();
   20692 int
   20693 main ()
   20694 {
   20695 return fstrm_iothr_init ();
   20696   ;
   20697   return 0;
   20698 }
   20699 _ACEOF
   20700 for ac_lib in '' fstrm; do
   20701   if test -z "$ac_lib"; then
   20702     ac_res="none required"
   20703   else
   20704     ac_res=-l$ac_lib
   20705     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20706   fi
   20707   if ac_fn_c_try_link "$LINENO"; then :
   20708   ac_cv_search_fstrm_iothr_init=$ac_res
   20709 fi
   20710 rm -f core conftest.err conftest.$ac_objext \
   20711     conftest$ac_exeext
   20712   if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   20713   break
   20714 fi
   20715 done
   20716 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   20717 
   20718 else
   20719   ac_cv_search_fstrm_iothr_init=no
   20720 fi
   20721 rm conftest.$ac_ext
   20722 LIBS=$ac_func_search_save_LIBS
   20723 fi
   20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
   20725 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
   20726 ac_res=$ac_cv_search_fstrm_iothr_init
   20727 if test "$ac_res" != no; then :
   20728   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20729 
   20730 else
   20731   as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
   20732 fi
   20733 
   20734 	FSTRM_LIBS="$FSTRM_LIBS $ac_cv_search_fstrm_iothr_init"
   20735 
   20736 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
   20737 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
   20738 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   20739   $as_echo_n "(cached) " >&6
   20740 else
   20741   ac_func_search_save_LIBS=$LIBS
   20742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20743 /* end confdefs.h.  */
   20744 
   20745 /* Override any GCC internal prototype to avoid an error.
   20746    Use char because int might match the return type of a GCC
   20747    builtin and then its argument prototype would still apply.  */
   20748 #ifdef __cplusplus
   20749 extern "C"
   20750 #endif
   20751 char protobuf_c_message_pack ();
   20752 int
   20753 main ()
   20754 {
   20755 return protobuf_c_message_pack ();
   20756   ;
   20757   return 0;
   20758 }
   20759 _ACEOF
   20760 for ac_lib in '' protobuf-c; do
   20761   if test -z "$ac_lib"; then
   20762     ac_res="none required"
   20763   else
   20764     ac_res=-l$ac_lib
   20765     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20766   fi
   20767   if ac_fn_c_try_link "$LINENO"; then :
   20768   ac_cv_search_protobuf_c_message_pack=$ac_res
   20769 fi
   20770 rm -f core conftest.err conftest.$ac_objext \
   20771     conftest$ac_exeext
   20772   if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   20773   break
   20774 fi
   20775 done
   20776 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   20777 
   20778 else
   20779   ac_cv_search_protobuf_c_message_pack=no
   20780 fi
   20781 rm conftest.$ac_ext
   20782 LIBS=$ac_func_search_save_LIBS
   20783 fi
   20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
   20785 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
   20786 ac_res=$ac_cv_search_protobuf_c_message_pack
   20787 if test "$ac_res" != no; then :
   20788   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20789 
   20790 else
   20791   as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
   20792 fi
   20793 
   20794 	PROTOBUF_C_LIBS="$PROTOBUF_C_LIBS $ac_cv_search_protobuf_c_message_pack"
   20795 
   20796 
   20797   CCASFLAGS=$CCASFLAGS_dnstap_ax_save_flags
   20798 
   20799 
   20800   CFLAGS=$CFLAGS_dnstap_ax_save_flags
   20801 
   20802 
   20803   CPPFLAGS=$CPPFLAGS_dnstap_ax_save_flags
   20804 
   20805 
   20806   CXXFLAGS=$CXXFLAGS_dnstap_ax_save_flags
   20807 
   20808 
   20809   ERLCFLAGS=$ERLCFLAGS_dnstap_ax_save_flags
   20810 
   20811 
   20812   FCFLAGS=$FCFLAGS_dnstap_ax_save_flags
   20813 
   20814 
   20815   FCLIBS=$FCLIBS_dnstap_ax_save_flags
   20816 
   20817 
   20818   FFLAGS=$FFLAGS_dnstap_ax_save_flags
   20819 
   20820 
   20821   FLIBS=$FLIBS_dnstap_ax_save_flags
   20822 
   20823 
   20824   GCJFLAGS=$GCJFLAGS_dnstap_ax_save_flags
   20825 
   20826 
   20827   JAVACFLAGS=$JAVACFLAGS_dnstap_ax_save_flags
   20828 
   20829 
   20830   LDFLAGS=$LDFLAGS_dnstap_ax_save_flags
   20831 
   20832 
   20833   LIBS=$LIBS_dnstap_ax_save_flags
   20834 
   20835 
   20836   OBJCFLAGS=$OBJCFLAGS_dnstap_ax_save_flags
   20837 
   20838 
   20839   OBJCXXFLAGS=$OBJCXXFLAGS_dnstap_ax_save_flags
   20840 
   20841 
   20842   UPCFLAGS=$UPCFLAGS_dnstap_ax_save_flags
   20843 
   20844 
   20845   VALAFLAGS=$VALAFLAGS_dnstap_ax_save_flags
   20846 
   20847 
   20848 
   20849 
   20850 $as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
   20851 
   20852 	DNSTAP=dnstap
   20853 	DNSTAPSRCS='${DNSTAPSRCS}'
   20854 	DNSTAPOBJS='${DNSTAPOBJS}'
   20855 	DNSTAPTARGETS='${DNSTAPTARGETS}'
   20856 	DNSTAP_MANS='${dnstap_man1_MANS}'
   20857 fi
   20858 
   20859 
   20860 
   20861 
   20862 
   20863 
   20864 
   20865 
   20866 
   20867 
   20868 #
   20869 #  The following sets up how non-blocking i/o is established.
   20870 #  cygwin and solaris 2.x (x<5) require special handling.
   20871 #
   20872 case "$host" in
   20873 *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
   20874 ;;
   20875 *-solaris2.[01234])
   20876 	$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   20877 
   20878 
   20879 $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
   20880 
   20881 	;;
   20882 *)
   20883 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   20884 
   20885 	;;
   20886 esac
   20887 #
   20888 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
   20889 # This prevents the source address being set.
   20890 #
   20891 case "$host" in
   20892 *-solaris2.[012345]|*-solaris2.5.1)
   20893 
   20894 $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
   20895 
   20896 	;;
   20897 esac
   20898 #
   20899 # The following sections deal with tools used for formatting
   20900 # the documentation.  They are all optional, unless you are
   20901 # a developer editing the documentation source.
   20902 #
   20903 
   20904 #
   20905 # The following sections deal with tools used for formatting
   20906 # the documentation.  They are all optional, unless you are
   20907 # a developer editing the documentation source.
   20908 #
   20909 
   20910 #
   20911 # Look for sphinx-build
   20912 #
   20913 
   20914 # Extract the first word of "sphinx-build", so it can be a program name with args.
   20915 set dummy sphinx-build; ac_word=$2
   20916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20917 $as_echo_n "checking for $ac_word... " >&6; }
   20918 if ${ac_cv_path_SPHINX_BUILD+:} false; then :
   20919   $as_echo_n "(cached) " >&6
   20920 else
   20921   case $SPHINX_BUILD in
   20922   [\\/]* | ?:[\\/]*)
   20923   ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path.
   20924   ;;
   20925   *)
   20926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20927 for as_dir in $PATH
   20928 do
   20929   IFS=$as_save_IFS
   20930   test -z "$as_dir" && as_dir=.
   20931     for ac_exec_ext in '' $ac_executable_extensions; do
   20932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20933     ac_cv_path_SPHINX_BUILD="$as_dir/$ac_word$ac_exec_ext"
   20934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20935     break 2
   20936   fi
   20937 done
   20938   done
   20939 IFS=$as_save_IFS
   20940 
   20941   test -z "$ac_cv_path_SPHINX_BUILD" && ac_cv_path_SPHINX_BUILD=":"
   20942   ;;
   20943 esac
   20944 fi
   20945 SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD
   20946 if test -n "$SPHINX_BUILD"; then
   20947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5
   20948 $as_echo "$SPHINX_BUILD" >&6; }
   20949 else
   20950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20951 $as_echo "no" >&6; }
   20952 fi
   20953 
   20954 
   20955  if test "$SPHINX_BUILD" != ":"; then
   20956   HAVE_SPHINX_BUILD_TRUE=
   20957   HAVE_SPHINX_BUILD_FALSE='#'
   20958 else
   20959   HAVE_SPHINX_BUILD_TRUE='#'
   20960   HAVE_SPHINX_BUILD_FALSE=
   20961 fi
   20962 
   20963 
   20964 # Extract the first word of "xelatex", so it can be a program name with args.
   20965 set dummy xelatex; ac_word=$2
   20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20967 $as_echo_n "checking for $ac_word... " >&6; }
   20968 if ${ac_cv_path_XELATEX+:} false; then :
   20969   $as_echo_n "(cached) " >&6
   20970 else
   20971   case $XELATEX in
   20972   [\\/]* | ?:[\\/]*)
   20973   ac_cv_path_XELATEX="$XELATEX" # Let the user override the test with a path.
   20974   ;;
   20975   *)
   20976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20977 for as_dir in $PATH
   20978 do
   20979   IFS=$as_save_IFS
   20980   test -z "$as_dir" && as_dir=.
   20981     for ac_exec_ext in '' $ac_executable_extensions; do
   20982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20983     ac_cv_path_XELATEX="$as_dir/$ac_word$ac_exec_ext"
   20984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20985     break 2
   20986   fi
   20987 done
   20988   done
   20989 IFS=$as_save_IFS
   20990 
   20991   test -z "$ac_cv_path_XELATEX" && ac_cv_path_XELATEX=":"
   20992   ;;
   20993 esac
   20994 fi
   20995 XELATEX=$ac_cv_path_XELATEX
   20996 if test -n "$XELATEX"; then
   20997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XELATEX" >&5
   20998 $as_echo "$XELATEX" >&6; }
   20999 else
   21000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21001 $as_echo "no" >&6; }
   21002 fi
   21003 
   21004 
   21005 # Extract the first word of "latexmk", so it can be a program name with args.
   21006 set dummy latexmk; ac_word=$2
   21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21008 $as_echo_n "checking for $ac_word... " >&6; }
   21009 if ${ac_cv_path_LATEXMK+:} false; then :
   21010   $as_echo_n "(cached) " >&6
   21011 else
   21012   case $LATEXMK in
   21013   [\\/]* | ?:[\\/]*)
   21014   ac_cv_path_LATEXMK="$LATEXMK" # Let the user override the test with a path.
   21015   ;;
   21016   *)
   21017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21018 for as_dir in $PATH
   21019 do
   21020   IFS=$as_save_IFS
   21021   test -z "$as_dir" && as_dir=.
   21022     for ac_exec_ext in '' $ac_executable_extensions; do
   21023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21024     ac_cv_path_LATEXMK="$as_dir/$ac_word$ac_exec_ext"
   21025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21026     break 2
   21027   fi
   21028 done
   21029   done
   21030 IFS=$as_save_IFS
   21031 
   21032   test -z "$ac_cv_path_LATEXMK" && ac_cv_path_LATEXMK=":"
   21033   ;;
   21034 esac
   21035 fi
   21036 LATEXMK=$ac_cv_path_LATEXMK
   21037 if test -n "$LATEXMK"; then
   21038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
   21039 $as_echo "$LATEXMK" >&6; }
   21040 else
   21041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21042 $as_echo "no" >&6; }
   21043 fi
   21044 
   21045 
   21046  if test "$XELATEX" != ":" && test "$LATEXMK" != ":"; then
   21047   HAVE_XELATEX_TRUE=
   21048   HAVE_XELATEX_FALSE='#'
   21049 else
   21050   HAVE_XELATEX_TRUE='#'
   21051   HAVE_XELATEX_FALSE=
   21052 fi
   21053 
   21054 
   21055 #
   21056 # Pull release date from CHANGES file last modification date
   21057 # for reproducible builds
   21058 #
   21059 release_date=`date -r CHANGES +%Y-%m-%d`
   21060 RELEASE_DATE=$release_date
   21061 
   21062 
   21063 # Don't build the documentation if the sphinx-build is not present
   21064 PDFTARGET=
   21065 HTMLTARGET=
   21066 MANSRCS=
   21067 if test -n "$SPHINX_BUILD"; then :
   21068 
   21069 	  MANSRCS='$(MANPAGES_IN)'
   21070 	  HTMLTARGET='html dirhtml'
   21071 	  for ac_prog in pdflatex
   21072 do
   21073   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21074 set dummy $ac_prog; ac_word=$2
   21075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21076 $as_echo_n "checking for $ac_word... " >&6; }
   21077 if ${ac_cv_path_PDFLATEX+:} false; then :
   21078   $as_echo_n "(cached) " >&6
   21079 else
   21080   case $PDFLATEX in
   21081   [\\/]* | ?:[\\/]*)
   21082   ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
   21083   ;;
   21084   *)
   21085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21086 for as_dir in $PATH
   21087 do
   21088   IFS=$as_save_IFS
   21089   test -z "$as_dir" && as_dir=.
   21090     for ac_exec_ext in '' $ac_executable_extensions; do
   21091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21092     ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
   21093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21094     break 2
   21095   fi
   21096 done
   21097   done
   21098 IFS=$as_save_IFS
   21099 
   21100   ;;
   21101 esac
   21102 fi
   21103 PDFLATEX=$ac_cv_path_PDFLATEX
   21104 if test -n "$PDFLATEX"; then
   21105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
   21106 $as_echo "$PDFLATEX" >&6; }
   21107 else
   21108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21109 $as_echo "no" >&6; }
   21110 fi
   21111 
   21112 
   21113   test -n "$PDFLATEX" && break
   21114 done
   21115 
   21116 	  for ac_prog in latexmk
   21117 do
   21118   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21119 set dummy $ac_prog; ac_word=$2
   21120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21121 $as_echo_n "checking for $ac_word... " >&6; }
   21122 if ${ac_cv_path_LATEXMK+:} false; then :
   21123   $as_echo_n "(cached) " >&6
   21124 else
   21125   case $LATEXMK in
   21126   [\\/]* | ?:[\\/]*)
   21127   ac_cv_path_LATEXMK="$LATEXMK" # Let the user override the test with a path.
   21128   ;;
   21129   *)
   21130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21131 for as_dir in $PATH
   21132 do
   21133   IFS=$as_save_IFS
   21134   test -z "$as_dir" && as_dir=.
   21135     for ac_exec_ext in '' $ac_executable_extensions; do
   21136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21137     ac_cv_path_LATEXMK="$as_dir/$ac_word$ac_exec_ext"
   21138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21139     break 2
   21140   fi
   21141 done
   21142   done
   21143 IFS=$as_save_IFS
   21144 
   21145   ;;
   21146 esac
   21147 fi
   21148 LATEXMK=$ac_cv_path_LATEXMK
   21149 if test -n "$LATEXMK"; then
   21150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
   21151 $as_echo "$LATEXMK" >&6; }
   21152 else
   21153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21154 $as_echo "no" >&6; }
   21155 fi
   21156 
   21157 
   21158   test -n "$LATEXMK" && break
   21159 done
   21160 
   21161 	  if test -n "$PDFLATEX" && test -n "$LATEXMK"; then :
   21162 
   21163 		    PDFTARGET='pdf'
   21164 
   21165 fi
   21166 
   21167 fi
   21168 
   21169 
   21170 
   21171 
   21172 #
   21173 # Look for Doxygen
   21174 #
   21175 for ac_prog in doxygen
   21176 do
   21177   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21178 set dummy $ac_prog; ac_word=$2
   21179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21180 $as_echo_n "checking for $ac_word... " >&6; }
   21181 if ${ac_cv_path_DOXYGEN+:} false; then :
   21182   $as_echo_n "(cached) " >&6
   21183 else
   21184   case $DOXYGEN in
   21185   [\\/]* | ?:[\\/]*)
   21186   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
   21187   ;;
   21188   *)
   21189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21190 for as_dir in $PATH
   21191 do
   21192   IFS=$as_save_IFS
   21193   test -z "$as_dir" && as_dir=.
   21194     for ac_exec_ext in '' $ac_executable_extensions; do
   21195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21196     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   21197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21198     break 2
   21199   fi
   21200 done
   21201   done
   21202 IFS=$as_save_IFS
   21203 
   21204   ;;
   21205 esac
   21206 fi
   21207 DOXYGEN=$ac_cv_path_DOXYGEN
   21208 if test -n "$DOXYGEN"; then
   21209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
   21210 $as_echo "$DOXYGEN" >&6; }
   21211 else
   21212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21213 $as_echo "no" >&6; }
   21214 fi
   21215 
   21216 
   21217   test -n "$DOXYGEN" && break
   21218 done
   21219 
   21220 
   21221 
   21222 #
   21223 # Look for curl
   21224 #
   21225 
   21226 # Extract the first word of "curl", so it can be a program name with args.
   21227 set dummy curl; ac_word=$2
   21228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21229 $as_echo_n "checking for $ac_word... " >&6; }
   21230 if ${ac_cv_path_CURL+:} false; then :
   21231   $as_echo_n "(cached) " >&6
   21232 else
   21233   case $CURL in
   21234   [\\/]* | ?:[\\/]*)
   21235   ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
   21236   ;;
   21237   *)
   21238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21239 for as_dir in $PATH
   21240 do
   21241   IFS=$as_save_IFS
   21242   test -z "$as_dir" && as_dir=.
   21243     for ac_exec_ext in '' $ac_executable_extensions; do
   21244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21245     ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
   21246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21247     break 2
   21248   fi
   21249 done
   21250   done
   21251 IFS=$as_save_IFS
   21252 
   21253   test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
   21254   ;;
   21255 esac
   21256 fi
   21257 CURL=$ac_cv_path_CURL
   21258 if test -n "$CURL"; then
   21259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
   21260 $as_echo "$CURL" >&6; }
   21261 else
   21262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21263 $as_echo "no" >&6; }
   21264 fi
   21265 
   21266 
   21267 
   21268 
   21269 #
   21270 # IDN support using libidn2
   21271 #
   21272 
   21273 LIBIDN2_CFLAGS=
   21274 LIBIDN2_LDFLAGS=
   21275 LIBIDN2_LIBS=
   21276 
   21277 # Check whether --with-libidn2 was given.
   21278 if test "${with_libidn2+set}" = set; then :
   21279   withval=$with_libidn2; with_libidn2="$withval"
   21280 else
   21281   with_libidn2="no"
   21282 fi
   21283 
   21284 case $with_libidn2 in #(
   21285   yes) :
   21286 
   21287 pkg_failed=no
   21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
   21289 $as_echo_n "checking for libidn2... " >&6; }
   21290 
   21291 if test -n "$LIBIDN2_CFLAGS"; then
   21292     pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
   21293  elif test -n "$PKG_CONFIG"; then
   21294     if test -n "$PKG_CONFIG" && \
   21295     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   21296   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   21297   ac_status=$?
   21298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21299   test $ac_status = 0; }; then
   21300   pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
   21301 		      test "x$?" != "x0" && pkg_failed=yes
   21302 else
   21303   pkg_failed=yes
   21304 fi
   21305  else
   21306     pkg_failed=untried
   21307 fi
   21308 if test -n "$LIBIDN2_LIBS"; then
   21309     pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
   21310  elif test -n "$PKG_CONFIG"; then
   21311     if test -n "$PKG_CONFIG" && \
   21312     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   21313   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   21314   ac_status=$?
   21315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21316   test $ac_status = 0; }; then
   21317   pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
   21318 		      test "x$?" != "x0" && pkg_failed=yes
   21319 else
   21320   pkg_failed=yes
   21321 fi
   21322  else
   21323     pkg_failed=untried
   21324 fi
   21325 
   21326 
   21327 
   21328 if test $pkg_failed = yes; then
   21329         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21330 $as_echo "no" >&6; }
   21331 
   21332 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   21333         _pkg_short_errors_supported=yes
   21334 else
   21335         _pkg_short_errors_supported=no
   21336 fi
   21337         if test $_pkg_short_errors_supported = yes; then
   21338 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
   21339         else
   21340 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
   21341         fi
   21342 	# Put the nasty error message in config.log where it belongs
   21343 	echo "$LIBIDN2_PKG_ERRORS" >&5
   21344 
   21345 	as_fn_error $? "Package requirements (libidn2) were not met:
   21346 
   21347 $LIBIDN2_PKG_ERRORS
   21348 
   21349 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   21350 installed software in a non-standard prefix.
   21351 
   21352 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   21353 and LIBIDN2_LIBS to avoid the need to call pkg-config.
   21354 See the pkg-config man page for more details." "$LINENO" 5
   21355 elif test $pkg_failed = untried; then
   21356         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21357 $as_echo "no" >&6; }
   21358 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   21359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   21360 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   21361 is in your PATH or set the PKG_CONFIG environment variable to the full
   21362 path to pkg-config.
   21363 
   21364 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   21365 and LIBIDN2_LIBS to avoid the need to call pkg-config.
   21366 See the pkg-config man page for more details.
   21367 
   21368 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   21369 See \`config.log' for more details" "$LINENO" 5; }
   21370 else
   21371 	LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
   21372 	LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
   21373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21374 $as_echo "yes" >&6; }
   21375 
   21376 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   21377 
   21378 fi ;; #(
   21379   no) :
   21380      ;; #(
   21381   *) :
   21382 
   21383 
   21384   CCASFLAGS_libidn2_ax_save_flags=$CCASFLAGS
   21385 
   21386 
   21387 
   21388   CFLAGS_libidn2_ax_save_flags=$CFLAGS
   21389 
   21390 
   21391 
   21392   CPPFLAGS_libidn2_ax_save_flags=$CPPFLAGS
   21393 
   21394 
   21395 
   21396   CXXFLAGS_libidn2_ax_save_flags=$CXXFLAGS
   21397 
   21398 
   21399 
   21400   ERLCFLAGS_libidn2_ax_save_flags=$ERLCFLAGS
   21401 
   21402 
   21403 
   21404   FCFLAGS_libidn2_ax_save_flags=$FCFLAGS
   21405 
   21406 
   21407 
   21408   FCLIBS_libidn2_ax_save_flags=$FCLIBS
   21409 
   21410 
   21411 
   21412   FFLAGS_libidn2_ax_save_flags=$FFLAGS
   21413 
   21414 
   21415 
   21416   FLIBS_libidn2_ax_save_flags=$FLIBS
   21417 
   21418 
   21419 
   21420   GCJFLAGS_libidn2_ax_save_flags=$GCJFLAGS
   21421 
   21422 
   21423 
   21424   JAVACFLAGS_libidn2_ax_save_flags=$JAVACFLAGS
   21425 
   21426 
   21427 
   21428   LDFLAGS_libidn2_ax_save_flags=$LDFLAGS
   21429 
   21430 
   21431 
   21432   LIBS_libidn2_ax_save_flags=$LIBS
   21433 
   21434 
   21435 
   21436   OBJCFLAGS_libidn2_ax_save_flags=$OBJCFLAGS
   21437 
   21438 
   21439 
   21440   OBJCXXFLAGS_libidn2_ax_save_flags=$OBJCXXFLAGS
   21441 
   21442 
   21443 
   21444   UPCFLAGS_libidn2_ax_save_flags=$UPCFLAGS
   21445 
   21446 
   21447 
   21448   VALAFLAGS_libidn2_ax_save_flags=$VALAFLAGS
   21449 
   21450 
   21451 
   21452 		 LIBIDN2_CFLAGS="-I$with_libidn2/include"
   21453 		 LIBIDN2_LDFLAGS="-L$with_libidn2/lib"
   21454 		 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
   21455 		 CPPFLAGS="$LIBIDN2_CFLAGS $CPPFLAGS"
   21456 		 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
   21457 		 for ac_header in idn2.h
   21458 do :
   21459   ac_fn_c_check_header_mongrel "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
   21460 if test "x$ac_cv_header_idn2_h" = xyes; then :
   21461   cat >>confdefs.h <<_ACEOF
   21462 #define HAVE_IDN2_H 1
   21463 _ACEOF
   21464 
   21465 else
   21466   as_fn_error $? "idn2.h not found" "$LINENO" 5
   21467 fi
   21468 
   21469 done
   21470 
   21471 		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
   21472 $as_echo_n "checking for library containing idn2_to_ascii_lz... " >&6; }
   21473 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   21474   $as_echo_n "(cached) " >&6
   21475 else
   21476   ac_func_search_save_LIBS=$LIBS
   21477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21478 /* end confdefs.h.  */
   21479 
   21480 /* Override any GCC internal prototype to avoid an error.
   21481    Use char because int might match the return type of a GCC
   21482    builtin and then its argument prototype would still apply.  */
   21483 #ifdef __cplusplus
   21484 extern "C"
   21485 #endif
   21486 char idn2_to_ascii_lz ();
   21487 int
   21488 main ()
   21489 {
   21490 return idn2_to_ascii_lz ();
   21491   ;
   21492   return 0;
   21493 }
   21494 _ACEOF
   21495 for ac_lib in '' idn2; do
   21496   if test -z "$ac_lib"; then
   21497     ac_res="none required"
   21498   else
   21499     ac_res=-l$ac_lib
   21500     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   21501   fi
   21502   if ac_fn_c_try_link "$LINENO"; then :
   21503   ac_cv_search_idn2_to_ascii_lz=$ac_res
   21504 fi
   21505 rm -f core conftest.err conftest.$ac_objext \
   21506     conftest$ac_exeext
   21507   if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   21508   break
   21509 fi
   21510 done
   21511 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   21512 
   21513 else
   21514   ac_cv_search_idn2_to_ascii_lz=no
   21515 fi
   21516 rm conftest.$ac_ext
   21517 LIBS=$ac_func_search_save_LIBS
   21518 fi
   21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
   21520 $as_echo "$ac_cv_search_idn2_to_ascii_lz" >&6; }
   21521 ac_res=$ac_cv_search_idn2_to_ascii_lz
   21522 if test "$ac_res" != no; then :
   21523   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   21524   LIBIDN2_LIBS="$ac_cv_search_idn2_to_ascii_lz"
   21525 
   21526 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   21527 
   21528 else
   21529   as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
   21530 fi
   21531 
   21532 
   21533   CCASFLAGS=$CCASFLAGS_libidn2_ax_save_flags
   21534 
   21535 
   21536   CFLAGS=$CFLAGS_libidn2_ax_save_flags
   21537 
   21538 
   21539   CPPFLAGS=$CPPFLAGS_libidn2_ax_save_flags
   21540 
   21541 
   21542   CXXFLAGS=$CXXFLAGS_libidn2_ax_save_flags
   21543 
   21544 
   21545   ERLCFLAGS=$ERLCFLAGS_libidn2_ax_save_flags
   21546 
   21547 
   21548   FCFLAGS=$FCFLAGS_libidn2_ax_save_flags
   21549 
   21550 
   21551   FCLIBS=$FCLIBS_libidn2_ax_save_flags
   21552 
   21553 
   21554   FFLAGS=$FFLAGS_libidn2_ax_save_flags
   21555 
   21556 
   21557   FLIBS=$FLIBS_libidn2_ax_save_flags
   21558 
   21559 
   21560   GCJFLAGS=$GCJFLAGS_libidn2_ax_save_flags
   21561 
   21562 
   21563   JAVACFLAGS=$JAVACFLAGS_libidn2_ax_save_flags
   21564 
   21565 
   21566   LDFLAGS=$LDFLAGS_libidn2_ax_save_flags
   21567 
   21568 
   21569   LIBS=$LIBS_libidn2_ax_save_flags
   21570 
   21571 
   21572   OBJCFLAGS=$OBJCFLAGS_libidn2_ax_save_flags
   21573 
   21574 
   21575   OBJCXXFLAGS=$OBJCXXFLAGS_libidn2_ax_save_flags
   21576 
   21577 
   21578   UPCFLAGS=$UPCFLAGS_libidn2_ax_save_flags
   21579 
   21580 
   21581   VALAFLAGS=$VALAFLAGS_libidn2_ax_save_flags
   21582 
   21583 
   21584  ;; #(
   21585   *) :
   21586      ;;
   21587 esac
   21588 
   21589 
   21590 
   21591 
   21592 #
   21593 # Check whether to build with cmocka unit testing framework
   21594 #
   21595 
   21596 
   21597 # Check whether --with-cmocka was given.
   21598 if test "${with_cmocka+set}" = set; then :
   21599   withval=$with_cmocka;
   21600 else
   21601   with_cmocka=detect
   21602 fi
   21603 
   21604 
   21605 case $with_cmocka in #(
   21606   no) :
   21607      ;; #(
   21608   detect) :
   21609 
   21610 pkg_failed=no
   21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
   21612 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
   21613 
   21614 if test -n "$CMOCKA_CFLAGS"; then
   21615     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   21616  elif test -n "$PKG_CONFIG"; then
   21617     if test -n "$PKG_CONFIG" && \
   21618     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   21619   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   21620   ac_status=$?
   21621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21622   test $ac_status = 0; }; then
   21623   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
   21624 		      test "x$?" != "x0" && pkg_failed=yes
   21625 else
   21626   pkg_failed=yes
   21627 fi
   21628  else
   21629     pkg_failed=untried
   21630 fi
   21631 if test -n "$CMOCKA_LIBS"; then
   21632     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   21633  elif test -n "$PKG_CONFIG"; then
   21634     if test -n "$PKG_CONFIG" && \
   21635     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   21636   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   21637   ac_status=$?
   21638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21639   test $ac_status = 0; }; then
   21640   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
   21641 		      test "x$?" != "x0" && pkg_failed=yes
   21642 else
   21643   pkg_failed=yes
   21644 fi
   21645  else
   21646     pkg_failed=untried
   21647 fi
   21648 
   21649 
   21650 
   21651 if test $pkg_failed = yes; then
   21652         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21653 $as_echo "no" >&6; }
   21654 
   21655 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   21656         _pkg_short_errors_supported=yes
   21657 else
   21658         _pkg_short_errors_supported=no
   21659 fi
   21660         if test $_pkg_short_errors_supported = yes; then
   21661 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   21662         else
   21663 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   21664         fi
   21665 	# Put the nasty error message in config.log where it belongs
   21666 	echo "$CMOCKA_PKG_ERRORS" >&5
   21667 
   21668 	with_cmocka=no
   21669 elif test $pkg_failed = untried; then
   21670         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21671 $as_echo "no" >&6; }
   21672 	with_cmocka=no
   21673 else
   21674 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   21675 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   21676         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21677 $as_echo "yes" >&6; }
   21678 
   21679 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   21680 
   21681 fi ;; #(
   21682   yes) :
   21683 
   21684 pkg_failed=no
   21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
   21686 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
   21687 
   21688 if test -n "$CMOCKA_CFLAGS"; then
   21689     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   21690  elif test -n "$PKG_CONFIG"; then
   21691     if test -n "$PKG_CONFIG" && \
   21692     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   21693   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   21694   ac_status=$?
   21695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21696   test $ac_status = 0; }; then
   21697   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
   21698 		      test "x$?" != "x0" && pkg_failed=yes
   21699 else
   21700   pkg_failed=yes
   21701 fi
   21702  else
   21703     pkg_failed=untried
   21704 fi
   21705 if test -n "$CMOCKA_LIBS"; then
   21706     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   21707  elif test -n "$PKG_CONFIG"; then
   21708     if test -n "$PKG_CONFIG" && \
   21709     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   21710   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   21711   ac_status=$?
   21712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21713   test $ac_status = 0; }; then
   21714   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
   21715 		      test "x$?" != "x0" && pkg_failed=yes
   21716 else
   21717   pkg_failed=yes
   21718 fi
   21719  else
   21720     pkg_failed=untried
   21721 fi
   21722 
   21723 
   21724 
   21725 if test $pkg_failed = yes; then
   21726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21727 $as_echo "no" >&6; }
   21728 
   21729 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   21730         _pkg_short_errors_supported=yes
   21731 else
   21732         _pkg_short_errors_supported=no
   21733 fi
   21734         if test $_pkg_short_errors_supported = yes; then
   21735 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   21736         else
   21737 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   21738         fi
   21739 	# Put the nasty error message in config.log where it belongs
   21740 	echo "$CMOCKA_PKG_ERRORS" >&5
   21741 
   21742 	as_fn_error $? "Package requirements (cmocka >= 1.0.0) were not met:
   21743 
   21744 $CMOCKA_PKG_ERRORS
   21745 
   21746 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   21747 installed software in a non-standard prefix.
   21748 
   21749 Alternatively, you may set the environment variables CMOCKA_CFLAGS
   21750 and CMOCKA_LIBS to avoid the need to call pkg-config.
   21751 See the pkg-config man page for more details." "$LINENO" 5
   21752 elif test $pkg_failed = untried; then
   21753         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21754 $as_echo "no" >&6; }
   21755 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   21756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   21757 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   21758 is in your PATH or set the PKG_CONFIG environment variable to the full
   21759 path to pkg-config.
   21760 
   21761 Alternatively, you may set the environment variables CMOCKA_CFLAGS
   21762 and CMOCKA_LIBS to avoid the need to call pkg-config.
   21763 See the pkg-config man page for more details.
   21764 
   21765 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   21766 See \`config.log' for more details" "$LINENO" 5; }
   21767 else
   21768 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   21769 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   21770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21771 $as_echo "yes" >&6; }
   21772 
   21773 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   21774 
   21775 fi ;; #(
   21776   *) :
   21777     as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5
   21778         ;;
   21779 esac
   21780 
   21781 
   21782 
   21783 #
   21784 # Check for kyua execution engine if CMocka was requested
   21785 # and bail out if execution engine was not found
   21786 #
   21787 
   21788 if test "$with_cmocka" != "no"; then :
   21789   for ac_prog in kyua
   21790 do
   21791   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21792 set dummy $ac_prog; ac_word=$2
   21793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21794 $as_echo_n "checking for $ac_word... " >&6; }
   21795 if ${ac_cv_path_KYUA+:} false; then :
   21796   $as_echo_n "(cached) " >&6
   21797 else
   21798   case $KYUA in
   21799   [\\/]* | ?:[\\/]*)
   21800   ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
   21801   ;;
   21802   *)
   21803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21804 for as_dir in $PATH
   21805 do
   21806   IFS=$as_save_IFS
   21807   test -z "$as_dir" && as_dir=.
   21808     for ac_exec_ext in '' $ac_executable_extensions; do
   21809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21810     ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
   21811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21812     break 2
   21813   fi
   21814 done
   21815   done
   21816 IFS=$as_save_IFS
   21817 
   21818   ;;
   21819 esac
   21820 fi
   21821 KYUA=$ac_cv_path_KYUA
   21822 if test -n "$KYUA"; then
   21823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
   21824 $as_echo "$KYUA" >&6; }
   21825 else
   21826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21827 $as_echo "no" >&6; }
   21828 fi
   21829 
   21830 
   21831   test -n "$KYUA" && break
   21832 done
   21833 
   21834        if test -z "$KYUA"; then :
   21835   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
   21836 $as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
   21837 else
   21838   UNITTESTS=tests
   21839 fi
   21840 fi
   21841 
   21842 
   21843 
   21844 #
   21845 # Check for -Wl,--wrap= support
   21846 #
   21847 
   21848 LD_WRAP_TESTS=false
   21849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for --wrap option" >&5
   21850 $as_echo_n "checking for linker support for --wrap option... " >&6; }
   21851 
   21852 
   21853   CCASFLAGS_wrap_ax_save_flags=$CCASFLAGS
   21854 
   21855 
   21856 
   21857   CFLAGS_wrap_ax_save_flags=$CFLAGS
   21858 
   21859 
   21860 
   21861   CPPFLAGS_wrap_ax_save_flags=$CPPFLAGS
   21862 
   21863 
   21864 
   21865   CXXFLAGS_wrap_ax_save_flags=$CXXFLAGS
   21866 
   21867 
   21868 
   21869   ERLCFLAGS_wrap_ax_save_flags=$ERLCFLAGS
   21870 
   21871 
   21872 
   21873   FCFLAGS_wrap_ax_save_flags=$FCFLAGS
   21874 
   21875 
   21876 
   21877   FCLIBS_wrap_ax_save_flags=$FCLIBS
   21878 
   21879 
   21880 
   21881   FFLAGS_wrap_ax_save_flags=$FFLAGS
   21882 
   21883 
   21884 
   21885   FLIBS_wrap_ax_save_flags=$FLIBS
   21886 
   21887 
   21888 
   21889   GCJFLAGS_wrap_ax_save_flags=$GCJFLAGS
   21890 
   21891 
   21892 
   21893   JAVACFLAGS_wrap_ax_save_flags=$JAVACFLAGS
   21894 
   21895 
   21896 
   21897   LDFLAGS_wrap_ax_save_flags=$LDFLAGS
   21898 
   21899 
   21900 
   21901   LIBS_wrap_ax_save_flags=$LIBS
   21902 
   21903 
   21904 
   21905   OBJCFLAGS_wrap_ax_save_flags=$OBJCFLAGS
   21906 
   21907 
   21908 
   21909   OBJCXXFLAGS_wrap_ax_save_flags=$OBJCXXFLAGS
   21910 
   21911 
   21912 
   21913   UPCFLAGS_wrap_ax_save_flags=$UPCFLAGS
   21914 
   21915 
   21916 
   21917   VALAFLAGS_wrap_ax_save_flags=$VALAFLAGS
   21918 
   21919 
   21920 
   21921 LDFLAGS="-Wl,-wrap,exit"
   21922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21923 /* end confdefs.h.  */
   21924 #include <stdlib.h>
   21925 		       void __real_exit (int status);
   21926 		       void __wrap_exit (int status) { __real_exit (status); }
   21927 
   21928 int
   21929 main ()
   21930 {
   21931 exit (1);
   21932   ;
   21933   return 0;
   21934 }
   21935 _ACEOF
   21936 if ac_fn_c_try_link "$LINENO"; then :
   21937   LD_WRAP_TESTS=true
   21938 
   21939 $as_echo "#define LD_WRAP 1" >>confdefs.h
   21940 
   21941      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21942 $as_echo "yes" >&6; }
   21943 else
   21944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21945 $as_echo "no" >&6; }
   21946 fi
   21947 rm -f core conftest.err conftest.$ac_objext \
   21948     conftest$ac_exeext conftest.$ac_ext
   21949 
   21950   CCASFLAGS=$CCASFLAGS_wrap_ax_save_flags
   21951 
   21952 
   21953   CFLAGS=$CFLAGS_wrap_ax_save_flags
   21954 
   21955 
   21956   CPPFLAGS=$CPPFLAGS_wrap_ax_save_flags
   21957 
   21958 
   21959   CXXFLAGS=$CXXFLAGS_wrap_ax_save_flags
   21960 
   21961 
   21962   ERLCFLAGS=$ERLCFLAGS_wrap_ax_save_flags
   21963 
   21964 
   21965   FCFLAGS=$FCFLAGS_wrap_ax_save_flags
   21966 
   21967 
   21968   FCLIBS=$FCLIBS_wrap_ax_save_flags
   21969 
   21970 
   21971   FFLAGS=$FFLAGS_wrap_ax_save_flags
   21972 
   21973 
   21974   FLIBS=$FLIBS_wrap_ax_save_flags
   21975 
   21976 
   21977   GCJFLAGS=$GCJFLAGS_wrap_ax_save_flags
   21978 
   21979 
   21980   JAVACFLAGS=$JAVACFLAGS_wrap_ax_save_flags
   21981 
   21982 
   21983   LDFLAGS=$LDFLAGS_wrap_ax_save_flags
   21984 
   21985 
   21986   LIBS=$LIBS_wrap_ax_save_flags
   21987 
   21988 
   21989   OBJCFLAGS=$OBJCFLAGS_wrap_ax_save_flags
   21990 
   21991 
   21992   OBJCXXFLAGS=$OBJCXXFLAGS_wrap_ax_save_flags
   21993 
   21994 
   21995   UPCFLAGS=$UPCFLAGS_wrap_ax_save_flags
   21996 
   21997 
   21998   VALAFLAGS=$VALAFLAGS_wrap_ax_save_flags
   21999 
   22000 
   22001 
   22002 
   22003 
   22004 
   22005 WRAP_INTERPOSE=
   22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for '-z interpose' option" >&5
   22007 $as_echo_n "checking for linker support for '-z interpose' option... " >&6; }
   22008 
   22009 
   22010   CCASFLAGS_interpose_ax_save_flags=$CCASFLAGS
   22011 
   22012 
   22013 
   22014   CFLAGS_interpose_ax_save_flags=$CFLAGS
   22015 
   22016 
   22017 
   22018   CPPFLAGS_interpose_ax_save_flags=$CPPFLAGS
   22019 
   22020 
   22021 
   22022   CXXFLAGS_interpose_ax_save_flags=$CXXFLAGS
   22023 
   22024 
   22025 
   22026   ERLCFLAGS_interpose_ax_save_flags=$ERLCFLAGS
   22027 
   22028 
   22029 
   22030   FCFLAGS_interpose_ax_save_flags=$FCFLAGS
   22031 
   22032 
   22033 
   22034   FCLIBS_interpose_ax_save_flags=$FCLIBS
   22035 
   22036 
   22037 
   22038   FFLAGS_interpose_ax_save_flags=$FFLAGS
   22039 
   22040 
   22041 
   22042   FLIBS_interpose_ax_save_flags=$FLIBS
   22043 
   22044 
   22045 
   22046   GCJFLAGS_interpose_ax_save_flags=$GCJFLAGS
   22047 
   22048 
   22049 
   22050   JAVACFLAGS_interpose_ax_save_flags=$JAVACFLAGS
   22051 
   22052 
   22053 
   22054   LDFLAGS_interpose_ax_save_flags=$LDFLAGS
   22055 
   22056 
   22057 
   22058   LIBS_interpose_ax_save_flags=$LIBS
   22059 
   22060 
   22061 
   22062   OBJCFLAGS_interpose_ax_save_flags=$OBJCFLAGS
   22063 
   22064 
   22065 
   22066   OBJCXXFLAGS_interpose_ax_save_flags=$OBJCXXFLAGS
   22067 
   22068 
   22069 
   22070   UPCFLAGS_interpose_ax_save_flags=$UPCFLAGS
   22071 
   22072 
   22073 
   22074   VALAFLAGS_interpose_ax_save_flags=$VALAFLAGS
   22075 
   22076 
   22077 
   22078 LDFLAGS="-Wl,-z,interpose"
   22079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22080 /* end confdefs.h.  */
   22081 
   22082 int
   22083 main ()
   22084 {
   22085 
   22086   ;
   22087   return 0;
   22088 }
   22089 _ACEOF
   22090 if ac_fn_c_try_link "$LINENO"; then :
   22091   WRAP_INTERPOSE="-Wl,-z,interpose"
   22092      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22093 $as_echo "yes" >&6; }
   22094 else
   22095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22096 $as_echo "no" >&6; }
   22097 fi
   22098 rm -f core conftest.err conftest.$ac_objext \
   22099     conftest$ac_exeext conftest.$ac_ext
   22100 
   22101   CCASFLAGS=$CCASFLAGS_interpose_ax_save_flags
   22102 
   22103 
   22104   CFLAGS=$CFLAGS_interpose_ax_save_flags
   22105 
   22106 
   22107   CPPFLAGS=$CPPFLAGS_interpose_ax_save_flags
   22108 
   22109 
   22110   CXXFLAGS=$CXXFLAGS_interpose_ax_save_flags
   22111 
   22112 
   22113   ERLCFLAGS=$ERLCFLAGS_interpose_ax_save_flags
   22114 
   22115 
   22116   FCFLAGS=$FCFLAGS_interpose_ax_save_flags
   22117 
   22118 
   22119   FCLIBS=$FCLIBS_interpose_ax_save_flags
   22120 
   22121 
   22122   FFLAGS=$FFLAGS_interpose_ax_save_flags
   22123 
   22124 
   22125   FLIBS=$FLIBS_interpose_ax_save_flags
   22126 
   22127 
   22128   GCJFLAGS=$GCJFLAGS_interpose_ax_save_flags
   22129 
   22130 
   22131   JAVACFLAGS=$JAVACFLAGS_interpose_ax_save_flags
   22132 
   22133 
   22134   LDFLAGS=$LDFLAGS_interpose_ax_save_flags
   22135 
   22136 
   22137   LIBS=$LIBS_interpose_ax_save_flags
   22138 
   22139 
   22140   OBJCFLAGS=$OBJCFLAGS_interpose_ax_save_flags
   22141 
   22142 
   22143   OBJCXXFLAGS=$OBJCXXFLAGS_interpose_ax_save_flags
   22144 
   22145 
   22146   UPCFLAGS=$UPCFLAGS_interpose_ax_save_flags
   22147 
   22148 
   22149   VALAFLAGS=$VALAFLAGS_interpose_ax_save_flags
   22150 
   22151 
   22152 
   22153 
   22154 
   22155 
   22156 WRAP_NAME=''
   22157 case $host in #(
   22158   *-darwin*) :
   22159     WRAP_NAME='${WRAP_NAME}' ;; #(
   22160   *) :
   22161      ;;
   22162 esac
   22163 
   22164 
   22165 #
   22166 # Check for i18n
   22167 #
   22168 for ac_header in locale.h
   22169 do :
   22170   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
   22171 if test "x$ac_cv_header_locale_h" = xyes; then :
   22172   cat >>confdefs.h <<_ACEOF
   22173 #define HAVE_LOCALE_H 1
   22174 _ACEOF
   22175 
   22176 fi
   22177 
   22178 done
   22179 
   22180 for ac_func in setlocale
   22181 do :
   22182   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
   22183 if test "x$ac_cv_func_setlocale" = xyes; then :
   22184   cat >>confdefs.h <<_ACEOF
   22185 #define HAVE_SETLOCALE 1
   22186 _ACEOF
   22187 
   22188 fi
   22189 done
   22190 
   22191 
   22192 #
   22193 # was --with-tuning specified?
   22194 #
   22195 
   22196 # Check whether --with-tuning was given.
   22197 if test "${with_tuning+set}" = set; then :
   22198   withval=$with_tuning;
   22199 else
   22200   with_tuning=no
   22201 fi
   22202 
   22203 
   22204 case $with_tuning in #(
   22205   small) :
   22206     { $as_echo "$as_me:${as_lineno-$LINENO}: using small system tuning" >&5
   22207 $as_echo "$as_me: using small system tuning" >&6;} ;; #(
   22208   *) :
   22209 
   22210 $as_echo "#define TUNE_LARGE 1" >>confdefs.h
   22211 
   22212 	 { $as_echo "$as_me:${as_lineno-$LINENO}: using default system tuning" >&5
   22213 $as_echo "$as_me: using default system tuning" >&6;} ;;
   22214 esac
   22215 
   22216 #
   22217 # was --enable-querytrace specified?
   22218 #
   22219 # Check whether --enable-querytrace was given.
   22220 if test "${enable_querytrace+set}" = set; then :
   22221   enableval=$enable_querytrace; want_querytrace="$enableval"
   22222 else
   22223   want_querytrace="no"
   22224 fi
   22225 
   22226 
   22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
   22228 $as_echo_n "checking whether to enable query trace logging... " >&6; }
   22229 case "$want_querytrace" in
   22230 yes)
   22231 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22232 $as_echo "yes" >&6; }
   22233 
   22234 $as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
   22235 
   22236 	;;
   22237 no)
   22238 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22239 $as_echo "no" >&6; }
   22240 	;;
   22241 *)
   22242 	as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
   22243 	;;
   22244 esac
   22245 
   22246 #
   22247 # Was --disable-auto-validation specified?
   22248 #
   22249 validation_default=auto
   22250 # Check whether --enable-auto-validation was given.
   22251 if test "${enable_auto_validation+set}" = set; then :
   22252   enableval=$enable_auto_validation; :
   22253 else
   22254   enable_auto_validation=yes
   22255 fi
   22256 
   22257 if test "$enable_auto_validation" = "no"; then :
   22258   validation_default=yes
   22259 fi
   22260 
   22261 cat >>confdefs.h <<_ACEOF
   22262 #define VALIDATION_DEFAULT "$validation_default"
   22263 _ACEOF
   22264 
   22265 
   22266 #
   22267 # Substitutions
   22268 #
   22269 
   22270 BIND9_TOP_BUILDDIR=`pwd`
   22271 
   22272 
   22273 
   22274 
   22275 
   22276 
   22277 
   22278 
   22279 if test "X$srcdir" != "X"; then
   22280 	BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
   22281 	BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
   22282 	BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
   22283 	BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
   22284 	BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
   22285 	BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
   22286 	BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
   22287 else
   22288 	BIND9_ISC_BUILDINCLUDE=""
   22289 	BIND9_ISCCC_BUILDINCLUDE=""
   22290 	BIND9_ISCCFG_BUILDINCLUDE=""
   22291 	BIND9_DNS_BUILDINCLUDE=""
   22292 	BIND9_NS_BUILDINCLUDE=""
   22293 	BIND9_BIND9_BUILDINCLUDE=""
   22294 	BIND9_IRS_BUILDINCLUDE=""
   22295 fi
   22296 
   22297 
   22298 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
   22299 
   22300 
   22301 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
   22302 
   22303 . "$srcdir/version"
   22304 BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
   22305 
   22306 BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
   22307 
   22308 BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   22309 
   22310 BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
   22311 
   22312 BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
   22313 
   22314 BIND9_VERSIONSHORT="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   22315 
   22316 
   22317 BIND9_SRCID="SRCID=unset_id"
   22318 if test -f "${srcdir}/srcid"; then
   22319 	. "${srcdir}/srcid"
   22320 	BIND9_SRCID="SRCID=$SRCID"
   22321 elif test -d "${srcdir}/.git"; then
   22322 	BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
   22323 fi
   22324 
   22325 
   22326 
   22327 if test -z "$ac_configure_args"; then
   22328 	BIND9_CONFIGARGS="defaults"
   22329 else
   22330 	for a in $ac_configure_args
   22331 	do
   22332 		BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
   22333 	done
   22334 fi
   22335 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
   22336 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
   22337 
   22338 
   22339 
   22340 LIBISC_API="$srcdir/lib/isc/api"
   22341 
   22342 
   22343 LIBISCCC_API="$srcdir/lib/isccc/api"
   22344 
   22345 
   22346 LIBISCCFG_API="$srcdir/lib/isccfg/api"
   22347 
   22348 
   22349 LIBDNS_API="$srcdir/lib/dns/api"
   22350 
   22351 
   22352 LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
   22353 
   22354 
   22355 LIBBIND9_API="$srcdir/lib/bind9/api"
   22356 
   22357 
   22358 LIBIRS_API="$srcdir/lib/irs/api"
   22359 
   22360 
   22361 LIBNS_API="$srcdir/lib/ns/api"
   22362 
   22363 #
   22364 # Configure any DLZ drivers.
   22365 #
   22366 # If config.dlz.in selects one or more DLZ drivers, it will set
   22367 # CONTRIB_DLZ to a non-empty value, which will be our clue to
   22368 # build DLZ drivers in contrib.
   22369 #
   22370 # This section has to come after the libtool stuff because it needs to
   22371 # know how to name the driver object files.
   22372 #
   22373 
   22374 CONTRIB_DLZ=""
   22375 DLZ_DRIVER_INCLUDES=""
   22376 DLZ_DRIVER_LIBS=""
   22377 DLZ_DRIVER_SRCS=""
   22378 DLZ_DRIVER_OBJS=""
   22379 DLZ_SYSTEM_TEST=""
   22380 DLZ_DRIVER_MYSQL_INCLUDES=""
   22381 DLZ_DRIVER_MYSQL_LIBS=""
   22382 
   22383 #
   22384 # Configure support for building a shared library object
   22385 #
   22386 # Even when libtool is available it can't always be relied upon
   22387 # to build an object that can be dlopen()'ed, but this is necessary
   22388 # for building the dlzexternal system test, so we'll try it the
   22389 # old-fashioned way.
   22390 #
   22391 SO="so"
   22392 SO_CFLAGS=""
   22393 SO_LDFLAGS=""
   22394 SO_LD=""
   22395 SO_TARGETS=""
   22396 SO_STRIP="cat"
   22397 
   22398 
   22399 # Check whether --with-dlopen was given.
   22400 if test "${with_dlopen+set}" = set; then :
   22401   withval=$with_dlopen;
   22402 else
   22403   with_dlopen="auto"
   22404 fi
   22405 
   22406 
   22407 
   22408 #
   22409 # If PIC is disabled, dlopen must also be
   22410 #
   22411 if test "$pic_mode" = "no"; then :
   22412   case $with_dlopen in #(
   22413   auto) :
   22414     with_dlopen="no" ;; #(
   22415   yes) :
   22416     as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #(
   22417   *) :
   22418      ;;
   22419 esac
   22420 fi
   22421 
   22422 case $with_dlopen in #(
   22423   auto|yes) :
   22424 
   22425 	  # -fsanitize=thread hijacks dlopen and dlclose so use dlsym.
   22426 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
   22427 $as_echo_n "checking for library containing dlsym... " >&6; }
   22428 if ${ac_cv_search_dlsym+:} false; then :
   22429   $as_echo_n "(cached) " >&6
   22430 else
   22431   ac_func_search_save_LIBS=$LIBS
   22432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22433 /* end confdefs.h.  */
   22434 
   22435 /* Override any GCC internal prototype to avoid an error.
   22436    Use char because int might match the return type of a GCC
   22437    builtin and then its argument prototype would still apply.  */
   22438 #ifdef __cplusplus
   22439 extern "C"
   22440 #endif
   22441 char dlsym ();
   22442 int
   22443 main ()
   22444 {
   22445 return dlsym ();
   22446   ;
   22447   return 0;
   22448 }
   22449 _ACEOF
   22450 for ac_lib in '' dl; do
   22451   if test -z "$ac_lib"; then
   22452     ac_res="none required"
   22453   else
   22454     ac_res=-l$ac_lib
   22455     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   22456   fi
   22457   if ac_fn_c_try_link "$LINENO"; then :
   22458   ac_cv_search_dlsym=$ac_res
   22459 fi
   22460 rm -f core conftest.err conftest.$ac_objext \
   22461     conftest$ac_exeext
   22462   if ${ac_cv_search_dlsym+:} false; then :
   22463   break
   22464 fi
   22465 done
   22466 if ${ac_cv_search_dlsym+:} false; then :
   22467 
   22468 else
   22469   ac_cv_search_dlsym=no
   22470 fi
   22471 rm conftest.$ac_ext
   22472 LIBS=$ac_func_search_save_LIBS
   22473 fi
   22474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
   22475 $as_echo "$ac_cv_search_dlsym" >&6; }
   22476 ac_res=$ac_cv_search_dlsym
   22477 if test "$ac_res" != no; then :
   22478   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   22479 
   22480 fi
   22481 
   22482 	  for ac_func in dlopen dlclose dlsym
   22483 do :
   22484   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   22485 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   22486 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   22487   cat >>confdefs.h <<_ACEOF
   22488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   22489 _ACEOF
   22490  with_dlopen="yes"
   22491 else
   22492   with_dlopen="no"
   22493 fi
   22494 done
   22495 
   22496 	 ;; #(
   22497   *) :
   22498      ;;
   22499 esac
   22500 
   22501 if test "$with_dlopen" = "yes"; then :
   22502   case $host in #(
   22503   *-linux*|*-gnu*) :
   22504 
   22505 		 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
   22506 		 SO_CFLAGS="-fPIC"
   22507 		 SO_LDFLAGS=""
   22508 		 if test "$use_libtool" = "yes"; then :
   22509 
   22510 			 SO_LDFLAGS="-Xcompiler -shared"
   22511 			 SO_LD="${CC}"
   22512 
   22513 else
   22514 
   22515 			 SO_LDFLAGS="-shared"
   22516 			 SO_LD="${CC}"
   22517 
   22518 fi
   22519 	        ;; #(
   22520   *-freebsd*|*-openbsd*|*-netbsd*) :
   22521 
   22522 		 LDFLAGS="${LDFLAGS} -Wl,-E"
   22523 		 SO_CFLAGS="-fpic"
   22524 		 if test "$use_libtool" = "yes"; then :
   22525 
   22526 			 SO_LDFLAGS="-Xcompiler -shared"
   22527 			 SO_LD="${CC}"
   22528 
   22529 else
   22530 
   22531 			 SO_LDFLAGS="-shared"
   22532 			 SO_LD="${CC}"
   22533 
   22534 fi
   22535 	        ;; #(
   22536   *-darwin*) :
   22537 
   22538 		 SO_CFLAGS="-fPIC"
   22539                  SO_LD="${CC}"
   22540 		 if test "$use_libtool" = "yes"; then :
   22541 
   22542 			 SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
   22543 
   22544 else
   22545 
   22546 			 SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
   22547 
   22548 fi
   22549 	        ;; #(
   22550   *-solaris*) :
   22551 
   22552 		 SO_CFLAGS="-KPIC"
   22553 		 SO_LDFLAGS="-G -z text"
   22554 		 SO_LD="ld"
   22555 	        ;; #(
   22556   ia64-hp-hpux*) :
   22557 
   22558 		 SO_CFLAGS="+z"
   22559 	         SO_LDFLAGS="-b"
   22560 		 SO_LD="${CC}"
   22561 	        ;; #(
   22562   *) :
   22563 
   22564 		 SO_CFLAGS="-fPIC"
   22565 	        ;;
   22566 esac
   22567        if test "$GCC" = "yes"; then :
   22568 
   22569 	       SO_CFLAGS="-fPIC"
   22570 	       if test -z "$SO_LD"; then :
   22571   if test "$use_libtool" = "yes"; then :
   22572 
   22573 			      SO_LDFLAGS="-Xcompiler -shared"
   22574 			      SO_LD="${CC}"
   22575 
   22576 else
   22577 
   22578 			      SO_LDFLAGS="-shared"
   22579 			      SO_LD="${CC}"
   22580 
   22581 fi
   22582 
   22583 fi
   22584 
   22585 fi
   22586        # If we still don't know how to make shared objects, don't make any.
   22587        if test -n "$SO_LD"; then :
   22588   SO_TARGETS="\${SO_TARGETS}"
   22589 
   22590 $as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
   22591 
   22592 
   22593 fi
   22594 
   22595 fi
   22596 
   22597 CFLAGS="$CFLAGS $SO_CFLAGS"
   22598 
   22599 
   22600 
   22601 
   22602 
   22603 
   22604 
   22605 
   22606 #
   22607 # Response policy rewriting using DNS Response Policy Service (DNSRPS)
   22608 # interface.
   22609 #
   22610 # DNSRPS can be compiled into BIND everywhere with a reasonably
   22611 # modern C compiler.  It is enabled on systems with dlopen() and librpz.so.
   22612 #
   22613 dnsrps_avail=yes
   22614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
   22615 $as_echo_n "checking for librpz __attribute__s... " >&6; }
   22616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22617 /* end confdefs.h.  */
   22618 
   22619 int
   22620 main ()
   22621 {
   22622 
   22623        extern void f(char *p __attribute__((unused)), ...)
   22624        __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
   22625 
   22626   ;
   22627   return 0;
   22628 }
   22629 _ACEOF
   22630 if ac_fn_c_try_compile "$LINENO"; then :
   22631 
   22632     librpz_have_attr=yes
   22633 
   22634 $as_echo "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
   22635 
   22636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22637 $as_echo "yes" >&6; }
   22638 
   22639 else
   22640 
   22641     librpz_have_attr=no
   22642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22643 $as_echo "no" >&6; }
   22644 
   22645 fi
   22646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22647 
   22648 # Check whether --enable-dnsrps-dl was given.
   22649 if test "${enable_dnsrps_dl+set}" = set; then :
   22650   enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
   22651 else
   22652   enable_librpz_dl="$with_dlopen"
   22653 fi
   22654 
   22655 
   22656 if test "$enable_librpz_dl" = "yes" -a "$with_dlopen" = "no"; then :
   22657   as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
   22658 fi
   22659 
   22660 
   22661 # Check whether --with-dnsrps-libname was given.
   22662 if test "${with_dnsrps_libname+set}" = set; then :
   22663   withval=$with_dnsrps_libname; librpz_name="$withval"
   22664 else
   22665   librpz_name="librpz.so"
   22666 fi
   22667 
   22668 
   22669 # Check whether --with-dnsrps-dir was given.
   22670 if test "${with_dnsrps_dir+set}" = set; then :
   22671   withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
   22672 else
   22673   librpz_path="$librpz_name"
   22674 fi
   22675 
   22676 
   22677 cat >>confdefs.h <<_ACEOF
   22678 #define DNSRPS_LIBRPZ_PATH "$librpz_path"
   22679 _ACEOF
   22680 
   22681 if test "$enable_librpz_dl" = "yes"; then :
   22682 
   22683 	dnsrps_lib_open=2
   22684 
   22685 else
   22686 
   22687 	dnsrps_lib_open=1
   22688 	# Add librpz.so to linked libraries if we are not using dlopen()
   22689 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
   22690 $as_echo_n "checking for library containing librpz_client_create... " >&6; }
   22691 if ${ac_cv_search_librpz_client_create+:} false; then :
   22692   $as_echo_n "(cached) " >&6
   22693 else
   22694   ac_func_search_save_LIBS=$LIBS
   22695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22696 /* end confdefs.h.  */
   22697 
   22698 /* Override any GCC internal prototype to avoid an error.
   22699    Use char because int might match the return type of a GCC
   22700    builtin and then its argument prototype would still apply.  */
   22701 #ifdef __cplusplus
   22702 extern "C"
   22703 #endif
   22704 char librpz_client_create ();
   22705 int
   22706 main ()
   22707 {
   22708 return librpz_client_create ();
   22709   ;
   22710   return 0;
   22711 }
   22712 _ACEOF
   22713 for ac_lib in '' rpz; do
   22714   if test -z "$ac_lib"; then
   22715     ac_res="none required"
   22716   else
   22717     ac_res=-l$ac_lib
   22718     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   22719   fi
   22720   if ac_fn_c_try_link "$LINENO"; then :
   22721   ac_cv_search_librpz_client_create=$ac_res
   22722 fi
   22723 rm -f core conftest.err conftest.$ac_objext \
   22724     conftest$ac_exeext
   22725   if ${ac_cv_search_librpz_client_create+:} false; then :
   22726   break
   22727 fi
   22728 done
   22729 if ${ac_cv_search_librpz_client_create+:} false; then :
   22730 
   22731 else
   22732   ac_cv_search_librpz_client_create=no
   22733 fi
   22734 rm conftest.$ac_ext
   22735 LIBS=$ac_func_search_save_LIBS
   22736 fi
   22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
   22738 $as_echo "$ac_cv_search_librpz_client_create" >&6; }
   22739 ac_res=$ac_cv_search_librpz_client_create
   22740 if test "$ac_res" != no; then :
   22741   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   22742 
   22743 else
   22744   dnsrps_lib_open=0
   22745 		 dnsrps_avail=no
   22746 fi
   22747 
   22748 
   22749 fi
   22750 
   22751 cat >>confdefs.h <<_ACEOF
   22752 #define DNSRPS_LIB_OPEN $dnsrps_lib_open
   22753 _ACEOF
   22754 
   22755 
   22756 # Check whether --enable-dnsrps was given.
   22757 if test "${enable_dnsrps+set}" = set; then :
   22758   enableval=$enable_dnsrps; enable_dnsrps=$enableval
   22759 else
   22760   enable_dnsrps=no
   22761 fi
   22762 
   22763 
   22764 if test "$enable_dnsrps" != "no"; then :
   22765 
   22766 	if test "$dnsrps_avail" != "yes"; then :
   22767   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   22768 fi
   22769 	if test "$dnsrps_lib_open" = "0"; then :
   22770   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   22771 fi
   22772 
   22773 $as_echo "#define USE_DNSRPS 1" >>confdefs.h
   22774 
   22775 
   22776 fi
   22777 
   22778 # Copyright (C) 2005  Internet Systems Consortium, Inc. ("ISC")
   22779 #
   22780 # Permission to use, copy, modify, and distribute this software for any
   22781 # purpose with or without fee is hereby granted, provided that the above
   22782 # copyright notice and this permission notice appear in all copies.
   22783 #
   22784 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
   22785 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
   22786 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
   22787 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
   22788 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
   22789 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
   22790 # PERFORMANCE OF THIS SOFTWARE.
   22791 
   22792 #
   22793 # Shorthand.  Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
   22794 #
   22795 dlzdir='${DLZ_DRIVER_DIR}'
   22796 
   22797 #
   22798 # Private autoconf macro to simplify configuring drivers:
   22799 #
   22800 #   DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
   22801 #
   22802 # where:
   22803 #   DEFINE is FOO (to define -DDLZ_FOO)
   22804 #   DRIVER is dlz_foo_driver (sources without the .c)
   22805 #   INCLUDES is any necessary include definitions
   22806 #   LIBS is any necessary library definitions
   22807 #
   22808 
   22809 
   22810 #
   22811 # Check for the various DLZ drivers
   22812 #
   22813 
   22814 #
   22815 # Was --with-dlz-postgres specified?
   22816 #
   22817 
   22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
   22819 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
   22820 
   22821 # Check whether --with-dlz_postgres was given.
   22822 if test "${with_dlz_postgres+set}" = set; then :
   22823   withval=$with_dlz_postgres; use_dlz_postgres="$withval"
   22824 else
   22825   use_dlz_postgres="no"
   22826 fi
   22827 
   22828 
   22829 if test "$use_dlz_postgres" != "no"
   22830 then
   22831 	if test "$use_dlz_postgres" != "yes"
   22832         then
   22833                 for ac_prog in pg_config
   22834 do
   22835   # Extract the first word of "$ac_prog", so it can be a program name with args.
   22836 set dummy $ac_prog; ac_word=$2
   22837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   22838 $as_echo_n "checking for $ac_word... " >&6; }
   22839 if ${ac_cv_path_PG_CONFIG+:} false; then :
   22840   $as_echo_n "(cached) " >&6
   22841 else
   22842   case $PG_CONFIG in
   22843   [\\/]* | ?:[\\/]*)
   22844   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   22845   ;;
   22846   *)
   22847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   22848 for as_dir in $use_dlz_postgres/bin
   22849 do
   22850   IFS=$as_save_IFS
   22851   test -z "$as_dir" && as_dir=.
   22852     for ac_exec_ext in '' $ac_executable_extensions; do
   22853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   22854     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   22855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   22856     break 2
   22857   fi
   22858 done
   22859   done
   22860 IFS=$as_save_IFS
   22861 
   22862   ;;
   22863 esac
   22864 fi
   22865 PG_CONFIG=$ac_cv_path_PG_CONFIG
   22866 if test -n "$PG_CONFIG"; then
   22867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   22868 $as_echo "$PG_CONFIG" >&6; }
   22869 else
   22870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22871 $as_echo "no" >&6; }
   22872 fi
   22873 
   22874 
   22875   test -n "$PG_CONFIG" && break
   22876 done
   22877 test -n "$PG_CONFIG" || PG_CONFIG="not found"
   22878 
   22879 	else
   22880                 for ac_prog in pg_config
   22881 do
   22882   # Extract the first word of "$ac_prog", so it can be a program name with args.
   22883 set dummy $ac_prog; ac_word=$2
   22884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   22885 $as_echo_n "checking for $ac_word... " >&6; }
   22886 if ${ac_cv_path_PG_CONFIG+:} false; then :
   22887   $as_echo_n "(cached) " >&6
   22888 else
   22889   case $PG_CONFIG in
   22890   [\\/]* | ?:[\\/]*)
   22891   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   22892   ;;
   22893   *)
   22894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   22895 for as_dir in $PATH
   22896 do
   22897   IFS=$as_save_IFS
   22898   test -z "$as_dir" && as_dir=.
   22899     for ac_exec_ext in '' $ac_executable_extensions; do
   22900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   22901     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   22902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   22903     break 2
   22904   fi
   22905 done
   22906   done
   22907 IFS=$as_save_IFS
   22908 
   22909   ;;
   22910 esac
   22911 fi
   22912 PG_CONFIG=$ac_cv_path_PG_CONFIG
   22913 if test -n "$PG_CONFIG"; then
   22914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   22915 $as_echo "$PG_CONFIG" >&6; }
   22916 else
   22917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22918 $as_echo "no" >&6; }
   22919 fi
   22920 
   22921 
   22922   test -n "$PG_CONFIG" && break
   22923 done
   22924 test -n "$PG_CONFIG" || PG_CONFIG="not found"
   22925 
   22926 	fi
   22927 
   22928 	if test "$PG_CONFIG" != "not found"
   22929 	then
   22930 		use_dlz_postgres=`$PG_CONFIG --includedir`
   22931 		use_dlz_postgres_lib=`$PG_CONFIG --libdir`
   22932 	else
   22933 		pgprefix="$use_dlz_postgres"
   22934 		use_dlz_postgres="$pgprefix/include"
   22935 		use_dlz_postgres_lib="$pgprefix/lib"
   22936 	fi
   22937 fi
   22938 
   22939 if test "$use_dlz_postgres" = "yes/include"
   22940 then
   22941 	# User did not specify path and Postgres didn't say - guess it
   22942 	pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
   22943 	for d in $pgdirs
   22944 	do
   22945 		if test -f $d/include/libpq-fe.h
   22946 		then
   22947 			use_dlz_postgres=$d/include
   22948 			use_dlz_postgres_lib=$d/lib
   22949 			break
   22950 		fi
   22951 	done
   22952 fi
   22953 
   22954 if test "$use_dlz_postgres" = "yes/include"
   22955 then
   22956 	# Still no joy, give up
   22957 
   22958 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   22959 $as_echo "not found" >&6; }
   22960 	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
   22961 fi
   22962 
   22963 case "$use_dlz_postgres" in
   22964 	no)
   22965 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22966 $as_echo "no" >&6; }
   22967 		;;
   22968 	*)
   22969 
   22970 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
   22971 	for i in dlz_postgres_driver
   22972 	do
   22973 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   22974 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   22975 	done
   22976 	if test -n "-I$use_dlz_postgres"
   22977 	then
   22978 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
   22979 		DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
   22980 	fi
   22981 	if test -n "-L$use_dlz_postgres_lib -lpq"
   22982 	then
   22983 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
   22984 		DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
   22985 	fi
   22986 
   22987 
   22988 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
   22989 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
   22990 		;;
   22991 esac
   22992 
   22993 
   22994 #
   22995 # Was --with-dlz-mysql specified?
   22996 #
   22997 
   22998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
   22999 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
   23000 
   23001 # Check whether --with-dlz_mysql was given.
   23002 if test "${with_dlz_mysql+set}" = set; then :
   23003   withval=$with_dlz_mysql; use_dlz_mysql="$withval"
   23004 else
   23005   use_dlz_mysql="no"
   23006 fi
   23007 
   23008 
   23009 mysql_include=""
   23010 mysql_lib=""
   23011 if test "$use_dlz_mysql" = "yes"
   23012 then
   23013 	for ac_prog in mysql_config
   23014 do
   23015   # Extract the first word of "$ac_prog", so it can be a program name with args.
   23016 set dummy $ac_prog; ac_word=$2
   23017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23018 $as_echo_n "checking for $ac_word... " >&6; }
   23019 if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
   23020   $as_echo_n "(cached) " >&6
   23021 else
   23022   if test -n "$MYSQL_CONFIG"; then
   23023   ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
   23024 else
   23025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23026 for as_dir in $PATH
   23027 do
   23028   IFS=$as_save_IFS
   23029   test -z "$as_dir" && as_dir=.
   23030     for ac_exec_ext in '' $ac_executable_extensions; do
   23031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   23032     ac_cv_prog_MYSQL_CONFIG="$ac_prog"
   23033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   23034     break 2
   23035   fi
   23036 done
   23037   done
   23038 IFS=$as_save_IFS
   23039 
   23040 fi
   23041 fi
   23042 MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
   23043 if test -n "$MYSQL_CONFIG"; then
   23044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
   23045 $as_echo "$MYSQL_CONFIG" >&6; }
   23046 else
   23047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23048 $as_echo "no" >&6; }
   23049 fi
   23050 
   23051 
   23052   test -n "$MYSQL_CONFIG" && break
   23053 done
   23054 
   23055 	if test -n "$MYSQL_CONFIG"
   23056 	then
   23057 		mysql_include=`${MYSQL_CONFIG} --include`
   23058 		mysql_lib=`${MYSQL_CONFIG} --libs`
   23059 		use_dlz_mysql="config"
   23060 
   23061 	else
   23062 		# User did not specify a path - guess it
   23063 		mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
   23064 		for d in $mysqldirs
   23065 		do
   23066 			if test -f $d/include/mysql/mysql.h
   23067 			then
   23068 				use_dlz_mysql=$d
   23069 				mysql_include=$d/include/mysql
   23070 				break
   23071 			elif test -f $d/include/mysql.h
   23072 			then
   23073 				use_dlz_mysql=$d
   23074 				mysql_include=$d/include
   23075 				break
   23076 			fi
   23077 		done
   23078 	fi
   23079 elif test "$use_dlz_mysql" != "no"
   23080 then
   23081 	d=$use_dlz_mysql
   23082 	if test -f $d/include/mysql/mysql.h
   23083 	then
   23084 		mysql_include=$d/include/mysql
   23085 	elif test -f $d/include/mysql.h
   23086 	then
   23087 		mysql_include=$d/include
   23088 	fi
   23089 fi
   23090 
   23091 if test "$use_dlz_mysql" = "yes"
   23092 then
   23093 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23094 $as_echo "not found" >&6; }
   23095 	as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
   23096 fi
   23097 
   23098 case "$use_dlz_mysql" in
   23099 	no)
   23100 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23101 $as_echo "no" >&6; }
   23102 		;;
   23103 	config)
   23104 
   23105 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   23106 	for i in dlz_mysql_driver
   23107 	do
   23108 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23109 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23110 	done
   23111 	if test -n "${mysql_include}"
   23112 	then
   23113 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
   23114 		DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
   23115 	fi
   23116 	if test -n "${mysql_lib}"
   23117 	then
   23118 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
   23119 		DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
   23120 	fi
   23121 
   23122 
   23123 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
   23124 $as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
   23125 		;;
   23126 	*)
   23127 		if test -d "$use_dlz_mysql/lib/mysql"
   23128 		then
   23129 			mysql_lib="$use_dlz_mysql/lib/mysql"
   23130 		else
   23131 			mysql_lib="$use_dlz_mysql/lib"
   23132 		fi
   23133 
   23134 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   23135 	for i in dlz_mysql_driver
   23136 	do
   23137 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23138 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23139 	done
   23140 	if test -n "-I${mysql_include}"
   23141 	then
   23142 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
   23143 		DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
   23144 	fi
   23145 	if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   23146 	then
   23147 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   23148 		DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   23149 	fi
   23150 
   23151 
   23152 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
   23153 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
   23154 		;;
   23155 esac
   23156 
   23157 
   23158 #
   23159 # Was --with-dlz-bdb specified?
   23160 #
   23161 
   23162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
   23163 $as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
   23164 
   23165 # Check whether --with-dlz_bdb was given.
   23166 if test "${with_dlz_bdb+set}" = set; then :
   23167   withval=$with_dlz_bdb; use_dlz_bdb="$withval"
   23168 else
   23169   use_dlz_bdb="no"
   23170 fi
   23171 
   23172 
   23173 case "$use_dlz_bdb" in
   23174 	no)
   23175 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23176 $as_echo "no" >&6; }
   23177 		;;
   23178 	*)
   23179 		if test "$use_dlz_bdb" = "yes"
   23180 		then
   23181 			# User did not specify a path - guess directories
   23182 			bdbdirs="/usr/local /usr/pkg /usr"
   23183 		elif test -d "$use_dlz_bdb"
   23184 		then
   23185 			# User specified directory and it exists
   23186 			bdbdirs="$use_dlz_bdb"
   23187 		else
   23188 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23189 $as_echo "not found" >&6; }
   23190 			as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
   23191 			bdbdirs=""
   23192 		fi
   23193 
   23194 		# Use path we were given or guessed.  This is insanely
   23195 		# complicated because we have to search for a bunch of
   23196 		# platform-specific variations and have to check
   23197 		# separately for include and library directories.
   23198 
   23199 		# Set both to yes, so we can check them later
   23200 		dlz_bdb_inc="yes"
   23201 		dlz_bdb_libs="yes"
   23202 
   23203                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   23204 $as_echo "" >&6; }
   23205 		for dd in $bdbdirs
   23206 		do
   23207 			# Skip nonexistent directories
   23208 			if test ! -d "$dd"
   23209 			then
   23210 				continue
   23211 			fi
   23212 
   23213 			# Check other locations for includes.
   23214 			# Order is important (sigh).
   23215 
   23216 			bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
   23217 			# include a blank element first
   23218 			for d in "" $bdb_incdirs
   23219 			do
   23220 				if test -f "$dd/include${d}/db.h"
   23221 				then
   23222 					dlz_bdb_inc="-I$dd/include${d}"
   23223 					break
   23224 				fi
   23225 			done
   23226 
   23227 			# Give up on this directory if we couldn't
   23228 			# find the include subdir
   23229 
   23230 			if test "$dlz_bdb_inc" = "yes"
   23231 			then
   23232 				continue
   23233 			fi
   23234 
   23235 			# Look for libname other than libdb.so.
   23236 			# Order is important (sigh).
   23237 
   23238 			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"
   23239 			for d in $bdb_libnames
   23240 			do
   23241 				if test "$dd" = "/usr"
   23242 				then
   23243 					as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
   23244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
   23245 $as_echo_n "checking for db_create in -l$d... " >&6; }
   23246 if eval \${$as_ac_Lib+:} false; then :
   23247   $as_echo_n "(cached) " >&6
   23248 else
   23249   ac_check_lib_save_LIBS=$LIBS
   23250 LIBS="-l$d  $LIBS"
   23251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23252 /* end confdefs.h.  */
   23253 
   23254 /* Override any GCC internal prototype to avoid an error.
   23255    Use char because int might match the return type of a GCC
   23256    builtin and then its argument prototype would still apply.  */
   23257 #ifdef __cplusplus
   23258 extern "C"
   23259 #endif
   23260 char db_create ();
   23261 int
   23262 main ()
   23263 {
   23264 return db_create ();
   23265   ;
   23266   return 0;
   23267 }
   23268 _ACEOF
   23269 if ac_fn_c_try_link "$LINENO"; then :
   23270   eval "$as_ac_Lib=yes"
   23271 else
   23272   eval "$as_ac_Lib=no"
   23273 fi
   23274 rm -f core conftest.err conftest.$ac_objext \
   23275     conftest$ac_exeext conftest.$ac_ext
   23276 LIBS=$ac_check_lib_save_LIBS
   23277 fi
   23278 eval ac_res=\$$as_ac_Lib
   23279 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   23280 $as_echo "$ac_res" >&6; }
   23281 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
   23282   dlz_bdb_libs="-l${d}"
   23283 fi
   23284 
   23285 					if test $dlz_bdb_libs != "yes"
   23286 					then
   23287 						break
   23288 					fi
   23289 				elif test -f "$dd/lib/lib${d}.so"
   23290 				then
   23291 					dlz_bdb_libs="-L${dd}/lib -l${d}"
   23292 					break
   23293 				fi
   23294 			done
   23295 
   23296 			# If we found both incdir and lib, we're done
   23297 			if test "$dlz_bdb_libs" != "yes"
   23298 			then
   23299 				break
   23300 			fi
   23301 
   23302 			# Otherwise, we're starting over
   23303 
   23304 			dlz_bdb_inc="yes"
   23305 			dlz_bdb_libs="yes"
   23306 		done
   23307 
   23308 		# Done searching, now make sure we got everything.
   23309 
   23310 		if test "$dlz_bdb_inc" = "yes"
   23311 		then
   23312 			as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
   23313 		fi
   23314 
   23315 		if test "$dlz_bdb_libs" = "yes"
   23316 		then
   23317 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23318 $as_echo "not found" >&6; }
   23319 			as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
   23320 		fi
   23321 
   23322 
   23323 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
   23324 	for i in dlz_bdb_driver dlz_bdbhpt_driver
   23325 	do
   23326 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23327 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23328 	done
   23329 	if test -n "$dlz_bdb_inc"
   23330 	then
   23331 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
   23332 		DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
   23333 	fi
   23334 	if test -n "$dlz_bdb_libs"
   23335 	then
   23336 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
   23337 		DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
   23338 	fi
   23339 
   23340 
   23341 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
   23342 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
   23343 
   23344 		ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
   23345 
   23346 		;;
   23347 esac
   23348 
   23349 
   23350 #
   23351 # Was --with-dlz-filesystem specified?
   23352 #
   23353 
   23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
   23355 $as_echo_n "checking for file system DLZ driver... " >&6; }
   23356 
   23357 # Check whether --with-dlz_filesystem was given.
   23358 if test "${with_dlz_filesystem+set}" = set; then :
   23359   withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
   23360 else
   23361   use_dlz_filesystem="no"
   23362 fi
   23363 
   23364 
   23365 case "$use_dlz_filesystem" in
   23366 	no)
   23367 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23368 $as_echo "no" >&6; }
   23369 		;;
   23370 	*)
   23371 
   23372 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
   23373 	for i in dlz_filesystem_driver
   23374 	do
   23375 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23376 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23377 	done
   23378 	if test -n ""
   23379 	then
   23380 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   23381 		DLZ_DRIVER_FILESYSTEM_INCLUDES=""
   23382 	fi
   23383 	if test -n ""
   23384 	then
   23385 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   23386 		DLZ_DRIVER_FILESYSTEM_LIBS=""
   23387 	fi
   23388 
   23389 		DLZ_SYSTEM_TEST=filesystem
   23390 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23391 $as_echo "yes" >&6; }
   23392 		;;
   23393 esac
   23394 
   23395 
   23396 #
   23397 # Was --with-dlz-ldap specified?
   23398 #
   23399 
   23400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
   23401 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
   23402 
   23403 # Check whether --with-dlz_ldap was given.
   23404 if test "${with_dlz_ldap+set}" = set; then :
   23405   withval=$with_dlz_ldap; use_dlz_ldap="$withval"
   23406 else
   23407   use_dlz_ldap="no"
   23408 fi
   23409 
   23410 
   23411 if test "$use_dlz_ldap" = "yes"
   23412 then
   23413 	# User did not specify a path - guess it
   23414 	ldapdirs="/usr /usr/local /usr/pkg"
   23415 	for d in $ldapdirs
   23416 	do
   23417 		if test -f $d/include/ldap.h
   23418 		then
   23419 			use_dlz_ldap=$d
   23420 			break
   23421 		fi
   23422 	done
   23423 fi
   23424 
   23425 if test "$use_dlz_ldap" = "yes"
   23426 then
   23427 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23428 $as_echo "not found" >&6; }
   23429 	as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
   23430 fi
   23431 
   23432 case "$use_dlz_ldap" in
   23433 	no)
   23434 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23435 $as_echo "no" >&6; }
   23436 		;;
   23437 	*)
   23438 
   23439 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
   23440 	for i in dlz_ldap_driver
   23441 	do
   23442 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23443 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23444 	done
   23445 	if test -n "-I$use_dlz_ldap/include"
   23446 	then
   23447 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
   23448 		DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
   23449 	fi
   23450 	if test -n "-L$use_dlz_ldap/lib -lldap -llber"
   23451 	then
   23452 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
   23453 		DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
   23454 	fi
   23455 
   23456 
   23457 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
   23458 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
   23459 		;;
   23460 esac
   23461 
   23462 
   23463 #
   23464 # Was --with-dlz-odbc specified?
   23465 #
   23466 
   23467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
   23468 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
   23469 
   23470 # Check whether --with-dlz_odbc was given.
   23471 if test "${with_dlz_odbc+set}" = set; then :
   23472   withval=$with_dlz_odbc; use_dlz_odbc="$withval"
   23473 else
   23474   use_dlz_odbc="no"
   23475 fi
   23476 
   23477 
   23478 if test "$use_dlz_odbc" = "yes"
   23479 then
   23480 	# User did not specify a path - guess it
   23481 	libodbc_found=no
   23482 	sql_h_found=no
   23483 	ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
   23484 if test "x$ac_cv_header_sql_h" = xyes; then :
   23485   sql_h_found=yes
   23486 fi
   23487 
   23488 
   23489 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
   23490 $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
   23491 if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
   23492   $as_echo_n "(cached) " >&6
   23493 else
   23494   ac_check_lib_save_LIBS=$LIBS
   23495 LIBS="-lodbc  $LIBS"
   23496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23497 /* end confdefs.h.  */
   23498 
   23499 /* Override any GCC internal prototype to avoid an error.
   23500    Use char because int might match the return type of a GCC
   23501    builtin and then its argument prototype would still apply.  */
   23502 #ifdef __cplusplus
   23503 extern "C"
   23504 #endif
   23505 char SQLConnect ();
   23506 int
   23507 main ()
   23508 {
   23509 return SQLConnect ();
   23510   ;
   23511   return 0;
   23512 }
   23513 _ACEOF
   23514 if ac_fn_c_try_link "$LINENO"; then :
   23515   ac_cv_lib_odbc_SQLConnect=yes
   23516 else
   23517   ac_cv_lib_odbc_SQLConnect=no
   23518 fi
   23519 rm -f core conftest.err conftest.$ac_objext \
   23520     conftest$ac_exeext conftest.$ac_ext
   23521 LIBS=$ac_check_lib_save_LIBS
   23522 fi
   23523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
   23524 $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
   23525 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
   23526   libodbc_found=yes
   23527 fi
   23528 
   23529 
   23530 	if test $libodbc_found = "yes" -o $sql_h_found = "yes"
   23531 	then
   23532 		use_dlz_odbc=system
   23533 		dlz_odbc_include=""
   23534 		dlz_odbc_libs="-lodbc"
   23535 	else
   23536 		odbcdirs="/usr /usr/local /usr/pkg"
   23537 		for d in $odbcdirs
   23538 		do
   23539 			if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
   23540 			then
   23541 				use_dlz_odbc=$d
   23542 				dlz_odbc_include="-I$use_dlz_odbc/include"
   23543 				dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
   23544 				break
   23545 			fi
   23546 		done
   23547 	fi
   23548 fi
   23549 
   23550 case "$use_dlz_odbc" in
   23551 	no)
   23552 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23553 $as_echo "no" >&6; }
   23554 		;;
   23555 	yes)
   23556 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23557 $as_echo "not found" >&6; }
   23558 		as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
   23559 		;;
   23560 	*)
   23561 
   23562 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
   23563 	for i in dlz_odbc_driver
   23564 	do
   23565 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23566 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23567 	done
   23568 	if test -n "$dlz_odbc_include"
   23569 	then
   23570 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
   23571 		DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
   23572 	fi
   23573 	if test -n "$dlz_odbc_libs"
   23574 	then
   23575 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
   23576 		DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
   23577 	fi
   23578 
   23579 
   23580 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
   23581 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
   23582 		;;
   23583 esac
   23584 
   23585 
   23586 #
   23587 # Was --with-dlz-stub specified?
   23588 #
   23589 
   23590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
   23591 $as_echo_n "checking for stub DLZ driver... " >&6; }
   23592 
   23593 # Check whether --with-dlz_stub was given.
   23594 if test "${with_dlz_stub+set}" = set; then :
   23595   withval=$with_dlz_stub; use_dlz_stub="$withval"
   23596 else
   23597   use_dlz_stub="no"
   23598 fi
   23599 
   23600 
   23601 case "$use_dlz_stub" in
   23602 	no)
   23603 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23604 $as_echo "no" >&6; }
   23605 		;;
   23606 	*)
   23607 
   23608 
   23609 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
   23610 	for i in dlz_stub_driver
   23611 	do
   23612 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23613 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23614 	done
   23615 	if test -n ""
   23616 	then
   23617 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   23618 		DLZ_DRIVER_STUB_INCLUDES=""
   23619 	fi
   23620 	if test -n ""
   23621 	then
   23622 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   23623 		DLZ_DRIVER_STUB_LIBS=""
   23624 	fi
   23625 
   23626 
   23627 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23628 $as_echo "yes" >&6; }
   23629 		;;
   23630 esac
   23631 
   23632 # Add any additional DLZ drivers here.
   23633 
   23634 #
   23635 # Finally, some generic stuff that applies to all drivers, assuming
   23636 # we're compiling contrib DLZ drivers at all.
   23637 #
   23638 if test -n "$CONTRIB_DLZ"
   23639 then
   23640 	CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
   23641 
   23642 	#
   23643 	# Where to find DLZ driver header files.
   23644 	#
   23645 	DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
   23646 
   23647 	#
   23648 	# Initialization and shutdown wrappers, helper functions.
   23649 	#
   23650 	DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
   23651 	DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
   23652 fi
   23653 
   23654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
   23655 $as_echo_n "checking contributed DLZ drivers... " >&6; }
   23656 
   23657 if test -n "$CONTRIB_DLZ"
   23658 then
   23659 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23660 $as_echo "yes" >&6; }
   23661 	DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
   23662 	ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
   23663 
   23664 else
   23665 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23666 $as_echo "no" >&6; }
   23667 	DLZ_DRIVER_RULES=/dev/null
   23668 fi
   23669 
   23670 
   23671 
   23672 
   23673 
   23674 
   23675 
   23676 
   23677 
   23678 
   23679 
   23680 if test "yes" = "$cross_compiling"; then
   23681 	if test -z "$BUILD_CC"; then
   23682 		as_fn_error $? "BUILD_CC not set" "$LINENO" 5
   23683 	fi
   23684 	BUILD_CFLAGS="$BUILD_CFLAGS"
   23685 	BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
   23686 	BUILD_LDFLAGS="$BUILD_LDFLAGS"
   23687 	BUILD_LIBS="$BUILD_LIBS"
   23688 else
   23689 	BUILD_CC="$CC"
   23690 	BUILD_CFLAGS="$CFLAGS"
   23691 	BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
   23692 	BUILD_LDFLAGS="$LDFLAGS"
   23693 	BUILD_LIBS="$LIBS"
   23694 fi
   23695 
   23696 NEWFLAGS=""
   23697 for e in $BUILD_LDFLAGS ; do
   23698     case $e in
   23699 	-L*)
   23700 	    case $host_os in
   23701 		netbsd*)
   23702 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23703 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23704 		    ;;
   23705 		freebsd*)
   23706 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23707 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23708 		    ;;
   23709 		solaris*)
   23710 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   23711 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23712 		    ;;
   23713 		*)
   23714 		    NEWFLAGS="$NEWFLAGS $e"
   23715 		    ;;
   23716 		esac
   23717 	    ;;
   23718 	*)
   23719 	    NEWFLAGS="$NEWFLAGS $e"
   23720 	    ;;
   23721     esac
   23722 done
   23723 BUILD_LDFLAGS="$NEWFLAGS"
   23724 
   23725 NEWFLAGS=""
   23726 for e in $DNS_GSSAPI_LIBS ; do
   23727     case $e in
   23728 	-L*)
   23729 	    case $host_os in
   23730 		netbsd*)
   23731 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23732 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23733 		    ;;
   23734 		freebsd*)
   23735 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23736 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23737 		    ;;
   23738 		solaris*)
   23739 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   23740 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23741 		    ;;
   23742 		*)
   23743 		    NEWFLAGS="$NEWFLAGS $e"
   23744 		    ;;
   23745 		esac
   23746 	    ;;
   23747 	*)
   23748 	    NEWFLAGS="$NEWFLAGS $e"
   23749 	    ;;
   23750     esac
   23751 done
   23752 DNS_GSSAPI_LIBS="$NEWFLAGS"
   23753 
   23754 NEWFLAGS=""
   23755 for e in $ISC_OPENSSL_LIBS ; do
   23756     case $e in
   23757 	-L*)
   23758 	    case $host_os in
   23759 		netbsd*)
   23760 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23761 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23762 		    ;;
   23763 		freebsd*)
   23764 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23765 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23766 		    ;;
   23767 		solaris*)
   23768 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   23769 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23770 		    ;;
   23771 		*)
   23772 		    NEWFLAGS="$NEWFLAGS $e"
   23773 		    ;;
   23774 		esac
   23775 	    ;;
   23776 	*)
   23777 	    NEWFLAGS="$NEWFLAGS $e"
   23778 	    ;;
   23779     esac
   23780 done
   23781 ISC_OPENSSL_LIBS="$NEWFLAGS"
   23782 
   23783 NEWFLAGS=""
   23784 for e in $DNS_CRYPTO_LIBS ; do
   23785     case $e in
   23786 	-L*)
   23787 	    case $host_os in
   23788 		netbsd*)
   23789 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23790 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23791 		    ;;
   23792 		freebsd*)
   23793 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23794 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23795 		    ;;
   23796 		solaris*)
   23797 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   23798 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23799 		    ;;
   23800 		*)
   23801 		    NEWFLAGS="$NEWFLAGS $e"
   23802 		    ;;
   23803 		esac
   23804 	    ;;
   23805 	*)
   23806 	    NEWFLAGS="$NEWFLAGS $e"
   23807 	    ;;
   23808     esac
   23809 done
   23810 DNS_CRYPTO_LIBS="$NEWFLAGS"
   23811 
   23812 
   23813 
   23814 
   23815 
   23816 
   23817 
   23818 #
   23819 # Commands to run at the end of config.status.
   23820 # Don't just put these into configure, it won't work right if somebody
   23821 # runs config.status directly (which autoconf allows).
   23822 #
   23823 
   23824 ac_config_commands="$ac_config_commands chmod"
   23825 
   23826 
   23827 #
   23828 # Files to configure.  These are listed here because we used to
   23829 # specify them as arguments to AC_OUTPUT.  It's (now) ok to move these
   23830 # elsewhere if there's a good reason for doing so.
   23831 #
   23832 
   23833 ac_config_files="$ac_config_files 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/dnssec-checkds.py bin/python/dnssec-coverage.py bin/python/dnssec-keymgr.py bin/python/isc/Makefile 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/Makefile bin/python/isc/tests/dnskey_test.py bin/python/isc/tests/policy_test.py bin/python/isc/utils.py bin/rndc/Makefile bin/tests/Makefile bin/tests/headerdep_test.sh bin/tests/optional/Makefile bin/tests/pkcs11/Makefile bin/tests/pkcs11/benchmarks/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/dlzexternal/Makefile bin/tests/system/dlzexternal/ns1/dlzs.conf bin/tests/system/dyndb/Makefile bin/tests/system/dyndb/driver/Makefile bin/tests/system/pipelined/Makefile bin/tests/system/rndc/Makefile bin/tests/system/rpz/Makefile bin/tests/system/rsabigexponent/Makefile bin/tests/system/tkey/Makefile bin/tools/Makefile contrib/scripts/check-secure-delegation.pl contrib/scripts/zone-edit.sh doc/Makefile doc/arm/Makefile doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter doc/man/Makefile doc/misc/Makefile fuzz/Makefile 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/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/netmgr/Makefile lib/isc/pthreads/Makefile lib/isc/pthreads/include/Makefile lib/isc/pthreads/include/isc/Makefile lib/isc/tests/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/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 make/Makefile make/mkdep unit/unittest.sh util/check-make-install"
   23834 
   23835 
   23836 #
   23837 # Do it
   23838 #
   23839 
   23840 cat >confcache <<\_ACEOF
   23841 # This file is a shell script that caches the results of configure
   23842 # tests run on this system so they can be shared between configure
   23843 # scripts and configure runs, see configure's option --config-cache.
   23844 # It is not useful on other systems.  If it contains results you don't
   23845 # want to keep, you may remove or edit it.
   23846 #
   23847 # config.status only pays attention to the cache file if you give it
   23848 # the --recheck option to rerun configure.
   23849 #
   23850 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   23851 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   23852 # following values.
   23853 
   23854 _ACEOF
   23855 
   23856 # The following way of writing the cache mishandles newlines in values,
   23857 # but we know of no workaround that is simple, portable, and efficient.
   23858 # So, we kill variables containing newlines.
   23859 # Ultrix sh set writes to stderr and can't be redirected directly,
   23860 # and sets the high bit in the cache file unless we assign to the vars.
   23861 (
   23862   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   23863     eval ac_val=\$$ac_var
   23864     case $ac_val in #(
   23865     *${as_nl}*)
   23866       case $ac_var in #(
   23867       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   23868 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   23869       esac
   23870       case $ac_var in #(
   23871       _ | IFS | as_nl) ;; #(
   23872       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   23873       *) { eval $ac_var=; unset $ac_var;} ;;
   23874       esac ;;
   23875     esac
   23876   done
   23877 
   23878   (set) 2>&1 |
   23879     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   23880     *${as_nl}ac_space=\ *)
   23881       # `set' does not quote correctly, so add quotes: double-quote
   23882       # substitution turns \\\\ into \\, and sed turns \\ into \.
   23883       sed -n \
   23884 	"s/'/'\\\\''/g;
   23885 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   23886       ;; #(
   23887     *)
   23888       # `set' quotes correctly as required by POSIX, so do not add quotes.
   23889       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   23890       ;;
   23891     esac |
   23892     sort
   23893 ) |
   23894   sed '
   23895      /^ac_cv_env_/b end
   23896      t clear
   23897      :clear
   23898      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   23899      t end
   23900      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   23901      :end' >>confcache
   23902 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   23903   if test -w "$cache_file"; then
   23904     if test "x$cache_file" != "x/dev/null"; then
   23905       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   23906 $as_echo "$as_me: updating cache $cache_file" >&6;}
   23907       if test ! -f "$cache_file" || test -h "$cache_file"; then
   23908 	cat confcache >"$cache_file"
   23909       else
   23910         case $cache_file in #(
   23911         */* | ?:*)
   23912 	  mv -f confcache "$cache_file"$$ &&
   23913 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   23914         *)
   23915 	  mv -f confcache "$cache_file" ;;
   23916 	esac
   23917       fi
   23918     fi
   23919   else
   23920     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   23921 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   23922   fi
   23923 fi
   23924 rm -f confcache
   23925 
   23926 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   23927 # Let make expand exec_prefix.
   23928 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   23929 
   23930 DEFS=-DHAVE_CONFIG_H
   23931 
   23932 ac_libobjs=
   23933 ac_ltlibobjs=
   23934 U=
   23935 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   23936   # 1. Remove the extension, and $U if already installed.
   23937   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   23938   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   23939   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   23940   #    will be set to the directory where LIBOBJS objects are built.
   23941   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   23942   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   23943 done
   23944 LIBOBJS=$ac_libobjs
   23945 
   23946 LTLIBOBJS=$ac_ltlibobjs
   23947 
   23948 
   23949 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   23950   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
   23951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   23952 fi
   23953 
   23954 if test -z "${HAVE_SPHINX_BUILD_TRUE}" && test -z "${HAVE_SPHINX_BUILD_FALSE}"; then
   23955   as_fn_error $? "conditional \"HAVE_SPHINX_BUILD\" was never defined.
   23956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   23957 fi
   23958 if test -z "${HAVE_XELATEX_TRUE}" && test -z "${HAVE_XELATEX_FALSE}"; then
   23959   as_fn_error $? "conditional \"HAVE_XELATEX\" was never defined.
   23960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   23961 fi
   23962 
   23963 : "${CONFIG_STATUS=./config.status}"
   23964 ac_write_fail=0
   23965 ac_clean_files_save=$ac_clean_files
   23966 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   23967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   23968 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   23969 as_write_fail=0
   23970 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   23971 #! $SHELL
   23972 # Generated by $as_me.
   23973 # Run this file to recreate the current configuration.
   23974 # Compiler output produced by configure, useful for debugging
   23975 # configure, is in config.log if it exists.
   23976 
   23977 debug=false
   23978 ac_cs_recheck=false
   23979 ac_cs_silent=false
   23980 
   23981 SHELL=\${CONFIG_SHELL-$SHELL}
   23982 export SHELL
   23983 _ASEOF
   23984 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   23985 ## -------------------- ##
   23986 ## M4sh Initialization. ##
   23987 ## -------------------- ##
   23988 
   23989 # Be more Bourne compatible
   23990 DUALCASE=1; export DUALCASE # for MKS sh
   23991 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   23992   emulate sh
   23993   NULLCMD=:
   23994   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   23995   # is contrary to our usage.  Disable this feature.
   23996   alias -g '${1+"$@"}'='"$@"'
   23997   setopt NO_GLOB_SUBST
   23998 else
   23999   case `(set -o) 2>/dev/null` in #(
   24000   *posix*) :
   24001     set -o posix ;; #(
   24002   *) :
   24003      ;;
   24004 esac
   24005 fi
   24006 
   24007 
   24008 as_nl='
   24009 '
   24010 export as_nl
   24011 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   24012 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   24013 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   24014 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   24015 # Prefer a ksh shell builtin over an external printf program on Solaris,
   24016 # but without wasting forks for bash or zsh.
   24017 if test -z "$BASH_VERSION$ZSH_VERSION" \
   24018     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   24019   as_echo='print -r --'
   24020   as_echo_n='print -rn --'
   24021 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   24022   as_echo='printf %s\n'
   24023   as_echo_n='printf %s'
   24024 else
   24025   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   24026     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   24027     as_echo_n='/usr/ucb/echo -n'
   24028   else
   24029     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   24030     as_echo_n_body='eval
   24031       arg=$1;
   24032       case $arg in #(
   24033       *"$as_nl"*)
   24034 	expr "X$arg" : "X\\(.*\\)$as_nl";
   24035 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   24036       esac;
   24037       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   24038     '
   24039     export as_echo_n_body
   24040     as_echo_n='sh -c $as_echo_n_body as_echo'
   24041   fi
   24042   export as_echo_body
   24043   as_echo='sh -c $as_echo_body as_echo'
   24044 fi
   24045 
   24046 # The user is always right.
   24047 if test "${PATH_SEPARATOR+set}" != set; then
   24048   PATH_SEPARATOR=:
   24049   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   24050     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   24051       PATH_SEPARATOR=';'
   24052   }
   24053 fi
   24054 
   24055 
   24056 # IFS
   24057 # We need space, tab and new line, in precisely that order.  Quoting is
   24058 # there to prevent editors from complaining about space-tab.
   24059 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   24060 # splitting by setting IFS to empty value.)
   24061 IFS=" ""	$as_nl"
   24062 
   24063 # Find who we are.  Look in the path if we contain no directory separator.
   24064 as_myself=
   24065 case $0 in #((
   24066   *[\\/]* ) as_myself=$0 ;;
   24067   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   24068 for as_dir in $PATH
   24069 do
   24070   IFS=$as_save_IFS
   24071   test -z "$as_dir" && as_dir=.
   24072     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   24073   done
   24074 IFS=$as_save_IFS
   24075 
   24076      ;;
   24077 esac
   24078 # We did not find ourselves, most probably we were run as `sh COMMAND'
   24079 # in which case we are not to be found in the path.
   24080 if test "x$as_myself" = x; then
   24081   as_myself=$0
   24082 fi
   24083 if test ! -f "$as_myself"; then
   24084   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   24085   exit 1
   24086 fi
   24087 
   24088 # Unset variables that we do not need and which cause bugs (e.g. in
   24089 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   24090 # suppresses any "Segmentation fault" message there.  '((' could
   24091 # trigger a bug in pdksh 5.2.14.
   24092 for as_var in BASH_ENV ENV MAIL MAILPATH
   24093 do eval test x\${$as_var+set} = xset \
   24094   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   24095 done
   24096 PS1='$ '
   24097 PS2='> '
   24098 PS4='+ '
   24099 
   24100 # NLS nuisances.
   24101 LC_ALL=C
   24102 export LC_ALL
   24103 LANGUAGE=C
   24104 export LANGUAGE
   24105 
   24106 # CDPATH.
   24107 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   24108 
   24109 
   24110 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   24111 # ----------------------------------------
   24112 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   24113 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   24114 # script with STATUS, using 1 if that was 0.
   24115 as_fn_error ()
   24116 {
   24117   as_status=$1; test $as_status -eq 0 && as_status=1
   24118   if test "$4"; then
   24119     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   24120     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   24121   fi
   24122   $as_echo "$as_me: error: $2" >&2
   24123   as_fn_exit $as_status
   24124 } # as_fn_error
   24125 
   24126 
   24127 # as_fn_set_status STATUS
   24128 # -----------------------
   24129 # Set $? to STATUS, without forking.
   24130 as_fn_set_status ()
   24131 {
   24132   return $1
   24133 } # as_fn_set_status
   24134 
   24135 # as_fn_exit STATUS
   24136 # -----------------
   24137 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   24138 as_fn_exit ()
   24139 {
   24140   set +e
   24141   as_fn_set_status $1
   24142   exit $1
   24143 } # as_fn_exit
   24144 
   24145 # as_fn_unset VAR
   24146 # ---------------
   24147 # Portably unset VAR.
   24148 as_fn_unset ()
   24149 {
   24150   { eval $1=; unset $1;}
   24151 }
   24152 as_unset=as_fn_unset
   24153 # as_fn_append VAR VALUE
   24154 # ----------------------
   24155 # Append the text in VALUE to the end of the definition contained in VAR. Take
   24156 # advantage of any shell optimizations that allow amortized linear growth over
   24157 # repeated appends, instead of the typical quadratic growth present in naive
   24158 # implementations.
   24159 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   24160   eval 'as_fn_append ()
   24161   {
   24162     eval $1+=\$2
   24163   }'
   24164 else
   24165   as_fn_append ()
   24166   {
   24167     eval $1=\$$1\$2
   24168   }
   24169 fi # as_fn_append
   24170 
   24171 # as_fn_arith ARG...
   24172 # ------------------
   24173 # Perform arithmetic evaluation on the ARGs, and store the result in the
   24174 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   24175 # must be portable across $(()) and expr.
   24176 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   24177   eval 'as_fn_arith ()
   24178   {
   24179     as_val=$(( $* ))
   24180   }'
   24181 else
   24182   as_fn_arith ()
   24183   {
   24184     as_val=`expr "$@" || test $? -eq 1`
   24185   }
   24186 fi # as_fn_arith
   24187 
   24188 
   24189 if expr a : '\(a\)' >/dev/null 2>&1 &&
   24190    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   24191   as_expr=expr
   24192 else
   24193   as_expr=false
   24194 fi
   24195 
   24196 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   24197   as_basename=basename
   24198 else
   24199   as_basename=false
   24200 fi
   24201 
   24202 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   24203   as_dirname=dirname
   24204 else
   24205   as_dirname=false
   24206 fi
   24207 
   24208 as_me=`$as_basename -- "$0" ||
   24209 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   24210 	 X"$0" : 'X\(//\)$' \| \
   24211 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   24212 $as_echo X/"$0" |
   24213     sed '/^.*\/\([^/][^/]*\)\/*$/{
   24214 	    s//\1/
   24215 	    q
   24216 	  }
   24217 	  /^X\/\(\/\/\)$/{
   24218 	    s//\1/
   24219 	    q
   24220 	  }
   24221 	  /^X\/\(\/\).*/{
   24222 	    s//\1/
   24223 	    q
   24224 	  }
   24225 	  s/.*/./; q'`
   24226 
   24227 # Avoid depending upon Character Ranges.
   24228 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   24229 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   24230 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   24231 as_cr_digits='0123456789'
   24232 as_cr_alnum=$as_cr_Letters$as_cr_digits
   24233 
   24234 ECHO_C= ECHO_N= ECHO_T=
   24235 case `echo -n x` in #(((((
   24236 -n*)
   24237   case `echo 'xy\c'` in
   24238   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   24239   xy)  ECHO_C='\c';;
   24240   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   24241        ECHO_T='	';;
   24242   esac;;
   24243 *)
   24244   ECHO_N='-n';;
   24245 esac
   24246 
   24247 rm -f conf$$ conf$$.exe conf$$.file
   24248 if test -d conf$$.dir; then
   24249   rm -f conf$$.dir/conf$$.file
   24250 else
   24251   rm -f conf$$.dir
   24252   mkdir conf$$.dir 2>/dev/null
   24253 fi
   24254 if (echo >conf$$.file) 2>/dev/null; then
   24255   if ln -s conf$$.file conf$$ 2>/dev/null; then
   24256     as_ln_s='ln -s'
   24257     # ... but there are two gotchas:
   24258     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   24259     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   24260     # In both cases, we have to default to `cp -pR'.
   24261     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   24262       as_ln_s='cp -pR'
   24263   elif ln conf$$.file conf$$ 2>/dev/null; then
   24264     as_ln_s=ln
   24265   else
   24266     as_ln_s='cp -pR'
   24267   fi
   24268 else
   24269   as_ln_s='cp -pR'
   24270 fi
   24271 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   24272 rmdir conf$$.dir 2>/dev/null
   24273 
   24274 
   24275 # as_fn_mkdir_p
   24276 # -------------
   24277 # Create "$as_dir" as a directory, including parents if necessary.
   24278 as_fn_mkdir_p ()
   24279 {
   24280 
   24281   case $as_dir in #(
   24282   -*) as_dir=./$as_dir;;
   24283   esac
   24284   test -d "$as_dir" || eval $as_mkdir_p || {
   24285     as_dirs=
   24286     while :; do
   24287       case $as_dir in #(
   24288       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   24289       *) as_qdir=$as_dir;;
   24290       esac
   24291       as_dirs="'$as_qdir' $as_dirs"
   24292       as_dir=`$as_dirname -- "$as_dir" ||
   24293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   24294 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   24295 	 X"$as_dir" : 'X\(//\)$' \| \
   24296 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   24297 $as_echo X"$as_dir" |
   24298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   24299 	    s//\1/
   24300 	    q
   24301 	  }
   24302 	  /^X\(\/\/\)[^/].*/{
   24303 	    s//\1/
   24304 	    q
   24305 	  }
   24306 	  /^X\(\/\/\)$/{
   24307 	    s//\1/
   24308 	    q
   24309 	  }
   24310 	  /^X\(\/\).*/{
   24311 	    s//\1/
   24312 	    q
   24313 	  }
   24314 	  s/.*/./; q'`
   24315       test -d "$as_dir" && break
   24316     done
   24317     test -z "$as_dirs" || eval "mkdir $as_dirs"
   24318   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   24319 
   24320 
   24321 } # as_fn_mkdir_p
   24322 if mkdir -p . 2>/dev/null; then
   24323   as_mkdir_p='mkdir -p "$as_dir"'
   24324 else
   24325   test -d ./-p && rmdir ./-p
   24326   as_mkdir_p=false
   24327 fi
   24328 
   24329 
   24330 # as_fn_executable_p FILE
   24331 # -----------------------
   24332 # Test if FILE is an executable regular file.
   24333 as_fn_executable_p ()
   24334 {
   24335   test -f "$1" && test -x "$1"
   24336 } # as_fn_executable_p
   24337 as_test_x='test -x'
   24338 as_executable_p=as_fn_executable_p
   24339 
   24340 # Sed expression to map a string onto a valid CPP name.
   24341 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   24342 
   24343 # Sed expression to map a string onto a valid variable name.
   24344 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   24345 
   24346 
   24347 exec 6>&1
   24348 ## ----------------------------------- ##
   24349 ## Main body of $CONFIG_STATUS script. ##
   24350 ## ----------------------------------- ##
   24351 _ASEOF
   24352 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   24353 
   24354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24355 # Save the log message, to keep $0 and so on meaningful, and to
   24356 # report actual input values of CONFIG_FILES etc. instead of their
   24357 # values after options handling.
   24358 ac_log="
   24359 This file was extended by BIND $as_me 9.16, which was
   24360 generated by GNU Autoconf 2.69.  Invocation command line was
   24361 
   24362   CONFIG_FILES    = $CONFIG_FILES
   24363   CONFIG_HEADERS  = $CONFIG_HEADERS
   24364   CONFIG_LINKS    = $CONFIG_LINKS
   24365   CONFIG_COMMANDS = $CONFIG_COMMANDS
   24366   $ $0 $@
   24367 
   24368 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   24369 "
   24370 
   24371 _ACEOF
   24372 
   24373 case $ac_config_files in *"
   24374 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   24375 esac
   24376 
   24377 case $ac_config_headers in *"
   24378 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   24379 esac
   24380 
   24381 
   24382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24383 # Files that config.status was made for.
   24384 config_files="$ac_config_files"
   24385 config_headers="$ac_config_headers"
   24386 config_commands="$ac_config_commands"
   24387 
   24388 _ACEOF
   24389 
   24390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24391 ac_cs_usage="\
   24392 \`$as_me' instantiates files and other configuration actions
   24393 from templates according to the current configuration.  Unless the files
   24394 and actions are specified as TAGs, all are instantiated by default.
   24395 
   24396 Usage: $0 [OPTION]... [TAG]...
   24397 
   24398   -h, --help       print this help, then exit
   24399   -V, --version    print version number and configuration settings, then exit
   24400       --config     print configuration, then exit
   24401   -q, --quiet, --silent
   24402                    do not print progress messages
   24403   -d, --debug      don't remove temporary files
   24404       --recheck    update $as_me by reconfiguring in the same conditions
   24405       --file=FILE[:TEMPLATE]
   24406                    instantiate the configuration file FILE
   24407       --header=FILE[:TEMPLATE]
   24408                    instantiate the configuration header FILE
   24409 
   24410 Configuration files:
   24411 $config_files
   24412 
   24413 Configuration headers:
   24414 $config_headers
   24415 
   24416 Configuration commands:
   24417 $config_commands
   24418 
   24419 Report bugs to <info@isc.org>.
   24420 BIND home page: <https://www.isc.org/downloads/>."
   24421 
   24422 _ACEOF
   24423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24424 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   24425 ac_cs_version="\\
   24426 BIND config.status 9.16
   24427 configured by $0, generated by GNU Autoconf 2.69,
   24428   with options \\"\$ac_cs_config\\"
   24429 
   24430 Copyright (C) 2012 Free Software Foundation, Inc.
   24431 This config.status script is free software; the Free Software Foundation
   24432 gives unlimited permission to copy, distribute and modify it."
   24433 
   24434 ac_pwd='$ac_pwd'
   24435 srcdir='$srcdir'
   24436 INSTALL='$INSTALL'
   24437 MKDIR_P='$MKDIR_P'
   24438 AWK='$AWK'
   24439 test -n "\$AWK" || AWK=awk
   24440 _ACEOF
   24441 
   24442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24443 # The default lists apply if the user does not specify any file.
   24444 ac_need_defaults=:
   24445 while test $# != 0
   24446 do
   24447   case $1 in
   24448   --*=?*)
   24449     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   24450     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   24451     ac_shift=:
   24452     ;;
   24453   --*=)
   24454     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   24455     ac_optarg=
   24456     ac_shift=:
   24457     ;;
   24458   *)
   24459     ac_option=$1
   24460     ac_optarg=$2
   24461     ac_shift=shift
   24462     ;;
   24463   esac
   24464 
   24465   case $ac_option in
   24466   # Handling of the options.
   24467   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   24468     ac_cs_recheck=: ;;
   24469   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   24470     $as_echo "$ac_cs_version"; exit ;;
   24471   --config | --confi | --conf | --con | --co | --c )
   24472     $as_echo "$ac_cs_config"; exit ;;
   24473   --debug | --debu | --deb | --de | --d | -d )
   24474     debug=: ;;
   24475   --file | --fil | --fi | --f )
   24476     $ac_shift
   24477     case $ac_optarg in
   24478     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   24479     '') as_fn_error $? "missing file argument" ;;
   24480     esac
   24481     as_fn_append CONFIG_FILES " '$ac_optarg'"
   24482     ac_need_defaults=false;;
   24483   --header | --heade | --head | --hea )
   24484     $ac_shift
   24485     case $ac_optarg in
   24486     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   24487     esac
   24488     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   24489     ac_need_defaults=false;;
   24490   --he | --h)
   24491     # Conflict between --help and --header
   24492     as_fn_error $? "ambiguous option: \`$1'
   24493 Try \`$0 --help' for more information.";;
   24494   --help | --hel | -h )
   24495     $as_echo "$ac_cs_usage"; exit ;;
   24496   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   24497   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   24498     ac_cs_silent=: ;;
   24499 
   24500   # This is an error.
   24501   -*) as_fn_error $? "unrecognized option: \`$1'
   24502 Try \`$0 --help' for more information." ;;
   24503 
   24504   *) as_fn_append ac_config_targets " $1"
   24505      ac_need_defaults=false ;;
   24506 
   24507   esac
   24508   shift
   24509 done
   24510 
   24511 ac_configure_extra_args=
   24512 
   24513 if $ac_cs_silent; then
   24514   exec 6>/dev/null
   24515   ac_configure_extra_args="$ac_configure_extra_args --silent"
   24516 fi
   24517 
   24518 _ACEOF
   24519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24520 if \$ac_cs_recheck; then
   24521   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   24522   shift
   24523   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   24524   CONFIG_SHELL='$SHELL'
   24525   export CONFIG_SHELL
   24526   exec "\$@"
   24527 fi
   24528 
   24529 _ACEOF
   24530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24531 exec 5>>config.log
   24532 {
   24533   echo
   24534   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   24535 ## Running $as_me. ##
   24536 _ASBOX
   24537   $as_echo "$ac_log"
   24538 } >&5
   24539 
   24540 _ACEOF
   24541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24542 #
   24543 # INIT-COMMANDS
   24544 #
   24545 
   24546 
   24547 # The HP-UX ksh and POSIX shell print the target directory to stdout
   24548 # if CDPATH is set.
   24549 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   24550 
   24551 sed_quote_subst='$sed_quote_subst'
   24552 double_quote_subst='$double_quote_subst'
   24553 delay_variable_subst='$delay_variable_subst'
   24554 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   24555 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   24556 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   24557 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   24558 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   24559 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   24560 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   24561 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   24562 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   24563 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   24564 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   24565 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   24566 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   24567 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   24568 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   24569 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   24570 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   24571 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   24572 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   24573 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   24574 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   24575 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   24576 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   24577 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   24578 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   24579 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   24580 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   24581 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   24582 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   24583 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   24584 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   24585 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   24586 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   24587 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   24588 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   24589 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   24590 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   24591 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   24592 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   24593 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   24594 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   24595 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   24596 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   24597 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   24598 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   24599 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   24600 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   24601 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   24602 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   24603 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   24604 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   24605 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   24606 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   24607 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   24608 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   24609 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   24610 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   24611 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   24612 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"`'
   24613 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   24614 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   24615 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   24616 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   24617 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   24618 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   24619 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   24620 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   24621 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   24622 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   24623 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   24624 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   24625 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   24626 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   24627 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   24628 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   24629 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   24630 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   24631 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   24632 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   24633 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   24634 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   24635 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   24636 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   24637 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   24638 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   24639 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   24640 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   24641 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   24642 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   24643 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   24644 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   24645 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   24646 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   24647 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   24648 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   24649 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   24650 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   24651 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   24652 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   24653 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   24654 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   24655 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   24656 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   24657 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   24658 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   24659 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   24660 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   24661 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   24662 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   24663 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   24664 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   24665 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   24666 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   24667 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   24668 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   24669 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   24670 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   24671 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   24672 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   24673 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   24674 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   24675 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   24676 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   24677 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   24678 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   24679 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   24680 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   24681 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   24682 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   24683 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   24684 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   24685 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   24686 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   24687 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   24688 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   24689 
   24690 LTCC='$LTCC'
   24691 LTCFLAGS='$LTCFLAGS'
   24692 compiler='$compiler_DEFAULT'
   24693 
   24694 # A function that is used when there is no print builtin or printf.
   24695 func_fallback_echo ()
   24696 {
   24697   eval 'cat <<_LTECHO_EOF
   24698 \$1
   24699 _LTECHO_EOF'
   24700 }
   24701 
   24702 # Quote evaled strings.
   24703 for var in SHELL \
   24704 ECHO \
   24705 PATH_SEPARATOR \
   24706 SED \
   24707 GREP \
   24708 EGREP \
   24709 FGREP \
   24710 LD \
   24711 NM \
   24712 LN_S \
   24713 lt_SP2NL \
   24714 lt_NL2SP \
   24715 reload_flag \
   24716 OBJDUMP \
   24717 deplibs_check_method \
   24718 file_magic_cmd \
   24719 file_magic_glob \
   24720 want_nocaseglob \
   24721 DLLTOOL \
   24722 sharedlib_from_linklib_cmd \
   24723 AR \
   24724 AR_FLAGS \
   24725 archiver_list_spec \
   24726 STRIP \
   24727 RANLIB \
   24728 CC \
   24729 CFLAGS \
   24730 compiler \
   24731 lt_cv_sys_global_symbol_pipe \
   24732 lt_cv_sys_global_symbol_to_cdecl \
   24733 lt_cv_sys_global_symbol_to_import \
   24734 lt_cv_sys_global_symbol_to_c_name_address \
   24735 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   24736 lt_cv_nm_interface \
   24737 nm_file_list_spec \
   24738 lt_cv_truncate_bin \
   24739 lt_prog_compiler_no_builtin_flag \
   24740 lt_prog_compiler_pic \
   24741 lt_prog_compiler_wl \
   24742 lt_prog_compiler_static \
   24743 lt_cv_prog_compiler_c_o \
   24744 need_locks \
   24745 MANIFEST_TOOL \
   24746 DSYMUTIL \
   24747 NMEDIT \
   24748 LIPO \
   24749 OTOOL \
   24750 OTOOL64 \
   24751 shrext_cmds \
   24752 export_dynamic_flag_spec \
   24753 whole_archive_flag_spec \
   24754 compiler_needs_object \
   24755 with_gnu_ld \
   24756 allow_undefined_flag \
   24757 no_undefined_flag \
   24758 hardcode_libdir_flag_spec \
   24759 hardcode_libdir_separator \
   24760 exclude_expsyms \
   24761 include_expsyms \
   24762 file_list_spec \
   24763 variables_saved_for_relink \
   24764 libname_spec \
   24765 library_names_spec \
   24766 soname_spec \
   24767 install_override_mode \
   24768 finish_eval \
   24769 old_striplib \
   24770 striplib; do
   24771     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   24772     *[\\\\\\\`\\"\\\$]*)
   24773       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   24774       ;;
   24775     *)
   24776       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   24777       ;;
   24778     esac
   24779 done
   24780 
   24781 # Double-quote double-evaled strings.
   24782 for var in reload_cmds \
   24783 old_postinstall_cmds \
   24784 old_postuninstall_cmds \
   24785 old_archive_cmds \
   24786 extract_expsyms_cmds \
   24787 old_archive_from_new_cmds \
   24788 old_archive_from_expsyms_cmds \
   24789 archive_cmds \
   24790 archive_expsym_cmds \
   24791 module_cmds \
   24792 module_expsym_cmds \
   24793 export_symbols_cmds \
   24794 prelink_cmds \
   24795 postlink_cmds \
   24796 postinstall_cmds \
   24797 postuninstall_cmds \
   24798 finish_cmds \
   24799 sys_lib_search_path_spec \
   24800 configure_time_dlsearch_path \
   24801 configure_time_lt_sys_library_path; do
   24802     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   24803     *[\\\\\\\`\\"\\\$]*)
   24804       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   24805       ;;
   24806     *)
   24807       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   24808       ;;
   24809     esac
   24810 done
   24811 
   24812 ac_aux_dir='$ac_aux_dir'
   24813 
   24814 # See if we are running on zsh, and set the options that allow our
   24815 # commands through without removal of \ escapes INIT.
   24816 if test -n "\${ZSH_VERSION+set}"; then
   24817    setopt NO_GLOB_SUBST
   24818 fi
   24819 
   24820 
   24821     PACKAGE='$PACKAGE'
   24822     VERSION='$VERSION'
   24823     RM='$RM'
   24824     ofile='$ofile'
   24825 
   24826 
   24827 
   24828 
   24829 _ACEOF
   24830 
   24831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24832 
   24833 # Handling of arguments.
   24834 for ac_config_target in $ac_config_targets
   24835 do
   24836   case $ac_config_target in
   24837     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   24838     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   24839     "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
   24840     "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
   24841     "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
   24842     "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
   24843     "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
   24844     "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
   24845     "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
   24846     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   24847     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
   24848     "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
   24849     "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
   24850     "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
   24851     "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
   24852     "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
   24853     "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
   24854     "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
   24855     "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
   24856     "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
   24857     "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
   24858     "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
   24859     "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
   24860     "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
   24861     "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
   24862     "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
   24863     "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
   24864     "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
   24865     "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
   24866     "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
   24867     "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
   24868     "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
   24869     "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
   24870     "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
   24871     "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
   24872     "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
   24873     "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
   24874     "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
   24875     "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
   24876     "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
   24877     "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
   24878     "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
   24879     "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
   24880     "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
   24881     "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
   24882     "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
   24883     "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
   24884     "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
   24885     "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
   24886     "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
   24887     "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
   24888     "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
   24889     "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
   24890     "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
   24891     "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
   24892     "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
   24893     "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
   24894     "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
   24895     "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
   24896     "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
   24897     "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
   24898     "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
   24899     "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
   24900     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   24901     "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
   24902     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
   24903     "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
   24904     "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
   24905     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
   24906     "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
   24907     "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
   24908     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
   24909     "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
   24910     "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
   24911     "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
   24912     "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
   24913     "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
   24914     "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
   24915     "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
   24916     "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
   24917     "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
   24918     "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
   24919     "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
   24920     "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
   24921     "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
   24922     "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
   24923     "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
   24924     "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
   24925     "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
   24926     "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
   24927     "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
   24928     "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
   24929     "lib/isc/netmgr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/netmgr/Makefile" ;;
   24930     "lib/isc/pthreads/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/Makefile" ;;
   24931     "lib/isc/pthreads/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/Makefile" ;;
   24932     "lib/isc/pthreads/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/isc/Makefile" ;;
   24933     "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
   24934     "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
   24935     "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
   24936     "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
   24937     "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
   24938     "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
   24939     "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
   24940     "lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;;
   24941     "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
   24942     "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
   24943     "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
   24944     "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
   24945     "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
   24946     "lib/ns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/Makefile" ;;
   24947     "lib/ns/include/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/ns/Makefile" ;;
   24948     "lib/ns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/tests/Makefile" ;;
   24949     "lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;;
   24950     "lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
   24951     "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
   24952     "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
   24953     "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
   24954     "util/check-make-install") CONFIG_FILES="$CONFIG_FILES util/check-make-install" ;;
   24955 
   24956   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   24957   esac
   24958 done
   24959 
   24960 
   24961 # If the user did not use the arguments to specify the items to instantiate,
   24962 # then the envvar interface is used.  Set only those that are not.
   24963 # We use the long form for the default assignment because of an extremely
   24964 # bizarre bug on SunOS 4.1.3.
   24965 if $ac_need_defaults; then
   24966   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   24967   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   24968   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   24969 fi
   24970 
   24971 # Have a temporary directory for convenience.  Make it in the build tree
   24972 # simply because there is no reason against having it here, and in addition,
   24973 # creating and moving files from /tmp can sometimes cause problems.
   24974 # Hook for its removal unless debugging.
   24975 # Note that there is a small window in which the directory will not be cleaned:
   24976 # after its creation but before its name has been assigned to `$tmp'.
   24977 $debug ||
   24978 {
   24979   tmp= ac_tmp=
   24980   trap 'exit_status=$?
   24981   : "${ac_tmp:=$tmp}"
   24982   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   24983 ' 0
   24984   trap 'as_fn_exit 1' 1 2 13 15
   24985 }
   24986 # Create a (secure) tmp directory for tmp files.
   24987 
   24988 {
   24989   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   24990   test -d "$tmp"
   24991 }  ||
   24992 {
   24993   tmp=./conf$$-$RANDOM
   24994   (umask 077 && mkdir "$tmp")
   24995 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   24996 ac_tmp=$tmp
   24997 
   24998 # Set up the scripts for CONFIG_FILES section.
   24999 # No need to generate them if there are no CONFIG_FILES.
   25000 # This happens for instance with `./config.status config.h'.
   25001 if test -n "$CONFIG_FILES"; then
   25002 
   25003 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   25004   ac_cs_awk_getline=:
   25005   ac_cs_awk_pipe_init=
   25006   ac_cs_awk_read_file='
   25007       while ((getline aline < (F[key])) > 0)
   25008 	print(aline)
   25009       close(F[key])'
   25010   ac_cs_awk_pipe_fini=
   25011 else
   25012   ac_cs_awk_getline=false
   25013   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   25014   ac_cs_awk_read_file='
   25015       print "|#_!!_#|"
   25016       print "cat " F[key] " &&"
   25017       '$ac_cs_awk_pipe_init
   25018   # The final `:' finishes the AND list.
   25019   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   25020 fi
   25021 ac_cr=`echo X | tr X '\015'`
   25022 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   25023 # But we know of no other shell where ac_cr would be empty at this
   25024 # point, so we can use a bashism as a fallback.
   25025 if test "x$ac_cr" = x; then
   25026   eval ac_cr=\$\'\\r\'
   25027 fi
   25028 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   25029 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   25030   ac_cs_awk_cr='\\r'
   25031 else
   25032   ac_cs_awk_cr=$ac_cr
   25033 fi
   25034 
   25035 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   25036 _ACEOF
   25037 
   25038 # Create commands to substitute file output variables.
   25039 {
   25040   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   25041   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   25042   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   25043   echo "_ACAWK" &&
   25044   echo "_ACEOF"
   25045 } >conf$$files.sh &&
   25046 . ./conf$$files.sh ||
   25047   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   25048 rm -f conf$$files.sh
   25049 
   25050 {
   25051   echo "cat >conf$$subs.awk <<_ACEOF" &&
   25052   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   25053   echo "_ACEOF"
   25054 } >conf$$subs.sh ||
   25055   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   25056 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   25057 ac_delim='%!_!# '
   25058 for ac_last_try in false false false false false :; do
   25059   . ./conf$$subs.sh ||
   25060     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   25061 
   25062   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   25063   if test $ac_delim_n = $ac_delim_num; then
   25064     break
   25065   elif $ac_last_try; then
   25066     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   25067   else
   25068     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   25069   fi
   25070 done
   25071 rm -f conf$$subs.sh
   25072 
   25073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25074 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   25075 _ACEOF
   25076 sed -n '
   25077 h
   25078 s/^/S["/; s/!.*/"]=/
   25079 p
   25080 g
   25081 s/^[^!]*!//
   25082 :repl
   25083 t repl
   25084 s/'"$ac_delim"'$//
   25085 t delim
   25086 :nl
   25087 h
   25088 s/\(.\{148\}\)..*/\1/
   25089 t more1
   25090 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   25091 p
   25092 n
   25093 b repl
   25094 :more1
   25095 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   25096 p
   25097 g
   25098 s/.\{148\}//
   25099 t nl
   25100 :delim
   25101 h
   25102 s/\(.\{148\}\)..*/\1/
   25103 t more2
   25104 s/["\\]/\\&/g; s/^/"/; s/$/"/
   25105 p
   25106 b
   25107 :more2
   25108 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   25109 p
   25110 g
   25111 s/.\{148\}//
   25112 t delim
   25113 ' <conf$$subs.awk | sed '
   25114 /^[^""]/{
   25115   N
   25116   s/\n//
   25117 }
   25118 ' >>$CONFIG_STATUS || ac_write_fail=1
   25119 rm -f conf$$subs.awk
   25120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25121 _ACAWK
   25122 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   25123   for (key in S) S_is_set[key] = 1
   25124   FS = ""
   25125   \$ac_cs_awk_pipe_init
   25126 }
   25127 {
   25128   line = $ 0
   25129   nfields = split(line, field, "@")
   25130   substed = 0
   25131   len = length(field[1])
   25132   for (i = 2; i < nfields; i++) {
   25133     key = field[i]
   25134     keylen = length(key)
   25135     if (S_is_set[key]) {
   25136       value = S[key]
   25137       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   25138       len += length(value) + length(field[++i])
   25139       substed = 1
   25140     } else
   25141       len += 1 + keylen
   25142   }
   25143   if (nfields == 3 && !substed) {
   25144     key = field[2]
   25145     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   25146       \$ac_cs_awk_read_file
   25147       next
   25148     }
   25149   }
   25150   print line
   25151 }
   25152 \$ac_cs_awk_pipe_fini
   25153 _ACAWK
   25154 _ACEOF
   25155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25156 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   25157   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   25158 else
   25159   cat
   25160 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   25161   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   25162 _ACEOF
   25163 
   25164 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   25165 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   25166 # trailing colons and then remove the whole line if VPATH becomes empty
   25167 # (actually we leave an empty line to preserve line numbers).
   25168 if test "x$srcdir" = x.; then
   25169   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   25170 h
   25171 s///
   25172 s/^/:/
   25173 s/[	 ]*$/:/
   25174 s/:\$(srcdir):/:/g
   25175 s/:\${srcdir}:/:/g
   25176 s/:@srcdir@:/:/g
   25177 s/^:*//
   25178 s/:*$//
   25179 x
   25180 s/\(=[	 ]*\).*/\1/
   25181 G
   25182 s/\n//
   25183 s/^[^=]*=[	 ]*$//
   25184 }'
   25185 fi
   25186 
   25187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25188 fi # test -n "$CONFIG_FILES"
   25189 
   25190 # Set up the scripts for CONFIG_HEADERS section.
   25191 # No need to generate them if there are no CONFIG_HEADERS.
   25192 # This happens for instance with `./config.status Makefile'.
   25193 if test -n "$CONFIG_HEADERS"; then
   25194 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   25195 BEGIN {
   25196 _ACEOF
   25197 
   25198 # Transform confdefs.h into an awk script `defines.awk', embedded as
   25199 # here-document in config.status, that substitutes the proper values into
   25200 # config.h.in to produce config.h.
   25201 
   25202 # Create a delimiter string that does not exist in confdefs.h, to ease
   25203 # handling of long lines.
   25204 ac_delim='%!_!# '
   25205 for ac_last_try in false false :; do
   25206   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   25207   if test -z "$ac_tt"; then
   25208     break
   25209   elif $ac_last_try; then
   25210     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   25211   else
   25212     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   25213   fi
   25214 done
   25215 
   25216 # For the awk script, D is an array of macro values keyed by name,
   25217 # likewise P contains macro parameters if any.  Preserve backslash
   25218 # newline sequences.
   25219 
   25220 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   25221 sed -n '
   25222 s/.\{148\}/&'"$ac_delim"'/g
   25223 t rset
   25224 :rset
   25225 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   25226 t def
   25227 d
   25228 :def
   25229 s/\\$//
   25230 t bsnl
   25231 s/["\\]/\\&/g
   25232 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   25233 D["\1"]=" \3"/p
   25234 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   25235 d
   25236 :bsnl
   25237 s/["\\]/\\&/g
   25238 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   25239 D["\1"]=" \3\\\\\\n"\\/p
   25240 t cont
   25241 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   25242 t cont
   25243 d
   25244 :cont
   25245 n
   25246 s/.\{148\}/&'"$ac_delim"'/g
   25247 t clear
   25248 :clear
   25249 s/\\$//
   25250 t bsnlc
   25251 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   25252 d
   25253 :bsnlc
   25254 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   25255 b cont
   25256 ' <confdefs.h | sed '
   25257 s/'"$ac_delim"'/"\\\
   25258 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   25259 
   25260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25261   for (key in D) D_is_set[key] = 1
   25262   FS = ""
   25263 }
   25264 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   25265   line = \$ 0
   25266   split(line, arg, " ")
   25267   if (arg[1] == "#") {
   25268     defundef = arg[2]
   25269     mac1 = arg[3]
   25270   } else {
   25271     defundef = substr(arg[1], 2)
   25272     mac1 = arg[2]
   25273   }
   25274   split(mac1, mac2, "(") #)
   25275   macro = mac2[1]
   25276   prefix = substr(line, 1, index(line, defundef) - 1)
   25277   if (D_is_set[macro]) {
   25278     # Preserve the white space surrounding the "#".
   25279     print prefix "define", macro P[macro] D[macro]
   25280     next
   25281   } else {
   25282     # Replace #undef with comments.  This is necessary, for example,
   25283     # in the case of _POSIX_SOURCE, which is predefined and required
   25284     # on some systems where configure will not decide to define it.
   25285     if (defundef == "undef") {
   25286       print "/*", prefix defundef, macro, "*/"
   25287       next
   25288     }
   25289   }
   25290 }
   25291 { print }
   25292 _ACAWK
   25293 _ACEOF
   25294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25295   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   25296 fi # test -n "$CONFIG_HEADERS"
   25297 
   25298 
   25299 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   25300 shift
   25301 for ac_tag
   25302 do
   25303   case $ac_tag in
   25304   :[FHLC]) ac_mode=$ac_tag; continue;;
   25305   esac
   25306   case $ac_mode$ac_tag in
   25307   :[FHL]*:*);;
   25308   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   25309   :[FH]-) ac_tag=-:-;;
   25310   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   25311   esac
   25312   ac_save_IFS=$IFS
   25313   IFS=:
   25314   set x $ac_tag
   25315   IFS=$ac_save_IFS
   25316   shift
   25317   ac_file=$1
   25318   shift
   25319 
   25320   case $ac_mode in
   25321   :L) ac_source=$1;;
   25322   :[FH])
   25323     ac_file_inputs=
   25324     for ac_f
   25325     do
   25326       case $ac_f in
   25327       -) ac_f="$ac_tmp/stdin";;
   25328       *) # Look for the file first in the build tree, then in the source tree
   25329 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   25330 	 # because $ac_f cannot contain `:'.
   25331 	 test -f "$ac_f" ||
   25332 	   case $ac_f in
   25333 	   [\\/$]*) false;;
   25334 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   25335 	   esac ||
   25336 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   25337       esac
   25338       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   25339       as_fn_append ac_file_inputs " '$ac_f'"
   25340     done
   25341 
   25342     # Let's still pretend it is `configure' which instantiates (i.e., don't
   25343     # use $as_me), people would be surprised to read:
   25344     #    /* config.h.  Generated by config.status.  */
   25345     configure_input='Generated from '`
   25346 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   25347 	`' by configure.'
   25348     if test x"$ac_file" != x-; then
   25349       configure_input="$ac_file.  $configure_input"
   25350       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   25351 $as_echo "$as_me: creating $ac_file" >&6;}
   25352     fi
   25353     # Neutralize special characters interpreted by sed in replacement strings.
   25354     case $configure_input in #(
   25355     *\&* | *\|* | *\\* )
   25356        ac_sed_conf_input=`$as_echo "$configure_input" |
   25357        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   25358     *) ac_sed_conf_input=$configure_input;;
   25359     esac
   25360 
   25361     case $ac_tag in
   25362     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   25363       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   25364     esac
   25365     ;;
   25366   esac
   25367 
   25368   ac_dir=`$as_dirname -- "$ac_file" ||
   25369 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   25370 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   25371 	 X"$ac_file" : 'X\(//\)$' \| \
   25372 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   25373 $as_echo X"$ac_file" |
   25374     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   25375 	    s//\1/
   25376 	    q
   25377 	  }
   25378 	  /^X\(\/\/\)[^/].*/{
   25379 	    s//\1/
   25380 	    q
   25381 	  }
   25382 	  /^X\(\/\/\)$/{
   25383 	    s//\1/
   25384 	    q
   25385 	  }
   25386 	  /^X\(\/\).*/{
   25387 	    s//\1/
   25388 	    q
   25389 	  }
   25390 	  s/.*/./; q'`
   25391   as_dir="$ac_dir"; as_fn_mkdir_p
   25392   ac_builddir=.
   25393 
   25394 case "$ac_dir" in
   25395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   25396 *)
   25397   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   25398   # A ".." for each directory in $ac_dir_suffix.
   25399   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   25400   case $ac_top_builddir_sub in
   25401   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   25402   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   25403   esac ;;
   25404 esac
   25405 ac_abs_top_builddir=$ac_pwd
   25406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   25407 # for backward compatibility:
   25408 ac_top_builddir=$ac_top_build_prefix
   25409 
   25410 case $srcdir in
   25411   .)  # We are building in place.
   25412     ac_srcdir=.
   25413     ac_top_srcdir=$ac_top_builddir_sub
   25414     ac_abs_top_srcdir=$ac_pwd ;;
   25415   [\\/]* | ?:[\\/]* )  # Absolute name.
   25416     ac_srcdir=$srcdir$ac_dir_suffix;
   25417     ac_top_srcdir=$srcdir
   25418     ac_abs_top_srcdir=$srcdir ;;
   25419   *) # Relative name.
   25420     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   25421     ac_top_srcdir=$ac_top_build_prefix$srcdir
   25422     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   25423 esac
   25424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   25425 
   25426 
   25427   case $ac_mode in
   25428   :F)
   25429   #
   25430   # CONFIG_FILE
   25431   #
   25432 
   25433   case $INSTALL in
   25434   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   25435   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   25436   esac
   25437   ac_MKDIR_P=$MKDIR_P
   25438   case $MKDIR_P in
   25439   [\\/$]* | ?:[\\/]* ) ;;
   25440   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   25441   esac
   25442 _ACEOF
   25443 
   25444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25445 # If the template does not know about datarootdir, expand it.
   25446 # FIXME: This hack should be removed a few years after 2.60.
   25447 ac_datarootdir_hack=; ac_datarootdir_seen=
   25448 ac_sed_dataroot='
   25449 /datarootdir/ {
   25450   p
   25451   q
   25452 }
   25453 /@datadir@/p
   25454 /@docdir@/p
   25455 /@infodir@/p
   25456 /@localedir@/p
   25457 /@mandir@/p'
   25458 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   25459 *datarootdir*) ac_datarootdir_seen=yes;;
   25460 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   25461   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   25462 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   25463 _ACEOF
   25464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25465   ac_datarootdir_hack='
   25466   s&@datadir@&$datadir&g
   25467   s&@docdir@&$docdir&g
   25468   s&@infodir@&$infodir&g
   25469   s&@localedir@&$localedir&g
   25470   s&@mandir@&$mandir&g
   25471   s&\\\${datarootdir}&$datarootdir&g' ;;
   25472 esac
   25473 _ACEOF
   25474 
   25475 # Neutralize VPATH when `$srcdir' = `.'.
   25476 # Shell code in configure.ac might set extrasub.
   25477 # FIXME: do we really want to maintain this feature?
   25478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25479 ac_sed_extra="$ac_vpsub
   25480 $extrasub
   25481 _ACEOF
   25482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25483 :t
   25484 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   25485 s|@configure_input@|$ac_sed_conf_input|;t t
   25486 s&@top_builddir@&$ac_top_builddir_sub&;t t
   25487 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   25488 s&@srcdir@&$ac_srcdir&;t t
   25489 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   25490 s&@top_srcdir@&$ac_top_srcdir&;t t
   25491 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   25492 s&@builddir@&$ac_builddir&;t t
   25493 s&@abs_builddir@&$ac_abs_builddir&;t t
   25494 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   25495 s&@INSTALL@&$ac_INSTALL&;t t
   25496 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   25497 $ac_datarootdir_hack
   25498 "
   25499 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   25500 if $ac_cs_awk_getline; then
   25501   $AWK -f "$ac_tmp/subs.awk"
   25502 else
   25503   $AWK -f "$ac_tmp/subs.awk" | $SHELL
   25504 fi \
   25505   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25506 
   25507 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   25508   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   25509   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   25510       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   25511   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   25512 which seems to be undefined.  Please make sure it is defined" >&5
   25513 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   25514 which seems to be undefined.  Please make sure it is defined" >&2;}
   25515 
   25516   rm -f "$ac_tmp/stdin"
   25517   case $ac_file in
   25518   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   25519   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   25520   esac \
   25521   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25522  ;;
   25523   :H)
   25524   #
   25525   # CONFIG_HEADER
   25526   #
   25527   if test x"$ac_file" != x-; then
   25528     {
   25529       $as_echo "/* $configure_input  */" \
   25530       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   25531     } >"$ac_tmp/config.h" \
   25532       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25533     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   25534       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   25535 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   25536     else
   25537       rm -f "$ac_file"
   25538       mv "$ac_tmp/config.h" "$ac_file" \
   25539 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25540     fi
   25541   else
   25542     $as_echo "/* $configure_input  */" \
   25543       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   25544       || as_fn_error $? "could not create -" "$LINENO" 5
   25545   fi
   25546  ;;
   25547 
   25548   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   25549 $as_echo "$as_me: executing $ac_file commands" >&6;}
   25550  ;;
   25551   esac
   25552 
   25553 
   25554   case $ac_file$ac_mode in
   25555     "libtool":C)
   25556 
   25557     # See if we are running on zsh, and set the options that allow our
   25558     # commands through without removal of \ escapes.
   25559     if test -n "${ZSH_VERSION+set}"; then
   25560       setopt NO_GLOB_SUBST
   25561     fi
   25562 
   25563     cfgfile=${ofile}T
   25564     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   25565     $RM "$cfgfile"
   25566 
   25567     cat <<_LT_EOF >> "$cfgfile"
   25568 #! $SHELL
   25569 # Generated automatically by $as_me ($PACKAGE) $VERSION
   25570 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   25571 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   25572 
   25573 # Provide generalized library-building support services.
   25574 # Written by Gordon Matzigkeit, 1996
   25575 
   25576 # Copyright (C) 2014 Free Software Foundation, Inc.
   25577 # This is free software; see the source for copying conditions.  There is NO
   25578 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   25579 
   25580 # GNU Libtool is free software; you can redistribute it and/or modify
   25581 # it under the terms of the GNU General Public License as published by
   25582 # the Free Software Foundation; either version 2 of of the License, or
   25583 # (at your option) any later version.
   25584 #
   25585 # As a special exception to the GNU General Public License, if you
   25586 # distribute this file as part of a program or library that is built
   25587 # using GNU Libtool, you may include this file under the  same
   25588 # distribution terms that you use for the rest of that program.
   25589 #
   25590 # GNU Libtool is distributed in the hope that it will be useful, but
   25591 # WITHOUT ANY WARRANTY; without even the implied warranty of
   25592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   25593 # GNU General Public License for more details.
   25594 #
   25595 # You should have received a copy of the GNU General Public License
   25596 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   25597 
   25598 
   25599 # The names of the tagged configurations supported by this script.
   25600 available_tags=''
   25601 
   25602 # Configured defaults for sys_lib_dlsearch_path munging.
   25603 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   25604 
   25605 # ### BEGIN LIBTOOL CONFIG
   25606 
   25607 # Which release of libtool.m4 was used?
   25608 macro_version=$macro_version
   25609 macro_revision=$macro_revision
   25610 
   25611 # Whether or not to build shared libraries.
   25612 build_libtool_libs=$enable_shared
   25613 
   25614 # Whether or not to build static libraries.
   25615 build_old_libs=$enable_static
   25616 
   25617 # What type of objects to build.
   25618 pic_mode=$pic_mode
   25619 
   25620 # Whether or not to optimize for fast installation.
   25621 fast_install=$enable_fast_install
   25622 
   25623 # Shared archive member basename,for filename based shared library versioning on AIX.
   25624 shared_archive_member_spec=$shared_archive_member_spec
   25625 
   25626 # Shell to use when invoking shell scripts.
   25627 SHELL=$lt_SHELL
   25628 
   25629 # An echo program that protects backslashes.
   25630 ECHO=$lt_ECHO
   25631 
   25632 # The PATH separator for the build system.
   25633 PATH_SEPARATOR=$lt_PATH_SEPARATOR
   25634 
   25635 # The host system.
   25636 host_alias=$host_alias
   25637 host=$host
   25638 host_os=$host_os
   25639 
   25640 # The build system.
   25641 build_alias=$build_alias
   25642 build=$build
   25643 build_os=$build_os
   25644 
   25645 # A sed program that does not truncate output.
   25646 SED=$lt_SED
   25647 
   25648 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   25649 Xsed="\$SED -e 1s/^X//"
   25650 
   25651 # A grep program that handles long lines.
   25652 GREP=$lt_GREP
   25653 
   25654 # An ERE matcher.
   25655 EGREP=$lt_EGREP
   25656 
   25657 # A literal string matcher.
   25658 FGREP=$lt_FGREP
   25659 
   25660 # A BSD- or MS-compatible name lister.
   25661 NM=$lt_NM
   25662 
   25663 # Whether we need soft or hard links.
   25664 LN_S=$lt_LN_S
   25665 
   25666 # What is the maximum length of a command?
   25667 max_cmd_len=$max_cmd_len
   25668 
   25669 # Object file suffix (normally "o").
   25670 objext=$ac_objext
   25671 
   25672 # Executable file suffix (normally "").
   25673 exeext=$exeext
   25674 
   25675 # whether the shell understands "unset".
   25676 lt_unset=$lt_unset
   25677 
   25678 # turn spaces into newlines.
   25679 SP2NL=$lt_lt_SP2NL
   25680 
   25681 # turn newlines into spaces.
   25682 NL2SP=$lt_lt_NL2SP
   25683 
   25684 # convert \$build file names to \$host format.
   25685 to_host_file_cmd=$lt_cv_to_host_file_cmd
   25686 
   25687 # convert \$build files to toolchain format.
   25688 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   25689 
   25690 # An object symbol dumper.
   25691 OBJDUMP=$lt_OBJDUMP
   25692 
   25693 # Method to check whether dependent libraries are shared objects.
   25694 deplibs_check_method=$lt_deplibs_check_method
   25695 
   25696 # Command to use when deplibs_check_method = "file_magic".
   25697 file_magic_cmd=$lt_file_magic_cmd
   25698 
   25699 # How to find potential files when deplibs_check_method = "file_magic".
   25700 file_magic_glob=$lt_file_magic_glob
   25701 
   25702 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   25703 want_nocaseglob=$lt_want_nocaseglob
   25704 
   25705 # DLL creation program.
   25706 DLLTOOL=$lt_DLLTOOL
   25707 
   25708 # Command to associate shared and link libraries.
   25709 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   25710 
   25711 # The archiver.
   25712 AR=$lt_AR
   25713 
   25714 # Flags to create an archive.
   25715 AR_FLAGS=$lt_AR_FLAGS
   25716 
   25717 # How to feed a file listing to the archiver.
   25718 archiver_list_spec=$lt_archiver_list_spec
   25719 
   25720 # A symbol stripping program.
   25721 STRIP=$lt_STRIP
   25722 
   25723 # Commands used to install an old-style archive.
   25724 RANLIB=$lt_RANLIB
   25725 old_postinstall_cmds=$lt_old_postinstall_cmds
   25726 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   25727 
   25728 # Whether to use a lock for old archive extraction.
   25729 lock_old_archive_extraction=$lock_old_archive_extraction
   25730 
   25731 # A C compiler.
   25732 LTCC=$lt_CC
   25733 
   25734 # LTCC compiler flags.
   25735 LTCFLAGS=$lt_CFLAGS
   25736 
   25737 # Take the output of nm and produce a listing of raw symbols and C names.
   25738 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   25739 
   25740 # Transform the output of nm in a proper C declaration.
   25741 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   25742 
   25743 # Transform the output of nm into a list of symbols to manually relocate.
   25744 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   25745 
   25746 # Transform the output of nm in a C name address pair.
   25747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   25748 
   25749 # Transform the output of nm in a C name address pair when lib prefix is needed.
   25750 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   25751 
   25752 # The name lister interface.
   25753 nm_interface=$lt_lt_cv_nm_interface
   25754 
   25755 # Specify filename containing input files for \$NM.
   25756 nm_file_list_spec=$lt_nm_file_list_spec
   25757 
   25758 # The root where to search for dependent libraries,and where our libraries should be installed.
   25759 lt_sysroot=$lt_sysroot
   25760 
   25761 # Command to truncate a binary pipe.
   25762 lt_truncate_bin=$lt_lt_cv_truncate_bin
   25763 
   25764 # The name of the directory that contains temporary libtool files.
   25765 objdir=$objdir
   25766 
   25767 # Used to examine libraries when file_magic_cmd begins with "file".
   25768 MAGIC_CMD=$MAGIC_CMD
   25769 
   25770 # Must we lock files when doing compilation?
   25771 need_locks=$lt_need_locks
   25772 
   25773 # Manifest tool.
   25774 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   25775 
   25776 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   25777 DSYMUTIL=$lt_DSYMUTIL
   25778 
   25779 # Tool to change global to local symbols on Mac OS X.
   25780 NMEDIT=$lt_NMEDIT
   25781 
   25782 # Tool to manipulate fat objects and archives on Mac OS X.
   25783 LIPO=$lt_LIPO
   25784 
   25785 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   25786 OTOOL=$lt_OTOOL
   25787 
   25788 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   25789 OTOOL64=$lt_OTOOL64
   25790 
   25791 # Old archive suffix (normally "a").
   25792 libext=$libext
   25793 
   25794 # Shared library suffix (normally ".so").
   25795 shrext_cmds=$lt_shrext_cmds
   25796 
   25797 # The commands to extract the exported symbol list from a shared archive.
   25798 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   25799 
   25800 # Variables whose values should be saved in libtool wrapper scripts and
   25801 # restored at link time.
   25802 variables_saved_for_relink=$lt_variables_saved_for_relink
   25803 
   25804 # Do we need the "lib" prefix for modules?
   25805 need_lib_prefix=$need_lib_prefix
   25806 
   25807 # Do we need a version for libraries?
   25808 need_version=$need_version
   25809 
   25810 # Library versioning type.
   25811 version_type=$version_type
   25812 
   25813 # Shared library runtime path variable.
   25814 runpath_var=$runpath_var
   25815 
   25816 # Shared library path variable.
   25817 shlibpath_var=$shlibpath_var
   25818 
   25819 # Is shlibpath searched before the hard-coded library search path?
   25820 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   25821 
   25822 # Format of library name prefix.
   25823 libname_spec=$lt_libname_spec
   25824 
   25825 # List of archive names.  First name is the real one, the rest are links.
   25826 # The last name is the one that the linker finds with -lNAME
   25827 library_names_spec=$lt_library_names_spec
   25828 
   25829 # The coded name of the library, if different from the real name.
   25830 soname_spec=$lt_soname_spec
   25831 
   25832 # Permission mode override for installation of shared libraries.
   25833 install_override_mode=$lt_install_override_mode
   25834 
   25835 # Command to use after installation of a shared archive.
   25836 postinstall_cmds=$lt_postinstall_cmds
   25837 
   25838 # Command to use after uninstallation of a shared archive.
   25839 postuninstall_cmds=$lt_postuninstall_cmds
   25840 
   25841 # Commands used to finish a libtool library installation in a directory.
   25842 finish_cmds=$lt_finish_cmds
   25843 
   25844 # As "finish_cmds", except a single script fragment to be evaled but
   25845 # not shown.
   25846 finish_eval=$lt_finish_eval
   25847 
   25848 # Whether we should hardcode library paths into libraries.
   25849 hardcode_into_libs=$hardcode_into_libs
   25850 
   25851 # Compile-time system search path for libraries.
   25852 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   25853 
   25854 # Detected run-time system search path for libraries.
   25855 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   25856 
   25857 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   25858 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   25859 
   25860 # Whether dlopen is supported.
   25861 dlopen_support=$enable_dlopen
   25862 
   25863 # Whether dlopen of programs is supported.
   25864 dlopen_self=$enable_dlopen_self
   25865 
   25866 # Whether dlopen of statically linked programs is supported.
   25867 dlopen_self_static=$enable_dlopen_self_static
   25868 
   25869 # Commands to strip libraries.
   25870 old_striplib=$lt_old_striplib
   25871 striplib=$lt_striplib
   25872 
   25873 
   25874 # The linker used to build libraries.
   25875 LD=$lt_LD
   25876 
   25877 # How to create reloadable object files.
   25878 reload_flag=$lt_reload_flag
   25879 reload_cmds=$lt_reload_cmds
   25880 
   25881 # Commands used to build an old-style archive.
   25882 old_archive_cmds=$lt_old_archive_cmds
   25883 
   25884 # A language specific compiler.
   25885 CC=$lt_compiler
   25886 
   25887 # Is the compiler the GNU compiler?
   25888 with_gcc=$GCC
   25889 
   25890 # Compiler flag to turn off builtin functions.
   25891 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   25892 
   25893 # Additional compiler flags for building library objects.
   25894 pic_flag=$lt_lt_prog_compiler_pic
   25895 
   25896 # How to pass a linker flag through the compiler.
   25897 wl=$lt_lt_prog_compiler_wl
   25898 
   25899 # Compiler flag to prevent dynamic linking.
   25900 link_static_flag=$lt_lt_prog_compiler_static
   25901 
   25902 # Does compiler simultaneously support -c and -o options?
   25903 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   25904 
   25905 # Whether or not to add -lc for building shared libraries.
   25906 build_libtool_need_lc=$archive_cmds_need_lc
   25907 
   25908 # Whether or not to disallow shared libs when runtime libs are static.
   25909 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   25910 
   25911 # Compiler flag to allow reflexive dlopens.
   25912 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   25913 
   25914 # Compiler flag to generate shared objects directly from archives.
   25915 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   25916 
   25917 # Whether the compiler copes with passing no objects directly.
   25918 compiler_needs_object=$lt_compiler_needs_object
   25919 
   25920 # Create an old-style archive from a shared archive.
   25921 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   25922 
   25923 # Create a temporary old-style archive to link instead of a shared archive.
   25924 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   25925 
   25926 # Commands used to build a shared archive.
   25927 archive_cmds=$lt_archive_cmds
   25928 archive_expsym_cmds=$lt_archive_expsym_cmds
   25929 
   25930 # Commands used to build a loadable module if different from building
   25931 # a shared archive.
   25932 module_cmds=$lt_module_cmds
   25933 module_expsym_cmds=$lt_module_expsym_cmds
   25934 
   25935 # Whether we are building with GNU ld or not.
   25936 with_gnu_ld=$lt_with_gnu_ld
   25937 
   25938 # Flag that allows shared libraries with undefined symbols to be built.
   25939 allow_undefined_flag=$lt_allow_undefined_flag
   25940 
   25941 # Flag that enforces no undefined symbols.
   25942 no_undefined_flag=$lt_no_undefined_flag
   25943 
   25944 # Flag to hardcode \$libdir into a binary during linking.
   25945 # This must work even if \$libdir does not exist
   25946 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   25947 
   25948 # Whether we need a single "-rpath" flag with a separated argument.
   25949 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   25950 
   25951 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   25952 # DIR into the resulting binary.
   25953 hardcode_direct=$hardcode_direct
   25954 
   25955 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   25956 # DIR into the resulting binary and the resulting library dependency is
   25957 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
   25958 # library is relocated.
   25959 hardcode_direct_absolute=$hardcode_direct_absolute
   25960 
   25961 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   25962 # into the resulting binary.
   25963 hardcode_minus_L=$hardcode_minus_L
   25964 
   25965 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   25966 # into the resulting binary.
   25967 hardcode_shlibpath_var=$hardcode_shlibpath_var
   25968 
   25969 # Set to "yes" if building a shared library automatically hardcodes DIR
   25970 # into the library and all subsequent libraries and executables linked
   25971 # against it.
   25972 hardcode_automatic=$hardcode_automatic
   25973 
   25974 # Set to yes if linker adds runtime paths of dependent libraries
   25975 # to runtime path list.
   25976 inherit_rpath=$inherit_rpath
   25977 
   25978 # Whether libtool must link a program against all its dependency libraries.
   25979 link_all_deplibs=$link_all_deplibs
   25980 
   25981 # Set to "yes" if exported symbols are required.
   25982 always_export_symbols=$always_export_symbols
   25983 
   25984 # The commands to list exported symbols.
   25985 export_symbols_cmds=$lt_export_symbols_cmds
   25986 
   25987 # Symbols that should not be listed in the preloaded symbols.
   25988 exclude_expsyms=$lt_exclude_expsyms
   25989 
   25990 # Symbols that must always be exported.
   25991 include_expsyms=$lt_include_expsyms
   25992 
   25993 # Commands necessary for linking programs (against libraries) with templates.
   25994 prelink_cmds=$lt_prelink_cmds
   25995 
   25996 # Commands necessary for finishing linking programs.
   25997 postlink_cmds=$lt_postlink_cmds
   25998 
   25999 # Specify filename containing input files.
   26000 file_list_spec=$lt_file_list_spec
   26001 
   26002 # How to hardcode a shared library path into an executable.
   26003 hardcode_action=$hardcode_action
   26004 
   26005 # ### END LIBTOOL CONFIG
   26006 
   26007 _LT_EOF
   26008 
   26009     cat <<'_LT_EOF' >> "$cfgfile"
   26010 
   26011 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   26012 
   26013 # func_munge_path_list VARIABLE PATH
   26014 # -----------------------------------
   26015 # VARIABLE is name of variable containing _space_ separated list of
   26016 # directories to be munged by the contents of PATH, which is string
   26017 # having a format:
   26018 # "DIR[:DIR]:"
   26019 #       string "DIR[ DIR]" will be prepended to VARIABLE
   26020 # ":DIR[:DIR]"
   26021 #       string "DIR[ DIR]" will be appended to VARIABLE
   26022 # "DIRP[:DIRP]::[DIRA:]DIRA"
   26023 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   26024 #       "DIRA[ DIRA]" will be appended to VARIABLE
   26025 # "DIR[:DIR]"
   26026 #       VARIABLE will be replaced by "DIR[ DIR]"
   26027 func_munge_path_list ()
   26028 {
   26029     case x$2 in
   26030     x)
   26031         ;;
   26032     *:)
   26033         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   26034         ;;
   26035     x:*)
   26036         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   26037         ;;
   26038     *::*)
   26039         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   26040         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   26041         ;;
   26042     *)
   26043         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   26044         ;;
   26045     esac
   26046 }
   26047 
   26048 
   26049 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   26050 func_cc_basename ()
   26051 {
   26052     for cc_temp in $*""; do
   26053       case $cc_temp in
   26054         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   26055         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   26056         \-*) ;;
   26057         *) break;;
   26058       esac
   26059     done
   26060     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   26061 }
   26062 
   26063 
   26064 # ### END FUNCTIONS SHARED WITH CONFIGURE
   26065 
   26066 _LT_EOF
   26067 
   26068   case $host_os in
   26069   aix3*)
   26070     cat <<\_LT_EOF >> "$cfgfile"
   26071 # AIX sometimes has problems with the GCC collect2 program.  For some
   26072 # reason, if we set the COLLECT_NAMES environment variable, the problems
   26073 # vanish in a puff of smoke.
   26074 if test set != "${COLLECT_NAMES+set}"; then
   26075   COLLECT_NAMES=
   26076   export COLLECT_NAMES
   26077 fi
   26078 _LT_EOF
   26079     ;;
   26080   esac
   26081 
   26082 
   26083 ltmain=$ac_aux_dir/ltmain.sh
   26084 
   26085 
   26086   # We use sed instead of cat because bash on DJGPP gets confused if
   26087   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   26088   # text mode, it properly converts lines to CR/LF.  This bash problem
   26089   # is reportedly fixed, but why not run on old versions too?
   26090   sed '$q' "$ltmain" >> "$cfgfile" \
   26091      || (rm -f "$cfgfile"; exit 1)
   26092 
   26093    mv -f "$cfgfile" "$ofile" ||
   26094     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   26095   chmod +x "$ofile"
   26096 
   26097  ;;
   26098     "chmod":C) chmod a+x doc/doxygen/doxygen-input-filter ;;
   26099 
   26100   esac
   26101 done # for ac_tag
   26102 
   26103 
   26104 as_fn_exit 0
   26105 _ACEOF
   26106 ac_clean_files=$ac_clean_files_save
   26107 
   26108 test $ac_write_fail = 0 ||
   26109   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   26110 
   26111 
   26112 # configure is writing to config.log, and then calls config.status.
   26113 # config.status does its own redirection, appending to config.log.
   26114 # Unfortunately, on DOS this fails, as config.log is still kept open
   26115 # by configure, so config.status won't be able to write to it; its
   26116 # output is simply discarded.  So we exec the FD to /dev/null,
   26117 # effectively closing config.log, so it can be properly (re)opened and
   26118 # appended to by config.status.  When coming back to configure, we
   26119 # need to make the FD available again.
   26120 if test "$no_create" != yes; then
   26121   ac_cs_success=:
   26122   ac_config_status_args=
   26123   test "$silent" = yes &&
   26124     ac_config_status_args="$ac_config_status_args --quiet"
   26125   exec 5>/dev/null
   26126   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   26127   exec 5>>config.log
   26128   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   26129   # would make configure fail if this is the last instruction.
   26130   $ac_cs_success || as_fn_exit 1
   26131 fi
   26132 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   26133   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   26134 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   26135 fi
   26136 
   26137 
   26138 #
   26139 # Now that the Makefiles exist we can ensure that everything is rebuilt.
   26140 #
   26141 
   26142 # Check whether --with-make-clean was given.
   26143 if test "${with_make_clean+set}" = set; then :
   26144   withval=$with_make_clean; make_clean="$withval"
   26145 else
   26146   make_clean="yes"
   26147 fi
   26148 
   26149 case "$make_clean" in
   26150 yes)
   26151 	if test "yes" != "$no_create"
   26152 	then
   26153 		if test "yes" = "$silent"
   26154 		then
   26155 			make clean > /dev/null
   26156 		else
   26157 			make clean
   26158 		fi
   26159 	fi
   26160 	;;
   26161 esac
   26162 
   26163 # Check whether --enable-full-report was given.
   26164 if test "${enable_full_report+set}" = set; then :
   26165   enableval=$enable_full_report;
   26166 fi
   26167 
   26168 
   26169 report() {
   26170     echo "==============================================================================="
   26171     echo "Configuration summary:"
   26172     echo "-------------------------------------------------------------------------------"
   26173     echo "Optional features enabled:"
   26174     if test "yes" = "$enable_full_report" -o "standard" = "$with_locktype"; then
   26175 	echo "    Mutex lock type: $with_locktype"
   26176     fi
   26177     test "small" = "$with_tuning" && echo "    Small-system tuning (--with-tuning)"
   26178     test "no" = "$use_dnstap" || \
   26179 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   26180     test -z "$MAXMINDDB_LIBS" || echo "    GeoIP2 access control (--enable-geoip)"
   26181     test "no" = "$use_gssapi" || echo "    GSS-API (--with-gssapi)"
   26182 
   26183     # these lines are only printed if run with --enable-full-report
   26184     if test "yes" = "$enable_full_report"; then
   26185 	test "no" = "$found_ipv6" || echo "    IPv6 support (--enable-ipv6)"
   26186 	test "X$PYTHON" = "X" || echo "    Python tools (--with-python)"
   26187 	test "X$LIBXML2_LIBS" = "X" || echo "    XML statistics (--with-libxml2)"
   26188 	test "X$JSON_C_LIBS" = "X" || echo "    JSON statistics (--with-json-c): $JSON_C_CFLAGS $JSON_C_LIBS"
   26189 	test "X$ZLIB_LIBS" = "X" || echo "    HTTP zlib compression (--with-zlib)"
   26190 	test "X$NZD_TOOLS" = "X" || echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   26191 	test "no" = "$with_libidn2" || echo "    IDN support (--with-libidn2)"
   26192     fi
   26193 
   26194     test "yes" = "$enable_dnsrps" && \
   26195 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   26196     test "yes" = "$enable_fixed" && \
   26197 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   26198     test "yes" = "$enable_backtrace" && \
   26199 	echo "    Print backtrace on crash (--enable-backtrace)"
   26200     test "minimal" = "$want_symtable" && \
   26201 	echo "    Use symbol table for backtrace, named only (--enable-symtable)"
   26202     test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
   26203 	echo "    Use symbol table for backtrace, all binaries (--enable-symtable=all)"
   26204     test "no" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   26205     test "yes" = "$want_querytrace" && \
   26206 	echo "    Very verbose query trace logging (--enable-querytrace)"
   26207     test "no" = "$with_cmocka" || echo "    CMocka Unit Testing Framework (--with-cmocka)"
   26208 
   26209     test "auto" = "$validation_default" && echo "    DNSSEC validation active by default (--enable-auto-validation)"
   26210 
   26211     test "$CRYPTO" = "pkcs11" && (
   26212 	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
   26213 	echo "    PKCS#11 module (--with-pkcs11): $with_pkcs11"
   26214     )
   26215 
   26216     echo "    Dynamically loadable zone (DLZ) drivers:"
   26217     test "no" = "$use_dlz_bdb" || \
   26218 	echo "        Berkeley DB (--with-dlz-bdb)"
   26219     test "no" = "$use_dlz_ldap" || \
   26220 	echo "        LDAP (--with-dlz-ldap)"
   26221     test "no" = "$use_dlz_mysql" || \
   26222 	echo "        MySQL (--with-dlz-mysql)"
   26223     test "no" = "$use_dlz_odbc" || \
   26224 	echo "        ODBC (--with-dlz-odbc)"
   26225     test "no" = "$use_dlz_postgres" || \
   26226 	echo "        Postgres (--with-dlz-postgres)"
   26227     test "no" = "$use_dlz_filesystem" || \
   26228 	echo "        Filesystem (--with-dlz-filesystem)"
   26229     test "no" = "$use_dlz_stub" || \
   26230 	echo "        Stub (--with-dlz-stub)"
   26231     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"
   26232 
   26233     echo "-------------------------------------------------------------------------------"
   26234 
   26235     echo "Features disabled or unavailable on this platform:"
   26236     test "no" = "$found_ipv6" && echo "    IPv6 support (--enable-ipv6)"
   26237     test "small" = "$with_tuning" || echo "    Small-system tuning (--with-tuning)"
   26238 
   26239     test "no" = "$use_dnstap" && \
   26240 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   26241     test -z "$MAXMINDDB_LIBS" && echo "    GeoIP2 access control (--enable-geoip)"
   26242     test "no" = "$use_gssapi" && echo "    GSS-API (--with-gssapi)"
   26243 
   26244     test "no" = "$enable_dnsrps" && \
   26245 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   26246 
   26247     test "yes" = "$enable_fixed" || \
   26248 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   26249 
   26250     test "yes" = "$validation_default" && echo "    DNSSEC validation requires configuration (--enablee-auto-validation)"
   26251 
   26252     test "$CRYPTO" = "pkcs11" || (
   26253 	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
   26254     )
   26255 
   26256     test "yes" = "$enable_backtrace" || \
   26257 	echo "    Print backtrace on crash (--enable-backtrace)"
   26258     test "yes" = "$want_querytrace" || \
   26259 	echo "    Very verbose query trace logging (--enable-querytrace)"
   26260 
   26261     test "yes" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   26262     test "no" = "$with_cmocka" && echo "    CMocka Unit Testing Framework (--with-cmocka)"
   26263 
   26264     test "X$PYTHON" = "X" && echo "    Python tools (--with-python)"
   26265     test "X$LIBXML2_LIBS" = "X" && echo "    XML statistics (--with-libxml2)"
   26266     test "X$JSON_C_LIBS" = "X" && echo "    JSON statistics (--with-json-c)"
   26267     test "X$ZLIB_LIBS" = "X" && echo "    HTTP zlib compression (--with-zlib)"
   26268     test "X$NZD_TOOLS" = "X" && echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   26269     test "no" = "$with_libidn2" && echo "    IDN support (--with-libidn2)"
   26270 
   26271     echo "-------------------------------------------------------------------------------"
   26272     echo "Configured paths:"
   26273     echo "    prefix: $prefix"
   26274     echo "    sysconfdir: $sysconfdir"
   26275     echo "    localstatedir: $localstatedir"
   26276     echo "-------------------------------------------------------------------------------"
   26277     echo "Compiler: $CC"
   26278     $CC --version 2>&1 | sed 's/^/    /'
   26279 
   26280     if test "X$ac_unrecognized_opts" != "X"; then
   26281 	echo "Unrecognized options:"
   26282 	echo "    $ac_unrecognized_opts"
   26283     fi
   26284 
   26285     if test "yes" != "$enable_full_report"; then
   26286 	echo "-------------------------------------------------------------------------------"
   26287 	echo "For more detail, use --enable-full-report."
   26288     fi
   26289     echo "==============================================================================="
   26290 }
   26291 
   26292 if test "yes" != "$silent"; then
   26293 	report
   26294 fi
   26295 
   26296 # Tell Emacs to edit this file in shell mode.
   26297 # Local Variables:
   26298 # mode: sh
   26299 # End:
   26300