Home | History | Annotate | Line # | Download | only in libevent
configure revision 1.1.1.2.10.2
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.68 for libevent 2.1.3-alpha-dev.
      4 #
      5 #
      6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
      8 # 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 if test "x$CONFIG_SHELL" = x; then
    138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    139   emulate sh
    140   NULLCMD=:
    141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    142   # is contrary to our usage.  Disable this feature.
    143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    144   setopt NO_GLOB_SUBST
    145 else
    146   case \`(set -o) 2>/dev/null\` in #(
    147   *posix*) :
    148     set -o posix ;; #(
    149   *) :
    150      ;;
    151 esac
    152 fi
    153 "
    154   as_required="as_fn_return () { (exit \$1); }
    155 as_fn_success () { as_fn_return 0; }
    156 as_fn_failure () { as_fn_return 1; }
    157 as_fn_ret_success () { return 0; }
    158 as_fn_ret_failure () { return 1; }
    159 
    160 exitcode=0
    161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    166 
    167 else
    168   exitcode=1; echo positional parameters were not saved.
    169 fi
    170 test x\$exitcode = x0 || exit 1"
    171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    175 test \$(( 1 + 1 )) = 2 || exit 1
    176 
    177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    181     PATH=/empty FPATH=/empty; export PATH FPATH
    182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
    183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
    184   if (eval "$as_required") 2>/dev/null; then :
    185   as_have_required=yes
    186 else
    187   as_have_required=no
    188 fi
    189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    190 
    191 else
    192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    193 as_found=false
    194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    195 do
    196   IFS=$as_save_IFS
    197   test -z "$as_dir" && as_dir=.
    198   as_found=:
    199   case $as_dir in #(
    200 	 /*)
    201 	   for as_base in sh bash ksh sh5; do
    202 	     # Try only shells that exist, to save several forks.
    203 	     as_shell=$as_dir/$as_base
    204 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    205 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    206   CONFIG_SHELL=$as_shell as_have_required=yes
    207 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    208   break 2
    209 fi
    210 fi
    211 	   done;;
    212        esac
    213   as_found=false
    214 done
    215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    216 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    217   CONFIG_SHELL=$SHELL as_have_required=yes
    218 fi; }
    219 IFS=$as_save_IFS
    220 
    221 
    222       if test "x$CONFIG_SHELL" != x; then :
    223   # We cannot yet assume a decent shell, so we have to provide a
    224 	# neutralization value for shells without unset; and this also
    225 	# works around shells that cannot unset nonexistent variables.
    226 	# Preserve -v and -x to the replacement shell.
    227 	BASH_ENV=/dev/null
    228 	ENV=/dev/null
    229 	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    230 	export CONFIG_SHELL
    231 	case $- in # ((((
    232 	  *v*x* | *x*v* ) as_opts=-vx ;;
    233 	  *v* ) as_opts=-v ;;
    234 	  *x* ) as_opts=-x ;;
    235 	  * ) as_opts= ;;
    236 	esac
    237 	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
    238 fi
    239 
    240     if test x$as_have_required = xno; then :
    241   $as_echo "$0: This script requires a shell more modern than all"
    242   $as_echo "$0: the shells that I found on your system."
    243   if test x${ZSH_VERSION+set} = xset ; then
    244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    246   else
    247     $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
    248 $0: including any error possibly output before this
    249 $0: message. Then install a modern shell, or manually run
    250 $0: the script under such a shell if you do have one."
    251   fi
    252   exit 1
    253 fi
    254 fi
    255 fi
    256 SHELL=${CONFIG_SHELL-/bin/sh}
    257 export SHELL
    258 # Unset more variables known to interfere with behavior of common tools.
    259 CLICOLOR_FORCE= GREP_OPTIONS=
    260 unset CLICOLOR_FORCE GREP_OPTIONS
    261 
    262 ## --------------------- ##
    263 ## M4sh Shell Functions. ##
    264 ## --------------------- ##
    265 # as_fn_unset VAR
    266 # ---------------
    267 # Portably unset VAR.
    268 as_fn_unset ()
    269 {
    270   { eval $1=; unset $1;}
    271 }
    272 as_unset=as_fn_unset
    273 
    274 # as_fn_set_status STATUS
    275 # -----------------------
    276 # Set $? to STATUS, without forking.
    277 as_fn_set_status ()
    278 {
    279   return $1
    280 } # as_fn_set_status
    281 
    282 # as_fn_exit STATUS
    283 # -----------------
    284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    285 as_fn_exit ()
    286 {
    287   set +e
    288   as_fn_set_status $1
    289   exit $1
    290 } # as_fn_exit
    291 
    292 # as_fn_mkdir_p
    293 # -------------
    294 # Create "$as_dir" as a directory, including parents if necessary.
    295 as_fn_mkdir_p ()
    296 {
    297 
    298   case $as_dir in #(
    299   -*) as_dir=./$as_dir;;
    300   esac
    301   test -d "$as_dir" || eval $as_mkdir_p || {
    302     as_dirs=
    303     while :; do
    304       case $as_dir in #(
    305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    306       *) as_qdir=$as_dir;;
    307       esac
    308       as_dirs="'$as_qdir' $as_dirs"
    309       as_dir=`$as_dirname -- "$as_dir" ||
    310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    311 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    312 	 X"$as_dir" : 'X\(//\)$' \| \
    313 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    314 $as_echo X"$as_dir" |
    315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    316 	    s//\1/
    317 	    q
    318 	  }
    319 	  /^X\(\/\/\)[^/].*/{
    320 	    s//\1/
    321 	    q
    322 	  }
    323 	  /^X\(\/\/\)$/{
    324 	    s//\1/
    325 	    q
    326 	  }
    327 	  /^X\(\/\).*/{
    328 	    s//\1/
    329 	    q
    330 	  }
    331 	  s/.*/./; q'`
    332       test -d "$as_dir" && break
    333     done
    334     test -z "$as_dirs" || eval "mkdir $as_dirs"
    335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    336 
    337 
    338 } # as_fn_mkdir_p
    339 # as_fn_append VAR VALUE
    340 # ----------------------
    341 # Append the text in VALUE to the end of the definition contained in VAR. Take
    342 # advantage of any shell optimizations that allow amortized linear growth over
    343 # repeated appends, instead of the typical quadratic growth present in naive
    344 # implementations.
    345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    346   eval 'as_fn_append ()
    347   {
    348     eval $1+=\$2
    349   }'
    350 else
    351   as_fn_append ()
    352   {
    353     eval $1=\$$1\$2
    354   }
    355 fi # as_fn_append
    356 
    357 # as_fn_arith ARG...
    358 # ------------------
    359 # Perform arithmetic evaluation on the ARGs, and store the result in the
    360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    361 # must be portable across $(()) and expr.
    362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    363   eval 'as_fn_arith ()
    364   {
    365     as_val=$(( $* ))
    366   }'
    367 else
    368   as_fn_arith ()
    369   {
    370     as_val=`expr "$@" || test $? -eq 1`
    371   }
    372 fi # as_fn_arith
    373 
    374 
    375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    376 # ----------------------------------------
    377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    379 # script with STATUS, using 1 if that was 0.
    380 as_fn_error ()
    381 {
    382   as_status=$1; test $as_status -eq 0 && as_status=1
    383   if test "$4"; then
    384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    386   fi
    387   $as_echo "$as_me: error: $2" >&2
    388   as_fn_exit $as_status
    389 } # as_fn_error
    390 
    391 if expr a : '\(a\)' >/dev/null 2>&1 &&
    392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    393   as_expr=expr
    394 else
    395   as_expr=false
    396 fi
    397 
    398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    399   as_basename=basename
    400 else
    401   as_basename=false
    402 fi
    403 
    404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    405   as_dirname=dirname
    406 else
    407   as_dirname=false
    408 fi
    409 
    410 as_me=`$as_basename -- "$0" ||
    411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    412 	 X"$0" : 'X\(//\)$' \| \
    413 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    414 $as_echo X/"$0" |
    415     sed '/^.*\/\([^/][^/]*\)\/*$/{
    416 	    s//\1/
    417 	    q
    418 	  }
    419 	  /^X\/\(\/\/\)$/{
    420 	    s//\1/
    421 	    q
    422 	  }
    423 	  /^X\/\(\/\).*/{
    424 	    s//\1/
    425 	    q
    426 	  }
    427 	  s/.*/./; q'`
    428 
    429 # Avoid depending upon Character Ranges.
    430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    433 as_cr_digits='0123456789'
    434 as_cr_alnum=$as_cr_Letters$as_cr_digits
    435 
    436 
    437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    442   sed -n '
    443     p
    444     /[$]LINENO/=
    445   ' <$as_myself |
    446     sed '
    447       s/[$]LINENO.*/&-/
    448       t lineno
    449       b
    450       :lineno
    451       N
    452       :loop
    453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    454       t loop
    455       s/-\n.*//
    456     ' >$as_me.lineno &&
    457   chmod +x "$as_me.lineno" ||
    458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    459 
    460   # Don't try to exec as it changes $[0], causing all sort of problems
    461   # (the dirname of $[0] is not the place where we might find the
    462   # original and so on.  Autoconf is especially sensitive to this).
    463   . "./$as_me.lineno"
    464   # Exit status is that of the last command.
    465   exit
    466 }
    467 
    468 ECHO_C= ECHO_N= ECHO_T=
    469 case `echo -n x` in #(((((
    470 -n*)
    471   case `echo 'xy\c'` in
    472   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    473   xy)  ECHO_C='\c';;
    474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    475        ECHO_T='	';;
    476   esac;;
    477 *)
    478   ECHO_N='-n';;
    479 esac
    480 
    481 rm -f conf$$ conf$$.exe conf$$.file
    482 if test -d conf$$.dir; then
    483   rm -f conf$$.dir/conf$$.file
    484 else
    485   rm -f conf$$.dir
    486   mkdir conf$$.dir 2>/dev/null
    487 fi
    488 if (echo >conf$$.file) 2>/dev/null; then
    489   if ln -s conf$$.file conf$$ 2>/dev/null; then
    490     as_ln_s='ln -s'
    491     # ... but there are two gotchas:
    492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    494     # In both cases, we have to default to `cp -p'.
    495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    496       as_ln_s='cp -p'
    497   elif ln conf$$.file conf$$ 2>/dev/null; then
    498     as_ln_s=ln
    499   else
    500     as_ln_s='cp -p'
    501   fi
    502 else
    503   as_ln_s='cp -p'
    504 fi
    505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    506 rmdir conf$$.dir 2>/dev/null
    507 
    508 if mkdir -p . 2>/dev/null; then
    509   as_mkdir_p='mkdir -p "$as_dir"'
    510 else
    511   test -d ./-p && rmdir ./-p
    512   as_mkdir_p=false
    513 fi
    514 
    515 if test -x / >/dev/null 2>&1; then
    516   as_test_x='test -x'
    517 else
    518   if ls -dL / >/dev/null 2>&1; then
    519     as_ls_L_option=L
    520   else
    521     as_ls_L_option=
    522   fi
    523   as_test_x='
    524     eval sh -c '\''
    525       if test -d "$1"; then
    526 	test -d "$1/.";
    527       else
    528 	case $1 in #(
    529 	-*)set "./$1";;
    530 	esac;
    531 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    532 	???[sx]*):;;*)false;;esac;fi
    533     '\'' sh
    534   '
    535 fi
    536 as_executable_p=$as_test_x
    537 
    538 # Sed expression to map a string onto a valid CPP name.
    539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    540 
    541 # Sed expression to map a string onto a valid variable name.
    542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    543 
    544 SHELL=${CONFIG_SHELL-/bin/sh}
    545 
    546 
    547 test -n "$DJDIR" || exec 7<&0 </dev/null
    548 exec 6>&1
    549 
    550 # Name of the host.
    551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    552 # so uname gets run too.
    553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    554 
    555 #
    556 # Initializations.
    557 #
    558 ac_default_prefix=/usr/local
    559 ac_clean_files=
    560 ac_config_libobj_dir=.
    561 LIBOBJS=
    562 cross_compiling=no
    563 subdirs=
    564 MFLAGS=
    565 MAKEFLAGS=
    566 
    567 # Identity of this package.
    568 PACKAGE_NAME='libevent'
    569 PACKAGE_TARNAME='libevent'
    570 PACKAGE_VERSION='2.1.3-alpha-dev'
    571 PACKAGE_STRING='libevent 2.1.3-alpha-dev'
    572 PACKAGE_BUGREPORT=''
    573 PACKAGE_URL=''
    574 
    575 ac_unique_file="event.c"
    576 # Factoring default headers for most tests.
    577 ac_includes_default="\
    578 #include <stdio.h>
    579 #ifdef HAVE_SYS_TYPES_H
    580 # include <sys/types.h>
    581 #endif
    582 #ifdef HAVE_SYS_STAT_H
    583 # include <sys/stat.h>
    584 #endif
    585 #ifdef STDC_HEADERS
    586 # include <stdlib.h>
    587 # include <stddef.h>
    588 #else
    589 # ifdef HAVE_STDLIB_H
    590 #  include <stdlib.h>
    591 # endif
    592 #endif
    593 #ifdef HAVE_STRING_H
    594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    595 #  include <memory.h>
    596 # endif
    597 # include <string.h>
    598 #endif
    599 #ifdef HAVE_STRINGS_H
    600 # include <strings.h>
    601 #endif
    602 #ifdef HAVE_INTTYPES_H
    603 # include <inttypes.h>
    604 #endif
    605 #ifdef HAVE_STDINT_H
    606 # include <stdint.h>
    607 #endif
    608 #ifdef HAVE_UNISTD_H
    609 # include <unistd.h>
    610 #endif"
    611 
    612 ac_subst_vars='am__EXEEXT_FALSE
    613 am__EXEEXT_TRUE
    614 LTLIBOBJS
    615 INSTALL_LIBEVENT_FALSE
    616 INSTALL_LIBEVENT_TRUE
    617 LIBEVENT_GC_SECTIONS
    618 PTHREADS_FALSE
    619 PTHREADS_TRUE
    620 PTHREAD_CFLAGS
    621 PTHREAD_LIBS
    622 SIGNAL_SUPPORT_FALSE
    623 SIGNAL_SUPPORT_TRUE
    624 EVPORT_BACKEND_FALSE
    625 EVPORT_BACKEND_TRUE
    626 EPOLL_BACKEND_FALSE
    627 EPOLL_BACKEND_TRUE
    628 LIBOBJS
    629 KQUEUE_BACKEND_FALSE
    630 KQUEUE_BACKEND_TRUE
    631 DEVPOLL_BACKEND_FALSE
    632 DEVPOLL_BACKEND_TRUE
    633 POLL_BACKEND_FALSE
    634 POLL_BACKEND_TRUE
    635 SELECT_BACKEND_FALSE
    636 SELECT_BACKEND_TRUE
    637 STRLCPY_IMPL_FALSE
    638 STRLCPY_IMPL_TRUE
    639 BUILD_WITH_NO_UNDEFINED_FALSE
    640 BUILD_WITH_NO_UNDEFINED_TRUE
    641 BUILD_CYGWIN_FALSE
    642 BUILD_CYGWIN_TRUE
    643 BUILD_WIN32_FALSE
    644 BUILD_WIN32_TRUE
    645 OPENSSL_FALSE
    646 OPENSSL_TRUE
    647 OPENSSL_LIBS
    648 OPENSSL_INCS
    649 PKG_CONFIG
    650 OPENSSL_LIBADD
    651 EV_LIB_GDI
    652 EV_LIB_WS32
    653 ZLIB_REGRESS_FALSE
    654 ZLIB_REGRESS_TRUE
    655 ZLIB_LIBS
    656 BUILD_REGRESS_FALSE
    657 BUILD_REGRESS_TRUE
    658 LIBTOOL_DEPS
    659 OTOOL64
    660 OTOOL
    661 LIPO
    662 NMEDIT
    663 DSYMUTIL
    664 MANIFEST_TOOL
    665 RANLIB
    666 ac_ct_AR
    667 AR
    668 DLLTOOL
    669 OBJDUMP
    670 NM
    671 ac_ct_DUMPBIN
    672 DUMPBIN
    673 LD
    674 FGREP
    675 LIBTOOL
    676 SED
    677 LN_S
    678 EGREP
    679 GREP
    680 CPP
    681 am__fastdepCC_FALSE
    682 am__fastdepCC_TRUE
    683 CCDEPMODE
    684 AMDEPBACKSLASH
    685 AMDEP_FALSE
    686 AMDEP_TRUE
    687 am__quote
    688 am__include
    689 DEPDIR
    690 OBJEXT
    691 EXEEXT
    692 ac_ct_CC
    693 CPPFLAGS
    694 LDFLAGS
    695 CFLAGS
    696 CC
    697 host_os
    698 host_vendor
    699 host_cpu
    700 host
    701 build_os
    702 build_vendor
    703 build_cpu
    704 build
    705 AM_BACKSLASH
    706 AM_DEFAULT_VERBOSITY
    707 am__untar
    708 am__tar
    709 AMTAR
    710 am__leading_dot
    711 SET_MAKE
    712 AWK
    713 mkdir_p
    714 MKDIR_P
    715 INSTALL_STRIP_PROGRAM
    716 STRIP
    717 install_sh
    718 MAKEINFO
    719 AUTOHEADER
    720 AUTOMAKE
    721 AUTOCONF
    722 ACLOCAL
    723 VERSION
    724 PACKAGE
    725 CYGPATH_W
    726 am__isrc
    727 INSTALL_DATA
    728 INSTALL_SCRIPT
    729 INSTALL_PROGRAM
    730 target_alias
    731 host_alias
    732 build_alias
    733 LIBS
    734 ECHO_T
    735 ECHO_N
    736 ECHO_C
    737 DEFS
    738 mandir
    739 localedir
    740 libdir
    741 psdir
    742 pdfdir
    743 dvidir
    744 htmldir
    745 infodir
    746 docdir
    747 oldincludedir
    748 includedir
    749 localstatedir
    750 sharedstatedir
    751 sysconfdir
    752 datadir
    753 datarootdir
    754 libexecdir
    755 sbindir
    756 bindir
    757 program_transform_name
    758 prefix
    759 exec_prefix
    760 PACKAGE_URL
    761 PACKAGE_BUGREPORT
    762 PACKAGE_STRING
    763 PACKAGE_VERSION
    764 PACKAGE_TARNAME
    765 PACKAGE_NAME
    766 PATH_SEPARATOR
    767 SHELL'
    768 ac_subst_files=''
    769 ac_user_opts='
    770 enable_option_checking
    771 enable_silent_rules
    772 enable_dependency_tracking
    773 enable_gcc_warnings
    774 enable_gcc_hardening
    775 enable_thread_support
    776 enable_malloc_replacement
    777 enable_openssl
    778 enable_debug_mode
    779 enable_libevent_install
    780 enable_libevent_regress
    781 enable_function_sections
    782 enable_verbose_debug
    783 enable_shared
    784 enable_static
    785 with_pic
    786 enable_fast_install
    787 with_gnu_ld
    788 with_sysroot
    789 enable_libtool_lock
    790 enable_largefile
    791 with_threads
    792 with_yielding_select
    793 '
    794       ac_precious_vars='build_alias
    795 host_alias
    796 target_alias
    797 CC
    798 CFLAGS
    799 LDFLAGS
    800 LIBS
    801 CPPFLAGS
    802 CPP'
    803 
    804 
    805 # Initialize some variables set by options.
    806 ac_init_help=
    807 ac_init_version=false
    808 ac_unrecognized_opts=
    809 ac_unrecognized_sep=
    810 # The variables have the same names as the options, with
    811 # dashes changed to underlines.
    812 cache_file=/dev/null
    813 exec_prefix=NONE
    814 no_create=
    815 no_recursion=
    816 prefix=NONE
    817 program_prefix=NONE
    818 program_suffix=NONE
    819 program_transform_name=s,x,x,
    820 silent=
    821 site=
    822 srcdir=
    823 verbose=
    824 x_includes=NONE
    825 x_libraries=NONE
    826 
    827 # Installation directory options.
    828 # These are left unexpanded so users can "make install exec_prefix=/foo"
    829 # and all the variables that are supposed to be based on exec_prefix
    830 # by default will actually change.
    831 # Use braces instead of parens because sh, perl, etc. also accept them.
    832 # (The list follows the same order as the GNU Coding Standards.)
    833 bindir='${exec_prefix}/bin'
    834 sbindir='${exec_prefix}/sbin'
    835 libexecdir='${exec_prefix}/libexec'
    836 datarootdir='${prefix}/share'
    837 datadir='${datarootdir}'
    838 sysconfdir='${prefix}/etc'
    839 sharedstatedir='${prefix}/com'
    840 localstatedir='${prefix}/var'
    841 includedir='${prefix}/include'
    842 oldincludedir='/usr/include'
    843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    844 infodir='${datarootdir}/info'
    845 htmldir='${docdir}'
    846 dvidir='${docdir}'
    847 pdfdir='${docdir}'
    848 psdir='${docdir}'
    849 libdir='${exec_prefix}/lib'
    850 localedir='${datarootdir}/locale'
    851 mandir='${datarootdir}/man'
    852 
    853 ac_prev=
    854 ac_dashdash=
    855 for ac_option
    856 do
    857   # If the previous option needs an argument, assign it.
    858   if test -n "$ac_prev"; then
    859     eval $ac_prev=\$ac_option
    860     ac_prev=
    861     continue
    862   fi
    863 
    864   case $ac_option in
    865   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    866   *=)   ac_optarg= ;;
    867   *)    ac_optarg=yes ;;
    868   esac
    869 
    870   # Accept the important Cygnus configure options, so we can diagnose typos.
    871 
    872   case $ac_dashdash$ac_option in
    873   --)
    874     ac_dashdash=yes ;;
    875 
    876   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    877     ac_prev=bindir ;;
    878   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    879     bindir=$ac_optarg ;;
    880 
    881   -build | --build | --buil | --bui | --bu)
    882     ac_prev=build_alias ;;
    883   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    884     build_alias=$ac_optarg ;;
    885 
    886   -cache-file | --cache-file | --cache-fil | --cache-fi \
    887   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    888     ac_prev=cache_file ;;
    889   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    890   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    891     cache_file=$ac_optarg ;;
    892 
    893   --config-cache | -C)
    894     cache_file=config.cache ;;
    895 
    896   -datadir | --datadir | --datadi | --datad)
    897     ac_prev=datadir ;;
    898   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    899     datadir=$ac_optarg ;;
    900 
    901   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    902   | --dataroo | --dataro | --datar)
    903     ac_prev=datarootdir ;;
    904   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    905   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    906     datarootdir=$ac_optarg ;;
    907 
    908   -disable-* | --disable-*)
    909     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    910     # Reject names that are not valid shell variable names.
    911     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    912       as_fn_error $? "invalid feature name: $ac_useropt"
    913     ac_useropt_orig=$ac_useropt
    914     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    915     case $ac_user_opts in
    916       *"
    917 "enable_$ac_useropt"
    918 "*) ;;
    919       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    920 	 ac_unrecognized_sep=', ';;
    921     esac
    922     eval enable_$ac_useropt=no ;;
    923 
    924   -docdir | --docdir | --docdi | --doc | --do)
    925     ac_prev=docdir ;;
    926   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    927     docdir=$ac_optarg ;;
    928 
    929   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    930     ac_prev=dvidir ;;
    931   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    932     dvidir=$ac_optarg ;;
    933 
    934   -enable-* | --enable-*)
    935     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    936     # Reject names that are not valid shell variable names.
    937     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    938       as_fn_error $? "invalid feature name: $ac_useropt"
    939     ac_useropt_orig=$ac_useropt
    940     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    941     case $ac_user_opts in
    942       *"
    943 "enable_$ac_useropt"
    944 "*) ;;
    945       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    946 	 ac_unrecognized_sep=', ';;
    947     esac
    948     eval enable_$ac_useropt=\$ac_optarg ;;
    949 
    950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    952   | --exec | --exe | --ex)
    953     ac_prev=exec_prefix ;;
    954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    956   | --exec=* | --exe=* | --ex=*)
    957     exec_prefix=$ac_optarg ;;
    958 
    959   -gas | --gas | --ga | --g)
    960     # Obsolete; use --with-gas.
    961     with_gas=yes ;;
    962 
    963   -help | --help | --hel | --he | -h)
    964     ac_init_help=long ;;
    965   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    966     ac_init_help=recursive ;;
    967   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    968     ac_init_help=short ;;
    969 
    970   -host | --host | --hos | --ho)
    971     ac_prev=host_alias ;;
    972   -host=* | --host=* | --hos=* | --ho=*)
    973     host_alias=$ac_optarg ;;
    974 
    975   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    976     ac_prev=htmldir ;;
    977   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    978   | --ht=*)
    979     htmldir=$ac_optarg ;;
    980 
    981   -includedir | --includedir | --includedi | --included | --include \
    982   | --includ | --inclu | --incl | --inc)
    983     ac_prev=includedir ;;
    984   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    985   | --includ=* | --inclu=* | --incl=* | --inc=*)
    986     includedir=$ac_optarg ;;
    987 
    988   -infodir | --infodir | --infodi | --infod | --info | --inf)
    989     ac_prev=infodir ;;
    990   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    991     infodir=$ac_optarg ;;
    992 
    993   -libdir | --libdir | --libdi | --libd)
    994     ac_prev=libdir ;;
    995   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    996     libdir=$ac_optarg ;;
    997 
    998   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    999   | --libexe | --libex | --libe)
   1000     ac_prev=libexecdir ;;
   1001   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1002   | --libexe=* | --libex=* | --libe=*)
   1003     libexecdir=$ac_optarg ;;
   1004 
   1005   -localedir | --localedir | --localedi | --localed | --locale)
   1006     ac_prev=localedir ;;
   1007   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1008     localedir=$ac_optarg ;;
   1009 
   1010   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1011   | --localstate | --localstat | --localsta | --localst | --locals)
   1012     ac_prev=localstatedir ;;
   1013   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1014   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1015     localstatedir=$ac_optarg ;;
   1016 
   1017   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1018     ac_prev=mandir ;;
   1019   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1020     mandir=$ac_optarg ;;
   1021 
   1022   -nfp | --nfp | --nf)
   1023     # Obsolete; use --without-fp.
   1024     with_fp=no ;;
   1025 
   1026   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1027   | --no-cr | --no-c | -n)
   1028     no_create=yes ;;
   1029 
   1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1032     no_recursion=yes ;;
   1033 
   1034   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1035   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1036   | --oldin | --oldi | --old | --ol | --o)
   1037     ac_prev=oldincludedir ;;
   1038   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1039   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1040   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1041     oldincludedir=$ac_optarg ;;
   1042 
   1043   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1044     ac_prev=prefix ;;
   1045   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1046     prefix=$ac_optarg ;;
   1047 
   1048   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1049   | --program-pre | --program-pr | --program-p)
   1050     ac_prev=program_prefix ;;
   1051   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1052   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1053     program_prefix=$ac_optarg ;;
   1054 
   1055   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1056   | --program-suf | --program-su | --program-s)
   1057     ac_prev=program_suffix ;;
   1058   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1059   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1060     program_suffix=$ac_optarg ;;
   1061 
   1062   -program-transform-name | --program-transform-name \
   1063   | --program-transform-nam | --program-transform-na \
   1064   | --program-transform-n | --program-transform- \
   1065   | --program-transform | --program-transfor \
   1066   | --program-transfo | --program-transf \
   1067   | --program-trans | --program-tran \
   1068   | --progr-tra | --program-tr | --program-t)
   1069     ac_prev=program_transform_name ;;
   1070   -program-transform-name=* | --program-transform-name=* \
   1071   | --program-transform-nam=* | --program-transform-na=* \
   1072   | --program-transform-n=* | --program-transform-=* \
   1073   | --program-transform=* | --program-transfor=* \
   1074   | --program-transfo=* | --program-transf=* \
   1075   | --program-trans=* | --program-tran=* \
   1076   | --progr-tra=* | --program-tr=* | --program-t=*)
   1077     program_transform_name=$ac_optarg ;;
   1078 
   1079   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1080     ac_prev=pdfdir ;;
   1081   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1082     pdfdir=$ac_optarg ;;
   1083 
   1084   -psdir | --psdir | --psdi | --psd | --ps)
   1085     ac_prev=psdir ;;
   1086   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1087     psdir=$ac_optarg ;;
   1088 
   1089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1090   | -silent | --silent | --silen | --sile | --sil)
   1091     silent=yes ;;
   1092 
   1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1094     ac_prev=sbindir ;;
   1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1096   | --sbi=* | --sb=*)
   1097     sbindir=$ac_optarg ;;
   1098 
   1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1101   | --sharedst | --shareds | --shared | --share | --shar \
   1102   | --sha | --sh)
   1103     ac_prev=sharedstatedir ;;
   1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1107   | --sha=* | --sh=*)
   1108     sharedstatedir=$ac_optarg ;;
   1109 
   1110   -site | --site | --sit)
   1111     ac_prev=site ;;
   1112   -site=* | --site=* | --sit=*)
   1113     site=$ac_optarg ;;
   1114 
   1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1116     ac_prev=srcdir ;;
   1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1118     srcdir=$ac_optarg ;;
   1119 
   1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1121   | --syscon | --sysco | --sysc | --sys | --sy)
   1122     ac_prev=sysconfdir ;;
   1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1125     sysconfdir=$ac_optarg ;;
   1126 
   1127   -target | --target | --targe | --targ | --tar | --ta | --t)
   1128     ac_prev=target_alias ;;
   1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1130     target_alias=$ac_optarg ;;
   1131 
   1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1133     verbose=yes ;;
   1134 
   1135   -version | --version | --versio | --versi | --vers | -V)
   1136     ac_init_version=: ;;
   1137 
   1138   -with-* | --with-*)
   1139     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1140     # Reject names that are not valid shell variable names.
   1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1142       as_fn_error $? "invalid package name: $ac_useropt"
   1143     ac_useropt_orig=$ac_useropt
   1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1145     case $ac_user_opts in
   1146       *"
   1147 "with_$ac_useropt"
   1148 "*) ;;
   1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1150 	 ac_unrecognized_sep=', ';;
   1151     esac
   1152     eval with_$ac_useropt=\$ac_optarg ;;
   1153 
   1154   -without-* | --without-*)
   1155     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1156     # Reject names that are not valid shell variable names.
   1157     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1158       as_fn_error $? "invalid package name: $ac_useropt"
   1159     ac_useropt_orig=$ac_useropt
   1160     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1161     case $ac_user_opts in
   1162       *"
   1163 "with_$ac_useropt"
   1164 "*) ;;
   1165       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1166 	 ac_unrecognized_sep=', ';;
   1167     esac
   1168     eval with_$ac_useropt=no ;;
   1169 
   1170   --x)
   1171     # Obsolete; use --with-x.
   1172     with_x=yes ;;
   1173 
   1174   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1175   | --x-incl | --x-inc | --x-in | --x-i)
   1176     ac_prev=x_includes ;;
   1177   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1178   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1179     x_includes=$ac_optarg ;;
   1180 
   1181   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1182   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1183     ac_prev=x_libraries ;;
   1184   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1185   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1186     x_libraries=$ac_optarg ;;
   1187 
   1188   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1189 Try \`$0 --help' for more information"
   1190     ;;
   1191 
   1192   *=*)
   1193     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1194     # Reject names that are not valid shell variable names.
   1195     case $ac_envvar in #(
   1196       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1197       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1198     esac
   1199     eval $ac_envvar=\$ac_optarg
   1200     export $ac_envvar ;;
   1201 
   1202   *)
   1203     # FIXME: should be removed in autoconf 3.0.
   1204     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1205     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1206       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1207     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1208     ;;
   1209 
   1210   esac
   1211 done
   1212 
   1213 if test -n "$ac_prev"; then
   1214   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1215   as_fn_error $? "missing argument to $ac_option"
   1216 fi
   1217 
   1218 if test -n "$ac_unrecognized_opts"; then
   1219   case $enable_option_checking in
   1220     no) ;;
   1221     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1222     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1223   esac
   1224 fi
   1225 
   1226 # Check all directory arguments for consistency.
   1227 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1228 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1229 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1230 		libdir localedir mandir
   1231 do
   1232   eval ac_val=\$$ac_var
   1233   # Remove trailing slashes.
   1234   case $ac_val in
   1235     */ )
   1236       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1237       eval $ac_var=\$ac_val;;
   1238   esac
   1239   # Be sure to have absolute directory names.
   1240   case $ac_val in
   1241     [\\/$]* | ?:[\\/]* )  continue;;
   1242     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1243   esac
   1244   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1245 done
   1246 
   1247 # There might be people who depend on the old broken behavior: `$host'
   1248 # used to hold the argument of --host etc.
   1249 # FIXME: To remove some day.
   1250 build=$build_alias
   1251 host=$host_alias
   1252 target=$target_alias
   1253 
   1254 # FIXME: To remove some day.
   1255 if test "x$host_alias" != x; then
   1256   if test "x$build_alias" = x; then
   1257     cross_compiling=maybe
   1258     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
   1259     If a cross compiler is detected then cross compile mode will be used" >&2
   1260   elif test "x$build_alias" != "x$host_alias"; then
   1261     cross_compiling=yes
   1262   fi
   1263 fi
   1264 
   1265 ac_tool_prefix=
   1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1267 
   1268 test "$silent" = yes && exec 6>/dev/null
   1269 
   1270 
   1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1272 ac_ls_di=`ls -di .` &&
   1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1274   as_fn_error $? "working directory cannot be determined"
   1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1276   as_fn_error $? "pwd does not report name of working directory"
   1277 
   1278 
   1279 # Find the source files, if location was not specified.
   1280 if test -z "$srcdir"; then
   1281   ac_srcdir_defaulted=yes
   1282   # Try the directory containing this script, then the parent directory.
   1283   ac_confdir=`$as_dirname -- "$as_myself" ||
   1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1285 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1286 	 X"$as_myself" : 'X\(//\)$' \| \
   1287 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1288 $as_echo X"$as_myself" |
   1289     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1290 	    s//\1/
   1291 	    q
   1292 	  }
   1293 	  /^X\(\/\/\)[^/].*/{
   1294 	    s//\1/
   1295 	    q
   1296 	  }
   1297 	  /^X\(\/\/\)$/{
   1298 	    s//\1/
   1299 	    q
   1300 	  }
   1301 	  /^X\(\/\).*/{
   1302 	    s//\1/
   1303 	    q
   1304 	  }
   1305 	  s/.*/./; q'`
   1306   srcdir=$ac_confdir
   1307   if test ! -r "$srcdir/$ac_unique_file"; then
   1308     srcdir=..
   1309   fi
   1310 else
   1311   ac_srcdir_defaulted=no
   1312 fi
   1313 if test ! -r "$srcdir/$ac_unique_file"; then
   1314   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1315   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1316 fi
   1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1318 ac_abs_confdir=`(
   1319 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1320 	pwd)`
   1321 # When building in place, set srcdir=.
   1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1323   srcdir=.
   1324 fi
   1325 # Remove unnecessary trailing slashes from srcdir.
   1326 # Double slashes in file names in object file debugging info
   1327 # mess up M-x gdb in Emacs.
   1328 case $srcdir in
   1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1330 esac
   1331 for ac_var in $ac_precious_vars; do
   1332   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1333   eval ac_env_${ac_var}_value=\$${ac_var}
   1334   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1335   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1336 done
   1337 
   1338 #
   1339 # Report the --help message.
   1340 #
   1341 if test "$ac_init_help" = "long"; then
   1342   # Omit some internal or obsolete options to make the list less imposing.
   1343   # This message is too long to be a string in the A/UX 3.1 sh.
   1344   cat <<_ACEOF
   1345 \`configure' configures libevent 2.1.3-alpha-dev to adapt to many kinds of systems.
   1346 
   1347 Usage: $0 [OPTION]... [VAR=VALUE]...
   1348 
   1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1350 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1351 
   1352 Defaults for the options are specified in brackets.
   1353 
   1354 Configuration:
   1355   -h, --help              display this help and exit
   1356       --help=short        display options specific to this package
   1357       --help=recursive    display the short help of all the included packages
   1358   -V, --version           display version information and exit
   1359   -q, --quiet, --silent   do not print \`checking ...' messages
   1360       --cache-file=FILE   cache test results in FILE [disabled]
   1361   -C, --config-cache      alias for \`--cache-file=config.cache'
   1362   -n, --no-create         do not create output files
   1363       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1364 
   1365 Installation directories:
   1366   --prefix=PREFIX         install architecture-independent files in PREFIX
   1367                           [$ac_default_prefix]
   1368   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1369                           [PREFIX]
   1370 
   1371 By default, \`make install' will install all the files in
   1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1374 for instance \`--prefix=\$HOME'.
   1375 
   1376 For better control, use the options below.
   1377 
   1378 Fine tuning of the installation directories:
   1379   --bindir=DIR            user executables [EPREFIX/bin]
   1380   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1381   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1382   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1383   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1384   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1385   --libdir=DIR            object code libraries [EPREFIX/lib]
   1386   --includedir=DIR        C header files [PREFIX/include]
   1387   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1388   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1389   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1390   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1391   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1392   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1393   --docdir=DIR            documentation root [DATAROOTDIR/doc/libevent]
   1394   --htmldir=DIR           html documentation [DOCDIR]
   1395   --dvidir=DIR            dvi documentation [DOCDIR]
   1396   --pdfdir=DIR            pdf documentation [DOCDIR]
   1397   --psdir=DIR             ps documentation [DOCDIR]
   1398 _ACEOF
   1399 
   1400   cat <<\_ACEOF
   1401 
   1402 Program names:
   1403   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1404   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1405   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1406 
   1407 System types:
   1408   --build=BUILD     configure for building on BUILD [guessed]
   1409   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1410 _ACEOF
   1411 fi
   1412 
   1413 if test -n "$ac_init_help"; then
   1414   case $ac_init_help in
   1415      short | recursive ) echo "Configuration of libevent 2.1.3-alpha-dev:";;
   1416    esac
   1417   cat <<\_ACEOF
   1418 
   1419 Optional Features:
   1420   --disable-option-checking  ignore unrecognized --enable/--with options
   1421   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1422   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1423   --enable-silent-rules          less verbose build output (undo: `make V=1')
   1424   --disable-silent-rules         verbose build output (undo: `make V=0')
   1425   --disable-dependency-tracking  speeds up one-time build
   1426   --enable-dependency-tracking   do not reject slow dependency extractors
   1427   --disable-gcc-warnings  disable verbose warnings with GCC
   1428   --enable-gcc-hardening  enable compiler security checks
   1429   --disable-thread-support
   1430                           disable support for threading
   1431   --disable-malloc-replacement
   1432                           disable support for replacing the memory mgt
   1433                           functions
   1434   --disable-openssl       disable support for openssl encryption
   1435   --disable-debug-mode    disable support for running in debug mode
   1436   --disable-libevent-install, disable installation of libevent
   1437 
   1438   --disable-libevent-regress, skip regress in make check
   1439 
   1440   --enable-function-sections, make static library allow smaller binaries with --gc-sections
   1441 
   1442   --enable-verbose-debug, verbose debug logging
   1443 
   1444   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1445   --enable-static[=PKGS]  build static libraries [default=yes]
   1446   --enable-fast-install[=PKGS]
   1447                           optimize for fast installation [default=yes]
   1448   --disable-libtool-lock  avoid locking (might break parallel builds)
   1449   --disable-largefile     omit support for large files
   1450 
   1451 Optional Packages:
   1452   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1453   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1454   --with-pic              try to use only PIC/non-PIC objects [default=use
   1455                           both]
   1456   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1457   --with-sysroot=DIR Search for dependent libraries within DIR
   1458                         (or the compiler's sysroot if not specified).
   1459   --with-threads	  with threads [auto]
   1460   --with-yielding-select  with yielding select [auto]
   1461 
   1462 Some influential environment variables:
   1463   CC          C compiler command
   1464   CFLAGS      C compiler flags
   1465   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1466               nonstandard directory <lib dir>
   1467   LIBS        libraries to pass to the linker, e.g. -l<library>
   1468   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1469               you have headers in a nonstandard directory <include dir>
   1470   CPP         C preprocessor
   1471 
   1472 Use these variables to override the choices made by `configure' or to help
   1473 it to find libraries and programs with nonstandard names/locations.
   1474 
   1475 Report bugs to the package provider.
   1476 _ACEOF
   1477 ac_status=$?
   1478 fi
   1479 
   1480 if test "$ac_init_help" = "recursive"; then
   1481   # If there are subdirs, report their specific --help.
   1482   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1483     test -d "$ac_dir" ||
   1484       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1485       continue
   1486     ac_builddir=.
   1487 
   1488 case "$ac_dir" in
   1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1490 *)
   1491   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1492   # A ".." for each directory in $ac_dir_suffix.
   1493   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1494   case $ac_top_builddir_sub in
   1495   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1496   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1497   esac ;;
   1498 esac
   1499 ac_abs_top_builddir=$ac_pwd
   1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1501 # for backward compatibility:
   1502 ac_top_builddir=$ac_top_build_prefix
   1503 
   1504 case $srcdir in
   1505   .)  # We are building in place.
   1506     ac_srcdir=.
   1507     ac_top_srcdir=$ac_top_builddir_sub
   1508     ac_abs_top_srcdir=$ac_pwd ;;
   1509   [\\/]* | ?:[\\/]* )  # Absolute name.
   1510     ac_srcdir=$srcdir$ac_dir_suffix;
   1511     ac_top_srcdir=$srcdir
   1512     ac_abs_top_srcdir=$srcdir ;;
   1513   *) # Relative name.
   1514     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1515     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1516     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1517 esac
   1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1519 
   1520     cd "$ac_dir" || { ac_status=$?; continue; }
   1521     # Check for guested configure.
   1522     if test -f "$ac_srcdir/configure.gnu"; then
   1523       echo &&
   1524       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1525     elif test -f "$ac_srcdir/configure"; then
   1526       echo &&
   1527       $SHELL "$ac_srcdir/configure" --help=recursive
   1528     else
   1529       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1530     fi || ac_status=$?
   1531     cd "$ac_pwd" || { ac_status=$?; break; }
   1532   done
   1533 fi
   1534 
   1535 test -n "$ac_init_help" && exit $ac_status
   1536 if $ac_init_version; then
   1537   cat <<\_ACEOF
   1538 libevent configure 2.1.3-alpha-dev
   1539 generated by GNU Autoconf 2.68
   1540 
   1541 Copyright (C) 2010 Free Software Foundation, Inc.
   1542 This configure script is free software; the Free Software Foundation
   1543 gives unlimited permission to copy, distribute and modify it.
   1544 _ACEOF
   1545   exit
   1546 fi
   1547 
   1548 ## ------------------------ ##
   1549 ## Autoconf initialization. ##
   1550 ## ------------------------ ##
   1551 
   1552 # ac_fn_c_try_compile LINENO
   1553 # --------------------------
   1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1555 ac_fn_c_try_compile ()
   1556 {
   1557   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1558   rm -f conftest.$ac_objext
   1559   if { { ac_try="$ac_compile"
   1560 case "(($ac_try" in
   1561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1562   *) ac_try_echo=$ac_try;;
   1563 esac
   1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1565 $as_echo "$ac_try_echo"; } >&5
   1566   (eval "$ac_compile") 2>conftest.err
   1567   ac_status=$?
   1568   if test -s conftest.err; then
   1569     grep -v '^ *+' conftest.err >conftest.er1
   1570     cat conftest.er1 >&5
   1571     mv -f conftest.er1 conftest.err
   1572   fi
   1573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1574   test $ac_status = 0; } && {
   1575 	 test -z "$ac_c_werror_flag" ||
   1576 	 test ! -s conftest.err
   1577        } && test -s conftest.$ac_objext; then :
   1578   ac_retval=0
   1579 else
   1580   $as_echo "$as_me: failed program was:" >&5
   1581 sed 's/^/| /' conftest.$ac_ext >&5
   1582 
   1583 	ac_retval=1
   1584 fi
   1585   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1586   as_fn_set_status $ac_retval
   1587 
   1588 } # ac_fn_c_try_compile
   1589 
   1590 # ac_fn_c_try_cpp LINENO
   1591 # ----------------------
   1592 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1593 ac_fn_c_try_cpp ()
   1594 {
   1595   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1596   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1597 case "(($ac_try" in
   1598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1599   *) ac_try_echo=$ac_try;;
   1600 esac
   1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1602 $as_echo "$ac_try_echo"; } >&5
   1603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1604   ac_status=$?
   1605   if test -s conftest.err; then
   1606     grep -v '^ *+' conftest.err >conftest.er1
   1607     cat conftest.er1 >&5
   1608     mv -f conftest.er1 conftest.err
   1609   fi
   1610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1611   test $ac_status = 0; } > conftest.i && {
   1612 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1613 	 test ! -s conftest.err
   1614        }; then :
   1615   ac_retval=0
   1616 else
   1617   $as_echo "$as_me: failed program was:" >&5
   1618 sed 's/^/| /' conftest.$ac_ext >&5
   1619 
   1620     ac_retval=1
   1621 fi
   1622   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1623   as_fn_set_status $ac_retval
   1624 
   1625 } # ac_fn_c_try_cpp
   1626 
   1627 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1628 # -------------------------------------------------------
   1629 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1630 # the include files in INCLUDES and setting the cache variable VAR
   1631 # accordingly.
   1632 ac_fn_c_check_header_mongrel ()
   1633 {
   1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1635   if eval \${$3+:} false; then :
   1636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1637 $as_echo_n "checking for $2... " >&6; }
   1638 if eval \${$3+:} false; then :
   1639   $as_echo_n "(cached) " >&6
   1640 fi
   1641 eval ac_res=\$$3
   1642 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1643 $as_echo "$ac_res" >&6; }
   1644 else
   1645   # Is the header compilable?
   1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1647 $as_echo_n "checking $2 usability... " >&6; }
   1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1649 /* end confdefs.h.  */
   1650 $4
   1651 #include <$2>
   1652 _ACEOF
   1653 if ac_fn_c_try_compile "$LINENO"; then :
   1654   ac_header_compiler=yes
   1655 else
   1656   ac_header_compiler=no
   1657 fi
   1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1660 $as_echo "$ac_header_compiler" >&6; }
   1661 
   1662 # Is the header present?
   1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1664 $as_echo_n "checking $2 presence... " >&6; }
   1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1666 /* end confdefs.h.  */
   1667 #include <$2>
   1668 _ACEOF
   1669 if ac_fn_c_try_cpp "$LINENO"; then :
   1670   ac_header_preproc=yes
   1671 else
   1672   ac_header_preproc=no
   1673 fi
   1674 rm -f conftest.err conftest.i conftest.$ac_ext
   1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1676 $as_echo "$ac_header_preproc" >&6; }
   1677 
   1678 # So?  What about this header?
   1679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1680   yes:no: )
   1681     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1682 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1683     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1684 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1685     ;;
   1686   no:yes:* )
   1687     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1688 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1689     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1690 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1691     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1692 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1693     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1694 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1695     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1696 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1697     ;;
   1698 esac
   1699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1700 $as_echo_n "checking for $2... " >&6; }
   1701 if eval \${$3+:} false; then :
   1702   $as_echo_n "(cached) " >&6
   1703 else
   1704   eval "$3=\$ac_header_compiler"
   1705 fi
   1706 eval ac_res=\$$3
   1707 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1708 $as_echo "$ac_res" >&6; }
   1709 fi
   1710   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1711 
   1712 } # ac_fn_c_check_header_mongrel
   1713 
   1714 # ac_fn_c_try_run LINENO
   1715 # ----------------------
   1716 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1717 # that executables *can* be run.
   1718 ac_fn_c_try_run ()
   1719 {
   1720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1721   if { { ac_try="$ac_link"
   1722 case "(($ac_try" in
   1723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1724   *) ac_try_echo=$ac_try;;
   1725 esac
   1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1727 $as_echo "$ac_try_echo"; } >&5
   1728   (eval "$ac_link") 2>&5
   1729   ac_status=$?
   1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1731   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1732   { { case "(($ac_try" in
   1733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1734   *) ac_try_echo=$ac_try;;
   1735 esac
   1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1737 $as_echo "$ac_try_echo"; } >&5
   1738   (eval "$ac_try") 2>&5
   1739   ac_status=$?
   1740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1741   test $ac_status = 0; }; }; then :
   1742   ac_retval=0
   1743 else
   1744   $as_echo "$as_me: program exited with status $ac_status" >&5
   1745        $as_echo "$as_me: failed program was:" >&5
   1746 sed 's/^/| /' conftest.$ac_ext >&5
   1747 
   1748        ac_retval=$ac_status
   1749 fi
   1750   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1751   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1752   as_fn_set_status $ac_retval
   1753 
   1754 } # ac_fn_c_try_run
   1755 
   1756 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1757 # -------------------------------------------------------
   1758 # Tests whether HEADER exists and can be compiled using the include files in
   1759 # INCLUDES, setting the cache variable VAR accordingly.
   1760 ac_fn_c_check_header_compile ()
   1761 {
   1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1764 $as_echo_n "checking for $2... " >&6; }
   1765 if eval \${$3+:} false; then :
   1766   $as_echo_n "(cached) " >&6
   1767 else
   1768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1769 /* end confdefs.h.  */
   1770 $4
   1771 #include <$2>
   1772 _ACEOF
   1773 if ac_fn_c_try_compile "$LINENO"; then :
   1774   eval "$3=yes"
   1775 else
   1776   eval "$3=no"
   1777 fi
   1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1779 fi
   1780 eval ac_res=\$$3
   1781 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1782 $as_echo "$ac_res" >&6; }
   1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1784 
   1785 } # ac_fn_c_check_header_compile
   1786 
   1787 # ac_fn_c_try_link LINENO
   1788 # -----------------------
   1789 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1790 ac_fn_c_try_link ()
   1791 {
   1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1793   rm -f conftest.$ac_objext conftest$ac_exeext
   1794   if { { ac_try="$ac_link"
   1795 case "(($ac_try" in
   1796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1797   *) ac_try_echo=$ac_try;;
   1798 esac
   1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1800 $as_echo "$ac_try_echo"; } >&5
   1801   (eval "$ac_link") 2>conftest.err
   1802   ac_status=$?
   1803   if test -s conftest.err; then
   1804     grep -v '^ *+' conftest.err >conftest.er1
   1805     cat conftest.er1 >&5
   1806     mv -f conftest.er1 conftest.err
   1807   fi
   1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1809   test $ac_status = 0; } && {
   1810 	 test -z "$ac_c_werror_flag" ||
   1811 	 test ! -s conftest.err
   1812        } && test -s conftest$ac_exeext && {
   1813 	 test "$cross_compiling" = yes ||
   1814 	 $as_test_x conftest$ac_exeext
   1815        }; then :
   1816   ac_retval=0
   1817 else
   1818   $as_echo "$as_me: failed program was:" >&5
   1819 sed 's/^/| /' conftest.$ac_ext >&5
   1820 
   1821 	ac_retval=1
   1822 fi
   1823   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1824   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1825   # interfere with the next link command; also delete a directory that is
   1826   # left behind by Apple's compiler.  We do this before executing the actions.
   1827   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1828   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1829   as_fn_set_status $ac_retval
   1830 
   1831 } # ac_fn_c_try_link
   1832 
   1833 # ac_fn_c_check_func LINENO FUNC VAR
   1834 # ----------------------------------
   1835 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1836 ac_fn_c_check_func ()
   1837 {
   1838   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1840 $as_echo_n "checking for $2... " >&6; }
   1841 if eval \${$3+:} false; then :
   1842   $as_echo_n "(cached) " >&6
   1843 else
   1844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1845 /* end confdefs.h.  */
   1846 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1848 #define $2 innocuous_$2
   1849 
   1850 /* System header to define __stub macros and hopefully few prototypes,
   1851     which can conflict with char $2 (); below.
   1852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   1853     <limits.h> exists even on freestanding compilers.  */
   1854 
   1855 #ifdef __STDC__
   1856 # include <limits.h>
   1857 #else
   1858 # include <assert.h>
   1859 #endif
   1860 
   1861 #undef $2
   1862 
   1863 /* Override any GCC internal prototype to avoid an error.
   1864    Use char because int might match the return type of a GCC
   1865    builtin and then its argument prototype would still apply.  */
   1866 #ifdef __cplusplus
   1867 extern "C"
   1868 #endif
   1869 char $2 ();
   1870 /* The GNU C library defines this for functions which it implements
   1871     to always fail with ENOSYS.  Some functions are actually named
   1872     something starting with __ and the normal name is an alias.  */
   1873 #if defined __stub_$2 || defined __stub___$2
   1874 choke me
   1875 #endif
   1876 
   1877 int
   1878 main ()
   1879 {
   1880 return $2 ();
   1881   ;
   1882   return 0;
   1883 }
   1884 _ACEOF
   1885 if ac_fn_c_try_link "$LINENO"; then :
   1886   eval "$3=yes"
   1887 else
   1888   eval "$3=no"
   1889 fi
   1890 rm -f core conftest.err conftest.$ac_objext \
   1891     conftest$ac_exeext conftest.$ac_ext
   1892 fi
   1893 eval ac_res=\$$3
   1894 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1895 $as_echo "$ac_res" >&6; }
   1896   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1897 
   1898 } # ac_fn_c_check_func
   1899 
   1900 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   1901 # ---------------------------------------------
   1902 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   1903 # accordingly.
   1904 ac_fn_c_check_decl ()
   1905 {
   1906   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1907   as_decl_name=`echo $2|sed 's/ *(.*//'`
   1908   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   1909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   1910 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   1911 if eval \${$3+:} false; then :
   1912   $as_echo_n "(cached) " >&6
   1913 else
   1914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1915 /* end confdefs.h.  */
   1916 $4
   1917 int
   1918 main ()
   1919 {
   1920 #ifndef $as_decl_name
   1921 #ifdef __cplusplus
   1922   (void) $as_decl_use;
   1923 #else
   1924   (void) $as_decl_name;
   1925 #endif
   1926 #endif
   1927 
   1928   ;
   1929   return 0;
   1930 }
   1931 _ACEOF
   1932 if ac_fn_c_try_compile "$LINENO"; then :
   1933   eval "$3=yes"
   1934 else
   1935   eval "$3=no"
   1936 fi
   1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1938 fi
   1939 eval ac_res=\$$3
   1940 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1941 $as_echo "$ac_res" >&6; }
   1942   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1943 
   1944 } # ac_fn_c_check_decl
   1945 
   1946 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   1947 # -------------------------------------------
   1948 # Tests whether TYPE exists after having included INCLUDES, setting cache
   1949 # variable VAR accordingly.
   1950 ac_fn_c_check_type ()
   1951 {
   1952   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1954 $as_echo_n "checking for $2... " >&6; }
   1955 if eval \${$3+:} false; then :
   1956   $as_echo_n "(cached) " >&6
   1957 else
   1958   eval "$3=no"
   1959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1960 /* end confdefs.h.  */
   1961 $4
   1962 int
   1963 main ()
   1964 {
   1965 if (sizeof ($2))
   1966 	 return 0;
   1967   ;
   1968   return 0;
   1969 }
   1970 _ACEOF
   1971 if ac_fn_c_try_compile "$LINENO"; then :
   1972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1973 /* end confdefs.h.  */
   1974 $4
   1975 int
   1976 main ()
   1977 {
   1978 if (sizeof (($2)))
   1979 	    return 0;
   1980   ;
   1981   return 0;
   1982 }
   1983 _ACEOF
   1984 if ac_fn_c_try_compile "$LINENO"; then :
   1985 
   1986 else
   1987   eval "$3=yes"
   1988 fi
   1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1990 fi
   1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1992 fi
   1993 eval ac_res=\$$3
   1994 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1995 $as_echo "$ac_res" >&6; }
   1996   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1997 
   1998 } # ac_fn_c_check_type
   1999 
   2000 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2001 # --------------------------------------------
   2002 # Tries to find the compile-time value of EXPR in a program that includes
   2003 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2004 # computed
   2005 ac_fn_c_compute_int ()
   2006 {
   2007   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2008   if test "$cross_compiling" = yes; then
   2009     # Depending upon the size, compute the lo and hi bounds.
   2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2011 /* end confdefs.h.  */
   2012 $4
   2013 int
   2014 main ()
   2015 {
   2016 static int test_array [1 - 2 * !(($2) >= 0)];
   2017 test_array [0] = 0
   2018 
   2019   ;
   2020   return 0;
   2021 }
   2022 _ACEOF
   2023 if ac_fn_c_try_compile "$LINENO"; then :
   2024   ac_lo=0 ac_mid=0
   2025   while :; do
   2026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2027 /* end confdefs.h.  */
   2028 $4
   2029 int
   2030 main ()
   2031 {
   2032 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2033 test_array [0] = 0
   2034 
   2035   ;
   2036   return 0;
   2037 }
   2038 _ACEOF
   2039 if ac_fn_c_try_compile "$LINENO"; then :
   2040   ac_hi=$ac_mid; break
   2041 else
   2042   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2043 			if test $ac_lo -le $ac_mid; then
   2044 			  ac_lo= ac_hi=
   2045 			  break
   2046 			fi
   2047 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2048 fi
   2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2050   done
   2051 else
   2052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2053 /* end confdefs.h.  */
   2054 $4
   2055 int
   2056 main ()
   2057 {
   2058 static int test_array [1 - 2 * !(($2) < 0)];
   2059 test_array [0] = 0
   2060 
   2061   ;
   2062   return 0;
   2063 }
   2064 _ACEOF
   2065 if ac_fn_c_try_compile "$LINENO"; then :
   2066   ac_hi=-1 ac_mid=-1
   2067   while :; do
   2068     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2069 /* end confdefs.h.  */
   2070 $4
   2071 int
   2072 main ()
   2073 {
   2074 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2075 test_array [0] = 0
   2076 
   2077   ;
   2078   return 0;
   2079 }
   2080 _ACEOF
   2081 if ac_fn_c_try_compile "$LINENO"; then :
   2082   ac_lo=$ac_mid; break
   2083 else
   2084   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2085 			if test $ac_mid -le $ac_hi; then
   2086 			  ac_lo= ac_hi=
   2087 			  break
   2088 			fi
   2089 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2090 fi
   2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2092   done
   2093 else
   2094   ac_lo= ac_hi=
   2095 fi
   2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2097 fi
   2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2099 # Binary search between lo and hi bounds.
   2100 while test "x$ac_lo" != "x$ac_hi"; do
   2101   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2103 /* end confdefs.h.  */
   2104 $4
   2105 int
   2106 main ()
   2107 {
   2108 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2109 test_array [0] = 0
   2110 
   2111   ;
   2112   return 0;
   2113 }
   2114 _ACEOF
   2115 if ac_fn_c_try_compile "$LINENO"; then :
   2116   ac_hi=$ac_mid
   2117 else
   2118   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2119 fi
   2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2121 done
   2122 case $ac_lo in #((
   2123 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2124 '') ac_retval=1 ;;
   2125 esac
   2126   else
   2127     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2128 /* end confdefs.h.  */
   2129 $4
   2130 static long int longval () { return $2; }
   2131 static unsigned long int ulongval () { return $2; }
   2132 #include <stdio.h>
   2133 #include <stdlib.h>
   2134 int
   2135 main ()
   2136 {
   2137 
   2138   FILE *f = fopen ("conftest.val", "w");
   2139   if (! f)
   2140     return 1;
   2141   if (($2) < 0)
   2142     {
   2143       long int i = longval ();
   2144       if (i != ($2))
   2145 	return 1;
   2146       fprintf (f, "%ld", i);
   2147     }
   2148   else
   2149     {
   2150       unsigned long int i = ulongval ();
   2151       if (i != ($2))
   2152 	return 1;
   2153       fprintf (f, "%lu", i);
   2154     }
   2155   /* Do not output a trailing newline, as this causes \r\n confusion
   2156      on some platforms.  */
   2157   return ferror (f) || fclose (f) != 0;
   2158 
   2159   ;
   2160   return 0;
   2161 }
   2162 _ACEOF
   2163 if ac_fn_c_try_run "$LINENO"; then :
   2164   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2165 else
   2166   ac_retval=1
   2167 fi
   2168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2169   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2170 rm -f conftest.val
   2171 
   2172   fi
   2173   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2174   as_fn_set_status $ac_retval
   2175 
   2176 } # ac_fn_c_compute_int
   2177 
   2178 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2179 # ----------------------------------------------------
   2180 # Tries to find if the field MEMBER exists in type AGGR, after including
   2181 # INCLUDES, setting cache variable VAR accordingly.
   2182 ac_fn_c_check_member ()
   2183 {
   2184   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2186 $as_echo_n "checking for $2.$3... " >&6; }
   2187 if eval \${$4+:} false; then :
   2188   $as_echo_n "(cached) " >&6
   2189 else
   2190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2191 /* end confdefs.h.  */
   2192 $5
   2193 int
   2194 main ()
   2195 {
   2196 static $2 ac_aggr;
   2197 if (ac_aggr.$3)
   2198 return 0;
   2199   ;
   2200   return 0;
   2201 }
   2202 _ACEOF
   2203 if ac_fn_c_try_compile "$LINENO"; then :
   2204   eval "$4=yes"
   2205 else
   2206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2207 /* end confdefs.h.  */
   2208 $5
   2209 int
   2210 main ()
   2211 {
   2212 static $2 ac_aggr;
   2213 if (sizeof ac_aggr.$3)
   2214 return 0;
   2215   ;
   2216   return 0;
   2217 }
   2218 _ACEOF
   2219 if ac_fn_c_try_compile "$LINENO"; then :
   2220   eval "$4=yes"
   2221 else
   2222   eval "$4=no"
   2223 fi
   2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2225 fi
   2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2227 fi
   2228 eval ac_res=\$$4
   2229 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2230 $as_echo "$ac_res" >&6; }
   2231   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2232 
   2233 } # ac_fn_c_check_member
   2234 cat >config.log <<_ACEOF
   2235 This file contains any messages produced by compilers while
   2236 running configure, to aid debugging if configure makes a mistake.
   2237 
   2238 It was created by libevent $as_me 2.1.3-alpha-dev, which was
   2239 generated by GNU Autoconf 2.68.  Invocation command line was
   2240 
   2241   $ $0 $@
   2242 
   2243 _ACEOF
   2244 exec 5>>config.log
   2245 {
   2246 cat <<_ASUNAME
   2247 ## --------- ##
   2248 ## Platform. ##
   2249 ## --------- ##
   2250 
   2251 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2252 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2253 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2254 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2255 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2256 
   2257 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2258 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2259 
   2260 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2261 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2262 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2263 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2264 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2265 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2266 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2267 
   2268 _ASUNAME
   2269 
   2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2271 for as_dir in $PATH
   2272 do
   2273   IFS=$as_save_IFS
   2274   test -z "$as_dir" && as_dir=.
   2275     $as_echo "PATH: $as_dir"
   2276   done
   2277 IFS=$as_save_IFS
   2278 
   2279 } >&5
   2280 
   2281 cat >&5 <<_ACEOF
   2282 
   2283 
   2284 ## ----------- ##
   2285 ## Core tests. ##
   2286 ## ----------- ##
   2287 
   2288 _ACEOF
   2289 
   2290 
   2291 # Keep a trace of the command line.
   2292 # Strip out --no-create and --no-recursion so they do not pile up.
   2293 # Strip out --silent because we don't want to record it for future runs.
   2294 # Also quote any args containing shell meta-characters.
   2295 # Make two passes to allow for proper duplicate-argument suppression.
   2296 ac_configure_args=
   2297 ac_configure_args0=
   2298 ac_configure_args1=
   2299 ac_must_keep_next=false
   2300 for ac_pass in 1 2
   2301 do
   2302   for ac_arg
   2303   do
   2304     case $ac_arg in
   2305     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2306     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2307     | -silent | --silent | --silen | --sile | --sil)
   2308       continue ;;
   2309     *\'*)
   2310       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2311     esac
   2312     case $ac_pass in
   2313     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2314     2)
   2315       as_fn_append ac_configure_args1 " '$ac_arg'"
   2316       if test $ac_must_keep_next = true; then
   2317 	ac_must_keep_next=false # Got value, back to normal.
   2318       else
   2319 	case $ac_arg in
   2320 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2321 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2322 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2323 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2324 	    case "$ac_configure_args0 " in
   2325 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2326 	    esac
   2327 	    ;;
   2328 	  -* ) ac_must_keep_next=true ;;
   2329 	esac
   2330       fi
   2331       as_fn_append ac_configure_args " '$ac_arg'"
   2332       ;;
   2333     esac
   2334   done
   2335 done
   2336 { ac_configure_args0=; unset ac_configure_args0;}
   2337 { ac_configure_args1=; unset ac_configure_args1;}
   2338 
   2339 # When interrupted or exit'd, cleanup temporary files, and complete
   2340 # config.log.  We remove comments because anyway the quotes in there
   2341 # would cause problems or look ugly.
   2342 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2343 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2344 trap 'exit_status=$?
   2345   # Save into config.log some information that might help in debugging.
   2346   {
   2347     echo
   2348 
   2349     $as_echo "## ---------------- ##
   2350 ## Cache variables. ##
   2351 ## ---------------- ##"
   2352     echo
   2353     # The following way of writing the cache mishandles newlines in values,
   2354 (
   2355   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2356     eval ac_val=\$$ac_var
   2357     case $ac_val in #(
   2358     *${as_nl}*)
   2359       case $ac_var in #(
   2360       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2361 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2362       esac
   2363       case $ac_var in #(
   2364       _ | IFS | as_nl) ;; #(
   2365       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2366       *) { eval $ac_var=; unset $ac_var;} ;;
   2367       esac ;;
   2368     esac
   2369   done
   2370   (set) 2>&1 |
   2371     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2372     *${as_nl}ac_space=\ *)
   2373       sed -n \
   2374 	"s/'\''/'\''\\\\'\'''\''/g;
   2375 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2376       ;; #(
   2377     *)
   2378       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2379       ;;
   2380     esac |
   2381     sort
   2382 )
   2383     echo
   2384 
   2385     $as_echo "## ----------------- ##
   2386 ## Output variables. ##
   2387 ## ----------------- ##"
   2388     echo
   2389     for ac_var in $ac_subst_vars
   2390     do
   2391       eval ac_val=\$$ac_var
   2392       case $ac_val in
   2393       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2394       esac
   2395       $as_echo "$ac_var='\''$ac_val'\''"
   2396     done | sort
   2397     echo
   2398 
   2399     if test -n "$ac_subst_files"; then
   2400       $as_echo "## ------------------- ##
   2401 ## File substitutions. ##
   2402 ## ------------------- ##"
   2403       echo
   2404       for ac_var in $ac_subst_files
   2405       do
   2406 	eval ac_val=\$$ac_var
   2407 	case $ac_val in
   2408 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2409 	esac
   2410 	$as_echo "$ac_var='\''$ac_val'\''"
   2411       done | sort
   2412       echo
   2413     fi
   2414 
   2415     if test -s confdefs.h; then
   2416       $as_echo "## ----------- ##
   2417 ## confdefs.h. ##
   2418 ## ----------- ##"
   2419       echo
   2420       cat confdefs.h
   2421       echo
   2422     fi
   2423     test "$ac_signal" != 0 &&
   2424       $as_echo "$as_me: caught signal $ac_signal"
   2425     $as_echo "$as_me: exit $exit_status"
   2426   } >&5
   2427   rm -f core *.core core.conftest.* &&
   2428     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2429     exit $exit_status
   2430 ' 0
   2431 for ac_signal in 1 2 13 15; do
   2432   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2433 done
   2434 ac_signal=0
   2435 
   2436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2437 rm -f -r conftest* confdefs.h
   2438 
   2439 $as_echo "/* confdefs.h */" > confdefs.h
   2440 
   2441 # Predefined preprocessor variables.
   2442 
   2443 cat >>confdefs.h <<_ACEOF
   2444 #define PACKAGE_NAME "$PACKAGE_NAME"
   2445 _ACEOF
   2446 
   2447 cat >>confdefs.h <<_ACEOF
   2448 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2449 _ACEOF
   2450 
   2451 cat >>confdefs.h <<_ACEOF
   2452 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2453 _ACEOF
   2454 
   2455 cat >>confdefs.h <<_ACEOF
   2456 #define PACKAGE_STRING "$PACKAGE_STRING"
   2457 _ACEOF
   2458 
   2459 cat >>confdefs.h <<_ACEOF
   2460 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2461 _ACEOF
   2462 
   2463 cat >>confdefs.h <<_ACEOF
   2464 #define PACKAGE_URL "$PACKAGE_URL"
   2465 _ACEOF
   2466 
   2467 
   2468 # Let the site file select an alternate cache file if it wants to.
   2469 # Prefer an explicitly selected file to automatically selected ones.
   2470 ac_site_file1=NONE
   2471 ac_site_file2=NONE
   2472 if test -n "$CONFIG_SITE"; then
   2473   # We do not want a PATH search for config.site.
   2474   case $CONFIG_SITE in #((
   2475     -*)  ac_site_file1=./$CONFIG_SITE;;
   2476     */*) ac_site_file1=$CONFIG_SITE;;
   2477     *)   ac_site_file1=./$CONFIG_SITE;;
   2478   esac
   2479 elif test "x$prefix" != xNONE; then
   2480   ac_site_file1=$prefix/share/config.site
   2481   ac_site_file2=$prefix/etc/config.site
   2482 else
   2483   ac_site_file1=$ac_default_prefix/share/config.site
   2484   ac_site_file2=$ac_default_prefix/etc/config.site
   2485 fi
   2486 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2487 do
   2488   test "x$ac_site_file" = xNONE && continue
   2489   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2490     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2491 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2492     sed 's/^/| /' "$ac_site_file" >&5
   2493     . "$ac_site_file" \
   2494       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2496 as_fn_error $? "failed to load site script $ac_site_file
   2497 See \`config.log' for more details" "$LINENO" 5; }
   2498   fi
   2499 done
   2500 
   2501 if test -r "$cache_file"; then
   2502   # Some versions of bash will fail to source /dev/null (special files
   2503   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2504   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2505     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2506 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2507     case $cache_file in
   2508       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2509       *)                      . "./$cache_file";;
   2510     esac
   2511   fi
   2512 else
   2513   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2514 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2515   >$cache_file
   2516 fi
   2517 
   2518 # Check that the precious variables saved in the cache have kept the same
   2519 # value.
   2520 ac_cache_corrupted=false
   2521 for ac_var in $ac_precious_vars; do
   2522   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2523   eval ac_new_set=\$ac_env_${ac_var}_set
   2524   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2525   eval ac_new_val=\$ac_env_${ac_var}_value
   2526   case $ac_old_set,$ac_new_set in
   2527     set,)
   2528       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2529 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2530       ac_cache_corrupted=: ;;
   2531     ,set)
   2532       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2533 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2534       ac_cache_corrupted=: ;;
   2535     ,);;
   2536     *)
   2537       if test "x$ac_old_val" != "x$ac_new_val"; then
   2538 	# differences in whitespace do not lead to failure.
   2539 	ac_old_val_w=`echo x $ac_old_val`
   2540 	ac_new_val_w=`echo x $ac_new_val`
   2541 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2542 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2543 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2544 	  ac_cache_corrupted=:
   2545 	else
   2546 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2547 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2548 	  eval $ac_var=\$ac_old_val
   2549 	fi
   2550 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2551 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2552 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2553 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2554       fi;;
   2555   esac
   2556   # Pass precious variables to config.status.
   2557   if test "$ac_new_set" = set; then
   2558     case $ac_new_val in
   2559     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2560     *) ac_arg=$ac_var=$ac_new_val ;;
   2561     esac
   2562     case " $ac_configure_args " in
   2563       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2564       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2565     esac
   2566   fi
   2567 done
   2568 if $ac_cache_corrupted; then
   2569   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2571   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2572 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2573   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2574 fi
   2575 ## -------------------- ##
   2576 ## Main body of script. ##
   2577 ## -------------------- ##
   2578 
   2579 ac_ext=c
   2580 ac_cpp='$CPP $CPPFLAGS'
   2581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2584 
   2585 
   2586 
   2587 
   2588 
   2589 
   2590 ac_aux_dir=
   2591 for ac_dir in build-aux "$srcdir"/build-aux; do
   2592   if test -f "$ac_dir/install-sh"; then
   2593     ac_aux_dir=$ac_dir
   2594     ac_install_sh="$ac_aux_dir/install-sh -c"
   2595     break
   2596   elif test -f "$ac_dir/install.sh"; then
   2597     ac_aux_dir=$ac_dir
   2598     ac_install_sh="$ac_aux_dir/install.sh -c"
   2599     break
   2600   elif test -f "$ac_dir/shtool"; then
   2601     ac_aux_dir=$ac_dir
   2602     ac_install_sh="$ac_aux_dir/shtool install -c"
   2603     break
   2604   fi
   2605 done
   2606 if test -z "$ac_aux_dir"; then
   2607   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
   2608 fi
   2609 
   2610 # These three variables are undocumented and unsupported,
   2611 # and are intended to be withdrawn in a future Autoconf release.
   2612 # They can cause serious problems if a builder's source tree is in a directory
   2613 # whose full name contains unusual characters.
   2614 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2615 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2616 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2617 
   2618 
   2619 
   2620 am__api_version='1.11'
   2621 
   2622 # Find a good install program.  We prefer a C program (faster),
   2623 # so one script is as good as another.  But avoid the broken or
   2624 # incompatible versions:
   2625 # SysV /etc/install, /usr/sbin/install
   2626 # SunOS /usr/etc/install
   2627 # IRIX /sbin/install
   2628 # AIX /bin/install
   2629 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2633 # OS/2's system install, which has a completely different semantic
   2634 # ./install, which can be erroneously created by make from ./install.sh.
   2635 # Reject install programs that cannot install multiple files.
   2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   2637 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   2638 if test -z "$INSTALL"; then
   2639 if ${ac_cv_path_install+:} false; then :
   2640   $as_echo_n "(cached) " >&6
   2641 else
   2642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2643 for as_dir in $PATH
   2644 do
   2645   IFS=$as_save_IFS
   2646   test -z "$as_dir" && as_dir=.
   2647     # Account for people who put trailing slashes in PATH elements.
   2648 case $as_dir/ in #((
   2649   ./ | .// | /[cC]/* | \
   2650   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   2651   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   2652   /usr/ucb/* ) ;;
   2653   *)
   2654     # OSF1 and SCO ODT 3.0 have their own names for install.
   2655     # Don't use installbsd from OSF since it installs stuff as root
   2656     # by default.
   2657     for ac_prog in ginstall scoinst install; do
   2658       for ac_exec_ext in '' $ac_executable_extensions; do
   2659 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   2660 	  if test $ac_prog = install &&
   2661 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2662 	    # AIX install.  It has an incompatible calling convention.
   2663 	    :
   2664 	  elif test $ac_prog = install &&
   2665 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2666 	    # program-specific install script used by HP pwplus--don't use.
   2667 	    :
   2668 	  else
   2669 	    rm -rf conftest.one conftest.two conftest.dir
   2670 	    echo one > conftest.one
   2671 	    echo two > conftest.two
   2672 	    mkdir conftest.dir
   2673 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   2674 	      test -s conftest.one && test -s conftest.two &&
   2675 	      test -s conftest.dir/conftest.one &&
   2676 	      test -s conftest.dir/conftest.two
   2677 	    then
   2678 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   2679 	      break 3
   2680 	    fi
   2681 	  fi
   2682 	fi
   2683       done
   2684     done
   2685     ;;
   2686 esac
   2687 
   2688   done
   2689 IFS=$as_save_IFS
   2690 
   2691 rm -rf conftest.one conftest.two conftest.dir
   2692 
   2693 fi
   2694   if test "${ac_cv_path_install+set}" = set; then
   2695     INSTALL=$ac_cv_path_install
   2696   else
   2697     # As a last resort, use the slow shell script.  Don't cache a
   2698     # value for INSTALL within a source directory, because that will
   2699     # break other packages using the cache if that directory is
   2700     # removed, or if the value is a relative name.
   2701     INSTALL=$ac_install_sh
   2702   fi
   2703 fi
   2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   2705 $as_echo "$INSTALL" >&6; }
   2706 
   2707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2708 # It thinks the first close brace ends the variable substitution.
   2709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2710 
   2711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2712 
   2713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2714 
   2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
   2716 $as_echo_n "checking whether build environment is sane... " >&6; }
   2717 # Just in case
   2718 sleep 1
   2719 echo timestamp > conftest.file
   2720 # Reject unsafe characters in $srcdir or the absolute working directory
   2721 # name.  Accept space and tab only in the latter.
   2722 am_lf='
   2723 '
   2724 case `pwd` in
   2725   *[\\\"\#\$\&\'\`$am_lf]*)
   2726     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
   2727 esac
   2728 case $srcdir in
   2729   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
   2730     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
   2731 esac
   2732 
   2733 # Do `set' in a subshell so we don't clobber the current shell's
   2734 # arguments.  Must try -L first in case configure is actually a
   2735 # symlink; some systems play weird games with the mod time of symlinks
   2736 # (eg FreeBSD returns the mod time of the symlink's containing
   2737 # directory).
   2738 if (
   2739    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   2740    if test "$*" = "X"; then
   2741       # -L didn't work.
   2742       set X `ls -t "$srcdir/configure" conftest.file`
   2743    fi
   2744    rm -f conftest.file
   2745    if test "$*" != "X $srcdir/configure conftest.file" \
   2746       && test "$*" != "X conftest.file $srcdir/configure"; then
   2747 
   2748       # If neither matched, then we have a broken ls.  This can happen
   2749       # if, for instance, CONFIG_SHELL is bash and it inherits a
   2750       # broken ls alias from the environment.  This has actually
   2751       # happened.  Such a system could not be considered "sane".
   2752       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
   2753 alias in your environment" "$LINENO" 5
   2754    fi
   2755 
   2756    test "$2" = conftest.file
   2757    )
   2758 then
   2759    # Ok.
   2760    :
   2761 else
   2762    as_fn_error $? "newly created file is older than distributed files!
   2763 Check your system clock" "$LINENO" 5
   2764 fi
   2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2766 $as_echo "yes" >&6; }
   2767 test "$program_prefix" != NONE &&
   2768   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   2769 # Use a double $ so make ignores it.
   2770 test "$program_suffix" != NONE &&
   2771   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   2772 # Double any \ or $.
   2773 # By default was `s,x,x', remove it if useless.
   2774 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   2775 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   2776 
   2777 # expand $ac_aux_dir to an absolute path
   2778 am_aux_dir=`cd $ac_aux_dir && pwd`
   2779 
   2780 if test x"${MISSING+set}" != xset; then
   2781   case $am_aux_dir in
   2782   *\ * | *\	*)
   2783     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
   2784   *)
   2785     MISSING="\${SHELL} $am_aux_dir/missing" ;;
   2786   esac
   2787 fi
   2788 # Use eval to expand $SHELL
   2789 if eval "$MISSING --run true"; then
   2790   am_missing_run="$MISSING --run "
   2791 else
   2792   am_missing_run=
   2793   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
   2794 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
   2795 fi
   2796 
   2797 if test x"${install_sh}" != xset; then
   2798   case $am_aux_dir in
   2799   *\ * | *\	*)
   2800     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   2801   *)
   2802     install_sh="\${SHELL} $am_aux_dir/install-sh"
   2803   esac
   2804 fi
   2805 
   2806 # Installed binaries are usually stripped using `strip' when the user
   2807 # run `make install-strip'.  However `strip' might not be the right
   2808 # tool to use in cross-compilation environments, therefore Automake
   2809 # will honor the `STRIP' environment variable to overrule this program.
   2810 if test "$cross_compiling" != no; then
   2811   if test -n "$ac_tool_prefix"; then
   2812   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   2813 set dummy ${ac_tool_prefix}strip; ac_word=$2
   2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2815 $as_echo_n "checking for $ac_word... " >&6; }
   2816 if ${ac_cv_prog_STRIP+:} false; then :
   2817   $as_echo_n "(cached) " >&6
   2818 else
   2819   if test -n "$STRIP"; then
   2820   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   2821 else
   2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2823 for as_dir in $PATH
   2824 do
   2825   IFS=$as_save_IFS
   2826   test -z "$as_dir" && as_dir=.
   2827     for ac_exec_ext in '' $ac_executable_extensions; do
   2828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2829     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   2830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2831     break 2
   2832   fi
   2833 done
   2834   done
   2835 IFS=$as_save_IFS
   2836 
   2837 fi
   2838 fi
   2839 STRIP=$ac_cv_prog_STRIP
   2840 if test -n "$STRIP"; then
   2841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   2842 $as_echo "$STRIP" >&6; }
   2843 else
   2844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2845 $as_echo "no" >&6; }
   2846 fi
   2847 
   2848 
   2849 fi
   2850 if test -z "$ac_cv_prog_STRIP"; then
   2851   ac_ct_STRIP=$STRIP
   2852   # Extract the first word of "strip", so it can be a program name with args.
   2853 set dummy strip; ac_word=$2
   2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2855 $as_echo_n "checking for $ac_word... " >&6; }
   2856 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   2857   $as_echo_n "(cached) " >&6
   2858 else
   2859   if test -n "$ac_ct_STRIP"; then
   2860   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   2861 else
   2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2863 for as_dir in $PATH
   2864 do
   2865   IFS=$as_save_IFS
   2866   test -z "$as_dir" && as_dir=.
   2867     for ac_exec_ext in '' $ac_executable_extensions; do
   2868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2869     ac_cv_prog_ac_ct_STRIP="strip"
   2870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2871     break 2
   2872   fi
   2873 done
   2874   done
   2875 IFS=$as_save_IFS
   2876 
   2877 fi
   2878 fi
   2879 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   2880 if test -n "$ac_ct_STRIP"; then
   2881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   2882 $as_echo "$ac_ct_STRIP" >&6; }
   2883 else
   2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2885 $as_echo "no" >&6; }
   2886 fi
   2887 
   2888   if test "x$ac_ct_STRIP" = x; then
   2889     STRIP=":"
   2890   else
   2891     case $cross_compiling:$ac_tool_warned in
   2892 yes:)
   2893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2895 ac_tool_warned=yes ;;
   2896 esac
   2897     STRIP=$ac_ct_STRIP
   2898   fi
   2899 else
   2900   STRIP="$ac_cv_prog_STRIP"
   2901 fi
   2902 
   2903 fi
   2904 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   2905 
   2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   2907 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   2908 if test -z "$MKDIR_P"; then
   2909   if ${ac_cv_path_mkdir+:} false; then :
   2910   $as_echo_n "(cached) " >&6
   2911 else
   2912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2913 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   2914 do
   2915   IFS=$as_save_IFS
   2916   test -z "$as_dir" && as_dir=.
   2917     for ac_prog in mkdir gmkdir; do
   2918 	 for ac_exec_ext in '' $ac_executable_extensions; do
   2919 	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
   2920 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   2921 	     'mkdir (GNU coreutils) '* | \
   2922 	     'mkdir (coreutils) '* | \
   2923 	     'mkdir (fileutils) '4.1*)
   2924 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   2925 	       break 3;;
   2926 	   esac
   2927 	 done
   2928        done
   2929   done
   2930 IFS=$as_save_IFS
   2931 
   2932 fi
   2933 
   2934   test -d ./--version && rmdir ./--version
   2935   if test "${ac_cv_path_mkdir+set}" = set; then
   2936     MKDIR_P="$ac_cv_path_mkdir -p"
   2937   else
   2938     # As a last resort, use the slow shell script.  Don't cache a
   2939     # value for MKDIR_P within a source directory, because that will
   2940     # break other packages using the cache if that directory is
   2941     # removed, or if the value is a relative name.
   2942     MKDIR_P="$ac_install_sh -d"
   2943   fi
   2944 fi
   2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   2946 $as_echo "$MKDIR_P" >&6; }
   2947 
   2948 mkdir_p="$MKDIR_P"
   2949 case $mkdir_p in
   2950   [\\/$]* | ?:[\\/]*) ;;
   2951   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
   2952 esac
   2953 
   2954 for ac_prog in gawk mawk nawk awk
   2955 do
   2956   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2957 set dummy $ac_prog; ac_word=$2
   2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2959 $as_echo_n "checking for $ac_word... " >&6; }
   2960 if ${ac_cv_prog_AWK+:} false; then :
   2961   $as_echo_n "(cached) " >&6
   2962 else
   2963   if test -n "$AWK"; then
   2964   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2965 else
   2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2967 for as_dir in $PATH
   2968 do
   2969   IFS=$as_save_IFS
   2970   test -z "$as_dir" && as_dir=.
   2971     for ac_exec_ext in '' $ac_executable_extensions; do
   2972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2973     ac_cv_prog_AWK="$ac_prog"
   2974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2975     break 2
   2976   fi
   2977 done
   2978   done
   2979 IFS=$as_save_IFS
   2980 
   2981 fi
   2982 fi
   2983 AWK=$ac_cv_prog_AWK
   2984 if test -n "$AWK"; then
   2985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   2986 $as_echo "$AWK" >&6; }
   2987 else
   2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2989 $as_echo "no" >&6; }
   2990 fi
   2991 
   2992 
   2993   test -n "$AWK" && break
   2994 done
   2995 
   2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   2997 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   2998 set x ${MAKE-make}
   2999 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   3000 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   3001   $as_echo_n "(cached) " >&6
   3002 else
   3003   cat >conftest.make <<\_ACEOF
   3004 SHELL = /bin/sh
   3005 all:
   3006 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   3007 _ACEOF
   3008 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   3009 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   3010   *@@@%%%=?*=@@@%%%*)
   3011     eval ac_cv_prog_make_${ac_make}_set=yes;;
   3012   *)
   3013     eval ac_cv_prog_make_${ac_make}_set=no;;
   3014 esac
   3015 rm -f conftest.make
   3016 fi
   3017 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3019 $as_echo "yes" >&6; }
   3020   SET_MAKE=
   3021 else
   3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3023 $as_echo "no" >&6; }
   3024   SET_MAKE="MAKE=${MAKE-make}"
   3025 fi
   3026 
   3027 rm -rf .tst 2>/dev/null
   3028 mkdir .tst 2>/dev/null
   3029 if test -d .tst; then
   3030   am__leading_dot=.
   3031 else
   3032   am__leading_dot=_
   3033 fi
   3034 rmdir .tst 2>/dev/null
   3035 
   3036 if test "`cd $srcdir && pwd`" != "`pwd`"; then
   3037   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
   3038   # is not polluted with repeated "-I."
   3039   am__isrc=' -I$(srcdir)'
   3040   # test to see if srcdir already configured
   3041   if test -f $srcdir/config.status; then
   3042     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
   3043   fi
   3044 fi
   3045 
   3046 # test whether we have cygpath
   3047 if test -z "$CYGPATH_W"; then
   3048   if (cygpath --version) >/dev/null 2>/dev/null; then
   3049     CYGPATH_W='cygpath -w'
   3050   else
   3051     CYGPATH_W=echo
   3052   fi
   3053 fi
   3054 
   3055 
   3056 # Define the identity of the package.
   3057  PACKAGE='libevent'
   3058  VERSION='2.1.3-alpha-dev'
   3059 
   3060 
   3061 cat >>confdefs.h <<_ACEOF
   3062 #define PACKAGE "$PACKAGE"
   3063 _ACEOF
   3064 
   3065 
   3066 cat >>confdefs.h <<_ACEOF
   3067 #define VERSION "$VERSION"
   3068 _ACEOF
   3069 
   3070 # Some tools Automake needs.
   3071 
   3072 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   3073 
   3074 
   3075 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   3076 
   3077 
   3078 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   3079 
   3080 
   3081 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   3082 
   3083 
   3084 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   3085 
   3086 # We need awk for the "check" target.  The system "awk" is bad on
   3087 # some platforms.
   3088 # Always define AMTAR for backward compatibility.
   3089 
   3090 AMTAR=${AMTAR-"${am_missing_run}tar"}
   3091 
   3092 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
   3093 
   3094 
   3095 
   3096 
   3097 
   3098 # Check whether --enable-silent-rules was given.
   3099 if test "${enable_silent_rules+set}" = set; then :
   3100   enableval=$enable_silent_rules;
   3101 fi
   3102 
   3103 case $enable_silent_rules in
   3104 yes) AM_DEFAULT_VERBOSITY=0;;
   3105 no)  AM_DEFAULT_VERBOSITY=1;;
   3106 *)   AM_DEFAULT_VERBOSITY=0;;
   3107 esac
   3108 AM_BACKSLASH='\'
   3109 
   3110 ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
   3111 
   3112 
   3113 $as_echo "#define NUMERIC_VERSION 0x02010301" >>confdefs.h
   3114 
   3115 
   3116 if test "$prefix" = "NONE"; then
   3117    prefix="/usr/local"
   3118 fi
   3119 
   3120 
   3121 # Make sure we can run config.sub.
   3122 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   3123   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   3124 
   3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   3126 $as_echo_n "checking build system type... " >&6; }
   3127 if ${ac_cv_build+:} false; then :
   3128   $as_echo_n "(cached) " >&6
   3129 else
   3130   ac_build_alias=$build_alias
   3131 test "x$ac_build_alias" = x &&
   3132   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   3133 test "x$ac_build_alias" = x &&
   3134   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   3135 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   3136   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   3137 
   3138 fi
   3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   3140 $as_echo "$ac_cv_build" >&6; }
   3141 case $ac_cv_build in
   3142 *-*-*) ;;
   3143 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   3144 esac
   3145 build=$ac_cv_build
   3146 ac_save_IFS=$IFS; IFS='-'
   3147 set x $ac_cv_build
   3148 shift
   3149 build_cpu=$1
   3150 build_vendor=$2
   3151 shift; shift
   3152 # Remember, the first character of IFS is used to create $*,
   3153 # except with old shells:
   3154 build_os=$*
   3155 IFS=$ac_save_IFS
   3156 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   3157 
   3158 
   3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   3160 $as_echo_n "checking host system type... " >&6; }
   3161 if ${ac_cv_host+:} false; then :
   3162   $as_echo_n "(cached) " >&6
   3163 else
   3164   if test "x$host_alias" = x; then
   3165   ac_cv_host=$ac_cv_build
   3166 else
   3167   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   3168     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   3169 fi
   3170 
   3171 fi
   3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   3173 $as_echo "$ac_cv_host" >&6; }
   3174 case $ac_cv_host in
   3175 *-*-*) ;;
   3176 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   3177 esac
   3178 host=$ac_cv_host
   3179 ac_save_IFS=$IFS; IFS='-'
   3180 set x $ac_cv_host
   3181 shift
   3182 host_cpu=$1
   3183 host_vendor=$2
   3184 shift; shift
   3185 # Remember, the first character of IFS is used to create $*,
   3186 # except with old shells:
   3187 host_os=$*
   3188 IFS=$ac_save_IFS
   3189 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   3190 
   3191 
   3192 DEPDIR="${am__leading_dot}deps"
   3193 
   3194 ac_config_commands="$ac_config_commands depfiles"
   3195 
   3196 
   3197 am_make=${MAKE-make}
   3198 cat > confinc << 'END'
   3199 am__doit:
   3200 	@echo this is the am__doit target
   3201 .PHONY: am__doit
   3202 END
   3203 # If we don't find an include directive, just comment out the code.
   3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
   3205 $as_echo_n "checking for style of include used by $am_make... " >&6; }
   3206 am__include="#"
   3207 am__quote=
   3208 _am_result=none
   3209 # First try GNU make style include.
   3210 echo "include confinc" > confmf
   3211 # Ignore all kinds of additional output from `make'.
   3212 case `$am_make -s -f confmf 2> /dev/null` in #(
   3213 *the\ am__doit\ target*)
   3214   am__include=include
   3215   am__quote=
   3216   _am_result=GNU
   3217   ;;
   3218 esac
   3219 # Now try BSD make style include.
   3220 if test "$am__include" = "#"; then
   3221    echo '.include "confinc"' > confmf
   3222    case `$am_make -s -f confmf 2> /dev/null` in #(
   3223    *the\ am__doit\ target*)
   3224      am__include=.include
   3225      am__quote="\""
   3226      _am_result=BSD
   3227      ;;
   3228    esac
   3229 fi
   3230 
   3231 
   3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
   3233 $as_echo "$_am_result" >&6; }
   3234 rm -f confinc confmf
   3235 
   3236 # Check whether --enable-dependency-tracking was given.
   3237 if test "${enable_dependency_tracking+set}" = set; then :
   3238   enableval=$enable_dependency_tracking;
   3239 fi
   3240 
   3241 if test "x$enable_dependency_tracking" != xno; then
   3242   am_depcomp="$ac_aux_dir/depcomp"
   3243   AMDEPBACKSLASH='\'
   3244 fi
   3245  if test "x$enable_dependency_tracking" != xno; then
   3246   AMDEP_TRUE=
   3247   AMDEP_FALSE='#'
   3248 else
   3249   AMDEP_TRUE='#'
   3250   AMDEP_FALSE=
   3251 fi
   3252 
   3253 
   3254 ac_ext=c
   3255 ac_cpp='$CPP $CPPFLAGS'
   3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3259 if test -n "$ac_tool_prefix"; then
   3260   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3261 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3263 $as_echo_n "checking for $ac_word... " >&6; }
   3264 if ${ac_cv_prog_CC+:} false; then :
   3265   $as_echo_n "(cached) " >&6
   3266 else
   3267   if test -n "$CC"; then
   3268   ac_cv_prog_CC="$CC" # Let the user override the test.
   3269 else
   3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3271 for as_dir in $PATH
   3272 do
   3273   IFS=$as_save_IFS
   3274   test -z "$as_dir" && as_dir=.
   3275     for ac_exec_ext in '' $ac_executable_extensions; do
   3276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3277     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3279     break 2
   3280   fi
   3281 done
   3282   done
   3283 IFS=$as_save_IFS
   3284 
   3285 fi
   3286 fi
   3287 CC=$ac_cv_prog_CC
   3288 if test -n "$CC"; then
   3289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3290 $as_echo "$CC" >&6; }
   3291 else
   3292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3293 $as_echo "no" >&6; }
   3294 fi
   3295 
   3296 
   3297 fi
   3298 if test -z "$ac_cv_prog_CC"; then
   3299   ac_ct_CC=$CC
   3300   # Extract the first word of "gcc", so it can be a program name with args.
   3301 set dummy gcc; ac_word=$2
   3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3303 $as_echo_n "checking for $ac_word... " >&6; }
   3304 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3305   $as_echo_n "(cached) " >&6
   3306 else
   3307   if test -n "$ac_ct_CC"; then
   3308   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3309 else
   3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3311 for as_dir in $PATH
   3312 do
   3313   IFS=$as_save_IFS
   3314   test -z "$as_dir" && as_dir=.
   3315     for ac_exec_ext in '' $ac_executable_extensions; do
   3316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3317     ac_cv_prog_ac_ct_CC="gcc"
   3318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3319     break 2
   3320   fi
   3321 done
   3322   done
   3323 IFS=$as_save_IFS
   3324 
   3325 fi
   3326 fi
   3327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3328 if test -n "$ac_ct_CC"; then
   3329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3330 $as_echo "$ac_ct_CC" >&6; }
   3331 else
   3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3333 $as_echo "no" >&6; }
   3334 fi
   3335 
   3336   if test "x$ac_ct_CC" = x; then
   3337     CC=""
   3338   else
   3339     case $cross_compiling:$ac_tool_warned in
   3340 yes:)
   3341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3343 ac_tool_warned=yes ;;
   3344 esac
   3345     CC=$ac_ct_CC
   3346   fi
   3347 else
   3348   CC="$ac_cv_prog_CC"
   3349 fi
   3350 
   3351 if test -z "$CC"; then
   3352           if test -n "$ac_tool_prefix"; then
   3353     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3354 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3356 $as_echo_n "checking for $ac_word... " >&6; }
   3357 if ${ac_cv_prog_CC+:} false; then :
   3358   $as_echo_n "(cached) " >&6
   3359 else
   3360   if test -n "$CC"; then
   3361   ac_cv_prog_CC="$CC" # Let the user override the test.
   3362 else
   3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3364 for as_dir in $PATH
   3365 do
   3366   IFS=$as_save_IFS
   3367   test -z "$as_dir" && as_dir=.
   3368     for ac_exec_ext in '' $ac_executable_extensions; do
   3369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3370     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3372     break 2
   3373   fi
   3374 done
   3375   done
   3376 IFS=$as_save_IFS
   3377 
   3378 fi
   3379 fi
   3380 CC=$ac_cv_prog_CC
   3381 if test -n "$CC"; then
   3382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3383 $as_echo "$CC" >&6; }
   3384 else
   3385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3386 $as_echo "no" >&6; }
   3387 fi
   3388 
   3389 
   3390   fi
   3391 fi
   3392 if test -z "$CC"; then
   3393   # Extract the first word of "cc", so it can be a program name with args.
   3394 set dummy cc; ac_word=$2
   3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3396 $as_echo_n "checking for $ac_word... " >&6; }
   3397 if ${ac_cv_prog_CC+:} false; then :
   3398   $as_echo_n "(cached) " >&6
   3399 else
   3400   if test -n "$CC"; then
   3401   ac_cv_prog_CC="$CC" # Let the user override the test.
   3402 else
   3403   ac_prog_rejected=no
   3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3405 for as_dir in $PATH
   3406 do
   3407   IFS=$as_save_IFS
   3408   test -z "$as_dir" && as_dir=.
   3409     for ac_exec_ext in '' $ac_executable_extensions; do
   3410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3411     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3412        ac_prog_rejected=yes
   3413        continue
   3414      fi
   3415     ac_cv_prog_CC="cc"
   3416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3417     break 2
   3418   fi
   3419 done
   3420   done
   3421 IFS=$as_save_IFS
   3422 
   3423 if test $ac_prog_rejected = yes; then
   3424   # We found a bogon in the path, so make sure we never use it.
   3425   set dummy $ac_cv_prog_CC
   3426   shift
   3427   if test $# != 0; then
   3428     # We chose a different compiler from the bogus one.
   3429     # However, it has the same basename, so the bogon will be chosen
   3430     # first if we set CC to just the basename; use the full file name.
   3431     shift
   3432     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3433   fi
   3434 fi
   3435 fi
   3436 fi
   3437 CC=$ac_cv_prog_CC
   3438 if test -n "$CC"; then
   3439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3440 $as_echo "$CC" >&6; }
   3441 else
   3442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3443 $as_echo "no" >&6; }
   3444 fi
   3445 
   3446 
   3447 fi
   3448 if test -z "$CC"; then
   3449   if test -n "$ac_tool_prefix"; then
   3450   for ac_prog in cl.exe
   3451   do
   3452     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3455 $as_echo_n "checking for $ac_word... " >&6; }
   3456 if ${ac_cv_prog_CC+:} false; then :
   3457   $as_echo_n "(cached) " >&6
   3458 else
   3459   if test -n "$CC"; then
   3460   ac_cv_prog_CC="$CC" # Let the user override the test.
   3461 else
   3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3463 for as_dir in $PATH
   3464 do
   3465   IFS=$as_save_IFS
   3466   test -z "$as_dir" && as_dir=.
   3467     for ac_exec_ext in '' $ac_executable_extensions; do
   3468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3469     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3471     break 2
   3472   fi
   3473 done
   3474   done
   3475 IFS=$as_save_IFS
   3476 
   3477 fi
   3478 fi
   3479 CC=$ac_cv_prog_CC
   3480 if test -n "$CC"; then
   3481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3482 $as_echo "$CC" >&6; }
   3483 else
   3484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3485 $as_echo "no" >&6; }
   3486 fi
   3487 
   3488 
   3489     test -n "$CC" && break
   3490   done
   3491 fi
   3492 if test -z "$CC"; then
   3493   ac_ct_CC=$CC
   3494   for ac_prog in cl.exe
   3495 do
   3496   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3497 set dummy $ac_prog; ac_word=$2
   3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3499 $as_echo_n "checking for $ac_word... " >&6; }
   3500 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3501   $as_echo_n "(cached) " >&6
   3502 else
   3503   if test -n "$ac_ct_CC"; then
   3504   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3505 else
   3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3507 for as_dir in $PATH
   3508 do
   3509   IFS=$as_save_IFS
   3510   test -z "$as_dir" && as_dir=.
   3511     for ac_exec_ext in '' $ac_executable_extensions; do
   3512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3513     ac_cv_prog_ac_ct_CC="$ac_prog"
   3514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3515     break 2
   3516   fi
   3517 done
   3518   done
   3519 IFS=$as_save_IFS
   3520 
   3521 fi
   3522 fi
   3523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3524 if test -n "$ac_ct_CC"; then
   3525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3526 $as_echo "$ac_ct_CC" >&6; }
   3527 else
   3528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3529 $as_echo "no" >&6; }
   3530 fi
   3531 
   3532 
   3533   test -n "$ac_ct_CC" && break
   3534 done
   3535 
   3536   if test "x$ac_ct_CC" = x; then
   3537     CC=""
   3538   else
   3539     case $cross_compiling:$ac_tool_warned in
   3540 yes:)
   3541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3543 ac_tool_warned=yes ;;
   3544 esac
   3545     CC=$ac_ct_CC
   3546   fi
   3547 fi
   3548 
   3549 fi
   3550 
   3551 
   3552 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3554 as_fn_error $? "no acceptable C compiler found in \$PATH
   3555 See \`config.log' for more details" "$LINENO" 5; }
   3556 
   3557 # Provide some information about the compiler.
   3558 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3559 set X $ac_compile
   3560 ac_compiler=$2
   3561 for ac_option in --version -v -V -qversion; do
   3562   { { ac_try="$ac_compiler $ac_option >&5"
   3563 case "(($ac_try" in
   3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3565   *) ac_try_echo=$ac_try;;
   3566 esac
   3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3568 $as_echo "$ac_try_echo"; } >&5
   3569   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3570   ac_status=$?
   3571   if test -s conftest.err; then
   3572     sed '10a\
   3573 ... rest of stderr output deleted ...
   3574          10q' conftest.err >conftest.er1
   3575     cat conftest.er1 >&5
   3576   fi
   3577   rm -f conftest.er1 conftest.err
   3578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3579   test $ac_status = 0; }
   3580 done
   3581 
   3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3583 /* end confdefs.h.  */
   3584 
   3585 int
   3586 main ()
   3587 {
   3588 
   3589   ;
   3590   return 0;
   3591 }
   3592 _ACEOF
   3593 ac_clean_files_save=$ac_clean_files
   3594 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3595 # Try to create an executable without -o first, disregard a.out.
   3596 # It will help us diagnose broken compilers, and finding out an intuition
   3597 # of exeext.
   3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3599 $as_echo_n "checking whether the C compiler works... " >&6; }
   3600 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3601 
   3602 # The possible output files:
   3603 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3604 
   3605 ac_rmfiles=
   3606 for ac_file in $ac_files
   3607 do
   3608   case $ac_file in
   3609     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3610     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3611   esac
   3612 done
   3613 rm -f $ac_rmfiles
   3614 
   3615 if { { ac_try="$ac_link_default"
   3616 case "(($ac_try" in
   3617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3618   *) ac_try_echo=$ac_try;;
   3619 esac
   3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3621 $as_echo "$ac_try_echo"; } >&5
   3622   (eval "$ac_link_default") 2>&5
   3623   ac_status=$?
   3624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3625   test $ac_status = 0; }; then :
   3626   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3627 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3628 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3629 # so that the user can short-circuit this test for compilers unknown to
   3630 # Autoconf.
   3631 for ac_file in $ac_files ''
   3632 do
   3633   test -f "$ac_file" || continue
   3634   case $ac_file in
   3635     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3636 	;;
   3637     [ab].out )
   3638 	# We found the default executable, but exeext='' is most
   3639 	# certainly right.
   3640 	break;;
   3641     *.* )
   3642 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3643 	then :; else
   3644 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3645 	fi
   3646 	# We set ac_cv_exeext here because the later test for it is not
   3647 	# safe: cross compilers may not add the suffix if given an `-o'
   3648 	# argument, so we may need to know it at that point already.
   3649 	# Even if this section looks crufty: it has the advantage of
   3650 	# actually working.
   3651 	break;;
   3652     * )
   3653 	break;;
   3654   esac
   3655 done
   3656 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3657 
   3658 else
   3659   ac_file=''
   3660 fi
   3661 if test -z "$ac_file"; then :
   3662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3663 $as_echo "no" >&6; }
   3664 $as_echo "$as_me: failed program was:" >&5
   3665 sed 's/^/| /' conftest.$ac_ext >&5
   3666 
   3667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3669 as_fn_error 77 "C compiler cannot create executables
   3670 See \`config.log' for more details" "$LINENO" 5; }
   3671 else
   3672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3673 $as_echo "yes" >&6; }
   3674 fi
   3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3676 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3678 $as_echo "$ac_file" >&6; }
   3679 ac_exeext=$ac_cv_exeext
   3680 
   3681 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3682 ac_clean_files=$ac_clean_files_save
   3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3684 $as_echo_n "checking for suffix of executables... " >&6; }
   3685 if { { ac_try="$ac_link"
   3686 case "(($ac_try" in
   3687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3688   *) ac_try_echo=$ac_try;;
   3689 esac
   3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3691 $as_echo "$ac_try_echo"; } >&5
   3692   (eval "$ac_link") 2>&5
   3693   ac_status=$?
   3694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3695   test $ac_status = 0; }; then :
   3696   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3697 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3698 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3699 # `rm'.
   3700 for ac_file in conftest.exe conftest conftest.*; do
   3701   test -f "$ac_file" || continue
   3702   case $ac_file in
   3703     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3704     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3705 	  break;;
   3706     * ) break;;
   3707   esac
   3708 done
   3709 else
   3710   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3712 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3713 See \`config.log' for more details" "$LINENO" 5; }
   3714 fi
   3715 rm -f conftest conftest$ac_cv_exeext
   3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3717 $as_echo "$ac_cv_exeext" >&6; }
   3718 
   3719 rm -f conftest.$ac_ext
   3720 EXEEXT=$ac_cv_exeext
   3721 ac_exeext=$EXEEXT
   3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3723 /* end confdefs.h.  */
   3724 #include <stdio.h>
   3725 int
   3726 main ()
   3727 {
   3728 FILE *f = fopen ("conftest.out", "w");
   3729  return ferror (f) || fclose (f) != 0;
   3730 
   3731   ;
   3732   return 0;
   3733 }
   3734 _ACEOF
   3735 ac_clean_files="$ac_clean_files conftest.out"
   3736 # Check that the compiler produces executables we can run.  If not, either
   3737 # the compiler is broken, or we cross compile.
   3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3739 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3740 if test "$cross_compiling" != yes; then
   3741   { { ac_try="$ac_link"
   3742 case "(($ac_try" in
   3743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3744   *) ac_try_echo=$ac_try;;
   3745 esac
   3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3747 $as_echo "$ac_try_echo"; } >&5
   3748   (eval "$ac_link") 2>&5
   3749   ac_status=$?
   3750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3751   test $ac_status = 0; }
   3752   if { ac_try='./conftest$ac_cv_exeext'
   3753   { { case "(($ac_try" in
   3754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3755   *) ac_try_echo=$ac_try;;
   3756 esac
   3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3758 $as_echo "$ac_try_echo"; } >&5
   3759   (eval "$ac_try") 2>&5
   3760   ac_status=$?
   3761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3762   test $ac_status = 0; }; }; then
   3763     cross_compiling=no
   3764   else
   3765     if test "$cross_compiling" = maybe; then
   3766 	cross_compiling=yes
   3767     else
   3768 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3770 as_fn_error $? "cannot run C compiled programs.
   3771 If you meant to cross compile, use \`--host'.
   3772 See \`config.log' for more details" "$LINENO" 5; }
   3773     fi
   3774   fi
   3775 fi
   3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3777 $as_echo "$cross_compiling" >&6; }
   3778 
   3779 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3780 ac_clean_files=$ac_clean_files_save
   3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3782 $as_echo_n "checking for suffix of object files... " >&6; }
   3783 if ${ac_cv_objext+:} false; then :
   3784   $as_echo_n "(cached) " >&6
   3785 else
   3786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3787 /* end confdefs.h.  */
   3788 
   3789 int
   3790 main ()
   3791 {
   3792 
   3793   ;
   3794   return 0;
   3795 }
   3796 _ACEOF
   3797 rm -f conftest.o conftest.obj
   3798 if { { ac_try="$ac_compile"
   3799 case "(($ac_try" in
   3800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3801   *) ac_try_echo=$ac_try;;
   3802 esac
   3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3804 $as_echo "$ac_try_echo"; } >&5
   3805   (eval "$ac_compile") 2>&5
   3806   ac_status=$?
   3807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3808   test $ac_status = 0; }; then :
   3809   for ac_file in conftest.o conftest.obj conftest.*; do
   3810   test -f "$ac_file" || continue;
   3811   case $ac_file in
   3812     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3813     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3814        break;;
   3815   esac
   3816 done
   3817 else
   3818   $as_echo "$as_me: failed program was:" >&5
   3819 sed 's/^/| /' conftest.$ac_ext >&5
   3820 
   3821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3823 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3824 See \`config.log' for more details" "$LINENO" 5; }
   3825 fi
   3826 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3827 fi
   3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3829 $as_echo "$ac_cv_objext" >&6; }
   3830 OBJEXT=$ac_cv_objext
   3831 ac_objext=$OBJEXT
   3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3833 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3834 if ${ac_cv_c_compiler_gnu+:} false; then :
   3835   $as_echo_n "(cached) " >&6
   3836 else
   3837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3838 /* end confdefs.h.  */
   3839 
   3840 int
   3841 main ()
   3842 {
   3843 #ifndef __GNUC__
   3844        choke me
   3845 #endif
   3846 
   3847   ;
   3848   return 0;
   3849 }
   3850 _ACEOF
   3851 if ac_fn_c_try_compile "$LINENO"; then :
   3852   ac_compiler_gnu=yes
   3853 else
   3854   ac_compiler_gnu=no
   3855 fi
   3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3858 
   3859 fi
   3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3861 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3862 if test $ac_compiler_gnu = yes; then
   3863   GCC=yes
   3864 else
   3865   GCC=
   3866 fi
   3867 ac_test_CFLAGS=${CFLAGS+set}
   3868 ac_save_CFLAGS=$CFLAGS
   3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3870 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3871 if ${ac_cv_prog_cc_g+:} false; then :
   3872   $as_echo_n "(cached) " >&6
   3873 else
   3874   ac_save_c_werror_flag=$ac_c_werror_flag
   3875    ac_c_werror_flag=yes
   3876    ac_cv_prog_cc_g=no
   3877    CFLAGS="-g"
   3878    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3879 /* end confdefs.h.  */
   3880 
   3881 int
   3882 main ()
   3883 {
   3884 
   3885   ;
   3886   return 0;
   3887 }
   3888 _ACEOF
   3889 if ac_fn_c_try_compile "$LINENO"; then :
   3890   ac_cv_prog_cc_g=yes
   3891 else
   3892   CFLAGS=""
   3893       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3894 /* end confdefs.h.  */
   3895 
   3896 int
   3897 main ()
   3898 {
   3899 
   3900   ;
   3901   return 0;
   3902 }
   3903 _ACEOF
   3904 if ac_fn_c_try_compile "$LINENO"; then :
   3905 
   3906 else
   3907   ac_c_werror_flag=$ac_save_c_werror_flag
   3908 	 CFLAGS="-g"
   3909 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3910 /* end confdefs.h.  */
   3911 
   3912 int
   3913 main ()
   3914 {
   3915 
   3916   ;
   3917   return 0;
   3918 }
   3919 _ACEOF
   3920 if ac_fn_c_try_compile "$LINENO"; then :
   3921   ac_cv_prog_cc_g=yes
   3922 fi
   3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3924 fi
   3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3926 fi
   3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3928    ac_c_werror_flag=$ac_save_c_werror_flag
   3929 fi
   3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3931 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3932 if test "$ac_test_CFLAGS" = set; then
   3933   CFLAGS=$ac_save_CFLAGS
   3934 elif test $ac_cv_prog_cc_g = yes; then
   3935   if test "$GCC" = yes; then
   3936     CFLAGS="-g -O2"
   3937   else
   3938     CFLAGS="-g"
   3939   fi
   3940 else
   3941   if test "$GCC" = yes; then
   3942     CFLAGS="-O2"
   3943   else
   3944     CFLAGS=
   3945   fi
   3946 fi
   3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3948 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3949 if ${ac_cv_prog_cc_c89+:} false; then :
   3950   $as_echo_n "(cached) " >&6
   3951 else
   3952   ac_cv_prog_cc_c89=no
   3953 ac_save_CC=$CC
   3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3955 /* end confdefs.h.  */
   3956 #include <stdarg.h>
   3957 #include <stdio.h>
   3958 #include <sys/types.h>
   3959 #include <sys/stat.h>
   3960 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3961 struct buf { int x; };
   3962 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3963 static char *e (p, i)
   3964      char **p;
   3965      int i;
   3966 {
   3967   return p[i];
   3968 }
   3969 static char *f (char * (*g) (char **, int), char **p, ...)
   3970 {
   3971   char *s;
   3972   va_list v;
   3973   va_start (v,p);
   3974   s = g (p, va_arg (v,int));
   3975   va_end (v);
   3976   return s;
   3977 }
   3978 
   3979 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3980    function prototypes and stuff, but not '\xHH' hex character constants.
   3981    These don't provoke an error unfortunately, instead are silently treated
   3982    as 'x'.  The following induces an error, until -std is added to get
   3983    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3984    array size at least.  It's necessary to write '\x00'==0 to get something
   3985    that's true only with -std.  */
   3986 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3987 
   3988 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3989    inside strings and character constants.  */
   3990 #define FOO(x) 'x'
   3991 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3992 
   3993 int test (int i, double x);
   3994 struct s1 {int (*f) (int a);};
   3995 struct s2 {int (*f) (double a);};
   3996 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3997 int argc;
   3998 char **argv;
   3999 int
   4000 main ()
   4001 {
   4002 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4003   ;
   4004   return 0;
   4005 }
   4006 _ACEOF
   4007 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   4008 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4009 do
   4010   CC="$ac_save_CC $ac_arg"
   4011   if ac_fn_c_try_compile "$LINENO"; then :
   4012   ac_cv_prog_cc_c89=$ac_arg
   4013 fi
   4014 rm -f core conftest.err conftest.$ac_objext
   4015   test "x$ac_cv_prog_cc_c89" != "xno" && break
   4016 done
   4017 rm -f conftest.$ac_ext
   4018 CC=$ac_save_CC
   4019 
   4020 fi
   4021 # AC_CACHE_VAL
   4022 case "x$ac_cv_prog_cc_c89" in
   4023   x)
   4024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4025 $as_echo "none needed" >&6; } ;;
   4026   xno)
   4027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4028 $as_echo "unsupported" >&6; } ;;
   4029   *)
   4030     CC="$CC $ac_cv_prog_cc_c89"
   4031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   4032 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   4033 esac
   4034 if test "x$ac_cv_prog_cc_c89" != xno; then :
   4035 
   4036 fi
   4037 
   4038 ac_ext=c
   4039 ac_cpp='$CPP $CPPFLAGS'
   4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4043 
   4044 depcc="$CC"   am_compiler_list=
   4045 
   4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   4047 $as_echo_n "checking dependency style of $depcc... " >&6; }
   4048 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
   4049   $as_echo_n "(cached) " >&6
   4050 else
   4051   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   4052   # We make a subdir and do the tests there.  Otherwise we can end up
   4053   # making bogus files that we don't know about and never remove.  For
   4054   # instance it was reported that on HP-UX the gcc test will end up
   4055   # making a dummy file named `D' -- because `-MD' means `put the output
   4056   # in D'.
   4057   mkdir conftest.dir
   4058   # Copy depcomp to subdir because otherwise we won't find it if we're
   4059   # using a relative directory.
   4060   cp "$am_depcomp" conftest.dir
   4061   cd conftest.dir
   4062   # We will build objects and dependencies in a subdirectory because
   4063   # it helps to detect inapplicable dependency modes.  For instance
   4064   # both Tru64's cc and ICC support -MD to output dependencies as a
   4065   # side effect of compilation, but ICC will put the dependencies in
   4066   # the current directory while Tru64 will put them in the object
   4067   # directory.
   4068   mkdir sub
   4069 
   4070   am_cv_CC_dependencies_compiler_type=none
   4071   if test "$am_compiler_list" = ""; then
   4072      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   4073   fi
   4074   am__universal=false
   4075   case " $depcc " in #(
   4076      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   4077      esac
   4078 
   4079   for depmode in $am_compiler_list; do
   4080     # Setup a source with many dependencies, because some compilers
   4081     # like to wrap large dependency lists on column 80 (with \), and
   4082     # we should not choose a depcomp mode which is confused by this.
   4083     #
   4084     # We need to recreate these files for each test, as the compiler may
   4085     # overwrite some of them when testing with obscure command lines.
   4086     # This happens at least with the AIX C compiler.
   4087     : > sub/conftest.c
   4088     for i in 1 2 3 4 5 6; do
   4089       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   4090       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
   4091       # Solaris 8's {/usr,}/bin/sh.
   4092       touch sub/conftst$i.h
   4093     done
   4094     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   4095 
   4096     # We check with `-c' and `-o' for the sake of the "dashmstdout"
   4097     # mode.  It turns out that the SunPro C++ compiler does not properly
   4098     # handle `-M -o', and we need to detect this.  Also, some Intel
   4099     # versions had trouble with output in subdirs
   4100     am__obj=sub/conftest.${OBJEXT-o}
   4101     am__minus_obj="-o $am__obj"
   4102     case $depmode in
   4103     gcc)
   4104       # This depmode causes a compiler race in universal mode.
   4105       test "$am__universal" = false || continue
   4106       ;;
   4107     nosideeffect)
   4108       # after this tag, mechanisms are not by side-effect, so they'll
   4109       # only be used when explicitly requested
   4110       if test "x$enable_dependency_tracking" = xyes; then
   4111 	continue
   4112       else
   4113 	break
   4114       fi
   4115       ;;
   4116     msvisualcpp | msvcmsys)
   4117       # This compiler won't grok `-c -o', but also, the minuso test has
   4118       # not run yet.  These depmodes are late enough in the game, and
   4119       # so weak that their functioning should not be impacted.
   4120       am__obj=conftest.${OBJEXT-o}
   4121       am__minus_obj=
   4122       ;;
   4123     none) break ;;
   4124     esac
   4125     if depmode=$depmode \
   4126        source=sub/conftest.c object=$am__obj \
   4127        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   4128        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   4129          >/dev/null 2>conftest.err &&
   4130        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   4131        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   4132        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   4133        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   4134       # icc doesn't choke on unknown options, it will just issue warnings
   4135       # or remarks (even with -Werror).  So we grep stderr for any message
   4136       # that says an option was ignored or not supported.
   4137       # When given -MP, icc 7.0 and 7.1 complain thusly:
   4138       #   icc: Command line warning: ignoring option '-M'; no argument required
   4139       # The diagnosis changed in icc 8.0:
   4140       #   icc: Command line remark: option '-MP' not supported
   4141       if (grep 'ignoring option' conftest.err ||
   4142           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   4143         am_cv_CC_dependencies_compiler_type=$depmode
   4144         break
   4145       fi
   4146     fi
   4147   done
   4148 
   4149   cd ..
   4150   rm -rf conftest.dir
   4151 else
   4152   am_cv_CC_dependencies_compiler_type=none
   4153 fi
   4154 
   4155 fi
   4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   4157 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   4158 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   4159 
   4160  if
   4161   test "x$enable_dependency_tracking" != xno \
   4162   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   4163   am__fastdepCC_TRUE=
   4164   am__fastdepCC_FALSE='#'
   4165 else
   4166   am__fastdepCC_TRUE='#'
   4167   am__fastdepCC_FALSE=
   4168 fi
   4169 
   4170 
   4171 
   4172 ac_ext=c
   4173 ac_cpp='$CPP $CPPFLAGS'
   4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   4178 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   4179 # On Suns, sometimes $CPP names a directory.
   4180 if test -n "$CPP" && test -d "$CPP"; then
   4181   CPP=
   4182 fi
   4183 if test -z "$CPP"; then
   4184   if ${ac_cv_prog_CPP+:} false; then :
   4185   $as_echo_n "(cached) " >&6
   4186 else
   4187       # Double quotes because CPP needs to be expanded
   4188     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4189     do
   4190       ac_preproc_ok=false
   4191 for ac_c_preproc_warn_flag in '' yes
   4192 do
   4193   # Use a header file that comes with gcc, so configuring glibc
   4194   # with a fresh cross-compiler works.
   4195   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4196   # <limits.h> exists even on freestanding compilers.
   4197   # On the NeXT, cc -E runs the code through the compiler's parser,
   4198   # not just through cpp. "Syntax error" is here to catch this case.
   4199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4200 /* end confdefs.h.  */
   4201 #ifdef __STDC__
   4202 # include <limits.h>
   4203 #else
   4204 # include <assert.h>
   4205 #endif
   4206 		     Syntax error
   4207 _ACEOF
   4208 if ac_fn_c_try_cpp "$LINENO"; then :
   4209 
   4210 else
   4211   # Broken: fails on valid input.
   4212 continue
   4213 fi
   4214 rm -f conftest.err conftest.i conftest.$ac_ext
   4215 
   4216   # OK, works on sane cases.  Now check whether nonexistent headers
   4217   # can be detected and how.
   4218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4219 /* end confdefs.h.  */
   4220 #include <ac_nonexistent.h>
   4221 _ACEOF
   4222 if ac_fn_c_try_cpp "$LINENO"; then :
   4223   # Broken: success on invalid input.
   4224 continue
   4225 else
   4226   # Passes both tests.
   4227 ac_preproc_ok=:
   4228 break
   4229 fi
   4230 rm -f conftest.err conftest.i conftest.$ac_ext
   4231 
   4232 done
   4233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4234 rm -f conftest.i conftest.err conftest.$ac_ext
   4235 if $ac_preproc_ok; then :
   4236   break
   4237 fi
   4238 
   4239     done
   4240     ac_cv_prog_CPP=$CPP
   4241 
   4242 fi
   4243   CPP=$ac_cv_prog_CPP
   4244 else
   4245   ac_cv_prog_CPP=$CPP
   4246 fi
   4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   4248 $as_echo "$CPP" >&6; }
   4249 ac_preproc_ok=false
   4250 for ac_c_preproc_warn_flag in '' yes
   4251 do
   4252   # Use a header file that comes with gcc, so configuring glibc
   4253   # with a fresh cross-compiler works.
   4254   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4255   # <limits.h> exists even on freestanding compilers.
   4256   # On the NeXT, cc -E runs the code through the compiler's parser,
   4257   # not just through cpp. "Syntax error" is here to catch this case.
   4258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4259 /* end confdefs.h.  */
   4260 #ifdef __STDC__
   4261 # include <limits.h>
   4262 #else
   4263 # include <assert.h>
   4264 #endif
   4265 		     Syntax error
   4266 _ACEOF
   4267 if ac_fn_c_try_cpp "$LINENO"; then :
   4268 
   4269 else
   4270   # Broken: fails on valid input.
   4271 continue
   4272 fi
   4273 rm -f conftest.err conftest.i conftest.$ac_ext
   4274 
   4275   # OK, works on sane cases.  Now check whether nonexistent headers
   4276   # can be detected and how.
   4277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4278 /* end confdefs.h.  */
   4279 #include <ac_nonexistent.h>
   4280 _ACEOF
   4281 if ac_fn_c_try_cpp "$LINENO"; then :
   4282   # Broken: success on invalid input.
   4283 continue
   4284 else
   4285   # Passes both tests.
   4286 ac_preproc_ok=:
   4287 break
   4288 fi
   4289 rm -f conftest.err conftest.i conftest.$ac_ext
   4290 
   4291 done
   4292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4293 rm -f conftest.i conftest.err conftest.$ac_ext
   4294 if $ac_preproc_ok; then :
   4295 
   4296 else
   4297   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4299 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   4300 See \`config.log' for more details" "$LINENO" 5; }
   4301 fi
   4302 
   4303 ac_ext=c
   4304 ac_cpp='$CPP $CPPFLAGS'
   4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4308 
   4309 
   4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4311 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   4312 if ${ac_cv_path_GREP+:} false; then :
   4313   $as_echo_n "(cached) " >&6
   4314 else
   4315   if test -z "$GREP"; then
   4316   ac_path_GREP_found=false
   4317   # Loop through the user's path and test for each of PROGNAME-LIST
   4318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4320 do
   4321   IFS=$as_save_IFS
   4322   test -z "$as_dir" && as_dir=.
   4323     for ac_prog in grep ggrep; do
   4324     for ac_exec_ext in '' $ac_executable_extensions; do
   4325       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   4326       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   4327 # Check for GNU ac_path_GREP and select it if it is found.
   4328   # Check for GNU $ac_path_GREP
   4329 case `"$ac_path_GREP" --version 2>&1` in
   4330 *GNU*)
   4331   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4332 *)
   4333   ac_count=0
   4334   $as_echo_n 0123456789 >"conftest.in"
   4335   while :
   4336   do
   4337     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4338     mv "conftest.tmp" "conftest.in"
   4339     cp "conftest.in" "conftest.nl"
   4340     $as_echo 'GREP' >> "conftest.nl"
   4341     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4342     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4343     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4344     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4345       # Best one so far, save it but keep looking for a better one
   4346       ac_cv_path_GREP="$ac_path_GREP"
   4347       ac_path_GREP_max=$ac_count
   4348     fi
   4349     # 10*(2^10) chars as input seems more than enough
   4350     test $ac_count -gt 10 && break
   4351   done
   4352   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4353 esac
   4354 
   4355       $ac_path_GREP_found && break 3
   4356     done
   4357   done
   4358   done
   4359 IFS=$as_save_IFS
   4360   if test -z "$ac_cv_path_GREP"; then
   4361     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4362   fi
   4363 else
   4364   ac_cv_path_GREP=$GREP
   4365 fi
   4366 
   4367 fi
   4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4369 $as_echo "$ac_cv_path_GREP" >&6; }
   4370  GREP="$ac_cv_path_GREP"
   4371 
   4372 
   4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4374 $as_echo_n "checking for egrep... " >&6; }
   4375 if ${ac_cv_path_EGREP+:} false; then :
   4376   $as_echo_n "(cached) " >&6
   4377 else
   4378   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4379    then ac_cv_path_EGREP="$GREP -E"
   4380    else
   4381      if test -z "$EGREP"; then
   4382   ac_path_EGREP_found=false
   4383   # Loop through the user's path and test for each of PROGNAME-LIST
   4384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4385 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4386 do
   4387   IFS=$as_save_IFS
   4388   test -z "$as_dir" && as_dir=.
   4389     for ac_prog in egrep; do
   4390     for ac_exec_ext in '' $ac_executable_extensions; do
   4391       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4392       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   4393 # Check for GNU ac_path_EGREP and select it if it is found.
   4394   # Check for GNU $ac_path_EGREP
   4395 case `"$ac_path_EGREP" --version 2>&1` in
   4396 *GNU*)
   4397   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4398 *)
   4399   ac_count=0
   4400   $as_echo_n 0123456789 >"conftest.in"
   4401   while :
   4402   do
   4403     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4404     mv "conftest.tmp" "conftest.in"
   4405     cp "conftest.in" "conftest.nl"
   4406     $as_echo 'EGREP' >> "conftest.nl"
   4407     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4408     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4409     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4410     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4411       # Best one so far, save it but keep looking for a better one
   4412       ac_cv_path_EGREP="$ac_path_EGREP"
   4413       ac_path_EGREP_max=$ac_count
   4414     fi
   4415     # 10*(2^10) chars as input seems more than enough
   4416     test $ac_count -gt 10 && break
   4417   done
   4418   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4419 esac
   4420 
   4421       $ac_path_EGREP_found && break 3
   4422     done
   4423   done
   4424   done
   4425 IFS=$as_save_IFS
   4426   if test -z "$ac_cv_path_EGREP"; then
   4427     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4428   fi
   4429 else
   4430   ac_cv_path_EGREP=$EGREP
   4431 fi
   4432 
   4433    fi
   4434 fi
   4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4436 $as_echo "$ac_cv_path_EGREP" >&6; }
   4437  EGREP="$ac_cv_path_EGREP"
   4438 
   4439 
   4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4441 $as_echo_n "checking for ANSI C header files... " >&6; }
   4442 if ${ac_cv_header_stdc+:} false; then :
   4443   $as_echo_n "(cached) " >&6
   4444 else
   4445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4446 /* end confdefs.h.  */
   4447 #include <stdlib.h>
   4448 #include <stdarg.h>
   4449 #include <string.h>
   4450 #include <float.h>
   4451 
   4452 int
   4453 main ()
   4454 {
   4455 
   4456   ;
   4457   return 0;
   4458 }
   4459 _ACEOF
   4460 if ac_fn_c_try_compile "$LINENO"; then :
   4461   ac_cv_header_stdc=yes
   4462 else
   4463   ac_cv_header_stdc=no
   4464 fi
   4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4466 
   4467 if test $ac_cv_header_stdc = yes; then
   4468   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4470 /* end confdefs.h.  */
   4471 #include <string.h>
   4472 
   4473 _ACEOF
   4474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4475   $EGREP "memchr" >/dev/null 2>&1; then :
   4476 
   4477 else
   4478   ac_cv_header_stdc=no
   4479 fi
   4480 rm -f conftest*
   4481 
   4482 fi
   4483 
   4484 if test $ac_cv_header_stdc = yes; then
   4485   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4487 /* end confdefs.h.  */
   4488 #include <stdlib.h>
   4489 
   4490 _ACEOF
   4491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4492   $EGREP "free" >/dev/null 2>&1; then :
   4493 
   4494 else
   4495   ac_cv_header_stdc=no
   4496 fi
   4497 rm -f conftest*
   4498 
   4499 fi
   4500 
   4501 if test $ac_cv_header_stdc = yes; then
   4502   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4503   if test "$cross_compiling" = yes; then :
   4504   :
   4505 else
   4506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4507 /* end confdefs.h.  */
   4508 #include <ctype.h>
   4509 #include <stdlib.h>
   4510 #if ((' ' & 0x0FF) == 0x020)
   4511 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4512 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4513 #else
   4514 # define ISLOWER(c) \
   4515 		   (('a' <= (c) && (c) <= 'i') \
   4516 		     || ('j' <= (c) && (c) <= 'r') \
   4517 		     || ('s' <= (c) && (c) <= 'z'))
   4518 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4519 #endif
   4520 
   4521 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4522 int
   4523 main ()
   4524 {
   4525   int i;
   4526   for (i = 0; i < 256; i++)
   4527     if (XOR (islower (i), ISLOWER (i))
   4528 	|| toupper (i) != TOUPPER (i))
   4529       return 2;
   4530   return 0;
   4531 }
   4532 _ACEOF
   4533 if ac_fn_c_try_run "$LINENO"; then :
   4534 
   4535 else
   4536   ac_cv_header_stdc=no
   4537 fi
   4538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4539   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4540 fi
   4541 
   4542 fi
   4543 fi
   4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4545 $as_echo "$ac_cv_header_stdc" >&6; }
   4546 if test $ac_cv_header_stdc = yes; then
   4547 
   4548 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4549 
   4550 fi
   4551 
   4552 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4553 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4554 		  inttypes.h stdint.h unistd.h
   4555 do :
   4556   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4557 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4558 "
   4559 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4560   cat >>confdefs.h <<_ACEOF
   4561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4562 _ACEOF
   4563 
   4564 fi
   4565 
   4566 done
   4567 
   4568 
   4569 
   4570 
   4571 
   4572   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   4573 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   4574   MINIX=yes
   4575 else
   4576   MINIX=
   4577 fi
   4578 
   4579 
   4580   if test "$MINIX" = yes; then
   4581 
   4582 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   4583 
   4584 
   4585 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   4586 
   4587 
   4588 $as_echo "#define _MINIX 1" >>confdefs.h
   4589 
   4590   fi
   4591 
   4592         case "$host_os" in
   4593     hpux*)
   4594 
   4595 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
   4596 
   4597       ;;
   4598   esac
   4599 
   4600 
   4601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   4602 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4603 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   4604   $as_echo_n "(cached) " >&6
   4605 else
   4606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4607 /* end confdefs.h.  */
   4608 
   4609 #         define __EXTENSIONS__ 1
   4610           $ac_includes_default
   4611 int
   4612 main ()
   4613 {
   4614 
   4615   ;
   4616   return 0;
   4617 }
   4618 _ACEOF
   4619 if ac_fn_c_try_compile "$LINENO"; then :
   4620   ac_cv_safe_to_define___extensions__=yes
   4621 else
   4622   ac_cv_safe_to_define___extensions__=no
   4623 fi
   4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4625 fi
   4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4627 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   4628   test $ac_cv_safe_to_define___extensions__ = yes &&
   4629     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   4630 
   4631   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   4632 
   4633   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   4634 
   4635   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4636 
   4637   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   4638 
   4639 
   4640 
   4641 
   4642 
   4643 
   4644 
   4645 #case "$host_os" in
   4646 #
   4647 # osf5*)
   4648 #    CFLAGS="$CFLAGS -D_OSF_SOURCE"
   4649 #    ;;
   4650 #esac
   4651 
   4652 if test "x$CC" != xcc; then
   4653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
   4654 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
   4655 else
   4656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
   4657 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
   4658 fi
   4659 set dummy $CC; ac_cc=`$as_echo "$2" |
   4660 		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
   4661 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
   4662   $as_echo_n "(cached) " >&6
   4663 else
   4664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4665 /* end confdefs.h.  */
   4666 
   4667 int
   4668 main ()
   4669 {
   4670 
   4671   ;
   4672   return 0;
   4673 }
   4674 _ACEOF
   4675 # Make sure it works both with $CC and with simple cc.
   4676 # We do the test twice because some compilers refuse to overwrite an
   4677 # existing .o file with -o, though they will create one.
   4678 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
   4679 rm -f conftest2.*
   4680 if { { case "(($ac_try" in
   4681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4682   *) ac_try_echo=$ac_try;;
   4683 esac
   4684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4685 $as_echo "$ac_try_echo"; } >&5
   4686   (eval "$ac_try") 2>&5
   4687   ac_status=$?
   4688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4689   test $ac_status = 0; } &&
   4690    test -f conftest2.$ac_objext && { { case "(($ac_try" in
   4691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4692   *) ac_try_echo=$ac_try;;
   4693 esac
   4694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4695 $as_echo "$ac_try_echo"; } >&5
   4696   (eval "$ac_try") 2>&5
   4697   ac_status=$?
   4698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4699   test $ac_status = 0; };
   4700 then
   4701   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
   4702   if test "x$CC" != xcc; then
   4703     # Test first that cc exists at all.
   4704     if { ac_try='cc -c conftest.$ac_ext >&5'
   4705   { { case "(($ac_try" in
   4706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4707   *) ac_try_echo=$ac_try;;
   4708 esac
   4709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4710 $as_echo "$ac_try_echo"; } >&5
   4711   (eval "$ac_try") 2>&5
   4712   ac_status=$?
   4713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4714   test $ac_status = 0; }; }; then
   4715       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
   4716       rm -f conftest2.*
   4717       if { { case "(($ac_try" in
   4718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4719   *) ac_try_echo=$ac_try;;
   4720 esac
   4721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4722 $as_echo "$ac_try_echo"; } >&5
   4723   (eval "$ac_try") 2>&5
   4724   ac_status=$?
   4725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4726   test $ac_status = 0; } &&
   4727 	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
   4728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4729   *) ac_try_echo=$ac_try;;
   4730 esac
   4731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4732 $as_echo "$ac_try_echo"; } >&5
   4733   (eval "$ac_try") 2>&5
   4734   ac_status=$?
   4735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4736   test $ac_status = 0; };
   4737       then
   4738 	# cc works too.
   4739 	:
   4740       else
   4741 	# cc exists but doesn't like -o.
   4742 	eval ac_cv_prog_cc_${ac_cc}_c_o=no
   4743       fi
   4744     fi
   4745   fi
   4746 else
   4747   eval ac_cv_prog_cc_${ac_cc}_c_o=no
   4748 fi
   4749 rm -f core conftest*
   4750 
   4751 fi
   4752 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
   4753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4754 $as_echo "yes" >&6; }
   4755 else
   4756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4757 $as_echo "no" >&6; }
   4758 
   4759 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
   4760 
   4761 fi
   4762 
   4763 # FIXME: we rely on the cache variable name because
   4764 # there is no other way.
   4765 set dummy $CC
   4766 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
   4767 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
   4768 if test "$am_t" != yes; then
   4769    # Losing compiler, so override with the script.
   4770    # FIXME: It is wrong to rewrite CC.
   4771    # But if we don't then we get into trouble of one sort or another.
   4772    # A longer-term fix would be to have automake use am__CC in this case,
   4773    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   4774    CC="$am_aux_dir/compile $CC"
   4775 fi
   4776 
   4777 
   4778 
   4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   4780 $as_echo_n "checking whether ln -s works... " >&6; }
   4781 LN_S=$as_ln_s
   4782 if test "$LN_S" = "ln -s"; then
   4783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4784 $as_echo "yes" >&6; }
   4785 else
   4786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   4787 $as_echo "no, using $LN_S" >&6; }
   4788 fi
   4789 
   4790 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
   4791 
   4792 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
   4793 # versions
   4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4795 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   4796 if ${ac_cv_path_SED+:} false; then :
   4797   $as_echo_n "(cached) " >&6
   4798 else
   4799             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4800      for ac_i in 1 2 3 4 5 6 7; do
   4801        ac_script="$ac_script$as_nl$ac_script"
   4802      done
   4803      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4804      { ac_script=; unset ac_script;}
   4805      if test -z "$SED"; then
   4806   ac_path_SED_found=false
   4807   # Loop through the user's path and test for each of PROGNAME-LIST
   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_prog in sed gsed; do
   4814     for ac_exec_ext in '' $ac_executable_extensions; do
   4815       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   4816       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
   4817 # Check for GNU ac_path_SED and select it if it is found.
   4818   # Check for GNU $ac_path_SED
   4819 case `"$ac_path_SED" --version 2>&1` in
   4820 *GNU*)
   4821   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4822 *)
   4823   ac_count=0
   4824   $as_echo_n 0123456789 >"conftest.in"
   4825   while :
   4826   do
   4827     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4828     mv "conftest.tmp" "conftest.in"
   4829     cp "conftest.in" "conftest.nl"
   4830     $as_echo '' >> "conftest.nl"
   4831     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4832     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4833     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4834     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4835       # Best one so far, save it but keep looking for a better one
   4836       ac_cv_path_SED="$ac_path_SED"
   4837       ac_path_SED_max=$ac_count
   4838     fi
   4839     # 10*(2^10) chars as input seems more than enough
   4840     test $ac_count -gt 10 && break
   4841   done
   4842   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4843 esac
   4844 
   4845       $ac_path_SED_found && break 3
   4846     done
   4847   done
   4848   done
   4849 IFS=$as_save_IFS
   4850   if test -z "$ac_cv_path_SED"; then
   4851     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4852   fi
   4853 else
   4854   ac_cv_path_SED=$SED
   4855 fi
   4856 
   4857 fi
   4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4859 $as_echo "$ac_cv_path_SED" >&6; }
   4860  SED="$ac_cv_path_SED"
   4861   rm -f conftest.sed
   4862 
   4863 
   4864 if test $ac_cv_c_compiler_gnu = yes; then
   4865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
   4866 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
   4867 if ${ac_cv_prog_gcc_traditional+:} false; then :
   4868   $as_echo_n "(cached) " >&6
   4869 else
   4870     ac_pattern="Autoconf.*'x'"
   4871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4872 /* end confdefs.h.  */
   4873 #include <sgtty.h>
   4874 Autoconf TIOCGETP
   4875 _ACEOF
   4876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4877   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
   4878   ac_cv_prog_gcc_traditional=yes
   4879 else
   4880   ac_cv_prog_gcc_traditional=no
   4881 fi
   4882 rm -f conftest*
   4883 
   4884 
   4885   if test $ac_cv_prog_gcc_traditional = no; then
   4886     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4887 /* end confdefs.h.  */
   4888 #include <termio.h>
   4889 Autoconf TCGETA
   4890 _ACEOF
   4891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4892   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
   4893   ac_cv_prog_gcc_traditional=yes
   4894 fi
   4895 rm -f conftest*
   4896 
   4897   fi
   4898 fi
   4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
   4900 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
   4901   if test $ac_cv_prog_gcc_traditional = yes; then
   4902     CC="$CC -traditional"
   4903   fi
   4904 fi
   4905 
   4906 
   4907 # We need to test for at least gcc 2.95 here, because older versions don't
   4908 # have -fno-strict-aliasing
   4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4910 /* end confdefs.h.  */
   4911 
   4912 int
   4913 main ()
   4914 {
   4915 
   4916 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
   4917 #error
   4918 #endif
   4919   ;
   4920   return 0;
   4921 }
   4922 _ACEOF
   4923 if ac_fn_c_try_compile "$LINENO"; then :
   4924   have_gcc295=yes
   4925 else
   4926   have_gcc295=no
   4927 fi
   4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4929 
   4930 if test "$GCC" = "yes" ; then
   4931         # Enable many gcc warnings by default...
   4932         CFLAGS="$CFLAGS -Wall"
   4933 	# And disable the strict-aliasing optimization, since it breaks
   4934 	# our sockaddr-handling code in strange ways.
   4935 	if test x$have_gcc295 = xyes; then
   4936 		CFLAGS="$CFLAGS -fno-strict-aliasing"
   4937 	fi
   4938 fi
   4939 
   4940 # OS X Lion started deprecating the system openssl. Let's just disable
   4941 # all deprecation warnings on OS X.
   4942 case "$host_os" in
   4943 
   4944  darwin*)
   4945     CFLAGS="$CFLAGS -Wno-deprecated-declarations"
   4946     ;;
   4947 esac
   4948 
   4949 # Check whether --enable-gcc-warnings was given.
   4950 if test "${enable_gcc_warnings+set}" = set; then :
   4951   enableval=$enable_gcc_warnings;
   4952 fi
   4953 
   4954 
   4955 # Check whether --enable-gcc-hardening was given.
   4956 if test "${enable_gcc_hardening+set}" = set; then :
   4957   enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
   4958     CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
   4959     CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
   4960     CFLAGS="$CFLAGS --param ssp-buffer-size=1"
   4961 fi
   4962 fi
   4963 
   4964 
   4965 # Check whether --enable-thread-support was given.
   4966 if test "${enable_thread_support+set}" = set; then :
   4967   enableval=$enable_thread_support;
   4968 else
   4969   enable_thread_support=yes
   4970 fi
   4971 
   4972 # Check whether --enable-malloc-replacement was given.
   4973 if test "${enable_malloc_replacement+set}" = set; then :
   4974   enableval=$enable_malloc_replacement;
   4975 else
   4976   enable_malloc_replacement=yes
   4977 fi
   4978 
   4979 # Check whether --enable-openssl was given.
   4980 if test "${enable_openssl+set}" = set; then :
   4981   enableval=$enable_openssl;
   4982 else
   4983   enable_openssl=yes
   4984 fi
   4985 
   4986 # Check whether --enable-debug-mode was given.
   4987 if test "${enable_debug_mode+set}" = set; then :
   4988   enableval=$enable_debug_mode;
   4989 else
   4990   enable_debug_mode=yes
   4991 fi
   4992 
   4993 # Check whether --enable-libevent-install was given.
   4994 if test "${enable_libevent_install+set}" = set; then :
   4995   enableval=$enable_libevent_install;
   4996 else
   4997   enable_libevent_install=yes
   4998 fi
   4999 
   5000 # Check whether --enable-libevent-regress was given.
   5001 if test "${enable_libevent_regress+set}" = set; then :
   5002   enableval=$enable_libevent_regress;
   5003 else
   5004   enable_libevent_regress=yes
   5005 fi
   5006 
   5007 # Check whether --enable-function-sections was given.
   5008 if test "${enable_function_sections+set}" = set; then :
   5009   enableval=$enable_function_sections;
   5010 else
   5011   enable_function_sections=no
   5012 fi
   5013 
   5014 # Check whether --enable-verbose-debug was given.
   5015 if test "${enable_verbose_debug+set}" = set; then :
   5016   enableval=$enable_verbose_debug;
   5017 else
   5018   enable_verbose_debug=no
   5019 fi
   5020 
   5021 
   5022 
   5023 case `pwd` in
   5024   *\ * | *\	*)
   5025     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   5026 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   5027 esac
   5028 
   5029 
   5030 
   5031 macro_version='2.4'
   5032 macro_revision='1.3293'
   5033 
   5034 
   5035 
   5036 
   5037 
   5038 
   5039 
   5040 
   5041 
   5042 
   5043 
   5044 
   5045 
   5046 ltmain="$ac_aux_dir/ltmain.sh"
   5047 
   5048 # Backslashify metacharacters that are still active within
   5049 # double-quoted strings.
   5050 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   5051 
   5052 # Same as above, but do not quote variable references.
   5053 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   5054 
   5055 # Sed substitution to delay expansion of an escaped shell variable in a
   5056 # double_quote_subst'ed string.
   5057 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   5058 
   5059 # Sed substitution to delay expansion of an escaped single quote.
   5060 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   5061 
   5062 # Sed substitution to avoid accidental globbing in evaled expressions
   5063 no_glob_subst='s/\*/\\\*/g'
   5064 
   5065 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   5066 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   5067 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   5068 
   5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   5070 $as_echo_n "checking how to print strings... " >&6; }
   5071 # Test print first, because it will be a builtin if present.
   5072 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   5073    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   5074   ECHO='print -r --'
   5075 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   5076   ECHO='printf %s\n'
   5077 else
   5078   # Use this function as a fallback that always works.
   5079   func_fallback_echo ()
   5080   {
   5081     eval 'cat <<_LTECHO_EOF
   5082 $1
   5083 _LTECHO_EOF'
   5084   }
   5085   ECHO='func_fallback_echo'
   5086 fi
   5087 
   5088 # func_echo_all arg...
   5089 # Invoke $ECHO with all args, space-separated.
   5090 func_echo_all ()
   5091 {
   5092     $ECHO ""
   5093 }
   5094 
   5095 case "$ECHO" in
   5096   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   5097 $as_echo "printf" >&6; } ;;
   5098   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   5099 $as_echo "print -r" >&6; } ;;
   5100   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   5101 $as_echo "cat" >&6; } ;;
   5102 esac
   5103 
   5104 
   5105 
   5106 
   5107 
   5108 
   5109 
   5110 
   5111 
   5112 
   5113 
   5114 
   5115 
   5116 
   5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   5118 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   5119 if ${ac_cv_path_SED+:} false; then :
   5120   $as_echo_n "(cached) " >&6
   5121 else
   5122             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   5123      for ac_i in 1 2 3 4 5 6 7; do
   5124        ac_script="$ac_script$as_nl$ac_script"
   5125      done
   5126      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   5127      { ac_script=; unset ac_script;}
   5128      if test -z "$SED"; then
   5129   ac_path_SED_found=false
   5130   # Loop through the user's path and test for each of PROGNAME-LIST
   5131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5132 for as_dir in $PATH
   5133 do
   5134   IFS=$as_save_IFS
   5135   test -z "$as_dir" && as_dir=.
   5136     for ac_prog in sed gsed; do
   5137     for ac_exec_ext in '' $ac_executable_extensions; do
   5138       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   5139       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
   5140 # Check for GNU ac_path_SED and select it if it is found.
   5141   # Check for GNU $ac_path_SED
   5142 case `"$ac_path_SED" --version 2>&1` in
   5143 *GNU*)
   5144   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   5145 *)
   5146   ac_count=0
   5147   $as_echo_n 0123456789 >"conftest.in"
   5148   while :
   5149   do
   5150     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5151     mv "conftest.tmp" "conftest.in"
   5152     cp "conftest.in" "conftest.nl"
   5153     $as_echo '' >> "conftest.nl"
   5154     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5155     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5156     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5157     if test $ac_count -gt ${ac_path_SED_max-0}; then
   5158       # Best one so far, save it but keep looking for a better one
   5159       ac_cv_path_SED="$ac_path_SED"
   5160       ac_path_SED_max=$ac_count
   5161     fi
   5162     # 10*(2^10) chars as input seems more than enough
   5163     test $ac_count -gt 10 && break
   5164   done
   5165   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5166 esac
   5167 
   5168       $ac_path_SED_found && break 3
   5169     done
   5170   done
   5171   done
   5172 IFS=$as_save_IFS
   5173   if test -z "$ac_cv_path_SED"; then
   5174     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   5175   fi
   5176 else
   5177   ac_cv_path_SED=$SED
   5178 fi
   5179 
   5180 fi
   5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   5182 $as_echo "$ac_cv_path_SED" >&6; }
   5183  SED="$ac_cv_path_SED"
   5184   rm -f conftest.sed
   5185 
   5186 test -z "$SED" && SED=sed
   5187 Xsed="$SED -e 1s/^X//"
   5188 
   5189 
   5190 
   5191 
   5192 
   5193 
   5194 
   5195 
   5196 
   5197 
   5198 
   5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   5200 $as_echo_n "checking for fgrep... " >&6; }
   5201 if ${ac_cv_path_FGREP+:} false; then :
   5202   $as_echo_n "(cached) " >&6
   5203 else
   5204   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   5205    then ac_cv_path_FGREP="$GREP -F"
   5206    else
   5207      if test -z "$FGREP"; then
   5208   ac_path_FGREP_found=false
   5209   # Loop through the user's path and test for each of PROGNAME-LIST
   5210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5211 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5212 do
   5213   IFS=$as_save_IFS
   5214   test -z "$as_dir" && as_dir=.
   5215     for ac_prog in fgrep; do
   5216     for ac_exec_ext in '' $ac_executable_extensions; do
   5217       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   5218       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
   5219 # Check for GNU ac_path_FGREP and select it if it is found.
   5220   # Check for GNU $ac_path_FGREP
   5221 case `"$ac_path_FGREP" --version 2>&1` in
   5222 *GNU*)
   5223   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   5224 *)
   5225   ac_count=0
   5226   $as_echo_n 0123456789 >"conftest.in"
   5227   while :
   5228   do
   5229     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5230     mv "conftest.tmp" "conftest.in"
   5231     cp "conftest.in" "conftest.nl"
   5232     $as_echo 'FGREP' >> "conftest.nl"
   5233     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5234     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5235     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5236     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   5237       # Best one so far, save it but keep looking for a better one
   5238       ac_cv_path_FGREP="$ac_path_FGREP"
   5239       ac_path_FGREP_max=$ac_count
   5240     fi
   5241     # 10*(2^10) chars as input seems more than enough
   5242     test $ac_count -gt 10 && break
   5243   done
   5244   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5245 esac
   5246 
   5247       $ac_path_FGREP_found && break 3
   5248     done
   5249   done
   5250   done
   5251 IFS=$as_save_IFS
   5252   if test -z "$ac_cv_path_FGREP"; then
   5253     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5254   fi
   5255 else
   5256   ac_cv_path_FGREP=$FGREP
   5257 fi
   5258 
   5259    fi
   5260 fi
   5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   5262 $as_echo "$ac_cv_path_FGREP" >&6; }
   5263  FGREP="$ac_cv_path_FGREP"
   5264 
   5265 
   5266 test -z "$GREP" && GREP=grep
   5267 
   5268 
   5269 
   5270 
   5271 
   5272 
   5273 
   5274 
   5275 
   5276 
   5277 
   5278 
   5279 
   5280 
   5281 
   5282 
   5283 
   5284 
   5285 
   5286 # Check whether --with-gnu-ld was given.
   5287 if test "${with_gnu_ld+set}" = set; then :
   5288   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   5289 else
   5290   with_gnu_ld=no
   5291 fi
   5292 
   5293 ac_prog=ld
   5294 if test "$GCC" = yes; then
   5295   # Check if gcc -print-prog-name=ld gives a path.
   5296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   5297 $as_echo_n "checking for ld used by $CC... " >&6; }
   5298   case $host in
   5299   *-*-mingw*)
   5300     # gcc leaves a trailing carriage return which upsets mingw
   5301     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   5302   *)
   5303     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   5304   esac
   5305   case $ac_prog in
   5306     # Accept absolute paths.
   5307     [\\/]* | ?:[\\/]*)
   5308       re_direlt='/[^/][^/]*/\.\./'
   5309       # Canonicalize the pathname of ld
   5310       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   5311       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   5312 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   5313       done
   5314       test -z "$LD" && LD="$ac_prog"
   5315       ;;
   5316   "")
   5317     # If it fails, then pretend we aren't using GCC.
   5318     ac_prog=ld
   5319     ;;
   5320   *)
   5321     # If it is relative, then search for the first ld in PATH.
   5322     with_gnu_ld=unknown
   5323     ;;
   5324   esac
   5325 elif test "$with_gnu_ld" = yes; then
   5326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   5327 $as_echo_n "checking for GNU ld... " >&6; }
   5328 else
   5329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   5330 $as_echo_n "checking for non-GNU ld... " >&6; }
   5331 fi
   5332 if ${lt_cv_path_LD+:} false; then :
   5333   $as_echo_n "(cached) " >&6
   5334 else
   5335   if test -z "$LD"; then
   5336   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   5337   for ac_dir in $PATH; do
   5338     IFS="$lt_save_ifs"
   5339     test -z "$ac_dir" && ac_dir=.
   5340     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   5341       lt_cv_path_LD="$ac_dir/$ac_prog"
   5342       # Check to see if the program is GNU ld.  I'd rather use --version,
   5343       # but apparently some variants of GNU ld only accept -v.
   5344       # Break only if it was the GNU/non-GNU ld that we prefer.
   5345       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   5346       *GNU* | *'with BFD'*)
   5347 	test "$with_gnu_ld" != no && break
   5348 	;;
   5349       *)
   5350 	test "$with_gnu_ld" != yes && break
   5351 	;;
   5352       esac
   5353     fi
   5354   done
   5355   IFS="$lt_save_ifs"
   5356 else
   5357   lt_cv_path_LD="$LD" # Let the user override the test with a path.
   5358 fi
   5359 fi
   5360 
   5361 LD="$lt_cv_path_LD"
   5362 if test -n "$LD"; then
   5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   5364 $as_echo "$LD" >&6; }
   5365 else
   5366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5367 $as_echo "no" >&6; }
   5368 fi
   5369 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   5371 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   5372 if ${lt_cv_prog_gnu_ld+:} false; then :
   5373   $as_echo_n "(cached) " >&6
   5374 else
   5375   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   5376 case `$LD -v 2>&1 </dev/null` in
   5377 *GNU* | *'with BFD'*)
   5378   lt_cv_prog_gnu_ld=yes
   5379   ;;
   5380 *)
   5381   lt_cv_prog_gnu_ld=no
   5382   ;;
   5383 esac
   5384 fi
   5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   5386 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   5387 with_gnu_ld=$lt_cv_prog_gnu_ld
   5388 
   5389 
   5390 
   5391 
   5392 
   5393 
   5394 
   5395 
   5396 
   5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   5398 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   5399 if ${lt_cv_path_NM+:} false; then :
   5400   $as_echo_n "(cached) " >&6
   5401 else
   5402   if test -n "$NM"; then
   5403   # Let the user override the test.
   5404   lt_cv_path_NM="$NM"
   5405 else
   5406   lt_nm_to_check="${ac_tool_prefix}nm"
   5407   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   5408     lt_nm_to_check="$lt_nm_to_check nm"
   5409   fi
   5410   for lt_tmp_nm in $lt_nm_to_check; do
   5411     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   5412     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   5413       IFS="$lt_save_ifs"
   5414       test -z "$ac_dir" && ac_dir=.
   5415       tmp_nm="$ac_dir/$lt_tmp_nm"
   5416       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   5417 	# Check to see if the nm accepts a BSD-compat flag.
   5418 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
   5419 	#   nm: unknown option "B" ignored
   5420 	# Tru64's nm complains that /dev/null is an invalid object file
   5421 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   5422 	*/dev/null* | *'Invalid file or object type'*)
   5423 	  lt_cv_path_NM="$tmp_nm -B"
   5424 	  break
   5425 	  ;;
   5426 	*)
   5427 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   5428 	  */dev/null*)
   5429 	    lt_cv_path_NM="$tmp_nm -p"
   5430 	    break
   5431 	    ;;
   5432 	  *)
   5433 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   5434 	    continue # so that we can try to find one that supports BSD flags
   5435 	    ;;
   5436 	  esac
   5437 	  ;;
   5438 	esac
   5439       fi
   5440     done
   5441     IFS="$lt_save_ifs"
   5442   done
   5443   : ${lt_cv_path_NM=no}
   5444 fi
   5445 fi
   5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   5447 $as_echo "$lt_cv_path_NM" >&6; }
   5448 if test "$lt_cv_path_NM" != "no"; then
   5449   NM="$lt_cv_path_NM"
   5450 else
   5451   # Didn't find any BSD compatible name lister, look for dumpbin.
   5452   if test -n "$DUMPBIN"; then :
   5453     # Let the user override the test.
   5454   else
   5455     if test -n "$ac_tool_prefix"; then
   5456   for ac_prog in dumpbin "link -dump"
   5457   do
   5458     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5461 $as_echo_n "checking for $ac_word... " >&6; }
   5462 if ${ac_cv_prog_DUMPBIN+:} false; then :
   5463   $as_echo_n "(cached) " >&6
   5464 else
   5465   if test -n "$DUMPBIN"; then
   5466   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   5467 else
   5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5469 for as_dir in $PATH
   5470 do
   5471   IFS=$as_save_IFS
   5472   test -z "$as_dir" && as_dir=.
   5473     for ac_exec_ext in '' $ac_executable_extensions; do
   5474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5475     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   5476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5477     break 2
   5478   fi
   5479 done
   5480   done
   5481 IFS=$as_save_IFS
   5482 
   5483 fi
   5484 fi
   5485 DUMPBIN=$ac_cv_prog_DUMPBIN
   5486 if test -n "$DUMPBIN"; then
   5487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   5488 $as_echo "$DUMPBIN" >&6; }
   5489 else
   5490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5491 $as_echo "no" >&6; }
   5492 fi
   5493 
   5494 
   5495     test -n "$DUMPBIN" && break
   5496   done
   5497 fi
   5498 if test -z "$DUMPBIN"; then
   5499   ac_ct_DUMPBIN=$DUMPBIN
   5500   for ac_prog in dumpbin "link -dump"
   5501 do
   5502   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5503 set dummy $ac_prog; ac_word=$2
   5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5505 $as_echo_n "checking for $ac_word... " >&6; }
   5506 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   5507   $as_echo_n "(cached) " >&6
   5508 else
   5509   if test -n "$ac_ct_DUMPBIN"; then
   5510   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   5511 else
   5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5513 for as_dir in $PATH
   5514 do
   5515   IFS=$as_save_IFS
   5516   test -z "$as_dir" && as_dir=.
   5517     for ac_exec_ext in '' $ac_executable_extensions; do
   5518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5519     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   5520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5521     break 2
   5522   fi
   5523 done
   5524   done
   5525 IFS=$as_save_IFS
   5526 
   5527 fi
   5528 fi
   5529 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   5530 if test -n "$ac_ct_DUMPBIN"; then
   5531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   5532 $as_echo "$ac_ct_DUMPBIN" >&6; }
   5533 else
   5534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5535 $as_echo "no" >&6; }
   5536 fi
   5537 
   5538 
   5539   test -n "$ac_ct_DUMPBIN" && break
   5540 done
   5541 
   5542   if test "x$ac_ct_DUMPBIN" = x; then
   5543     DUMPBIN=":"
   5544   else
   5545     case $cross_compiling:$ac_tool_warned in
   5546 yes:)
   5547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5549 ac_tool_warned=yes ;;
   5550 esac
   5551     DUMPBIN=$ac_ct_DUMPBIN
   5552   fi
   5553 fi
   5554 
   5555     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
   5556     *COFF*)
   5557       DUMPBIN="$DUMPBIN -symbols"
   5558       ;;
   5559     *)
   5560       DUMPBIN=:
   5561       ;;
   5562     esac
   5563   fi
   5564 
   5565   if test "$DUMPBIN" != ":"; then
   5566     NM="$DUMPBIN"
   5567   fi
   5568 fi
   5569 test -z "$NM" && NM=nm
   5570 
   5571 
   5572 
   5573 
   5574 
   5575 
   5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   5577 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   5578 if ${lt_cv_nm_interface+:} false; then :
   5579   $as_echo_n "(cached) " >&6
   5580 else
   5581   lt_cv_nm_interface="BSD nm"
   5582   echo "int some_variable = 0;" > conftest.$ac_ext
   5583   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   5584   (eval "$ac_compile" 2>conftest.err)
   5585   cat conftest.err >&5
   5586   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   5587   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   5588   cat conftest.err >&5
   5589   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   5590   cat conftest.out >&5
   5591   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   5592     lt_cv_nm_interface="MS dumpbin"
   5593   fi
   5594   rm -f conftest*
   5595 fi
   5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   5597 $as_echo "$lt_cv_nm_interface" >&6; }
   5598 
   5599 # find the maximum length of command line arguments
   5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   5601 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   5602 if ${lt_cv_sys_max_cmd_len+:} false; then :
   5603   $as_echo_n "(cached) " >&6
   5604 else
   5605     i=0
   5606   teststring="ABCD"
   5607 
   5608   case $build_os in
   5609   msdosdjgpp*)
   5610     # On DJGPP, this test can blow up pretty badly due to problems in libc
   5611     # (any single argument exceeding 2000 bytes causes a buffer overrun
   5612     # during glob expansion).  Even if it were fixed, the result of this
   5613     # check would be larger than it should be.
   5614     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   5615     ;;
   5616 
   5617   gnu*)
   5618     # Under GNU Hurd, this test is not required because there is
   5619     # no limit to the length of command line arguments.
   5620     # Libtool will interpret -1 as no limit whatsoever
   5621     lt_cv_sys_max_cmd_len=-1;
   5622     ;;
   5623 
   5624   cygwin* | mingw* | cegcc*)
   5625     # On Win9x/ME, this test blows up -- it succeeds, but takes
   5626     # about 5 minutes as the teststring grows exponentially.
   5627     # Worse, since 9x/ME are not pre-emptively multitasking,
   5628     # you end up with a "frozen" computer, even though with patience
   5629     # the test eventually succeeds (with a max line length of 256k).
   5630     # Instead, let's just punt: use the minimum linelength reported by
   5631     # all of the supported platforms: 8192 (on NT/2K/XP).
   5632     lt_cv_sys_max_cmd_len=8192;
   5633     ;;
   5634 
   5635   mint*)
   5636     # On MiNT this can take a long time and run out of memory.
   5637     lt_cv_sys_max_cmd_len=8192;
   5638     ;;
   5639 
   5640   amigaos*)
   5641     # On AmigaOS with pdksh, this test takes hours, literally.
   5642     # So we just punt and use a minimum line length of 8192.
   5643     lt_cv_sys_max_cmd_len=8192;
   5644     ;;
   5645 
   5646   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
   5647     # This has been around since 386BSD, at least.  Likely further.
   5648     if test -x /sbin/sysctl; then
   5649       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   5650     elif test -x /usr/sbin/sysctl; then
   5651       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   5652     else
   5653       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   5654     fi
   5655     # And add a safety zone
   5656     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   5657     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   5658     ;;
   5659 
   5660   interix*)
   5661     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   5662     lt_cv_sys_max_cmd_len=196608
   5663     ;;
   5664 
   5665   osf*)
   5666     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   5667     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   5668     # nice to cause kernel panics so lets avoid the loop below.
   5669     # First set a reasonable default.
   5670     lt_cv_sys_max_cmd_len=16384
   5671     #
   5672     if test -x /sbin/sysconfig; then
   5673       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   5674         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   5675       esac
   5676     fi
   5677     ;;
   5678   sco3.2v5*)
   5679     lt_cv_sys_max_cmd_len=102400
   5680     ;;
   5681   sysv5* | sco5v6* | sysv4.2uw2*)
   5682     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   5683     if test -n "$kargmax"; then
   5684       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   5685     else
   5686       lt_cv_sys_max_cmd_len=32768
   5687     fi
   5688     ;;
   5689   *)
   5690     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   5691     if test -n "$lt_cv_sys_max_cmd_len"; then
   5692       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   5693       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   5694     else
   5695       # Make teststring a little bigger before we do anything with it.
   5696       # a 1K string should be a reasonable start.
   5697       for i in 1 2 3 4 5 6 7 8 ; do
   5698         teststring=$teststring$teststring
   5699       done
   5700       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   5701       # If test is not a shell built-in, we'll probably end up computing a
   5702       # maximum length that is only half of the actual maximum length, but
   5703       # we can't tell.
   5704       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
   5705 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   5706 	      test $i != 17 # 1/2 MB should be enough
   5707       do
   5708         i=`expr $i + 1`
   5709         teststring=$teststring$teststring
   5710       done
   5711       # Only check the string length outside the loop.
   5712       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   5713       teststring=
   5714       # Add a significant safety factor because C++ compilers can tack on
   5715       # massive amounts of additional arguments before passing them to the
   5716       # linker.  It appears as though 1/2 is a usable value.
   5717       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   5718     fi
   5719     ;;
   5720   esac
   5721 
   5722 fi
   5723 
   5724 if test -n $lt_cv_sys_max_cmd_len ; then
   5725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   5726 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   5727 else
   5728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   5729 $as_echo "none" >&6; }
   5730 fi
   5731 max_cmd_len=$lt_cv_sys_max_cmd_len
   5732 
   5733 
   5734 
   5735 
   5736 
   5737 
   5738 : ${CP="cp -f"}
   5739 : ${MV="mv -f"}
   5740 : ${RM="rm -f"}
   5741 
   5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
   5743 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
   5744 # Try some XSI features
   5745 xsi_shell=no
   5746 ( _lt_dummy="a/b/c"
   5747   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
   5748       = c,a/b,b/c, \
   5749     && eval 'test $(( 1 + 1 )) -eq 2 \
   5750     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
   5751   && xsi_shell=yes
   5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
   5753 $as_echo "$xsi_shell" >&6; }
   5754 
   5755 
   5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
   5757 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
   5758 lt_shell_append=no
   5759 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
   5760     >/dev/null 2>&1 \
   5761   && lt_shell_append=yes
   5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
   5763 $as_echo "$lt_shell_append" >&6; }
   5764 
   5765 
   5766 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   5767   lt_unset=unset
   5768 else
   5769   lt_unset=false
   5770 fi
   5771 
   5772 
   5773 
   5774 
   5775 
   5776 # test EBCDIC or ASCII
   5777 case `echo X|tr X '\101'` in
   5778  A) # ASCII based system
   5779     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   5780   lt_SP2NL='tr \040 \012'
   5781   lt_NL2SP='tr \015\012 \040\040'
   5782   ;;
   5783  *) # EBCDIC based system
   5784   lt_SP2NL='tr \100 \n'
   5785   lt_NL2SP='tr \r\n \100\100'
   5786   ;;
   5787 esac
   5788 
   5789 
   5790 
   5791 
   5792 
   5793 
   5794 
   5795 
   5796 
   5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   5798 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
   5799 if ${lt_cv_to_host_file_cmd+:} false; then :
   5800   $as_echo_n "(cached) " >&6
   5801 else
   5802   case $host in
   5803   *-*-mingw* )
   5804     case $build in
   5805       *-*-mingw* ) # actually msys
   5806         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   5807         ;;
   5808       *-*-cygwin* )
   5809         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   5810         ;;
   5811       * ) # otherwise, assume *nix
   5812         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   5813         ;;
   5814     esac
   5815     ;;
   5816   *-*-cygwin* )
   5817     case $build in
   5818       *-*-mingw* ) # actually msys
   5819         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   5820         ;;
   5821       *-*-cygwin* )
   5822         lt_cv_to_host_file_cmd=func_convert_file_noop
   5823         ;;
   5824       * ) # otherwise, assume *nix
   5825         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   5826         ;;
   5827     esac
   5828     ;;
   5829   * ) # unhandled hosts (and "normal" native builds)
   5830     lt_cv_to_host_file_cmd=func_convert_file_noop
   5831     ;;
   5832 esac
   5833 
   5834 fi
   5835 
   5836 to_host_file_cmd=$lt_cv_to_host_file_cmd
   5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   5838 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
   5839 
   5840 
   5841 
   5842 
   5843 
   5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   5845 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
   5846 if ${lt_cv_to_tool_file_cmd+:} false; then :
   5847   $as_echo_n "(cached) " >&6
   5848 else
   5849   #assume ordinary cross tools, or native build.
   5850 lt_cv_to_tool_file_cmd=func_convert_file_noop
   5851 case $host in
   5852   *-*-mingw* )
   5853     case $build in
   5854       *-*-mingw* ) # actually msys
   5855         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   5856         ;;
   5857     esac
   5858     ;;
   5859 esac
   5860 
   5861 fi
   5862 
   5863 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   5865 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
   5866 
   5867 
   5868 
   5869 
   5870 
   5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   5872 $as_echo_n "checking for $LD option to reload object files... " >&6; }
   5873 if ${lt_cv_ld_reload_flag+:} false; then :
   5874   $as_echo_n "(cached) " >&6
   5875 else
   5876   lt_cv_ld_reload_flag='-r'
   5877 fi
   5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   5879 $as_echo "$lt_cv_ld_reload_flag" >&6; }
   5880 reload_flag=$lt_cv_ld_reload_flag
   5881 case $reload_flag in
   5882 "" | " "*) ;;
   5883 *) reload_flag=" $reload_flag" ;;
   5884 esac
   5885 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   5886 case $host_os in
   5887   cygwin* | mingw* | pw32* | cegcc*)
   5888     if test "$GCC" != yes; then
   5889       reload_cmds=false
   5890     fi
   5891     ;;
   5892   darwin*)
   5893     if test "$GCC" = yes; then
   5894       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
   5895     else
   5896       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   5897     fi
   5898     ;;
   5899 esac
   5900 
   5901 
   5902 
   5903 
   5904 
   5905 
   5906 
   5907 
   5908 
   5909 if test -n "$ac_tool_prefix"; then
   5910   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   5911 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5913 $as_echo_n "checking for $ac_word... " >&6; }
   5914 if ${ac_cv_prog_OBJDUMP+:} false; then :
   5915   $as_echo_n "(cached) " >&6
   5916 else
   5917   if test -n "$OBJDUMP"; then
   5918   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   5919 else
   5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5921 for as_dir in $PATH
   5922 do
   5923   IFS=$as_save_IFS
   5924   test -z "$as_dir" && as_dir=.
   5925     for ac_exec_ext in '' $ac_executable_extensions; do
   5926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5927     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   5928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5929     break 2
   5930   fi
   5931 done
   5932   done
   5933 IFS=$as_save_IFS
   5934 
   5935 fi
   5936 fi
   5937 OBJDUMP=$ac_cv_prog_OBJDUMP
   5938 if test -n "$OBJDUMP"; then
   5939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   5940 $as_echo "$OBJDUMP" >&6; }
   5941 else
   5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5943 $as_echo "no" >&6; }
   5944 fi
   5945 
   5946 
   5947 fi
   5948 if test -z "$ac_cv_prog_OBJDUMP"; then
   5949   ac_ct_OBJDUMP=$OBJDUMP
   5950   # Extract the first word of "objdump", so it can be a program name with args.
   5951 set dummy objdump; ac_word=$2
   5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5953 $as_echo_n "checking for $ac_word... " >&6; }
   5954 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   5955   $as_echo_n "(cached) " >&6
   5956 else
   5957   if test -n "$ac_ct_OBJDUMP"; then
   5958   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   5959 else
   5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5961 for as_dir in $PATH
   5962 do
   5963   IFS=$as_save_IFS
   5964   test -z "$as_dir" && as_dir=.
   5965     for ac_exec_ext in '' $ac_executable_extensions; do
   5966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5967     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   5968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5969     break 2
   5970   fi
   5971 done
   5972   done
   5973 IFS=$as_save_IFS
   5974 
   5975 fi
   5976 fi
   5977 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   5978 if test -n "$ac_ct_OBJDUMP"; then
   5979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   5980 $as_echo "$ac_ct_OBJDUMP" >&6; }
   5981 else
   5982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5983 $as_echo "no" >&6; }
   5984 fi
   5985 
   5986   if test "x$ac_ct_OBJDUMP" = x; then
   5987     OBJDUMP="false"
   5988   else
   5989     case $cross_compiling:$ac_tool_warned in
   5990 yes:)
   5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5993 ac_tool_warned=yes ;;
   5994 esac
   5995     OBJDUMP=$ac_ct_OBJDUMP
   5996   fi
   5997 else
   5998   OBJDUMP="$ac_cv_prog_OBJDUMP"
   5999 fi
   6000 
   6001 test -z "$OBJDUMP" && OBJDUMP=objdump
   6002 
   6003 
   6004 
   6005 
   6006 
   6007 
   6008 
   6009 
   6010 
   6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   6012 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   6013 if ${lt_cv_deplibs_check_method+:} false; then :
   6014   $as_echo_n "(cached) " >&6
   6015 else
   6016   lt_cv_file_magic_cmd='$MAGIC_CMD'
   6017 lt_cv_file_magic_test_file=
   6018 lt_cv_deplibs_check_method='unknown'
   6019 # Need to set the preceding variable on all platforms that support
   6020 # interlibrary dependencies.
   6021 # 'none' -- dependencies not supported.
   6022 # `unknown' -- same as none, but documents that we really don't know.
   6023 # 'pass_all' -- all dependencies passed with no checks.
   6024 # 'test_compile' -- check by making test program.
   6025 # 'file_magic [[regex]]' -- check by looking for files in library path
   6026 # which responds to the $file_magic_cmd with a given extended regex.
   6027 # If you have `file' or equivalent on your system and you're not sure
   6028 # whether `pass_all' will *always* work, you probably want this one.
   6029 
   6030 case $host_os in
   6031 aix[4-9]*)
   6032   lt_cv_deplibs_check_method=pass_all
   6033   ;;
   6034 
   6035 beos*)
   6036   lt_cv_deplibs_check_method=pass_all
   6037   ;;
   6038 
   6039 bsdi[45]*)
   6040   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   6041   lt_cv_file_magic_cmd='/usr/bin/file -L'
   6042   lt_cv_file_magic_test_file=/shlib/libc.so
   6043   ;;
   6044 
   6045 cygwin*)
   6046   # func_win32_libid is a shell function defined in ltmain.sh
   6047   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   6048   lt_cv_file_magic_cmd='func_win32_libid'
   6049   ;;
   6050 
   6051 mingw* | pw32*)
   6052   # Base MSYS/MinGW do not provide the 'file' command needed by
   6053   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   6054   # unless we find 'file', for example because we are cross-compiling.
   6055   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
   6056   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
   6057     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   6058     lt_cv_file_magic_cmd='func_win32_libid'
   6059   else
   6060     # Keep this pattern in sync with the one in func_win32_libid.
   6061     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   6062     lt_cv_file_magic_cmd='$OBJDUMP -f'
   6063   fi
   6064   ;;
   6065 
   6066 cegcc*)
   6067   # use the weaker test based on 'objdump'. See mingw*.
   6068   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   6069   lt_cv_file_magic_cmd='$OBJDUMP -f'
   6070   ;;
   6071 
   6072 darwin* | rhapsody*)
   6073   lt_cv_deplibs_check_method=pass_all
   6074   ;;
   6075 
   6076 freebsd* | dragonfly*)
   6077   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   6078     case $host_cpu in
   6079     i*86 )
   6080       # Not sure whether the presence of OpenBSD here was a mistake.
   6081       # Let's accept both of them until this is cleared up.
   6082       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   6083       lt_cv_file_magic_cmd=/usr/bin/file
   6084       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   6085       ;;
   6086     esac
   6087   else
   6088     lt_cv_deplibs_check_method=pass_all
   6089   fi
   6090   ;;
   6091 
   6092 gnu*)
   6093   lt_cv_deplibs_check_method=pass_all
   6094   ;;
   6095 
   6096 haiku*)
   6097   lt_cv_deplibs_check_method=pass_all
   6098   ;;
   6099 
   6100 hpux10.20* | hpux11*)
   6101   lt_cv_file_magic_cmd=/usr/bin/file
   6102   case $host_cpu in
   6103   ia64*)
   6104     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   6105     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   6106     ;;
   6107   hppa*64*)
   6108     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]'
   6109     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   6110     ;;
   6111   *)
   6112     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   6113     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   6114     ;;
   6115   esac
   6116   ;;
   6117 
   6118 interix[3-9]*)
   6119   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   6120   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   6121   ;;
   6122 
   6123 irix5* | irix6* | nonstopux*)
   6124   case $LD in
   6125   *-32|*"-32 ") libmagic=32-bit;;
   6126   *-n32|*"-n32 ") libmagic=N32;;
   6127   *-64|*"-64 ") libmagic=64-bit;;
   6128   *) libmagic=never-match;;
   6129   esac
   6130   lt_cv_deplibs_check_method=pass_all
   6131   ;;
   6132 
   6133 # This must be Linux ELF.
   6134 linux* | k*bsd*-gnu | kopensolaris*-gnu)
   6135   lt_cv_deplibs_check_method=pass_all
   6136   ;;
   6137 
   6138 netbsd*)
   6139   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   6140     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   6141   else
   6142     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   6143   fi
   6144   ;;
   6145 
   6146 newos6*)
   6147   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   6148   lt_cv_file_magic_cmd=/usr/bin/file
   6149   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   6150   ;;
   6151 
   6152 *nto* | *qnx*)
   6153   lt_cv_deplibs_check_method=pass_all
   6154   ;;
   6155 
   6156 openbsd*)
   6157   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   6158     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   6159   else
   6160     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   6161   fi
   6162   ;;
   6163 
   6164 osf3* | osf4* | osf5*)
   6165   lt_cv_deplibs_check_method=pass_all
   6166   ;;
   6167 
   6168 rdos*)
   6169   lt_cv_deplibs_check_method=pass_all
   6170   ;;
   6171 
   6172 solaris*)
   6173   lt_cv_deplibs_check_method=pass_all
   6174   ;;
   6175 
   6176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   6177   lt_cv_deplibs_check_method=pass_all
   6178   ;;
   6179 
   6180 sysv4 | sysv4.3*)
   6181   case $host_vendor in
   6182   motorola)
   6183     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]'
   6184     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   6185     ;;
   6186   ncr)
   6187     lt_cv_deplibs_check_method=pass_all
   6188     ;;
   6189   sequent)
   6190     lt_cv_file_magic_cmd='/bin/file'
   6191     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   6192     ;;
   6193   sni)
   6194     lt_cv_file_magic_cmd='/bin/file'
   6195     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   6196     lt_cv_file_magic_test_file=/lib/libc.so
   6197     ;;
   6198   siemens)
   6199     lt_cv_deplibs_check_method=pass_all
   6200     ;;
   6201   pc)
   6202     lt_cv_deplibs_check_method=pass_all
   6203     ;;
   6204   esac
   6205   ;;
   6206 
   6207 tpf*)
   6208   lt_cv_deplibs_check_method=pass_all
   6209   ;;
   6210 esac
   6211 
   6212 fi
   6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   6214 $as_echo "$lt_cv_deplibs_check_method" >&6; }
   6215 
   6216 file_magic_glob=
   6217 want_nocaseglob=no
   6218 if test "$build" = "$host"; then
   6219   case $host_os in
   6220   mingw* | pw32*)
   6221     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   6222       want_nocaseglob=yes
   6223     else
   6224       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   6225     fi
   6226     ;;
   6227   esac
   6228 fi
   6229 
   6230 file_magic_cmd=$lt_cv_file_magic_cmd
   6231 deplibs_check_method=$lt_cv_deplibs_check_method
   6232 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   6233 
   6234 
   6235 
   6236 
   6237 
   6238 
   6239 
   6240 
   6241 
   6242 
   6243 
   6244 
   6245 
   6246 
   6247 
   6248 
   6249 
   6250 
   6251 
   6252 
   6253 
   6254 
   6255 if test -n "$ac_tool_prefix"; then
   6256   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   6257 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6259 $as_echo_n "checking for $ac_word... " >&6; }
   6260 if ${ac_cv_prog_DLLTOOL+:} false; then :
   6261   $as_echo_n "(cached) " >&6
   6262 else
   6263   if test -n "$DLLTOOL"; then
   6264   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   6265 else
   6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6267 for as_dir in $PATH
   6268 do
   6269   IFS=$as_save_IFS
   6270   test -z "$as_dir" && as_dir=.
   6271     for ac_exec_ext in '' $ac_executable_extensions; do
   6272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6273     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   6274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6275     break 2
   6276   fi
   6277 done
   6278   done
   6279 IFS=$as_save_IFS
   6280 
   6281 fi
   6282 fi
   6283 DLLTOOL=$ac_cv_prog_DLLTOOL
   6284 if test -n "$DLLTOOL"; then
   6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   6286 $as_echo "$DLLTOOL" >&6; }
   6287 else
   6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6289 $as_echo "no" >&6; }
   6290 fi
   6291 
   6292 
   6293 fi
   6294 if test -z "$ac_cv_prog_DLLTOOL"; then
   6295   ac_ct_DLLTOOL=$DLLTOOL
   6296   # Extract the first word of "dlltool", so it can be a program name with args.
   6297 set dummy dlltool; ac_word=$2
   6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6299 $as_echo_n "checking for $ac_word... " >&6; }
   6300 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   6301   $as_echo_n "(cached) " >&6
   6302 else
   6303   if test -n "$ac_ct_DLLTOOL"; then
   6304   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   6305 else
   6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6307 for as_dir in $PATH
   6308 do
   6309   IFS=$as_save_IFS
   6310   test -z "$as_dir" && as_dir=.
   6311     for ac_exec_ext in '' $ac_executable_extensions; do
   6312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6313     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   6314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6315     break 2
   6316   fi
   6317 done
   6318   done
   6319 IFS=$as_save_IFS
   6320 
   6321 fi
   6322 fi
   6323 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   6324 if test -n "$ac_ct_DLLTOOL"; then
   6325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   6326 $as_echo "$ac_ct_DLLTOOL" >&6; }
   6327 else
   6328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6329 $as_echo "no" >&6; }
   6330 fi
   6331 
   6332   if test "x$ac_ct_DLLTOOL" = x; then
   6333     DLLTOOL="false"
   6334   else
   6335     case $cross_compiling:$ac_tool_warned in
   6336 yes:)
   6337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6339 ac_tool_warned=yes ;;
   6340 esac
   6341     DLLTOOL=$ac_ct_DLLTOOL
   6342   fi
   6343 else
   6344   DLLTOOL="$ac_cv_prog_DLLTOOL"
   6345 fi
   6346 
   6347 test -z "$DLLTOOL" && DLLTOOL=dlltool
   6348 
   6349 
   6350 
   6351 
   6352 
   6353 
   6354 
   6355 
   6356 
   6357 
   6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   6359 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
   6360 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
   6361   $as_echo_n "(cached) " >&6
   6362 else
   6363   lt_cv_sharedlib_from_linklib_cmd='unknown'
   6364 
   6365 case $host_os in
   6366 cygwin* | mingw* | pw32* | cegcc*)
   6367   # two different shell functions defined in ltmain.sh
   6368   # decide which to use based on capabilities of $DLLTOOL
   6369   case `$DLLTOOL --help 2>&1` in
   6370   *--identify-strict*)
   6371     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   6372     ;;
   6373   *)
   6374     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   6375     ;;
   6376   esac
   6377   ;;
   6378 *)
   6379   # fallback: assume linklib IS sharedlib
   6380   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
   6381   ;;
   6382 esac
   6383 
   6384 fi
   6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   6386 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   6387 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   6388 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   6389 
   6390 
   6391 
   6392 
   6393 
   6394 
   6395 
   6396 if test -n "$ac_tool_prefix"; then
   6397   for ac_prog in ar
   6398   do
   6399     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   6400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6402 $as_echo_n "checking for $ac_word... " >&6; }
   6403 if ${ac_cv_prog_AR+:} false; then :
   6404   $as_echo_n "(cached) " >&6
   6405 else
   6406   if test -n "$AR"; then
   6407   ac_cv_prog_AR="$AR" # Let the user override the test.
   6408 else
   6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6410 for as_dir in $PATH
   6411 do
   6412   IFS=$as_save_IFS
   6413   test -z "$as_dir" && as_dir=.
   6414     for ac_exec_ext in '' $ac_executable_extensions; do
   6415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6416     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   6417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6418     break 2
   6419   fi
   6420 done
   6421   done
   6422 IFS=$as_save_IFS
   6423 
   6424 fi
   6425 fi
   6426 AR=$ac_cv_prog_AR
   6427 if test -n "$AR"; then
   6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   6429 $as_echo "$AR" >&6; }
   6430 else
   6431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6432 $as_echo "no" >&6; }
   6433 fi
   6434 
   6435 
   6436     test -n "$AR" && break
   6437   done
   6438 fi
   6439 if test -z "$AR"; then
   6440   ac_ct_AR=$AR
   6441   for ac_prog in ar
   6442 do
   6443   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6444 set dummy $ac_prog; ac_word=$2
   6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6446 $as_echo_n "checking for $ac_word... " >&6; }
   6447 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   6448   $as_echo_n "(cached) " >&6
   6449 else
   6450   if test -n "$ac_ct_AR"; then
   6451   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6452 else
   6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6454 for as_dir in $PATH
   6455 do
   6456   IFS=$as_save_IFS
   6457   test -z "$as_dir" && as_dir=.
   6458     for ac_exec_ext in '' $ac_executable_extensions; do
   6459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6460     ac_cv_prog_ac_ct_AR="$ac_prog"
   6461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6462     break 2
   6463   fi
   6464 done
   6465   done
   6466 IFS=$as_save_IFS
   6467 
   6468 fi
   6469 fi
   6470 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6471 if test -n "$ac_ct_AR"; then
   6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   6473 $as_echo "$ac_ct_AR" >&6; }
   6474 else
   6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6476 $as_echo "no" >&6; }
   6477 fi
   6478 
   6479 
   6480   test -n "$ac_ct_AR" && break
   6481 done
   6482 
   6483   if test "x$ac_ct_AR" = x; then
   6484     AR="false"
   6485   else
   6486     case $cross_compiling:$ac_tool_warned in
   6487 yes:)
   6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6490 ac_tool_warned=yes ;;
   6491 esac
   6492     AR=$ac_ct_AR
   6493   fi
   6494 fi
   6495 
   6496 : ${AR=ar}
   6497 : ${AR_FLAGS=cru}
   6498 
   6499 
   6500 
   6501 
   6502 
   6503 
   6504 
   6505 
   6506 
   6507 
   6508 
   6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   6510 $as_echo_n "checking for archiver @FILE support... " >&6; }
   6511 if ${lt_cv_ar_at_file+:} false; then :
   6512   $as_echo_n "(cached) " >&6
   6513 else
   6514   lt_cv_ar_at_file=no
   6515    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6516 /* end confdefs.h.  */
   6517 
   6518 int
   6519 main ()
   6520 {
   6521 
   6522   ;
   6523   return 0;
   6524 }
   6525 _ACEOF
   6526 if ac_fn_c_try_compile "$LINENO"; then :
   6527   echo conftest.$ac_objext > conftest.lst
   6528       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   6529       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   6530   (eval $lt_ar_try) 2>&5
   6531   ac_status=$?
   6532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6533   test $ac_status = 0; }
   6534       if test "$ac_status" -eq 0; then
   6535 	# Ensure the archiver fails upon bogus file names.
   6536 	rm -f conftest.$ac_objext libconftest.a
   6537 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   6538   (eval $lt_ar_try) 2>&5
   6539   ac_status=$?
   6540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6541   test $ac_status = 0; }
   6542 	if test "$ac_status" -ne 0; then
   6543           lt_cv_ar_at_file=@
   6544         fi
   6545       fi
   6546       rm -f conftest.* libconftest.a
   6547 
   6548 fi
   6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6550 
   6551 fi
   6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   6553 $as_echo "$lt_cv_ar_at_file" >&6; }
   6554 
   6555 if test "x$lt_cv_ar_at_file" = xno; then
   6556   archiver_list_spec=
   6557 else
   6558   archiver_list_spec=$lt_cv_ar_at_file
   6559 fi
   6560 
   6561 
   6562 
   6563 
   6564 
   6565 
   6566 
   6567 if test -n "$ac_tool_prefix"; then
   6568   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   6569 set dummy ${ac_tool_prefix}strip; ac_word=$2
   6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6571 $as_echo_n "checking for $ac_word... " >&6; }
   6572 if ${ac_cv_prog_STRIP+:} false; then :
   6573   $as_echo_n "(cached) " >&6
   6574 else
   6575   if test -n "$STRIP"; then
   6576   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   6577 else
   6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6579 for as_dir in $PATH
   6580 do
   6581   IFS=$as_save_IFS
   6582   test -z "$as_dir" && as_dir=.
   6583     for ac_exec_ext in '' $ac_executable_extensions; do
   6584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6585     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   6586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6587     break 2
   6588   fi
   6589 done
   6590   done
   6591 IFS=$as_save_IFS
   6592 
   6593 fi
   6594 fi
   6595 STRIP=$ac_cv_prog_STRIP
   6596 if test -n "$STRIP"; then
   6597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   6598 $as_echo "$STRIP" >&6; }
   6599 else
   6600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6601 $as_echo "no" >&6; }
   6602 fi
   6603 
   6604 
   6605 fi
   6606 if test -z "$ac_cv_prog_STRIP"; then
   6607   ac_ct_STRIP=$STRIP
   6608   # Extract the first word of "strip", so it can be a program name with args.
   6609 set dummy strip; ac_word=$2
   6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6611 $as_echo_n "checking for $ac_word... " >&6; }
   6612 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   6613   $as_echo_n "(cached) " >&6
   6614 else
   6615   if test -n "$ac_ct_STRIP"; then
   6616   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   6617 else
   6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6619 for as_dir in $PATH
   6620 do
   6621   IFS=$as_save_IFS
   6622   test -z "$as_dir" && as_dir=.
   6623     for ac_exec_ext in '' $ac_executable_extensions; do
   6624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6625     ac_cv_prog_ac_ct_STRIP="strip"
   6626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6627     break 2
   6628   fi
   6629 done
   6630   done
   6631 IFS=$as_save_IFS
   6632 
   6633 fi
   6634 fi
   6635 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   6636 if test -n "$ac_ct_STRIP"; then
   6637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   6638 $as_echo "$ac_ct_STRIP" >&6; }
   6639 else
   6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6641 $as_echo "no" >&6; }
   6642 fi
   6643 
   6644   if test "x$ac_ct_STRIP" = x; then
   6645     STRIP=":"
   6646   else
   6647     case $cross_compiling:$ac_tool_warned in
   6648 yes:)
   6649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6651 ac_tool_warned=yes ;;
   6652 esac
   6653     STRIP=$ac_ct_STRIP
   6654   fi
   6655 else
   6656   STRIP="$ac_cv_prog_STRIP"
   6657 fi
   6658 
   6659 test -z "$STRIP" && STRIP=:
   6660 
   6661 
   6662 
   6663 
   6664 
   6665 
   6666 if test -n "$ac_tool_prefix"; then
   6667   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   6668 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6670 $as_echo_n "checking for $ac_word... " >&6; }
   6671 if ${ac_cv_prog_RANLIB+:} false; then :
   6672   $as_echo_n "(cached) " >&6
   6673 else
   6674   if test -n "$RANLIB"; then
   6675   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   6676 else
   6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6678 for as_dir in $PATH
   6679 do
   6680   IFS=$as_save_IFS
   6681   test -z "$as_dir" && as_dir=.
   6682     for ac_exec_ext in '' $ac_executable_extensions; do
   6683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6684     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   6685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6686     break 2
   6687   fi
   6688 done
   6689   done
   6690 IFS=$as_save_IFS
   6691 
   6692 fi
   6693 fi
   6694 RANLIB=$ac_cv_prog_RANLIB
   6695 if test -n "$RANLIB"; then
   6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   6697 $as_echo "$RANLIB" >&6; }
   6698 else
   6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6700 $as_echo "no" >&6; }
   6701 fi
   6702 
   6703 
   6704 fi
   6705 if test -z "$ac_cv_prog_RANLIB"; then
   6706   ac_ct_RANLIB=$RANLIB
   6707   # Extract the first word of "ranlib", so it can be a program name with args.
   6708 set dummy ranlib; ac_word=$2
   6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6710 $as_echo_n "checking for $ac_word... " >&6; }
   6711 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   6712   $as_echo_n "(cached) " >&6
   6713 else
   6714   if test -n "$ac_ct_RANLIB"; then
   6715   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6716 else
   6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6718 for as_dir in $PATH
   6719 do
   6720   IFS=$as_save_IFS
   6721   test -z "$as_dir" && as_dir=.
   6722     for ac_exec_ext in '' $ac_executable_extensions; do
   6723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6724     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6726     break 2
   6727   fi
   6728 done
   6729   done
   6730 IFS=$as_save_IFS
   6731 
   6732 fi
   6733 fi
   6734 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6735 if test -n "$ac_ct_RANLIB"; then
   6736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   6737 $as_echo "$ac_ct_RANLIB" >&6; }
   6738 else
   6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6740 $as_echo "no" >&6; }
   6741 fi
   6742 
   6743   if test "x$ac_ct_RANLIB" = x; then
   6744     RANLIB=":"
   6745   else
   6746     case $cross_compiling:$ac_tool_warned in
   6747 yes:)
   6748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6750 ac_tool_warned=yes ;;
   6751 esac
   6752     RANLIB=$ac_ct_RANLIB
   6753   fi
   6754 else
   6755   RANLIB="$ac_cv_prog_RANLIB"
   6756 fi
   6757 
   6758 test -z "$RANLIB" && RANLIB=:
   6759 
   6760 
   6761 
   6762 
   6763 
   6764 
   6765 # Determine commands to create old-style static archives.
   6766 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   6767 old_postinstall_cmds='chmod 644 $oldlib'
   6768 old_postuninstall_cmds=
   6769 
   6770 if test -n "$RANLIB"; then
   6771   case $host_os in
   6772   openbsd*)
   6773     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
   6774     ;;
   6775   *)
   6776     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
   6777     ;;
   6778   esac
   6779   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   6780 fi
   6781 
   6782 case $host_os in
   6783   darwin*)
   6784     lock_old_archive_extraction=yes ;;
   6785   *)
   6786     lock_old_archive_extraction=no ;;
   6787 esac
   6788 
   6789 
   6790 
   6791 
   6792 
   6793 
   6794 
   6795 
   6796 
   6797 
   6798 
   6799 
   6800 
   6801 
   6802 
   6803 
   6804 
   6805 
   6806 
   6807 
   6808 
   6809 
   6810 
   6811 
   6812 
   6813 
   6814 
   6815 
   6816 
   6817 
   6818 
   6819 
   6820 
   6821 
   6822 
   6823 
   6824 
   6825 
   6826 
   6827 # If no C compiler was specified, use CC.
   6828 LTCC=${LTCC-"$CC"}
   6829 
   6830 # If no C compiler flags were specified, use CFLAGS.
   6831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   6832 
   6833 # Allow CC to be a program name with arguments.
   6834 compiler=$CC
   6835 
   6836 
   6837 # Check for command to grab the raw symbol name followed by C symbol from nm.
   6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   6839 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   6840 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   6841   $as_echo_n "(cached) " >&6
   6842 else
   6843 
   6844 # These are sane defaults that work on at least a few old systems.
   6845 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   6846 
   6847 # Character class describing NM global symbol codes.
   6848 symcode='[BCDEGRST]'
   6849 
   6850 # Regexp to match symbols that can be accessed directly from C.
   6851 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   6852 
   6853 # Define system-specific variables.
   6854 case $host_os in
   6855 aix*)
   6856   symcode='[BCDT]'
   6857   ;;
   6858 cygwin* | mingw* | pw32* | cegcc*)
   6859   symcode='[ABCDGISTW]'
   6860   ;;
   6861 hpux*)
   6862   if test "$host_cpu" = ia64; then
   6863     symcode='[ABCDEGRST]'
   6864   fi
   6865   ;;
   6866 irix* | nonstopux*)
   6867   symcode='[BCDEGRST]'
   6868   ;;
   6869 osf*)
   6870   symcode='[BCDEGQRST]'
   6871   ;;
   6872 solaris*)
   6873   symcode='[BDRT]'
   6874   ;;
   6875 sco3.2v5*)
   6876   symcode='[DT]'
   6877   ;;
   6878 sysv4.2uw2*)
   6879   symcode='[DT]'
   6880   ;;
   6881 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   6882   symcode='[ABDT]'
   6883   ;;
   6884 sysv4)
   6885   symcode='[DFNSTU]'
   6886   ;;
   6887 esac
   6888 
   6889 # If we're using GNU nm, then use its standard symbol codes.
   6890 case `$NM -V 2>&1` in
   6891 *GNU* | *'with BFD'*)
   6892   symcode='[ABCDGIRSTW]' ;;
   6893 esac
   6894 
   6895 # Transform an extracted symbol line into a proper C declaration.
   6896 # Some systems (esp. on ia64) link data and code symbols differently,
   6897 # so use this general approach.
   6898 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   6899 
   6900 # Transform an extracted symbol line into symbol name and symbol address
   6901 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
   6902 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
   6903 
   6904 # Handle CRLF in mingw tool chain
   6905 opt_cr=
   6906 case $build_os in
   6907 mingw*)
   6908   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   6909   ;;
   6910 esac
   6911 
   6912 # Try without a prefix underscore, then with it.
   6913 for ac_symprfx in "" "_"; do
   6914 
   6915   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   6916   symxfrm="\\1 $ac_symprfx\\2 \\2"
   6917 
   6918   # Write the raw and C identifiers.
   6919   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6920     # Fake it for dumpbin and say T for any non-static function
   6921     # and D for any global variable.
   6922     # Also find C++ and __fastcall symbols from MSVC++,
   6923     # which start with @ or ?.
   6924     lt_cv_sys_global_symbol_pipe="$AWK '"\
   6925 "     {last_section=section; section=\$ 3};"\
   6926 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   6927 "     \$ 0!~/External *\|/{next};"\
   6928 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   6929 "     {if(hide[section]) next};"\
   6930 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
   6931 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
   6932 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
   6933 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
   6934 "     ' prfx=^$ac_symprfx"
   6935   else
   6936     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   6937   fi
   6938   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   6939 
   6940   # Check to see that the pipe works correctly.
   6941   pipe_works=no
   6942 
   6943   rm -f conftest*
   6944   cat > conftest.$ac_ext <<_LT_EOF
   6945 #ifdef __cplusplus
   6946 extern "C" {
   6947 #endif
   6948 char nm_test_var;
   6949 void nm_test_func(void);
   6950 void nm_test_func(void){}
   6951 #ifdef __cplusplus
   6952 }
   6953 #endif
   6954 int main(){nm_test_var='a';nm_test_func();return(0);}
   6955 _LT_EOF
   6956 
   6957   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6958   (eval $ac_compile) 2>&5
   6959   ac_status=$?
   6960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6961   test $ac_status = 0; }; then
   6962     # Now try to grab the symbols.
   6963     nlist=conftest.nm
   6964     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   6965   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   6966   ac_status=$?
   6967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6968   test $ac_status = 0; } && test -s "$nlist"; then
   6969       # Try sorting and uniquifying the output.
   6970       if sort "$nlist" | uniq > "$nlist"T; then
   6971 	mv -f "$nlist"T "$nlist"
   6972       else
   6973 	rm -f "$nlist"T
   6974       fi
   6975 
   6976       # Make sure that we snagged all the symbols we need.
   6977       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   6978 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   6979 	  cat <<_LT_EOF > conftest.$ac_ext
   6980 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   6981 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
   6982 /* DATA imports from DLLs on WIN32 con't be const, because runtime
   6983    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   6984 # define LT_DLSYM_CONST
   6985 #elif defined(__osf__)
   6986 /* This system does not cope well with relocations in const data.  */
   6987 # define LT_DLSYM_CONST
   6988 #else
   6989 # define LT_DLSYM_CONST const
   6990 #endif
   6991 
   6992 #ifdef __cplusplus
   6993 extern "C" {
   6994 #endif
   6995 
   6996 _LT_EOF
   6997 	  # Now generate the symbol file.
   6998 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   6999 
   7000 	  cat <<_LT_EOF >> conftest.$ac_ext
   7001 
   7002 /* The mapping between symbol names and symbols.  */
   7003 LT_DLSYM_CONST struct {
   7004   const char *name;
   7005   void       *address;
   7006 }
   7007 lt__PROGRAM__LTX_preloaded_symbols[] =
   7008 {
   7009   { "@PROGRAM@", (void *) 0 },
   7010 _LT_EOF
   7011 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   7012 	  cat <<\_LT_EOF >> conftest.$ac_ext
   7013   {0, (void *) 0}
   7014 };
   7015 
   7016 /* This works around a problem in FreeBSD linker */
   7017 #ifdef FREEBSD_WORKAROUND
   7018 static const void *lt_preloaded_setup() {
   7019   return lt__PROGRAM__LTX_preloaded_symbols;
   7020 }
   7021 #endif
   7022 
   7023 #ifdef __cplusplus
   7024 }
   7025 #endif
   7026 _LT_EOF
   7027 	  # Now try linking the two files.
   7028 	  mv conftest.$ac_objext conftstm.$ac_objext
   7029 	  lt_globsym_save_LIBS=$LIBS
   7030 	  lt_globsym_save_CFLAGS=$CFLAGS
   7031 	  LIBS="conftstm.$ac_objext"
   7032 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   7033 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   7034   (eval $ac_link) 2>&5
   7035   ac_status=$?
   7036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7037   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
   7038 	    pipe_works=yes
   7039 	  fi
   7040 	  LIBS=$lt_globsym_save_LIBS
   7041 	  CFLAGS=$lt_globsym_save_CFLAGS
   7042 	else
   7043 	  echo "cannot find nm_test_func in $nlist" >&5
   7044 	fi
   7045       else
   7046 	echo "cannot find nm_test_var in $nlist" >&5
   7047       fi
   7048     else
   7049       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   7050     fi
   7051   else
   7052     echo "$progname: failed program was:" >&5
   7053     cat conftest.$ac_ext >&5
   7054   fi
   7055   rm -rf conftest* conftst*
   7056 
   7057   # Do not use the global_symbol_pipe unless it works.
   7058   if test "$pipe_works" = yes; then
   7059     break
   7060   else
   7061     lt_cv_sys_global_symbol_pipe=
   7062   fi
   7063 done
   7064 
   7065 fi
   7066 
   7067 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   7068   lt_cv_sys_global_symbol_to_cdecl=
   7069 fi
   7070 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   7071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   7072 $as_echo "failed" >&6; }
   7073 else
   7074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   7075 $as_echo "ok" >&6; }
   7076 fi
   7077 
   7078 # Response file support.
   7079 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   7080   nm_file_list_spec='@'
   7081 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   7082   nm_file_list_spec='@'
   7083 fi
   7084 
   7085 
   7086 
   7087 
   7088 
   7089 
   7090 
   7091 
   7092 
   7093 
   7094 
   7095 
   7096 
   7097 
   7098 
   7099 
   7100 
   7101 
   7102 
   7103 
   7104 
   7105 
   7106 
   7107 
   7108 
   7109 
   7110 
   7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   7112 $as_echo_n "checking for sysroot... " >&6; }
   7113 
   7114 # Check whether --with-sysroot was given.
   7115 if test "${with_sysroot+set}" = set; then :
   7116   withval=$with_sysroot;
   7117 else
   7118   with_sysroot=no
   7119 fi
   7120 
   7121 
   7122 lt_sysroot=
   7123 case ${with_sysroot} in #(
   7124  yes)
   7125    if test "$GCC" = yes; then
   7126      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   7127    fi
   7128    ;; #(
   7129  /*)
   7130    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   7131    ;; #(
   7132  no|'')
   7133    ;; #(
   7134  *)
   7135    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
   7136 $as_echo "${with_sysroot}" >&6; }
   7137    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   7138    ;;
   7139 esac
   7140 
   7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   7142 $as_echo "${lt_sysroot:-no}" >&6; }
   7143 
   7144 
   7145 
   7146 
   7147 
   7148 # Check whether --enable-libtool-lock was given.
   7149 if test "${enable_libtool_lock+set}" = set; then :
   7150   enableval=$enable_libtool_lock;
   7151 fi
   7152 
   7153 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
   7154 
   7155 # Some flags need to be propagated to the compiler or linker for good
   7156 # libtool support.
   7157 case $host in
   7158 ia64-*-hpux*)
   7159   # Find out which ABI we are using.
   7160   echo 'int i;' > conftest.$ac_ext
   7161   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7162   (eval $ac_compile) 2>&5
   7163   ac_status=$?
   7164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7165   test $ac_status = 0; }; then
   7166     case `/usr/bin/file conftest.$ac_objext` in
   7167       *ELF-32*)
   7168 	HPUX_IA64_MODE="32"
   7169 	;;
   7170       *ELF-64*)
   7171 	HPUX_IA64_MODE="64"
   7172 	;;
   7173     esac
   7174   fi
   7175   rm -rf conftest*
   7176   ;;
   7177 *-*-irix6*)
   7178   # Find out which ABI we are using.
   7179   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   7180   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7181   (eval $ac_compile) 2>&5
   7182   ac_status=$?
   7183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7184   test $ac_status = 0; }; then
   7185     if test "$lt_cv_prog_gnu_ld" = yes; then
   7186       case `/usr/bin/file conftest.$ac_objext` in
   7187 	*32-bit*)
   7188 	  LD="${LD-ld} -melf32bsmip"
   7189 	  ;;
   7190 	*N32*)
   7191 	  LD="${LD-ld} -melf32bmipn32"
   7192 	  ;;
   7193 	*64-bit*)
   7194 	  LD="${LD-ld} -melf64bmip"
   7195 	;;
   7196       esac
   7197     else
   7198       case `/usr/bin/file conftest.$ac_objext` in
   7199 	*32-bit*)
   7200 	  LD="${LD-ld} -32"
   7201 	  ;;
   7202 	*N32*)
   7203 	  LD="${LD-ld} -n32"
   7204 	  ;;
   7205 	*64-bit*)
   7206 	  LD="${LD-ld} -64"
   7207 	  ;;
   7208       esac
   7209     fi
   7210   fi
   7211   rm -rf conftest*
   7212   ;;
   7213 
   7214 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
   7215 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   7216   # Find out which ABI we are using.
   7217   echo 'int i;' > conftest.$ac_ext
   7218   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7219   (eval $ac_compile) 2>&5
   7220   ac_status=$?
   7221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7222   test $ac_status = 0; }; then
   7223     case `/usr/bin/file conftest.o` in
   7224       *32-bit*)
   7225 	case $host in
   7226 	  x86_64-*kfreebsd*-gnu)
   7227 	    LD="${LD-ld} -m elf_i386_fbsd"
   7228 	    ;;
   7229 	  x86_64-*linux*)
   7230 	    LD="${LD-ld} -m elf_i386"
   7231 	    ;;
   7232 	  ppc64-*linux*|powerpc64-*linux*)
   7233 	    LD="${LD-ld} -m elf32ppclinux"
   7234 	    ;;
   7235 	  s390x-*linux*)
   7236 	    LD="${LD-ld} -m elf_s390"
   7237 	    ;;
   7238 	  sparc64-*linux*)
   7239 	    LD="${LD-ld} -m elf32_sparc"
   7240 	    ;;
   7241 	esac
   7242 	;;
   7243       *64-bit*)
   7244 	case $host in
   7245 	  x86_64-*kfreebsd*-gnu)
   7246 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   7247 	    ;;
   7248 	  x86_64-*linux*)
   7249 	    LD="${LD-ld} -m elf_x86_64"
   7250 	    ;;
   7251 	  ppc*-*linux*|powerpc*-*linux*)
   7252 	    LD="${LD-ld} -m elf64ppc"
   7253 	    ;;
   7254 	  s390*-*linux*|s390*-*tpf*)
   7255 	    LD="${LD-ld} -m elf64_s390"
   7256 	    ;;
   7257 	  sparc*-*linux*)
   7258 	    LD="${LD-ld} -m elf64_sparc"
   7259 	    ;;
   7260 	esac
   7261 	;;
   7262     esac
   7263   fi
   7264   rm -rf conftest*
   7265   ;;
   7266 
   7267 *-*-sco3.2v5*)
   7268   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   7269   SAVE_CFLAGS="$CFLAGS"
   7270   CFLAGS="$CFLAGS -belf"
   7271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   7272 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   7273 if ${lt_cv_cc_needs_belf+:} false; then :
   7274   $as_echo_n "(cached) " >&6
   7275 else
   7276   ac_ext=c
   7277 ac_cpp='$CPP $CPPFLAGS'
   7278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7281 
   7282      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7283 /* end confdefs.h.  */
   7284 
   7285 int
   7286 main ()
   7287 {
   7288 
   7289   ;
   7290   return 0;
   7291 }
   7292 _ACEOF
   7293 if ac_fn_c_try_link "$LINENO"; then :
   7294   lt_cv_cc_needs_belf=yes
   7295 else
   7296   lt_cv_cc_needs_belf=no
   7297 fi
   7298 rm -f core conftest.err conftest.$ac_objext \
   7299     conftest$ac_exeext conftest.$ac_ext
   7300      ac_ext=c
   7301 ac_cpp='$CPP $CPPFLAGS'
   7302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7305 
   7306 fi
   7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   7308 $as_echo "$lt_cv_cc_needs_belf" >&6; }
   7309   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
   7310     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   7311     CFLAGS="$SAVE_CFLAGS"
   7312   fi
   7313   ;;
   7314 sparc*-*solaris*)
   7315   # Find out which ABI we are using.
   7316   echo 'int i;' > conftest.$ac_ext
   7317   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7318   (eval $ac_compile) 2>&5
   7319   ac_status=$?
   7320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7321   test $ac_status = 0; }; then
   7322     case `/usr/bin/file conftest.o` in
   7323     *64-bit*)
   7324       case $lt_cv_prog_gnu_ld in
   7325       yes*) LD="${LD-ld} -m elf64_sparc" ;;
   7326       *)
   7327 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   7328 	  LD="${LD-ld} -64"
   7329 	fi
   7330 	;;
   7331       esac
   7332       ;;
   7333     esac
   7334   fi
   7335   rm -rf conftest*
   7336   ;;
   7337 esac
   7338 
   7339 need_locks="$enable_libtool_lock"
   7340 
   7341 if test -n "$ac_tool_prefix"; then
   7342   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   7343 set dummy ${ac_tool_prefix}mt; ac_word=$2
   7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7345 $as_echo_n "checking for $ac_word... " >&6; }
   7346 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
   7347   $as_echo_n "(cached) " >&6
   7348 else
   7349   if test -n "$MANIFEST_TOOL"; then
   7350   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   7351 else
   7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7353 for as_dir in $PATH
   7354 do
   7355   IFS=$as_save_IFS
   7356   test -z "$as_dir" && as_dir=.
   7357     for ac_exec_ext in '' $ac_executable_extensions; do
   7358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7359     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   7360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7361     break 2
   7362   fi
   7363 done
   7364   done
   7365 IFS=$as_save_IFS
   7366 
   7367 fi
   7368 fi
   7369 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   7370 if test -n "$MANIFEST_TOOL"; then
   7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   7372 $as_echo "$MANIFEST_TOOL" >&6; }
   7373 else
   7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7375 $as_echo "no" >&6; }
   7376 fi
   7377 
   7378 
   7379 fi
   7380 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   7381   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   7382   # Extract the first word of "mt", so it can be a program name with args.
   7383 set dummy mt; ac_word=$2
   7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7385 $as_echo_n "checking for $ac_word... " >&6; }
   7386 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
   7387   $as_echo_n "(cached) " >&6
   7388 else
   7389   if test -n "$ac_ct_MANIFEST_TOOL"; then
   7390   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   7391 else
   7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7393 for as_dir in $PATH
   7394 do
   7395   IFS=$as_save_IFS
   7396   test -z "$as_dir" && as_dir=.
   7397     for ac_exec_ext in '' $ac_executable_extensions; do
   7398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7399     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   7400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7401     break 2
   7402   fi
   7403 done
   7404   done
   7405 IFS=$as_save_IFS
   7406 
   7407 fi
   7408 fi
   7409 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   7410 if test -n "$ac_ct_MANIFEST_TOOL"; then
   7411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   7412 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
   7413 else
   7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7415 $as_echo "no" >&6; }
   7416 fi
   7417 
   7418   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   7419     MANIFEST_TOOL=":"
   7420   else
   7421     case $cross_compiling:$ac_tool_warned in
   7422 yes:)
   7423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7425 ac_tool_warned=yes ;;
   7426 esac
   7427     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   7428   fi
   7429 else
   7430   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   7431 fi
   7432 
   7433 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   7435 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   7436 if ${lt_cv_path_mainfest_tool+:} false; then :
   7437   $as_echo_n "(cached) " >&6
   7438 else
   7439   lt_cv_path_mainfest_tool=no
   7440   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   7441   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   7442   cat conftest.err >&5
   7443   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   7444     lt_cv_path_mainfest_tool=yes
   7445   fi
   7446   rm -f conftest*
   7447 fi
   7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   7449 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
   7450 if test "x$lt_cv_path_mainfest_tool" != xyes; then
   7451   MANIFEST_TOOL=:
   7452 fi
   7453 
   7454 
   7455 
   7456 
   7457 
   7458 
   7459   case $host_os in
   7460     rhapsody* | darwin*)
   7461     if test -n "$ac_tool_prefix"; then
   7462   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   7463 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7465 $as_echo_n "checking for $ac_word... " >&6; }
   7466 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   7467   $as_echo_n "(cached) " >&6
   7468 else
   7469   if test -n "$DSYMUTIL"; then
   7470   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   7471 else
   7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7473 for as_dir in $PATH
   7474 do
   7475   IFS=$as_save_IFS
   7476   test -z "$as_dir" && as_dir=.
   7477     for ac_exec_ext in '' $ac_executable_extensions; do
   7478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7479     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   7480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7481     break 2
   7482   fi
   7483 done
   7484   done
   7485 IFS=$as_save_IFS
   7486 
   7487 fi
   7488 fi
   7489 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   7490 if test -n "$DSYMUTIL"; then
   7491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   7492 $as_echo "$DSYMUTIL" >&6; }
   7493 else
   7494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7495 $as_echo "no" >&6; }
   7496 fi
   7497 
   7498 
   7499 fi
   7500 if test -z "$ac_cv_prog_DSYMUTIL"; then
   7501   ac_ct_DSYMUTIL=$DSYMUTIL
   7502   # Extract the first word of "dsymutil", so it can be a program name with args.
   7503 set dummy dsymutil; ac_word=$2
   7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7505 $as_echo_n "checking for $ac_word... " >&6; }
   7506 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   7507   $as_echo_n "(cached) " >&6
   7508 else
   7509   if test -n "$ac_ct_DSYMUTIL"; then
   7510   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   7511 else
   7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7513 for as_dir in $PATH
   7514 do
   7515   IFS=$as_save_IFS
   7516   test -z "$as_dir" && as_dir=.
   7517     for ac_exec_ext in '' $ac_executable_extensions; do
   7518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7519     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   7520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7521     break 2
   7522   fi
   7523 done
   7524   done
   7525 IFS=$as_save_IFS
   7526 
   7527 fi
   7528 fi
   7529 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   7530 if test -n "$ac_ct_DSYMUTIL"; then
   7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   7532 $as_echo "$ac_ct_DSYMUTIL" >&6; }
   7533 else
   7534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7535 $as_echo "no" >&6; }
   7536 fi
   7537 
   7538   if test "x$ac_ct_DSYMUTIL" = x; then
   7539     DSYMUTIL=":"
   7540   else
   7541     case $cross_compiling:$ac_tool_warned in
   7542 yes:)
   7543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7545 ac_tool_warned=yes ;;
   7546 esac
   7547     DSYMUTIL=$ac_ct_DSYMUTIL
   7548   fi
   7549 else
   7550   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   7551 fi
   7552 
   7553     if test -n "$ac_tool_prefix"; then
   7554   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   7555 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7557 $as_echo_n "checking for $ac_word... " >&6; }
   7558 if ${ac_cv_prog_NMEDIT+:} false; then :
   7559   $as_echo_n "(cached) " >&6
   7560 else
   7561   if test -n "$NMEDIT"; then
   7562   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   7563 else
   7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7565 for as_dir in $PATH
   7566 do
   7567   IFS=$as_save_IFS
   7568   test -z "$as_dir" && as_dir=.
   7569     for ac_exec_ext in '' $ac_executable_extensions; do
   7570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7571     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   7572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7573     break 2
   7574   fi
   7575 done
   7576   done
   7577 IFS=$as_save_IFS
   7578 
   7579 fi
   7580 fi
   7581 NMEDIT=$ac_cv_prog_NMEDIT
   7582 if test -n "$NMEDIT"; then
   7583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   7584 $as_echo "$NMEDIT" >&6; }
   7585 else
   7586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7587 $as_echo "no" >&6; }
   7588 fi
   7589 
   7590 
   7591 fi
   7592 if test -z "$ac_cv_prog_NMEDIT"; then
   7593   ac_ct_NMEDIT=$NMEDIT
   7594   # Extract the first word of "nmedit", so it can be a program name with args.
   7595 set dummy nmedit; ac_word=$2
   7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7597 $as_echo_n "checking for $ac_word... " >&6; }
   7598 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   7599   $as_echo_n "(cached) " >&6
   7600 else
   7601   if test -n "$ac_ct_NMEDIT"; then
   7602   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   7603 else
   7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7605 for as_dir in $PATH
   7606 do
   7607   IFS=$as_save_IFS
   7608   test -z "$as_dir" && as_dir=.
   7609     for ac_exec_ext in '' $ac_executable_extensions; do
   7610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7611     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   7612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7613     break 2
   7614   fi
   7615 done
   7616   done
   7617 IFS=$as_save_IFS
   7618 
   7619 fi
   7620 fi
   7621 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   7622 if test -n "$ac_ct_NMEDIT"; then
   7623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   7624 $as_echo "$ac_ct_NMEDIT" >&6; }
   7625 else
   7626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7627 $as_echo "no" >&6; }
   7628 fi
   7629 
   7630   if test "x$ac_ct_NMEDIT" = x; then
   7631     NMEDIT=":"
   7632   else
   7633     case $cross_compiling:$ac_tool_warned in
   7634 yes:)
   7635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7637 ac_tool_warned=yes ;;
   7638 esac
   7639     NMEDIT=$ac_ct_NMEDIT
   7640   fi
   7641 else
   7642   NMEDIT="$ac_cv_prog_NMEDIT"
   7643 fi
   7644 
   7645     if test -n "$ac_tool_prefix"; then
   7646   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   7647 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7649 $as_echo_n "checking for $ac_word... " >&6; }
   7650 if ${ac_cv_prog_LIPO+:} false; then :
   7651   $as_echo_n "(cached) " >&6
   7652 else
   7653   if test -n "$LIPO"; then
   7654   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   7655 else
   7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7657 for as_dir in $PATH
   7658 do
   7659   IFS=$as_save_IFS
   7660   test -z "$as_dir" && as_dir=.
   7661     for ac_exec_ext in '' $ac_executable_extensions; do
   7662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7663     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   7664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7665     break 2
   7666   fi
   7667 done
   7668   done
   7669 IFS=$as_save_IFS
   7670 
   7671 fi
   7672 fi
   7673 LIPO=$ac_cv_prog_LIPO
   7674 if test -n "$LIPO"; then
   7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   7676 $as_echo "$LIPO" >&6; }
   7677 else
   7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7679 $as_echo "no" >&6; }
   7680 fi
   7681 
   7682 
   7683 fi
   7684 if test -z "$ac_cv_prog_LIPO"; then
   7685   ac_ct_LIPO=$LIPO
   7686   # Extract the first word of "lipo", so it can be a program name with args.
   7687 set dummy lipo; ac_word=$2
   7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7689 $as_echo_n "checking for $ac_word... " >&6; }
   7690 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   7691   $as_echo_n "(cached) " >&6
   7692 else
   7693   if test -n "$ac_ct_LIPO"; then
   7694   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   7695 else
   7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7697 for as_dir in $PATH
   7698 do
   7699   IFS=$as_save_IFS
   7700   test -z "$as_dir" && as_dir=.
   7701     for ac_exec_ext in '' $ac_executable_extensions; do
   7702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7703     ac_cv_prog_ac_ct_LIPO="lipo"
   7704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7705     break 2
   7706   fi
   7707 done
   7708   done
   7709 IFS=$as_save_IFS
   7710 
   7711 fi
   7712 fi
   7713 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   7714 if test -n "$ac_ct_LIPO"; then
   7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   7716 $as_echo "$ac_ct_LIPO" >&6; }
   7717 else
   7718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7719 $as_echo "no" >&6; }
   7720 fi
   7721 
   7722   if test "x$ac_ct_LIPO" = x; then
   7723     LIPO=":"
   7724   else
   7725     case $cross_compiling:$ac_tool_warned in
   7726 yes:)
   7727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7729 ac_tool_warned=yes ;;
   7730 esac
   7731     LIPO=$ac_ct_LIPO
   7732   fi
   7733 else
   7734   LIPO="$ac_cv_prog_LIPO"
   7735 fi
   7736 
   7737     if test -n "$ac_tool_prefix"; then
   7738   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   7739 set dummy ${ac_tool_prefix}otool; ac_word=$2
   7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7741 $as_echo_n "checking for $ac_word... " >&6; }
   7742 if ${ac_cv_prog_OTOOL+:} false; then :
   7743   $as_echo_n "(cached) " >&6
   7744 else
   7745   if test -n "$OTOOL"; then
   7746   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   7747 else
   7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7749 for as_dir in $PATH
   7750 do
   7751   IFS=$as_save_IFS
   7752   test -z "$as_dir" && as_dir=.
   7753     for ac_exec_ext in '' $ac_executable_extensions; do
   7754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7755     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   7756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7757     break 2
   7758   fi
   7759 done
   7760   done
   7761 IFS=$as_save_IFS
   7762 
   7763 fi
   7764 fi
   7765 OTOOL=$ac_cv_prog_OTOOL
   7766 if test -n "$OTOOL"; then
   7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   7768 $as_echo "$OTOOL" >&6; }
   7769 else
   7770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7771 $as_echo "no" >&6; }
   7772 fi
   7773 
   7774 
   7775 fi
   7776 if test -z "$ac_cv_prog_OTOOL"; then
   7777   ac_ct_OTOOL=$OTOOL
   7778   # Extract the first word of "otool", so it can be a program name with args.
   7779 set dummy otool; ac_word=$2
   7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7781 $as_echo_n "checking for $ac_word... " >&6; }
   7782 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   7783   $as_echo_n "(cached) " >&6
   7784 else
   7785   if test -n "$ac_ct_OTOOL"; then
   7786   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   7787 else
   7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7789 for as_dir in $PATH
   7790 do
   7791   IFS=$as_save_IFS
   7792   test -z "$as_dir" && as_dir=.
   7793     for ac_exec_ext in '' $ac_executable_extensions; do
   7794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7795     ac_cv_prog_ac_ct_OTOOL="otool"
   7796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7797     break 2
   7798   fi
   7799 done
   7800   done
   7801 IFS=$as_save_IFS
   7802 
   7803 fi
   7804 fi
   7805 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   7806 if test -n "$ac_ct_OTOOL"; then
   7807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   7808 $as_echo "$ac_ct_OTOOL" >&6; }
   7809 else
   7810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7811 $as_echo "no" >&6; }
   7812 fi
   7813 
   7814   if test "x$ac_ct_OTOOL" = x; then
   7815     OTOOL=":"
   7816   else
   7817     case $cross_compiling:$ac_tool_warned in
   7818 yes:)
   7819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7821 ac_tool_warned=yes ;;
   7822 esac
   7823     OTOOL=$ac_ct_OTOOL
   7824   fi
   7825 else
   7826   OTOOL="$ac_cv_prog_OTOOL"
   7827 fi
   7828 
   7829     if test -n "$ac_tool_prefix"; then
   7830   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   7831 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7833 $as_echo_n "checking for $ac_word... " >&6; }
   7834 if ${ac_cv_prog_OTOOL64+:} false; then :
   7835   $as_echo_n "(cached) " >&6
   7836 else
   7837   if test -n "$OTOOL64"; then
   7838   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   7839 else
   7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7841 for as_dir in $PATH
   7842 do
   7843   IFS=$as_save_IFS
   7844   test -z "$as_dir" && as_dir=.
   7845     for ac_exec_ext in '' $ac_executable_extensions; do
   7846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7847     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   7848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7849     break 2
   7850   fi
   7851 done
   7852   done
   7853 IFS=$as_save_IFS
   7854 
   7855 fi
   7856 fi
   7857 OTOOL64=$ac_cv_prog_OTOOL64
   7858 if test -n "$OTOOL64"; then
   7859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   7860 $as_echo "$OTOOL64" >&6; }
   7861 else
   7862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7863 $as_echo "no" >&6; }
   7864 fi
   7865 
   7866 
   7867 fi
   7868 if test -z "$ac_cv_prog_OTOOL64"; then
   7869   ac_ct_OTOOL64=$OTOOL64
   7870   # Extract the first word of "otool64", so it can be a program name with args.
   7871 set dummy otool64; ac_word=$2
   7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7873 $as_echo_n "checking for $ac_word... " >&6; }
   7874 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   7875   $as_echo_n "(cached) " >&6
   7876 else
   7877   if test -n "$ac_ct_OTOOL64"; then
   7878   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   7879 else
   7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7881 for as_dir in $PATH
   7882 do
   7883   IFS=$as_save_IFS
   7884   test -z "$as_dir" && as_dir=.
   7885     for ac_exec_ext in '' $ac_executable_extensions; do
   7886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7887     ac_cv_prog_ac_ct_OTOOL64="otool64"
   7888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7889     break 2
   7890   fi
   7891 done
   7892   done
   7893 IFS=$as_save_IFS
   7894 
   7895 fi
   7896 fi
   7897 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   7898 if test -n "$ac_ct_OTOOL64"; then
   7899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   7900 $as_echo "$ac_ct_OTOOL64" >&6; }
   7901 else
   7902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7903 $as_echo "no" >&6; }
   7904 fi
   7905 
   7906   if test "x$ac_ct_OTOOL64" = x; then
   7907     OTOOL64=":"
   7908   else
   7909     case $cross_compiling:$ac_tool_warned in
   7910 yes:)
   7911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7913 ac_tool_warned=yes ;;
   7914 esac
   7915     OTOOL64=$ac_ct_OTOOL64
   7916   fi
   7917 else
   7918   OTOOL64="$ac_cv_prog_OTOOL64"
   7919 fi
   7920 
   7921 
   7922 
   7923 
   7924 
   7925 
   7926 
   7927 
   7928 
   7929 
   7930 
   7931 
   7932 
   7933 
   7934 
   7935 
   7936 
   7937 
   7938 
   7939 
   7940 
   7941 
   7942 
   7943 
   7944 
   7945 
   7946 
   7947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   7948 $as_echo_n "checking for -single_module linker flag... " >&6; }
   7949 if ${lt_cv_apple_cc_single_mod+:} false; then :
   7950   $as_echo_n "(cached) " >&6
   7951 else
   7952   lt_cv_apple_cc_single_mod=no
   7953       if test -z "${LT_MULTI_MODULE}"; then
   7954 	# By default we will add the -single_module flag. You can override
   7955 	# by either setting the environment variable LT_MULTI_MODULE
   7956 	# non-empty at configure time, or by adding -multi_module to the
   7957 	# link flags.
   7958 	rm -rf libconftest.dylib*
   7959 	echo "int foo(void){return 1;}" > conftest.c
   7960 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7961 -dynamiclib -Wl,-single_module conftest.c" >&5
   7962 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7963 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   7964         _lt_result=$?
   7965 	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
   7966 	  lt_cv_apple_cc_single_mod=yes
   7967 	else
   7968 	  cat conftest.err >&5
   7969 	fi
   7970 	rm -rf libconftest.dylib*
   7971 	rm -f conftest.*
   7972       fi
   7973 fi
   7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   7975 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   7976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   7977 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   7978 if ${lt_cv_ld_exported_symbols_list+:} false; then :
   7979   $as_echo_n "(cached) " >&6
   7980 else
   7981   lt_cv_ld_exported_symbols_list=no
   7982       save_LDFLAGS=$LDFLAGS
   7983       echo "_main" > conftest.sym
   7984       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   7985       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7986 /* end confdefs.h.  */
   7987 
   7988 int
   7989 main ()
   7990 {
   7991 
   7992   ;
   7993   return 0;
   7994 }
   7995 _ACEOF
   7996 if ac_fn_c_try_link "$LINENO"; then :
   7997   lt_cv_ld_exported_symbols_list=yes
   7998 else
   7999   lt_cv_ld_exported_symbols_list=no
   8000 fi
   8001 rm -f core conftest.err conftest.$ac_objext \
   8002     conftest$ac_exeext conftest.$ac_ext
   8003 	LDFLAGS="$save_LDFLAGS"
   8004 
   8005 fi
   8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   8007 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   8008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   8009 $as_echo_n "checking for -force_load linker flag... " >&6; }
   8010 if ${lt_cv_ld_force_load+:} false; then :
   8011   $as_echo_n "(cached) " >&6
   8012 else
   8013   lt_cv_ld_force_load=no
   8014       cat > conftest.c << _LT_EOF
   8015 int forced_loaded() { return 2;}
   8016 _LT_EOF
   8017       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   8018       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   8019       echo "$AR cru libconftest.a conftest.o" >&5
   8020       $AR cru libconftest.a conftest.o 2>&5
   8021       echo "$RANLIB libconftest.a" >&5
   8022       $RANLIB libconftest.a 2>&5
   8023       cat > conftest.c << _LT_EOF
   8024 int main() { return 0;}
   8025 _LT_EOF
   8026       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   8027       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   8028       _lt_result=$?
   8029       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
   8030 	lt_cv_ld_force_load=yes
   8031       else
   8032 	cat conftest.err >&5
   8033       fi
   8034         rm -f conftest.err libconftest.a conftest conftest.c
   8035         rm -rf conftest.dSYM
   8036 
   8037 fi
   8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   8039 $as_echo "$lt_cv_ld_force_load" >&6; }
   8040     case $host_os in
   8041     rhapsody* | darwin1.[012])
   8042       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
   8043     darwin1.*)
   8044       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   8045     darwin*) # darwin 5.x on
   8046       # if running on 10.5 or later, the deployment target defaults
   8047       # to the OS version, if on x86, and 10.4, the deployment
   8048       # target defaults to 10.4. Don't you love it?
   8049       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   8050 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   8051 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
   8052 	10.[012]*)
   8053 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   8054 	10.*)
   8055 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
   8056       esac
   8057     ;;
   8058   esac
   8059     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
   8060       _lt_dar_single_mod='$single_module'
   8061     fi
   8062     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
   8063       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
   8064     else
   8065       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
   8066     fi
   8067     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
   8068       _lt_dsymutil='~$DSYMUTIL $lib || :'
   8069     else
   8070       _lt_dsymutil=
   8071     fi
   8072     ;;
   8073   esac
   8074 
   8075 for ac_header in dlfcn.h
   8076 do :
   8077   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   8078 "
   8079 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   8080   cat >>confdefs.h <<_ACEOF
   8081 #define HAVE_DLFCN_H 1
   8082 _ACEOF
   8083 
   8084 fi
   8085 
   8086 done
   8087 
   8088 
   8089 
   8090 
   8091 
   8092 # Set options
   8093 
   8094 
   8095 
   8096         enable_dlopen=no
   8097 
   8098 
   8099   enable_win32_dll=no
   8100 
   8101 
   8102             # Check whether --enable-shared was given.
   8103 if test "${enable_shared+set}" = set; then :
   8104   enableval=$enable_shared; p=${PACKAGE-default}
   8105     case $enableval in
   8106     yes) enable_shared=yes ;;
   8107     no) enable_shared=no ;;
   8108     *)
   8109       enable_shared=no
   8110       # Look at the argument we got.  We use all the common list separators.
   8111       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   8112       for pkg in $enableval; do
   8113 	IFS="$lt_save_ifs"
   8114 	if test "X$pkg" = "X$p"; then
   8115 	  enable_shared=yes
   8116 	fi
   8117       done
   8118       IFS="$lt_save_ifs"
   8119       ;;
   8120     esac
   8121 else
   8122   enable_shared=yes
   8123 fi
   8124 
   8125 
   8126 
   8127 
   8128 
   8129 
   8130 
   8131 
   8132 
   8133   # Check whether --enable-static was given.
   8134 if test "${enable_static+set}" = set; then :
   8135   enableval=$enable_static; p=${PACKAGE-default}
   8136     case $enableval in
   8137     yes) enable_static=yes ;;
   8138     no) enable_static=no ;;
   8139     *)
   8140      enable_static=no
   8141       # Look at the argument we got.  We use all the common list separators.
   8142       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   8143       for pkg in $enableval; do
   8144 	IFS="$lt_save_ifs"
   8145 	if test "X$pkg" = "X$p"; then
   8146 	  enable_static=yes
   8147 	fi
   8148       done
   8149       IFS="$lt_save_ifs"
   8150       ;;
   8151     esac
   8152 else
   8153   enable_static=yes
   8154 fi
   8155 
   8156 
   8157 
   8158 
   8159 
   8160 
   8161 
   8162 
   8163 
   8164 
   8165 # Check whether --with-pic was given.
   8166 if test "${with_pic+set}" = set; then :
   8167   withval=$with_pic; pic_mode="$withval"
   8168 else
   8169   pic_mode=default
   8170 fi
   8171 
   8172 
   8173 test -z "$pic_mode" && pic_mode=default
   8174 
   8175 
   8176 
   8177 
   8178 
   8179 
   8180 
   8181   # Check whether --enable-fast-install was given.
   8182 if test "${enable_fast_install+set}" = set; then :
   8183   enableval=$enable_fast_install; p=${PACKAGE-default}
   8184     case $enableval in
   8185     yes) enable_fast_install=yes ;;
   8186     no) enable_fast_install=no ;;
   8187     *)
   8188       enable_fast_install=no
   8189       # Look at the argument we got.  We use all the common list separators.
   8190       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   8191       for pkg in $enableval; do
   8192 	IFS="$lt_save_ifs"
   8193 	if test "X$pkg" = "X$p"; then
   8194 	  enable_fast_install=yes
   8195 	fi
   8196       done
   8197       IFS="$lt_save_ifs"
   8198       ;;
   8199     esac
   8200 else
   8201   enable_fast_install=yes
   8202 fi
   8203 
   8204 
   8205 
   8206 
   8207 
   8208 
   8209 
   8210 
   8211 
   8212 
   8213 
   8214 # This can be used to rebuild libtool when needed
   8215 LIBTOOL_DEPS="$ltmain"
   8216 
   8217 # Always use our own libtool.
   8218 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   8219 
   8220 
   8221 
   8222 
   8223 
   8224 
   8225 
   8226 
   8227 
   8228 
   8229 
   8230 
   8231 
   8232 
   8233 
   8234 
   8235 
   8236 
   8237 
   8238 
   8239 
   8240 
   8241 
   8242 
   8243 
   8244 
   8245 test -z "$LN_S" && LN_S="ln -s"
   8246 
   8247 
   8248 
   8249 
   8250 
   8251 
   8252 
   8253 
   8254 
   8255 
   8256 
   8257 
   8258 
   8259 
   8260 if test -n "${ZSH_VERSION+set}" ; then
   8261    setopt NO_GLOB_SUBST
   8262 fi
   8263 
   8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   8265 $as_echo_n "checking for objdir... " >&6; }
   8266 if ${lt_cv_objdir+:} false; then :
   8267   $as_echo_n "(cached) " >&6
   8268 else
   8269   rm -f .libs 2>/dev/null
   8270 mkdir .libs 2>/dev/null
   8271 if test -d .libs; then
   8272   lt_cv_objdir=.libs
   8273 else
   8274   # MS-DOS does not allow filenames that begin with a dot.
   8275   lt_cv_objdir=_libs
   8276 fi
   8277 rmdir .libs 2>/dev/null
   8278 fi
   8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   8280 $as_echo "$lt_cv_objdir" >&6; }
   8281 objdir=$lt_cv_objdir
   8282 
   8283 
   8284 
   8285 
   8286 
   8287 cat >>confdefs.h <<_ACEOF
   8288 #define LT_OBJDIR "$lt_cv_objdir/"
   8289 _ACEOF
   8290 
   8291 
   8292 
   8293 
   8294 case $host_os in
   8295 aix3*)
   8296   # AIX sometimes has problems with the GCC collect2 program.  For some
   8297   # reason, if we set the COLLECT_NAMES environment variable, the problems
   8298   # vanish in a puff of smoke.
   8299   if test "X${COLLECT_NAMES+set}" != Xset; then
   8300     COLLECT_NAMES=
   8301     export COLLECT_NAMES
   8302   fi
   8303   ;;
   8304 esac
   8305 
   8306 # Global variables:
   8307 ofile=libtool
   8308 can_build_shared=yes
   8309 
   8310 # All known linkers require a `.a' archive for static linking (except MSVC,
   8311 # which needs '.lib').
   8312 libext=a
   8313 
   8314 with_gnu_ld="$lt_cv_prog_gnu_ld"
   8315 
   8316 old_CC="$CC"
   8317 old_CFLAGS="$CFLAGS"
   8318 
   8319 # Set sane defaults for various variables
   8320 test -z "$CC" && CC=cc
   8321 test -z "$LTCC" && LTCC=$CC
   8322 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   8323 test -z "$LD" && LD=ld
   8324 test -z "$ac_objext" && ac_objext=o
   8325 
   8326 for cc_temp in $compiler""; do
   8327   case $cc_temp in
   8328     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   8329     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   8330     \-*) ;;
   8331     *) break;;
   8332   esac
   8333 done
   8334 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   8335 
   8336 
   8337 # Only perform the check for file, if the check method requires it
   8338 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   8339 case $deplibs_check_method in
   8340 file_magic*)
   8341   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   8342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   8343 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   8344 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   8345   $as_echo_n "(cached) " >&6
   8346 else
   8347   case $MAGIC_CMD in
   8348 [\\/*] |  ?:[\\/]*)
   8349   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   8350   ;;
   8351 *)
   8352   lt_save_MAGIC_CMD="$MAGIC_CMD"
   8353   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   8354   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   8355   for ac_dir in $ac_dummy; do
   8356     IFS="$lt_save_ifs"
   8357     test -z "$ac_dir" && ac_dir=.
   8358     if test -f $ac_dir/${ac_tool_prefix}file; then
   8359       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
   8360       if test -n "$file_magic_test_file"; then
   8361 	case $deplibs_check_method in
   8362 	"file_magic "*)
   8363 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   8364 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   8365 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   8366 	    $EGREP "$file_magic_regex" > /dev/null; then
   8367 	    :
   8368 	  else
   8369 	    cat <<_LT_EOF 1>&2
   8370 
   8371 *** Warning: the command libtool uses to detect shared libraries,
   8372 *** $file_magic_cmd, produces output that libtool cannot recognize.
   8373 *** The result is that libtool may fail to recognize shared libraries
   8374 *** as such.  This will affect the creation of libtool libraries that
   8375 *** depend on shared libraries, but programs linked with such libtool
   8376 *** libraries will work regardless of this problem.  Nevertheless, you
   8377 *** may want to report the problem to your system manager and/or to
   8378 *** bug-libtool@gnu.org
   8379 
   8380 _LT_EOF
   8381 	  fi ;;
   8382 	esac
   8383       fi
   8384       break
   8385     fi
   8386   done
   8387   IFS="$lt_save_ifs"
   8388   MAGIC_CMD="$lt_save_MAGIC_CMD"
   8389   ;;
   8390 esac
   8391 fi
   8392 
   8393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   8394 if test -n "$MAGIC_CMD"; then
   8395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   8396 $as_echo "$MAGIC_CMD" >&6; }
   8397 else
   8398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8399 $as_echo "no" >&6; }
   8400 fi
   8401 
   8402 
   8403 
   8404 
   8405 
   8406 if test -z "$lt_cv_path_MAGIC_CMD"; then
   8407   if test -n "$ac_tool_prefix"; then
   8408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   8409 $as_echo_n "checking for file... " >&6; }
   8410 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   8411   $as_echo_n "(cached) " >&6
   8412 else
   8413   case $MAGIC_CMD in
   8414 [\\/*] |  ?:[\\/]*)
   8415   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   8416   ;;
   8417 *)
   8418   lt_save_MAGIC_CMD="$MAGIC_CMD"
   8419   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   8420   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   8421   for ac_dir in $ac_dummy; do
   8422     IFS="$lt_save_ifs"
   8423     test -z "$ac_dir" && ac_dir=.
   8424     if test -f $ac_dir/file; then
   8425       lt_cv_path_MAGIC_CMD="$ac_dir/file"
   8426       if test -n "$file_magic_test_file"; then
   8427 	case $deplibs_check_method in
   8428 	"file_magic "*)
   8429 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   8430 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   8431 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   8432 	    $EGREP "$file_magic_regex" > /dev/null; then
   8433 	    :
   8434 	  else
   8435 	    cat <<_LT_EOF 1>&2
   8436 
   8437 *** Warning: the command libtool uses to detect shared libraries,
   8438 *** $file_magic_cmd, produces output that libtool cannot recognize.
   8439 *** The result is that libtool may fail to recognize shared libraries
   8440 *** as such.  This will affect the creation of libtool libraries that
   8441 *** depend on shared libraries, but programs linked with such libtool
   8442 *** libraries will work regardless of this problem.  Nevertheless, you
   8443 *** may want to report the problem to your system manager and/or to
   8444 *** bug-libtool@gnu.org
   8445 
   8446 _LT_EOF
   8447 	  fi ;;
   8448 	esac
   8449       fi
   8450       break
   8451     fi
   8452   done
   8453   IFS="$lt_save_ifs"
   8454   MAGIC_CMD="$lt_save_MAGIC_CMD"
   8455   ;;
   8456 esac
   8457 fi
   8458 
   8459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   8460 if test -n "$MAGIC_CMD"; then
   8461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   8462 $as_echo "$MAGIC_CMD" >&6; }
   8463 else
   8464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8465 $as_echo "no" >&6; }
   8466 fi
   8467 
   8468 
   8469   else
   8470     MAGIC_CMD=:
   8471   fi
   8472 fi
   8473 
   8474   fi
   8475   ;;
   8476 esac
   8477 
   8478 # Use C for the default configuration in the libtool script
   8479 
   8480 lt_save_CC="$CC"
   8481 ac_ext=c
   8482 ac_cpp='$CPP $CPPFLAGS'
   8483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8486 
   8487 
   8488 # Source file extension for C test sources.
   8489 ac_ext=c
   8490 
   8491 # Object file extension for compiled C test sources.
   8492 objext=o
   8493 objext=$objext
   8494 
   8495 # Code to be used in simple compile tests
   8496 lt_simple_compile_test_code="int some_variable = 0;"
   8497 
   8498 # Code to be used in simple link tests
   8499 lt_simple_link_test_code='int main(){return(0);}'
   8500 
   8501 
   8502 
   8503 
   8504 
   8505 
   8506 
   8507 # If no C compiler was specified, use CC.
   8508 LTCC=${LTCC-"$CC"}
   8509 
   8510 # If no C compiler flags were specified, use CFLAGS.
   8511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   8512 
   8513 # Allow CC to be a program name with arguments.
   8514 compiler=$CC
   8515 
   8516 # Save the default compiler, since it gets overwritten when the other
   8517 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   8518 compiler_DEFAULT=$CC
   8519 
   8520 # save warnings/boilerplate of simple test code
   8521 ac_outfile=conftest.$ac_objext
   8522 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   8523 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   8524 _lt_compiler_boilerplate=`cat conftest.err`
   8525 $RM conftest*
   8526 
   8527 ac_outfile=conftest.$ac_objext
   8528 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   8529 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   8530 _lt_linker_boilerplate=`cat conftest.err`
   8531 $RM -r conftest*
   8532 
   8533 
   8534 ## CAVEAT EMPTOR:
   8535 ## There is no encapsulation within the following macros, do not change
   8536 ## the running order or otherwise move them around unless you know exactly
   8537 ## what you are doing...
   8538 if test -n "$compiler"; then
   8539 
   8540 lt_prog_compiler_no_builtin_flag=
   8541 
   8542 if test "$GCC" = yes; then
   8543   case $cc_basename in
   8544   nvcc*)
   8545     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   8546   *)
   8547     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   8548   esac
   8549 
   8550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   8551 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   8552 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   8553   $as_echo_n "(cached) " >&6
   8554 else
   8555   lt_cv_prog_compiler_rtti_exceptions=no
   8556    ac_outfile=conftest.$ac_objext
   8557    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8558    lt_compiler_flag="-fno-rtti -fno-exceptions"
   8559    # Insert the option either (1) after the last *FLAGS variable, or
   8560    # (2) before a word containing "conftest.", or (3) at the end.
   8561    # Note that $ac_compile itself does not contain backslashes and begins
   8562    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8563    # The option is referenced via a variable to avoid confusing sed.
   8564    lt_compile=`echo "$ac_compile" | $SED \
   8565    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8566    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8567    -e 's:$: $lt_compiler_flag:'`
   8568    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8569    (eval "$lt_compile" 2>conftest.err)
   8570    ac_status=$?
   8571    cat conftest.err >&5
   8572    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8573    if (exit $ac_status) && test -s "$ac_outfile"; then
   8574      # The compiler can only warn and ignore the option if not recognized
   8575      # So say no if there are warnings other than the usual output.
   8576      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8577      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8578      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8579        lt_cv_prog_compiler_rtti_exceptions=yes
   8580      fi
   8581    fi
   8582    $RM conftest*
   8583 
   8584 fi
   8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   8586 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   8587 
   8588 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
   8589     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   8590 else
   8591     :
   8592 fi
   8593 
   8594 fi
   8595 
   8596 
   8597 
   8598 
   8599 
   8600 
   8601   lt_prog_compiler_wl=
   8602 lt_prog_compiler_pic=
   8603 lt_prog_compiler_static=
   8604 
   8605 
   8606   if test "$GCC" = yes; then
   8607     lt_prog_compiler_wl='-Wl,'
   8608     lt_prog_compiler_static='-static'
   8609 
   8610     case $host_os in
   8611       aix*)
   8612       # All AIX code is PIC.
   8613       if test "$host_cpu" = ia64; then
   8614 	# AIX 5 now supports IA64 processor
   8615 	lt_prog_compiler_static='-Bstatic'
   8616       fi
   8617       ;;
   8618 
   8619     amigaos*)
   8620       case $host_cpu in
   8621       powerpc)
   8622             # see comment about AmigaOS4 .so support
   8623             lt_prog_compiler_pic='-fPIC'
   8624         ;;
   8625       m68k)
   8626             # FIXME: we need at least 68020 code to build shared libraries, but
   8627             # adding the `-m68020' flag to GCC prevents building anything better,
   8628             # like `-m68040'.
   8629             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   8630         ;;
   8631       esac
   8632       ;;
   8633 
   8634     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   8635       # PIC is the default for these OSes.
   8636       ;;
   8637 
   8638     mingw* | cygwin* | pw32* | os2* | cegcc*)
   8639       # This hack is so that the source file can tell whether it is being
   8640       # built for inclusion in a dll (and should export symbols for example).
   8641       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   8642       # (--disable-auto-import) libraries
   8643       lt_prog_compiler_pic='-DDLL_EXPORT'
   8644       ;;
   8645 
   8646     darwin* | rhapsody*)
   8647       # PIC is the default on this platform
   8648       # Common symbols not allowed in MH_DYLIB files
   8649       lt_prog_compiler_pic='-fno-common'
   8650       ;;
   8651 
   8652     haiku*)
   8653       # PIC is the default for Haiku.
   8654       # The "-static" flag exists, but is broken.
   8655       lt_prog_compiler_static=
   8656       ;;
   8657 
   8658     hpux*)
   8659       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   8660       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   8661       # sets the default TLS model and affects inlining.
   8662       case $host_cpu in
   8663       hppa*64*)
   8664 	# +Z the default
   8665 	;;
   8666       *)
   8667 	lt_prog_compiler_pic='-fPIC'
   8668 	;;
   8669       esac
   8670       ;;
   8671 
   8672     interix[3-9]*)
   8673       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   8674       # Instead, we relocate shared libraries at runtime.
   8675       ;;
   8676 
   8677     msdosdjgpp*)
   8678       # Just because we use GCC doesn't mean we suddenly get shared libraries
   8679       # on systems that don't support them.
   8680       lt_prog_compiler_can_build_shared=no
   8681       enable_shared=no
   8682       ;;
   8683 
   8684     *nto* | *qnx*)
   8685       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8686       # it will coredump.
   8687       lt_prog_compiler_pic='-fPIC -shared'
   8688       ;;
   8689 
   8690     sysv4*MP*)
   8691       if test -d /usr/nec; then
   8692 	lt_prog_compiler_pic=-Kconform_pic
   8693       fi
   8694       ;;
   8695 
   8696     *)
   8697       lt_prog_compiler_pic='-fPIC'
   8698       ;;
   8699     esac
   8700 
   8701     case $cc_basename in
   8702     nvcc*) # Cuda Compiler Driver 2.2
   8703       lt_prog_compiler_wl='-Xlinker '
   8704       lt_prog_compiler_pic='-Xcompiler -fPIC'
   8705       ;;
   8706     esac
   8707   else
   8708     # PORTME Check for flag to pass linker flags through the system compiler.
   8709     case $host_os in
   8710     aix*)
   8711       lt_prog_compiler_wl='-Wl,'
   8712       if test "$host_cpu" = ia64; then
   8713 	# AIX 5 now supports IA64 processor
   8714 	lt_prog_compiler_static='-Bstatic'
   8715       else
   8716 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   8717       fi
   8718       ;;
   8719 
   8720     mingw* | cygwin* | pw32* | os2* | cegcc*)
   8721       # This hack is so that the source file can tell whether it is being
   8722       # built for inclusion in a dll (and should export symbols for example).
   8723       lt_prog_compiler_pic='-DDLL_EXPORT'
   8724       ;;
   8725 
   8726     hpux9* | hpux10* | hpux11*)
   8727       lt_prog_compiler_wl='-Wl,'
   8728       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   8729       # not for PA HP-UX.
   8730       case $host_cpu in
   8731       hppa*64*|ia64*)
   8732 	# +Z the default
   8733 	;;
   8734       *)
   8735 	lt_prog_compiler_pic='+Z'
   8736 	;;
   8737       esac
   8738       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   8739       lt_prog_compiler_static='${wl}-a ${wl}archive'
   8740       ;;
   8741 
   8742     irix5* | irix6* | nonstopux*)
   8743       lt_prog_compiler_wl='-Wl,'
   8744       # PIC (with -KPIC) is the default.
   8745       lt_prog_compiler_static='-non_shared'
   8746       ;;
   8747 
   8748     linux* | k*bsd*-gnu | kopensolaris*-gnu)
   8749       case $cc_basename in
   8750       # old Intel for x86_64 which still supported -KPIC.
   8751       ecc*)
   8752 	lt_prog_compiler_wl='-Wl,'
   8753 	lt_prog_compiler_pic='-KPIC'
   8754 	lt_prog_compiler_static='-static'
   8755         ;;
   8756       # icc used to be incompatible with GCC.
   8757       # ICC 10 doesn't accept -KPIC any more.
   8758       icc* | ifort*)
   8759 	lt_prog_compiler_wl='-Wl,'
   8760 	lt_prog_compiler_pic='-fPIC'
   8761 	lt_prog_compiler_static='-static'
   8762         ;;
   8763       # Lahey Fortran 8.1.
   8764       lf95*)
   8765 	lt_prog_compiler_wl='-Wl,'
   8766 	lt_prog_compiler_pic='--shared'
   8767 	lt_prog_compiler_static='--static'
   8768 	;;
   8769       nagfor*)
   8770 	# NAG Fortran compiler
   8771 	lt_prog_compiler_wl='-Wl,-Wl,,'
   8772 	lt_prog_compiler_pic='-PIC'
   8773 	lt_prog_compiler_static='-Bstatic'
   8774 	;;
   8775       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   8776         # Portland Group compilers (*not* the Pentium gcc compiler,
   8777 	# which looks to be a dead project)
   8778 	lt_prog_compiler_wl='-Wl,'
   8779 	lt_prog_compiler_pic='-fpic'
   8780 	lt_prog_compiler_static='-Bstatic'
   8781         ;;
   8782       ccc*)
   8783         lt_prog_compiler_wl='-Wl,'
   8784         # All Alpha code is PIC.
   8785         lt_prog_compiler_static='-non_shared'
   8786         ;;
   8787       xl* | bgxl* | bgf* | mpixl*)
   8788 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   8789 	lt_prog_compiler_wl='-Wl,'
   8790 	lt_prog_compiler_pic='-qpic'
   8791 	lt_prog_compiler_static='-qstaticlink'
   8792 	;;
   8793       *)
   8794 	case `$CC -V 2>&1 | sed 5q` in
   8795 	*Sun\ F* | *Sun*Fortran*)
   8796 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   8797 	  lt_prog_compiler_pic='-KPIC'
   8798 	  lt_prog_compiler_static='-Bstatic'
   8799 	  lt_prog_compiler_wl=''
   8800 	  ;;
   8801 	*Sun\ C*)
   8802 	  # Sun C 5.9
   8803 	  lt_prog_compiler_pic='-KPIC'
   8804 	  lt_prog_compiler_static='-Bstatic'
   8805 	  lt_prog_compiler_wl='-Wl,'
   8806 	  ;;
   8807 	esac
   8808 	;;
   8809       esac
   8810       ;;
   8811 
   8812     newsos6)
   8813       lt_prog_compiler_pic='-KPIC'
   8814       lt_prog_compiler_static='-Bstatic'
   8815       ;;
   8816 
   8817     *nto* | *qnx*)
   8818       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8819       # it will coredump.
   8820       lt_prog_compiler_pic='-fPIC -shared'
   8821       ;;
   8822 
   8823     osf3* | osf4* | osf5*)
   8824       lt_prog_compiler_wl='-Wl,'
   8825       # All OSF/1 code is PIC.
   8826       lt_prog_compiler_static='-non_shared'
   8827       ;;
   8828 
   8829     rdos*)
   8830       lt_prog_compiler_static='-non_shared'
   8831       ;;
   8832 
   8833     solaris*)
   8834       lt_prog_compiler_pic='-KPIC'
   8835       lt_prog_compiler_static='-Bstatic'
   8836       case $cc_basename in
   8837       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   8838 	lt_prog_compiler_wl='-Qoption ld ';;
   8839       *)
   8840 	lt_prog_compiler_wl='-Wl,';;
   8841       esac
   8842       ;;
   8843 
   8844     sunos4*)
   8845       lt_prog_compiler_wl='-Qoption ld '
   8846       lt_prog_compiler_pic='-PIC'
   8847       lt_prog_compiler_static='-Bstatic'
   8848       ;;
   8849 
   8850     sysv4 | sysv4.2uw2* | sysv4.3*)
   8851       lt_prog_compiler_wl='-Wl,'
   8852       lt_prog_compiler_pic='-KPIC'
   8853       lt_prog_compiler_static='-Bstatic'
   8854       ;;
   8855 
   8856     sysv4*MP*)
   8857       if test -d /usr/nec ;then
   8858 	lt_prog_compiler_pic='-Kconform_pic'
   8859 	lt_prog_compiler_static='-Bstatic'
   8860       fi
   8861       ;;
   8862 
   8863     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   8864       lt_prog_compiler_wl='-Wl,'
   8865       lt_prog_compiler_pic='-KPIC'
   8866       lt_prog_compiler_static='-Bstatic'
   8867       ;;
   8868 
   8869     unicos*)
   8870       lt_prog_compiler_wl='-Wl,'
   8871       lt_prog_compiler_can_build_shared=no
   8872       ;;
   8873 
   8874     uts4*)
   8875       lt_prog_compiler_pic='-pic'
   8876       lt_prog_compiler_static='-Bstatic'
   8877       ;;
   8878 
   8879     *)
   8880       lt_prog_compiler_can_build_shared=no
   8881       ;;
   8882     esac
   8883   fi
   8884 
   8885 case $host_os in
   8886   # For platforms which do not support PIC, -DPIC is meaningless:
   8887   *djgpp*)
   8888     lt_prog_compiler_pic=
   8889     ;;
   8890   *)
   8891     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   8892     ;;
   8893 esac
   8894 
   8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   8896 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   8897 if ${lt_cv_prog_compiler_pic+:} false; then :
   8898   $as_echo_n "(cached) " >&6
   8899 else
   8900   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   8901 fi
   8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   8903 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
   8904 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   8905 
   8906 #
   8907 # Check to make sure the PIC flag actually works.
   8908 #
   8909 if test -n "$lt_prog_compiler_pic"; then
   8910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   8911 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   8912 if ${lt_cv_prog_compiler_pic_works+:} false; then :
   8913   $as_echo_n "(cached) " >&6
   8914 else
   8915   lt_cv_prog_compiler_pic_works=no
   8916    ac_outfile=conftest.$ac_objext
   8917    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8918    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   8919    # Insert the option either (1) after the last *FLAGS variable, or
   8920    # (2) before a word containing "conftest.", or (3) at the end.
   8921    # Note that $ac_compile itself does not contain backslashes and begins
   8922    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8923    # The option is referenced via a variable to avoid confusing sed.
   8924    lt_compile=`echo "$ac_compile" | $SED \
   8925    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8926    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8927    -e 's:$: $lt_compiler_flag:'`
   8928    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8929    (eval "$lt_compile" 2>conftest.err)
   8930    ac_status=$?
   8931    cat conftest.err >&5
   8932    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8933    if (exit $ac_status) && test -s "$ac_outfile"; then
   8934      # The compiler can only warn and ignore the option if not recognized
   8935      # So say no if there are warnings other than the usual output.
   8936      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8937      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8938      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8939        lt_cv_prog_compiler_pic_works=yes
   8940      fi
   8941    fi
   8942    $RM conftest*
   8943 
   8944 fi
   8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   8946 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   8947 
   8948 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
   8949     case $lt_prog_compiler_pic in
   8950      "" | " "*) ;;
   8951      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   8952      esac
   8953 else
   8954     lt_prog_compiler_pic=
   8955      lt_prog_compiler_can_build_shared=no
   8956 fi
   8957 
   8958 fi
   8959 
   8960 
   8961 
   8962 
   8963 
   8964 
   8965 
   8966 
   8967 
   8968 
   8969 
   8970 #
   8971 # Check to make sure the static flag actually works.
   8972 #
   8973 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   8975 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   8976 if ${lt_cv_prog_compiler_static_works+:} false; then :
   8977   $as_echo_n "(cached) " >&6
   8978 else
   8979   lt_cv_prog_compiler_static_works=no
   8980    save_LDFLAGS="$LDFLAGS"
   8981    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   8982    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   8983    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   8984      # The linker can only warn and ignore the option if not recognized
   8985      # So say no if there are warnings
   8986      if test -s conftest.err; then
   8987        # Append any errors to the config.log.
   8988        cat conftest.err 1>&5
   8989        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   8990        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8991        if diff conftest.exp conftest.er2 >/dev/null; then
   8992          lt_cv_prog_compiler_static_works=yes
   8993        fi
   8994      else
   8995        lt_cv_prog_compiler_static_works=yes
   8996      fi
   8997    fi
   8998    $RM -r conftest*
   8999    LDFLAGS="$save_LDFLAGS"
   9000 
   9001 fi
   9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   9003 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   9004 
   9005 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
   9006     :
   9007 else
   9008     lt_prog_compiler_static=
   9009 fi
   9010 
   9011 
   9012 
   9013 
   9014 
   9015 
   9016 
   9017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   9018 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   9019 if ${lt_cv_prog_compiler_c_o+:} false; then :
   9020   $as_echo_n "(cached) " >&6
   9021 else
   9022   lt_cv_prog_compiler_c_o=no
   9023    $RM -r conftest 2>/dev/null
   9024    mkdir conftest
   9025    cd conftest
   9026    mkdir out
   9027    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9028 
   9029    lt_compiler_flag="-o out/conftest2.$ac_objext"
   9030    # Insert the option either (1) after the last *FLAGS variable, or
   9031    # (2) before a word containing "conftest.", or (3) at the end.
   9032    # Note that $ac_compile itself does not contain backslashes and begins
   9033    # with a dollar sign (not a hyphen), so the echo should work correctly.
   9034    lt_compile=`echo "$ac_compile" | $SED \
   9035    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   9036    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   9037    -e 's:$: $lt_compiler_flag:'`
   9038    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   9039    (eval "$lt_compile" 2>out/conftest.err)
   9040    ac_status=$?
   9041    cat out/conftest.err >&5
   9042    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9043    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   9044    then
   9045      # The compiler can only warn and ignore the option if not recognized
   9046      # So say no if there are warnings
   9047      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   9048      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   9049      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   9050        lt_cv_prog_compiler_c_o=yes
   9051      fi
   9052    fi
   9053    chmod u+w . 2>&5
   9054    $RM conftest*
   9055    # SGI C++ compiler will create directory out/ii_files/ for
   9056    # template instantiation
   9057    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   9058    $RM out/* && rmdir out
   9059    cd ..
   9060    $RM -r conftest
   9061    $RM conftest*
   9062 
   9063 fi
   9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   9065 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   9066 
   9067 
   9068 
   9069 
   9070 
   9071 
   9072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   9073 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   9074 if ${lt_cv_prog_compiler_c_o+:} false; then :
   9075   $as_echo_n "(cached) " >&6
   9076 else
   9077   lt_cv_prog_compiler_c_o=no
   9078    $RM -r conftest 2>/dev/null
   9079    mkdir conftest
   9080    cd conftest
   9081    mkdir out
   9082    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9083 
   9084    lt_compiler_flag="-o out/conftest2.$ac_objext"
   9085    # Insert the option either (1) after the last *FLAGS variable, or
   9086    # (2) before a word containing "conftest.", or (3) at the end.
   9087    # Note that $ac_compile itself does not contain backslashes and begins
   9088    # with a dollar sign (not a hyphen), so the echo should work correctly.
   9089    lt_compile=`echo "$ac_compile" | $SED \
   9090    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   9091    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   9092    -e 's:$: $lt_compiler_flag:'`
   9093    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   9094    (eval "$lt_compile" 2>out/conftest.err)
   9095    ac_status=$?
   9096    cat out/conftest.err >&5
   9097    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9098    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   9099    then
   9100      # The compiler can only warn and ignore the option if not recognized
   9101      # So say no if there are warnings
   9102      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   9103      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   9104      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   9105        lt_cv_prog_compiler_c_o=yes
   9106      fi
   9107    fi
   9108    chmod u+w . 2>&5
   9109    $RM conftest*
   9110    # SGI C++ compiler will create directory out/ii_files/ for
   9111    # template instantiation
   9112    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   9113    $RM out/* && rmdir out
   9114    cd ..
   9115    $RM -r conftest
   9116    $RM conftest*
   9117 
   9118 fi
   9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   9120 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   9121 
   9122 
   9123 
   9124 
   9125 hard_links="nottested"
   9126 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
   9127   # do not overwrite the value of need_locks provided by the user
   9128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   9129 $as_echo_n "checking if we can lock with hard links... " >&6; }
   9130   hard_links=yes
   9131   $RM conftest*
   9132   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   9133   touch conftest.a
   9134   ln conftest.a conftest.b 2>&5 || hard_links=no
   9135   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   9136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   9137 $as_echo "$hard_links" >&6; }
   9138   if test "$hard_links" = no; then
   9139     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   9140 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   9141     need_locks=warn
   9142   fi
   9143 else
   9144   need_locks=no
   9145 fi
   9146 
   9147 
   9148 
   9149 
   9150 
   9151 
   9152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   9153 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   9154 
   9155   runpath_var=
   9156   allow_undefined_flag=
   9157   always_export_symbols=no
   9158   archive_cmds=
   9159   archive_expsym_cmds=
   9160   compiler_needs_object=no
   9161   enable_shared_with_static_runtimes=no
   9162   export_dynamic_flag_spec=
   9163   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   9164   hardcode_automatic=no
   9165   hardcode_direct=no
   9166   hardcode_direct_absolute=no
   9167   hardcode_libdir_flag_spec=
   9168   hardcode_libdir_flag_spec_ld=
   9169   hardcode_libdir_separator=
   9170   hardcode_minus_L=no
   9171   hardcode_shlibpath_var=unsupported
   9172   inherit_rpath=no
   9173   link_all_deplibs=unknown
   9174   module_cmds=
   9175   module_expsym_cmds=
   9176   old_archive_from_new_cmds=
   9177   old_archive_from_expsyms_cmds=
   9178   thread_safe_flag_spec=
   9179   whole_archive_flag_spec=
   9180   # include_expsyms should be a list of space-separated symbols to be *always*
   9181   # included in the symbol list
   9182   include_expsyms=
   9183   # exclude_expsyms can be an extended regexp of symbols to exclude
   9184   # it will be wrapped by ` (' and `)$', so one must not match beginning or
   9185   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
   9186   # as well as any symbol that contains `d'.
   9187   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   9188   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   9189   # platforms (ab)use it in PIC code, but their linkers get confused if
   9190   # the symbol is explicitly referenced.  Since portable code cannot
   9191   # rely on this symbol name, it's probably fine to never include it in
   9192   # preloaded symbol tables.
   9193   # Exclude shared library initialization/finalization symbols.
   9194   extract_expsyms_cmds=
   9195 
   9196   case $host_os in
   9197   cygwin* | mingw* | pw32* | cegcc*)
   9198     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   9199     # When not using gcc, we currently assume that we are using
   9200     # Microsoft Visual C++.
   9201     if test "$GCC" != yes; then
   9202       with_gnu_ld=no
   9203     fi
   9204     ;;
   9205   interix*)
   9206     # we just hope/assume this is gcc and not c89 (= MSVC++)
   9207     with_gnu_ld=yes
   9208     ;;
   9209   openbsd*)
   9210     with_gnu_ld=no
   9211     ;;
   9212   esac
   9213 
   9214   ld_shlibs=yes
   9215 
   9216   # On some targets, GNU ld is compatible enough with the native linker
   9217   # that we're better off using the native interface for both.
   9218   lt_use_gnu_ld_interface=no
   9219   if test "$with_gnu_ld" = yes; then
   9220     case $host_os in
   9221       aix*)
   9222 	# The AIX port of GNU ld has always aspired to compatibility
   9223 	# with the native linker.  However, as the warning in the GNU ld
   9224 	# block says, versions before 2.19.5* couldn't really create working
   9225 	# shared libraries, regardless of the interface used.
   9226 	case `$LD -v 2>&1` in
   9227 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   9228 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   9229 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   9230 	  *)
   9231 	    lt_use_gnu_ld_interface=yes
   9232 	    ;;
   9233 	esac
   9234 	;;
   9235       *)
   9236 	lt_use_gnu_ld_interface=yes
   9237 	;;
   9238     esac
   9239   fi
   9240 
   9241   if test "$lt_use_gnu_ld_interface" = yes; then
   9242     # If archive_cmds runs LD, not CC, wlarc should be empty
   9243     wlarc='${wl}'
   9244 
   9245     # Set some defaults for GNU ld with shared library support. These
   9246     # are reset later if shared libraries are not supported. Putting them
   9247     # here allows them to be overridden if necessary.
   9248     runpath_var=LD_RUN_PATH
   9249     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   9250     export_dynamic_flag_spec='${wl}--export-dynamic'
   9251     # ancient GNU ld didn't support --whole-archive et. al.
   9252     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   9253       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   9254     else
   9255       whole_archive_flag_spec=
   9256     fi
   9257     supports_anon_versioning=no
   9258     case `$LD -v 2>&1` in
   9259       *GNU\ gold*) supports_anon_versioning=yes ;;
   9260       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   9261       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   9262       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   9263       *\ 2.11.*) ;; # other 2.11 versions
   9264       *) supports_anon_versioning=yes ;;
   9265     esac
   9266 
   9267     # See if GNU ld supports shared libraries.
   9268     case $host_os in
   9269     aix[3-9]*)
   9270       # On AIX/PPC, the GNU linker is very broken
   9271       if test "$host_cpu" != ia64; then
   9272 	ld_shlibs=no
   9273 	cat <<_LT_EOF 1>&2
   9274 
   9275 *** Warning: the GNU linker, at least up to release 2.19, is reported
   9276 *** to be unable to reliably create shared libraries on AIX.
   9277 *** Therefore, libtool is disabling shared libraries support.  If you
   9278 *** really care for shared libraries, you may want to install binutils
   9279 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   9280 *** You will then need to restart the configuration process.
   9281 
   9282 _LT_EOF
   9283       fi
   9284       ;;
   9285 
   9286     amigaos*)
   9287       case $host_cpu in
   9288       powerpc)
   9289             # see comment about AmigaOS4 .so support
   9290             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   9291             archive_expsym_cmds=''
   9292         ;;
   9293       m68k)
   9294             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)'
   9295             hardcode_libdir_flag_spec='-L$libdir'
   9296             hardcode_minus_L=yes
   9297         ;;
   9298       esac
   9299       ;;
   9300 
   9301     beos*)
   9302       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9303 	allow_undefined_flag=unsupported
   9304 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   9305 	# support --undefined.  This deserves some investigation.  FIXME
   9306 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   9307       else
   9308 	ld_shlibs=no
   9309       fi
   9310       ;;
   9311 
   9312     cygwin* | mingw* | pw32* | cegcc*)
   9313       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   9314       # as there is no search path for DLLs.
   9315       hardcode_libdir_flag_spec='-L$libdir'
   9316       export_dynamic_flag_spec='${wl}--export-all-symbols'
   9317       allow_undefined_flag=unsupported
   9318       always_export_symbols=no
   9319       enable_shared_with_static_runtimes=yes
   9320       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'
   9321       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   9322 
   9323       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   9324         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   9325 	# If the export-symbols file already is a .def file (1st line
   9326 	# is EXPORTS), use it as is; otherwise, prepend...
   9327 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   9328 	  cp $export_symbols $output_objdir/$soname.def;
   9329 	else
   9330 	  echo EXPORTS > $output_objdir/$soname.def;
   9331 	  cat $export_symbols >> $output_objdir/$soname.def;
   9332 	fi~
   9333 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   9334       else
   9335 	ld_shlibs=no
   9336       fi
   9337       ;;
   9338 
   9339     haiku*)
   9340       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   9341       link_all_deplibs=yes
   9342       ;;
   9343 
   9344     interix[3-9]*)
   9345       hardcode_direct=no
   9346       hardcode_shlibpath_var=no
   9347       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   9348       export_dynamic_flag_spec='${wl}-E'
   9349       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   9350       # Instead, shared libraries are loaded at an image base (0x10000000 by
   9351       # default) and relocated if they conflict, which is a slow very memory
   9352       # consuming and fragmenting process.  To avoid this, we pick a random,
   9353       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   9354       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   9355       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   9356       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'
   9357       ;;
   9358 
   9359     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   9360       tmp_diet=no
   9361       if test "$host_os" = linux-dietlibc; then
   9362 	case $cc_basename in
   9363 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   9364 	esac
   9365       fi
   9366       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   9367 	 && test "$tmp_diet" = no
   9368       then
   9369 	tmp_addflag=' $pic_flag'
   9370 	tmp_sharedflag='-shared'
   9371 	case $cc_basename,$host_cpu in
   9372         pgcc*)				# Portland Group C compiler
   9373 	  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'
   9374 	  tmp_addflag=' $pic_flag'
   9375 	  ;;
   9376 	pgf77* | pgf90* | pgf95* | pgfortran*)
   9377 					# Portland Group f77 and f90 compilers
   9378 	  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'
   9379 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   9380 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   9381 	  tmp_addflag=' -i_dynamic' ;;
   9382 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   9383 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   9384 	ifc* | ifort*)			# Intel Fortran compiler
   9385 	  tmp_addflag=' -nofor_main' ;;
   9386 	lf95*)				# Lahey Fortran 8.1
   9387 	  whole_archive_flag_spec=
   9388 	  tmp_sharedflag='--shared' ;;
   9389 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   9390 	  tmp_sharedflag='-qmkshrobj'
   9391 	  tmp_addflag= ;;
   9392 	nvcc*)	# Cuda Compiler Driver 2.2
   9393 	  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'
   9394 	  compiler_needs_object=yes
   9395 	  ;;
   9396 	esac
   9397 	case `$CC -V 2>&1 | sed 5q` in
   9398 	*Sun\ C*)			# Sun C 5.9
   9399 	  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'
   9400 	  compiler_needs_object=yes
   9401 	  tmp_sharedflag='-G' ;;
   9402 	*Sun\ F*)			# Sun Fortran 8.3
   9403 	  tmp_sharedflag='-G' ;;
   9404 	esac
   9405 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   9406 
   9407         if test "x$supports_anon_versioning" = xyes; then
   9408           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   9409 	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   9410 	    echo "local: *; };" >> $output_objdir/$libname.ver~
   9411 	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
   9412         fi
   9413 
   9414 	case $cc_basename in
   9415 	xlf* | bgf* | bgxlf* | mpixlf*)
   9416 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   9417 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   9418 	  hardcode_libdir_flag_spec=
   9419 	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
   9420 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   9421 	  if test "x$supports_anon_versioning" = xyes; then
   9422 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   9423 	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   9424 	      echo "local: *; };" >> $output_objdir/$libname.ver~
   9425 	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   9426 	  fi
   9427 	  ;;
   9428 	esac
   9429       else
   9430         ld_shlibs=no
   9431       fi
   9432       ;;
   9433 
   9434     netbsd*)
   9435       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9436 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   9437 	wlarc=
   9438       else
   9439 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   9440 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   9441       fi
   9442       ;;
   9443 
   9444     solaris*)
   9445       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   9446 	ld_shlibs=no
   9447 	cat <<_LT_EOF 1>&2
   9448 
   9449 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   9450 *** create shared libraries on Solaris systems.  Therefore, libtool
   9451 *** is disabling shared libraries support.  We urge you to upgrade GNU
   9452 *** binutils to release 2.9.1 or newer.  Another option is to modify
   9453 *** your PATH or compiler configuration so that the native linker is
   9454 *** used, and then restart.
   9455 
   9456 _LT_EOF
   9457       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9458 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   9459 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   9460       else
   9461 	ld_shlibs=no
   9462       fi
   9463       ;;
   9464 
   9465     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   9466       case `$LD -v 2>&1` in
   9467         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   9468 	ld_shlibs=no
   9469 	cat <<_LT_EOF 1>&2
   9470 
   9471 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
   9472 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   9473 *** is disabling shared libraries support.  We urge you to upgrade GNU
   9474 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   9475 *** your PATH or compiler configuration so that the native linker is
   9476 *** used, and then restart.
   9477 
   9478 _LT_EOF
   9479 	;;
   9480 	*)
   9481 	  # For security reasons, it is highly recommended that you always
   9482 	  # use absolute paths for naming shared libraries, and exclude the
   9483 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   9484 	  # requires that you compile everything twice, which is a pain.
   9485 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9486 	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   9487 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   9488 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   9489 	  else
   9490 	    ld_shlibs=no
   9491 	  fi
   9492 	;;
   9493       esac
   9494       ;;
   9495 
   9496     sunos4*)
   9497       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9498       wlarc=
   9499       hardcode_direct=yes
   9500       hardcode_shlibpath_var=no
   9501       ;;
   9502 
   9503     *)
   9504       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9505 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   9506 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   9507       else
   9508 	ld_shlibs=no
   9509       fi
   9510       ;;
   9511     esac
   9512 
   9513     if test "$ld_shlibs" = no; then
   9514       runpath_var=
   9515       hardcode_libdir_flag_spec=
   9516       export_dynamic_flag_spec=
   9517       whole_archive_flag_spec=
   9518     fi
   9519   else
   9520     # PORTME fill in a description of your system's linker (not GNU ld)
   9521     case $host_os in
   9522     aix3*)
   9523       allow_undefined_flag=unsupported
   9524       always_export_symbols=yes
   9525       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'
   9526       # Note: this linker hardcodes the directories in LIBPATH if there
   9527       # are no directories specified by -L.
   9528       hardcode_minus_L=yes
   9529       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
   9530 	# Neither direct hardcoding nor static linking is supported with a
   9531 	# broken collect2.
   9532 	hardcode_direct=unsupported
   9533       fi
   9534       ;;
   9535 
   9536     aix[4-9]*)
   9537       if test "$host_cpu" = ia64; then
   9538 	# On IA64, the linker does run time linking by default, so we don't
   9539 	# have to do anything special.
   9540 	aix_use_runtimelinking=no
   9541 	exp_sym_flag='-Bexport'
   9542 	no_entry_flag=""
   9543       else
   9544 	# If we're using GNU nm, then we don't want the "-C" option.
   9545 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
   9546 	# Also, AIX nm treats weak defined symbols like other global
   9547 	# defined symbols, whereas GNU nm marks them as "W".
   9548 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   9549 	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
   9550 	else
   9551 	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
   9552 	fi
   9553 	aix_use_runtimelinking=no
   9554 
   9555 	# Test if we are trying to use run time linking or normal
   9556 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   9557 	# need to do runtime linking.
   9558 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   9559 	  for ld_flag in $LDFLAGS; do
   9560 	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
   9561 	    aix_use_runtimelinking=yes
   9562 	    break
   9563 	  fi
   9564 	  done
   9565 	  ;;
   9566 	esac
   9567 
   9568 	exp_sym_flag='-bexport'
   9569 	no_entry_flag='-bnoentry'
   9570       fi
   9571 
   9572       # When large executables or shared objects are built, AIX ld can
   9573       # have problems creating the table of contents.  If linking a library
   9574       # or program results in "error TOC overflow" add -mminimal-toc to
   9575       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   9576       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   9577 
   9578       archive_cmds=''
   9579       hardcode_direct=yes
   9580       hardcode_direct_absolute=yes
   9581       hardcode_libdir_separator=':'
   9582       link_all_deplibs=yes
   9583       file_list_spec='${wl}-f,'
   9584 
   9585       if test "$GCC" = yes; then
   9586 	case $host_os in aix4.[012]|aix4.[012].*)
   9587 	# We only want to do this on AIX 4.2 and lower, the check
   9588 	# below for broken collect2 doesn't work under 4.3+
   9589 	  collect2name=`${CC} -print-prog-name=collect2`
   9590 	  if test -f "$collect2name" &&
   9591 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   9592 	  then
   9593 	  # We have reworked collect2
   9594 	  :
   9595 	  else
   9596 	  # We have old collect2
   9597 	  hardcode_direct=unsupported
   9598 	  # It fails to find uninstalled libraries when the uninstalled
   9599 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   9600 	  # to unsupported forces relinking
   9601 	  hardcode_minus_L=yes
   9602 	  hardcode_libdir_flag_spec='-L$libdir'
   9603 	  hardcode_libdir_separator=
   9604 	  fi
   9605 	  ;;
   9606 	esac
   9607 	shared_flag='-shared'
   9608 	if test "$aix_use_runtimelinking" = yes; then
   9609 	  shared_flag="$shared_flag "'${wl}-G'
   9610 	fi
   9611       else
   9612 	# not using gcc
   9613 	if test "$host_cpu" = ia64; then
   9614 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   9615 	# chokes on -Wl,-G. The following line is correct:
   9616 	  shared_flag='-G'
   9617 	else
   9618 	  if test "$aix_use_runtimelinking" = yes; then
   9619 	    shared_flag='${wl}-G'
   9620 	  else
   9621 	    shared_flag='${wl}-bM:SRE'
   9622 	  fi
   9623 	fi
   9624       fi
   9625 
   9626       export_dynamic_flag_spec='${wl}-bexpall'
   9627       # It seems that -bexpall does not export symbols beginning with
   9628       # underscore (_), so it is better to generate a list of symbols to export.
   9629       always_export_symbols=yes
   9630       if test "$aix_use_runtimelinking" = yes; then
   9631 	# Warning - without using the other runtime loading flags (-brtl),
   9632 	# -berok will link without error, but may produce a broken library.
   9633 	allow_undefined_flag='-berok'
   9634         # Determine the default libpath from the value encoded in an
   9635         # empty executable.
   9636         if test "${lt_cv_aix_libpath+set}" = set; then
   9637   aix_libpath=$lt_cv_aix_libpath
   9638 else
   9639   if ${lt_cv_aix_libpath_+:} false; then :
   9640   $as_echo_n "(cached) " >&6
   9641 else
   9642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9643 /* end confdefs.h.  */
   9644 
   9645 int
   9646 main ()
   9647 {
   9648 
   9649   ;
   9650   return 0;
   9651 }
   9652 _ACEOF
   9653 if ac_fn_c_try_link "$LINENO"; then :
   9654 
   9655   lt_aix_libpath_sed='
   9656       /Import File Strings/,/^$/ {
   9657 	  /^0/ {
   9658 	      s/^0  *\([^ ]*\) *$/\1/
   9659 	      p
   9660 	  }
   9661       }'
   9662   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9663   # Check for a 64-bit object if we didn't find anything.
   9664   if test -z "$lt_cv_aix_libpath_"; then
   9665     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9666   fi
   9667 fi
   9668 rm -f core conftest.err conftest.$ac_objext \
   9669     conftest$ac_exeext conftest.$ac_ext
   9670   if test -z "$lt_cv_aix_libpath_"; then
   9671     lt_cv_aix_libpath_="/usr/lib:/lib"
   9672   fi
   9673 
   9674 fi
   9675 
   9676   aix_libpath=$lt_cv_aix_libpath_
   9677 fi
   9678 
   9679         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   9680         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
   9681       else
   9682 	if test "$host_cpu" = ia64; then
   9683 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
   9684 	  allow_undefined_flag="-z nodefs"
   9685 	  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"
   9686 	else
   9687 	 # Determine the default libpath from the value encoded in an
   9688 	 # empty executable.
   9689 	 if test "${lt_cv_aix_libpath+set}" = set; then
   9690   aix_libpath=$lt_cv_aix_libpath
   9691 else
   9692   if ${lt_cv_aix_libpath_+:} false; then :
   9693   $as_echo_n "(cached) " >&6
   9694 else
   9695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9696 /* end confdefs.h.  */
   9697 
   9698 int
   9699 main ()
   9700 {
   9701 
   9702   ;
   9703   return 0;
   9704 }
   9705 _ACEOF
   9706 if ac_fn_c_try_link "$LINENO"; then :
   9707 
   9708   lt_aix_libpath_sed='
   9709       /Import File Strings/,/^$/ {
   9710 	  /^0/ {
   9711 	      s/^0  *\([^ ]*\) *$/\1/
   9712 	      p
   9713 	  }
   9714       }'
   9715   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9716   # Check for a 64-bit object if we didn't find anything.
   9717   if test -z "$lt_cv_aix_libpath_"; then
   9718     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9719   fi
   9720 fi
   9721 rm -f core conftest.err conftest.$ac_objext \
   9722     conftest$ac_exeext conftest.$ac_ext
   9723   if test -z "$lt_cv_aix_libpath_"; then
   9724     lt_cv_aix_libpath_="/usr/lib:/lib"
   9725   fi
   9726 
   9727 fi
   9728 
   9729   aix_libpath=$lt_cv_aix_libpath_
   9730 fi
   9731 
   9732 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   9733 	  # Warning - without using the other run time loading flags,
   9734 	  # -berok will link without error, but may produce a broken library.
   9735 	  no_undefined_flag=' ${wl}-bernotok'
   9736 	  allow_undefined_flag=' ${wl}-berok'
   9737 	  if test "$with_gnu_ld" = yes; then
   9738 	    # We only use this code for GNU lds that support --whole-archive.
   9739 	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
   9740 	  else
   9741 	    # Exported symbols can be pulled into shared objects from archives
   9742 	    whole_archive_flag_spec='$convenience'
   9743 	  fi
   9744 	  archive_cmds_need_lc=yes
   9745 	  # This is similar to how AIX traditionally builds its shared libraries.
   9746 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
   9747 	fi
   9748       fi
   9749       ;;
   9750 
   9751     amigaos*)
   9752       case $host_cpu in
   9753       powerpc)
   9754             # see comment about AmigaOS4 .so support
   9755             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   9756             archive_expsym_cmds=''
   9757         ;;
   9758       m68k)
   9759             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)'
   9760             hardcode_libdir_flag_spec='-L$libdir'
   9761             hardcode_minus_L=yes
   9762         ;;
   9763       esac
   9764       ;;
   9765 
   9766     bsdi[45]*)
   9767       export_dynamic_flag_spec=-rdynamic
   9768       ;;
   9769 
   9770     cygwin* | mingw* | pw32* | cegcc*)
   9771       # When not using gcc, we currently assume that we are using
   9772       # Microsoft Visual C++.
   9773       # hardcode_libdir_flag_spec is actually meaningless, as there is
   9774       # no search path for DLLs.
   9775       case $cc_basename in
   9776       cl*)
   9777 	# Native MSVC
   9778 	hardcode_libdir_flag_spec=' '
   9779 	allow_undefined_flag=unsupported
   9780 	always_export_symbols=yes
   9781 	file_list_spec='@'
   9782 	# Tell ltmain to make .lib files, not .a files.
   9783 	libext=lib
   9784 	# Tell ltmain to make .dll files, not .so files.
   9785 	shrext_cmds=".dll"
   9786 	# FIXME: Setting linknames here is a bad hack.
   9787 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
   9788 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   9789 	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
   9790 	  else
   9791 	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
   9792 	  fi~
   9793 	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   9794 	  linknames='
   9795 	# The linker will not automatically build a static lib if we build a DLL.
   9796 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   9797 	enable_shared_with_static_runtimes=yes
   9798 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   9799 	# Don't use ranlib
   9800 	old_postinstall_cmds='chmod 644 $oldlib'
   9801 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   9802 	  lt_tool_outputfile="@TOOL_OUTPUT@"~
   9803 	  case $lt_outputfile in
   9804 	    *.exe|*.EXE) ;;
   9805 	    *)
   9806 	      lt_outputfile="$lt_outputfile.exe"
   9807 	      lt_tool_outputfile="$lt_tool_outputfile.exe"
   9808 	      ;;
   9809 	  esac~
   9810 	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
   9811 	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   9812 	    $RM "$lt_outputfile.manifest";
   9813 	  fi'
   9814 	;;
   9815       *)
   9816 	# Assume MSVC wrapper
   9817 	hardcode_libdir_flag_spec=' '
   9818 	allow_undefined_flag=unsupported
   9819 	# Tell ltmain to make .lib files, not .a files.
   9820 	libext=lib
   9821 	# Tell ltmain to make .dll files, not .so files.
   9822 	shrext_cmds=".dll"
   9823 	# FIXME: Setting linknames here is a bad hack.
   9824 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   9825 	# The linker will automatically build a .lib file if we build a DLL.
   9826 	old_archive_from_new_cmds='true'
   9827 	# FIXME: Should let the user specify the lib program.
   9828 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   9829 	enable_shared_with_static_runtimes=yes
   9830 	;;
   9831       esac
   9832       ;;
   9833 
   9834     darwin* | rhapsody*)
   9835 
   9836 
   9837   archive_cmds_need_lc=no
   9838   hardcode_direct=no
   9839   hardcode_automatic=yes
   9840   hardcode_shlibpath_var=unsupported
   9841   if test "$lt_cv_ld_force_load" = "yes"; then
   9842     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\"`'
   9843   else
   9844     whole_archive_flag_spec=''
   9845   fi
   9846   link_all_deplibs=yes
   9847   allow_undefined_flag="$_lt_dar_allow_undefined"
   9848   case $cc_basename in
   9849      ifort*) _lt_dar_can_shared=yes ;;
   9850      *) _lt_dar_can_shared=$GCC ;;
   9851   esac
   9852   if test "$_lt_dar_can_shared" = "yes"; then
   9853     output_verbose_link_cmd=func_echo_all
   9854     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
   9855     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
   9856     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}"
   9857     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}"
   9858 
   9859   else
   9860   ld_shlibs=no
   9861   fi
   9862 
   9863       ;;
   9864 
   9865     dgux*)
   9866       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9867       hardcode_libdir_flag_spec='-L$libdir'
   9868       hardcode_shlibpath_var=no
   9869       ;;
   9870 
   9871     freebsd1*)
   9872       ld_shlibs=no
   9873       ;;
   9874 
   9875     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   9876     # support.  Future versions do this automatically, but an explicit c++rt0.o
   9877     # does not break anything, and helps significantly (at the cost of a little
   9878     # extra space).
   9879     freebsd2.2*)
   9880       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   9881       hardcode_libdir_flag_spec='-R$libdir'
   9882       hardcode_direct=yes
   9883       hardcode_shlibpath_var=no
   9884       ;;
   9885 
   9886     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   9887     freebsd2*)
   9888       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9889       hardcode_direct=yes
   9890       hardcode_minus_L=yes
   9891       hardcode_shlibpath_var=no
   9892       ;;
   9893 
   9894     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   9895     freebsd* | dragonfly*)
   9896       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9897       hardcode_libdir_flag_spec='-R$libdir'
   9898       hardcode_direct=yes
   9899       hardcode_shlibpath_var=no
   9900       ;;
   9901 
   9902     hpux9*)
   9903       if test "$GCC" = yes; then
   9904 	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   9905       else
   9906 	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   9907       fi
   9908       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   9909       hardcode_libdir_separator=:
   9910       hardcode_direct=yes
   9911 
   9912       # hardcode_minus_L: Not really in the search PATH,
   9913       # but as the default location of the library.
   9914       hardcode_minus_L=yes
   9915       export_dynamic_flag_spec='${wl}-E'
   9916       ;;
   9917 
   9918     hpux10*)
   9919       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
   9920 	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9921       else
   9922 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9923       fi
   9924       if test "$with_gnu_ld" = no; then
   9925 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   9926 	hardcode_libdir_flag_spec_ld='+b $libdir'
   9927 	hardcode_libdir_separator=:
   9928 	hardcode_direct=yes
   9929 	hardcode_direct_absolute=yes
   9930 	export_dynamic_flag_spec='${wl}-E'
   9931 	# hardcode_minus_L: Not really in the search PATH,
   9932 	# but as the default location of the library.
   9933 	hardcode_minus_L=yes
   9934       fi
   9935       ;;
   9936 
   9937     hpux11*)
   9938       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
   9939 	case $host_cpu in
   9940 	hppa*64*)
   9941 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   9942 	  ;;
   9943 	ia64*)
   9944 	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9945 	  ;;
   9946 	*)
   9947 	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9948 	  ;;
   9949 	esac
   9950       else
   9951 	case $host_cpu in
   9952 	hppa*64*)
   9953 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   9954 	  ;;
   9955 	ia64*)
   9956 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9957 	  ;;
   9958 	*)
   9959 
   9960 	  # Older versions of the 11.00 compiler do not understand -b yet
   9961 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   9962 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   9963 $as_echo_n "checking if $CC understands -b... " >&6; }
   9964 if ${lt_cv_prog_compiler__b+:} false; then :
   9965   $as_echo_n "(cached) " >&6
   9966 else
   9967   lt_cv_prog_compiler__b=no
   9968    save_LDFLAGS="$LDFLAGS"
   9969    LDFLAGS="$LDFLAGS -b"
   9970    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   9971    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   9972      # The linker can only warn and ignore the option if not recognized
   9973      # So say no if there are warnings
   9974      if test -s conftest.err; then
   9975        # Append any errors to the config.log.
   9976        cat conftest.err 1>&5
   9977        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   9978        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9979        if diff conftest.exp conftest.er2 >/dev/null; then
   9980          lt_cv_prog_compiler__b=yes
   9981        fi
   9982      else
   9983        lt_cv_prog_compiler__b=yes
   9984      fi
   9985    fi
   9986    $RM -r conftest*
   9987    LDFLAGS="$save_LDFLAGS"
   9988 
   9989 fi
   9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   9991 $as_echo "$lt_cv_prog_compiler__b" >&6; }
   9992 
   9993 if test x"$lt_cv_prog_compiler__b" = xyes; then
   9994     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9995 else
   9996     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9997 fi
   9998 
   9999 	  ;;
   10000 	esac
   10001       fi
   10002       if test "$with_gnu_ld" = no; then
   10003 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   10004 	hardcode_libdir_separator=:
   10005 
   10006 	case $host_cpu in
   10007 	hppa*64*|ia64*)
   10008 	  hardcode_direct=no
   10009 	  hardcode_shlibpath_var=no
   10010 	  ;;
   10011 	*)
   10012 	  hardcode_direct=yes
   10013 	  hardcode_direct_absolute=yes
   10014 	  export_dynamic_flag_spec='${wl}-E'
   10015 
   10016 	  # hardcode_minus_L: Not really in the search PATH,
   10017 	  # but as the default location of the library.
   10018 	  hardcode_minus_L=yes
   10019 	  ;;
   10020 	esac
   10021       fi
   10022       ;;
   10023 
   10024     irix5* | irix6* | nonstopux*)
   10025       if test "$GCC" = yes; then
   10026 	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'
   10027 	# Try to use the -exported_symbol ld option, if it does not
   10028 	# work, assume that -exports_file does not work either and
   10029 	# implicitly export all symbols.
   10030 	# This should be the same for all languages, so no per-tag cache variable.
   10031 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   10032 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   10033 if ${lt_cv_irix_exported_symbol+:} false; then :
   10034   $as_echo_n "(cached) " >&6
   10035 else
   10036   save_LDFLAGS="$LDFLAGS"
   10037 	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
   10038 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10039 /* end confdefs.h.  */
   10040 int foo (void) { return 0; }
   10041 _ACEOF
   10042 if ac_fn_c_try_link "$LINENO"; then :
   10043   lt_cv_irix_exported_symbol=yes
   10044 else
   10045   lt_cv_irix_exported_symbol=no
   10046 fi
   10047 rm -f core conftest.err conftest.$ac_objext \
   10048     conftest$ac_exeext conftest.$ac_ext
   10049            LDFLAGS="$save_LDFLAGS"
   10050 fi
   10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   10052 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
   10053 	if test "$lt_cv_irix_exported_symbol" = yes; then
   10054           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'
   10055 	fi
   10056       else
   10057 	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'
   10058 	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'
   10059       fi
   10060       archive_cmds_need_lc='no'
   10061       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   10062       hardcode_libdir_separator=:
   10063       inherit_rpath=yes
   10064       link_all_deplibs=yes
   10065       ;;
   10066 
   10067     netbsd*)
   10068       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   10069 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   10070       else
   10071 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   10072       fi
   10073       hardcode_libdir_flag_spec='-R$libdir'
   10074       hardcode_direct=yes
   10075       hardcode_shlibpath_var=no
   10076       ;;
   10077 
   10078     newsos6)
   10079       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10080       hardcode_direct=yes
   10081       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   10082       hardcode_libdir_separator=:
   10083       hardcode_shlibpath_var=no
   10084       ;;
   10085 
   10086     *nto* | *qnx*)
   10087       ;;
   10088 
   10089     openbsd*)
   10090       if test -f /usr/libexec/ld.so; then
   10091 	hardcode_direct=yes
   10092 	hardcode_shlibpath_var=no
   10093 	hardcode_direct_absolute=yes
   10094 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   10095 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   10096 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
   10097 	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   10098 	  export_dynamic_flag_spec='${wl}-E'
   10099 	else
   10100 	  case $host_os in
   10101 	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
   10102 	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   10103 	     hardcode_libdir_flag_spec='-R$libdir'
   10104 	     ;;
   10105 	   *)
   10106 	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   10107 	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   10108 	     ;;
   10109 	  esac
   10110 	fi
   10111       else
   10112 	ld_shlibs=no
   10113       fi
   10114       ;;
   10115 
   10116     os2*)
   10117       hardcode_libdir_flag_spec='-L$libdir'
   10118       hardcode_minus_L=yes
   10119       allow_undefined_flag=unsupported
   10120       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
   10121       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
   10122       ;;
   10123 
   10124     osf3*)
   10125       if test "$GCC" = yes; then
   10126 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   10127 	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'
   10128       else
   10129 	allow_undefined_flag=' -expect_unresolved \*'
   10130 	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'
   10131       fi
   10132       archive_cmds_need_lc='no'
   10133       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   10134       hardcode_libdir_separator=:
   10135       ;;
   10136 
   10137     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   10138       if test "$GCC" = yes; then
   10139 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   10140 	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'
   10141 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   10142       else
   10143 	allow_undefined_flag=' -expect_unresolved \*'
   10144 	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'
   10145 	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~
   10146 	$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'
   10147 
   10148 	# Both c and cxx compiler support -rpath directly
   10149 	hardcode_libdir_flag_spec='-rpath $libdir'
   10150       fi
   10151       archive_cmds_need_lc='no'
   10152       hardcode_libdir_separator=:
   10153       ;;
   10154 
   10155     solaris*)
   10156       no_undefined_flag=' -z defs'
   10157       if test "$GCC" = yes; then
   10158 	wlarc='${wl}'
   10159 	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   10160 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   10161 	  $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'
   10162       else
   10163 	case `$CC -V 2>&1` in
   10164 	*"Compilers 5.0"*)
   10165 	  wlarc=''
   10166 	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10167 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   10168 	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   10169 	  ;;
   10170 	*)
   10171 	  wlarc='${wl}'
   10172 	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   10173 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   10174 	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   10175 	  ;;
   10176 	esac
   10177       fi
   10178       hardcode_libdir_flag_spec='-R$libdir'
   10179       hardcode_shlibpath_var=no
   10180       case $host_os in
   10181       solaris2.[0-5] | solaris2.[0-5].*) ;;
   10182       *)
   10183 	# The compiler driver will combine and reorder linker options,
   10184 	# but understands `-z linker_flag'.  GCC discards it without `$wl',
   10185 	# but is careful enough not to reorder.
   10186 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   10187 	if test "$GCC" = yes; then
   10188 	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
   10189 	else
   10190 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   10191 	fi
   10192 	;;
   10193       esac
   10194       link_all_deplibs=yes
   10195       ;;
   10196 
   10197     sunos4*)
   10198       if test "x$host_vendor" = xsequent; then
   10199 	# Use $CC to link under sequent, because it throws in some extra .o
   10200 	# files that make .init and .fini sections work.
   10201 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   10202       else
   10203 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   10204       fi
   10205       hardcode_libdir_flag_spec='-L$libdir'
   10206       hardcode_direct=yes
   10207       hardcode_minus_L=yes
   10208       hardcode_shlibpath_var=no
   10209       ;;
   10210 
   10211     sysv4)
   10212       case $host_vendor in
   10213 	sni)
   10214 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10215 	  hardcode_direct=yes # is this really true???
   10216 	;;
   10217 	siemens)
   10218 	  ## LD is ld it makes a PLAMLIB
   10219 	  ## CC just makes a GrossModule.
   10220 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   10221 	  reload_cmds='$CC -r -o $output$reload_objs'
   10222 	  hardcode_direct=no
   10223         ;;
   10224 	motorola)
   10225 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10226 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   10227 	;;
   10228       esac
   10229       runpath_var='LD_RUN_PATH'
   10230       hardcode_shlibpath_var=no
   10231       ;;
   10232 
   10233     sysv4.3*)
   10234       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10235       hardcode_shlibpath_var=no
   10236       export_dynamic_flag_spec='-Bexport'
   10237       ;;
   10238 
   10239     sysv4*MP*)
   10240       if test -d /usr/nec; then
   10241 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10242 	hardcode_shlibpath_var=no
   10243 	runpath_var=LD_RUN_PATH
   10244 	hardcode_runpath_var=yes
   10245 	ld_shlibs=yes
   10246       fi
   10247       ;;
   10248 
   10249     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   10250       no_undefined_flag='${wl}-z,text'
   10251       archive_cmds_need_lc=no
   10252       hardcode_shlibpath_var=no
   10253       runpath_var='LD_RUN_PATH'
   10254 
   10255       if test "$GCC" = yes; then
   10256 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10257 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10258       else
   10259 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10260 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10261       fi
   10262       ;;
   10263 
   10264     sysv5* | sco3.2v5* | sco5v6*)
   10265       # Note: We can NOT use -z defs as we might desire, because we do not
   10266       # link with -lc, and that would cause any symbols used from libc to
   10267       # always be unresolved, which means just about no library would
   10268       # ever link correctly.  If we're not using GNU ld we use -z text
   10269       # though, which does catch some bad symbols but isn't as heavy-handed
   10270       # as -z defs.
   10271       no_undefined_flag='${wl}-z,text'
   10272       allow_undefined_flag='${wl}-z,nodefs'
   10273       archive_cmds_need_lc=no
   10274       hardcode_shlibpath_var=no
   10275       hardcode_libdir_flag_spec='${wl}-R,$libdir'
   10276       hardcode_libdir_separator=':'
   10277       link_all_deplibs=yes
   10278       export_dynamic_flag_spec='${wl}-Bexport'
   10279       runpath_var='LD_RUN_PATH'
   10280 
   10281       if test "$GCC" = yes; then
   10282 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10283 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10284       else
   10285 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10286 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10287       fi
   10288       ;;
   10289 
   10290     uts4*)
   10291       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10292       hardcode_libdir_flag_spec='-L$libdir'
   10293       hardcode_shlibpath_var=no
   10294       ;;
   10295 
   10296     *)
   10297       ld_shlibs=no
   10298       ;;
   10299     esac
   10300 
   10301     if test x$host_vendor = xsni; then
   10302       case $host in
   10303       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   10304 	export_dynamic_flag_spec='${wl}-Blargedynsym'
   10305 	;;
   10306       esac
   10307     fi
   10308   fi
   10309 
   10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   10311 $as_echo "$ld_shlibs" >&6; }
   10312 test "$ld_shlibs" = no && can_build_shared=no
   10313 
   10314 with_gnu_ld=$with_gnu_ld
   10315 
   10316 
   10317 
   10318 
   10319 
   10320 
   10321 
   10322 
   10323 
   10324 
   10325 
   10326 
   10327 
   10328 
   10329 
   10330 #
   10331 # Do we need to explicitly link libc?
   10332 #
   10333 case "x$archive_cmds_need_lc" in
   10334 x|xyes)
   10335   # Assume -lc should be added
   10336   archive_cmds_need_lc=yes
   10337 
   10338   if test "$enable_shared" = yes && test "$GCC" = yes; then
   10339     case $archive_cmds in
   10340     *'~'*)
   10341       # FIXME: we may have to deal with multi-command sequences.
   10342       ;;
   10343     '$CC '*)
   10344       # Test whether the compiler implicitly links with -lc since on some
   10345       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   10346       # to ld, don't add -lc before -lgcc.
   10347       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   10348 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   10349 if ${lt_cv_archive_cmds_need_lc+:} false; then :
   10350   $as_echo_n "(cached) " >&6
   10351 else
   10352   $RM conftest*
   10353 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   10354 
   10355 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   10356   (eval $ac_compile) 2>&5
   10357   ac_status=$?
   10358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10359   test $ac_status = 0; } 2>conftest.err; then
   10360 	  soname=conftest
   10361 	  lib=conftest
   10362 	  libobjs=conftest.$ac_objext
   10363 	  deplibs=
   10364 	  wl=$lt_prog_compiler_wl
   10365 	  pic_flag=$lt_prog_compiler_pic
   10366 	  compiler_flags=-v
   10367 	  linker_flags=-v
   10368 	  verstring=
   10369 	  output_objdir=.
   10370 	  libname=conftest
   10371 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   10372 	  allow_undefined_flag=
   10373 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   10374   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   10375   ac_status=$?
   10376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10377   test $ac_status = 0; }
   10378 	  then
   10379 	    lt_cv_archive_cmds_need_lc=no
   10380 	  else
   10381 	    lt_cv_archive_cmds_need_lc=yes
   10382 	  fi
   10383 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   10384 	else
   10385 	  cat conftest.err 1>&5
   10386 	fi
   10387 	$RM conftest*
   10388 
   10389 fi
   10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   10391 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   10392       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   10393       ;;
   10394     esac
   10395   fi
   10396   ;;
   10397 esac
   10398 
   10399 
   10400 
   10401 
   10402 
   10403 
   10404 
   10405 
   10406 
   10407 
   10408 
   10409 
   10410 
   10411 
   10412 
   10413 
   10414 
   10415 
   10416 
   10417 
   10418 
   10419 
   10420 
   10421 
   10422 
   10423 
   10424 
   10425 
   10426 
   10427 
   10428 
   10429 
   10430 
   10431 
   10432 
   10433 
   10434 
   10435 
   10436 
   10437 
   10438 
   10439 
   10440 
   10441 
   10442 
   10443 
   10444 
   10445 
   10446 
   10447 
   10448 
   10449 
   10450 
   10451 
   10452 
   10453 
   10454 
   10455 
   10456 
   10457 
   10458 
   10459 
   10460 
   10461 
   10462 
   10463 
   10464 
   10465 
   10466 
   10467 
   10468 
   10469 
   10470 
   10471 
   10472 
   10473 
   10474 
   10475 
   10476 
   10477 
   10478 
   10479 
   10480 
   10481 
   10482 
   10483 
   10484 
   10485 
   10486 
   10487 
   10488 
   10489 
   10490 
   10491 
   10492 
   10493 
   10494 
   10495 
   10496 
   10497 
   10498 
   10499 
   10500 
   10501 
   10502 
   10503 
   10504 
   10505 
   10506 
   10507 
   10508 
   10509 
   10510 
   10511 
   10512 
   10513 
   10514 
   10515 
   10516 
   10517 
   10518 
   10519 
   10520 
   10521 
   10522 
   10523 
   10524 
   10525 
   10526 
   10527 
   10528 
   10529 
   10530 
   10531 
   10532 
   10533 
   10534 
   10535 
   10536 
   10537 
   10538 
   10539 
   10540 
   10541 
   10542 
   10543 
   10544 
   10545 
   10546 
   10547 
   10548 
   10549 
   10550 
   10551 
   10552 
   10553 
   10554 
   10555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   10556 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   10557 
   10558 if test "$GCC" = yes; then
   10559   case $host_os in
   10560     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
   10561     *) lt_awk_arg="/^libraries:/" ;;
   10562   esac
   10563   case $host_os in
   10564     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
   10565     *) lt_sed_strip_eq="s,=/,/,g" ;;
   10566   esac
   10567   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   10568   case $lt_search_path_spec in
   10569   *\;*)
   10570     # if the path contains ";" then we assume it to be the separator
   10571     # otherwise default to the standard path separator (i.e. ":") - it is
   10572     # assumed that no part of a normal pathname contains ";" but that should
   10573     # okay in the real world where ";" in dirpaths is itself problematic.
   10574     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   10575     ;;
   10576   *)
   10577     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   10578     ;;
   10579   esac
   10580   # Ok, now we have the path, separated by spaces, we can step through it
   10581   # and add multilib dir if necessary.
   10582   lt_tmp_lt_search_path_spec=
   10583   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   10584   for lt_sys_path in $lt_search_path_spec; do
   10585     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
   10586       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
   10587     else
   10588       test -d "$lt_sys_path" && \
   10589 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   10590     fi
   10591   done
   10592   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   10593 BEGIN {RS=" "; FS="/|\n";} {
   10594   lt_foo="";
   10595   lt_count=0;
   10596   for (lt_i = NF; lt_i > 0; lt_i--) {
   10597     if ($lt_i != "" && $lt_i != ".") {
   10598       if ($lt_i == "..") {
   10599         lt_count++;
   10600       } else {
   10601         if (lt_count == 0) {
   10602           lt_foo="/" $lt_i lt_foo;
   10603         } else {
   10604           lt_count--;
   10605         }
   10606       }
   10607     }
   10608   }
   10609   if (lt_foo != "") { lt_freq[lt_foo]++; }
   10610   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   10611 }'`
   10612   # AWK program above erroneously prepends '/' to C:/dos/paths
   10613   # for these hosts.
   10614   case $host_os in
   10615     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   10616       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
   10617   esac
   10618   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   10619 else
   10620   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10621 fi
   10622 library_names_spec=
   10623 libname_spec='lib$name'
   10624 soname_spec=
   10625 shrext_cmds=".so"
   10626 postinstall_cmds=
   10627 postuninstall_cmds=
   10628 finish_cmds=
   10629 finish_eval=
   10630 shlibpath_var=
   10631 shlibpath_overrides_runpath=unknown
   10632 version_type=none
   10633 dynamic_linker="$host_os ld.so"
   10634 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   10635 need_lib_prefix=unknown
   10636 hardcode_into_libs=no
   10637 
   10638 # when you set need_version to no, make sure it does not cause -set_version
   10639 # flags to be left without arguments
   10640 need_version=unknown
   10641 
   10642 case $host_os in
   10643 aix3*)
   10644   version_type=linux
   10645   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   10646   shlibpath_var=LIBPATH
   10647 
   10648   # AIX 3 has no versioning support, so we append a major version to the name.
   10649   soname_spec='${libname}${release}${shared_ext}$major'
   10650   ;;
   10651 
   10652 aix[4-9]*)
   10653   version_type=linux
   10654   need_lib_prefix=no
   10655   need_version=no
   10656   hardcode_into_libs=yes
   10657   if test "$host_cpu" = ia64; then
   10658     # AIX 5 supports IA64
   10659     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   10660     shlibpath_var=LD_LIBRARY_PATH
   10661   else
   10662     # With GCC up to 2.95.x, collect2 would create an import file
   10663     # for dependence libraries.  The import file would start with
   10664     # the line `#! .'.  This would cause the generated library to
   10665     # depend on `.', always an invalid library.  This was fixed in
   10666     # development snapshots of GCC prior to 3.0.
   10667     case $host_os in
   10668       aix4 | aix4.[01] | aix4.[01].*)
   10669       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   10670 	   echo ' yes '
   10671 	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
   10672 	:
   10673       else
   10674 	can_build_shared=no
   10675       fi
   10676       ;;
   10677     esac
   10678     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   10679     # soname into executable. Probably we can add versioning support to
   10680     # collect2, so additional links can be useful in future.
   10681     if test "$aix_use_runtimelinking" = yes; then
   10682       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   10683       # instead of lib<name>.a to let people know that these are not
   10684       # typical AIX shared libraries.
   10685       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   10686     else
   10687       # We preserve .a as extension for shared libraries through AIX4.2
   10688       # and later when we are not doing run time linking.
   10689       library_names_spec='${libname}${release}.a $libname.a'
   10690       soname_spec='${libname}${release}${shared_ext}$major'
   10691     fi
   10692     shlibpath_var=LIBPATH
   10693   fi
   10694   ;;
   10695 
   10696 amigaos*)
   10697   case $host_cpu in
   10698   powerpc)
   10699     # Since July 2007 AmigaOS4 officially supports .so libraries.
   10700     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   10701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   10702     ;;
   10703   m68k)
   10704     library_names_spec='$libname.ixlibrary $libname.a'
   10705     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   10706     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
   10707     ;;
   10708   esac
   10709   ;;
   10710 
   10711 beos*)
   10712   library_names_spec='${libname}${shared_ext}'
   10713   dynamic_linker="$host_os ld.so"
   10714   shlibpath_var=LIBRARY_PATH
   10715   ;;
   10716 
   10717 bsdi[45]*)
   10718   version_type=linux
   10719   need_version=no
   10720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   10721   soname_spec='${libname}${release}${shared_ext}$major'
   10722   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   10723   shlibpath_var=LD_LIBRARY_PATH
   10724   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   10725   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   10726   # the default ld.so.conf also contains /usr/contrib/lib and
   10727   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   10728   # libtool to hard-code these into programs
   10729   ;;
   10730 
   10731 cygwin* | mingw* | pw32* | cegcc*)
   10732   version_type=windows
   10733   shrext_cmds=".dll"
   10734   need_version=no
   10735   need_lib_prefix=no
   10736 
   10737   case $GCC,$cc_basename in
   10738   yes,*)
   10739     # gcc
   10740     library_names_spec='$libname.dll.a'
   10741     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10742     postinstall_cmds='base_file=`basename \${file}`~
   10743       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
   10744       dldir=$destdir/`dirname \$dlpath`~
   10745       test -d \$dldir || mkdir -p \$dldir~
   10746       $install_prog $dir/$dlname \$dldir/$dlname~
   10747       chmod a+x \$dldir/$dlname~
   10748       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10749         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10750       fi'
   10751     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10752       dlpath=$dir/\$dldll~
   10753        $RM \$dlpath'
   10754     shlibpath_overrides_runpath=yes
   10755 
   10756     case $host_os in
   10757     cygwin*)
   10758       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   10759       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   10760 
   10761       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   10762       ;;
   10763     mingw* | cegcc*)
   10764       # MinGW DLLs use traditional 'lib' prefix
   10765       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   10766       ;;
   10767     pw32*)
   10768       # pw32 DLLs use 'pw' prefix rather than 'lib'
   10769       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   10770       ;;
   10771     esac
   10772     dynamic_linker='Win32 ld.exe'
   10773     ;;
   10774 
   10775   *,cl*)
   10776     # Native MSVC
   10777     libname_spec='$name'
   10778     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   10779     library_names_spec='${libname}.dll.lib'
   10780 
   10781     case $build_os in
   10782     mingw*)
   10783       sys_lib_search_path_spec=
   10784       lt_save_ifs=$IFS
   10785       IFS=';'
   10786       for lt_path in $LIB
   10787       do
   10788         IFS=$lt_save_ifs
   10789         # Let DOS variable expansion print the short 8.3 style file name.
   10790         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   10791         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   10792       done
   10793       IFS=$lt_save_ifs
   10794       # Convert to MSYS style.
   10795       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   10796       ;;
   10797     cygwin*)
   10798       # Convert to unix form, then to dos form, then back to unix form
   10799       # but this time dos style (no spaces!) so that the unix form looks
   10800       # like /cygdrive/c/PROGRA~1:/cygdr...
   10801       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   10802       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   10803       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10804       ;;
   10805     *)
   10806       sys_lib_search_path_spec="$LIB"
   10807       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   10808         # It is most probably a Windows format PATH.
   10809         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   10810       else
   10811         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10812       fi
   10813       # FIXME: find the short name or the path components, as spaces are
   10814       # common. (e.g. "Program Files" -> "PROGRA~1")
   10815       ;;
   10816     esac
   10817 
   10818     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10819     postinstall_cmds='base_file=`basename \${file}`~
   10820       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
   10821       dldir=$destdir/`dirname \$dlpath`~
   10822       test -d \$dldir || mkdir -p \$dldir~
   10823       $install_prog $dir/$dlname \$dldir/$dlname'
   10824     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10825       dlpath=$dir/\$dldll~
   10826        $RM \$dlpath'
   10827     shlibpath_overrides_runpath=yes
   10828     dynamic_linker='Win32 link.exe'
   10829     ;;
   10830 
   10831   *)
   10832     # Assume MSVC wrapper
   10833     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   10834     dynamic_linker='Win32 ld.exe'
   10835     ;;
   10836   esac
   10837   # FIXME: first we should search . and the directory the executable is in
   10838   shlibpath_var=PATH
   10839   ;;
   10840 
   10841 darwin* | rhapsody*)
   10842   dynamic_linker="$host_os dyld"
   10843   version_type=darwin
   10844   need_lib_prefix=no
   10845   need_version=no
   10846   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   10847   soname_spec='${libname}${release}${major}$shared_ext'
   10848   shlibpath_overrides_runpath=yes
   10849   shlibpath_var=DYLD_LIBRARY_PATH
   10850   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   10851 
   10852   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   10853   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   10854   ;;
   10855 
   10856 dgux*)
   10857   version_type=linux
   10858   need_lib_prefix=no
   10859   need_version=no
   10860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   10861   soname_spec='${libname}${release}${shared_ext}$major'
   10862   shlibpath_var=LD_LIBRARY_PATH
   10863   ;;
   10864 
   10865 freebsd1*)
   10866   dynamic_linker=no
   10867   ;;
   10868 
   10869 freebsd* | dragonfly*)
   10870   # DragonFly does not have aout.  When/if they implement a new
   10871   # versioning mechanism, adjust this.
   10872   if test -x /usr/bin/objformat; then
   10873     objformat=`/usr/bin/objformat`
   10874   else
   10875     case $host_os in
   10876     freebsd[123]*) objformat=aout ;;
   10877     *) objformat=elf ;;
   10878     esac
   10879   fi
   10880   version_type=freebsd-$objformat
   10881   case $version_type in
   10882     freebsd-elf*)
   10883       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   10884       need_version=no
   10885       need_lib_prefix=no
   10886       ;;
   10887     freebsd-*)
   10888       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   10889       need_version=yes
   10890       ;;
   10891   esac
   10892   shlibpath_var=LD_LIBRARY_PATH
   10893   case $host_os in
   10894   freebsd2*)
   10895     shlibpath_overrides_runpath=yes
   10896     ;;
   10897   freebsd3.[01]* | freebsdelf3.[01]*)
   10898     shlibpath_overrides_runpath=yes
   10899     hardcode_into_libs=yes
   10900     ;;
   10901   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   10902   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   10903     shlibpath_overrides_runpath=no
   10904     hardcode_into_libs=yes
   10905     ;;
   10906   *) # from 4.6 on, and DragonFly
   10907     shlibpath_overrides_runpath=yes
   10908     hardcode_into_libs=yes
   10909     ;;
   10910   esac
   10911   ;;
   10912 
   10913 gnu*)
   10914   version_type=linux
   10915   need_lib_prefix=no
   10916   need_version=no
   10917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   10918   soname_spec='${libname}${release}${shared_ext}$major'
   10919   shlibpath_var=LD_LIBRARY_PATH
   10920   hardcode_into_libs=yes
   10921   ;;
   10922 
   10923 haiku*)
   10924   version_type=linux
   10925   need_lib_prefix=no
   10926   need_version=no
   10927   dynamic_linker="$host_os runtime_loader"
   10928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   10929   soname_spec='${libname}${release}${shared_ext}$major'
   10930   shlibpath_var=LIBRARY_PATH
   10931   shlibpath_overrides_runpath=yes
   10932   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   10933   hardcode_into_libs=yes
   10934   ;;
   10935 
   10936 hpux9* | hpux10* | hpux11*)
   10937   # Give a soname corresponding to the major version so that dld.sl refuses to
   10938   # link against other versions.
   10939   version_type=sunos
   10940   need_lib_prefix=no
   10941   need_version=no
   10942   case $host_cpu in
   10943   ia64*)
   10944     shrext_cmds='.so'
   10945     hardcode_into_libs=yes
   10946     dynamic_linker="$host_os dld.so"
   10947     shlibpath_var=LD_LIBRARY_PATH
   10948     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10949     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   10950     soname_spec='${libname}${release}${shared_ext}$major'
   10951     if test "X$HPUX_IA64_MODE" = X32; then
   10952       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   10953     else
   10954       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   10955     fi
   10956     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10957     ;;
   10958   hppa*64*)
   10959     shrext_cmds='.sl'
   10960     hardcode_into_libs=yes
   10961     dynamic_linker="$host_os dld.sl"
   10962     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   10963     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10964     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   10965     soname_spec='${libname}${release}${shared_ext}$major'
   10966     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   10967     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10968     ;;
   10969   *)
   10970     shrext_cmds='.sl'
   10971     dynamic_linker="$host_os dld.sl"
   10972     shlibpath_var=SHLIB_PATH
   10973     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   10974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   10975     soname_spec='${libname}${release}${shared_ext}$major'
   10976     ;;
   10977   esac
   10978   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   10979   postinstall_cmds='chmod 555 $lib'
   10980   # or fails outright, so override atomically:
   10981   install_override_mode=555
   10982   ;;
   10983 
   10984 interix[3-9]*)
   10985   version_type=linux
   10986   need_lib_prefix=no
   10987   need_version=no
   10988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   10989   soname_spec='${libname}${release}${shared_ext}$major'
   10990   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   10991   shlibpath_var=LD_LIBRARY_PATH
   10992   shlibpath_overrides_runpath=no
   10993   hardcode_into_libs=yes
   10994   ;;
   10995 
   10996 irix5* | irix6* | nonstopux*)
   10997   case $host_os in
   10998     nonstopux*) version_type=nonstopux ;;
   10999     *)
   11000 	if test "$lt_cv_prog_gnu_ld" = yes; then
   11001 		version_type=linux
   11002 	else
   11003 		version_type=irix
   11004 	fi ;;
   11005   esac
   11006   need_lib_prefix=no
   11007   need_version=no
   11008   soname_spec='${libname}${release}${shared_ext}$major'
   11009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   11010   case $host_os in
   11011   irix5* | nonstopux*)
   11012     libsuff= shlibsuff=
   11013     ;;
   11014   *)
   11015     case $LD in # libtool.m4 will add one of these switches to LD
   11016     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   11017       libsuff= shlibsuff= libmagic=32-bit;;
   11018     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   11019       libsuff=32 shlibsuff=N32 libmagic=N32;;
   11020     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   11021       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   11022     *) libsuff= shlibsuff= libmagic=never-match;;
   11023     esac
   11024     ;;
   11025   esac
   11026   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   11027   shlibpath_overrides_runpath=no
   11028   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   11029   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   11030   hardcode_into_libs=yes
   11031   ;;
   11032 
   11033 # No shared lib support for Linux oldld, aout, or coff.
   11034 linux*oldld* | linux*aout* | linux*coff*)
   11035   dynamic_linker=no
   11036   ;;
   11037 
   11038 # This must be Linux ELF.
   11039 linux* | k*bsd*-gnu | kopensolaris*-gnu)
   11040   version_type=linux
   11041   need_lib_prefix=no
   11042   need_version=no
   11043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11044   soname_spec='${libname}${release}${shared_ext}$major'
   11045   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   11046   shlibpath_var=LD_LIBRARY_PATH
   11047   shlibpath_overrides_runpath=no
   11048 
   11049   # Some binutils ld are patched to set DT_RUNPATH
   11050   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   11051   $as_echo_n "(cached) " >&6
   11052 else
   11053   lt_cv_shlibpath_overrides_runpath=no
   11054     save_LDFLAGS=$LDFLAGS
   11055     save_libdir=$libdir
   11056     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   11057 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   11058     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11059 /* end confdefs.h.  */
   11060 
   11061 int
   11062 main ()
   11063 {
   11064 
   11065   ;
   11066   return 0;
   11067 }
   11068 _ACEOF
   11069 if ac_fn_c_try_link "$LINENO"; then :
   11070   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   11071   lt_cv_shlibpath_overrides_runpath=yes
   11072 fi
   11073 fi
   11074 rm -f core conftest.err conftest.$ac_objext \
   11075     conftest$ac_exeext conftest.$ac_ext
   11076     LDFLAGS=$save_LDFLAGS
   11077     libdir=$save_libdir
   11078 
   11079 fi
   11080 
   11081   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   11082 
   11083   # This implies no fast_install, which is unacceptable.
   11084   # Some rework will be needed to allow for fast_install
   11085   # before this can be enabled.
   11086   hardcode_into_libs=yes
   11087 
   11088   # Append ld.so.conf contents to the search path
   11089   if test -f /etc/ld.so.conf; then
   11090     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' ' '`
   11091     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   11092   fi
   11093 
   11094   # We used to test for /lib/ld.so.1 and disable shared libraries on
   11095   # powerpc, because MkLinux only supported shared libraries with the
   11096   # GNU dynamic linker.  Since this was broken with cross compilers,
   11097   # most powerpc-linux boxes support dynamic linking these days and
   11098   # people can always --disable-shared, the test was removed, and we
   11099   # assume the GNU/Linux dynamic linker is in use.
   11100   dynamic_linker='GNU/Linux ld.so'
   11101   ;;
   11102 
   11103 netbsd*)
   11104   version_type=sunos
   11105   need_lib_prefix=no
   11106   need_version=no
   11107   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   11108     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   11109     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   11110     dynamic_linker='NetBSD (a.out) ld.so'
   11111   else
   11112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   11113     soname_spec='${libname}${release}${shared_ext}$major'
   11114     dynamic_linker='NetBSD ld.elf_so'
   11115   fi
   11116   shlibpath_var=LD_LIBRARY_PATH
   11117   shlibpath_overrides_runpath=yes
   11118   hardcode_into_libs=yes
   11119   ;;
   11120 
   11121 newsos6)
   11122   version_type=linux
   11123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11124   shlibpath_var=LD_LIBRARY_PATH
   11125   shlibpath_overrides_runpath=yes
   11126   ;;
   11127 
   11128 *nto* | *qnx*)
   11129   version_type=qnx
   11130   need_lib_prefix=no
   11131   need_version=no
   11132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11133   soname_spec='${libname}${release}${shared_ext}$major'
   11134   shlibpath_var=LD_LIBRARY_PATH
   11135   shlibpath_overrides_runpath=no
   11136   hardcode_into_libs=yes
   11137   dynamic_linker='ldqnx.so'
   11138   ;;
   11139 
   11140 openbsd*)
   11141   version_type=sunos
   11142   sys_lib_dlsearch_path_spec="/usr/lib"
   11143   need_lib_prefix=no
   11144   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
   11145   case $host_os in
   11146     openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
   11147     *)				need_version=no  ;;
   11148   esac
   11149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   11150   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   11151   shlibpath_var=LD_LIBRARY_PATH
   11152   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   11153     case $host_os in
   11154       openbsd2.[89] | openbsd2.[89].*)
   11155 	shlibpath_overrides_runpath=no
   11156 	;;
   11157       *)
   11158 	shlibpath_overrides_runpath=yes
   11159 	;;
   11160       esac
   11161   else
   11162     shlibpath_overrides_runpath=yes
   11163   fi
   11164   ;;
   11165 
   11166 os2*)
   11167   libname_spec='$name'
   11168   shrext_cmds=".dll"
   11169   need_lib_prefix=no
   11170   library_names_spec='$libname${shared_ext} $libname.a'
   11171   dynamic_linker='OS/2 ld.exe'
   11172   shlibpath_var=LIBPATH
   11173   ;;
   11174 
   11175 osf3* | osf4* | osf5*)
   11176   version_type=osf
   11177   need_lib_prefix=no
   11178   need_version=no
   11179   soname_spec='${libname}${release}${shared_ext}$major'
   11180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11181   shlibpath_var=LD_LIBRARY_PATH
   11182   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   11183   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   11184   ;;
   11185 
   11186 rdos*)
   11187   dynamic_linker=no
   11188   ;;
   11189 
   11190 solaris*)
   11191   version_type=linux
   11192   need_lib_prefix=no
   11193   need_version=no
   11194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11195   soname_spec='${libname}${release}${shared_ext}$major'
   11196   shlibpath_var=LD_LIBRARY_PATH
   11197   shlibpath_overrides_runpath=yes
   11198   hardcode_into_libs=yes
   11199   # ldd complains unless libraries are executable
   11200   postinstall_cmds='chmod +x $lib'
   11201   ;;
   11202 
   11203 sunos4*)
   11204   version_type=sunos
   11205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   11206   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   11207   shlibpath_var=LD_LIBRARY_PATH
   11208   shlibpath_overrides_runpath=yes
   11209   if test "$with_gnu_ld" = yes; then
   11210     need_lib_prefix=no
   11211   fi
   11212   need_version=yes
   11213   ;;
   11214 
   11215 sysv4 | sysv4.3*)
   11216   version_type=linux
   11217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11218   soname_spec='${libname}${release}${shared_ext}$major'
   11219   shlibpath_var=LD_LIBRARY_PATH
   11220   case $host_vendor in
   11221     sni)
   11222       shlibpath_overrides_runpath=no
   11223       need_lib_prefix=no
   11224       runpath_var=LD_RUN_PATH
   11225       ;;
   11226     siemens)
   11227       need_lib_prefix=no
   11228       ;;
   11229     motorola)
   11230       need_lib_prefix=no
   11231       need_version=no
   11232       shlibpath_overrides_runpath=no
   11233       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   11234       ;;
   11235   esac
   11236   ;;
   11237 
   11238 sysv4*MP*)
   11239   if test -d /usr/nec ;then
   11240     version_type=linux
   11241     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   11242     soname_spec='$libname${shared_ext}.$major'
   11243     shlibpath_var=LD_LIBRARY_PATH
   11244   fi
   11245   ;;
   11246 
   11247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   11248   version_type=freebsd-elf
   11249   need_lib_prefix=no
   11250   need_version=no
   11251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   11252   soname_spec='${libname}${release}${shared_ext}$major'
   11253   shlibpath_var=LD_LIBRARY_PATH
   11254   shlibpath_overrides_runpath=yes
   11255   hardcode_into_libs=yes
   11256   if test "$with_gnu_ld" = yes; then
   11257     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   11258   else
   11259     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   11260     case $host_os in
   11261       sco3.2v5*)
   11262         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   11263 	;;
   11264     esac
   11265   fi
   11266   sys_lib_dlsearch_path_spec='/usr/lib'
   11267   ;;
   11268 
   11269 tpf*)
   11270   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   11271   version_type=linux
   11272   need_lib_prefix=no
   11273   need_version=no
   11274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11275   shlibpath_var=LD_LIBRARY_PATH
   11276   shlibpath_overrides_runpath=no
   11277   hardcode_into_libs=yes
   11278   ;;
   11279 
   11280 uts4*)
   11281   version_type=linux
   11282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11283   soname_spec='${libname}${release}${shared_ext}$major'
   11284   shlibpath_var=LD_LIBRARY_PATH
   11285   ;;
   11286 
   11287 *)
   11288   dynamic_linker=no
   11289   ;;
   11290 esac
   11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   11292 $as_echo "$dynamic_linker" >&6; }
   11293 test "$dynamic_linker" = no && can_build_shared=no
   11294 
   11295 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   11296 if test "$GCC" = yes; then
   11297   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   11298 fi
   11299 
   11300 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
   11301   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
   11302 fi
   11303 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
   11304   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
   11305 fi
   11306 
   11307 
   11308 
   11309 
   11310 
   11311 
   11312 
   11313 
   11314 
   11315 
   11316 
   11317 
   11318 
   11319 
   11320 
   11321 
   11322 
   11323 
   11324 
   11325 
   11326 
   11327 
   11328 
   11329 
   11330 
   11331 
   11332 
   11333 
   11334 
   11335 
   11336 
   11337 
   11338 
   11339 
   11340 
   11341 
   11342 
   11343 
   11344 
   11345 
   11346 
   11347 
   11348 
   11349 
   11350 
   11351 
   11352 
   11353 
   11354 
   11355 
   11356 
   11357 
   11358 
   11359 
   11360 
   11361 
   11362 
   11363 
   11364 
   11365 
   11366 
   11367 
   11368 
   11369 
   11370 
   11371 
   11372 
   11373 
   11374 
   11375 
   11376 
   11377 
   11378 
   11379 
   11380 
   11381 
   11382 
   11383 
   11384 
   11385 
   11386 
   11387 
   11388 
   11389 
   11390 
   11391 
   11392 
   11393 
   11394 
   11395 
   11396 
   11397 
   11398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   11399 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   11400 hardcode_action=
   11401 if test -n "$hardcode_libdir_flag_spec" ||
   11402    test -n "$runpath_var" ||
   11403    test "X$hardcode_automatic" = "Xyes" ; then
   11404 
   11405   # We can hardcode non-existent directories.
   11406   if test "$hardcode_direct" != no &&
   11407      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   11408      # have to relink, otherwise we might link with an installed library
   11409      # when we should be linking with a yet-to-be-installed one
   11410      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
   11411      test "$hardcode_minus_L" != no; then
   11412     # Linking always hardcodes the temporary library directory.
   11413     hardcode_action=relink
   11414   else
   11415     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   11416     hardcode_action=immediate
   11417   fi
   11418 else
   11419   # We cannot hardcode anything, or else we can only hardcode existing
   11420   # directories.
   11421   hardcode_action=unsupported
   11422 fi
   11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   11424 $as_echo "$hardcode_action" >&6; }
   11425 
   11426 if test "$hardcode_action" = relink ||
   11427    test "$inherit_rpath" = yes; then
   11428   # Fast installation is not supported
   11429   enable_fast_install=no
   11430 elif test "$shlibpath_overrides_runpath" = yes ||
   11431      test "$enable_shared" = no; then
   11432   # Fast installation is not necessary
   11433   enable_fast_install=needless
   11434 fi
   11435 
   11436 
   11437 
   11438 
   11439 
   11440 
   11441   if test "x$enable_dlopen" != xyes; then
   11442   enable_dlopen=unknown
   11443   enable_dlopen_self=unknown
   11444   enable_dlopen_self_static=unknown
   11445 else
   11446   lt_cv_dlopen=no
   11447   lt_cv_dlopen_libs=
   11448 
   11449   case $host_os in
   11450   beos*)
   11451     lt_cv_dlopen="load_add_on"
   11452     lt_cv_dlopen_libs=
   11453     lt_cv_dlopen_self=yes
   11454     ;;
   11455 
   11456   mingw* | pw32* | cegcc*)
   11457     lt_cv_dlopen="LoadLibrary"
   11458     lt_cv_dlopen_libs=
   11459     ;;
   11460 
   11461   cygwin*)
   11462     lt_cv_dlopen="dlopen"
   11463     lt_cv_dlopen_libs=
   11464     ;;
   11465 
   11466   darwin*)
   11467   # if libdl is installed we need to link against it
   11468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11469 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11470 if ${ac_cv_lib_dl_dlopen+:} false; then :
   11471   $as_echo_n "(cached) " >&6
   11472 else
   11473   ac_check_lib_save_LIBS=$LIBS
   11474 LIBS="-ldl  $LIBS"
   11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11476 /* end confdefs.h.  */
   11477 
   11478 /* Override any GCC internal prototype to avoid an error.
   11479    Use char because int might match the return type of a GCC
   11480    builtin and then its argument prototype would still apply.  */
   11481 #ifdef __cplusplus
   11482 extern "C"
   11483 #endif
   11484 char dlopen ();
   11485 int
   11486 main ()
   11487 {
   11488 return dlopen ();
   11489   ;
   11490   return 0;
   11491 }
   11492 _ACEOF
   11493 if ac_fn_c_try_link "$LINENO"; then :
   11494   ac_cv_lib_dl_dlopen=yes
   11495 else
   11496   ac_cv_lib_dl_dlopen=no
   11497 fi
   11498 rm -f core conftest.err conftest.$ac_objext \
   11499     conftest$ac_exeext conftest.$ac_ext
   11500 LIBS=$ac_check_lib_save_LIBS
   11501 fi
   11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11503 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11504 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11505   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   11506 else
   11507 
   11508     lt_cv_dlopen="dyld"
   11509     lt_cv_dlopen_libs=
   11510     lt_cv_dlopen_self=yes
   11511 
   11512 fi
   11513 
   11514     ;;
   11515 
   11516   *)
   11517     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   11518 if test "x$ac_cv_func_shl_load" = xyes; then :
   11519   lt_cv_dlopen="shl_load"
   11520 else
   11521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   11522 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   11523 if ${ac_cv_lib_dld_shl_load+:} 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 shl_load ();
   11538 int
   11539 main ()
   11540 {
   11541 return shl_load ();
   11542   ;
   11543   return 0;
   11544 }
   11545 _ACEOF
   11546 if ac_fn_c_try_link "$LINENO"; then :
   11547   ac_cv_lib_dld_shl_load=yes
   11548 else
   11549   ac_cv_lib_dld_shl_load=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_shl_load" >&5
   11556 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   11557 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   11558   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
   11559 else
   11560   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   11561 if test "x$ac_cv_func_dlopen" = xyes; then :
   11562   lt_cv_dlopen="dlopen"
   11563 else
   11564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11565 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11566 if ${ac_cv_lib_dl_dlopen+:} false; then :
   11567   $as_echo_n "(cached) " >&6
   11568 else
   11569   ac_check_lib_save_LIBS=$LIBS
   11570 LIBS="-ldl  $LIBS"
   11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11572 /* end confdefs.h.  */
   11573 
   11574 /* Override any GCC internal prototype to avoid an error.
   11575    Use char because int might match the return type of a GCC
   11576    builtin and then its argument prototype would still apply.  */
   11577 #ifdef __cplusplus
   11578 extern "C"
   11579 #endif
   11580 char dlopen ();
   11581 int
   11582 main ()
   11583 {
   11584 return dlopen ();
   11585   ;
   11586   return 0;
   11587 }
   11588 _ACEOF
   11589 if ac_fn_c_try_link "$LINENO"; then :
   11590   ac_cv_lib_dl_dlopen=yes
   11591 else
   11592   ac_cv_lib_dl_dlopen=no
   11593 fi
   11594 rm -f core conftest.err conftest.$ac_objext \
   11595     conftest$ac_exeext conftest.$ac_ext
   11596 LIBS=$ac_check_lib_save_LIBS
   11597 fi
   11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11599 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11600 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11601   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   11602 else
   11603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   11604 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   11605 if ${ac_cv_lib_svld_dlopen+:} false; then :
   11606   $as_echo_n "(cached) " >&6
   11607 else
   11608   ac_check_lib_save_LIBS=$LIBS
   11609 LIBS="-lsvld  $LIBS"
   11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11611 /* end confdefs.h.  */
   11612 
   11613 /* Override any GCC internal prototype to avoid an error.
   11614    Use char because int might match the return type of a GCC
   11615    builtin and then its argument prototype would still apply.  */
   11616 #ifdef __cplusplus
   11617 extern "C"
   11618 #endif
   11619 char dlopen ();
   11620 int
   11621 main ()
   11622 {
   11623 return dlopen ();
   11624   ;
   11625   return 0;
   11626 }
   11627 _ACEOF
   11628 if ac_fn_c_try_link "$LINENO"; then :
   11629   ac_cv_lib_svld_dlopen=yes
   11630 else
   11631   ac_cv_lib_svld_dlopen=no
   11632 fi
   11633 rm -f core conftest.err conftest.$ac_objext \
   11634     conftest$ac_exeext conftest.$ac_ext
   11635 LIBS=$ac_check_lib_save_LIBS
   11636 fi
   11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   11638 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   11639 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   11640   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
   11641 else
   11642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   11643 $as_echo_n "checking for dld_link in -ldld... " >&6; }
   11644 if ${ac_cv_lib_dld_dld_link+:} false; then :
   11645   $as_echo_n "(cached) " >&6
   11646 else
   11647   ac_check_lib_save_LIBS=$LIBS
   11648 LIBS="-ldld  $LIBS"
   11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11650 /* end confdefs.h.  */
   11651 
   11652 /* Override any GCC internal prototype to avoid an error.
   11653    Use char because int might match the return type of a GCC
   11654    builtin and then its argument prototype would still apply.  */
   11655 #ifdef __cplusplus
   11656 extern "C"
   11657 #endif
   11658 char dld_link ();
   11659 int
   11660 main ()
   11661 {
   11662 return dld_link ();
   11663   ;
   11664   return 0;
   11665 }
   11666 _ACEOF
   11667 if ac_fn_c_try_link "$LINENO"; then :
   11668   ac_cv_lib_dld_dld_link=yes
   11669 else
   11670   ac_cv_lib_dld_dld_link=no
   11671 fi
   11672 rm -f core conftest.err conftest.$ac_objext \
   11673     conftest$ac_exeext conftest.$ac_ext
   11674 LIBS=$ac_check_lib_save_LIBS
   11675 fi
   11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   11677 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   11678 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   11679   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
   11680 fi
   11681 
   11682 
   11683 fi
   11684 
   11685 
   11686 fi
   11687 
   11688 
   11689 fi
   11690 
   11691 
   11692 fi
   11693 
   11694 
   11695 fi
   11696 
   11697     ;;
   11698   esac
   11699 
   11700   if test "x$lt_cv_dlopen" != xno; then
   11701     enable_dlopen=yes
   11702   else
   11703     enable_dlopen=no
   11704   fi
   11705 
   11706   case $lt_cv_dlopen in
   11707   dlopen)
   11708     save_CPPFLAGS="$CPPFLAGS"
   11709     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   11710 
   11711     save_LDFLAGS="$LDFLAGS"
   11712     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   11713 
   11714     save_LIBS="$LIBS"
   11715     LIBS="$lt_cv_dlopen_libs $LIBS"
   11716 
   11717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   11718 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   11719 if ${lt_cv_dlopen_self+:} false; then :
   11720   $as_echo_n "(cached) " >&6
   11721 else
   11722   	  if test "$cross_compiling" = yes; then :
   11723   lt_cv_dlopen_self=cross
   11724 else
   11725   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11726   lt_status=$lt_dlunknown
   11727   cat > conftest.$ac_ext <<_LT_EOF
   11728 #line $LINENO "configure"
   11729 #include "confdefs.h"
   11730 
   11731 #if HAVE_DLFCN_H
   11732 #include <dlfcn.h>
   11733 #endif
   11734 
   11735 #include <stdio.h>
   11736 
   11737 #ifdef RTLD_GLOBAL
   11738 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11739 #else
   11740 #  ifdef DL_GLOBAL
   11741 #    define LT_DLGLOBAL		DL_GLOBAL
   11742 #  else
   11743 #    define LT_DLGLOBAL		0
   11744 #  endif
   11745 #endif
   11746 
   11747 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11748    find out it does not work in some platform. */
   11749 #ifndef LT_DLLAZY_OR_NOW
   11750 #  ifdef RTLD_LAZY
   11751 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11752 #  else
   11753 #    ifdef DL_LAZY
   11754 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11755 #    else
   11756 #      ifdef RTLD_NOW
   11757 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11758 #      else
   11759 #        ifdef DL_NOW
   11760 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11761 #        else
   11762 #          define LT_DLLAZY_OR_NOW	0
   11763 #        endif
   11764 #      endif
   11765 #    endif
   11766 #  endif
   11767 #endif
   11768 
   11769 /* When -fvisbility=hidden is used, assume the code has been annotated
   11770    correspondingly for the symbols needed.  */
   11771 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11772 int fnord () __attribute__((visibility("default")));
   11773 #endif
   11774 
   11775 int fnord () { return 42; }
   11776 int main ()
   11777 {
   11778   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11779   int status = $lt_dlunknown;
   11780 
   11781   if (self)
   11782     {
   11783       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11784       else
   11785         {
   11786 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11787           else puts (dlerror ());
   11788 	}
   11789       /* dlclose (self); */
   11790     }
   11791   else
   11792     puts (dlerror ());
   11793 
   11794   return status;
   11795 }
   11796 _LT_EOF
   11797   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11798   (eval $ac_link) 2>&5
   11799   ac_status=$?
   11800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11801   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
   11802     (./conftest; exit; ) >&5 2>/dev/null
   11803     lt_status=$?
   11804     case x$lt_status in
   11805       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   11806       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   11807       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   11808     esac
   11809   else :
   11810     # compilation failed
   11811     lt_cv_dlopen_self=no
   11812   fi
   11813 fi
   11814 rm -fr conftest*
   11815 
   11816 
   11817 fi
   11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   11819 $as_echo "$lt_cv_dlopen_self" >&6; }
   11820 
   11821     if test "x$lt_cv_dlopen_self" = xyes; then
   11822       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   11823       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   11824 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   11825 if ${lt_cv_dlopen_self_static+:} false; then :
   11826   $as_echo_n "(cached) " >&6
   11827 else
   11828   	  if test "$cross_compiling" = yes; then :
   11829   lt_cv_dlopen_self_static=cross
   11830 else
   11831   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11832   lt_status=$lt_dlunknown
   11833   cat > conftest.$ac_ext <<_LT_EOF
   11834 #line $LINENO "configure"
   11835 #include "confdefs.h"
   11836 
   11837 #if HAVE_DLFCN_H
   11838 #include <dlfcn.h>
   11839 #endif
   11840 
   11841 #include <stdio.h>
   11842 
   11843 #ifdef RTLD_GLOBAL
   11844 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11845 #else
   11846 #  ifdef DL_GLOBAL
   11847 #    define LT_DLGLOBAL		DL_GLOBAL
   11848 #  else
   11849 #    define LT_DLGLOBAL		0
   11850 #  endif
   11851 #endif
   11852 
   11853 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11854    find out it does not work in some platform. */
   11855 #ifndef LT_DLLAZY_OR_NOW
   11856 #  ifdef RTLD_LAZY
   11857 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11858 #  else
   11859 #    ifdef DL_LAZY
   11860 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11861 #    else
   11862 #      ifdef RTLD_NOW
   11863 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11864 #      else
   11865 #        ifdef DL_NOW
   11866 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11867 #        else
   11868 #          define LT_DLLAZY_OR_NOW	0
   11869 #        endif
   11870 #      endif
   11871 #    endif
   11872 #  endif
   11873 #endif
   11874 
   11875 /* When -fvisbility=hidden is used, assume the code has been annotated
   11876    correspondingly for the symbols needed.  */
   11877 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11878 int fnord () __attribute__((visibility("default")));
   11879 #endif
   11880 
   11881 int fnord () { return 42; }
   11882 int main ()
   11883 {
   11884   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11885   int status = $lt_dlunknown;
   11886 
   11887   if (self)
   11888     {
   11889       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11890       else
   11891         {
   11892 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11893           else puts (dlerror ());
   11894 	}
   11895       /* dlclose (self); */
   11896     }
   11897   else
   11898     puts (dlerror ());
   11899 
   11900   return status;
   11901 }
   11902 _LT_EOF
   11903   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11904   (eval $ac_link) 2>&5
   11905   ac_status=$?
   11906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11907   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
   11908     (./conftest; exit; ) >&5 2>/dev/null
   11909     lt_status=$?
   11910     case x$lt_status in
   11911       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   11912       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   11913       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   11914     esac
   11915   else :
   11916     # compilation failed
   11917     lt_cv_dlopen_self_static=no
   11918   fi
   11919 fi
   11920 rm -fr conftest*
   11921 
   11922 
   11923 fi
   11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   11925 $as_echo "$lt_cv_dlopen_self_static" >&6; }
   11926     fi
   11927 
   11928     CPPFLAGS="$save_CPPFLAGS"
   11929     LDFLAGS="$save_LDFLAGS"
   11930     LIBS="$save_LIBS"
   11931     ;;
   11932   esac
   11933 
   11934   case $lt_cv_dlopen_self in
   11935   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   11936   *) enable_dlopen_self=unknown ;;
   11937   esac
   11938 
   11939   case $lt_cv_dlopen_self_static in
   11940   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   11941   *) enable_dlopen_self_static=unknown ;;
   11942   esac
   11943 fi
   11944 
   11945 
   11946 
   11947 
   11948 
   11949 
   11950 
   11951 
   11952 
   11953 
   11954 
   11955 
   11956 
   11957 
   11958 
   11959 
   11960 
   11961 striplib=
   11962 old_striplib=
   11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   11964 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   11965 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   11966   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   11967   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   11968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11969 $as_echo "yes" >&6; }
   11970 else
   11971 # FIXME - insert some real tests, host_os isn't really good enough
   11972   case $host_os in
   11973   darwin*)
   11974     if test -n "$STRIP" ; then
   11975       striplib="$STRIP -x"
   11976       old_striplib="$STRIP -S"
   11977       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11978 $as_echo "yes" >&6; }
   11979     else
   11980       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11981 $as_echo "no" >&6; }
   11982     fi
   11983     ;;
   11984   *)
   11985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11986 $as_echo "no" >&6; }
   11987     ;;
   11988   esac
   11989 fi
   11990 
   11991 
   11992 
   11993 
   11994 
   11995 
   11996 
   11997 
   11998 
   11999 
   12000 
   12001 
   12002   # Report which library types will actually be built
   12003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   12004 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   12005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   12006 $as_echo "$can_build_shared" >&6; }
   12007 
   12008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   12009 $as_echo_n "checking whether to build shared libraries... " >&6; }
   12010   test "$can_build_shared" = "no" && enable_shared=no
   12011 
   12012   # On AIX, shared libraries and static libraries use the same namespace, and
   12013   # are all built from PIC.
   12014   case $host_os in
   12015   aix3*)
   12016     test "$enable_shared" = yes && enable_static=no
   12017     if test -n "$RANLIB"; then
   12018       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   12019       postinstall_cmds='$RANLIB $lib'
   12020     fi
   12021     ;;
   12022 
   12023   aix[4-9]*)
   12024     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
   12025       test "$enable_shared" = yes && enable_static=no
   12026     fi
   12027     ;;
   12028   esac
   12029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   12030 $as_echo "$enable_shared" >&6; }
   12031 
   12032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   12033 $as_echo_n "checking whether to build static libraries... " >&6; }
   12034   # Make sure either enable_shared or enable_static is yes.
   12035   test "$enable_shared" = yes || enable_static=yes
   12036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   12037 $as_echo "$enable_static" >&6; }
   12038 
   12039 
   12040 
   12041 
   12042 fi
   12043 ac_ext=c
   12044 ac_cpp='$CPP $CPPFLAGS'
   12045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12048 
   12049 CC="$lt_save_CC"
   12050 
   12051 
   12052 
   12053 
   12054 
   12055 
   12056 
   12057 
   12058 
   12059 
   12060 
   12061 
   12062 
   12063         ac_config_commands="$ac_config_commands libtool"
   12064 
   12065 
   12066 
   12067 
   12068 # Only expand once:
   12069 
   12070 
   12071 
   12072 
   12073 
   12074  if test "$enable_libevent_regress" = "yes"; then
   12075   BUILD_REGRESS_TRUE=
   12076   BUILD_REGRESS_FALSE='#'
   12077 else
   12078   BUILD_REGRESS_TRUE='#'
   12079   BUILD_REGRESS_FALSE=
   12080 fi
   12081 
   12082 
   12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
   12084 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
   12085 if ${ac_cv_search_inet_ntoa+:} false; then :
   12086   $as_echo_n "(cached) " >&6
   12087 else
   12088   ac_func_search_save_LIBS=$LIBS
   12089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12090 /* end confdefs.h.  */
   12091 
   12092 /* Override any GCC internal prototype to avoid an error.
   12093    Use char because int might match the return type of a GCC
   12094    builtin and then its argument prototype would still apply.  */
   12095 #ifdef __cplusplus
   12096 extern "C"
   12097 #endif
   12098 char inet_ntoa ();
   12099 int
   12100 main ()
   12101 {
   12102 return inet_ntoa ();
   12103   ;
   12104   return 0;
   12105 }
   12106 _ACEOF
   12107 for ac_lib in '' nsl; do
   12108   if test -z "$ac_lib"; then
   12109     ac_res="none required"
   12110   else
   12111     ac_res=-l$ac_lib
   12112     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12113   fi
   12114   if ac_fn_c_try_link "$LINENO"; then :
   12115   ac_cv_search_inet_ntoa=$ac_res
   12116 fi
   12117 rm -f core conftest.err conftest.$ac_objext \
   12118     conftest$ac_exeext
   12119   if ${ac_cv_search_inet_ntoa+:} false; then :
   12120   break
   12121 fi
   12122 done
   12123 if ${ac_cv_search_inet_ntoa+:} false; then :
   12124 
   12125 else
   12126   ac_cv_search_inet_ntoa=no
   12127 fi
   12128 rm conftest.$ac_ext
   12129 LIBS=$ac_func_search_save_LIBS
   12130 fi
   12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
   12132 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
   12133 ac_res=$ac_cv_search_inet_ntoa
   12134 if test "$ac_res" != no; then :
   12135   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12136 
   12137 fi
   12138 
   12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
   12140 $as_echo_n "checking for library containing socket... " >&6; }
   12141 if ${ac_cv_search_socket+:} false; then :
   12142   $as_echo_n "(cached) " >&6
   12143 else
   12144   ac_func_search_save_LIBS=$LIBS
   12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12146 /* end confdefs.h.  */
   12147 
   12148 /* Override any GCC internal prototype to avoid an error.
   12149    Use char because int might match the return type of a GCC
   12150    builtin and then its argument prototype would still apply.  */
   12151 #ifdef __cplusplus
   12152 extern "C"
   12153 #endif
   12154 char socket ();
   12155 int
   12156 main ()
   12157 {
   12158 return socket ();
   12159   ;
   12160   return 0;
   12161 }
   12162 _ACEOF
   12163 for ac_lib in '' socket; do
   12164   if test -z "$ac_lib"; then
   12165     ac_res="none required"
   12166   else
   12167     ac_res=-l$ac_lib
   12168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12169   fi
   12170   if ac_fn_c_try_link "$LINENO"; then :
   12171   ac_cv_search_socket=$ac_res
   12172 fi
   12173 rm -f core conftest.err conftest.$ac_objext \
   12174     conftest$ac_exeext
   12175   if ${ac_cv_search_socket+:} false; then :
   12176   break
   12177 fi
   12178 done
   12179 if ${ac_cv_search_socket+:} false; then :
   12180 
   12181 else
   12182   ac_cv_search_socket=no
   12183 fi
   12184 rm conftest.$ac_ext
   12185 LIBS=$ac_func_search_save_LIBS
   12186 fi
   12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
   12188 $as_echo "$ac_cv_search_socket" >&6; }
   12189 ac_res=$ac_cv_search_socket
   12190 if test "$ac_res" != no; then :
   12191   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12192 
   12193 fi
   12194 
   12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
   12196 $as_echo_n "checking for library containing inet_aton... " >&6; }
   12197 if ${ac_cv_search_inet_aton+:} false; then :
   12198   $as_echo_n "(cached) " >&6
   12199 else
   12200   ac_func_search_save_LIBS=$LIBS
   12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12202 /* end confdefs.h.  */
   12203 
   12204 /* Override any GCC internal prototype to avoid an error.
   12205    Use char because int might match the return type of a GCC
   12206    builtin and then its argument prototype would still apply.  */
   12207 #ifdef __cplusplus
   12208 extern "C"
   12209 #endif
   12210 char inet_aton ();
   12211 int
   12212 main ()
   12213 {
   12214 return inet_aton ();
   12215   ;
   12216   return 0;
   12217 }
   12218 _ACEOF
   12219 for ac_lib in '' resolv; do
   12220   if test -z "$ac_lib"; then
   12221     ac_res="none required"
   12222   else
   12223     ac_res=-l$ac_lib
   12224     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12225   fi
   12226   if ac_fn_c_try_link "$LINENO"; then :
   12227   ac_cv_search_inet_aton=$ac_res
   12228 fi
   12229 rm -f core conftest.err conftest.$ac_objext \
   12230     conftest$ac_exeext
   12231   if ${ac_cv_search_inet_aton+:} false; then :
   12232   break
   12233 fi
   12234 done
   12235 if ${ac_cv_search_inet_aton+:} false; then :
   12236 
   12237 else
   12238   ac_cv_search_inet_aton=no
   12239 fi
   12240 rm conftest.$ac_ext
   12241 LIBS=$ac_func_search_save_LIBS
   12242 fi
   12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
   12244 $as_echo "$ac_cv_search_inet_aton" >&6; }
   12245 ac_res=$ac_cv_search_inet_aton
   12246 if test "$ac_res" != no; then :
   12247   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12248 
   12249 fi
   12250 
   12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   12252 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   12253 if ${ac_cv_search_clock_gettime+:} false; then :
   12254   $as_echo_n "(cached) " >&6
   12255 else
   12256   ac_func_search_save_LIBS=$LIBS
   12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12258 /* end confdefs.h.  */
   12259 
   12260 /* Override any GCC internal prototype to avoid an error.
   12261    Use char because int might match the return type of a GCC
   12262    builtin and then its argument prototype would still apply.  */
   12263 #ifdef __cplusplus
   12264 extern "C"
   12265 #endif
   12266 char clock_gettime ();
   12267 int
   12268 main ()
   12269 {
   12270 return clock_gettime ();
   12271   ;
   12272   return 0;
   12273 }
   12274 _ACEOF
   12275 for ac_lib in '' rt; do
   12276   if test -z "$ac_lib"; then
   12277     ac_res="none required"
   12278   else
   12279     ac_res=-l$ac_lib
   12280     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12281   fi
   12282   if ac_fn_c_try_link "$LINENO"; then :
   12283   ac_cv_search_clock_gettime=$ac_res
   12284 fi
   12285 rm -f core conftest.err conftest.$ac_objext \
   12286     conftest$ac_exeext
   12287   if ${ac_cv_search_clock_gettime+:} false; then :
   12288   break
   12289 fi
   12290 done
   12291 if ${ac_cv_search_clock_gettime+:} false; then :
   12292 
   12293 else
   12294   ac_cv_search_clock_gettime=no
   12295 fi
   12296 rm conftest.$ac_ext
   12297 LIBS=$ac_func_search_save_LIBS
   12298 fi
   12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   12300 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   12301 ac_res=$ac_cv_search_clock_gettime
   12302 if test "$ac_res" != no; then :
   12303   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12304 
   12305 fi
   12306 
   12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
   12308 $as_echo_n "checking for library containing sendfile... " >&6; }
   12309 if ${ac_cv_search_sendfile+:} false; then :
   12310   $as_echo_n "(cached) " >&6
   12311 else
   12312   ac_func_search_save_LIBS=$LIBS
   12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12314 /* end confdefs.h.  */
   12315 
   12316 /* Override any GCC internal prototype to avoid an error.
   12317    Use char because int might match the return type of a GCC
   12318    builtin and then its argument prototype would still apply.  */
   12319 #ifdef __cplusplus
   12320 extern "C"
   12321 #endif
   12322 char sendfile ();
   12323 int
   12324 main ()
   12325 {
   12326 return sendfile ();
   12327   ;
   12328   return 0;
   12329 }
   12330 _ACEOF
   12331 for ac_lib in '' sendfile; do
   12332   if test -z "$ac_lib"; then
   12333     ac_res="none required"
   12334   else
   12335     ac_res=-l$ac_lib
   12336     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12337   fi
   12338   if ac_fn_c_try_link "$LINENO"; then :
   12339   ac_cv_search_sendfile=$ac_res
   12340 fi
   12341 rm -f core conftest.err conftest.$ac_objext \
   12342     conftest$ac_exeext
   12343   if ${ac_cv_search_sendfile+:} false; then :
   12344   break
   12345 fi
   12346 done
   12347 if ${ac_cv_search_sendfile+:} false; then :
   12348 
   12349 else
   12350   ac_cv_search_sendfile=no
   12351 fi
   12352 rm conftest.$ac_ext
   12353 LIBS=$ac_func_search_save_LIBS
   12354 fi
   12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
   12356 $as_echo "$ac_cv_search_sendfile" >&6; }
   12357 ac_res=$ac_cv_search_sendfile
   12358 if test "$ac_res" != no; then :
   12359   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12360 
   12361 fi
   12362 
   12363 
   12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
   12365 $as_echo_n "checking for WIN32... " >&6; }
   12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12367 /* end confdefs.h.  */
   12368 
   12369 int
   12370 main ()
   12371 {
   12372 
   12373 #ifndef _WIN32
   12374 die horribly
   12375 #endif
   12376 
   12377   ;
   12378   return 0;
   12379 }
   12380 _ACEOF
   12381 if ac_fn_c_try_compile "$LINENO"; then :
   12382   bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12383 $as_echo "yes" >&6; }
   12384 else
   12385   bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12386 $as_echo "no" >&6; }
   12387 fi
   12388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12389 
   12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
   12391 $as_echo_n "checking for CYGWIN... " >&6; }
   12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12393 /* end confdefs.h.  */
   12394 
   12395 int
   12396 main ()
   12397 {
   12398 
   12399 #ifndef __CYGWIN__
   12400 die horribly
   12401 #endif
   12402 
   12403   ;
   12404   return 0;
   12405 }
   12406 _ACEOF
   12407 if ac_fn_c_try_compile "$LINENO"; then :
   12408   cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12409 $as_echo "yes" >&6; }
   12410 else
   12411   cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12412 $as_echo "no" >&6; }
   12413 fi
   12414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12415 
   12416 for ac_header in zlib.h
   12417 do :
   12418   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
   12419 if test "x$ac_cv_header_zlib_h" = xyes; then :
   12420   cat >>confdefs.h <<_ACEOF
   12421 #define HAVE_ZLIB_H 1
   12422 _ACEOF
   12423 
   12424 fi
   12425 
   12426 done
   12427 
   12428 
   12429 if test "x$ac_cv_header_zlib_h" = "xyes"; then
   12430 save_LIBS="$LIBS"
   12431 LIBS=""
   12432 ZLIB_LIBS=""
   12433 have_zlib=no
   12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
   12435 $as_echo_n "checking for library containing inflateEnd... " >&6; }
   12436 if ${ac_cv_search_inflateEnd+:} false; then :
   12437   $as_echo_n "(cached) " >&6
   12438 else
   12439   ac_func_search_save_LIBS=$LIBS
   12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12441 /* end confdefs.h.  */
   12442 
   12443 /* Override any GCC internal prototype to avoid an error.
   12444    Use char because int might match the return type of a GCC
   12445    builtin and then its argument prototype would still apply.  */
   12446 #ifdef __cplusplus
   12447 extern "C"
   12448 #endif
   12449 char inflateEnd ();
   12450 int
   12451 main ()
   12452 {
   12453 return inflateEnd ();
   12454   ;
   12455   return 0;
   12456 }
   12457 _ACEOF
   12458 for ac_lib in '' z; do
   12459   if test -z "$ac_lib"; then
   12460     ac_res="none required"
   12461   else
   12462     ac_res=-l$ac_lib
   12463     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12464   fi
   12465   if ac_fn_c_try_link "$LINENO"; then :
   12466   ac_cv_search_inflateEnd=$ac_res
   12467 fi
   12468 rm -f core conftest.err conftest.$ac_objext \
   12469     conftest$ac_exeext
   12470   if ${ac_cv_search_inflateEnd+:} false; then :
   12471   break
   12472 fi
   12473 done
   12474 if ${ac_cv_search_inflateEnd+:} false; then :
   12475 
   12476 else
   12477   ac_cv_search_inflateEnd=no
   12478 fi
   12479 rm conftest.$ac_ext
   12480 LIBS=$ac_func_search_save_LIBS
   12481 fi
   12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
   12483 $as_echo "$ac_cv_search_inflateEnd" >&6; }
   12484 ac_res=$ac_cv_search_inflateEnd
   12485 if test "$ac_res" != no; then :
   12486   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12487   have_zlib=yes
   12488 	ZLIB_LIBS="$LIBS"
   12489 
   12490 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
   12491 
   12492 fi
   12493 
   12494 LIBS="$save_LIBS"
   12495 
   12496 fi
   12497  if test "$have_zlib" = "yes"; then
   12498   ZLIB_REGRESS_TRUE=
   12499   ZLIB_REGRESS_FALSE='#'
   12500 else
   12501   ZLIB_REGRESS_TRUE='#'
   12502   ZLIB_REGRESS_FALSE=
   12503 fi
   12504 
   12505 
   12506 if test "$bwin32" = true; then
   12507   EV_LIB_WS32=-lws2_32
   12508   EV_LIB_GDI=-lgdi32
   12509 else
   12510   EV_LIB_WS32=
   12511   EV_LIB_GDI=
   12512 fi
   12513 
   12514 
   12515 
   12516 
   12517 # Check whether --enable-largefile was given.
   12518 if test "${enable_largefile+set}" = set; then :
   12519   enableval=$enable_largefile;
   12520 fi
   12521 
   12522 if test "$enable_largefile" != no; then
   12523 
   12524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   12525 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   12526 if ${ac_cv_sys_largefile_CC+:} false; then :
   12527   $as_echo_n "(cached) " >&6
   12528 else
   12529   ac_cv_sys_largefile_CC=no
   12530      if test "$GCC" != yes; then
   12531        ac_save_CC=$CC
   12532        while :; do
   12533 	 # IRIX 6.2 and later do not support large files by default,
   12534 	 # so use the C compiler's -n32 option if that helps.
   12535 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12536 /* end confdefs.h.  */
   12537 #include <sys/types.h>
   12538  /* Check that off_t can represent 2**63 - 1 correctly.
   12539     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   12540     since some C++ compilers masquerading as C compilers
   12541     incorrectly reject 9223372036854775807.  */
   12542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   12543   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   12544 		       && LARGE_OFF_T % 2147483647 == 1)
   12545 		      ? 1 : -1];
   12546 int
   12547 main ()
   12548 {
   12549 
   12550   ;
   12551   return 0;
   12552 }
   12553 _ACEOF
   12554 	 if ac_fn_c_try_compile "$LINENO"; then :
   12555   break
   12556 fi
   12557 rm -f core conftest.err conftest.$ac_objext
   12558 	 CC="$CC -n32"
   12559 	 if ac_fn_c_try_compile "$LINENO"; then :
   12560   ac_cv_sys_largefile_CC=' -n32'; break
   12561 fi
   12562 rm -f core conftest.err conftest.$ac_objext
   12563 	 break
   12564        done
   12565        CC=$ac_save_CC
   12566        rm -f conftest.$ac_ext
   12567     fi
   12568 fi
   12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   12570 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   12571   if test "$ac_cv_sys_largefile_CC" != no; then
   12572     CC=$CC$ac_cv_sys_largefile_CC
   12573   fi
   12574 
   12575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   12576 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   12577 if ${ac_cv_sys_file_offset_bits+:} false; then :
   12578   $as_echo_n "(cached) " >&6
   12579 else
   12580   while :; do
   12581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12582 /* end confdefs.h.  */
   12583 #include <sys/types.h>
   12584  /* Check that off_t can represent 2**63 - 1 correctly.
   12585     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   12586     since some C++ compilers masquerading as C compilers
   12587     incorrectly reject 9223372036854775807.  */
   12588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   12589   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   12590 		       && LARGE_OFF_T % 2147483647 == 1)
   12591 		      ? 1 : -1];
   12592 int
   12593 main ()
   12594 {
   12595 
   12596   ;
   12597   return 0;
   12598 }
   12599 _ACEOF
   12600 if ac_fn_c_try_compile "$LINENO"; then :
   12601   ac_cv_sys_file_offset_bits=no; break
   12602 fi
   12603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12605 /* end confdefs.h.  */
   12606 #define _FILE_OFFSET_BITS 64
   12607 #include <sys/types.h>
   12608  /* Check that off_t can represent 2**63 - 1 correctly.
   12609     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   12610     since some C++ compilers masquerading as C compilers
   12611     incorrectly reject 9223372036854775807.  */
   12612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   12613   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   12614 		       && LARGE_OFF_T % 2147483647 == 1)
   12615 		      ? 1 : -1];
   12616 int
   12617 main ()
   12618 {
   12619 
   12620   ;
   12621   return 0;
   12622 }
   12623 _ACEOF
   12624 if ac_fn_c_try_compile "$LINENO"; then :
   12625   ac_cv_sys_file_offset_bits=64; break
   12626 fi
   12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12628   ac_cv_sys_file_offset_bits=unknown
   12629   break
   12630 done
   12631 fi
   12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   12633 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   12634 case $ac_cv_sys_file_offset_bits in #(
   12635   no | unknown) ;;
   12636   *)
   12637 cat >>confdefs.h <<_ACEOF
   12638 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   12639 _ACEOF
   12640 ;;
   12641 esac
   12642 rm -rf conftest*
   12643   if test $ac_cv_sys_file_offset_bits = unknown; then
   12644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   12645 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   12646 if ${ac_cv_sys_large_files+:} false; then :
   12647   $as_echo_n "(cached) " >&6
   12648 else
   12649   while :; do
   12650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12651 /* end confdefs.h.  */
   12652 #include <sys/types.h>
   12653  /* Check that off_t can represent 2**63 - 1 correctly.
   12654     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   12655     since some C++ compilers masquerading as C compilers
   12656     incorrectly reject 9223372036854775807.  */
   12657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   12658   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   12659 		       && LARGE_OFF_T % 2147483647 == 1)
   12660 		      ? 1 : -1];
   12661 int
   12662 main ()
   12663 {
   12664 
   12665   ;
   12666   return 0;
   12667 }
   12668 _ACEOF
   12669 if ac_fn_c_try_compile "$LINENO"; then :
   12670   ac_cv_sys_large_files=no; break
   12671 fi
   12672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12674 /* end confdefs.h.  */
   12675 #define _LARGE_FILES 1
   12676 #include <sys/types.h>
   12677  /* Check that off_t can represent 2**63 - 1 correctly.
   12678     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   12679     since some C++ compilers masquerading as C compilers
   12680     incorrectly reject 9223372036854775807.  */
   12681 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   12682   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   12683 		       && LARGE_OFF_T % 2147483647 == 1)
   12684 		      ? 1 : -1];
   12685 int
   12686 main ()
   12687 {
   12688 
   12689   ;
   12690   return 0;
   12691 }
   12692 _ACEOF
   12693 if ac_fn_c_try_compile "$LINENO"; then :
   12694   ac_cv_sys_large_files=1; break
   12695 fi
   12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12697   ac_cv_sys_large_files=unknown
   12698   break
   12699 done
   12700 fi
   12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   12702 $as_echo "$ac_cv_sys_large_files" >&6; }
   12703 case $ac_cv_sys_large_files in #(
   12704   no | unknown) ;;
   12705   *)
   12706 cat >>confdefs.h <<_ACEOF
   12707 #define _LARGE_FILES $ac_cv_sys_large_files
   12708 _ACEOF
   12709 ;;
   12710 esac
   12711 rm -rf conftest*
   12712   fi
   12713 fi
   12714 
   12715 
   12716 
   12717 
   12718 ntp_pkgconfig_min_version='0.15.0'
   12719 if test -n "$ac_tool_prefix"; then
   12720   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   12721 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12723 $as_echo_n "checking for $ac_word... " >&6; }
   12724 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   12725   $as_echo_n "(cached) " >&6
   12726 else
   12727   case $PKG_CONFIG in
   12728   [\\/]* | ?:[\\/]*)
   12729   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   12730   ;;
   12731   *)
   12732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12733 for as_dir in $PATH
   12734 do
   12735   IFS=$as_save_IFS
   12736   test -z "$as_dir" && as_dir=.
   12737     for ac_exec_ext in '' $ac_executable_extensions; do
   12738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   12739     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   12740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12741     break 2
   12742   fi
   12743 done
   12744   done
   12745 IFS=$as_save_IFS
   12746 
   12747   ;;
   12748 esac
   12749 fi
   12750 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   12751 if test -n "$PKG_CONFIG"; then
   12752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   12753 $as_echo "$PKG_CONFIG" >&6; }
   12754 else
   12755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12756 $as_echo "no" >&6; }
   12757 fi
   12758 
   12759 
   12760 fi
   12761 if test -z "$ac_cv_path_PKG_CONFIG"; then
   12762   ac_pt_PKG_CONFIG=$PKG_CONFIG
   12763   # Extract the first word of "pkg-config", so it can be a program name with args.
   12764 set dummy pkg-config; ac_word=$2
   12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12766 $as_echo_n "checking for $ac_word... " >&6; }
   12767 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   12768   $as_echo_n "(cached) " >&6
   12769 else
   12770   case $ac_pt_PKG_CONFIG in
   12771   [\\/]* | ?:[\\/]*)
   12772   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   12773   ;;
   12774   *)
   12775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12776 for as_dir in $PATH
   12777 do
   12778   IFS=$as_save_IFS
   12779   test -z "$as_dir" && as_dir=.
   12780     for ac_exec_ext in '' $ac_executable_extensions; do
   12781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   12782     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   12783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12784     break 2
   12785   fi
   12786 done
   12787   done
   12788 IFS=$as_save_IFS
   12789 
   12790   ;;
   12791 esac
   12792 fi
   12793 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   12794 if test -n "$ac_pt_PKG_CONFIG"; then
   12795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   12796 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   12797 else
   12798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12799 $as_echo "no" >&6; }
   12800 fi
   12801 
   12802   if test "x$ac_pt_PKG_CONFIG" = x; then
   12803     PKG_CONFIG=""
   12804   else
   12805     case $cross_compiling:$ac_tool_warned in
   12806 yes:)
   12807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12809 ac_tool_warned=yes ;;
   12810 esac
   12811     PKG_CONFIG=$ac_pt_PKG_CONFIG
   12812   fi
   12813 else
   12814   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   12815 fi
   12816 
   12817 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
   12818 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
   12819 
   12820 case "$PKG_CONFIG" in
   12821  /*)
   12822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
   12823 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
   12824     if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
   12825 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12826 $as_echo "yes" >&6; }
   12827     else
   12828 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12829 $as_echo "no" >&6; }
   12830 	PKG_CONFIG=""
   12831     fi
   12832     ;;
   12833 esac
   12834 
   12835 
   12836 
   12837 
   12838 case "$enable_openssl" in
   12839  yes)
   12840     have_openssl=no
   12841     case "$PKG_CONFIG" in
   12842      '')
   12843 	;;
   12844      *)
   12845 	OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
   12846 	case "$OPENSSL_LIBS" in
   12847 	 '') ;;
   12848 	 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
   12849 	    have_openssl=yes
   12850 	    ;;
   12851 	esac
   12852 	OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`
   12853 	;;
   12854     esac
   12855     case "$have_openssl" in
   12856      yes) ;;
   12857      *)
   12858 	save_LIBS="$LIBS"
   12859 	LIBS=""
   12860 	OPENSSL_LIBS=""
   12861 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
   12862 $as_echo_n "checking for library containing SSL_new... " >&6; }
   12863 if ${ac_cv_search_SSL_new+:} false; then :
   12864   $as_echo_n "(cached) " >&6
   12865 else
   12866   ac_func_search_save_LIBS=$LIBS
   12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12868 /* end confdefs.h.  */
   12869 
   12870 /* Override any GCC internal prototype to avoid an error.
   12871    Use char because int might match the return type of a GCC
   12872    builtin and then its argument prototype would still apply.  */
   12873 #ifdef __cplusplus
   12874 extern "C"
   12875 #endif
   12876 char SSL_new ();
   12877 int
   12878 main ()
   12879 {
   12880 return SSL_new ();
   12881   ;
   12882   return 0;
   12883 }
   12884 _ACEOF
   12885 for ac_lib in '' ssl; do
   12886   if test -z "$ac_lib"; then
   12887     ac_res="none required"
   12888   else
   12889     ac_res=-l$ac_lib
   12890     LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
   12891   fi
   12892   if ac_fn_c_try_link "$LINENO"; then :
   12893   ac_cv_search_SSL_new=$ac_res
   12894 fi
   12895 rm -f core conftest.err conftest.$ac_objext \
   12896     conftest$ac_exeext
   12897   if ${ac_cv_search_SSL_new+:} false; then :
   12898   break
   12899 fi
   12900 done
   12901 if ${ac_cv_search_SSL_new+:} false; then :
   12902 
   12903 else
   12904   ac_cv_search_SSL_new=no
   12905 fi
   12906 rm conftest.$ac_ext
   12907 LIBS=$ac_func_search_save_LIBS
   12908 fi
   12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
   12910 $as_echo "$ac_cv_search_SSL_new" >&6; }
   12911 ac_res=$ac_cv_search_SSL_new
   12912 if test "$ac_res" != no; then :
   12913   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12914   have_openssl=yes
   12915 	    OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
   12916 else
   12917   have_openssl=no
   12918 fi
   12919 
   12920 	LIBS="$save_LIBS"
   12921 	;;
   12922     esac
   12923 
   12924 
   12925     case "$have_openssl" in
   12926      yes)
   12927 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
   12928  ;;
   12929     esac
   12930     ;;
   12931 esac
   12932 
   12933 # check if we have and should use openssl
   12934  if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
   12935   OPENSSL_TRUE=
   12936   OPENSSL_FALSE='#'
   12937 else
   12938   OPENSSL_TRUE='#'
   12939   OPENSSL_FALSE=
   12940 fi
   12941 
   12942 
   12943 
   12944 for ac_header in  \
   12945   arpa/inet.h \
   12946   fcntl.h \
   12947   ifaddrs.h \
   12948   mach/mach_time.h \
   12949   netdb.h \
   12950   netinet/in.h \
   12951   netinet/in6.h \
   12952   netinet/tcp.h \
   12953   poll.h \
   12954   port.h \
   12955   stdarg.h \
   12956   stddef.h \
   12957   sys/devpoll.h \
   12958   sys/epoll.h \
   12959   sys/event.h \
   12960   sys/eventfd.h \
   12961   sys/ioctl.h \
   12962   sys/mman.h \
   12963   sys/param.h \
   12964   sys/queue.h \
   12965   sys/resource.h \
   12966   sys/select.h \
   12967   sys/sendfile.h \
   12968   sys/socket.h \
   12969   sys/stat.h \
   12970   sys/time.h \
   12971   sys/timerfd.h \
   12972   sys/uio.h \
   12973   sys/wait.h \
   12974 
   12975 do :
   12976   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   12977 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   12978 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   12979   cat >>confdefs.h <<_ACEOF
   12980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   12981 _ACEOF
   12982 
   12983 fi
   12984 
   12985 done
   12986 
   12987 
   12988 for ac_header in sys/sysctl.h
   12989 do :
   12990   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
   12991 #ifdef HAVE_SYS_PARAM_H
   12992 #include <sys/param.h>
   12993 #endif
   12994 
   12995 "
   12996 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
   12997   cat >>confdefs.h <<_ACEOF
   12998 #define HAVE_SYS_SYSCTL_H 1
   12999 _ACEOF
   13000 
   13001 fi
   13002 
   13003 done
   13004 
   13005 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
   13006 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
   13007 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
   13008 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13009 /* end confdefs.h.  */
   13010 
   13011 #include <sys/queue.h>
   13012 #ifdef TAILQ_FOREACH
   13013  yes
   13014 #endif
   13015 
   13016 _ACEOF
   13017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13018   $EGREP "yes" >/dev/null 2>&1; then :
   13019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13020 $as_echo "yes" >&6; }
   13021 
   13022 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
   13023 
   13024 else
   13025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13026 $as_echo "no" >&6; }
   13027 
   13028 fi
   13029 rm -f conftest*
   13030 
   13031 fi
   13032 
   13033 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
   13034 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
   13035 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
   13036 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13037 /* end confdefs.h.  */
   13038 
   13039 #include <sys/time.h>
   13040 #ifdef timeradd
   13041  yes
   13042 #endif
   13043 
   13044 _ACEOF
   13045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13046   $EGREP "yes" >/dev/null 2>&1; then :
   13047 
   13048 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
   13049 
   13050 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13051 $as_echo "yes" >&6; }
   13052 else
   13053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13054 $as_echo "no" >&6; }
   13055 
   13056 fi
   13057 rm -f conftest*
   13058 
   13059 fi
   13060 
   13061 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
   13062 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
   13063 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
   13064 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13065 /* end confdefs.h.  */
   13066 
   13067 #include <sys/time.h>
   13068 #ifdef timercmp
   13069  yes
   13070 #endif
   13071 
   13072 _ACEOF
   13073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13074   $EGREP "yes" >/dev/null 2>&1; then :
   13075 
   13076 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
   13077 
   13078 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13079 $as_echo "yes" >&6; }
   13080 else
   13081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13082 $as_echo "no" >&6; }
   13083 
   13084 fi
   13085 rm -f conftest*
   13086 
   13087 fi
   13088 
   13089 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
   13090 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
   13091 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
   13092 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13093 /* end confdefs.h.  */
   13094 
   13095 #include <sys/time.h>
   13096 #ifdef timerclear
   13097  yes
   13098 #endif
   13099 
   13100 _ACEOF
   13101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13102   $EGREP "yes" >/dev/null 2>&1; then :
   13103 
   13104 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
   13105 
   13106 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13107 $as_echo "yes" >&6; }
   13108 else
   13109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13110 $as_echo "no" >&6; }
   13111 
   13112 fi
   13113 rm -f conftest*
   13114 
   13115 fi
   13116 
   13117 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
   13118 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
   13119 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
   13120 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13121 /* end confdefs.h.  */
   13122 
   13123 #include <sys/time.h>
   13124 #ifdef timerisset
   13125  yes
   13126 #endif
   13127 
   13128 _ACEOF
   13129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13130   $EGREP "yes" >/dev/null 2>&1; then :
   13131 
   13132 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
   13133 
   13134 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13135 $as_echo "yes" >&6; }
   13136 else
   13137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13138 $as_echo "no" >&6; }
   13139 
   13140 fi
   13141 rm -f conftest*
   13142 
   13143 fi
   13144 
   13145 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
   13146 	ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
   13147 	     #include <sys/sysctl.h>
   13148 
   13149 "
   13150 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
   13151   ac_have_decl=1
   13152 else
   13153   ac_have_decl=0
   13154 fi
   13155 
   13156 cat >>confdefs.h <<_ACEOF
   13157 #define HAVE_DECL_CTL_KERN $ac_have_decl
   13158 _ACEOF
   13159 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
   13160 	     #include <sys/sysctl.h>
   13161 
   13162 "
   13163 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
   13164   ac_have_decl=1
   13165 else
   13166   ac_have_decl=0
   13167 fi
   13168 
   13169 cat >>confdefs.h <<_ACEOF
   13170 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
   13171 _ACEOF
   13172 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
   13173 	     #include <sys/sysctl.h>
   13174 
   13175 "
   13176 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
   13177   ac_have_decl=1
   13178 else
   13179   ac_have_decl=0
   13180 fi
   13181 
   13182 cat >>confdefs.h <<_ACEOF
   13183 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
   13184 _ACEOF
   13185 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
   13186 	     #include <sys/sysctl.h>
   13187 
   13188 "
   13189 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
   13190   ac_have_decl=1
   13191 else
   13192   ac_have_decl=0
   13193 fi
   13194 
   13195 cat >>confdefs.h <<_ACEOF
   13196 #define HAVE_DECL_KERN_ARND $ac_have_decl
   13197 _ACEOF
   13198 
   13199 fi
   13200 
   13201  if test x$bwin32 = xtrue; then
   13202   BUILD_WIN32_TRUE=
   13203   BUILD_WIN32_FALSE='#'
   13204 else
   13205   BUILD_WIN32_TRUE='#'
   13206   BUILD_WIN32_FALSE=
   13207 fi
   13208 
   13209  if test x$cygwin = xtrue; then
   13210   BUILD_CYGWIN_TRUE=
   13211   BUILD_CYGWIN_FALSE='#'
   13212 else
   13213   BUILD_CYGWIN_TRUE='#'
   13214   BUILD_CYGWIN_FALSE=
   13215 fi
   13216 
   13217  if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
   13218   BUILD_WITH_NO_UNDEFINED_TRUE=
   13219   BUILD_WITH_NO_UNDEFINED_FALSE='#'
   13220 else
   13221   BUILD_WITH_NO_UNDEFINED_TRUE='#'
   13222   BUILD_WITH_NO_UNDEFINED_FALSE=
   13223 fi
   13224 
   13225 
   13226 if test x$bwin32 = xtrue; then
   13227    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
   13228 $as_echo_n "checking for library containing getservbyname... " >&6; }
   13229 if ${ac_cv_search_getservbyname+:} false; then :
   13230   $as_echo_n "(cached) " >&6
   13231 else
   13232   ac_func_search_save_LIBS=$LIBS
   13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13234 /* end confdefs.h.  */
   13235 
   13236 /* Override any GCC internal prototype to avoid an error.
   13237    Use char because int might match the return type of a GCC
   13238    builtin and then its argument prototype would still apply.  */
   13239 #ifdef __cplusplus
   13240 extern "C"
   13241 #endif
   13242 char getservbyname ();
   13243 int
   13244 main ()
   13245 {
   13246 return getservbyname ();
   13247   ;
   13248   return 0;
   13249 }
   13250 _ACEOF
   13251 for ac_lib in '' ws2_32; do
   13252   if test -z "$ac_lib"; then
   13253     ac_res="none required"
   13254   else
   13255     ac_res=-l$ac_lib
   13256     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13257   fi
   13258   if ac_fn_c_try_link "$LINENO"; then :
   13259   ac_cv_search_getservbyname=$ac_res
   13260 fi
   13261 rm -f core conftest.err conftest.$ac_objext \
   13262     conftest$ac_exeext
   13263   if ${ac_cv_search_getservbyname+:} false; then :
   13264   break
   13265 fi
   13266 done
   13267 if ${ac_cv_search_getservbyname+:} false; then :
   13268 
   13269 else
   13270   ac_cv_search_getservbyname=no
   13271 fi
   13272 rm conftest.$ac_ext
   13273 LIBS=$ac_func_search_save_LIBS
   13274 fi
   13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
   13276 $as_echo "$ac_cv_search_getservbyname" >&6; }
   13277 ac_res=$ac_cv_search_getservbyname
   13278 if test "$ac_res" != no; then :
   13279   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13280 
   13281 fi
   13282 
   13283 fi
   13284 
   13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   13286 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   13287 if ${ac_cv_c_const+:} false; then :
   13288   $as_echo_n "(cached) " >&6
   13289 else
   13290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13291 /* end confdefs.h.  */
   13292 
   13293 int
   13294 main ()
   13295 {
   13296 /* FIXME: Include the comments suggested by Paul. */
   13297 #ifndef __cplusplus
   13298   /* Ultrix mips cc rejects this.  */
   13299   typedef int charset[2];
   13300   const charset cs;
   13301   /* SunOS 4.1.1 cc rejects this.  */
   13302   char const *const *pcpcc;
   13303   char **ppc;
   13304   /* NEC SVR4.0.2 mips cc rejects this.  */
   13305   struct point {int x, y;};
   13306   static struct point const zero = {0,0};
   13307   /* AIX XL C 1.02.0.0 rejects this.
   13308      It does not let you subtract one const X* pointer from another in
   13309      an arm of an if-expression whose if-part is not a constant
   13310      expression */
   13311   const char *g = "string";
   13312   pcpcc = &g + (g ? g-g : 0);
   13313   /* HPUX 7.0 cc rejects these. */
   13314   ++pcpcc;
   13315   ppc = (char**) pcpcc;
   13316   pcpcc = (char const *const *) ppc;
   13317   { /* SCO 3.2v4 cc rejects this.  */
   13318     char *t;
   13319     char const *s = 0 ? (char *) 0 : (char const *) 0;
   13320 
   13321     *t++ = 0;
   13322     if (s) return 0;
   13323   }
   13324   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   13325     int x[] = {25, 17};
   13326     const int *foo = &x[0];
   13327     ++foo;
   13328   }
   13329   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   13330     typedef const int *iptr;
   13331     iptr p = 0;
   13332     ++p;
   13333   }
   13334   { /* AIX XL C 1.02.0.0 rejects this saying
   13335        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   13336     struct s { int j; const int *ap[3]; };
   13337     struct s *b; b->j = 5;
   13338   }
   13339   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   13340     const int foo = 10;
   13341     if (!foo) return 0;
   13342   }
   13343   return !cs[0] && !zero.x;
   13344 #endif
   13345 
   13346   ;
   13347   return 0;
   13348 }
   13349 _ACEOF
   13350 if ac_fn_c_try_compile "$LINENO"; then :
   13351   ac_cv_c_const=yes
   13352 else
   13353   ac_cv_c_const=no
   13354 fi
   13355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13356 fi
   13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   13358 $as_echo "$ac_cv_c_const" >&6; }
   13359 if test $ac_cv_c_const = no; then
   13360 
   13361 $as_echo "#define const /**/" >>confdefs.h
   13362 
   13363 fi
   13364 
   13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   13366 $as_echo_n "checking for inline... " >&6; }
   13367 if ${ac_cv_c_inline+:} false; then :
   13368   $as_echo_n "(cached) " >&6
   13369 else
   13370   ac_cv_c_inline=no
   13371 for ac_kw in inline __inline__ __inline; do
   13372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13373 /* end confdefs.h.  */
   13374 #ifndef __cplusplus
   13375 typedef int foo_t;
   13376 static $ac_kw foo_t static_foo () {return 0; }
   13377 $ac_kw foo_t foo () {return 0; }
   13378 #endif
   13379 
   13380 _ACEOF
   13381 if ac_fn_c_try_compile "$LINENO"; then :
   13382   ac_cv_c_inline=$ac_kw
   13383 fi
   13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13385   test "$ac_cv_c_inline" != no && break
   13386 done
   13387 
   13388 fi
   13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   13390 $as_echo "$ac_cv_c_inline" >&6; }
   13391 
   13392 case $ac_cv_c_inline in
   13393   inline | yes) ;;
   13394   *)
   13395     case $ac_cv_c_inline in
   13396       no) ac_val=;;
   13397       *) ac_val=$ac_cv_c_inline;;
   13398     esac
   13399     cat >>confdefs.h <<_ACEOF
   13400 #ifndef __cplusplus
   13401 #define inline $ac_val
   13402 #endif
   13403 _ACEOF
   13404     ;;
   13405 esac
   13406 
   13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   13408 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   13409 if ${ac_cv_header_time+:} false; then :
   13410   $as_echo_n "(cached) " >&6
   13411 else
   13412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13413 /* end confdefs.h.  */
   13414 #include <sys/types.h>
   13415 #include <sys/time.h>
   13416 #include <time.h>
   13417 
   13418 int
   13419 main ()
   13420 {
   13421 if ((struct tm *) 0)
   13422 return 0;
   13423   ;
   13424   return 0;
   13425 }
   13426 _ACEOF
   13427 if ac_fn_c_try_compile "$LINENO"; then :
   13428   ac_cv_header_time=yes
   13429 else
   13430   ac_cv_header_time=no
   13431 fi
   13432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13433 fi
   13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   13435 $as_echo "$ac_cv_header_time" >&6; }
   13436 if test $ac_cv_header_time = yes; then
   13437 
   13438 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   13439 
   13440 fi
   13441 
   13442 
   13443 for ac_func in  \
   13444   accept4 \
   13445   arc4random \
   13446   arc4random_buf \
   13447   clock_gettime \
   13448   eventfd \
   13449   epoll_create1 \
   13450   fcntl \
   13451   getegid \
   13452   geteuid \
   13453   getifaddrs \
   13454   getnameinfo \
   13455   getprotobynumber \
   13456   gettimeofday \
   13457   inet_ntop \
   13458   inet_pton \
   13459   issetugid \
   13460   mach_absolute_time \
   13461   mmap \
   13462   nanosleep \
   13463   pipe \
   13464   pipe2 \
   13465   putenv \
   13466   sendfile \
   13467   setenv \
   13468   setrlimit \
   13469   sigaction \
   13470   signal \
   13471   splice \
   13472   strlcpy \
   13473   strsep \
   13474   strtok_r \
   13475   strtoll \
   13476   sysctl \
   13477   timerfd_create \
   13478   umask \
   13479   unsetenv \
   13480   usleep \
   13481   vasprintf \
   13482 
   13483 do :
   13484   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13485 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13486 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13487   cat >>confdefs.h <<_ACEOF
   13488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13489 _ACEOF
   13490 
   13491 fi
   13492 done
   13493 
   13494  if test x"$ac_cv_func_strlcpy" = xno; then
   13495   STRLCPY_IMPL_TRUE=
   13496   STRLCPY_IMPL_FALSE='#'
   13497 else
   13498   STRLCPY_IMPL_TRUE='#'
   13499   STRLCPY_IMPL_FALSE=
   13500 fi
   13501 
   13502 
   13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
   13504 $as_echo_n "checking for getaddrinfo... " >&6; }
   13505 if ${libevent_cv_getaddrinfo+:} false; then :
   13506   $as_echo_n "(cached) " >&6
   13507 else
   13508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13509 /* end confdefs.h.  */
   13510 
   13511 		#ifdef HAVE_NETDB_H
   13512 		#include <netdb.h>
   13513 		#endif
   13514 
   13515 int
   13516 main ()
   13517 {
   13518 
   13519 		getaddrinfo;
   13520 
   13521 
   13522   ;
   13523   return 0;
   13524 }
   13525 _ACEOF
   13526 if ac_fn_c_try_link "$LINENO"; then :
   13527   libevent_cv_getaddrinfo=yes
   13528 else
   13529   libevent_cv_getaddrinfo=no
   13530 
   13531 fi
   13532 rm -f core conftest.err conftest.$ac_objext \
   13533     conftest$ac_exeext conftest.$ac_ext
   13534 
   13535 fi
   13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
   13537 $as_echo "$libevent_cv_getaddrinfo" >&6; }
   13538 if test "$libevent_cv_getaddrinfo" = "yes" ; then
   13539 
   13540 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
   13541 
   13542 else
   13543 
   13544 for ac_func in getservbyname
   13545 do :
   13546   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
   13547 if test "x$ac_cv_func_getservbyname" = xyes; then :
   13548   cat >>confdefs.h <<_ACEOF
   13549 #define HAVE_GETSERVBYNAME 1
   13550 _ACEOF
   13551 
   13552 fi
   13553 done
   13554 
   13555 # Check for gethostbyname_r in all its glorious incompatible versions.
   13556 #   (This is cut-and-pasted from Tor, which based its logic on
   13557 #   Python's configure.in.)
   13558 
   13559 
   13560 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
   13561 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
   13562 
   13563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
   13564 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
   13565   OLD_CFLAGS=$CFLAGS
   13566   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
   13567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13568 /* end confdefs.h.  */
   13569 
   13570 #include <netdb.h>
   13571 
   13572 int
   13573 main ()
   13574 {
   13575 
   13576     char *cp1, *cp2;
   13577     struct hostent *h1, *h2;
   13578     int i1, i2;
   13579     (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
   13580 
   13581   ;
   13582   return 0;
   13583 }
   13584 _ACEOF
   13585 if ac_fn_c_try_compile "$LINENO"; then :
   13586 
   13587     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   13588 
   13589 
   13590 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
   13591 
   13592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
   13593 $as_echo "6" >&6; }
   13594 
   13595 else
   13596 
   13597     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13598 /* end confdefs.h.  */
   13599 
   13600 #include <netdb.h>
   13601 
   13602 int
   13603 main ()
   13604 {
   13605 
   13606       char *cp1, *cp2;
   13607       struct hostent *h1;
   13608       int i1, i2;
   13609       (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
   13610 
   13611   ;
   13612   return 0;
   13613 }
   13614 _ACEOF
   13615 if ac_fn_c_try_compile "$LINENO"; then :
   13616 
   13617       $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   13618 
   13619 
   13620 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
   13621 
   13622       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
   13623 $as_echo "5" >&6; }
   13624 
   13625 else
   13626 
   13627       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13628 /* end confdefs.h.  */
   13629 
   13630 #include <netdb.h>
   13631 
   13632 int
   13633 main ()
   13634 {
   13635 
   13636        char *cp1;
   13637        struct hostent *h1;
   13638        struct hostent_data hd;
   13639        (void) gethostbyname_r(cp1,h1,&hd);
   13640 
   13641   ;
   13642   return 0;
   13643 }
   13644 _ACEOF
   13645 if ac_fn_c_try_compile "$LINENO"; then :
   13646 
   13647        $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   13648 
   13649 
   13650 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
   13651 
   13652        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
   13653 $as_echo "3" >&6; }
   13654 
   13655 else
   13656 
   13657        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
   13658 $as_echo "0" >&6; }
   13659 
   13660 fi
   13661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13662 
   13663 fi
   13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13665 
   13666 fi
   13667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13668  CFLAGS=$OLD_CFLAGS
   13669 
   13670 fi
   13671 
   13672 
   13673 fi
   13674 
   13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
   13676 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
   13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13678 /* end confdefs.h.  */
   13679 
   13680 #define _GNU_SOURCE
   13681 #include <fcntl.h>
   13682 #ifdef F_SETFD
   13683 yes
   13684 #endif
   13685 
   13686 _ACEOF
   13687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13688   $EGREP "yes" >/dev/null 2>&1; then :
   13689 
   13690 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
   13691 
   13692 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13693 $as_echo "yes" >&6; }
   13694 else
   13695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13696 $as_echo "no" >&6; }
   13697 fi
   13698 rm -f conftest*
   13699 
   13700 
   13701 needsignal=no
   13702 haveselect=no
   13703 if test x$bwin32 != xtrue; then
   13704     for ac_func in select
   13705 do :
   13706   ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
   13707 if test "x$ac_cv_func_select" = xyes; then :
   13708   cat >>confdefs.h <<_ACEOF
   13709 #define HAVE_SELECT 1
   13710 _ACEOF
   13711  haveselect=yes
   13712 fi
   13713 done
   13714 
   13715     if test "x$haveselect" = "xyes" ; then
   13716  	needsignal=yes
   13717     fi
   13718 fi
   13719  if test "x$haveselect" = "xyes"; then
   13720   SELECT_BACKEND_TRUE=
   13721   SELECT_BACKEND_FALSE='#'
   13722 else
   13723   SELECT_BACKEND_TRUE='#'
   13724   SELECT_BACKEND_FALSE=
   13725 fi
   13726 
   13727 
   13728 havepoll=no
   13729 for ac_func in poll
   13730 do :
   13731   ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
   13732 if test "x$ac_cv_func_poll" = xyes; then :
   13733   cat >>confdefs.h <<_ACEOF
   13734 #define HAVE_POLL 1
   13735 _ACEOF
   13736  havepoll=yes
   13737 fi
   13738 done
   13739 
   13740 if test "x$havepoll" = "xyes" ; then
   13741 	needsignal=yes
   13742 fi
   13743  if test "x$havepoll" = "xyes"; then
   13744   POLL_BACKEND_TRUE=
   13745   POLL_BACKEND_FALSE='#'
   13746 else
   13747   POLL_BACKEND_TRUE='#'
   13748   POLL_BACKEND_FALSE=
   13749 fi
   13750 
   13751 
   13752 havedevpoll=no
   13753 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
   13754 
   13755 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
   13756 
   13757 fi
   13758  if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
   13759   DEVPOLL_BACKEND_TRUE=
   13760   DEVPOLL_BACKEND_FALSE='#'
   13761 else
   13762   DEVPOLL_BACKEND_TRUE='#'
   13763   DEVPOLL_BACKEND_FALSE=
   13764 fi
   13765 
   13766 
   13767 havekqueue=no
   13768 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
   13769 	for ac_func in kqueue
   13770 do :
   13771   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
   13772 if test "x$ac_cv_func_kqueue" = xyes; then :
   13773   cat >>confdefs.h <<_ACEOF
   13774 #define HAVE_KQUEUE 1
   13775 _ACEOF
   13776  havekqueue=yes
   13777 fi
   13778 done
   13779 
   13780 	if test "x$havekqueue" = "xyes" ; then
   13781 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
   13782 $as_echo_n "checking for working kqueue... " >&6; }
   13783 		if test "$cross_compiling" = yes; then :
   13784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13785 $as_echo "no" >&6; }
   13786 else
   13787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13788 /* end confdefs.h.  */
   13789 #include <sys/types.h>
   13790 #include <sys/time.h>
   13791 #include <sys/event.h>
   13792 #include <stdio.h>
   13793 #include <unistd.h>
   13794 #include <fcntl.h>
   13795 
   13796 int
   13797 main(int argc, char **argv)
   13798 {
   13799 	int kq;
   13800 	int n;
   13801 	int fd[2];
   13802 	struct kevent ev;
   13803 	struct timespec ts;
   13804 	char buf[8000];
   13805 
   13806 	if (pipe(fd) == -1)
   13807 		exit(1);
   13808 	if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
   13809 		exit(1);
   13810 
   13811 	while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
   13812 		;
   13813 
   13814         if ((kq = kqueue()) == -1)
   13815 		exit(1);
   13816 
   13817 	memset(&ev, 0, sizeof(ev));
   13818 	ev.ident = fd[1];
   13819 	ev.filter = EVFILT_WRITE;
   13820 	ev.flags = EV_ADD | EV_ENABLE;
   13821 	n = kevent(kq, &ev, 1, NULL, 0, NULL);
   13822 	if (n == -1)
   13823 		exit(1);
   13824 
   13825 	read(fd[0], buf, sizeof(buf));
   13826 
   13827 	ts.tv_sec = 0;
   13828 	ts.tv_nsec = 0;
   13829 	n = kevent(kq, NULL, 0, &ev, 1, &ts);
   13830 	if (n == -1 || n == 0)
   13831 		exit(1);
   13832 
   13833 	exit(0);
   13834 }
   13835 _ACEOF
   13836 if ac_fn_c_try_run "$LINENO"; then :
   13837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13838 $as_echo "yes" >&6; }
   13839 
   13840 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
   13841 
   13842     havekqueue=yes
   13843 
   13844 else
   13845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13846 $as_echo "no" >&6; }
   13847 fi
   13848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13849   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13850 fi
   13851 
   13852 	fi
   13853 fi
   13854  if test "x$havekqueue" = "xyes"; then
   13855   KQUEUE_BACKEND_TRUE=
   13856   KQUEUE_BACKEND_FALSE='#'
   13857 else
   13858   KQUEUE_BACKEND_TRUE='#'
   13859   KQUEUE_BACKEND_FALSE=
   13860 fi
   13861 
   13862 
   13863 haveepollsyscall=no
   13864 haveepoll=no
   13865 for ac_func in epoll_ctl
   13866 do :
   13867   ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
   13868 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
   13869   cat >>confdefs.h <<_ACEOF
   13870 #define HAVE_EPOLL_CTL 1
   13871 _ACEOF
   13872  haveepoll=yes
   13873 fi
   13874 done
   13875 
   13876 if test "x$haveepoll" = "xyes" ; then
   13877 
   13878 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
   13879 
   13880 	needsignal=yes
   13881 fi
   13882 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
   13883 	if test "x$haveepoll" = "xno" ; then
   13884 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
   13885 $as_echo_n "checking for epoll system call... " >&6; }
   13886 		if test "$cross_compiling" = yes; then :
   13887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13888 $as_echo "no" >&6; }
   13889 else
   13890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13891 /* end confdefs.h.  */
   13892 #include <stdint.h>
   13893 #include <sys/param.h>
   13894 #include <sys/types.h>
   13895 #include <sys/syscall.h>
   13896 #include <sys/epoll.h>
   13897 #include <unistd.h>
   13898 
   13899 int
   13900 epoll_create(int size)
   13901 {
   13902 	return (syscall(__NR_epoll_create, size));
   13903 }
   13904 
   13905 int
   13906 main(int argc, char **argv)
   13907 {
   13908 	int epfd;
   13909 
   13910 	epfd = epoll_create(256);
   13911 	exit (epfd == -1 ? 1 : 0);
   13912 }
   13913 _ACEOF
   13914 if ac_fn_c_try_run "$LINENO"; then :
   13915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13916 $as_echo "yes" >&6; }
   13917 
   13918 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
   13919 
   13920     needsignal=yes
   13921     have_epoll=yes
   13922     case " $LIBOBJS " in
   13923   *" epoll_sub.$ac_objext "* ) ;;
   13924   *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
   13925  ;;
   13926 esac
   13927 
   13928 
   13929 else
   13930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13931 $as_echo "no" >&6; }
   13932 fi
   13933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13934   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13935 fi
   13936 
   13937 	fi
   13938 fi
   13939  if test "x$haveepoll" = "xyes"; then
   13940   EPOLL_BACKEND_TRUE=
   13941   EPOLL_BACKEND_FALSE='#'
   13942 else
   13943   EPOLL_BACKEND_TRUE='#'
   13944   EPOLL_BACKEND_FALSE=
   13945 fi
   13946 
   13947 
   13948 haveeventports=no
   13949 for ac_func in port_create
   13950 do :
   13951   ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
   13952 if test "x$ac_cv_func_port_create" = xyes; then :
   13953   cat >>confdefs.h <<_ACEOF
   13954 #define HAVE_PORT_CREATE 1
   13955 _ACEOF
   13956  haveeventports=yes
   13957 fi
   13958 done
   13959 
   13960 if test "x$haveeventports" = "xyes" ; then
   13961 
   13962 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
   13963 
   13964 	needsignal=yes
   13965 fi
   13966  if test "x$haveeventports" = "xyes"; then
   13967   EVPORT_BACKEND_TRUE=
   13968   EVPORT_BACKEND_FALSE='#'
   13969 else
   13970   EVPORT_BACKEND_TRUE='#'
   13971   EVPORT_BACKEND_FALSE=
   13972 fi
   13973 
   13974 
   13975 if test "x$bwin32" = "xtrue"; then
   13976 	needsignal=yes
   13977 fi
   13978 
   13979  if test "x$needsignal" = "xyes"; then
   13980   SIGNAL_SUPPORT_TRUE=
   13981   SIGNAL_SUPPORT_FALSE='#'
   13982 else
   13983   SIGNAL_SUPPORT_TRUE='#'
   13984   SIGNAL_SUPPORT_FALSE=
   13985 fi
   13986 
   13987 
   13988 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   13989 if test "x$ac_cv_type_pid_t" = xyes; then :
   13990 
   13991 else
   13992 
   13993 cat >>confdefs.h <<_ACEOF
   13994 #define pid_t int
   13995 _ACEOF
   13996 
   13997 fi
   13998 
   13999 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   14000 if test "x$ac_cv_type_size_t" = xyes; then :
   14001 
   14002 else
   14003 
   14004 cat >>confdefs.h <<_ACEOF
   14005 #define size_t unsigned int
   14006 _ACEOF
   14007 
   14008 fi
   14009 
   14010 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   14011 if test "x$ac_cv_type_ssize_t" = xyes; then :
   14012 
   14013 else
   14014 
   14015 cat >>confdefs.h <<_ACEOF
   14016 #define ssize_t int
   14017 _ACEOF
   14018 
   14019 fi
   14020 
   14021 
   14022 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
   14023 #include <stdint.h>
   14024 #elif defined(HAVE_INTTYPES_H)
   14025 #include <inttypes.h>
   14026 #endif
   14027 #ifdef HAVE_SYS_TYPES_H
   14028 #include <sys/types.h>
   14029 #endif
   14030 "
   14031 if test "x$ac_cv_type_uint64_t" = xyes; then :
   14032 
   14033 cat >>confdefs.h <<_ACEOF
   14034 #define HAVE_UINT64_T 1
   14035 _ACEOF
   14036 
   14037 
   14038 fi
   14039 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
   14040 #include <stdint.h>
   14041 #elif defined(HAVE_INTTYPES_H)
   14042 #include <inttypes.h>
   14043 #endif
   14044 #ifdef HAVE_SYS_TYPES_H
   14045 #include <sys/types.h>
   14046 #endif
   14047 "
   14048 if test "x$ac_cv_type_uint32_t" = xyes; then :
   14049 
   14050 cat >>confdefs.h <<_ACEOF
   14051 #define HAVE_UINT32_T 1
   14052 _ACEOF
   14053 
   14054 
   14055 fi
   14056 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
   14057 #include <stdint.h>
   14058 #elif defined(HAVE_INTTYPES_H)
   14059 #include <inttypes.h>
   14060 #endif
   14061 #ifdef HAVE_SYS_TYPES_H
   14062 #include <sys/types.h>
   14063 #endif
   14064 "
   14065 if test "x$ac_cv_type_uint16_t" = xyes; then :
   14066 
   14067 cat >>confdefs.h <<_ACEOF
   14068 #define HAVE_UINT16_T 1
   14069 _ACEOF
   14070 
   14071 
   14072 fi
   14073 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
   14074 #include <stdint.h>
   14075 #elif defined(HAVE_INTTYPES_H)
   14076 #include <inttypes.h>
   14077 #endif
   14078 #ifdef HAVE_SYS_TYPES_H
   14079 #include <sys/types.h>
   14080 #endif
   14081 "
   14082 if test "x$ac_cv_type_uint8_t" = xyes; then :
   14083 
   14084 cat >>confdefs.h <<_ACEOF
   14085 #define HAVE_UINT8_T 1
   14086 _ACEOF
   14087 
   14088 
   14089 fi
   14090 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
   14091 #include <stdint.h>
   14092 #elif defined(HAVE_INTTYPES_H)
   14093 #include <inttypes.h>
   14094 #endif
   14095 #ifdef HAVE_SYS_TYPES_H
   14096 #include <sys/types.h>
   14097 #endif
   14098 "
   14099 if test "x$ac_cv_type_uintptr_t" = xyes; then :
   14100 
   14101 cat >>confdefs.h <<_ACEOF
   14102 #define HAVE_UINTPTR_T 1
   14103 _ACEOF
   14104 
   14105 
   14106 fi
   14107 
   14108 
   14109 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
   14110 #include <sys/types.h>
   14111 #endif
   14112 #ifdef HAVE_SYS_SELECT_H
   14113 #include <sys/select.h>
   14114 #endif
   14115 "
   14116 if test "x$ac_cv_type_fd_mask" = xyes; then :
   14117 
   14118 cat >>confdefs.h <<_ACEOF
   14119 #define HAVE_FD_MASK 1
   14120 _ACEOF
   14121 
   14122 
   14123 fi
   14124 
   14125 
   14126 # The cast to long int works around a bug in the HP C Compiler
   14127 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14128 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14129 # This bug is HP SR number 8606223364.
   14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   14131 $as_echo_n "checking size of long long... " >&6; }
   14132 if ${ac_cv_sizeof_long_long+:} false; then :
   14133   $as_echo_n "(cached) " >&6
   14134 else
   14135   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   14136 
   14137 else
   14138   if test "$ac_cv_type_long_long" = yes; then
   14139      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14141 as_fn_error 77 "cannot compute sizeof (long long)
   14142 See \`config.log' for more details" "$LINENO" 5; }
   14143    else
   14144      ac_cv_sizeof_long_long=0
   14145    fi
   14146 fi
   14147 
   14148 fi
   14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   14150 $as_echo "$ac_cv_sizeof_long_long" >&6; }
   14151 
   14152 
   14153 
   14154 cat >>confdefs.h <<_ACEOF
   14155 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   14156 _ACEOF
   14157 
   14158 
   14159 # The cast to long int works around a bug in the HP C Compiler
   14160 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14161 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14162 # This bug is HP SR number 8606223364.
   14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   14164 $as_echo_n "checking size of long... " >&6; }
   14165 if ${ac_cv_sizeof_long+:} false; then :
   14166   $as_echo_n "(cached) " >&6
   14167 else
   14168   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   14169 
   14170 else
   14171   if test "$ac_cv_type_long" = yes; then
   14172      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14174 as_fn_error 77 "cannot compute sizeof (long)
   14175 See \`config.log' for more details" "$LINENO" 5; }
   14176    else
   14177      ac_cv_sizeof_long=0
   14178    fi
   14179 fi
   14180 
   14181 fi
   14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   14183 $as_echo "$ac_cv_sizeof_long" >&6; }
   14184 
   14185 
   14186 
   14187 cat >>confdefs.h <<_ACEOF
   14188 #define SIZEOF_LONG $ac_cv_sizeof_long
   14189 _ACEOF
   14190 
   14191 
   14192 # The cast to long int works around a bug in the HP C Compiler
   14193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14195 # This bug is HP SR number 8606223364.
   14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
   14197 $as_echo_n "checking size of int... " >&6; }
   14198 if ${ac_cv_sizeof_int+:} false; then :
   14199   $as_echo_n "(cached) " >&6
   14200 else
   14201   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
   14202 
   14203 else
   14204   if test "$ac_cv_type_int" = yes; then
   14205      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14207 as_fn_error 77 "cannot compute sizeof (int)
   14208 See \`config.log' for more details" "$LINENO" 5; }
   14209    else
   14210      ac_cv_sizeof_int=0
   14211    fi
   14212 fi
   14213 
   14214 fi
   14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
   14216 $as_echo "$ac_cv_sizeof_int" >&6; }
   14217 
   14218 
   14219 
   14220 cat >>confdefs.h <<_ACEOF
   14221 #define SIZEOF_INT $ac_cv_sizeof_int
   14222 _ACEOF
   14223 
   14224 
   14225 # The cast to long int works around a bug in the HP C Compiler
   14226 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14227 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14228 # This bug is HP SR number 8606223364.
   14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
   14230 $as_echo_n "checking size of short... " >&6; }
   14231 if ${ac_cv_sizeof_short+:} false; then :
   14232   $as_echo_n "(cached) " >&6
   14233 else
   14234   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
   14235 
   14236 else
   14237   if test "$ac_cv_type_short" = yes; then
   14238      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14240 as_fn_error 77 "cannot compute sizeof (short)
   14241 See \`config.log' for more details" "$LINENO" 5; }
   14242    else
   14243      ac_cv_sizeof_short=0
   14244    fi
   14245 fi
   14246 
   14247 fi
   14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
   14249 $as_echo "$ac_cv_sizeof_short" >&6; }
   14250 
   14251 
   14252 
   14253 cat >>confdefs.h <<_ACEOF
   14254 #define SIZEOF_SHORT $ac_cv_sizeof_short
   14255 _ACEOF
   14256 
   14257 
   14258 # The cast to long int works around a bug in the HP C Compiler
   14259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14261 # This bug is HP SR number 8606223364.
   14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
   14263 $as_echo_n "checking size of size_t... " >&6; }
   14264 if ${ac_cv_sizeof_size_t+:} false; then :
   14265   $as_echo_n "(cached) " >&6
   14266 else
   14267   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
   14268 
   14269 else
   14270   if test "$ac_cv_type_size_t" = yes; then
   14271      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14273 as_fn_error 77 "cannot compute sizeof (size_t)
   14274 See \`config.log' for more details" "$LINENO" 5; }
   14275    else
   14276      ac_cv_sizeof_size_t=0
   14277    fi
   14278 fi
   14279 
   14280 fi
   14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
   14282 $as_echo "$ac_cv_sizeof_size_t" >&6; }
   14283 
   14284 
   14285 
   14286 cat >>confdefs.h <<_ACEOF
   14287 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
   14288 _ACEOF
   14289 
   14290 
   14291 # The cast to long int works around a bug in the HP C Compiler
   14292 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14293 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14294 # This bug is HP SR number 8606223364.
   14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
   14296 $as_echo_n "checking size of void *... " >&6; }
   14297 if ${ac_cv_sizeof_void_p+:} false; then :
   14298   $as_echo_n "(cached) " >&6
   14299 else
   14300   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
   14301 
   14302 else
   14303   if test "$ac_cv_type_void_p" = yes; then
   14304      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14306 as_fn_error 77 "cannot compute sizeof (void *)
   14307 See \`config.log' for more details" "$LINENO" 5; }
   14308    else
   14309      ac_cv_sizeof_void_p=0
   14310    fi
   14311 fi
   14312 
   14313 fi
   14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
   14315 $as_echo "$ac_cv_sizeof_void_p" >&6; }
   14316 
   14317 
   14318 
   14319 cat >>confdefs.h <<_ACEOF
   14320 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
   14321 _ACEOF
   14322 
   14323 
   14324 # The cast to long int works around a bug in the HP C Compiler
   14325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14327 # This bug is HP SR number 8606223364.
   14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
   14329 $as_echo_n "checking size of off_t... " >&6; }
   14330 if ${ac_cv_sizeof_off_t+:} false; then :
   14331   $as_echo_n "(cached) " >&6
   14332 else
   14333   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
   14334 
   14335 else
   14336   if test "$ac_cv_type_off_t" = yes; then
   14337      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14339 as_fn_error 77 "cannot compute sizeof (off_t)
   14340 See \`config.log' for more details" "$LINENO" 5; }
   14341    else
   14342      ac_cv_sizeof_off_t=0
   14343    fi
   14344 fi
   14345 
   14346 fi
   14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
   14348 $as_echo "$ac_cv_sizeof_off_t" >&6; }
   14349 
   14350 
   14351 
   14352 cat >>confdefs.h <<_ACEOF
   14353 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
   14354 _ACEOF
   14355 
   14356 
   14357 
   14358 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
   14359 #include <sys/types.h>
   14360 #ifdef HAVE_NETINET_IN_H
   14361 #include <netinet/in.h>
   14362 #endif
   14363 #ifdef HAVE_NETINET_IN6_H
   14364 #include <netinet/in6.h>
   14365 #endif
   14366 #ifdef HAVE_SYS_SOCKET_H
   14367 #include <sys/socket.h>
   14368 #endif
   14369 #ifdef HAVE_NETDB_H
   14370 #include <netdb.h>
   14371 #endif
   14372 #ifdef _WIN32
   14373 #define WIN32_WINNT 0x400
   14374 #define _WIN32_WINNT 0x400
   14375 #define WIN32_LEAN_AND_MEAN
   14376 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   14377 #include <winsock.h>
   14378 #else
   14379 #include <winsock2.h>
   14380 #include <ws2tcpip.h>
   14381 #endif
   14382 #endif
   14383 
   14384 "
   14385 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
   14386 
   14387 cat >>confdefs.h <<_ACEOF
   14388 #define HAVE_STRUCT_IN6_ADDR 1
   14389 _ACEOF
   14390 
   14391 
   14392 fi
   14393 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
   14394 #include <sys/types.h>
   14395 #ifdef HAVE_NETINET_IN_H
   14396 #include <netinet/in.h>
   14397 #endif
   14398 #ifdef HAVE_NETINET_IN6_H
   14399 #include <netinet/in6.h>
   14400 #endif
   14401 #ifdef HAVE_SYS_SOCKET_H
   14402 #include <sys/socket.h>
   14403 #endif
   14404 #ifdef HAVE_NETDB_H
   14405 #include <netdb.h>
   14406 #endif
   14407 #ifdef _WIN32
   14408 #define WIN32_WINNT 0x400
   14409 #define _WIN32_WINNT 0x400
   14410 #define WIN32_LEAN_AND_MEAN
   14411 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   14412 #include <winsock.h>
   14413 #else
   14414 #include <winsock2.h>
   14415 #include <ws2tcpip.h>
   14416 #endif
   14417 #endif
   14418 
   14419 "
   14420 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
   14421 
   14422 cat >>confdefs.h <<_ACEOF
   14423 #define HAVE_STRUCT_SOCKADDR_IN6 1
   14424 _ACEOF
   14425 
   14426 
   14427 fi
   14428 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
   14429 #include <sys/types.h>
   14430 #ifdef HAVE_NETINET_IN_H
   14431 #include <netinet/in.h>
   14432 #endif
   14433 #ifdef HAVE_NETINET_IN6_H
   14434 #include <netinet/in6.h>
   14435 #endif
   14436 #ifdef HAVE_SYS_SOCKET_H
   14437 #include <sys/socket.h>
   14438 #endif
   14439 #ifdef HAVE_NETDB_H
   14440 #include <netdb.h>
   14441 #endif
   14442 #ifdef _WIN32
   14443 #define WIN32_WINNT 0x400
   14444 #define _WIN32_WINNT 0x400
   14445 #define WIN32_LEAN_AND_MEAN
   14446 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   14447 #include <winsock.h>
   14448 #else
   14449 #include <winsock2.h>
   14450 #include <ws2tcpip.h>
   14451 #endif
   14452 #endif
   14453 
   14454 "
   14455 if test "x$ac_cv_type_sa_family_t" = xyes; then :
   14456 
   14457 cat >>confdefs.h <<_ACEOF
   14458 #define HAVE_SA_FAMILY_T 1
   14459 _ACEOF
   14460 
   14461 
   14462 fi
   14463 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
   14464 #include <sys/types.h>
   14465 #ifdef HAVE_NETINET_IN_H
   14466 #include <netinet/in.h>
   14467 #endif
   14468 #ifdef HAVE_NETINET_IN6_H
   14469 #include <netinet/in6.h>
   14470 #endif
   14471 #ifdef HAVE_SYS_SOCKET_H
   14472 #include <sys/socket.h>
   14473 #endif
   14474 #ifdef HAVE_NETDB_H
   14475 #include <netdb.h>
   14476 #endif
   14477 #ifdef _WIN32
   14478 #define WIN32_WINNT 0x400
   14479 #define _WIN32_WINNT 0x400
   14480 #define WIN32_LEAN_AND_MEAN
   14481 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   14482 #include <winsock.h>
   14483 #else
   14484 #include <winsock2.h>
   14485 #include <ws2tcpip.h>
   14486 #endif
   14487 #endif
   14488 
   14489 "
   14490 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
   14491 
   14492 cat >>confdefs.h <<_ACEOF
   14493 #define HAVE_STRUCT_ADDRINFO 1
   14494 _ACEOF
   14495 
   14496 
   14497 fi
   14498 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
   14499 #include <sys/types.h>
   14500 #ifdef HAVE_NETINET_IN_H
   14501 #include <netinet/in.h>
   14502 #endif
   14503 #ifdef HAVE_NETINET_IN6_H
   14504 #include <netinet/in6.h>
   14505 #endif
   14506 #ifdef HAVE_SYS_SOCKET_H
   14507 #include <sys/socket.h>
   14508 #endif
   14509 #ifdef HAVE_NETDB_H
   14510 #include <netdb.h>
   14511 #endif
   14512 #ifdef _WIN32
   14513 #define WIN32_WINNT 0x400
   14514 #define _WIN32_WINNT 0x400
   14515 #define WIN32_LEAN_AND_MEAN
   14516 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   14517 #include <winsock.h>
   14518 #else
   14519 #include <winsock2.h>
   14520 #include <ws2tcpip.h>
   14521 #endif
   14522 #endif
   14523 
   14524 "
   14525 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
   14526 
   14527 cat >>confdefs.h <<_ACEOF
   14528 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
   14529 _ACEOF
   14530 
   14531 
   14532 fi
   14533 
   14534 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
   14535 #ifdef HAVE_NETINET_IN_H
   14536 #include <netinet/in.h>
   14537 #endif
   14538 #ifdef HAVE_NETINET_IN6_H
   14539 #include <netinet/in6.h>
   14540 #endif
   14541 #ifdef HAVE_SYS_SOCKET_H
   14542 #include <sys/socket.h>
   14543 #endif
   14544 #ifdef _WIN32
   14545 #define WIN32_WINNT 0x400
   14546 #define _WIN32_WINNT 0x400
   14547 #define WIN32_LEAN_AND_MEAN
   14548 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   14549 #include <winsock.h>
   14550 #else
   14551 #include <winsock2.h>
   14552 #include <ws2tcpip.h>
   14553 #endif
   14554 #endif
   14555 
   14556 "
   14557 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
   14558 
   14559 cat >>confdefs.h <<_ACEOF
   14560 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
   14561 _ACEOF
   14562 
   14563 
   14564 fi
   14565 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
   14566 #ifdef HAVE_NETINET_IN_H
   14567 #include <netinet/in.h>
   14568 #endif
   14569 #ifdef HAVE_NETINET_IN6_H
   14570 #include <netinet/in6.h>
   14571 #endif
   14572 #ifdef HAVE_SYS_SOCKET_H
   14573 #include <sys/socket.h>
   14574 #endif
   14575 #ifdef _WIN32
   14576 #define WIN32_WINNT 0x400
   14577 #define _WIN32_WINNT 0x400
   14578 #define WIN32_LEAN_AND_MEAN
   14579 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   14580 #include <winsock.h>
   14581 #else
   14582 #include <winsock2.h>
   14583 #include <ws2tcpip.h>
   14584 #endif
   14585 #endif
   14586 
   14587 "
   14588 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
   14589 
   14590 cat >>confdefs.h <<_ACEOF
   14591 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
   14592 _ACEOF
   14593 
   14594 
   14595 fi
   14596 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
   14597 #ifdef HAVE_NETINET_IN_H
   14598 #include <netinet/in.h>
   14599 #endif
   14600 #ifdef HAVE_NETINET_IN6_H
   14601 #include <netinet/in6.h>
   14602 #endif
   14603 #ifdef HAVE_SYS_SOCKET_H
   14604 #include <sys/socket.h>
   14605 #endif
   14606 #ifdef _WIN32
   14607 #define WIN32_WINNT 0x400
   14608 #define _WIN32_WINNT 0x400
   14609 #define WIN32_LEAN_AND_MEAN
   14610 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   14611 #include <winsock.h>
   14612 #else
   14613 #include <winsock2.h>
   14614 #include <ws2tcpip.h>
   14615 #endif
   14616 #endif
   14617 
   14618 "
   14619 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
   14620 
   14621 cat >>confdefs.h <<_ACEOF
   14622 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
   14623 _ACEOF
   14624 
   14625 
   14626 fi
   14627 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
   14628 #ifdef HAVE_NETINET_IN_H
   14629 #include <netinet/in.h>
   14630 #endif
   14631 #ifdef HAVE_NETINET_IN6_H
   14632 #include <netinet/in6.h>
   14633 #endif
   14634 #ifdef HAVE_SYS_SOCKET_H
   14635 #include <sys/socket.h>
   14636 #endif
   14637 #ifdef _WIN32
   14638 #define WIN32_WINNT 0x400
   14639 #define _WIN32_WINNT 0x400
   14640 #define WIN32_LEAN_AND_MEAN
   14641 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   14642 #include <winsock.h>
   14643 #else
   14644 #include <winsock2.h>
   14645 #include <ws2tcpip.h>
   14646 #endif
   14647 #endif
   14648 
   14649 "
   14650 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
   14651 
   14652 cat >>confdefs.h <<_ACEOF
   14653 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
   14654 _ACEOF
   14655 
   14656 
   14657 fi
   14658 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
   14659 #ifdef HAVE_NETINET_IN_H
   14660 #include <netinet/in.h>
   14661 #endif
   14662 #ifdef HAVE_NETINET_IN6_H
   14663 #include <netinet/in6.h>
   14664 #endif
   14665 #ifdef HAVE_SYS_SOCKET_H
   14666 #include <sys/socket.h>
   14667 #endif
   14668 #ifdef _WIN32
   14669 #define WIN32_WINNT 0x400
   14670 #define _WIN32_WINNT 0x400
   14671 #define WIN32_LEAN_AND_MEAN
   14672 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   14673 #include <winsock.h>
   14674 #else
   14675 #include <winsock2.h>
   14676 #include <ws2tcpip.h>
   14677 #endif
   14678 #endif
   14679 
   14680 "
   14681 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
   14682 
   14683 cat >>confdefs.h <<_ACEOF
   14684 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
   14685 _ACEOF
   14686 
   14687 
   14688 fi
   14689 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
   14690 #ifdef HAVE_NETINET_IN_H
   14691 #include <netinet/in.h>
   14692 #endif
   14693 #ifdef HAVE_NETINET_IN6_H
   14694 #include <netinet/in6.h>
   14695 #endif
   14696 #ifdef HAVE_SYS_SOCKET_H
   14697 #include <sys/socket.h>
   14698 #endif
   14699 #ifdef _WIN32
   14700 #define WIN32_WINNT 0x400
   14701 #define _WIN32_WINNT 0x400
   14702 #define WIN32_LEAN_AND_MEAN
   14703 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   14704 #include <winsock.h>
   14705 #else
   14706 #include <winsock2.h>
   14707 #include <ws2tcpip.h>
   14708 #endif
   14709 #endif
   14710 
   14711 "
   14712 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
   14713 
   14714 cat >>confdefs.h <<_ACEOF
   14715 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
   14716 _ACEOF
   14717 
   14718 
   14719 fi
   14720 
   14721 
   14722 ac_fn_c_check_type "$LINENO" "struct so_linger" "ac_cv_type_struct_so_linger" "
   14723 #ifdef HAVE_SYS_SOCKET_H
   14724 #include <sys/socket.h>
   14725 #endif
   14726 
   14727 "
   14728 if test "x$ac_cv_type_struct_so_linger" = xyes; then :
   14729 
   14730 cat >>confdefs.h <<_ACEOF
   14731 #define HAVE_STRUCT_SO_LINGER 1
   14732 _ACEOF
   14733 
   14734 #define HAVE_SO_LINGER
   14735 fi
   14736 
   14737 
   14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
   14739 $as_echo_n "checking for socklen_t... " >&6; }
   14740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14741 /* end confdefs.h.  */
   14742 
   14743  #include <sys/types.h>
   14744  #include <sys/socket.h>
   14745 int
   14746 main ()
   14747 {
   14748 socklen_t x;
   14749   ;
   14750   return 0;
   14751 }
   14752 _ACEOF
   14753 if ac_fn_c_try_compile "$LINENO"; then :
   14754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14755 $as_echo "yes" >&6; }
   14756 else
   14757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14758 $as_echo "no" >&6; }
   14759 
   14760 $as_echo "#define socklen_t unsigned int" >>confdefs.h
   14761 
   14762 
   14763 fi
   14764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14765 
   14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
   14767 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
   14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14769 /* end confdefs.h.  */
   14770 
   14771 int
   14772 main ()
   14773 {
   14774  const char *cp = __func__;
   14775   ;
   14776   return 0;
   14777 }
   14778 _ACEOF
   14779 if ac_fn_c_try_compile "$LINENO"; then :
   14780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14781 $as_echo "yes" >&6; }
   14782 else
   14783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14784 $as_echo "no" >&6; }
   14785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
   14786 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
   14787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14788 /* end confdefs.h.  */
   14789 
   14790 int
   14791 main ()
   14792 {
   14793  const char *cp = __FUNCTION__;
   14794   ;
   14795   return 0;
   14796 }
   14797 _ACEOF
   14798 if ac_fn_c_try_compile "$LINENO"; then :
   14799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14800 $as_echo "yes" >&6; }
   14801 
   14802 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
   14803 
   14804 else
   14805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14806 $as_echo "no" >&6; }
   14807 
   14808 $as_echo "#define __func__ __FILE__" >>confdefs.h
   14809 
   14810 fi
   14811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14812 fi
   14813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14814 
   14815 
   14816 # check if we can compile with pthreads
   14817 have_pthreads=no
   14818 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
   14819 
   14820 
   14821 
   14822 ac_ext=c
   14823 ac_cpp='$CPP $CPPFLAGS'
   14824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14827 
   14828 # OpenLDAP --with-threads
   14829 
   14830 # Check whether --with-threads was given.
   14831 if test "${with_threads+set}" = set; then :
   14832   withval=$with_threads;
   14833 	ol_arg=invalid
   14834 	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
   14835 		if test "$withval" = "$ol_val" ; then
   14836 			ol_arg="$ol_val"
   14837 		fi
   14838 	done
   14839 	if test "$ol_arg" = "invalid" ; then
   14840 		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
   14841 	fi
   14842 	ol_with_threads="$ol_arg"
   14843 
   14844 else
   14845   	ol_with_threads="auto"
   14846 fi
   14847 # end --with-threads
   14848 
   14849 
   14850 case "$ol_with_threads$host" in
   14851  auto*-*-solaris2.[0-6])
   14852         ol_with_threads=no
   14853     ;;
   14854 esac
   14855 
   14856 
   14857 ol_aix_threads=no
   14858 case "$host" in
   14859 *-*-aix*) 	if test -z "$CC" ; then
   14860 		case "$ol_with_threads" in
   14861 		auto | yes |  posix) ol_aix_threads=yes ;;
   14862 		esac
   14863 	fi
   14864 ;;
   14865 esac
   14866 
   14867 if test $ol_aix_threads = yes ; then
   14868 	if test -z "${CC}" ; then
   14869 		for ac_prog in cc_r xlc_r cc
   14870 do
   14871   # Extract the first word of "$ac_prog", so it can be a program name with args.
   14872 set dummy $ac_prog; ac_word=$2
   14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14874 $as_echo_n "checking for $ac_word... " >&6; }
   14875 if ${ac_cv_prog_CC+:} false; then :
   14876   $as_echo_n "(cached) " >&6
   14877 else
   14878   if test -n "$CC"; then
   14879   ac_cv_prog_CC="$CC" # Let the user override the test.
   14880 else
   14881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14882 for as_dir in $PATH
   14883 do
   14884   IFS=$as_save_IFS
   14885   test -z "$as_dir" && as_dir=.
   14886     for ac_exec_ext in '' $ac_executable_extensions; do
   14887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   14888     ac_cv_prog_CC="$ac_prog"
   14889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14890     break 2
   14891   fi
   14892 done
   14893   done
   14894 IFS=$as_save_IFS
   14895 
   14896 fi
   14897 fi
   14898 CC=$ac_cv_prog_CC
   14899 if test -n "$CC"; then
   14900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   14901 $as_echo "$CC" >&6; }
   14902 else
   14903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14904 $as_echo "no" >&6; }
   14905 fi
   14906 
   14907 
   14908   test -n "$CC" && break
   14909 done
   14910 
   14911 
   14912 		if test "$CC" = cc ; then
   14913 						if test $ol_with_threads != auto ; then
   14914 				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
   14915 			else
   14916 				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
   14917 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
   14918 			fi
   14919 			ol_with_threads=no
   14920   		fi
   14921 	fi
   14922 
   14923 	case ${CC} in cc_r | xlc_r)
   14924 		ol_with_threads=posix
   14925 		ol_cv_pthread_create=yes
   14926 		;;
   14927 	esac
   14928 fi
   14929 
   14930 ol_link_threads=no
   14931 # OpenLDAP --with-yielding_select
   14932 
   14933 # Check whether --with-yielding_select was given.
   14934 if test "${with_yielding_select+set}" = set; then :
   14935   withval=$with_yielding_select;
   14936 	ol_arg=invalid
   14937 	for ol_val in auto yes no manual  ; do
   14938 		if test "$withval" = "$ol_val" ; then
   14939 			ol_arg="$ol_val"
   14940 		fi
   14941 	done
   14942 	if test "$ol_arg" = "invalid" ; then
   14943 		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
   14944 	fi
   14945 	ol_with_yielding_select="$ol_arg"
   14946 
   14947 else
   14948   	ol_with_yielding_select="auto"
   14949 fi
   14950 # end --with-yielding_select
   14951 
   14952 
   14953 case $ol_with_threads in auto | yes | nt)
   14954 
   14955 
   14956 	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
   14957 if test "x$ac_cv_func__beginthread" = xyes; then :
   14958 
   14959 fi
   14960 
   14961 
   14962 	if test $ac_cv_func__beginthread = yes ; then
   14963 
   14964 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
   14965 
   14966 		ol_cv_nt_threads=yes
   14967 	fi
   14968 
   14969 
   14970 	if test "$ol_cv_nt_threads" = yes ; then
   14971 		ol_link_threads=nt
   14972 		ol_with_threads=found
   14973 		ol_with_yielding_select=yes
   14974 
   14975 
   14976 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
   14977 
   14978 
   14979 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
   14980 
   14981 	fi
   14982 
   14983 	if test $ol_with_threads = nt ; then
   14984 		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
   14985 	fi
   14986 	;;
   14987 esac
   14988 
   14989 case $ol_with_threads in auto | yes | posix)
   14990 
   14991 	for ac_header in pthread.h
   14992 do :
   14993   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
   14994 if test "x$ac_cv_header_pthread_h" = xyes; then :
   14995   cat >>confdefs.h <<_ACEOF
   14996 #define HAVE_PTHREAD_H 1
   14997 _ACEOF
   14998 
   14999 fi
   15000 
   15001 done
   15002 
   15003 
   15004 	if test $ac_cv_header_pthread_h = yes ; then
   15005 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
   15006 $as_echo_n "checking POSIX thread version... " >&6; }
   15007 if ${ol_cv_pthread_version+:} false; then :
   15008   $as_echo_n "(cached) " >&6
   15009 else
   15010 
   15011 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15012 /* end confdefs.h.  */
   15013 
   15014 #		include <pthread.h>
   15015 
   15016 int
   15017 main ()
   15018 {
   15019 
   15020 		int i = PTHREAD_CREATE_JOINABLE;
   15021 
   15022   ;
   15023   return 0;
   15024 }
   15025 _ACEOF
   15026 if ac_fn_c_try_compile "$LINENO"; then :
   15027 
   15028 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15029 /* end confdefs.h.  */
   15030 #include <pthread.h>
   15031 
   15032 _ACEOF
   15033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15034   $EGREP "pthread_detach" >/dev/null 2>&1; then :
   15035   ol_cv_pthread_version=10
   15036 else
   15037   ol_cv_pthread_version=8
   15038 fi
   15039 rm -f conftest*
   15040 
   15041 else
   15042 
   15043 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15044 /* end confdefs.h.  */
   15045 
   15046 #		include <pthread.h>
   15047 #		ifdef PTHREAD_CREATE_UNDETACHED
   15048 		draft7
   15049 #		endif
   15050 
   15051 _ACEOF
   15052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15053   $EGREP "draft7" >/dev/null 2>&1; then :
   15054   ol_cv_pthread_version=7
   15055 else
   15056 
   15057 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15058 /* end confdefs.h.  */
   15059 #include <pthread.h>
   15060 
   15061 _ACEOF
   15062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15063   $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
   15064   ol_cv_pthread_version=6
   15065 else
   15066 
   15067 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15068 /* end confdefs.h.  */
   15069 
   15070 #		include <pthread.h>
   15071 #ifdef		PTHREAD_MUTEX_INITIALIZER
   15072 		draft5
   15073 #endif
   15074 
   15075 _ACEOF
   15076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15077   $EGREP "draft5" >/dev/null 2>&1; then :
   15078   ol_cv_pthread_version=5
   15079 else
   15080   ol_cv_pthread_version=4
   15081 fi
   15082 rm -f conftest*
   15083 
   15084 fi
   15085 rm -f conftest*
   15086 
   15087 fi
   15088 rm -f conftest*
   15089 
   15090 fi
   15091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15092 
   15093 fi
   15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
   15095 $as_echo "$ol_cv_pthread_version" >&6; }
   15096 
   15097 
   15098 		if test $ol_cv_pthread_version != 0 ; then
   15099 
   15100 cat >>confdefs.h <<_ACEOF
   15101 #define HAVE_PTHREADS $ol_cv_pthread_version
   15102 _ACEOF
   15103 
   15104 		else
   15105 			as_fn_error $? "unknown pthread version" "$LINENO" 5
   15106 		fi
   15107 
   15108 		# consider threads found
   15109 		ol_with_threads=found
   15110 
   15111 
   15112 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
   15113 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
   15114 if ${ol_cv_header_linux_threads+:} false; then :
   15115   $as_echo_n "(cached) " >&6
   15116 else
   15117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15118 /* end confdefs.h.  */
   15119 #include <pthread.h>
   15120 _ACEOF
   15121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15122   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
   15123   ol_cv_header_linux_threads=yes
   15124 else
   15125   ol_cv_header_linux_threads=no
   15126 fi
   15127 rm -f conftest*
   15128 
   15129 
   15130 fi
   15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
   15132 $as_echo "$ol_cv_header_linux_threads" >&6; }
   15133 	if test $ol_cv_header_linux_threads = yes; then
   15134 
   15135 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
   15136 
   15137 	fi
   15138 
   15139 
   15140 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
   15141 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
   15142 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
   15143   $as_echo_n "(cached) " >&6
   15144 else
   15145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15146 /* end confdefs.h.  */
   15147 #include <pthread.h>
   15148 #ifdef _POSIX_THREAD_IS_GNU_PTH
   15149 	__gnu_pth__;
   15150 #endif
   15151 
   15152 _ACEOF
   15153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15154   $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
   15155   ol_cv_header_gnu_pth_pthread_h=yes
   15156 else
   15157   ol_cv_header_gnu_pth_pthread_h=no
   15158 fi
   15159 rm -f conftest*
   15160 
   15161 
   15162 fi
   15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
   15164 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
   15165 
   15166 
   15167 		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
   15168 			for ac_header in sched.h
   15169 do :
   15170   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
   15171 if test "x$ac_cv_header_sched_h" = xyes; then :
   15172   cat >>confdefs.h <<_ACEOF
   15173 #define HAVE_SCHED_H 1
   15174 _ACEOF
   15175 
   15176 fi
   15177 
   15178 done
   15179 
   15180 		fi
   15181 
   15182 
   15183 				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
   15184 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
   15185 if ${ol_cv_pthread_create+:} false; then :
   15186   $as_echo_n "(cached) " >&6
   15187 else
   15188 
   15189 			if test "$cross_compiling" = yes; then :
   15190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15191 /* end confdefs.h.  */
   15192 
   15193 /* pthread test headers */
   15194 #include <pthread.h>
   15195 #if HAVE_PTHREADS < 7
   15196 #include <errno.h>
   15197 #endif
   15198 #ifndef NULL
   15199 #define NULL (void*)0
   15200 #endif
   15201 
   15202 static void *task(p)
   15203 	void *p;
   15204 {
   15205 	return (void *) (p == NULL);
   15206 }
   15207 
   15208 int
   15209 main ()
   15210 {
   15211 
   15212 	/* pthread test function */
   15213 #ifndef PTHREAD_CREATE_DETACHED
   15214 #define	PTHREAD_CREATE_DETACHED	1
   15215 #endif
   15216 	pthread_t t;
   15217 	int status;
   15218 	int detach = PTHREAD_CREATE_DETACHED;
   15219 
   15220 #if HAVE_PTHREADS > 4
   15221 	/* Final pthreads */
   15222 	pthread_attr_t attr;
   15223 
   15224 	status = pthread_attr_init(&attr);
   15225 	if( status ) return status;
   15226 
   15227 #if HAVE_PTHREADS < 7
   15228 	status = pthread_attr_setdetachstate(&attr, &detach);
   15229 	if( status < 0 ) status = errno;
   15230 #else
   15231 	status = pthread_attr_setdetachstate(&attr, detach);
   15232 #endif
   15233 	if( status ) return status;
   15234 	status = pthread_create( &t, &attr, task, NULL );
   15235 #if HAVE_PTHREADS < 7
   15236 	if( status < 0 ) status = errno;
   15237 #endif
   15238 	if( status ) return status;
   15239 #else
   15240 	/* Draft 4 pthreads */
   15241 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   15242 	if( status ) return errno;
   15243 
   15244 	/* give thread a chance to complete */
   15245 	/* it should remain joinable and hence detachable */
   15246 	sleep( 1 );
   15247 
   15248 	status = pthread_detach( &t );
   15249 	if( status ) return errno;
   15250 #endif
   15251 
   15252 #ifdef HAVE_LINUX_THREADS
   15253 	pthread_kill_other_threads_np();
   15254 #endif
   15255 
   15256 	return 0;
   15257 
   15258   ;
   15259   return 0;
   15260 }
   15261 _ACEOF
   15262 if ac_fn_c_try_link "$LINENO"; then :
   15263   ol_cv_pthread_create=yes
   15264 else
   15265   ol_cv_pthread_create=no
   15266 fi
   15267 rm -f core conftest.err conftest.$ac_objext \
   15268     conftest$ac_exeext conftest.$ac_ext
   15269 else
   15270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15271 /* end confdefs.h.  */
   15272 
   15273 
   15274 /* pthread test headers */
   15275 #include <pthread.h>
   15276 #if HAVE_PTHREADS < 7
   15277 #include <errno.h>
   15278 #endif
   15279 #ifndef NULL
   15280 #define NULL (void*)0
   15281 #endif
   15282 
   15283 static void *task(p)
   15284 	void *p;
   15285 {
   15286 	return (void *) (p == NULL);
   15287 }
   15288 
   15289 
   15290 int main(argc, argv)
   15291 	int argc;
   15292 	char **argv;
   15293 {
   15294 
   15295 	/* pthread test function */
   15296 #ifndef PTHREAD_CREATE_DETACHED
   15297 #define	PTHREAD_CREATE_DETACHED	1
   15298 #endif
   15299 	pthread_t t;
   15300 	int status;
   15301 	int detach = PTHREAD_CREATE_DETACHED;
   15302 
   15303 #if HAVE_PTHREADS > 4
   15304 	/* Final pthreads */
   15305 	pthread_attr_t attr;
   15306 
   15307 	status = pthread_attr_init(&attr);
   15308 	if( status ) return status;
   15309 
   15310 #if HAVE_PTHREADS < 7
   15311 	status = pthread_attr_setdetachstate(&attr, &detach);
   15312 	if( status < 0 ) status = errno;
   15313 #else
   15314 	status = pthread_attr_setdetachstate(&attr, detach);
   15315 #endif
   15316 	if( status ) return status;
   15317 	status = pthread_create( &t, &attr, task, NULL );
   15318 #if HAVE_PTHREADS < 7
   15319 	if( status < 0 ) status = errno;
   15320 #endif
   15321 	if( status ) return status;
   15322 #else
   15323 	/* Draft 4 pthreads */
   15324 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   15325 	if( status ) return errno;
   15326 
   15327 	/* give thread a chance to complete */
   15328 	/* it should remain joinable and hence detachable */
   15329 	sleep( 1 );
   15330 
   15331 	status = pthread_detach( &t );
   15332 	if( status ) return errno;
   15333 #endif
   15334 
   15335 #ifdef HAVE_LINUX_THREADS
   15336 	pthread_kill_other_threads_np();
   15337 #endif
   15338 
   15339 	return 0;
   15340 
   15341 }
   15342 
   15343 _ACEOF
   15344 if ac_fn_c_try_run "$LINENO"; then :
   15345   ol_cv_pthread_create=yes
   15346 else
   15347   ol_cv_pthread_create=no
   15348 fi
   15349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15350   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15351 fi
   15352 
   15353 fi
   15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
   15355 $as_echo "$ol_cv_pthread_create" >&6; }
   15356 
   15357 		if test $ol_cv_pthread_create != no ; then
   15358 			ol_link_threads=posix
   15359 			ol_link_pthreads=""
   15360 		fi
   15361 
   15362 		# Pthread try link: -kthread (ol_cv_pthread_kthread)
   15363 if test "$ol_link_threads" = no ; then
   15364 	# try -kthread
   15365 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
   15366 $as_echo_n "checking for pthread link with -kthread... " >&6; }
   15367 if ${ol_cv_pthread_kthread+:} false; then :
   15368   $as_echo_n "(cached) " >&6
   15369 else
   15370 
   15371 		# save the flags
   15372 		ol_LIBS="$LIBS"
   15373 		LIBS="-kthread $LIBS"
   15374 
   15375 		if test "$cross_compiling" = yes; then :
   15376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15377 /* end confdefs.h.  */
   15378 
   15379 /* pthread test headers */
   15380 #include <pthread.h>
   15381 #if HAVE_PTHREADS < 7
   15382 #include <errno.h>
   15383 #endif
   15384 #ifndef NULL
   15385 #define NULL (void*)0
   15386 #endif
   15387 
   15388 static void *task(p)
   15389 	void *p;
   15390 {
   15391 	return (void *) (p == NULL);
   15392 }
   15393 
   15394 int
   15395 main ()
   15396 {
   15397 
   15398 	/* pthread test function */
   15399 #ifndef PTHREAD_CREATE_DETACHED
   15400 #define	PTHREAD_CREATE_DETACHED	1
   15401 #endif
   15402 	pthread_t t;
   15403 	int status;
   15404 	int detach = PTHREAD_CREATE_DETACHED;
   15405 
   15406 #if HAVE_PTHREADS > 4
   15407 	/* Final pthreads */
   15408 	pthread_attr_t attr;
   15409 
   15410 	status = pthread_attr_init(&attr);
   15411 	if( status ) return status;
   15412 
   15413 #if HAVE_PTHREADS < 7
   15414 	status = pthread_attr_setdetachstate(&attr, &detach);
   15415 	if( status < 0 ) status = errno;
   15416 #else
   15417 	status = pthread_attr_setdetachstate(&attr, detach);
   15418 #endif
   15419 	if( status ) return status;
   15420 	status = pthread_create( &t, &attr, task, NULL );
   15421 #if HAVE_PTHREADS < 7
   15422 	if( status < 0 ) status = errno;
   15423 #endif
   15424 	if( status ) return status;
   15425 #else
   15426 	/* Draft 4 pthreads */
   15427 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   15428 	if( status ) return errno;
   15429 
   15430 	/* give thread a chance to complete */
   15431 	/* it should remain joinable and hence detachable */
   15432 	sleep( 1 );
   15433 
   15434 	status = pthread_detach( &t );
   15435 	if( status ) return errno;
   15436 #endif
   15437 
   15438 #ifdef HAVE_LINUX_THREADS
   15439 	pthread_kill_other_threads_np();
   15440 #endif
   15441 
   15442 	return 0;
   15443 
   15444   ;
   15445   return 0;
   15446 }
   15447 _ACEOF
   15448 if ac_fn_c_try_link "$LINENO"; then :
   15449   ol_cv_pthread_kthread=yes
   15450 else
   15451   ol_cv_pthread_kthread=no
   15452 fi
   15453 rm -f core conftest.err conftest.$ac_objext \
   15454     conftest$ac_exeext conftest.$ac_ext
   15455 else
   15456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15457 /* end confdefs.h.  */
   15458 
   15459 
   15460 /* pthread test headers */
   15461 #include <pthread.h>
   15462 #if HAVE_PTHREADS < 7
   15463 #include <errno.h>
   15464 #endif
   15465 #ifndef NULL
   15466 #define NULL (void*)0
   15467 #endif
   15468 
   15469 static void *task(p)
   15470 	void *p;
   15471 {
   15472 	return (void *) (p == NULL);
   15473 }
   15474 
   15475 
   15476 int main(argc, argv)
   15477 	int argc;
   15478 	char **argv;
   15479 {
   15480 
   15481 	/* pthread test function */
   15482 #ifndef PTHREAD_CREATE_DETACHED
   15483 #define	PTHREAD_CREATE_DETACHED	1
   15484 #endif
   15485 	pthread_t t;
   15486 	int status;
   15487 	int detach = PTHREAD_CREATE_DETACHED;
   15488 
   15489 #if HAVE_PTHREADS > 4
   15490 	/* Final pthreads */
   15491 	pthread_attr_t attr;
   15492 
   15493 	status = pthread_attr_init(&attr);
   15494 	if( status ) return status;
   15495 
   15496 #if HAVE_PTHREADS < 7
   15497 	status = pthread_attr_setdetachstate(&attr, &detach);
   15498 	if( status < 0 ) status = errno;
   15499 #else
   15500 	status = pthread_attr_setdetachstate(&attr, detach);
   15501 #endif
   15502 	if( status ) return status;
   15503 	status = pthread_create( &t, &attr, task, NULL );
   15504 #if HAVE_PTHREADS < 7
   15505 	if( status < 0 ) status = errno;
   15506 #endif
   15507 	if( status ) return status;
   15508 #else
   15509 	/* Draft 4 pthreads */
   15510 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   15511 	if( status ) return errno;
   15512 
   15513 	/* give thread a chance to complete */
   15514 	/* it should remain joinable and hence detachable */
   15515 	sleep( 1 );
   15516 
   15517 	status = pthread_detach( &t );
   15518 	if( status ) return errno;
   15519 #endif
   15520 
   15521 #ifdef HAVE_LINUX_THREADS
   15522 	pthread_kill_other_threads_np();
   15523 #endif
   15524 
   15525 	return 0;
   15526 
   15527 }
   15528 
   15529 _ACEOF
   15530 if ac_fn_c_try_run "$LINENO"; then :
   15531   ol_cv_pthread_kthread=yes
   15532 else
   15533   ol_cv_pthread_kthread=no
   15534 fi
   15535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15536   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15537 fi
   15538 
   15539 
   15540 		# restore the LIBS
   15541 		LIBS="$ol_LIBS"
   15542 
   15543 fi
   15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
   15545 $as_echo "$ol_cv_pthread_kthread" >&6; }
   15546 
   15547 	if test $ol_cv_pthread_kthread = yes ; then
   15548 		ol_link_pthreads="-kthread"
   15549 		ol_link_threads=posix
   15550 	fi
   15551 fi
   15552 
   15553 		# Pthread try link: -pthread (ol_cv_pthread_pthread)
   15554 if test "$ol_link_threads" = no ; then
   15555 	# try -pthread
   15556 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
   15557 $as_echo_n "checking for pthread link with -pthread... " >&6; }
   15558 if ${ol_cv_pthread_pthread+:} false; then :
   15559   $as_echo_n "(cached) " >&6
   15560 else
   15561 
   15562 		# save the flags
   15563 		ol_LIBS="$LIBS"
   15564 		LIBS="-pthread $LIBS"
   15565 
   15566 		if test "$cross_compiling" = yes; then :
   15567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15568 /* end confdefs.h.  */
   15569 
   15570 /* pthread test headers */
   15571 #include <pthread.h>
   15572 #if HAVE_PTHREADS < 7
   15573 #include <errno.h>
   15574 #endif
   15575 #ifndef NULL
   15576 #define NULL (void*)0
   15577 #endif
   15578 
   15579 static void *task(p)
   15580 	void *p;
   15581 {
   15582 	return (void *) (p == NULL);
   15583 }
   15584 
   15585 int
   15586 main ()
   15587 {
   15588 
   15589 	/* pthread test function */
   15590 #ifndef PTHREAD_CREATE_DETACHED
   15591 #define	PTHREAD_CREATE_DETACHED	1
   15592 #endif
   15593 	pthread_t t;
   15594 	int status;
   15595 	int detach = PTHREAD_CREATE_DETACHED;
   15596 
   15597 #if HAVE_PTHREADS > 4
   15598 	/* Final pthreads */
   15599 	pthread_attr_t attr;
   15600 
   15601 	status = pthread_attr_init(&attr);
   15602 	if( status ) return status;
   15603 
   15604 #if HAVE_PTHREADS < 7
   15605 	status = pthread_attr_setdetachstate(&attr, &detach);
   15606 	if( status < 0 ) status = errno;
   15607 #else
   15608 	status = pthread_attr_setdetachstate(&attr, detach);
   15609 #endif
   15610 	if( status ) return status;
   15611 	status = pthread_create( &t, &attr, task, NULL );
   15612 #if HAVE_PTHREADS < 7
   15613 	if( status < 0 ) status = errno;
   15614 #endif
   15615 	if( status ) return status;
   15616 #else
   15617 	/* Draft 4 pthreads */
   15618 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   15619 	if( status ) return errno;
   15620 
   15621 	/* give thread a chance to complete */
   15622 	/* it should remain joinable and hence detachable */
   15623 	sleep( 1 );
   15624 
   15625 	status = pthread_detach( &t );
   15626 	if( status ) return errno;
   15627 #endif
   15628 
   15629 #ifdef HAVE_LINUX_THREADS
   15630 	pthread_kill_other_threads_np();
   15631 #endif
   15632 
   15633 	return 0;
   15634 
   15635   ;
   15636   return 0;
   15637 }
   15638 _ACEOF
   15639 if ac_fn_c_try_link "$LINENO"; then :
   15640   ol_cv_pthread_pthread=yes
   15641 else
   15642   ol_cv_pthread_pthread=no
   15643 fi
   15644 rm -f core conftest.err conftest.$ac_objext \
   15645     conftest$ac_exeext conftest.$ac_ext
   15646 else
   15647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15648 /* end confdefs.h.  */
   15649 
   15650 
   15651 /* pthread test headers */
   15652 #include <pthread.h>
   15653 #if HAVE_PTHREADS < 7
   15654 #include <errno.h>
   15655 #endif
   15656 #ifndef NULL
   15657 #define NULL (void*)0
   15658 #endif
   15659 
   15660 static void *task(p)
   15661 	void *p;
   15662 {
   15663 	return (void *) (p == NULL);
   15664 }
   15665 
   15666 
   15667 int main(argc, argv)
   15668 	int argc;
   15669 	char **argv;
   15670 {
   15671 
   15672 	/* pthread test function */
   15673 #ifndef PTHREAD_CREATE_DETACHED
   15674 #define	PTHREAD_CREATE_DETACHED	1
   15675 #endif
   15676 	pthread_t t;
   15677 	int status;
   15678 	int detach = PTHREAD_CREATE_DETACHED;
   15679 
   15680 #if HAVE_PTHREADS > 4
   15681 	/* Final pthreads */
   15682 	pthread_attr_t attr;
   15683 
   15684 	status = pthread_attr_init(&attr);
   15685 	if( status ) return status;
   15686 
   15687 #if HAVE_PTHREADS < 7
   15688 	status = pthread_attr_setdetachstate(&attr, &detach);
   15689 	if( status < 0 ) status = errno;
   15690 #else
   15691 	status = pthread_attr_setdetachstate(&attr, detach);
   15692 #endif
   15693 	if( status ) return status;
   15694 	status = pthread_create( &t, &attr, task, NULL );
   15695 #if HAVE_PTHREADS < 7
   15696 	if( status < 0 ) status = errno;
   15697 #endif
   15698 	if( status ) return status;
   15699 #else
   15700 	/* Draft 4 pthreads */
   15701 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   15702 	if( status ) return errno;
   15703 
   15704 	/* give thread a chance to complete */
   15705 	/* it should remain joinable and hence detachable */
   15706 	sleep( 1 );
   15707 
   15708 	status = pthread_detach( &t );
   15709 	if( status ) return errno;
   15710 #endif
   15711 
   15712 #ifdef HAVE_LINUX_THREADS
   15713 	pthread_kill_other_threads_np();
   15714 #endif
   15715 
   15716 	return 0;
   15717 
   15718 }
   15719 
   15720 _ACEOF
   15721 if ac_fn_c_try_run "$LINENO"; then :
   15722   ol_cv_pthread_pthread=yes
   15723 else
   15724   ol_cv_pthread_pthread=no
   15725 fi
   15726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15727   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15728 fi
   15729 
   15730 
   15731 		# restore the LIBS
   15732 		LIBS="$ol_LIBS"
   15733 
   15734 fi
   15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
   15736 $as_echo "$ol_cv_pthread_pthread" >&6; }
   15737 
   15738 	if test $ol_cv_pthread_pthread = yes ; then
   15739 		ol_link_pthreads="-pthread"
   15740 		ol_link_threads=posix
   15741 	fi
   15742 fi
   15743 
   15744 		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
   15745 if test "$ol_link_threads" = no ; then
   15746 	# try -pthreads
   15747 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
   15748 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
   15749 if ${ol_cv_pthread_pthreads+:} false; then :
   15750   $as_echo_n "(cached) " >&6
   15751 else
   15752 
   15753 		# save the flags
   15754 		ol_LIBS="$LIBS"
   15755 		LIBS="-pthreads $LIBS"
   15756 
   15757 		if test "$cross_compiling" = yes; then :
   15758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15759 /* end confdefs.h.  */
   15760 
   15761 /* pthread test headers */
   15762 #include <pthread.h>
   15763 #if HAVE_PTHREADS < 7
   15764 #include <errno.h>
   15765 #endif
   15766 #ifndef NULL
   15767 #define NULL (void*)0
   15768 #endif
   15769 
   15770 static void *task(p)
   15771 	void *p;
   15772 {
   15773 	return (void *) (p == NULL);
   15774 }
   15775 
   15776 int
   15777 main ()
   15778 {
   15779 
   15780 	/* pthread test function */
   15781 #ifndef PTHREAD_CREATE_DETACHED
   15782 #define	PTHREAD_CREATE_DETACHED	1
   15783 #endif
   15784 	pthread_t t;
   15785 	int status;
   15786 	int detach = PTHREAD_CREATE_DETACHED;
   15787 
   15788 #if HAVE_PTHREADS > 4
   15789 	/* Final pthreads */
   15790 	pthread_attr_t attr;
   15791 
   15792 	status = pthread_attr_init(&attr);
   15793 	if( status ) return status;
   15794 
   15795 #if HAVE_PTHREADS < 7
   15796 	status = pthread_attr_setdetachstate(&attr, &detach);
   15797 	if( status < 0 ) status = errno;
   15798 #else
   15799 	status = pthread_attr_setdetachstate(&attr, detach);
   15800 #endif
   15801 	if( status ) return status;
   15802 	status = pthread_create( &t, &attr, task, NULL );
   15803 #if HAVE_PTHREADS < 7
   15804 	if( status < 0 ) status = errno;
   15805 #endif
   15806 	if( status ) return status;
   15807 #else
   15808 	/* Draft 4 pthreads */
   15809 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   15810 	if( status ) return errno;
   15811 
   15812 	/* give thread a chance to complete */
   15813 	/* it should remain joinable and hence detachable */
   15814 	sleep( 1 );
   15815 
   15816 	status = pthread_detach( &t );
   15817 	if( status ) return errno;
   15818 #endif
   15819 
   15820 #ifdef HAVE_LINUX_THREADS
   15821 	pthread_kill_other_threads_np();
   15822 #endif
   15823 
   15824 	return 0;
   15825 
   15826   ;
   15827   return 0;
   15828 }
   15829 _ACEOF
   15830 if ac_fn_c_try_link "$LINENO"; then :
   15831   ol_cv_pthread_pthreads=yes
   15832 else
   15833   ol_cv_pthread_pthreads=no
   15834 fi
   15835 rm -f core conftest.err conftest.$ac_objext \
   15836     conftest$ac_exeext conftest.$ac_ext
   15837 else
   15838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15839 /* end confdefs.h.  */
   15840 
   15841 
   15842 /* pthread test headers */
   15843 #include <pthread.h>
   15844 #if HAVE_PTHREADS < 7
   15845 #include <errno.h>
   15846 #endif
   15847 #ifndef NULL
   15848 #define NULL (void*)0
   15849 #endif
   15850 
   15851 static void *task(p)
   15852 	void *p;
   15853 {
   15854 	return (void *) (p == NULL);
   15855 }
   15856 
   15857 
   15858 int main(argc, argv)
   15859 	int argc;
   15860 	char **argv;
   15861 {
   15862 
   15863 	/* pthread test function */
   15864 #ifndef PTHREAD_CREATE_DETACHED
   15865 #define	PTHREAD_CREATE_DETACHED	1
   15866 #endif
   15867 	pthread_t t;
   15868 	int status;
   15869 	int detach = PTHREAD_CREATE_DETACHED;
   15870 
   15871 #if HAVE_PTHREADS > 4
   15872 	/* Final pthreads */
   15873 	pthread_attr_t attr;
   15874 
   15875 	status = pthread_attr_init(&attr);
   15876 	if( status ) return status;
   15877 
   15878 #if HAVE_PTHREADS < 7
   15879 	status = pthread_attr_setdetachstate(&attr, &detach);
   15880 	if( status < 0 ) status = errno;
   15881 #else
   15882 	status = pthread_attr_setdetachstate(&attr, detach);
   15883 #endif
   15884 	if( status ) return status;
   15885 	status = pthread_create( &t, &attr, task, NULL );
   15886 #if HAVE_PTHREADS < 7
   15887 	if( status < 0 ) status = errno;
   15888 #endif
   15889 	if( status ) return status;
   15890 #else
   15891 	/* Draft 4 pthreads */
   15892 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   15893 	if( status ) return errno;
   15894 
   15895 	/* give thread a chance to complete */
   15896 	/* it should remain joinable and hence detachable */
   15897 	sleep( 1 );
   15898 
   15899 	status = pthread_detach( &t );
   15900 	if( status ) return errno;
   15901 #endif
   15902 
   15903 #ifdef HAVE_LINUX_THREADS
   15904 	pthread_kill_other_threads_np();
   15905 #endif
   15906 
   15907 	return 0;
   15908 
   15909 }
   15910 
   15911 _ACEOF
   15912 if ac_fn_c_try_run "$LINENO"; then :
   15913   ol_cv_pthread_pthreads=yes
   15914 else
   15915   ol_cv_pthread_pthreads=no
   15916 fi
   15917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15918   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15919 fi
   15920 
   15921 
   15922 		# restore the LIBS
   15923 		LIBS="$ol_LIBS"
   15924 
   15925 fi
   15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
   15927 $as_echo "$ol_cv_pthread_pthreads" >&6; }
   15928 
   15929 	if test $ol_cv_pthread_pthreads = yes ; then
   15930 		ol_link_pthreads="-pthreads"
   15931 		ol_link_threads=posix
   15932 	fi
   15933 fi
   15934 
   15935 		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
   15936 if test "$ol_link_threads" = no ; then
   15937 	# try -mthreads
   15938 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
   15939 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
   15940 if ${ol_cv_pthread_mthreads+:} false; then :
   15941   $as_echo_n "(cached) " >&6
   15942 else
   15943 
   15944 		# save the flags
   15945 		ol_LIBS="$LIBS"
   15946 		LIBS="-mthreads $LIBS"
   15947 
   15948 		if test "$cross_compiling" = yes; then :
   15949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15950 /* end confdefs.h.  */
   15951 
   15952 /* pthread test headers */
   15953 #include <pthread.h>
   15954 #if HAVE_PTHREADS < 7
   15955 #include <errno.h>
   15956 #endif
   15957 #ifndef NULL
   15958 #define NULL (void*)0
   15959 #endif
   15960 
   15961 static void *task(p)
   15962 	void *p;
   15963 {
   15964 	return (void *) (p == NULL);
   15965 }
   15966 
   15967 int
   15968 main ()
   15969 {
   15970 
   15971 	/* pthread test function */
   15972 #ifndef PTHREAD_CREATE_DETACHED
   15973 #define	PTHREAD_CREATE_DETACHED	1
   15974 #endif
   15975 	pthread_t t;
   15976 	int status;
   15977 	int detach = PTHREAD_CREATE_DETACHED;
   15978 
   15979 #if HAVE_PTHREADS > 4
   15980 	/* Final pthreads */
   15981 	pthread_attr_t attr;
   15982 
   15983 	status = pthread_attr_init(&attr);
   15984 	if( status ) return status;
   15985 
   15986 #if HAVE_PTHREADS < 7
   15987 	status = pthread_attr_setdetachstate(&attr, &detach);
   15988 	if( status < 0 ) status = errno;
   15989 #else
   15990 	status = pthread_attr_setdetachstate(&attr, detach);
   15991 #endif
   15992 	if( status ) return status;
   15993 	status = pthread_create( &t, &attr, task, NULL );
   15994 #if HAVE_PTHREADS < 7
   15995 	if( status < 0 ) status = errno;
   15996 #endif
   15997 	if( status ) return status;
   15998 #else
   15999 	/* Draft 4 pthreads */
   16000 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   16001 	if( status ) return errno;
   16002 
   16003 	/* give thread a chance to complete */
   16004 	/* it should remain joinable and hence detachable */
   16005 	sleep( 1 );
   16006 
   16007 	status = pthread_detach( &t );
   16008 	if( status ) return errno;
   16009 #endif
   16010 
   16011 #ifdef HAVE_LINUX_THREADS
   16012 	pthread_kill_other_threads_np();
   16013 #endif
   16014 
   16015 	return 0;
   16016 
   16017   ;
   16018   return 0;
   16019 }
   16020 _ACEOF
   16021 if ac_fn_c_try_link "$LINENO"; then :
   16022   ol_cv_pthread_mthreads=yes
   16023 else
   16024   ol_cv_pthread_mthreads=no
   16025 fi
   16026 rm -f core conftest.err conftest.$ac_objext \
   16027     conftest$ac_exeext conftest.$ac_ext
   16028 else
   16029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16030 /* end confdefs.h.  */
   16031 
   16032 
   16033 /* pthread test headers */
   16034 #include <pthread.h>
   16035 #if HAVE_PTHREADS < 7
   16036 #include <errno.h>
   16037 #endif
   16038 #ifndef NULL
   16039 #define NULL (void*)0
   16040 #endif
   16041 
   16042 static void *task(p)
   16043 	void *p;
   16044 {
   16045 	return (void *) (p == NULL);
   16046 }
   16047 
   16048 
   16049 int main(argc, argv)
   16050 	int argc;
   16051 	char **argv;
   16052 {
   16053 
   16054 	/* pthread test function */
   16055 #ifndef PTHREAD_CREATE_DETACHED
   16056 #define	PTHREAD_CREATE_DETACHED	1
   16057 #endif
   16058 	pthread_t t;
   16059 	int status;
   16060 	int detach = PTHREAD_CREATE_DETACHED;
   16061 
   16062 #if HAVE_PTHREADS > 4
   16063 	/* Final pthreads */
   16064 	pthread_attr_t attr;
   16065 
   16066 	status = pthread_attr_init(&attr);
   16067 	if( status ) return status;
   16068 
   16069 #if HAVE_PTHREADS < 7
   16070 	status = pthread_attr_setdetachstate(&attr, &detach);
   16071 	if( status < 0 ) status = errno;
   16072 #else
   16073 	status = pthread_attr_setdetachstate(&attr, detach);
   16074 #endif
   16075 	if( status ) return status;
   16076 	status = pthread_create( &t, &attr, task, NULL );
   16077 #if HAVE_PTHREADS < 7
   16078 	if( status < 0 ) status = errno;
   16079 #endif
   16080 	if( status ) return status;
   16081 #else
   16082 	/* Draft 4 pthreads */
   16083 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   16084 	if( status ) return errno;
   16085 
   16086 	/* give thread a chance to complete */
   16087 	/* it should remain joinable and hence detachable */
   16088 	sleep( 1 );
   16089 
   16090 	status = pthread_detach( &t );
   16091 	if( status ) return errno;
   16092 #endif
   16093 
   16094 #ifdef HAVE_LINUX_THREADS
   16095 	pthread_kill_other_threads_np();
   16096 #endif
   16097 
   16098 	return 0;
   16099 
   16100 }
   16101 
   16102 _ACEOF
   16103 if ac_fn_c_try_run "$LINENO"; then :
   16104   ol_cv_pthread_mthreads=yes
   16105 else
   16106   ol_cv_pthread_mthreads=no
   16107 fi
   16108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16109   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16110 fi
   16111 
   16112 
   16113 		# restore the LIBS
   16114 		LIBS="$ol_LIBS"
   16115 
   16116 fi
   16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
   16118 $as_echo "$ol_cv_pthread_mthreads" >&6; }
   16119 
   16120 	if test $ol_cv_pthread_mthreads = yes ; then
   16121 		ol_link_pthreads="-mthreads"
   16122 		ol_link_threads=posix
   16123 	fi
   16124 fi
   16125 
   16126 		# Pthread try link: -thread (ol_cv_pthread_thread)
   16127 if test "$ol_link_threads" = no ; then
   16128 	# try -thread
   16129 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
   16130 $as_echo_n "checking for pthread link with -thread... " >&6; }
   16131 if ${ol_cv_pthread_thread+:} false; then :
   16132   $as_echo_n "(cached) " >&6
   16133 else
   16134 
   16135 		# save the flags
   16136 		ol_LIBS="$LIBS"
   16137 		LIBS="-thread $LIBS"
   16138 
   16139 		if test "$cross_compiling" = yes; then :
   16140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16141 /* end confdefs.h.  */
   16142 
   16143 /* pthread test headers */
   16144 #include <pthread.h>
   16145 #if HAVE_PTHREADS < 7
   16146 #include <errno.h>
   16147 #endif
   16148 #ifndef NULL
   16149 #define NULL (void*)0
   16150 #endif
   16151 
   16152 static void *task(p)
   16153 	void *p;
   16154 {
   16155 	return (void *) (p == NULL);
   16156 }
   16157 
   16158 int
   16159 main ()
   16160 {
   16161 
   16162 	/* pthread test function */
   16163 #ifndef PTHREAD_CREATE_DETACHED
   16164 #define	PTHREAD_CREATE_DETACHED	1
   16165 #endif
   16166 	pthread_t t;
   16167 	int status;
   16168 	int detach = PTHREAD_CREATE_DETACHED;
   16169 
   16170 #if HAVE_PTHREADS > 4
   16171 	/* Final pthreads */
   16172 	pthread_attr_t attr;
   16173 
   16174 	status = pthread_attr_init(&attr);
   16175 	if( status ) return status;
   16176 
   16177 #if HAVE_PTHREADS < 7
   16178 	status = pthread_attr_setdetachstate(&attr, &detach);
   16179 	if( status < 0 ) status = errno;
   16180 #else
   16181 	status = pthread_attr_setdetachstate(&attr, detach);
   16182 #endif
   16183 	if( status ) return status;
   16184 	status = pthread_create( &t, &attr, task, NULL );
   16185 #if HAVE_PTHREADS < 7
   16186 	if( status < 0 ) status = errno;
   16187 #endif
   16188 	if( status ) return status;
   16189 #else
   16190 	/* Draft 4 pthreads */
   16191 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   16192 	if( status ) return errno;
   16193 
   16194 	/* give thread a chance to complete */
   16195 	/* it should remain joinable and hence detachable */
   16196 	sleep( 1 );
   16197 
   16198 	status = pthread_detach( &t );
   16199 	if( status ) return errno;
   16200 #endif
   16201 
   16202 #ifdef HAVE_LINUX_THREADS
   16203 	pthread_kill_other_threads_np();
   16204 #endif
   16205 
   16206 	return 0;
   16207 
   16208   ;
   16209   return 0;
   16210 }
   16211 _ACEOF
   16212 if ac_fn_c_try_link "$LINENO"; then :
   16213   ol_cv_pthread_thread=yes
   16214 else
   16215   ol_cv_pthread_thread=no
   16216 fi
   16217 rm -f core conftest.err conftest.$ac_objext \
   16218     conftest$ac_exeext conftest.$ac_ext
   16219 else
   16220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16221 /* end confdefs.h.  */
   16222 
   16223 
   16224 /* pthread test headers */
   16225 #include <pthread.h>
   16226 #if HAVE_PTHREADS < 7
   16227 #include <errno.h>
   16228 #endif
   16229 #ifndef NULL
   16230 #define NULL (void*)0
   16231 #endif
   16232 
   16233 static void *task(p)
   16234 	void *p;
   16235 {
   16236 	return (void *) (p == NULL);
   16237 }
   16238 
   16239 
   16240 int main(argc, argv)
   16241 	int argc;
   16242 	char **argv;
   16243 {
   16244 
   16245 	/* pthread test function */
   16246 #ifndef PTHREAD_CREATE_DETACHED
   16247 #define	PTHREAD_CREATE_DETACHED	1
   16248 #endif
   16249 	pthread_t t;
   16250 	int status;
   16251 	int detach = PTHREAD_CREATE_DETACHED;
   16252 
   16253 #if HAVE_PTHREADS > 4
   16254 	/* Final pthreads */
   16255 	pthread_attr_t attr;
   16256 
   16257 	status = pthread_attr_init(&attr);
   16258 	if( status ) return status;
   16259 
   16260 #if HAVE_PTHREADS < 7
   16261 	status = pthread_attr_setdetachstate(&attr, &detach);
   16262 	if( status < 0 ) status = errno;
   16263 #else
   16264 	status = pthread_attr_setdetachstate(&attr, detach);
   16265 #endif
   16266 	if( status ) return status;
   16267 	status = pthread_create( &t, &attr, task, NULL );
   16268 #if HAVE_PTHREADS < 7
   16269 	if( status < 0 ) status = errno;
   16270 #endif
   16271 	if( status ) return status;
   16272 #else
   16273 	/* Draft 4 pthreads */
   16274 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   16275 	if( status ) return errno;
   16276 
   16277 	/* give thread a chance to complete */
   16278 	/* it should remain joinable and hence detachable */
   16279 	sleep( 1 );
   16280 
   16281 	status = pthread_detach( &t );
   16282 	if( status ) return errno;
   16283 #endif
   16284 
   16285 #ifdef HAVE_LINUX_THREADS
   16286 	pthread_kill_other_threads_np();
   16287 #endif
   16288 
   16289 	return 0;
   16290 
   16291 }
   16292 
   16293 _ACEOF
   16294 if ac_fn_c_try_run "$LINENO"; then :
   16295   ol_cv_pthread_thread=yes
   16296 else
   16297   ol_cv_pthread_thread=no
   16298 fi
   16299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16300   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16301 fi
   16302 
   16303 
   16304 		# restore the LIBS
   16305 		LIBS="$ol_LIBS"
   16306 
   16307 fi
   16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
   16309 $as_echo "$ol_cv_pthread_thread" >&6; }
   16310 
   16311 	if test $ol_cv_pthread_thread = yes ; then
   16312 		ol_link_pthreads="-thread"
   16313 		ol_link_threads=posix
   16314 	fi
   16315 fi
   16316 
   16317 
   16318 		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
   16319 if test "$ol_link_threads" = no ; then
   16320 	# try -lpthread -lmach -lexc -lc_r
   16321 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
   16322 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
   16323 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
   16324   $as_echo_n "(cached) " >&6
   16325 else
   16326 
   16327 		# save the flags
   16328 		ol_LIBS="$LIBS"
   16329 		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
   16330 
   16331 		if test "$cross_compiling" = yes; then :
   16332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16333 /* end confdefs.h.  */
   16334 
   16335 /* pthread test headers */
   16336 #include <pthread.h>
   16337 #if HAVE_PTHREADS < 7
   16338 #include <errno.h>
   16339 #endif
   16340 #ifndef NULL
   16341 #define NULL (void*)0
   16342 #endif
   16343 
   16344 static void *task(p)
   16345 	void *p;
   16346 {
   16347 	return (void *) (p == NULL);
   16348 }
   16349 
   16350 int
   16351 main ()
   16352 {
   16353 
   16354 	/* pthread test function */
   16355 #ifndef PTHREAD_CREATE_DETACHED
   16356 #define	PTHREAD_CREATE_DETACHED	1
   16357 #endif
   16358 	pthread_t t;
   16359 	int status;
   16360 	int detach = PTHREAD_CREATE_DETACHED;
   16361 
   16362 #if HAVE_PTHREADS > 4
   16363 	/* Final pthreads */
   16364 	pthread_attr_t attr;
   16365 
   16366 	status = pthread_attr_init(&attr);
   16367 	if( status ) return status;
   16368 
   16369 #if HAVE_PTHREADS < 7
   16370 	status = pthread_attr_setdetachstate(&attr, &detach);
   16371 	if( status < 0 ) status = errno;
   16372 #else
   16373 	status = pthread_attr_setdetachstate(&attr, detach);
   16374 #endif
   16375 	if( status ) return status;
   16376 	status = pthread_create( &t, &attr, task, NULL );
   16377 #if HAVE_PTHREADS < 7
   16378 	if( status < 0 ) status = errno;
   16379 #endif
   16380 	if( status ) return status;
   16381 #else
   16382 	/* Draft 4 pthreads */
   16383 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   16384 	if( status ) return errno;
   16385 
   16386 	/* give thread a chance to complete */
   16387 	/* it should remain joinable and hence detachable */
   16388 	sleep( 1 );
   16389 
   16390 	status = pthread_detach( &t );
   16391 	if( status ) return errno;
   16392 #endif
   16393 
   16394 #ifdef HAVE_LINUX_THREADS
   16395 	pthread_kill_other_threads_np();
   16396 #endif
   16397 
   16398 	return 0;
   16399 
   16400   ;
   16401   return 0;
   16402 }
   16403 _ACEOF
   16404 if ac_fn_c_try_link "$LINENO"; then :
   16405   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
   16406 else
   16407   ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
   16408 fi
   16409 rm -f core conftest.err conftest.$ac_objext \
   16410     conftest$ac_exeext conftest.$ac_ext
   16411 else
   16412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16413 /* end confdefs.h.  */
   16414 
   16415 
   16416 /* pthread test headers */
   16417 #include <pthread.h>
   16418 #if HAVE_PTHREADS < 7
   16419 #include <errno.h>
   16420 #endif
   16421 #ifndef NULL
   16422 #define NULL (void*)0
   16423 #endif
   16424 
   16425 static void *task(p)
   16426 	void *p;
   16427 {
   16428 	return (void *) (p == NULL);
   16429 }
   16430 
   16431 
   16432 int main(argc, argv)
   16433 	int argc;
   16434 	char **argv;
   16435 {
   16436 
   16437 	/* pthread test function */
   16438 #ifndef PTHREAD_CREATE_DETACHED
   16439 #define	PTHREAD_CREATE_DETACHED	1
   16440 #endif
   16441 	pthread_t t;
   16442 	int status;
   16443 	int detach = PTHREAD_CREATE_DETACHED;
   16444 
   16445 #if HAVE_PTHREADS > 4
   16446 	/* Final pthreads */
   16447 	pthread_attr_t attr;
   16448 
   16449 	status = pthread_attr_init(&attr);
   16450 	if( status ) return status;
   16451 
   16452 #if HAVE_PTHREADS < 7
   16453 	status = pthread_attr_setdetachstate(&attr, &detach);
   16454 	if( status < 0 ) status = errno;
   16455 #else
   16456 	status = pthread_attr_setdetachstate(&attr, detach);
   16457 #endif
   16458 	if( status ) return status;
   16459 	status = pthread_create( &t, &attr, task, NULL );
   16460 #if HAVE_PTHREADS < 7
   16461 	if( status < 0 ) status = errno;
   16462 #endif
   16463 	if( status ) return status;
   16464 #else
   16465 	/* Draft 4 pthreads */
   16466 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   16467 	if( status ) return errno;
   16468 
   16469 	/* give thread a chance to complete */
   16470 	/* it should remain joinable and hence detachable */
   16471 	sleep( 1 );
   16472 
   16473 	status = pthread_detach( &t );
   16474 	if( status ) return errno;
   16475 #endif
   16476 
   16477 #ifdef HAVE_LINUX_THREADS
   16478 	pthread_kill_other_threads_np();
   16479 #endif
   16480 
   16481 	return 0;
   16482 
   16483 }
   16484 
   16485 _ACEOF
   16486 if ac_fn_c_try_run "$LINENO"; then :
   16487   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
   16488 else
   16489   ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
   16490 fi
   16491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16492   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16493 fi
   16494 
   16495 
   16496 		# restore the LIBS
   16497 		LIBS="$ol_LIBS"
   16498 
   16499 fi
   16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
   16501 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
   16502 
   16503 	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
   16504 		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
   16505 		ol_link_threads=posix
   16506 	fi
   16507 fi
   16508 
   16509 		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
   16510 if test "$ol_link_threads" = no ; then
   16511 	# try -lpthread -lmach -lexc
   16512 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
   16513 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
   16514 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
   16515   $as_echo_n "(cached) " >&6
   16516 else
   16517 
   16518 		# save the flags
   16519 		ol_LIBS="$LIBS"
   16520 		LIBS="-lpthread -lmach -lexc $LIBS"
   16521 
   16522 		if test "$cross_compiling" = yes; then :
   16523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16524 /* end confdefs.h.  */
   16525 
   16526 /* pthread test headers */
   16527 #include <pthread.h>
   16528 #if HAVE_PTHREADS < 7
   16529 #include <errno.h>
   16530 #endif
   16531 #ifndef NULL
   16532 #define NULL (void*)0
   16533 #endif
   16534 
   16535 static void *task(p)
   16536 	void *p;
   16537 {
   16538 	return (void *) (p == NULL);
   16539 }
   16540 
   16541 int
   16542 main ()
   16543 {
   16544 
   16545 	/* pthread test function */
   16546 #ifndef PTHREAD_CREATE_DETACHED
   16547 #define	PTHREAD_CREATE_DETACHED	1
   16548 #endif
   16549 	pthread_t t;
   16550 	int status;
   16551 	int detach = PTHREAD_CREATE_DETACHED;
   16552 
   16553 #if HAVE_PTHREADS > 4
   16554 	/* Final pthreads */
   16555 	pthread_attr_t attr;
   16556 
   16557 	status = pthread_attr_init(&attr);
   16558 	if( status ) return status;
   16559 
   16560 #if HAVE_PTHREADS < 7
   16561 	status = pthread_attr_setdetachstate(&attr, &detach);
   16562 	if( status < 0 ) status = errno;
   16563 #else
   16564 	status = pthread_attr_setdetachstate(&attr, detach);
   16565 #endif
   16566 	if( status ) return status;
   16567 	status = pthread_create( &t, &attr, task, NULL );
   16568 #if HAVE_PTHREADS < 7
   16569 	if( status < 0 ) status = errno;
   16570 #endif
   16571 	if( status ) return status;
   16572 #else
   16573 	/* Draft 4 pthreads */
   16574 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   16575 	if( status ) return errno;
   16576 
   16577 	/* give thread a chance to complete */
   16578 	/* it should remain joinable and hence detachable */
   16579 	sleep( 1 );
   16580 
   16581 	status = pthread_detach( &t );
   16582 	if( status ) return errno;
   16583 #endif
   16584 
   16585 #ifdef HAVE_LINUX_THREADS
   16586 	pthread_kill_other_threads_np();
   16587 #endif
   16588 
   16589 	return 0;
   16590 
   16591   ;
   16592   return 0;
   16593 }
   16594 _ACEOF
   16595 if ac_fn_c_try_link "$LINENO"; then :
   16596   ol_cv_pthread_lpthread_lmach_lexc=yes
   16597 else
   16598   ol_cv_pthread_lpthread_lmach_lexc=no
   16599 fi
   16600 rm -f core conftest.err conftest.$ac_objext \
   16601     conftest$ac_exeext conftest.$ac_ext
   16602 else
   16603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16604 /* end confdefs.h.  */
   16605 
   16606 
   16607 /* pthread test headers */
   16608 #include <pthread.h>
   16609 #if HAVE_PTHREADS < 7
   16610 #include <errno.h>
   16611 #endif
   16612 #ifndef NULL
   16613 #define NULL (void*)0
   16614 #endif
   16615 
   16616 static void *task(p)
   16617 	void *p;
   16618 {
   16619 	return (void *) (p == NULL);
   16620 }
   16621 
   16622 
   16623 int main(argc, argv)
   16624 	int argc;
   16625 	char **argv;
   16626 {
   16627 
   16628 	/* pthread test function */
   16629 #ifndef PTHREAD_CREATE_DETACHED
   16630 #define	PTHREAD_CREATE_DETACHED	1
   16631 #endif
   16632 	pthread_t t;
   16633 	int status;
   16634 	int detach = PTHREAD_CREATE_DETACHED;
   16635 
   16636 #if HAVE_PTHREADS > 4
   16637 	/* Final pthreads */
   16638 	pthread_attr_t attr;
   16639 
   16640 	status = pthread_attr_init(&attr);
   16641 	if( status ) return status;
   16642 
   16643 #if HAVE_PTHREADS < 7
   16644 	status = pthread_attr_setdetachstate(&attr, &detach);
   16645 	if( status < 0 ) status = errno;
   16646 #else
   16647 	status = pthread_attr_setdetachstate(&attr, detach);
   16648 #endif
   16649 	if( status ) return status;
   16650 	status = pthread_create( &t, &attr, task, NULL );
   16651 #if HAVE_PTHREADS < 7
   16652 	if( status < 0 ) status = errno;
   16653 #endif
   16654 	if( status ) return status;
   16655 #else
   16656 	/* Draft 4 pthreads */
   16657 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   16658 	if( status ) return errno;
   16659 
   16660 	/* give thread a chance to complete */
   16661 	/* it should remain joinable and hence detachable */
   16662 	sleep( 1 );
   16663 
   16664 	status = pthread_detach( &t );
   16665 	if( status ) return errno;
   16666 #endif
   16667 
   16668 #ifdef HAVE_LINUX_THREADS
   16669 	pthread_kill_other_threads_np();
   16670 #endif
   16671 
   16672 	return 0;
   16673 
   16674 }
   16675 
   16676 _ACEOF
   16677 if ac_fn_c_try_run "$LINENO"; then :
   16678   ol_cv_pthread_lpthread_lmach_lexc=yes
   16679 else
   16680   ol_cv_pthread_lpthread_lmach_lexc=no
   16681 fi
   16682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16683   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16684 fi
   16685 
   16686 
   16687 		# restore the LIBS
   16688 		LIBS="$ol_LIBS"
   16689 
   16690 fi
   16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
   16692 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
   16693 
   16694 	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
   16695 		ol_link_pthreads="-lpthread -lmach -lexc"
   16696 		ol_link_threads=posix
   16697 	fi
   16698 fi
   16699 
   16700 
   16701 		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
   16702 if test "$ol_link_threads" = no ; then
   16703 	# try -lpthread -Wl,-woff,85
   16704 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
   16705 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
   16706 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
   16707   $as_echo_n "(cached) " >&6
   16708 else
   16709 
   16710 		# save the flags
   16711 		ol_LIBS="$LIBS"
   16712 		LIBS="-lpthread -Wl,-woff,85 $LIBS"
   16713 
   16714 		if test "$cross_compiling" = yes; then :
   16715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16716 /* end confdefs.h.  */
   16717 
   16718 /* pthread test headers */
   16719 #include <pthread.h>
   16720 #if HAVE_PTHREADS < 7
   16721 #include <errno.h>
   16722 #endif
   16723 #ifndef NULL
   16724 #define NULL (void*)0
   16725 #endif
   16726 
   16727 static void *task(p)
   16728 	void *p;
   16729 {
   16730 	return (void *) (p == NULL);
   16731 }
   16732 
   16733 int
   16734 main ()
   16735 {
   16736 
   16737 	/* pthread test function */
   16738 #ifndef PTHREAD_CREATE_DETACHED
   16739 #define	PTHREAD_CREATE_DETACHED	1
   16740 #endif
   16741 	pthread_t t;
   16742 	int status;
   16743 	int detach = PTHREAD_CREATE_DETACHED;
   16744 
   16745 #if HAVE_PTHREADS > 4
   16746 	/* Final pthreads */
   16747 	pthread_attr_t attr;
   16748 
   16749 	status = pthread_attr_init(&attr);
   16750 	if( status ) return status;
   16751 
   16752 #if HAVE_PTHREADS < 7
   16753 	status = pthread_attr_setdetachstate(&attr, &detach);
   16754 	if( status < 0 ) status = errno;
   16755 #else
   16756 	status = pthread_attr_setdetachstate(&attr, detach);
   16757 #endif
   16758 	if( status ) return status;
   16759 	status = pthread_create( &t, &attr, task, NULL );
   16760 #if HAVE_PTHREADS < 7
   16761 	if( status < 0 ) status = errno;
   16762 #endif
   16763 	if( status ) return status;
   16764 #else
   16765 	/* Draft 4 pthreads */
   16766 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   16767 	if( status ) return errno;
   16768 
   16769 	/* give thread a chance to complete */
   16770 	/* it should remain joinable and hence detachable */
   16771 	sleep( 1 );
   16772 
   16773 	status = pthread_detach( &t );
   16774 	if( status ) return errno;
   16775 #endif
   16776 
   16777 #ifdef HAVE_LINUX_THREADS
   16778 	pthread_kill_other_threads_np();
   16779 #endif
   16780 
   16781 	return 0;
   16782 
   16783   ;
   16784   return 0;
   16785 }
   16786 _ACEOF
   16787 if ac_fn_c_try_link "$LINENO"; then :
   16788   ol_cv_pthread_lib_lpthread_woff=yes
   16789 else
   16790   ol_cv_pthread_lib_lpthread_woff=no
   16791 fi
   16792 rm -f core conftest.err conftest.$ac_objext \
   16793     conftest$ac_exeext conftest.$ac_ext
   16794 else
   16795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16796 /* end confdefs.h.  */
   16797 
   16798 
   16799 /* pthread test headers */
   16800 #include <pthread.h>
   16801 #if HAVE_PTHREADS < 7
   16802 #include <errno.h>
   16803 #endif
   16804 #ifndef NULL
   16805 #define NULL (void*)0
   16806 #endif
   16807 
   16808 static void *task(p)
   16809 	void *p;
   16810 {
   16811 	return (void *) (p == NULL);
   16812 }
   16813 
   16814 
   16815 int main(argc, argv)
   16816 	int argc;
   16817 	char **argv;
   16818 {
   16819 
   16820 	/* pthread test function */
   16821 #ifndef PTHREAD_CREATE_DETACHED
   16822 #define	PTHREAD_CREATE_DETACHED	1
   16823 #endif
   16824 	pthread_t t;
   16825 	int status;
   16826 	int detach = PTHREAD_CREATE_DETACHED;
   16827 
   16828 #if HAVE_PTHREADS > 4
   16829 	/* Final pthreads */
   16830 	pthread_attr_t attr;
   16831 
   16832 	status = pthread_attr_init(&attr);
   16833 	if( status ) return status;
   16834 
   16835 #if HAVE_PTHREADS < 7
   16836 	status = pthread_attr_setdetachstate(&attr, &detach);
   16837 	if( status < 0 ) status = errno;
   16838 #else
   16839 	status = pthread_attr_setdetachstate(&attr, detach);
   16840 #endif
   16841 	if( status ) return status;
   16842 	status = pthread_create( &t, &attr, task, NULL );
   16843 #if HAVE_PTHREADS < 7
   16844 	if( status < 0 ) status = errno;
   16845 #endif
   16846 	if( status ) return status;
   16847 #else
   16848 	/* Draft 4 pthreads */
   16849 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   16850 	if( status ) return errno;
   16851 
   16852 	/* give thread a chance to complete */
   16853 	/* it should remain joinable and hence detachable */
   16854 	sleep( 1 );
   16855 
   16856 	status = pthread_detach( &t );
   16857 	if( status ) return errno;
   16858 #endif
   16859 
   16860 #ifdef HAVE_LINUX_THREADS
   16861 	pthread_kill_other_threads_np();
   16862 #endif
   16863 
   16864 	return 0;
   16865 
   16866 }
   16867 
   16868 _ACEOF
   16869 if ac_fn_c_try_run "$LINENO"; then :
   16870   ol_cv_pthread_lib_lpthread_woff=yes
   16871 else
   16872   ol_cv_pthread_lib_lpthread_woff=no
   16873 fi
   16874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16875   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16876 fi
   16877 
   16878 
   16879 		# restore the LIBS
   16880 		LIBS="$ol_LIBS"
   16881 
   16882 fi
   16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
   16884 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
   16885 
   16886 	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
   16887 		ol_link_pthreads="-lpthread -Wl,-woff,85"
   16888 		ol_link_threads=posix
   16889 	fi
   16890 fi
   16891 
   16892 
   16893 		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
   16894 if test "$ol_link_threads" = no ; then
   16895 	# try -lpthread
   16896 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
   16897 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
   16898 if ${ol_cv_pthread_lpthread+:} false; then :
   16899   $as_echo_n "(cached) " >&6
   16900 else
   16901 
   16902 		# save the flags
   16903 		ol_LIBS="$LIBS"
   16904 		LIBS="-lpthread $LIBS"
   16905 
   16906 		if test "$cross_compiling" = yes; then :
   16907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16908 /* end confdefs.h.  */
   16909 
   16910 /* pthread test headers */
   16911 #include <pthread.h>
   16912 #if HAVE_PTHREADS < 7
   16913 #include <errno.h>
   16914 #endif
   16915 #ifndef NULL
   16916 #define NULL (void*)0
   16917 #endif
   16918 
   16919 static void *task(p)
   16920 	void *p;
   16921 {
   16922 	return (void *) (p == NULL);
   16923 }
   16924 
   16925 int
   16926 main ()
   16927 {
   16928 
   16929 	/* pthread test function */
   16930 #ifndef PTHREAD_CREATE_DETACHED
   16931 #define	PTHREAD_CREATE_DETACHED	1
   16932 #endif
   16933 	pthread_t t;
   16934 	int status;
   16935 	int detach = PTHREAD_CREATE_DETACHED;
   16936 
   16937 #if HAVE_PTHREADS > 4
   16938 	/* Final pthreads */
   16939 	pthread_attr_t attr;
   16940 
   16941 	status = pthread_attr_init(&attr);
   16942 	if( status ) return status;
   16943 
   16944 #if HAVE_PTHREADS < 7
   16945 	status = pthread_attr_setdetachstate(&attr, &detach);
   16946 	if( status < 0 ) status = errno;
   16947 #else
   16948 	status = pthread_attr_setdetachstate(&attr, detach);
   16949 #endif
   16950 	if( status ) return status;
   16951 	status = pthread_create( &t, &attr, task, NULL );
   16952 #if HAVE_PTHREADS < 7
   16953 	if( status < 0 ) status = errno;
   16954 #endif
   16955 	if( status ) return status;
   16956 #else
   16957 	/* Draft 4 pthreads */
   16958 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   16959 	if( status ) return errno;
   16960 
   16961 	/* give thread a chance to complete */
   16962 	/* it should remain joinable and hence detachable */
   16963 	sleep( 1 );
   16964 
   16965 	status = pthread_detach( &t );
   16966 	if( status ) return errno;
   16967 #endif
   16968 
   16969 #ifdef HAVE_LINUX_THREADS
   16970 	pthread_kill_other_threads_np();
   16971 #endif
   16972 
   16973 	return 0;
   16974 
   16975   ;
   16976   return 0;
   16977 }
   16978 _ACEOF
   16979 if ac_fn_c_try_link "$LINENO"; then :
   16980   ol_cv_pthread_lpthread=yes
   16981 else
   16982   ol_cv_pthread_lpthread=no
   16983 fi
   16984 rm -f core conftest.err conftest.$ac_objext \
   16985     conftest$ac_exeext conftest.$ac_ext
   16986 else
   16987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16988 /* end confdefs.h.  */
   16989 
   16990 
   16991 /* pthread test headers */
   16992 #include <pthread.h>
   16993 #if HAVE_PTHREADS < 7
   16994 #include <errno.h>
   16995 #endif
   16996 #ifndef NULL
   16997 #define NULL (void*)0
   16998 #endif
   16999 
   17000 static void *task(p)
   17001 	void *p;
   17002 {
   17003 	return (void *) (p == NULL);
   17004 }
   17005 
   17006 
   17007 int main(argc, argv)
   17008 	int argc;
   17009 	char **argv;
   17010 {
   17011 
   17012 	/* pthread test function */
   17013 #ifndef PTHREAD_CREATE_DETACHED
   17014 #define	PTHREAD_CREATE_DETACHED	1
   17015 #endif
   17016 	pthread_t t;
   17017 	int status;
   17018 	int detach = PTHREAD_CREATE_DETACHED;
   17019 
   17020 #if HAVE_PTHREADS > 4
   17021 	/* Final pthreads */
   17022 	pthread_attr_t attr;
   17023 
   17024 	status = pthread_attr_init(&attr);
   17025 	if( status ) return status;
   17026 
   17027 #if HAVE_PTHREADS < 7
   17028 	status = pthread_attr_setdetachstate(&attr, &detach);
   17029 	if( status < 0 ) status = errno;
   17030 #else
   17031 	status = pthread_attr_setdetachstate(&attr, detach);
   17032 #endif
   17033 	if( status ) return status;
   17034 	status = pthread_create( &t, &attr, task, NULL );
   17035 #if HAVE_PTHREADS < 7
   17036 	if( status < 0 ) status = errno;
   17037 #endif
   17038 	if( status ) return status;
   17039 #else
   17040 	/* Draft 4 pthreads */
   17041 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   17042 	if( status ) return errno;
   17043 
   17044 	/* give thread a chance to complete */
   17045 	/* it should remain joinable and hence detachable */
   17046 	sleep( 1 );
   17047 
   17048 	status = pthread_detach( &t );
   17049 	if( status ) return errno;
   17050 #endif
   17051 
   17052 #ifdef HAVE_LINUX_THREADS
   17053 	pthread_kill_other_threads_np();
   17054 #endif
   17055 
   17056 	return 0;
   17057 
   17058 }
   17059 
   17060 _ACEOF
   17061 if ac_fn_c_try_run "$LINENO"; then :
   17062   ol_cv_pthread_lpthread=yes
   17063 else
   17064   ol_cv_pthread_lpthread=no
   17065 fi
   17066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17067   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17068 fi
   17069 
   17070 
   17071 		# restore the LIBS
   17072 		LIBS="$ol_LIBS"
   17073 
   17074 fi
   17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
   17076 $as_echo "$ol_cv_pthread_lpthread" >&6; }
   17077 
   17078 	if test $ol_cv_pthread_lpthread = yes ; then
   17079 		ol_link_pthreads="-lpthread"
   17080 		ol_link_threads=posix
   17081 	fi
   17082 fi
   17083 
   17084 		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
   17085 if test "$ol_link_threads" = no ; then
   17086 	# try -lc_r
   17087 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
   17088 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
   17089 if ${ol_cv_pthread_lc_r+:} false; then :
   17090   $as_echo_n "(cached) " >&6
   17091 else
   17092 
   17093 		# save the flags
   17094 		ol_LIBS="$LIBS"
   17095 		LIBS="-lc_r $LIBS"
   17096 
   17097 		if test "$cross_compiling" = yes; then :
   17098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17099 /* end confdefs.h.  */
   17100 
   17101 /* pthread test headers */
   17102 #include <pthread.h>
   17103 #if HAVE_PTHREADS < 7
   17104 #include <errno.h>
   17105 #endif
   17106 #ifndef NULL
   17107 #define NULL (void*)0
   17108 #endif
   17109 
   17110 static void *task(p)
   17111 	void *p;
   17112 {
   17113 	return (void *) (p == NULL);
   17114 }
   17115 
   17116 int
   17117 main ()
   17118 {
   17119 
   17120 	/* pthread test function */
   17121 #ifndef PTHREAD_CREATE_DETACHED
   17122 #define	PTHREAD_CREATE_DETACHED	1
   17123 #endif
   17124 	pthread_t t;
   17125 	int status;
   17126 	int detach = PTHREAD_CREATE_DETACHED;
   17127 
   17128 #if HAVE_PTHREADS > 4
   17129 	/* Final pthreads */
   17130 	pthread_attr_t attr;
   17131 
   17132 	status = pthread_attr_init(&attr);
   17133 	if( status ) return status;
   17134 
   17135 #if HAVE_PTHREADS < 7
   17136 	status = pthread_attr_setdetachstate(&attr, &detach);
   17137 	if( status < 0 ) status = errno;
   17138 #else
   17139 	status = pthread_attr_setdetachstate(&attr, detach);
   17140 #endif
   17141 	if( status ) return status;
   17142 	status = pthread_create( &t, &attr, task, NULL );
   17143 #if HAVE_PTHREADS < 7
   17144 	if( status < 0 ) status = errno;
   17145 #endif
   17146 	if( status ) return status;
   17147 #else
   17148 	/* Draft 4 pthreads */
   17149 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   17150 	if( status ) return errno;
   17151 
   17152 	/* give thread a chance to complete */
   17153 	/* it should remain joinable and hence detachable */
   17154 	sleep( 1 );
   17155 
   17156 	status = pthread_detach( &t );
   17157 	if( status ) return errno;
   17158 #endif
   17159 
   17160 #ifdef HAVE_LINUX_THREADS
   17161 	pthread_kill_other_threads_np();
   17162 #endif
   17163 
   17164 	return 0;
   17165 
   17166   ;
   17167   return 0;
   17168 }
   17169 _ACEOF
   17170 if ac_fn_c_try_link "$LINENO"; then :
   17171   ol_cv_pthread_lc_r=yes
   17172 else
   17173   ol_cv_pthread_lc_r=no
   17174 fi
   17175 rm -f core conftest.err conftest.$ac_objext \
   17176     conftest$ac_exeext conftest.$ac_ext
   17177 else
   17178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17179 /* end confdefs.h.  */
   17180 
   17181 
   17182 /* pthread test headers */
   17183 #include <pthread.h>
   17184 #if HAVE_PTHREADS < 7
   17185 #include <errno.h>
   17186 #endif
   17187 #ifndef NULL
   17188 #define NULL (void*)0
   17189 #endif
   17190 
   17191 static void *task(p)
   17192 	void *p;
   17193 {
   17194 	return (void *) (p == NULL);
   17195 }
   17196 
   17197 
   17198 int main(argc, argv)
   17199 	int argc;
   17200 	char **argv;
   17201 {
   17202 
   17203 	/* pthread test function */
   17204 #ifndef PTHREAD_CREATE_DETACHED
   17205 #define	PTHREAD_CREATE_DETACHED	1
   17206 #endif
   17207 	pthread_t t;
   17208 	int status;
   17209 	int detach = PTHREAD_CREATE_DETACHED;
   17210 
   17211 #if HAVE_PTHREADS > 4
   17212 	/* Final pthreads */
   17213 	pthread_attr_t attr;
   17214 
   17215 	status = pthread_attr_init(&attr);
   17216 	if( status ) return status;
   17217 
   17218 #if HAVE_PTHREADS < 7
   17219 	status = pthread_attr_setdetachstate(&attr, &detach);
   17220 	if( status < 0 ) status = errno;
   17221 #else
   17222 	status = pthread_attr_setdetachstate(&attr, detach);
   17223 #endif
   17224 	if( status ) return status;
   17225 	status = pthread_create( &t, &attr, task, NULL );
   17226 #if HAVE_PTHREADS < 7
   17227 	if( status < 0 ) status = errno;
   17228 #endif
   17229 	if( status ) return status;
   17230 #else
   17231 	/* Draft 4 pthreads */
   17232 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   17233 	if( status ) return errno;
   17234 
   17235 	/* give thread a chance to complete */
   17236 	/* it should remain joinable and hence detachable */
   17237 	sleep( 1 );
   17238 
   17239 	status = pthread_detach( &t );
   17240 	if( status ) return errno;
   17241 #endif
   17242 
   17243 #ifdef HAVE_LINUX_THREADS
   17244 	pthread_kill_other_threads_np();
   17245 #endif
   17246 
   17247 	return 0;
   17248 
   17249 }
   17250 
   17251 _ACEOF
   17252 if ac_fn_c_try_run "$LINENO"; then :
   17253   ol_cv_pthread_lc_r=yes
   17254 else
   17255   ol_cv_pthread_lc_r=no
   17256 fi
   17257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17258   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17259 fi
   17260 
   17261 
   17262 		# restore the LIBS
   17263 		LIBS="$ol_LIBS"
   17264 
   17265 fi
   17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
   17267 $as_echo "$ol_cv_pthread_lc_r" >&6; }
   17268 
   17269 	if test $ol_cv_pthread_lc_r = yes ; then
   17270 		ol_link_pthreads="-lc_r"
   17271 		ol_link_threads=posix
   17272 	fi
   17273 fi
   17274 
   17275 
   17276 		# Pthread try link: -threads (ol_cv_pthread_threads)
   17277 if test "$ol_link_threads" = no ; then
   17278 	# try -threads
   17279 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
   17280 $as_echo_n "checking for pthread link with -threads... " >&6; }
   17281 if ${ol_cv_pthread_threads+:} false; then :
   17282   $as_echo_n "(cached) " >&6
   17283 else
   17284 
   17285 		# save the flags
   17286 		ol_LIBS="$LIBS"
   17287 		LIBS="-threads $LIBS"
   17288 
   17289 		if test "$cross_compiling" = yes; then :
   17290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17291 /* end confdefs.h.  */
   17292 
   17293 /* pthread test headers */
   17294 #include <pthread.h>
   17295 #if HAVE_PTHREADS < 7
   17296 #include <errno.h>
   17297 #endif
   17298 #ifndef NULL
   17299 #define NULL (void*)0
   17300 #endif
   17301 
   17302 static void *task(p)
   17303 	void *p;
   17304 {
   17305 	return (void *) (p == NULL);
   17306 }
   17307 
   17308 int
   17309 main ()
   17310 {
   17311 
   17312 	/* pthread test function */
   17313 #ifndef PTHREAD_CREATE_DETACHED
   17314 #define	PTHREAD_CREATE_DETACHED	1
   17315 #endif
   17316 	pthread_t t;
   17317 	int status;
   17318 	int detach = PTHREAD_CREATE_DETACHED;
   17319 
   17320 #if HAVE_PTHREADS > 4
   17321 	/* Final pthreads */
   17322 	pthread_attr_t attr;
   17323 
   17324 	status = pthread_attr_init(&attr);
   17325 	if( status ) return status;
   17326 
   17327 #if HAVE_PTHREADS < 7
   17328 	status = pthread_attr_setdetachstate(&attr, &detach);
   17329 	if( status < 0 ) status = errno;
   17330 #else
   17331 	status = pthread_attr_setdetachstate(&attr, detach);
   17332 #endif
   17333 	if( status ) return status;
   17334 	status = pthread_create( &t, &attr, task, NULL );
   17335 #if HAVE_PTHREADS < 7
   17336 	if( status < 0 ) status = errno;
   17337 #endif
   17338 	if( status ) return status;
   17339 #else
   17340 	/* Draft 4 pthreads */
   17341 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   17342 	if( status ) return errno;
   17343 
   17344 	/* give thread a chance to complete */
   17345 	/* it should remain joinable and hence detachable */
   17346 	sleep( 1 );
   17347 
   17348 	status = pthread_detach( &t );
   17349 	if( status ) return errno;
   17350 #endif
   17351 
   17352 #ifdef HAVE_LINUX_THREADS
   17353 	pthread_kill_other_threads_np();
   17354 #endif
   17355 
   17356 	return 0;
   17357 
   17358   ;
   17359   return 0;
   17360 }
   17361 _ACEOF
   17362 if ac_fn_c_try_link "$LINENO"; then :
   17363   ol_cv_pthread_threads=yes
   17364 else
   17365   ol_cv_pthread_threads=no
   17366 fi
   17367 rm -f core conftest.err conftest.$ac_objext \
   17368     conftest$ac_exeext conftest.$ac_ext
   17369 else
   17370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17371 /* end confdefs.h.  */
   17372 
   17373 
   17374 /* pthread test headers */
   17375 #include <pthread.h>
   17376 #if HAVE_PTHREADS < 7
   17377 #include <errno.h>
   17378 #endif
   17379 #ifndef NULL
   17380 #define NULL (void*)0
   17381 #endif
   17382 
   17383 static void *task(p)
   17384 	void *p;
   17385 {
   17386 	return (void *) (p == NULL);
   17387 }
   17388 
   17389 
   17390 int main(argc, argv)
   17391 	int argc;
   17392 	char **argv;
   17393 {
   17394 
   17395 	/* pthread test function */
   17396 #ifndef PTHREAD_CREATE_DETACHED
   17397 #define	PTHREAD_CREATE_DETACHED	1
   17398 #endif
   17399 	pthread_t t;
   17400 	int status;
   17401 	int detach = PTHREAD_CREATE_DETACHED;
   17402 
   17403 #if HAVE_PTHREADS > 4
   17404 	/* Final pthreads */
   17405 	pthread_attr_t attr;
   17406 
   17407 	status = pthread_attr_init(&attr);
   17408 	if( status ) return status;
   17409 
   17410 #if HAVE_PTHREADS < 7
   17411 	status = pthread_attr_setdetachstate(&attr, &detach);
   17412 	if( status < 0 ) status = errno;
   17413 #else
   17414 	status = pthread_attr_setdetachstate(&attr, detach);
   17415 #endif
   17416 	if( status ) return status;
   17417 	status = pthread_create( &t, &attr, task, NULL );
   17418 #if HAVE_PTHREADS < 7
   17419 	if( status < 0 ) status = errno;
   17420 #endif
   17421 	if( status ) return status;
   17422 #else
   17423 	/* Draft 4 pthreads */
   17424 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   17425 	if( status ) return errno;
   17426 
   17427 	/* give thread a chance to complete */
   17428 	/* it should remain joinable and hence detachable */
   17429 	sleep( 1 );
   17430 
   17431 	status = pthread_detach( &t );
   17432 	if( status ) return errno;
   17433 #endif
   17434 
   17435 #ifdef HAVE_LINUX_THREADS
   17436 	pthread_kill_other_threads_np();
   17437 #endif
   17438 
   17439 	return 0;
   17440 
   17441 }
   17442 
   17443 _ACEOF
   17444 if ac_fn_c_try_run "$LINENO"; then :
   17445   ol_cv_pthread_threads=yes
   17446 else
   17447   ol_cv_pthread_threads=no
   17448 fi
   17449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17450   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17451 fi
   17452 
   17453 
   17454 		# restore the LIBS
   17455 		LIBS="$ol_LIBS"
   17456 
   17457 fi
   17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
   17459 $as_echo "$ol_cv_pthread_threads" >&6; }
   17460 
   17461 	if test $ol_cv_pthread_threads = yes ; then
   17462 		ol_link_pthreads="-threads"
   17463 		ol_link_threads=posix
   17464 	fi
   17465 fi
   17466 
   17467 
   17468 		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
   17469 if test "$ol_link_threads" = no ; then
   17470 	# try -lpthreads -lmach -lexc -lc_r
   17471 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
   17472 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
   17473 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
   17474   $as_echo_n "(cached) " >&6
   17475 else
   17476 
   17477 		# save the flags
   17478 		ol_LIBS="$LIBS"
   17479 		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
   17480 
   17481 		if test "$cross_compiling" = yes; then :
   17482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17483 /* end confdefs.h.  */
   17484 
   17485 /* pthread test headers */
   17486 #include <pthread.h>
   17487 #if HAVE_PTHREADS < 7
   17488 #include <errno.h>
   17489 #endif
   17490 #ifndef NULL
   17491 #define NULL (void*)0
   17492 #endif
   17493 
   17494 static void *task(p)
   17495 	void *p;
   17496 {
   17497 	return (void *) (p == NULL);
   17498 }
   17499 
   17500 int
   17501 main ()
   17502 {
   17503 
   17504 	/* pthread test function */
   17505 #ifndef PTHREAD_CREATE_DETACHED
   17506 #define	PTHREAD_CREATE_DETACHED	1
   17507 #endif
   17508 	pthread_t t;
   17509 	int status;
   17510 	int detach = PTHREAD_CREATE_DETACHED;
   17511 
   17512 #if HAVE_PTHREADS > 4
   17513 	/* Final pthreads */
   17514 	pthread_attr_t attr;
   17515 
   17516 	status = pthread_attr_init(&attr);
   17517 	if( status ) return status;
   17518 
   17519 #if HAVE_PTHREADS < 7
   17520 	status = pthread_attr_setdetachstate(&attr, &detach);
   17521 	if( status < 0 ) status = errno;
   17522 #else
   17523 	status = pthread_attr_setdetachstate(&attr, detach);
   17524 #endif
   17525 	if( status ) return status;
   17526 	status = pthread_create( &t, &attr, task, NULL );
   17527 #if HAVE_PTHREADS < 7
   17528 	if( status < 0 ) status = errno;
   17529 #endif
   17530 	if( status ) return status;
   17531 #else
   17532 	/* Draft 4 pthreads */
   17533 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   17534 	if( status ) return errno;
   17535 
   17536 	/* give thread a chance to complete */
   17537 	/* it should remain joinable and hence detachable */
   17538 	sleep( 1 );
   17539 
   17540 	status = pthread_detach( &t );
   17541 	if( status ) return errno;
   17542 #endif
   17543 
   17544 #ifdef HAVE_LINUX_THREADS
   17545 	pthread_kill_other_threads_np();
   17546 #endif
   17547 
   17548 	return 0;
   17549 
   17550   ;
   17551   return 0;
   17552 }
   17553 _ACEOF
   17554 if ac_fn_c_try_link "$LINENO"; then :
   17555   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
   17556 else
   17557   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
   17558 fi
   17559 rm -f core conftest.err conftest.$ac_objext \
   17560     conftest$ac_exeext conftest.$ac_ext
   17561 else
   17562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17563 /* end confdefs.h.  */
   17564 
   17565 
   17566 /* pthread test headers */
   17567 #include <pthread.h>
   17568 #if HAVE_PTHREADS < 7
   17569 #include <errno.h>
   17570 #endif
   17571 #ifndef NULL
   17572 #define NULL (void*)0
   17573 #endif
   17574 
   17575 static void *task(p)
   17576 	void *p;
   17577 {
   17578 	return (void *) (p == NULL);
   17579 }
   17580 
   17581 
   17582 int main(argc, argv)
   17583 	int argc;
   17584 	char **argv;
   17585 {
   17586 
   17587 	/* pthread test function */
   17588 #ifndef PTHREAD_CREATE_DETACHED
   17589 #define	PTHREAD_CREATE_DETACHED	1
   17590 #endif
   17591 	pthread_t t;
   17592 	int status;
   17593 	int detach = PTHREAD_CREATE_DETACHED;
   17594 
   17595 #if HAVE_PTHREADS > 4
   17596 	/* Final pthreads */
   17597 	pthread_attr_t attr;
   17598 
   17599 	status = pthread_attr_init(&attr);
   17600 	if( status ) return status;
   17601 
   17602 #if HAVE_PTHREADS < 7
   17603 	status = pthread_attr_setdetachstate(&attr, &detach);
   17604 	if( status < 0 ) status = errno;
   17605 #else
   17606 	status = pthread_attr_setdetachstate(&attr, detach);
   17607 #endif
   17608 	if( status ) return status;
   17609 	status = pthread_create( &t, &attr, task, NULL );
   17610 #if HAVE_PTHREADS < 7
   17611 	if( status < 0 ) status = errno;
   17612 #endif
   17613 	if( status ) return status;
   17614 #else
   17615 	/* Draft 4 pthreads */
   17616 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   17617 	if( status ) return errno;
   17618 
   17619 	/* give thread a chance to complete */
   17620 	/* it should remain joinable and hence detachable */
   17621 	sleep( 1 );
   17622 
   17623 	status = pthread_detach( &t );
   17624 	if( status ) return errno;
   17625 #endif
   17626 
   17627 #ifdef HAVE_LINUX_THREADS
   17628 	pthread_kill_other_threads_np();
   17629 #endif
   17630 
   17631 	return 0;
   17632 
   17633 }
   17634 
   17635 _ACEOF
   17636 if ac_fn_c_try_run "$LINENO"; then :
   17637   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
   17638 else
   17639   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
   17640 fi
   17641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17642   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17643 fi
   17644 
   17645 
   17646 		# restore the LIBS
   17647 		LIBS="$ol_LIBS"
   17648 
   17649 fi
   17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
   17651 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
   17652 
   17653 	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
   17654 		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
   17655 		ol_link_threads=posix
   17656 	fi
   17657 fi
   17658 
   17659 		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
   17660 if test "$ol_link_threads" = no ; then
   17661 	# try -lpthreads -lmach -lexc
   17662 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
   17663 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
   17664 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
   17665   $as_echo_n "(cached) " >&6
   17666 else
   17667 
   17668 		# save the flags
   17669 		ol_LIBS="$LIBS"
   17670 		LIBS="-lpthreads -lmach -lexc $LIBS"
   17671 
   17672 		if test "$cross_compiling" = yes; then :
   17673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17674 /* end confdefs.h.  */
   17675 
   17676 /* pthread test headers */
   17677 #include <pthread.h>
   17678 #if HAVE_PTHREADS < 7
   17679 #include <errno.h>
   17680 #endif
   17681 #ifndef NULL
   17682 #define NULL (void*)0
   17683 #endif
   17684 
   17685 static void *task(p)
   17686 	void *p;
   17687 {
   17688 	return (void *) (p == NULL);
   17689 }
   17690 
   17691 int
   17692 main ()
   17693 {
   17694 
   17695 	/* pthread test function */
   17696 #ifndef PTHREAD_CREATE_DETACHED
   17697 #define	PTHREAD_CREATE_DETACHED	1
   17698 #endif
   17699 	pthread_t t;
   17700 	int status;
   17701 	int detach = PTHREAD_CREATE_DETACHED;
   17702 
   17703 #if HAVE_PTHREADS > 4
   17704 	/* Final pthreads */
   17705 	pthread_attr_t attr;
   17706 
   17707 	status = pthread_attr_init(&attr);
   17708 	if( status ) return status;
   17709 
   17710 #if HAVE_PTHREADS < 7
   17711 	status = pthread_attr_setdetachstate(&attr, &detach);
   17712 	if( status < 0 ) status = errno;
   17713 #else
   17714 	status = pthread_attr_setdetachstate(&attr, detach);
   17715 #endif
   17716 	if( status ) return status;
   17717 	status = pthread_create( &t, &attr, task, NULL );
   17718 #if HAVE_PTHREADS < 7
   17719 	if( status < 0 ) status = errno;
   17720 #endif
   17721 	if( status ) return status;
   17722 #else
   17723 	/* Draft 4 pthreads */
   17724 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   17725 	if( status ) return errno;
   17726 
   17727 	/* give thread a chance to complete */
   17728 	/* it should remain joinable and hence detachable */
   17729 	sleep( 1 );
   17730 
   17731 	status = pthread_detach( &t );
   17732 	if( status ) return errno;
   17733 #endif
   17734 
   17735 #ifdef HAVE_LINUX_THREADS
   17736 	pthread_kill_other_threads_np();
   17737 #endif
   17738 
   17739 	return 0;
   17740 
   17741   ;
   17742   return 0;
   17743 }
   17744 _ACEOF
   17745 if ac_fn_c_try_link "$LINENO"; then :
   17746   ol_cv_pthread_lpthreads_lmach_lexc=yes
   17747 else
   17748   ol_cv_pthread_lpthreads_lmach_lexc=no
   17749 fi
   17750 rm -f core conftest.err conftest.$ac_objext \
   17751     conftest$ac_exeext conftest.$ac_ext
   17752 else
   17753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17754 /* end confdefs.h.  */
   17755 
   17756 
   17757 /* pthread test headers */
   17758 #include <pthread.h>
   17759 #if HAVE_PTHREADS < 7
   17760 #include <errno.h>
   17761 #endif
   17762 #ifndef NULL
   17763 #define NULL (void*)0
   17764 #endif
   17765 
   17766 static void *task(p)
   17767 	void *p;
   17768 {
   17769 	return (void *) (p == NULL);
   17770 }
   17771 
   17772 
   17773 int main(argc, argv)
   17774 	int argc;
   17775 	char **argv;
   17776 {
   17777 
   17778 	/* pthread test function */
   17779 #ifndef PTHREAD_CREATE_DETACHED
   17780 #define	PTHREAD_CREATE_DETACHED	1
   17781 #endif
   17782 	pthread_t t;
   17783 	int status;
   17784 	int detach = PTHREAD_CREATE_DETACHED;
   17785 
   17786 #if HAVE_PTHREADS > 4
   17787 	/* Final pthreads */
   17788 	pthread_attr_t attr;
   17789 
   17790 	status = pthread_attr_init(&attr);
   17791 	if( status ) return status;
   17792 
   17793 #if HAVE_PTHREADS < 7
   17794 	status = pthread_attr_setdetachstate(&attr, &detach);
   17795 	if( status < 0 ) status = errno;
   17796 #else
   17797 	status = pthread_attr_setdetachstate(&attr, detach);
   17798 #endif
   17799 	if( status ) return status;
   17800 	status = pthread_create( &t, &attr, task, NULL );
   17801 #if HAVE_PTHREADS < 7
   17802 	if( status < 0 ) status = errno;
   17803 #endif
   17804 	if( status ) return status;
   17805 #else
   17806 	/* Draft 4 pthreads */
   17807 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   17808 	if( status ) return errno;
   17809 
   17810 	/* give thread a chance to complete */
   17811 	/* it should remain joinable and hence detachable */
   17812 	sleep( 1 );
   17813 
   17814 	status = pthread_detach( &t );
   17815 	if( status ) return errno;
   17816 #endif
   17817 
   17818 #ifdef HAVE_LINUX_THREADS
   17819 	pthread_kill_other_threads_np();
   17820 #endif
   17821 
   17822 	return 0;
   17823 
   17824 }
   17825 
   17826 _ACEOF
   17827 if ac_fn_c_try_run "$LINENO"; then :
   17828   ol_cv_pthread_lpthreads_lmach_lexc=yes
   17829 else
   17830   ol_cv_pthread_lpthreads_lmach_lexc=no
   17831 fi
   17832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   17833   conftest.$ac_objext conftest.beam conftest.$ac_ext
   17834 fi
   17835 
   17836 
   17837 		# restore the LIBS
   17838 		LIBS="$ol_LIBS"
   17839 
   17840 fi
   17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
   17842 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
   17843 
   17844 	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
   17845 		ol_link_pthreads="-lpthreads -lmach -lexc"
   17846 		ol_link_threads=posix
   17847 	fi
   17848 fi
   17849 
   17850 		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
   17851 if test "$ol_link_threads" = no ; then
   17852 	# try -lpthreads -lexc
   17853 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
   17854 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
   17855 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
   17856   $as_echo_n "(cached) " >&6
   17857 else
   17858 
   17859 		# save the flags
   17860 		ol_LIBS="$LIBS"
   17861 		LIBS="-lpthreads -lexc $LIBS"
   17862 
   17863 		if test "$cross_compiling" = yes; then :
   17864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17865 /* end confdefs.h.  */
   17866 
   17867 /* pthread test headers */
   17868 #include <pthread.h>
   17869 #if HAVE_PTHREADS < 7
   17870 #include <errno.h>
   17871 #endif
   17872 #ifndef NULL
   17873 #define NULL (void*)0
   17874 #endif
   17875 
   17876 static void *task(p)
   17877 	void *p;
   17878 {
   17879 	return (void *) (p == NULL);
   17880 }
   17881 
   17882 int
   17883 main ()
   17884 {
   17885 
   17886 	/* pthread test function */
   17887 #ifndef PTHREAD_CREATE_DETACHED
   17888 #define	PTHREAD_CREATE_DETACHED	1
   17889 #endif
   17890 	pthread_t t;
   17891 	int status;
   17892 	int detach = PTHREAD_CREATE_DETACHED;
   17893 
   17894 #if HAVE_PTHREADS > 4
   17895 	/* Final pthreads */
   17896 	pthread_attr_t attr;
   17897 
   17898 	status = pthread_attr_init(&attr);
   17899 	if( status ) return status;
   17900 
   17901 #if HAVE_PTHREADS < 7
   17902 	status = pthread_attr_setdetachstate(&attr, &detach);
   17903 	if( status < 0 ) status = errno;
   17904 #else
   17905 	status = pthread_attr_setdetachstate(&attr, detach);
   17906 #endif
   17907 	if( status ) return status;
   17908 	status = pthread_create( &t, &attr, task, NULL );
   17909 #if HAVE_PTHREADS < 7
   17910 	if( status < 0 ) status = errno;
   17911 #endif
   17912 	if( status ) return status;
   17913 #else
   17914 	/* Draft 4 pthreads */
   17915 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   17916 	if( status ) return errno;
   17917 
   17918 	/* give thread a chance to complete */
   17919 	/* it should remain joinable and hence detachable */
   17920 	sleep( 1 );
   17921 
   17922 	status = pthread_detach( &t );
   17923 	if( status ) return errno;
   17924 #endif
   17925 
   17926 #ifdef HAVE_LINUX_THREADS
   17927 	pthread_kill_other_threads_np();
   17928 #endif
   17929 
   17930 	return 0;
   17931 
   17932   ;
   17933   return 0;
   17934 }
   17935 _ACEOF
   17936 if ac_fn_c_try_link "$LINENO"; then :
   17937   ol_cv_pthread_lpthreads_lexc=yes
   17938 else
   17939   ol_cv_pthread_lpthreads_lexc=no
   17940 fi
   17941 rm -f core conftest.err conftest.$ac_objext \
   17942     conftest$ac_exeext conftest.$ac_ext
   17943 else
   17944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17945 /* end confdefs.h.  */
   17946 
   17947 
   17948 /* pthread test headers */
   17949 #include <pthread.h>
   17950 #if HAVE_PTHREADS < 7
   17951 #include <errno.h>
   17952 #endif
   17953 #ifndef NULL
   17954 #define NULL (void*)0
   17955 #endif
   17956 
   17957 static void *task(p)
   17958 	void *p;
   17959 {
   17960 	return (void *) (p == NULL);
   17961 }
   17962 
   17963 
   17964 int main(argc, argv)
   17965 	int argc;
   17966 	char **argv;
   17967 {
   17968 
   17969 	/* pthread test function */
   17970 #ifndef PTHREAD_CREATE_DETACHED
   17971 #define	PTHREAD_CREATE_DETACHED	1
   17972 #endif
   17973 	pthread_t t;
   17974 	int status;
   17975 	int detach = PTHREAD_CREATE_DETACHED;
   17976 
   17977 #if HAVE_PTHREADS > 4
   17978 	/* Final pthreads */
   17979 	pthread_attr_t attr;
   17980 
   17981 	status = pthread_attr_init(&attr);
   17982 	if( status ) return status;
   17983 
   17984 #if HAVE_PTHREADS < 7
   17985 	status = pthread_attr_setdetachstate(&attr, &detach);
   17986 	if( status < 0 ) status = errno;
   17987 #else
   17988 	status = pthread_attr_setdetachstate(&attr, detach);
   17989 #endif
   17990 	if( status ) return status;
   17991 	status = pthread_create( &t, &attr, task, NULL );
   17992 #if HAVE_PTHREADS < 7
   17993 	if( status < 0 ) status = errno;
   17994 #endif
   17995 	if( status ) return status;
   17996 #else
   17997 	/* Draft 4 pthreads */
   17998 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   17999 	if( status ) return errno;
   18000 
   18001 	/* give thread a chance to complete */
   18002 	/* it should remain joinable and hence detachable */
   18003 	sleep( 1 );
   18004 
   18005 	status = pthread_detach( &t );
   18006 	if( status ) return errno;
   18007 #endif
   18008 
   18009 #ifdef HAVE_LINUX_THREADS
   18010 	pthread_kill_other_threads_np();
   18011 #endif
   18012 
   18013 	return 0;
   18014 
   18015 }
   18016 
   18017 _ACEOF
   18018 if ac_fn_c_try_run "$LINENO"; then :
   18019   ol_cv_pthread_lpthreads_lexc=yes
   18020 else
   18021   ol_cv_pthread_lpthreads_lexc=no
   18022 fi
   18023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18024   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18025 fi
   18026 
   18027 
   18028 		# restore the LIBS
   18029 		LIBS="$ol_LIBS"
   18030 
   18031 fi
   18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
   18033 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
   18034 
   18035 	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
   18036 		ol_link_pthreads="-lpthreads -lexc"
   18037 		ol_link_threads=posix
   18038 	fi
   18039 fi
   18040 
   18041 
   18042 		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
   18043 if test "$ol_link_threads" = no ; then
   18044 	# try -lpthreads
   18045 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
   18046 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
   18047 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
   18048   $as_echo_n "(cached) " >&6
   18049 else
   18050 
   18051 		# save the flags
   18052 		ol_LIBS="$LIBS"
   18053 		LIBS="-lpthreads $LIBS"
   18054 
   18055 		if test "$cross_compiling" = yes; then :
   18056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18057 /* end confdefs.h.  */
   18058 
   18059 /* pthread test headers */
   18060 #include <pthread.h>
   18061 #if HAVE_PTHREADS < 7
   18062 #include <errno.h>
   18063 #endif
   18064 #ifndef NULL
   18065 #define NULL (void*)0
   18066 #endif
   18067 
   18068 static void *task(p)
   18069 	void *p;
   18070 {
   18071 	return (void *) (p == NULL);
   18072 }
   18073 
   18074 int
   18075 main ()
   18076 {
   18077 
   18078 	/* pthread test function */
   18079 #ifndef PTHREAD_CREATE_DETACHED
   18080 #define	PTHREAD_CREATE_DETACHED	1
   18081 #endif
   18082 	pthread_t t;
   18083 	int status;
   18084 	int detach = PTHREAD_CREATE_DETACHED;
   18085 
   18086 #if HAVE_PTHREADS > 4
   18087 	/* Final pthreads */
   18088 	pthread_attr_t attr;
   18089 
   18090 	status = pthread_attr_init(&attr);
   18091 	if( status ) return status;
   18092 
   18093 #if HAVE_PTHREADS < 7
   18094 	status = pthread_attr_setdetachstate(&attr, &detach);
   18095 	if( status < 0 ) status = errno;
   18096 #else
   18097 	status = pthread_attr_setdetachstate(&attr, detach);
   18098 #endif
   18099 	if( status ) return status;
   18100 	status = pthread_create( &t, &attr, task, NULL );
   18101 #if HAVE_PTHREADS < 7
   18102 	if( status < 0 ) status = errno;
   18103 #endif
   18104 	if( status ) return status;
   18105 #else
   18106 	/* Draft 4 pthreads */
   18107 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   18108 	if( status ) return errno;
   18109 
   18110 	/* give thread a chance to complete */
   18111 	/* it should remain joinable and hence detachable */
   18112 	sleep( 1 );
   18113 
   18114 	status = pthread_detach( &t );
   18115 	if( status ) return errno;
   18116 #endif
   18117 
   18118 #ifdef HAVE_LINUX_THREADS
   18119 	pthread_kill_other_threads_np();
   18120 #endif
   18121 
   18122 	return 0;
   18123 
   18124   ;
   18125   return 0;
   18126 }
   18127 _ACEOF
   18128 if ac_fn_c_try_link "$LINENO"; then :
   18129   ol_cv_pthread_lib_lpthreads=yes
   18130 else
   18131   ol_cv_pthread_lib_lpthreads=no
   18132 fi
   18133 rm -f core conftest.err conftest.$ac_objext \
   18134     conftest$ac_exeext conftest.$ac_ext
   18135 else
   18136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18137 /* end confdefs.h.  */
   18138 
   18139 
   18140 /* pthread test headers */
   18141 #include <pthread.h>
   18142 #if HAVE_PTHREADS < 7
   18143 #include <errno.h>
   18144 #endif
   18145 #ifndef NULL
   18146 #define NULL (void*)0
   18147 #endif
   18148 
   18149 static void *task(p)
   18150 	void *p;
   18151 {
   18152 	return (void *) (p == NULL);
   18153 }
   18154 
   18155 
   18156 int main(argc, argv)
   18157 	int argc;
   18158 	char **argv;
   18159 {
   18160 
   18161 	/* pthread test function */
   18162 #ifndef PTHREAD_CREATE_DETACHED
   18163 #define	PTHREAD_CREATE_DETACHED	1
   18164 #endif
   18165 	pthread_t t;
   18166 	int status;
   18167 	int detach = PTHREAD_CREATE_DETACHED;
   18168 
   18169 #if HAVE_PTHREADS > 4
   18170 	/* Final pthreads */
   18171 	pthread_attr_t attr;
   18172 
   18173 	status = pthread_attr_init(&attr);
   18174 	if( status ) return status;
   18175 
   18176 #if HAVE_PTHREADS < 7
   18177 	status = pthread_attr_setdetachstate(&attr, &detach);
   18178 	if( status < 0 ) status = errno;
   18179 #else
   18180 	status = pthread_attr_setdetachstate(&attr, detach);
   18181 #endif
   18182 	if( status ) return status;
   18183 	status = pthread_create( &t, &attr, task, NULL );
   18184 #if HAVE_PTHREADS < 7
   18185 	if( status < 0 ) status = errno;
   18186 #endif
   18187 	if( status ) return status;
   18188 #else
   18189 	/* Draft 4 pthreads */
   18190 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   18191 	if( status ) return errno;
   18192 
   18193 	/* give thread a chance to complete */
   18194 	/* it should remain joinable and hence detachable */
   18195 	sleep( 1 );
   18196 
   18197 	status = pthread_detach( &t );
   18198 	if( status ) return errno;
   18199 #endif
   18200 
   18201 #ifdef HAVE_LINUX_THREADS
   18202 	pthread_kill_other_threads_np();
   18203 #endif
   18204 
   18205 	return 0;
   18206 
   18207 }
   18208 
   18209 _ACEOF
   18210 if ac_fn_c_try_run "$LINENO"; then :
   18211   ol_cv_pthread_lib_lpthreads=yes
   18212 else
   18213   ol_cv_pthread_lib_lpthreads=no
   18214 fi
   18215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18216   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18217 fi
   18218 
   18219 
   18220 		# restore the LIBS
   18221 		LIBS="$ol_LIBS"
   18222 
   18223 fi
   18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
   18225 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
   18226 
   18227 	if test $ol_cv_pthread_lib_lpthreads = yes ; then
   18228 		ol_link_pthreads="-lpthreads"
   18229 		ol_link_threads=posix
   18230 	fi
   18231 fi
   18232 
   18233 
   18234 		if test $ol_link_threads != no ; then
   18235 			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
   18236 
   18237 						save_CPPFLAGS="$CPPFLAGS"
   18238 			save_LIBS="$LIBS"
   18239 			LIBS="$LTHREAD_LIBS $LIBS"
   18240 
   18241 												for ac_func in sched_yield pthread_yield thr_yield
   18242 do :
   18243   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   18244 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   18245 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   18246   cat >>confdefs.h <<_ACEOF
   18247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   18248 _ACEOF
   18249 
   18250 fi
   18251 done
   18252 
   18253 
   18254 			if test $ac_cv_func_sched_yield = no &&
   18255 			   test $ac_cv_func_pthread_yield = no &&
   18256 			   test $ac_cv_func_thr_yield = no ; then
   18257 								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
   18258 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
   18259 if ${ac_cv_lib_rt_sched_yield+:} false; then :
   18260   $as_echo_n "(cached) " >&6
   18261 else
   18262   ac_check_lib_save_LIBS=$LIBS
   18263 LIBS="-lrt  $LIBS"
   18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18265 /* end confdefs.h.  */
   18266 
   18267 /* Override any GCC internal prototype to avoid an error.
   18268    Use char because int might match the return type of a GCC
   18269    builtin and then its argument prototype would still apply.  */
   18270 #ifdef __cplusplus
   18271 extern "C"
   18272 #endif
   18273 char sched_yield ();
   18274 int
   18275 main ()
   18276 {
   18277 return sched_yield ();
   18278   ;
   18279   return 0;
   18280 }
   18281 _ACEOF
   18282 if ac_fn_c_try_link "$LINENO"; then :
   18283   ac_cv_lib_rt_sched_yield=yes
   18284 else
   18285   ac_cv_lib_rt_sched_yield=no
   18286 fi
   18287 rm -f core conftest.err conftest.$ac_objext \
   18288     conftest$ac_exeext conftest.$ac_ext
   18289 LIBS=$ac_check_lib_save_LIBS
   18290 fi
   18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
   18292 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
   18293 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
   18294   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
   18295 
   18296 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
   18297 
   18298 					ac_cv_func_sched_yield=yes
   18299 else
   18300   ac_cv_func_sched_yield=no
   18301 fi
   18302 
   18303 			fi
   18304 			if test $ac_cv_func_sched_yield = no &&
   18305 			   test $ac_cv_func_pthread_yield = no &&
   18306 			   test "$ac_cv_func_thr_yield" = no ; then
   18307 				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
   18308 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
   18309 			fi
   18310 
   18311 						for ac_func in pthread_kill
   18312 do :
   18313   ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
   18314 if test "x$ac_cv_func_pthread_kill" = xyes; then :
   18315   cat >>confdefs.h <<_ACEOF
   18316 #define HAVE_PTHREAD_KILL 1
   18317 _ACEOF
   18318 
   18319 fi
   18320 done
   18321 
   18322 
   18323 									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
   18324 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
   18325 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
   18326   $as_echo_n "(cached) " >&6
   18327 else
   18328 
   18329 								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18330 /* end confdefs.h.  */
   18331 
   18332 #include <pthread.h>
   18333 pthread_rwlock_t rwlock;
   18334 
   18335 int
   18336 main ()
   18337 {
   18338 pthread_rwlock_destroy(&rwlock);
   18339   ;
   18340   return 0;
   18341 }
   18342 _ACEOF
   18343 if ac_fn_c_try_link "$LINENO"; then :
   18344   ol_cv_func_pthread_rwlock_destroy=yes
   18345 else
   18346   ol_cv_func_pthread_rwlock_destroy=no
   18347 fi
   18348 rm -f core conftest.err conftest.$ac_objext \
   18349     conftest$ac_exeext conftest.$ac_ext
   18350 
   18351 fi
   18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
   18353 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
   18354 			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
   18355 
   18356 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
   18357 
   18358 			fi
   18359 
   18360 									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
   18361 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
   18362 if ${ol_cv_func_pthread_detach+:} false; then :
   18363   $as_echo_n "(cached) " >&6
   18364 else
   18365 
   18366 								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18367 /* end confdefs.h.  */
   18368 
   18369 #include <pthread.h>
   18370 #ifndef NULL
   18371 #define NULL (void*)0
   18372 #endif
   18373 
   18374 int
   18375 main ()
   18376 {
   18377 pthread_detach(NULL);
   18378   ;
   18379   return 0;
   18380 }
   18381 _ACEOF
   18382 if ac_fn_c_try_link "$LINENO"; then :
   18383   ol_cv_func_pthread_detach=yes
   18384 else
   18385   ol_cv_func_pthread_detach=no
   18386 fi
   18387 rm -f core conftest.err conftest.$ac_objext \
   18388     conftest$ac_exeext conftest.$ac_ext
   18389 
   18390 fi
   18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
   18392 $as_echo "$ol_cv_func_pthread_detach" >&6; }
   18393 
   18394 			if test $ol_cv_func_pthread_detach = no ; then
   18395 				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
   18396 			fi
   18397 
   18398 
   18399 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
   18400 
   18401 
   18402 						for ac_func in \
   18403 				pthread_setconcurrency \
   18404 				pthread_getconcurrency \
   18405 				thr_setconcurrency \
   18406 				thr_getconcurrency \
   18407 
   18408 do :
   18409   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   18410 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   18411 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   18412   cat >>confdefs.h <<_ACEOF
   18413 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   18414 _ACEOF
   18415 
   18416 fi
   18417 done
   18418 
   18419 
   18420 
   18421 	for ac_func in pthread_kill_other_threads_np
   18422 do :
   18423   ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
   18424 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
   18425   cat >>confdefs.h <<_ACEOF
   18426 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
   18427 _ACEOF
   18428 
   18429 fi
   18430 done
   18431 
   18432 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
   18433 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
   18434 if ${ol_cv_sys_linux_threads+:} false; then :
   18435   $as_echo_n "(cached) " >&6
   18436 else
   18437   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
   18438 fi
   18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
   18440 $as_echo "$ol_cv_sys_linux_threads" >&6; }
   18441 
   18442 
   18443 
   18444 
   18445 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
   18446 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
   18447 if ${ol_cv_linux_threads+:} false; then :
   18448   $as_echo_n "(cached) " >&6
   18449 else
   18450 
   18451 		if test $ol_cv_header_linux_threads = yes &&
   18452 		   test $ol_cv_sys_linux_threads = yes; then
   18453 			ol_cv_linux_threads=yes
   18454 		elif test $ol_cv_header_linux_threads = no &&
   18455 		     test $ol_cv_sys_linux_threads = no; then
   18456 			ol_cv_linux_threads=no
   18457 		else
   18458 			ol_cv_linux_threads=error
   18459 		fi
   18460 
   18461 fi
   18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
   18463 $as_echo "$ol_cv_linux_threads" >&6; }
   18464 
   18465 
   18466 			if test $ol_cv_linux_threads = error; then
   18467 				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
   18468 			fi
   18469 
   18470 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
   18471 $as_echo_n "checking if pthread_create() works... " >&6; }
   18472 if ${ol_cv_pthread_create_works+:} false; then :
   18473   $as_echo_n "(cached) " >&6
   18474 else
   18475 
   18476 			if test "$cross_compiling" = yes; then :
   18477   				ol_cv_pthread_create_works=yes
   18478 else
   18479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18480 /* end confdefs.h.  */
   18481 
   18482 
   18483 /* pthread test headers */
   18484 #include <pthread.h>
   18485 #if HAVE_PTHREADS < 7
   18486 #include <errno.h>
   18487 #endif
   18488 #ifndef NULL
   18489 #define NULL (void*)0
   18490 #endif
   18491 
   18492 static void *task(p)
   18493 	void *p;
   18494 {
   18495 	return (void *) (p == NULL);
   18496 }
   18497 
   18498 
   18499 int main(argc, argv)
   18500 	int argc;
   18501 	char **argv;
   18502 {
   18503 
   18504 	/* pthread test function */
   18505 #ifndef PTHREAD_CREATE_DETACHED
   18506 #define	PTHREAD_CREATE_DETACHED	1
   18507 #endif
   18508 	pthread_t t;
   18509 	int status;
   18510 	int detach = PTHREAD_CREATE_DETACHED;
   18511 
   18512 #if HAVE_PTHREADS > 4
   18513 	/* Final pthreads */
   18514 	pthread_attr_t attr;
   18515 
   18516 	status = pthread_attr_init(&attr);
   18517 	if( status ) return status;
   18518 
   18519 #if HAVE_PTHREADS < 7
   18520 	status = pthread_attr_setdetachstate(&attr, &detach);
   18521 	if( status < 0 ) status = errno;
   18522 #else
   18523 	status = pthread_attr_setdetachstate(&attr, detach);
   18524 #endif
   18525 	if( status ) return status;
   18526 	status = pthread_create( &t, &attr, task, NULL );
   18527 #if HAVE_PTHREADS < 7
   18528 	if( status < 0 ) status = errno;
   18529 #endif
   18530 	if( status ) return status;
   18531 #else
   18532 	/* Draft 4 pthreads */
   18533 	status = pthread_create( &t, pthread_attr_default, task, NULL );
   18534 	if( status ) return errno;
   18535 
   18536 	/* give thread a chance to complete */
   18537 	/* it should remain joinable and hence detachable */
   18538 	sleep( 1 );
   18539 
   18540 	status = pthread_detach( &t );
   18541 	if( status ) return errno;
   18542 #endif
   18543 
   18544 #ifdef HAVE_LINUX_THREADS
   18545 	pthread_kill_other_threads_np();
   18546 #endif
   18547 
   18548 	return 0;
   18549 
   18550 }
   18551 
   18552 _ACEOF
   18553 if ac_fn_c_try_run "$LINENO"; then :
   18554   ol_cv_pthread_create_works=yes
   18555 else
   18556   ol_cv_pthread_create_works=no
   18557 fi
   18558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18559   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18560 fi
   18561 
   18562 fi
   18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
   18564 $as_echo "$ol_cv_pthread_create_works" >&6; }
   18565 
   18566 			if test $ol_cv_pthread_create_works = no ; then
   18567 				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
   18568 			fi
   18569 
   18570 			ol_replace_broken_yield=no
   18571 
   18572 			if test $ol_replace_broken_yield = yes ; then
   18573 
   18574 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
   18575 
   18576 			fi
   18577 
   18578 						if test x$ol_with_yielding_select = xauto ; then
   18579 				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
   18580 $as_echo_n "checking if select yields when using pthreads... " >&6; }
   18581 if ${ol_cv_pthread_select_yields+:} false; then :
   18582   $as_echo_n "(cached) " >&6
   18583 else
   18584 
   18585 				if test "$cross_compiling" = yes; then :
   18586   ol_cv_pthread_select_yields=cross
   18587 else
   18588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18589 /* end confdefs.h.  */
   18590 
   18591 #include <sys/types.h>
   18592 #include <sys/time.h>
   18593 #include <unistd.h>
   18594 #include <pthread.h>
   18595 #ifndef NULL
   18596 #define NULL (void*) 0
   18597 #endif
   18598 
   18599 static int fildes[2];
   18600 
   18601 static void *task(p)
   18602 	void *p;
   18603 {
   18604 	int i;
   18605 	struct timeval tv;
   18606 
   18607 	fd_set rfds;
   18608 
   18609 	tv.tv_sec=10;
   18610 	tv.tv_usec=0;
   18611 
   18612 	FD_ZERO(&rfds);
   18613 	FD_SET(fildes[0], &rfds);
   18614 
   18615 	/* we're not interested in any fds */
   18616 	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
   18617 
   18618 	if(i < 0) {
   18619 		perror("select");
   18620 		exit(10);
   18621 	}
   18622 
   18623 	exit(0); /* if we exit here, the select blocked the whole process */
   18624 }
   18625 
   18626 int main(argc, argv)
   18627 	int argc;
   18628 	char **argv;
   18629 {
   18630 	pthread_t t;
   18631 
   18632 	/* create a pipe to select */
   18633 	if(pipe(&fildes[0])) {
   18634 		perror("select");
   18635 		exit(1);
   18636 	}
   18637 
   18638 #ifdef HAVE_PTHREAD_SETCONCURRENCY
   18639 	(void) pthread_setconcurrency(2);
   18640 #else
   18641 #ifdef HAVE_THR_SETCONCURRENCY
   18642 	/* Set Solaris LWP concurrency to 2 */
   18643 	thr_setconcurrency(2);
   18644 #endif
   18645 #endif
   18646 
   18647 #if HAVE_PTHREADS < 6
   18648 	pthread_create(&t, pthread_attr_default, task, NULL);
   18649 #else
   18650 	pthread_create(&t, NULL, task, NULL);
   18651 #endif
   18652 
   18653 	/* make sure task runs first */
   18654 #ifdef HAVE_THR_YIELD
   18655 	thr_yield();
   18656 #elif defined( HAVE_SCHED_YIELD )
   18657 	sched_yield();
   18658 #elif defined( HAVE_PTHREAD_YIELD )
   18659 	pthread_yield();
   18660 #endif
   18661 
   18662 	exit(2);
   18663 }
   18664 _ACEOF
   18665 if ac_fn_c_try_run "$LINENO"; then :
   18666   ol_cv_pthread_select_yields=no
   18667 else
   18668   ol_cv_pthread_select_yields=yes
   18669 fi
   18670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   18671   conftest.$ac_objext conftest.beam conftest.$ac_ext
   18672 fi
   18673 
   18674 fi
   18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
   18676 $as_echo "$ol_cv_pthread_select_yields" >&6; }
   18677 
   18678 				if test $ol_cv_pthread_select_yields = cross ; then
   18679 					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
   18680 				fi
   18681 
   18682 				if test $ol_cv_pthread_select_yields = yes ; then
   18683 					ol_with_yielding_select=yes
   18684 				fi
   18685 			fi
   18686 
   18687 						CPPFLAGS="$save_CPPFLAGS"
   18688 			LIBS="$save_LIBS"
   18689 		else
   18690 			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
   18691 		fi
   18692 	fi
   18693 
   18694 	if test $ol_with_threads = posix ; then
   18695 		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
   18696 	fi
   18697 	;;
   18698 esac
   18699 
   18700 case $ol_with_threads in auto | yes | mach)
   18701 
   18702 		for ac_header in mach/cthreads.h cthreads.h
   18703 do :
   18704   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   18705 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   18706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   18707   cat >>confdefs.h <<_ACEOF
   18708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   18709 _ACEOF
   18710 
   18711 fi
   18712 
   18713 done
   18714 
   18715 	if test $ac_cv_header_mach_cthreads_h = yes ; then
   18716 		ol_with_threads=found
   18717 
   18718 				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
   18719 if test "x$ac_cv_func_cthread_fork" = xyes; then :
   18720   ol_link_threads=yes
   18721 fi
   18722 
   18723 
   18724 		if test $ol_link_threads = no ; then
   18725 									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
   18726 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
   18727 if ${ol_cv_cthread_all_load+:} false; then :
   18728   $as_echo_n "(cached) " >&6
   18729 else
   18730 
   18731 								save_LIBS="$LIBS"
   18732 				LIBS="-all_load $LIBS"
   18733 				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18734 /* end confdefs.h.  */
   18735 #include <mach/cthreads.h>
   18736 int
   18737 main ()
   18738 {
   18739 
   18740 					cthread_fork((void *)0, (void *)0);
   18741 
   18742   ;
   18743   return 0;
   18744 }
   18745 _ACEOF
   18746 if ac_fn_c_try_link "$LINENO"; then :
   18747   ol_cv_cthread_all_load=yes
   18748 else
   18749   ol_cv_cthread_all_load=no
   18750 fi
   18751 rm -f core conftest.err conftest.$ac_objext \
   18752     conftest$ac_exeext conftest.$ac_ext
   18753 								LIBS="$save_LIBS"
   18754 
   18755 fi
   18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
   18757 $as_echo "$ol_cv_cthread_all_load" >&6; }
   18758 
   18759 			if test $ol_cv_cthread_all_load = yes ; then
   18760 				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
   18761 				ol_link_threads=mach
   18762 				ol_with_threads=found
   18763 			fi
   18764 		fi
   18765 
   18766 	elif test $ac_cv_header_cthreads_h = yes ; then
   18767 
   18768 		ol_with_threads=found
   18769 
   18770 				save_LIBS="$LIBS"
   18771 		LIBS="$LIBS -lthreads"
   18772 		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
   18773 if test "x$ac_cv_func_cthread_fork" = xyes; then :
   18774   ol_link_threads=yes
   18775 fi
   18776 
   18777 		LIBS="$save_LIBS"
   18778 
   18779 		if test $ol_link_threads = yes ; then
   18780 			LTHREAD_LIBS="-lthreads"
   18781 			ol_link_threads=mach
   18782 			ol_with_threads=found
   18783 		else
   18784 			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
   18785 		fi
   18786 
   18787 	elif test $ol_with_threads = mach ; then
   18788 		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
   18789 	fi
   18790 
   18791 	if test $ol_link_threads = mach ; then
   18792 
   18793 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
   18794 
   18795 	elif test $ol_with_threads = found ; then
   18796 		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
   18797 	fi
   18798 	;;
   18799 esac
   18800 
   18801 case $ol_with_threads in auto | yes | pth)
   18802 
   18803 	for ac_header in pth.h
   18804 do :
   18805   ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
   18806 if test "x$ac_cv_header_pth_h" = xyes; then :
   18807   cat >>confdefs.h <<_ACEOF
   18808 #define HAVE_PTH_H 1
   18809 _ACEOF
   18810 
   18811 fi
   18812 
   18813 done
   18814 
   18815 
   18816 	if test $ac_cv_header_pth_h = yes ; then
   18817 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
   18818 $as_echo_n "checking for pth_version in -lpth... " >&6; }
   18819 if ${ac_cv_lib_pth_pth_version+:} false; then :
   18820   $as_echo_n "(cached) " >&6
   18821 else
   18822   ac_check_lib_save_LIBS=$LIBS
   18823 LIBS="-lpth  $LIBS"
   18824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18825 /* end confdefs.h.  */
   18826 
   18827 /* Override any GCC internal prototype to avoid an error.
   18828    Use char because int might match the return type of a GCC
   18829    builtin and then its argument prototype would still apply.  */
   18830 #ifdef __cplusplus
   18831 extern "C"
   18832 #endif
   18833 char pth_version ();
   18834 int
   18835 main ()
   18836 {
   18837 return pth_version ();
   18838   ;
   18839   return 0;
   18840 }
   18841 _ACEOF
   18842 if ac_fn_c_try_link "$LINENO"; then :
   18843   ac_cv_lib_pth_pth_version=yes
   18844 else
   18845   ac_cv_lib_pth_pth_version=no
   18846 fi
   18847 rm -f core conftest.err conftest.$ac_objext \
   18848     conftest$ac_exeext conftest.$ac_ext
   18849 LIBS=$ac_check_lib_save_LIBS
   18850 fi
   18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
   18852 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
   18853 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
   18854   have_pth=yes
   18855 else
   18856   have_pth=no
   18857 fi
   18858 
   18859 
   18860 		if test $have_pth = yes ; then
   18861 
   18862 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
   18863 
   18864 			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
   18865 			ol_link_threads=pth
   18866 			ol_with_threads=found
   18867 
   18868 			if test x$ol_with_yielding_select = xauto ; then
   18869 				ol_with_yielding_select=yes
   18870 			fi
   18871 		fi
   18872 	fi
   18873 	;;
   18874 esac
   18875 
   18876 case $ol_with_threads in auto | yes | lwp)
   18877 
   18878 		for ac_header in thread.h synch.h
   18879 do :
   18880   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   18881 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   18882 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   18883   cat >>confdefs.h <<_ACEOF
   18884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   18885 _ACEOF
   18886 
   18887 fi
   18888 
   18889 done
   18890 
   18891 	if test $ac_cv_header_thread_h = yes &&
   18892 	   test $ac_cv_header_synch_h = yes ; then
   18893 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
   18894 $as_echo_n "checking for thr_create in -lthread... " >&6; }
   18895 if ${ac_cv_lib_thread_thr_create+:} false; then :
   18896   $as_echo_n "(cached) " >&6
   18897 else
   18898   ac_check_lib_save_LIBS=$LIBS
   18899 LIBS="-lthread  $LIBS"
   18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18901 /* end confdefs.h.  */
   18902 
   18903 /* Override any GCC internal prototype to avoid an error.
   18904    Use char because int might match the return type of a GCC
   18905    builtin and then its argument prototype would still apply.  */
   18906 #ifdef __cplusplus
   18907 extern "C"
   18908 #endif
   18909 char thr_create ();
   18910 int
   18911 main ()
   18912 {
   18913 return thr_create ();
   18914   ;
   18915   return 0;
   18916 }
   18917 _ACEOF
   18918 if ac_fn_c_try_link "$LINENO"; then :
   18919   ac_cv_lib_thread_thr_create=yes
   18920 else
   18921   ac_cv_lib_thread_thr_create=no
   18922 fi
   18923 rm -f core conftest.err conftest.$ac_objext \
   18924     conftest$ac_exeext conftest.$ac_ext
   18925 LIBS=$ac_check_lib_save_LIBS
   18926 fi
   18927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
   18928 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
   18929 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
   18930   have_thr=yes
   18931 else
   18932   have_thr=no
   18933 fi
   18934 
   18935 
   18936 		if test $have_thr = yes ; then
   18937 
   18938 $as_echo "#define HAVE_THR 1" >>confdefs.h
   18939 
   18940 			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
   18941 			ol_link_threads=thr
   18942 
   18943 			if test x$ol_with_yielding_select = xauto ; then
   18944 				ol_with_yielding_select=yes
   18945 			fi
   18946 
   18947 						for ac_func in \
   18948 				thr_setconcurrency \
   18949 				thr_getconcurrency \
   18950 
   18951 do :
   18952   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   18953 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   18954 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   18955   cat >>confdefs.h <<_ACEOF
   18956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   18957 _ACEOF
   18958 
   18959 fi
   18960 done
   18961 
   18962 		fi
   18963 	fi
   18964 
   18965 		for ac_header in lwp/lwp.h
   18966 do :
   18967   ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
   18968 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
   18969   cat >>confdefs.h <<_ACEOF
   18970 #define HAVE_LWP_LWP_H 1
   18971 _ACEOF
   18972 
   18973 fi
   18974 
   18975 done
   18976 
   18977 	if test $ac_cv_header_lwp_lwp_h = yes ; then
   18978 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
   18979 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
   18980 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
   18981   $as_echo_n "(cached) " >&6
   18982 else
   18983   ac_check_lib_save_LIBS=$LIBS
   18984 LIBS="-llwp  $LIBS"
   18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18986 /* end confdefs.h.  */
   18987 
   18988 /* Override any GCC internal prototype to avoid an error.
   18989    Use char because int might match the return type of a GCC
   18990    builtin and then its argument prototype would still apply.  */
   18991 #ifdef __cplusplus
   18992 extern "C"
   18993 #endif
   18994 char lwp_create ();
   18995 int
   18996 main ()
   18997 {
   18998 return lwp_create ();
   18999   ;
   19000   return 0;
   19001 }
   19002 _ACEOF
   19003 if ac_fn_c_try_link "$LINENO"; then :
   19004   ac_cv_lib_lwp_lwp_create=yes
   19005 else
   19006   ac_cv_lib_lwp_lwp_create=no
   19007 fi
   19008 rm -f core conftest.err conftest.$ac_objext \
   19009     conftest$ac_exeext conftest.$ac_ext
   19010 LIBS=$ac_check_lib_save_LIBS
   19011 fi
   19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
   19013 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
   19014 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
   19015   have_lwp=yes
   19016 else
   19017   have_lwp=no
   19018 fi
   19019 
   19020 
   19021 		if test $have_lwp = yes ; then
   19022 
   19023 $as_echo "#define HAVE_LWP 1" >>confdefs.h
   19024 
   19025 			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
   19026 			ol_link_threads=lwp
   19027 
   19028 			if test x$ol_with_yielding_select = xauto ; then
   19029 				ol_with_yielding_select=no
   19030 			fi
   19031 		fi
   19032 	fi
   19033 	;;
   19034 esac
   19035 
   19036 if test $ol_with_yielding_select = yes ; then
   19037 
   19038 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
   19039 
   19040 fi
   19041 
   19042 if test $ol_with_threads = manual ; then
   19043 		ol_link_threads=yes
   19044 
   19045 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
   19046 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
   19047 
   19048 	for ac_header in pthread.h sched.h
   19049 do :
   19050   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   19051 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   19052 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   19053   cat >>confdefs.h <<_ACEOF
   19054 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   19055 _ACEOF
   19056 
   19057 fi
   19058 
   19059 done
   19060 
   19061 	for ac_func in sched_yield pthread_yield
   19062 do :
   19063   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   19064 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   19065 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   19066   cat >>confdefs.h <<_ACEOF
   19067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   19068 _ACEOF
   19069 
   19070 fi
   19071 done
   19072 
   19073 
   19074 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
   19075 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
   19076 if ${ol_cv_header_linux_threads+:} false; then :
   19077   $as_echo_n "(cached) " >&6
   19078 else
   19079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19080 /* end confdefs.h.  */
   19081 #include <pthread.h>
   19082 _ACEOF
   19083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   19084   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
   19085   ol_cv_header_linux_threads=yes
   19086 else
   19087   ol_cv_header_linux_threads=no
   19088 fi
   19089 rm -f conftest*
   19090 
   19091 
   19092 fi
   19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
   19094 $as_echo "$ol_cv_header_linux_threads" >&6; }
   19095 	if test $ol_cv_header_linux_threads = yes; then
   19096 
   19097 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
   19098 
   19099 	fi
   19100 
   19101 
   19102 	for ac_header in mach/cthreads.h
   19103 do :
   19104   ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
   19105 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
   19106   cat >>confdefs.h <<_ACEOF
   19107 #define HAVE_MACH_CTHREADS_H 1
   19108 _ACEOF
   19109 
   19110 fi
   19111 
   19112 done
   19113 
   19114 	for ac_header in lwp/lwp.h
   19115 do :
   19116   ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
   19117 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
   19118   cat >>confdefs.h <<_ACEOF
   19119 #define HAVE_LWP_LWP_H 1
   19120 _ACEOF
   19121 
   19122 fi
   19123 
   19124 done
   19125 
   19126 	for ac_header in thread.h synch.h
   19127 do :
   19128   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   19129 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   19130 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   19131   cat >>confdefs.h <<_ACEOF
   19132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   19133 _ACEOF
   19134 
   19135 fi
   19136 
   19137 done
   19138 
   19139 fi
   19140 
   19141 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
   19142 
   19143 $as_echo "#define REENTRANT 1" >>confdefs.h
   19144 
   19145 
   19146 $as_echo "#define _REENTRANT 1" >>confdefs.h
   19147 
   19148 
   19149 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
   19150 
   19151 
   19152 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
   19153 
   19154 
   19155 $as_echo "#define THREADSAFE 1" >>confdefs.h
   19156 
   19157 
   19158 $as_echo "#define _THREADSAFE 1" >>confdefs.h
   19159 
   19160 
   19161 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
   19162 
   19163 
   19164 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
   19165 $as_echo_n "checking for thread specific errno... " >&6; }
   19166 if ${ol_cv_errno_thread_specific+:} false; then :
   19167   $as_echo_n "(cached) " >&6
   19168 else
   19169 
   19170 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19171 /* end confdefs.h.  */
   19172 #include <errno.h>
   19173 int
   19174 main ()
   19175 {
   19176 errno = 0;
   19177   ;
   19178   return 0;
   19179 }
   19180 _ACEOF
   19181 if ac_fn_c_try_link "$LINENO"; then :
   19182   ol_cv_errno_thread_specific=yes
   19183 else
   19184   ol_cv_errno_thread_specific=no
   19185 fi
   19186 rm -f core conftest.err conftest.$ac_objext \
   19187     conftest$ac_exeext conftest.$ac_ext
   19188 
   19189 fi
   19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
   19191 $as_echo "$ol_cv_errno_thread_specific" >&6; }
   19192 
   19193 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
   19194 $as_echo_n "checking for thread specific h_errno... " >&6; }
   19195 if ${ol_cv_h_errno_thread_specific+:} false; then :
   19196   $as_echo_n "(cached) " >&6
   19197 else
   19198 
   19199 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19200 /* end confdefs.h.  */
   19201 #include <netdb.h>
   19202 int
   19203 main ()
   19204 {
   19205 h_errno = 0;
   19206   ;
   19207   return 0;
   19208 }
   19209 _ACEOF
   19210 if ac_fn_c_try_link "$LINENO"; then :
   19211   ol_cv_h_errno_thread_specific=yes
   19212 else
   19213   ol_cv_h_errno_thread_specific=no
   19214 fi
   19215 rm -f core conftest.err conftest.$ac_objext \
   19216     conftest$ac_exeext conftest.$ac_ext
   19217 
   19218 fi
   19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
   19220 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
   19221 
   19222 	if test $ol_cv_errno_thread_specific != yes ||
   19223 	   test $ol_cv_h_errno_thread_specific != yes ; then
   19224 		LIBS="$LTHREAD_LIBS $LIBS"
   19225 		LTHREAD_LIBS=""
   19226 	fi
   19227 
   19228 fi
   19229 
   19230 if test $ol_link_threads = no ; then
   19231 	if test $ol_with_threads = yes ; then
   19232 		as_fn_error $? "no suitable thread support" "$LINENO" 5
   19233 	fi
   19234 
   19235 	if test $ol_with_threads = auto ; then
   19236 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
   19237 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
   19238 		ol_with_threads=no
   19239 	fi
   19240 
   19241 
   19242 $as_echo "#define NO_THREADS 1" >>confdefs.h
   19243 
   19244 	LTHREAD_LIBS=""
   19245 	BUILD_THREAD=no
   19246 else
   19247 	BUILD_THREAD=yes
   19248 fi
   19249 
   19250 if test $ol_link_threads != no ; then
   19251 
   19252 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
   19253 
   19254 fi
   19255 
   19256 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   19257 case "$ol_with_threads" in
   19258  no)
   19259     ol_pthread_ok=no
   19260 
   19261     ;;
   19262  *)
   19263 
   19264 	have_pthreads=yes
   19265 	PTHREAD_LIBS="$LTHREAD_LIBS"
   19266 	CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   19267 	# The cast to long int works around a bug in the HP C Compiler
   19268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   19269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   19270 # This bug is HP SR number 8606223364.
   19271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
   19272 $as_echo_n "checking size of pthread_t... " >&6; }
   19273 if ${ac_cv_sizeof_pthread_t+:} false; then :
   19274   $as_echo_n "(cached) " >&6
   19275 else
   19276   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
   19277 		$ac_includes_default
   19278 		#include <pthread.h>
   19279 
   19280 
   19281 "; then :
   19282 
   19283 else
   19284   if test "$ac_cv_type_pthread_t" = yes; then
   19285      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19287 as_fn_error 77 "cannot compute sizeof (pthread_t)
   19288 See \`config.log' for more details" "$LINENO" 5; }
   19289    else
   19290      ac_cv_sizeof_pthread_t=0
   19291    fi
   19292 fi
   19293 
   19294 fi
   19295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
   19296 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
   19297 
   19298 
   19299 
   19300 cat >>confdefs.h <<_ACEOF
   19301 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
   19302 _ACEOF
   19303 
   19304 
   19305 
   19306     ;;
   19307 esac
   19308 
   19309 ac_ext=c
   19310 ac_cpp='$CPP $CPPFLAGS'
   19311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19314 
   19315 
   19316 fi
   19317 
   19318 
   19319  if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
   19320   PTHREADS_TRUE=
   19321   PTHREADS_FALSE='#'
   19322 else
   19323   PTHREADS_TRUE='#'
   19324   PTHREADS_FALSE=
   19325 fi
   19326 
   19327 
   19328 # check if we should compile locking into the library
   19329 if test x$enable_thread_support = xno; then
   19330 
   19331 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
   19332 
   19333 fi
   19334 
   19335 # check if we should hard-code the mm functions.
   19336 if test x$enable_malloc_replacement = xno; then
   19337 
   19338 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
   19339 
   19340 fi
   19341 
   19342 # check if we should hard-code debugging out
   19343 if test x$enable_debug_mode = xno; then
   19344 
   19345 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
   19346 
   19347 fi
   19348 
   19349 # check if we should enable verbose debugging
   19350 if test x$enable_verbose_debug = xyes; then
   19351 	CFLAGS="$CFLAGS -DUSE_DEBUG"
   19352 fi
   19353 
   19354 # check if we have and should use openssl
   19355  if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
   19356   OPENSSL_TRUE=
   19357   OPENSSL_FALSE='#'
   19358 else
   19359   OPENSSL_TRUE='#'
   19360   OPENSSL_FALSE=
   19361 fi
   19362 
   19363 
   19364 # Add some more warnings which we use in development but not in the
   19365 # released versions.  (Some relevant gcc versions can't handle these.)
   19366 if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
   19367 
   19368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19369 /* end confdefs.h.  */
   19370 
   19371 int
   19372 main ()
   19373 {
   19374 
   19375 #if !defined(__GNUC__) || (__GNUC__ < 4)
   19376 #error
   19377 #endif
   19378   ;
   19379   return 0;
   19380 }
   19381 _ACEOF
   19382 if ac_fn_c_try_compile "$LINENO"; then :
   19383   have_gcc4=yes
   19384 else
   19385   have_gcc4=no
   19386 fi
   19387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19388 
   19389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19390 /* end confdefs.h.  */
   19391 
   19392 int
   19393 main ()
   19394 {
   19395 
   19396 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
   19397 #error
   19398 #endif
   19399   ;
   19400   return 0;
   19401 }
   19402 _ACEOF
   19403 if ac_fn_c_try_compile "$LINENO"; then :
   19404   have_gcc42=yes
   19405 else
   19406   have_gcc42=no
   19407 fi
   19408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19409 
   19410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19411 /* end confdefs.h.  */
   19412 
   19413 int
   19414 main ()
   19415 {
   19416 
   19417 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
   19418 #error
   19419 #endif
   19420   ;
   19421   return 0;
   19422 }
   19423 _ACEOF
   19424 if ac_fn_c_try_compile "$LINENO"; then :
   19425   have_gcc45=yes
   19426 else
   19427   have_gcc45=no
   19428 fi
   19429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19430 
   19431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19432 /* end confdefs.h.  */
   19433 
   19434 int
   19435 main ()
   19436 {
   19437 
   19438 #if !defined(__clang__)
   19439 #error
   19440 #endif
   19441   ;
   19442   return 0;
   19443 }
   19444 _ACEOF
   19445 if ac_fn_c_try_compile "$LINENO"; then :
   19446   have_clang=yes
   19447 else
   19448   have_clang=no
   19449 fi
   19450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19451 
   19452   CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum"
   19453   if test x$enable_gcc_warnings = xyes; then
   19454     CFLAGS="$CFLAGS -Werror"
   19455   fi
   19456 
   19457   CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
   19458 
   19459   if test x$have_gcc4 = xyes ; then
   19460     # These warnings break gcc 3.3.5 and work on gcc 4.0.2
   19461     CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
   19462     #CFLAGS="$CFLAGS -Wold-style-definition"
   19463   fi
   19464 
   19465   if test x$have_gcc42 = xyes ; then
   19466     # These warnings break gcc 4.0.2 and work on gcc 4.2
   19467     CFLAGS="$CFLAGS -Waddress"
   19468   fi
   19469 
   19470   if test x$have_gcc42 = xyes && test x$have_clang = xno; then
   19471     # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
   19472     CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
   19473   fi
   19474 
   19475   if test x$have_gcc45 = xyes ; then
   19476     # These warnings work on gcc 4.5
   19477     CFLAGS="$CFLAGS -Wlogical-op"
   19478   fi
   19479 
   19480   if test x$have_clang = xyes; then
   19481     # Disable the unused-function warnings, because these trigger
   19482     # for minheap-internal.h related code.
   19483     CFLAGS="$CFLAGS -Wno-unused-function"
   19484 
   19485     # clang on macosx emits warnigns for each directory specified which
   19486     # isn't "used" generating a lot of build noise (typically 3 warnings
   19487     # per file
   19488     case "$host_os" in
   19489         darwin*)
   19490             CFLAGS="$CFLAGS -Qunused-arguments"
   19491         ;;
   19492     esac
   19493   fi
   19494 
   19495 ##This will break the world on some 64-bit architectures
   19496 # CFLAGS="$CFLAGS -Winline"
   19497 
   19498 fi
   19499 
   19500 LIBEVENT_GC_SECTIONS=
   19501 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
   19502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
   19503 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
   19504 if ${libevent_cv_gc_sections_runs+:} false; then :
   19505   $as_echo_n "(cached) " >&6
   19506 else
   19507 
   19508 	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
   19509 	    CFLAGS="$CFLAGS -Wl,--gc-sections"
   19510 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19511 /* end confdefs.h.  */
   19512 
   19513 			#include <stdlib.h>
   19514 			#include <stdio.h>
   19515 
   19516 int
   19517 main ()
   19518 {
   19519 
   19520 			FILE *	fpC;
   19521 			char	buf[32];
   19522 			size_t	cch;
   19523 			int	read_success_once;
   19524 
   19525 			fpC = fopen("conftest.c", "r");
   19526 			if (NULL == fpC)
   19527 				exit(1);
   19528 			do {
   19529 				cch = fread(buf, sizeof(buf), 1, fpC);
   19530 				read_success_once |= (0 != cch);
   19531 			} while (0 != cch);
   19532 			if (!read_success_once)
   19533 				exit(2);
   19534 			if (!feof(fpC))
   19535 				exit(3);
   19536 			if (0 != fclose(fpC))
   19537 				exit(4);
   19538 
   19539 			exit(EXIT_SUCCESS);
   19540 
   19541 
   19542   ;
   19543   return 0;
   19544 }
   19545 _ACEOF
   19546 if ac_fn_c_try_link "$LINENO"; then :
   19547 
   19548                                                             		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
   19549 			libevent_cv_gc_sections_runs=no
   19550 		    else
   19551 			libevent_cv_gc_sections_runs=no
   19552 			./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
   19553 		    fi
   19554 
   19555 else
   19556   libevent_cv_gc_sections_runs=no
   19557 
   19558 fi
   19559 rm -f core conftest.err conftest.$ac_objext \
   19560     conftest$ac_exeext conftest.$ac_ext
   19561 	    CFLAGS="$origCFLAGS"
   19562 	    { origCFLAGS=; unset origCFLAGS;}
   19563 
   19564 
   19565 fi
   19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
   19567 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
   19568     case "$libevent_cv_gc_sections_runs" in
   19569      yes)
   19570 	CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
   19571 	LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
   19572 	;;
   19573     esac
   19574 fi
   19575 
   19576 
   19577  if test "$enable_libevent_install" = "yes"; then
   19578   INSTALL_LIBEVENT_TRUE=
   19579   INSTALL_LIBEVENT_FALSE='#'
   19580 else
   19581   INSTALL_LIBEVENT_TRUE='#'
   19582   INSTALL_LIBEVENT_FALSE=
   19583 fi
   19584 
   19585 
   19586 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
   19587 
   19588 ac_config_files="$ac_config_files Makefile"
   19589 
   19590 cat >confcache <<\_ACEOF
   19591 # This file is a shell script that caches the results of configure
   19592 # tests run on this system so they can be shared between configure
   19593 # scripts and configure runs, see configure's option --config-cache.
   19594 # It is not useful on other systems.  If it contains results you don't
   19595 # want to keep, you may remove or edit it.
   19596 #
   19597 # config.status only pays attention to the cache file if you give it
   19598 # the --recheck option to rerun configure.
   19599 #
   19600 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   19601 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   19602 # following values.
   19603 
   19604 _ACEOF
   19605 
   19606 # The following way of writing the cache mishandles newlines in values,
   19607 # but we know of no workaround that is simple, portable, and efficient.
   19608 # So, we kill variables containing newlines.
   19609 # Ultrix sh set writes to stderr and can't be redirected directly,
   19610 # and sets the high bit in the cache file unless we assign to the vars.
   19611 (
   19612   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   19613     eval ac_val=\$$ac_var
   19614     case $ac_val in #(
   19615     *${as_nl}*)
   19616       case $ac_var in #(
   19617       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   19618 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   19619       esac
   19620       case $ac_var in #(
   19621       _ | IFS | as_nl) ;; #(
   19622       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   19623       *) { eval $ac_var=; unset $ac_var;} ;;
   19624       esac ;;
   19625     esac
   19626   done
   19627 
   19628   (set) 2>&1 |
   19629     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   19630     *${as_nl}ac_space=\ *)
   19631       # `set' does not quote correctly, so add quotes: double-quote
   19632       # substitution turns \\\\ into \\, and sed turns \\ into \.
   19633       sed -n \
   19634 	"s/'/'\\\\''/g;
   19635 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   19636       ;; #(
   19637     *)
   19638       # `set' quotes correctly as required by POSIX, so do not add quotes.
   19639       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   19640       ;;
   19641     esac |
   19642     sort
   19643 ) |
   19644   sed '
   19645      /^ac_cv_env_/b end
   19646      t clear
   19647      :clear
   19648      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   19649      t end
   19650      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   19651      :end' >>confcache
   19652 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   19653   if test -w "$cache_file"; then
   19654     if test "x$cache_file" != "x/dev/null"; then
   19655       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   19656 $as_echo "$as_me: updating cache $cache_file" >&6;}
   19657       if test ! -f "$cache_file" || test -h "$cache_file"; then
   19658 	cat confcache >"$cache_file"
   19659       else
   19660         case $cache_file in #(
   19661         */* | ?:*)
   19662 	  mv -f confcache "$cache_file"$$ &&
   19663 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   19664         *)
   19665 	  mv -f confcache "$cache_file" ;;
   19666 	esac
   19667       fi
   19668     fi
   19669   else
   19670     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   19671 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   19672   fi
   19673 fi
   19674 rm -f confcache
   19675 
   19676 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   19677 # Let make expand exec_prefix.
   19678 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   19679 
   19680 DEFS=-DHAVE_CONFIG_H
   19681 
   19682 ac_libobjs=
   19683 ac_ltlibobjs=
   19684 U=
   19685 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   19686   # 1. Remove the extension, and $U if already installed.
   19687   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   19688   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   19689   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   19690   #    will be set to the directory where LIBOBJS objects are built.
   19691   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   19692   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   19693 done
   19694 LIBOBJS=$ac_libobjs
   19695 
   19696 LTLIBOBJS=$ac_ltlibobjs
   19697 
   19698 
   19699  if test -n "$EXEEXT"; then
   19700   am__EXEEXT_TRUE=
   19701   am__EXEEXT_FALSE='#'
   19702 else
   19703   am__EXEEXT_TRUE='#'
   19704   am__EXEEXT_FALSE=
   19705 fi
   19706 
   19707 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   19708   as_fn_error $? "conditional \"AMDEP\" was never defined.
   19709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19710 fi
   19711 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   19712   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
   19713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19714 fi
   19715 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
   19716   as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
   19717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19718 fi
   19719 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
   19720   as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
   19721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19722 fi
   19723 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
   19724   as_fn_error $? "conditional \"OPENSSL\" was never defined.
   19725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19726 fi
   19727 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
   19728   as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
   19729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19730 fi
   19731 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
   19732   as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
   19733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19734 fi
   19735 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
   19736   as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
   19737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19738 fi
   19739 if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then
   19740   as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined.
   19741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19742 fi
   19743 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
   19744   as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
   19745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19746 fi
   19747 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
   19748   as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
   19749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19750 fi
   19751 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
   19752   as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
   19753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19754 fi
   19755 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
   19756   as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
   19757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19758 fi
   19759 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
   19760   as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
   19761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19762 fi
   19763 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
   19764   as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
   19765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19766 fi
   19767 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
   19768   as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
   19769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19770 fi
   19771 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
   19772   as_fn_error $? "conditional \"PTHREADS\" was never defined.
   19773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19774 fi
   19775 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
   19776   as_fn_error $? "conditional \"OPENSSL\" was never defined.
   19777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19778 fi
   19779 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
   19780   as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
   19781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19782 fi
   19783 
   19784 : "${CONFIG_STATUS=./config.status}"
   19785 ac_write_fail=0
   19786 ac_clean_files_save=$ac_clean_files
   19787 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   19788 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   19789 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   19790 as_write_fail=0
   19791 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   19792 #! $SHELL
   19793 # Generated by $as_me.
   19794 # Run this file to recreate the current configuration.
   19795 # Compiler output produced by configure, useful for debugging
   19796 # configure, is in config.log if it exists.
   19797 
   19798 debug=false
   19799 ac_cs_recheck=false
   19800 ac_cs_silent=false
   19801 
   19802 SHELL=\${CONFIG_SHELL-$SHELL}
   19803 export SHELL
   19804 _ASEOF
   19805 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   19806 ## -------------------- ##
   19807 ## M4sh Initialization. ##
   19808 ## -------------------- ##
   19809 
   19810 # Be more Bourne compatible
   19811 DUALCASE=1; export DUALCASE # for MKS sh
   19812 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   19813   emulate sh
   19814   NULLCMD=:
   19815   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   19816   # is contrary to our usage.  Disable this feature.
   19817   alias -g '${1+"$@"}'='"$@"'
   19818   setopt NO_GLOB_SUBST
   19819 else
   19820   case `(set -o) 2>/dev/null` in #(
   19821   *posix*) :
   19822     set -o posix ;; #(
   19823   *) :
   19824      ;;
   19825 esac
   19826 fi
   19827 
   19828 
   19829 as_nl='
   19830 '
   19831 export as_nl
   19832 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   19833 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   19834 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   19835 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   19836 # Prefer a ksh shell builtin over an external printf program on Solaris,
   19837 # but without wasting forks for bash or zsh.
   19838 if test -z "$BASH_VERSION$ZSH_VERSION" \
   19839     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   19840   as_echo='print -r --'
   19841   as_echo_n='print -rn --'
   19842 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   19843   as_echo='printf %s\n'
   19844   as_echo_n='printf %s'
   19845 else
   19846   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   19847     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   19848     as_echo_n='/usr/ucb/echo -n'
   19849   else
   19850     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   19851     as_echo_n_body='eval
   19852       arg=$1;
   19853       case $arg in #(
   19854       *"$as_nl"*)
   19855 	expr "X$arg" : "X\\(.*\\)$as_nl";
   19856 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   19857       esac;
   19858       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   19859     '
   19860     export as_echo_n_body
   19861     as_echo_n='sh -c $as_echo_n_body as_echo'
   19862   fi
   19863   export as_echo_body
   19864   as_echo='sh -c $as_echo_body as_echo'
   19865 fi
   19866 
   19867 # The user is always right.
   19868 if test "${PATH_SEPARATOR+set}" != set; then
   19869   PATH_SEPARATOR=:
   19870   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   19871     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   19872       PATH_SEPARATOR=';'
   19873   }
   19874 fi
   19875 
   19876 
   19877 # IFS
   19878 # We need space, tab and new line, in precisely that order.  Quoting is
   19879 # there to prevent editors from complaining about space-tab.
   19880 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   19881 # splitting by setting IFS to empty value.)
   19882 IFS=" ""	$as_nl"
   19883 
   19884 # Find who we are.  Look in the path if we contain no directory separator.
   19885 as_myself=
   19886 case $0 in #((
   19887   *[\\/]* ) as_myself=$0 ;;
   19888   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19889 for as_dir in $PATH
   19890 do
   19891   IFS=$as_save_IFS
   19892   test -z "$as_dir" && as_dir=.
   19893     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   19894   done
   19895 IFS=$as_save_IFS
   19896 
   19897      ;;
   19898 esac
   19899 # We did not find ourselves, most probably we were run as `sh COMMAND'
   19900 # in which case we are not to be found in the path.
   19901 if test "x$as_myself" = x; then
   19902   as_myself=$0
   19903 fi
   19904 if test ! -f "$as_myself"; then
   19905   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   19906   exit 1
   19907 fi
   19908 
   19909 # Unset variables that we do not need and which cause bugs (e.g. in
   19910 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   19911 # suppresses any "Segmentation fault" message there.  '((' could
   19912 # trigger a bug in pdksh 5.2.14.
   19913 for as_var in BASH_ENV ENV MAIL MAILPATH
   19914 do eval test x\${$as_var+set} = xset \
   19915   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   19916 done
   19917 PS1='$ '
   19918 PS2='> '
   19919 PS4='+ '
   19920 
   19921 # NLS nuisances.
   19922 LC_ALL=C
   19923 export LC_ALL
   19924 LANGUAGE=C
   19925 export LANGUAGE
   19926 
   19927 # CDPATH.
   19928 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   19929 
   19930 
   19931 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   19932 # ----------------------------------------
   19933 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   19934 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   19935 # script with STATUS, using 1 if that was 0.
   19936 as_fn_error ()
   19937 {
   19938   as_status=$1; test $as_status -eq 0 && as_status=1
   19939   if test "$4"; then
   19940     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   19941     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   19942   fi
   19943   $as_echo "$as_me: error: $2" >&2
   19944   as_fn_exit $as_status
   19945 } # as_fn_error
   19946 
   19947 
   19948 # as_fn_set_status STATUS
   19949 # -----------------------
   19950 # Set $? to STATUS, without forking.
   19951 as_fn_set_status ()
   19952 {
   19953   return $1
   19954 } # as_fn_set_status
   19955 
   19956 # as_fn_exit STATUS
   19957 # -----------------
   19958 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   19959 as_fn_exit ()
   19960 {
   19961   set +e
   19962   as_fn_set_status $1
   19963   exit $1
   19964 } # as_fn_exit
   19965 
   19966 # as_fn_unset VAR
   19967 # ---------------
   19968 # Portably unset VAR.
   19969 as_fn_unset ()
   19970 {
   19971   { eval $1=; unset $1;}
   19972 }
   19973 as_unset=as_fn_unset
   19974 # as_fn_append VAR VALUE
   19975 # ----------------------
   19976 # Append the text in VALUE to the end of the definition contained in VAR. Take
   19977 # advantage of any shell optimizations that allow amortized linear growth over
   19978 # repeated appends, instead of the typical quadratic growth present in naive
   19979 # implementations.
   19980 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   19981   eval 'as_fn_append ()
   19982   {
   19983     eval $1+=\$2
   19984   }'
   19985 else
   19986   as_fn_append ()
   19987   {
   19988     eval $1=\$$1\$2
   19989   }
   19990 fi # as_fn_append
   19991 
   19992 # as_fn_arith ARG...
   19993 # ------------------
   19994 # Perform arithmetic evaluation on the ARGs, and store the result in the
   19995 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   19996 # must be portable across $(()) and expr.
   19997 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   19998   eval 'as_fn_arith ()
   19999   {
   20000     as_val=$(( $* ))
   20001   }'
   20002 else
   20003   as_fn_arith ()
   20004   {
   20005     as_val=`expr "$@" || test $? -eq 1`
   20006   }
   20007 fi # as_fn_arith
   20008 
   20009 
   20010 if expr a : '\(a\)' >/dev/null 2>&1 &&
   20011    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   20012   as_expr=expr
   20013 else
   20014   as_expr=false
   20015 fi
   20016 
   20017 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   20018   as_basename=basename
   20019 else
   20020   as_basename=false
   20021 fi
   20022 
   20023 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   20024   as_dirname=dirname
   20025 else
   20026   as_dirname=false
   20027 fi
   20028 
   20029 as_me=`$as_basename -- "$0" ||
   20030 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   20031 	 X"$0" : 'X\(//\)$' \| \
   20032 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   20033 $as_echo X/"$0" |
   20034     sed '/^.*\/\([^/][^/]*\)\/*$/{
   20035 	    s//\1/
   20036 	    q
   20037 	  }
   20038 	  /^X\/\(\/\/\)$/{
   20039 	    s//\1/
   20040 	    q
   20041 	  }
   20042 	  /^X\/\(\/\).*/{
   20043 	    s//\1/
   20044 	    q
   20045 	  }
   20046 	  s/.*/./; q'`
   20047 
   20048 # Avoid depending upon Character Ranges.
   20049 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   20050 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   20051 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   20052 as_cr_digits='0123456789'
   20053 as_cr_alnum=$as_cr_Letters$as_cr_digits
   20054 
   20055 ECHO_C= ECHO_N= ECHO_T=
   20056 case `echo -n x` in #(((((
   20057 -n*)
   20058   case `echo 'xy\c'` in
   20059   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   20060   xy)  ECHO_C='\c';;
   20061   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   20062        ECHO_T='	';;
   20063   esac;;
   20064 *)
   20065   ECHO_N='-n';;
   20066 esac
   20067 
   20068 rm -f conf$$ conf$$.exe conf$$.file
   20069 if test -d conf$$.dir; then
   20070   rm -f conf$$.dir/conf$$.file
   20071 else
   20072   rm -f conf$$.dir
   20073   mkdir conf$$.dir 2>/dev/null
   20074 fi
   20075 if (echo >conf$$.file) 2>/dev/null; then
   20076   if ln -s conf$$.file conf$$ 2>/dev/null; then
   20077     as_ln_s='ln -s'
   20078     # ... but there are two gotchas:
   20079     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   20080     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   20081     # In both cases, we have to default to `cp -p'.
   20082     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   20083       as_ln_s='cp -p'
   20084   elif ln conf$$.file conf$$ 2>/dev/null; then
   20085     as_ln_s=ln
   20086   else
   20087     as_ln_s='cp -p'
   20088   fi
   20089 else
   20090   as_ln_s='cp -p'
   20091 fi
   20092 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   20093 rmdir conf$$.dir 2>/dev/null
   20094 
   20095 
   20096 # as_fn_mkdir_p
   20097 # -------------
   20098 # Create "$as_dir" as a directory, including parents if necessary.
   20099 as_fn_mkdir_p ()
   20100 {
   20101 
   20102   case $as_dir in #(
   20103   -*) as_dir=./$as_dir;;
   20104   esac
   20105   test -d "$as_dir" || eval $as_mkdir_p || {
   20106     as_dirs=
   20107     while :; do
   20108       case $as_dir in #(
   20109       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   20110       *) as_qdir=$as_dir;;
   20111       esac
   20112       as_dirs="'$as_qdir' $as_dirs"
   20113       as_dir=`$as_dirname -- "$as_dir" ||
   20114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   20115 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   20116 	 X"$as_dir" : 'X\(//\)$' \| \
   20117 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   20118 $as_echo X"$as_dir" |
   20119     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   20120 	    s//\1/
   20121 	    q
   20122 	  }
   20123 	  /^X\(\/\/\)[^/].*/{
   20124 	    s//\1/
   20125 	    q
   20126 	  }
   20127 	  /^X\(\/\/\)$/{
   20128 	    s//\1/
   20129 	    q
   20130 	  }
   20131 	  /^X\(\/\).*/{
   20132 	    s//\1/
   20133 	    q
   20134 	  }
   20135 	  s/.*/./; q'`
   20136       test -d "$as_dir" && break
   20137     done
   20138     test -z "$as_dirs" || eval "mkdir $as_dirs"
   20139   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   20140 
   20141 
   20142 } # as_fn_mkdir_p
   20143 if mkdir -p . 2>/dev/null; then
   20144   as_mkdir_p='mkdir -p "$as_dir"'
   20145 else
   20146   test -d ./-p && rmdir ./-p
   20147   as_mkdir_p=false
   20148 fi
   20149 
   20150 if test -x / >/dev/null 2>&1; then
   20151   as_test_x='test -x'
   20152 else
   20153   if ls -dL / >/dev/null 2>&1; then
   20154     as_ls_L_option=L
   20155   else
   20156     as_ls_L_option=
   20157   fi
   20158   as_test_x='
   20159     eval sh -c '\''
   20160       if test -d "$1"; then
   20161 	test -d "$1/.";
   20162       else
   20163 	case $1 in #(
   20164 	-*)set "./$1";;
   20165 	esac;
   20166 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
   20167 	???[sx]*):;;*)false;;esac;fi
   20168     '\'' sh
   20169   '
   20170 fi
   20171 as_executable_p=$as_test_x
   20172 
   20173 # Sed expression to map a string onto a valid CPP name.
   20174 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   20175 
   20176 # Sed expression to map a string onto a valid variable name.
   20177 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   20178 
   20179 
   20180 exec 6>&1
   20181 ## ----------------------------------- ##
   20182 ## Main body of $CONFIG_STATUS script. ##
   20183 ## ----------------------------------- ##
   20184 _ASEOF
   20185 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   20186 
   20187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20188 # Save the log message, to keep $0 and so on meaningful, and to
   20189 # report actual input values of CONFIG_FILES etc. instead of their
   20190 # values after options handling.
   20191 ac_log="
   20192 This file was extended by libevent $as_me 2.1.3-alpha-dev, which was
   20193 generated by GNU Autoconf 2.68.  Invocation command line was
   20194 
   20195   CONFIG_FILES    = $CONFIG_FILES
   20196   CONFIG_HEADERS  = $CONFIG_HEADERS
   20197   CONFIG_LINKS    = $CONFIG_LINKS
   20198   CONFIG_COMMANDS = $CONFIG_COMMANDS
   20199   $ $0 $@
   20200 
   20201 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   20202 "
   20203 
   20204 _ACEOF
   20205 
   20206 case $ac_config_files in *"
   20207 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   20208 esac
   20209 
   20210 case $ac_config_headers in *"
   20211 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   20212 esac
   20213 
   20214 
   20215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20216 # Files that config.status was made for.
   20217 config_files="$ac_config_files"
   20218 config_headers="$ac_config_headers"
   20219 config_commands="$ac_config_commands"
   20220 
   20221 _ACEOF
   20222 
   20223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20224 ac_cs_usage="\
   20225 \`$as_me' instantiates files and other configuration actions
   20226 from templates according to the current configuration.  Unless the files
   20227 and actions are specified as TAGs, all are instantiated by default.
   20228 
   20229 Usage: $0 [OPTION]... [TAG]...
   20230 
   20231   -h, --help       print this help, then exit
   20232   -V, --version    print version number and configuration settings, then exit
   20233       --config     print configuration, then exit
   20234   -q, --quiet, --silent
   20235                    do not print progress messages
   20236   -d, --debug      don't remove temporary files
   20237       --recheck    update $as_me by reconfiguring in the same conditions
   20238       --file=FILE[:TEMPLATE]
   20239                    instantiate the configuration file FILE
   20240       --header=FILE[:TEMPLATE]
   20241                    instantiate the configuration header FILE
   20242 
   20243 Configuration files:
   20244 $config_files
   20245 
   20246 Configuration headers:
   20247 $config_headers
   20248 
   20249 Configuration commands:
   20250 $config_commands
   20251 
   20252 Report bugs to the package provider."
   20253 
   20254 _ACEOF
   20255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20256 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   20257 ac_cs_version="\\
   20258 libevent config.status 2.1.3-alpha-dev
   20259 configured by $0, generated by GNU Autoconf 2.68,
   20260   with options \\"\$ac_cs_config\\"
   20261 
   20262 Copyright (C) 2010 Free Software Foundation, Inc.
   20263 This config.status script is free software; the Free Software Foundation
   20264 gives unlimited permission to copy, distribute and modify it."
   20265 
   20266 ac_pwd='$ac_pwd'
   20267 srcdir='$srcdir'
   20268 INSTALL='$INSTALL'
   20269 MKDIR_P='$MKDIR_P'
   20270 AWK='$AWK'
   20271 test -n "\$AWK" || AWK=awk
   20272 _ACEOF
   20273 
   20274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20275 # The default lists apply if the user does not specify any file.
   20276 ac_need_defaults=:
   20277 while test $# != 0
   20278 do
   20279   case $1 in
   20280   --*=?*)
   20281     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   20282     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   20283     ac_shift=:
   20284     ;;
   20285   --*=)
   20286     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   20287     ac_optarg=
   20288     ac_shift=:
   20289     ;;
   20290   *)
   20291     ac_option=$1
   20292     ac_optarg=$2
   20293     ac_shift=shift
   20294     ;;
   20295   esac
   20296 
   20297   case $ac_option in
   20298   # Handling of the options.
   20299   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   20300     ac_cs_recheck=: ;;
   20301   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   20302     $as_echo "$ac_cs_version"; exit ;;
   20303   --config | --confi | --conf | --con | --co | --c )
   20304     $as_echo "$ac_cs_config"; exit ;;
   20305   --debug | --debu | --deb | --de | --d | -d )
   20306     debug=: ;;
   20307   --file | --fil | --fi | --f )
   20308     $ac_shift
   20309     case $ac_optarg in
   20310     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   20311     '') as_fn_error $? "missing file argument" ;;
   20312     esac
   20313     as_fn_append CONFIG_FILES " '$ac_optarg'"
   20314     ac_need_defaults=false;;
   20315   --header | --heade | --head | --hea )
   20316     $ac_shift
   20317     case $ac_optarg in
   20318     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   20319     esac
   20320     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   20321     ac_need_defaults=false;;
   20322   --he | --h)
   20323     # Conflict between --help and --header
   20324     as_fn_error $? "ambiguous option: \`$1'
   20325 Try \`$0 --help' for more information.";;
   20326   --help | --hel | -h )
   20327     $as_echo "$ac_cs_usage"; exit ;;
   20328   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   20329   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   20330     ac_cs_silent=: ;;
   20331 
   20332   # This is an error.
   20333   -*) as_fn_error $? "unrecognized option: \`$1'
   20334 Try \`$0 --help' for more information." ;;
   20335 
   20336   *) as_fn_append ac_config_targets " $1"
   20337      ac_need_defaults=false ;;
   20338 
   20339   esac
   20340   shift
   20341 done
   20342 
   20343 ac_configure_extra_args=
   20344 
   20345 if $ac_cs_silent; then
   20346   exec 6>/dev/null
   20347   ac_configure_extra_args="$ac_configure_extra_args --silent"
   20348 fi
   20349 
   20350 _ACEOF
   20351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20352 if \$ac_cs_recheck; then
   20353   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   20354   shift
   20355   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   20356   CONFIG_SHELL='$SHELL'
   20357   export CONFIG_SHELL
   20358   exec "\$@"
   20359 fi
   20360 
   20361 _ACEOF
   20362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20363 exec 5>>config.log
   20364 {
   20365   echo
   20366   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   20367 ## Running $as_me. ##
   20368 _ASBOX
   20369   $as_echo "$ac_log"
   20370 } >&5
   20371 
   20372 _ACEOF
   20373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20374 #
   20375 # INIT-COMMANDS
   20376 #
   20377 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
   20378 
   20379 
   20380 # The HP-UX ksh and POSIX shell print the target directory to stdout
   20381 # if CDPATH is set.
   20382 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   20383 
   20384 sed_quote_subst='$sed_quote_subst'
   20385 double_quote_subst='$double_quote_subst'
   20386 delay_variable_subst='$delay_variable_subst'
   20387 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   20388 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   20389 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   20390 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   20391 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   20392 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   20393 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   20394 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   20395 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   20396 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   20397 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   20398 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   20399 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   20400 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   20401 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   20402 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   20403 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   20404 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   20405 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   20406 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   20407 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   20408 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   20409 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   20410 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   20411 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   20412 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   20413 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   20414 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   20415 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   20416 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   20417 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   20418 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   20419 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   20420 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   20421 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   20422 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   20423 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   20424 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   20425 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   20426 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   20427 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   20428 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   20429 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   20430 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   20431 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   20432 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   20433 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   20434 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   20435 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   20436 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   20437 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   20438 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   20439 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   20440 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   20441 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   20442 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"`'
   20443 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   20444 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   20445 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   20446 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   20447 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   20448 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   20449 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   20450 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   20451 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   20452 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   20453 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   20454 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   20455 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   20456 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   20457 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   20458 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   20459 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   20460 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   20461 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   20462 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   20463 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   20464 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   20465 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   20466 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   20467 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   20468 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   20469 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   20470 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   20471 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   20472 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   20473 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   20474 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   20475 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   20476 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   20477 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
   20478 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   20479 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   20480 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   20481 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   20482 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   20483 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   20484 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   20485 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   20486 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   20487 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   20488 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   20489 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   20490 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   20491 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   20492 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   20493 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   20494 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   20495 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   20496 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   20497 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   20498 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   20499 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   20500 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   20501 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   20502 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   20503 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   20504 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   20505 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   20506 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   20507 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   20508 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   20509 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   20510 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
   20511 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   20512 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   20513 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   20514 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   20515 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   20516 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   20517 
   20518 LTCC='$LTCC'
   20519 LTCFLAGS='$LTCFLAGS'
   20520 compiler='$compiler_DEFAULT'
   20521 
   20522 # A function that is used when there is no print builtin or printf.
   20523 func_fallback_echo ()
   20524 {
   20525   eval 'cat <<_LTECHO_EOF
   20526 \$1
   20527 _LTECHO_EOF'
   20528 }
   20529 
   20530 # Quote evaled strings.
   20531 for var in SHELL \
   20532 ECHO \
   20533 SED \
   20534 GREP \
   20535 EGREP \
   20536 FGREP \
   20537 LD \
   20538 NM \
   20539 LN_S \
   20540 lt_SP2NL \
   20541 lt_NL2SP \
   20542 reload_flag \
   20543 OBJDUMP \
   20544 deplibs_check_method \
   20545 file_magic_cmd \
   20546 file_magic_glob \
   20547 want_nocaseglob \
   20548 DLLTOOL \
   20549 sharedlib_from_linklib_cmd \
   20550 AR \
   20551 AR_FLAGS \
   20552 archiver_list_spec \
   20553 STRIP \
   20554 RANLIB \
   20555 CC \
   20556 CFLAGS \
   20557 compiler \
   20558 lt_cv_sys_global_symbol_pipe \
   20559 lt_cv_sys_global_symbol_to_cdecl \
   20560 lt_cv_sys_global_symbol_to_c_name_address \
   20561 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   20562 nm_file_list_spec \
   20563 lt_prog_compiler_no_builtin_flag \
   20564 lt_prog_compiler_pic \
   20565 lt_prog_compiler_wl \
   20566 lt_prog_compiler_static \
   20567 lt_cv_prog_compiler_c_o \
   20568 need_locks \
   20569 MANIFEST_TOOL \
   20570 DSYMUTIL \
   20571 NMEDIT \
   20572 LIPO \
   20573 OTOOL \
   20574 OTOOL64 \
   20575 shrext_cmds \
   20576 export_dynamic_flag_spec \
   20577 whole_archive_flag_spec \
   20578 compiler_needs_object \
   20579 with_gnu_ld \
   20580 allow_undefined_flag \
   20581 no_undefined_flag \
   20582 hardcode_libdir_flag_spec \
   20583 hardcode_libdir_flag_spec_ld \
   20584 hardcode_libdir_separator \
   20585 exclude_expsyms \
   20586 include_expsyms \
   20587 file_list_spec \
   20588 variables_saved_for_relink \
   20589 libname_spec \
   20590 library_names_spec \
   20591 soname_spec \
   20592 install_override_mode \
   20593 finish_eval \
   20594 old_striplib \
   20595 striplib; do
   20596     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   20597     *[\\\\\\\`\\"\\\$]*)
   20598       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
   20599       ;;
   20600     *)
   20601       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   20602       ;;
   20603     esac
   20604 done
   20605 
   20606 # Double-quote double-evaled strings.
   20607 for var in reload_cmds \
   20608 old_postinstall_cmds \
   20609 old_postuninstall_cmds \
   20610 old_archive_cmds \
   20611 extract_expsyms_cmds \
   20612 old_archive_from_new_cmds \
   20613 old_archive_from_expsyms_cmds \
   20614 archive_cmds \
   20615 archive_expsym_cmds \
   20616 module_cmds \
   20617 module_expsym_cmds \
   20618 export_symbols_cmds \
   20619 prelink_cmds \
   20620 postlink_cmds \
   20621 postinstall_cmds \
   20622 postuninstall_cmds \
   20623 finish_cmds \
   20624 sys_lib_search_path_spec \
   20625 sys_lib_dlsearch_path_spec; do
   20626     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   20627     *[\\\\\\\`\\"\\\$]*)
   20628       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
   20629       ;;
   20630     *)
   20631       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   20632       ;;
   20633     esac
   20634 done
   20635 
   20636 ac_aux_dir='$ac_aux_dir'
   20637 xsi_shell='$xsi_shell'
   20638 lt_shell_append='$lt_shell_append'
   20639 
   20640 # See if we are running on zsh, and set the options which allow our
   20641 # commands through without removal of \ escapes INIT.
   20642 if test -n "\${ZSH_VERSION+set}" ; then
   20643    setopt NO_GLOB_SUBST
   20644 fi
   20645 
   20646 
   20647     PACKAGE='$PACKAGE'
   20648     VERSION='$VERSION'
   20649     TIMESTAMP='$TIMESTAMP'
   20650     RM='$RM'
   20651     ofile='$ofile'
   20652 
   20653 
   20654 
   20655 
   20656 _ACEOF
   20657 
   20658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20659 
   20660 # Handling of arguments.
   20661 for ac_config_target in $ac_config_targets
   20662 do
   20663   case $ac_config_target in
   20664     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   20665     "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;;
   20666     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   20667     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   20668     "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
   20669     "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
   20670     "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
   20671     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   20672 
   20673   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   20674   esac
   20675 done
   20676 
   20677 
   20678 # If the user did not use the arguments to specify the items to instantiate,
   20679 # then the envvar interface is used.  Set only those that are not.
   20680 # We use the long form for the default assignment because of an extremely
   20681 # bizarre bug on SunOS 4.1.3.
   20682 if $ac_need_defaults; then
   20683   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   20684   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   20685   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   20686 fi
   20687 
   20688 # Have a temporary directory for convenience.  Make it in the build tree
   20689 # simply because there is no reason against having it here, and in addition,
   20690 # creating and moving files from /tmp can sometimes cause problems.
   20691 # Hook for its removal unless debugging.
   20692 # Note that there is a small window in which the directory will not be cleaned:
   20693 # after its creation but before its name has been assigned to `$tmp'.
   20694 $debug ||
   20695 {
   20696   tmp= ac_tmp=
   20697   trap 'exit_status=$?
   20698   : "${ac_tmp:=$tmp}"
   20699   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   20700 ' 0
   20701   trap 'as_fn_exit 1' 1 2 13 15
   20702 }
   20703 # Create a (secure) tmp directory for tmp files.
   20704 
   20705 {
   20706   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   20707   test -d "$tmp"
   20708 }  ||
   20709 {
   20710   tmp=./conf$$-$RANDOM
   20711   (umask 077 && mkdir "$tmp")
   20712 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   20713 ac_tmp=$tmp
   20714 
   20715 # Set up the scripts for CONFIG_FILES section.
   20716 # No need to generate them if there are no CONFIG_FILES.
   20717 # This happens for instance with `./config.status config.h'.
   20718 if test -n "$CONFIG_FILES"; then
   20719 
   20720 
   20721 ac_cr=`echo X | tr X '\015'`
   20722 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   20723 # But we know of no other shell where ac_cr would be empty at this
   20724 # point, so we can use a bashism as a fallback.
   20725 if test "x$ac_cr" = x; then
   20726   eval ac_cr=\$\'\\r\'
   20727 fi
   20728 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   20729 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   20730   ac_cs_awk_cr='\\r'
   20731 else
   20732   ac_cs_awk_cr=$ac_cr
   20733 fi
   20734 
   20735 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   20736 _ACEOF
   20737 
   20738 
   20739 {
   20740   echo "cat >conf$$subs.awk <<_ACEOF" &&
   20741   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   20742   echo "_ACEOF"
   20743 } >conf$$subs.sh ||
   20744   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   20745 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   20746 ac_delim='%!_!# '
   20747 for ac_last_try in false false false false false :; do
   20748   . ./conf$$subs.sh ||
   20749     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   20750 
   20751   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   20752   if test $ac_delim_n = $ac_delim_num; then
   20753     break
   20754   elif $ac_last_try; then
   20755     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   20756   else
   20757     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   20758   fi
   20759 done
   20760 rm -f conf$$subs.sh
   20761 
   20762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20763 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   20764 _ACEOF
   20765 sed -n '
   20766 h
   20767 s/^/S["/; s/!.*/"]=/
   20768 p
   20769 g
   20770 s/^[^!]*!//
   20771 :repl
   20772 t repl
   20773 s/'"$ac_delim"'$//
   20774 t delim
   20775 :nl
   20776 h
   20777 s/\(.\{148\}\)..*/\1/
   20778 t more1
   20779 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   20780 p
   20781 n
   20782 b repl
   20783 :more1
   20784 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   20785 p
   20786 g
   20787 s/.\{148\}//
   20788 t nl
   20789 :delim
   20790 h
   20791 s/\(.\{148\}\)..*/\1/
   20792 t more2
   20793 s/["\\]/\\&/g; s/^/"/; s/$/"/
   20794 p
   20795 b
   20796 :more2
   20797 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   20798 p
   20799 g
   20800 s/.\{148\}//
   20801 t delim
   20802 ' <conf$$subs.awk | sed '
   20803 /^[^""]/{
   20804   N
   20805   s/\n//
   20806 }
   20807 ' >>$CONFIG_STATUS || ac_write_fail=1
   20808 rm -f conf$$subs.awk
   20809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20810 _ACAWK
   20811 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   20812   for (key in S) S_is_set[key] = 1
   20813   FS = ""
   20814 
   20815 }
   20816 {
   20817   line = $ 0
   20818   nfields = split(line, field, "@")
   20819   substed = 0
   20820   len = length(field[1])
   20821   for (i = 2; i < nfields; i++) {
   20822     key = field[i]
   20823     keylen = length(key)
   20824     if (S_is_set[key]) {
   20825       value = S[key]
   20826       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   20827       len += length(value) + length(field[++i])
   20828       substed = 1
   20829     } else
   20830       len += 1 + keylen
   20831   }
   20832 
   20833   print line
   20834 }
   20835 
   20836 _ACAWK
   20837 _ACEOF
   20838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20839 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   20840   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   20841 else
   20842   cat
   20843 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   20844   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   20845 _ACEOF
   20846 
   20847 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   20848 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   20849 # trailing colons and then remove the whole line if VPATH becomes empty
   20850 # (actually we leave an empty line to preserve line numbers).
   20851 if test "x$srcdir" = x.; then
   20852   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   20853 h
   20854 s///
   20855 s/^/:/
   20856 s/[	 ]*$/:/
   20857 s/:\$(srcdir):/:/g
   20858 s/:\${srcdir}:/:/g
   20859 s/:@srcdir@:/:/g
   20860 s/^:*//
   20861 s/:*$//
   20862 x
   20863 s/\(=[	 ]*\).*/\1/
   20864 G
   20865 s/\n//
   20866 s/^[^=]*=[	 ]*$//
   20867 }'
   20868 fi
   20869 
   20870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20871 fi # test -n "$CONFIG_FILES"
   20872 
   20873 # Set up the scripts for CONFIG_HEADERS section.
   20874 # No need to generate them if there are no CONFIG_HEADERS.
   20875 # This happens for instance with `./config.status Makefile'.
   20876 if test -n "$CONFIG_HEADERS"; then
   20877 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   20878 BEGIN {
   20879 _ACEOF
   20880 
   20881 # Transform confdefs.h into an awk script `defines.awk', embedded as
   20882 # here-document in config.status, that substitutes the proper values into
   20883 # config.h.in to produce config.h.
   20884 
   20885 # Create a delimiter string that does not exist in confdefs.h, to ease
   20886 # handling of long lines.
   20887 ac_delim='%!_!# '
   20888 for ac_last_try in false false :; do
   20889   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   20890   if test -z "$ac_tt"; then
   20891     break
   20892   elif $ac_last_try; then
   20893     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   20894   else
   20895     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   20896   fi
   20897 done
   20898 
   20899 # For the awk script, D is an array of macro values keyed by name,
   20900 # likewise P contains macro parameters if any.  Preserve backslash
   20901 # newline sequences.
   20902 
   20903 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   20904 sed -n '
   20905 s/.\{148\}/&'"$ac_delim"'/g
   20906 t rset
   20907 :rset
   20908 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   20909 t def
   20910 d
   20911 :def
   20912 s/\\$//
   20913 t bsnl
   20914 s/["\\]/\\&/g
   20915 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   20916 D["\1"]=" \3"/p
   20917 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   20918 d
   20919 :bsnl
   20920 s/["\\]/\\&/g
   20921 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   20922 D["\1"]=" \3\\\\\\n"\\/p
   20923 t cont
   20924 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   20925 t cont
   20926 d
   20927 :cont
   20928 n
   20929 s/.\{148\}/&'"$ac_delim"'/g
   20930 t clear
   20931 :clear
   20932 s/\\$//
   20933 t bsnlc
   20934 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   20935 d
   20936 :bsnlc
   20937 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   20938 b cont
   20939 ' <confdefs.h | sed '
   20940 s/'"$ac_delim"'/"\\\
   20941 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   20942 
   20943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20944   for (key in D) D_is_set[key] = 1
   20945   FS = ""
   20946 }
   20947 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   20948   line = \$ 0
   20949   split(line, arg, " ")
   20950   if (arg[1] == "#") {
   20951     defundef = arg[2]
   20952     mac1 = arg[3]
   20953   } else {
   20954     defundef = substr(arg[1], 2)
   20955     mac1 = arg[2]
   20956   }
   20957   split(mac1, mac2, "(") #)
   20958   macro = mac2[1]
   20959   prefix = substr(line, 1, index(line, defundef) - 1)
   20960   if (D_is_set[macro]) {
   20961     # Preserve the white space surrounding the "#".
   20962     print prefix "define", macro P[macro] D[macro]
   20963     next
   20964   } else {
   20965     # Replace #undef with comments.  This is necessary, for example,
   20966     # in the case of _POSIX_SOURCE, which is predefined and required
   20967     # on some systems where configure will not decide to define it.
   20968     if (defundef == "undef") {
   20969       print "/*", prefix defundef, macro, "*/"
   20970       next
   20971     }
   20972   }
   20973 }
   20974 { print }
   20975 _ACAWK
   20976 _ACEOF
   20977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20978   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   20979 fi # test -n "$CONFIG_HEADERS"
   20980 
   20981 
   20982 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   20983 shift
   20984 for ac_tag
   20985 do
   20986   case $ac_tag in
   20987   :[FHLC]) ac_mode=$ac_tag; continue;;
   20988   esac
   20989   case $ac_mode$ac_tag in
   20990   :[FHL]*:*);;
   20991   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   20992   :[FH]-) ac_tag=-:-;;
   20993   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   20994   esac
   20995   ac_save_IFS=$IFS
   20996   IFS=:
   20997   set x $ac_tag
   20998   IFS=$ac_save_IFS
   20999   shift
   21000   ac_file=$1
   21001   shift
   21002 
   21003   case $ac_mode in
   21004   :L) ac_source=$1;;
   21005   :[FH])
   21006     ac_file_inputs=
   21007     for ac_f
   21008     do
   21009       case $ac_f in
   21010       -) ac_f="$ac_tmp/stdin";;
   21011       *) # Look for the file first in the build tree, then in the source tree
   21012 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   21013 	 # because $ac_f cannot contain `:'.
   21014 	 test -f "$ac_f" ||
   21015 	   case $ac_f in
   21016 	   [\\/$]*) false;;
   21017 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   21018 	   esac ||
   21019 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   21020       esac
   21021       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   21022       as_fn_append ac_file_inputs " '$ac_f'"
   21023     done
   21024 
   21025     # Let's still pretend it is `configure' which instantiates (i.e., don't
   21026     # use $as_me), people would be surprised to read:
   21027     #    /* config.h.  Generated by config.status.  */
   21028     configure_input='Generated from '`
   21029 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   21030 	`' by configure.'
   21031     if test x"$ac_file" != x-; then
   21032       configure_input="$ac_file.  $configure_input"
   21033       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   21034 $as_echo "$as_me: creating $ac_file" >&6;}
   21035     fi
   21036     # Neutralize special characters interpreted by sed in replacement strings.
   21037     case $configure_input in #(
   21038     *\&* | *\|* | *\\* )
   21039        ac_sed_conf_input=`$as_echo "$configure_input" |
   21040        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   21041     *) ac_sed_conf_input=$configure_input;;
   21042     esac
   21043 
   21044     case $ac_tag in
   21045     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   21046       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   21047     esac
   21048     ;;
   21049   esac
   21050 
   21051   ac_dir=`$as_dirname -- "$ac_file" ||
   21052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21053 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   21054 	 X"$ac_file" : 'X\(//\)$' \| \
   21055 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   21056 $as_echo X"$ac_file" |
   21057     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21058 	    s//\1/
   21059 	    q
   21060 	  }
   21061 	  /^X\(\/\/\)[^/].*/{
   21062 	    s//\1/
   21063 	    q
   21064 	  }
   21065 	  /^X\(\/\/\)$/{
   21066 	    s//\1/
   21067 	    q
   21068 	  }
   21069 	  /^X\(\/\).*/{
   21070 	    s//\1/
   21071 	    q
   21072 	  }
   21073 	  s/.*/./; q'`
   21074   as_dir="$ac_dir"; as_fn_mkdir_p
   21075   ac_builddir=.
   21076 
   21077 case "$ac_dir" in
   21078 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   21079 *)
   21080   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   21081   # A ".." for each directory in $ac_dir_suffix.
   21082   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   21083   case $ac_top_builddir_sub in
   21084   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   21085   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   21086   esac ;;
   21087 esac
   21088 ac_abs_top_builddir=$ac_pwd
   21089 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   21090 # for backward compatibility:
   21091 ac_top_builddir=$ac_top_build_prefix
   21092 
   21093 case $srcdir in
   21094   .)  # We are building in place.
   21095     ac_srcdir=.
   21096     ac_top_srcdir=$ac_top_builddir_sub
   21097     ac_abs_top_srcdir=$ac_pwd ;;
   21098   [\\/]* | ?:[\\/]* )  # Absolute name.
   21099     ac_srcdir=$srcdir$ac_dir_suffix;
   21100     ac_top_srcdir=$srcdir
   21101     ac_abs_top_srcdir=$srcdir ;;
   21102   *) # Relative name.
   21103     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   21104     ac_top_srcdir=$ac_top_build_prefix$srcdir
   21105     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   21106 esac
   21107 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   21108 
   21109 
   21110   case $ac_mode in
   21111   :F)
   21112   #
   21113   # CONFIG_FILE
   21114   #
   21115 
   21116   case $INSTALL in
   21117   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   21118   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   21119   esac
   21120   ac_MKDIR_P=$MKDIR_P
   21121   case $MKDIR_P in
   21122   [\\/$]* | ?:[\\/]* ) ;;
   21123   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   21124   esac
   21125 _ACEOF
   21126 
   21127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21128 # If the template does not know about datarootdir, expand it.
   21129 # FIXME: This hack should be removed a few years after 2.60.
   21130 ac_datarootdir_hack=; ac_datarootdir_seen=
   21131 ac_sed_dataroot='
   21132 /datarootdir/ {
   21133   p
   21134   q
   21135 }
   21136 /@datadir@/p
   21137 /@docdir@/p
   21138 /@infodir@/p
   21139 /@localedir@/p
   21140 /@mandir@/p'
   21141 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   21142 *datarootdir*) ac_datarootdir_seen=yes;;
   21143 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   21144   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   21145 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   21146 _ACEOF
   21147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21148   ac_datarootdir_hack='
   21149   s&@datadir@&$datadir&g
   21150   s&@docdir@&$docdir&g
   21151   s&@infodir@&$infodir&g
   21152   s&@localedir@&$localedir&g
   21153   s&@mandir@&$mandir&g
   21154   s&\\\${datarootdir}&$datarootdir&g' ;;
   21155 esac
   21156 _ACEOF
   21157 
   21158 # Neutralize VPATH when `$srcdir' = `.'.
   21159 # Shell code in configure.ac might set extrasub.
   21160 # FIXME: do we really want to maintain this feature?
   21161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21162 ac_sed_extra="$ac_vpsub
   21163 $extrasub
   21164 _ACEOF
   21165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21166 :t
   21167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   21168 s|@configure_input@|$ac_sed_conf_input|;t t
   21169 s&@top_builddir@&$ac_top_builddir_sub&;t t
   21170 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   21171 s&@srcdir@&$ac_srcdir&;t t
   21172 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   21173 s&@top_srcdir@&$ac_top_srcdir&;t t
   21174 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   21175 s&@builddir@&$ac_builddir&;t t
   21176 s&@abs_builddir@&$ac_abs_builddir&;t t
   21177 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   21178 s&@INSTALL@&$ac_INSTALL&;t t
   21179 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   21180 $ac_datarootdir_hack
   21181 "
   21182 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   21183   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   21184 
   21185 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   21186   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   21187   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   21188       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   21189   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   21190 which seems to be undefined.  Please make sure it is defined" >&5
   21191 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   21192 which seems to be undefined.  Please make sure it is defined" >&2;}
   21193 
   21194   rm -f "$ac_tmp/stdin"
   21195   case $ac_file in
   21196   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   21197   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   21198   esac \
   21199   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   21200  ;;
   21201   :H)
   21202   #
   21203   # CONFIG_HEADER
   21204   #
   21205   if test x"$ac_file" != x-; then
   21206     {
   21207       $as_echo "/* $configure_input  */" \
   21208       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   21209     } >"$ac_tmp/config.h" \
   21210       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   21211     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   21212       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   21213 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   21214     else
   21215       rm -f "$ac_file"
   21216       mv "$ac_tmp/config.h" "$ac_file" \
   21217 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   21218     fi
   21219   else
   21220     $as_echo "/* $configure_input  */" \
   21221       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   21222       || as_fn_error $? "could not create -" "$LINENO" 5
   21223   fi
   21224 # Compute "$ac_file"'s index in $config_headers.
   21225 _am_arg="$ac_file"
   21226 _am_stamp_count=1
   21227 for _am_header in $config_headers :; do
   21228   case $_am_header in
   21229     $_am_arg | $_am_arg:* )
   21230       break ;;
   21231     * )
   21232       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   21233   esac
   21234 done
   21235 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
   21236 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21237 	 X"$_am_arg" : 'X\(//\)[^/]' \| \
   21238 	 X"$_am_arg" : 'X\(//\)$' \| \
   21239 	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
   21240 $as_echo X"$_am_arg" |
   21241     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21242 	    s//\1/
   21243 	    q
   21244 	  }
   21245 	  /^X\(\/\/\)[^/].*/{
   21246 	    s//\1/
   21247 	    q
   21248 	  }
   21249 	  /^X\(\/\/\)$/{
   21250 	    s//\1/
   21251 	    q
   21252 	  }
   21253 	  /^X\(\/\).*/{
   21254 	    s//\1/
   21255 	    q
   21256 	  }
   21257 	  s/.*/./; q'`/stamp-h$_am_stamp_count
   21258  ;;
   21259 
   21260   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   21261 $as_echo "$as_me: executing $ac_file commands" >&6;}
   21262  ;;
   21263   esac
   21264 
   21265 
   21266   case $ac_file$ac_mode in
   21267     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
   21268   # Autoconf 2.62 quotes --file arguments for eval, but not when files
   21269   # are listed without --file.  Let's play safe and only enable the eval
   21270   # if we detect the quoting.
   21271   case $CONFIG_FILES in
   21272   *\'*) eval set x "$CONFIG_FILES" ;;
   21273   *)   set x $CONFIG_FILES ;;
   21274   esac
   21275   shift
   21276   for mf
   21277   do
   21278     # Strip MF so we end up with the name of the file.
   21279     mf=`echo "$mf" | sed -e 's/:.*$//'`
   21280     # Check whether this is an Automake generated Makefile or not.
   21281     # We used to match only the files named `Makefile.in', but
   21282     # some people rename them; so instead we look at the file content.
   21283     # Grep'ing the first line is not enough: some people post-process
   21284     # each Makefile.in and add a new line on top of each file to say so.
   21285     # Grep'ing the whole file is not good either: AIX grep has a line
   21286     # limit of 2048, but all sed's we know have understand at least 4000.
   21287     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
   21288       dirpart=`$as_dirname -- "$mf" ||
   21289 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21290 	 X"$mf" : 'X\(//\)[^/]' \| \
   21291 	 X"$mf" : 'X\(//\)$' \| \
   21292 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
   21293 $as_echo X"$mf" |
   21294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21295 	    s//\1/
   21296 	    q
   21297 	  }
   21298 	  /^X\(\/\/\)[^/].*/{
   21299 	    s//\1/
   21300 	    q
   21301 	  }
   21302 	  /^X\(\/\/\)$/{
   21303 	    s//\1/
   21304 	    q
   21305 	  }
   21306 	  /^X\(\/\).*/{
   21307 	    s//\1/
   21308 	    q
   21309 	  }
   21310 	  s/.*/./; q'`
   21311     else
   21312       continue
   21313     fi
   21314     # Extract the definition of DEPDIR, am__include, and am__quote
   21315     # from the Makefile without running `make'.
   21316     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
   21317     test -z "$DEPDIR" && continue
   21318     am__include=`sed -n 's/^am__include = //p' < "$mf"`
   21319     test -z "am__include" && continue
   21320     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
   21321     # When using ansi2knr, U may be empty or an underscore; expand it
   21322     U=`sed -n 's/^U = //p' < "$mf"`
   21323     # Find all dependency output files, they are included files with
   21324     # $(DEPDIR) in their names.  We invoke sed twice because it is the
   21325     # simplest approach to changing $(DEPDIR) to its actual value in the
   21326     # expansion.
   21327     for file in `sed -n "
   21328       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
   21329 	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
   21330       # Make sure the directory exists.
   21331       test -f "$dirpart/$file" && continue
   21332       fdir=`$as_dirname -- "$file" ||
   21333 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21334 	 X"$file" : 'X\(//\)[^/]' \| \
   21335 	 X"$file" : 'X\(//\)$' \| \
   21336 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
   21337 $as_echo X"$file" |
   21338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21339 	    s//\1/
   21340 	    q
   21341 	  }
   21342 	  /^X\(\/\/\)[^/].*/{
   21343 	    s//\1/
   21344 	    q
   21345 	  }
   21346 	  /^X\(\/\/\)$/{
   21347 	    s//\1/
   21348 	    q
   21349 	  }
   21350 	  /^X\(\/\).*/{
   21351 	    s//\1/
   21352 	    q
   21353 	  }
   21354 	  s/.*/./; q'`
   21355       as_dir=$dirpart/$fdir; as_fn_mkdir_p
   21356       # echo "creating $dirpart/$file"
   21357       echo '# dummy' > "$dirpart/$file"
   21358     done
   21359   done
   21360 }
   21361  ;;
   21362     "libtool":C)
   21363 
   21364     # See if we are running on zsh, and set the options which allow our
   21365     # commands through without removal of \ escapes.
   21366     if test -n "${ZSH_VERSION+set}" ; then
   21367       setopt NO_GLOB_SUBST
   21368     fi
   21369 
   21370     cfgfile="${ofile}T"
   21371     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   21372     $RM "$cfgfile"
   21373 
   21374     cat <<_LT_EOF >> "$cfgfile"
   21375 #! $SHELL
   21376 
   21377 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
   21378 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
   21379 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   21380 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   21381 #
   21382 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
   21383 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
   21384 #                 Inc.
   21385 #   Written by Gordon Matzigkeit, 1996
   21386 #
   21387 #   This file is part of GNU Libtool.
   21388 #
   21389 # GNU Libtool is free software; you can redistribute it and/or
   21390 # modify it under the terms of the GNU General Public License as
   21391 # published by the Free Software Foundation; either version 2 of
   21392 # the License, or (at your option) any later version.
   21393 #
   21394 # As a special exception to the GNU General Public License,
   21395 # if you distribute this file as part of a program or library that
   21396 # is built using GNU Libtool, you may include this file under the
   21397 # same distribution terms that you use for the rest of that program.
   21398 #
   21399 # GNU Libtool is distributed in the hope that it will be useful,
   21400 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   21401 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   21402 # GNU General Public License for more details.
   21403 #
   21404 # You should have received a copy of the GNU General Public License
   21405 # along with GNU Libtool; see the file COPYING.  If not, a copy
   21406 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
   21407 # obtained by writing to the Free Software Foundation, Inc.,
   21408 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
   21409 
   21410 
   21411 # The names of the tagged configurations supported by this script.
   21412 available_tags=""
   21413 
   21414 # ### BEGIN LIBTOOL CONFIG
   21415 
   21416 # Which release of libtool.m4 was used?
   21417 macro_version=$macro_version
   21418 macro_revision=$macro_revision
   21419 
   21420 # Whether or not to build shared libraries.
   21421 build_libtool_libs=$enable_shared
   21422 
   21423 # Whether or not to build static libraries.
   21424 build_old_libs=$enable_static
   21425 
   21426 # What type of objects to build.
   21427 pic_mode=$pic_mode
   21428 
   21429 # Whether or not to optimize for fast installation.
   21430 fast_install=$enable_fast_install
   21431 
   21432 # Shell to use when invoking shell scripts.
   21433 SHELL=$lt_SHELL
   21434 
   21435 # An echo program that protects backslashes.
   21436 ECHO=$lt_ECHO
   21437 
   21438 # The host system.
   21439 host_alias=$host_alias
   21440 host=$host
   21441 host_os=$host_os
   21442 
   21443 # The build system.
   21444 build_alias=$build_alias
   21445 build=$build
   21446 build_os=$build_os
   21447 
   21448 # A sed program that does not truncate output.
   21449 SED=$lt_SED
   21450 
   21451 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   21452 Xsed="\$SED -e 1s/^X//"
   21453 
   21454 # A grep program that handles long lines.
   21455 GREP=$lt_GREP
   21456 
   21457 # An ERE matcher.
   21458 EGREP=$lt_EGREP
   21459 
   21460 # A literal string matcher.
   21461 FGREP=$lt_FGREP
   21462 
   21463 # A BSD- or MS-compatible name lister.
   21464 NM=$lt_NM
   21465 
   21466 # Whether we need soft or hard links.
   21467 LN_S=$lt_LN_S
   21468 
   21469 # What is the maximum length of a command?
   21470 max_cmd_len=$max_cmd_len
   21471 
   21472 # Object file suffix (normally "o").
   21473 objext=$ac_objext
   21474 
   21475 # Executable file suffix (normally "").
   21476 exeext=$exeext
   21477 
   21478 # whether the shell understands "unset".
   21479 lt_unset=$lt_unset
   21480 
   21481 # turn spaces into newlines.
   21482 SP2NL=$lt_lt_SP2NL
   21483 
   21484 # turn newlines into spaces.
   21485 NL2SP=$lt_lt_NL2SP
   21486 
   21487 # convert \$build file names to \$host format.
   21488 to_host_file_cmd=$lt_cv_to_host_file_cmd
   21489 
   21490 # convert \$build files to toolchain format.
   21491 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   21492 
   21493 # An object symbol dumper.
   21494 OBJDUMP=$lt_OBJDUMP
   21495 
   21496 # Method to check whether dependent libraries are shared objects.
   21497 deplibs_check_method=$lt_deplibs_check_method
   21498 
   21499 # Command to use when deplibs_check_method = "file_magic".
   21500 file_magic_cmd=$lt_file_magic_cmd
   21501 
   21502 # How to find potential files when deplibs_check_method = "file_magic".
   21503 file_magic_glob=$lt_file_magic_glob
   21504 
   21505 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   21506 want_nocaseglob=$lt_want_nocaseglob
   21507 
   21508 # DLL creation program.
   21509 DLLTOOL=$lt_DLLTOOL
   21510 
   21511 # Command to associate shared and link libraries.
   21512 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   21513 
   21514 # The archiver.
   21515 AR=$lt_AR
   21516 
   21517 # Flags to create an archive.
   21518 AR_FLAGS=$lt_AR_FLAGS
   21519 
   21520 # How to feed a file listing to the archiver.
   21521 archiver_list_spec=$lt_archiver_list_spec
   21522 
   21523 # A symbol stripping program.
   21524 STRIP=$lt_STRIP
   21525 
   21526 # Commands used to install an old-style archive.
   21527 RANLIB=$lt_RANLIB
   21528 old_postinstall_cmds=$lt_old_postinstall_cmds
   21529 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   21530 
   21531 # Whether to use a lock for old archive extraction.
   21532 lock_old_archive_extraction=$lock_old_archive_extraction
   21533 
   21534 # A C compiler.
   21535 LTCC=$lt_CC
   21536 
   21537 # LTCC compiler flags.
   21538 LTCFLAGS=$lt_CFLAGS
   21539 
   21540 # Take the output of nm and produce a listing of raw symbols and C names.
   21541 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   21542 
   21543 # Transform the output of nm in a proper C declaration.
   21544 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   21545 
   21546 # Transform the output of nm in a C name address pair.
   21547 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   21548 
   21549 # Transform the output of nm in a C name address pair when lib prefix is needed.
   21550 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   21551 
   21552 # Specify filename containing input files for \$NM.
   21553 nm_file_list_spec=$lt_nm_file_list_spec
   21554 
   21555 # The root where to search for dependent libraries,and in which our libraries should be installed.
   21556 lt_sysroot=$lt_sysroot
   21557 
   21558 # The name of the directory that contains temporary libtool files.
   21559 objdir=$objdir
   21560 
   21561 # Used to examine libraries when file_magic_cmd begins with "file".
   21562 MAGIC_CMD=$MAGIC_CMD
   21563 
   21564 # Must we lock files when doing compilation?
   21565 need_locks=$lt_need_locks
   21566 
   21567 # Manifest tool.
   21568 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   21569 
   21570 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   21571 DSYMUTIL=$lt_DSYMUTIL
   21572 
   21573 # Tool to change global to local symbols on Mac OS X.
   21574 NMEDIT=$lt_NMEDIT
   21575 
   21576 # Tool to manipulate fat objects and archives on Mac OS X.
   21577 LIPO=$lt_LIPO
   21578 
   21579 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   21580 OTOOL=$lt_OTOOL
   21581 
   21582 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   21583 OTOOL64=$lt_OTOOL64
   21584 
   21585 # Old archive suffix (normally "a").
   21586 libext=$libext
   21587 
   21588 # Shared library suffix (normally ".so").
   21589 shrext_cmds=$lt_shrext_cmds
   21590 
   21591 # The commands to extract the exported symbol list from a shared archive.
   21592 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   21593 
   21594 # Variables whose values should be saved in libtool wrapper scripts and
   21595 # restored at link time.
   21596 variables_saved_for_relink=$lt_variables_saved_for_relink
   21597 
   21598 # Do we need the "lib" prefix for modules?
   21599 need_lib_prefix=$need_lib_prefix
   21600 
   21601 # Do we need a version for libraries?
   21602 need_version=$need_version
   21603 
   21604 # Library versioning type.
   21605 version_type=$version_type
   21606 
   21607 # Shared library runtime path variable.
   21608 runpath_var=$runpath_var
   21609 
   21610 # Shared library path variable.
   21611 shlibpath_var=$shlibpath_var
   21612 
   21613 # Is shlibpath searched before the hard-coded library search path?
   21614 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   21615 
   21616 # Format of library name prefix.
   21617 libname_spec=$lt_libname_spec
   21618 
   21619 # List of archive names.  First name is the real one, the rest are links.
   21620 # The last name is the one that the linker finds with -lNAME
   21621 library_names_spec=$lt_library_names_spec
   21622 
   21623 # The coded name of the library, if different from the real name.
   21624 soname_spec=$lt_soname_spec
   21625 
   21626 # Permission mode override for installation of shared libraries.
   21627 install_override_mode=$lt_install_override_mode
   21628 
   21629 # Command to use after installation of a shared archive.
   21630 postinstall_cmds=$lt_postinstall_cmds
   21631 
   21632 # Command to use after uninstallation of a shared archive.
   21633 postuninstall_cmds=$lt_postuninstall_cmds
   21634 
   21635 # Commands used to finish a libtool library installation in a directory.
   21636 finish_cmds=$lt_finish_cmds
   21637 
   21638 # As "finish_cmds", except a single script fragment to be evaled but
   21639 # not shown.
   21640 finish_eval=$lt_finish_eval
   21641 
   21642 # Whether we should hardcode library paths into libraries.
   21643 hardcode_into_libs=$hardcode_into_libs
   21644 
   21645 # Compile-time system search path for libraries.
   21646 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   21647 
   21648 # Run-time system search path for libraries.
   21649 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
   21650 
   21651 # Whether dlopen is supported.
   21652 dlopen_support=$enable_dlopen
   21653 
   21654 # Whether dlopen of programs is supported.
   21655 dlopen_self=$enable_dlopen_self
   21656 
   21657 # Whether dlopen of statically linked programs is supported.
   21658 dlopen_self_static=$enable_dlopen_self_static
   21659 
   21660 # Commands to strip libraries.
   21661 old_striplib=$lt_old_striplib
   21662 striplib=$lt_striplib
   21663 
   21664 
   21665 # The linker used to build libraries.
   21666 LD=$lt_LD
   21667 
   21668 # How to create reloadable object files.
   21669 reload_flag=$lt_reload_flag
   21670 reload_cmds=$lt_reload_cmds
   21671 
   21672 # Commands used to build an old-style archive.
   21673 old_archive_cmds=$lt_old_archive_cmds
   21674 
   21675 # A language specific compiler.
   21676 CC=$lt_compiler
   21677 
   21678 # Is the compiler the GNU compiler?
   21679 with_gcc=$GCC
   21680 
   21681 # Compiler flag to turn off builtin functions.
   21682 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   21683 
   21684 # Additional compiler flags for building library objects.
   21685 pic_flag=$lt_lt_prog_compiler_pic
   21686 
   21687 # How to pass a linker flag through the compiler.
   21688 wl=$lt_lt_prog_compiler_wl
   21689 
   21690 # Compiler flag to prevent dynamic linking.
   21691 link_static_flag=$lt_lt_prog_compiler_static
   21692 
   21693 # Does compiler simultaneously support -c and -o options?
   21694 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   21695 
   21696 # Whether or not to add -lc for building shared libraries.
   21697 build_libtool_need_lc=$archive_cmds_need_lc
   21698 
   21699 # Whether or not to disallow shared libs when runtime libs are static.
   21700 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   21701 
   21702 # Compiler flag to allow reflexive dlopens.
   21703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   21704 
   21705 # Compiler flag to generate shared objects directly from archives.
   21706 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   21707 
   21708 # Whether the compiler copes with passing no objects directly.
   21709 compiler_needs_object=$lt_compiler_needs_object
   21710 
   21711 # Create an old-style archive from a shared archive.
   21712 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   21713 
   21714 # Create a temporary old-style archive to link instead of a shared archive.
   21715 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   21716 
   21717 # Commands used to build a shared archive.
   21718 archive_cmds=$lt_archive_cmds
   21719 archive_expsym_cmds=$lt_archive_expsym_cmds
   21720 
   21721 # Commands used to build a loadable module if different from building
   21722 # a shared archive.
   21723 module_cmds=$lt_module_cmds
   21724 module_expsym_cmds=$lt_module_expsym_cmds
   21725 
   21726 # Whether we are building with GNU ld or not.
   21727 with_gnu_ld=$lt_with_gnu_ld
   21728 
   21729 # Flag that allows shared libraries with undefined symbols to be built.
   21730 allow_undefined_flag=$lt_allow_undefined_flag
   21731 
   21732 # Flag that enforces no undefined symbols.
   21733 no_undefined_flag=$lt_no_undefined_flag
   21734 
   21735 # Flag to hardcode \$libdir into a binary during linking.
   21736 # This must work even if \$libdir does not exist
   21737 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   21738 
   21739 # If ld is used when linking, flag to hardcode \$libdir into a binary
   21740 # during linking.  This must work even if \$libdir does not exist.
   21741 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
   21742 
   21743 # Whether we need a single "-rpath" flag with a separated argument.
   21744 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   21745 
   21746 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
   21747 # DIR into the resulting binary.
   21748 hardcode_direct=$hardcode_direct
   21749 
   21750 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
   21751 # DIR into the resulting binary and the resulting library dependency is
   21752 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
   21753 # library is relocated.
   21754 hardcode_direct_absolute=$hardcode_direct_absolute
   21755 
   21756 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   21757 # into the resulting binary.
   21758 hardcode_minus_L=$hardcode_minus_L
   21759 
   21760 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   21761 # into the resulting binary.
   21762 hardcode_shlibpath_var=$hardcode_shlibpath_var
   21763 
   21764 # Set to "yes" if building a shared library automatically hardcodes DIR
   21765 # into the library and all subsequent libraries and executables linked
   21766 # against it.
   21767 hardcode_automatic=$hardcode_automatic
   21768 
   21769 # Set to yes if linker adds runtime paths of dependent libraries
   21770 # to runtime path list.
   21771 inherit_rpath=$inherit_rpath
   21772 
   21773 # Whether libtool must link a program against all its dependency libraries.
   21774 link_all_deplibs=$link_all_deplibs
   21775 
   21776 # Set to "yes" if exported symbols are required.
   21777 always_export_symbols=$always_export_symbols
   21778 
   21779 # The commands to list exported symbols.
   21780 export_symbols_cmds=$lt_export_symbols_cmds
   21781 
   21782 # Symbols that should not be listed in the preloaded symbols.
   21783 exclude_expsyms=$lt_exclude_expsyms
   21784 
   21785 # Symbols that must always be exported.
   21786 include_expsyms=$lt_include_expsyms
   21787 
   21788 # Commands necessary for linking programs (against libraries) with templates.
   21789 prelink_cmds=$lt_prelink_cmds
   21790 
   21791 # Commands necessary for finishing linking programs.
   21792 postlink_cmds=$lt_postlink_cmds
   21793 
   21794 # Specify filename containing input files.
   21795 file_list_spec=$lt_file_list_spec
   21796 
   21797 # How to hardcode a shared library path into an executable.
   21798 hardcode_action=$hardcode_action
   21799 
   21800 # ### END LIBTOOL CONFIG
   21801 
   21802 _LT_EOF
   21803 
   21804   case $host_os in
   21805   aix3*)
   21806     cat <<\_LT_EOF >> "$cfgfile"
   21807 # AIX sometimes has problems with the GCC collect2 program.  For some
   21808 # reason, if we set the COLLECT_NAMES environment variable, the problems
   21809 # vanish in a puff of smoke.
   21810 if test "X${COLLECT_NAMES+set}" != Xset; then
   21811   COLLECT_NAMES=
   21812   export COLLECT_NAMES
   21813 fi
   21814 _LT_EOF
   21815     ;;
   21816   esac
   21817 
   21818 
   21819 ltmain="$ac_aux_dir/ltmain.sh"
   21820 
   21821 
   21822   # We use sed instead of cat because bash on DJGPP gets confused if
   21823   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   21824   # text mode, it properly converts lines to CR/LF.  This bash problem
   21825   # is reportedly fixed, but why not run on old versions too?
   21826   sed '$q' "$ltmain" >> "$cfgfile" \
   21827      || (rm -f "$cfgfile"; exit 1)
   21828 
   21829   if test x"$xsi_shell" = xyes; then
   21830   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
   21831 func_dirname ()\
   21832 {\
   21833 \    case ${1} in\
   21834 \      */*) func_dirname_result="${1%/*}${2}" ;;\
   21835 \      *  ) func_dirname_result="${3}" ;;\
   21836 \    esac\
   21837 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
   21838   && mv -f "$cfgfile.tmp" "$cfgfile" \
   21839     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   21840 test 0 -eq $? || _lt_function_replace_fail=:
   21841 
   21842 
   21843   sed -e '/^func_basename ()$/,/^} # func_basename /c\
   21844 func_basename ()\
   21845 {\
   21846 \    func_basename_result="${1##*/}"\
   21847 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
   21848   && mv -f "$cfgfile.tmp" "$cfgfile" \
   21849     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   21850 test 0 -eq $? || _lt_function_replace_fail=:
   21851 
   21852 
   21853   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
   21854 func_dirname_and_basename ()\
   21855 {\
   21856 \    case ${1} in\
   21857 \      */*) func_dirname_result="${1%/*}${2}" ;;\
   21858 \      *  ) func_dirname_result="${3}" ;;\
   21859 \    esac\
   21860 \    func_basename_result="${1##*/}"\
   21861 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
   21862   && mv -f "$cfgfile.tmp" "$cfgfile" \
   21863     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   21864 test 0 -eq $? || _lt_function_replace_fail=:
   21865 
   21866 
   21867   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
   21868 func_stripname ()\
   21869 {\
   21870 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
   21871 \    # positional parameters, so assign one to ordinary parameter first.\
   21872 \    func_stripname_result=${3}\
   21873 \    func_stripname_result=${func_stripname_result#"${1}"}\
   21874 \    func_stripname_result=${func_stripname_result%"${2}"}\
   21875 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
   21876   && mv -f "$cfgfile.tmp" "$cfgfile" \
   21877     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   21878 test 0 -eq $? || _lt_function_replace_fail=:
   21879 
   21880 
   21881   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
   21882 func_split_long_opt ()\
   21883 {\
   21884 \    func_split_long_opt_name=${1%%=*}\
   21885 \    func_split_long_opt_arg=${1#*=}\
   21886 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
   21887   && mv -f "$cfgfile.tmp" "$cfgfile" \
   21888     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   21889 test 0 -eq $? || _lt_function_replace_fail=:
   21890 
   21891 
   21892   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
   21893 func_split_short_opt ()\
   21894 {\
   21895 \    func_split_short_opt_arg=${1#??}\
   21896 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
   21897 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
   21898   && mv -f "$cfgfile.tmp" "$cfgfile" \
   21899     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   21900 test 0 -eq $? || _lt_function_replace_fail=:
   21901 
   21902 
   21903   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
   21904 func_lo2o ()\
   21905 {\
   21906 \    case ${1} in\
   21907 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
   21908 \      *)    func_lo2o_result=${1} ;;\
   21909 \    esac\
   21910 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
   21911   && mv -f "$cfgfile.tmp" "$cfgfile" \
   21912     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   21913 test 0 -eq $? || _lt_function_replace_fail=:
   21914 
   21915 
   21916   sed -e '/^func_xform ()$/,/^} # func_xform /c\
   21917 func_xform ()\
   21918 {\
   21919     func_xform_result=${1%.*}.lo\
   21920 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
   21921   && mv -f "$cfgfile.tmp" "$cfgfile" \
   21922     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   21923 test 0 -eq $? || _lt_function_replace_fail=:
   21924 
   21925 
   21926   sed -e '/^func_arith ()$/,/^} # func_arith /c\
   21927 func_arith ()\
   21928 {\
   21929     func_arith_result=$(( $* ))\
   21930 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
   21931   && mv -f "$cfgfile.tmp" "$cfgfile" \
   21932     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   21933 test 0 -eq $? || _lt_function_replace_fail=:
   21934 
   21935 
   21936   sed -e '/^func_len ()$/,/^} # func_len /c\
   21937 func_len ()\
   21938 {\
   21939     func_len_result=${#1}\
   21940 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
   21941   && mv -f "$cfgfile.tmp" "$cfgfile" \
   21942     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   21943 test 0 -eq $? || _lt_function_replace_fail=:
   21944 
   21945 fi
   21946 
   21947 if test x"$lt_shell_append" = xyes; then
   21948   sed -e '/^func_append ()$/,/^} # func_append /c\
   21949 func_append ()\
   21950 {\
   21951     eval "${1}+=\\${2}"\
   21952 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
   21953   && mv -f "$cfgfile.tmp" "$cfgfile" \
   21954     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   21955 test 0 -eq $? || _lt_function_replace_fail=:
   21956 
   21957 
   21958   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
   21959 func_append_quoted ()\
   21960 {\
   21961 \    func_quote_for_eval "${2}"\
   21962 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
   21963 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
   21964   && mv -f "$cfgfile.tmp" "$cfgfile" \
   21965     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   21966 test 0 -eq $? || _lt_function_replace_fail=:
   21967 
   21968 
   21969   # Save a `func_append' function call where possible by direct use of '+='
   21970   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
   21971     && mv -f "$cfgfile.tmp" "$cfgfile" \
   21972       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   21973   test 0 -eq $? || _lt_function_replace_fail=:
   21974 else
   21975   # Save a `func_append' function call even when '+=' is not available
   21976   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
   21977     && mv -f "$cfgfile.tmp" "$cfgfile" \
   21978       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
   21979   test 0 -eq $? || _lt_function_replace_fail=:
   21980 fi
   21981 
   21982 if test x"$_lt_function_replace_fail" = x":"; then
   21983   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
   21984 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
   21985 fi
   21986 
   21987 
   21988    mv -f "$cfgfile" "$ofile" ||
   21989     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   21990   chmod +x "$ofile"
   21991 
   21992  ;;
   21993 
   21994   esac
   21995 done # for ac_tag
   21996 
   21997 
   21998 as_fn_exit 0
   21999 _ACEOF
   22000 ac_clean_files=$ac_clean_files_save
   22001 
   22002 test $ac_write_fail = 0 ||
   22003   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   22004 
   22005 
   22006 # configure is writing to config.log, and then calls config.status.
   22007 # config.status does its own redirection, appending to config.log.
   22008 # Unfortunately, on DOS this fails, as config.log is still kept open
   22009 # by configure, so config.status won't be able to write to it; its
   22010 # output is simply discarded.  So we exec the FD to /dev/null,
   22011 # effectively closing config.log, so it can be properly (re)opened and
   22012 # appended to by config.status.  When coming back to configure, we
   22013 # need to make the FD available again.
   22014 if test "$no_create" != yes; then
   22015   ac_cs_success=:
   22016   ac_config_status_args=
   22017   test "$silent" = yes &&
   22018     ac_config_status_args="$ac_config_status_args --quiet"
   22019   exec 5>/dev/null
   22020   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   22021   exec 5>>config.log
   22022   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   22023   # would make configure fail if this is the last instruction.
   22024   $ac_cs_success || as_fn_exit 1
   22025 fi
   22026 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   22027   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   22028 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   22029 fi
   22030 
   22031