Home | History | Annotate | Download | only in llvm
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.60 for llvm 3.1svn.
      4 #
      5 # Report bugs to <llvmbugs (at] cs.uiuc.edu>.
      6 #
      7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
      9 # This configure script is free software; the Free Software Foundation
     10 # gives unlimited permission to copy, distribute and modify it.
     11 #
     12 # Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
     13 ## --------------------- ##
     14 ## M4sh Initialization.  ##
     15 ## --------------------- ##
     16 
     17 # Be Bourne compatible
     18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     19   emulate sh
     20   NULLCMD=:
     21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     22   # is contrary to our usage.  Disable this feature.
     23   alias -g '${1+"$@"}'='"$@"'
     24   setopt NO_GLOB_SUBST
     25 else
     26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
     27 fi
     28 BIN_SH=xpg4; export BIN_SH # for Tru64
     29 DUALCASE=1; export DUALCASE # for MKS sh
     30 
     31 
     32 # PATH needs CR
     33 # Avoid depending upon Character Ranges.
     34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     37 as_cr_digits='0123456789'
     38 as_cr_alnum=$as_cr_Letters$as_cr_digits
     39 
     40 # The user is always right.
     41 if test "${PATH_SEPARATOR+set}" != set; then
     42   echo "#! /bin/sh" >conf$$.sh
     43   echo  "exit 0"   >>conf$$.sh
     44   chmod +x conf$$.sh
     45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     46     PATH_SEPARATOR=';'
     47   else
     48     PATH_SEPARATOR=:
     49   fi
     50   rm -f conf$$.sh
     51 fi
     52 
     53 # Support unset when possible.
     54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     55   as_unset=unset
     56 else
     57   as_unset=false
     58 fi
     59 
     60 
     61 # IFS
     62 # We need space, tab and new line, in precisely that order.  Quoting is
     63 # there to prevent editors from complaining about space-tab.
     64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     65 # splitting by setting IFS to empty value.)
     66 as_nl='
     67 '
     68 IFS=" ""	$as_nl"
     69 
     70 # Find who we are.  Look in the path if we contain no directory separator.
     71 case $0 in
     72   *[\\/]* ) as_myself=$0 ;;
     73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     74 for as_dir in $PATH
     75 do
     76   IFS=$as_save_IFS
     77   test -z "$as_dir" && as_dir=.
     78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     79 done
     80 IFS=$as_save_IFS
     81 
     82      ;;
     83 esac
     84 # We did not find ourselves, most probably we were run as `sh COMMAND'
     85 # in which case we are not to be found in the path.
     86 if test "x$as_myself" = x; then
     87   as_myself=$0
     88 fi
     89 if test ! -f "$as_myself"; then
     90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     91   { (exit 1); exit 1; }
     92 fi
     93 
     94 # Work around bugs in pre-3.0 UWIN ksh.
     95 for as_var in ENV MAIL MAILPATH
     96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     97 done
     98 PS1='$ '
     99 PS2='> '
    100 PS4='+ '
    101 
    102 # NLS nuisances.
    103 for as_var in \
    104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    106   LC_TELEPHONE LC_TIME
    107 do
    108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    109     eval $as_var=C; export $as_var
    110   else
    111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    112   fi
    113 done
    114 
    115 # Required to use basename.
    116 if expr a : '\(a\)' >/dev/null 2>&1 &&
    117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    118   as_expr=expr
    119 else
    120   as_expr=false
    121 fi
    122 
    123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    124   as_basename=basename
    125 else
    126   as_basename=false
    127 fi
    128 
    129 
    130 # Name of the executable.
    131 as_me=`$as_basename -- "$0" ||
    132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    133 	 X"$0" : 'X\(//\)$' \| \
    134 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    135 echo X/"$0" |
    136     sed '/^.*\/\([^/][^/]*\)\/*$/{
    137 	    s//\1/
    138 	    q
    139 	  }
    140 	  /^X\/\(\/\/\)$/{
    141 	    s//\1/
    142 	    q
    143 	  }
    144 	  /^X\/\(\/\).*/{
    145 	    s//\1/
    146 	    q
    147 	  }
    148 	  s/.*/./; q'`
    149 
    150 # CDPATH.
    151 $as_unset CDPATH
    152 
    153 
    154 if test "x$CONFIG_SHELL" = x; then
    155   if (eval ":") 2>/dev/null; then
    156   as_have_required=yes
    157 else
    158   as_have_required=no
    159 fi
    160 
    161   if test $as_have_required = yes && 	 (eval ":
    162 (as_func_return () {
    163   (exit \$1)
    164 }
    165 as_func_success () {
    166   as_func_return 0
    167 }
    168 as_func_failure () {
    169   as_func_return 1
    170 }
    171 as_func_ret_success () {
    172   return 0
    173 }
    174 as_func_ret_failure () {
    175   return 1
    176 }
    177 
    178 exitcode=0
    179 if as_func_success; then
    180   :
    181 else
    182   exitcode=1
    183   echo as_func_success failed.
    184 fi
    185 
    186 if as_func_failure; then
    187   exitcode=1
    188   echo as_func_failure succeeded.
    189 fi
    190 
    191 if as_func_ret_success; then
    192   :
    193 else
    194   exitcode=1
    195   echo as_func_ret_success failed.
    196 fi
    197 
    198 if as_func_ret_failure; then
    199   exitcode=1
    200   echo as_func_ret_failure succeeded.
    201 fi
    202 
    203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    204   :
    205 else
    206   exitcode=1
    207   echo positional parameters were not saved.
    208 fi
    209 
    210 test \$exitcode = 0) || { (exit 1); exit 1; }
    211 
    212 (
    213   as_lineno_1=\$LINENO
    214   as_lineno_2=\$LINENO
    215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    217 ") 2> /dev/null; then
    218   :
    219 else
    220   as_candidate_shells=
    221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    223 do
    224   IFS=$as_save_IFS
    225   test -z "$as_dir" && as_dir=.
    226   case $as_dir in
    227 	 /*)
    228 	   for as_base in sh bash ksh sh5; do
    229 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    230 	   done;;
    231        esac
    232 done
    233 IFS=$as_save_IFS
    234 
    235 
    236       for as_shell in $as_candidate_shells $SHELL; do
    237 	 # Try only shells that exist, to save several forks.
    238 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    239 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
    240 # Be Bourne compatible
    241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    242   emulate sh
    243   NULLCMD=:
    244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    245   # is contrary to our usage.  Disable this feature.
    246   alias -g '${1+"$@"}'='"$@"'
    247   setopt NO_GLOB_SUBST
    248 else
    249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
    250 fi
    251 BIN_SH=xpg4; export BIN_SH # for Tru64
    252 DUALCASE=1; export DUALCASE # for MKS sh
    253 
    254 :
    255 _ASEOF
    256 }; then
    257   CONFIG_SHELL=$as_shell
    258 	       as_have_required=yes
    259 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
    260 # Be Bourne compatible
    261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    262   emulate sh
    263   NULLCMD=:
    264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    265   # is contrary to our usage.  Disable this feature.
    266   alias -g '${1+"$@"}'='"$@"'
    267   setopt NO_GLOB_SUBST
    268 else
    269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
    270 fi
    271 BIN_SH=xpg4; export BIN_SH # for Tru64
    272 DUALCASE=1; export DUALCASE # for MKS sh
    273 
    274 :
    275 (as_func_return () {
    276   (exit $1)
    277 }
    278 as_func_success () {
    279   as_func_return 0
    280 }
    281 as_func_failure () {
    282   as_func_return 1
    283 }
    284 as_func_ret_success () {
    285   return 0
    286 }
    287 as_func_ret_failure () {
    288   return 1
    289 }
    290 
    291 exitcode=0
    292 if as_func_success; then
    293   :
    294 else
    295   exitcode=1
    296   echo as_func_success failed.
    297 fi
    298 
    299 if as_func_failure; then
    300   exitcode=1
    301   echo as_func_failure succeeded.
    302 fi
    303 
    304 if as_func_ret_success; then
    305   :
    306 else
    307   exitcode=1
    308   echo as_func_ret_success failed.
    309 fi
    310 
    311 if as_func_ret_failure; then
    312   exitcode=1
    313   echo as_func_ret_failure succeeded.
    314 fi
    315 
    316 if ( set x; as_func_ret_success y && test x = "$1" ); then
    317   :
    318 else
    319   exitcode=1
    320   echo positional parameters were not saved.
    321 fi
    322 
    323 test $exitcode = 0) || { (exit 1); exit 1; }
    324 
    325 (
    326   as_lineno_1=$LINENO
    327   as_lineno_2=$LINENO
    328   test "x$as_lineno_1" != "x$as_lineno_2" &&
    329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
    330 
    331 _ASEOF
    332 }; then
    333   break
    334 fi
    335 
    336 fi
    337 
    338       done
    339 
    340       if test "x$CONFIG_SHELL" != x; then
    341   for as_var in BASH_ENV ENV
    342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    343         done
    344         export CONFIG_SHELL
    345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    346 fi
    347 
    348 
    349     if test $as_have_required = no; then
    350   echo This script requires a shell more modern than all the
    351       echo shells that I found on your system.  Please install a
    352       echo modern shell, or manually run the script under such a
    353       echo shell if you do have one.
    354       { (exit 1); exit 1; }
    355 fi
    356 
    357 
    358 fi
    359 
    360 fi
    361 
    362 
    363 
    364 (eval "as_func_return () {
    365   (exit \$1)
    366 }
    367 as_func_success () {
    368   as_func_return 0
    369 }
    370 as_func_failure () {
    371   as_func_return 1
    372 }
    373 as_func_ret_success () {
    374   return 0
    375 }
    376 as_func_ret_failure () {
    377   return 1
    378 }
    379 
    380 exitcode=0
    381 if as_func_success; then
    382   :
    383 else
    384   exitcode=1
    385   echo as_func_success failed.
    386 fi
    387 
    388 if as_func_failure; then
    389   exitcode=1
    390   echo as_func_failure succeeded.
    391 fi
    392 
    393 if as_func_ret_success; then
    394   :
    395 else
    396   exitcode=1
    397   echo as_func_ret_success failed.
    398 fi
    399 
    400 if as_func_ret_failure; then
    401   exitcode=1
    402   echo as_func_ret_failure succeeded.
    403 fi
    404 
    405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    406   :
    407 else
    408   exitcode=1
    409   echo positional parameters were not saved.
    410 fi
    411 
    412 test \$exitcode = 0") || {
    413   echo No shell found that supports shell functions.
    414   echo Please tell autoconf@gnu.org about your system,
    415   echo including any error possibly output before this
    416   echo message
    417 }
    418 
    419 
    420 
    421   as_lineno_1=$LINENO
    422   as_lineno_2=$LINENO
    423   test "x$as_lineno_1" != "x$as_lineno_2" &&
    424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    425 
    426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    427   # uniformly replaced by the line number.  The first 'sed' inserts a
    428   # line-number line after each line using $LINENO; the second 'sed'
    429   # does the real work.  The second script uses 'N' to pair each
    430   # line-number line with the line containing $LINENO, and appends
    431   # trailing '-' during substitution so that $LINENO is not a special
    432   # case at line end.
    433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    435   # E. McMahon (1931-1989) for sed's syntax.  :-)
    436   sed -n '
    437     p
    438     /[$]LINENO/=
    439   ' <$as_myself |
    440     sed '
    441       s/[$]LINENO.*/&-/
    442       t lineno
    443       b
    444       :lineno
    445       N
    446       :loop
    447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    448       t loop
    449       s/-\n.*//
    450     ' >$as_me.lineno &&
    451   chmod +x "$as_me.lineno" ||
    452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    453    { (exit 1); exit 1; }; }
    454 
    455   # Don't try to exec as it changes $[0], causing all sort of problems
    456   # (the dirname of $[0] is not the place where we might find the
    457   # original and so on.  Autoconf is especially sensitive to this).
    458   . "./$as_me.lineno"
    459   # Exit status is that of the last command.
    460   exit
    461 }
    462 
    463 
    464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    465   as_dirname=dirname
    466 else
    467   as_dirname=false
    468 fi
    469 
    470 ECHO_C= ECHO_N= ECHO_T=
    471 case `echo -n x` in
    472 -n*)
    473   case `echo 'x\c'` in
    474   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    475   *)   ECHO_C='\c';;
    476   esac;;
    477 *)
    478   ECHO_N='-n';;
    479 esac
    480 
    481 if expr a : '\(a\)' >/dev/null 2>&1 &&
    482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    483   as_expr=expr
    484 else
    485   as_expr=false
    486 fi
    487 
    488 rm -f conf$$ conf$$.exe conf$$.file
    489 if test -d conf$$.dir; then
    490   rm -f conf$$.dir/conf$$.file
    491 else
    492   rm -f conf$$.dir
    493   mkdir conf$$.dir
    494 fi
    495 echo >conf$$.file
    496 if ln -s conf$$.file conf$$ 2>/dev/null; then
    497   as_ln_s='ln -s'
    498   # ... but there are two gotchas:
    499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    501   # In both cases, we have to default to `cp -p'.
    502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    503     as_ln_s='cp -p'
    504 elif ln conf$$.file conf$$ 2>/dev/null; then
    505   as_ln_s=ln
    506 else
    507   as_ln_s='cp -p'
    508 fi
    509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    510 rmdir conf$$.dir 2>/dev/null
    511 
    512 if mkdir -p . 2>/dev/null; then
    513   as_mkdir_p=:
    514 else
    515   test -d ./-p && rmdir ./-p
    516   as_mkdir_p=false
    517 fi
    518 
    519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
    520 # systems may use methods other than mode bits to determine executability.
    521 cat >conf$$.file <<_ASEOF
    522 #! /bin/sh
    523 exit 0
    524 _ASEOF
    525 chmod +x conf$$.file
    526 if test -x conf$$.file >/dev/null 2>&1; then
    527   as_executable_p="test -x"
    528 else
    529   as_executable_p=:
    530 fi
    531 rm -f conf$$.file
    532 
    533 # Sed expression to map a string onto a valid CPP name.
    534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    535 
    536 # Sed expression to map a string onto a valid variable name.
    537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    538 
    539 
    540 
    541 exec 7<&0 </dev/null 6>&1
    542 
    543 # Name of the host.
    544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    545 # so uname gets run too.
    546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    547 
    548 #
    549 # Initializations.
    550 #
    551 ac_default_prefix=/usr/local
    552 ac_clean_files=
    553 ac_config_libobj_dir=.
    554 LIBOBJS=
    555 cross_compiling=no
    556 subdirs=
    557 MFLAGS=
    558 MAKEFLAGS=
    559 SHELL=${CONFIG_SHELL-/bin/sh}
    560 
    561 # Identity of this package.
    562 PACKAGE_NAME='llvm'
    563 PACKAGE_TARNAME='-llvm-'
    564 PACKAGE_VERSION='3.1svn'
    565 PACKAGE_STRING='llvm 3.1svn'
    566 PACKAGE_BUGREPORT='llvmbugs (at] cs.uiuc.edu'
    567 
    568 ac_unique_file="lib/VMCore/Module.cpp"
    569 # Factoring default headers for most tests.
    570 ac_includes_default="\
    571 #include <stdio.h>
    572 #if HAVE_SYS_TYPES_H
    573 # include <sys/types.h>
    574 #endif
    575 #if HAVE_SYS_STAT_H
    576 # include <sys/stat.h>
    577 #endif
    578 #if STDC_HEADERS
    579 # include <stdlib.h>
    580 # include <stddef.h>
    581 #else
    582 # if HAVE_STDLIB_H
    583 #  include <stdlib.h>
    584 # endif
    585 #endif
    586 #if HAVE_STRING_H
    587 # if !STDC_HEADERS && HAVE_MEMORY_H
    588 #  include <memory.h>
    589 # endif
    590 # include <string.h>
    591 #endif
    592 #if HAVE_STRINGS_H
    593 # include <strings.h>
    594 #endif
    595 #if HAVE_INTTYPES_H
    596 # include <inttypes.h>
    597 #endif
    598 #if HAVE_STDINT_H
    599 # include <stdint.h>
    600 #endif
    601 #if HAVE_UNISTD_H
    602 # include <unistd.h>
    603 #endif"
    604 
    605 ac_subst_vars='SHELL
    606 PATH_SEPARATOR
    607 PACKAGE_NAME
    608 PACKAGE_TARNAME
    609 PACKAGE_VERSION
    610 PACKAGE_STRING
    611 PACKAGE_BUGREPORT
    612 exec_prefix
    613 prefix
    614 program_transform_name
    615 bindir
    616 sbindir
    617 libexecdir
    618 datarootdir
    619 datadir
    620 sysconfdir
    621 sharedstatedir
    622 localstatedir
    623 includedir
    624 oldincludedir
    625 docdir
    626 infodir
    627 htmldir
    628 dvidir
    629 pdfdir
    630 psdir
    631 libdir
    632 localedir
    633 mandir
    634 DEFS
    635 ECHO_C
    636 ECHO_N
    637 ECHO_T
    638 LIBS
    639 build_alias
    640 host_alias
    641 target_alias
    642 LLVM_COPYRIGHT
    643 CC
    644 CFLAGS
    645 LDFLAGS
    646 CPPFLAGS
    647 ac_ct_CC
    648 EXEEXT
    649 OBJEXT
    650 CXX
    651 CXXFLAGS
    652 ac_ct_CXX
    653 CPP
    654 subdirs
    655 ENABLE_POLLY
    656 LLVM_HAS_POLLY
    657 build
    658 build_cpu
    659 build_vendor
    660 build_os
    661 host
    662 host_cpu
    663 host_vendor
    664 host_os
    665 target
    666 target_cpu
    667 target_vendor
    668 target_os
    669 OS
    670 HOST_OS
    671 TARGET_OS
    672 LINKALL
    673 NOLINKALL
    674 LLVM_ON_UNIX
    675 LLVM_ON_WIN32
    676 ARCH
    677 ENDIAN
    678 GREP
    679 EGREP
    680 LLVM_CROSS_COMPILING
    681 BUILD_CC
    682 BUILD_EXEEXT
    683 BUILD_CXX
    684 CVSBUILD
    685 ENABLE_OPTIMIZED
    686 ENABLE_PROFILING
    687 DISABLE_ASSERTIONS
    688 ENABLE_EXPENSIVE_CHECKS
    689 EXPENSIVE_CHECKS
    690 DEBUG_RUNTIME
    691 DEBUG_SYMBOLS
    692 JIT
    693 TARGET_HAS_JIT
    694 ENABLE_DOCS
    695 ENABLE_DOXYGEN
    696 ENABLE_THREADS
    697 ENABLE_PTHREADS
    698 ENABLE_PIC
    699 ENABLE_SHARED
    700 ENABLE_EMBED_STDCXX
    701 ENABLE_TIMESTAMPS
    702 TARGETS_TO_BUILD
    703 LLVM_ENUM_TARGETS
    704 LLVM_ENUM_ASM_PRINTERS
    705 LLVM_ENUM_ASM_PARSERS
    706 LLVM_ENUM_DISASSEMBLERS
    707 ENABLE_CBE_PRINTF_A
    708 OPTIMIZE_OPTION
    709 EXTRA_OPTIONS
    710 EXTRA_LD_OPTIONS
    711 CLANG_SRC_ROOT
    712 BINUTILS_INCDIR
    713 NM
    714 ifGNUmake
    715 LN_S
    716 CMP
    717 CP
    718 DATE
    719 FIND
    720 MKDIR
    721 MV
    722 RANLIB
    723 AR
    724 RM
    725 SED
    726 TAR
    727 BINPWD
    728 GRAPHVIZ
    729 DOT
    730 FDP
    731 NEATO
    732 TWOPI
    733 CIRCO
    734 GV
    735 DOTTY
    736 XDOT_PY
    737 PERL
    738 HAVE_PERL
    739 INSTALL_PROGRAM
    740 INSTALL_SCRIPT
    741 INSTALL_DATA
    742 BZIP2
    743 CAT
    744 DOXYGEN
    745 GROFF
    746 GZIPBIN
    747 POD2HTML
    748 POD2MAN
    749 PDFROFF
    750 RUNTEST
    751 TCLSH
    752 ZIP
    753 OCAMLC
    754 OCAMLOPT
    755 OCAMLDEP
    756 OCAMLDOC
    757 GAS
    758 HAVE_LINK_VERSION_SCRIPT
    759 INSTALL_LTDL_TRUE
    760 INSTALL_LTDL_FALSE
    761 CONVENIENCE_LTDL_TRUE
    762 CONVENIENCE_LTDL_FALSE
    763 LIBADD_DL
    764 NO_VARIADIC_MACROS
    765 NO_MISSING_FIELD_INITIALIZERS
    766 USE_UDIS86
    767 USE_OPROFILE
    768 HAVE_PTHREAD
    769 HUGE_VAL_SANITY
    770 MMAP_FILE
    771 SHLIBEXT
    772 SHLIBPATH_VAR
    773 LLVM_PREFIX
    774 LLVM_BINDIR
    775 LLVM_LIBDIR
    776 LLVM_DATADIR
    777 LLVM_DOCSDIR
    778 LLVM_ETCDIR
    779 LLVM_INCLUDEDIR
    780 LLVM_INFODIR
    781 LLVM_MANDIR
    782 LLVM_CONFIGTIME
    783 BINDINGS_TO_BUILD
    784 ALL_BINDINGS
    785 OCAML_LIBDIR
    786 ENABLE_VISIBILITY_INLINES_HIDDEN
    787 RPATH
    788 RDYNAMIC
    789 LIBOBJS
    790 LTLIBOBJS'
    791 ac_subst_files=''
    792       ac_precious_vars='build_alias
    793 host_alias
    794 target_alias
    795 CC
    796 CFLAGS
    797 LDFLAGS
    798 CPPFLAGS
    799 CXX
    800 CXXFLAGS
    801 CCC
    802 CPP'
    803 ac_subdirs_all='projects/llvm-gcc
    804 projects/test-suite
    805 projects/llvm-test
    806 projects/poolalloc
    807 projects/llvm-poolalloc
    808 projects/sample
    809 projects/privbracket
    810 projects/llvm-stacker
    811 projects/llvm-reopt
    812 projects/llvm-java
    813 projects/llvm-tv
    814 projects/safecode
    815 projects/llvm-kernel
    816 tools/polly'
    817 
    818 # Initialize some variables set by options.
    819 ac_init_help=
    820 ac_init_version=false
    821 # The variables have the same names as the options, with
    822 # dashes changed to underlines.
    823 cache_file=/dev/null
    824 exec_prefix=NONE
    825 no_create=
    826 no_recursion=
    827 prefix=NONE
    828 program_prefix=NONE
    829 program_suffix=NONE
    830 program_transform_name=s,x,x,
    831 silent=
    832 site=
    833 srcdir=
    834 verbose=
    835 x_includes=NONE
    836 x_libraries=NONE
    837 
    838 # Installation directory options.
    839 # These are left unexpanded so users can "make install exec_prefix=/foo"
    840 # and all the variables that are supposed to be based on exec_prefix
    841 # by default will actually change.
    842 # Use braces instead of parens because sh, perl, etc. also accept them.
    843 # (The list follows the same order as the GNU Coding Standards.)
    844 bindir='${exec_prefix}/bin'
    845 sbindir='${exec_prefix}/sbin'
    846 libexecdir='${exec_prefix}/libexec'
    847 datarootdir='${prefix}/share'
    848 datadir='${datarootdir}'
    849 sysconfdir='${prefix}/etc'
    850 sharedstatedir='${prefix}/com'
    851 localstatedir='${prefix}/var'
    852 includedir='${prefix}/include'
    853 oldincludedir='/usr/include'
    854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    855 infodir='${datarootdir}/info'
    856 htmldir='${docdir}'
    857 dvidir='${docdir}'
    858 pdfdir='${docdir}'
    859 psdir='${docdir}'
    860 libdir='${exec_prefix}/lib'
    861 localedir='${datarootdir}/locale'
    862 mandir='${datarootdir}/man'
    863 
    864 ac_prev=
    865 ac_dashdash=
    866 for ac_option
    867 do
    868   # If the previous option needs an argument, assign it.
    869   if test -n "$ac_prev"; then
    870     eval $ac_prev=\$ac_option
    871     ac_prev=
    872     continue
    873   fi
    874 
    875   case $ac_option in
    876   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    877   *)	ac_optarg=yes ;;
    878   esac
    879 
    880   # Accept the important Cygnus configure options, so we can diagnose typos.
    881 
    882   case $ac_dashdash$ac_option in
    883   --)
    884     ac_dashdash=yes ;;
    885 
    886   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    887     ac_prev=bindir ;;
    888   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    889     bindir=$ac_optarg ;;
    890 
    891   -build | --build | --buil | --bui | --bu)
    892     ac_prev=build_alias ;;
    893   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    894     build_alias=$ac_optarg ;;
    895 
    896   -cache-file | --cache-file | --cache-fil | --cache-fi \
    897   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    898     ac_prev=cache_file ;;
    899   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    900   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    901     cache_file=$ac_optarg ;;
    902 
    903   --config-cache | -C)
    904     cache_file=config.cache ;;
    905 
    906   -datadir | --datadir | --datadi | --datad)
    907     ac_prev=datadir ;;
    908   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    909     datadir=$ac_optarg ;;
    910 
    911   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    912   | --dataroo | --dataro | --datar)
    913     ac_prev=datarootdir ;;
    914   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    915   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    916     datarootdir=$ac_optarg ;;
    917 
    918   -disable-* | --disable-*)
    919     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    920     # Reject names that are not valid shell variable names.
    921     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    922       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    923    { (exit 1); exit 1; }; }
    924     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    925     eval enable_$ac_feature=no ;;
    926 
    927   -docdir | --docdir | --docdi | --doc | --do)
    928     ac_prev=docdir ;;
    929   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    930     docdir=$ac_optarg ;;
    931 
    932   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    933     ac_prev=dvidir ;;
    934   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    935     dvidir=$ac_optarg ;;
    936 
    937   -enable-* | --enable-*)
    938     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    939     # Reject names that are not valid shell variable names.
    940     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    941       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    942    { (exit 1); exit 1; }; }
    943     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    944     eval enable_$ac_feature=\$ac_optarg ;;
    945 
    946   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    947   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    948   | --exec | --exe | --ex)
    949     ac_prev=exec_prefix ;;
    950   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    951   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    952   | --exec=* | --exe=* | --ex=*)
    953     exec_prefix=$ac_optarg ;;
    954 
    955   -gas | --gas | --ga | --g)
    956     # Obsolete; use --with-gas.
    957     with_gas=yes ;;
    958 
    959   -help | --help | --hel | --he | -h)
    960     ac_init_help=long ;;
    961   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    962     ac_init_help=recursive ;;
    963   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    964     ac_init_help=short ;;
    965 
    966   -host | --host | --hos | --ho)
    967     ac_prev=host_alias ;;
    968   -host=* | --host=* | --hos=* | --ho=*)
    969     host_alias=$ac_optarg ;;
    970 
    971   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    972     ac_prev=htmldir ;;
    973   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    974   | --ht=*)
    975     htmldir=$ac_optarg ;;
    976 
    977   -includedir | --includedir | --includedi | --included | --include \
    978   | --includ | --inclu | --incl | --inc)
    979     ac_prev=includedir ;;
    980   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    981   | --includ=* | --inclu=* | --incl=* | --inc=*)
    982     includedir=$ac_optarg ;;
    983 
    984   -infodir | --infodir | --infodi | --infod | --info | --inf)
    985     ac_prev=infodir ;;
    986   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    987     infodir=$ac_optarg ;;
    988 
    989   -libdir | --libdir | --libdi | --libd)
    990     ac_prev=libdir ;;
    991   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    992     libdir=$ac_optarg ;;
    993 
    994   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    995   | --libexe | --libex | --libe)
    996     ac_prev=libexecdir ;;
    997   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    998   | --libexe=* | --libex=* | --libe=*)
    999     libexecdir=$ac_optarg ;;
   1000 
   1001   -localedir | --localedir | --localedi | --localed | --locale)
   1002     ac_prev=localedir ;;
   1003   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1004     localedir=$ac_optarg ;;
   1005 
   1006   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1007   | --localstate | --localstat | --localsta | --localst | --locals)
   1008     ac_prev=localstatedir ;;
   1009   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1010   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1011     localstatedir=$ac_optarg ;;
   1012 
   1013   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1014     ac_prev=mandir ;;
   1015   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1016     mandir=$ac_optarg ;;
   1017 
   1018   -nfp | --nfp | --nf)
   1019     # Obsolete; use --without-fp.
   1020     with_fp=no ;;
   1021 
   1022   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1023   | --no-cr | --no-c | -n)
   1024     no_create=yes ;;
   1025 
   1026   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1027   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1028     no_recursion=yes ;;
   1029 
   1030   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1031   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1032   | --oldin | --oldi | --old | --ol | --o)
   1033     ac_prev=oldincludedir ;;
   1034   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1035   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1036   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1037     oldincludedir=$ac_optarg ;;
   1038 
   1039   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1040     ac_prev=prefix ;;
   1041   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1042     prefix=$ac_optarg ;;
   1043 
   1044   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1045   | --program-pre | --program-pr | --program-p)
   1046     ac_prev=program_prefix ;;
   1047   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1048   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1049     program_prefix=$ac_optarg ;;
   1050 
   1051   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1052   | --program-suf | --program-su | --program-s)
   1053     ac_prev=program_suffix ;;
   1054   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1055   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1056     program_suffix=$ac_optarg ;;
   1057 
   1058   -program-transform-name | --program-transform-name \
   1059   | --program-transform-nam | --program-transform-na \
   1060   | --program-transform-n | --program-transform- \
   1061   | --program-transform | --program-transfor \
   1062   | --program-transfo | --program-transf \
   1063   | --program-trans | --program-tran \
   1064   | --progr-tra | --program-tr | --program-t)
   1065     ac_prev=program_transform_name ;;
   1066   -program-transform-name=* | --program-transform-name=* \
   1067   | --program-transform-nam=* | --program-transform-na=* \
   1068   | --program-transform-n=* | --program-transform-=* \
   1069   | --program-transform=* | --program-transfor=* \
   1070   | --program-transfo=* | --program-transf=* \
   1071   | --program-trans=* | --program-tran=* \
   1072   | --progr-tra=* | --program-tr=* | --program-t=*)
   1073     program_transform_name=$ac_optarg ;;
   1074 
   1075   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1076     ac_prev=pdfdir ;;
   1077   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1078     pdfdir=$ac_optarg ;;
   1079 
   1080   -psdir | --psdir | --psdi | --psd | --ps)
   1081     ac_prev=psdir ;;
   1082   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1083     psdir=$ac_optarg ;;
   1084 
   1085   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1086   | -silent | --silent | --silen | --sile | --sil)
   1087     silent=yes ;;
   1088 
   1089   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1090     ac_prev=sbindir ;;
   1091   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1092   | --sbi=* | --sb=*)
   1093     sbindir=$ac_optarg ;;
   1094 
   1095   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1096   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1097   | --sharedst | --shareds | --shared | --share | --shar \
   1098   | --sha | --sh)
   1099     ac_prev=sharedstatedir ;;
   1100   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1101   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1102   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1103   | --sha=* | --sh=*)
   1104     sharedstatedir=$ac_optarg ;;
   1105 
   1106   -site | --site | --sit)
   1107     ac_prev=site ;;
   1108   -site=* | --site=* | --sit=*)
   1109     site=$ac_optarg ;;
   1110 
   1111   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1112     ac_prev=srcdir ;;
   1113   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1114     srcdir=$ac_optarg ;;
   1115 
   1116   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1117   | --syscon | --sysco | --sysc | --sys | --sy)
   1118     ac_prev=sysconfdir ;;
   1119   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1120   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1121     sysconfdir=$ac_optarg ;;
   1122 
   1123   -target | --target | --targe | --targ | --tar | --ta | --t)
   1124     ac_prev=target_alias ;;
   1125   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1126     target_alias=$ac_optarg ;;
   1127 
   1128   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1129     verbose=yes ;;
   1130 
   1131   -version | --version | --versio | --versi | --vers | -V)
   1132     ac_init_version=: ;;
   1133 
   1134   -with-* | --with-*)
   1135     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1136     # Reject names that are not valid shell variable names.
   1137     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
   1138       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1139    { (exit 1); exit 1; }; }
   1140     ac_package=`echo $ac_package| sed 's/-/_/g'`
   1141     eval with_$ac_package=\$ac_optarg ;;
   1142 
   1143   -without-* | --without-*)
   1144     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1145     # Reject names that are not valid shell variable names.
   1146     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
   1147       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1148    { (exit 1); exit 1; }; }
   1149     ac_package=`echo $ac_package | sed 's/-/_/g'`
   1150     eval with_$ac_package=no ;;
   1151 
   1152   --x)
   1153     # Obsolete; use --with-x.
   1154     with_x=yes ;;
   1155 
   1156   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1157   | --x-incl | --x-inc | --x-in | --x-i)
   1158     ac_prev=x_includes ;;
   1159   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1160   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1161     x_includes=$ac_optarg ;;
   1162 
   1163   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1164   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1165     ac_prev=x_libraries ;;
   1166   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1167   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1168     x_libraries=$ac_optarg ;;
   1169 
   1170   -*) { echo "$as_me: error: unrecognized option: $ac_option
   1171 Try \`$0 --help' for more information." >&2
   1172    { (exit 1); exit 1; }; }
   1173     ;;
   1174 
   1175   *=*)
   1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1177     # Reject names that are not valid shell variable names.
   1178     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
   1179       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   1180    { (exit 1); exit 1; }; }
   1181     eval $ac_envvar=\$ac_optarg
   1182     export $ac_envvar ;;
   1183 
   1184   *)
   1185     # FIXME: should be removed in autoconf 3.0.
   1186     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1187     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1188       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1189     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1190     ;;
   1191 
   1192   esac
   1193 done
   1194 
   1195 if test -n "$ac_prev"; then
   1196   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1197   { echo "$as_me: error: missing argument to $ac_option" >&2
   1198    { (exit 1); exit 1; }; }
   1199 fi
   1200 
   1201 # Be sure to have absolute directory names.
   1202 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1203 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1204 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1205 		libdir localedir mandir
   1206 do
   1207   eval ac_val=\$$ac_var
   1208   case $ac_val in
   1209     [\\/$]* | ?:[\\/]* )  continue;;
   1210     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1211   esac
   1212   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   1213    { (exit 1); exit 1; }; }
   1214 done
   1215 
   1216 # There might be people who depend on the old broken behavior: `$host'
   1217 # used to hold the argument of --host etc.
   1218 # FIXME: To remove some day.
   1219 build=$build_alias
   1220 host=$host_alias
   1221 target=$target_alias
   1222 
   1223 # FIXME: To remove some day.
   1224 if test "x$host_alias" != x; then
   1225   if test "x$build_alias" = x; then
   1226     cross_compiling=maybe
   1227     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1228     If a cross compiler is detected then cross compile mode will be used." >&2
   1229   elif test "x$build_alias" != "x$host_alias"; then
   1230     cross_compiling=yes
   1231   fi
   1232 fi
   1233 
   1234 ac_tool_prefix=
   1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1236 
   1237 test "$silent" = yes && exec 6>/dev/null
   1238 
   1239 
   1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1241 ac_ls_di=`ls -di .` &&
   1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1243   { echo "$as_me: error: Working directory cannot be determined" >&2
   1244    { (exit 1); exit 1; }; }
   1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1246   { echo "$as_me: error: pwd does not report name of working directory" >&2
   1247    { (exit 1); exit 1; }; }
   1248 
   1249 
   1250 # Find the source files, if location was not specified.
   1251 if test -z "$srcdir"; then
   1252   ac_srcdir_defaulted=yes
   1253   # Try the directory containing this script, then the parent directory.
   1254   ac_confdir=`$as_dirname -- "$0" ||
   1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1256 	 X"$0" : 'X\(//\)[^/]' \| \
   1257 	 X"$0" : 'X\(//\)$' \| \
   1258 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   1259 echo X"$0" |
   1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1261 	    s//\1/
   1262 	    q
   1263 	  }
   1264 	  /^X\(\/\/\)[^/].*/{
   1265 	    s//\1/
   1266 	    q
   1267 	  }
   1268 	  /^X\(\/\/\)$/{
   1269 	    s//\1/
   1270 	    q
   1271 	  }
   1272 	  /^X\(\/\).*/{
   1273 	    s//\1/
   1274 	    q
   1275 	  }
   1276 	  s/.*/./; q'`
   1277   srcdir=$ac_confdir
   1278   if test ! -r "$srcdir/$ac_unique_file"; then
   1279     srcdir=..
   1280   fi
   1281 else
   1282   ac_srcdir_defaulted=no
   1283 fi
   1284 if test ! -r "$srcdir/$ac_unique_file"; then
   1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1286   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   1287    { (exit 1); exit 1; }; }
   1288 fi
   1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1290 ac_abs_confdir=`(
   1291 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   1292    { (exit 1); exit 1; }; }
   1293 	pwd)`
   1294 # When building in place, set srcdir=.
   1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1296   srcdir=.
   1297 fi
   1298 # Remove unnecessary trailing slashes from srcdir.
   1299 # Double slashes in file names in object file debugging info
   1300 # mess up M-x gdb in Emacs.
   1301 case $srcdir in
   1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1303 esac
   1304 for ac_var in $ac_precious_vars; do
   1305   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1306   eval ac_env_${ac_var}_value=\$${ac_var}
   1307   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1308   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1309 done
   1310 
   1311 #
   1312 # Report the --help message.
   1313 #
   1314 if test "$ac_init_help" = "long"; then
   1315   # Omit some internal or obsolete options to make the list less imposing.
   1316   # This message is too long to be a string in the A/UX 3.1 sh.
   1317   cat <<_ACEOF
   1318 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
   1319 
   1320 Usage: $0 [OPTION]... [VAR=VALUE]...
   1321 
   1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1323 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1324 
   1325 Defaults for the options are specified in brackets.
   1326 
   1327 Configuration:
   1328   -h, --help              display this help and exit
   1329       --help=short        display options specific to this package
   1330       --help=recursive    display the short help of all the included packages
   1331   -V, --version           display version information and exit
   1332   -q, --quiet, --silent   do not print \`checking...' messages
   1333       --cache-file=FILE   cache test results in FILE [disabled]
   1334   -C, --config-cache      alias for \`--cache-file=config.cache'
   1335   -n, --no-create         do not create output files
   1336       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1337 
   1338 Installation directories:
   1339   --prefix=PREFIX         install architecture-independent files in PREFIX
   1340 			  [$ac_default_prefix]
   1341   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1342 			  [PREFIX]
   1343 
   1344 By default, \`make install' will install all the files in
   1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1347 for instance \`--prefix=\$HOME'.
   1348 
   1349 For better control, use the options below.
   1350 
   1351 Fine tuning of the installation directories:
   1352   --bindir=DIR           user executables [EPREFIX/bin]
   1353   --sbindir=DIR          system admin executables [EPREFIX/sbin]
   1354   --libexecdir=DIR       program executables [EPREFIX/libexec]
   1355   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
   1356   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
   1357   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   1358   --libdir=DIR           object code libraries [EPREFIX/lib]
   1359   --includedir=DIR       C header files [PREFIX/include]
   1360   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
   1361   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
   1362   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
   1363   --infodir=DIR          info documentation [DATAROOTDIR/info]
   1364   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
   1365   --mandir=DIR           man documentation [DATAROOTDIR/man]
   1366   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
   1367   --htmldir=DIR          html documentation [DOCDIR]
   1368   --dvidir=DIR           dvi documentation [DOCDIR]
   1369   --pdfdir=DIR           pdf documentation [DOCDIR]
   1370   --psdir=DIR            ps documentation [DOCDIR]
   1371 _ACEOF
   1372 
   1373   cat <<\_ACEOF
   1374 
   1375 System types:
   1376   --build=BUILD     configure for building on BUILD [guessed]
   1377   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1378   --target=TARGET   configure for building compilers for TARGET [HOST]
   1379 _ACEOF
   1380 fi
   1381 
   1382 if test -n "$ac_init_help"; then
   1383   case $ac_init_help in
   1384      short | recursive ) echo "Configuration of llvm 3.1svn:";;
   1385    esac
   1386   cat <<\_ACEOF
   1387 
   1388 Optional Features:
   1389   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1390   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1391   --enable-polly          Use polly if available (default is YES)
   1392   --enable-optimized      Compile with optimizations enabled (default is NO)
   1393   --enable-profiling      Compile with profiling enabled (default is NO)
   1394   --enable-assertions     Compile with assertion checks enabled (default is
   1395                           YES)
   1396   --enable-expensive-checks
   1397                           Compile with expensive debug checks enabled (default
   1398                           is NO)
   1399   --enable-debug-runtime  Build runtime libs with debug symbols (default is
   1400                           NO)
   1401   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
   1402                           optimization is on and YES if it's off)
   1403   --enable-jit            Enable Just In Time Compiling (default is YES)
   1404   --enable-docs           Build documents (default is YES)
   1405   --enable-doxygen        Build doxygen documentation (default is NO)
   1406   --enable-threads        Use threads if available (default is YES)
   1407   --enable-pthreads       Use pthreads if available (default is YES)
   1408   --enable-pic            Build LLVM with Position Independent Code (default
   1409                           is YES)
   1410   --enable-shared         Build a shared library and link tools against it
   1411                           (default is NO)
   1412   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
   1413                           Win32 DLL (default is NO)
   1414   --enable-timestamps     Enable embedding timestamp information in build
   1415                           (default is YES)
   1416   --enable-targets        Build specific host targets: all or
   1417                           target1,target2,... Valid targets are: host, x86,
   1418                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
   1419                           xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
   1420                           (default=all)
   1421   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
   1422                           %a (default is YES)
   1423   --enable-bindings       Build specific language bindings:
   1424                           all,auto,none,{binding-name} (default=auto)
   1425   --enable-libffi         Check for the presence of libffi (default is NO)
   1426   --enable-ltdl-install   install libltdl
   1427 
   1428 Optional Packages:
   1429   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1430   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1431   --with-optimize-option  Select the compiler options to use for optimized
   1432                           builds
   1433   --with-extra-options    Specify additional options to compile LLVM with
   1434   --with-extra-ld-options Specify additional options to link LLVM with
   1435   --with-ocaml-libdir     Specify install location for ocaml bindings (default
   1436                           is stdlib)
   1437   --with-clang-srcdir     Directory to the out-of-tree Clang source
   1438   --with-clang-resource-dir
   1439                           Relative directory from the Clang binary for
   1440                           resource files
   1441   --with-c-include-dirs   Colon separated list of directories clang will
   1442                           search for headers
   1443   --with-cxx-include-root Directory with the libstdc++ headers.
   1444   --with-cxx-include-arch Architecture of the libstdc++ headers.
   1445   --with-cxx-include-32bit-dir
   1446                           32 bit multilib dir.
   1447   --with-cxx-include-64bit-dir
   1448                           64 bit multilib directory.
   1449   --with-binutils-include Specify path to binutils/include/ containing
   1450                           plugin-api.h file for gold plugin.
   1451   --with-bug-report-url   Specify the URL where bug reports should be
   1452                           submitted (default=http://llvm.org/bugs/)
   1453   --with-tclinclude       directory where tcl headers are
   1454   --with-udis86=<path>    Use udis86 external x86 disassembler library
   1455   --with-oprofile=<prefix>
   1456                           Tell OProfile >= 0.9.4 how to symbolize JIT output
   1457 
   1458 Some influential environment variables:
   1459   CC          C compiler command
   1460   CFLAGS      C compiler flags
   1461   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1462               nonstandard directory <lib dir>
   1463   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1464               you have headers in a nonstandard directory <include dir>
   1465   CXX         C++ compiler command
   1466   CXXFLAGS    C++ compiler flags
   1467   CPP         C preprocessor
   1468 
   1469 Use these variables to override the choices made by `configure' or to help
   1470 it to find libraries and programs with nonstandard names/locations.
   1471 
   1472 Report bugs to <llvmbugs (at] cs.uiuc.edu>.
   1473 _ACEOF
   1474 ac_status=$?
   1475 fi
   1476 
   1477 if test "$ac_init_help" = "recursive"; then
   1478   # If there are subdirs, report their specific --help.
   1479   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1480     test -d "$ac_dir" || continue
   1481     ac_builddir=.
   1482 
   1483 case "$ac_dir" in
   1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1485 *)
   1486   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   1487   # A ".." for each directory in $ac_dir_suffix.
   1488   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   1489   case $ac_top_builddir_sub in
   1490   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1491   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1492   esac ;;
   1493 esac
   1494 ac_abs_top_builddir=$ac_pwd
   1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1496 # for backward compatibility:
   1497 ac_top_builddir=$ac_top_build_prefix
   1498 
   1499 case $srcdir in
   1500   .)  # We are building in place.
   1501     ac_srcdir=.
   1502     ac_top_srcdir=$ac_top_builddir_sub
   1503     ac_abs_top_srcdir=$ac_pwd ;;
   1504   [\\/]* | ?:[\\/]* )  # Absolute name.
   1505     ac_srcdir=$srcdir$ac_dir_suffix;
   1506     ac_top_srcdir=$srcdir
   1507     ac_abs_top_srcdir=$srcdir ;;
   1508   *) # Relative name.
   1509     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1510     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1511     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1512 esac
   1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1514 
   1515     cd "$ac_dir" || { ac_status=$?; continue; }
   1516     # Check for guested configure.
   1517     if test -f "$ac_srcdir/configure.gnu"; then
   1518       echo &&
   1519       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1520     elif test -f "$ac_srcdir/configure"; then
   1521       echo &&
   1522       $SHELL "$ac_srcdir/configure" --help=recursive
   1523     else
   1524       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1525     fi || ac_status=$?
   1526     cd "$ac_pwd" || { ac_status=$?; break; }
   1527   done
   1528 fi
   1529 
   1530 test -n "$ac_init_help" && exit $ac_status
   1531 if $ac_init_version; then
   1532   cat <<\_ACEOF
   1533 llvm configure 3.1svn
   1534 generated by GNU Autoconf 2.60
   1535 
   1536 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   1537 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
   1538 This configure script is free software; the Free Software Foundation
   1539 gives unlimited permission to copy, distribute and modify it.
   1540 
   1541 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
   1542 _ACEOF
   1543   exit
   1544 fi
   1545 cat >config.log <<_ACEOF
   1546 This file contains any messages produced by compilers while
   1547 running configure, to aid debugging if configure makes a mistake.
   1548 
   1549 It was created by llvm $as_me 3.1svn, which was
   1550 generated by GNU Autoconf 2.60.  Invocation command line was
   1551 
   1552   $ $0 $@
   1553 
   1554 _ACEOF
   1555 exec 5>>config.log
   1556 {
   1557 cat <<_ASUNAME
   1558 ## --------- ##
   1559 ## Platform. ##
   1560 ## --------- ##
   1561 
   1562 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1563 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1564 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1565 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1566 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1567 
   1568 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1569 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1570 
   1571 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1572 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1573 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1574 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1575 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1576 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1577 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1578 
   1579 _ASUNAME
   1580 
   1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1582 for as_dir in $PATH
   1583 do
   1584   IFS=$as_save_IFS
   1585   test -z "$as_dir" && as_dir=.
   1586   echo "PATH: $as_dir"
   1587 done
   1588 IFS=$as_save_IFS
   1589 
   1590 } >&5
   1591 
   1592 cat >&5 <<_ACEOF
   1593 
   1594 
   1595 ## ----------- ##
   1596 ## Core tests. ##
   1597 ## ----------- ##
   1598 
   1599 _ACEOF
   1600 
   1601 
   1602 # Keep a trace of the command line.
   1603 # Strip out --no-create and --no-recursion so they do not pile up.
   1604 # Strip out --silent because we don't want to record it for future runs.
   1605 # Also quote any args containing shell meta-characters.
   1606 # Make two passes to allow for proper duplicate-argument suppression.
   1607 ac_configure_args=
   1608 ac_configure_args0=
   1609 ac_configure_args1=
   1610 ac_must_keep_next=false
   1611 for ac_pass in 1 2
   1612 do
   1613   for ac_arg
   1614   do
   1615     case $ac_arg in
   1616     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1617     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1618     | -silent | --silent | --silen | --sile | --sil)
   1619       continue ;;
   1620     *\'*)
   1621       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1622     esac
   1623     case $ac_pass in
   1624     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1625     2)
   1626       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1627       if test $ac_must_keep_next = true; then
   1628 	ac_must_keep_next=false # Got value, back to normal.
   1629       else
   1630 	case $ac_arg in
   1631 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1632 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1633 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1634 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1635 	    case "$ac_configure_args0 " in
   1636 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1637 	    esac
   1638 	    ;;
   1639 	  -* ) ac_must_keep_next=true ;;
   1640 	esac
   1641       fi
   1642       ac_configure_args="$ac_configure_args '$ac_arg'"
   1643       ;;
   1644     esac
   1645   done
   1646 done
   1647 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1648 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1649 
   1650 # When interrupted or exit'd, cleanup temporary files, and complete
   1651 # config.log.  We remove comments because anyway the quotes in there
   1652 # would cause problems or look ugly.
   1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1655 trap 'exit_status=$?
   1656   # Save into config.log some information that might help in debugging.
   1657   {
   1658     echo
   1659 
   1660     cat <<\_ASBOX
   1661 ## ---------------- ##
   1662 ## Cache variables. ##
   1663 ## ---------------- ##
   1664 _ASBOX
   1665     echo
   1666     # The following way of writing the cache mishandles newlines in values,
   1667 (
   1668   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1669     eval ac_val=\$$ac_var
   1670     case $ac_val in #(
   1671     *${as_nl}*)
   1672       case $ac_var in #(
   1673       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   1674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   1675       esac
   1676       case $ac_var in #(
   1677       _ | IFS | as_nl) ;; #(
   1678       *) $as_unset $ac_var ;;
   1679       esac ;;
   1680     esac
   1681   done
   1682   (set) 2>&1 |
   1683     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1684     *${as_nl}ac_space=\ *)
   1685       sed -n \
   1686 	"s/'\''/'\''\\\\'\'''\''/g;
   1687 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1688       ;; #(
   1689     *)
   1690       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1691       ;;
   1692     esac |
   1693     sort
   1694 )
   1695     echo
   1696 
   1697     cat <<\_ASBOX
   1698 ## ----------------- ##
   1699 ## Output variables. ##
   1700 ## ----------------- ##
   1701 _ASBOX
   1702     echo
   1703     for ac_var in $ac_subst_vars
   1704     do
   1705       eval ac_val=\$$ac_var
   1706       case $ac_val in
   1707       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1708       esac
   1709       echo "$ac_var='\''$ac_val'\''"
   1710     done | sort
   1711     echo
   1712 
   1713     if test -n "$ac_subst_files"; then
   1714       cat <<\_ASBOX
   1715 ## ------------------- ##
   1716 ## File substitutions. ##
   1717 ## ------------------- ##
   1718 _ASBOX
   1719       echo
   1720       for ac_var in $ac_subst_files
   1721       do
   1722 	eval ac_val=\$$ac_var
   1723 	case $ac_val in
   1724 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1725 	esac
   1726 	echo "$ac_var='\''$ac_val'\''"
   1727       done | sort
   1728       echo
   1729     fi
   1730 
   1731     if test -s confdefs.h; then
   1732       cat <<\_ASBOX
   1733 ## ----------- ##
   1734 ## confdefs.h. ##
   1735 ## ----------- ##
   1736 _ASBOX
   1737       echo
   1738       cat confdefs.h
   1739       echo
   1740     fi
   1741     test "$ac_signal" != 0 &&
   1742       echo "$as_me: caught signal $ac_signal"
   1743     echo "$as_me: exit $exit_status"
   1744   } >&5
   1745   rm -f core *.core core.conftest.* &&
   1746     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1747     exit $exit_status
   1748 ' 0
   1749 for ac_signal in 1 2 13 15; do
   1750   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1751 done
   1752 ac_signal=0
   1753 
   1754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1755 rm -f -r conftest* confdefs.h
   1756 
   1757 # Predefined preprocessor variables.
   1758 
   1759 cat >>confdefs.h <<_ACEOF
   1760 #define PACKAGE_NAME "$PACKAGE_NAME"
   1761 _ACEOF
   1762 
   1763 
   1764 cat >>confdefs.h <<_ACEOF
   1765 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1766 _ACEOF
   1767 
   1768 
   1769 cat >>confdefs.h <<_ACEOF
   1770 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1771 _ACEOF
   1772 
   1773 
   1774 cat >>confdefs.h <<_ACEOF
   1775 #define PACKAGE_STRING "$PACKAGE_STRING"
   1776 _ACEOF
   1777 
   1778 
   1779 cat >>confdefs.h <<_ACEOF
   1780 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1781 _ACEOF
   1782 
   1783 
   1784 # Let the site file select an alternate cache file if it wants to.
   1785 # Prefer explicitly selected file to automatically selected ones.
   1786 if test -n "$CONFIG_SITE"; then
   1787   set x "$CONFIG_SITE"
   1788 elif test "x$prefix" != xNONE; then
   1789   set x "$prefix/share/config.site" "$prefix/etc/config.site"
   1790 else
   1791   set x "$ac_default_prefix/share/config.site" \
   1792 	"$ac_default_prefix/etc/config.site"
   1793 fi
   1794 shift
   1795 for ac_site_file
   1796 do
   1797   if test -r "$ac_site_file"; then
   1798     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1799 echo "$as_me: loading site script $ac_site_file" >&6;}
   1800     sed 's/^/| /' "$ac_site_file" >&5
   1801     . "$ac_site_file"
   1802   fi
   1803 done
   1804 
   1805 if test -r "$cache_file"; then
   1806   # Some versions of bash will fail to source /dev/null (special
   1807   # files actually), so we avoid doing that.
   1808   if test -f "$cache_file"; then
   1809     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1810 echo "$as_me: loading cache $cache_file" >&6;}
   1811     case $cache_file in
   1812       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   1813       *)                      . "./$cache_file";;
   1814     esac
   1815   fi
   1816 else
   1817   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   1818 echo "$as_me: creating cache $cache_file" >&6;}
   1819   >$cache_file
   1820 fi
   1821 
   1822 # Check that the precious variables saved in the cache have kept the same
   1823 # value.
   1824 ac_cache_corrupted=false
   1825 for ac_var in $ac_precious_vars; do
   1826   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1827   eval ac_new_set=\$ac_env_${ac_var}_set
   1828   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   1829   eval ac_new_val=\$ac_env_${ac_var}_value
   1830   case $ac_old_set,$ac_new_set in
   1831     set,)
   1832       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1833 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1834       ac_cache_corrupted=: ;;
   1835     ,set)
   1836       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   1837 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1838       ac_cache_corrupted=: ;;
   1839     ,);;
   1840     *)
   1841       if test "x$ac_old_val" != "x$ac_new_val"; then
   1842 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   1843 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1844 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
   1845 echo "$as_me:   former value:  $ac_old_val" >&2;}
   1846 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
   1847 echo "$as_me:   current value: $ac_new_val" >&2;}
   1848 	ac_cache_corrupted=:
   1849       fi;;
   1850   esac
   1851   # Pass precious variables to config.status.
   1852   if test "$ac_new_set" = set; then
   1853     case $ac_new_val in
   1854     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   1855     *) ac_arg=$ac_var=$ac_new_val ;;
   1856     esac
   1857     case " $ac_configure_args " in
   1858       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   1859       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   1860     esac
   1861   fi
   1862 done
   1863 if $ac_cache_corrupted; then
   1864   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   1865 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1866   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1867 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1868    { (exit 1); exit 1; }; }
   1869 fi
   1870 
   1871 
   1872 
   1873 
   1874 
   1875 
   1876 
   1877 
   1878 
   1879 
   1880 
   1881 
   1882 
   1883 
   1884 
   1885 
   1886 
   1887 
   1888 
   1889 
   1890 
   1891 
   1892 
   1893 
   1894 
   1895 ac_ext=c
   1896 ac_cpp='$CPP $CPPFLAGS'
   1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1900 
   1901 
   1902 
   1903 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
   1904 
   1905 
   1906 
   1907 
   1908 
   1909 
   1910 
   1911 ac_aux_dir=
   1912 for ac_dir in autoconf "$srcdir"/autoconf; do
   1913   if test -f "$ac_dir/install-sh"; then
   1914     ac_aux_dir=$ac_dir
   1915     ac_install_sh="$ac_aux_dir/install-sh -c"
   1916     break
   1917   elif test -f "$ac_dir/install.sh"; then
   1918     ac_aux_dir=$ac_dir
   1919     ac_install_sh="$ac_aux_dir/install.sh -c"
   1920     break
   1921   elif test -f "$ac_dir/shtool"; then
   1922     ac_aux_dir=$ac_dir
   1923     ac_install_sh="$ac_aux_dir/shtool install -c"
   1924     break
   1925   fi
   1926 done
   1927 if test -z "$ac_aux_dir"; then
   1928   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
   1929 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
   1930    { (exit 1); exit 1; }; }
   1931 fi
   1932 
   1933 # These three variables are undocumented and unsupported,
   1934 # and are intended to be withdrawn in a future Autoconf release.
   1935 # They can cause serious problems if a builder's source tree is in a directory
   1936 # whose full name contains unusual characters.
   1937 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   1938 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   1939 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   1940 
   1941 
   1942 
   1943 if test ${srcdir} != "." ; then
   1944   if test -f ${srcdir}/include/llvm/Config/config.h ; then
   1945     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
   1946 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
   1947    { (exit 1); exit 1; }; }
   1948   fi
   1949 fi
   1950 
   1951 ac_ext=c
   1952 ac_cpp='$CPP $CPPFLAGS'
   1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1956 if test -n "$ac_tool_prefix"; then
   1957   for ac_prog in clang llvm-gcc gcc
   1958   do
   1959     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   1960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1963 if test "${ac_cv_prog_CC+set}" = set; then
   1964   echo $ECHO_N "(cached) $ECHO_C" >&6
   1965 else
   1966   if test -n "$CC"; then
   1967   ac_cv_prog_CC="$CC" # Let the user override the test.
   1968 else
   1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1970 for as_dir in $PATH
   1971 do
   1972   IFS=$as_save_IFS
   1973   test -z "$as_dir" && as_dir=.
   1974   for ac_exec_ext in '' $ac_executable_extensions; do
   1975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   1976     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   1977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1978     break 2
   1979   fi
   1980 done
   1981 done
   1982 IFS=$as_save_IFS
   1983 
   1984 fi
   1985 fi
   1986 CC=$ac_cv_prog_CC
   1987 if test -n "$CC"; then
   1988   { echo "$as_me:$LINENO: result: $CC" >&5
   1989 echo "${ECHO_T}$CC" >&6; }
   1990 else
   1991   { echo "$as_me:$LINENO: result: no" >&5
   1992 echo "${ECHO_T}no" >&6; }
   1993 fi
   1994 
   1995 
   1996     test -n "$CC" && break
   1997   done
   1998 fi
   1999 if test -z "$CC"; then
   2000   ac_ct_CC=$CC
   2001   for ac_prog in clang llvm-gcc gcc
   2002 do
   2003   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2004 set dummy $ac_prog; ac_word=$2
   2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2008   echo $ECHO_N "(cached) $ECHO_C" >&6
   2009 else
   2010   if test -n "$ac_ct_CC"; then
   2011   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2012 else
   2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2014 for as_dir in $PATH
   2015 do
   2016   IFS=$as_save_IFS
   2017   test -z "$as_dir" && as_dir=.
   2018   for ac_exec_ext in '' $ac_executable_extensions; do
   2019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   2020     ac_cv_prog_ac_ct_CC="$ac_prog"
   2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2022     break 2
   2023   fi
   2024 done
   2025 done
   2026 IFS=$as_save_IFS
   2027 
   2028 fi
   2029 fi
   2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2031 if test -n "$ac_ct_CC"; then
   2032   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2033 echo "${ECHO_T}$ac_ct_CC" >&6; }
   2034 else
   2035   { echo "$as_me:$LINENO: result: no" >&5
   2036 echo "${ECHO_T}no" >&6; }
   2037 fi
   2038 
   2039 
   2040   test -n "$ac_ct_CC" && break
   2041 done
   2042 
   2043   if test "x$ac_ct_CC" = x; then
   2044     CC=""
   2045   else
   2046     case $cross_compiling:$ac_tool_warned in
   2047 yes:)
   2048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2049 whose name does not start with the host triplet.  If you think this
   2050 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2052 whose name does not start with the host triplet.  If you think this
   2053 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2054 ac_tool_warned=yes ;;
   2055 esac
   2056     CC=$ac_ct_CC
   2057   fi
   2058 fi
   2059 
   2060 
   2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   2062 See \`config.log' for more details." >&5
   2063 echo "$as_me: error: no acceptable C compiler found in \$PATH
   2064 See \`config.log' for more details." >&2;}
   2065    { (exit 1); exit 1; }; }
   2066 
   2067 # Provide some information about the compiler.
   2068 echo "$as_me:$LINENO: checking for C compiler version" >&5
   2069 ac_compiler=`set X $ac_compile; echo $2`
   2070 { (ac_try="$ac_compiler --version >&5"
   2071 case "(($ac_try" in
   2072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2073   *) ac_try_echo=$ac_try;;
   2074 esac
   2075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2076   (eval "$ac_compiler --version >&5") 2>&5
   2077   ac_status=$?
   2078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2079   (exit $ac_status); }
   2080 { (ac_try="$ac_compiler -v >&5"
   2081 case "(($ac_try" in
   2082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2083   *) ac_try_echo=$ac_try;;
   2084 esac
   2085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2086   (eval "$ac_compiler -v >&5") 2>&5
   2087   ac_status=$?
   2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2089   (exit $ac_status); }
   2090 { (ac_try="$ac_compiler -V >&5"
   2091 case "(($ac_try" in
   2092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2093   *) ac_try_echo=$ac_try;;
   2094 esac
   2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2096   (eval "$ac_compiler -V >&5") 2>&5
   2097   ac_status=$?
   2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2099   (exit $ac_status); }
   2100 
   2101 cat >conftest.$ac_ext <<_ACEOF
   2102 /* confdefs.h.  */
   2103 _ACEOF
   2104 cat confdefs.h >>conftest.$ac_ext
   2105 cat >>conftest.$ac_ext <<_ACEOF
   2106 /* end confdefs.h.  */
   2107 
   2108 int
   2109 main ()
   2110 {
   2111 
   2112   ;
   2113   return 0;
   2114 }
   2115 _ACEOF
   2116 ac_clean_files_save=$ac_clean_files
   2117 ac_clean_files="$ac_clean_files a.out a.exe b.out"
   2118 # Try to create an executable without -o first, disregard a.out.
   2119 # It will help us diagnose broken compilers, and finding out an intuition
   2120 # of exeext.
   2121 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
   2123 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2124 #
   2125 # List of possible output files, starting from the most likely.
   2126 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
   2127 # only as a last resort.  b.out is created by i960 compilers.
   2128 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
   2129 #
   2130 # The IRIX 6 linker writes into existing files which may not be
   2131 # executable, retaining their permissions.  Remove them first so a
   2132 # subsequent execution test works.
   2133 ac_rmfiles=
   2134 for ac_file in $ac_files
   2135 do
   2136   case $ac_file in
   2137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2138     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   2139   esac
   2140 done
   2141 rm -f $ac_rmfiles
   2142 
   2143 if { (ac_try="$ac_link_default"
   2144 case "(($ac_try" in
   2145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2146   *) ac_try_echo=$ac_try;;
   2147 esac
   2148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2149   (eval "$ac_link_default") 2>&5
   2150   ac_status=$?
   2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2152   (exit $ac_status); }; then
   2153   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   2154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   2155 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   2156 # so that the user can short-circuit this test for compilers unknown to
   2157 # Autoconf.
   2158 for ac_file in $ac_files
   2159 do
   2160   test -f "$ac_file" || continue
   2161   case $ac_file in
   2162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
   2163 	;;
   2164     [ab].out )
   2165 	# We found the default executable, but exeext='' is most
   2166 	# certainly right.
   2167 	break;;
   2168     *.* )
   2169         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   2170 	then :; else
   2171 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2172 	fi
   2173 	# We set ac_cv_exeext here because the later test for it is not
   2174 	# safe: cross compilers may not add the suffix if given an `-o'
   2175 	# argument, so we may need to know it at that point already.
   2176 	# Even if this section looks crufty: it has the advantage of
   2177 	# actually working.
   2178 	break;;
   2179     * )
   2180 	break;;
   2181   esac
   2182 done
   2183 test "$ac_cv_exeext" = no && ac_cv_exeext=
   2184 
   2185 else
   2186   echo "$as_me: failed program was:" >&5
   2187 sed 's/^/| /' conftest.$ac_ext >&5
   2188 
   2189 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
   2190 See \`config.log' for more details." >&5
   2191 echo "$as_me: error: C compiler cannot create executables
   2192 See \`config.log' for more details." >&2;}
   2193    { (exit 77); exit 77; }; }
   2194 fi
   2195 
   2196 ac_exeext=$ac_cv_exeext
   2197 { echo "$as_me:$LINENO: result: $ac_file" >&5
   2198 echo "${ECHO_T}$ac_file" >&6; }
   2199 
   2200 # Check that the compiler produces executables we can run.  If not, either
   2201 # the compiler is broken, or we cross compile.
   2202 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   2203 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
   2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   2205 # If not cross compiling, check that we can run a simple program.
   2206 if test "$cross_compiling" != yes; then
   2207   if { ac_try='./$ac_file'
   2208   { (case "(($ac_try" in
   2209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2210   *) ac_try_echo=$ac_try;;
   2211 esac
   2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2213   (eval "$ac_try") 2>&5
   2214   ac_status=$?
   2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2216   (exit $ac_status); }; }; then
   2217     cross_compiling=no
   2218   else
   2219     if test "$cross_compiling" = maybe; then
   2220 	cross_compiling=yes
   2221     else
   2222 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
   2223 If you meant to cross compile, use \`--host'.
   2224 See \`config.log' for more details." >&5
   2225 echo "$as_me: error: cannot run C compiled programs.
   2226 If you meant to cross compile, use \`--host'.
   2227 See \`config.log' for more details." >&2;}
   2228    { (exit 1); exit 1; }; }
   2229     fi
   2230   fi
   2231 fi
   2232 { echo "$as_me:$LINENO: result: yes" >&5
   2233 echo "${ECHO_T}yes" >&6; }
   2234 
   2235 rm -f a.out a.exe conftest$ac_cv_exeext b.out
   2236 ac_clean_files=$ac_clean_files_save
   2237 # Check that the compiler produces executables we can run.  If not, either
   2238 # the compiler is broken, or we cross compile.
   2239 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   2240 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
   2241 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
   2242 echo "${ECHO_T}$cross_compiling" >&6; }
   2243 
   2244 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
   2245 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
   2246 if { (ac_try="$ac_link"
   2247 case "(($ac_try" in
   2248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2249   *) ac_try_echo=$ac_try;;
   2250 esac
   2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2252   (eval "$ac_link") 2>&5
   2253   ac_status=$?
   2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2255   (exit $ac_status); }; then
   2256   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2257 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2258 # work properly (i.e., refer to `conftest.exe'), while it won't with
   2259 # `rm'.
   2260 for ac_file in conftest.exe conftest conftest.*; do
   2261   test -f "$ac_file" || continue
   2262   case $ac_file in
   2263     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2264     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2265 	  break;;
   2266     * ) break;;
   2267   esac
   2268 done
   2269 else
   2270   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
   2271 See \`config.log' for more details." >&5
   2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
   2273 See \`config.log' for more details." >&2;}
   2274    { (exit 1); exit 1; }; }
   2275 fi
   2276 
   2277 rm -f conftest$ac_cv_exeext
   2278 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   2279 echo "${ECHO_T}$ac_cv_exeext" >&6; }
   2280 
   2281 rm -f conftest.$ac_ext
   2282 EXEEXT=$ac_cv_exeext
   2283 ac_exeext=$EXEEXT
   2284 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
   2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
   2286 if test "${ac_cv_objext+set}" = set; then
   2287   echo $ECHO_N "(cached) $ECHO_C" >&6
   2288 else
   2289   cat >conftest.$ac_ext <<_ACEOF
   2290 /* confdefs.h.  */
   2291 _ACEOF
   2292 cat confdefs.h >>conftest.$ac_ext
   2293 cat >>conftest.$ac_ext <<_ACEOF
   2294 /* end confdefs.h.  */
   2295 
   2296 int
   2297 main ()
   2298 {
   2299 
   2300   ;
   2301   return 0;
   2302 }
   2303 _ACEOF
   2304 rm -f conftest.o conftest.obj
   2305 if { (ac_try="$ac_compile"
   2306 case "(($ac_try" in
   2307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2308   *) ac_try_echo=$ac_try;;
   2309 esac
   2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2311   (eval "$ac_compile") 2>&5
   2312   ac_status=$?
   2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2314   (exit $ac_status); }; then
   2315   for ac_file in conftest.o conftest.obj conftest.*; do
   2316   test -f "$ac_file" || continue;
   2317   case $ac_file in
   2318     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
   2319     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2320        break;;
   2321   esac
   2322 done
   2323 else
   2324   echo "$as_me: failed program was:" >&5
   2325 sed 's/^/| /' conftest.$ac_ext >&5
   2326 
   2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
   2328 See \`config.log' for more details." >&5
   2329 echo "$as_me: error: cannot compute suffix of object files: cannot compile
   2330 See \`config.log' for more details." >&2;}
   2331    { (exit 1); exit 1; }; }
   2332 fi
   2333 
   2334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   2335 fi
   2336 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   2337 echo "${ECHO_T}$ac_cv_objext" >&6; }
   2338 OBJEXT=$ac_cv_objext
   2339 ac_objext=$OBJEXT
   2340 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   2341 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
   2342 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   2343   echo $ECHO_N "(cached) $ECHO_C" >&6
   2344 else
   2345   cat >conftest.$ac_ext <<_ACEOF
   2346 /* confdefs.h.  */
   2347 _ACEOF
   2348 cat confdefs.h >>conftest.$ac_ext
   2349 cat >>conftest.$ac_ext <<_ACEOF
   2350 /* end confdefs.h.  */
   2351 
   2352 int
   2353 main ()
   2354 {
   2355 #ifndef __GNUC__
   2356        choke me
   2357 #endif
   2358 
   2359   ;
   2360   return 0;
   2361 }
   2362 _ACEOF
   2363 rm -f conftest.$ac_objext
   2364 if { (ac_try="$ac_compile"
   2365 case "(($ac_try" in
   2366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2367   *) ac_try_echo=$ac_try;;
   2368 esac
   2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2370   (eval "$ac_compile") 2>conftest.er1
   2371   ac_status=$?
   2372   grep -v '^ *+' conftest.er1 >conftest.err
   2373   rm -f conftest.er1
   2374   cat conftest.err >&5
   2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2376   (exit $ac_status); } &&
   2377 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2378   { (case "(($ac_try" in
   2379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2380   *) ac_try_echo=$ac_try;;
   2381 esac
   2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2383   (eval "$ac_try") 2>&5
   2384   ac_status=$?
   2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2386   (exit $ac_status); }; } &&
   2387 	 { ac_try='test -s conftest.$ac_objext'
   2388   { (case "(($ac_try" in
   2389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2390   *) ac_try_echo=$ac_try;;
   2391 esac
   2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2393   (eval "$ac_try") 2>&5
   2394   ac_status=$?
   2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2396   (exit $ac_status); }; }; then
   2397   ac_compiler_gnu=yes
   2398 else
   2399   echo "$as_me: failed program was:" >&5
   2400 sed 's/^/| /' conftest.$ac_ext >&5
   2401 
   2402 	ac_compiler_gnu=no
   2403 fi
   2404 
   2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   2407 
   2408 fi
   2409 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
   2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
   2412 ac_test_CFLAGS=${CFLAGS+set}
   2413 ac_save_CFLAGS=$CFLAGS
   2414 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
   2416 if test "${ac_cv_prog_cc_g+set}" = set; then
   2417   echo $ECHO_N "(cached) $ECHO_C" >&6
   2418 else
   2419   ac_save_c_werror_flag=$ac_c_werror_flag
   2420    ac_c_werror_flag=yes
   2421    ac_cv_prog_cc_g=no
   2422    CFLAGS="-g"
   2423    cat >conftest.$ac_ext <<_ACEOF
   2424 /* confdefs.h.  */
   2425 _ACEOF
   2426 cat confdefs.h >>conftest.$ac_ext
   2427 cat >>conftest.$ac_ext <<_ACEOF
   2428 /* end confdefs.h.  */
   2429 
   2430 int
   2431 main ()
   2432 {
   2433 
   2434   ;
   2435   return 0;
   2436 }
   2437 _ACEOF
   2438 rm -f conftest.$ac_objext
   2439 if { (ac_try="$ac_compile"
   2440 case "(($ac_try" in
   2441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2442   *) ac_try_echo=$ac_try;;
   2443 esac
   2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2445   (eval "$ac_compile") 2>conftest.er1
   2446   ac_status=$?
   2447   grep -v '^ *+' conftest.er1 >conftest.err
   2448   rm -f conftest.er1
   2449   cat conftest.err >&5
   2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2451   (exit $ac_status); } &&
   2452 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2453   { (case "(($ac_try" in
   2454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2455   *) ac_try_echo=$ac_try;;
   2456 esac
   2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2458   (eval "$ac_try") 2>&5
   2459   ac_status=$?
   2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2461   (exit $ac_status); }; } &&
   2462 	 { ac_try='test -s conftest.$ac_objext'
   2463   { (case "(($ac_try" in
   2464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2465   *) ac_try_echo=$ac_try;;
   2466 esac
   2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2468   (eval "$ac_try") 2>&5
   2469   ac_status=$?
   2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2471   (exit $ac_status); }; }; then
   2472   ac_cv_prog_cc_g=yes
   2473 else
   2474   echo "$as_me: failed program was:" >&5
   2475 sed 's/^/| /' conftest.$ac_ext >&5
   2476 
   2477 	CFLAGS=""
   2478       cat >conftest.$ac_ext <<_ACEOF
   2479 /* confdefs.h.  */
   2480 _ACEOF
   2481 cat confdefs.h >>conftest.$ac_ext
   2482 cat >>conftest.$ac_ext <<_ACEOF
   2483 /* end confdefs.h.  */
   2484 
   2485 int
   2486 main ()
   2487 {
   2488 
   2489   ;
   2490   return 0;
   2491 }
   2492 _ACEOF
   2493 rm -f conftest.$ac_objext
   2494 if { (ac_try="$ac_compile"
   2495 case "(($ac_try" in
   2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2497   *) ac_try_echo=$ac_try;;
   2498 esac
   2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2500   (eval "$ac_compile") 2>conftest.er1
   2501   ac_status=$?
   2502   grep -v '^ *+' conftest.er1 >conftest.err
   2503   rm -f conftest.er1
   2504   cat conftest.err >&5
   2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2506   (exit $ac_status); } &&
   2507 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2508   { (case "(($ac_try" in
   2509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2510   *) ac_try_echo=$ac_try;;
   2511 esac
   2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2513   (eval "$ac_try") 2>&5
   2514   ac_status=$?
   2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2516   (exit $ac_status); }; } &&
   2517 	 { ac_try='test -s conftest.$ac_objext'
   2518   { (case "(($ac_try" in
   2519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2520   *) ac_try_echo=$ac_try;;
   2521 esac
   2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2523   (eval "$ac_try") 2>&5
   2524   ac_status=$?
   2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2526   (exit $ac_status); }; }; then
   2527   :
   2528 else
   2529   echo "$as_me: failed program was:" >&5
   2530 sed 's/^/| /' conftest.$ac_ext >&5
   2531 
   2532 	ac_c_werror_flag=$ac_save_c_werror_flag
   2533 	 CFLAGS="-g"
   2534 	 cat >conftest.$ac_ext <<_ACEOF
   2535 /* confdefs.h.  */
   2536 _ACEOF
   2537 cat confdefs.h >>conftest.$ac_ext
   2538 cat >>conftest.$ac_ext <<_ACEOF
   2539 /* end confdefs.h.  */
   2540 
   2541 int
   2542 main ()
   2543 {
   2544 
   2545   ;
   2546   return 0;
   2547 }
   2548 _ACEOF
   2549 rm -f conftest.$ac_objext
   2550 if { (ac_try="$ac_compile"
   2551 case "(($ac_try" in
   2552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2553   *) ac_try_echo=$ac_try;;
   2554 esac
   2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2556   (eval "$ac_compile") 2>conftest.er1
   2557   ac_status=$?
   2558   grep -v '^ *+' conftest.er1 >conftest.err
   2559   rm -f conftest.er1
   2560   cat conftest.err >&5
   2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2562   (exit $ac_status); } &&
   2563 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2564   { (case "(($ac_try" in
   2565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2566   *) ac_try_echo=$ac_try;;
   2567 esac
   2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2569   (eval "$ac_try") 2>&5
   2570   ac_status=$?
   2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2572   (exit $ac_status); }; } &&
   2573 	 { ac_try='test -s conftest.$ac_objext'
   2574   { (case "(($ac_try" in
   2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2576   *) ac_try_echo=$ac_try;;
   2577 esac
   2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2579   (eval "$ac_try") 2>&5
   2580   ac_status=$?
   2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2582   (exit $ac_status); }; }; then
   2583   ac_cv_prog_cc_g=yes
   2584 else
   2585   echo "$as_me: failed program was:" >&5
   2586 sed 's/^/| /' conftest.$ac_ext >&5
   2587 
   2588 
   2589 fi
   2590 
   2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2592 fi
   2593 
   2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2595 fi
   2596 
   2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2598    ac_c_werror_flag=$ac_save_c_werror_flag
   2599 fi
   2600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   2601 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
   2602 if test "$ac_test_CFLAGS" = set; then
   2603   CFLAGS=$ac_save_CFLAGS
   2604 elif test $ac_cv_prog_cc_g = yes; then
   2605   if test "$GCC" = yes; then
   2606     CFLAGS="-g -O2"
   2607   else
   2608     CFLAGS="-g"
   2609   fi
   2610 else
   2611   if test "$GCC" = yes; then
   2612     CFLAGS="-O2"
   2613   else
   2614     CFLAGS=
   2615   fi
   2616 fi
   2617 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
   2618 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
   2619 if test "${ac_cv_prog_cc_c89+set}" = set; then
   2620   echo $ECHO_N "(cached) $ECHO_C" >&6
   2621 else
   2622   ac_cv_prog_cc_c89=no
   2623 ac_save_CC=$CC
   2624 cat >conftest.$ac_ext <<_ACEOF
   2625 /* confdefs.h.  */
   2626 _ACEOF
   2627 cat confdefs.h >>conftest.$ac_ext
   2628 cat >>conftest.$ac_ext <<_ACEOF
   2629 /* end confdefs.h.  */
   2630 #include <stdarg.h>
   2631 #include <stdio.h>
   2632 #include <sys/types.h>
   2633 #include <sys/stat.h>
   2634 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2635 struct buf { int x; };
   2636 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2637 static char *e (p, i)
   2638      char **p;
   2639      int i;
   2640 {
   2641   return p[i];
   2642 }
   2643 static char *f (char * (*g) (char **, int), char **p, ...)
   2644 {
   2645   char *s;
   2646   va_list v;
   2647   va_start (v,p);
   2648   s = g (p, va_arg (v,int));
   2649   va_end (v);
   2650   return s;
   2651 }
   2652 
   2653 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2654    function prototypes and stuff, but not '\xHH' hex character constants.
   2655    These don't provoke an error unfortunately, instead are silently treated
   2656    as 'x'.  The following induces an error, until -std is added to get
   2657    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   2658    array size at least.  It's necessary to write '\x00'==0 to get something
   2659    that's true only with -std.  */
   2660 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   2661 
   2662 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2663    inside strings and character constants.  */
   2664 #define FOO(x) 'x'
   2665 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   2666 
   2667 int test (int i, double x);
   2668 struct s1 {int (*f) (int a);};
   2669 struct s2 {int (*f) (double a);};
   2670 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2671 int argc;
   2672 char **argv;
   2673 int
   2674 main ()
   2675 {
   2676 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2677   ;
   2678   return 0;
   2679 }
   2680 _ACEOF
   2681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   2682 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2683 do
   2684   CC="$ac_save_CC $ac_arg"
   2685   rm -f conftest.$ac_objext
   2686 if { (ac_try="$ac_compile"
   2687 case "(($ac_try" in
   2688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2689   *) ac_try_echo=$ac_try;;
   2690 esac
   2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2692   (eval "$ac_compile") 2>conftest.er1
   2693   ac_status=$?
   2694   grep -v '^ *+' conftest.er1 >conftest.err
   2695   rm -f conftest.er1
   2696   cat conftest.err >&5
   2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2698   (exit $ac_status); } &&
   2699 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2700   { (case "(($ac_try" in
   2701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2702   *) ac_try_echo=$ac_try;;
   2703 esac
   2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2705   (eval "$ac_try") 2>&5
   2706   ac_status=$?
   2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2708   (exit $ac_status); }; } &&
   2709 	 { ac_try='test -s conftest.$ac_objext'
   2710   { (case "(($ac_try" in
   2711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2712   *) ac_try_echo=$ac_try;;
   2713 esac
   2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2715   (eval "$ac_try") 2>&5
   2716   ac_status=$?
   2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2718   (exit $ac_status); }; }; then
   2719   ac_cv_prog_cc_c89=$ac_arg
   2720 else
   2721   echo "$as_me: failed program was:" >&5
   2722 sed 's/^/| /' conftest.$ac_ext >&5
   2723 
   2724 
   2725 fi
   2726 
   2727 rm -f core conftest.err conftest.$ac_objext
   2728   test "x$ac_cv_prog_cc_c89" != "xno" && break
   2729 done
   2730 rm -f conftest.$ac_ext
   2731 CC=$ac_save_CC
   2732 
   2733 fi
   2734 # AC_CACHE_VAL
   2735 case "x$ac_cv_prog_cc_c89" in
   2736   x)
   2737     { echo "$as_me:$LINENO: result: none needed" >&5
   2738 echo "${ECHO_T}none needed" >&6; } ;;
   2739   xno)
   2740     { echo "$as_me:$LINENO: result: unsupported" >&5
   2741 echo "${ECHO_T}unsupported" >&6; } ;;
   2742   *)
   2743     CC="$CC $ac_cv_prog_cc_c89"
   2744     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
   2745 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
   2746 esac
   2747 
   2748 
   2749 ac_ext=c
   2750 ac_cpp='$CPP $CPPFLAGS'
   2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2754 
   2755 ac_ext=cpp
   2756 ac_cpp='$CXXCPP $CPPFLAGS'
   2757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   2760 if test -z "$CXX"; then
   2761   if test -n "$CCC"; then
   2762     CXX=$CCC
   2763   else
   2764     if test -n "$ac_tool_prefix"; then
   2765   for ac_prog in clang++ llvm-g++ g++
   2766   do
   2767     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2771 if test "${ac_cv_prog_CXX+set}" = set; then
   2772   echo $ECHO_N "(cached) $ECHO_C" >&6
   2773 else
   2774   if test -n "$CXX"; then
   2775   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   2776 else
   2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2778 for as_dir in $PATH
   2779 do
   2780   IFS=$as_save_IFS
   2781   test -z "$as_dir" && as_dir=.
   2782   for ac_exec_ext in '' $ac_executable_extensions; do
   2783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   2784     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   2785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2786     break 2
   2787   fi
   2788 done
   2789 done
   2790 IFS=$as_save_IFS
   2791 
   2792 fi
   2793 fi
   2794 CXX=$ac_cv_prog_CXX
   2795 if test -n "$CXX"; then
   2796   { echo "$as_me:$LINENO: result: $CXX" >&5
   2797 echo "${ECHO_T}$CXX" >&6; }
   2798 else
   2799   { echo "$as_me:$LINENO: result: no" >&5
   2800 echo "${ECHO_T}no" >&6; }
   2801 fi
   2802 
   2803 
   2804     test -n "$CXX" && break
   2805   done
   2806 fi
   2807 if test -z "$CXX"; then
   2808   ac_ct_CXX=$CXX
   2809   for ac_prog in clang++ llvm-g++ g++
   2810 do
   2811   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2812 set dummy $ac_prog; ac_word=$2
   2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2815 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
   2816   echo $ECHO_N "(cached) $ECHO_C" >&6
   2817 else
   2818   if test -n "$ac_ct_CXX"; then
   2819   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   2820 else
   2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2822 for as_dir in $PATH
   2823 do
   2824   IFS=$as_save_IFS
   2825   test -z "$as_dir" && as_dir=.
   2826   for ac_exec_ext in '' $ac_executable_extensions; do
   2827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   2828     ac_cv_prog_ac_ct_CXX="$ac_prog"
   2829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2830     break 2
   2831   fi
   2832 done
   2833 done
   2834 IFS=$as_save_IFS
   2835 
   2836 fi
   2837 fi
   2838 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   2839 if test -n "$ac_ct_CXX"; then
   2840   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
   2841 echo "${ECHO_T}$ac_ct_CXX" >&6; }
   2842 else
   2843   { echo "$as_me:$LINENO: result: no" >&5
   2844 echo "${ECHO_T}no" >&6; }
   2845 fi
   2846 
   2847 
   2848   test -n "$ac_ct_CXX" && break
   2849 done
   2850 
   2851   if test "x$ac_ct_CXX" = x; then
   2852     CXX="g++"
   2853   else
   2854     case $cross_compiling:$ac_tool_warned in
   2855 yes:)
   2856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2857 whose name does not start with the host triplet.  If you think this
   2858 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2860 whose name does not start with the host triplet.  If you think this
   2861 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2862 ac_tool_warned=yes ;;
   2863 esac
   2864     CXX=$ac_ct_CXX
   2865   fi
   2866 fi
   2867 
   2868   fi
   2869 fi
   2870 # Provide some information about the compiler.
   2871 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
   2872 ac_compiler=`set X $ac_compile; echo $2`
   2873 { (ac_try="$ac_compiler --version >&5"
   2874 case "(($ac_try" in
   2875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2876   *) ac_try_echo=$ac_try;;
   2877 esac
   2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2879   (eval "$ac_compiler --version >&5") 2>&5
   2880   ac_status=$?
   2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2882   (exit $ac_status); }
   2883 { (ac_try="$ac_compiler -v >&5"
   2884 case "(($ac_try" in
   2885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2886   *) ac_try_echo=$ac_try;;
   2887 esac
   2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2889   (eval "$ac_compiler -v >&5") 2>&5
   2890   ac_status=$?
   2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2892   (exit $ac_status); }
   2893 { (ac_try="$ac_compiler -V >&5"
   2894 case "(($ac_try" in
   2895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2896   *) ac_try_echo=$ac_try;;
   2897 esac
   2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2899   (eval "$ac_compiler -V >&5") 2>&5
   2900   ac_status=$?
   2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2902   (exit $ac_status); }
   2903 
   2904 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
   2905 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
   2906 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
   2907   echo $ECHO_N "(cached) $ECHO_C" >&6
   2908 else
   2909   cat >conftest.$ac_ext <<_ACEOF
   2910 /* confdefs.h.  */
   2911 _ACEOF
   2912 cat confdefs.h >>conftest.$ac_ext
   2913 cat >>conftest.$ac_ext <<_ACEOF
   2914 /* end confdefs.h.  */
   2915 
   2916 int
   2917 main ()
   2918 {
   2919 #ifndef __GNUC__
   2920        choke me
   2921 #endif
   2922 
   2923   ;
   2924   return 0;
   2925 }
   2926 _ACEOF
   2927 rm -f conftest.$ac_objext
   2928 if { (ac_try="$ac_compile"
   2929 case "(($ac_try" in
   2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2931   *) ac_try_echo=$ac_try;;
   2932 esac
   2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2934   (eval "$ac_compile") 2>conftest.er1
   2935   ac_status=$?
   2936   grep -v '^ *+' conftest.er1 >conftest.err
   2937   rm -f conftest.er1
   2938   cat conftest.err >&5
   2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2940   (exit $ac_status); } &&
   2941 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   2942   { (case "(($ac_try" in
   2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2944   *) ac_try_echo=$ac_try;;
   2945 esac
   2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2947   (eval "$ac_try") 2>&5
   2948   ac_status=$?
   2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2950   (exit $ac_status); }; } &&
   2951 	 { ac_try='test -s conftest.$ac_objext'
   2952   { (case "(($ac_try" in
   2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2954   *) ac_try_echo=$ac_try;;
   2955 esac
   2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2957   (eval "$ac_try") 2>&5
   2958   ac_status=$?
   2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2960   (exit $ac_status); }; }; then
   2961   ac_compiler_gnu=yes
   2962 else
   2963   echo "$as_me: failed program was:" >&5
   2964 sed 's/^/| /' conftest.$ac_ext >&5
   2965 
   2966 	ac_compiler_gnu=no
   2967 fi
   2968 
   2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2970 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   2971 
   2972 fi
   2973 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
   2974 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
   2975 GXX=`test $ac_compiler_gnu = yes && echo yes`
   2976 ac_test_CXXFLAGS=${CXXFLAGS+set}
   2977 ac_save_CXXFLAGS=$CXXFLAGS
   2978 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
   2979 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
   2980 if test "${ac_cv_prog_cxx_g+set}" = set; then
   2981   echo $ECHO_N "(cached) $ECHO_C" >&6
   2982 else
   2983   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   2984    ac_cxx_werror_flag=yes
   2985    ac_cv_prog_cxx_g=no
   2986    CXXFLAGS="-g"
   2987    cat >conftest.$ac_ext <<_ACEOF
   2988 /* confdefs.h.  */
   2989 _ACEOF
   2990 cat confdefs.h >>conftest.$ac_ext
   2991 cat >>conftest.$ac_ext <<_ACEOF
   2992 /* end confdefs.h.  */
   2993 
   2994 int
   2995 main ()
   2996 {
   2997 
   2998   ;
   2999   return 0;
   3000 }
   3001 _ACEOF
   3002 rm -f conftest.$ac_objext
   3003 if { (ac_try="$ac_compile"
   3004 case "(($ac_try" in
   3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3006   *) ac_try_echo=$ac_try;;
   3007 esac
   3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3009   (eval "$ac_compile") 2>conftest.er1
   3010   ac_status=$?
   3011   grep -v '^ *+' conftest.er1 >conftest.err
   3012   rm -f conftest.er1
   3013   cat conftest.err >&5
   3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3015   (exit $ac_status); } &&
   3016 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   3017   { (case "(($ac_try" in
   3018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3019   *) ac_try_echo=$ac_try;;
   3020 esac
   3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3022   (eval "$ac_try") 2>&5
   3023   ac_status=$?
   3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3025   (exit $ac_status); }; } &&
   3026 	 { ac_try='test -s conftest.$ac_objext'
   3027   { (case "(($ac_try" in
   3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3029   *) ac_try_echo=$ac_try;;
   3030 esac
   3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3032   (eval "$ac_try") 2>&5
   3033   ac_status=$?
   3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3035   (exit $ac_status); }; }; then
   3036   ac_cv_prog_cxx_g=yes
   3037 else
   3038   echo "$as_me: failed program was:" >&5
   3039 sed 's/^/| /' conftest.$ac_ext >&5
   3040 
   3041 	CXXFLAGS=""
   3042       cat >conftest.$ac_ext <<_ACEOF
   3043 /* confdefs.h.  */
   3044 _ACEOF
   3045 cat confdefs.h >>conftest.$ac_ext
   3046 cat >>conftest.$ac_ext <<_ACEOF
   3047 /* end confdefs.h.  */
   3048 
   3049 int
   3050 main ()
   3051 {
   3052 
   3053   ;
   3054   return 0;
   3055 }
   3056 _ACEOF
   3057 rm -f conftest.$ac_objext
   3058 if { (ac_try="$ac_compile"
   3059 case "(($ac_try" in
   3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3061   *) ac_try_echo=$ac_try;;
   3062 esac
   3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3064   (eval "$ac_compile") 2>conftest.er1
   3065   ac_status=$?
   3066   grep -v '^ *+' conftest.er1 >conftest.err
   3067   rm -f conftest.er1
   3068   cat conftest.err >&5
   3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3070   (exit $ac_status); } &&
   3071 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   3072   { (case "(($ac_try" in
   3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3074   *) ac_try_echo=$ac_try;;
   3075 esac
   3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3077   (eval "$ac_try") 2>&5
   3078   ac_status=$?
   3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3080   (exit $ac_status); }; } &&
   3081 	 { ac_try='test -s conftest.$ac_objext'
   3082   { (case "(($ac_try" in
   3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3084   *) ac_try_echo=$ac_try;;
   3085 esac
   3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3087   (eval "$ac_try") 2>&5
   3088   ac_status=$?
   3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3090   (exit $ac_status); }; }; then
   3091   :
   3092 else
   3093   echo "$as_me: failed program was:" >&5
   3094 sed 's/^/| /' conftest.$ac_ext >&5
   3095 
   3096 	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3097 	 CXXFLAGS="-g"
   3098 	 cat >conftest.$ac_ext <<_ACEOF
   3099 /* confdefs.h.  */
   3100 _ACEOF
   3101 cat confdefs.h >>conftest.$ac_ext
   3102 cat >>conftest.$ac_ext <<_ACEOF
   3103 /* end confdefs.h.  */
   3104 
   3105 int
   3106 main ()
   3107 {
   3108 
   3109   ;
   3110   return 0;
   3111 }
   3112 _ACEOF
   3113 rm -f conftest.$ac_objext
   3114 if { (ac_try="$ac_compile"
   3115 case "(($ac_try" in
   3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3117   *) ac_try_echo=$ac_try;;
   3118 esac
   3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3120   (eval "$ac_compile") 2>conftest.er1
   3121   ac_status=$?
   3122   grep -v '^ *+' conftest.er1 >conftest.err
   3123   rm -f conftest.er1
   3124   cat conftest.err >&5
   3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3126   (exit $ac_status); } &&
   3127 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   3128   { (case "(($ac_try" in
   3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3130   *) ac_try_echo=$ac_try;;
   3131 esac
   3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3133   (eval "$ac_try") 2>&5
   3134   ac_status=$?
   3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3136   (exit $ac_status); }; } &&
   3137 	 { ac_try='test -s conftest.$ac_objext'
   3138   { (case "(($ac_try" in
   3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3140   *) ac_try_echo=$ac_try;;
   3141 esac
   3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3143   (eval "$ac_try") 2>&5
   3144   ac_status=$?
   3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3146   (exit $ac_status); }; }; then
   3147   ac_cv_prog_cxx_g=yes
   3148 else
   3149   echo "$as_me: failed program was:" >&5
   3150 sed 's/^/| /' conftest.$ac_ext >&5
   3151 
   3152 
   3153 fi
   3154 
   3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3156 fi
   3157 
   3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3159 fi
   3160 
   3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3162    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3163 fi
   3164 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
   3165 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
   3166 if test "$ac_test_CXXFLAGS" = set; then
   3167   CXXFLAGS=$ac_save_CXXFLAGS
   3168 elif test $ac_cv_prog_cxx_g = yes; then
   3169   if test "$GXX" = yes; then
   3170     CXXFLAGS="-g -O2"
   3171   else
   3172     CXXFLAGS="-g"
   3173   fi
   3174 else
   3175   if test "$GXX" = yes; then
   3176     CXXFLAGS="-O2"
   3177   else
   3178     CXXFLAGS=
   3179   fi
   3180 fi
   3181 ac_ext=c
   3182 ac_cpp='$CPP $CPPFLAGS'
   3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3186 
   3187 ac_ext=c
   3188 ac_cpp='$CPP $CPPFLAGS'
   3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3192 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   3193 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
   3194 # On Suns, sometimes $CPP names a directory.
   3195 if test -n "$CPP" && test -d "$CPP"; then
   3196   CPP=
   3197 fi
   3198 if test -z "$CPP"; then
   3199   if test "${ac_cv_prog_CPP+set}" = set; then
   3200   echo $ECHO_N "(cached) $ECHO_C" >&6
   3201 else
   3202       # Double quotes because CPP needs to be expanded
   3203     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3204     do
   3205       ac_preproc_ok=false
   3206 for ac_c_preproc_warn_flag in '' yes
   3207 do
   3208   # Use a header file that comes with gcc, so configuring glibc
   3209   # with a fresh cross-compiler works.
   3210   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3211   # <limits.h> exists even on freestanding compilers.
   3212   # On the NeXT, cc -E runs the code through the compiler's parser,
   3213   # not just through cpp. "Syntax error" is here to catch this case.
   3214   cat >conftest.$ac_ext <<_ACEOF
   3215 /* confdefs.h.  */
   3216 _ACEOF
   3217 cat confdefs.h >>conftest.$ac_ext
   3218 cat >>conftest.$ac_ext <<_ACEOF
   3219 /* end confdefs.h.  */
   3220 #ifdef __STDC__
   3221 # include <limits.h>
   3222 #else
   3223 # include <assert.h>
   3224 #endif
   3225 		     Syntax error
   3226 _ACEOF
   3227 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3228 case "(($ac_try" in
   3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3230   *) ac_try_echo=$ac_try;;
   3231 esac
   3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3233   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3234   ac_status=$?
   3235   grep -v '^ *+' conftest.er1 >conftest.err
   3236   rm -f conftest.er1
   3237   cat conftest.err >&5
   3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3239   (exit $ac_status); } >/dev/null; then
   3240   if test -s conftest.err; then
   3241     ac_cpp_err=$ac_c_preproc_warn_flag
   3242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3243   else
   3244     ac_cpp_err=
   3245   fi
   3246 else
   3247   ac_cpp_err=yes
   3248 fi
   3249 if test -z "$ac_cpp_err"; then
   3250   :
   3251 else
   3252   echo "$as_me: failed program was:" >&5
   3253 sed 's/^/| /' conftest.$ac_ext >&5
   3254 
   3255   # Broken: fails on valid input.
   3256 continue
   3257 fi
   3258 
   3259 rm -f conftest.err conftest.$ac_ext
   3260 
   3261   # OK, works on sane cases.  Now check whether nonexistent headers
   3262   # can be detected and how.
   3263   cat >conftest.$ac_ext <<_ACEOF
   3264 /* confdefs.h.  */
   3265 _ACEOF
   3266 cat confdefs.h >>conftest.$ac_ext
   3267 cat >>conftest.$ac_ext <<_ACEOF
   3268 /* end confdefs.h.  */
   3269 #include <ac_nonexistent.h>
   3270 _ACEOF
   3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3272 case "(($ac_try" in
   3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3274   *) ac_try_echo=$ac_try;;
   3275 esac
   3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3278   ac_status=$?
   3279   grep -v '^ *+' conftest.er1 >conftest.err
   3280   rm -f conftest.er1
   3281   cat conftest.err >&5
   3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3283   (exit $ac_status); } >/dev/null; then
   3284   if test -s conftest.err; then
   3285     ac_cpp_err=$ac_c_preproc_warn_flag
   3286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3287   else
   3288     ac_cpp_err=
   3289   fi
   3290 else
   3291   ac_cpp_err=yes
   3292 fi
   3293 if test -z "$ac_cpp_err"; then
   3294   # Broken: success on invalid input.
   3295 continue
   3296 else
   3297   echo "$as_me: failed program was:" >&5
   3298 sed 's/^/| /' conftest.$ac_ext >&5
   3299 
   3300   # Passes both tests.
   3301 ac_preproc_ok=:
   3302 break
   3303 fi
   3304 
   3305 rm -f conftest.err conftest.$ac_ext
   3306 
   3307 done
   3308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3309 rm -f conftest.err conftest.$ac_ext
   3310 if $ac_preproc_ok; then
   3311   break
   3312 fi
   3313 
   3314     done
   3315     ac_cv_prog_CPP=$CPP
   3316 
   3317 fi
   3318   CPP=$ac_cv_prog_CPP
   3319 else
   3320   ac_cv_prog_CPP=$CPP
   3321 fi
   3322 { echo "$as_me:$LINENO: result: $CPP" >&5
   3323 echo "${ECHO_T}$CPP" >&6; }
   3324 ac_preproc_ok=false
   3325 for ac_c_preproc_warn_flag in '' yes
   3326 do
   3327   # Use a header file that comes with gcc, so configuring glibc
   3328   # with a fresh cross-compiler works.
   3329   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3330   # <limits.h> exists even on freestanding compilers.
   3331   # On the NeXT, cc -E runs the code through the compiler's parser,
   3332   # not just through cpp. "Syntax error" is here to catch this case.
   3333   cat >conftest.$ac_ext <<_ACEOF
   3334 /* confdefs.h.  */
   3335 _ACEOF
   3336 cat confdefs.h >>conftest.$ac_ext
   3337 cat >>conftest.$ac_ext <<_ACEOF
   3338 /* end confdefs.h.  */
   3339 #ifdef __STDC__
   3340 # include <limits.h>
   3341 #else
   3342 # include <assert.h>
   3343 #endif
   3344 		     Syntax error
   3345 _ACEOF
   3346 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3347 case "(($ac_try" in
   3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3349   *) ac_try_echo=$ac_try;;
   3350 esac
   3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3353   ac_status=$?
   3354   grep -v '^ *+' conftest.er1 >conftest.err
   3355   rm -f conftest.er1
   3356   cat conftest.err >&5
   3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3358   (exit $ac_status); } >/dev/null; then
   3359   if test -s conftest.err; then
   3360     ac_cpp_err=$ac_c_preproc_warn_flag
   3361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3362   else
   3363     ac_cpp_err=
   3364   fi
   3365 else
   3366   ac_cpp_err=yes
   3367 fi
   3368 if test -z "$ac_cpp_err"; then
   3369   :
   3370 else
   3371   echo "$as_me: failed program was:" >&5
   3372 sed 's/^/| /' conftest.$ac_ext >&5
   3373 
   3374   # Broken: fails on valid input.
   3375 continue
   3376 fi
   3377 
   3378 rm -f conftest.err conftest.$ac_ext
   3379 
   3380   # OK, works on sane cases.  Now check whether nonexistent headers
   3381   # can be detected and how.
   3382   cat >conftest.$ac_ext <<_ACEOF
   3383 /* confdefs.h.  */
   3384 _ACEOF
   3385 cat confdefs.h >>conftest.$ac_ext
   3386 cat >>conftest.$ac_ext <<_ACEOF
   3387 /* end confdefs.h.  */
   3388 #include <ac_nonexistent.h>
   3389 _ACEOF
   3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3391 case "(($ac_try" in
   3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3393   *) ac_try_echo=$ac_try;;
   3394 esac
   3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3397   ac_status=$?
   3398   grep -v '^ *+' conftest.er1 >conftest.err
   3399   rm -f conftest.er1
   3400   cat conftest.err >&5
   3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3402   (exit $ac_status); } >/dev/null; then
   3403   if test -s conftest.err; then
   3404     ac_cpp_err=$ac_c_preproc_warn_flag
   3405     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3406   else
   3407     ac_cpp_err=
   3408   fi
   3409 else
   3410   ac_cpp_err=yes
   3411 fi
   3412 if test -z "$ac_cpp_err"; then
   3413   # Broken: success on invalid input.
   3414 continue
   3415 else
   3416   echo "$as_me: failed program was:" >&5
   3417 sed 's/^/| /' conftest.$ac_ext >&5
   3418 
   3419   # Passes both tests.
   3420 ac_preproc_ok=:
   3421 break
   3422 fi
   3423 
   3424 rm -f conftest.err conftest.$ac_ext
   3425 
   3426 done
   3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3428 rm -f conftest.err conftest.$ac_ext
   3429 if $ac_preproc_ok; then
   3430   :
   3431 else
   3432   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   3433 See \`config.log' for more details." >&5
   3434 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   3435 See \`config.log' for more details." >&2;}
   3436    { (exit 1); exit 1; }; }
   3437 fi
   3438 
   3439 ac_ext=c
   3440 ac_cpp='$CPP $CPPFLAGS'
   3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3444 
   3445 
   3446 
   3447 
   3448 if test -d ${srcdir}/projects/llvm-gcc ; then
   3449   subdirs="$subdirs projects/llvm-gcc"
   3450 
   3451 fi
   3452 
   3453 if test -d ${srcdir}/projects/test-suite ; then
   3454   subdirs="$subdirs projects/test-suite"
   3455 
   3456 fi
   3457 
   3458 if test -d ${srcdir}/projects/llvm-test ; then
   3459   subdirs="$subdirs projects/llvm-test"
   3460 
   3461 fi
   3462 
   3463 if test -d ${srcdir}/projects/poolalloc ; then
   3464   subdirs="$subdirs projects/poolalloc"
   3465 
   3466 fi
   3467 
   3468 if test -d ${srcdir}/projects/llvm-poolalloc ; then
   3469   subdirs="$subdirs projects/llvm-poolalloc"
   3470 
   3471 fi
   3472 
   3473 for i in `ls ${srcdir}/projects`
   3474 do
   3475   if test -d ${srcdir}/projects/${i} ; then
   3476     case ${i} in
   3477       sample)       subdirs="$subdirs projects/sample"
   3478     ;;
   3479       privbracket)  subdirs="$subdirs projects/privbracket"
   3480  ;;
   3481       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
   3482  ;;
   3483       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
   3484 ;;
   3485       llvm-java)    subdirs="$subdirs projects/llvm-java"
   3486  ;;
   3487       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
   3488    ;;
   3489       safecode)     subdirs="$subdirs projects/safecode"
   3490  ;;
   3491       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
   3492  ;;
   3493       llvm-gcc)       ;;
   3494       test-suite)     ;;
   3495       llvm-test)      ;;
   3496       poolalloc)      ;;
   3497       llvm-poolalloc) ;;
   3498       *)
   3499         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
   3500 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
   3501         ;;
   3502     esac
   3503   fi
   3504 done
   3505 
   3506 # Check whether --enable-polly was given.
   3507 if test "${enable_polly+set}" = set; then
   3508   enableval=$enable_polly;
   3509 else
   3510   enableval=default
   3511 fi
   3512 
   3513 case "$enableval" in
   3514   yes) ENABLE_POLLY=1
   3515  ;;
   3516   no)  ENABLE_POLLY=0
   3517  ;;
   3518   default) ENABLE_POLLY=1
   3519  ;;
   3520   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
   3521 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
   3522    { (exit 1); exit 1; }; } ;;
   3523 esac
   3524 
   3525 
   3526 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
   3527   LLVM_HAS_POLLY=1
   3528 
   3529   subdirs="$subdirs tools/polly"
   3530 
   3531 fi
   3532 
   3533 
   3534 # Make sure we can run config.sub.
   3535 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   3536   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
   3537 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   3538    { (exit 1); exit 1; }; }
   3539 
   3540 { echo "$as_me:$LINENO: checking build system type" >&5
   3541 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
   3542 if test "${ac_cv_build+set}" = set; then
   3543   echo $ECHO_N "(cached) $ECHO_C" >&6
   3544 else
   3545   ac_build_alias=$build_alias
   3546 test "x$ac_build_alias" = x &&
   3547   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   3548 test "x$ac_build_alias" = x &&
   3549   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
   3550 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   3551    { (exit 1); exit 1; }; }
   3552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   3553   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
   3554 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   3555    { (exit 1); exit 1; }; }
   3556 
   3557 fi
   3558 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
   3559 echo "${ECHO_T}$ac_cv_build" >&6; }
   3560 case $ac_cv_build in
   3561 *-*-*) ;;
   3562 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
   3563 echo "$as_me: error: invalid value of canonical build" >&2;}
   3564    { (exit 1); exit 1; }; };;
   3565 esac
   3566 build=$ac_cv_build
   3567 ac_save_IFS=$IFS; IFS='-'
   3568 set x $ac_cv_build
   3569 shift
   3570 build_cpu=$1
   3571 build_vendor=$2
   3572 shift; shift
   3573 # Remember, the first character of IFS is used to create $*,
   3574 # except with old shells:
   3575 build_os=$*
   3576 IFS=$ac_save_IFS
   3577 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   3578 
   3579 
   3580 { echo "$as_me:$LINENO: checking host system type" >&5
   3581 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
   3582 if test "${ac_cv_host+set}" = set; then
   3583   echo $ECHO_N "(cached) $ECHO_C" >&6
   3584 else
   3585   if test "x$host_alias" = x; then
   3586   ac_cv_host=$ac_cv_build
   3587 else
   3588   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   3589     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
   3590 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   3591    { (exit 1); exit 1; }; }
   3592 fi
   3593 
   3594 fi
   3595 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
   3596 echo "${ECHO_T}$ac_cv_host" >&6; }
   3597 case $ac_cv_host in
   3598 *-*-*) ;;
   3599 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
   3600 echo "$as_me: error: invalid value of canonical host" >&2;}
   3601    { (exit 1); exit 1; }; };;
   3602 esac
   3603 host=$ac_cv_host
   3604 ac_save_IFS=$IFS; IFS='-'
   3605 set x $ac_cv_host
   3606 shift
   3607 host_cpu=$1
   3608 host_vendor=$2
   3609 shift; shift
   3610 # Remember, the first character of IFS is used to create $*,
   3611 # except with old shells:
   3612 host_os=$*
   3613 IFS=$ac_save_IFS
   3614 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   3615 
   3616 
   3617 { echo "$as_me:$LINENO: checking target system type" >&5
   3618 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
   3619 if test "${ac_cv_target+set}" = set; then
   3620   echo $ECHO_N "(cached) $ECHO_C" >&6
   3621 else
   3622   if test "x$target_alias" = x; then
   3623   ac_cv_target=$ac_cv_host
   3624 else
   3625   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   3626     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
   3627 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
   3628    { (exit 1); exit 1; }; }
   3629 fi
   3630 
   3631 fi
   3632 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
   3633 echo "${ECHO_T}$ac_cv_target" >&6; }
   3634 case $ac_cv_target in
   3635 *-*-*) ;;
   3636 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
   3637 echo "$as_me: error: invalid value of canonical target" >&2;}
   3638    { (exit 1); exit 1; }; };;
   3639 esac
   3640 target=$ac_cv_target
   3641 ac_save_IFS=$IFS; IFS='-'
   3642 set x $ac_cv_target
   3643 shift
   3644 target_cpu=$1
   3645 target_vendor=$2
   3646 shift; shift
   3647 # Remember, the first character of IFS is used to create $*,
   3648 # except with old shells:
   3649 target_os=$*
   3650 IFS=$ac_save_IFS
   3651 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   3652 
   3653 
   3654 # The aliases save the names the user supplied, while $host etc.
   3655 # will get canonicalized.
   3656 test -n "$target_alias" &&
   3657   test "$program_prefix$program_suffix$program_transform_name" = \
   3658     NONENONEs,x,x, &&
   3659   program_prefix=${target_alias}-
   3660 
   3661 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
   3662 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
   3663 if test "${llvm_cv_os_type+set}" = set; then
   3664   echo $ECHO_N "(cached) $ECHO_C" >&6
   3665 else
   3666   case $host in
   3667   *-*-aix*)
   3668     llvm_cv_link_all_option="-Wl,--whole-archive"
   3669     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3670     llvm_cv_os_type="AIX"
   3671     llvm_cv_platform_type="Unix" ;;
   3672   *-*-irix*)
   3673     llvm_cv_link_all_option="-Wl,--whole-archive"
   3674     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3675     llvm_cv_os_type="IRIX"
   3676     llvm_cv_platform_type="Unix" ;;
   3677   *-*-cygwin*)
   3678     llvm_cv_link_all_option="-Wl,--whole-archive"
   3679     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3680     llvm_cv_os_type="Cygwin"
   3681     llvm_cv_platform_type="Unix" ;;
   3682   *-*-darwin*)
   3683     llvm_cv_link_all_option="-Wl,-all_load"
   3684     llvm_cv_no_link_all_option="-Wl,-noall_load"
   3685     llvm_cv_os_type="Darwin"
   3686     llvm_cv_platform_type="Unix" ;;
   3687   *-*-minix*)
   3688     llvm_cv_link_all_option="-Wl,-all_load"
   3689     llvm_cv_no_link_all_option="-Wl,-noall_load"
   3690     llvm_cv_os_type="Minix"
   3691     llvm_cv_platform_type="Unix" ;;
   3692   *-*-freebsd*)
   3693     llvm_cv_link_all_option="-Wl,--whole-archive"
   3694     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3695     llvm_cv_os_type="FreeBSD"
   3696     llvm_cv_platform_type="Unix" ;;
   3697   *-*-openbsd*)
   3698     llvm_cv_link_all_option="-Wl,--whole-archive"
   3699     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3700     llvm_cv_os_type="OpenBSD"
   3701     llvm_cv_platform_type="Unix" ;;
   3702   *-*-netbsd*)
   3703     llvm_cv_link_all_option="-Wl,--whole-archive"
   3704     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3705     llvm_cv_os_type="NetBSD"
   3706     llvm_cv_platform_type="Unix" ;;
   3707   *-*-dragonfly*)
   3708     llvm_cv_link_all_option="-Wl,--whole-archive"
   3709     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3710     llvm_cv_os_type="DragonFly"
   3711     llvm_cv_platform_type="Unix" ;;
   3712   *-*-hpux*)
   3713     llvm_cv_link_all_option="-Wl,--whole-archive"
   3714     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3715     llvm_cv_os_type="HP-UX"
   3716     llvm_cv_platform_type="Unix" ;;
   3717   *-*-interix*)
   3718     llvm_cv_link_all_option="-Wl,--whole-archive"
   3719     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3720     llvm_cv_os_type="Interix"
   3721     llvm_cv_platform_type="Unix" ;;
   3722   *-*-linux*)
   3723     llvm_cv_link_all_option="-Wl,--whole-archive"
   3724     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3725     llvm_cv_os_type="Linux"
   3726     llvm_cv_platform_type="Unix" ;;
   3727   *-*-solaris*)
   3728     llvm_cv_link_all_option="-Wl,-z,allextract"
   3729     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
   3730     llvm_cv_os_type="SunOS"
   3731     llvm_cv_platform_type="Unix" ;;
   3732   *-*-auroraux*)
   3733     llvm_cv_link_all_option="-Wl,-z,allextract"
   3734     llvm_cv_link_all_option="-Wl,-z,defaultextract"
   3735     llvm_cv_os_type="AuroraUX"
   3736     llvm_cv_platform_type="Unix" ;;
   3737   *-*-win32*)
   3738     llvm_cv_link_all_option="-Wl,--whole-archive"
   3739     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3740     llvm_cv_os_type="Win32"
   3741     llvm_cv_platform_type="Win32" ;;
   3742   *-*-mingw*)
   3743     llvm_cv_link_all_option="-Wl,--whole-archive"
   3744     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3745     llvm_cv_os_type="MingW"
   3746     llvm_cv_platform_type="Win32" ;;
   3747   *-*-haiku*)
   3748     llvm_cv_link_all_option="-Wl,--whole-archive"
   3749     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3750     llvm_cv_os_type="Haiku"
   3751     llvm_cv_platform_type="Unix" ;;
   3752   *-unknown-eabi*)
   3753     llvm_cv_link_all_option="-Wl,--whole-archive"
   3754     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3755     llvm_cv_os_type="Freestanding"
   3756     llvm_cv_platform_type="Unix" ;;
   3757   *-unknown-elf*)
   3758     llvm_cv_link_all_option="-Wl,--whole-archive"
   3759     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3760     llvm_cv_os_type="Freestanding"
   3761     llvm_cv_platform_type="Unix" ;;
   3762   *)
   3763     llvm_cv_link_all_option=""
   3764     llvm_cv_no_link_all_option=""
   3765     llvm_cv_os_type="Unknown"
   3766     llvm_cv_platform_type="Unknown" ;;
   3767 esac
   3768 fi
   3769 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
   3770 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
   3771 
   3772 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
   3773 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
   3774 if test "${llvm_cv_target_os_type+set}" = set; then
   3775   echo $ECHO_N "(cached) $ECHO_C" >&6
   3776 else
   3777   case $target in
   3778   *-*-aix*)
   3779     llvm_cv_target_os_type="AIX" ;;
   3780   *-*-irix*)
   3781     llvm_cv_target_os_type="IRIX" ;;
   3782   *-*-cygwin*)
   3783     llvm_cv_target_os_type="Cygwin" ;;
   3784   *-*-darwin*)
   3785     llvm_cv_target_os_type="Darwin" ;;
   3786   *-*-minix*)
   3787     llvm_cv_target_os_type="Minix" ;;
   3788   *-*-freebsd*)
   3789     llvm_cv_target_os_type="FreeBSD" ;;
   3790   *-*-openbsd*)
   3791     llvm_cv_target_os_type="OpenBSD" ;;
   3792   *-*-netbsd*)
   3793     llvm_cv_target_os_type="NetBSD" ;;
   3794   *-*-dragonfly*)
   3795     llvm_cv_target_os_type="DragonFly" ;;
   3796   *-*-hpux*)
   3797     llvm_cv_target_os_type="HP-UX" ;;
   3798   *-*-interix*)
   3799     llvm_cv_target_os_type="Interix" ;;
   3800   *-*-linux*)
   3801     llvm_cv_target_os_type="Linux" ;;
   3802   *-*-solaris*)
   3803     llvm_cv_target_os_type="SunOS" ;;
   3804   *-*-auroraux*)
   3805     llvm_cv_target_os_type="AuroraUX" ;;
   3806   *-*-win32*)
   3807     llvm_cv_target_os_type="Win32" ;;
   3808   *-*-mingw*)
   3809     llvm_cv_target_os_type="MingW" ;;
   3810   *-*-haiku*)
   3811     llvm_cv_target_os_type="Haiku" ;;
   3812   *-*-rtems*)
   3813     llvm_cv_target_os_type="RTEMS" ;;
   3814   *-*-nacl*)
   3815     llvm_cv_target_os_type="NativeClient" ;;
   3816   *-unknown-eabi*)
   3817     llvm_cv_target_os_type="Freestanding" ;;
   3818   *)
   3819     llvm_cv_target_os_type="Unknown" ;;
   3820 esac
   3821 fi
   3822 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
   3823 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
   3824 
   3825 if test "$llvm_cv_os_type" = "Unknown" ; then
   3826   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
   3827 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
   3828    { (exit 1); exit 1; }; }
   3829 fi
   3830 
   3831 OS=$llvm_cv_os_type
   3832 
   3833 HOST_OS=$llvm_cv_os_type
   3834 
   3835 TARGET_OS=$llvm_cv_target_os_type
   3836 
   3837 
   3838 LINKALL=$llvm_cv_link_all_option
   3839 
   3840 NOLINKALL=$llvm_cv_no_link_all_option
   3841 
   3842 
   3843 case $llvm_cv_platform_type in
   3844   Unix)
   3845 
   3846 cat >>confdefs.h <<\_ACEOF
   3847 #define LLVM_ON_UNIX 1
   3848 _ACEOF
   3849 
   3850     LLVM_ON_UNIX=1
   3851 
   3852     LLVM_ON_WIN32=0
   3853 
   3854     ;;
   3855   Win32)
   3856 
   3857 cat >>confdefs.h <<\_ACEOF
   3858 #define LLVM_ON_WIN32 1
   3859 _ACEOF
   3860 
   3861     LLVM_ON_UNIX=0
   3862 
   3863     LLVM_ON_WIN32=1
   3864 
   3865     ;;
   3866 esac
   3867 
   3868 { echo "$as_me:$LINENO: checking target architecture" >&5
   3869 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
   3870 if test "${llvm_cv_target_arch+set}" = set; then
   3871   echo $ECHO_N "(cached) $ECHO_C" >&6
   3872 else
   3873   case $target in
   3874   i?86-*)                 llvm_cv_target_arch="x86" ;;
   3875   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
   3876   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
   3877   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
   3878   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
   3879   arm*-*)                 llvm_cv_target_arch="ARM" ;;
   3880   mips-*)                 llvm_cv_target_arch="Mips" ;;
   3881   xcore-*)                llvm_cv_target_arch="XCore" ;;
   3882   msp430-*)               llvm_cv_target_arch="MSP430" ;;
   3883   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
   3884   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
   3885   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
   3886   ptx-*)                  llvm_cv_target_arch="PTX" ;;
   3887   *)                      llvm_cv_target_arch="Unknown" ;;
   3888 esac
   3889 fi
   3890 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
   3891 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
   3892 
   3893 if test "$llvm_cv_target_arch" = "Unknown" ; then
   3894   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
   3895 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
   3896 fi
   3897 
   3898 # Determine the LLVM native architecture for the target
   3899 case "$llvm_cv_target_arch" in
   3900     x86)     LLVM_NATIVE_ARCH="X86" ;;
   3901     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
   3902     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
   3903 esac
   3904 
   3905 ARCH=$llvm_cv_target_arch
   3906 
   3907 
   3908 
   3909 
   3910 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   3911 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
   3912 if test "${ac_cv_path_GREP+set}" = set; then
   3913   echo $ECHO_N "(cached) $ECHO_C" >&6
   3914 else
   3915   # Extract the first word of "grep ggrep" to use in msg output
   3916 if test -z "$GREP"; then
   3917 set dummy grep ggrep; ac_prog_name=$2
   3918 if test "${ac_cv_path_GREP+set}" = set; then
   3919   echo $ECHO_N "(cached) $ECHO_C" >&6
   3920 else
   3921   ac_path_GREP_found=false
   3922 # Loop through the user's path and test for each of PROGNAME-LIST
   3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3925 do
   3926   IFS=$as_save_IFS
   3927   test -z "$as_dir" && as_dir=.
   3928   for ac_prog in grep ggrep; do
   3929   for ac_exec_ext in '' $ac_executable_extensions; do
   3930     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3931     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
   3932     # Check for GNU ac_path_GREP and select it if it is found.
   3933   # Check for GNU $ac_path_GREP
   3934 case `"$ac_path_GREP" --version 2>&1` in
   3935 *GNU*)
   3936   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3937 *)
   3938   ac_count=0
   3939   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3940   while :
   3941   do
   3942     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3943     mv "conftest.tmp" "conftest.in"
   3944     cp "conftest.in" "conftest.nl"
   3945     echo 'GREP' >> "conftest.nl"
   3946     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3947     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3948     ac_count=`expr $ac_count + 1`
   3949     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3950       # Best one so far, save it but keep looking for a better one
   3951       ac_cv_path_GREP="$ac_path_GREP"
   3952       ac_path_GREP_max=$ac_count
   3953     fi
   3954     # 10*(2^10) chars as input seems more than enough
   3955     test $ac_count -gt 10 && break
   3956   done
   3957   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3958 esac
   3959 
   3960 
   3961     $ac_path_GREP_found && break 3
   3962   done
   3963 done
   3964 
   3965 done
   3966 IFS=$as_save_IFS
   3967 
   3968 
   3969 fi
   3970 
   3971 GREP="$ac_cv_path_GREP"
   3972 if test -z "$GREP"; then
   3973   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3974 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3975    { (exit 1); exit 1; }; }
   3976 fi
   3977 
   3978 else
   3979   ac_cv_path_GREP=$GREP
   3980 fi
   3981 
   3982 
   3983 fi
   3984 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   3985 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
   3986  GREP="$ac_cv_path_GREP"
   3987 
   3988 
   3989 { echo "$as_me:$LINENO: checking for egrep" >&5
   3990 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
   3991 if test "${ac_cv_path_EGREP+set}" = set; then
   3992   echo $ECHO_N "(cached) $ECHO_C" >&6
   3993 else
   3994   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3995    then ac_cv_path_EGREP="$GREP -E"
   3996    else
   3997      # Extract the first word of "egrep" to use in msg output
   3998 if test -z "$EGREP"; then
   3999 set dummy egrep; ac_prog_name=$2
   4000 if test "${ac_cv_path_EGREP+set}" = set; then
   4001   echo $ECHO_N "(cached) $ECHO_C" >&6
   4002 else
   4003   ac_path_EGREP_found=false
   4004 # Loop through the user's path and test for each of PROGNAME-LIST
   4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4006 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4007 do
   4008   IFS=$as_save_IFS
   4009   test -z "$as_dir" && as_dir=.
   4010   for ac_prog in egrep; do
   4011   for ac_exec_ext in '' $ac_executable_extensions; do
   4012     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4013     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
   4014     # Check for GNU ac_path_EGREP and select it if it is found.
   4015   # Check for GNU $ac_path_EGREP
   4016 case `"$ac_path_EGREP" --version 2>&1` in
   4017 *GNU*)
   4018   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4019 *)
   4020   ac_count=0
   4021   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   4022   while :
   4023   do
   4024     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4025     mv "conftest.tmp" "conftest.in"
   4026     cp "conftest.in" "conftest.nl"
   4027     echo 'EGREP' >> "conftest.nl"
   4028     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4029     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4030     ac_count=`expr $ac_count + 1`
   4031     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4032       # Best one so far, save it but keep looking for a better one
   4033       ac_cv_path_EGREP="$ac_path_EGREP"
   4034       ac_path_EGREP_max=$ac_count
   4035     fi
   4036     # 10*(2^10) chars as input seems more than enough
   4037     test $ac_count -gt 10 && break
   4038   done
   4039   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4040 esac
   4041 
   4042 
   4043     $ac_path_EGREP_found && break 3
   4044   done
   4045 done
   4046 
   4047 done
   4048 IFS=$as_save_IFS
   4049 
   4050 
   4051 fi
   4052 
   4053 EGREP="$ac_cv_path_EGREP"
   4054 if test -z "$EGREP"; then
   4055   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   4056 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   4057    { (exit 1); exit 1; }; }
   4058 fi
   4059 
   4060 else
   4061   ac_cv_path_EGREP=$EGREP
   4062 fi
   4063 
   4064 
   4065    fi
   4066 fi
   4067 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   4068 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
   4069  EGREP="$ac_cv_path_EGREP"
   4070 
   4071 
   4072 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   4073 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
   4074 if test "${ac_cv_header_stdc+set}" = set; then
   4075   echo $ECHO_N "(cached) $ECHO_C" >&6
   4076 else
   4077   cat >conftest.$ac_ext <<_ACEOF
   4078 /* confdefs.h.  */
   4079 _ACEOF
   4080 cat confdefs.h >>conftest.$ac_ext
   4081 cat >>conftest.$ac_ext <<_ACEOF
   4082 /* end confdefs.h.  */
   4083 #include <stdlib.h>
   4084 #include <stdarg.h>
   4085 #include <string.h>
   4086 #include <float.h>
   4087 
   4088 int
   4089 main ()
   4090 {
   4091 
   4092   ;
   4093   return 0;
   4094 }
   4095 _ACEOF
   4096 rm -f conftest.$ac_objext
   4097 if { (ac_try="$ac_compile"
   4098 case "(($ac_try" in
   4099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4100   *) ac_try_echo=$ac_try;;
   4101 esac
   4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4103   (eval "$ac_compile") 2>conftest.er1
   4104   ac_status=$?
   4105   grep -v '^ *+' conftest.er1 >conftest.err
   4106   rm -f conftest.er1
   4107   cat conftest.err >&5
   4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4109   (exit $ac_status); } &&
   4110 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4111   { (case "(($ac_try" in
   4112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4113   *) ac_try_echo=$ac_try;;
   4114 esac
   4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4116   (eval "$ac_try") 2>&5
   4117   ac_status=$?
   4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4119   (exit $ac_status); }; } &&
   4120 	 { ac_try='test -s conftest.$ac_objext'
   4121   { (case "(($ac_try" in
   4122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4123   *) ac_try_echo=$ac_try;;
   4124 esac
   4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4126   (eval "$ac_try") 2>&5
   4127   ac_status=$?
   4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4129   (exit $ac_status); }; }; then
   4130   ac_cv_header_stdc=yes
   4131 else
   4132   echo "$as_me: failed program was:" >&5
   4133 sed 's/^/| /' conftest.$ac_ext >&5
   4134 
   4135 	ac_cv_header_stdc=no
   4136 fi
   4137 
   4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4139 
   4140 if test $ac_cv_header_stdc = yes; then
   4141   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4142   cat >conftest.$ac_ext <<_ACEOF
   4143 /* confdefs.h.  */
   4144 _ACEOF
   4145 cat confdefs.h >>conftest.$ac_ext
   4146 cat >>conftest.$ac_ext <<_ACEOF
   4147 /* end confdefs.h.  */
   4148 #include <string.h>
   4149 
   4150 _ACEOF
   4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4152   $EGREP "memchr" >/dev/null 2>&1; then
   4153   :
   4154 else
   4155   ac_cv_header_stdc=no
   4156 fi
   4157 rm -f conftest*
   4158 
   4159 fi
   4160 
   4161 if test $ac_cv_header_stdc = yes; then
   4162   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4163   cat >conftest.$ac_ext <<_ACEOF
   4164 /* confdefs.h.  */
   4165 _ACEOF
   4166 cat confdefs.h >>conftest.$ac_ext
   4167 cat >>conftest.$ac_ext <<_ACEOF
   4168 /* end confdefs.h.  */
   4169 #include <stdlib.h>
   4170 
   4171 _ACEOF
   4172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4173   $EGREP "free" >/dev/null 2>&1; then
   4174   :
   4175 else
   4176   ac_cv_header_stdc=no
   4177 fi
   4178 rm -f conftest*
   4179 
   4180 fi
   4181 
   4182 if test $ac_cv_header_stdc = yes; then
   4183   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4184   if test "$cross_compiling" = yes; then
   4185   :
   4186 else
   4187   cat >conftest.$ac_ext <<_ACEOF
   4188 /* confdefs.h.  */
   4189 _ACEOF
   4190 cat confdefs.h >>conftest.$ac_ext
   4191 cat >>conftest.$ac_ext <<_ACEOF
   4192 /* end confdefs.h.  */
   4193 #include <ctype.h>
   4194 #include <stdlib.h>
   4195 #if ((' ' & 0x0FF) == 0x020)
   4196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4198 #else
   4199 # define ISLOWER(c) \
   4200 		   (('a' <= (c) && (c) <= 'i') \
   4201 		     || ('j' <= (c) && (c) <= 'r') \
   4202 		     || ('s' <= (c) && (c) <= 'z'))
   4203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4204 #endif
   4205 
   4206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4207 int
   4208 main ()
   4209 {
   4210   int i;
   4211   for (i = 0; i < 256; i++)
   4212     if (XOR (islower (i), ISLOWER (i))
   4213 	|| toupper (i) != TOUPPER (i))
   4214       return 2;
   4215   return 0;
   4216 }
   4217 _ACEOF
   4218 rm -f conftest$ac_exeext
   4219 if { (ac_try="$ac_link"
   4220 case "(($ac_try" in
   4221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4222   *) ac_try_echo=$ac_try;;
   4223 esac
   4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4225   (eval "$ac_link") 2>&5
   4226   ac_status=$?
   4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4229   { (case "(($ac_try" in
   4230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4231   *) ac_try_echo=$ac_try;;
   4232 esac
   4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4234   (eval "$ac_try") 2>&5
   4235   ac_status=$?
   4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4237   (exit $ac_status); }; }; then
   4238   :
   4239 else
   4240   echo "$as_me: program exited with status $ac_status" >&5
   4241 echo "$as_me: failed program was:" >&5
   4242 sed 's/^/| /' conftest.$ac_ext >&5
   4243 
   4244 ( exit $ac_status )
   4245 ac_cv_header_stdc=no
   4246 fi
   4247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4248 fi
   4249 
   4250 
   4251 fi
   4252 fi
   4253 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   4254 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
   4255 if test $ac_cv_header_stdc = yes; then
   4256 
   4257 cat >>confdefs.h <<\_ACEOF
   4258 #define STDC_HEADERS 1
   4259 _ACEOF
   4260 
   4261 fi
   4262 
   4263 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4264 
   4265 
   4266 
   4267 
   4268 
   4269 
   4270 
   4271 
   4272 
   4273 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4274 		  inttypes.h stdint.h unistd.h
   4275 do
   4276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4280   echo $ECHO_N "(cached) $ECHO_C" >&6
   4281 else
   4282   cat >conftest.$ac_ext <<_ACEOF
   4283 /* confdefs.h.  */
   4284 _ACEOF
   4285 cat confdefs.h >>conftest.$ac_ext
   4286 cat >>conftest.$ac_ext <<_ACEOF
   4287 /* end confdefs.h.  */
   4288 $ac_includes_default
   4289 
   4290 #include <$ac_header>
   4291 _ACEOF
   4292 rm -f conftest.$ac_objext
   4293 if { (ac_try="$ac_compile"
   4294 case "(($ac_try" in
   4295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4296   *) ac_try_echo=$ac_try;;
   4297 esac
   4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4299   (eval "$ac_compile") 2>conftest.er1
   4300   ac_status=$?
   4301   grep -v '^ *+' conftest.er1 >conftest.err
   4302   rm -f conftest.er1
   4303   cat conftest.err >&5
   4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4305   (exit $ac_status); } &&
   4306 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4307   { (case "(($ac_try" in
   4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4309   *) ac_try_echo=$ac_try;;
   4310 esac
   4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4312   (eval "$ac_try") 2>&5
   4313   ac_status=$?
   4314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4315   (exit $ac_status); }; } &&
   4316 	 { ac_try='test -s conftest.$ac_objext'
   4317   { (case "(($ac_try" in
   4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4319   *) ac_try_echo=$ac_try;;
   4320 esac
   4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4322   (eval "$ac_try") 2>&5
   4323   ac_status=$?
   4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4325   (exit $ac_status); }; }; then
   4326   eval "$as_ac_Header=yes"
   4327 else
   4328   echo "$as_me: failed program was:" >&5
   4329 sed 's/^/| /' conftest.$ac_ext >&5
   4330 
   4331 	eval "$as_ac_Header=no"
   4332 fi
   4333 
   4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4335 fi
   4336 ac_res=`eval echo '${'$as_ac_Header'}'`
   4337 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4338 echo "${ECHO_T}$ac_res" >&6; }
   4339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4340   cat >>confdefs.h <<_ACEOF
   4341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4342 _ACEOF
   4343 
   4344 fi
   4345 
   4346 done
   4347 
   4348 
   4349 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
   4350 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
   4351 if test "${ac_cv_c_bigendian+set}" = set; then
   4352   echo $ECHO_N "(cached) $ECHO_C" >&6
   4353 else
   4354   # See if sys/param.h defines the BYTE_ORDER macro.
   4355 cat >conftest.$ac_ext <<_ACEOF
   4356 /* confdefs.h.  */
   4357 _ACEOF
   4358 cat confdefs.h >>conftest.$ac_ext
   4359 cat >>conftest.$ac_ext <<_ACEOF
   4360 /* end confdefs.h.  */
   4361 #include <sys/types.h>
   4362 #include <sys/param.h>
   4363 
   4364 int
   4365 main ()
   4366 {
   4367 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
   4368  bogus endian macros
   4369 #endif
   4370 
   4371   ;
   4372   return 0;
   4373 }
   4374 _ACEOF
   4375 rm -f conftest.$ac_objext
   4376 if { (ac_try="$ac_compile"
   4377 case "(($ac_try" in
   4378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4379   *) ac_try_echo=$ac_try;;
   4380 esac
   4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4382   (eval "$ac_compile") 2>conftest.er1
   4383   ac_status=$?
   4384   grep -v '^ *+' conftest.er1 >conftest.err
   4385   rm -f conftest.er1
   4386   cat conftest.err >&5
   4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4388   (exit $ac_status); } &&
   4389 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4390   { (case "(($ac_try" in
   4391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4392   *) ac_try_echo=$ac_try;;
   4393 esac
   4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4395   (eval "$ac_try") 2>&5
   4396   ac_status=$?
   4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4398   (exit $ac_status); }; } &&
   4399 	 { ac_try='test -s conftest.$ac_objext'
   4400   { (case "(($ac_try" in
   4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4402   *) ac_try_echo=$ac_try;;
   4403 esac
   4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4405   (eval "$ac_try") 2>&5
   4406   ac_status=$?
   4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4408   (exit $ac_status); }; }; then
   4409   # It does; now see whether it defined to BIG_ENDIAN or not.
   4410 cat >conftest.$ac_ext <<_ACEOF
   4411 /* confdefs.h.  */
   4412 _ACEOF
   4413 cat confdefs.h >>conftest.$ac_ext
   4414 cat >>conftest.$ac_ext <<_ACEOF
   4415 /* end confdefs.h.  */
   4416 #include <sys/types.h>
   4417 #include <sys/param.h>
   4418 
   4419 int
   4420 main ()
   4421 {
   4422 #if BYTE_ORDER != BIG_ENDIAN
   4423  not big endian
   4424 #endif
   4425 
   4426   ;
   4427   return 0;
   4428 }
   4429 _ACEOF
   4430 rm -f conftest.$ac_objext
   4431 if { (ac_try="$ac_compile"
   4432 case "(($ac_try" in
   4433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4434   *) ac_try_echo=$ac_try;;
   4435 esac
   4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4437   (eval "$ac_compile") 2>conftest.er1
   4438   ac_status=$?
   4439   grep -v '^ *+' conftest.er1 >conftest.err
   4440   rm -f conftest.er1
   4441   cat conftest.err >&5
   4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4443   (exit $ac_status); } &&
   4444 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4445   { (case "(($ac_try" in
   4446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4447   *) ac_try_echo=$ac_try;;
   4448 esac
   4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4450   (eval "$ac_try") 2>&5
   4451   ac_status=$?
   4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4453   (exit $ac_status); }; } &&
   4454 	 { ac_try='test -s conftest.$ac_objext'
   4455   { (case "(($ac_try" in
   4456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4457   *) ac_try_echo=$ac_try;;
   4458 esac
   4459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4460   (eval "$ac_try") 2>&5
   4461   ac_status=$?
   4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4463   (exit $ac_status); }; }; then
   4464   ac_cv_c_bigendian=yes
   4465 else
   4466   echo "$as_me: failed program was:" >&5
   4467 sed 's/^/| /' conftest.$ac_ext >&5
   4468 
   4469 	ac_cv_c_bigendian=no
   4470 fi
   4471 
   4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4473 else
   4474   echo "$as_me: failed program was:" >&5
   4475 sed 's/^/| /' conftest.$ac_ext >&5
   4476 
   4477 	# It does not; compile a test program.
   4478 if test "$cross_compiling" = yes; then
   4479   # try to guess the endianness by grepping values into an object file
   4480   ac_cv_c_bigendian=unknown
   4481   cat >conftest.$ac_ext <<_ACEOF
   4482 /* confdefs.h.  */
   4483 _ACEOF
   4484 cat confdefs.h >>conftest.$ac_ext
   4485 cat >>conftest.$ac_ext <<_ACEOF
   4486 /* end confdefs.h.  */
   4487 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   4488 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   4489 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
   4490 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   4491 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   4492 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
   4493 int
   4494 main ()
   4495 {
   4496  _ascii (); _ebcdic ();
   4497   ;
   4498   return 0;
   4499 }
   4500 _ACEOF
   4501 rm -f conftest.$ac_objext
   4502 if { (ac_try="$ac_compile"
   4503 case "(($ac_try" in
   4504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4505   *) ac_try_echo=$ac_try;;
   4506 esac
   4507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4508   (eval "$ac_compile") 2>conftest.er1
   4509   ac_status=$?
   4510   grep -v '^ *+' conftest.er1 >conftest.err
   4511   rm -f conftest.er1
   4512   cat conftest.err >&5
   4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4514   (exit $ac_status); } &&
   4515 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4516   { (case "(($ac_try" in
   4517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4518   *) ac_try_echo=$ac_try;;
   4519 esac
   4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4521   (eval "$ac_try") 2>&5
   4522   ac_status=$?
   4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4524   (exit $ac_status); }; } &&
   4525 	 { ac_try='test -s conftest.$ac_objext'
   4526   { (case "(($ac_try" in
   4527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4528   *) ac_try_echo=$ac_try;;
   4529 esac
   4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4531   (eval "$ac_try") 2>&5
   4532   ac_status=$?
   4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4534   (exit $ac_status); }; }; then
   4535   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
   4536   ac_cv_c_bigendian=yes
   4537 fi
   4538 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   4539   if test "$ac_cv_c_bigendian" = unknown; then
   4540     ac_cv_c_bigendian=no
   4541   else
   4542     # finding both strings is unlikely to happen, but who knows?
   4543     ac_cv_c_bigendian=unknown
   4544   fi
   4545 fi
   4546 else
   4547   echo "$as_me: failed program was:" >&5
   4548 sed 's/^/| /' conftest.$ac_ext >&5
   4549 
   4550 
   4551 fi
   4552 
   4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4554 else
   4555   cat >conftest.$ac_ext <<_ACEOF
   4556 /* confdefs.h.  */
   4557 _ACEOF
   4558 cat confdefs.h >>conftest.$ac_ext
   4559 cat >>conftest.$ac_ext <<_ACEOF
   4560 /* end confdefs.h.  */
   4561 $ac_includes_default
   4562 int
   4563 main ()
   4564 {
   4565 
   4566   /* Are we little or big endian?  From Harbison&Steele.  */
   4567   union
   4568   {
   4569     long int l;
   4570     char c[sizeof (long int)];
   4571   } u;
   4572   u.l = 1;
   4573   return u.c[sizeof (long int) - 1] == 1;
   4574 
   4575   ;
   4576   return 0;
   4577 }
   4578 _ACEOF
   4579 rm -f conftest$ac_exeext
   4580 if { (ac_try="$ac_link"
   4581 case "(($ac_try" in
   4582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4583   *) ac_try_echo=$ac_try;;
   4584 esac
   4585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4586   (eval "$ac_link") 2>&5
   4587   ac_status=$?
   4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4590   { (case "(($ac_try" in
   4591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4592   *) ac_try_echo=$ac_try;;
   4593 esac
   4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4595   (eval "$ac_try") 2>&5
   4596   ac_status=$?
   4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4598   (exit $ac_status); }; }; then
   4599   ac_cv_c_bigendian=no
   4600 else
   4601   echo "$as_me: program exited with status $ac_status" >&5
   4602 echo "$as_me: failed program was:" >&5
   4603 sed 's/^/| /' conftest.$ac_ext >&5
   4604 
   4605 ( exit $ac_status )
   4606 ac_cv_c_bigendian=yes
   4607 fi
   4608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4609 fi
   4610 
   4611 
   4612 fi
   4613 
   4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4615 fi
   4616 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
   4617 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
   4618 case $ac_cv_c_bigendian in
   4619   yes)
   4620     ENDIAN=big
   4621  ;;
   4622   no)
   4623     ENDIAN=little
   4624  ;;
   4625   *)
   4626     { { echo "$as_me:$LINENO: error: unknown endianness
   4627 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
   4628 echo "$as_me: error: unknown endianness
   4629 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
   4630    { (exit 1); exit 1; }; } ;;
   4631 esac
   4632 
   4633 
   4634 if test "$cross_compiling" = yes; then
   4635   LLVM_CROSS_COMPILING=1
   4636 
   4637 
   4638 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
   4639 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
   4640 if test "${ac_cv_build_exeext+set}" = set; then
   4641   echo $ECHO_N "(cached) $ECHO_C" >&6
   4642 else
   4643   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
   4644   ac_cv_build_exeext=.exe
   4645 else
   4646   ac_build_prefix=${build_alias}-
   4647 
   4648   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
   4649 set dummy ${ac_build_prefix}gcc; ac_word=$2
   4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4652 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
   4653   echo $ECHO_N "(cached) $ECHO_C" >&6
   4654 else
   4655   if test -n "$BUILD_CC"; then
   4656   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
   4657 else
   4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4659 for as_dir in $PATH
   4660 do
   4661   IFS=$as_save_IFS
   4662   test -z "$as_dir" && as_dir=.
   4663   for ac_exec_ext in '' $ac_executable_extensions; do
   4664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4665     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
   4666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4667     break 2
   4668   fi
   4669 done
   4670 done
   4671 IFS=$as_save_IFS
   4672 
   4673 fi
   4674 fi
   4675 BUILD_CC=$ac_cv_prog_BUILD_CC
   4676 if test -n "$BUILD_CC"; then
   4677   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
   4678 echo "${ECHO_T}$BUILD_CC" >&6; }
   4679 else
   4680   { echo "$as_me:$LINENO: result: no" >&5
   4681 echo "${ECHO_T}no" >&6; }
   4682 fi
   4683 
   4684 
   4685   if test -z "$BUILD_CC"; then
   4686      # Extract the first word of "gcc", so it can be a program name with args.
   4687 set dummy gcc; ac_word=$2
   4688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4690 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
   4691   echo $ECHO_N "(cached) $ECHO_C" >&6
   4692 else
   4693   if test -n "$BUILD_CC"; then
   4694   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
   4695 else
   4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4697 for as_dir in $PATH
   4698 do
   4699   IFS=$as_save_IFS
   4700   test -z "$as_dir" && as_dir=.
   4701   for ac_exec_ext in '' $ac_executable_extensions; do
   4702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4703     ac_cv_prog_BUILD_CC="gcc"
   4704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4705     break 2
   4706   fi
   4707 done
   4708 done
   4709 IFS=$as_save_IFS
   4710 
   4711 fi
   4712 fi
   4713 BUILD_CC=$ac_cv_prog_BUILD_CC
   4714 if test -n "$BUILD_CC"; then
   4715   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
   4716 echo "${ECHO_T}$BUILD_CC" >&6; }
   4717 else
   4718   { echo "$as_me:$LINENO: result: no" >&5
   4719 echo "${ECHO_T}no" >&6; }
   4720 fi
   4721 
   4722 
   4723      if test -z "$BUILD_CC"; then
   4724        # Extract the first word of "cc", so it can be a program name with args.
   4725 set dummy cc; ac_word=$2
   4726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4728 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
   4729   echo $ECHO_N "(cached) $ECHO_C" >&6
   4730 else
   4731   if test -n "$BUILD_CC"; then
   4732   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
   4733 else
   4734   ac_prog_rejected=no
   4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4736 for as_dir in $PATH
   4737 do
   4738   IFS=$as_save_IFS
   4739   test -z "$as_dir" && as_dir=.
   4740   for ac_exec_ext in '' $ac_executable_extensions; do
   4741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4742     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   4743        ac_prog_rejected=yes
   4744        continue
   4745      fi
   4746     ac_cv_prog_BUILD_CC="cc"
   4747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4748     break 2
   4749   fi
   4750 done
   4751 done
   4752 IFS=$as_save_IFS
   4753 
   4754 if test $ac_prog_rejected = yes; then
   4755   # We found a bogon in the path, so make sure we never use it.
   4756   set dummy $ac_cv_prog_BUILD_CC
   4757   shift
   4758   if test $# != 0; then
   4759     # We chose a different compiler from the bogus one.
   4760     # However, it has the same basename, so the bogon will be chosen
   4761     # first if we set BUILD_CC to just the basename; use the full file name.
   4762     shift
   4763     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
   4764   fi
   4765 fi
   4766 fi
   4767 fi
   4768 BUILD_CC=$ac_cv_prog_BUILD_CC
   4769 if test -n "$BUILD_CC"; then
   4770   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
   4771 echo "${ECHO_T}$BUILD_CC" >&6; }
   4772 else
   4773   { echo "$as_me:$LINENO: result: no" >&5
   4774 echo "${ECHO_T}no" >&6; }
   4775 fi
   4776 
   4777 
   4778      fi
   4779   fi
   4780   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
   4781 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   4782    { (exit 1); exit 1; }; }
   4783   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   4784   rm -f conftest*
   4785   echo 'int main () { return 0; }' > conftest.$ac_ext
   4786   ac_cv_build_exeext=
   4787   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
   4788   (eval $ac_build_link) 2>&5
   4789   ac_status=$?
   4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4791   (exit $ac_status); }; then
   4792     for file in conftest.*; do
   4793       case $file in
   4794       *.c | *.o | *.obj | *.dSYM) ;;
   4795       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
   4796       esac
   4797     done
   4798   else
   4799     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
   4800 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
   4801    { (exit 1); exit 1; }; }
   4802   fi
   4803   rm -f conftest*
   4804   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
   4805 fi
   4806 fi
   4807 
   4808 BUILD_EXEEXT=""
   4809 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
   4810 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
   4811 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
   4812 ac_build_exeext=$BUILD_EXEEXT
   4813 
   4814   ac_build_prefix=${build_alias}-
   4815   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
   4816 set dummy ${ac_build_prefix}g++; ac_word=$2
   4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4819 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
   4820   echo $ECHO_N "(cached) $ECHO_C" >&6
   4821 else
   4822   if test -n "$BUILD_CXX"; then
   4823   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
   4824 else
   4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4826 for as_dir in $PATH
   4827 do
   4828   IFS=$as_save_IFS
   4829   test -z "$as_dir" && as_dir=.
   4830   for ac_exec_ext in '' $ac_executable_extensions; do
   4831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4832     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
   4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4834     break 2
   4835   fi
   4836 done
   4837 done
   4838 IFS=$as_save_IFS
   4839 
   4840 fi
   4841 fi
   4842 BUILD_CXX=$ac_cv_prog_BUILD_CXX
   4843 if test -n "$BUILD_CXX"; then
   4844   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
   4845 echo "${ECHO_T}$BUILD_CXX" >&6; }
   4846 else
   4847   { echo "$as_me:$LINENO: result: no" >&5
   4848 echo "${ECHO_T}no" >&6; }
   4849 fi
   4850 
   4851 
   4852   if test -z "$BUILD_CXX"; then
   4853      # Extract the first word of "g++", so it can be a program name with args.
   4854 set dummy g++; ac_word=$2
   4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4857 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
   4858   echo $ECHO_N "(cached) $ECHO_C" >&6
   4859 else
   4860   if test -n "$BUILD_CXX"; then
   4861   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
   4862 else
   4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4864 for as_dir in $PATH
   4865 do
   4866   IFS=$as_save_IFS
   4867   test -z "$as_dir" && as_dir=.
   4868   for ac_exec_ext in '' $ac_executable_extensions; do
   4869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4870     ac_cv_prog_BUILD_CXX="g++"
   4871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4872     break 2
   4873   fi
   4874 done
   4875 done
   4876 IFS=$as_save_IFS
   4877 
   4878 fi
   4879 fi
   4880 BUILD_CXX=$ac_cv_prog_BUILD_CXX
   4881 if test -n "$BUILD_CXX"; then
   4882   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
   4883 echo "${ECHO_T}$BUILD_CXX" >&6; }
   4884 else
   4885   { echo "$as_me:$LINENO: result: no" >&5
   4886 echo "${ECHO_T}no" >&6; }
   4887 fi
   4888 
   4889 
   4890      if test -z "$BUILD_CXX"; then
   4891        # Extract the first word of "c++", so it can be a program name with args.
   4892 set dummy c++; ac_word=$2
   4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4895 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
   4896   echo $ECHO_N "(cached) $ECHO_C" >&6
   4897 else
   4898   if test -n "$BUILD_CXX"; then
   4899   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
   4900 else
   4901   ac_prog_rejected=no
   4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4903 for as_dir in $PATH
   4904 do
   4905   IFS=$as_save_IFS
   4906   test -z "$as_dir" && as_dir=.
   4907   for ac_exec_ext in '' $ac_executable_extensions; do
   4908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4909     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
   4910        ac_prog_rejected=yes
   4911        continue
   4912      fi
   4913     ac_cv_prog_BUILD_CXX="c++"
   4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4915     break 2
   4916   fi
   4917 done
   4918 done
   4919 IFS=$as_save_IFS
   4920 
   4921 if test $ac_prog_rejected = yes; then
   4922   # We found a bogon in the path, so make sure we never use it.
   4923   set dummy $ac_cv_prog_BUILD_CXX
   4924   shift
   4925   if test $# != 0; then
   4926     # We chose a different compiler from the bogus one.
   4927     # However, it has the same basename, so the bogon will be chosen
   4928     # first if we set BUILD_CXX to just the basename; use the full file name.
   4929     shift
   4930     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
   4931   fi
   4932 fi
   4933 fi
   4934 fi
   4935 BUILD_CXX=$ac_cv_prog_BUILD_CXX
   4936 if test -n "$BUILD_CXX"; then
   4937   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
   4938 echo "${ECHO_T}$BUILD_CXX" >&6; }
   4939 else
   4940   { echo "$as_me:$LINENO: result: no" >&5
   4941 echo "${ECHO_T}no" >&6; }
   4942 fi
   4943 
   4944 
   4945      fi
   4946   fi
   4947 else
   4948   LLVM_CROSS_COMPILING=0
   4949 
   4950 fi
   4951 
   4952 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
   4953   cvsbuild="yes"
   4954   optimize="no"
   4955   CVSBUILD=CVSBUILD=1
   4956 
   4957 else
   4958   cvsbuild="no"
   4959   optimize="yes"
   4960 fi
   4961 
   4962 
   4963 # Check whether --enable-optimized was given.
   4964 if test "${enable_optimized+set}" = set; then
   4965   enableval=$enable_optimized;
   4966 else
   4967   enableval=$optimize
   4968 fi
   4969 
   4970 if test ${enableval} = "no" ; then
   4971   ENABLE_OPTIMIZED=
   4972 
   4973 else
   4974   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
   4975 
   4976 fi
   4977 
   4978 # Check whether --enable-profiling was given.
   4979 if test "${enable_profiling+set}" = set; then
   4980   enableval=$enable_profiling;
   4981 else
   4982   enableval="no"
   4983 fi
   4984 
   4985 if test ${enableval} = "no" ; then
   4986   ENABLE_PROFILING=
   4987 
   4988 else
   4989   ENABLE_PROFILING=ENABLE_PROFILING=1
   4990 
   4991 fi
   4992 
   4993 # Check whether --enable-assertions was given.
   4994 if test "${enable_assertions+set}" = set; then
   4995   enableval=$enable_assertions;
   4996 else
   4997   enableval="yes"
   4998 fi
   4999 
   5000 if test ${enableval} = "yes" ; then
   5001   DISABLE_ASSERTIONS=
   5002 
   5003 else
   5004   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
   5005 
   5006 fi
   5007 
   5008 # Check whether --enable-expensive-checks was given.
   5009 if test "${enable_expensive_checks+set}" = set; then
   5010   enableval=$enable_expensive_checks;
   5011 else
   5012   enableval="no"
   5013 fi
   5014 
   5015 if test ${enableval} = "yes" ; then
   5016   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
   5017 
   5018   EXPENSIVE_CHECKS=yes
   5019 
   5020 else
   5021   ENABLE_EXPENSIVE_CHECKS=
   5022 
   5023   EXPENSIVE_CHECKS=no
   5024 
   5025 fi
   5026 
   5027 # Check whether --enable-debug-runtime was given.
   5028 if test "${enable_debug_runtime+set}" = set; then
   5029   enableval=$enable_debug_runtime;
   5030 else
   5031   enableval=no
   5032 fi
   5033 
   5034 if test ${enableval} = "no" ; then
   5035   DEBUG_RUNTIME=
   5036 
   5037 else
   5038   DEBUG_RUNTIME=DEBUG_RUNTIME=1
   5039 
   5040 fi
   5041 
   5042 # Check whether --enable-debug-symbols was given.
   5043 if test "${enable_debug_symbols+set}" = set; then
   5044   enableval=$enable_debug_symbols;
   5045 else
   5046   enableval=no
   5047 fi
   5048 
   5049 if test ${enableval} = "no" ; then
   5050   DEBUG_SYMBOLS=
   5051 
   5052 else
   5053   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
   5054 
   5055 fi
   5056 
   5057 # Check whether --enable-jit was given.
   5058 if test "${enable_jit+set}" = set; then
   5059   enableval=$enable_jit;
   5060 else
   5061   enableval=default
   5062 fi
   5063 
   5064 if test ${enableval} = "no"
   5065 then
   5066   JIT=
   5067 
   5068 else
   5069   case "$llvm_cv_target_arch" in
   5070     x86)         TARGET_HAS_JIT=1
   5071  ;;
   5072     Sparc)       TARGET_HAS_JIT=0
   5073  ;;
   5074     PowerPC)     TARGET_HAS_JIT=1
   5075  ;;
   5076     x86_64)      TARGET_HAS_JIT=1
   5077  ;;
   5078     Alpha)       TARGET_HAS_JIT=0
   5079  ;;
   5080     ARM)         TARGET_HAS_JIT=1
   5081  ;;
   5082     Mips)        TARGET_HAS_JIT=1
   5083  ;;
   5084     XCore)       TARGET_HAS_JIT=0
   5085  ;;
   5086     MSP430)      TARGET_HAS_JIT=0
   5087  ;;
   5088     SystemZ)     TARGET_HAS_JIT=0
   5089  ;;
   5090     Blackfin)    TARGET_HAS_JIT=0
   5091  ;;
   5092     MBlaze)      TARGET_HAS_JIT=0
   5093  ;;
   5094     PTX)         TARGET_HAS_JIT=0
   5095  ;;
   5096     *)           TARGET_HAS_JIT=0
   5097  ;;
   5098   esac
   5099 fi
   5100 
   5101 # Check whether --enable-docs was given.
   5102 if test "${enable_docs+set}" = set; then
   5103   enableval=$enable_docs;
   5104 else
   5105   enableval=default
   5106 fi
   5107 
   5108 case "$enableval" in
   5109   yes) ENABLE_DOCS=1
   5110  ;;
   5111   no)  ENABLE_DOCS=0
   5112  ;;
   5113   default) ENABLE_DOCS=1
   5114  ;;
   5115   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
   5116 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
   5117    { (exit 1); exit 1; }; } ;;
   5118 esac
   5119 
   5120 # Check whether --enable-doxygen was given.
   5121 if test "${enable_doxygen+set}" = set; then
   5122   enableval=$enable_doxygen;
   5123 else
   5124   enableval=default
   5125 fi
   5126 
   5127 case "$enableval" in
   5128   yes) ENABLE_DOXYGEN=1
   5129  ;;
   5130   no)  ENABLE_DOXYGEN=0
   5131  ;;
   5132   default) ENABLE_DOXYGEN=0
   5133  ;;
   5134   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
   5135 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
   5136    { (exit 1); exit 1; }; } ;;
   5137 esac
   5138 
   5139 # Check whether --enable-threads was given.
   5140 if test "${enable_threads+set}" = set; then
   5141   enableval=$enable_threads;
   5142 else
   5143   enableval=default
   5144 fi
   5145 
   5146 case "$enableval" in
   5147   yes) ENABLE_THREADS=1
   5148  ;;
   5149   no)  ENABLE_THREADS=0
   5150  ;;
   5151   default) ENABLE_THREADS=1
   5152  ;;
   5153   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
   5154 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
   5155    { (exit 1); exit 1; }; } ;;
   5156 esac
   5157 
   5158 cat >>confdefs.h <<_ACEOF
   5159 #define ENABLE_THREADS $ENABLE_THREADS
   5160 _ACEOF
   5161 
   5162 
   5163 # Check whether --enable-pthreads was given.
   5164 if test "${enable_pthreads+set}" = set; then
   5165   enableval=$enable_pthreads;
   5166 else
   5167   enableval=default
   5168 fi
   5169 
   5170 case "$enableval" in
   5171   yes) ENABLE_PTHREADS=1
   5172  ;;
   5173   no)  ENABLE_PTHREADS=0
   5174  ;;
   5175   default) ENABLE_PTHREADS=1
   5176  ;;
   5177   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
   5178 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
   5179    { (exit 1); exit 1; }; } ;;
   5180 esac
   5181 
   5182 # Check whether --enable-pic was given.
   5183 if test "${enable_pic+set}" = set; then
   5184   enableval=$enable_pic;
   5185 else
   5186   enableval=default
   5187 fi
   5188 
   5189 case "$enableval" in
   5190   yes) ENABLE_PIC=1
   5191  ;;
   5192   no)  ENABLE_PIC=0
   5193  ;;
   5194   default) ENABLE_PIC=1
   5195  ;;
   5196   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
   5197 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
   5198    { (exit 1); exit 1; }; } ;;
   5199 esac
   5200 
   5201 cat >>confdefs.h <<_ACEOF
   5202 #define ENABLE_PIC $ENABLE_PIC
   5203 _ACEOF
   5204 
   5205 
   5206 # Check whether --enable-shared was given.
   5207 if test "${enable_shared+set}" = set; then
   5208   enableval=$enable_shared;
   5209 else
   5210   enableval=default
   5211 fi
   5212 
   5213 case "$enableval" in
   5214   yes) ENABLE_SHARED=1
   5215  ;;
   5216   no)  ENABLE_SHARED=0
   5217  ;;
   5218   default) ENABLE_SHARED=0
   5219  ;;
   5220   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
   5221 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
   5222    { (exit 1); exit 1; }; } ;;
   5223 esac
   5224 
   5225 # Check whether --enable-embed-stdcxx was given.
   5226 if test "${enable_embed_stdcxx+set}" = set; then
   5227   enableval=$enable_embed_stdcxx;
   5228 else
   5229   enableval=default
   5230 fi
   5231 
   5232 case "$enableval" in
   5233   yes) ENABLE_EMBED_STDCXX=1
   5234  ;;
   5235   no)  ENABLE_EMBED_STDCXX=0
   5236  ;;
   5237   default) ENABLE_EMBED_STDCXX=0
   5238  ;;
   5239   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
   5240 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
   5241    { (exit 1); exit 1; }; } ;;
   5242 esac
   5243 
   5244 # Check whether --enable-timestamps was given.
   5245 if test "${enable_timestamps+set}" = set; then
   5246   enableval=$enable_timestamps;
   5247 else
   5248   enableval=default
   5249 fi
   5250 
   5251 case "$enableval" in
   5252   yes) ENABLE_TIMESTAMPS=1
   5253  ;;
   5254   no)  ENABLE_TIMESTAMPS=0
   5255  ;;
   5256   default) ENABLE_TIMESTAMPS=1
   5257  ;;
   5258   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
   5259 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
   5260    { (exit 1); exit 1; }; } ;;
   5261 esac
   5262 
   5263 cat >>confdefs.h <<_ACEOF
   5264 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
   5265 _ACEOF
   5266 
   5267 
   5268 TARGETS_TO_BUILD=""
   5269 # Check whether --enable-targets was given.
   5270 if test "${enable_targets+set}" = set; then
   5271   enableval=$enable_targets;
   5272 else
   5273   enableval=all
   5274 fi
   5275 
   5276 if test "$enableval" = host-only ; then
   5277   enableval=host
   5278 fi
   5279 case "$enableval" in
   5280   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
   5281   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
   5282       case "$a_target" in
   5283         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5284         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5285         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
   5286         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
   5287         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
   5288         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
   5289         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
   5290         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
   5291         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
   5292         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
   5293         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
   5294         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
   5295         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
   5296         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
   5297         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
   5298         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
   5299         host) case "$llvm_cv_target_arch" in
   5300             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5301             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5302             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
   5303             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
   5304             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
   5305             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
   5306             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
   5307             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
   5308             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
   5309             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
   5310             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
   5311             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
   5312             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
   5313             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
   5314             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
   5315 echo "$as_me: error: Can not set target to build" >&2;}
   5316    { (exit 1); exit 1; }; } ;;
   5317           esac ;;
   5318         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
   5319 echo "$as_me: error: Unrecognized target $a_target" >&2;}
   5320    { (exit 1); exit 1; }; } ;;
   5321       esac
   5322   done
   5323   ;;
   5324 esac
   5325 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
   5326 
   5327 
   5328 # Determine whether we are building LLVM support for the native architecture.
   5329 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
   5330 for a_target in $TARGETS_TO_BUILD; do
   5331   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
   5332 
   5333 cat >>confdefs.h <<_ACEOF
   5334 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
   5335 _ACEOF
   5336 
   5337     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
   5338     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
   5339     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
   5340     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
   5341     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
   5342       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
   5343     fi
   5344 
   5345 cat >>confdefs.h <<_ACEOF
   5346 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
   5347 _ACEOF
   5348 
   5349 
   5350 cat >>confdefs.h <<_ACEOF
   5351 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
   5352 _ACEOF
   5353 
   5354 
   5355 cat >>confdefs.h <<_ACEOF
   5356 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
   5357 _ACEOF
   5358 
   5359 
   5360 cat >>confdefs.h <<_ACEOF
   5361 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
   5362 _ACEOF
   5363 
   5364     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
   5365 
   5366 cat >>confdefs.h <<_ACEOF
   5367 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
   5368 _ACEOF
   5369 
   5370     fi
   5371   fi
   5372 done
   5373 
   5374 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
   5375 # target feature def files.
   5376 LLVM_ENUM_TARGETS=""
   5377 LLVM_ENUM_ASM_PRINTERS=""
   5378 LLVM_ENUM_ASM_PARSERS=""
   5379 LLVM_ENUM_DISASSEMBLERS=""
   5380 for target_to_build in $TARGETS_TO_BUILD; do
   5381   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
   5382   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
   5383     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
   5384   fi
   5385   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
   5386     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
   5387   fi
   5388   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
   5389     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
   5390   fi
   5391 done
   5392 
   5393 
   5394 
   5395 
   5396 
   5397 # Check whether --enable-cbe-printf-a was given.
   5398 if test "${enable_cbe_printf_a+set}" = set; then
   5399   enableval=$enable_cbe_printf_a;
   5400 else
   5401   enableval=default
   5402 fi
   5403 
   5404 case "$enableval" in
   5405   yes) ENABLE_CBE_PRINTF_A=1
   5406  ;;
   5407   no)  ENABLE_CBE_PRINTF_A=0
   5408  ;;
   5409   default)  ENABLE_CBE_PRINTF_A=1
   5410  ;;
   5411   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
   5412 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
   5413    { (exit 1); exit 1; }; } ;;
   5414 esac
   5415 
   5416 cat >>confdefs.h <<_ACEOF
   5417 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
   5418 _ACEOF
   5419 
   5420 
   5421 
   5422 # Check whether --with-optimize-option was given.
   5423 if test "${with_optimize_option+set}" = set; then
   5424   withval=$with_optimize_option;
   5425 else
   5426   withval=default
   5427 fi
   5428 
   5429 { echo "$as_me:$LINENO: checking optimization flags" >&5
   5430 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
   5431 case "$withval" in
   5432   default)
   5433     case "$llvm_cv_os_type" in
   5434     FreeBSD) optimize_option=-O2 ;;
   5435     MingW) optimize_option=-O2 ;;
   5436     *)     optimize_option=-O3 ;;
   5437     esac ;;
   5438   *) optimize_option="$withval" ;;
   5439 esac
   5440 OPTIMIZE_OPTION=$optimize_option
   5441 
   5442 { echo "$as_me:$LINENO: result: $optimize_option" >&5
   5443 echo "${ECHO_T}$optimize_option" >&6; }
   5444 
   5445 
   5446 # Check whether --with-extra-options was given.
   5447 if test "${with_extra_options+set}" = set; then
   5448   withval=$with_extra_options;
   5449 else
   5450   withval=default
   5451 fi
   5452 
   5453 case "$withval" in
   5454   default) EXTRA_OPTIONS= ;;
   5455   *) EXTRA_OPTIONS=$withval ;;
   5456 esac
   5457 EXTRA_OPTIONS=$EXTRA_OPTIONS
   5458 
   5459 
   5460 
   5461 # Check whether --with-extra-ld-options was given.
   5462 if test "${with_extra_ld_options+set}" = set; then
   5463   withval=$with_extra_ld_options;
   5464 else
   5465   withval=default
   5466 fi
   5467 
   5468 case "$withval" in
   5469   default) EXTRA_LD_OPTIONS= ;;
   5470   *) EXTRA_LD_OPTIONS=$withval ;;
   5471 esac
   5472 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
   5473 
   5474 
   5475 # Check whether --enable-bindings was given.
   5476 if test "${enable_bindings+set}" = set; then
   5477   enableval=$enable_bindings;
   5478 else
   5479   enableval=default
   5480 fi
   5481 
   5482 BINDINGS_TO_BUILD=""
   5483 case "$enableval" in
   5484   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
   5485   all ) BINDINGS_TO_BUILD="ocaml" ;;
   5486   none | no) BINDINGS_TO_BUILD="" ;;
   5487   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
   5488       case "$a_binding" in
   5489         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
   5490         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
   5491 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
   5492    { (exit 1); exit 1; }; } ;;
   5493       esac
   5494   done
   5495   ;;
   5496 esac
   5497 
   5498 
   5499 # Check whether --with-ocaml-libdir was given.
   5500 if test "${with_ocaml_libdir+set}" = set; then
   5501   withval=$with_ocaml_libdir;
   5502 else
   5503   withval=auto
   5504 fi
   5505 
   5506 case "$withval" in
   5507   auto) with_ocaml_libdir="$withval" ;;
   5508   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
   5509   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
   5510 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
   5511    { (exit 1); exit 1; }; } ;;
   5512 esac
   5513 
   5514 
   5515 # Check whether --with-clang-srcdir was given.
   5516 if test "${with_clang_srcdir+set}" = set; then
   5517   withval=$with_clang_srcdir;
   5518 else
   5519   withval="-"
   5520 fi
   5521 
   5522 case "$withval" in
   5523   -) clang_src_root="" ;;
   5524   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
   5525   *) clang_src_root="$ac_pwd/$withval" ;;
   5526 esac
   5527 CLANG_SRC_ROOT=$clang_src_root
   5528 
   5529 
   5530 
   5531 # Check whether --with-clang-resource-dir was given.
   5532 if test "${with_clang_resource_dir+set}" = set; then
   5533   withval=$with_clang_resource_dir;
   5534 else
   5535   withval=""
   5536 fi
   5537 
   5538 
   5539 cat >>confdefs.h <<_ACEOF
   5540 #define CLANG_RESOURCE_DIR "$withval"
   5541 _ACEOF
   5542 
   5543 
   5544 
   5545 # Check whether --with-c-include-dirs was given.
   5546 if test "${with_c_include_dirs+set}" = set; then
   5547   withval=$with_c_include_dirs;
   5548 else
   5549   withval=""
   5550 fi
   5551 
   5552 
   5553 cat >>confdefs.h <<_ACEOF
   5554 #define C_INCLUDE_DIRS "$withval"
   5555 _ACEOF
   5556 
   5557 
   5558 
   5559 # Check whether --with-cxx-include-root was given.
   5560 if test "${with_cxx_include_root+set}" = set; then
   5561   withval=$with_cxx_include_root;
   5562 else
   5563   withval=""
   5564 fi
   5565 
   5566 
   5567 cat >>confdefs.h <<_ACEOF
   5568 #define CXX_INCLUDE_ROOT "$withval"
   5569 _ACEOF
   5570 
   5571 
   5572 
   5573 # Check whether --with-cxx-include-arch was given.
   5574 if test "${with_cxx_include_arch+set}" = set; then
   5575   withval=$with_cxx_include_arch;
   5576 else
   5577   withval=""
   5578 fi
   5579 
   5580 
   5581 cat >>confdefs.h <<_ACEOF
   5582 #define CXX_INCLUDE_ARCH "$withval"
   5583 _ACEOF
   5584 
   5585 
   5586 
   5587 # Check whether --with-cxx-include-32bit-dir was given.
   5588 if test "${with_cxx_include_32bit_dir+set}" = set; then
   5589   withval=$with_cxx_include_32bit_dir;
   5590 else
   5591   withval=""
   5592 fi
   5593 
   5594 
   5595 cat >>confdefs.h <<_ACEOF
   5596 #define CXX_INCLUDE_32BIT_DIR "$withval"
   5597 _ACEOF
   5598 
   5599 
   5600 
   5601 # Check whether --with-cxx-include-64bit-dir was given.
   5602 if test "${with_cxx_include_64bit_dir+set}" = set; then
   5603   withval=$with_cxx_include_64bit_dir;
   5604 else
   5605   withval=""
   5606 fi
   5607 
   5608 
   5609 cat >>confdefs.h <<_ACEOF
   5610 #define CXX_INCLUDE_64BIT_DIR "$withval"
   5611 _ACEOF
   5612 
   5613 
   5614 
   5615 # Check whether --with-binutils-include was given.
   5616 if test "${with_binutils_include+set}" = set; then
   5617   withval=$with_binutils_include;
   5618 else
   5619   withval=default
   5620 fi
   5621 
   5622 case "$withval" in
   5623   default) WITH_BINUTILS_INCDIR=default ;;
   5624   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
   5625   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
   5626 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
   5627    { (exit 1); exit 1; }; } ;;
   5628 esac
   5629 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
   5630   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
   5631 
   5632   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
   5633      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
   5634      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
   5635 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
   5636    { (exit 1); exit 1; }; };
   5637   fi
   5638 fi
   5639 
   5640 
   5641 # Check whether --with-bug-report-url was given.
   5642 if test "${with_bug_report_url+set}" = set; then
   5643   withval=$with_bug_report_url;
   5644 else
   5645   withval="http://llvm.org/bugs/"
   5646 fi
   5647 
   5648 
   5649 cat >>confdefs.h <<_ACEOF
   5650 #define BUG_REPORT_URL "$withval"
   5651 _ACEOF
   5652 
   5653 
   5654 # Check whether --enable-libffi was given.
   5655 if test "${enable_libffi+set}" = set; then
   5656   enableval=$enable_libffi; case "$enableval" in
   5657     yes) llvm_cv_enable_libffi="yes" ;;
   5658     no)  llvm_cv_enable_libffi="no"  ;;
   5659     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
   5660 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
   5661    { (exit 1); exit 1; }; } ;;
   5662   esac
   5663 else
   5664   llvm_cv_enable_libffi=no
   5665 fi
   5666 
   5667 
   5668 
   5669 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
   5670 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
   5671 if test "${lt_cv_path_NM+set}" = set; then
   5672   echo $ECHO_N "(cached) $ECHO_C" >&6
   5673 else
   5674   if test -n "$NM"; then
   5675   # Let the user override the test.
   5676   lt_cv_path_NM="$NM"
   5677 else
   5678   lt_nm_to_check="${ac_tool_prefix}nm"
   5679   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   5680     lt_nm_to_check="$lt_nm_to_check nm"
   5681   fi
   5682   for lt_tmp_nm in $lt_nm_to_check; do
   5683     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   5684     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   5685       IFS="$lt_save_ifs"
   5686       test -z "$ac_dir" && ac_dir=.
   5687       tmp_nm="$ac_dir/$lt_tmp_nm"
   5688       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   5689 	# Check to see if the nm accepts a BSD-compat flag.
   5690 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
   5691 	#   nm: unknown option "B" ignored
   5692 	# Tru64's nm complains that /dev/null is an invalid object file
   5693 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   5694 	*/dev/null* | *'Invalid file or object type'*)
   5695 	  lt_cv_path_NM="$tmp_nm -B"
   5696 	  break
   5697 	  ;;
   5698 	*)
   5699 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   5700 	  */dev/null*)
   5701 	    lt_cv_path_NM="$tmp_nm -p"
   5702 	    break
   5703 	    ;;
   5704 	  *)
   5705 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   5706 	    continue # so that we can try to find one that supports BSD flags
   5707 	    ;;
   5708 	  esac
   5709 	  ;;
   5710 	esac
   5711       fi
   5712     done
   5713     IFS="$lt_save_ifs"
   5714   done
   5715   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
   5716 fi
   5717 fi
   5718 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
   5719 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
   5720 NM="$lt_cv_path_NM"
   5721 
   5722 
   5723 
   5724 { echo "$as_me:$LINENO: checking for GNU make" >&5
   5725 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
   5726 if test "${llvm_cv_gnu_make_command+set}" = set; then
   5727   echo $ECHO_N "(cached) $ECHO_C" >&6
   5728 else
   5729   llvm_cv_gnu_make_command=''
   5730  for a in "$MAKE" make gmake gnumake ; do
   5731   if test -z "$a" ; then continue ; fi ;
   5732   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
   5733   then
   5734    llvm_cv_gnu_make_command=$a ;
   5735    break;
   5736   fi
   5737  done
   5738 fi
   5739 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
   5740 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
   5741  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
   5742    ifGNUmake='' ;
   5743  else
   5744    ifGNUmake='#' ;
   5745    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
   5746 echo "${ECHO_T}\"Not found\"" >&6; };
   5747  fi
   5748 
   5749 
   5750 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
   5751 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
   5752 LN_S=$as_ln_s
   5753 if test "$LN_S" = "ln -s"; then
   5754   { echo "$as_me:$LINENO: result: yes" >&5
   5755 echo "${ECHO_T}yes" >&6; }
   5756 else
   5757   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
   5758 echo "${ECHO_T}no, using $LN_S" >&6; }
   5759 fi
   5760 
   5761 # Extract the first word of "cmp", so it can be a program name with args.
   5762 set dummy cmp; ac_word=$2
   5763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5765 if test "${ac_cv_path_CMP+set}" = set; then
   5766   echo $ECHO_N "(cached) $ECHO_C" >&6
   5767 else
   5768   case $CMP in
   5769   [\\/]* | ?:[\\/]*)
   5770   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
   5771   ;;
   5772   *)
   5773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5774 for as_dir in $PATH
   5775 do
   5776   IFS=$as_save_IFS
   5777   test -z "$as_dir" && as_dir=.
   5778   for ac_exec_ext in '' $ac_executable_extensions; do
   5779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5780     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
   5781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5782     break 2
   5783   fi
   5784 done
   5785 done
   5786 IFS=$as_save_IFS
   5787 
   5788   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
   5789   ;;
   5790 esac
   5791 fi
   5792 CMP=$ac_cv_path_CMP
   5793 if test -n "$CMP"; then
   5794   { echo "$as_me:$LINENO: result: $CMP" >&5
   5795 echo "${ECHO_T}$CMP" >&6; }
   5796 else
   5797   { echo "$as_me:$LINENO: result: no" >&5
   5798 echo "${ECHO_T}no" >&6; }
   5799 fi
   5800 
   5801 
   5802 # Extract the first word of "cp", so it can be a program name with args.
   5803 set dummy cp; ac_word=$2
   5804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5806 if test "${ac_cv_path_CP+set}" = set; then
   5807   echo $ECHO_N "(cached) $ECHO_C" >&6
   5808 else
   5809   case $CP in
   5810   [\\/]* | ?:[\\/]*)
   5811   ac_cv_path_CP="$CP" # Let the user override the test with a path.
   5812   ;;
   5813   *)
   5814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5815 for as_dir in $PATH
   5816 do
   5817   IFS=$as_save_IFS
   5818   test -z "$as_dir" && as_dir=.
   5819   for ac_exec_ext in '' $ac_executable_extensions; do
   5820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5821     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
   5822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5823     break 2
   5824   fi
   5825 done
   5826 done
   5827 IFS=$as_save_IFS
   5828 
   5829   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
   5830   ;;
   5831 esac
   5832 fi
   5833 CP=$ac_cv_path_CP
   5834 if test -n "$CP"; then
   5835   { echo "$as_me:$LINENO: result: $CP" >&5
   5836 echo "${ECHO_T}$CP" >&6; }
   5837 else
   5838   { echo "$as_me:$LINENO: result: no" >&5
   5839 echo "${ECHO_T}no" >&6; }
   5840 fi
   5841 
   5842 
   5843 # Extract the first word of "date", so it can be a program name with args.
   5844 set dummy date; ac_word=$2
   5845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5847 if test "${ac_cv_path_DATE+set}" = set; then
   5848   echo $ECHO_N "(cached) $ECHO_C" >&6
   5849 else
   5850   case $DATE in
   5851   [\\/]* | ?:[\\/]*)
   5852   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
   5853   ;;
   5854   *)
   5855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5856 for as_dir in $PATH
   5857 do
   5858   IFS=$as_save_IFS
   5859   test -z "$as_dir" && as_dir=.
   5860   for ac_exec_ext in '' $ac_executable_extensions; do
   5861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5862     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
   5863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5864     break 2
   5865   fi
   5866 done
   5867 done
   5868 IFS=$as_save_IFS
   5869 
   5870   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
   5871   ;;
   5872 esac
   5873 fi
   5874 DATE=$ac_cv_path_DATE
   5875 if test -n "$DATE"; then
   5876   { echo "$as_me:$LINENO: result: $DATE" >&5
   5877 echo "${ECHO_T}$DATE" >&6; }
   5878 else
   5879   { echo "$as_me:$LINENO: result: no" >&5
   5880 echo "${ECHO_T}no" >&6; }
   5881 fi
   5882 
   5883 
   5884 # Extract the first word of "find", so it can be a program name with args.
   5885 set dummy find; ac_word=$2
   5886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5888 if test "${ac_cv_path_FIND+set}" = set; then
   5889   echo $ECHO_N "(cached) $ECHO_C" >&6
   5890 else
   5891   case $FIND in
   5892   [\\/]* | ?:[\\/]*)
   5893   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
   5894   ;;
   5895   *)
   5896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5897 for as_dir in $PATH
   5898 do
   5899   IFS=$as_save_IFS
   5900   test -z "$as_dir" && as_dir=.
   5901   for ac_exec_ext in '' $ac_executable_extensions; do
   5902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5903     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
   5904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5905     break 2
   5906   fi
   5907 done
   5908 done
   5909 IFS=$as_save_IFS
   5910 
   5911   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
   5912   ;;
   5913 esac
   5914 fi
   5915 FIND=$ac_cv_path_FIND
   5916 if test -n "$FIND"; then
   5917   { echo "$as_me:$LINENO: result: $FIND" >&5
   5918 echo "${ECHO_T}$FIND" >&6; }
   5919 else
   5920   { echo "$as_me:$LINENO: result: no" >&5
   5921 echo "${ECHO_T}no" >&6; }
   5922 fi
   5923 
   5924 
   5925 # Extract the first word of "grep", so it can be a program name with args.
   5926 set dummy grep; ac_word=$2
   5927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5929 if test "${ac_cv_path_GREP+set}" = set; then
   5930   echo $ECHO_N "(cached) $ECHO_C" >&6
   5931 else
   5932   case $GREP in
   5933   [\\/]* | ?:[\\/]*)
   5934   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
   5935   ;;
   5936   *)
   5937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5938 for as_dir in $PATH
   5939 do
   5940   IFS=$as_save_IFS
   5941   test -z "$as_dir" && as_dir=.
   5942   for ac_exec_ext in '' $ac_executable_extensions; do
   5943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5944     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
   5945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5946     break 2
   5947   fi
   5948 done
   5949 done
   5950 IFS=$as_save_IFS
   5951 
   5952   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
   5953   ;;
   5954 esac
   5955 fi
   5956 GREP=$ac_cv_path_GREP
   5957 if test -n "$GREP"; then
   5958   { echo "$as_me:$LINENO: result: $GREP" >&5
   5959 echo "${ECHO_T}$GREP" >&6; }
   5960 else
   5961   { echo "$as_me:$LINENO: result: no" >&5
   5962 echo "${ECHO_T}no" >&6; }
   5963 fi
   5964 
   5965 
   5966 # Extract the first word of "mkdir", so it can be a program name with args.
   5967 set dummy mkdir; ac_word=$2
   5968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5970 if test "${ac_cv_path_MKDIR+set}" = set; then
   5971   echo $ECHO_N "(cached) $ECHO_C" >&6
   5972 else
   5973   case $MKDIR in
   5974   [\\/]* | ?:[\\/]*)
   5975   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
   5976   ;;
   5977   *)
   5978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5979 for as_dir in $PATH
   5980 do
   5981   IFS=$as_save_IFS
   5982   test -z "$as_dir" && as_dir=.
   5983   for ac_exec_ext in '' $ac_executable_extensions; do
   5984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5985     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
   5986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5987     break 2
   5988   fi
   5989 done
   5990 done
   5991 IFS=$as_save_IFS
   5992 
   5993   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
   5994   ;;
   5995 esac
   5996 fi
   5997 MKDIR=$ac_cv_path_MKDIR
   5998 if test -n "$MKDIR"; then
   5999   { echo "$as_me:$LINENO: result: $MKDIR" >&5
   6000 echo "${ECHO_T}$MKDIR" >&6; }
   6001 else
   6002   { echo "$as_me:$LINENO: result: no" >&5
   6003 echo "${ECHO_T}no" >&6; }
   6004 fi
   6005 
   6006 
   6007 # Extract the first word of "mv", so it can be a program name with args.
   6008 set dummy mv; ac_word=$2
   6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6011 if test "${ac_cv_path_MV+set}" = set; then
   6012   echo $ECHO_N "(cached) $ECHO_C" >&6
   6013 else
   6014   case $MV in
   6015   [\\/]* | ?:[\\/]*)
   6016   ac_cv_path_MV="$MV" # Let the user override the test with a path.
   6017   ;;
   6018   *)
   6019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6020 for as_dir in $PATH
   6021 do
   6022   IFS=$as_save_IFS
   6023   test -z "$as_dir" && as_dir=.
   6024   for ac_exec_ext in '' $ac_executable_extensions; do
   6025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6026     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
   6027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6028     break 2
   6029   fi
   6030 done
   6031 done
   6032 IFS=$as_save_IFS
   6033 
   6034   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
   6035   ;;
   6036 esac
   6037 fi
   6038 MV=$ac_cv_path_MV
   6039 if test -n "$MV"; then
   6040   { echo "$as_me:$LINENO: result: $MV" >&5
   6041 echo "${ECHO_T}$MV" >&6; }
   6042 else
   6043   { echo "$as_me:$LINENO: result: no" >&5
   6044 echo "${ECHO_T}no" >&6; }
   6045 fi
   6046 
   6047 
   6048 if test -n "$ac_tool_prefix"; then
   6049   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   6050 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   6051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6053 if test "${ac_cv_prog_RANLIB+set}" = set; then
   6054   echo $ECHO_N "(cached) $ECHO_C" >&6
   6055 else
   6056   if test -n "$RANLIB"; then
   6057   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   6058 else
   6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6060 for as_dir in $PATH
   6061 do
   6062   IFS=$as_save_IFS
   6063   test -z "$as_dir" && as_dir=.
   6064   for ac_exec_ext in '' $ac_executable_extensions; do
   6065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6066     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   6067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6068     break 2
   6069   fi
   6070 done
   6071 done
   6072 IFS=$as_save_IFS
   6073 
   6074 fi
   6075 fi
   6076 RANLIB=$ac_cv_prog_RANLIB
   6077 if test -n "$RANLIB"; then
   6078   { echo "$as_me:$LINENO: result: $RANLIB" >&5
   6079 echo "${ECHO_T}$RANLIB" >&6; }
   6080 else
   6081   { echo "$as_me:$LINENO: result: no" >&5
   6082 echo "${ECHO_T}no" >&6; }
   6083 fi
   6084 
   6085 
   6086 fi
   6087 if test -z "$ac_cv_prog_RANLIB"; then
   6088   ac_ct_RANLIB=$RANLIB
   6089   # Extract the first word of "ranlib", so it can be a program name with args.
   6090 set dummy ranlib; ac_word=$2
   6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6093 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   6094   echo $ECHO_N "(cached) $ECHO_C" >&6
   6095 else
   6096   if test -n "$ac_ct_RANLIB"; then
   6097   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6098 else
   6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6100 for as_dir in $PATH
   6101 do
   6102   IFS=$as_save_IFS
   6103   test -z "$as_dir" && as_dir=.
   6104   for ac_exec_ext in '' $ac_executable_extensions; do
   6105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6106     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6108     break 2
   6109   fi
   6110 done
   6111 done
   6112 IFS=$as_save_IFS
   6113 
   6114 fi
   6115 fi
   6116 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6117 if test -n "$ac_ct_RANLIB"; then
   6118   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   6119 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
   6120 else
   6121   { echo "$as_me:$LINENO: result: no" >&5
   6122 echo "${ECHO_T}no" >&6; }
   6123 fi
   6124 
   6125   if test "x$ac_ct_RANLIB" = x; then
   6126     RANLIB=":"
   6127   else
   6128     case $cross_compiling:$ac_tool_warned in
   6129 yes:)
   6130 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6131 whose name does not start with the host triplet.  If you think this
   6132 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6133 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   6134 whose name does not start with the host triplet.  If you think this
   6135 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   6136 ac_tool_warned=yes ;;
   6137 esac
   6138     RANLIB=$ac_ct_RANLIB
   6139   fi
   6140 else
   6141   RANLIB="$ac_cv_prog_RANLIB"
   6142 fi
   6143 
   6144 if test -n "$ac_tool_prefix"; then
   6145   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   6146 set dummy ${ac_tool_prefix}ar; ac_word=$2
   6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6149 if test "${ac_cv_prog_AR+set}" = set; then
   6150   echo $ECHO_N "(cached) $ECHO_C" >&6
   6151 else
   6152   if test -n "$AR"; then
   6153   ac_cv_prog_AR="$AR" # Let the user override the test.
   6154 else
   6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6156 for as_dir in $PATH
   6157 do
   6158   IFS=$as_save_IFS
   6159   test -z "$as_dir" && as_dir=.
   6160   for ac_exec_ext in '' $ac_executable_extensions; do
   6161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6162     ac_cv_prog_AR="${ac_tool_prefix}ar"
   6163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6164     break 2
   6165   fi
   6166 done
   6167 done
   6168 IFS=$as_save_IFS
   6169 
   6170 fi
   6171 fi
   6172 AR=$ac_cv_prog_AR
   6173 if test -n "$AR"; then
   6174   { echo "$as_me:$LINENO: result: $AR" >&5
   6175 echo "${ECHO_T}$AR" >&6; }
   6176 else
   6177   { echo "$as_me:$LINENO: result: no" >&5
   6178 echo "${ECHO_T}no" >&6; }
   6179 fi
   6180 
   6181 
   6182 fi
   6183 if test -z "$ac_cv_prog_AR"; then
   6184   ac_ct_AR=$AR
   6185   # Extract the first word of "ar", so it can be a program name with args.
   6186 set dummy ar; ac_word=$2
   6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6189 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
   6190   echo $ECHO_N "(cached) $ECHO_C" >&6
   6191 else
   6192   if test -n "$ac_ct_AR"; then
   6193   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6194 else
   6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6196 for as_dir in $PATH
   6197 do
   6198   IFS=$as_save_IFS
   6199   test -z "$as_dir" && as_dir=.
   6200   for ac_exec_ext in '' $ac_executable_extensions; do
   6201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6202     ac_cv_prog_ac_ct_AR="ar"
   6203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6204     break 2
   6205   fi
   6206 done
   6207 done
   6208 IFS=$as_save_IFS
   6209 
   6210 fi
   6211 fi
   6212 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6213 if test -n "$ac_ct_AR"; then
   6214   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
   6215 echo "${ECHO_T}$ac_ct_AR" >&6; }
   6216 else
   6217   { echo "$as_me:$LINENO: result: no" >&5
   6218 echo "${ECHO_T}no" >&6; }
   6219 fi
   6220 
   6221   if test "x$ac_ct_AR" = x; then
   6222     AR="false"
   6223   else
   6224     case $cross_compiling:$ac_tool_warned in
   6225 yes:)
   6226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6227 whose name does not start with the host triplet.  If you think this
   6228 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   6230 whose name does not start with the host triplet.  If you think this
   6231 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   6232 ac_tool_warned=yes ;;
   6233 esac
   6234     AR=$ac_ct_AR
   6235   fi
   6236 else
   6237   AR="$ac_cv_prog_AR"
   6238 fi
   6239 
   6240 # Extract the first word of "rm", so it can be a program name with args.
   6241 set dummy rm; ac_word=$2
   6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6244 if test "${ac_cv_path_RM+set}" = set; then
   6245   echo $ECHO_N "(cached) $ECHO_C" >&6
   6246 else
   6247   case $RM in
   6248   [\\/]* | ?:[\\/]*)
   6249   ac_cv_path_RM="$RM" # Let the user override the test with a path.
   6250   ;;
   6251   *)
   6252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6253 for as_dir in $PATH
   6254 do
   6255   IFS=$as_save_IFS
   6256   test -z "$as_dir" && as_dir=.
   6257   for ac_exec_ext in '' $ac_executable_extensions; do
   6258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6259     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
   6260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6261     break 2
   6262   fi
   6263 done
   6264 done
   6265 IFS=$as_save_IFS
   6266 
   6267   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
   6268   ;;
   6269 esac
   6270 fi
   6271 RM=$ac_cv_path_RM
   6272 if test -n "$RM"; then
   6273   { echo "$as_me:$LINENO: result: $RM" >&5
   6274 echo "${ECHO_T}$RM" >&6; }
   6275 else
   6276   { echo "$as_me:$LINENO: result: no" >&5
   6277 echo "${ECHO_T}no" >&6; }
   6278 fi
   6279 
   6280 
   6281 # Extract the first word of "sed", so it can be a program name with args.
   6282 set dummy sed; ac_word=$2
   6283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6285 if test "${ac_cv_path_SED+set}" = set; then
   6286   echo $ECHO_N "(cached) $ECHO_C" >&6
   6287 else
   6288   case $SED in
   6289   [\\/]* | ?:[\\/]*)
   6290   ac_cv_path_SED="$SED" # Let the user override the test with a path.
   6291   ;;
   6292   *)
   6293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6294 for as_dir in $PATH
   6295 do
   6296   IFS=$as_save_IFS
   6297   test -z "$as_dir" && as_dir=.
   6298   for ac_exec_ext in '' $ac_executable_extensions; do
   6299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6300     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
   6301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6302     break 2
   6303   fi
   6304 done
   6305 done
   6306 IFS=$as_save_IFS
   6307 
   6308   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
   6309   ;;
   6310 esac
   6311 fi
   6312 SED=$ac_cv_path_SED
   6313 if test -n "$SED"; then
   6314   { echo "$as_me:$LINENO: result: $SED" >&5
   6315 echo "${ECHO_T}$SED" >&6; }
   6316 else
   6317   { echo "$as_me:$LINENO: result: no" >&5
   6318 echo "${ECHO_T}no" >&6; }
   6319 fi
   6320 
   6321 
   6322 # Extract the first word of "tar", so it can be a program name with args.
   6323 set dummy tar; ac_word=$2
   6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6326 if test "${ac_cv_path_TAR+set}" = set; then
   6327   echo $ECHO_N "(cached) $ECHO_C" >&6
   6328 else
   6329   case $TAR in
   6330   [\\/]* | ?:[\\/]*)
   6331   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
   6332   ;;
   6333   *)
   6334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6335 for as_dir in $PATH
   6336 do
   6337   IFS=$as_save_IFS
   6338   test -z "$as_dir" && as_dir=.
   6339   for ac_exec_ext in '' $ac_executable_extensions; do
   6340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6341     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
   6342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6343     break 2
   6344   fi
   6345 done
   6346 done
   6347 IFS=$as_save_IFS
   6348 
   6349   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
   6350   ;;
   6351 esac
   6352 fi
   6353 TAR=$ac_cv_path_TAR
   6354 if test -n "$TAR"; then
   6355   { echo "$as_me:$LINENO: result: $TAR" >&5
   6356 echo "${ECHO_T}$TAR" >&6; }
   6357 else
   6358   { echo "$as_me:$LINENO: result: no" >&5
   6359 echo "${ECHO_T}no" >&6; }
   6360 fi
   6361 
   6362 
   6363 # Extract the first word of "pwd", so it can be a program name with args.
   6364 set dummy pwd; ac_word=$2
   6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6367 if test "${ac_cv_path_BINPWD+set}" = set; then
   6368   echo $ECHO_N "(cached) $ECHO_C" >&6
   6369 else
   6370   case $BINPWD in
   6371   [\\/]* | ?:[\\/]*)
   6372   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
   6373   ;;
   6374   *)
   6375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6376 for as_dir in $PATH
   6377 do
   6378   IFS=$as_save_IFS
   6379   test -z "$as_dir" && as_dir=.
   6380   for ac_exec_ext in '' $ac_executable_extensions; do
   6381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6382     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
   6383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6384     break 2
   6385   fi
   6386 done
   6387 done
   6388 IFS=$as_save_IFS
   6389 
   6390   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
   6391   ;;
   6392 esac
   6393 fi
   6394 BINPWD=$ac_cv_path_BINPWD
   6395 if test -n "$BINPWD"; then
   6396   { echo "$as_me:$LINENO: result: $BINPWD" >&5
   6397 echo "${ECHO_T}$BINPWD" >&6; }
   6398 else
   6399   { echo "$as_me:$LINENO: result: no" >&5
   6400 echo "${ECHO_T}no" >&6; }
   6401 fi
   6402 
   6403 
   6404 
   6405 # Extract the first word of "Graphviz", so it can be a program name with args.
   6406 set dummy Graphviz; ac_word=$2
   6407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6409 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
   6410   echo $ECHO_N "(cached) $ECHO_C" >&6
   6411 else
   6412   case $GRAPHVIZ in
   6413   [\\/]* | ?:[\\/]*)
   6414   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
   6415   ;;
   6416   *)
   6417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6418 for as_dir in $PATH
   6419 do
   6420   IFS=$as_save_IFS
   6421   test -z "$as_dir" && as_dir=.
   6422   for ac_exec_ext in '' $ac_executable_extensions; do
   6423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6424     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
   6425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6426     break 2
   6427   fi
   6428 done
   6429 done
   6430 IFS=$as_save_IFS
   6431 
   6432   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
   6433   ;;
   6434 esac
   6435 fi
   6436 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
   6437 if test -n "$GRAPHVIZ"; then
   6438   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
   6439 echo "${ECHO_T}$GRAPHVIZ" >&6; }
   6440 else
   6441   { echo "$as_me:$LINENO: result: no" >&5
   6442 echo "${ECHO_T}no" >&6; }
   6443 fi
   6444 
   6445 
   6446 if test "$GRAPHVIZ" != "echo Graphviz" ; then
   6447 
   6448 cat >>confdefs.h <<\_ACEOF
   6449 #define HAVE_GRAPHVIZ 1
   6450 _ACEOF
   6451 
   6452     if test "$llvm_cv_os_type" = "MingW" ; then
   6453     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6454   fi
   6455 
   6456 cat >>confdefs.h <<_ACEOF
   6457 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
   6458 _ACEOF
   6459 
   6460 fi
   6461 # Extract the first word of "dot", so it can be a program name with args.
   6462 set dummy dot; ac_word=$2
   6463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6465 if test "${ac_cv_path_DOT+set}" = set; then
   6466   echo $ECHO_N "(cached) $ECHO_C" >&6
   6467 else
   6468   case $DOT in
   6469   [\\/]* | ?:[\\/]*)
   6470   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
   6471   ;;
   6472   *)
   6473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6474 for as_dir in $PATH
   6475 do
   6476   IFS=$as_save_IFS
   6477   test -z "$as_dir" && as_dir=.
   6478   for ac_exec_ext in '' $ac_executable_extensions; do
   6479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6480     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
   6481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6482     break 2
   6483   fi
   6484 done
   6485 done
   6486 IFS=$as_save_IFS
   6487 
   6488   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
   6489   ;;
   6490 esac
   6491 fi
   6492 DOT=$ac_cv_path_DOT
   6493 if test -n "$DOT"; then
   6494   { echo "$as_me:$LINENO: result: $DOT" >&5
   6495 echo "${ECHO_T}$DOT" >&6; }
   6496 else
   6497   { echo "$as_me:$LINENO: result: no" >&5
   6498 echo "${ECHO_T}no" >&6; }
   6499 fi
   6500 
   6501 
   6502 if test "$DOT" != "echo dot" ; then
   6503 
   6504 cat >>confdefs.h <<\_ACEOF
   6505 #define HAVE_DOT 1
   6506 _ACEOF
   6507 
   6508     if test "$llvm_cv_os_type" = "MingW" ; then
   6509     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6510   fi
   6511 
   6512 cat >>confdefs.h <<_ACEOF
   6513 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
   6514 _ACEOF
   6515 
   6516 fi
   6517 # Extract the first word of "fdp", so it can be a program name with args.
   6518 set dummy fdp; ac_word=$2
   6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6521 if test "${ac_cv_path_FDP+set}" = set; then
   6522   echo $ECHO_N "(cached) $ECHO_C" >&6
   6523 else
   6524   case $FDP in
   6525   [\\/]* | ?:[\\/]*)
   6526   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
   6527   ;;
   6528   *)
   6529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6530 for as_dir in $PATH
   6531 do
   6532   IFS=$as_save_IFS
   6533   test -z "$as_dir" && as_dir=.
   6534   for ac_exec_ext in '' $ac_executable_extensions; do
   6535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6536     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
   6537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6538     break 2
   6539   fi
   6540 done
   6541 done
   6542 IFS=$as_save_IFS
   6543 
   6544   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
   6545   ;;
   6546 esac
   6547 fi
   6548 FDP=$ac_cv_path_FDP
   6549 if test -n "$FDP"; then
   6550   { echo "$as_me:$LINENO: result: $FDP" >&5
   6551 echo "${ECHO_T}$FDP" >&6; }
   6552 else
   6553   { echo "$as_me:$LINENO: result: no" >&5
   6554 echo "${ECHO_T}no" >&6; }
   6555 fi
   6556 
   6557 
   6558 if test "$FDP" != "echo fdp" ; then
   6559 
   6560 cat >>confdefs.h <<\_ACEOF
   6561 #define HAVE_FDP 1
   6562 _ACEOF
   6563 
   6564     if test "$llvm_cv_os_type" = "MingW" ; then
   6565     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6566   fi
   6567 
   6568 cat >>confdefs.h <<_ACEOF
   6569 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
   6570 _ACEOF
   6571 
   6572 fi
   6573 # Extract the first word of "neato", so it can be a program name with args.
   6574 set dummy neato; ac_word=$2
   6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6577 if test "${ac_cv_path_NEATO+set}" = set; then
   6578   echo $ECHO_N "(cached) $ECHO_C" >&6
   6579 else
   6580   case $NEATO in
   6581   [\\/]* | ?:[\\/]*)
   6582   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
   6583   ;;
   6584   *)
   6585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6586 for as_dir in $PATH
   6587 do
   6588   IFS=$as_save_IFS
   6589   test -z "$as_dir" && as_dir=.
   6590   for ac_exec_ext in '' $ac_executable_extensions; do
   6591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6592     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
   6593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6594     break 2
   6595   fi
   6596 done
   6597 done
   6598 IFS=$as_save_IFS
   6599 
   6600   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
   6601   ;;
   6602 esac
   6603 fi
   6604 NEATO=$ac_cv_path_NEATO
   6605 if test -n "$NEATO"; then
   6606   { echo "$as_me:$LINENO: result: $NEATO" >&5
   6607 echo "${ECHO_T}$NEATO" >&6; }
   6608 else
   6609   { echo "$as_me:$LINENO: result: no" >&5
   6610 echo "${ECHO_T}no" >&6; }
   6611 fi
   6612 
   6613 
   6614 if test "$NEATO" != "echo neato" ; then
   6615 
   6616 cat >>confdefs.h <<\_ACEOF
   6617 #define HAVE_NEATO 1
   6618 _ACEOF
   6619 
   6620     if test "$llvm_cv_os_type" = "MingW" ; then
   6621     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6622   fi
   6623 
   6624 cat >>confdefs.h <<_ACEOF
   6625 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
   6626 _ACEOF
   6627 
   6628 fi
   6629 # Extract the first word of "twopi", so it can be a program name with args.
   6630 set dummy twopi; ac_word=$2
   6631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6633 if test "${ac_cv_path_TWOPI+set}" = set; then
   6634   echo $ECHO_N "(cached) $ECHO_C" >&6
   6635 else
   6636   case $TWOPI in
   6637   [\\/]* | ?:[\\/]*)
   6638   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
   6639   ;;
   6640   *)
   6641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6642 for as_dir in $PATH
   6643 do
   6644   IFS=$as_save_IFS
   6645   test -z "$as_dir" && as_dir=.
   6646   for ac_exec_ext in '' $ac_executable_extensions; do
   6647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6648     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
   6649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6650     break 2
   6651   fi
   6652 done
   6653 done
   6654 IFS=$as_save_IFS
   6655 
   6656   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
   6657   ;;
   6658 esac
   6659 fi
   6660 TWOPI=$ac_cv_path_TWOPI
   6661 if test -n "$TWOPI"; then
   6662   { echo "$as_me:$LINENO: result: $TWOPI" >&5
   6663 echo "${ECHO_T}$TWOPI" >&6; }
   6664 else
   6665   { echo "$as_me:$LINENO: result: no" >&5
   6666 echo "${ECHO_T}no" >&6; }
   6667 fi
   6668 
   6669 
   6670 if test "$TWOPI" != "echo twopi" ; then
   6671 
   6672 cat >>confdefs.h <<\_ACEOF
   6673 #define HAVE_TWOPI 1
   6674 _ACEOF
   6675 
   6676     if test "$llvm_cv_os_type" = "MingW" ; then
   6677     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6678   fi
   6679 
   6680 cat >>confdefs.h <<_ACEOF
   6681 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
   6682 _ACEOF
   6683 
   6684 fi
   6685 # Extract the first word of "circo", so it can be a program name with args.
   6686 set dummy circo; ac_word=$2
   6687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6689 if test "${ac_cv_path_CIRCO+set}" = set; then
   6690   echo $ECHO_N "(cached) $ECHO_C" >&6
   6691 else
   6692   case $CIRCO in
   6693   [\\/]* | ?:[\\/]*)
   6694   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
   6695   ;;
   6696   *)
   6697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6698 for as_dir in $PATH
   6699 do
   6700   IFS=$as_save_IFS
   6701   test -z "$as_dir" && as_dir=.
   6702   for ac_exec_ext in '' $ac_executable_extensions; do
   6703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6704     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
   6705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6706     break 2
   6707   fi
   6708 done
   6709 done
   6710 IFS=$as_save_IFS
   6711 
   6712   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
   6713   ;;
   6714 esac
   6715 fi
   6716 CIRCO=$ac_cv_path_CIRCO
   6717 if test -n "$CIRCO"; then
   6718   { echo "$as_me:$LINENO: result: $CIRCO" >&5
   6719 echo "${ECHO_T}$CIRCO" >&6; }
   6720 else
   6721   { echo "$as_me:$LINENO: result: no" >&5
   6722 echo "${ECHO_T}no" >&6; }
   6723 fi
   6724 
   6725 
   6726 if test "$CIRCO" != "echo circo" ; then
   6727 
   6728 cat >>confdefs.h <<\_ACEOF
   6729 #define HAVE_CIRCO 1
   6730 _ACEOF
   6731 
   6732     if test "$llvm_cv_os_type" = "MingW" ; then
   6733     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6734   fi
   6735 
   6736 cat >>confdefs.h <<_ACEOF
   6737 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
   6738 _ACEOF
   6739 
   6740 fi
   6741 for ac_prog in gv gsview32
   6742 do
   6743   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6744 set dummy $ac_prog; ac_word=$2
   6745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6747 if test "${ac_cv_path_GV+set}" = set; then
   6748   echo $ECHO_N "(cached) $ECHO_C" >&6
   6749 else
   6750   case $GV in
   6751   [\\/]* | ?:[\\/]*)
   6752   ac_cv_path_GV="$GV" # Let the user override the test with a path.
   6753   ;;
   6754   *)
   6755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6756 for as_dir in $PATH
   6757 do
   6758   IFS=$as_save_IFS
   6759   test -z "$as_dir" && as_dir=.
   6760   for ac_exec_ext in '' $ac_executable_extensions; do
   6761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6762     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
   6763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6764     break 2
   6765   fi
   6766 done
   6767 done
   6768 IFS=$as_save_IFS
   6769 
   6770   ;;
   6771 esac
   6772 fi
   6773 GV=$ac_cv_path_GV
   6774 if test -n "$GV"; then
   6775   { echo "$as_me:$LINENO: result: $GV" >&5
   6776 echo "${ECHO_T}$GV" >&6; }
   6777 else
   6778   { echo "$as_me:$LINENO: result: no" >&5
   6779 echo "${ECHO_T}no" >&6; }
   6780 fi
   6781 
   6782 
   6783   test -n "$GV" && break
   6784 done
   6785 test -n "$GV" || GV="echo gv"
   6786 
   6787 if test "$GV" != "echo gv" ; then
   6788 
   6789 cat >>confdefs.h <<\_ACEOF
   6790 #define HAVE_GV 1
   6791 _ACEOF
   6792 
   6793     if test "$llvm_cv_os_type" = "MingW" ; then
   6794     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6795   fi
   6796 
   6797 cat >>confdefs.h <<_ACEOF
   6798 #define LLVM_PATH_GV "$GV${EXEEXT}"
   6799 _ACEOF
   6800 
   6801 fi
   6802 # Extract the first word of "dotty", so it can be a program name with args.
   6803 set dummy dotty; ac_word=$2
   6804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6806 if test "${ac_cv_path_DOTTY+set}" = set; then
   6807   echo $ECHO_N "(cached) $ECHO_C" >&6
   6808 else
   6809   case $DOTTY in
   6810   [\\/]* | ?:[\\/]*)
   6811   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
   6812   ;;
   6813   *)
   6814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6815 for as_dir in $PATH
   6816 do
   6817   IFS=$as_save_IFS
   6818   test -z "$as_dir" && as_dir=.
   6819   for ac_exec_ext in '' $ac_executable_extensions; do
   6820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6821     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
   6822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6823     break 2
   6824   fi
   6825 done
   6826 done
   6827 IFS=$as_save_IFS
   6828 
   6829   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
   6830   ;;
   6831 esac
   6832 fi
   6833 DOTTY=$ac_cv_path_DOTTY
   6834 if test -n "$DOTTY"; then
   6835   { echo "$as_me:$LINENO: result: $DOTTY" >&5
   6836 echo "${ECHO_T}$DOTTY" >&6; }
   6837 else
   6838   { echo "$as_me:$LINENO: result: no" >&5
   6839 echo "${ECHO_T}no" >&6; }
   6840 fi
   6841 
   6842 
   6843 if test "$DOTTY" != "echo dotty" ; then
   6844 
   6845 cat >>confdefs.h <<\_ACEOF
   6846 #define HAVE_DOTTY 1
   6847 _ACEOF
   6848 
   6849     if test "$llvm_cv_os_type" = "MingW" ; then
   6850     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6851   fi
   6852 
   6853 cat >>confdefs.h <<_ACEOF
   6854 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
   6855 _ACEOF
   6856 
   6857 fi
   6858 # Extract the first word of "xdot.py", so it can be a program name with args.
   6859 set dummy xdot.py; ac_word=$2
   6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6862 if test "${ac_cv_path_XDOT_PY+set}" = set; then
   6863   echo $ECHO_N "(cached) $ECHO_C" >&6
   6864 else
   6865   case $XDOT_PY in
   6866   [\\/]* | ?:[\\/]*)
   6867   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
   6868   ;;
   6869   *)
   6870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6871 for as_dir in $PATH
   6872 do
   6873   IFS=$as_save_IFS
   6874   test -z "$as_dir" && as_dir=.
   6875   for ac_exec_ext in '' $ac_executable_extensions; do
   6876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6877     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
   6878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6879     break 2
   6880   fi
   6881 done
   6882 done
   6883 IFS=$as_save_IFS
   6884 
   6885   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
   6886   ;;
   6887 esac
   6888 fi
   6889 XDOT_PY=$ac_cv_path_XDOT_PY
   6890 if test -n "$XDOT_PY"; then
   6891   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
   6892 echo "${ECHO_T}$XDOT_PY" >&6; }
   6893 else
   6894   { echo "$as_me:$LINENO: result: no" >&5
   6895 echo "${ECHO_T}no" >&6; }
   6896 fi
   6897 
   6898 
   6899 if test "$XDOT_PY" != "echo xdot.py" ; then
   6900 
   6901 cat >>confdefs.h <<\_ACEOF
   6902 #define HAVE_XDOT_PY 1
   6903 _ACEOF
   6904 
   6905     if test "$llvm_cv_os_type" = "MingW" ; then
   6906     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6907   fi
   6908 
   6909 cat >>confdefs.h <<_ACEOF
   6910 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
   6911 _ACEOF
   6912 
   6913 fi
   6914 
   6915 
   6916 # Extract the first word of "perl", so it can be a program name with args.
   6917 set dummy perl; ac_word=$2
   6918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6920 if test "${ac_cv_path_PERL+set}" = set; then
   6921   echo $ECHO_N "(cached) $ECHO_C" >&6
   6922 else
   6923   case $PERL in
   6924   [\\/]* | ?:[\\/]*)
   6925   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
   6926   ;;
   6927   *)
   6928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6929 for as_dir in $PATH
   6930 do
   6931   IFS=$as_save_IFS
   6932   test -z "$as_dir" && as_dir=.
   6933   for ac_exec_ext in '' $ac_executable_extensions; do
   6934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6935     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
   6936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6937     break 2
   6938   fi
   6939 done
   6940 done
   6941 IFS=$as_save_IFS
   6942 
   6943   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
   6944   ;;
   6945 esac
   6946 fi
   6947 PERL=$ac_cv_path_PERL
   6948 if test -n "$PERL"; then
   6949   { echo "$as_me:$LINENO: result: $PERL" >&5
   6950 echo "${ECHO_T}$PERL" >&6; }
   6951 else
   6952   { echo "$as_me:$LINENO: result: no" >&5
   6953 echo "${ECHO_T}no" >&6; }
   6954 fi
   6955 
   6956 
   6957 if test "$PERL" != "none"; then
   6958   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
   6959 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
   6960   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
   6961     { echo "$as_me:$LINENO: result: yes" >&5
   6962 echo "${ECHO_T}yes" >&6; }
   6963   else
   6964     PERL=none
   6965     { echo "$as_me:$LINENO: result: not found" >&5
   6966 echo "${ECHO_T}not found" >&6; }
   6967   fi
   6968 fi
   6969 
   6970 
   6971 if test x"$PERL" = xnone; then
   6972    HAVE_PERL=0
   6973 
   6974    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
   6975 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
   6976    { (exit 1); exit 1; }; }
   6977 else
   6978    HAVE_PERL=1
   6979 
   6980 fi
   6981 
   6982 # Find a good install program.  We prefer a C program (faster),
   6983 # so one script is as good as another.  But avoid the broken or
   6984 # incompatible versions:
   6985 # SysV /etc/install, /usr/sbin/install
   6986 # SunOS /usr/etc/install
   6987 # IRIX /sbin/install
   6988 # AIX /bin/install
   6989 # AmigaOS /C/install, which installs bootblocks on floppy discs
   6990 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   6991 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   6992 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   6993 # OS/2's system install, which has a completely different semantic
   6994 # ./install, which can be erroneously created by make from ./install.sh.
   6995 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   6996 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
   6997 if test -z "$INSTALL"; then
   6998 if test "${ac_cv_path_install+set}" = set; then
   6999   echo $ECHO_N "(cached) $ECHO_C" >&6
   7000 else
   7001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7002 for as_dir in $PATH
   7003 do
   7004   IFS=$as_save_IFS
   7005   test -z "$as_dir" && as_dir=.
   7006   # Account for people who put trailing slashes in PATH elements.
   7007 case $as_dir/ in
   7008   ./ | .// | /cC/* | \
   7009   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   7010   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
   7011   /usr/ucb/* ) ;;
   7012   *)
   7013     # OSF1 and SCO ODT 3.0 have their own names for install.
   7014     # Don't use installbsd from OSF since it installs stuff as root
   7015     # by default.
   7016     for ac_prog in ginstall scoinst install; do
   7017       for ac_exec_ext in '' $ac_executable_extensions; do
   7018 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
   7019 	  if test $ac_prog = install &&
   7020 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   7021 	    # AIX install.  It has an incompatible calling convention.
   7022 	    :
   7023 	  elif test $ac_prog = install &&
   7024 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   7025 	    # program-specific install script used by HP pwplus--don't use.
   7026 	    :
   7027 	  else
   7028 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   7029 	    break 3
   7030 	  fi
   7031 	fi
   7032       done
   7033     done
   7034     ;;
   7035 esac
   7036 done
   7037 IFS=$as_save_IFS
   7038 
   7039 
   7040 fi
   7041   if test "${ac_cv_path_install+set}" = set; then
   7042     INSTALL=$ac_cv_path_install
   7043   else
   7044     # As a last resort, use the slow shell script.  Don't cache a
   7045     # value for INSTALL within a source directory, because that will
   7046     # break other packages using the cache if that directory is
   7047     # removed, or if the value is a relative name.
   7048     INSTALL=$ac_install_sh
   7049   fi
   7050 fi
   7051 { echo "$as_me:$LINENO: result: $INSTALL" >&5
   7052 echo "${ECHO_T}$INSTALL" >&6; }
   7053 
   7054 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   7055 # It thinks the first close brace ends the variable substitution.
   7056 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   7057 
   7058 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   7059 
   7060 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   7061 
   7062 case "$INSTALL" in
   7063  [\\/$]* | ?:[\\/]* ) ;;
   7064  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
   7065 esac
   7066 
   7067 # Extract the first word of "bzip2", so it can be a program name with args.
   7068 set dummy bzip2; ac_word=$2
   7069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7071 if test "${ac_cv_path_BZIP2+set}" = set; then
   7072   echo $ECHO_N "(cached) $ECHO_C" >&6
   7073 else
   7074   case $BZIP2 in
   7075   [\\/]* | ?:[\\/]*)
   7076   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
   7077   ;;
   7078   *)
   7079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7080 for as_dir in $PATH
   7081 do
   7082   IFS=$as_save_IFS
   7083   test -z "$as_dir" && as_dir=.
   7084   for ac_exec_ext in '' $ac_executable_extensions; do
   7085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7086     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
   7087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7088     break 2
   7089   fi
   7090 done
   7091 done
   7092 IFS=$as_save_IFS
   7093 
   7094   ;;
   7095 esac
   7096 fi
   7097 BZIP2=$ac_cv_path_BZIP2
   7098 if test -n "$BZIP2"; then
   7099   { echo "$as_me:$LINENO: result: $BZIP2" >&5
   7100 echo "${ECHO_T}$BZIP2" >&6; }
   7101 else
   7102   { echo "$as_me:$LINENO: result: no" >&5
   7103 echo "${ECHO_T}no" >&6; }
   7104 fi
   7105 
   7106 
   7107 # Extract the first word of "cat", so it can be a program name with args.
   7108 set dummy cat; ac_word=$2
   7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7111 if test "${ac_cv_path_CAT+set}" = set; then
   7112   echo $ECHO_N "(cached) $ECHO_C" >&6
   7113 else
   7114   case $CAT in
   7115   [\\/]* | ?:[\\/]*)
   7116   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
   7117   ;;
   7118   *)
   7119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7120 for as_dir in $PATH
   7121 do
   7122   IFS=$as_save_IFS
   7123   test -z "$as_dir" && as_dir=.
   7124   for ac_exec_ext in '' $ac_executable_extensions; do
   7125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7126     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
   7127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7128     break 2
   7129   fi
   7130 done
   7131 done
   7132 IFS=$as_save_IFS
   7133 
   7134   ;;
   7135 esac
   7136 fi
   7137 CAT=$ac_cv_path_CAT
   7138 if test -n "$CAT"; then
   7139   { echo "$as_me:$LINENO: result: $CAT" >&5
   7140 echo "${ECHO_T}$CAT" >&6; }
   7141 else
   7142   { echo "$as_me:$LINENO: result: no" >&5
   7143 echo "${ECHO_T}no" >&6; }
   7144 fi
   7145 
   7146 
   7147 # Extract the first word of "doxygen", so it can be a program name with args.
   7148 set dummy doxygen; ac_word=$2
   7149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7151 if test "${ac_cv_path_DOXYGEN+set}" = set; then
   7152   echo $ECHO_N "(cached) $ECHO_C" >&6
   7153 else
   7154   case $DOXYGEN in
   7155   [\\/]* | ?:[\\/]*)
   7156   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
   7157   ;;
   7158   *)
   7159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7160 for as_dir in $PATH
   7161 do
   7162   IFS=$as_save_IFS
   7163   test -z "$as_dir" && as_dir=.
   7164   for ac_exec_ext in '' $ac_executable_extensions; do
   7165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7166     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   7167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7168     break 2
   7169   fi
   7170 done
   7171 done
   7172 IFS=$as_save_IFS
   7173 
   7174   ;;
   7175 esac
   7176 fi
   7177 DOXYGEN=$ac_cv_path_DOXYGEN
   7178 if test -n "$DOXYGEN"; then
   7179   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
   7180 echo "${ECHO_T}$DOXYGEN" >&6; }
   7181 else
   7182   { echo "$as_me:$LINENO: result: no" >&5
   7183 echo "${ECHO_T}no" >&6; }
   7184 fi
   7185 
   7186 
   7187 # Extract the first word of "groff", so it can be a program name with args.
   7188 set dummy groff; ac_word=$2
   7189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7191 if test "${ac_cv_path_GROFF+set}" = set; then
   7192   echo $ECHO_N "(cached) $ECHO_C" >&6
   7193 else
   7194   case $GROFF in
   7195   [\\/]* | ?:[\\/]*)
   7196   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
   7197   ;;
   7198   *)
   7199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7200 for as_dir in $PATH
   7201 do
   7202   IFS=$as_save_IFS
   7203   test -z "$as_dir" && as_dir=.
   7204   for ac_exec_ext in '' $ac_executable_extensions; do
   7205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7206     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
   7207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7208     break 2
   7209   fi
   7210 done
   7211 done
   7212 IFS=$as_save_IFS
   7213 
   7214   ;;
   7215 esac
   7216 fi
   7217 GROFF=$ac_cv_path_GROFF
   7218 if test -n "$GROFF"; then
   7219   { echo "$as_me:$LINENO: result: $GROFF" >&5
   7220 echo "${ECHO_T}$GROFF" >&6; }
   7221 else
   7222   { echo "$as_me:$LINENO: result: no" >&5
   7223 echo "${ECHO_T}no" >&6; }
   7224 fi
   7225 
   7226 
   7227 # Extract the first word of "gzip", so it can be a program name with args.
   7228 set dummy gzip; ac_word=$2
   7229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7231 if test "${ac_cv_path_GZIPBIN+set}" = set; then
   7232   echo $ECHO_N "(cached) $ECHO_C" >&6
   7233 else
   7234   case $GZIPBIN in
   7235   [\\/]* | ?:[\\/]*)
   7236   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
   7237   ;;
   7238   *)
   7239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7240 for as_dir in $PATH
   7241 do
   7242   IFS=$as_save_IFS
   7243   test -z "$as_dir" && as_dir=.
   7244   for ac_exec_ext in '' $ac_executable_extensions; do
   7245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7246     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
   7247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7248     break 2
   7249   fi
   7250 done
   7251 done
   7252 IFS=$as_save_IFS
   7253 
   7254   ;;
   7255 esac
   7256 fi
   7257 GZIPBIN=$ac_cv_path_GZIPBIN
   7258 if test -n "$GZIPBIN"; then
   7259   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
   7260 echo "${ECHO_T}$GZIPBIN" >&6; }
   7261 else
   7262   { echo "$as_me:$LINENO: result: no" >&5
   7263 echo "${ECHO_T}no" >&6; }
   7264 fi
   7265 
   7266 
   7267 # Extract the first word of "pod2html", so it can be a program name with args.
   7268 set dummy pod2html; ac_word=$2
   7269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7271 if test "${ac_cv_path_POD2HTML+set}" = set; then
   7272   echo $ECHO_N "(cached) $ECHO_C" >&6
   7273 else
   7274   case $POD2HTML in
   7275   [\\/]* | ?:[\\/]*)
   7276   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
   7277   ;;
   7278   *)
   7279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7280 for as_dir in $PATH
   7281 do
   7282   IFS=$as_save_IFS
   7283   test -z "$as_dir" && as_dir=.
   7284   for ac_exec_ext in '' $ac_executable_extensions; do
   7285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7286     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
   7287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7288     break 2
   7289   fi
   7290 done
   7291 done
   7292 IFS=$as_save_IFS
   7293 
   7294   ;;
   7295 esac
   7296 fi
   7297 POD2HTML=$ac_cv_path_POD2HTML
   7298 if test -n "$POD2HTML"; then
   7299   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
   7300 echo "${ECHO_T}$POD2HTML" >&6; }
   7301 else
   7302   { echo "$as_me:$LINENO: result: no" >&5
   7303 echo "${ECHO_T}no" >&6; }
   7304 fi
   7305 
   7306 
   7307 # Extract the first word of "pod2man", so it can be a program name with args.
   7308 set dummy pod2man; ac_word=$2
   7309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7311 if test "${ac_cv_path_POD2MAN+set}" = set; then
   7312   echo $ECHO_N "(cached) $ECHO_C" >&6
   7313 else
   7314   case $POD2MAN in
   7315   [\\/]* | ?:[\\/]*)
   7316   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
   7317   ;;
   7318   *)
   7319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7320 for as_dir in $PATH
   7321 do
   7322   IFS=$as_save_IFS
   7323   test -z "$as_dir" && as_dir=.
   7324   for ac_exec_ext in '' $ac_executable_extensions; do
   7325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7326     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
   7327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7328     break 2
   7329   fi
   7330 done
   7331 done
   7332 IFS=$as_save_IFS
   7333 
   7334   ;;
   7335 esac
   7336 fi
   7337 POD2MAN=$ac_cv_path_POD2MAN
   7338 if test -n "$POD2MAN"; then
   7339   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
   7340 echo "${ECHO_T}$POD2MAN" >&6; }
   7341 else
   7342   { echo "$as_me:$LINENO: result: no" >&5
   7343 echo "${ECHO_T}no" >&6; }
   7344 fi
   7345 
   7346 
   7347 # Extract the first word of "pdfroff", so it can be a program name with args.
   7348 set dummy pdfroff; ac_word=$2
   7349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7351 if test "${ac_cv_path_PDFROFF+set}" = set; then
   7352   echo $ECHO_N "(cached) $ECHO_C" >&6
   7353 else
   7354   case $PDFROFF in
   7355   [\\/]* | ?:[\\/]*)
   7356   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
   7357   ;;
   7358   *)
   7359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7360 for as_dir in $PATH
   7361 do
   7362   IFS=$as_save_IFS
   7363   test -z "$as_dir" && as_dir=.
   7364   for ac_exec_ext in '' $ac_executable_extensions; do
   7365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7366     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
   7367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7368     break 2
   7369   fi
   7370 done
   7371 done
   7372 IFS=$as_save_IFS
   7373 
   7374   ;;
   7375 esac
   7376 fi
   7377 PDFROFF=$ac_cv_path_PDFROFF
   7378 if test -n "$PDFROFF"; then
   7379   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
   7380 echo "${ECHO_T}$PDFROFF" >&6; }
   7381 else
   7382   { echo "$as_me:$LINENO: result: no" >&5
   7383 echo "${ECHO_T}no" >&6; }
   7384 fi
   7385 
   7386 
   7387 # Extract the first word of "runtest", so it can be a program name with args.
   7388 set dummy runtest; ac_word=$2
   7389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7391 if test "${ac_cv_path_RUNTEST+set}" = set; then
   7392   echo $ECHO_N "(cached) $ECHO_C" >&6
   7393 else
   7394   case $RUNTEST in
   7395   [\\/]* | ?:[\\/]*)
   7396   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
   7397   ;;
   7398   *)
   7399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7400 for as_dir in $PATH
   7401 do
   7402   IFS=$as_save_IFS
   7403   test -z "$as_dir" && as_dir=.
   7404   for ac_exec_ext in '' $ac_executable_extensions; do
   7405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7406     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
   7407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7408     break 2
   7409   fi
   7410 done
   7411 done
   7412 IFS=$as_save_IFS
   7413 
   7414   ;;
   7415 esac
   7416 fi
   7417 RUNTEST=$ac_cv_path_RUNTEST
   7418 if test -n "$RUNTEST"; then
   7419   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
   7420 echo "${ECHO_T}$RUNTEST" >&6; }
   7421 else
   7422   { echo "$as_me:$LINENO: result: no" >&5
   7423 echo "${ECHO_T}no" >&6; }
   7424 fi
   7425 
   7426 
   7427 
   7428 no_itcl=true
   7429 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
   7430 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
   7431 
   7432 # Check whether --with-tclinclude was given.
   7433 if test "${with_tclinclude+set}" = set; then
   7434   withval=$with_tclinclude; with_tclinclude=${withval}
   7435 else
   7436   with_tclinclude=''
   7437 fi
   7438 
   7439 if test "${ac_cv_path_tclsh+set}" = set; then
   7440   echo $ECHO_N "(cached) $ECHO_C" >&6
   7441 else
   7442 
   7443 if test x"${with_tclinclude}" != x ; then
   7444   if test -f ${with_tclinclude}/tclsh ; then
   7445     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
   7446   elif test -f ${with_tclinclude}/src/tclsh ; then
   7447     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
   7448   else
   7449     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
   7450 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
   7451    { (exit 1); exit 1; }; }
   7452   fi
   7453 fi
   7454 fi
   7455 
   7456 
   7457 if test x"${ac_cv_path_tclsh}" = x ; then
   7458   { echo "$as_me:$LINENO: result: none" >&5
   7459 echo "${ECHO_T}none" >&6; }
   7460   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
   7461 do
   7462   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7463 set dummy $ac_prog; ac_word=$2
   7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7466 if test "${ac_cv_path_TCLSH+set}" = set; then
   7467   echo $ECHO_N "(cached) $ECHO_C" >&6
   7468 else
   7469   case $TCLSH in
   7470   [\\/]* | ?:[\\/]*)
   7471   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
   7472   ;;
   7473   *)
   7474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7475 for as_dir in $PATH
   7476 do
   7477   IFS=$as_save_IFS
   7478   test -z "$as_dir" && as_dir=.
   7479   for ac_exec_ext in '' $ac_executable_extensions; do
   7480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7481     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
   7482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7483     break 2
   7484   fi
   7485 done
   7486 done
   7487 IFS=$as_save_IFS
   7488 
   7489   ;;
   7490 esac
   7491 fi
   7492 TCLSH=$ac_cv_path_TCLSH
   7493 if test -n "$TCLSH"; then
   7494   { echo "$as_me:$LINENO: result: $TCLSH" >&5
   7495 echo "${ECHO_T}$TCLSH" >&6; }
   7496 else
   7497   { echo "$as_me:$LINENO: result: no" >&5
   7498 echo "${ECHO_T}no" >&6; }
   7499 fi
   7500 
   7501 
   7502   test -n "$TCLSH" && break
   7503 done
   7504 
   7505   if test x"${TCLSH}" = x ; then
   7506     ac_cv_path_tclsh='';
   7507   else
   7508     ac_cv_path_tclsh="${TCLSH}";
   7509   fi
   7510 else
   7511   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
   7512 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
   7513   TCLSH="${ac_cv_path_tclsh}"
   7514 
   7515 fi
   7516 
   7517 # Extract the first word of "zip", so it can be a program name with args.
   7518 set dummy zip; ac_word=$2
   7519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7521 if test "${ac_cv_path_ZIP+set}" = set; then
   7522   echo $ECHO_N "(cached) $ECHO_C" >&6
   7523 else
   7524   case $ZIP in
   7525   [\\/]* | ?:[\\/]*)
   7526   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
   7527   ;;
   7528   *)
   7529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7530 for as_dir in $PATH
   7531 do
   7532   IFS=$as_save_IFS
   7533   test -z "$as_dir" && as_dir=.
   7534   for ac_exec_ext in '' $ac_executable_extensions; do
   7535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7536     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
   7537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7538     break 2
   7539   fi
   7540 done
   7541 done
   7542 IFS=$as_save_IFS
   7543 
   7544   ;;
   7545 esac
   7546 fi
   7547 ZIP=$ac_cv_path_ZIP
   7548 if test -n "$ZIP"; then
   7549   { echo "$as_me:$LINENO: result: $ZIP" >&5
   7550 echo "${ECHO_T}$ZIP" >&6; }
   7551 else
   7552   { echo "$as_me:$LINENO: result: no" >&5
   7553 echo "${ECHO_T}no" >&6; }
   7554 fi
   7555 
   7556 
   7557 for ac_prog in ocamlc
   7558 do
   7559   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7560 set dummy $ac_prog; ac_word=$2
   7561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7563 if test "${ac_cv_path_OCAMLC+set}" = set; then
   7564   echo $ECHO_N "(cached) $ECHO_C" >&6
   7565 else
   7566   case $OCAMLC in
   7567   [\\/]* | ?:[\\/]*)
   7568   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
   7569   ;;
   7570   *)
   7571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7572 for as_dir in $PATH
   7573 do
   7574   IFS=$as_save_IFS
   7575   test -z "$as_dir" && as_dir=.
   7576   for ac_exec_ext in '' $ac_executable_extensions; do
   7577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7578     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
   7579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7580     break 2
   7581   fi
   7582 done
   7583 done
   7584 IFS=$as_save_IFS
   7585 
   7586   ;;
   7587 esac
   7588 fi
   7589 OCAMLC=$ac_cv_path_OCAMLC
   7590 if test -n "$OCAMLC"; then
   7591   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
   7592 echo "${ECHO_T}$OCAMLC" >&6; }
   7593 else
   7594   { echo "$as_me:$LINENO: result: no" >&5
   7595 echo "${ECHO_T}no" >&6; }
   7596 fi
   7597 
   7598 
   7599   test -n "$OCAMLC" && break
   7600 done
   7601 
   7602 for ac_prog in ocamlopt
   7603 do
   7604   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7605 set dummy $ac_prog; ac_word=$2
   7606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7608 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
   7609   echo $ECHO_N "(cached) $ECHO_C" >&6
   7610 else
   7611   case $OCAMLOPT in
   7612   [\\/]* | ?:[\\/]*)
   7613   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
   7614   ;;
   7615   *)
   7616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7617 for as_dir in $PATH
   7618 do
   7619   IFS=$as_save_IFS
   7620   test -z "$as_dir" && as_dir=.
   7621   for ac_exec_ext in '' $ac_executable_extensions; do
   7622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7623     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
   7624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7625     break 2
   7626   fi
   7627 done
   7628 done
   7629 IFS=$as_save_IFS
   7630 
   7631   ;;
   7632 esac
   7633 fi
   7634 OCAMLOPT=$ac_cv_path_OCAMLOPT
   7635 if test -n "$OCAMLOPT"; then
   7636   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
   7637 echo "${ECHO_T}$OCAMLOPT" >&6; }
   7638 else
   7639   { echo "$as_me:$LINENO: result: no" >&5
   7640 echo "${ECHO_T}no" >&6; }
   7641 fi
   7642 
   7643 
   7644   test -n "$OCAMLOPT" && break
   7645 done
   7646 
   7647 for ac_prog in ocamldep
   7648 do
   7649   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7650 set dummy $ac_prog; ac_word=$2
   7651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7653 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
   7654   echo $ECHO_N "(cached) $ECHO_C" >&6
   7655 else
   7656   case $OCAMLDEP in
   7657   [\\/]* | ?:[\\/]*)
   7658   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
   7659   ;;
   7660   *)
   7661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7662 for as_dir in $PATH
   7663 do
   7664   IFS=$as_save_IFS
   7665   test -z "$as_dir" && as_dir=.
   7666   for ac_exec_ext in '' $ac_executable_extensions; do
   7667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7668     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
   7669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7670     break 2
   7671   fi
   7672 done
   7673 done
   7674 IFS=$as_save_IFS
   7675 
   7676   ;;
   7677 esac
   7678 fi
   7679 OCAMLDEP=$ac_cv_path_OCAMLDEP
   7680 if test -n "$OCAMLDEP"; then
   7681   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
   7682 echo "${ECHO_T}$OCAMLDEP" >&6; }
   7683 else
   7684   { echo "$as_me:$LINENO: result: no" >&5
   7685 echo "${ECHO_T}no" >&6; }
   7686 fi
   7687 
   7688 
   7689   test -n "$OCAMLDEP" && break
   7690 done
   7691 
   7692 for ac_prog in ocamldoc
   7693 do
   7694   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7695 set dummy $ac_prog; ac_word=$2
   7696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7698 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
   7699   echo $ECHO_N "(cached) $ECHO_C" >&6
   7700 else
   7701   case $OCAMLDOC in
   7702   [\\/]* | ?:[\\/]*)
   7703   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
   7704   ;;
   7705   *)
   7706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7707 for as_dir in $PATH
   7708 do
   7709   IFS=$as_save_IFS
   7710   test -z "$as_dir" && as_dir=.
   7711   for ac_exec_ext in '' $ac_executable_extensions; do
   7712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7713     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
   7714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7715     break 2
   7716   fi
   7717 done
   7718 done
   7719 IFS=$as_save_IFS
   7720 
   7721   ;;
   7722 esac
   7723 fi
   7724 OCAMLDOC=$ac_cv_path_OCAMLDOC
   7725 if test -n "$OCAMLDOC"; then
   7726   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
   7727 echo "${ECHO_T}$OCAMLDOC" >&6; }
   7728 else
   7729   { echo "$as_me:$LINENO: result: no" >&5
   7730 echo "${ECHO_T}no" >&6; }
   7731 fi
   7732 
   7733 
   7734   test -n "$OCAMLDOC" && break
   7735 done
   7736 
   7737 for ac_prog in gas as
   7738 do
   7739   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7740 set dummy $ac_prog; ac_word=$2
   7741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7743 if test "${ac_cv_path_GAS+set}" = set; then
   7744   echo $ECHO_N "(cached) $ECHO_C" >&6
   7745 else
   7746   case $GAS in
   7747   [\\/]* | ?:[\\/]*)
   7748   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
   7749   ;;
   7750   *)
   7751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7752 for as_dir in $PATH
   7753 do
   7754   IFS=$as_save_IFS
   7755   test -z "$as_dir" && as_dir=.
   7756   for ac_exec_ext in '' $ac_executable_extensions; do
   7757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7758     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
   7759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7760     break 2
   7761   fi
   7762 done
   7763 done
   7764 IFS=$as_save_IFS
   7765 
   7766   ;;
   7767 esac
   7768 fi
   7769 GAS=$ac_cv_path_GAS
   7770 if test -n "$GAS"; then
   7771   { echo "$as_me:$LINENO: result: $GAS" >&5
   7772 echo "${ECHO_T}$GAS" >&6; }
   7773 else
   7774   { echo "$as_me:$LINENO: result: no" >&5
   7775 echo "${ECHO_T}no" >&6; }
   7776 fi
   7777 
   7778 
   7779   test -n "$GAS" && break
   7780 done
   7781 
   7782 
   7783 { echo "$as_me:$LINENO: checking for linker version" >&5
   7784 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
   7785 if test "${llvm_cv_link_version+set}" = set; then
   7786   echo $ECHO_N "(cached) $ECHO_C" >&6
   7787 else
   7788 
   7789    version_string="$(ld -v 2>&1 | head -1)"
   7790 
   7791    # Check for ld64.
   7792    if (echo "$version_string" | grep -q "ld64"); then
   7793      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
   7794    else
   7795      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
   7796    fi
   7797 
   7798 fi
   7799 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
   7800 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
   7801 
   7802 cat >>confdefs.h <<_ACEOF
   7803 #define HOST_LINK_VERSION "$llvm_cv_link_version"
   7804 _ACEOF
   7805 
   7806 
   7807 
   7808 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
   7809 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
   7810 if test "${llvm_cv_link_use_r+set}" = set; then
   7811   echo $ECHO_N "(cached) $ECHO_C" >&6
   7812 else
   7813    ac_ext=c
   7814 ac_cpp='$CPP $CPPFLAGS'
   7815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7818 
   7819   oldcflags="$CFLAGS"
   7820   CFLAGS="$CFLAGS -Wl,-R."
   7821   cat >conftest.$ac_ext <<_ACEOF
   7822 /* confdefs.h.  */
   7823 _ACEOF
   7824 cat confdefs.h >>conftest.$ac_ext
   7825 cat >>conftest.$ac_ext <<_ACEOF
   7826 /* end confdefs.h.  */
   7827 
   7828 int
   7829 main ()
   7830 {
   7831 
   7832   ;
   7833   return 0;
   7834 }
   7835 _ACEOF
   7836 rm -f conftest.$ac_objext conftest$ac_exeext
   7837 if { (ac_try="$ac_link"
   7838 case "(($ac_try" in
   7839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7840   *) ac_try_echo=$ac_try;;
   7841 esac
   7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7843   (eval "$ac_link") 2>conftest.er1
   7844   ac_status=$?
   7845   grep -v '^ *+' conftest.er1 >conftest.err
   7846   rm -f conftest.er1
   7847   cat conftest.err >&5
   7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7849   (exit $ac_status); } &&
   7850 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   7851   { (case "(($ac_try" in
   7852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7853   *) ac_try_echo=$ac_try;;
   7854 esac
   7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7856   (eval "$ac_try") 2>&5
   7857   ac_status=$?
   7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7859   (exit $ac_status); }; } &&
   7860 	 { ac_try='test -s conftest$ac_exeext'
   7861   { (case "(($ac_try" in
   7862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7863   *) ac_try_echo=$ac_try;;
   7864 esac
   7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7866   (eval "$ac_try") 2>&5
   7867   ac_status=$?
   7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7869   (exit $ac_status); }; }; then
   7870   llvm_cv_link_use_r=yes
   7871 else
   7872   echo "$as_me: failed program was:" >&5
   7873 sed 's/^/| /' conftest.$ac_ext >&5
   7874 
   7875 	llvm_cv_link_use_r=no
   7876 fi
   7877 
   7878 rm -f core conftest.err conftest.$ac_objext \
   7879       conftest$ac_exeext conftest.$ac_ext
   7880   CFLAGS="$oldcflags"
   7881   ac_ext=c
   7882 ac_cpp='$CPP $CPPFLAGS'
   7883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7886 
   7887 
   7888 fi
   7889 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
   7890 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
   7891 if test "$llvm_cv_link_use_r" = yes ; then
   7892 
   7893 cat >>confdefs.h <<\_ACEOF
   7894 #define HAVE_LINK_R 1
   7895 _ACEOF
   7896 
   7897   fi
   7898 
   7899 
   7900 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
   7901 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
   7902 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
   7903   echo $ECHO_N "(cached) $ECHO_C" >&6
   7904 else
   7905    ac_ext=c
   7906 ac_cpp='$CPP $CPPFLAGS'
   7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7910 
   7911   oldcflags="$CFLAGS"
   7912   CFLAGS="$CFLAGS -Wl,-export-dynamic"
   7913   cat >conftest.$ac_ext <<_ACEOF
   7914 /* confdefs.h.  */
   7915 _ACEOF
   7916 cat confdefs.h >>conftest.$ac_ext
   7917 cat >>conftest.$ac_ext <<_ACEOF
   7918 /* end confdefs.h.  */
   7919 
   7920 int
   7921 main ()
   7922 {
   7923 
   7924   ;
   7925   return 0;
   7926 }
   7927 _ACEOF
   7928 rm -f conftest.$ac_objext conftest$ac_exeext
   7929 if { (ac_try="$ac_link"
   7930 case "(($ac_try" in
   7931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7932   *) ac_try_echo=$ac_try;;
   7933 esac
   7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7935   (eval "$ac_link") 2>conftest.er1
   7936   ac_status=$?
   7937   grep -v '^ *+' conftest.er1 >conftest.err
   7938   rm -f conftest.er1
   7939   cat conftest.err >&5
   7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7941   (exit $ac_status); } &&
   7942 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   7943   { (case "(($ac_try" in
   7944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7945   *) ac_try_echo=$ac_try;;
   7946 esac
   7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7948   (eval "$ac_try") 2>&5
   7949   ac_status=$?
   7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7951   (exit $ac_status); }; } &&
   7952 	 { ac_try='test -s conftest$ac_exeext'
   7953   { (case "(($ac_try" in
   7954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7955   *) ac_try_echo=$ac_try;;
   7956 esac
   7957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7958   (eval "$ac_try") 2>&5
   7959   ac_status=$?
   7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7961   (exit $ac_status); }; }; then
   7962   llvm_cv_link_use_export_dynamic=yes
   7963 else
   7964   echo "$as_me: failed program was:" >&5
   7965 sed 's/^/| /' conftest.$ac_ext >&5
   7966 
   7967 	llvm_cv_link_use_export_dynamic=no
   7968 fi
   7969 
   7970 rm -f core conftest.err conftest.$ac_objext \
   7971       conftest$ac_exeext conftest.$ac_ext
   7972   CFLAGS="$oldcflags"
   7973   ac_ext=c
   7974 ac_cpp='$CPP $CPPFLAGS'
   7975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7978 
   7979 
   7980 fi
   7981 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
   7982 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
   7983 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
   7984 
   7985 cat >>confdefs.h <<\_ACEOF
   7986 #define HAVE_LINK_EXPORT_DYNAMIC 1
   7987 _ACEOF
   7988 
   7989   fi
   7990 
   7991 
   7992 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
   7993 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
   7994 if test "${llvm_cv_link_use_version_script+set}" = set; then
   7995   echo $ECHO_N "(cached) $ECHO_C" >&6
   7996 else
   7997    ac_ext=c
   7998 ac_cpp='$CPP $CPPFLAGS'
   7999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8002 
   8003   oldcflags="$CFLAGS"
   8004 
   8005   # The following code is from the autoconf manual,
   8006   # "11.13: Limitations of Usual Tools".
   8007   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
   8008   # Use mktemp if possible; otherwise fall back on mkdir,
   8009   # with $RANDOM to make collisions less likely.
   8010   : ${TMPDIR=/tmp}
   8011   {
   8012     tmp=`
   8013       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
   8014     ` &&
   8015     test -n "$tmp" && test -d "$tmp"
   8016   } || {
   8017     tmp=$TMPDIR/foo$$-$RANDOM
   8018     (umask 077 && mkdir "$tmp")
   8019   } || exit $?
   8020 
   8021   echo "{" > "$tmp/export.map"
   8022   echo "  global: main;" >> "$tmp/export.map"
   8023   echo "  local: *;" >> "$tmp/export.map"
   8024   echo "};" >> "$tmp/export.map"
   8025 
   8026   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
   8027   cat >conftest.$ac_ext <<_ACEOF
   8028 /* confdefs.h.  */
   8029 _ACEOF
   8030 cat confdefs.h >>conftest.$ac_ext
   8031 cat >>conftest.$ac_ext <<_ACEOF
   8032 /* end confdefs.h.  */
   8033 
   8034 int
   8035 main ()
   8036 {
   8037 
   8038   ;
   8039   return 0;
   8040 }
   8041 _ACEOF
   8042 rm -f conftest.$ac_objext conftest$ac_exeext
   8043 if { (ac_try="$ac_link"
   8044 case "(($ac_try" in
   8045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8046   *) ac_try_echo=$ac_try;;
   8047 esac
   8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8049   (eval "$ac_link") 2>conftest.er1
   8050   ac_status=$?
   8051   grep -v '^ *+' conftest.er1 >conftest.err
   8052   rm -f conftest.er1
   8053   cat conftest.err >&5
   8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8055   (exit $ac_status); } &&
   8056 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8057   { (case "(($ac_try" in
   8058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8059   *) ac_try_echo=$ac_try;;
   8060 esac
   8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8062   (eval "$ac_try") 2>&5
   8063   ac_status=$?
   8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8065   (exit $ac_status); }; } &&
   8066 	 { ac_try='test -s conftest$ac_exeext'
   8067   { (case "(($ac_try" in
   8068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8069   *) ac_try_echo=$ac_try;;
   8070 esac
   8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8072   (eval "$ac_try") 2>&5
   8073   ac_status=$?
   8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8075   (exit $ac_status); }; }; then
   8076   llvm_cv_link_use_version_script=yes
   8077 else
   8078   echo "$as_me: failed program was:" >&5
   8079 sed 's/^/| /' conftest.$ac_ext >&5
   8080 
   8081 	llvm_cv_link_use_version_script=no
   8082 fi
   8083 
   8084 rm -f core conftest.err conftest.$ac_objext \
   8085       conftest$ac_exeext conftest.$ac_ext
   8086   rm "$tmp/export.map"
   8087   rmdir "$tmp"
   8088   CFLAGS="$oldcflags"
   8089   ac_ext=c
   8090 ac_cpp='$CPP $CPPFLAGS'
   8091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8094 
   8095 
   8096 fi
   8097 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
   8098 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
   8099 if test "$llvm_cv_link_use_version_script" = yes ; then
   8100   HAVE_LINK_VERSION_SCRIPT=1
   8101 
   8102   fi
   8103 
   8104 
   8105 
   8106 
   8107 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
   8108 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
   8109 if test "${ac_cv_c_const+set}" = set; then
   8110   echo $ECHO_N "(cached) $ECHO_C" >&6
   8111 else
   8112   cat >conftest.$ac_ext <<_ACEOF
   8113 /* confdefs.h.  */
   8114 _ACEOF
   8115 cat confdefs.h >>conftest.$ac_ext
   8116 cat >>conftest.$ac_ext <<_ACEOF
   8117 /* end confdefs.h.  */
   8118 
   8119 int
   8120 main ()
   8121 {
   8122 /* FIXME: Include the comments suggested by Paul. */
   8123 #ifndef __cplusplus
   8124   /* Ultrix mips cc rejects this.  */
   8125   typedef int charset[2];
   8126   const charset x;
   8127   /* SunOS 4.1.1 cc rejects this.  */
   8128   char const *const *ccp;
   8129   char **p;
   8130   /* NEC SVR4.0.2 mips cc rejects this.  */
   8131   struct point {int x, y;};
   8132   static struct point const zero = {0,0};
   8133   /* AIX XL C 1.02.0.0 rejects this.
   8134      It does not let you subtract one const X* pointer from another in
   8135      an arm of an if-expression whose if-part is not a constant
   8136      expression */
   8137   const char *g = "string";
   8138   ccp = &g + (g ? g-g : 0);
   8139   /* HPUX 7.0 cc rejects these. */
   8140   ++ccp;
   8141   p = (char**) ccp;
   8142   ccp = (char const *const *) p;
   8143   { /* SCO 3.2v4 cc rejects this.  */
   8144     char *t;
   8145     char const *s = 0 ? (char *) 0 : (char const *) 0;
   8146 
   8147     *t++ = 0;
   8148     if (s) return 0;
   8149   }
   8150   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   8151     int x[] = {25, 17};
   8152     const int *foo = &x[0];
   8153     ++foo;
   8154   }
   8155   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   8156     typedef const int *iptr;
   8157     iptr p = 0;
   8158     ++p;
   8159   }
   8160   { /* AIX XL C 1.02.0.0 rejects this saying
   8161        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   8162     struct s { int j; const int *ap[3]; };
   8163     struct s *b; b->j = 5;
   8164   }
   8165   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   8166     const int foo = 10;
   8167     if (!foo) return 0;
   8168   }
   8169   return !x[0] && !zero.x;
   8170 #endif
   8171 
   8172   ;
   8173   return 0;
   8174 }
   8175 _ACEOF
   8176 rm -f conftest.$ac_objext
   8177 if { (ac_try="$ac_compile"
   8178 case "(($ac_try" in
   8179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8180   *) ac_try_echo=$ac_try;;
   8181 esac
   8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8183   (eval "$ac_compile") 2>conftest.er1
   8184   ac_status=$?
   8185   grep -v '^ *+' conftest.er1 >conftest.err
   8186   rm -f conftest.er1
   8187   cat conftest.err >&5
   8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8189   (exit $ac_status); } &&
   8190 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8191   { (case "(($ac_try" in
   8192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8193   *) ac_try_echo=$ac_try;;
   8194 esac
   8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8196   (eval "$ac_try") 2>&5
   8197   ac_status=$?
   8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8199   (exit $ac_status); }; } &&
   8200 	 { ac_try='test -s conftest.$ac_objext'
   8201   { (case "(($ac_try" in
   8202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8203   *) ac_try_echo=$ac_try;;
   8204 esac
   8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8206   (eval "$ac_try") 2>&5
   8207   ac_status=$?
   8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8209   (exit $ac_status); }; }; then
   8210   ac_cv_c_const=yes
   8211 else
   8212   echo "$as_me: failed program was:" >&5
   8213 sed 's/^/| /' conftest.$ac_ext >&5
   8214 
   8215 	ac_cv_c_const=no
   8216 fi
   8217 
   8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8219 fi
   8220 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
   8221 echo "${ECHO_T}$ac_cv_c_const" >&6; }
   8222 if test $ac_cv_c_const = no; then
   8223 
   8224 cat >>confdefs.h <<\_ACEOF
   8225 #define const
   8226 _ACEOF
   8227 
   8228 fi
   8229 
   8230 
   8231 
   8232 
   8233 
   8234 
   8235 ac_header_dirent=no
   8236 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   8237   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   8238 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
   8239 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
   8240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8241   echo $ECHO_N "(cached) $ECHO_C" >&6
   8242 else
   8243   cat >conftest.$ac_ext <<_ACEOF
   8244 /* confdefs.h.  */
   8245 _ACEOF
   8246 cat confdefs.h >>conftest.$ac_ext
   8247 cat >>conftest.$ac_ext <<_ACEOF
   8248 /* end confdefs.h.  */
   8249 #include <sys/types.h>
   8250 #include <$ac_hdr>
   8251 
   8252 int
   8253 main ()
   8254 {
   8255 if ((DIR *) 0)
   8256 return 0;
   8257   ;
   8258   return 0;
   8259 }
   8260 _ACEOF
   8261 rm -f conftest.$ac_objext
   8262 if { (ac_try="$ac_compile"
   8263 case "(($ac_try" in
   8264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8265   *) ac_try_echo=$ac_try;;
   8266 esac
   8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8268   (eval "$ac_compile") 2>conftest.er1
   8269   ac_status=$?
   8270   grep -v '^ *+' conftest.er1 >conftest.err
   8271   rm -f conftest.er1
   8272   cat conftest.err >&5
   8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8274   (exit $ac_status); } &&
   8275 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8276   { (case "(($ac_try" in
   8277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8278   *) ac_try_echo=$ac_try;;
   8279 esac
   8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8281   (eval "$ac_try") 2>&5
   8282   ac_status=$?
   8283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8284   (exit $ac_status); }; } &&
   8285 	 { ac_try='test -s conftest.$ac_objext'
   8286   { (case "(($ac_try" in
   8287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8288   *) ac_try_echo=$ac_try;;
   8289 esac
   8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8291   (eval "$ac_try") 2>&5
   8292   ac_status=$?
   8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8294   (exit $ac_status); }; }; then
   8295   eval "$as_ac_Header=yes"
   8296 else
   8297   echo "$as_me: failed program was:" >&5
   8298 sed 's/^/| /' conftest.$ac_ext >&5
   8299 
   8300 	eval "$as_ac_Header=no"
   8301 fi
   8302 
   8303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8304 fi
   8305 ac_res=`eval echo '${'$as_ac_Header'}'`
   8306 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8307 echo "${ECHO_T}$ac_res" >&6; }
   8308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8309   cat >>confdefs.h <<_ACEOF
   8310 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
   8311 _ACEOF
   8312 
   8313 ac_header_dirent=$ac_hdr; break
   8314 fi
   8315 
   8316 done
   8317 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   8318 if test $ac_header_dirent = dirent.h; then
   8319   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   8320 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   8321 if test "${ac_cv_search_opendir+set}" = set; then
   8322   echo $ECHO_N "(cached) $ECHO_C" >&6
   8323 else
   8324   ac_func_search_save_LIBS=$LIBS
   8325 cat >conftest.$ac_ext <<_ACEOF
   8326 /* confdefs.h.  */
   8327 _ACEOF
   8328 cat confdefs.h >>conftest.$ac_ext
   8329 cat >>conftest.$ac_ext <<_ACEOF
   8330 /* end confdefs.h.  */
   8331 
   8332 /* Override any GCC internal prototype to avoid an error.
   8333    Use char because int might match the return type of a GCC
   8334    builtin and then its argument prototype would still apply.  */
   8335 #ifdef __cplusplus
   8336 extern "C"
   8337 #endif
   8338 char opendir ();
   8339 int
   8340 main ()
   8341 {
   8342 return opendir ();
   8343   ;
   8344   return 0;
   8345 }
   8346 _ACEOF
   8347 for ac_lib in '' dir; do
   8348   if test -z "$ac_lib"; then
   8349     ac_res="none required"
   8350   else
   8351     ac_res=-l$ac_lib
   8352     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8353   fi
   8354   rm -f conftest.$ac_objext conftest$ac_exeext
   8355 if { (ac_try="$ac_link"
   8356 case "(($ac_try" in
   8357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8358   *) ac_try_echo=$ac_try;;
   8359 esac
   8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8361   (eval "$ac_link") 2>conftest.er1
   8362   ac_status=$?
   8363   grep -v '^ *+' conftest.er1 >conftest.err
   8364   rm -f conftest.er1
   8365   cat conftest.err >&5
   8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8367   (exit $ac_status); } &&
   8368 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8369   { (case "(($ac_try" in
   8370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8371   *) ac_try_echo=$ac_try;;
   8372 esac
   8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8374   (eval "$ac_try") 2>&5
   8375   ac_status=$?
   8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8377   (exit $ac_status); }; } &&
   8378 	 { ac_try='test -s conftest$ac_exeext'
   8379   { (case "(($ac_try" in
   8380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8381   *) ac_try_echo=$ac_try;;
   8382 esac
   8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8384   (eval "$ac_try") 2>&5
   8385   ac_status=$?
   8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8387   (exit $ac_status); }; }; then
   8388   ac_cv_search_opendir=$ac_res
   8389 else
   8390   echo "$as_me: failed program was:" >&5
   8391 sed 's/^/| /' conftest.$ac_ext >&5
   8392 
   8393 
   8394 fi
   8395 
   8396 rm -f core conftest.err conftest.$ac_objext \
   8397       conftest$ac_exeext
   8398   if test "${ac_cv_search_opendir+set}" = set; then
   8399   break
   8400 fi
   8401 done
   8402 if test "${ac_cv_search_opendir+set}" = set; then
   8403   :
   8404 else
   8405   ac_cv_search_opendir=no
   8406 fi
   8407 rm conftest.$ac_ext
   8408 LIBS=$ac_func_search_save_LIBS
   8409 fi
   8410 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   8411 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   8412 ac_res=$ac_cv_search_opendir
   8413 if test "$ac_res" != no; then
   8414   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8415 
   8416 fi
   8417 
   8418 else
   8419   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   8420 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   8421 if test "${ac_cv_search_opendir+set}" = set; then
   8422   echo $ECHO_N "(cached) $ECHO_C" >&6
   8423 else
   8424   ac_func_search_save_LIBS=$LIBS
   8425 cat >conftest.$ac_ext <<_ACEOF
   8426 /* confdefs.h.  */
   8427 _ACEOF
   8428 cat confdefs.h >>conftest.$ac_ext
   8429 cat >>conftest.$ac_ext <<_ACEOF
   8430 /* end confdefs.h.  */
   8431 
   8432 /* Override any GCC internal prototype to avoid an error.
   8433    Use char because int might match the return type of a GCC
   8434    builtin and then its argument prototype would still apply.  */
   8435 #ifdef __cplusplus
   8436 extern "C"
   8437 #endif
   8438 char opendir ();
   8439 int
   8440 main ()
   8441 {
   8442 return opendir ();
   8443   ;
   8444   return 0;
   8445 }
   8446 _ACEOF
   8447 for ac_lib in '' x; do
   8448   if test -z "$ac_lib"; then
   8449     ac_res="none required"
   8450   else
   8451     ac_res=-l$ac_lib
   8452     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8453   fi
   8454   rm -f conftest.$ac_objext conftest$ac_exeext
   8455 if { (ac_try="$ac_link"
   8456 case "(($ac_try" in
   8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8458   *) ac_try_echo=$ac_try;;
   8459 esac
   8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8461   (eval "$ac_link") 2>conftest.er1
   8462   ac_status=$?
   8463   grep -v '^ *+' conftest.er1 >conftest.err
   8464   rm -f conftest.er1
   8465   cat conftest.err >&5
   8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8467   (exit $ac_status); } &&
   8468 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8469   { (case "(($ac_try" in
   8470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8471   *) ac_try_echo=$ac_try;;
   8472 esac
   8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8474   (eval "$ac_try") 2>&5
   8475   ac_status=$?
   8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8477   (exit $ac_status); }; } &&
   8478 	 { ac_try='test -s conftest$ac_exeext'
   8479   { (case "(($ac_try" in
   8480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8481   *) ac_try_echo=$ac_try;;
   8482 esac
   8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8484   (eval "$ac_try") 2>&5
   8485   ac_status=$?
   8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8487   (exit $ac_status); }; }; then
   8488   ac_cv_search_opendir=$ac_res
   8489 else
   8490   echo "$as_me: failed program was:" >&5
   8491 sed 's/^/| /' conftest.$ac_ext >&5
   8492 
   8493 
   8494 fi
   8495 
   8496 rm -f core conftest.err conftest.$ac_objext \
   8497       conftest$ac_exeext
   8498   if test "${ac_cv_search_opendir+set}" = set; then
   8499   break
   8500 fi
   8501 done
   8502 if test "${ac_cv_search_opendir+set}" = set; then
   8503   :
   8504 else
   8505   ac_cv_search_opendir=no
   8506 fi
   8507 rm conftest.$ac_ext
   8508 LIBS=$ac_func_search_save_LIBS
   8509 fi
   8510 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   8511 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   8512 ac_res=$ac_cv_search_opendir
   8513 if test "$ac_res" != no; then
   8514   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8515 
   8516 fi
   8517 
   8518 fi
   8519 
   8520 
   8521 for ac_header in dlfcn.h
   8522 do
   8523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8525   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   8526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   8527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8528   echo $ECHO_N "(cached) $ECHO_C" >&6
   8529 fi
   8530 ac_res=`eval echo '${'$as_ac_Header'}'`
   8531 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8532 echo "${ECHO_T}$ac_res" >&6; }
   8533 else
   8534   # Is the header compilable?
   8535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   8536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   8537 cat >conftest.$ac_ext <<_ACEOF
   8538 /* confdefs.h.  */
   8539 _ACEOF
   8540 cat confdefs.h >>conftest.$ac_ext
   8541 cat >>conftest.$ac_ext <<_ACEOF
   8542 /* end confdefs.h.  */
   8543 $ac_includes_default
   8544 #include <$ac_header>
   8545 _ACEOF
   8546 rm -f conftest.$ac_objext
   8547 if { (ac_try="$ac_compile"
   8548 case "(($ac_try" in
   8549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8550   *) ac_try_echo=$ac_try;;
   8551 esac
   8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8553   (eval "$ac_compile") 2>conftest.er1
   8554   ac_status=$?
   8555   grep -v '^ *+' conftest.er1 >conftest.err
   8556   rm -f conftest.er1
   8557   cat conftest.err >&5
   8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8559   (exit $ac_status); } &&
   8560 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8561   { (case "(($ac_try" in
   8562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8563   *) ac_try_echo=$ac_try;;
   8564 esac
   8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8566   (eval "$ac_try") 2>&5
   8567   ac_status=$?
   8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8569   (exit $ac_status); }; } &&
   8570 	 { ac_try='test -s conftest.$ac_objext'
   8571   { (case "(($ac_try" in
   8572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8573   *) ac_try_echo=$ac_try;;
   8574 esac
   8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8576   (eval "$ac_try") 2>&5
   8577   ac_status=$?
   8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8579   (exit $ac_status); }; }; then
   8580   ac_header_compiler=yes
   8581 else
   8582   echo "$as_me: failed program was:" >&5
   8583 sed 's/^/| /' conftest.$ac_ext >&5
   8584 
   8585 	ac_header_compiler=no
   8586 fi
   8587 
   8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   8590 echo "${ECHO_T}$ac_header_compiler" >&6; }
   8591 
   8592 # Is the header present?
   8593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   8594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   8595 cat >conftest.$ac_ext <<_ACEOF
   8596 /* confdefs.h.  */
   8597 _ACEOF
   8598 cat confdefs.h >>conftest.$ac_ext
   8599 cat >>conftest.$ac_ext <<_ACEOF
   8600 /* end confdefs.h.  */
   8601 #include <$ac_header>
   8602 _ACEOF
   8603 if { (ac_try="$ac_cpp conftest.$ac_ext"
   8604 case "(($ac_try" in
   8605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8606   *) ac_try_echo=$ac_try;;
   8607 esac
   8608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   8610   ac_status=$?
   8611   grep -v '^ *+' conftest.er1 >conftest.err
   8612   rm -f conftest.er1
   8613   cat conftest.err >&5
   8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8615   (exit $ac_status); } >/dev/null; then
   8616   if test -s conftest.err; then
   8617     ac_cpp_err=$ac_c_preproc_warn_flag
   8618     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   8619   else
   8620     ac_cpp_err=
   8621   fi
   8622 else
   8623   ac_cpp_err=yes
   8624 fi
   8625 if test -z "$ac_cpp_err"; then
   8626   ac_header_preproc=yes
   8627 else
   8628   echo "$as_me: failed program was:" >&5
   8629 sed 's/^/| /' conftest.$ac_ext >&5
   8630 
   8631   ac_header_preproc=no
   8632 fi
   8633 
   8634 rm -f conftest.err conftest.$ac_ext
   8635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   8636 echo "${ECHO_T}$ac_header_preproc" >&6; }
   8637 
   8638 # So?  What about this header?
   8639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   8640   yes:no: )
   8641     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   8642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   8643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   8644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   8645     ac_header_preproc=yes
   8646     ;;
   8647   no:yes:* )
   8648     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   8649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   8650     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   8651 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   8652     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   8653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   8654     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   8655 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   8656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   8657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   8658     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   8659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   8660     ( cat <<\_ASBOX
   8661 ## ----------------------------------- ##
   8662 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   8663 ## ----------------------------------- ##
   8664 _ASBOX
   8665      ) | sed "s/^/$as_me: WARNING:     /" >&2
   8666     ;;
   8667 esac
   8668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   8669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   8670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8671   echo $ECHO_N "(cached) $ECHO_C" >&6
   8672 else
   8673   eval "$as_ac_Header=\$ac_header_preproc"
   8674 fi
   8675 ac_res=`eval echo '${'$as_ac_Header'}'`
   8676 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8677 echo "${ECHO_T}$ac_res" >&6; }
   8678 
   8679 fi
   8680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8681   cat >>confdefs.h <<_ACEOF
   8682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8683 _ACEOF
   8684 
   8685 fi
   8686 
   8687 done
   8688 
   8689 # Check whether --enable-ltdl-install was given.
   8690 if test "${enable_ltdl_install+set}" = set; then
   8691   enableval=$enable_ltdl_install;
   8692 fi
   8693 
   8694 
   8695 
   8696 
   8697 if test x"${enable_ltdl_install-no}" != xno; then
   8698   INSTALL_LTDL_TRUE=
   8699   INSTALL_LTDL_FALSE='#'
   8700 else
   8701   INSTALL_LTDL_TRUE='#'
   8702   INSTALL_LTDL_FALSE=
   8703 fi
   8704 
   8705 
   8706 
   8707 if test x"${enable_ltdl_convenience-no}" != xno; then
   8708   CONVENIENCE_LTDL_TRUE=
   8709   CONVENIENCE_LTDL_FALSE='#'
   8710 else
   8711   CONVENIENCE_LTDL_TRUE='#'
   8712   CONVENIENCE_LTDL_FALSE=
   8713 fi
   8714 
   8715 
   8716 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
   8717 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
   8718 library_names_spec=
   8719 libname_spec='lib$name'
   8720 soname_spec=
   8721 shrext_cmds=".so"
   8722 postinstall_cmds=
   8723 postuninstall_cmds=
   8724 finish_cmds=
   8725 finish_eval=
   8726 shlibpath_var=
   8727 shlibpath_overrides_runpath=unknown
   8728 version_type=none
   8729 dynamic_linker="$host_os ld.so"
   8730 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   8731 if test "$GCC" = yes; then
   8732   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   8733   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
   8734     # if the path contains ";" then we assume it to be the separator
   8735     # otherwise default to the standard path separator (i.e. ":") - it is
   8736     # assumed that no part of a normal pathname contains ";" but that should
   8737     # okay in the real world where ";" in dirpaths is itself problematic.
   8738     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   8739   else
   8740     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   8741   fi
   8742 else
   8743   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   8744 fi
   8745 need_lib_prefix=unknown
   8746 hardcode_into_libs=no
   8747 
   8748 # when you set need_version to no, make sure it does not cause -set_version
   8749 # flags to be left without arguments
   8750 need_version=unknown
   8751 
   8752 case $host_os in
   8753 aix3*)
   8754   version_type=linux
   8755   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   8756   shlibpath_var=LIBPATH
   8757 
   8758   # AIX 3 has no versioning support, so we append a major version to the name.
   8759   soname_spec='${libname}${release}${shared_ext}$major'
   8760   ;;
   8761 
   8762 aix4* | aix5*)
   8763   version_type=linux
   8764   need_lib_prefix=no
   8765   need_version=no
   8766   hardcode_into_libs=yes
   8767   if test "$host_cpu" = ia64; then
   8768     # AIX 5 supports IA64
   8769     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   8770     shlibpath_var=LD_LIBRARY_PATH
   8771   else
   8772     # With GCC up to 2.95.x, collect2 would create an import file
   8773     # for dependence libraries.  The import file would start with
   8774     # the line `#! .'.  This would cause the generated library to
   8775     # depend on `.', always an invalid library.  This was fixed in
   8776     # development snapshots of GCC prior to 3.0.
   8777     case $host_os in
   8778       aix4 | aix4.[01] | aix4.[01].*)
   8779       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   8780 	   echo ' yes '
   8781 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
   8782 	:
   8783       else
   8784 	can_build_shared=no
   8785       fi
   8786       ;;
   8787     esac
   8788     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   8789     # soname into executable. Probably we can add versioning support to
   8790     # collect2, so additional links can be useful in future.
   8791     if test "$aix_use_runtimelinking" = yes; then
   8792       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   8793       # instead of lib<name>.a to let people know that these are not
   8794       # typical AIX shared libraries.
   8795       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8796     else
   8797       # We preserve .a as extension for shared libraries through AIX4.2
   8798       # and later when we are not doing run time linking.
   8799       library_names_spec='${libname}${release}.a $libname.a'
   8800       soname_spec='${libname}${release}${shared_ext}$major'
   8801     fi
   8802     shlibpath_var=LIBPATH
   8803   fi
   8804   ;;
   8805 
   8806 amigaos*)
   8807   library_names_spec='$libname.ixlibrary $libname.a'
   8808   # Create ${libname}_ixlibrary.a entries in /sys/libs.
   8809   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
   8810   ;;
   8811 
   8812 beos*)
   8813   library_names_spec='${libname}${shared_ext}'
   8814   dynamic_linker="$host_os ld.so"
   8815   shlibpath_var=LIBRARY_PATH
   8816   ;;
   8817 
   8818 bsdi[45]*)
   8819   version_type=linux
   8820   need_version=no
   8821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8822   soname_spec='${libname}${release}${shared_ext}$major'
   8823   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   8824   shlibpath_var=LD_LIBRARY_PATH
   8825   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   8826   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   8827   # the default ld.so.conf also contains /usr/contrib/lib and
   8828   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   8829   # libtool to hard-code these into programs
   8830   ;;
   8831 
   8832 cygwin* | mingw* | pw32*)
   8833   version_type=windows
   8834   shrext_cmds=".dll"
   8835   need_version=no
   8836   need_lib_prefix=no
   8837 
   8838   case $GCC,$host_os in
   8839   yes,cygwin* | yes,mingw* | yes,pw32*)
   8840     library_names_spec='$libname.dll.a'
   8841     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   8842     postinstall_cmds='base_file=`basename \${file}`~
   8843       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   8844       dldir=$destdir/`dirname \$dlpath`~
   8845       test -d \$dldir || mkdir -p \$dldir~
   8846       $install_prog $dir/$dlname \$dldir/$dlname~
   8847       chmod a+x \$dldir/$dlname'
   8848     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   8849       dlpath=$dir/\$dldll~
   8850        $rm \$dlpath'
   8851     shlibpath_overrides_runpath=yes
   8852 
   8853     case $host_os in
   8854     cygwin*)
   8855       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   8856       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   8857       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
   8858       ;;
   8859     mingw*)
   8860       # MinGW DLLs use traditional 'lib' prefix
   8861       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   8862       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   8863       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
   8864         # It is most probably a Windows format PATH printed by
   8865         # mingw gcc, but we are running on Cygwin. Gcc prints its search
   8866         # path with ; separators, and with drive letters. We can handle the
   8867         # drive letters (cygwin fileutils understands them), so leave them,
   8868         # especially as we might pass files found there to a mingw objdump,
   8869         # which wouldn't understand a cygwinified path. Ahh.
   8870         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   8871       else
   8872         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   8873       fi
   8874       ;;
   8875     pw32*)
   8876       # pw32 DLLs use 'pw' prefix rather than 'lib'
   8877       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   8878       ;;
   8879     esac
   8880     ;;
   8881 
   8882   *)
   8883     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   8884     ;;
   8885   esac
   8886   dynamic_linker='Win32 ld.exe'
   8887   # FIXME: first we should search . and the directory the executable is in
   8888   shlibpath_var=PATH
   8889   ;;
   8890 
   8891 darwin* | rhapsody*)
   8892   dynamic_linker="$host_os dyld"
   8893   version_type=darwin
   8894   need_lib_prefix=no
   8895   need_version=no
   8896   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   8897   soname_spec='${libname}${release}${major}$shared_ext'
   8898   shlibpath_overrides_runpath=yes
   8899   shlibpath_var=DYLD_LIBRARY_PATH
   8900   shrext_cmds='.dylib'
   8901   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   8902   if test "$GCC" = yes; then
   8903     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
   8904   else
   8905     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   8906   fi
   8907   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   8908   ;;
   8909 
   8910 dgux*)
   8911   version_type=linux
   8912   need_lib_prefix=no
   8913   need_version=no
   8914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   8915   soname_spec='${libname}${release}${shared_ext}$major'
   8916   shlibpath_var=LD_LIBRARY_PATH
   8917   ;;
   8918 
   8919 freebsd1*)
   8920   dynamic_linker=no
   8921   ;;
   8922 
   8923 kfreebsd*-gnu)
   8924   version_type=linux
   8925   need_lib_prefix=no
   8926   need_version=no
   8927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8928   soname_spec='${libname}${release}${shared_ext}$major'
   8929   shlibpath_var=LD_LIBRARY_PATH
   8930   shlibpath_overrides_runpath=no
   8931   hardcode_into_libs=yes
   8932   dynamic_linker='GNU ld.so'
   8933   ;;
   8934 
   8935 freebsd* | dragonfly*)
   8936   # DragonFly does not have aout.  When/if they implement a new
   8937   # versioning mechanism, adjust this.
   8938   if test -x /usr/bin/objformat; then
   8939     objformat=`/usr/bin/objformat`
   8940   else
   8941     case $host_os in
   8942     freebsd[123]*) objformat=aout ;;
   8943     *) objformat=elf ;;
   8944     esac
   8945   fi
   8946   version_type=freebsd-$objformat
   8947   case $version_type in
   8948     freebsd-elf*)
   8949       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   8950       need_version=no
   8951       need_lib_prefix=no
   8952       ;;
   8953     freebsd-*)
   8954       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   8955       need_version=yes
   8956       ;;
   8957   esac
   8958   shlibpath_var=LD_LIBRARY_PATH
   8959   case $host_os in
   8960   freebsd2*)
   8961     shlibpath_overrides_runpath=yes
   8962     ;;
   8963   freebsd3.[01]* | freebsdelf3.[01]*)
   8964     shlibpath_overrides_runpath=yes
   8965     hardcode_into_libs=yes
   8966     ;;
   8967   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   8968   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   8969     shlibpath_overrides_runpath=no
   8970     hardcode_into_libs=yes
   8971     ;;
   8972   freebsd*) # from 4.6 on
   8973     shlibpath_overrides_runpath=yes
   8974     hardcode_into_libs=yes
   8975     ;;
   8976   esac
   8977   ;;
   8978 
   8979 gnu*)
   8980   version_type=linux
   8981   need_lib_prefix=no
   8982   need_version=no
   8983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   8984   soname_spec='${libname}${release}${shared_ext}$major'
   8985   shlibpath_var=LD_LIBRARY_PATH
   8986   hardcode_into_libs=yes
   8987   ;;
   8988 
   8989 hpux9* | hpux10* | hpux11*)
   8990   # Give a soname corresponding to the major version so that dld.sl refuses to
   8991   # link against other versions.
   8992   version_type=sunos
   8993   need_lib_prefix=no
   8994   need_version=no
   8995   case $host_cpu in
   8996   ia64*)
   8997     shrext_cmds='.so'
   8998     hardcode_into_libs=yes
   8999     dynamic_linker="$host_os dld.so"
   9000     shlibpath_var=LD_LIBRARY_PATH
   9001     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   9002     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9003     soname_spec='${libname}${release}${shared_ext}$major'
   9004     if test "X$HPUX_IA64_MODE" = X32; then
   9005       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   9006     else
   9007       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   9008     fi
   9009     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   9010     ;;
   9011    hppa*64*)
   9012      shrext_cmds='.sl'
   9013      hardcode_into_libs=yes
   9014      dynamic_linker="$host_os dld.sl"
   9015      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   9016      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   9017      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9018      soname_spec='${libname}${release}${shared_ext}$major'
   9019      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   9020      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   9021      ;;
   9022    *)
   9023     shrext_cmds='.sl'
   9024     dynamic_linker="$host_os dld.sl"
   9025     shlibpath_var=SHLIB_PATH
   9026     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   9027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9028     soname_spec='${libname}${release}${shared_ext}$major'
   9029     ;;
   9030   esac
   9031   # HP-UX runs *really* slowly unless shared libraries are mode 555.
   9032   postinstall_cmds='chmod 555 $lib'
   9033   ;;
   9034 
   9035 interix3*)
   9036   version_type=linux
   9037   need_lib_prefix=no
   9038   need_version=no
   9039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   9040   soname_spec='${libname}${release}${shared_ext}$major'
   9041   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   9042   shlibpath_var=LD_LIBRARY_PATH
   9043   shlibpath_overrides_runpath=no
   9044   hardcode_into_libs=yes
   9045   ;;
   9046 
   9047 irix5* | irix6* | nonstopux*)
   9048   case $host_os in
   9049     nonstopux*) version_type=nonstopux ;;
   9050     *)
   9051 	if test "$lt_cv_prog_gnu_ld" = yes; then
   9052 		version_type=linux
   9053 	else
   9054 		version_type=irix
   9055 	fi ;;
   9056   esac
   9057   need_lib_prefix=no
   9058   need_version=no
   9059   soname_spec='${libname}${release}${shared_ext}$major'
   9060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   9061   case $host_os in
   9062   irix5* | nonstopux*)
   9063     libsuff= shlibsuff=
   9064     ;;
   9065   *)
   9066     case $LD in # libtool.m4 will add one of these switches to LD
   9067     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   9068       libsuff= shlibsuff= libmagic=32-bit;;
   9069     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   9070       libsuff=32 shlibsuff=N32 libmagic=N32;;
   9071     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   9072       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   9073     *) libsuff= shlibsuff= libmagic=never-match;;
   9074     esac
   9075     ;;
   9076   esac
   9077   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   9078   shlibpath_overrides_runpath=no
   9079   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   9080   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   9081   hardcode_into_libs=yes
   9082   ;;
   9083 
   9084 # No shared lib support for Linux oldld, aout, or coff.
   9085 linux*oldld* | linux*aout* | linux*coff*)
   9086   dynamic_linker=no
   9087   ;;
   9088 
   9089 # This must be Linux ELF.
   9090 linux*)
   9091   version_type=linux
   9092   need_lib_prefix=no
   9093   need_version=no
   9094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9095   soname_spec='${libname}${release}${shared_ext}$major'
   9096   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   9097   shlibpath_var=LD_LIBRARY_PATH
   9098   shlibpath_overrides_runpath=no
   9099   # This implies no fast_install, which is unacceptable.
   9100   # Some rework will be needed to allow for fast_install
   9101   # before this can be enabled.
   9102   hardcode_into_libs=yes
   9103 
   9104   # Append ld.so.conf contents to the search path
   9105   if test -f /etc/ld.so.conf; then
   9106     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
   9107     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   9108   fi
   9109 
   9110   # We used to test for /lib/ld.so.1 and disable shared libraries on
   9111   # powerpc, because MkLinux only supported shared libraries with the
   9112   # GNU dynamic linker.  Since this was broken with cross compilers,
   9113   # most powerpc-linux boxes support dynamic linking these days and
   9114   # people can always --disable-shared, the test was removed, and we
   9115   # assume the GNU/Linux dynamic linker is in use.
   9116   dynamic_linker='GNU/Linux ld.so'
   9117   ;;
   9118 
   9119 knetbsd*-gnu)
   9120   version_type=linux
   9121   need_lib_prefix=no
   9122   need_version=no
   9123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   9124   soname_spec='${libname}${release}${shared_ext}$major'
   9125   shlibpath_var=LD_LIBRARY_PATH
   9126   shlibpath_overrides_runpath=no
   9127   hardcode_into_libs=yes
   9128   dynamic_linker='GNU ld.so'
   9129   ;;
   9130 
   9131 netbsd*)
   9132   version_type=sunos
   9133   need_lib_prefix=no
   9134   need_version=no
   9135   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   9136     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   9137     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   9138     dynamic_linker='NetBSD (a.out) ld.so'
   9139   else
   9140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   9141     soname_spec='${libname}${release}${shared_ext}$major'
   9142     dynamic_linker='NetBSD ld.elf_so'
   9143   fi
   9144   shlibpath_var=LD_LIBRARY_PATH
   9145   shlibpath_overrides_runpath=yes
   9146   hardcode_into_libs=yes
   9147   ;;
   9148 
   9149 newsos6)
   9150   version_type=linux
   9151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9152   shlibpath_var=LD_LIBRARY_PATH
   9153   shlibpath_overrides_runpath=yes
   9154   ;;
   9155 
   9156 nto-qnx*)
   9157   version_type=linux
   9158   need_lib_prefix=no
   9159   need_version=no
   9160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9161   soname_spec='${libname}${release}${shared_ext}$major'
   9162   shlibpath_var=LD_LIBRARY_PATH
   9163   shlibpath_overrides_runpath=yes
   9164   ;;
   9165 
   9166 openbsd*)
   9167   version_type=sunos
   9168   sys_lib_dlsearch_path_spec="/usr/lib"
   9169   need_lib_prefix=no
   9170   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
   9171   case $host_os in
   9172     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
   9173     *)                         need_version=no  ;;
   9174   esac
   9175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   9176   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   9177   shlibpath_var=LD_LIBRARY_PATH
   9178   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   9179     case $host_os in
   9180       openbsd2.[89] | openbsd2.[89].*)
   9181 	shlibpath_overrides_runpath=no
   9182 	;;
   9183       *)
   9184 	shlibpath_overrides_runpath=yes
   9185 	;;
   9186       esac
   9187   else
   9188     shlibpath_overrides_runpath=yes
   9189   fi
   9190   ;;
   9191 
   9192 os2*)
   9193   libname_spec='$name'
   9194   shrext_cmds=".dll"
   9195   need_lib_prefix=no
   9196   library_names_spec='$libname${shared_ext} $libname.a'
   9197   dynamic_linker='OS/2 ld.exe'
   9198   shlibpath_var=LIBPATH
   9199   ;;
   9200 
   9201 osf3* | osf4* | osf5*)
   9202   version_type=osf
   9203   need_lib_prefix=no
   9204   need_version=no
   9205   soname_spec='${libname}${release}${shared_ext}$major'
   9206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9207   shlibpath_var=LD_LIBRARY_PATH
   9208   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   9209   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   9210   ;;
   9211 
   9212 solaris*)
   9213   version_type=linux
   9214   need_lib_prefix=no
   9215   need_version=no
   9216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9217   soname_spec='${libname}${release}${shared_ext}$major'
   9218   shlibpath_var=LD_LIBRARY_PATH
   9219   shlibpath_overrides_runpath=yes
   9220   hardcode_into_libs=yes
   9221   # ldd complains unless libraries are executable
   9222   postinstall_cmds='chmod +x $lib'
   9223   ;;
   9224 
   9225 sunos4*)
   9226   version_type=sunos
   9227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   9228   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   9229   shlibpath_var=LD_LIBRARY_PATH
   9230   shlibpath_overrides_runpath=yes
   9231   if test "$with_gnu_ld" = yes; then
   9232     need_lib_prefix=no
   9233   fi
   9234   need_version=yes
   9235   ;;
   9236 
   9237 sysv4 | sysv4.3*)
   9238   version_type=linux
   9239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9240   soname_spec='${libname}${release}${shared_ext}$major'
   9241   shlibpath_var=LD_LIBRARY_PATH
   9242   case $host_vendor in
   9243     sni)
   9244       shlibpath_overrides_runpath=no
   9245       need_lib_prefix=no
   9246       export_dynamic_flag_spec='${wl}-Blargedynsym'
   9247       runpath_var=LD_RUN_PATH
   9248       ;;
   9249     siemens)
   9250       need_lib_prefix=no
   9251       ;;
   9252     motorola)
   9253       need_lib_prefix=no
   9254       need_version=no
   9255       shlibpath_overrides_runpath=no
   9256       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   9257       ;;
   9258   esac
   9259   ;;
   9260 
   9261 sysv4*MP*)
   9262   if test -d /usr/nec ;then
   9263     version_type=linux
   9264     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   9265     soname_spec='$libname${shared_ext}.$major'
   9266     shlibpath_var=LD_LIBRARY_PATH
   9267   fi
   9268   ;;
   9269 
   9270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   9271   version_type=freebsd-elf
   9272   need_lib_prefix=no
   9273   need_version=no
   9274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   9275   soname_spec='${libname}${release}${shared_ext}$major'
   9276   shlibpath_var=LD_LIBRARY_PATH
   9277   hardcode_into_libs=yes
   9278   if test "$with_gnu_ld" = yes; then
   9279     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   9280     shlibpath_overrides_runpath=no
   9281   else
   9282     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   9283     shlibpath_overrides_runpath=yes
   9284     case $host_os in
   9285       sco3.2v5*)
   9286         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   9287 	;;
   9288     esac
   9289   fi
   9290   sys_lib_dlsearch_path_spec='/usr/lib'
   9291   ;;
   9292 
   9293 uts4*)
   9294   version_type=linux
   9295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9296   soname_spec='${libname}${release}${shared_ext}$major'
   9297   shlibpath_var=LD_LIBRARY_PATH
   9298   ;;
   9299 
   9300 *)
   9301   dynamic_linker=no
   9302   ;;
   9303 esac
   9304 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
   9305 echo "${ECHO_T}$dynamic_linker" >&6; }
   9306 test "$dynamic_linker" = no && can_build_shared=no
   9307 
   9308 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   9309 if test "$GCC" = yes; then
   9310   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   9311 fi
   9312 
   9313 
   9314 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
   9315 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
   9316 if test "${libltdl_cv_shlibext+set}" = set; then
   9317   echo $ECHO_N "(cached) $ECHO_C" >&6
   9318 else
   9319 
   9320 module=yes
   9321 eval libltdl_cv_shlibext=$shrext_cmds
   9322 
   9323 fi
   9324 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
   9325 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
   9326 if test -n "$libltdl_cv_shlibext"; then
   9327 
   9328 cat >>confdefs.h <<_ACEOF
   9329 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
   9330 _ACEOF
   9331 
   9332 fi
   9333 
   9334 
   9335 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
   9336 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
   9337 if test "${libltdl_cv_shlibpath_var+set}" = set; then
   9338   echo $ECHO_N "(cached) $ECHO_C" >&6
   9339 else
   9340   libltdl_cv_shlibpath_var="$shlibpath_var"
   9341 fi
   9342 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
   9343 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
   9344 if test -n "$libltdl_cv_shlibpath_var"; then
   9345 
   9346 cat >>confdefs.h <<_ACEOF
   9347 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
   9348 _ACEOF
   9349 
   9350 fi
   9351 
   9352 
   9353 { echo "$as_me:$LINENO: checking for the default library search path" >&5
   9354 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
   9355 if test "${libltdl_cv_sys_search_path+set}" = set; then
   9356   echo $ECHO_N "(cached) $ECHO_C" >&6
   9357 else
   9358   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
   9359 fi
   9360 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
   9361 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
   9362 if test -n "$libltdl_cv_sys_search_path"; then
   9363   sys_search_path=
   9364   for dir in $libltdl_cv_sys_search_path; do
   9365     if test -z "$sys_search_path"; then
   9366       sys_search_path="$dir"
   9367     else
   9368       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
   9369     fi
   9370   done
   9371 
   9372 cat >>confdefs.h <<_ACEOF
   9373 #define LTDL_SYSSEARCHPATH "$sys_search_path"
   9374 _ACEOF
   9375 
   9376 fi
   9377 
   9378 { echo "$as_me:$LINENO: checking for objdir" >&5
   9379 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
   9380 if test "${libltdl_cv_objdir+set}" = set; then
   9381   echo $ECHO_N "(cached) $ECHO_C" >&6
   9382 else
   9383   libltdl_cv_objdir="$objdir"
   9384   if test -n "$objdir"; then
   9385     :
   9386   else
   9387     rm -f .libs 2>/dev/null
   9388     mkdir .libs 2>/dev/null
   9389     if test -d .libs; then
   9390       libltdl_cv_objdir=.libs
   9391     else
   9392       # MS-DOS does not allow filenames that begin with a dot.
   9393       libltdl_cv_objdir=_libs
   9394     fi
   9395   rmdir .libs 2>/dev/null
   9396   fi
   9397 
   9398 fi
   9399 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
   9400 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
   9401 
   9402 cat >>confdefs.h <<_ACEOF
   9403 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
   9404 _ACEOF
   9405 
   9406 
   9407 
   9408 
   9409 
   9410 
   9411 # Check for command to grab the raw symbol name followed by C symbol from nm.
   9412 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
   9413 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
   9414 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
   9415   echo $ECHO_N "(cached) $ECHO_C" >&6
   9416 else
   9417 
   9418 # These are sane defaults that work on at least a few old systems.
   9419 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   9420 
   9421 # Character class describing NM global symbol codes.
   9422 symcode='[BCDEGRST]'
   9423 
   9424 # Regexp to match symbols that can be accessed directly from C.
   9425 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   9426 
   9427 # Transform an extracted symbol line into a proper C declaration
   9428 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
   9429 
   9430 # Transform an extracted symbol line into symbol name and symbol address
   9431 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
   9432 
   9433 # Define system-specific variables.
   9434 case $host_os in
   9435 aix*)
   9436   symcode='[BCDT]'
   9437   ;;
   9438 cygwin* | mingw* | pw32*)
   9439   symcode='[ABCDGISTW]'
   9440   ;;
   9441 hpux*) # Its linker distinguishes data from code symbols
   9442   if test "$host_cpu" = ia64; then
   9443     symcode='[ABCDEGRST]'
   9444   fi
   9445   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   9446   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
   9447   ;;
   9448 linux*)
   9449   if test "$host_cpu" = ia64; then
   9450     symcode='[ABCDGIRSTW]'
   9451     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   9452     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
   9453   fi
   9454   ;;
   9455 irix* | nonstopux*)
   9456   symcode='[BCDEGRST]'
   9457   ;;
   9458 osf*)
   9459   symcode='[BCDEGQRST]'
   9460   ;;
   9461 solaris*)
   9462   symcode='[BDRT]'
   9463   ;;
   9464 sco3.2v5*)
   9465   symcode='[DT]'
   9466   ;;
   9467 sysv4.2uw2*)
   9468   symcode='[DT]'
   9469   ;;
   9470 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   9471   symcode='[ABDT]'
   9472   ;;
   9473 sysv4)
   9474   symcode='[DFNSTU]'
   9475   ;;
   9476 esac
   9477 
   9478 # Handle CRLF in mingw tool chain
   9479 opt_cr=
   9480 case $build_os in
   9481 mingw*)
   9482   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   9483   ;;
   9484 esac
   9485 
   9486 # If we're using GNU nm, then use its standard symbol codes.
   9487 case `$NM -V 2>&1` in
   9488 *GNU* | *'with BFD'*)
   9489   symcode='[ABCDGIRSTW]' ;;
   9490 esac
   9491 
   9492 # Try without a prefix undercore, then with it.
   9493 for ac_symprfx in "" "_"; do
   9494 
   9495   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   9496   symxfrm="\\1 $ac_symprfx\\2 \\2"
   9497 
   9498   # Write the raw and C identifiers.
   9499   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   9500 
   9501   # Check to see that the pipe works correctly.
   9502   pipe_works=no
   9503 
   9504   rm -f conftest*
   9505   cat > conftest.$ac_ext <<EOF
   9506 #ifdef __cplusplus
   9507 extern "C" {
   9508 #endif
   9509 char nm_test_var;
   9510 void nm_test_func(){}
   9511 #ifdef __cplusplus
   9512 }
   9513 #endif
   9514 int main(){nm_test_var='a';nm_test_func();return(0);}
   9515 EOF
   9516 
   9517   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9518   (eval $ac_compile) 2>&5
   9519   ac_status=$?
   9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9521   (exit $ac_status); }; then
   9522     # Now try to grab the symbols.
   9523     nlist=conftest.nm
   9524     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
   9525   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
   9526   ac_status=$?
   9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9528   (exit $ac_status); } && test -s "$nlist"; then
   9529       # Try sorting and uniquifying the output.
   9530       if sort "$nlist" | uniq > "$nlist"T; then
   9531 	mv -f "$nlist"T "$nlist"
   9532       else
   9533 	rm -f "$nlist"T
   9534       fi
   9535 
   9536       # Make sure that we snagged all the symbols we need.
   9537       if grep ' nm_test_var$' "$nlist" >/dev/null; then
   9538 	if grep ' nm_test_func$' "$nlist" >/dev/null; then
   9539 	  cat <<EOF > conftest.$ac_ext
   9540 #ifdef __cplusplus
   9541 extern "C" {
   9542 #endif
   9543 
   9544 EOF
   9545 	  # Now generate the symbol file.
   9546 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
   9547 
   9548 	  cat <<EOF >> conftest.$ac_ext
   9549 #if defined (__STDC__) && __STDC__
   9550 # define lt_ptr_t void *
   9551 #else
   9552 # define lt_ptr_t char *
   9553 # define const
   9554 #endif
   9555 
   9556 /* The mapping between symbol names and symbols. */
   9557 const struct {
   9558   const char *name;
   9559   lt_ptr_t address;
   9560 }
   9561 lt_preloaded_symbols[] =
   9562 {
   9563 EOF
   9564 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
   9565 	  cat <<\EOF >> conftest.$ac_ext
   9566   {0, (lt_ptr_t) 0}
   9567 };
   9568 
   9569 #ifdef __cplusplus
   9570 }
   9571 #endif
   9572 EOF
   9573 	  # Now try linking the two files.
   9574 	  mv conftest.$ac_objext conftstm.$ac_objext
   9575 	  lt_save_LIBS="$LIBS"
   9576 	  lt_save_CFLAGS="$CFLAGS"
   9577 	  LIBS="conftstm.$ac_objext"
   9578 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   9579 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9580   (eval $ac_link) 2>&5
   9581   ac_status=$?
   9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9583   (exit $ac_status); } && test -s conftest${ac_exeext}; then
   9584 	    pipe_works=yes
   9585 	  fi
   9586 	  LIBS="$lt_save_LIBS"
   9587 	  CFLAGS="$lt_save_CFLAGS"
   9588 	else
   9589 	  echo "cannot find nm_test_func in $nlist" >&5
   9590 	fi
   9591       else
   9592 	echo "cannot find nm_test_var in $nlist" >&5
   9593       fi
   9594     else
   9595       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   9596     fi
   9597   else
   9598     echo "$progname: failed program was:" >&5
   9599     cat conftest.$ac_ext >&5
   9600   fi
   9601   rm -f conftest* conftst*
   9602 
   9603   # Do not use the global_symbol_pipe unless it works.
   9604   if test "$pipe_works" = yes; then
   9605     break
   9606   else
   9607     lt_cv_sys_global_symbol_pipe=
   9608   fi
   9609 done
   9610 
   9611 fi
   9612 
   9613 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   9614   lt_cv_sys_global_symbol_to_cdecl=
   9615 fi
   9616 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   9617   { echo "$as_me:$LINENO: result: failed" >&5
   9618 echo "${ECHO_T}failed" >&6; }
   9619 else
   9620   { echo "$as_me:$LINENO: result: ok" >&5
   9621 echo "${ECHO_T}ok" >&6; }
   9622 fi
   9623 
   9624 
   9625 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
   9626 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
   9627 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
   9628   echo $ECHO_N "(cached) $ECHO_C" >&6
   9629 else
   9630   if test -n "$lt_cv_sys_global_symbol_pipe"; then
   9631     libltdl_cv_preloaded_symbols=yes
   9632   else
   9633     libltdl_cv_preloaded_symbols=no
   9634   fi
   9635 
   9636 fi
   9637 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
   9638 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
   9639 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
   9640 
   9641 cat >>confdefs.h <<\_ACEOF
   9642 #define HAVE_PRELOADED_SYMBOLS 1
   9643 _ACEOF
   9644 
   9645 fi
   9646 
   9647 LIBADD_DL=
   9648 
   9649 ac_ext=c
   9650 ac_cpp='$CPP $CPPFLAGS'
   9651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9654 
   9655 
   9656 { echo "$as_me:$LINENO: checking for shl_load" >&5
   9657 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
   9658 if test "${ac_cv_func_shl_load+set}" = set; then
   9659   echo $ECHO_N "(cached) $ECHO_C" >&6
   9660 else
   9661   cat >conftest.$ac_ext <<_ACEOF
   9662 /* confdefs.h.  */
   9663 _ACEOF
   9664 cat confdefs.h >>conftest.$ac_ext
   9665 cat >>conftest.$ac_ext <<_ACEOF
   9666 /* end confdefs.h.  */
   9667 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   9668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9669 #define shl_load innocuous_shl_load
   9670 
   9671 /* System header to define __stub macros and hopefully few prototypes,
   9672     which can conflict with char shl_load (); below.
   9673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9674     <limits.h> exists even on freestanding compilers.  */
   9675 
   9676 #ifdef __STDC__
   9677 # include <limits.h>
   9678 #else
   9679 # include <assert.h>
   9680 #endif
   9681 
   9682 #undef shl_load
   9683 
   9684 /* Override any GCC internal prototype to avoid an error.
   9685    Use char because int might match the return type of a GCC
   9686    builtin and then its argument prototype would still apply.  */
   9687 #ifdef __cplusplus
   9688 extern "C"
   9689 #endif
   9690 char shl_load ();
   9691 /* The GNU C library defines this for functions which it implements
   9692     to always fail with ENOSYS.  Some functions are actually named
   9693     something starting with __ and the normal name is an alias.  */
   9694 #if defined __stub_shl_load || defined __stub___shl_load
   9695 choke me
   9696 #endif
   9697 
   9698 int
   9699 main ()
   9700 {
   9701 return shl_load ();
   9702   ;
   9703   return 0;
   9704 }
   9705 _ACEOF
   9706 rm -f conftest.$ac_objext conftest$ac_exeext
   9707 if { (ac_try="$ac_link"
   9708 case "(($ac_try" in
   9709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9710   *) ac_try_echo=$ac_try;;
   9711 esac
   9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9713   (eval "$ac_link") 2>conftest.er1
   9714   ac_status=$?
   9715   grep -v '^ *+' conftest.er1 >conftest.err
   9716   rm -f conftest.er1
   9717   cat conftest.err >&5
   9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9719   (exit $ac_status); } &&
   9720 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9721   { (case "(($ac_try" in
   9722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9723   *) ac_try_echo=$ac_try;;
   9724 esac
   9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9726   (eval "$ac_try") 2>&5
   9727   ac_status=$?
   9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9729   (exit $ac_status); }; } &&
   9730 	 { ac_try='test -s conftest$ac_exeext'
   9731   { (case "(($ac_try" in
   9732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9733   *) ac_try_echo=$ac_try;;
   9734 esac
   9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9736   (eval "$ac_try") 2>&5
   9737   ac_status=$?
   9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9739   (exit $ac_status); }; }; then
   9740   ac_cv_func_shl_load=yes
   9741 else
   9742   echo "$as_me: failed program was:" >&5
   9743 sed 's/^/| /' conftest.$ac_ext >&5
   9744 
   9745 	ac_cv_func_shl_load=no
   9746 fi
   9747 
   9748 rm -f core conftest.err conftest.$ac_objext \
   9749       conftest$ac_exeext conftest.$ac_ext
   9750 fi
   9751 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
   9752 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
   9753 if test $ac_cv_func_shl_load = yes; then
   9754 
   9755 cat >>confdefs.h <<\_ACEOF
   9756 #define HAVE_SHL_LOAD 1
   9757 _ACEOF
   9758 
   9759 else
   9760   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
   9761 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
   9762 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
   9763   echo $ECHO_N "(cached) $ECHO_C" >&6
   9764 else
   9765   ac_check_lib_save_LIBS=$LIBS
   9766 LIBS="-ldld  $LIBS"
   9767 cat >conftest.$ac_ext <<_ACEOF
   9768 /* confdefs.h.  */
   9769 _ACEOF
   9770 cat confdefs.h >>conftest.$ac_ext
   9771 cat >>conftest.$ac_ext <<_ACEOF
   9772 /* end confdefs.h.  */
   9773 
   9774 /* Override any GCC internal prototype to avoid an error.
   9775    Use char because int might match the return type of a GCC
   9776    builtin and then its argument prototype would still apply.  */
   9777 #ifdef __cplusplus
   9778 extern "C"
   9779 #endif
   9780 char shl_load ();
   9781 int
   9782 main ()
   9783 {
   9784 return shl_load ();
   9785   ;
   9786   return 0;
   9787 }
   9788 _ACEOF
   9789 rm -f conftest.$ac_objext conftest$ac_exeext
   9790 if { (ac_try="$ac_link"
   9791 case "(($ac_try" in
   9792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9793   *) ac_try_echo=$ac_try;;
   9794 esac
   9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9796   (eval "$ac_link") 2>conftest.er1
   9797   ac_status=$?
   9798   grep -v '^ *+' conftest.er1 >conftest.err
   9799   rm -f conftest.er1
   9800   cat conftest.err >&5
   9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9802   (exit $ac_status); } &&
   9803 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9804   { (case "(($ac_try" in
   9805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9806   *) ac_try_echo=$ac_try;;
   9807 esac
   9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9809   (eval "$ac_try") 2>&5
   9810   ac_status=$?
   9811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9812   (exit $ac_status); }; } &&
   9813 	 { ac_try='test -s conftest$ac_exeext'
   9814   { (case "(($ac_try" in
   9815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9816   *) ac_try_echo=$ac_try;;
   9817 esac
   9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9819   (eval "$ac_try") 2>&5
   9820   ac_status=$?
   9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9822   (exit $ac_status); }; }; then
   9823   ac_cv_lib_dld_shl_load=yes
   9824 else
   9825   echo "$as_me: failed program was:" >&5
   9826 sed 's/^/| /' conftest.$ac_ext >&5
   9827 
   9828 	ac_cv_lib_dld_shl_load=no
   9829 fi
   9830 
   9831 rm -f core conftest.err conftest.$ac_objext \
   9832       conftest$ac_exeext conftest.$ac_ext
   9833 LIBS=$ac_check_lib_save_LIBS
   9834 fi
   9835 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
   9836 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
   9837 if test $ac_cv_lib_dld_shl_load = yes; then
   9838 
   9839 cat >>confdefs.h <<\_ACEOF
   9840 #define HAVE_SHL_LOAD 1
   9841 _ACEOF
   9842 
   9843 	LIBADD_DL="$LIBADD_DL -ldld"
   9844 else
   9845   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   9846 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   9847 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   9848   echo $ECHO_N "(cached) $ECHO_C" >&6
   9849 else
   9850   ac_check_lib_save_LIBS=$LIBS
   9851 LIBS="-ldl  $LIBS"
   9852 cat >conftest.$ac_ext <<_ACEOF
   9853 /* confdefs.h.  */
   9854 _ACEOF
   9855 cat confdefs.h >>conftest.$ac_ext
   9856 cat >>conftest.$ac_ext <<_ACEOF
   9857 /* end confdefs.h.  */
   9858 
   9859 /* Override any GCC internal prototype to avoid an error.
   9860    Use char because int might match the return type of a GCC
   9861    builtin and then its argument prototype would still apply.  */
   9862 #ifdef __cplusplus
   9863 extern "C"
   9864 #endif
   9865 char dlopen ();
   9866 int
   9867 main ()
   9868 {
   9869 return dlopen ();
   9870   ;
   9871   return 0;
   9872 }
   9873 _ACEOF
   9874 rm -f conftest.$ac_objext conftest$ac_exeext
   9875 if { (ac_try="$ac_link"
   9876 case "(($ac_try" in
   9877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9878   *) ac_try_echo=$ac_try;;
   9879 esac
   9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9881   (eval "$ac_link") 2>conftest.er1
   9882   ac_status=$?
   9883   grep -v '^ *+' conftest.er1 >conftest.err
   9884   rm -f conftest.er1
   9885   cat conftest.err >&5
   9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9887   (exit $ac_status); } &&
   9888 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9889   { (case "(($ac_try" in
   9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9891   *) ac_try_echo=$ac_try;;
   9892 esac
   9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9894   (eval "$ac_try") 2>&5
   9895   ac_status=$?
   9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9897   (exit $ac_status); }; } &&
   9898 	 { ac_try='test -s conftest$ac_exeext'
   9899   { (case "(($ac_try" in
   9900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9901   *) ac_try_echo=$ac_try;;
   9902 esac
   9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9904   (eval "$ac_try") 2>&5
   9905   ac_status=$?
   9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9907   (exit $ac_status); }; }; then
   9908   ac_cv_lib_dl_dlopen=yes
   9909 else
   9910   echo "$as_me: failed program was:" >&5
   9911 sed 's/^/| /' conftest.$ac_ext >&5
   9912 
   9913 	ac_cv_lib_dl_dlopen=no
   9914 fi
   9915 
   9916 rm -f core conftest.err conftest.$ac_objext \
   9917       conftest$ac_exeext conftest.$ac_ext
   9918 LIBS=$ac_check_lib_save_LIBS
   9919 fi
   9920 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   9921 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   9922 if test $ac_cv_lib_dl_dlopen = yes; then
   9923 
   9924 cat >>confdefs.h <<\_ACEOF
   9925 #define HAVE_LIBDL 1
   9926 _ACEOF
   9927 
   9928 	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
   9929 else
   9930   cat >conftest.$ac_ext <<_ACEOF
   9931 /* confdefs.h.  */
   9932 _ACEOF
   9933 cat confdefs.h >>conftest.$ac_ext
   9934 cat >>conftest.$ac_ext <<_ACEOF
   9935 /* end confdefs.h.  */
   9936 #if HAVE_DLFCN_H
   9937 #  include <dlfcn.h>
   9938 #endif
   9939 
   9940 int
   9941 main ()
   9942 {
   9943 dlopen(0, 0);
   9944   ;
   9945   return 0;
   9946 }
   9947 _ACEOF
   9948 rm -f conftest.$ac_objext conftest$ac_exeext
   9949 if { (ac_try="$ac_link"
   9950 case "(($ac_try" in
   9951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9952   *) ac_try_echo=$ac_try;;
   9953 esac
   9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9955   (eval "$ac_link") 2>conftest.er1
   9956   ac_status=$?
   9957   grep -v '^ *+' conftest.er1 >conftest.err
   9958   rm -f conftest.er1
   9959   cat conftest.err >&5
   9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9961   (exit $ac_status); } &&
   9962 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9963   { (case "(($ac_try" in
   9964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9965   *) ac_try_echo=$ac_try;;
   9966 esac
   9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9968   (eval "$ac_try") 2>&5
   9969   ac_status=$?
   9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9971   (exit $ac_status); }; } &&
   9972 	 { ac_try='test -s conftest$ac_exeext'
   9973   { (case "(($ac_try" in
   9974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9975   *) ac_try_echo=$ac_try;;
   9976 esac
   9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9978   (eval "$ac_try") 2>&5
   9979   ac_status=$?
   9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9981   (exit $ac_status); }; }; then
   9982 
   9983 cat >>confdefs.h <<\_ACEOF
   9984 #define HAVE_LIBDL 1
   9985 _ACEOF
   9986  libltdl_cv_func_dlopen="yes"
   9987 else
   9988   echo "$as_me: failed program was:" >&5
   9989 sed 's/^/| /' conftest.$ac_ext >&5
   9990 
   9991 	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
   9992 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
   9993 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
   9994   echo $ECHO_N "(cached) $ECHO_C" >&6
   9995 else
   9996   ac_check_lib_save_LIBS=$LIBS
   9997 LIBS="-lsvld  $LIBS"
   9998 cat >conftest.$ac_ext <<_ACEOF
   9999 /* confdefs.h.  */
   10000 _ACEOF
   10001 cat confdefs.h >>conftest.$ac_ext
   10002 cat >>conftest.$ac_ext <<_ACEOF
   10003 /* end confdefs.h.  */
   10004 
   10005 /* Override any GCC internal prototype to avoid an error.
   10006    Use char because int might match the return type of a GCC
   10007    builtin and then its argument prototype would still apply.  */
   10008 #ifdef __cplusplus
   10009 extern "C"
   10010 #endif
   10011 char dlopen ();
   10012 int
   10013 main ()
   10014 {
   10015 return dlopen ();
   10016   ;
   10017   return 0;
   10018 }
   10019 _ACEOF
   10020 rm -f conftest.$ac_objext conftest$ac_exeext
   10021 if { (ac_try="$ac_link"
   10022 case "(($ac_try" in
   10023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10024   *) ac_try_echo=$ac_try;;
   10025 esac
   10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10027   (eval "$ac_link") 2>conftest.er1
   10028   ac_status=$?
   10029   grep -v '^ *+' conftest.er1 >conftest.err
   10030   rm -f conftest.er1
   10031   cat conftest.err >&5
   10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10033   (exit $ac_status); } &&
   10034 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10035   { (case "(($ac_try" in
   10036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10037   *) ac_try_echo=$ac_try;;
   10038 esac
   10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10040   (eval "$ac_try") 2>&5
   10041   ac_status=$?
   10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10043   (exit $ac_status); }; } &&
   10044 	 { ac_try='test -s conftest$ac_exeext'
   10045   { (case "(($ac_try" in
   10046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10047   *) ac_try_echo=$ac_try;;
   10048 esac
   10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10050   (eval "$ac_try") 2>&5
   10051   ac_status=$?
   10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10053   (exit $ac_status); }; }; then
   10054   ac_cv_lib_svld_dlopen=yes
   10055 else
   10056   echo "$as_me: failed program was:" >&5
   10057 sed 's/^/| /' conftest.$ac_ext >&5
   10058 
   10059 	ac_cv_lib_svld_dlopen=no
   10060 fi
   10061 
   10062 rm -f core conftest.err conftest.$ac_objext \
   10063       conftest$ac_exeext conftest.$ac_ext
   10064 LIBS=$ac_check_lib_save_LIBS
   10065 fi
   10066 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
   10067 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
   10068 if test $ac_cv_lib_svld_dlopen = yes; then
   10069 
   10070 cat >>confdefs.h <<\_ACEOF
   10071 #define HAVE_LIBDL 1
   10072 _ACEOF
   10073 
   10074 	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
   10075 else
   10076   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
   10077 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
   10078 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
   10079   echo $ECHO_N "(cached) $ECHO_C" >&6
   10080 else
   10081   ac_check_lib_save_LIBS=$LIBS
   10082 LIBS="-ldld  $LIBS"
   10083 cat >conftest.$ac_ext <<_ACEOF
   10084 /* confdefs.h.  */
   10085 _ACEOF
   10086 cat confdefs.h >>conftest.$ac_ext
   10087 cat >>conftest.$ac_ext <<_ACEOF
   10088 /* end confdefs.h.  */
   10089 
   10090 /* Override any GCC internal prototype to avoid an error.
   10091    Use char because int might match the return type of a GCC
   10092    builtin and then its argument prototype would still apply.  */
   10093 #ifdef __cplusplus
   10094 extern "C"
   10095 #endif
   10096 char dld_link ();
   10097 int
   10098 main ()
   10099 {
   10100 return dld_link ();
   10101   ;
   10102   return 0;
   10103 }
   10104 _ACEOF
   10105 rm -f conftest.$ac_objext conftest$ac_exeext
   10106 if { (ac_try="$ac_link"
   10107 case "(($ac_try" in
   10108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10109   *) ac_try_echo=$ac_try;;
   10110 esac
   10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10112   (eval "$ac_link") 2>conftest.er1
   10113   ac_status=$?
   10114   grep -v '^ *+' conftest.er1 >conftest.err
   10115   rm -f conftest.er1
   10116   cat conftest.err >&5
   10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10118   (exit $ac_status); } &&
   10119 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10120   { (case "(($ac_try" in
   10121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10122   *) ac_try_echo=$ac_try;;
   10123 esac
   10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10125   (eval "$ac_try") 2>&5
   10126   ac_status=$?
   10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10128   (exit $ac_status); }; } &&
   10129 	 { ac_try='test -s conftest$ac_exeext'
   10130   { (case "(($ac_try" in
   10131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10132   *) ac_try_echo=$ac_try;;
   10133 esac
   10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10135   (eval "$ac_try") 2>&5
   10136   ac_status=$?
   10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10138   (exit $ac_status); }; }; then
   10139   ac_cv_lib_dld_dld_link=yes
   10140 else
   10141   echo "$as_me: failed program was:" >&5
   10142 sed 's/^/| /' conftest.$ac_ext >&5
   10143 
   10144 	ac_cv_lib_dld_dld_link=no
   10145 fi
   10146 
   10147 rm -f core conftest.err conftest.$ac_objext \
   10148       conftest$ac_exeext conftest.$ac_ext
   10149 LIBS=$ac_check_lib_save_LIBS
   10150 fi
   10151 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
   10152 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
   10153 if test $ac_cv_lib_dld_dld_link = yes; then
   10154 
   10155 cat >>confdefs.h <<\_ACEOF
   10156 #define HAVE_DLD 1
   10157 _ACEOF
   10158 
   10159 	 	LIBADD_DL="$LIBADD_DL -ldld"
   10160 else
   10161   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
   10162 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
   10163 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
   10164   echo $ECHO_N "(cached) $ECHO_C" >&6
   10165 else
   10166   cat >conftest.$ac_ext <<_ACEOF
   10167 /* confdefs.h.  */
   10168 _ACEOF
   10169 cat confdefs.h >>conftest.$ac_ext
   10170 cat >>conftest.$ac_ext <<_ACEOF
   10171 /* end confdefs.h.  */
   10172 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
   10173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10174 #define _dyld_func_lookup innocuous__dyld_func_lookup
   10175 
   10176 /* System header to define __stub macros and hopefully few prototypes,
   10177     which can conflict with char _dyld_func_lookup (); below.
   10178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10179     <limits.h> exists even on freestanding compilers.  */
   10180 
   10181 #ifdef __STDC__
   10182 # include <limits.h>
   10183 #else
   10184 # include <assert.h>
   10185 #endif
   10186 
   10187 #undef _dyld_func_lookup
   10188 
   10189 /* Override any GCC internal prototype to avoid an error.
   10190    Use char because int might match the return type of a GCC
   10191    builtin and then its argument prototype would still apply.  */
   10192 #ifdef __cplusplus
   10193 extern "C"
   10194 #endif
   10195 char _dyld_func_lookup ();
   10196 /* The GNU C library defines this for functions which it implements
   10197     to always fail with ENOSYS.  Some functions are actually named
   10198     something starting with __ and the normal name is an alias.  */
   10199 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
   10200 choke me
   10201 #endif
   10202 
   10203 int
   10204 main ()
   10205 {
   10206 return _dyld_func_lookup ();
   10207   ;
   10208   return 0;
   10209 }
   10210 _ACEOF
   10211 rm -f conftest.$ac_objext conftest$ac_exeext
   10212 if { (ac_try="$ac_link"
   10213 case "(($ac_try" in
   10214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10215   *) ac_try_echo=$ac_try;;
   10216 esac
   10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10218   (eval "$ac_link") 2>conftest.er1
   10219   ac_status=$?
   10220   grep -v '^ *+' conftest.er1 >conftest.err
   10221   rm -f conftest.er1
   10222   cat conftest.err >&5
   10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10224   (exit $ac_status); } &&
   10225 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10226   { (case "(($ac_try" in
   10227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10228   *) ac_try_echo=$ac_try;;
   10229 esac
   10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10231   (eval "$ac_try") 2>&5
   10232   ac_status=$?
   10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10234   (exit $ac_status); }; } &&
   10235 	 { ac_try='test -s conftest$ac_exeext'
   10236   { (case "(($ac_try" in
   10237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10238   *) ac_try_echo=$ac_try;;
   10239 esac
   10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10241   (eval "$ac_try") 2>&5
   10242   ac_status=$?
   10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10244   (exit $ac_status); }; }; then
   10245   ac_cv_func__dyld_func_lookup=yes
   10246 else
   10247   echo "$as_me: failed program was:" >&5
   10248 sed 's/^/| /' conftest.$ac_ext >&5
   10249 
   10250 	ac_cv_func__dyld_func_lookup=no
   10251 fi
   10252 
   10253 rm -f core conftest.err conftest.$ac_objext \
   10254       conftest$ac_exeext conftest.$ac_ext
   10255 fi
   10256 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
   10257 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
   10258 if test $ac_cv_func__dyld_func_lookup = yes; then
   10259 
   10260 cat >>confdefs.h <<\_ACEOF
   10261 #define HAVE_DYLD 1
   10262 _ACEOF
   10263 
   10264 fi
   10265 
   10266 
   10267 fi
   10268 
   10269 
   10270 fi
   10271 
   10272 
   10273 fi
   10274 
   10275 rm -f core conftest.err conftest.$ac_objext \
   10276       conftest$ac_exeext conftest.$ac_ext
   10277 
   10278 fi
   10279 
   10280 
   10281 fi
   10282 
   10283 
   10284 fi
   10285 
   10286 
   10287 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
   10288 then
   10289   lt_save_LIBS="$LIBS"
   10290   LIBS="$LIBS $LIBADD_DL"
   10291 
   10292 for ac_func in dlerror
   10293 do
   10294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   10296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   10297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   10298   echo $ECHO_N "(cached) $ECHO_C" >&6
   10299 else
   10300   cat >conftest.$ac_ext <<_ACEOF
   10301 /* confdefs.h.  */
   10302 _ACEOF
   10303 cat confdefs.h >>conftest.$ac_ext
   10304 cat >>conftest.$ac_ext <<_ACEOF
   10305 /* end confdefs.h.  */
   10306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   10307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10308 #define $ac_func innocuous_$ac_func
   10309 
   10310 /* System header to define __stub macros and hopefully few prototypes,
   10311     which can conflict with char $ac_func (); below.
   10312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10313     <limits.h> exists even on freestanding compilers.  */
   10314 
   10315 #ifdef __STDC__
   10316 # include <limits.h>
   10317 #else
   10318 # include <assert.h>
   10319 #endif
   10320 
   10321 #undef $ac_func
   10322 
   10323 /* Override any GCC internal prototype to avoid an error.
   10324    Use char because int might match the return type of a GCC
   10325    builtin and then its argument prototype would still apply.  */
   10326 #ifdef __cplusplus
   10327 extern "C"
   10328 #endif
   10329 char $ac_func ();
   10330 /* The GNU C library defines this for functions which it implements
   10331     to always fail with ENOSYS.  Some functions are actually named
   10332     something starting with __ and the normal name is an alias.  */
   10333 #if defined __stub_$ac_func || defined __stub___$ac_func
   10334 choke me
   10335 #endif
   10336 
   10337 int
   10338 main ()
   10339 {
   10340 return $ac_func ();
   10341   ;
   10342   return 0;
   10343 }
   10344 _ACEOF
   10345 rm -f conftest.$ac_objext conftest$ac_exeext
   10346 if { (ac_try="$ac_link"
   10347 case "(($ac_try" in
   10348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10349   *) ac_try_echo=$ac_try;;
   10350 esac
   10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10352   (eval "$ac_link") 2>conftest.er1
   10353   ac_status=$?
   10354   grep -v '^ *+' conftest.er1 >conftest.err
   10355   rm -f conftest.er1
   10356   cat conftest.err >&5
   10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10358   (exit $ac_status); } &&
   10359 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10360   { (case "(($ac_try" in
   10361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10362   *) ac_try_echo=$ac_try;;
   10363 esac
   10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10365   (eval "$ac_try") 2>&5
   10366   ac_status=$?
   10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10368   (exit $ac_status); }; } &&
   10369 	 { ac_try='test -s conftest$ac_exeext'
   10370   { (case "(($ac_try" in
   10371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10372   *) ac_try_echo=$ac_try;;
   10373 esac
   10374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10375   (eval "$ac_try") 2>&5
   10376   ac_status=$?
   10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10378   (exit $ac_status); }; }; then
   10379   eval "$as_ac_var=yes"
   10380 else
   10381   echo "$as_me: failed program was:" >&5
   10382 sed 's/^/| /' conftest.$ac_ext >&5
   10383 
   10384 	eval "$as_ac_var=no"
   10385 fi
   10386 
   10387 rm -f core conftest.err conftest.$ac_objext \
   10388       conftest$ac_exeext conftest.$ac_ext
   10389 fi
   10390 ac_res=`eval echo '${'$as_ac_var'}'`
   10391 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10392 echo "${ECHO_T}$ac_res" >&6; }
   10393 if test `eval echo '${'$as_ac_var'}'` = yes; then
   10394   cat >>confdefs.h <<_ACEOF
   10395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10396 _ACEOF
   10397 
   10398 fi
   10399 done
   10400 
   10401   LIBS="$lt_save_LIBS"
   10402 fi
   10403 ac_ext=c
   10404 ac_cpp='$CPP $CPPFLAGS'
   10405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   10408 
   10409 
   10410 
   10411 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
   10412 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
   10413 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
   10414   echo $ECHO_N "(cached) $ECHO_C" >&6
   10415 else
   10416   ac_cv_sys_symbol_underscore=no
   10417   cat > conftest.$ac_ext <<EOF
   10418 void nm_test_func(){}
   10419 int main(){nm_test_func;return 0;}
   10420 EOF
   10421   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   10422   (eval $ac_compile) 2>&5
   10423   ac_status=$?
   10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10425   (exit $ac_status); }; then
   10426     # Now try to grab the symbols.
   10427     ac_nlist=conftest.nm
   10428     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
   10429   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
   10430   ac_status=$?
   10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10432   (exit $ac_status); } && test -s "$ac_nlist"; then
   10433       # See whether the symbols have a leading underscore.
   10434       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
   10435         ac_cv_sys_symbol_underscore=yes
   10436       else
   10437         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
   10438 	  :
   10439         else
   10440 	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
   10441         fi
   10442       fi
   10443     else
   10444       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
   10445     fi
   10446   else
   10447     echo "configure: failed program was:" >&5
   10448     cat conftest.c >&5
   10449   fi
   10450   rm -rf conftest*
   10451 
   10452 fi
   10453 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
   10454 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
   10455 
   10456 
   10457 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
   10458   if test x"$libltdl_cv_func_dlopen" = xyes ||
   10459      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
   10460 	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
   10461 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
   10462 if test "${libltdl_cv_need_uscore+set}" = set; then
   10463   echo $ECHO_N "(cached) $ECHO_C" >&6
   10464 else
   10465   libltdl_cv_need_uscore=unknown
   10466           save_LIBS="$LIBS"
   10467           LIBS="$LIBS $LIBADD_DL"
   10468 	  if test "$cross_compiling" = yes; then :
   10469   libltdl_cv_need_uscore=cross
   10470 else
   10471   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   10472   lt_status=$lt_dlunknown
   10473   cat > conftest.$ac_ext <<EOF
   10474 #line 10474 "configure"
   10475 #include "confdefs.h"
   10476 
   10477 #if HAVE_DLFCN_H
   10478 #include <dlfcn.h>
   10479 #endif
   10480 
   10481 #include <stdio.h>
   10482 
   10483 #ifdef RTLD_GLOBAL
   10484 #  define LT_DLGLOBAL		RTLD_GLOBAL
   10485 #else
   10486 #  ifdef DL_GLOBAL
   10487 #    define LT_DLGLOBAL		DL_GLOBAL
   10488 #  else
   10489 #    define LT_DLGLOBAL		0
   10490 #  endif
   10491 #endif
   10492 
   10493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   10494    find out it does not work in some platform. */
   10495 #ifndef LT_DLLAZY_OR_NOW
   10496 #  ifdef RTLD_LAZY
   10497 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   10498 #  else
   10499 #    ifdef DL_LAZY
   10500 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   10501 #    else
   10502 #      ifdef RTLD_NOW
   10503 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   10504 #      else
   10505 #        ifdef DL_NOW
   10506 #          define LT_DLLAZY_OR_NOW	DL_NOW
   10507 #        else
   10508 #          define LT_DLLAZY_OR_NOW	0
   10509 #        endif
   10510 #      endif
   10511 #    endif
   10512 #  endif
   10513 #endif
   10514 
   10515 #ifdef __cplusplus
   10516 extern "C" void exit (int);
   10517 #endif
   10518 
   10519 void fnord() { int i=42;}
   10520 int main ()
   10521 {
   10522   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   10523   int status = $lt_dlunknown;
   10524 
   10525   if (self)
   10526     {
   10527       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   10528       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   10529       /* dlclose (self); */
   10530     }
   10531   else
   10532     puts (dlerror ());
   10533 
   10534     exit (status);
   10535 }
   10536 EOF
   10537   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   10538   (eval $ac_link) 2>&5
   10539   ac_status=$?
   10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10541   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   10542     (./conftest; exit; ) >&5 2>/dev/null
   10543     lt_status=$?
   10544     case x$lt_status in
   10545       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
   10546       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
   10547       x$lt_dlunknown|x*)  ;;
   10548     esac
   10549   else :
   10550     # compilation failed
   10551 
   10552   fi
   10553 fi
   10554 rm -fr conftest*
   10555 
   10556 	  LIBS="$save_LIBS"
   10557 
   10558 fi
   10559 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
   10560 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
   10561   fi
   10562 fi
   10563 
   10564 if test x"$libltdl_cv_need_uscore" = xyes; then
   10565 
   10566 cat >>confdefs.h <<\_ACEOF
   10567 #define NEED_USCORE 1
   10568 _ACEOF
   10569 
   10570 fi
   10571 
   10572 
   10573 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
   10574 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
   10575 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
   10576   echo $ECHO_N "(cached) $ECHO_C" >&6
   10577 else
   10578   # PORTME does your system automatically load deplibs for dlopen?
   10579   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
   10580   # For now, we just catch OSes we know something about -- in the
   10581   # future, we'll try test this programmatically.
   10582   libltdl_cv_sys_dlopen_deplibs=unknown
   10583   case "$host_os" in
   10584   aix3*|aix4.1.*|aix4.2.*)
   10585     # Unknown whether this is true for these versions of AIX, but
   10586     # we want this `case' here to explicitly catch those versions.
   10587     libltdl_cv_sys_dlopen_deplibs=unknown
   10588     ;;
   10589   aix[45]*)
   10590     libltdl_cv_sys_dlopen_deplibs=yes
   10591     ;;
   10592   darwin*)
   10593     # Assuming the user has installed a libdl from somewhere, this is true
   10594     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
   10595     libltdl_cv_sys_dlopen_deplibs=yes
   10596     ;;
   10597   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
   10598     # GNU and its variants, using gnu ld.so (Glibc)
   10599     libltdl_cv_sys_dlopen_deplibs=yes
   10600     ;;
   10601   hpux10*|hpux11*)
   10602     libltdl_cv_sys_dlopen_deplibs=yes
   10603     ;;
   10604   interix*)
   10605     libltdl_cv_sys_dlopen_deplibs=yes
   10606     ;;
   10607   irix[12345]*|irix6.[01]*)
   10608     # Catch all versions of IRIX before 6.2, and indicate that we don't
   10609     # know how it worked for any of those versions.
   10610     libltdl_cv_sys_dlopen_deplibs=unknown
   10611     ;;
   10612   irix*)
   10613     # The case above catches anything before 6.2, and it's known that
   10614     # at 6.2 and later dlopen does load deplibs.
   10615     libltdl_cv_sys_dlopen_deplibs=yes
   10616     ;;
   10617   netbsd*)
   10618     libltdl_cv_sys_dlopen_deplibs=yes
   10619     ;;
   10620   openbsd*)
   10621     libltdl_cv_sys_dlopen_deplibs=yes
   10622     ;;
   10623   osf[1234]*)
   10624     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
   10625     # it did *not* use an RPATH in a shared library to find objects the
   10626     # library depends on, so we explicitly say `no'.
   10627     libltdl_cv_sys_dlopen_deplibs=no
   10628     ;;
   10629   osf5.0|osf5.0a|osf5.1)
   10630     # dlopen *does* load deplibs and with the right loader patch applied
   10631     # it even uses RPATH in a shared library to search for shared objects
   10632     # that the library depends on, but there's no easy way to know if that
   10633     # patch is installed.  Since this is the case, all we can really
   10634     # say is unknown -- it depends on the patch being installed.  If
   10635     # it is, this changes to `yes'.  Without it, it would be `no'.
   10636     libltdl_cv_sys_dlopen_deplibs=unknown
   10637     ;;
   10638   osf*)
   10639     # the two cases above should catch all versions of osf <= 5.1.  Read
   10640     # the comments above for what we know about them.
   10641     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
   10642     # is used to find them so we can finally say `yes'.
   10643     libltdl_cv_sys_dlopen_deplibs=yes
   10644     ;;
   10645   solaris*)
   10646     libltdl_cv_sys_dlopen_deplibs=yes
   10647     ;;
   10648   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   10649     libltdl_cv_sys_dlopen_deplibs=yes
   10650     ;;
   10651   esac
   10652 
   10653 fi
   10654 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
   10655 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
   10656 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
   10657 
   10658 cat >>confdefs.h <<\_ACEOF
   10659 #define LTDL_DLOPEN_DEPLIBS 1
   10660 _ACEOF
   10661 
   10662 fi
   10663 
   10664 
   10665 for ac_header in argz.h
   10666 do
   10667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10669   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10672   echo $ECHO_N "(cached) $ECHO_C" >&6
   10673 fi
   10674 ac_res=`eval echo '${'$as_ac_Header'}'`
   10675 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10676 echo "${ECHO_T}$ac_res" >&6; }
   10677 else
   10678   # Is the header compilable?
   10679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   10681 cat >conftest.$ac_ext <<_ACEOF
   10682 /* confdefs.h.  */
   10683 _ACEOF
   10684 cat confdefs.h >>conftest.$ac_ext
   10685 cat >>conftest.$ac_ext <<_ACEOF
   10686 /* end confdefs.h.  */
   10687 $ac_includes_default
   10688 #include <$ac_header>
   10689 _ACEOF
   10690 rm -f conftest.$ac_objext
   10691 if { (ac_try="$ac_compile"
   10692 case "(($ac_try" in
   10693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10694   *) ac_try_echo=$ac_try;;
   10695 esac
   10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10697   (eval "$ac_compile") 2>conftest.er1
   10698   ac_status=$?
   10699   grep -v '^ *+' conftest.er1 >conftest.err
   10700   rm -f conftest.er1
   10701   cat conftest.err >&5
   10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10703   (exit $ac_status); } &&
   10704 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10705   { (case "(($ac_try" in
   10706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10707   *) ac_try_echo=$ac_try;;
   10708 esac
   10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10710   (eval "$ac_try") 2>&5
   10711   ac_status=$?
   10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10713   (exit $ac_status); }; } &&
   10714 	 { ac_try='test -s conftest.$ac_objext'
   10715   { (case "(($ac_try" in
   10716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10717   *) ac_try_echo=$ac_try;;
   10718 esac
   10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10720   (eval "$ac_try") 2>&5
   10721   ac_status=$?
   10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10723   (exit $ac_status); }; }; then
   10724   ac_header_compiler=yes
   10725 else
   10726   echo "$as_me: failed program was:" >&5
   10727 sed 's/^/| /' conftest.$ac_ext >&5
   10728 
   10729 	ac_header_compiler=no
   10730 fi
   10731 
   10732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10734 echo "${ECHO_T}$ac_header_compiler" >&6; }
   10735 
   10736 # Is the header present?
   10737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   10739 cat >conftest.$ac_ext <<_ACEOF
   10740 /* confdefs.h.  */
   10741 _ACEOF
   10742 cat confdefs.h >>conftest.$ac_ext
   10743 cat >>conftest.$ac_ext <<_ACEOF
   10744 /* end confdefs.h.  */
   10745 #include <$ac_header>
   10746 _ACEOF
   10747 if { (ac_try="$ac_cpp conftest.$ac_ext"
   10748 case "(($ac_try" in
   10749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10750   *) ac_try_echo=$ac_try;;
   10751 esac
   10752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10754   ac_status=$?
   10755   grep -v '^ *+' conftest.er1 >conftest.err
   10756   rm -f conftest.er1
   10757   cat conftest.err >&5
   10758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10759   (exit $ac_status); } >/dev/null; then
   10760   if test -s conftest.err; then
   10761     ac_cpp_err=$ac_c_preproc_warn_flag
   10762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   10763   else
   10764     ac_cpp_err=
   10765   fi
   10766 else
   10767   ac_cpp_err=yes
   10768 fi
   10769 if test -z "$ac_cpp_err"; then
   10770   ac_header_preproc=yes
   10771 else
   10772   echo "$as_me: failed program was:" >&5
   10773 sed 's/^/| /' conftest.$ac_ext >&5
   10774 
   10775   ac_header_preproc=no
   10776 fi
   10777 
   10778 rm -f conftest.err conftest.$ac_ext
   10779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10780 echo "${ECHO_T}$ac_header_preproc" >&6; }
   10781 
   10782 # So?  What about this header?
   10783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   10784   yes:no: )
   10785     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   10786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   10788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   10789     ac_header_preproc=yes
   10790     ;;
   10791   no:yes:* )
   10792     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   10793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   10794     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   10795 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   10796     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   10797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   10798     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   10799 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   10800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   10802     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   10803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   10804     ( cat <<\_ASBOX
   10805 ## ----------------------------------- ##
   10806 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   10807 ## ----------------------------------- ##
   10808 _ASBOX
   10809      ) | sed "s/^/$as_me: WARNING:     /" >&2
   10810     ;;
   10811 esac
   10812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10815   echo $ECHO_N "(cached) $ECHO_C" >&6
   10816 else
   10817   eval "$as_ac_Header=\$ac_header_preproc"
   10818 fi
   10819 ac_res=`eval echo '${'$as_ac_Header'}'`
   10820 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10821 echo "${ECHO_T}$ac_res" >&6; }
   10822 
   10823 fi
   10824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   10825   cat >>confdefs.h <<_ACEOF
   10826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10827 _ACEOF
   10828 
   10829 fi
   10830 
   10831 done
   10832 
   10833 
   10834 { echo "$as_me:$LINENO: checking for error_t" >&5
   10835 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
   10836 if test "${ac_cv_type_error_t+set}" = set; then
   10837   echo $ECHO_N "(cached) $ECHO_C" >&6
   10838 else
   10839   cat >conftest.$ac_ext <<_ACEOF
   10840 /* confdefs.h.  */
   10841 _ACEOF
   10842 cat confdefs.h >>conftest.$ac_ext
   10843 cat >>conftest.$ac_ext <<_ACEOF
   10844 /* end confdefs.h.  */
   10845 #if HAVE_ARGZ_H
   10846 #  include <argz.h>
   10847 #endif
   10848 
   10849 typedef error_t ac__type_new_;
   10850 int
   10851 main ()
   10852 {
   10853 if ((ac__type_new_ *) 0)
   10854   return 0;
   10855 if (sizeof (ac__type_new_))
   10856   return 0;
   10857   ;
   10858   return 0;
   10859 }
   10860 _ACEOF
   10861 rm -f conftest.$ac_objext
   10862 if { (ac_try="$ac_compile"
   10863 case "(($ac_try" in
   10864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10865   *) ac_try_echo=$ac_try;;
   10866 esac
   10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10868   (eval "$ac_compile") 2>conftest.er1
   10869   ac_status=$?
   10870   grep -v '^ *+' conftest.er1 >conftest.err
   10871   rm -f conftest.er1
   10872   cat conftest.err >&5
   10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10874   (exit $ac_status); } &&
   10875 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10876   { (case "(($ac_try" in
   10877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10878   *) ac_try_echo=$ac_try;;
   10879 esac
   10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10881   (eval "$ac_try") 2>&5
   10882   ac_status=$?
   10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10884   (exit $ac_status); }; } &&
   10885 	 { ac_try='test -s conftest.$ac_objext'
   10886   { (case "(($ac_try" in
   10887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10888   *) ac_try_echo=$ac_try;;
   10889 esac
   10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10891   (eval "$ac_try") 2>&5
   10892   ac_status=$?
   10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10894   (exit $ac_status); }; }; then
   10895   ac_cv_type_error_t=yes
   10896 else
   10897   echo "$as_me: failed program was:" >&5
   10898 sed 's/^/| /' conftest.$ac_ext >&5
   10899 
   10900 	ac_cv_type_error_t=no
   10901 fi
   10902 
   10903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10904 fi
   10905 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
   10906 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
   10907 if test $ac_cv_type_error_t = yes; then
   10908 
   10909 cat >>confdefs.h <<_ACEOF
   10910 #define HAVE_ERROR_T 1
   10911 _ACEOF
   10912 
   10913 
   10914 else
   10915 
   10916 cat >>confdefs.h <<\_ACEOF
   10917 #define error_t int
   10918 _ACEOF
   10919 
   10920 fi
   10921 
   10922 
   10923 
   10924 
   10925 
   10926 
   10927 
   10928 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
   10929 do
   10930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10931 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   10932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   10933 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   10934   echo $ECHO_N "(cached) $ECHO_C" >&6
   10935 else
   10936   cat >conftest.$ac_ext <<_ACEOF
   10937 /* confdefs.h.  */
   10938 _ACEOF
   10939 cat confdefs.h >>conftest.$ac_ext
   10940 cat >>conftest.$ac_ext <<_ACEOF
   10941 /* end confdefs.h.  */
   10942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   10943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10944 #define $ac_func innocuous_$ac_func
   10945 
   10946 /* System header to define __stub macros and hopefully few prototypes,
   10947     which can conflict with char $ac_func (); below.
   10948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10949     <limits.h> exists even on freestanding compilers.  */
   10950 
   10951 #ifdef __STDC__
   10952 # include <limits.h>
   10953 #else
   10954 # include <assert.h>
   10955 #endif
   10956 
   10957 #undef $ac_func
   10958 
   10959 /* Override any GCC internal prototype to avoid an error.
   10960    Use char because int might match the return type of a GCC
   10961    builtin and then its argument prototype would still apply.  */
   10962 #ifdef __cplusplus
   10963 extern "C"
   10964 #endif
   10965 char $ac_func ();
   10966 /* The GNU C library defines this for functions which it implements
   10967     to always fail with ENOSYS.  Some functions are actually named
   10968     something starting with __ and the normal name is an alias.  */
   10969 #if defined __stub_$ac_func || defined __stub___$ac_func
   10970 choke me
   10971 #endif
   10972 
   10973 int
   10974 main ()
   10975 {
   10976 return $ac_func ();
   10977   ;
   10978   return 0;
   10979 }
   10980 _ACEOF
   10981 rm -f conftest.$ac_objext conftest$ac_exeext
   10982 if { (ac_try="$ac_link"
   10983 case "(($ac_try" in
   10984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10985   *) ac_try_echo=$ac_try;;
   10986 esac
   10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10988   (eval "$ac_link") 2>conftest.er1
   10989   ac_status=$?
   10990   grep -v '^ *+' conftest.er1 >conftest.err
   10991   rm -f conftest.er1
   10992   cat conftest.err >&5
   10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10994   (exit $ac_status); } &&
   10995 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10996   { (case "(($ac_try" in
   10997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10998   *) ac_try_echo=$ac_try;;
   10999 esac
   11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11001   (eval "$ac_try") 2>&5
   11002   ac_status=$?
   11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11004   (exit $ac_status); }; } &&
   11005 	 { ac_try='test -s conftest$ac_exeext'
   11006   { (case "(($ac_try" in
   11007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11008   *) ac_try_echo=$ac_try;;
   11009 esac
   11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11011   (eval "$ac_try") 2>&5
   11012   ac_status=$?
   11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11014   (exit $ac_status); }; }; then
   11015   eval "$as_ac_var=yes"
   11016 else
   11017   echo "$as_me: failed program was:" >&5
   11018 sed 's/^/| /' conftest.$ac_ext >&5
   11019 
   11020 	eval "$as_ac_var=no"
   11021 fi
   11022 
   11023 rm -f core conftest.err conftest.$ac_objext \
   11024       conftest$ac_exeext conftest.$ac_ext
   11025 fi
   11026 ac_res=`eval echo '${'$as_ac_var'}'`
   11027 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11028 echo "${ECHO_T}$ac_res" >&6; }
   11029 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11030   cat >>confdefs.h <<_ACEOF
   11031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11032 _ACEOF
   11033 
   11034 fi
   11035 done
   11036 
   11037 
   11038 
   11039 
   11040 
   11041 
   11042 
   11043 
   11044 
   11045 
   11046 
   11047 
   11048 
   11049 
   11050 
   11051 
   11052 
   11053 
   11054 
   11055 
   11056 
   11057 
   11058 
   11059 
   11060 
   11061 
   11062 
   11063 
   11064 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
   11065 		  stdio.h unistd.h
   11066 do
   11067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11069   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11072   echo $ECHO_N "(cached) $ECHO_C" >&6
   11073 fi
   11074 ac_res=`eval echo '${'$as_ac_Header'}'`
   11075 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11076 echo "${ECHO_T}$ac_res" >&6; }
   11077 else
   11078   # Is the header compilable?
   11079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   11080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   11081 cat >conftest.$ac_ext <<_ACEOF
   11082 /* confdefs.h.  */
   11083 _ACEOF
   11084 cat confdefs.h >>conftest.$ac_ext
   11085 cat >>conftest.$ac_ext <<_ACEOF
   11086 /* end confdefs.h.  */
   11087 $ac_includes_default
   11088 #include <$ac_header>
   11089 _ACEOF
   11090 rm -f conftest.$ac_objext
   11091 if { (ac_try="$ac_compile"
   11092 case "(($ac_try" in
   11093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11094   *) ac_try_echo=$ac_try;;
   11095 esac
   11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11097   (eval "$ac_compile") 2>conftest.er1
   11098   ac_status=$?
   11099   grep -v '^ *+' conftest.er1 >conftest.err
   11100   rm -f conftest.er1
   11101   cat conftest.err >&5
   11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11103   (exit $ac_status); } &&
   11104 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11105   { (case "(($ac_try" in
   11106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11107   *) ac_try_echo=$ac_try;;
   11108 esac
   11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11110   (eval "$ac_try") 2>&5
   11111   ac_status=$?
   11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11113   (exit $ac_status); }; } &&
   11114 	 { ac_try='test -s conftest.$ac_objext'
   11115   { (case "(($ac_try" in
   11116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11117   *) ac_try_echo=$ac_try;;
   11118 esac
   11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11120   (eval "$ac_try") 2>&5
   11121   ac_status=$?
   11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11123   (exit $ac_status); }; }; then
   11124   ac_header_compiler=yes
   11125 else
   11126   echo "$as_me: failed program was:" >&5
   11127 sed 's/^/| /' conftest.$ac_ext >&5
   11128 
   11129 	ac_header_compiler=no
   11130 fi
   11131 
   11132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   11134 echo "${ECHO_T}$ac_header_compiler" >&6; }
   11135 
   11136 # Is the header present?
   11137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   11138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   11139 cat >conftest.$ac_ext <<_ACEOF
   11140 /* confdefs.h.  */
   11141 _ACEOF
   11142 cat confdefs.h >>conftest.$ac_ext
   11143 cat >>conftest.$ac_ext <<_ACEOF
   11144 /* end confdefs.h.  */
   11145 #include <$ac_header>
   11146 _ACEOF
   11147 if { (ac_try="$ac_cpp conftest.$ac_ext"
   11148 case "(($ac_try" in
   11149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11150   *) ac_try_echo=$ac_try;;
   11151 esac
   11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11153   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   11154   ac_status=$?
   11155   grep -v '^ *+' conftest.er1 >conftest.err
   11156   rm -f conftest.er1
   11157   cat conftest.err >&5
   11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11159   (exit $ac_status); } >/dev/null; then
   11160   if test -s conftest.err; then
   11161     ac_cpp_err=$ac_c_preproc_warn_flag
   11162     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   11163   else
   11164     ac_cpp_err=
   11165   fi
   11166 else
   11167   ac_cpp_err=yes
   11168 fi
   11169 if test -z "$ac_cpp_err"; then
   11170   ac_header_preproc=yes
   11171 else
   11172   echo "$as_me: failed program was:" >&5
   11173 sed 's/^/| /' conftest.$ac_ext >&5
   11174 
   11175   ac_header_preproc=no
   11176 fi
   11177 
   11178 rm -f conftest.err conftest.$ac_ext
   11179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   11180 echo "${ECHO_T}$ac_header_preproc" >&6; }
   11181 
   11182 # So?  What about this header?
   11183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   11184   yes:no: )
   11185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   11186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   11187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   11188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   11189     ac_header_preproc=yes
   11190     ;;
   11191   no:yes:* )
   11192     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   11193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   11194     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   11195 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   11196     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   11197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   11198     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   11199 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   11200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   11202     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   11203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   11204     ( cat <<\_ASBOX
   11205 ## ----------------------------------- ##
   11206 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   11207 ## ----------------------------------- ##
   11208 _ASBOX
   11209      ) | sed "s/^/$as_me: WARNING:     /" >&2
   11210     ;;
   11211 esac
   11212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11215   echo $ECHO_N "(cached) $ECHO_C" >&6
   11216 else
   11217   eval "$as_ac_Header=\$ac_header_preproc"
   11218 fi
   11219 ac_res=`eval echo '${'$as_ac_Header'}'`
   11220 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11221 echo "${ECHO_T}$ac_res" >&6; }
   11222 
   11223 fi
   11224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11225   cat >>confdefs.h <<_ACEOF
   11226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11227 _ACEOF
   11228 
   11229 fi
   11230 
   11231 done
   11232 
   11233 
   11234 
   11235 
   11236 
   11237 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
   11238 do
   11239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11241   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11244   echo $ECHO_N "(cached) $ECHO_C" >&6
   11245 fi
   11246 ac_res=`eval echo '${'$as_ac_Header'}'`
   11247 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11248 echo "${ECHO_T}$ac_res" >&6; }
   11249 else
   11250   # Is the header compilable?
   11251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   11252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   11253 cat >conftest.$ac_ext <<_ACEOF
   11254 /* confdefs.h.  */
   11255 _ACEOF
   11256 cat confdefs.h >>conftest.$ac_ext
   11257 cat >>conftest.$ac_ext <<_ACEOF
   11258 /* end confdefs.h.  */
   11259 $ac_includes_default
   11260 #include <$ac_header>
   11261 _ACEOF
   11262 rm -f conftest.$ac_objext
   11263 if { (ac_try="$ac_compile"
   11264 case "(($ac_try" in
   11265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11266   *) ac_try_echo=$ac_try;;
   11267 esac
   11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11269   (eval "$ac_compile") 2>conftest.er1
   11270   ac_status=$?
   11271   grep -v '^ *+' conftest.er1 >conftest.err
   11272   rm -f conftest.er1
   11273   cat conftest.err >&5
   11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11275   (exit $ac_status); } &&
   11276 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11277   { (case "(($ac_try" in
   11278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11279   *) ac_try_echo=$ac_try;;
   11280 esac
   11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11282   (eval "$ac_try") 2>&5
   11283   ac_status=$?
   11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11285   (exit $ac_status); }; } &&
   11286 	 { ac_try='test -s conftest.$ac_objext'
   11287   { (case "(($ac_try" in
   11288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11289   *) ac_try_echo=$ac_try;;
   11290 esac
   11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11292   (eval "$ac_try") 2>&5
   11293   ac_status=$?
   11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11295   (exit $ac_status); }; }; then
   11296   ac_header_compiler=yes
   11297 else
   11298   echo "$as_me: failed program was:" >&5
   11299 sed 's/^/| /' conftest.$ac_ext >&5
   11300 
   11301 	ac_header_compiler=no
   11302 fi
   11303 
   11304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   11306 echo "${ECHO_T}$ac_header_compiler" >&6; }
   11307 
   11308 # Is the header present?
   11309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   11310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   11311 cat >conftest.$ac_ext <<_ACEOF
   11312 /* confdefs.h.  */
   11313 _ACEOF
   11314 cat confdefs.h >>conftest.$ac_ext
   11315 cat >>conftest.$ac_ext <<_ACEOF
   11316 /* end confdefs.h.  */
   11317 #include <$ac_header>
   11318 _ACEOF
   11319 if { (ac_try="$ac_cpp conftest.$ac_ext"
   11320 case "(($ac_try" in
   11321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11322   *) ac_try_echo=$ac_try;;
   11323 esac
   11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11325   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   11326   ac_status=$?
   11327   grep -v '^ *+' conftest.er1 >conftest.err
   11328   rm -f conftest.er1
   11329   cat conftest.err >&5
   11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11331   (exit $ac_status); } >/dev/null; then
   11332   if test -s conftest.err; then
   11333     ac_cpp_err=$ac_c_preproc_warn_flag
   11334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   11335   else
   11336     ac_cpp_err=
   11337   fi
   11338 else
   11339   ac_cpp_err=yes
   11340 fi
   11341 if test -z "$ac_cpp_err"; then
   11342   ac_header_preproc=yes
   11343 else
   11344   echo "$as_me: failed program was:" >&5
   11345 sed 's/^/| /' conftest.$ac_ext >&5
   11346 
   11347   ac_header_preproc=no
   11348 fi
   11349 
   11350 rm -f conftest.err conftest.$ac_ext
   11351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   11352 echo "${ECHO_T}$ac_header_preproc" >&6; }
   11353 
   11354 # So?  What about this header?
   11355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   11356   yes:no: )
   11357     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   11358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   11359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   11360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   11361     ac_header_preproc=yes
   11362     ;;
   11363   no:yes:* )
   11364     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   11365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   11366     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   11367 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   11368     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   11369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   11370     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   11371 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   11372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   11374     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   11375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   11376     ( cat <<\_ASBOX
   11377 ## ----------------------------------- ##
   11378 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   11379 ## ----------------------------------- ##
   11380 _ASBOX
   11381      ) | sed "s/^/$as_me: WARNING:     /" >&2
   11382     ;;
   11383 esac
   11384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11387   echo $ECHO_N "(cached) $ECHO_C" >&6
   11388 else
   11389   eval "$as_ac_Header=\$ac_header_preproc"
   11390 fi
   11391 ac_res=`eval echo '${'$as_ac_Header'}'`
   11392 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11393 echo "${ECHO_T}$ac_res" >&6; }
   11394 
   11395 fi
   11396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11397   cat >>confdefs.h <<_ACEOF
   11398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11399 _ACEOF
   11400 
   11401 fi
   11402 
   11403 done
   11404 
   11405 
   11406 
   11407 for ac_header in string.h strings.h
   11408 do
   11409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11411   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11414   echo $ECHO_N "(cached) $ECHO_C" >&6
   11415 fi
   11416 ac_res=`eval echo '${'$as_ac_Header'}'`
   11417 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11418 echo "${ECHO_T}$ac_res" >&6; }
   11419 else
   11420   # Is the header compilable?
   11421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   11422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   11423 cat >conftest.$ac_ext <<_ACEOF
   11424 /* confdefs.h.  */
   11425 _ACEOF
   11426 cat confdefs.h >>conftest.$ac_ext
   11427 cat >>conftest.$ac_ext <<_ACEOF
   11428 /* end confdefs.h.  */
   11429 $ac_includes_default
   11430 #include <$ac_header>
   11431 _ACEOF
   11432 rm -f conftest.$ac_objext
   11433 if { (ac_try="$ac_compile"
   11434 case "(($ac_try" in
   11435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11436   *) ac_try_echo=$ac_try;;
   11437 esac
   11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11439   (eval "$ac_compile") 2>conftest.er1
   11440   ac_status=$?
   11441   grep -v '^ *+' conftest.er1 >conftest.err
   11442   rm -f conftest.er1
   11443   cat conftest.err >&5
   11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11445   (exit $ac_status); } &&
   11446 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11447   { (case "(($ac_try" in
   11448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11449   *) ac_try_echo=$ac_try;;
   11450 esac
   11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11452   (eval "$ac_try") 2>&5
   11453   ac_status=$?
   11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11455   (exit $ac_status); }; } &&
   11456 	 { ac_try='test -s conftest.$ac_objext'
   11457   { (case "(($ac_try" in
   11458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11459   *) ac_try_echo=$ac_try;;
   11460 esac
   11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11462   (eval "$ac_try") 2>&5
   11463   ac_status=$?
   11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11465   (exit $ac_status); }; }; then
   11466   ac_header_compiler=yes
   11467 else
   11468   echo "$as_me: failed program was:" >&5
   11469 sed 's/^/| /' conftest.$ac_ext >&5
   11470 
   11471 	ac_header_compiler=no
   11472 fi
   11473 
   11474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   11476 echo "${ECHO_T}$ac_header_compiler" >&6; }
   11477 
   11478 # Is the header present?
   11479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   11480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   11481 cat >conftest.$ac_ext <<_ACEOF
   11482 /* confdefs.h.  */
   11483 _ACEOF
   11484 cat confdefs.h >>conftest.$ac_ext
   11485 cat >>conftest.$ac_ext <<_ACEOF
   11486 /* end confdefs.h.  */
   11487 #include <$ac_header>
   11488 _ACEOF
   11489 if { (ac_try="$ac_cpp conftest.$ac_ext"
   11490 case "(($ac_try" in
   11491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11492   *) ac_try_echo=$ac_try;;
   11493 esac
   11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   11496   ac_status=$?
   11497   grep -v '^ *+' conftest.er1 >conftest.err
   11498   rm -f conftest.er1
   11499   cat conftest.err >&5
   11500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11501   (exit $ac_status); } >/dev/null; then
   11502   if test -s conftest.err; then
   11503     ac_cpp_err=$ac_c_preproc_warn_flag
   11504     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   11505   else
   11506     ac_cpp_err=
   11507   fi
   11508 else
   11509   ac_cpp_err=yes
   11510 fi
   11511 if test -z "$ac_cpp_err"; then
   11512   ac_header_preproc=yes
   11513 else
   11514   echo "$as_me: failed program was:" >&5
   11515 sed 's/^/| /' conftest.$ac_ext >&5
   11516 
   11517   ac_header_preproc=no
   11518 fi
   11519 
   11520 rm -f conftest.err conftest.$ac_ext
   11521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   11522 echo "${ECHO_T}$ac_header_preproc" >&6; }
   11523 
   11524 # So?  What about this header?
   11525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   11526   yes:no: )
   11527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   11528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   11529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   11530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   11531     ac_header_preproc=yes
   11532     ;;
   11533   no:yes:* )
   11534     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   11535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   11536     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   11537 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   11538     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   11539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   11540     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   11541 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   11542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   11544     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   11545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   11546     ( cat <<\_ASBOX
   11547 ## ----------------------------------- ##
   11548 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   11549 ## ----------------------------------- ##
   11550 _ASBOX
   11551      ) | sed "s/^/$as_me: WARNING:     /" >&2
   11552     ;;
   11553 esac
   11554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11557   echo $ECHO_N "(cached) $ECHO_C" >&6
   11558 else
   11559   eval "$as_ac_Header=\$ac_header_preproc"
   11560 fi
   11561 ac_res=`eval echo '${'$as_ac_Header'}'`
   11562 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11563 echo "${ECHO_T}$ac_res" >&6; }
   11564 
   11565 fi
   11566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11567   cat >>confdefs.h <<_ACEOF
   11568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11569 _ACEOF
   11570  break
   11571 fi
   11572 
   11573 done
   11574 
   11575 
   11576 
   11577 
   11578 for ac_func in strchr index
   11579 do
   11580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11584   echo $ECHO_N "(cached) $ECHO_C" >&6
   11585 else
   11586   cat >conftest.$ac_ext <<_ACEOF
   11587 /* confdefs.h.  */
   11588 _ACEOF
   11589 cat confdefs.h >>conftest.$ac_ext
   11590 cat >>conftest.$ac_ext <<_ACEOF
   11591 /* end confdefs.h.  */
   11592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11594 #define $ac_func innocuous_$ac_func
   11595 
   11596 /* System header to define __stub macros and hopefully few prototypes,
   11597     which can conflict with char $ac_func (); below.
   11598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11599     <limits.h> exists even on freestanding compilers.  */
   11600 
   11601 #ifdef __STDC__
   11602 # include <limits.h>
   11603 #else
   11604 # include <assert.h>
   11605 #endif
   11606 
   11607 #undef $ac_func
   11608 
   11609 /* Override any GCC internal prototype to avoid an error.
   11610    Use char because int might match the return type of a GCC
   11611    builtin and then its argument prototype would still apply.  */
   11612 #ifdef __cplusplus
   11613 extern "C"
   11614 #endif
   11615 char $ac_func ();
   11616 /* The GNU C library defines this for functions which it implements
   11617     to always fail with ENOSYS.  Some functions are actually named
   11618     something starting with __ and the normal name is an alias.  */
   11619 #if defined __stub_$ac_func || defined __stub___$ac_func
   11620 choke me
   11621 #endif
   11622 
   11623 int
   11624 main ()
   11625 {
   11626 return $ac_func ();
   11627   ;
   11628   return 0;
   11629 }
   11630 _ACEOF
   11631 rm -f conftest.$ac_objext conftest$ac_exeext
   11632 if { (ac_try="$ac_link"
   11633 case "(($ac_try" in
   11634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11635   *) ac_try_echo=$ac_try;;
   11636 esac
   11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11638   (eval "$ac_link") 2>conftest.er1
   11639   ac_status=$?
   11640   grep -v '^ *+' conftest.er1 >conftest.err
   11641   rm -f conftest.er1
   11642   cat conftest.err >&5
   11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11644   (exit $ac_status); } &&
   11645 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11646   { (case "(($ac_try" in
   11647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11648   *) ac_try_echo=$ac_try;;
   11649 esac
   11650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11651   (eval "$ac_try") 2>&5
   11652   ac_status=$?
   11653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11654   (exit $ac_status); }; } &&
   11655 	 { ac_try='test -s conftest$ac_exeext'
   11656   { (case "(($ac_try" in
   11657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11658   *) ac_try_echo=$ac_try;;
   11659 esac
   11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11661   (eval "$ac_try") 2>&5
   11662   ac_status=$?
   11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11664   (exit $ac_status); }; }; then
   11665   eval "$as_ac_var=yes"
   11666 else
   11667   echo "$as_me: failed program was:" >&5
   11668 sed 's/^/| /' conftest.$ac_ext >&5
   11669 
   11670 	eval "$as_ac_var=no"
   11671 fi
   11672 
   11673 rm -f core conftest.err conftest.$ac_objext \
   11674       conftest$ac_exeext conftest.$ac_ext
   11675 fi
   11676 ac_res=`eval echo '${'$as_ac_var'}'`
   11677 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11678 echo "${ECHO_T}$ac_res" >&6; }
   11679 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11680   cat >>confdefs.h <<_ACEOF
   11681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11682 _ACEOF
   11683  break
   11684 fi
   11685 done
   11686 
   11687 
   11688 
   11689 for ac_func in strrchr rindex
   11690 do
   11691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11692 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11695   echo $ECHO_N "(cached) $ECHO_C" >&6
   11696 else
   11697   cat >conftest.$ac_ext <<_ACEOF
   11698 /* confdefs.h.  */
   11699 _ACEOF
   11700 cat confdefs.h >>conftest.$ac_ext
   11701 cat >>conftest.$ac_ext <<_ACEOF
   11702 /* end confdefs.h.  */
   11703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11705 #define $ac_func innocuous_$ac_func
   11706 
   11707 /* System header to define __stub macros and hopefully few prototypes,
   11708     which can conflict with char $ac_func (); below.
   11709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11710     <limits.h> exists even on freestanding compilers.  */
   11711 
   11712 #ifdef __STDC__
   11713 # include <limits.h>
   11714 #else
   11715 # include <assert.h>
   11716 #endif
   11717 
   11718 #undef $ac_func
   11719 
   11720 /* Override any GCC internal prototype to avoid an error.
   11721    Use char because int might match the return type of a GCC
   11722    builtin and then its argument prototype would still apply.  */
   11723 #ifdef __cplusplus
   11724 extern "C"
   11725 #endif
   11726 char $ac_func ();
   11727 /* The GNU C library defines this for functions which it implements
   11728     to always fail with ENOSYS.  Some functions are actually named
   11729     something starting with __ and the normal name is an alias.  */
   11730 #if defined __stub_$ac_func || defined __stub___$ac_func
   11731 choke me
   11732 #endif
   11733 
   11734 int
   11735 main ()
   11736 {
   11737 return $ac_func ();
   11738   ;
   11739   return 0;
   11740 }
   11741 _ACEOF
   11742 rm -f conftest.$ac_objext conftest$ac_exeext
   11743 if { (ac_try="$ac_link"
   11744 case "(($ac_try" in
   11745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11746   *) ac_try_echo=$ac_try;;
   11747 esac
   11748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11749   (eval "$ac_link") 2>conftest.er1
   11750   ac_status=$?
   11751   grep -v '^ *+' conftest.er1 >conftest.err
   11752   rm -f conftest.er1
   11753   cat conftest.err >&5
   11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11755   (exit $ac_status); } &&
   11756 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11757   { (case "(($ac_try" in
   11758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11759   *) ac_try_echo=$ac_try;;
   11760 esac
   11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11762   (eval "$ac_try") 2>&5
   11763   ac_status=$?
   11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11765   (exit $ac_status); }; } &&
   11766 	 { ac_try='test -s conftest$ac_exeext'
   11767   { (case "(($ac_try" in
   11768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11769   *) ac_try_echo=$ac_try;;
   11770 esac
   11771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11772   (eval "$ac_try") 2>&5
   11773   ac_status=$?
   11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11775   (exit $ac_status); }; }; then
   11776   eval "$as_ac_var=yes"
   11777 else
   11778   echo "$as_me: failed program was:" >&5
   11779 sed 's/^/| /' conftest.$ac_ext >&5
   11780 
   11781 	eval "$as_ac_var=no"
   11782 fi
   11783 
   11784 rm -f core conftest.err conftest.$ac_objext \
   11785       conftest$ac_exeext conftest.$ac_ext
   11786 fi
   11787 ac_res=`eval echo '${'$as_ac_var'}'`
   11788 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11789 echo "${ECHO_T}$ac_res" >&6; }
   11790 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11791   cat >>confdefs.h <<_ACEOF
   11792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11793 _ACEOF
   11794  break
   11795 fi
   11796 done
   11797 
   11798 
   11799 
   11800 for ac_func in memcpy bcopy
   11801 do
   11802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11806   echo $ECHO_N "(cached) $ECHO_C" >&6
   11807 else
   11808   cat >conftest.$ac_ext <<_ACEOF
   11809 /* confdefs.h.  */
   11810 _ACEOF
   11811 cat confdefs.h >>conftest.$ac_ext
   11812 cat >>conftest.$ac_ext <<_ACEOF
   11813 /* end confdefs.h.  */
   11814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11816 #define $ac_func innocuous_$ac_func
   11817 
   11818 /* System header to define __stub macros and hopefully few prototypes,
   11819     which can conflict with char $ac_func (); below.
   11820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11821     <limits.h> exists even on freestanding compilers.  */
   11822 
   11823 #ifdef __STDC__
   11824 # include <limits.h>
   11825 #else
   11826 # include <assert.h>
   11827 #endif
   11828 
   11829 #undef $ac_func
   11830 
   11831 /* Override any GCC internal prototype to avoid an error.
   11832    Use char because int might match the return type of a GCC
   11833    builtin and then its argument prototype would still apply.  */
   11834 #ifdef __cplusplus
   11835 extern "C"
   11836 #endif
   11837 char $ac_func ();
   11838 /* The GNU C library defines this for functions which it implements
   11839     to always fail with ENOSYS.  Some functions are actually named
   11840     something starting with __ and the normal name is an alias.  */
   11841 #if defined __stub_$ac_func || defined __stub___$ac_func
   11842 choke me
   11843 #endif
   11844 
   11845 int
   11846 main ()
   11847 {
   11848 return $ac_func ();
   11849   ;
   11850   return 0;
   11851 }
   11852 _ACEOF
   11853 rm -f conftest.$ac_objext conftest$ac_exeext
   11854 if { (ac_try="$ac_link"
   11855 case "(($ac_try" in
   11856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11857   *) ac_try_echo=$ac_try;;
   11858 esac
   11859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11860   (eval "$ac_link") 2>conftest.er1
   11861   ac_status=$?
   11862   grep -v '^ *+' conftest.er1 >conftest.err
   11863   rm -f conftest.er1
   11864   cat conftest.err >&5
   11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11866   (exit $ac_status); } &&
   11867 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11868   { (case "(($ac_try" in
   11869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11870   *) ac_try_echo=$ac_try;;
   11871 esac
   11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11873   (eval "$ac_try") 2>&5
   11874   ac_status=$?
   11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11876   (exit $ac_status); }; } &&
   11877 	 { ac_try='test -s conftest$ac_exeext'
   11878   { (case "(($ac_try" in
   11879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11880   *) ac_try_echo=$ac_try;;
   11881 esac
   11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11883   (eval "$ac_try") 2>&5
   11884   ac_status=$?
   11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11886   (exit $ac_status); }; }; then
   11887   eval "$as_ac_var=yes"
   11888 else
   11889   echo "$as_me: failed program was:" >&5
   11890 sed 's/^/| /' conftest.$ac_ext >&5
   11891 
   11892 	eval "$as_ac_var=no"
   11893 fi
   11894 
   11895 rm -f core conftest.err conftest.$ac_objext \
   11896       conftest$ac_exeext conftest.$ac_ext
   11897 fi
   11898 ac_res=`eval echo '${'$as_ac_var'}'`
   11899 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11900 echo "${ECHO_T}$ac_res" >&6; }
   11901 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11902   cat >>confdefs.h <<_ACEOF
   11903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11904 _ACEOF
   11905  break
   11906 fi
   11907 done
   11908 
   11909 
   11910 
   11911 for ac_func in memmove strcmp
   11912 do
   11913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11917   echo $ECHO_N "(cached) $ECHO_C" >&6
   11918 else
   11919   cat >conftest.$ac_ext <<_ACEOF
   11920 /* confdefs.h.  */
   11921 _ACEOF
   11922 cat confdefs.h >>conftest.$ac_ext
   11923 cat >>conftest.$ac_ext <<_ACEOF
   11924 /* end confdefs.h.  */
   11925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11927 #define $ac_func innocuous_$ac_func
   11928 
   11929 /* System header to define __stub macros and hopefully few prototypes,
   11930     which can conflict with char $ac_func (); below.
   11931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11932     <limits.h> exists even on freestanding compilers.  */
   11933 
   11934 #ifdef __STDC__
   11935 # include <limits.h>
   11936 #else
   11937 # include <assert.h>
   11938 #endif
   11939 
   11940 #undef $ac_func
   11941 
   11942 /* Override any GCC internal prototype to avoid an error.
   11943    Use char because int might match the return type of a GCC
   11944    builtin and then its argument prototype would still apply.  */
   11945 #ifdef __cplusplus
   11946 extern "C"
   11947 #endif
   11948 char $ac_func ();
   11949 /* The GNU C library defines this for functions which it implements
   11950     to always fail with ENOSYS.  Some functions are actually named
   11951     something starting with __ and the normal name is an alias.  */
   11952 #if defined __stub_$ac_func || defined __stub___$ac_func
   11953 choke me
   11954 #endif
   11955 
   11956 int
   11957 main ()
   11958 {
   11959 return $ac_func ();
   11960   ;
   11961   return 0;
   11962 }
   11963 _ACEOF
   11964 rm -f conftest.$ac_objext conftest$ac_exeext
   11965 if { (ac_try="$ac_link"
   11966 case "(($ac_try" in
   11967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11968   *) ac_try_echo=$ac_try;;
   11969 esac
   11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11971   (eval "$ac_link") 2>conftest.er1
   11972   ac_status=$?
   11973   grep -v '^ *+' conftest.er1 >conftest.err
   11974   rm -f conftest.er1
   11975   cat conftest.err >&5
   11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11977   (exit $ac_status); } &&
   11978 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11979   { (case "(($ac_try" in
   11980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11981   *) ac_try_echo=$ac_try;;
   11982 esac
   11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11984   (eval "$ac_try") 2>&5
   11985   ac_status=$?
   11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11987   (exit $ac_status); }; } &&
   11988 	 { ac_try='test -s conftest$ac_exeext'
   11989   { (case "(($ac_try" in
   11990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11991   *) ac_try_echo=$ac_try;;
   11992 esac
   11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11994   (eval "$ac_try") 2>&5
   11995   ac_status=$?
   11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11997   (exit $ac_status); }; }; then
   11998   eval "$as_ac_var=yes"
   11999 else
   12000   echo "$as_me: failed program was:" >&5
   12001 sed 's/^/| /' conftest.$ac_ext >&5
   12002 
   12003 	eval "$as_ac_var=no"
   12004 fi
   12005 
   12006 rm -f core conftest.err conftest.$ac_objext \
   12007       conftest$ac_exeext conftest.$ac_ext
   12008 fi
   12009 ac_res=`eval echo '${'$as_ac_var'}'`
   12010 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   12011 echo "${ECHO_T}$ac_res" >&6; }
   12012 if test `eval echo '${'$as_ac_var'}'` = yes; then
   12013   cat >>confdefs.h <<_ACEOF
   12014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   12015 _ACEOF
   12016 
   12017 fi
   12018 done
   12019 
   12020 
   12021 
   12022 
   12023 for ac_func in closedir opendir readdir
   12024 do
   12025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   12026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   12027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   12028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   12029   echo $ECHO_N "(cached) $ECHO_C" >&6
   12030 else
   12031   cat >conftest.$ac_ext <<_ACEOF
   12032 /* confdefs.h.  */
   12033 _ACEOF
   12034 cat confdefs.h >>conftest.$ac_ext
   12035 cat >>conftest.$ac_ext <<_ACEOF
   12036 /* end confdefs.h.  */
   12037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   12038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   12039 #define $ac_func innocuous_$ac_func
   12040 
   12041 /* System header to define __stub macros and hopefully few prototypes,
   12042     which can conflict with char $ac_func (); below.
   12043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   12044     <limits.h> exists even on freestanding compilers.  */
   12045 
   12046 #ifdef __STDC__
   12047 # include <limits.h>
   12048 #else
   12049 # include <assert.h>
   12050 #endif
   12051 
   12052 #undef $ac_func
   12053 
   12054 /* Override any GCC internal prototype to avoid an error.
   12055    Use char because int might match the return type of a GCC
   12056    builtin and then its argument prototype would still apply.  */
   12057 #ifdef __cplusplus
   12058 extern "C"
   12059 #endif
   12060 char $ac_func ();
   12061 /* The GNU C library defines this for functions which it implements
   12062     to always fail with ENOSYS.  Some functions are actually named
   12063     something starting with __ and the normal name is an alias.  */
   12064 #if defined __stub_$ac_func || defined __stub___$ac_func
   12065 choke me
   12066 #endif
   12067 
   12068 int
   12069 main ()
   12070 {
   12071 return $ac_func ();
   12072   ;
   12073   return 0;
   12074 }
   12075 _ACEOF
   12076 rm -f conftest.$ac_objext conftest$ac_exeext
   12077 if { (ac_try="$ac_link"
   12078 case "(($ac_try" in
   12079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12080   *) ac_try_echo=$ac_try;;
   12081 esac
   12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12083   (eval "$ac_link") 2>conftest.er1
   12084   ac_status=$?
   12085   grep -v '^ *+' conftest.er1 >conftest.err
   12086   rm -f conftest.er1
   12087   cat conftest.err >&5
   12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12089   (exit $ac_status); } &&
   12090 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12091   { (case "(($ac_try" in
   12092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12093   *) ac_try_echo=$ac_try;;
   12094 esac
   12095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12096   (eval "$ac_try") 2>&5
   12097   ac_status=$?
   12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12099   (exit $ac_status); }; } &&
   12100 	 { ac_try='test -s conftest$ac_exeext'
   12101   { (case "(($ac_try" in
   12102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12103   *) ac_try_echo=$ac_try;;
   12104 esac
   12105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12106   (eval "$ac_try") 2>&5
   12107   ac_status=$?
   12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12109   (exit $ac_status); }; }; then
   12110   eval "$as_ac_var=yes"
   12111 else
   12112   echo "$as_me: failed program was:" >&5
   12113 sed 's/^/| /' conftest.$ac_ext >&5
   12114 
   12115 	eval "$as_ac_var=no"
   12116 fi
   12117 
   12118 rm -f core conftest.err conftest.$ac_objext \
   12119       conftest$ac_exeext conftest.$ac_ext
   12120 fi
   12121 ac_res=`eval echo '${'$as_ac_var'}'`
   12122 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   12123 echo "${ECHO_T}$ac_res" >&6; }
   12124 if test `eval echo '${'$as_ac_var'}'` = yes; then
   12125   cat >>confdefs.h <<_ACEOF
   12126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   12127 _ACEOF
   12128 
   12129 fi
   12130 done
   12131 
   12132 
   12133 
   12134 { echo "$as_me:$LINENO: checking tool compatibility" >&5
   12135 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
   12136 
   12137 ICC=no
   12138 IXX=no
   12139 case $CC in
   12140   icc*|icpc*)
   12141     ICC=yes
   12142     IXX=yes
   12143     ;;
   12144    *)
   12145     ;;
   12146 esac
   12147 
   12148 if test "$GCC" != "yes" && test "$ICC" != "yes"
   12149 then
   12150   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
   12151 echo "$as_me: error: gcc|icc required but not found" >&2;}
   12152    { (exit 1); exit 1; }; }
   12153 fi
   12154 
   12155 if test "$GXX" != "yes" && test "$IXX" != "yes"
   12156 then
   12157   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
   12158 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
   12159    { (exit 1); exit 1; }; }
   12160 fi
   12161 
   12162 if test "$GCC" = "yes"
   12163 then
   12164   cat >conftest.$ac_ext <<_ACEOF
   12165 #if !defined(__GNUC__) || __GNUC__ < 3
   12166 #error Unsupported GCC version
   12167 #endif
   12168 
   12169 _ACEOF
   12170 rm -f conftest.$ac_objext
   12171 if { (ac_try="$ac_compile"
   12172 case "(($ac_try" in
   12173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12174   *) ac_try_echo=$ac_try;;
   12175 esac
   12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12177   (eval "$ac_compile") 2>conftest.er1
   12178   ac_status=$?
   12179   grep -v '^ *+' conftest.er1 >conftest.err
   12180   rm -f conftest.er1
   12181   cat conftest.err >&5
   12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12183   (exit $ac_status); } &&
   12184 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12185   { (case "(($ac_try" in
   12186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12187   *) ac_try_echo=$ac_try;;
   12188 esac
   12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12190   (eval "$ac_try") 2>&5
   12191   ac_status=$?
   12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12193   (exit $ac_status); }; } &&
   12194 	 { ac_try='test -s conftest.$ac_objext'
   12195   { (case "(($ac_try" in
   12196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12197   *) ac_try_echo=$ac_try;;
   12198 esac
   12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12200   (eval "$ac_try") 2>&5
   12201   ac_status=$?
   12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12203   (exit $ac_status); }; }; then
   12204   :
   12205 else
   12206   echo "$as_me: failed program was:" >&5
   12207 sed 's/^/| /' conftest.$ac_ext >&5
   12208 
   12209 	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
   12210 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
   12211    { (exit 1); exit 1; }; }
   12212 fi
   12213 
   12214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12215 fi
   12216 
   12217 if test -z "$llvm_cv_gnu_make_command"
   12218 then
   12219   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
   12220 echo "$as_me: error: GNU Make required but not found" >&2;}
   12221    { (exit 1); exit 1; }; }
   12222 fi
   12223 
   12224 { echo "$as_me:$LINENO: result: ok" >&5
   12225 echo "${ECHO_T}ok" >&6; }
   12226 
   12227 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
   12228 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
   12229 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
   12230 
   12231 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
   12232 
   12233 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
   12234 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
   12235 
   12236 
   12237 
   12238 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
   12239 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
   12240 if test "${ac_cv_lib_m_sin+set}" = set; then
   12241   echo $ECHO_N "(cached) $ECHO_C" >&6
   12242 else
   12243   ac_check_lib_save_LIBS=$LIBS
   12244 LIBS="-lm  $LIBS"
   12245 cat >conftest.$ac_ext <<_ACEOF
   12246 /* confdefs.h.  */
   12247 _ACEOF
   12248 cat confdefs.h >>conftest.$ac_ext
   12249 cat >>conftest.$ac_ext <<_ACEOF
   12250 /* end confdefs.h.  */
   12251 
   12252 /* Override any GCC internal prototype to avoid an error.
   12253    Use char because int might match the return type of a GCC
   12254    builtin and then its argument prototype would still apply.  */
   12255 #ifdef __cplusplus
   12256 extern "C"
   12257 #endif
   12258 char sin ();
   12259 int
   12260 main ()
   12261 {
   12262 return sin ();
   12263   ;
   12264   return 0;
   12265 }
   12266 _ACEOF
   12267 rm -f conftest.$ac_objext conftest$ac_exeext
   12268 if { (ac_try="$ac_link"
   12269 case "(($ac_try" in
   12270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12271   *) ac_try_echo=$ac_try;;
   12272 esac
   12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12274   (eval "$ac_link") 2>conftest.er1
   12275   ac_status=$?
   12276   grep -v '^ *+' conftest.er1 >conftest.err
   12277   rm -f conftest.er1
   12278   cat conftest.err >&5
   12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12280   (exit $ac_status); } &&
   12281 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12282   { (case "(($ac_try" in
   12283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12284   *) ac_try_echo=$ac_try;;
   12285 esac
   12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12287   (eval "$ac_try") 2>&5
   12288   ac_status=$?
   12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12290   (exit $ac_status); }; } &&
   12291 	 { ac_try='test -s conftest$ac_exeext'
   12292   { (case "(($ac_try" in
   12293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12294   *) ac_try_echo=$ac_try;;
   12295 esac
   12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12297   (eval "$ac_try") 2>&5
   12298   ac_status=$?
   12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12300   (exit $ac_status); }; }; then
   12301   ac_cv_lib_m_sin=yes
   12302 else
   12303   echo "$as_me: failed program was:" >&5
   12304 sed 's/^/| /' conftest.$ac_ext >&5
   12305 
   12306 	ac_cv_lib_m_sin=no
   12307 fi
   12308 
   12309 rm -f core conftest.err conftest.$ac_objext \
   12310       conftest$ac_exeext conftest.$ac_ext
   12311 LIBS=$ac_check_lib_save_LIBS
   12312 fi
   12313 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
   12314 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
   12315 if test $ac_cv_lib_m_sin = yes; then
   12316   cat >>confdefs.h <<_ACEOF
   12317 #define HAVE_LIBM 1
   12318 _ACEOF
   12319 
   12320   LIBS="-lm $LIBS"
   12321 
   12322 fi
   12323 
   12324 if test "$llvm_cv_os_type" = "MingW" ; then
   12325 
   12326 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
   12327 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
   12328 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
   12329   echo $ECHO_N "(cached) $ECHO_C" >&6
   12330 else
   12331   ac_check_lib_save_LIBS=$LIBS
   12332 LIBS="-limagehlp  $LIBS"
   12333 cat >conftest.$ac_ext <<_ACEOF
   12334 /* confdefs.h.  */
   12335 _ACEOF
   12336 cat confdefs.h >>conftest.$ac_ext
   12337 cat >>conftest.$ac_ext <<_ACEOF
   12338 /* end confdefs.h.  */
   12339 
   12340 
   12341 int
   12342 main ()
   12343 {
   12344 return main ();
   12345   ;
   12346   return 0;
   12347 }
   12348 _ACEOF
   12349 rm -f conftest.$ac_objext conftest$ac_exeext
   12350 if { (ac_try="$ac_link"
   12351 case "(($ac_try" in
   12352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12353   *) ac_try_echo=$ac_try;;
   12354 esac
   12355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12356   (eval "$ac_link") 2>conftest.er1
   12357   ac_status=$?
   12358   grep -v '^ *+' conftest.er1 >conftest.err
   12359   rm -f conftest.er1
   12360   cat conftest.err >&5
   12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12362   (exit $ac_status); } &&
   12363 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12364   { (case "(($ac_try" in
   12365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12366   *) ac_try_echo=$ac_try;;
   12367 esac
   12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12369   (eval "$ac_try") 2>&5
   12370   ac_status=$?
   12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12372   (exit $ac_status); }; } &&
   12373 	 { ac_try='test -s conftest$ac_exeext'
   12374   { (case "(($ac_try" in
   12375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12376   *) ac_try_echo=$ac_try;;
   12377 esac
   12378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12379   (eval "$ac_try") 2>&5
   12380   ac_status=$?
   12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12382   (exit $ac_status); }; }; then
   12383   ac_cv_lib_imagehlp_main=yes
   12384 else
   12385   echo "$as_me: failed program was:" >&5
   12386 sed 's/^/| /' conftest.$ac_ext >&5
   12387 
   12388 	ac_cv_lib_imagehlp_main=no
   12389 fi
   12390 
   12391 rm -f core conftest.err conftest.$ac_objext \
   12392       conftest$ac_exeext conftest.$ac_ext
   12393 LIBS=$ac_check_lib_save_LIBS
   12394 fi
   12395 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
   12396 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
   12397 if test $ac_cv_lib_imagehlp_main = yes; then
   12398   cat >>confdefs.h <<_ACEOF
   12399 #define HAVE_LIBIMAGEHLP 1
   12400 _ACEOF
   12401 
   12402   LIBS="-limagehlp $LIBS"
   12403 
   12404 fi
   12405 
   12406 
   12407 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
   12408 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
   12409 if test "${ac_cv_lib_psapi_main+set}" = set; then
   12410   echo $ECHO_N "(cached) $ECHO_C" >&6
   12411 else
   12412   ac_check_lib_save_LIBS=$LIBS
   12413 LIBS="-lpsapi  $LIBS"
   12414 cat >conftest.$ac_ext <<_ACEOF
   12415 /* confdefs.h.  */
   12416 _ACEOF
   12417 cat confdefs.h >>conftest.$ac_ext
   12418 cat >>conftest.$ac_ext <<_ACEOF
   12419 /* end confdefs.h.  */
   12420 
   12421 
   12422 int
   12423 main ()
   12424 {
   12425 return main ();
   12426   ;
   12427   return 0;
   12428 }
   12429 _ACEOF
   12430 rm -f conftest.$ac_objext conftest$ac_exeext
   12431 if { (ac_try="$ac_link"
   12432 case "(($ac_try" in
   12433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12434   *) ac_try_echo=$ac_try;;
   12435 esac
   12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12437   (eval "$ac_link") 2>conftest.er1
   12438   ac_status=$?
   12439   grep -v '^ *+' conftest.er1 >conftest.err
   12440   rm -f conftest.er1
   12441   cat conftest.err >&5
   12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12443   (exit $ac_status); } &&
   12444 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12445   { (case "(($ac_try" in
   12446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12447   *) ac_try_echo=$ac_try;;
   12448 esac
   12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12450   (eval "$ac_try") 2>&5
   12451   ac_status=$?
   12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12453   (exit $ac_status); }; } &&
   12454 	 { ac_try='test -s conftest$ac_exeext'
   12455   { (case "(($ac_try" in
   12456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12457   *) ac_try_echo=$ac_try;;
   12458 esac
   12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12460   (eval "$ac_try") 2>&5
   12461   ac_status=$?
   12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12463   (exit $ac_status); }; }; then
   12464   ac_cv_lib_psapi_main=yes
   12465 else
   12466   echo "$as_me: failed program was:" >&5
   12467 sed 's/^/| /' conftest.$ac_ext >&5
   12468 
   12469 	ac_cv_lib_psapi_main=no
   12470 fi
   12471 
   12472 rm -f core conftest.err conftest.$ac_objext \
   12473       conftest$ac_exeext conftest.$ac_ext
   12474 LIBS=$ac_check_lib_save_LIBS
   12475 fi
   12476 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
   12477 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
   12478 if test $ac_cv_lib_psapi_main = yes; then
   12479   cat >>confdefs.h <<_ACEOF
   12480 #define HAVE_LIBPSAPI 1
   12481 _ACEOF
   12482 
   12483   LIBS="-lpsapi $LIBS"
   12484 
   12485 fi
   12486 
   12487 fi
   12488 
   12489 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
   12490 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
   12491 if test "${ac_cv_search_dlopen+set}" = set; then
   12492   echo $ECHO_N "(cached) $ECHO_C" >&6
   12493 else
   12494   ac_func_search_save_LIBS=$LIBS
   12495 cat >conftest.$ac_ext <<_ACEOF
   12496 /* confdefs.h.  */
   12497 _ACEOF
   12498 cat confdefs.h >>conftest.$ac_ext
   12499 cat >>conftest.$ac_ext <<_ACEOF
   12500 /* end confdefs.h.  */
   12501 
   12502 /* Override any GCC internal prototype to avoid an error.
   12503    Use char because int might match the return type of a GCC
   12504    builtin and then its argument prototype would still apply.  */
   12505 #ifdef __cplusplus
   12506 extern "C"
   12507 #endif
   12508 char dlopen ();
   12509 int
   12510 main ()
   12511 {
   12512 return dlopen ();
   12513   ;
   12514   return 0;
   12515 }
   12516 _ACEOF
   12517 for ac_lib in '' dl; do
   12518   if test -z "$ac_lib"; then
   12519     ac_res="none required"
   12520   else
   12521     ac_res=-l$ac_lib
   12522     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12523   fi
   12524   rm -f conftest.$ac_objext conftest$ac_exeext
   12525 if { (ac_try="$ac_link"
   12526 case "(($ac_try" in
   12527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12528   *) ac_try_echo=$ac_try;;
   12529 esac
   12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12531   (eval "$ac_link") 2>conftest.er1
   12532   ac_status=$?
   12533   grep -v '^ *+' conftest.er1 >conftest.err
   12534   rm -f conftest.er1
   12535   cat conftest.err >&5
   12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12537   (exit $ac_status); } &&
   12538 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12539   { (case "(($ac_try" in
   12540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12541   *) ac_try_echo=$ac_try;;
   12542 esac
   12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12544   (eval "$ac_try") 2>&5
   12545   ac_status=$?
   12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12547   (exit $ac_status); }; } &&
   12548 	 { ac_try='test -s conftest$ac_exeext'
   12549   { (case "(($ac_try" in
   12550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12551   *) ac_try_echo=$ac_try;;
   12552 esac
   12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12554   (eval "$ac_try") 2>&5
   12555   ac_status=$?
   12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12557   (exit $ac_status); }; }; then
   12558   ac_cv_search_dlopen=$ac_res
   12559 else
   12560   echo "$as_me: failed program was:" >&5
   12561 sed 's/^/| /' conftest.$ac_ext >&5
   12562 
   12563 
   12564 fi
   12565 
   12566 rm -f core conftest.err conftest.$ac_objext \
   12567       conftest$ac_exeext
   12568   if test "${ac_cv_search_dlopen+set}" = set; then
   12569   break
   12570 fi
   12571 done
   12572 if test "${ac_cv_search_dlopen+set}" = set; then
   12573   :
   12574 else
   12575   ac_cv_search_dlopen=no
   12576 fi
   12577 rm conftest.$ac_ext
   12578 LIBS=$ac_func_search_save_LIBS
   12579 fi
   12580 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
   12581 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
   12582 ac_res=$ac_cv_search_dlopen
   12583 if test "$ac_res" != no; then
   12584   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12585 
   12586 cat >>confdefs.h <<\_ACEOF
   12587 #define HAVE_DLOPEN 1
   12588 _ACEOF
   12589 
   12590 else
   12591   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
   12592 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
   12593 fi
   12594 
   12595 
   12596 if test "$llvm_cv_enable_libffi" = "yes" ; then
   12597   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
   12598 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
   12599 if test "${ac_cv_search_ffi_call+set}" = set; then
   12600   echo $ECHO_N "(cached) $ECHO_C" >&6
   12601 else
   12602   ac_func_search_save_LIBS=$LIBS
   12603 cat >conftest.$ac_ext <<_ACEOF
   12604 /* confdefs.h.  */
   12605 _ACEOF
   12606 cat confdefs.h >>conftest.$ac_ext
   12607 cat >>conftest.$ac_ext <<_ACEOF
   12608 /* end confdefs.h.  */
   12609 
   12610 /* Override any GCC internal prototype to avoid an error.
   12611    Use char because int might match the return type of a GCC
   12612    builtin and then its argument prototype would still apply.  */
   12613 #ifdef __cplusplus
   12614 extern "C"
   12615 #endif
   12616 char ffi_call ();
   12617 int
   12618 main ()
   12619 {
   12620 return ffi_call ();
   12621   ;
   12622   return 0;
   12623 }
   12624 _ACEOF
   12625 for ac_lib in '' ffi; do
   12626   if test -z "$ac_lib"; then
   12627     ac_res="none required"
   12628   else
   12629     ac_res=-l$ac_lib
   12630     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12631   fi
   12632   rm -f conftest.$ac_objext conftest$ac_exeext
   12633 if { (ac_try="$ac_link"
   12634 case "(($ac_try" in
   12635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12636   *) ac_try_echo=$ac_try;;
   12637 esac
   12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12639   (eval "$ac_link") 2>conftest.er1
   12640   ac_status=$?
   12641   grep -v '^ *+' conftest.er1 >conftest.err
   12642   rm -f conftest.er1
   12643   cat conftest.err >&5
   12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12645   (exit $ac_status); } &&
   12646 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12647   { (case "(($ac_try" in
   12648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12649   *) ac_try_echo=$ac_try;;
   12650 esac
   12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12652   (eval "$ac_try") 2>&5
   12653   ac_status=$?
   12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12655   (exit $ac_status); }; } &&
   12656 	 { ac_try='test -s conftest$ac_exeext'
   12657   { (case "(($ac_try" in
   12658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12659   *) ac_try_echo=$ac_try;;
   12660 esac
   12661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12662   (eval "$ac_try") 2>&5
   12663   ac_status=$?
   12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12665   (exit $ac_status); }; }; then
   12666   ac_cv_search_ffi_call=$ac_res
   12667 else
   12668   echo "$as_me: failed program was:" >&5
   12669 sed 's/^/| /' conftest.$ac_ext >&5
   12670 
   12671 
   12672 fi
   12673 
   12674 rm -f core conftest.err conftest.$ac_objext \
   12675       conftest$ac_exeext
   12676   if test "${ac_cv_search_ffi_call+set}" = set; then
   12677   break
   12678 fi
   12679 done
   12680 if test "${ac_cv_search_ffi_call+set}" = set; then
   12681   :
   12682 else
   12683   ac_cv_search_ffi_call=no
   12684 fi
   12685 rm conftest.$ac_ext
   12686 LIBS=$ac_func_search_save_LIBS
   12687 fi
   12688 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
   12689 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
   12690 ac_res=$ac_cv_search_ffi_call
   12691 if test "$ac_res" != no; then
   12692   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12693 
   12694 cat >>confdefs.h <<\_ACEOF
   12695 #define HAVE_FFI_CALL 1
   12696 _ACEOF
   12697 
   12698 else
   12699   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
   12700 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
   12701    { (exit 1); exit 1; }; }
   12702 fi
   12703 
   12704 fi
   12705 
   12706 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
   12707 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
   12708 if test "${ac_cv_search_mallinfo+set}" = set; then
   12709   echo $ECHO_N "(cached) $ECHO_C" >&6
   12710 else
   12711   ac_func_search_save_LIBS=$LIBS
   12712 cat >conftest.$ac_ext <<_ACEOF
   12713 /* confdefs.h.  */
   12714 _ACEOF
   12715 cat confdefs.h >>conftest.$ac_ext
   12716 cat >>conftest.$ac_ext <<_ACEOF
   12717 /* end confdefs.h.  */
   12718 
   12719 /* Override any GCC internal prototype to avoid an error.
   12720    Use char because int might match the return type of a GCC
   12721    builtin and then its argument prototype would still apply.  */
   12722 #ifdef __cplusplus
   12723 extern "C"
   12724 #endif
   12725 char mallinfo ();
   12726 int
   12727 main ()
   12728 {
   12729 return mallinfo ();
   12730   ;
   12731   return 0;
   12732 }
   12733 _ACEOF
   12734 for ac_lib in '' malloc; do
   12735   if test -z "$ac_lib"; then
   12736     ac_res="none required"
   12737   else
   12738     ac_res=-l$ac_lib
   12739     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12740   fi
   12741   rm -f conftest.$ac_objext conftest$ac_exeext
   12742 if { (ac_try="$ac_link"
   12743 case "(($ac_try" in
   12744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12745   *) ac_try_echo=$ac_try;;
   12746 esac
   12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12748   (eval "$ac_link") 2>conftest.er1
   12749   ac_status=$?
   12750   grep -v '^ *+' conftest.er1 >conftest.err
   12751   rm -f conftest.er1
   12752   cat conftest.err >&5
   12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12754   (exit $ac_status); } &&
   12755 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12756   { (case "(($ac_try" in
   12757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12758   *) ac_try_echo=$ac_try;;
   12759 esac
   12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12761   (eval "$ac_try") 2>&5
   12762   ac_status=$?
   12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12764   (exit $ac_status); }; } &&
   12765 	 { ac_try='test -s conftest$ac_exeext'
   12766   { (case "(($ac_try" in
   12767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12768   *) ac_try_echo=$ac_try;;
   12769 esac
   12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12771   (eval "$ac_try") 2>&5
   12772   ac_status=$?
   12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12774   (exit $ac_status); }; }; then
   12775   ac_cv_search_mallinfo=$ac_res
   12776 else
   12777   echo "$as_me: failed program was:" >&5
   12778 sed 's/^/| /' conftest.$ac_ext >&5
   12779 
   12780 
   12781 fi
   12782 
   12783 rm -f core conftest.err conftest.$ac_objext \
   12784       conftest$ac_exeext
   12785   if test "${ac_cv_search_mallinfo+set}" = set; then
   12786   break
   12787 fi
   12788 done
   12789 if test "${ac_cv_search_mallinfo+set}" = set; then
   12790   :
   12791 else
   12792   ac_cv_search_mallinfo=no
   12793 fi
   12794 rm conftest.$ac_ext
   12795 LIBS=$ac_func_search_save_LIBS
   12796 fi
   12797 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
   12798 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
   12799 ac_res=$ac_cv_search_mallinfo
   12800 if test "$ac_res" != no; then
   12801   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12802 
   12803 cat >>confdefs.h <<\_ACEOF
   12804 #define HAVE_MALLINFO 1
   12805 _ACEOF
   12806 
   12807 fi
   12808 
   12809 
   12810 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
   12811 
   12812 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
   12813 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
   12814 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
   12815   echo $ECHO_N "(cached) $ECHO_C" >&6
   12816 else
   12817   ac_check_lib_save_LIBS=$LIBS
   12818 LIBS="-lpthread  $LIBS"
   12819 cat >conftest.$ac_ext <<_ACEOF
   12820 /* confdefs.h.  */
   12821 _ACEOF
   12822 cat confdefs.h >>conftest.$ac_ext
   12823 cat >>conftest.$ac_ext <<_ACEOF
   12824 /* end confdefs.h.  */
   12825 
   12826 /* Override any GCC internal prototype to avoid an error.
   12827    Use char because int might match the return type of a GCC
   12828    builtin and then its argument prototype would still apply.  */
   12829 #ifdef __cplusplus
   12830 extern "C"
   12831 #endif
   12832 char pthread_mutex_init ();
   12833 int
   12834 main ()
   12835 {
   12836 return pthread_mutex_init ();
   12837   ;
   12838   return 0;
   12839 }
   12840 _ACEOF
   12841 rm -f conftest.$ac_objext conftest$ac_exeext
   12842 if { (ac_try="$ac_link"
   12843 case "(($ac_try" in
   12844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12845   *) ac_try_echo=$ac_try;;
   12846 esac
   12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12848   (eval "$ac_link") 2>conftest.er1
   12849   ac_status=$?
   12850   grep -v '^ *+' conftest.er1 >conftest.err
   12851   rm -f conftest.er1
   12852   cat conftest.err >&5
   12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12854   (exit $ac_status); } &&
   12855 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12856   { (case "(($ac_try" in
   12857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12858   *) ac_try_echo=$ac_try;;
   12859 esac
   12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12861   (eval "$ac_try") 2>&5
   12862   ac_status=$?
   12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12864   (exit $ac_status); }; } &&
   12865 	 { ac_try='test -s conftest$ac_exeext'
   12866   { (case "(($ac_try" in
   12867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12868   *) ac_try_echo=$ac_try;;
   12869 esac
   12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12871   (eval "$ac_try") 2>&5
   12872   ac_status=$?
   12873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12874   (exit $ac_status); }; }; then
   12875   ac_cv_lib_pthread_pthread_mutex_init=yes
   12876 else
   12877   echo "$as_me: failed program was:" >&5
   12878 sed 's/^/| /' conftest.$ac_ext >&5
   12879 
   12880 	ac_cv_lib_pthread_pthread_mutex_init=no
   12881 fi
   12882 
   12883 rm -f core conftest.err conftest.$ac_objext \
   12884       conftest$ac_exeext conftest.$ac_ext
   12885 LIBS=$ac_check_lib_save_LIBS
   12886 fi
   12887 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
   12888 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
   12889 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
   12890   cat >>confdefs.h <<_ACEOF
   12891 #define HAVE_LIBPTHREAD 1
   12892 _ACEOF
   12893 
   12894   LIBS="-lpthread $LIBS"
   12895 
   12896 fi
   12897 
   12898   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
   12899 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
   12900 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
   12901   echo $ECHO_N "(cached) $ECHO_C" >&6
   12902 else
   12903   ac_func_search_save_LIBS=$LIBS
   12904 cat >conftest.$ac_ext <<_ACEOF
   12905 /* confdefs.h.  */
   12906 _ACEOF
   12907 cat confdefs.h >>conftest.$ac_ext
   12908 cat >>conftest.$ac_ext <<_ACEOF
   12909 /* end confdefs.h.  */
   12910 
   12911 /* Override any GCC internal prototype to avoid an error.
   12912    Use char because int might match the return type of a GCC
   12913    builtin and then its argument prototype would still apply.  */
   12914 #ifdef __cplusplus
   12915 extern "C"
   12916 #endif
   12917 char pthread_mutex_lock ();
   12918 int
   12919 main ()
   12920 {
   12921 return pthread_mutex_lock ();
   12922   ;
   12923   return 0;
   12924 }
   12925 _ACEOF
   12926 for ac_lib in '' pthread; do
   12927   if test -z "$ac_lib"; then
   12928     ac_res="none required"
   12929   else
   12930     ac_res=-l$ac_lib
   12931     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12932   fi
   12933   rm -f conftest.$ac_objext conftest$ac_exeext
   12934 if { (ac_try="$ac_link"
   12935 case "(($ac_try" in
   12936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12937   *) ac_try_echo=$ac_try;;
   12938 esac
   12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12940   (eval "$ac_link") 2>conftest.er1
   12941   ac_status=$?
   12942   grep -v '^ *+' conftest.er1 >conftest.err
   12943   rm -f conftest.er1
   12944   cat conftest.err >&5
   12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12946   (exit $ac_status); } &&
   12947 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12948   { (case "(($ac_try" in
   12949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12950   *) ac_try_echo=$ac_try;;
   12951 esac
   12952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12953   (eval "$ac_try") 2>&5
   12954   ac_status=$?
   12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12956   (exit $ac_status); }; } &&
   12957 	 { ac_try='test -s conftest$ac_exeext'
   12958   { (case "(($ac_try" in
   12959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12960   *) ac_try_echo=$ac_try;;
   12961 esac
   12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12963   (eval "$ac_try") 2>&5
   12964   ac_status=$?
   12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12966   (exit $ac_status); }; }; then
   12967   ac_cv_search_pthread_mutex_lock=$ac_res
   12968 else
   12969   echo "$as_me: failed program was:" >&5
   12970 sed 's/^/| /' conftest.$ac_ext >&5
   12971 
   12972 
   12973 fi
   12974 
   12975 rm -f core conftest.err conftest.$ac_objext \
   12976       conftest$ac_exeext
   12977   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
   12978   break
   12979 fi
   12980 done
   12981 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
   12982   :
   12983 else
   12984   ac_cv_search_pthread_mutex_lock=no
   12985 fi
   12986 rm conftest.$ac_ext
   12987 LIBS=$ac_func_search_save_LIBS
   12988 fi
   12989 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
   12990 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
   12991 ac_res=$ac_cv_search_pthread_mutex_lock
   12992 if test "$ac_res" != no; then
   12993   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12994 
   12995 cat >>confdefs.h <<\_ACEOF
   12996 #define HAVE_PTHREAD_MUTEX_LOCK 1
   12997 _ACEOF
   12998 
   12999 fi
   13000 
   13001   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
   13002 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
   13003 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
   13004   echo $ECHO_N "(cached) $ECHO_C" >&6
   13005 else
   13006   ac_func_search_save_LIBS=$LIBS
   13007 cat >conftest.$ac_ext <<_ACEOF
   13008 /* confdefs.h.  */
   13009 _ACEOF
   13010 cat confdefs.h >>conftest.$ac_ext
   13011 cat >>conftest.$ac_ext <<_ACEOF
   13012 /* end confdefs.h.  */
   13013 
   13014 /* Override any GCC internal prototype to avoid an error.
   13015    Use char because int might match the return type of a GCC
   13016    builtin and then its argument prototype would still apply.  */
   13017 #ifdef __cplusplus
   13018 extern "C"
   13019 #endif
   13020 char pthread_rwlock_init ();
   13021 int
   13022 main ()
   13023 {
   13024 return pthread_rwlock_init ();
   13025   ;
   13026   return 0;
   13027 }
   13028 _ACEOF
   13029 for ac_lib in '' pthread; do
   13030   if test -z "$ac_lib"; then
   13031     ac_res="none required"
   13032   else
   13033     ac_res=-l$ac_lib
   13034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13035   fi
   13036   rm -f conftest.$ac_objext conftest$ac_exeext
   13037 if { (ac_try="$ac_link"
   13038 case "(($ac_try" in
   13039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13040   *) ac_try_echo=$ac_try;;
   13041 esac
   13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13043   (eval "$ac_link") 2>conftest.er1
   13044   ac_status=$?
   13045   grep -v '^ *+' conftest.er1 >conftest.err
   13046   rm -f conftest.er1
   13047   cat conftest.err >&5
   13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13049   (exit $ac_status); } &&
   13050 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13051   { (case "(($ac_try" in
   13052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13053   *) ac_try_echo=$ac_try;;
   13054 esac
   13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13056   (eval "$ac_try") 2>&5
   13057   ac_status=$?
   13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13059   (exit $ac_status); }; } &&
   13060 	 { ac_try='test -s conftest$ac_exeext'
   13061   { (case "(($ac_try" in
   13062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13063   *) ac_try_echo=$ac_try;;
   13064 esac
   13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13066   (eval "$ac_try") 2>&5
   13067   ac_status=$?
   13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13069   (exit $ac_status); }; }; then
   13070   ac_cv_search_pthread_rwlock_init=$ac_res
   13071 else
   13072   echo "$as_me: failed program was:" >&5
   13073 sed 's/^/| /' conftest.$ac_ext >&5
   13074 
   13075 
   13076 fi
   13077 
   13078 rm -f core conftest.err conftest.$ac_objext \
   13079       conftest$ac_exeext
   13080   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
   13081   break
   13082 fi
   13083 done
   13084 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
   13085   :
   13086 else
   13087   ac_cv_search_pthread_rwlock_init=no
   13088 fi
   13089 rm conftest.$ac_ext
   13090 LIBS=$ac_func_search_save_LIBS
   13091 fi
   13092 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
   13093 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
   13094 ac_res=$ac_cv_search_pthread_rwlock_init
   13095 if test "$ac_res" != no; then
   13096   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13097 
   13098 cat >>confdefs.h <<\_ACEOF
   13099 #define HAVE_PTHREAD_RWLOCK_INIT 1
   13100 _ACEOF
   13101 
   13102 fi
   13103 
   13104   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
   13105 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
   13106 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
   13107   echo $ECHO_N "(cached) $ECHO_C" >&6
   13108 else
   13109   ac_func_search_save_LIBS=$LIBS
   13110 cat >conftest.$ac_ext <<_ACEOF
   13111 /* confdefs.h.  */
   13112 _ACEOF
   13113 cat confdefs.h >>conftest.$ac_ext
   13114 cat >>conftest.$ac_ext <<_ACEOF
   13115 /* end confdefs.h.  */
   13116 
   13117 /* Override any GCC internal prototype to avoid an error.
   13118    Use char because int might match the return type of a GCC
   13119    builtin and then its argument prototype would still apply.  */
   13120 #ifdef __cplusplus
   13121 extern "C"
   13122 #endif
   13123 char pthread_getspecific ();
   13124 int
   13125 main ()
   13126 {
   13127 return pthread_getspecific ();
   13128   ;
   13129   return 0;
   13130 }
   13131 _ACEOF
   13132 for ac_lib in '' pthread; do
   13133   if test -z "$ac_lib"; then
   13134     ac_res="none required"
   13135   else
   13136     ac_res=-l$ac_lib
   13137     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13138   fi
   13139   rm -f conftest.$ac_objext conftest$ac_exeext
   13140 if { (ac_try="$ac_link"
   13141 case "(($ac_try" in
   13142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13143   *) ac_try_echo=$ac_try;;
   13144 esac
   13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13146   (eval "$ac_link") 2>conftest.er1
   13147   ac_status=$?
   13148   grep -v '^ *+' conftest.er1 >conftest.err
   13149   rm -f conftest.er1
   13150   cat conftest.err >&5
   13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13152   (exit $ac_status); } &&
   13153 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13154   { (case "(($ac_try" in
   13155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13156   *) ac_try_echo=$ac_try;;
   13157 esac
   13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13159   (eval "$ac_try") 2>&5
   13160   ac_status=$?
   13161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13162   (exit $ac_status); }; } &&
   13163 	 { ac_try='test -s conftest$ac_exeext'
   13164   { (case "(($ac_try" in
   13165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13166   *) ac_try_echo=$ac_try;;
   13167 esac
   13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13169   (eval "$ac_try") 2>&5
   13170   ac_status=$?
   13171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13172   (exit $ac_status); }; }; then
   13173   ac_cv_search_pthread_getspecific=$ac_res
   13174 else
   13175   echo "$as_me: failed program was:" >&5
   13176 sed 's/^/| /' conftest.$ac_ext >&5
   13177 
   13178 
   13179 fi
   13180 
   13181 rm -f core conftest.err conftest.$ac_objext \
   13182       conftest$ac_exeext
   13183   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
   13184   break
   13185 fi
   13186 done
   13187 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
   13188   :
   13189 else
   13190   ac_cv_search_pthread_getspecific=no
   13191 fi
   13192 rm conftest.$ac_ext
   13193 LIBS=$ac_func_search_save_LIBS
   13194 fi
   13195 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
   13196 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
   13197 ac_res=$ac_cv_search_pthread_getspecific
   13198 if test "$ac_res" != no; then
   13199   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13200 
   13201 cat >>confdefs.h <<\_ACEOF
   13202 #define HAVE_PTHREAD_GETSPECIFIC 1
   13203 _ACEOF
   13204 
   13205 fi
   13206 
   13207 fi
   13208 
   13209 
   13210 # Check whether --with-udis86 was given.
   13211 if test "${with_udis86+set}" = set; then
   13212   withval=$with_udis86;
   13213       USE_UDIS86=1
   13214 
   13215       case "$withval" in
   13216         /usr/lib|yes) ;;
   13217         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
   13218       esac
   13219 
   13220 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
   13221 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
   13222 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
   13223   echo $ECHO_N "(cached) $ECHO_C" >&6
   13224 else
   13225   ac_check_lib_save_LIBS=$LIBS
   13226 LIBS="-ludis86  $LIBS"
   13227 cat >conftest.$ac_ext <<_ACEOF
   13228 /* confdefs.h.  */
   13229 _ACEOF
   13230 cat confdefs.h >>conftest.$ac_ext
   13231 cat >>conftest.$ac_ext <<_ACEOF
   13232 /* end confdefs.h.  */
   13233 
   13234 /* Override any GCC internal prototype to avoid an error.
   13235    Use char because int might match the return type of a GCC
   13236    builtin and then its argument prototype would still apply.  */
   13237 #ifdef __cplusplus
   13238 extern "C"
   13239 #endif
   13240 char ud_init ();
   13241 int
   13242 main ()
   13243 {
   13244 return ud_init ();
   13245   ;
   13246   return 0;
   13247 }
   13248 _ACEOF
   13249 rm -f conftest.$ac_objext conftest$ac_exeext
   13250 if { (ac_try="$ac_link"
   13251 case "(($ac_try" in
   13252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13253   *) ac_try_echo=$ac_try;;
   13254 esac
   13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13256   (eval "$ac_link") 2>conftest.er1
   13257   ac_status=$?
   13258   grep -v '^ *+' conftest.er1 >conftest.err
   13259   rm -f conftest.er1
   13260   cat conftest.err >&5
   13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13262   (exit $ac_status); } &&
   13263 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13264   { (case "(($ac_try" in
   13265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13266   *) ac_try_echo=$ac_try;;
   13267 esac
   13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13269   (eval "$ac_try") 2>&5
   13270   ac_status=$?
   13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13272   (exit $ac_status); }; } &&
   13273 	 { ac_try='test -s conftest$ac_exeext'
   13274   { (case "(($ac_try" in
   13275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13276   *) ac_try_echo=$ac_try;;
   13277 esac
   13278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13279   (eval "$ac_try") 2>&5
   13280   ac_status=$?
   13281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13282   (exit $ac_status); }; }; then
   13283   ac_cv_lib_udis86_ud_init=yes
   13284 else
   13285   echo "$as_me: failed program was:" >&5
   13286 sed 's/^/| /' conftest.$ac_ext >&5
   13287 
   13288 	ac_cv_lib_udis86_ud_init=no
   13289 fi
   13290 
   13291 rm -f core conftest.err conftest.$ac_objext \
   13292       conftest$ac_exeext conftest.$ac_ext
   13293 LIBS=$ac_check_lib_save_LIBS
   13294 fi
   13295 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
   13296 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
   13297 if test $ac_cv_lib_udis86_ud_init = yes; then
   13298   cat >>confdefs.h <<_ACEOF
   13299 #define HAVE_LIBUDIS86 1
   13300 _ACEOF
   13301 
   13302   LIBS="-ludis86 $LIBS"
   13303 
   13304 else
   13305 
   13306         echo "Error! You need to have libudis86 around."
   13307         exit -1
   13308 
   13309 fi
   13310 
   13311 
   13312 else
   13313   USE_UDIS86=0
   13314 
   13315 fi
   13316 
   13317 
   13318 cat >>confdefs.h <<_ACEOF
   13319 #define USE_UDIS86 $USE_UDIS86
   13320 _ACEOF
   13321 
   13322 
   13323 
   13324 # Check whether --with-oprofile was given.
   13325 if test "${with_oprofile+set}" = set; then
   13326   withval=$with_oprofile;
   13327       USE_OPROFILE=1
   13328 
   13329       case "$withval" in
   13330         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
   13331         no) llvm_cv_oppath=
   13332             USE_OPROFILE=0
   13333  ;;
   13334         *) llvm_cv_oppath="${withval}/lib/oprofile"
   13335            CPPFLAGS="-I${withval}/include";;
   13336       esac
   13337       if test -n "$llvm_cv_oppath" ; then
   13338         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
   13339                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
   13340 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
   13341 if test "${ac_cv_search_bfd_init+set}" = set; then
   13342   echo $ECHO_N "(cached) $ECHO_C" >&6
   13343 else
   13344   ac_func_search_save_LIBS=$LIBS
   13345 cat >conftest.$ac_ext <<_ACEOF
   13346 /* confdefs.h.  */
   13347 _ACEOF
   13348 cat confdefs.h >>conftest.$ac_ext
   13349 cat >>conftest.$ac_ext <<_ACEOF
   13350 /* end confdefs.h.  */
   13351 
   13352 /* Override any GCC internal prototype to avoid an error.
   13353    Use char because int might match the return type of a GCC
   13354    builtin and then its argument prototype would still apply.  */
   13355 #ifdef __cplusplus
   13356 extern "C"
   13357 #endif
   13358 char bfd_init ();
   13359 int
   13360 main ()
   13361 {
   13362 return bfd_init ();
   13363   ;
   13364   return 0;
   13365 }
   13366 _ACEOF
   13367 for ac_lib in '' bfd; do
   13368   if test -z "$ac_lib"; then
   13369     ac_res="none required"
   13370   else
   13371     ac_res=-l$ac_lib
   13372     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13373   fi
   13374   rm -f conftest.$ac_objext conftest$ac_exeext
   13375 if { (ac_try="$ac_link"
   13376 case "(($ac_try" in
   13377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13378   *) ac_try_echo=$ac_try;;
   13379 esac
   13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13381   (eval "$ac_link") 2>conftest.er1
   13382   ac_status=$?
   13383   grep -v '^ *+' conftest.er1 >conftest.err
   13384   rm -f conftest.er1
   13385   cat conftest.err >&5
   13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13387   (exit $ac_status); } &&
   13388 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13389   { (case "(($ac_try" in
   13390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13391   *) ac_try_echo=$ac_try;;
   13392 esac
   13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13394   (eval "$ac_try") 2>&5
   13395   ac_status=$?
   13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13397   (exit $ac_status); }; } &&
   13398 	 { ac_try='test -s conftest$ac_exeext'
   13399   { (case "(($ac_try" in
   13400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13401   *) ac_try_echo=$ac_try;;
   13402 esac
   13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13404   (eval "$ac_try") 2>&5
   13405   ac_status=$?
   13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13407   (exit $ac_status); }; }; then
   13408   ac_cv_search_bfd_init=$ac_res
   13409 else
   13410   echo "$as_me: failed program was:" >&5
   13411 sed 's/^/| /' conftest.$ac_ext >&5
   13412 
   13413 
   13414 fi
   13415 
   13416 rm -f core conftest.err conftest.$ac_objext \
   13417       conftest$ac_exeext
   13418   if test "${ac_cv_search_bfd_init+set}" = set; then
   13419   break
   13420 fi
   13421 done
   13422 if test "${ac_cv_search_bfd_init+set}" = set; then
   13423   :
   13424 else
   13425   ac_cv_search_bfd_init=no
   13426 fi
   13427 rm conftest.$ac_ext
   13428 LIBS=$ac_func_search_save_LIBS
   13429 fi
   13430 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
   13431 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
   13432 ac_res=$ac_cv_search_bfd_init
   13433 if test "$ac_res" != no; then
   13434   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13435 
   13436 fi
   13437 
   13438         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
   13439 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
   13440 if test "${ac_cv_search_op_open_agent+set}" = set; then
   13441   echo $ECHO_N "(cached) $ECHO_C" >&6
   13442 else
   13443   ac_func_search_save_LIBS=$LIBS
   13444 cat >conftest.$ac_ext <<_ACEOF
   13445 /* confdefs.h.  */
   13446 _ACEOF
   13447 cat confdefs.h >>conftest.$ac_ext
   13448 cat >>conftest.$ac_ext <<_ACEOF
   13449 /* end confdefs.h.  */
   13450 
   13451 /* Override any GCC internal prototype to avoid an error.
   13452    Use char because int might match the return type of a GCC
   13453    builtin and then its argument prototype would still apply.  */
   13454 #ifdef __cplusplus
   13455 extern "C"
   13456 #endif
   13457 char op_open_agent ();
   13458 int
   13459 main ()
   13460 {
   13461 return op_open_agent ();
   13462   ;
   13463   return 0;
   13464 }
   13465 _ACEOF
   13466 for ac_lib in '' opagent; do
   13467   if test -z "$ac_lib"; then
   13468     ac_res="none required"
   13469   else
   13470     ac_res=-l$ac_lib
   13471     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13472   fi
   13473   rm -f conftest.$ac_objext conftest$ac_exeext
   13474 if { (ac_try="$ac_link"
   13475 case "(($ac_try" in
   13476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13477   *) ac_try_echo=$ac_try;;
   13478 esac
   13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13480   (eval "$ac_link") 2>conftest.er1
   13481   ac_status=$?
   13482   grep -v '^ *+' conftest.er1 >conftest.err
   13483   rm -f conftest.er1
   13484   cat conftest.err >&5
   13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13486   (exit $ac_status); } &&
   13487 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13488   { (case "(($ac_try" in
   13489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13490   *) ac_try_echo=$ac_try;;
   13491 esac
   13492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13493   (eval "$ac_try") 2>&5
   13494   ac_status=$?
   13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13496   (exit $ac_status); }; } &&
   13497 	 { ac_try='test -s conftest$ac_exeext'
   13498   { (case "(($ac_try" in
   13499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13500   *) ac_try_echo=$ac_try;;
   13501 esac
   13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13503   (eval "$ac_try") 2>&5
   13504   ac_status=$?
   13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13506   (exit $ac_status); }; }; then
   13507   ac_cv_search_op_open_agent=$ac_res
   13508 else
   13509   echo "$as_me: failed program was:" >&5
   13510 sed 's/^/| /' conftest.$ac_ext >&5
   13511 
   13512 
   13513 fi
   13514 
   13515 rm -f core conftest.err conftest.$ac_objext \
   13516       conftest$ac_exeext
   13517   if test "${ac_cv_search_op_open_agent+set}" = set; then
   13518   break
   13519 fi
   13520 done
   13521 if test "${ac_cv_search_op_open_agent+set}" = set; then
   13522   :
   13523 else
   13524   ac_cv_search_op_open_agent=no
   13525 fi
   13526 rm conftest.$ac_ext
   13527 LIBS=$ac_func_search_save_LIBS
   13528 fi
   13529 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
   13530 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
   13531 ac_res=$ac_cv_search_op_open_agent
   13532 if test "$ac_res" != no; then
   13533   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13534 
   13535 else
   13536 
   13537           echo "Error! You need to have libopagent around."
   13538           exit -1
   13539 
   13540 fi
   13541 
   13542         if test "${ac_cv_header_opagent_h+set}" = set; then
   13543   { echo "$as_me:$LINENO: checking for opagent.h" >&5
   13544 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
   13545 if test "${ac_cv_header_opagent_h+set}" = set; then
   13546   echo $ECHO_N "(cached) $ECHO_C" >&6
   13547 fi
   13548 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
   13549 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
   13550 else
   13551   # Is the header compilable?
   13552 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
   13553 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
   13554 cat >conftest.$ac_ext <<_ACEOF
   13555 /* confdefs.h.  */
   13556 _ACEOF
   13557 cat confdefs.h >>conftest.$ac_ext
   13558 cat >>conftest.$ac_ext <<_ACEOF
   13559 /* end confdefs.h.  */
   13560 $ac_includes_default
   13561 #include <opagent.h>
   13562 _ACEOF
   13563 rm -f conftest.$ac_objext
   13564 if { (ac_try="$ac_compile"
   13565 case "(($ac_try" in
   13566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13567   *) ac_try_echo=$ac_try;;
   13568 esac
   13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13570   (eval "$ac_compile") 2>conftest.er1
   13571   ac_status=$?
   13572   grep -v '^ *+' conftest.er1 >conftest.err
   13573   rm -f conftest.er1
   13574   cat conftest.err >&5
   13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13576   (exit $ac_status); } &&
   13577 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13578   { (case "(($ac_try" in
   13579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13580   *) ac_try_echo=$ac_try;;
   13581 esac
   13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13583   (eval "$ac_try") 2>&5
   13584   ac_status=$?
   13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13586   (exit $ac_status); }; } &&
   13587 	 { ac_try='test -s conftest.$ac_objext'
   13588   { (case "(($ac_try" in
   13589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13590   *) ac_try_echo=$ac_try;;
   13591 esac
   13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13593   (eval "$ac_try") 2>&5
   13594   ac_status=$?
   13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13596   (exit $ac_status); }; }; then
   13597   ac_header_compiler=yes
   13598 else
   13599   echo "$as_me: failed program was:" >&5
   13600 sed 's/^/| /' conftest.$ac_ext >&5
   13601 
   13602 	ac_header_compiler=no
   13603 fi
   13604 
   13605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13607 echo "${ECHO_T}$ac_header_compiler" >&6; }
   13608 
   13609 # Is the header present?
   13610 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
   13611 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
   13612 cat >conftest.$ac_ext <<_ACEOF
   13613 /* confdefs.h.  */
   13614 _ACEOF
   13615 cat confdefs.h >>conftest.$ac_ext
   13616 cat >>conftest.$ac_ext <<_ACEOF
   13617 /* end confdefs.h.  */
   13618 #include <opagent.h>
   13619 _ACEOF
   13620 if { (ac_try="$ac_cpp conftest.$ac_ext"
   13621 case "(($ac_try" in
   13622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13623   *) ac_try_echo=$ac_try;;
   13624 esac
   13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13626   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   13627   ac_status=$?
   13628   grep -v '^ *+' conftest.er1 >conftest.err
   13629   rm -f conftest.er1
   13630   cat conftest.err >&5
   13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13632   (exit $ac_status); } >/dev/null; then
   13633   if test -s conftest.err; then
   13634     ac_cpp_err=$ac_c_preproc_warn_flag
   13635     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   13636   else
   13637     ac_cpp_err=
   13638   fi
   13639 else
   13640   ac_cpp_err=yes
   13641 fi
   13642 if test -z "$ac_cpp_err"; then
   13643   ac_header_preproc=yes
   13644 else
   13645   echo "$as_me: failed program was:" >&5
   13646 sed 's/^/| /' conftest.$ac_ext >&5
   13647 
   13648   ac_header_preproc=no
   13649 fi
   13650 
   13651 rm -f conftest.err conftest.$ac_ext
   13652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13653 echo "${ECHO_T}$ac_header_preproc" >&6; }
   13654 
   13655 # So?  What about this header?
   13656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   13657   yes:no: )
   13658     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
   13659 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13660     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
   13661 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
   13662     ac_header_preproc=yes
   13663     ;;
   13664   no:yes:* )
   13665     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
   13666 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
   13667     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
   13668 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
   13669     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
   13670 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
   13671     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
   13672 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   13673     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
   13674 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
   13675     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
   13676 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
   13677     ( cat <<\_ASBOX
   13678 ## ----------------------------------- ##
   13679 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   13680 ## ----------------------------------- ##
   13681 _ASBOX
   13682      ) | sed "s/^/$as_me: WARNING:     /" >&2
   13683     ;;
   13684 esac
   13685 { echo "$as_me:$LINENO: checking for opagent.h" >&5
   13686 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
   13687 if test "${ac_cv_header_opagent_h+set}" = set; then
   13688   echo $ECHO_N "(cached) $ECHO_C" >&6
   13689 else
   13690   ac_cv_header_opagent_h=$ac_header_preproc
   13691 fi
   13692 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
   13693 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
   13694 
   13695 fi
   13696 if test $ac_cv_header_opagent_h = yes; then
   13697   :
   13698 else
   13699 
   13700           echo "Error! You need to have opagent.h around."
   13701           exit -1
   13702 
   13703 fi
   13704 
   13705 
   13706       fi
   13707 
   13708 else
   13709 
   13710       USE_OPROFILE=0
   13711 
   13712 
   13713 fi
   13714 
   13715 
   13716 cat >>confdefs.h <<_ACEOF
   13717 #define USE_OPROFILE $USE_OPROFILE
   13718 _ACEOF
   13719 
   13720 
   13721 
   13722 
   13723 
   13724 
   13725 
   13726 
   13727 ac_header_dirent=no
   13728 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   13729   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   13730 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
   13731 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
   13732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13733   echo $ECHO_N "(cached) $ECHO_C" >&6
   13734 else
   13735   cat >conftest.$ac_ext <<_ACEOF
   13736 /* confdefs.h.  */
   13737 _ACEOF
   13738 cat confdefs.h >>conftest.$ac_ext
   13739 cat >>conftest.$ac_ext <<_ACEOF
   13740 /* end confdefs.h.  */
   13741 #include <sys/types.h>
   13742 #include <$ac_hdr>
   13743 
   13744 int
   13745 main ()
   13746 {
   13747 if ((DIR *) 0)
   13748 return 0;
   13749   ;
   13750   return 0;
   13751 }
   13752 _ACEOF
   13753 rm -f conftest.$ac_objext
   13754 if { (ac_try="$ac_compile"
   13755 case "(($ac_try" in
   13756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13757   *) ac_try_echo=$ac_try;;
   13758 esac
   13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13760   (eval "$ac_compile") 2>conftest.er1
   13761   ac_status=$?
   13762   grep -v '^ *+' conftest.er1 >conftest.err
   13763   rm -f conftest.er1
   13764   cat conftest.err >&5
   13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13766   (exit $ac_status); } &&
   13767 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13768   { (case "(($ac_try" in
   13769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13770   *) ac_try_echo=$ac_try;;
   13771 esac
   13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13773   (eval "$ac_try") 2>&5
   13774   ac_status=$?
   13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13776   (exit $ac_status); }; } &&
   13777 	 { ac_try='test -s conftest.$ac_objext'
   13778   { (case "(($ac_try" in
   13779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13780   *) ac_try_echo=$ac_try;;
   13781 esac
   13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13783   (eval "$ac_try") 2>&5
   13784   ac_status=$?
   13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13786   (exit $ac_status); }; }; then
   13787   eval "$as_ac_Header=yes"
   13788 else
   13789   echo "$as_me: failed program was:" >&5
   13790 sed 's/^/| /' conftest.$ac_ext >&5
   13791 
   13792 	eval "$as_ac_Header=no"
   13793 fi
   13794 
   13795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13796 fi
   13797 ac_res=`eval echo '${'$as_ac_Header'}'`
   13798 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13799 echo "${ECHO_T}$ac_res" >&6; }
   13800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   13801   cat >>confdefs.h <<_ACEOF
   13802 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
   13803 _ACEOF
   13804 
   13805 ac_header_dirent=$ac_hdr; break
   13806 fi
   13807 
   13808 done
   13809 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   13810 if test $ac_header_dirent = dirent.h; then
   13811   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   13812 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   13813 if test "${ac_cv_search_opendir+set}" = set; then
   13814   echo $ECHO_N "(cached) $ECHO_C" >&6
   13815 else
   13816   ac_func_search_save_LIBS=$LIBS
   13817 cat >conftest.$ac_ext <<_ACEOF
   13818 /* confdefs.h.  */
   13819 _ACEOF
   13820 cat confdefs.h >>conftest.$ac_ext
   13821 cat >>conftest.$ac_ext <<_ACEOF
   13822 /* end confdefs.h.  */
   13823 
   13824 /* Override any GCC internal prototype to avoid an error.
   13825    Use char because int might match the return type of a GCC
   13826    builtin and then its argument prototype would still apply.  */
   13827 #ifdef __cplusplus
   13828 extern "C"
   13829 #endif
   13830 char opendir ();
   13831 int
   13832 main ()
   13833 {
   13834 return opendir ();
   13835   ;
   13836   return 0;
   13837 }
   13838 _ACEOF
   13839 for ac_lib in '' dir; do
   13840   if test -z "$ac_lib"; then
   13841     ac_res="none required"
   13842   else
   13843     ac_res=-l$ac_lib
   13844     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13845   fi
   13846   rm -f conftest.$ac_objext conftest$ac_exeext
   13847 if { (ac_try="$ac_link"
   13848 case "(($ac_try" in
   13849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13850   *) ac_try_echo=$ac_try;;
   13851 esac
   13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13853   (eval "$ac_link") 2>conftest.er1
   13854   ac_status=$?
   13855   grep -v '^ *+' conftest.er1 >conftest.err
   13856   rm -f conftest.er1
   13857   cat conftest.err >&5
   13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13859   (exit $ac_status); } &&
   13860 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13861   { (case "(($ac_try" in
   13862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13863   *) ac_try_echo=$ac_try;;
   13864 esac
   13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13866   (eval "$ac_try") 2>&5
   13867   ac_status=$?
   13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13869   (exit $ac_status); }; } &&
   13870 	 { ac_try='test -s conftest$ac_exeext'
   13871   { (case "(($ac_try" in
   13872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13873   *) ac_try_echo=$ac_try;;
   13874 esac
   13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13876   (eval "$ac_try") 2>&5
   13877   ac_status=$?
   13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13879   (exit $ac_status); }; }; then
   13880   ac_cv_search_opendir=$ac_res
   13881 else
   13882   echo "$as_me: failed program was:" >&5
   13883 sed 's/^/| /' conftest.$ac_ext >&5
   13884 
   13885 
   13886 fi
   13887 
   13888 rm -f core conftest.err conftest.$ac_objext \
   13889       conftest$ac_exeext
   13890   if test "${ac_cv_search_opendir+set}" = set; then
   13891   break
   13892 fi
   13893 done
   13894 if test "${ac_cv_search_opendir+set}" = set; then
   13895   :
   13896 else
   13897   ac_cv_search_opendir=no
   13898 fi
   13899 rm conftest.$ac_ext
   13900 LIBS=$ac_func_search_save_LIBS
   13901 fi
   13902 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   13903 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   13904 ac_res=$ac_cv_search_opendir
   13905 if test "$ac_res" != no; then
   13906   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13907 
   13908 fi
   13909 
   13910 else
   13911   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   13912 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   13913 if test "${ac_cv_search_opendir+set}" = set; then
   13914   echo $ECHO_N "(cached) $ECHO_C" >&6
   13915 else
   13916   ac_func_search_save_LIBS=$LIBS
   13917 cat >conftest.$ac_ext <<_ACEOF
   13918 /* confdefs.h.  */
   13919 _ACEOF
   13920 cat confdefs.h >>conftest.$ac_ext
   13921 cat >>conftest.$ac_ext <<_ACEOF
   13922 /* end confdefs.h.  */
   13923 
   13924 /* Override any GCC internal prototype to avoid an error.
   13925    Use char because int might match the return type of a GCC
   13926    builtin and then its argument prototype would still apply.  */
   13927 #ifdef __cplusplus
   13928 extern "C"
   13929 #endif
   13930 char opendir ();
   13931 int
   13932 main ()
   13933 {
   13934 return opendir ();
   13935   ;
   13936   return 0;
   13937 }
   13938 _ACEOF
   13939 for ac_lib in '' x; do
   13940   if test -z "$ac_lib"; then
   13941     ac_res="none required"
   13942   else
   13943     ac_res=-l$ac_lib
   13944     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13945   fi
   13946   rm -f conftest.$ac_objext conftest$ac_exeext
   13947 if { (ac_try="$ac_link"
   13948 case "(($ac_try" in
   13949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13950   *) ac_try_echo=$ac_try;;
   13951 esac
   13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13953   (eval "$ac_link") 2>conftest.er1
   13954   ac_status=$?
   13955   grep -v '^ *+' conftest.er1 >conftest.err
   13956   rm -f conftest.er1
   13957   cat conftest.err >&5
   13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13959   (exit $ac_status); } &&
   13960 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13961   { (case "(($ac_try" in
   13962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13963   *) ac_try_echo=$ac_try;;
   13964 esac
   13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13966   (eval "$ac_try") 2>&5
   13967   ac_status=$?
   13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13969   (exit $ac_status); }; } &&
   13970 	 { ac_try='test -s conftest$ac_exeext'
   13971   { (case "(($ac_try" in
   13972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13973   *) ac_try_echo=$ac_try;;
   13974 esac
   13975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13976   (eval "$ac_try") 2>&5
   13977   ac_status=$?
   13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13979   (exit $ac_status); }; }; then
   13980   ac_cv_search_opendir=$ac_res
   13981 else
   13982   echo "$as_me: failed program was:" >&5
   13983 sed 's/^/| /' conftest.$ac_ext >&5
   13984 
   13985 
   13986 fi
   13987 
   13988 rm -f core conftest.err conftest.$ac_objext \
   13989       conftest$ac_exeext
   13990   if test "${ac_cv_search_opendir+set}" = set; then
   13991   break
   13992 fi
   13993 done
   13994 if test "${ac_cv_search_opendir+set}" = set; then
   13995   :
   13996 else
   13997   ac_cv_search_opendir=no
   13998 fi
   13999 rm conftest.$ac_ext
   14000 LIBS=$ac_func_search_save_LIBS
   14001 fi
   14002 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   14003 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   14004 ac_res=$ac_cv_search_opendir
   14005 if test "$ac_res" != no; then
   14006   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14007 
   14008 fi
   14009 
   14010 fi
   14011 
   14012 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
   14013 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
   14014 if test "${ac_cv_header_mmap_anon+set}" = set; then
   14015   echo $ECHO_N "(cached) $ECHO_C" >&6
   14016 else
   14017    ac_ext=c
   14018 ac_cpp='$CPP $CPPFLAGS'
   14019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14022 
   14023   cat >conftest.$ac_ext <<_ACEOF
   14024 /* confdefs.h.  */
   14025 _ACEOF
   14026 cat confdefs.h >>conftest.$ac_ext
   14027 cat >>conftest.$ac_ext <<_ACEOF
   14028 /* end confdefs.h.  */
   14029 #include <sys/mman.h>
   14030 #include <unistd.h>
   14031 #include <fcntl.h>
   14032 int
   14033 main ()
   14034 {
   14035 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
   14036   ;
   14037   return 0;
   14038 }
   14039 _ACEOF
   14040 rm -f conftest.$ac_objext
   14041 if { (ac_try="$ac_compile"
   14042 case "(($ac_try" in
   14043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14044   *) ac_try_echo=$ac_try;;
   14045 esac
   14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14047   (eval "$ac_compile") 2>conftest.er1
   14048   ac_status=$?
   14049   grep -v '^ *+' conftest.er1 >conftest.err
   14050   rm -f conftest.er1
   14051   cat conftest.err >&5
   14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14053   (exit $ac_status); } &&
   14054 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14055   { (case "(($ac_try" in
   14056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14057   *) ac_try_echo=$ac_try;;
   14058 esac
   14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14060   (eval "$ac_try") 2>&5
   14061   ac_status=$?
   14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14063   (exit $ac_status); }; } &&
   14064 	 { ac_try='test -s conftest.$ac_objext'
   14065   { (case "(($ac_try" in
   14066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14067   *) ac_try_echo=$ac_try;;
   14068 esac
   14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14070   (eval "$ac_try") 2>&5
   14071   ac_status=$?
   14072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14073   (exit $ac_status); }; }; then
   14074   ac_cv_header_mmap_anon=yes
   14075 else
   14076   echo "$as_me: failed program was:" >&5
   14077 sed 's/^/| /' conftest.$ac_ext >&5
   14078 
   14079 	ac_cv_header_mmap_anon=no
   14080 fi
   14081 
   14082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14083   ac_ext=c
   14084 ac_cpp='$CPP $CPPFLAGS'
   14085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14088 
   14089 
   14090 fi
   14091 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
   14092 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
   14093 if test "$ac_cv_header_mmap_anon" = yes; then
   14094 
   14095 cat >>confdefs.h <<\_ACEOF
   14096 #define HAVE_MMAP_ANONYMOUS 1
   14097 _ACEOF
   14098 
   14099 fi
   14100 
   14101 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
   14102 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
   14103 if test "${ac_cv_header_stat_broken+set}" = set; then
   14104   echo $ECHO_N "(cached) $ECHO_C" >&6
   14105 else
   14106   cat >conftest.$ac_ext <<_ACEOF
   14107 /* confdefs.h.  */
   14108 _ACEOF
   14109 cat confdefs.h >>conftest.$ac_ext
   14110 cat >>conftest.$ac_ext <<_ACEOF
   14111 /* end confdefs.h.  */
   14112 #include <sys/types.h>
   14113 #include <sys/stat.h>
   14114 
   14115 #if defined S_ISBLK && defined S_IFDIR
   14116 # if S_ISBLK (S_IFDIR)
   14117 You lose.
   14118 # endif
   14119 #endif
   14120 
   14121 #if defined S_ISBLK && defined S_IFCHR
   14122 # if S_ISBLK (S_IFCHR)
   14123 You lose.
   14124 # endif
   14125 #endif
   14126 
   14127 #if defined S_ISLNK && defined S_IFREG
   14128 # if S_ISLNK (S_IFREG)
   14129 You lose.
   14130 # endif
   14131 #endif
   14132 
   14133 #if defined S_ISSOCK && defined S_IFREG
   14134 # if S_ISSOCK (S_IFREG)
   14135 You lose.
   14136 # endif
   14137 #endif
   14138 
   14139 _ACEOF
   14140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14141   $EGREP "You lose" >/dev/null 2>&1; then
   14142   ac_cv_header_stat_broken=yes
   14143 else
   14144   ac_cv_header_stat_broken=no
   14145 fi
   14146 rm -f conftest*
   14147 
   14148 fi
   14149 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
   14150 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
   14151 if test $ac_cv_header_stat_broken = yes; then
   14152 
   14153 cat >>confdefs.h <<\_ACEOF
   14154 #define STAT_MACROS_BROKEN 1
   14155 _ACEOF
   14156 
   14157 fi
   14158 
   14159 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
   14160 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
   14161 if test "${ac_cv_header_sys_wait_h+set}" = set; then
   14162   echo $ECHO_N "(cached) $ECHO_C" >&6
   14163 else
   14164   cat >conftest.$ac_ext <<_ACEOF
   14165 /* confdefs.h.  */
   14166 _ACEOF
   14167 cat confdefs.h >>conftest.$ac_ext
   14168 cat >>conftest.$ac_ext <<_ACEOF
   14169 /* end confdefs.h.  */
   14170 #include <sys/types.h>
   14171 #include <sys/wait.h>
   14172 #ifndef WEXITSTATUS
   14173 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
   14174 #endif
   14175 #ifndef WIFEXITED
   14176 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   14177 #endif
   14178 
   14179 int
   14180 main ()
   14181 {
   14182   int s;
   14183   wait (&s);
   14184   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   14185   ;
   14186   return 0;
   14187 }
   14188 _ACEOF
   14189 rm -f conftest.$ac_objext
   14190 if { (ac_try="$ac_compile"
   14191 case "(($ac_try" in
   14192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14193   *) ac_try_echo=$ac_try;;
   14194 esac
   14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14196   (eval "$ac_compile") 2>conftest.er1
   14197   ac_status=$?
   14198   grep -v '^ *+' conftest.er1 >conftest.err
   14199   rm -f conftest.er1
   14200   cat conftest.err >&5
   14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14202   (exit $ac_status); } &&
   14203 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14204   { (case "(($ac_try" in
   14205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14206   *) ac_try_echo=$ac_try;;
   14207 esac
   14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14209   (eval "$ac_try") 2>&5
   14210   ac_status=$?
   14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14212   (exit $ac_status); }; } &&
   14213 	 { ac_try='test -s conftest.$ac_objext'
   14214   { (case "(($ac_try" in
   14215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14216   *) ac_try_echo=$ac_try;;
   14217 esac
   14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14219   (eval "$ac_try") 2>&5
   14220   ac_status=$?
   14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14222   (exit $ac_status); }; }; then
   14223   ac_cv_header_sys_wait_h=yes
   14224 else
   14225   echo "$as_me: failed program was:" >&5
   14226 sed 's/^/| /' conftest.$ac_ext >&5
   14227 
   14228 	ac_cv_header_sys_wait_h=no
   14229 fi
   14230 
   14231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14232 fi
   14233 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
   14234 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
   14235 if test $ac_cv_header_sys_wait_h = yes; then
   14236 
   14237 cat >>confdefs.h <<\_ACEOF
   14238 #define HAVE_SYS_WAIT_H 1
   14239 _ACEOF
   14240 
   14241 fi
   14242 
   14243 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
   14244 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
   14245 if test "${ac_cv_header_time+set}" = set; then
   14246   echo $ECHO_N "(cached) $ECHO_C" >&6
   14247 else
   14248   cat >conftest.$ac_ext <<_ACEOF
   14249 /* confdefs.h.  */
   14250 _ACEOF
   14251 cat confdefs.h >>conftest.$ac_ext
   14252 cat >>conftest.$ac_ext <<_ACEOF
   14253 /* end confdefs.h.  */
   14254 #include <sys/types.h>
   14255 #include <sys/time.h>
   14256 #include <time.h>
   14257 
   14258 int
   14259 main ()
   14260 {
   14261 if ((struct tm *) 0)
   14262 return 0;
   14263   ;
   14264   return 0;
   14265 }
   14266 _ACEOF
   14267 rm -f conftest.$ac_objext
   14268 if { (ac_try="$ac_compile"
   14269 case "(($ac_try" in
   14270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14271   *) ac_try_echo=$ac_try;;
   14272 esac
   14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14274   (eval "$ac_compile") 2>conftest.er1
   14275   ac_status=$?
   14276   grep -v '^ *+' conftest.er1 >conftest.err
   14277   rm -f conftest.er1
   14278   cat conftest.err >&5
   14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14280   (exit $ac_status); } &&
   14281 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14282   { (case "(($ac_try" in
   14283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14284   *) ac_try_echo=$ac_try;;
   14285 esac
   14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14287   (eval "$ac_try") 2>&5
   14288   ac_status=$?
   14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14290   (exit $ac_status); }; } &&
   14291 	 { ac_try='test -s conftest.$ac_objext'
   14292   { (case "(($ac_try" in
   14293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14294   *) ac_try_echo=$ac_try;;
   14295 esac
   14296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14297   (eval "$ac_try") 2>&5
   14298   ac_status=$?
   14299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14300   (exit $ac_status); }; }; then
   14301   ac_cv_header_time=yes
   14302 else
   14303   echo "$as_me: failed program was:" >&5
   14304 sed 's/^/| /' conftest.$ac_ext >&5
   14305 
   14306 	ac_cv_header_time=no
   14307 fi
   14308 
   14309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14310 fi
   14311 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
   14312 echo "${ECHO_T}$ac_cv_header_time" >&6; }
   14313 if test $ac_cv_header_time = yes; then
   14314 
   14315 cat >>confdefs.h <<\_ACEOF
   14316 #define TIME_WITH_SYS_TIME 1
   14317 _ACEOF
   14318 
   14319 fi
   14320 
   14321 
   14322 
   14323 
   14324 
   14325 
   14326 
   14327 
   14328 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
   14329 do
   14330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14332   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14335   echo $ECHO_N "(cached) $ECHO_C" >&6
   14336 fi
   14337 ac_res=`eval echo '${'$as_ac_Header'}'`
   14338 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14339 echo "${ECHO_T}$ac_res" >&6; }
   14340 else
   14341   # Is the header compilable?
   14342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14344 cat >conftest.$ac_ext <<_ACEOF
   14345 /* confdefs.h.  */
   14346 _ACEOF
   14347 cat confdefs.h >>conftest.$ac_ext
   14348 cat >>conftest.$ac_ext <<_ACEOF
   14349 /* end confdefs.h.  */
   14350 $ac_includes_default
   14351 #include <$ac_header>
   14352 _ACEOF
   14353 rm -f conftest.$ac_objext
   14354 if { (ac_try="$ac_compile"
   14355 case "(($ac_try" in
   14356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14357   *) ac_try_echo=$ac_try;;
   14358 esac
   14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14360   (eval "$ac_compile") 2>conftest.er1
   14361   ac_status=$?
   14362   grep -v '^ *+' conftest.er1 >conftest.err
   14363   rm -f conftest.er1
   14364   cat conftest.err >&5
   14365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14366   (exit $ac_status); } &&
   14367 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14368   { (case "(($ac_try" in
   14369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14370   *) ac_try_echo=$ac_try;;
   14371 esac
   14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14373   (eval "$ac_try") 2>&5
   14374   ac_status=$?
   14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14376   (exit $ac_status); }; } &&
   14377 	 { ac_try='test -s conftest.$ac_objext'
   14378   { (case "(($ac_try" in
   14379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14380   *) ac_try_echo=$ac_try;;
   14381 esac
   14382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14383   (eval "$ac_try") 2>&5
   14384   ac_status=$?
   14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14386   (exit $ac_status); }; }; then
   14387   ac_header_compiler=yes
   14388 else
   14389   echo "$as_me: failed program was:" >&5
   14390 sed 's/^/| /' conftest.$ac_ext >&5
   14391 
   14392 	ac_header_compiler=no
   14393 fi
   14394 
   14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14397 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14398 
   14399 # Is the header present?
   14400 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14402 cat >conftest.$ac_ext <<_ACEOF
   14403 /* confdefs.h.  */
   14404 _ACEOF
   14405 cat confdefs.h >>conftest.$ac_ext
   14406 cat >>conftest.$ac_ext <<_ACEOF
   14407 /* end confdefs.h.  */
   14408 #include <$ac_header>
   14409 _ACEOF
   14410 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14411 case "(($ac_try" in
   14412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14413   *) ac_try_echo=$ac_try;;
   14414 esac
   14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14417   ac_status=$?
   14418   grep -v '^ *+' conftest.er1 >conftest.err
   14419   rm -f conftest.er1
   14420   cat conftest.err >&5
   14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14422   (exit $ac_status); } >/dev/null; then
   14423   if test -s conftest.err; then
   14424     ac_cpp_err=$ac_c_preproc_warn_flag
   14425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   14426   else
   14427     ac_cpp_err=
   14428   fi
   14429 else
   14430   ac_cpp_err=yes
   14431 fi
   14432 if test -z "$ac_cpp_err"; then
   14433   ac_header_preproc=yes
   14434 else
   14435   echo "$as_me: failed program was:" >&5
   14436 sed 's/^/| /' conftest.$ac_ext >&5
   14437 
   14438   ac_header_preproc=no
   14439 fi
   14440 
   14441 rm -f conftest.err conftest.$ac_ext
   14442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14443 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14444 
   14445 # So?  What about this header?
   14446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14447   yes:no: )
   14448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14452     ac_header_preproc=yes
   14453     ;;
   14454   no:yes:* )
   14455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14467     ( cat <<\_ASBOX
   14468 ## ----------------------------------- ##
   14469 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   14470 ## ----------------------------------- ##
   14471 _ASBOX
   14472      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14473     ;;
   14474 esac
   14475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14478   echo $ECHO_N "(cached) $ECHO_C" >&6
   14479 else
   14480   eval "$as_ac_Header=\$ac_header_preproc"
   14481 fi
   14482 ac_res=`eval echo '${'$as_ac_Header'}'`
   14483 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14484 echo "${ECHO_T}$ac_res" >&6; }
   14485 
   14486 fi
   14487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14488   cat >>confdefs.h <<_ACEOF
   14489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14490 _ACEOF
   14491 
   14492 fi
   14493 
   14494 done
   14495 
   14496 
   14497 
   14498 
   14499 
   14500 
   14501 
   14502 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
   14503 do
   14504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14506   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14509   echo $ECHO_N "(cached) $ECHO_C" >&6
   14510 fi
   14511 ac_res=`eval echo '${'$as_ac_Header'}'`
   14512 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14513 echo "${ECHO_T}$ac_res" >&6; }
   14514 else
   14515   # Is the header compilable?
   14516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14518 cat >conftest.$ac_ext <<_ACEOF
   14519 /* confdefs.h.  */
   14520 _ACEOF
   14521 cat confdefs.h >>conftest.$ac_ext
   14522 cat >>conftest.$ac_ext <<_ACEOF
   14523 /* end confdefs.h.  */
   14524 $ac_includes_default
   14525 #include <$ac_header>
   14526 _ACEOF
   14527 rm -f conftest.$ac_objext
   14528 if { (ac_try="$ac_compile"
   14529 case "(($ac_try" in
   14530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14531   *) ac_try_echo=$ac_try;;
   14532 esac
   14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14534   (eval "$ac_compile") 2>conftest.er1
   14535   ac_status=$?
   14536   grep -v '^ *+' conftest.er1 >conftest.err
   14537   rm -f conftest.er1
   14538   cat conftest.err >&5
   14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14540   (exit $ac_status); } &&
   14541 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14542   { (case "(($ac_try" in
   14543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14544   *) ac_try_echo=$ac_try;;
   14545 esac
   14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14547   (eval "$ac_try") 2>&5
   14548   ac_status=$?
   14549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14550   (exit $ac_status); }; } &&
   14551 	 { ac_try='test -s conftest.$ac_objext'
   14552   { (case "(($ac_try" in
   14553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14554   *) ac_try_echo=$ac_try;;
   14555 esac
   14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14557   (eval "$ac_try") 2>&5
   14558   ac_status=$?
   14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14560   (exit $ac_status); }; }; then
   14561   ac_header_compiler=yes
   14562 else
   14563   echo "$as_me: failed program was:" >&5
   14564 sed 's/^/| /' conftest.$ac_ext >&5
   14565 
   14566 	ac_header_compiler=no
   14567 fi
   14568 
   14569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14571 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14572 
   14573 # Is the header present?
   14574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14576 cat >conftest.$ac_ext <<_ACEOF
   14577 /* confdefs.h.  */
   14578 _ACEOF
   14579 cat confdefs.h >>conftest.$ac_ext
   14580 cat >>conftest.$ac_ext <<_ACEOF
   14581 /* end confdefs.h.  */
   14582 #include <$ac_header>
   14583 _ACEOF
   14584 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14585 case "(($ac_try" in
   14586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14587   *) ac_try_echo=$ac_try;;
   14588 esac
   14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14591   ac_status=$?
   14592   grep -v '^ *+' conftest.er1 >conftest.err
   14593   rm -f conftest.er1
   14594   cat conftest.err >&5
   14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14596   (exit $ac_status); } >/dev/null; then
   14597   if test -s conftest.err; then
   14598     ac_cpp_err=$ac_c_preproc_warn_flag
   14599     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   14600   else
   14601     ac_cpp_err=
   14602   fi
   14603 else
   14604   ac_cpp_err=yes
   14605 fi
   14606 if test -z "$ac_cpp_err"; then
   14607   ac_header_preproc=yes
   14608 else
   14609   echo "$as_me: failed program was:" >&5
   14610 sed 's/^/| /' conftest.$ac_ext >&5
   14611 
   14612   ac_header_preproc=no
   14613 fi
   14614 
   14615 rm -f conftest.err conftest.$ac_ext
   14616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14617 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14618 
   14619 # So?  What about this header?
   14620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14621   yes:no: )
   14622     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14626     ac_header_preproc=yes
   14627     ;;
   14628   no:yes:* )
   14629     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14631     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14632 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14633     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14635     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14636 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14639     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14641     ( cat <<\_ASBOX
   14642 ## ----------------------------------- ##
   14643 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   14644 ## ----------------------------------- ##
   14645 _ASBOX
   14646      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14647     ;;
   14648 esac
   14649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14652   echo $ECHO_N "(cached) $ECHO_C" >&6
   14653 else
   14654   eval "$as_ac_Header=\$ac_header_preproc"
   14655 fi
   14656 ac_res=`eval echo '${'$as_ac_Header'}'`
   14657 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14658 echo "${ECHO_T}$ac_res" >&6; }
   14659 
   14660 fi
   14661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14662   cat >>confdefs.h <<_ACEOF
   14663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14664 _ACEOF
   14665 
   14666 fi
   14667 
   14668 done
   14669 
   14670 
   14671 
   14672 for ac_header in utime.h windows.h
   14673 do
   14674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14676   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14679   echo $ECHO_N "(cached) $ECHO_C" >&6
   14680 fi
   14681 ac_res=`eval echo '${'$as_ac_Header'}'`
   14682 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14683 echo "${ECHO_T}$ac_res" >&6; }
   14684 else
   14685   # Is the header compilable?
   14686 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14688 cat >conftest.$ac_ext <<_ACEOF
   14689 /* confdefs.h.  */
   14690 _ACEOF
   14691 cat confdefs.h >>conftest.$ac_ext
   14692 cat >>conftest.$ac_ext <<_ACEOF
   14693 /* end confdefs.h.  */
   14694 $ac_includes_default
   14695 #include <$ac_header>
   14696 _ACEOF
   14697 rm -f conftest.$ac_objext
   14698 if { (ac_try="$ac_compile"
   14699 case "(($ac_try" in
   14700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14701   *) ac_try_echo=$ac_try;;
   14702 esac
   14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14704   (eval "$ac_compile") 2>conftest.er1
   14705   ac_status=$?
   14706   grep -v '^ *+' conftest.er1 >conftest.err
   14707   rm -f conftest.er1
   14708   cat conftest.err >&5
   14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14710   (exit $ac_status); } &&
   14711 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14712   { (case "(($ac_try" in
   14713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14714   *) ac_try_echo=$ac_try;;
   14715 esac
   14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14717   (eval "$ac_try") 2>&5
   14718   ac_status=$?
   14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14720   (exit $ac_status); }; } &&
   14721 	 { ac_try='test -s conftest.$ac_objext'
   14722   { (case "(($ac_try" in
   14723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14724   *) ac_try_echo=$ac_try;;
   14725 esac
   14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14727   (eval "$ac_try") 2>&5
   14728   ac_status=$?
   14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14730   (exit $ac_status); }; }; then
   14731   ac_header_compiler=yes
   14732 else
   14733   echo "$as_me: failed program was:" >&5
   14734 sed 's/^/| /' conftest.$ac_ext >&5
   14735 
   14736 	ac_header_compiler=no
   14737 fi
   14738 
   14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14741 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14742 
   14743 # Is the header present?
   14744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14746 cat >conftest.$ac_ext <<_ACEOF
   14747 /* confdefs.h.  */
   14748 _ACEOF
   14749 cat confdefs.h >>conftest.$ac_ext
   14750 cat >>conftest.$ac_ext <<_ACEOF
   14751 /* end confdefs.h.  */
   14752 #include <$ac_header>
   14753 _ACEOF
   14754 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14755 case "(($ac_try" in
   14756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14757   *) ac_try_echo=$ac_try;;
   14758 esac
   14759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14760   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14761   ac_status=$?
   14762   grep -v '^ *+' conftest.er1 >conftest.err
   14763   rm -f conftest.er1
   14764   cat conftest.err >&5
   14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14766   (exit $ac_status); } >/dev/null; then
   14767   if test -s conftest.err; then
   14768     ac_cpp_err=$ac_c_preproc_warn_flag
   14769     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   14770   else
   14771     ac_cpp_err=
   14772   fi
   14773 else
   14774   ac_cpp_err=yes
   14775 fi
   14776 if test -z "$ac_cpp_err"; then
   14777   ac_header_preproc=yes
   14778 else
   14779   echo "$as_me: failed program was:" >&5
   14780 sed 's/^/| /' conftest.$ac_ext >&5
   14781 
   14782   ac_header_preproc=no
   14783 fi
   14784 
   14785 rm -f conftest.err conftest.$ac_ext
   14786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14787 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14788 
   14789 # So?  What about this header?
   14790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14791   yes:no: )
   14792     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14796     ac_header_preproc=yes
   14797     ;;
   14798   no:yes:* )
   14799     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14801     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14802 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14803     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14805     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14806 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14809     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14811     ( cat <<\_ASBOX
   14812 ## ----------------------------------- ##
   14813 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   14814 ## ----------------------------------- ##
   14815 _ASBOX
   14816      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14817     ;;
   14818 esac
   14819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14822   echo $ECHO_N "(cached) $ECHO_C" >&6
   14823 else
   14824   eval "$as_ac_Header=\$ac_header_preproc"
   14825 fi
   14826 ac_res=`eval echo '${'$as_ac_Header'}'`
   14827 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14828 echo "${ECHO_T}$ac_res" >&6; }
   14829 
   14830 fi
   14831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14832   cat >>confdefs.h <<_ACEOF
   14833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14834 _ACEOF
   14835 
   14836 fi
   14837 
   14838 done
   14839 
   14840 
   14841 
   14842 
   14843 
   14844 
   14845 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
   14846 do
   14847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14849   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14852   echo $ECHO_N "(cached) $ECHO_C" >&6
   14853 fi
   14854 ac_res=`eval echo '${'$as_ac_Header'}'`
   14855 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14856 echo "${ECHO_T}$ac_res" >&6; }
   14857 else
   14858   # Is the header compilable?
   14859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14861 cat >conftest.$ac_ext <<_ACEOF
   14862 /* confdefs.h.  */
   14863 _ACEOF
   14864 cat confdefs.h >>conftest.$ac_ext
   14865 cat >>conftest.$ac_ext <<_ACEOF
   14866 /* end confdefs.h.  */
   14867 $ac_includes_default
   14868 #include <$ac_header>
   14869 _ACEOF
   14870 rm -f conftest.$ac_objext
   14871 if { (ac_try="$ac_compile"
   14872 case "(($ac_try" in
   14873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14874   *) ac_try_echo=$ac_try;;
   14875 esac
   14876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14877   (eval "$ac_compile") 2>conftest.er1
   14878   ac_status=$?
   14879   grep -v '^ *+' conftest.er1 >conftest.err
   14880   rm -f conftest.er1
   14881   cat conftest.err >&5
   14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14883   (exit $ac_status); } &&
   14884 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14885   { (case "(($ac_try" in
   14886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14887   *) ac_try_echo=$ac_try;;
   14888 esac
   14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14890   (eval "$ac_try") 2>&5
   14891   ac_status=$?
   14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14893   (exit $ac_status); }; } &&
   14894 	 { ac_try='test -s conftest.$ac_objext'
   14895   { (case "(($ac_try" in
   14896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14897   *) ac_try_echo=$ac_try;;
   14898 esac
   14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14900   (eval "$ac_try") 2>&5
   14901   ac_status=$?
   14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14903   (exit $ac_status); }; }; then
   14904   ac_header_compiler=yes
   14905 else
   14906   echo "$as_me: failed program was:" >&5
   14907 sed 's/^/| /' conftest.$ac_ext >&5
   14908 
   14909 	ac_header_compiler=no
   14910 fi
   14911 
   14912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14914 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14915 
   14916 # Is the header present?
   14917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14919 cat >conftest.$ac_ext <<_ACEOF
   14920 /* confdefs.h.  */
   14921 _ACEOF
   14922 cat confdefs.h >>conftest.$ac_ext
   14923 cat >>conftest.$ac_ext <<_ACEOF
   14924 /* end confdefs.h.  */
   14925 #include <$ac_header>
   14926 _ACEOF
   14927 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14928 case "(($ac_try" in
   14929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14930   *) ac_try_echo=$ac_try;;
   14931 esac
   14932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14934   ac_status=$?
   14935   grep -v '^ *+' conftest.er1 >conftest.err
   14936   rm -f conftest.er1
   14937   cat conftest.err >&5
   14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14939   (exit $ac_status); } >/dev/null; then
   14940   if test -s conftest.err; then
   14941     ac_cpp_err=$ac_c_preproc_warn_flag
   14942     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   14943   else
   14944     ac_cpp_err=
   14945   fi
   14946 else
   14947   ac_cpp_err=yes
   14948 fi
   14949 if test -z "$ac_cpp_err"; then
   14950   ac_header_preproc=yes
   14951 else
   14952   echo "$as_me: failed program was:" >&5
   14953 sed 's/^/| /' conftest.$ac_ext >&5
   14954 
   14955   ac_header_preproc=no
   14956 fi
   14957 
   14958 rm -f conftest.err conftest.$ac_ext
   14959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14960 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14961 
   14962 # So?  What about this header?
   14963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14964   yes:no: )
   14965     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14969     ac_header_preproc=yes
   14970     ;;
   14971   no:yes:* )
   14972     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14974     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14975 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14976     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14978     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14979 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14982     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14984     ( cat <<\_ASBOX
   14985 ## ----------------------------------- ##
   14986 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   14987 ## ----------------------------------- ##
   14988 _ASBOX
   14989      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14990     ;;
   14991 esac
   14992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14995   echo $ECHO_N "(cached) $ECHO_C" >&6
   14996 else
   14997   eval "$as_ac_Header=\$ac_header_preproc"
   14998 fi
   14999 ac_res=`eval echo '${'$as_ac_Header'}'`
   15000 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15001 echo "${ECHO_T}$ac_res" >&6; }
   15002 
   15003 fi
   15004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15005   cat >>confdefs.h <<_ACEOF
   15006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15007 _ACEOF
   15008 
   15009 fi
   15010 
   15011 done
   15012 
   15013 
   15014 
   15015 
   15016 
   15017 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
   15018 do
   15019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15021   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15024   echo $ECHO_N "(cached) $ECHO_C" >&6
   15025 fi
   15026 ac_res=`eval echo '${'$as_ac_Header'}'`
   15027 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15028 echo "${ECHO_T}$ac_res" >&6; }
   15029 else
   15030   # Is the header compilable?
   15031 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15033 cat >conftest.$ac_ext <<_ACEOF
   15034 /* confdefs.h.  */
   15035 _ACEOF
   15036 cat confdefs.h >>conftest.$ac_ext
   15037 cat >>conftest.$ac_ext <<_ACEOF
   15038 /* end confdefs.h.  */
   15039 $ac_includes_default
   15040 #include <$ac_header>
   15041 _ACEOF
   15042 rm -f conftest.$ac_objext
   15043 if { (ac_try="$ac_compile"
   15044 case "(($ac_try" in
   15045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15046   *) ac_try_echo=$ac_try;;
   15047 esac
   15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15049   (eval "$ac_compile") 2>conftest.er1
   15050   ac_status=$?
   15051   grep -v '^ *+' conftest.er1 >conftest.err
   15052   rm -f conftest.er1
   15053   cat conftest.err >&5
   15054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15055   (exit $ac_status); } &&
   15056 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15057   { (case "(($ac_try" in
   15058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15059   *) ac_try_echo=$ac_try;;
   15060 esac
   15061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15062   (eval "$ac_try") 2>&5
   15063   ac_status=$?
   15064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15065   (exit $ac_status); }; } &&
   15066 	 { ac_try='test -s conftest.$ac_objext'
   15067   { (case "(($ac_try" in
   15068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15069   *) ac_try_echo=$ac_try;;
   15070 esac
   15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15072   (eval "$ac_try") 2>&5
   15073   ac_status=$?
   15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15075   (exit $ac_status); }; }; then
   15076   ac_header_compiler=yes
   15077 else
   15078   echo "$as_me: failed program was:" >&5
   15079 sed 's/^/| /' conftest.$ac_ext >&5
   15080 
   15081 	ac_header_compiler=no
   15082 fi
   15083 
   15084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15086 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15087 
   15088 # Is the header present?
   15089 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15091 cat >conftest.$ac_ext <<_ACEOF
   15092 /* confdefs.h.  */
   15093 _ACEOF
   15094 cat confdefs.h >>conftest.$ac_ext
   15095 cat >>conftest.$ac_ext <<_ACEOF
   15096 /* end confdefs.h.  */
   15097 #include <$ac_header>
   15098 _ACEOF
   15099 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15100 case "(($ac_try" in
   15101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15102   *) ac_try_echo=$ac_try;;
   15103 esac
   15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15105   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15106   ac_status=$?
   15107   grep -v '^ *+' conftest.er1 >conftest.err
   15108   rm -f conftest.er1
   15109   cat conftest.err >&5
   15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15111   (exit $ac_status); } >/dev/null; then
   15112   if test -s conftest.err; then
   15113     ac_cpp_err=$ac_c_preproc_warn_flag
   15114     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15115   else
   15116     ac_cpp_err=
   15117   fi
   15118 else
   15119   ac_cpp_err=yes
   15120 fi
   15121 if test -z "$ac_cpp_err"; then
   15122   ac_header_preproc=yes
   15123 else
   15124   echo "$as_me: failed program was:" >&5
   15125 sed 's/^/| /' conftest.$ac_ext >&5
   15126 
   15127   ac_header_preproc=no
   15128 fi
   15129 
   15130 rm -f conftest.err conftest.$ac_ext
   15131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15132 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15133 
   15134 # So?  What about this header?
   15135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15136   yes:no: )
   15137     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15141     ac_header_preproc=yes
   15142     ;;
   15143   no:yes:* )
   15144     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15146     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15147 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15148     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15150     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15151 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15154     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15156     ( cat <<\_ASBOX
   15157 ## ----------------------------------- ##
   15158 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   15159 ## ----------------------------------- ##
   15160 _ASBOX
   15161      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15162     ;;
   15163 esac
   15164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15167   echo $ECHO_N "(cached) $ECHO_C" >&6
   15168 else
   15169   eval "$as_ac_Header=\$ac_header_preproc"
   15170 fi
   15171 ac_res=`eval echo '${'$as_ac_Header'}'`
   15172 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15173 echo "${ECHO_T}$ac_res" >&6; }
   15174 
   15175 fi
   15176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15177   cat >>confdefs.h <<_ACEOF
   15178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15179 _ACEOF
   15180 
   15181 fi
   15182 
   15183 done
   15184 
   15185 
   15186 for ac_header in valgrind/valgrind.h
   15187 do
   15188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15190   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15193   echo $ECHO_N "(cached) $ECHO_C" >&6
   15194 fi
   15195 ac_res=`eval echo '${'$as_ac_Header'}'`
   15196 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15197 echo "${ECHO_T}$ac_res" >&6; }
   15198 else
   15199   # Is the header compilable?
   15200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15202 cat >conftest.$ac_ext <<_ACEOF
   15203 /* confdefs.h.  */
   15204 _ACEOF
   15205 cat confdefs.h >>conftest.$ac_ext
   15206 cat >>conftest.$ac_ext <<_ACEOF
   15207 /* end confdefs.h.  */
   15208 $ac_includes_default
   15209 #include <$ac_header>
   15210 _ACEOF
   15211 rm -f conftest.$ac_objext
   15212 if { (ac_try="$ac_compile"
   15213 case "(($ac_try" in
   15214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15215   *) ac_try_echo=$ac_try;;
   15216 esac
   15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15218   (eval "$ac_compile") 2>conftest.er1
   15219   ac_status=$?
   15220   grep -v '^ *+' conftest.er1 >conftest.err
   15221   rm -f conftest.er1
   15222   cat conftest.err >&5
   15223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15224   (exit $ac_status); } &&
   15225 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15226   { (case "(($ac_try" in
   15227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15228   *) ac_try_echo=$ac_try;;
   15229 esac
   15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15231   (eval "$ac_try") 2>&5
   15232   ac_status=$?
   15233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15234   (exit $ac_status); }; } &&
   15235 	 { ac_try='test -s conftest.$ac_objext'
   15236   { (case "(($ac_try" in
   15237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15238   *) ac_try_echo=$ac_try;;
   15239 esac
   15240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15241   (eval "$ac_try") 2>&5
   15242   ac_status=$?
   15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15244   (exit $ac_status); }; }; then
   15245   ac_header_compiler=yes
   15246 else
   15247   echo "$as_me: failed program was:" >&5
   15248 sed 's/^/| /' conftest.$ac_ext >&5
   15249 
   15250 	ac_header_compiler=no
   15251 fi
   15252 
   15253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15255 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15256 
   15257 # Is the header present?
   15258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15260 cat >conftest.$ac_ext <<_ACEOF
   15261 /* confdefs.h.  */
   15262 _ACEOF
   15263 cat confdefs.h >>conftest.$ac_ext
   15264 cat >>conftest.$ac_ext <<_ACEOF
   15265 /* end confdefs.h.  */
   15266 #include <$ac_header>
   15267 _ACEOF
   15268 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15269 case "(($ac_try" in
   15270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15271   *) ac_try_echo=$ac_try;;
   15272 esac
   15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15275   ac_status=$?
   15276   grep -v '^ *+' conftest.er1 >conftest.err
   15277   rm -f conftest.er1
   15278   cat conftest.err >&5
   15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15280   (exit $ac_status); } >/dev/null; then
   15281   if test -s conftest.err; then
   15282     ac_cpp_err=$ac_c_preproc_warn_flag
   15283     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15284   else
   15285     ac_cpp_err=
   15286   fi
   15287 else
   15288   ac_cpp_err=yes
   15289 fi
   15290 if test -z "$ac_cpp_err"; then
   15291   ac_header_preproc=yes
   15292 else
   15293   echo "$as_me: failed program was:" >&5
   15294 sed 's/^/| /' conftest.$ac_ext >&5
   15295 
   15296   ac_header_preproc=no
   15297 fi
   15298 
   15299 rm -f conftest.err conftest.$ac_ext
   15300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15301 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15302 
   15303 # So?  What about this header?
   15304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15305   yes:no: )
   15306     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15310     ac_header_preproc=yes
   15311     ;;
   15312   no:yes:* )
   15313     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15315     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15316 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15317     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15319     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15320 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15323     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15325     ( cat <<\_ASBOX
   15326 ## ----------------------------------- ##
   15327 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   15328 ## ----------------------------------- ##
   15329 _ASBOX
   15330      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15331     ;;
   15332 esac
   15333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15336   echo $ECHO_N "(cached) $ECHO_C" >&6
   15337 else
   15338   eval "$as_ac_Header=\$ac_header_preproc"
   15339 fi
   15340 ac_res=`eval echo '${'$as_ac_Header'}'`
   15341 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15342 echo "${ECHO_T}$ac_res" >&6; }
   15343 
   15344 fi
   15345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15346   cat >>confdefs.h <<_ACEOF
   15347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15348 _ACEOF
   15349 
   15350 fi
   15351 
   15352 done
   15353 
   15354 
   15355 for ac_header in fenv.h
   15356 do
   15357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15359   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15362   echo $ECHO_N "(cached) $ECHO_C" >&6
   15363 fi
   15364 ac_res=`eval echo '${'$as_ac_Header'}'`
   15365 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15366 echo "${ECHO_T}$ac_res" >&6; }
   15367 else
   15368   # Is the header compilable?
   15369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15371 cat >conftest.$ac_ext <<_ACEOF
   15372 /* confdefs.h.  */
   15373 _ACEOF
   15374 cat confdefs.h >>conftest.$ac_ext
   15375 cat >>conftest.$ac_ext <<_ACEOF
   15376 /* end confdefs.h.  */
   15377 $ac_includes_default
   15378 #include <$ac_header>
   15379 _ACEOF
   15380 rm -f conftest.$ac_objext
   15381 if { (ac_try="$ac_compile"
   15382 case "(($ac_try" in
   15383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15384   *) ac_try_echo=$ac_try;;
   15385 esac
   15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15387   (eval "$ac_compile") 2>conftest.er1
   15388   ac_status=$?
   15389   grep -v '^ *+' conftest.er1 >conftest.err
   15390   rm -f conftest.er1
   15391   cat conftest.err >&5
   15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15393   (exit $ac_status); } &&
   15394 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15395   { (case "(($ac_try" in
   15396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15397   *) ac_try_echo=$ac_try;;
   15398 esac
   15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15400   (eval "$ac_try") 2>&5
   15401   ac_status=$?
   15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15403   (exit $ac_status); }; } &&
   15404 	 { ac_try='test -s conftest.$ac_objext'
   15405   { (case "(($ac_try" in
   15406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15407   *) ac_try_echo=$ac_try;;
   15408 esac
   15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15410   (eval "$ac_try") 2>&5
   15411   ac_status=$?
   15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15413   (exit $ac_status); }; }; then
   15414   ac_header_compiler=yes
   15415 else
   15416   echo "$as_me: failed program was:" >&5
   15417 sed 's/^/| /' conftest.$ac_ext >&5
   15418 
   15419 	ac_header_compiler=no
   15420 fi
   15421 
   15422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15424 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15425 
   15426 # Is the header present?
   15427 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15429 cat >conftest.$ac_ext <<_ACEOF
   15430 /* confdefs.h.  */
   15431 _ACEOF
   15432 cat confdefs.h >>conftest.$ac_ext
   15433 cat >>conftest.$ac_ext <<_ACEOF
   15434 /* end confdefs.h.  */
   15435 #include <$ac_header>
   15436 _ACEOF
   15437 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15438 case "(($ac_try" in
   15439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15440   *) ac_try_echo=$ac_try;;
   15441 esac
   15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15443   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15444   ac_status=$?
   15445   grep -v '^ *+' conftest.er1 >conftest.err
   15446   rm -f conftest.er1
   15447   cat conftest.err >&5
   15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15449   (exit $ac_status); } >/dev/null; then
   15450   if test -s conftest.err; then
   15451     ac_cpp_err=$ac_c_preproc_warn_flag
   15452     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15453   else
   15454     ac_cpp_err=
   15455   fi
   15456 else
   15457   ac_cpp_err=yes
   15458 fi
   15459 if test -z "$ac_cpp_err"; then
   15460   ac_header_preproc=yes
   15461 else
   15462   echo "$as_me: failed program was:" >&5
   15463 sed 's/^/| /' conftest.$ac_ext >&5
   15464 
   15465   ac_header_preproc=no
   15466 fi
   15467 
   15468 rm -f conftest.err conftest.$ac_ext
   15469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15470 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15471 
   15472 # So?  What about this header?
   15473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15474   yes:no: )
   15475     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15479     ac_header_preproc=yes
   15480     ;;
   15481   no:yes:* )
   15482     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15484     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15485 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15486     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15488     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15489 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15492     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15494     ( cat <<\_ASBOX
   15495 ## ----------------------------------- ##
   15496 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   15497 ## ----------------------------------- ##
   15498 _ASBOX
   15499      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15500     ;;
   15501 esac
   15502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15505   echo $ECHO_N "(cached) $ECHO_C" >&6
   15506 else
   15507   eval "$as_ac_Header=\$ac_header_preproc"
   15508 fi
   15509 ac_res=`eval echo '${'$as_ac_Header'}'`
   15510 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15511 echo "${ECHO_T}$ac_res" >&6; }
   15512 
   15513 fi
   15514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15515   cat >>confdefs.h <<_ACEOF
   15516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15517 _ACEOF
   15518 
   15519 fi
   15520 
   15521 done
   15522 
   15523 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
   15524 
   15525 for ac_header in pthread.h
   15526 do
   15527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15529   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15532   echo $ECHO_N "(cached) $ECHO_C" >&6
   15533 fi
   15534 ac_res=`eval echo '${'$as_ac_Header'}'`
   15535 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15536 echo "${ECHO_T}$ac_res" >&6; }
   15537 else
   15538   # Is the header compilable?
   15539 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15540 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15541 cat >conftest.$ac_ext <<_ACEOF
   15542 /* confdefs.h.  */
   15543 _ACEOF
   15544 cat confdefs.h >>conftest.$ac_ext
   15545 cat >>conftest.$ac_ext <<_ACEOF
   15546 /* end confdefs.h.  */
   15547 $ac_includes_default
   15548 #include <$ac_header>
   15549 _ACEOF
   15550 rm -f conftest.$ac_objext
   15551 if { (ac_try="$ac_compile"
   15552 case "(($ac_try" in
   15553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15554   *) ac_try_echo=$ac_try;;
   15555 esac
   15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15557   (eval "$ac_compile") 2>conftest.er1
   15558   ac_status=$?
   15559   grep -v '^ *+' conftest.er1 >conftest.err
   15560   rm -f conftest.er1
   15561   cat conftest.err >&5
   15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15563   (exit $ac_status); } &&
   15564 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15565   { (case "(($ac_try" in
   15566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15567   *) ac_try_echo=$ac_try;;
   15568 esac
   15569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15570   (eval "$ac_try") 2>&5
   15571   ac_status=$?
   15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15573   (exit $ac_status); }; } &&
   15574 	 { ac_try='test -s conftest.$ac_objext'
   15575   { (case "(($ac_try" in
   15576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15577   *) ac_try_echo=$ac_try;;
   15578 esac
   15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15580   (eval "$ac_try") 2>&5
   15581   ac_status=$?
   15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15583   (exit $ac_status); }; }; then
   15584   ac_header_compiler=yes
   15585 else
   15586   echo "$as_me: failed program was:" >&5
   15587 sed 's/^/| /' conftest.$ac_ext >&5
   15588 
   15589 	ac_header_compiler=no
   15590 fi
   15591 
   15592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15594 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15595 
   15596 # Is the header present?
   15597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15599 cat >conftest.$ac_ext <<_ACEOF
   15600 /* confdefs.h.  */
   15601 _ACEOF
   15602 cat confdefs.h >>conftest.$ac_ext
   15603 cat >>conftest.$ac_ext <<_ACEOF
   15604 /* end confdefs.h.  */
   15605 #include <$ac_header>
   15606 _ACEOF
   15607 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15608 case "(($ac_try" in
   15609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15610   *) ac_try_echo=$ac_try;;
   15611 esac
   15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15614   ac_status=$?
   15615   grep -v '^ *+' conftest.er1 >conftest.err
   15616   rm -f conftest.er1
   15617   cat conftest.err >&5
   15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15619   (exit $ac_status); } >/dev/null; then
   15620   if test -s conftest.err; then
   15621     ac_cpp_err=$ac_c_preproc_warn_flag
   15622     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15623   else
   15624     ac_cpp_err=
   15625   fi
   15626 else
   15627   ac_cpp_err=yes
   15628 fi
   15629 if test -z "$ac_cpp_err"; then
   15630   ac_header_preproc=yes
   15631 else
   15632   echo "$as_me: failed program was:" >&5
   15633 sed 's/^/| /' conftest.$ac_ext >&5
   15634 
   15635   ac_header_preproc=no
   15636 fi
   15637 
   15638 rm -f conftest.err conftest.$ac_ext
   15639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15640 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15641 
   15642 # So?  What about this header?
   15643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15644   yes:no: )
   15645     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15649     ac_header_preproc=yes
   15650     ;;
   15651   no:yes:* )
   15652     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15654     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15655 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15656     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15658     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15659 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15662     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15664     ( cat <<\_ASBOX
   15665 ## ----------------------------------- ##
   15666 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   15667 ## ----------------------------------- ##
   15668 _ASBOX
   15669      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15670     ;;
   15671 esac
   15672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15675   echo $ECHO_N "(cached) $ECHO_C" >&6
   15676 else
   15677   eval "$as_ac_Header=\$ac_header_preproc"
   15678 fi
   15679 ac_res=`eval echo '${'$as_ac_Header'}'`
   15680 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15681 echo "${ECHO_T}$ac_res" >&6; }
   15682 
   15683 fi
   15684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15685   cat >>confdefs.h <<_ACEOF
   15686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15687 _ACEOF
   15688  HAVE_PTHREAD=1
   15689 
   15690 else
   15691   HAVE_PTHREAD=0
   15692 
   15693 fi
   15694 
   15695 done
   15696 
   15697 else
   15698   HAVE_PTHREAD=0
   15699 
   15700 fi
   15701 
   15702 if test "$llvm_cv_enable_libffi" = "yes" ; then
   15703 
   15704 
   15705 for ac_header in ffi.h ffi/ffi.h
   15706 do
   15707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15709   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15712   echo $ECHO_N "(cached) $ECHO_C" >&6
   15713 fi
   15714 ac_res=`eval echo '${'$as_ac_Header'}'`
   15715 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15716 echo "${ECHO_T}$ac_res" >&6; }
   15717 else
   15718   # Is the header compilable?
   15719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15721 cat >conftest.$ac_ext <<_ACEOF
   15722 /* confdefs.h.  */
   15723 _ACEOF
   15724 cat confdefs.h >>conftest.$ac_ext
   15725 cat >>conftest.$ac_ext <<_ACEOF
   15726 /* end confdefs.h.  */
   15727 $ac_includes_default
   15728 #include <$ac_header>
   15729 _ACEOF
   15730 rm -f conftest.$ac_objext
   15731 if { (ac_try="$ac_compile"
   15732 case "(($ac_try" in
   15733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15734   *) ac_try_echo=$ac_try;;
   15735 esac
   15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15737   (eval "$ac_compile") 2>conftest.er1
   15738   ac_status=$?
   15739   grep -v '^ *+' conftest.er1 >conftest.err
   15740   rm -f conftest.er1
   15741   cat conftest.err >&5
   15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15743   (exit $ac_status); } &&
   15744 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15745   { (case "(($ac_try" in
   15746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15747   *) ac_try_echo=$ac_try;;
   15748 esac
   15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15750   (eval "$ac_try") 2>&5
   15751   ac_status=$?
   15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15753   (exit $ac_status); }; } &&
   15754 	 { ac_try='test -s conftest.$ac_objext'
   15755   { (case "(($ac_try" in
   15756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15757   *) ac_try_echo=$ac_try;;
   15758 esac
   15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15760   (eval "$ac_try") 2>&5
   15761   ac_status=$?
   15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15763   (exit $ac_status); }; }; then
   15764   ac_header_compiler=yes
   15765 else
   15766   echo "$as_me: failed program was:" >&5
   15767 sed 's/^/| /' conftest.$ac_ext >&5
   15768 
   15769 	ac_header_compiler=no
   15770 fi
   15771 
   15772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15774 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15775 
   15776 # Is the header present?
   15777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15779 cat >conftest.$ac_ext <<_ACEOF
   15780 /* confdefs.h.  */
   15781 _ACEOF
   15782 cat confdefs.h >>conftest.$ac_ext
   15783 cat >>conftest.$ac_ext <<_ACEOF
   15784 /* end confdefs.h.  */
   15785 #include <$ac_header>
   15786 _ACEOF
   15787 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15788 case "(($ac_try" in
   15789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15790   *) ac_try_echo=$ac_try;;
   15791 esac
   15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15794   ac_status=$?
   15795   grep -v '^ *+' conftest.er1 >conftest.err
   15796   rm -f conftest.er1
   15797   cat conftest.err >&5
   15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15799   (exit $ac_status); } >/dev/null; then
   15800   if test -s conftest.err; then
   15801     ac_cpp_err=$ac_c_preproc_warn_flag
   15802     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15803   else
   15804     ac_cpp_err=
   15805   fi
   15806 else
   15807   ac_cpp_err=yes
   15808 fi
   15809 if test -z "$ac_cpp_err"; then
   15810   ac_header_preproc=yes
   15811 else
   15812   echo "$as_me: failed program was:" >&5
   15813 sed 's/^/| /' conftest.$ac_ext >&5
   15814 
   15815   ac_header_preproc=no
   15816 fi
   15817 
   15818 rm -f conftest.err conftest.$ac_ext
   15819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15820 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15821 
   15822 # So?  What about this header?
   15823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15824   yes:no: )
   15825     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15829     ac_header_preproc=yes
   15830     ;;
   15831   no:yes:* )
   15832     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15834     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15835 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15836     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15838     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15839 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15842     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15844     ( cat <<\_ASBOX
   15845 ## ----------------------------------- ##
   15846 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   15847 ## ----------------------------------- ##
   15848 _ASBOX
   15849      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15850     ;;
   15851 esac
   15852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15855   echo $ECHO_N "(cached) $ECHO_C" >&6
   15856 else
   15857   eval "$as_ac_Header=\$ac_header_preproc"
   15858 fi
   15859 ac_res=`eval echo '${'$as_ac_Header'}'`
   15860 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15861 echo "${ECHO_T}$ac_res" >&6; }
   15862 
   15863 fi
   15864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15865   cat >>confdefs.h <<_ACEOF
   15866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15867 _ACEOF
   15868 
   15869 fi
   15870 
   15871 done
   15872 
   15873 fi
   15874 
   15875 
   15876 for ac_header in CrashReporterClient.h
   15877 do
   15878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15880   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15883   echo $ECHO_N "(cached) $ECHO_C" >&6
   15884 fi
   15885 ac_res=`eval echo '${'$as_ac_Header'}'`
   15886 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15887 echo "${ECHO_T}$ac_res" >&6; }
   15888 else
   15889   # Is the header compilable?
   15890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15892 cat >conftest.$ac_ext <<_ACEOF
   15893 /* confdefs.h.  */
   15894 _ACEOF
   15895 cat confdefs.h >>conftest.$ac_ext
   15896 cat >>conftest.$ac_ext <<_ACEOF
   15897 /* end confdefs.h.  */
   15898 $ac_includes_default
   15899 #include <$ac_header>
   15900 _ACEOF
   15901 rm -f conftest.$ac_objext
   15902 if { (ac_try="$ac_compile"
   15903 case "(($ac_try" in
   15904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15905   *) ac_try_echo=$ac_try;;
   15906 esac
   15907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15908   (eval "$ac_compile") 2>conftest.er1
   15909   ac_status=$?
   15910   grep -v '^ *+' conftest.er1 >conftest.err
   15911   rm -f conftest.er1
   15912   cat conftest.err >&5
   15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15914   (exit $ac_status); } &&
   15915 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15916   { (case "(($ac_try" in
   15917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15918   *) ac_try_echo=$ac_try;;
   15919 esac
   15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15921   (eval "$ac_try") 2>&5
   15922   ac_status=$?
   15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15924   (exit $ac_status); }; } &&
   15925 	 { ac_try='test -s conftest.$ac_objext'
   15926   { (case "(($ac_try" in
   15927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15928   *) ac_try_echo=$ac_try;;
   15929 esac
   15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15931   (eval "$ac_try") 2>&5
   15932   ac_status=$?
   15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15934   (exit $ac_status); }; }; then
   15935   ac_header_compiler=yes
   15936 else
   15937   echo "$as_me: failed program was:" >&5
   15938 sed 's/^/| /' conftest.$ac_ext >&5
   15939 
   15940 	ac_header_compiler=no
   15941 fi
   15942 
   15943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15945 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15946 
   15947 # Is the header present?
   15948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15950 cat >conftest.$ac_ext <<_ACEOF
   15951 /* confdefs.h.  */
   15952 _ACEOF
   15953 cat confdefs.h >>conftest.$ac_ext
   15954 cat >>conftest.$ac_ext <<_ACEOF
   15955 /* end confdefs.h.  */
   15956 #include <$ac_header>
   15957 _ACEOF
   15958 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15959 case "(($ac_try" in
   15960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15961   *) ac_try_echo=$ac_try;;
   15962 esac
   15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15965   ac_status=$?
   15966   grep -v '^ *+' conftest.er1 >conftest.err
   15967   rm -f conftest.er1
   15968   cat conftest.err >&5
   15969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15970   (exit $ac_status); } >/dev/null; then
   15971   if test -s conftest.err; then
   15972     ac_cpp_err=$ac_c_preproc_warn_flag
   15973     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15974   else
   15975     ac_cpp_err=
   15976   fi
   15977 else
   15978   ac_cpp_err=yes
   15979 fi
   15980 if test -z "$ac_cpp_err"; then
   15981   ac_header_preproc=yes
   15982 else
   15983   echo "$as_me: failed program was:" >&5
   15984 sed 's/^/| /' conftest.$ac_ext >&5
   15985 
   15986   ac_header_preproc=no
   15987 fi
   15988 
   15989 rm -f conftest.err conftest.$ac_ext
   15990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15991 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15992 
   15993 # So?  What about this header?
   15994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15995   yes:no: )
   15996     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   16000     ac_header_preproc=yes
   16001     ;;
   16002   no:yes:* )
   16003     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   16004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   16005     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   16006 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   16007     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   16008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   16009     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   16010 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   16011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   16012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   16013     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   16014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   16015     ( cat <<\_ASBOX
   16016 ## ----------------------------------- ##
   16017 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   16018 ## ----------------------------------- ##
   16019 _ASBOX
   16020      ) | sed "s/^/$as_me: WARNING:     /" >&2
   16021     ;;
   16022 esac
   16023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   16024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   16025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16026   echo $ECHO_N "(cached) $ECHO_C" >&6
   16027 else
   16028   eval "$as_ac_Header=\$ac_header_preproc"
   16029 fi
   16030 ac_res=`eval echo '${'$as_ac_Header'}'`
   16031 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16032 echo "${ECHO_T}$ac_res" >&6; }
   16033 
   16034 fi
   16035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   16036   cat >>confdefs.h <<_ACEOF
   16037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16038 _ACEOF
   16039 
   16040 fi
   16041 
   16042 done
   16043 
   16044 
   16045 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
   16046 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
   16047 cat >conftest.$ac_ext <<_ACEOF
   16048 /* confdefs.h.  */
   16049 _ACEOF
   16050 cat confdefs.h >>conftest.$ac_ext
   16051 cat >>conftest.$ac_ext <<_ACEOF
   16052 /* end confdefs.h.  */
   16053 extern const char *__crashreporter_info__;
   16054       int main() {
   16055         __crashreporter_info__ = "test";
   16056         return 0;
   16057       }
   16058 
   16059 _ACEOF
   16060 rm -f conftest.$ac_objext conftest$ac_exeext
   16061 if { (ac_try="$ac_link"
   16062 case "(($ac_try" in
   16063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16064   *) ac_try_echo=$ac_try;;
   16065 esac
   16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16067   (eval "$ac_link") 2>conftest.er1
   16068   ac_status=$?
   16069   grep -v '^ *+' conftest.er1 >conftest.err
   16070   rm -f conftest.er1
   16071   cat conftest.err >&5
   16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16073   (exit $ac_status); } &&
   16074 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16075   { (case "(($ac_try" in
   16076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16077   *) ac_try_echo=$ac_try;;
   16078 esac
   16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16080   (eval "$ac_try") 2>&5
   16081   ac_status=$?
   16082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16083   (exit $ac_status); }; } &&
   16084 	 { ac_try='test -s conftest$ac_exeext'
   16085   { (case "(($ac_try" in
   16086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16087   *) ac_try_echo=$ac_try;;
   16088 esac
   16089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16090   (eval "$ac_try") 2>&5
   16091   ac_status=$?
   16092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16093   (exit $ac_status); }; }; then
   16094   { echo "$as_me:$LINENO: result: yes" >&5
   16095 echo "${ECHO_T}yes" >&6; }
   16096 
   16097 cat >>confdefs.h <<\_ACEOF
   16098 #define HAVE_CRASHREPORTER_INFO 1
   16099 _ACEOF
   16100 
   16101 else
   16102   echo "$as_me: failed program was:" >&5
   16103 sed 's/^/| /' conftest.$ac_ext >&5
   16104 
   16105 	{ echo "$as_me:$LINENO: result: no" >&5
   16106 echo "${ECHO_T}no" >&6; }
   16107 
   16108 cat >>confdefs.h <<\_ACEOF
   16109 #define HAVE_CRASHREPORTER_INFO 0
   16110 _ACEOF
   16111 
   16112 fi
   16113 
   16114 rm -f core conftest.err conftest.$ac_objext \
   16115       conftest$ac_exeext conftest.$ac_ext
   16116 
   16117 
   16118 
   16119 
   16120   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
   16121 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
   16122 if test "${ac_cv_huge_val_sanity+set}" = set; then
   16123   echo $ECHO_N "(cached) $ECHO_C" >&6
   16124 else
   16125 
   16126     ac_ext=cpp
   16127 ac_cpp='$CXXCPP $CPPFLAGS'
   16128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   16131 
   16132     ac_save_CXXFLAGS=$CXXFLAGS
   16133     CXXFLAGS=-pedantic
   16134     if test "$cross_compiling" = yes; then
   16135   ac_cv_huge_val_sanity=yes
   16136 else
   16137   cat >conftest.$ac_ext <<_ACEOF
   16138 /* confdefs.h.  */
   16139 _ACEOF
   16140 cat confdefs.h >>conftest.$ac_ext
   16141 cat >>conftest.$ac_ext <<_ACEOF
   16142 /* end confdefs.h.  */
   16143 #include <math.h>
   16144 int
   16145 main ()
   16146 {
   16147 double x = HUGE_VAL; return x != x;
   16148   ;
   16149   return 0;
   16150 }
   16151 _ACEOF
   16152 rm -f conftest$ac_exeext
   16153 if { (ac_try="$ac_link"
   16154 case "(($ac_try" in
   16155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16156   *) ac_try_echo=$ac_try;;
   16157 esac
   16158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16159   (eval "$ac_link") 2>&5
   16160   ac_status=$?
   16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   16163   { (case "(($ac_try" in
   16164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16165   *) ac_try_echo=$ac_try;;
   16166 esac
   16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16168   (eval "$ac_try") 2>&5
   16169   ac_status=$?
   16170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16171   (exit $ac_status); }; }; then
   16172   ac_cv_huge_val_sanity=yes
   16173 else
   16174   echo "$as_me: program exited with status $ac_status" >&5
   16175 echo "$as_me: failed program was:" >&5
   16176 sed 's/^/| /' conftest.$ac_ext >&5
   16177 
   16178 ( exit $ac_status )
   16179 ac_cv_huge_val_sanity=no
   16180 fi
   16181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   16182 fi
   16183 
   16184 
   16185     CXXFLAGS=$ac_save_CXXFLAGS
   16186     ac_ext=c
   16187 ac_cpp='$CPP $CPPFLAGS'
   16188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16191 
   16192 
   16193 fi
   16194 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
   16195 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
   16196   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
   16197 
   16198 
   16199 { echo "$as_me:$LINENO: checking for pid_t" >&5
   16200 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
   16201 if test "${ac_cv_type_pid_t+set}" = set; then
   16202   echo $ECHO_N "(cached) $ECHO_C" >&6
   16203 else
   16204   cat >conftest.$ac_ext <<_ACEOF
   16205 /* confdefs.h.  */
   16206 _ACEOF
   16207 cat confdefs.h >>conftest.$ac_ext
   16208 cat >>conftest.$ac_ext <<_ACEOF
   16209 /* end confdefs.h.  */
   16210 $ac_includes_default
   16211 typedef pid_t ac__type_new_;
   16212 int
   16213 main ()
   16214 {
   16215 if ((ac__type_new_ *) 0)
   16216   return 0;
   16217 if (sizeof (ac__type_new_))
   16218   return 0;
   16219   ;
   16220   return 0;
   16221 }
   16222 _ACEOF
   16223 rm -f conftest.$ac_objext
   16224 if { (ac_try="$ac_compile"
   16225 case "(($ac_try" in
   16226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16227   *) ac_try_echo=$ac_try;;
   16228 esac
   16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16230   (eval "$ac_compile") 2>conftest.er1
   16231   ac_status=$?
   16232   grep -v '^ *+' conftest.er1 >conftest.err
   16233   rm -f conftest.er1
   16234   cat conftest.err >&5
   16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16236   (exit $ac_status); } &&
   16237 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16238   { (case "(($ac_try" in
   16239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16240   *) ac_try_echo=$ac_try;;
   16241 esac
   16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16243   (eval "$ac_try") 2>&5
   16244   ac_status=$?
   16245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16246   (exit $ac_status); }; } &&
   16247 	 { ac_try='test -s conftest.$ac_objext'
   16248   { (case "(($ac_try" in
   16249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16250   *) ac_try_echo=$ac_try;;
   16251 esac
   16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16253   (eval "$ac_try") 2>&5
   16254   ac_status=$?
   16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16256   (exit $ac_status); }; }; then
   16257   ac_cv_type_pid_t=yes
   16258 else
   16259   echo "$as_me: failed program was:" >&5
   16260 sed 's/^/| /' conftest.$ac_ext >&5
   16261 
   16262 	ac_cv_type_pid_t=no
   16263 fi
   16264 
   16265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16266 fi
   16267 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
   16268 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
   16269 if test $ac_cv_type_pid_t = yes; then
   16270   :
   16271 else
   16272 
   16273 cat >>confdefs.h <<_ACEOF
   16274 #define pid_t int
   16275 _ACEOF
   16276 
   16277 fi
   16278 
   16279 { echo "$as_me:$LINENO: checking for size_t" >&5
   16280 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
   16281 if test "${ac_cv_type_size_t+set}" = set; then
   16282   echo $ECHO_N "(cached) $ECHO_C" >&6
   16283 else
   16284   cat >conftest.$ac_ext <<_ACEOF
   16285 /* confdefs.h.  */
   16286 _ACEOF
   16287 cat confdefs.h >>conftest.$ac_ext
   16288 cat >>conftest.$ac_ext <<_ACEOF
   16289 /* end confdefs.h.  */
   16290 $ac_includes_default
   16291 typedef size_t ac__type_new_;
   16292 int
   16293 main ()
   16294 {
   16295 if ((ac__type_new_ *) 0)
   16296   return 0;
   16297 if (sizeof (ac__type_new_))
   16298   return 0;
   16299   ;
   16300   return 0;
   16301 }
   16302 _ACEOF
   16303 rm -f conftest.$ac_objext
   16304 if { (ac_try="$ac_compile"
   16305 case "(($ac_try" in
   16306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16307   *) ac_try_echo=$ac_try;;
   16308 esac
   16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16310   (eval "$ac_compile") 2>conftest.er1
   16311   ac_status=$?
   16312   grep -v '^ *+' conftest.er1 >conftest.err
   16313   rm -f conftest.er1
   16314   cat conftest.err >&5
   16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16316   (exit $ac_status); } &&
   16317 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16318   { (case "(($ac_try" in
   16319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16320   *) ac_try_echo=$ac_try;;
   16321 esac
   16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16323   (eval "$ac_try") 2>&5
   16324   ac_status=$?
   16325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16326   (exit $ac_status); }; } &&
   16327 	 { ac_try='test -s conftest.$ac_objext'
   16328   { (case "(($ac_try" in
   16329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16330   *) ac_try_echo=$ac_try;;
   16331 esac
   16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16333   (eval "$ac_try") 2>&5
   16334   ac_status=$?
   16335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16336   (exit $ac_status); }; }; then
   16337   ac_cv_type_size_t=yes
   16338 else
   16339   echo "$as_me: failed program was:" >&5
   16340 sed 's/^/| /' conftest.$ac_ext >&5
   16341 
   16342 	ac_cv_type_size_t=no
   16343 fi
   16344 
   16345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16346 fi
   16347 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
   16348 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
   16349 if test $ac_cv_type_size_t = yes; then
   16350   :
   16351 else
   16352 
   16353 cat >>confdefs.h <<_ACEOF
   16354 #define size_t unsigned int
   16355 _ACEOF
   16356 
   16357 fi
   16358 
   16359 
   16360 cat >>confdefs.h <<_ACEOF
   16361 #define RETSIGTYPE void
   16362 _ACEOF
   16363 
   16364 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
   16365 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
   16366 if test "${ac_cv_struct_tm+set}" = set; then
   16367   echo $ECHO_N "(cached) $ECHO_C" >&6
   16368 else
   16369   cat >conftest.$ac_ext <<_ACEOF
   16370 /* confdefs.h.  */
   16371 _ACEOF
   16372 cat confdefs.h >>conftest.$ac_ext
   16373 cat >>conftest.$ac_ext <<_ACEOF
   16374 /* end confdefs.h.  */
   16375 #include <sys/types.h>
   16376 #include <time.h>
   16377 
   16378 int
   16379 main ()
   16380 {
   16381 struct tm *tp; tp->tm_sec;
   16382   ;
   16383   return 0;
   16384 }
   16385 _ACEOF
   16386 rm -f conftest.$ac_objext
   16387 if { (ac_try="$ac_compile"
   16388 case "(($ac_try" in
   16389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16390   *) ac_try_echo=$ac_try;;
   16391 esac
   16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16393   (eval "$ac_compile") 2>conftest.er1
   16394   ac_status=$?
   16395   grep -v '^ *+' conftest.er1 >conftest.err
   16396   rm -f conftest.er1
   16397   cat conftest.err >&5
   16398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16399   (exit $ac_status); } &&
   16400 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16401   { (case "(($ac_try" in
   16402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16403   *) ac_try_echo=$ac_try;;
   16404 esac
   16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16406   (eval "$ac_try") 2>&5
   16407   ac_status=$?
   16408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16409   (exit $ac_status); }; } &&
   16410 	 { ac_try='test -s conftest.$ac_objext'
   16411   { (case "(($ac_try" in
   16412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16413   *) ac_try_echo=$ac_try;;
   16414 esac
   16415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16416   (eval "$ac_try") 2>&5
   16417   ac_status=$?
   16418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16419   (exit $ac_status); }; }; then
   16420   ac_cv_struct_tm=time.h
   16421 else
   16422   echo "$as_me: failed program was:" >&5
   16423 sed 's/^/| /' conftest.$ac_ext >&5
   16424 
   16425 	ac_cv_struct_tm=sys/time.h
   16426 fi
   16427 
   16428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16429 fi
   16430 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
   16431 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
   16432 if test $ac_cv_struct_tm = sys/time.h; then
   16433 
   16434 cat >>confdefs.h <<\_ACEOF
   16435 #define TM_IN_SYS_TIME 1
   16436 _ACEOF
   16437 
   16438 fi
   16439 
   16440 { echo "$as_me:$LINENO: checking for int64_t" >&5
   16441 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
   16442 if test "${ac_cv_type_int64_t+set}" = set; then
   16443   echo $ECHO_N "(cached) $ECHO_C" >&6
   16444 else
   16445   cat >conftest.$ac_ext <<_ACEOF
   16446 /* confdefs.h.  */
   16447 _ACEOF
   16448 cat confdefs.h >>conftest.$ac_ext
   16449 cat >>conftest.$ac_ext <<_ACEOF
   16450 /* end confdefs.h.  */
   16451 $ac_includes_default
   16452 typedef int64_t ac__type_new_;
   16453 int
   16454 main ()
   16455 {
   16456 if ((ac__type_new_ *) 0)
   16457   return 0;
   16458 if (sizeof (ac__type_new_))
   16459   return 0;
   16460   ;
   16461   return 0;
   16462 }
   16463 _ACEOF
   16464 rm -f conftest.$ac_objext
   16465 if { (ac_try="$ac_compile"
   16466 case "(($ac_try" in
   16467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16468   *) ac_try_echo=$ac_try;;
   16469 esac
   16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16471   (eval "$ac_compile") 2>conftest.er1
   16472   ac_status=$?
   16473   grep -v '^ *+' conftest.er1 >conftest.err
   16474   rm -f conftest.er1
   16475   cat conftest.err >&5
   16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16477   (exit $ac_status); } &&
   16478 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16479   { (case "(($ac_try" in
   16480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16481   *) ac_try_echo=$ac_try;;
   16482 esac
   16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16484   (eval "$ac_try") 2>&5
   16485   ac_status=$?
   16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16487   (exit $ac_status); }; } &&
   16488 	 { ac_try='test -s conftest.$ac_objext'
   16489   { (case "(($ac_try" in
   16490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16491   *) ac_try_echo=$ac_try;;
   16492 esac
   16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16494   (eval "$ac_try") 2>&5
   16495   ac_status=$?
   16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16497   (exit $ac_status); }; }; then
   16498   ac_cv_type_int64_t=yes
   16499 else
   16500   echo "$as_me: failed program was:" >&5
   16501 sed 's/^/| /' conftest.$ac_ext >&5
   16502 
   16503 	ac_cv_type_int64_t=no
   16504 fi
   16505 
   16506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16507 fi
   16508 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
   16509 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
   16510 if test $ac_cv_type_int64_t = yes; then
   16511 
   16512 cat >>confdefs.h <<_ACEOF
   16513 #define HAVE_INT64_T 1
   16514 _ACEOF
   16515 
   16516 
   16517 else
   16518   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
   16519 echo "$as_me: error: Type int64_t required but not found" >&2;}
   16520    { (exit 1); exit 1; }; }
   16521 fi
   16522 
   16523 { echo "$as_me:$LINENO: checking for uint64_t" >&5
   16524 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
   16525 if test "${ac_cv_type_uint64_t+set}" = set; then
   16526   echo $ECHO_N "(cached) $ECHO_C" >&6
   16527 else
   16528   cat >conftest.$ac_ext <<_ACEOF
   16529 /* confdefs.h.  */
   16530 _ACEOF
   16531 cat confdefs.h >>conftest.$ac_ext
   16532 cat >>conftest.$ac_ext <<_ACEOF
   16533 /* end confdefs.h.  */
   16534 $ac_includes_default
   16535 typedef uint64_t ac__type_new_;
   16536 int
   16537 main ()
   16538 {
   16539 if ((ac__type_new_ *) 0)
   16540   return 0;
   16541 if (sizeof (ac__type_new_))
   16542   return 0;
   16543   ;
   16544   return 0;
   16545 }
   16546 _ACEOF
   16547 rm -f conftest.$ac_objext
   16548 if { (ac_try="$ac_compile"
   16549 case "(($ac_try" in
   16550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16551   *) ac_try_echo=$ac_try;;
   16552 esac
   16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16554   (eval "$ac_compile") 2>conftest.er1
   16555   ac_status=$?
   16556   grep -v '^ *+' conftest.er1 >conftest.err
   16557   rm -f conftest.er1
   16558   cat conftest.err >&5
   16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16560   (exit $ac_status); } &&
   16561 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16562   { (case "(($ac_try" in
   16563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16564   *) ac_try_echo=$ac_try;;
   16565 esac
   16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16567   (eval "$ac_try") 2>&5
   16568   ac_status=$?
   16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16570   (exit $ac_status); }; } &&
   16571 	 { ac_try='test -s conftest.$ac_objext'
   16572   { (case "(($ac_try" in
   16573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16574   *) ac_try_echo=$ac_try;;
   16575 esac
   16576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16577   (eval "$ac_try") 2>&5
   16578   ac_status=$?
   16579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16580   (exit $ac_status); }; }; then
   16581   ac_cv_type_uint64_t=yes
   16582 else
   16583   echo "$as_me: failed program was:" >&5
   16584 sed 's/^/| /' conftest.$ac_ext >&5
   16585 
   16586 	ac_cv_type_uint64_t=no
   16587 fi
   16588 
   16589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16590 fi
   16591 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
   16592 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
   16593 if test $ac_cv_type_uint64_t = yes; then
   16594 
   16595 cat >>confdefs.h <<_ACEOF
   16596 #define HAVE_UINT64_T 1
   16597 _ACEOF
   16598 
   16599 
   16600 else
   16601   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
   16602 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
   16603 if test "${ac_cv_type_u_int64_t+set}" = set; then
   16604   echo $ECHO_N "(cached) $ECHO_C" >&6
   16605 else
   16606   cat >conftest.$ac_ext <<_ACEOF
   16607 /* confdefs.h.  */
   16608 _ACEOF
   16609 cat confdefs.h >>conftest.$ac_ext
   16610 cat >>conftest.$ac_ext <<_ACEOF
   16611 /* end confdefs.h.  */
   16612 $ac_includes_default
   16613 typedef u_int64_t ac__type_new_;
   16614 int
   16615 main ()
   16616 {
   16617 if ((ac__type_new_ *) 0)
   16618   return 0;
   16619 if (sizeof (ac__type_new_))
   16620   return 0;
   16621   ;
   16622   return 0;
   16623 }
   16624 _ACEOF
   16625 rm -f conftest.$ac_objext
   16626 if { (ac_try="$ac_compile"
   16627 case "(($ac_try" in
   16628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16629   *) ac_try_echo=$ac_try;;
   16630 esac
   16631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16632   (eval "$ac_compile") 2>conftest.er1
   16633   ac_status=$?
   16634   grep -v '^ *+' conftest.er1 >conftest.err
   16635   rm -f conftest.er1
   16636   cat conftest.err >&5
   16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16638   (exit $ac_status); } &&
   16639 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16640   { (case "(($ac_try" in
   16641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16642   *) ac_try_echo=$ac_try;;
   16643 esac
   16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16645   (eval "$ac_try") 2>&5
   16646   ac_status=$?
   16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16648   (exit $ac_status); }; } &&
   16649 	 { ac_try='test -s conftest.$ac_objext'
   16650   { (case "(($ac_try" in
   16651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16652   *) ac_try_echo=$ac_try;;
   16653 esac
   16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16655   (eval "$ac_try") 2>&5
   16656   ac_status=$?
   16657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16658   (exit $ac_status); }; }; then
   16659   ac_cv_type_u_int64_t=yes
   16660 else
   16661   echo "$as_me: failed program was:" >&5
   16662 sed 's/^/| /' conftest.$ac_ext >&5
   16663 
   16664 	ac_cv_type_u_int64_t=no
   16665 fi
   16666 
   16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16668 fi
   16669 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
   16670 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
   16671 if test $ac_cv_type_u_int64_t = yes; then
   16672 
   16673 cat >>confdefs.h <<_ACEOF
   16674 #define HAVE_U_INT64_T 1
   16675 _ACEOF
   16676 
   16677 
   16678 else
   16679   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
   16680 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
   16681    { (exit 1); exit 1; }; }
   16682 fi
   16683 
   16684 fi
   16685 
   16686 
   16687 
   16688 
   16689 
   16690 
   16691 
   16692 
   16693 
   16694 
   16695 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
   16696 do
   16697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   16699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   16700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   16701   echo $ECHO_N "(cached) $ECHO_C" >&6
   16702 else
   16703   cat >conftest.$ac_ext <<_ACEOF
   16704 /* confdefs.h.  */
   16705 _ACEOF
   16706 cat confdefs.h >>conftest.$ac_ext
   16707 cat >>conftest.$ac_ext <<_ACEOF
   16708 /* end confdefs.h.  */
   16709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   16710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   16711 #define $ac_func innocuous_$ac_func
   16712 
   16713 /* System header to define __stub macros and hopefully few prototypes,
   16714     which can conflict with char $ac_func (); below.
   16715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   16716     <limits.h> exists even on freestanding compilers.  */
   16717 
   16718 #ifdef __STDC__
   16719 # include <limits.h>
   16720 #else
   16721 # include <assert.h>
   16722 #endif
   16723 
   16724 #undef $ac_func
   16725 
   16726 /* Override any GCC internal prototype to avoid an error.
   16727    Use char because int might match the return type of a GCC
   16728    builtin and then its argument prototype would still apply.  */
   16729 #ifdef __cplusplus
   16730 extern "C"
   16731 #endif
   16732 char $ac_func ();
   16733 /* The GNU C library defines this for functions which it implements
   16734     to always fail with ENOSYS.  Some functions are actually named
   16735     something starting with __ and the normal name is an alias.  */
   16736 #if defined __stub_$ac_func || defined __stub___$ac_func
   16737 choke me
   16738 #endif
   16739 
   16740 int
   16741 main ()
   16742 {
   16743 return $ac_func ();
   16744   ;
   16745   return 0;
   16746 }
   16747 _ACEOF
   16748 rm -f conftest.$ac_objext conftest$ac_exeext
   16749 if { (ac_try="$ac_link"
   16750 case "(($ac_try" in
   16751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16752   *) ac_try_echo=$ac_try;;
   16753 esac
   16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16755   (eval "$ac_link") 2>conftest.er1
   16756   ac_status=$?
   16757   grep -v '^ *+' conftest.er1 >conftest.err
   16758   rm -f conftest.er1
   16759   cat conftest.err >&5
   16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16761   (exit $ac_status); } &&
   16762 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16763   { (case "(($ac_try" in
   16764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16765   *) ac_try_echo=$ac_try;;
   16766 esac
   16767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16768   (eval "$ac_try") 2>&5
   16769   ac_status=$?
   16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16771   (exit $ac_status); }; } &&
   16772 	 { ac_try='test -s conftest$ac_exeext'
   16773   { (case "(($ac_try" in
   16774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16775   *) ac_try_echo=$ac_try;;
   16776 esac
   16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16778   (eval "$ac_try") 2>&5
   16779   ac_status=$?
   16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16781   (exit $ac_status); }; }; then
   16782   eval "$as_ac_var=yes"
   16783 else
   16784   echo "$as_me: failed program was:" >&5
   16785 sed 's/^/| /' conftest.$ac_ext >&5
   16786 
   16787 	eval "$as_ac_var=no"
   16788 fi
   16789 
   16790 rm -f core conftest.err conftest.$ac_objext \
   16791       conftest$ac_exeext conftest.$ac_ext
   16792 fi
   16793 ac_res=`eval echo '${'$as_ac_var'}'`
   16794 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16795 echo "${ECHO_T}$ac_res" >&6; }
   16796 if test `eval echo '${'$as_ac_var'}'` = yes; then
   16797   cat >>confdefs.h <<_ACEOF
   16798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16799 _ACEOF
   16800 
   16801 fi
   16802 done
   16803 
   16804 
   16805 
   16806 
   16807 
   16808 for ac_func in powf fmodf strtof round
   16809 do
   16810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   16812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   16813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   16814   echo $ECHO_N "(cached) $ECHO_C" >&6
   16815 else
   16816   cat >conftest.$ac_ext <<_ACEOF
   16817 /* confdefs.h.  */
   16818 _ACEOF
   16819 cat confdefs.h >>conftest.$ac_ext
   16820 cat >>conftest.$ac_ext <<_ACEOF
   16821 /* end confdefs.h.  */
   16822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   16823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   16824 #define $ac_func innocuous_$ac_func
   16825 
   16826 /* System header to define __stub macros and hopefully few prototypes,
   16827     which can conflict with char $ac_func (); below.
   16828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   16829     <limits.h> exists even on freestanding compilers.  */
   16830 
   16831 #ifdef __STDC__
   16832 # include <limits.h>
   16833 #else
   16834 # include <assert.h>
   16835 #endif
   16836 
   16837 #undef $ac_func
   16838 
   16839 /* Override any GCC internal prototype to avoid an error.
   16840    Use char because int might match the return type of a GCC
   16841    builtin and then its argument prototype would still apply.  */
   16842 #ifdef __cplusplus
   16843 extern "C"
   16844 #endif
   16845 char $ac_func ();
   16846 /* The GNU C library defines this for functions which it implements
   16847     to always fail with ENOSYS.  Some functions are actually named
   16848     something starting with __ and the normal name is an alias.  */
   16849 #if defined __stub_$ac_func || defined __stub___$ac_func
   16850 choke me
   16851 #endif
   16852 
   16853 int
   16854 main ()
   16855 {
   16856 return $ac_func ();
   16857   ;
   16858   return 0;
   16859 }
   16860 _ACEOF
   16861 rm -f conftest.$ac_objext conftest$ac_exeext
   16862 if { (ac_try="$ac_link"
   16863 case "(($ac_try" in
   16864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16865   *) ac_try_echo=$ac_try;;
   16866 esac
   16867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16868   (eval "$ac_link") 2>conftest.er1
   16869   ac_status=$?
   16870   grep -v '^ *+' conftest.er1 >conftest.err
   16871   rm -f conftest.er1
   16872   cat conftest.err >&5
   16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16874   (exit $ac_status); } &&
   16875 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16876   { (case "(($ac_try" in
   16877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16878   *) ac_try_echo=$ac_try;;
   16879 esac
   16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16881   (eval "$ac_try") 2>&5
   16882   ac_status=$?
   16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16884   (exit $ac_status); }; } &&
   16885 	 { ac_try='test -s conftest$ac_exeext'
   16886   { (case "(($ac_try" in
   16887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16888   *) ac_try_echo=$ac_try;;
   16889 esac
   16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16891   (eval "$ac_try") 2>&5
   16892   ac_status=$?
   16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16894   (exit $ac_status); }; }; then
   16895   eval "$as_ac_var=yes"
   16896 else
   16897   echo "$as_me: failed program was:" >&5
   16898 sed 's/^/| /' conftest.$ac_ext >&5
   16899 
   16900 	eval "$as_ac_var=no"
   16901 fi
   16902 
   16903 rm -f core conftest.err conftest.$ac_objext \
   16904       conftest$ac_exeext conftest.$ac_ext
   16905 fi
   16906 ac_res=`eval echo '${'$as_ac_var'}'`
   16907 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16908 echo "${ECHO_T}$ac_res" >&6; }
   16909 if test `eval echo '${'$as_ac_var'}'` = yes; then
   16910   cat >>confdefs.h <<_ACEOF
   16911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16912 _ACEOF
   16913 
   16914 fi
   16915 done
   16916 
   16917 
   16918 
   16919 
   16920 
   16921 
   16922 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
   16923 do
   16924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   16926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   16927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   16928   echo $ECHO_N "(cached) $ECHO_C" >&6
   16929 else
   16930   cat >conftest.$ac_ext <<_ACEOF
   16931 /* confdefs.h.  */
   16932 _ACEOF
   16933 cat confdefs.h >>conftest.$ac_ext
   16934 cat >>conftest.$ac_ext <<_ACEOF
   16935 /* end confdefs.h.  */
   16936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   16937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   16938 #define $ac_func innocuous_$ac_func
   16939 
   16940 /* System header to define __stub macros and hopefully few prototypes,
   16941     which can conflict with char $ac_func (); below.
   16942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   16943     <limits.h> exists even on freestanding compilers.  */
   16944 
   16945 #ifdef __STDC__
   16946 # include <limits.h>
   16947 #else
   16948 # include <assert.h>
   16949 #endif
   16950 
   16951 #undef $ac_func
   16952 
   16953 /* Override any GCC internal prototype to avoid an error.
   16954    Use char because int might match the return type of a GCC
   16955    builtin and then its argument prototype would still apply.  */
   16956 #ifdef __cplusplus
   16957 extern "C"
   16958 #endif
   16959 char $ac_func ();
   16960 /* The GNU C library defines this for functions which it implements
   16961     to always fail with ENOSYS.  Some functions are actually named
   16962     something starting with __ and the normal name is an alias.  */
   16963 #if defined __stub_$ac_func || defined __stub___$ac_func
   16964 choke me
   16965 #endif
   16966 
   16967 int
   16968 main ()
   16969 {
   16970 return $ac_func ();
   16971   ;
   16972   return 0;
   16973 }
   16974 _ACEOF
   16975 rm -f conftest.$ac_objext conftest$ac_exeext
   16976 if { (ac_try="$ac_link"
   16977 case "(($ac_try" in
   16978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16979   *) ac_try_echo=$ac_try;;
   16980 esac
   16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16982   (eval "$ac_link") 2>conftest.er1
   16983   ac_status=$?
   16984   grep -v '^ *+' conftest.er1 >conftest.err
   16985   rm -f conftest.er1
   16986   cat conftest.err >&5
   16987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16988   (exit $ac_status); } &&
   16989 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16990   { (case "(($ac_try" in
   16991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16992   *) ac_try_echo=$ac_try;;
   16993 esac
   16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16995   (eval "$ac_try") 2>&5
   16996   ac_status=$?
   16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16998   (exit $ac_status); }; } &&
   16999 	 { ac_try='test -s conftest$ac_exeext'
   17000   { (case "(($ac_try" in
   17001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17002   *) ac_try_echo=$ac_try;;
   17003 esac
   17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17005   (eval "$ac_try") 2>&5
   17006   ac_status=$?
   17007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17008   (exit $ac_status); }; }; then
   17009   eval "$as_ac_var=yes"
   17010 else
   17011   echo "$as_me: failed program was:" >&5
   17012 sed 's/^/| /' conftest.$ac_ext >&5
   17013 
   17014 	eval "$as_ac_var=no"
   17015 fi
   17016 
   17017 rm -f core conftest.err conftest.$ac_objext \
   17018       conftest$ac_exeext conftest.$ac_ext
   17019 fi
   17020 ac_res=`eval echo '${'$as_ac_var'}'`
   17021 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17022 echo "${ECHO_T}$ac_res" >&6; }
   17023 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17024   cat >>confdefs.h <<_ACEOF
   17025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17026 _ACEOF
   17027 
   17028 fi
   17029 done
   17030 
   17031 
   17032 
   17033 
   17034 for ac_func in isatty mkdtemp mkstemp
   17035 do
   17036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17040   echo $ECHO_N "(cached) $ECHO_C" >&6
   17041 else
   17042   cat >conftest.$ac_ext <<_ACEOF
   17043 /* confdefs.h.  */
   17044 _ACEOF
   17045 cat confdefs.h >>conftest.$ac_ext
   17046 cat >>conftest.$ac_ext <<_ACEOF
   17047 /* end confdefs.h.  */
   17048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17050 #define $ac_func innocuous_$ac_func
   17051 
   17052 /* System header to define __stub macros and hopefully few prototypes,
   17053     which can conflict with char $ac_func (); below.
   17054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17055     <limits.h> exists even on freestanding compilers.  */
   17056 
   17057 #ifdef __STDC__
   17058 # include <limits.h>
   17059 #else
   17060 # include <assert.h>
   17061 #endif
   17062 
   17063 #undef $ac_func
   17064 
   17065 /* Override any GCC internal prototype to avoid an error.
   17066    Use char because int might match the return type of a GCC
   17067    builtin and then its argument prototype would still apply.  */
   17068 #ifdef __cplusplus
   17069 extern "C"
   17070 #endif
   17071 char $ac_func ();
   17072 /* The GNU C library defines this for functions which it implements
   17073     to always fail with ENOSYS.  Some functions are actually named
   17074     something starting with __ and the normal name is an alias.  */
   17075 #if defined __stub_$ac_func || defined __stub___$ac_func
   17076 choke me
   17077 #endif
   17078 
   17079 int
   17080 main ()
   17081 {
   17082 return $ac_func ();
   17083   ;
   17084   return 0;
   17085 }
   17086 _ACEOF
   17087 rm -f conftest.$ac_objext conftest$ac_exeext
   17088 if { (ac_try="$ac_link"
   17089 case "(($ac_try" in
   17090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17091   *) ac_try_echo=$ac_try;;
   17092 esac
   17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17094   (eval "$ac_link") 2>conftest.er1
   17095   ac_status=$?
   17096   grep -v '^ *+' conftest.er1 >conftest.err
   17097   rm -f conftest.er1
   17098   cat conftest.err >&5
   17099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17100   (exit $ac_status); } &&
   17101 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17102   { (case "(($ac_try" in
   17103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17104   *) ac_try_echo=$ac_try;;
   17105 esac
   17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17107   (eval "$ac_try") 2>&5
   17108   ac_status=$?
   17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17110   (exit $ac_status); }; } &&
   17111 	 { ac_try='test -s conftest$ac_exeext'
   17112   { (case "(($ac_try" in
   17113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17114   *) ac_try_echo=$ac_try;;
   17115 esac
   17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17117   (eval "$ac_try") 2>&5
   17118   ac_status=$?
   17119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17120   (exit $ac_status); }; }; then
   17121   eval "$as_ac_var=yes"
   17122 else
   17123   echo "$as_me: failed program was:" >&5
   17124 sed 's/^/| /' conftest.$ac_ext >&5
   17125 
   17126 	eval "$as_ac_var=no"
   17127 fi
   17128 
   17129 rm -f core conftest.err conftest.$ac_objext \
   17130       conftest$ac_exeext conftest.$ac_ext
   17131 fi
   17132 ac_res=`eval echo '${'$as_ac_var'}'`
   17133 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17134 echo "${ECHO_T}$ac_res" >&6; }
   17135 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17136   cat >>confdefs.h <<_ACEOF
   17137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17138 _ACEOF
   17139 
   17140 fi
   17141 done
   17142 
   17143 
   17144 
   17145 
   17146 
   17147 
   17148 
   17149 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
   17150 do
   17151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17155   echo $ECHO_N "(cached) $ECHO_C" >&6
   17156 else
   17157   cat >conftest.$ac_ext <<_ACEOF
   17158 /* confdefs.h.  */
   17159 _ACEOF
   17160 cat confdefs.h >>conftest.$ac_ext
   17161 cat >>conftest.$ac_ext <<_ACEOF
   17162 /* end confdefs.h.  */
   17163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17165 #define $ac_func innocuous_$ac_func
   17166 
   17167 /* System header to define __stub macros and hopefully few prototypes,
   17168     which can conflict with char $ac_func (); below.
   17169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17170     <limits.h> exists even on freestanding compilers.  */
   17171 
   17172 #ifdef __STDC__
   17173 # include <limits.h>
   17174 #else
   17175 # include <assert.h>
   17176 #endif
   17177 
   17178 #undef $ac_func
   17179 
   17180 /* Override any GCC internal prototype to avoid an error.
   17181    Use char because int might match the return type of a GCC
   17182    builtin and then its argument prototype would still apply.  */
   17183 #ifdef __cplusplus
   17184 extern "C"
   17185 #endif
   17186 char $ac_func ();
   17187 /* The GNU C library defines this for functions which it implements
   17188     to always fail with ENOSYS.  Some functions are actually named
   17189     something starting with __ and the normal name is an alias.  */
   17190 #if defined __stub_$ac_func || defined __stub___$ac_func
   17191 choke me
   17192 #endif
   17193 
   17194 int
   17195 main ()
   17196 {
   17197 return $ac_func ();
   17198   ;
   17199   return 0;
   17200 }
   17201 _ACEOF
   17202 rm -f conftest.$ac_objext conftest$ac_exeext
   17203 if { (ac_try="$ac_link"
   17204 case "(($ac_try" in
   17205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17206   *) ac_try_echo=$ac_try;;
   17207 esac
   17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17209   (eval "$ac_link") 2>conftest.er1
   17210   ac_status=$?
   17211   grep -v '^ *+' conftest.er1 >conftest.err
   17212   rm -f conftest.er1
   17213   cat conftest.err >&5
   17214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17215   (exit $ac_status); } &&
   17216 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17217   { (case "(($ac_try" in
   17218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17219   *) ac_try_echo=$ac_try;;
   17220 esac
   17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17222   (eval "$ac_try") 2>&5
   17223   ac_status=$?
   17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17225   (exit $ac_status); }; } &&
   17226 	 { ac_try='test -s conftest$ac_exeext'
   17227   { (case "(($ac_try" in
   17228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17229   *) ac_try_echo=$ac_try;;
   17230 esac
   17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17232   (eval "$ac_try") 2>&5
   17233   ac_status=$?
   17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17235   (exit $ac_status); }; }; then
   17236   eval "$as_ac_var=yes"
   17237 else
   17238   echo "$as_me: failed program was:" >&5
   17239 sed 's/^/| /' conftest.$ac_ext >&5
   17240 
   17241 	eval "$as_ac_var=no"
   17242 fi
   17243 
   17244 rm -f core conftest.err conftest.$ac_objext \
   17245       conftest$ac_exeext conftest.$ac_ext
   17246 fi
   17247 ac_res=`eval echo '${'$as_ac_var'}'`
   17248 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17249 echo "${ECHO_T}$ac_res" >&6; }
   17250 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17251   cat >>confdefs.h <<_ACEOF
   17252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17253 _ACEOF
   17254 
   17255 fi
   17256 done
   17257 
   17258 
   17259 
   17260 
   17261 for ac_func in strerror strerror_r setenv
   17262 do
   17263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17267   echo $ECHO_N "(cached) $ECHO_C" >&6
   17268 else
   17269   cat >conftest.$ac_ext <<_ACEOF
   17270 /* confdefs.h.  */
   17271 _ACEOF
   17272 cat confdefs.h >>conftest.$ac_ext
   17273 cat >>conftest.$ac_ext <<_ACEOF
   17274 /* end confdefs.h.  */
   17275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17277 #define $ac_func innocuous_$ac_func
   17278 
   17279 /* System header to define __stub macros and hopefully few prototypes,
   17280     which can conflict with char $ac_func (); below.
   17281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17282     <limits.h> exists even on freestanding compilers.  */
   17283 
   17284 #ifdef __STDC__
   17285 # include <limits.h>
   17286 #else
   17287 # include <assert.h>
   17288 #endif
   17289 
   17290 #undef $ac_func
   17291 
   17292 /* Override any GCC internal prototype to avoid an error.
   17293    Use char because int might match the return type of a GCC
   17294    builtin and then its argument prototype would still apply.  */
   17295 #ifdef __cplusplus
   17296 extern "C"
   17297 #endif
   17298 char $ac_func ();
   17299 /* The GNU C library defines this for functions which it implements
   17300     to always fail with ENOSYS.  Some functions are actually named
   17301     something starting with __ and the normal name is an alias.  */
   17302 #if defined __stub_$ac_func || defined __stub___$ac_func
   17303 choke me
   17304 #endif
   17305 
   17306 int
   17307 main ()
   17308 {
   17309 return $ac_func ();
   17310   ;
   17311   return 0;
   17312 }
   17313 _ACEOF
   17314 rm -f conftest.$ac_objext conftest$ac_exeext
   17315 if { (ac_try="$ac_link"
   17316 case "(($ac_try" in
   17317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17318   *) ac_try_echo=$ac_try;;
   17319 esac
   17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17321   (eval "$ac_link") 2>conftest.er1
   17322   ac_status=$?
   17323   grep -v '^ *+' conftest.er1 >conftest.err
   17324   rm -f conftest.er1
   17325   cat conftest.err >&5
   17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17327   (exit $ac_status); } &&
   17328 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17329   { (case "(($ac_try" in
   17330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17331   *) ac_try_echo=$ac_try;;
   17332 esac
   17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17334   (eval "$ac_try") 2>&5
   17335   ac_status=$?
   17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17337   (exit $ac_status); }; } &&
   17338 	 { ac_try='test -s conftest$ac_exeext'
   17339   { (case "(($ac_try" in
   17340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17341   *) ac_try_echo=$ac_try;;
   17342 esac
   17343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17344   (eval "$ac_try") 2>&5
   17345   ac_status=$?
   17346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17347   (exit $ac_status); }; }; then
   17348   eval "$as_ac_var=yes"
   17349 else
   17350   echo "$as_me: failed program was:" >&5
   17351 sed 's/^/| /' conftest.$ac_ext >&5
   17352 
   17353 	eval "$as_ac_var=no"
   17354 fi
   17355 
   17356 rm -f core conftest.err conftest.$ac_objext \
   17357       conftest$ac_exeext conftest.$ac_ext
   17358 fi
   17359 ac_res=`eval echo '${'$as_ac_var'}'`
   17360 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17361 echo "${ECHO_T}$ac_res" >&6; }
   17362 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17363   cat >>confdefs.h <<_ACEOF
   17364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17365 _ACEOF
   17366 
   17367 fi
   17368 done
   17369 
   17370 
   17371 
   17372 
   17373 
   17374 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
   17375 do
   17376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17380   echo $ECHO_N "(cached) $ECHO_C" >&6
   17381 else
   17382   cat >conftest.$ac_ext <<_ACEOF
   17383 /* confdefs.h.  */
   17384 _ACEOF
   17385 cat confdefs.h >>conftest.$ac_ext
   17386 cat >>conftest.$ac_ext <<_ACEOF
   17387 /* end confdefs.h.  */
   17388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17390 #define $ac_func innocuous_$ac_func
   17391 
   17392 /* System header to define __stub macros and hopefully few prototypes,
   17393     which can conflict with char $ac_func (); below.
   17394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17395     <limits.h> exists even on freestanding compilers.  */
   17396 
   17397 #ifdef __STDC__
   17398 # include <limits.h>
   17399 #else
   17400 # include <assert.h>
   17401 #endif
   17402 
   17403 #undef $ac_func
   17404 
   17405 /* Override any GCC internal prototype to avoid an error.
   17406    Use char because int might match the return type of a GCC
   17407    builtin and then its argument prototype would still apply.  */
   17408 #ifdef __cplusplus
   17409 extern "C"
   17410 #endif
   17411 char $ac_func ();
   17412 /* The GNU C library defines this for functions which it implements
   17413     to always fail with ENOSYS.  Some functions are actually named
   17414     something starting with __ and the normal name is an alias.  */
   17415 #if defined __stub_$ac_func || defined __stub___$ac_func
   17416 choke me
   17417 #endif
   17418 
   17419 int
   17420 main ()
   17421 {
   17422 return $ac_func ();
   17423   ;
   17424   return 0;
   17425 }
   17426 _ACEOF
   17427 rm -f conftest.$ac_objext conftest$ac_exeext
   17428 if { (ac_try="$ac_link"
   17429 case "(($ac_try" in
   17430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17431   *) ac_try_echo=$ac_try;;
   17432 esac
   17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17434   (eval "$ac_link") 2>conftest.er1
   17435   ac_status=$?
   17436   grep -v '^ *+' conftest.er1 >conftest.err
   17437   rm -f conftest.er1
   17438   cat conftest.err >&5
   17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17440   (exit $ac_status); } &&
   17441 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17442   { (case "(($ac_try" in
   17443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17444   *) ac_try_echo=$ac_try;;
   17445 esac
   17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17447   (eval "$ac_try") 2>&5
   17448   ac_status=$?
   17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17450   (exit $ac_status); }; } &&
   17451 	 { ac_try='test -s conftest$ac_exeext'
   17452   { (case "(($ac_try" in
   17453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17454   *) ac_try_echo=$ac_try;;
   17455 esac
   17456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17457   (eval "$ac_try") 2>&5
   17458   ac_status=$?
   17459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17460   (exit $ac_status); }; }; then
   17461   eval "$as_ac_var=yes"
   17462 else
   17463   echo "$as_me: failed program was:" >&5
   17464 sed 's/^/| /' conftest.$ac_ext >&5
   17465 
   17466 	eval "$as_ac_var=no"
   17467 fi
   17468 
   17469 rm -f core conftest.err conftest.$ac_objext \
   17470       conftest$ac_exeext conftest.$ac_ext
   17471 fi
   17472 ac_res=`eval echo '${'$as_ac_var'}'`
   17473 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17474 echo "${ECHO_T}$ac_res" >&6; }
   17475 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17476   cat >>confdefs.h <<_ACEOF
   17477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17478 _ACEOF
   17479 
   17480 fi
   17481 done
   17482 
   17483 
   17484 
   17485 
   17486 
   17487 
   17488 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
   17489 do
   17490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17494   echo $ECHO_N "(cached) $ECHO_C" >&6
   17495 else
   17496   cat >conftest.$ac_ext <<_ACEOF
   17497 /* confdefs.h.  */
   17498 _ACEOF
   17499 cat confdefs.h >>conftest.$ac_ext
   17500 cat >>conftest.$ac_ext <<_ACEOF
   17501 /* end confdefs.h.  */
   17502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17504 #define $ac_func innocuous_$ac_func
   17505 
   17506 /* System header to define __stub macros and hopefully few prototypes,
   17507     which can conflict with char $ac_func (); below.
   17508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17509     <limits.h> exists even on freestanding compilers.  */
   17510 
   17511 #ifdef __STDC__
   17512 # include <limits.h>
   17513 #else
   17514 # include <assert.h>
   17515 #endif
   17516 
   17517 #undef $ac_func
   17518 
   17519 /* Override any GCC internal prototype to avoid an error.
   17520    Use char because int might match the return type of a GCC
   17521    builtin and then its argument prototype would still apply.  */
   17522 #ifdef __cplusplus
   17523 extern "C"
   17524 #endif
   17525 char $ac_func ();
   17526 /* The GNU C library defines this for functions which it implements
   17527     to always fail with ENOSYS.  Some functions are actually named
   17528     something starting with __ and the normal name is an alias.  */
   17529 #if defined __stub_$ac_func || defined __stub___$ac_func
   17530 choke me
   17531 #endif
   17532 
   17533 int
   17534 main ()
   17535 {
   17536 return $ac_func ();
   17537   ;
   17538   return 0;
   17539 }
   17540 _ACEOF
   17541 rm -f conftest.$ac_objext conftest$ac_exeext
   17542 if { (ac_try="$ac_link"
   17543 case "(($ac_try" in
   17544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17545   *) ac_try_echo=$ac_try;;
   17546 esac
   17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17548   (eval "$ac_link") 2>conftest.er1
   17549   ac_status=$?
   17550   grep -v '^ *+' conftest.er1 >conftest.err
   17551   rm -f conftest.er1
   17552   cat conftest.err >&5
   17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17554   (exit $ac_status); } &&
   17555 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17556   { (case "(($ac_try" in
   17557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17558   *) ac_try_echo=$ac_try;;
   17559 esac
   17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17561   (eval "$ac_try") 2>&5
   17562   ac_status=$?
   17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17564   (exit $ac_status); }; } &&
   17565 	 { ac_try='test -s conftest$ac_exeext'
   17566   { (case "(($ac_try" in
   17567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17568   *) ac_try_echo=$ac_try;;
   17569 esac
   17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17571   (eval "$ac_try") 2>&5
   17572   ac_status=$?
   17573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17574   (exit $ac_status); }; }; then
   17575   eval "$as_ac_var=yes"
   17576 else
   17577   echo "$as_me: failed program was:" >&5
   17578 sed 's/^/| /' conftest.$ac_ext >&5
   17579 
   17580 	eval "$as_ac_var=no"
   17581 fi
   17582 
   17583 rm -f core conftest.err conftest.$ac_objext \
   17584       conftest$ac_exeext conftest.$ac_ext
   17585 fi
   17586 ac_res=`eval echo '${'$as_ac_var'}'`
   17587 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17588 echo "${ECHO_T}$ac_res" >&6; }
   17589 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17590   cat >>confdefs.h <<_ACEOF
   17591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17592 _ACEOF
   17593 
   17594 fi
   17595 done
   17596 
   17597 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
   17598 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
   17599 if test "${llvm_cv_c_printf_a+set}" = set; then
   17600   echo $ECHO_N "(cached) $ECHO_C" >&6
   17601 else
   17602   ac_ext=c
   17603 ac_cpp='$CPP $CPPFLAGS'
   17604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17607 
   17608  if test "$cross_compiling" = yes; then
   17609   llvmac_cv_c_printf_a=no
   17610 else
   17611   cat >conftest.$ac_ext <<_ACEOF
   17612 
   17613   /* confdefs.h.  */
   17614 _ACEOF
   17615 cat confdefs.h >>conftest.$ac_ext
   17616 cat >>conftest.$ac_ext <<_ACEOF
   17617 /* end confdefs.h.  */
   17618 
   17619 #include <stdio.h>
   17620 #include <stdlib.h>
   17621 
   17622 int
   17623 main ()
   17624 {
   17625 
   17626 volatile double A, B;
   17627 char Buffer[100];
   17628 A = 1;
   17629 A /= 10.0;
   17630 sprintf(Buffer, "%a", A);
   17631 B = atof(Buffer);
   17632 if (A != B)
   17633   return (1);
   17634 if (A != 0x1.999999999999ap-4)
   17635   return (1);
   17636 return (0);
   17637   ;
   17638   return 0;
   17639 }
   17640 _ACEOF
   17641 rm -f conftest$ac_exeext
   17642 if { (ac_try="$ac_link"
   17643 case "(($ac_try" in
   17644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17645   *) ac_try_echo=$ac_try;;
   17646 esac
   17647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17648   (eval "$ac_link") 2>&5
   17649   ac_status=$?
   17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   17652   { (case "(($ac_try" in
   17653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17654   *) ac_try_echo=$ac_try;;
   17655 esac
   17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17657   (eval "$ac_try") 2>&5
   17658   ac_status=$?
   17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17660   (exit $ac_status); }; }; then
   17661   llvm_cv_c_printf_a=yes
   17662 else
   17663   echo "$as_me: program exited with status $ac_status" >&5
   17664 echo "$as_me: failed program was:" >&5
   17665 sed 's/^/| /' conftest.$ac_ext >&5
   17666 
   17667 ( exit $ac_status )
   17668 llvmac_cv_c_printf_a=no
   17669 fi
   17670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   17671 fi
   17672 
   17673 
   17674  ac_ext=c
   17675 ac_cpp='$CPP $CPPFLAGS'
   17676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17679 
   17680 fi
   17681 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
   17682 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
   17683  if test "$llvm_cv_c_printf_a" = "yes"; then
   17684 
   17685 cat >>confdefs.h <<\_ACEOF
   17686 #define HAVE_PRINTF_A 1
   17687 _ACEOF
   17688 
   17689  fi
   17690 
   17691 
   17692 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
   17693 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
   17694 if test "${ac_cv_func_rand48+set}" = set; then
   17695   echo $ECHO_N "(cached) $ECHO_C" >&6
   17696 else
   17697   ac_ext=cpp
   17698 ac_cpp='$CXXCPP $CPPFLAGS'
   17699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   17702 
   17703    cat >conftest.$ac_ext <<_ACEOF
   17704 /* confdefs.h.  */
   17705 _ACEOF
   17706 cat confdefs.h >>conftest.$ac_ext
   17707 cat >>conftest.$ac_ext <<_ACEOF
   17708 /* end confdefs.h.  */
   17709 #include <stdlib.h>
   17710 int
   17711 main ()
   17712 {
   17713 srand48(0);lrand48();drand48();
   17714   ;
   17715   return 0;
   17716 }
   17717 _ACEOF
   17718 rm -f conftest.$ac_objext
   17719 if { (ac_try="$ac_compile"
   17720 case "(($ac_try" in
   17721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17722   *) ac_try_echo=$ac_try;;
   17723 esac
   17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17725   (eval "$ac_compile") 2>conftest.er1
   17726   ac_status=$?
   17727   grep -v '^ *+' conftest.er1 >conftest.err
   17728   rm -f conftest.er1
   17729   cat conftest.err >&5
   17730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17731   (exit $ac_status); } &&
   17732 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   17733   { (case "(($ac_try" in
   17734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17735   *) ac_try_echo=$ac_try;;
   17736 esac
   17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17738   (eval "$ac_try") 2>&5
   17739   ac_status=$?
   17740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17741   (exit $ac_status); }; } &&
   17742 	 { ac_try='test -s conftest.$ac_objext'
   17743   { (case "(($ac_try" in
   17744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17745   *) ac_try_echo=$ac_try;;
   17746 esac
   17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17748   (eval "$ac_try") 2>&5
   17749   ac_status=$?
   17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17751   (exit $ac_status); }; }; then
   17752   ac_cv_func_rand48=yes
   17753 else
   17754   echo "$as_me: failed program was:" >&5
   17755 sed 's/^/| /' conftest.$ac_ext >&5
   17756 
   17757 	ac_cv_func_rand48=no
   17758 fi
   17759 
   17760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17761   ac_ext=c
   17762 ac_cpp='$CPP $CPPFLAGS'
   17763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17766 
   17767 fi
   17768 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
   17769 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
   17770 
   17771 if test "$ac_cv_func_rand48" = "yes" ; then
   17772 
   17773 cat >>confdefs.h <<\_ACEOF
   17774 #define HAVE_RAND48 1
   17775 _ACEOF
   17776 
   17777 fi
   17778 
   17779 
   17780 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
   17781 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
   17782 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
   17783   echo $ECHO_N "(cached) $ECHO_C" >&6
   17784 else
   17785   cat >conftest.$ac_ext <<_ACEOF
   17786 /* confdefs.h.  */
   17787 _ACEOF
   17788 cat confdefs.h >>conftest.$ac_ext
   17789 cat >>conftest.$ac_ext <<_ACEOF
   17790 /* end confdefs.h.  */
   17791 $ac_includes_default
   17792 int
   17793 main ()
   17794 {
   17795 #ifndef strerror_s
   17796   char *p = (char *) strerror_s;
   17797   return !p;
   17798 #endif
   17799 
   17800   ;
   17801   return 0;
   17802 }
   17803 _ACEOF
   17804 rm -f conftest.$ac_objext
   17805 if { (ac_try="$ac_compile"
   17806 case "(($ac_try" in
   17807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17808   *) ac_try_echo=$ac_try;;
   17809 esac
   17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17811   (eval "$ac_compile") 2>conftest.er1
   17812   ac_status=$?
   17813   grep -v '^ *+' conftest.er1 >conftest.err
   17814   rm -f conftest.er1
   17815   cat conftest.err >&5
   17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17817   (exit $ac_status); } &&
   17818 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17819   { (case "(($ac_try" in
   17820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17821   *) ac_try_echo=$ac_try;;
   17822 esac
   17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17824   (eval "$ac_try") 2>&5
   17825   ac_status=$?
   17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17827   (exit $ac_status); }; } &&
   17828 	 { ac_try='test -s conftest.$ac_objext'
   17829   { (case "(($ac_try" in
   17830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17831   *) ac_try_echo=$ac_try;;
   17832 esac
   17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17834   (eval "$ac_try") 2>&5
   17835   ac_status=$?
   17836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17837   (exit $ac_status); }; }; then
   17838   ac_cv_have_decl_strerror_s=yes
   17839 else
   17840   echo "$as_me: failed program was:" >&5
   17841 sed 's/^/| /' conftest.$ac_ext >&5
   17842 
   17843 	ac_cv_have_decl_strerror_s=no
   17844 fi
   17845 
   17846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17847 fi
   17848 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
   17849 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
   17850 if test $ac_cv_have_decl_strerror_s = yes; then
   17851 
   17852 cat >>confdefs.h <<_ACEOF
   17853 #define HAVE_DECL_STRERROR_S 1
   17854 _ACEOF
   17855 
   17856 
   17857 else
   17858   cat >>confdefs.h <<_ACEOF
   17859 #define HAVE_DECL_STRERROR_S 0
   17860 _ACEOF
   17861 
   17862 
   17863 fi
   17864 
   17865 
   17866 
   17867 if test "$llvm_cv_os_type" = "MingW" ; then
   17868   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
   17869 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
   17870 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
   17871   echo $ECHO_N "(cached) $ECHO_C" >&6
   17872 else
   17873   ac_check_lib_save_LIBS=$LIBS
   17874 LIBS="-lgcc  $LIBS"
   17875 cat >conftest.$ac_ext <<_ACEOF
   17876 /* confdefs.h.  */
   17877 _ACEOF
   17878 cat confdefs.h >>conftest.$ac_ext
   17879 cat >>conftest.$ac_ext <<_ACEOF
   17880 /* end confdefs.h.  */
   17881 
   17882 /* Override any GCC internal prototype to avoid an error.
   17883    Use char because int might match the return type of a GCC
   17884    builtin and then its argument prototype would still apply.  */
   17885 #ifdef __cplusplus
   17886 extern "C"
   17887 #endif
   17888 char _alloca ();
   17889 int
   17890 main ()
   17891 {
   17892 return _alloca ();
   17893   ;
   17894   return 0;
   17895 }
   17896 _ACEOF
   17897 rm -f conftest.$ac_objext conftest$ac_exeext
   17898 if { (ac_try="$ac_link"
   17899 case "(($ac_try" in
   17900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17901   *) ac_try_echo=$ac_try;;
   17902 esac
   17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17904   (eval "$ac_link") 2>conftest.er1
   17905   ac_status=$?
   17906   grep -v '^ *+' conftest.er1 >conftest.err
   17907   rm -f conftest.er1
   17908   cat conftest.err >&5
   17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17910   (exit $ac_status); } &&
   17911 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17912   { (case "(($ac_try" in
   17913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17914   *) ac_try_echo=$ac_try;;
   17915 esac
   17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17917   (eval "$ac_try") 2>&5
   17918   ac_status=$?
   17919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17920   (exit $ac_status); }; } &&
   17921 	 { ac_try='test -s conftest$ac_exeext'
   17922   { (case "(($ac_try" in
   17923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17924   *) ac_try_echo=$ac_try;;
   17925 esac
   17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17927   (eval "$ac_try") 2>&5
   17928   ac_status=$?
   17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17930   (exit $ac_status); }; }; then
   17931   ac_cv_lib_gcc__alloca=yes
   17932 else
   17933   echo "$as_me: failed program was:" >&5
   17934 sed 's/^/| /' conftest.$ac_ext >&5
   17935 
   17936 	ac_cv_lib_gcc__alloca=no
   17937 fi
   17938 
   17939 rm -f core conftest.err conftest.$ac_objext \
   17940       conftest$ac_exeext conftest.$ac_ext
   17941 LIBS=$ac_check_lib_save_LIBS
   17942 fi
   17943 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
   17944 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
   17945 if test $ac_cv_lib_gcc__alloca = yes; then
   17946 
   17947 cat >>confdefs.h <<\_ACEOF
   17948 #define HAVE__ALLOCA 1
   17949 _ACEOF
   17950 
   17951 fi
   17952 
   17953   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
   17954 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
   17955 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
   17956   echo $ECHO_N "(cached) $ECHO_C" >&6
   17957 else
   17958   ac_check_lib_save_LIBS=$LIBS
   17959 LIBS="-lgcc  $LIBS"
   17960 cat >conftest.$ac_ext <<_ACEOF
   17961 /* confdefs.h.  */
   17962 _ACEOF
   17963 cat confdefs.h >>conftest.$ac_ext
   17964 cat >>conftest.$ac_ext <<_ACEOF
   17965 /* end confdefs.h.  */
   17966 
   17967 /* Override any GCC internal prototype to avoid an error.
   17968    Use char because int might match the return type of a GCC
   17969    builtin and then its argument prototype would still apply.  */
   17970 #ifdef __cplusplus
   17971 extern "C"
   17972 #endif
   17973 char __alloca ();
   17974 int
   17975 main ()
   17976 {
   17977 return __alloca ();
   17978   ;
   17979   return 0;
   17980 }
   17981 _ACEOF
   17982 rm -f conftest.$ac_objext conftest$ac_exeext
   17983 if { (ac_try="$ac_link"
   17984 case "(($ac_try" in
   17985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17986   *) ac_try_echo=$ac_try;;
   17987 esac
   17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17989   (eval "$ac_link") 2>conftest.er1
   17990   ac_status=$?
   17991   grep -v '^ *+' conftest.er1 >conftest.err
   17992   rm -f conftest.er1
   17993   cat conftest.err >&5
   17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17995   (exit $ac_status); } &&
   17996 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17997   { (case "(($ac_try" in
   17998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17999   *) ac_try_echo=$ac_try;;
   18000 esac
   18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18002   (eval "$ac_try") 2>&5
   18003   ac_status=$?
   18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18005   (exit $ac_status); }; } &&
   18006 	 { ac_try='test -s conftest$ac_exeext'
   18007   { (case "(($ac_try" in
   18008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18009   *) ac_try_echo=$ac_try;;
   18010 esac
   18011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18012   (eval "$ac_try") 2>&5
   18013   ac_status=$?
   18014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18015   (exit $ac_status); }; }; then
   18016   ac_cv_lib_gcc___alloca=yes
   18017 else
   18018   echo "$as_me: failed program was:" >&5
   18019 sed 's/^/| /' conftest.$ac_ext >&5
   18020 
   18021 	ac_cv_lib_gcc___alloca=no
   18022 fi
   18023 
   18024 rm -f core conftest.err conftest.$ac_objext \
   18025       conftest$ac_exeext conftest.$ac_ext
   18026 LIBS=$ac_check_lib_save_LIBS
   18027 fi
   18028 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
   18029 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
   18030 if test $ac_cv_lib_gcc___alloca = yes; then
   18031 
   18032 cat >>confdefs.h <<\_ACEOF
   18033 #define HAVE___ALLOCA 1
   18034 _ACEOF
   18035 
   18036 fi
   18037 
   18038   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
   18039 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
   18040 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
   18041   echo $ECHO_N "(cached) $ECHO_C" >&6
   18042 else
   18043   ac_check_lib_save_LIBS=$LIBS
   18044 LIBS="-lgcc  $LIBS"
   18045 cat >conftest.$ac_ext <<_ACEOF
   18046 /* confdefs.h.  */
   18047 _ACEOF
   18048 cat confdefs.h >>conftest.$ac_ext
   18049 cat >>conftest.$ac_ext <<_ACEOF
   18050 /* end confdefs.h.  */
   18051 
   18052 /* Override any GCC internal prototype to avoid an error.
   18053    Use char because int might match the return type of a GCC
   18054    builtin and then its argument prototype would still apply.  */
   18055 #ifdef __cplusplus
   18056 extern "C"
   18057 #endif
   18058 char __chkstk ();
   18059 int
   18060 main ()
   18061 {
   18062 return __chkstk ();
   18063   ;
   18064   return 0;
   18065 }
   18066 _ACEOF
   18067 rm -f conftest.$ac_objext conftest$ac_exeext
   18068 if { (ac_try="$ac_link"
   18069 case "(($ac_try" in
   18070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18071   *) ac_try_echo=$ac_try;;
   18072 esac
   18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18074   (eval "$ac_link") 2>conftest.er1
   18075   ac_status=$?
   18076   grep -v '^ *+' conftest.er1 >conftest.err
   18077   rm -f conftest.er1
   18078   cat conftest.err >&5
   18079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18080   (exit $ac_status); } &&
   18081 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18082   { (case "(($ac_try" in
   18083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18084   *) ac_try_echo=$ac_try;;
   18085 esac
   18086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18087   (eval "$ac_try") 2>&5
   18088   ac_status=$?
   18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18090   (exit $ac_status); }; } &&
   18091 	 { ac_try='test -s conftest$ac_exeext'
   18092   { (case "(($ac_try" in
   18093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18094   *) ac_try_echo=$ac_try;;
   18095 esac
   18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18097   (eval "$ac_try") 2>&5
   18098   ac_status=$?
   18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18100   (exit $ac_status); }; }; then
   18101   ac_cv_lib_gcc___chkstk=yes
   18102 else
   18103   echo "$as_me: failed program was:" >&5
   18104 sed 's/^/| /' conftest.$ac_ext >&5
   18105 
   18106 	ac_cv_lib_gcc___chkstk=no
   18107 fi
   18108 
   18109 rm -f core conftest.err conftest.$ac_objext \
   18110       conftest$ac_exeext conftest.$ac_ext
   18111 LIBS=$ac_check_lib_save_LIBS
   18112 fi
   18113 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
   18114 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
   18115 if test $ac_cv_lib_gcc___chkstk = yes; then
   18116 
   18117 cat >>confdefs.h <<\_ACEOF
   18118 #define HAVE___CHKSTK 1
   18119 _ACEOF
   18120 
   18121 fi
   18122 
   18123   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
   18124 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
   18125 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
   18126   echo $ECHO_N "(cached) $ECHO_C" >&6
   18127 else
   18128   ac_check_lib_save_LIBS=$LIBS
   18129 LIBS="-lgcc  $LIBS"
   18130 cat >conftest.$ac_ext <<_ACEOF
   18131 /* confdefs.h.  */
   18132 _ACEOF
   18133 cat confdefs.h >>conftest.$ac_ext
   18134 cat >>conftest.$ac_ext <<_ACEOF
   18135 /* end confdefs.h.  */
   18136 
   18137 /* Override any GCC internal prototype to avoid an error.
   18138    Use char because int might match the return type of a GCC
   18139    builtin and then its argument prototype would still apply.  */
   18140 #ifdef __cplusplus
   18141 extern "C"
   18142 #endif
   18143 char ___chkstk ();
   18144 int
   18145 main ()
   18146 {
   18147 return ___chkstk ();
   18148   ;
   18149   return 0;
   18150 }
   18151 _ACEOF
   18152 rm -f conftest.$ac_objext conftest$ac_exeext
   18153 if { (ac_try="$ac_link"
   18154 case "(($ac_try" in
   18155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18156   *) ac_try_echo=$ac_try;;
   18157 esac
   18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18159   (eval "$ac_link") 2>conftest.er1
   18160   ac_status=$?
   18161   grep -v '^ *+' conftest.er1 >conftest.err
   18162   rm -f conftest.er1
   18163   cat conftest.err >&5
   18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18165   (exit $ac_status); } &&
   18166 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18167   { (case "(($ac_try" in
   18168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18169   *) ac_try_echo=$ac_try;;
   18170 esac
   18171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18172   (eval "$ac_try") 2>&5
   18173   ac_status=$?
   18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18175   (exit $ac_status); }; } &&
   18176 	 { ac_try='test -s conftest$ac_exeext'
   18177   { (case "(($ac_try" in
   18178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18179   *) ac_try_echo=$ac_try;;
   18180 esac
   18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18182   (eval "$ac_try") 2>&5
   18183   ac_status=$?
   18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18185   (exit $ac_status); }; }; then
   18186   ac_cv_lib_gcc____chkstk=yes
   18187 else
   18188   echo "$as_me: failed program was:" >&5
   18189 sed 's/^/| /' conftest.$ac_ext >&5
   18190 
   18191 	ac_cv_lib_gcc____chkstk=no
   18192 fi
   18193 
   18194 rm -f core conftest.err conftest.$ac_objext \
   18195       conftest$ac_exeext conftest.$ac_ext
   18196 LIBS=$ac_check_lib_save_LIBS
   18197 fi
   18198 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
   18199 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
   18200 if test $ac_cv_lib_gcc____chkstk = yes; then
   18201 
   18202 cat >>confdefs.h <<\_ACEOF
   18203 #define HAVE____CHKSTK 1
   18204 _ACEOF
   18205 
   18206 fi
   18207 
   18208 
   18209   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
   18210 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
   18211 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
   18212   echo $ECHO_N "(cached) $ECHO_C" >&6
   18213 else
   18214   ac_check_lib_save_LIBS=$LIBS
   18215 LIBS="-lgcc  $LIBS"
   18216 cat >conftest.$ac_ext <<_ACEOF
   18217 /* confdefs.h.  */
   18218 _ACEOF
   18219 cat confdefs.h >>conftest.$ac_ext
   18220 cat >>conftest.$ac_ext <<_ACEOF
   18221 /* end confdefs.h.  */
   18222 
   18223 /* Override any GCC internal prototype to avoid an error.
   18224    Use char because int might match the return type of a GCC
   18225    builtin and then its argument prototype would still apply.  */
   18226 #ifdef __cplusplus
   18227 extern "C"
   18228 #endif
   18229 char __ashldi3 ();
   18230 int
   18231 main ()
   18232 {
   18233 return __ashldi3 ();
   18234   ;
   18235   return 0;
   18236 }
   18237 _ACEOF
   18238 rm -f conftest.$ac_objext conftest$ac_exeext
   18239 if { (ac_try="$ac_link"
   18240 case "(($ac_try" in
   18241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18242   *) ac_try_echo=$ac_try;;
   18243 esac
   18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18245   (eval "$ac_link") 2>conftest.er1
   18246   ac_status=$?
   18247   grep -v '^ *+' conftest.er1 >conftest.err
   18248   rm -f conftest.er1
   18249   cat conftest.err >&5
   18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18251   (exit $ac_status); } &&
   18252 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18253   { (case "(($ac_try" in
   18254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18255   *) ac_try_echo=$ac_try;;
   18256 esac
   18257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18258   (eval "$ac_try") 2>&5
   18259   ac_status=$?
   18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18261   (exit $ac_status); }; } &&
   18262 	 { ac_try='test -s conftest$ac_exeext'
   18263   { (case "(($ac_try" in
   18264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18265   *) ac_try_echo=$ac_try;;
   18266 esac
   18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18268   (eval "$ac_try") 2>&5
   18269   ac_status=$?
   18270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18271   (exit $ac_status); }; }; then
   18272   ac_cv_lib_gcc___ashldi3=yes
   18273 else
   18274   echo "$as_me: failed program was:" >&5
   18275 sed 's/^/| /' conftest.$ac_ext >&5
   18276 
   18277 	ac_cv_lib_gcc___ashldi3=no
   18278 fi
   18279 
   18280 rm -f core conftest.err conftest.$ac_objext \
   18281       conftest$ac_exeext conftest.$ac_ext
   18282 LIBS=$ac_check_lib_save_LIBS
   18283 fi
   18284 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
   18285 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
   18286 if test $ac_cv_lib_gcc___ashldi3 = yes; then
   18287 
   18288 cat >>confdefs.h <<\_ACEOF
   18289 #define HAVE___ASHLDI3 1
   18290 _ACEOF
   18291 
   18292 fi
   18293 
   18294   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
   18295 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
   18296 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
   18297   echo $ECHO_N "(cached) $ECHO_C" >&6
   18298 else
   18299   ac_check_lib_save_LIBS=$LIBS
   18300 LIBS="-lgcc  $LIBS"
   18301 cat >conftest.$ac_ext <<_ACEOF
   18302 /* confdefs.h.  */
   18303 _ACEOF
   18304 cat confdefs.h >>conftest.$ac_ext
   18305 cat >>conftest.$ac_ext <<_ACEOF
   18306 /* end confdefs.h.  */
   18307 
   18308 /* Override any GCC internal prototype to avoid an error.
   18309    Use char because int might match the return type of a GCC
   18310    builtin and then its argument prototype would still apply.  */
   18311 #ifdef __cplusplus
   18312 extern "C"
   18313 #endif
   18314 char __ashrdi3 ();
   18315 int
   18316 main ()
   18317 {
   18318 return __ashrdi3 ();
   18319   ;
   18320   return 0;
   18321 }
   18322 _ACEOF
   18323 rm -f conftest.$ac_objext conftest$ac_exeext
   18324 if { (ac_try="$ac_link"
   18325 case "(($ac_try" in
   18326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18327   *) ac_try_echo=$ac_try;;
   18328 esac
   18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18330   (eval "$ac_link") 2>conftest.er1
   18331   ac_status=$?
   18332   grep -v '^ *+' conftest.er1 >conftest.err
   18333   rm -f conftest.er1
   18334   cat conftest.err >&5
   18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18336   (exit $ac_status); } &&
   18337 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18338   { (case "(($ac_try" in
   18339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18340   *) ac_try_echo=$ac_try;;
   18341 esac
   18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18343   (eval "$ac_try") 2>&5
   18344   ac_status=$?
   18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18346   (exit $ac_status); }; } &&
   18347 	 { ac_try='test -s conftest$ac_exeext'
   18348   { (case "(($ac_try" in
   18349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18350   *) ac_try_echo=$ac_try;;
   18351 esac
   18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18353   (eval "$ac_try") 2>&5
   18354   ac_status=$?
   18355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18356   (exit $ac_status); }; }; then
   18357   ac_cv_lib_gcc___ashrdi3=yes
   18358 else
   18359   echo "$as_me: failed program was:" >&5
   18360 sed 's/^/| /' conftest.$ac_ext >&5
   18361 
   18362 	ac_cv_lib_gcc___ashrdi3=no
   18363 fi
   18364 
   18365 rm -f core conftest.err conftest.$ac_objext \
   18366       conftest$ac_exeext conftest.$ac_ext
   18367 LIBS=$ac_check_lib_save_LIBS
   18368 fi
   18369 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
   18370 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
   18371 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
   18372 
   18373 cat >>confdefs.h <<\_ACEOF
   18374 #define HAVE___ASHRDI3 1
   18375 _ACEOF
   18376 
   18377 fi
   18378 
   18379   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
   18380 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
   18381 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
   18382   echo $ECHO_N "(cached) $ECHO_C" >&6
   18383 else
   18384   ac_check_lib_save_LIBS=$LIBS
   18385 LIBS="-lgcc  $LIBS"
   18386 cat >conftest.$ac_ext <<_ACEOF
   18387 /* confdefs.h.  */
   18388 _ACEOF
   18389 cat confdefs.h >>conftest.$ac_ext
   18390 cat >>conftest.$ac_ext <<_ACEOF
   18391 /* end confdefs.h.  */
   18392 
   18393 /* Override any GCC internal prototype to avoid an error.
   18394    Use char because int might match the return type of a GCC
   18395    builtin and then its argument prototype would still apply.  */
   18396 #ifdef __cplusplus
   18397 extern "C"
   18398 #endif
   18399 char __divdi3 ();
   18400 int
   18401 main ()
   18402 {
   18403 return __divdi3 ();
   18404   ;
   18405   return 0;
   18406 }
   18407 _ACEOF
   18408 rm -f conftest.$ac_objext conftest$ac_exeext
   18409 if { (ac_try="$ac_link"
   18410 case "(($ac_try" in
   18411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18412   *) ac_try_echo=$ac_try;;
   18413 esac
   18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18415   (eval "$ac_link") 2>conftest.er1
   18416   ac_status=$?
   18417   grep -v '^ *+' conftest.er1 >conftest.err
   18418   rm -f conftest.er1
   18419   cat conftest.err >&5
   18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18421   (exit $ac_status); } &&
   18422 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18423   { (case "(($ac_try" in
   18424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18425   *) ac_try_echo=$ac_try;;
   18426 esac
   18427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18428   (eval "$ac_try") 2>&5
   18429   ac_status=$?
   18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18431   (exit $ac_status); }; } &&
   18432 	 { ac_try='test -s conftest$ac_exeext'
   18433   { (case "(($ac_try" in
   18434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18435   *) ac_try_echo=$ac_try;;
   18436 esac
   18437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18438   (eval "$ac_try") 2>&5
   18439   ac_status=$?
   18440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18441   (exit $ac_status); }; }; then
   18442   ac_cv_lib_gcc___divdi3=yes
   18443 else
   18444   echo "$as_me: failed program was:" >&5
   18445 sed 's/^/| /' conftest.$ac_ext >&5
   18446 
   18447 	ac_cv_lib_gcc___divdi3=no
   18448 fi
   18449 
   18450 rm -f core conftest.err conftest.$ac_objext \
   18451       conftest$ac_exeext conftest.$ac_ext
   18452 LIBS=$ac_check_lib_save_LIBS
   18453 fi
   18454 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
   18455 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
   18456 if test $ac_cv_lib_gcc___divdi3 = yes; then
   18457 
   18458 cat >>confdefs.h <<\_ACEOF
   18459 #define HAVE___DIVDI3 1
   18460 _ACEOF
   18461 
   18462 fi
   18463 
   18464   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
   18465 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
   18466 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
   18467   echo $ECHO_N "(cached) $ECHO_C" >&6
   18468 else
   18469   ac_check_lib_save_LIBS=$LIBS
   18470 LIBS="-lgcc  $LIBS"
   18471 cat >conftest.$ac_ext <<_ACEOF
   18472 /* confdefs.h.  */
   18473 _ACEOF
   18474 cat confdefs.h >>conftest.$ac_ext
   18475 cat >>conftest.$ac_ext <<_ACEOF
   18476 /* end confdefs.h.  */
   18477 
   18478 /* Override any GCC internal prototype to avoid an error.
   18479    Use char because int might match the return type of a GCC
   18480    builtin and then its argument prototype would still apply.  */
   18481 #ifdef __cplusplus
   18482 extern "C"
   18483 #endif
   18484 char __fixdfdi ();
   18485 int
   18486 main ()
   18487 {
   18488 return __fixdfdi ();
   18489   ;
   18490   return 0;
   18491 }
   18492 _ACEOF
   18493 rm -f conftest.$ac_objext conftest$ac_exeext
   18494 if { (ac_try="$ac_link"
   18495 case "(($ac_try" in
   18496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18497   *) ac_try_echo=$ac_try;;
   18498 esac
   18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18500   (eval "$ac_link") 2>conftest.er1
   18501   ac_status=$?
   18502   grep -v '^ *+' conftest.er1 >conftest.err
   18503   rm -f conftest.er1
   18504   cat conftest.err >&5
   18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18506   (exit $ac_status); } &&
   18507 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18508   { (case "(($ac_try" in
   18509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18510   *) ac_try_echo=$ac_try;;
   18511 esac
   18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18513   (eval "$ac_try") 2>&5
   18514   ac_status=$?
   18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18516   (exit $ac_status); }; } &&
   18517 	 { ac_try='test -s conftest$ac_exeext'
   18518   { (case "(($ac_try" in
   18519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18520   *) ac_try_echo=$ac_try;;
   18521 esac
   18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18523   (eval "$ac_try") 2>&5
   18524   ac_status=$?
   18525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18526   (exit $ac_status); }; }; then
   18527   ac_cv_lib_gcc___fixdfdi=yes
   18528 else
   18529   echo "$as_me: failed program was:" >&5
   18530 sed 's/^/| /' conftest.$ac_ext >&5
   18531 
   18532 	ac_cv_lib_gcc___fixdfdi=no
   18533 fi
   18534 
   18535 rm -f core conftest.err conftest.$ac_objext \
   18536       conftest$ac_exeext conftest.$ac_ext
   18537 LIBS=$ac_check_lib_save_LIBS
   18538 fi
   18539 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
   18540 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
   18541 if test $ac_cv_lib_gcc___fixdfdi = yes; then
   18542 
   18543 cat >>confdefs.h <<\_ACEOF
   18544 #define HAVE___FIXDFDI 1
   18545 _ACEOF
   18546 
   18547 fi
   18548 
   18549   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
   18550 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
   18551 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
   18552   echo $ECHO_N "(cached) $ECHO_C" >&6
   18553 else
   18554   ac_check_lib_save_LIBS=$LIBS
   18555 LIBS="-lgcc  $LIBS"
   18556 cat >conftest.$ac_ext <<_ACEOF
   18557 /* confdefs.h.  */
   18558 _ACEOF
   18559 cat confdefs.h >>conftest.$ac_ext
   18560 cat >>conftest.$ac_ext <<_ACEOF
   18561 /* end confdefs.h.  */
   18562 
   18563 /* Override any GCC internal prototype to avoid an error.
   18564    Use char because int might match the return type of a GCC
   18565    builtin and then its argument prototype would still apply.  */
   18566 #ifdef __cplusplus
   18567 extern "C"
   18568 #endif
   18569 char __fixsfdi ();
   18570 int
   18571 main ()
   18572 {
   18573 return __fixsfdi ();
   18574   ;
   18575   return 0;
   18576 }
   18577 _ACEOF
   18578 rm -f conftest.$ac_objext conftest$ac_exeext
   18579 if { (ac_try="$ac_link"
   18580 case "(($ac_try" in
   18581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18582   *) ac_try_echo=$ac_try;;
   18583 esac
   18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18585   (eval "$ac_link") 2>conftest.er1
   18586   ac_status=$?
   18587   grep -v '^ *+' conftest.er1 >conftest.err
   18588   rm -f conftest.er1
   18589   cat conftest.err >&5
   18590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18591   (exit $ac_status); } &&
   18592 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18593   { (case "(($ac_try" in
   18594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18595   *) ac_try_echo=$ac_try;;
   18596 esac
   18597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18598   (eval "$ac_try") 2>&5
   18599   ac_status=$?
   18600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18601   (exit $ac_status); }; } &&
   18602 	 { ac_try='test -s conftest$ac_exeext'
   18603   { (case "(($ac_try" in
   18604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18605   *) ac_try_echo=$ac_try;;
   18606 esac
   18607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18608   (eval "$ac_try") 2>&5
   18609   ac_status=$?
   18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18611   (exit $ac_status); }; }; then
   18612   ac_cv_lib_gcc___fixsfdi=yes
   18613 else
   18614   echo "$as_me: failed program was:" >&5
   18615 sed 's/^/| /' conftest.$ac_ext >&5
   18616 
   18617 	ac_cv_lib_gcc___fixsfdi=no
   18618 fi
   18619 
   18620 rm -f core conftest.err conftest.$ac_objext \
   18621       conftest$ac_exeext conftest.$ac_ext
   18622 LIBS=$ac_check_lib_save_LIBS
   18623 fi
   18624 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
   18625 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
   18626 if test $ac_cv_lib_gcc___fixsfdi = yes; then
   18627 
   18628 cat >>confdefs.h <<\_ACEOF
   18629 #define HAVE___FIXSFDI 1
   18630 _ACEOF
   18631 
   18632 fi
   18633 
   18634   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
   18635 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
   18636 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
   18637   echo $ECHO_N "(cached) $ECHO_C" >&6
   18638 else
   18639   ac_check_lib_save_LIBS=$LIBS
   18640 LIBS="-lgcc  $LIBS"
   18641 cat >conftest.$ac_ext <<_ACEOF
   18642 /* confdefs.h.  */
   18643 _ACEOF
   18644 cat confdefs.h >>conftest.$ac_ext
   18645 cat >>conftest.$ac_ext <<_ACEOF
   18646 /* end confdefs.h.  */
   18647 
   18648 /* Override any GCC internal prototype to avoid an error.
   18649    Use char because int might match the return type of a GCC
   18650    builtin and then its argument prototype would still apply.  */
   18651 #ifdef __cplusplus
   18652 extern "C"
   18653 #endif
   18654 char __floatdidf ();
   18655 int
   18656 main ()
   18657 {
   18658 return __floatdidf ();
   18659   ;
   18660   return 0;
   18661 }
   18662 _ACEOF
   18663 rm -f conftest.$ac_objext conftest$ac_exeext
   18664 if { (ac_try="$ac_link"
   18665 case "(($ac_try" in
   18666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18667   *) ac_try_echo=$ac_try;;
   18668 esac
   18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18670   (eval "$ac_link") 2>conftest.er1
   18671   ac_status=$?
   18672   grep -v '^ *+' conftest.er1 >conftest.err
   18673   rm -f conftest.er1
   18674   cat conftest.err >&5
   18675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18676   (exit $ac_status); } &&
   18677 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18678   { (case "(($ac_try" in
   18679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18680   *) ac_try_echo=$ac_try;;
   18681 esac
   18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18683   (eval "$ac_try") 2>&5
   18684   ac_status=$?
   18685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18686   (exit $ac_status); }; } &&
   18687 	 { ac_try='test -s conftest$ac_exeext'
   18688   { (case "(($ac_try" in
   18689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18690   *) ac_try_echo=$ac_try;;
   18691 esac
   18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18693   (eval "$ac_try") 2>&5
   18694   ac_status=$?
   18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18696   (exit $ac_status); }; }; then
   18697   ac_cv_lib_gcc___floatdidf=yes
   18698 else
   18699   echo "$as_me: failed program was:" >&5
   18700 sed 's/^/| /' conftest.$ac_ext >&5
   18701 
   18702 	ac_cv_lib_gcc___floatdidf=no
   18703 fi
   18704 
   18705 rm -f core conftest.err conftest.$ac_objext \
   18706       conftest$ac_exeext conftest.$ac_ext
   18707 LIBS=$ac_check_lib_save_LIBS
   18708 fi
   18709 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
   18710 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
   18711 if test $ac_cv_lib_gcc___floatdidf = yes; then
   18712 
   18713 cat >>confdefs.h <<\_ACEOF
   18714 #define HAVE___FLOATDIDF 1
   18715 _ACEOF
   18716 
   18717 fi
   18718 
   18719   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
   18720 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
   18721 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
   18722   echo $ECHO_N "(cached) $ECHO_C" >&6
   18723 else
   18724   ac_check_lib_save_LIBS=$LIBS
   18725 LIBS="-lgcc  $LIBS"
   18726 cat >conftest.$ac_ext <<_ACEOF
   18727 /* confdefs.h.  */
   18728 _ACEOF
   18729 cat confdefs.h >>conftest.$ac_ext
   18730 cat >>conftest.$ac_ext <<_ACEOF
   18731 /* end confdefs.h.  */
   18732 
   18733 /* Override any GCC internal prototype to avoid an error.
   18734    Use char because int might match the return type of a GCC
   18735    builtin and then its argument prototype would still apply.  */
   18736 #ifdef __cplusplus
   18737 extern "C"
   18738 #endif
   18739 char __lshrdi3 ();
   18740 int
   18741 main ()
   18742 {
   18743 return __lshrdi3 ();
   18744   ;
   18745   return 0;
   18746 }
   18747 _ACEOF
   18748 rm -f conftest.$ac_objext conftest$ac_exeext
   18749 if { (ac_try="$ac_link"
   18750 case "(($ac_try" in
   18751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18752   *) ac_try_echo=$ac_try;;
   18753 esac
   18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18755   (eval "$ac_link") 2>conftest.er1
   18756   ac_status=$?
   18757   grep -v '^ *+' conftest.er1 >conftest.err
   18758   rm -f conftest.er1
   18759   cat conftest.err >&5
   18760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18761   (exit $ac_status); } &&
   18762 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18763   { (case "(($ac_try" in
   18764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18765   *) ac_try_echo=$ac_try;;
   18766 esac
   18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18768   (eval "$ac_try") 2>&5
   18769   ac_status=$?
   18770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18771   (exit $ac_status); }; } &&
   18772 	 { ac_try='test -s conftest$ac_exeext'
   18773   { (case "(($ac_try" in
   18774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18775   *) ac_try_echo=$ac_try;;
   18776 esac
   18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18778   (eval "$ac_try") 2>&5
   18779   ac_status=$?
   18780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18781   (exit $ac_status); }; }; then
   18782   ac_cv_lib_gcc___lshrdi3=yes
   18783 else
   18784   echo "$as_me: failed program was:" >&5
   18785 sed 's/^/| /' conftest.$ac_ext >&5
   18786 
   18787 	ac_cv_lib_gcc___lshrdi3=no
   18788 fi
   18789 
   18790 rm -f core conftest.err conftest.$ac_objext \
   18791       conftest$ac_exeext conftest.$ac_ext
   18792 LIBS=$ac_check_lib_save_LIBS
   18793 fi
   18794 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
   18795 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
   18796 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
   18797 
   18798 cat >>confdefs.h <<\_ACEOF
   18799 #define HAVE___LSHRDI3 1
   18800 _ACEOF
   18801 
   18802 fi
   18803 
   18804   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
   18805 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
   18806 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
   18807   echo $ECHO_N "(cached) $ECHO_C" >&6
   18808 else
   18809   ac_check_lib_save_LIBS=$LIBS
   18810 LIBS="-lgcc  $LIBS"
   18811 cat >conftest.$ac_ext <<_ACEOF
   18812 /* confdefs.h.  */
   18813 _ACEOF
   18814 cat confdefs.h >>conftest.$ac_ext
   18815 cat >>conftest.$ac_ext <<_ACEOF
   18816 /* end confdefs.h.  */
   18817 
   18818 /* Override any GCC internal prototype to avoid an error.
   18819    Use char because int might match the return type of a GCC
   18820    builtin and then its argument prototype would still apply.  */
   18821 #ifdef __cplusplus
   18822 extern "C"
   18823 #endif
   18824 char __moddi3 ();
   18825 int
   18826 main ()
   18827 {
   18828 return __moddi3 ();
   18829   ;
   18830   return 0;
   18831 }
   18832 _ACEOF
   18833 rm -f conftest.$ac_objext conftest$ac_exeext
   18834 if { (ac_try="$ac_link"
   18835 case "(($ac_try" in
   18836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18837   *) ac_try_echo=$ac_try;;
   18838 esac
   18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18840   (eval "$ac_link") 2>conftest.er1
   18841   ac_status=$?
   18842   grep -v '^ *+' conftest.er1 >conftest.err
   18843   rm -f conftest.er1
   18844   cat conftest.err >&5
   18845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18846   (exit $ac_status); } &&
   18847 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18848   { (case "(($ac_try" in
   18849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18850   *) ac_try_echo=$ac_try;;
   18851 esac
   18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18853   (eval "$ac_try") 2>&5
   18854   ac_status=$?
   18855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18856   (exit $ac_status); }; } &&
   18857 	 { ac_try='test -s conftest$ac_exeext'
   18858   { (case "(($ac_try" in
   18859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18860   *) ac_try_echo=$ac_try;;
   18861 esac
   18862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18863   (eval "$ac_try") 2>&5
   18864   ac_status=$?
   18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18866   (exit $ac_status); }; }; then
   18867   ac_cv_lib_gcc___moddi3=yes
   18868 else
   18869   echo "$as_me: failed program was:" >&5
   18870 sed 's/^/| /' conftest.$ac_ext >&5
   18871 
   18872 	ac_cv_lib_gcc___moddi3=no
   18873 fi
   18874 
   18875 rm -f core conftest.err conftest.$ac_objext \
   18876       conftest$ac_exeext conftest.$ac_ext
   18877 LIBS=$ac_check_lib_save_LIBS
   18878 fi
   18879 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
   18880 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
   18881 if test $ac_cv_lib_gcc___moddi3 = yes; then
   18882 
   18883 cat >>confdefs.h <<\_ACEOF
   18884 #define HAVE___MODDI3 1
   18885 _ACEOF
   18886 
   18887 fi
   18888 
   18889   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
   18890 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
   18891 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
   18892   echo $ECHO_N "(cached) $ECHO_C" >&6
   18893 else
   18894   ac_check_lib_save_LIBS=$LIBS
   18895 LIBS="-lgcc  $LIBS"
   18896 cat >conftest.$ac_ext <<_ACEOF
   18897 /* confdefs.h.  */
   18898 _ACEOF
   18899 cat confdefs.h >>conftest.$ac_ext
   18900 cat >>conftest.$ac_ext <<_ACEOF
   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 __udivdi3 ();
   18910 int
   18911 main ()
   18912 {
   18913 return __udivdi3 ();
   18914   ;
   18915   return 0;
   18916 }
   18917 _ACEOF
   18918 rm -f conftest.$ac_objext conftest$ac_exeext
   18919 if { (ac_try="$ac_link"
   18920 case "(($ac_try" in
   18921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18922   *) ac_try_echo=$ac_try;;
   18923 esac
   18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18925   (eval "$ac_link") 2>conftest.er1
   18926   ac_status=$?
   18927   grep -v '^ *+' conftest.er1 >conftest.err
   18928   rm -f conftest.er1
   18929   cat conftest.err >&5
   18930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18931   (exit $ac_status); } &&
   18932 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18933   { (case "(($ac_try" in
   18934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18935   *) ac_try_echo=$ac_try;;
   18936 esac
   18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18938   (eval "$ac_try") 2>&5
   18939   ac_status=$?
   18940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18941   (exit $ac_status); }; } &&
   18942 	 { ac_try='test -s conftest$ac_exeext'
   18943   { (case "(($ac_try" in
   18944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18945   *) ac_try_echo=$ac_try;;
   18946 esac
   18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18948   (eval "$ac_try") 2>&5
   18949   ac_status=$?
   18950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18951   (exit $ac_status); }; }; then
   18952   ac_cv_lib_gcc___udivdi3=yes
   18953 else
   18954   echo "$as_me: failed program was:" >&5
   18955 sed 's/^/| /' conftest.$ac_ext >&5
   18956 
   18957 	ac_cv_lib_gcc___udivdi3=no
   18958 fi
   18959 
   18960 rm -f core conftest.err conftest.$ac_objext \
   18961       conftest$ac_exeext conftest.$ac_ext
   18962 LIBS=$ac_check_lib_save_LIBS
   18963 fi
   18964 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
   18965 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
   18966 if test $ac_cv_lib_gcc___udivdi3 = yes; then
   18967 
   18968 cat >>confdefs.h <<\_ACEOF
   18969 #define HAVE___UDIVDI3 1
   18970 _ACEOF
   18971 
   18972 fi
   18973 
   18974   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
   18975 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
   18976 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
   18977   echo $ECHO_N "(cached) $ECHO_C" >&6
   18978 else
   18979   ac_check_lib_save_LIBS=$LIBS
   18980 LIBS="-lgcc  $LIBS"
   18981 cat >conftest.$ac_ext <<_ACEOF
   18982 /* confdefs.h.  */
   18983 _ACEOF
   18984 cat confdefs.h >>conftest.$ac_ext
   18985 cat >>conftest.$ac_ext <<_ACEOF
   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 __umoddi3 ();
   18995 int
   18996 main ()
   18997 {
   18998 return __umoddi3 ();
   18999   ;
   19000   return 0;
   19001 }
   19002 _ACEOF
   19003 rm -f conftest.$ac_objext conftest$ac_exeext
   19004 if { (ac_try="$ac_link"
   19005 case "(($ac_try" in
   19006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19007   *) ac_try_echo=$ac_try;;
   19008 esac
   19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19010   (eval "$ac_link") 2>conftest.er1
   19011   ac_status=$?
   19012   grep -v '^ *+' conftest.er1 >conftest.err
   19013   rm -f conftest.er1
   19014   cat conftest.err >&5
   19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19016   (exit $ac_status); } &&
   19017 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19018   { (case "(($ac_try" in
   19019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19020   *) ac_try_echo=$ac_try;;
   19021 esac
   19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19023   (eval "$ac_try") 2>&5
   19024   ac_status=$?
   19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19026   (exit $ac_status); }; } &&
   19027 	 { ac_try='test -s conftest$ac_exeext'
   19028   { (case "(($ac_try" in
   19029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19030   *) ac_try_echo=$ac_try;;
   19031 esac
   19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19033   (eval "$ac_try") 2>&5
   19034   ac_status=$?
   19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19036   (exit $ac_status); }; }; then
   19037   ac_cv_lib_gcc___umoddi3=yes
   19038 else
   19039   echo "$as_me: failed program was:" >&5
   19040 sed 's/^/| /' conftest.$ac_ext >&5
   19041 
   19042 	ac_cv_lib_gcc___umoddi3=no
   19043 fi
   19044 
   19045 rm -f core conftest.err conftest.$ac_objext \
   19046       conftest$ac_exeext conftest.$ac_ext
   19047 LIBS=$ac_check_lib_save_LIBS
   19048 fi
   19049 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
   19050 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
   19051 if test $ac_cv_lib_gcc___umoddi3 = yes; then
   19052 
   19053 cat >>confdefs.h <<\_ACEOF
   19054 #define HAVE___UMODDI3 1
   19055 _ACEOF
   19056 
   19057 fi
   19058 
   19059 
   19060   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
   19061 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
   19062 if test "${ac_cv_lib_gcc___main+set}" = set; then
   19063   echo $ECHO_N "(cached) $ECHO_C" >&6
   19064 else
   19065   ac_check_lib_save_LIBS=$LIBS
   19066 LIBS="-lgcc  $LIBS"
   19067 cat >conftest.$ac_ext <<_ACEOF
   19068 /* confdefs.h.  */
   19069 _ACEOF
   19070 cat confdefs.h >>conftest.$ac_ext
   19071 cat >>conftest.$ac_ext <<_ACEOF
   19072 /* end confdefs.h.  */
   19073 
   19074 /* Override any GCC internal prototype to avoid an error.
   19075    Use char because int might match the return type of a GCC
   19076    builtin and then its argument prototype would still apply.  */
   19077 #ifdef __cplusplus
   19078 extern "C"
   19079 #endif
   19080 char __main ();
   19081 int
   19082 main ()
   19083 {
   19084 return __main ();
   19085   ;
   19086   return 0;
   19087 }
   19088 _ACEOF
   19089 rm -f conftest.$ac_objext conftest$ac_exeext
   19090 if { (ac_try="$ac_link"
   19091 case "(($ac_try" in
   19092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19093   *) ac_try_echo=$ac_try;;
   19094 esac
   19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19096   (eval "$ac_link") 2>conftest.er1
   19097   ac_status=$?
   19098   grep -v '^ *+' conftest.er1 >conftest.err
   19099   rm -f conftest.er1
   19100   cat conftest.err >&5
   19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19102   (exit $ac_status); } &&
   19103 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19104   { (case "(($ac_try" in
   19105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19106   *) ac_try_echo=$ac_try;;
   19107 esac
   19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19109   (eval "$ac_try") 2>&5
   19110   ac_status=$?
   19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19112   (exit $ac_status); }; } &&
   19113 	 { ac_try='test -s conftest$ac_exeext'
   19114   { (case "(($ac_try" in
   19115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19116   *) ac_try_echo=$ac_try;;
   19117 esac
   19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19119   (eval "$ac_try") 2>&5
   19120   ac_status=$?
   19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19122   (exit $ac_status); }; }; then
   19123   ac_cv_lib_gcc___main=yes
   19124 else
   19125   echo "$as_me: failed program was:" >&5
   19126 sed 's/^/| /' conftest.$ac_ext >&5
   19127 
   19128 	ac_cv_lib_gcc___main=no
   19129 fi
   19130 
   19131 rm -f core conftest.err conftest.$ac_objext \
   19132       conftest$ac_exeext conftest.$ac_ext
   19133 LIBS=$ac_check_lib_save_LIBS
   19134 fi
   19135 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
   19136 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
   19137 if test $ac_cv_lib_gcc___main = yes; then
   19138 
   19139 cat >>confdefs.h <<\_ACEOF
   19140 #define HAVE___MAIN 1
   19141 _ACEOF
   19142 
   19143 fi
   19144 
   19145   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
   19146 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
   19147 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
   19148   echo $ECHO_N "(cached) $ECHO_C" >&6
   19149 else
   19150   ac_check_lib_save_LIBS=$LIBS
   19151 LIBS="-lgcc  $LIBS"
   19152 cat >conftest.$ac_ext <<_ACEOF
   19153 /* confdefs.h.  */
   19154 _ACEOF
   19155 cat confdefs.h >>conftest.$ac_ext
   19156 cat >>conftest.$ac_ext <<_ACEOF
   19157 /* end confdefs.h.  */
   19158 
   19159 /* Override any GCC internal prototype to avoid an error.
   19160    Use char because int might match the return type of a GCC
   19161    builtin and then its argument prototype would still apply.  */
   19162 #ifdef __cplusplus
   19163 extern "C"
   19164 #endif
   19165 char __cmpdi2 ();
   19166 int
   19167 main ()
   19168 {
   19169 return __cmpdi2 ();
   19170   ;
   19171   return 0;
   19172 }
   19173 _ACEOF
   19174 rm -f conftest.$ac_objext conftest$ac_exeext
   19175 if { (ac_try="$ac_link"
   19176 case "(($ac_try" in
   19177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19178   *) ac_try_echo=$ac_try;;
   19179 esac
   19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19181   (eval "$ac_link") 2>conftest.er1
   19182   ac_status=$?
   19183   grep -v '^ *+' conftest.er1 >conftest.err
   19184   rm -f conftest.er1
   19185   cat conftest.err >&5
   19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19187   (exit $ac_status); } &&
   19188 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19189   { (case "(($ac_try" in
   19190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19191   *) ac_try_echo=$ac_try;;
   19192 esac
   19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19194   (eval "$ac_try") 2>&5
   19195   ac_status=$?
   19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19197   (exit $ac_status); }; } &&
   19198 	 { ac_try='test -s conftest$ac_exeext'
   19199   { (case "(($ac_try" in
   19200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19201   *) ac_try_echo=$ac_try;;
   19202 esac
   19203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19204   (eval "$ac_try") 2>&5
   19205   ac_status=$?
   19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19207   (exit $ac_status); }; }; then
   19208   ac_cv_lib_gcc___cmpdi2=yes
   19209 else
   19210   echo "$as_me: failed program was:" >&5
   19211 sed 's/^/| /' conftest.$ac_ext >&5
   19212 
   19213 	ac_cv_lib_gcc___cmpdi2=no
   19214 fi
   19215 
   19216 rm -f core conftest.err conftest.$ac_objext \
   19217       conftest$ac_exeext conftest.$ac_ext
   19218 LIBS=$ac_check_lib_save_LIBS
   19219 fi
   19220 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
   19221 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
   19222 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
   19223 
   19224 cat >>confdefs.h <<\_ACEOF
   19225 #define HAVE___CMPDI2 1
   19226 _ACEOF
   19227 
   19228 fi
   19229 
   19230 fi
   19231 
   19232 if test "$llvm_cv_os_type" = "MingW" ; then
   19233   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
   19234 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
   19235   cat >conftest.$ac_ext <<_ACEOF
   19236 #include <windows.h>
   19237 #include <imagehlp.h>
   19238 extern void foo(PENUMLOADED_MODULES_CALLBACK);
   19239 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
   19240 _ACEOF
   19241 rm -f conftest.$ac_objext
   19242 if { (ac_try="$ac_compile"
   19243 case "(($ac_try" in
   19244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19245   *) ac_try_echo=$ac_try;;
   19246 esac
   19247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19248   (eval "$ac_compile") 2>conftest.er1
   19249   ac_status=$?
   19250   grep -v '^ *+' conftest.er1 >conftest.err
   19251   rm -f conftest.er1
   19252   cat conftest.err >&5
   19253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19254   (exit $ac_status); } &&
   19255 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19256   { (case "(($ac_try" in
   19257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19258   *) ac_try_echo=$ac_try;;
   19259 esac
   19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19261   (eval "$ac_try") 2>&5
   19262   ac_status=$?
   19263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19264   (exit $ac_status); }; } &&
   19265 	 { ac_try='test -s conftest.$ac_objext'
   19266   { (case "(($ac_try" in
   19267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19268   *) ac_try_echo=$ac_try;;
   19269 esac
   19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19271   (eval "$ac_try") 2>&5
   19272   ac_status=$?
   19273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19274   (exit $ac_status); }; }; then
   19275 
   19276   { echo "$as_me:$LINENO: result: yes" >&5
   19277 echo "${ECHO_T}yes" >&6; }
   19278   llvm_cv_win32_elmcb_pcstr="PCSTR"
   19279 
   19280 else
   19281   echo "$as_me: failed program was:" >&5
   19282 sed 's/^/| /' conftest.$ac_ext >&5
   19283 
   19284 
   19285   { echo "$as_me:$LINENO: result: no" >&5
   19286 echo "${ECHO_T}no" >&6; }
   19287   llvm_cv_win32_elmcb_pcstr="PSTR"
   19288 
   19289 fi
   19290 
   19291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19292 
   19293 cat >>confdefs.h <<_ACEOF
   19294 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
   19295 _ACEOF
   19296 
   19297 fi
   19298 
   19299 
   19300 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
   19301 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
   19302 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
   19303   echo $ECHO_N "(cached) $ECHO_C" >&6
   19304 else
   19305   ac_ext=cpp
   19306 ac_cpp='$CXXCPP $CPPFLAGS'
   19307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19310 
   19311    cat >conftest.$ac_ext <<_ACEOF
   19312 /* confdefs.h.  */
   19313 _ACEOF
   19314 cat confdefs.h >>conftest.$ac_ext
   19315 cat >>conftest.$ac_ext <<_ACEOF
   19316 /* end confdefs.h.  */
   19317 #include <math.h>
   19318 int
   19319 main ()
   19320 {
   19321 float f; isnan(f);
   19322   ;
   19323   return 0;
   19324 }
   19325 _ACEOF
   19326 rm -f conftest.$ac_objext
   19327 if { (ac_try="$ac_compile"
   19328 case "(($ac_try" in
   19329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19330   *) ac_try_echo=$ac_try;;
   19331 esac
   19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19333   (eval "$ac_compile") 2>conftest.er1
   19334   ac_status=$?
   19335   grep -v '^ *+' conftest.er1 >conftest.err
   19336   rm -f conftest.er1
   19337   cat conftest.err >&5
   19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19339   (exit $ac_status); } &&
   19340 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19341   { (case "(($ac_try" in
   19342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19343   *) ac_try_echo=$ac_try;;
   19344 esac
   19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19346   (eval "$ac_try") 2>&5
   19347   ac_status=$?
   19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19349   (exit $ac_status); }; } &&
   19350 	 { ac_try='test -s conftest.$ac_objext'
   19351   { (case "(($ac_try" in
   19352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19353   *) ac_try_echo=$ac_try;;
   19354 esac
   19355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19356   (eval "$ac_try") 2>&5
   19357   ac_status=$?
   19358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19359   (exit $ac_status); }; }; then
   19360   ac_cv_func_isnan_in_math_h=yes
   19361 else
   19362   echo "$as_me: failed program was:" >&5
   19363 sed 's/^/| /' conftest.$ac_ext >&5
   19364 
   19365 	ac_cv_func_isnan_in_math_h=no
   19366 fi
   19367 
   19368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19369   ac_ext=c
   19370 ac_cpp='$CPP $CPPFLAGS'
   19371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19374 
   19375 fi
   19376 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
   19377 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
   19378 
   19379 
   19380 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
   19381 
   19382 cat >>confdefs.h <<\_ACEOF
   19383 #define HAVE_ISNAN_IN_MATH_H 1
   19384 _ACEOF
   19385 
   19386 fi
   19387 
   19388 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
   19389 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
   19390 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
   19391   echo $ECHO_N "(cached) $ECHO_C" >&6
   19392 else
   19393   ac_ext=cpp
   19394 ac_cpp='$CXXCPP $CPPFLAGS'
   19395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19398 
   19399    cat >conftest.$ac_ext <<_ACEOF
   19400 /* confdefs.h.  */
   19401 _ACEOF
   19402 cat confdefs.h >>conftest.$ac_ext
   19403 cat >>conftest.$ac_ext <<_ACEOF
   19404 /* end confdefs.h.  */
   19405 #include <cmath>
   19406 int
   19407 main ()
   19408 {
   19409 float f; isnan(f);
   19410   ;
   19411   return 0;
   19412 }
   19413 _ACEOF
   19414 rm -f conftest.$ac_objext
   19415 if { (ac_try="$ac_compile"
   19416 case "(($ac_try" in
   19417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19418   *) ac_try_echo=$ac_try;;
   19419 esac
   19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19421   (eval "$ac_compile") 2>conftest.er1
   19422   ac_status=$?
   19423   grep -v '^ *+' conftest.er1 >conftest.err
   19424   rm -f conftest.er1
   19425   cat conftest.err >&5
   19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19427   (exit $ac_status); } &&
   19428 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19429   { (case "(($ac_try" in
   19430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19431   *) ac_try_echo=$ac_try;;
   19432 esac
   19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19434   (eval "$ac_try") 2>&5
   19435   ac_status=$?
   19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19437   (exit $ac_status); }; } &&
   19438 	 { ac_try='test -s conftest.$ac_objext'
   19439   { (case "(($ac_try" in
   19440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19441   *) ac_try_echo=$ac_try;;
   19442 esac
   19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19444   (eval "$ac_try") 2>&5
   19445   ac_status=$?
   19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19447   (exit $ac_status); }; }; then
   19448   ac_cv_func_isnan_in_cmath=yes
   19449 else
   19450   echo "$as_me: failed program was:" >&5
   19451 sed 's/^/| /' conftest.$ac_ext >&5
   19452 
   19453 	ac_cv_func_isnan_in_cmath=no
   19454 fi
   19455 
   19456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19457   ac_ext=c
   19458 ac_cpp='$CPP $CPPFLAGS'
   19459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19462 
   19463 fi
   19464 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
   19465 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
   19466 
   19467 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
   19468 
   19469 cat >>confdefs.h <<\_ACEOF
   19470 #define HAVE_ISNAN_IN_CMATH 1
   19471 _ACEOF
   19472 
   19473 fi
   19474 
   19475 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
   19476 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
   19477 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
   19478   echo $ECHO_N "(cached) $ECHO_C" >&6
   19479 else
   19480   ac_ext=cpp
   19481 ac_cpp='$CXXCPP $CPPFLAGS'
   19482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19485 
   19486    cat >conftest.$ac_ext <<_ACEOF
   19487 /* confdefs.h.  */
   19488 _ACEOF
   19489 cat confdefs.h >>conftest.$ac_ext
   19490 cat >>conftest.$ac_ext <<_ACEOF
   19491 /* end confdefs.h.  */
   19492 #include <cmath>
   19493 int
   19494 main ()
   19495 {
   19496 float f; std::isnan(f);
   19497   ;
   19498   return 0;
   19499 }
   19500 _ACEOF
   19501 rm -f conftest.$ac_objext
   19502 if { (ac_try="$ac_compile"
   19503 case "(($ac_try" in
   19504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19505   *) ac_try_echo=$ac_try;;
   19506 esac
   19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19508   (eval "$ac_compile") 2>conftest.er1
   19509   ac_status=$?
   19510   grep -v '^ *+' conftest.er1 >conftest.err
   19511   rm -f conftest.er1
   19512   cat conftest.err >&5
   19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19514   (exit $ac_status); } &&
   19515 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19516   { (case "(($ac_try" in
   19517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19518   *) ac_try_echo=$ac_try;;
   19519 esac
   19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19521   (eval "$ac_try") 2>&5
   19522   ac_status=$?
   19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19524   (exit $ac_status); }; } &&
   19525 	 { ac_try='test -s conftest.$ac_objext'
   19526   { (case "(($ac_try" in
   19527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19528   *) ac_try_echo=$ac_try;;
   19529 esac
   19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19531   (eval "$ac_try") 2>&5
   19532   ac_status=$?
   19533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19534   (exit $ac_status); }; }; then
   19535   ac_cv_func_std_isnan_in_cmath=yes
   19536 else
   19537   echo "$as_me: failed program was:" >&5
   19538 sed 's/^/| /' conftest.$ac_ext >&5
   19539 
   19540 	ac_cv_func_std_isnan_in_cmath=no
   19541 fi
   19542 
   19543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19544   ac_ext=c
   19545 ac_cpp='$CPP $CPPFLAGS'
   19546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19549 
   19550 fi
   19551 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
   19552 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
   19553 
   19554 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
   19555 
   19556 cat >>confdefs.h <<\_ACEOF
   19557 #define HAVE_STD_ISNAN_IN_CMATH 1
   19558 _ACEOF
   19559 
   19560 fi
   19561 
   19562 
   19563 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
   19564 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
   19565 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
   19566   echo $ECHO_N "(cached) $ECHO_C" >&6
   19567 else
   19568   ac_ext=cpp
   19569 ac_cpp='$CXXCPP $CPPFLAGS'
   19570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19573 
   19574    cat >conftest.$ac_ext <<_ACEOF
   19575 /* confdefs.h.  */
   19576 _ACEOF
   19577 cat confdefs.h >>conftest.$ac_ext
   19578 cat >>conftest.$ac_ext <<_ACEOF
   19579 /* end confdefs.h.  */
   19580 #include <math.h>
   19581 int
   19582 main ()
   19583 {
   19584 float f; isinf(f);
   19585   ;
   19586   return 0;
   19587 }
   19588 _ACEOF
   19589 rm -f conftest.$ac_objext
   19590 if { (ac_try="$ac_compile"
   19591 case "(($ac_try" in
   19592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19593   *) ac_try_echo=$ac_try;;
   19594 esac
   19595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19596   (eval "$ac_compile") 2>conftest.er1
   19597   ac_status=$?
   19598   grep -v '^ *+' conftest.er1 >conftest.err
   19599   rm -f conftest.er1
   19600   cat conftest.err >&5
   19601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19602   (exit $ac_status); } &&
   19603 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19604   { (case "(($ac_try" in
   19605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19606   *) ac_try_echo=$ac_try;;
   19607 esac
   19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19609   (eval "$ac_try") 2>&5
   19610   ac_status=$?
   19611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19612   (exit $ac_status); }; } &&
   19613 	 { ac_try='test -s conftest.$ac_objext'
   19614   { (case "(($ac_try" in
   19615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19616   *) ac_try_echo=$ac_try;;
   19617 esac
   19618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19619   (eval "$ac_try") 2>&5
   19620   ac_status=$?
   19621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19622   (exit $ac_status); }; }; then
   19623   ac_cv_func_isinf_in_math_h=yes
   19624 else
   19625   echo "$as_me: failed program was:" >&5
   19626 sed 's/^/| /' conftest.$ac_ext >&5
   19627 
   19628 	ac_cv_func_isinf_in_math_h=no
   19629 fi
   19630 
   19631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19632   ac_ext=c
   19633 ac_cpp='$CPP $CPPFLAGS'
   19634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19637 
   19638 fi
   19639 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
   19640 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
   19641 
   19642 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
   19643 
   19644 cat >>confdefs.h <<\_ACEOF
   19645 #define HAVE_ISINF_IN_MATH_H 1
   19646 _ACEOF
   19647 
   19648 fi
   19649 
   19650 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
   19651 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
   19652 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
   19653   echo $ECHO_N "(cached) $ECHO_C" >&6
   19654 else
   19655   ac_ext=cpp
   19656 ac_cpp='$CXXCPP $CPPFLAGS'
   19657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19660 
   19661    cat >conftest.$ac_ext <<_ACEOF
   19662 /* confdefs.h.  */
   19663 _ACEOF
   19664 cat confdefs.h >>conftest.$ac_ext
   19665 cat >>conftest.$ac_ext <<_ACEOF
   19666 /* end confdefs.h.  */
   19667 #include <cmath>
   19668 int
   19669 main ()
   19670 {
   19671 float f; isinf(f);
   19672   ;
   19673   return 0;
   19674 }
   19675 _ACEOF
   19676 rm -f conftest.$ac_objext
   19677 if { (ac_try="$ac_compile"
   19678 case "(($ac_try" in
   19679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19680   *) ac_try_echo=$ac_try;;
   19681 esac
   19682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19683   (eval "$ac_compile") 2>conftest.er1
   19684   ac_status=$?
   19685   grep -v '^ *+' conftest.er1 >conftest.err
   19686   rm -f conftest.er1
   19687   cat conftest.err >&5
   19688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19689   (exit $ac_status); } &&
   19690 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19691   { (case "(($ac_try" in
   19692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19693   *) ac_try_echo=$ac_try;;
   19694 esac
   19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19696   (eval "$ac_try") 2>&5
   19697   ac_status=$?
   19698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19699   (exit $ac_status); }; } &&
   19700 	 { ac_try='test -s conftest.$ac_objext'
   19701   { (case "(($ac_try" in
   19702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19703   *) ac_try_echo=$ac_try;;
   19704 esac
   19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19706   (eval "$ac_try") 2>&5
   19707   ac_status=$?
   19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19709   (exit $ac_status); }; }; then
   19710   ac_cv_func_isinf_in_cmath=yes
   19711 else
   19712   echo "$as_me: failed program was:" >&5
   19713 sed 's/^/| /' conftest.$ac_ext >&5
   19714 
   19715 	ac_cv_func_isinf_in_cmath=no
   19716 fi
   19717 
   19718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19719   ac_ext=c
   19720 ac_cpp='$CPP $CPPFLAGS'
   19721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19724 
   19725 fi
   19726 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
   19727 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
   19728 
   19729 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
   19730 
   19731 cat >>confdefs.h <<\_ACEOF
   19732 #define HAVE_ISINF_IN_CMATH 1
   19733 _ACEOF
   19734 
   19735 fi
   19736 
   19737 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
   19738 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
   19739 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
   19740   echo $ECHO_N "(cached) $ECHO_C" >&6
   19741 else
   19742   ac_ext=cpp
   19743 ac_cpp='$CXXCPP $CPPFLAGS'
   19744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19747 
   19748    cat >conftest.$ac_ext <<_ACEOF
   19749 /* confdefs.h.  */
   19750 _ACEOF
   19751 cat confdefs.h >>conftest.$ac_ext
   19752 cat >>conftest.$ac_ext <<_ACEOF
   19753 /* end confdefs.h.  */
   19754 #include <cmath>
   19755 int
   19756 main ()
   19757 {
   19758 float f; std::isinf(f)}
   19759   ;
   19760   return 0;
   19761 }
   19762 _ACEOF
   19763 rm -f conftest.$ac_objext
   19764 if { (ac_try="$ac_compile"
   19765 case "(($ac_try" in
   19766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19767   *) ac_try_echo=$ac_try;;
   19768 esac
   19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19770   (eval "$ac_compile") 2>conftest.er1
   19771   ac_status=$?
   19772   grep -v '^ *+' conftest.er1 >conftest.err
   19773   rm -f conftest.er1
   19774   cat conftest.err >&5
   19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19776   (exit $ac_status); } &&
   19777 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19778   { (case "(($ac_try" in
   19779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19780   *) ac_try_echo=$ac_try;;
   19781 esac
   19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19783   (eval "$ac_try") 2>&5
   19784   ac_status=$?
   19785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19786   (exit $ac_status); }; } &&
   19787 	 { ac_try='test -s conftest.$ac_objext'
   19788   { (case "(($ac_try" in
   19789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19790   *) ac_try_echo=$ac_try;;
   19791 esac
   19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19793   (eval "$ac_try") 2>&5
   19794   ac_status=$?
   19795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19796   (exit $ac_status); }; }; then
   19797   ac_cv_func_std_isinf_in_cmath=yes
   19798 else
   19799   echo "$as_me: failed program was:" >&5
   19800 sed 's/^/| /' conftest.$ac_ext >&5
   19801 
   19802 	ac_cv_func_std_isinf_in_cmath=no
   19803 fi
   19804 
   19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19806   ac_ext=c
   19807 ac_cpp='$CPP $CPPFLAGS'
   19808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19811 
   19812 fi
   19813 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
   19814 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
   19815 
   19816 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
   19817 
   19818 cat >>confdefs.h <<\_ACEOF
   19819 #define HAVE_STD_ISINF_IN_CMATH 1
   19820 _ACEOF
   19821 
   19822 fi
   19823 
   19824 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
   19825 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
   19826 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
   19827   echo $ECHO_N "(cached) $ECHO_C" >&6
   19828 else
   19829   ac_ext=cpp
   19830 ac_cpp='$CXXCPP $CPPFLAGS'
   19831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19834 
   19835    cat >conftest.$ac_ext <<_ACEOF
   19836 /* confdefs.h.  */
   19837 _ACEOF
   19838 cat confdefs.h >>conftest.$ac_ext
   19839 cat >>conftest.$ac_ext <<_ACEOF
   19840 /* end confdefs.h.  */
   19841 #include <ieeefp.h>
   19842 int
   19843 main ()
   19844 {
   19845 float f; finite(f);
   19846   ;
   19847   return 0;
   19848 }
   19849 _ACEOF
   19850 rm -f conftest.$ac_objext
   19851 if { (ac_try="$ac_compile"
   19852 case "(($ac_try" in
   19853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19854   *) ac_try_echo=$ac_try;;
   19855 esac
   19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19857   (eval "$ac_compile") 2>conftest.er1
   19858   ac_status=$?
   19859   grep -v '^ *+' conftest.er1 >conftest.err
   19860   rm -f conftest.er1
   19861   cat conftest.err >&5
   19862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19863   (exit $ac_status); } &&
   19864 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19865   { (case "(($ac_try" in
   19866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19867   *) ac_try_echo=$ac_try;;
   19868 esac
   19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19870   (eval "$ac_try") 2>&5
   19871   ac_status=$?
   19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19873   (exit $ac_status); }; } &&
   19874 	 { ac_try='test -s conftest.$ac_objext'
   19875   { (case "(($ac_try" in
   19876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19877   *) ac_try_echo=$ac_try;;
   19878 esac
   19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19880   (eval "$ac_try") 2>&5
   19881   ac_status=$?
   19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19883   (exit $ac_status); }; }; then
   19884   ac_cv_func_finite_in_ieeefp_h=yes
   19885 else
   19886   echo "$as_me: failed program was:" >&5
   19887 sed 's/^/| /' conftest.$ac_ext >&5
   19888 
   19889 	ac_cv_func_finite_in_ieeefp_h=no
   19890 fi
   19891 
   19892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19893   ac_ext=c
   19894 ac_cpp='$CPP $CPPFLAGS'
   19895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19898 
   19899 fi
   19900 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
   19901 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
   19902 
   19903 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
   19904 
   19905 cat >>confdefs.h <<\_ACEOF
   19906 #define HAVE_FINITE_IN_IEEEFP_H 1
   19907 _ACEOF
   19908 
   19909 fi
   19910 
   19911 
   19912 
   19913 if test "$llvm_cv_platform_type" = "Unix" ; then
   19914 
   19915 
   19916 for ac_header in stdlib.h unistd.h
   19917 do
   19918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   19919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19920   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   19921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   19922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19923   echo $ECHO_N "(cached) $ECHO_C" >&6
   19924 fi
   19925 ac_res=`eval echo '${'$as_ac_Header'}'`
   19926 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   19927 echo "${ECHO_T}$ac_res" >&6; }
   19928 else
   19929   # Is the header compilable?
   19930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   19931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   19932 cat >conftest.$ac_ext <<_ACEOF
   19933 /* confdefs.h.  */
   19934 _ACEOF
   19935 cat confdefs.h >>conftest.$ac_ext
   19936 cat >>conftest.$ac_ext <<_ACEOF
   19937 /* end confdefs.h.  */
   19938 $ac_includes_default
   19939 #include <$ac_header>
   19940 _ACEOF
   19941 rm -f conftest.$ac_objext
   19942 if { (ac_try="$ac_compile"
   19943 case "(($ac_try" in
   19944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19945   *) ac_try_echo=$ac_try;;
   19946 esac
   19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19948   (eval "$ac_compile") 2>conftest.er1
   19949   ac_status=$?
   19950   grep -v '^ *+' conftest.er1 >conftest.err
   19951   rm -f conftest.er1
   19952   cat conftest.err >&5
   19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19954   (exit $ac_status); } &&
   19955 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19956   { (case "(($ac_try" in
   19957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19958   *) ac_try_echo=$ac_try;;
   19959 esac
   19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19961   (eval "$ac_try") 2>&5
   19962   ac_status=$?
   19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19964   (exit $ac_status); }; } &&
   19965 	 { ac_try='test -s conftest.$ac_objext'
   19966   { (case "(($ac_try" in
   19967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19968   *) ac_try_echo=$ac_try;;
   19969 esac
   19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19971   (eval "$ac_try") 2>&5
   19972   ac_status=$?
   19973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19974   (exit $ac_status); }; }; then
   19975   ac_header_compiler=yes
   19976 else
   19977   echo "$as_me: failed program was:" >&5
   19978 sed 's/^/| /' conftest.$ac_ext >&5
   19979 
   19980 	ac_header_compiler=no
   19981 fi
   19982 
   19983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   19985 echo "${ECHO_T}$ac_header_compiler" >&6; }
   19986 
   19987 # Is the header present?
   19988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   19989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   19990 cat >conftest.$ac_ext <<_ACEOF
   19991 /* confdefs.h.  */
   19992 _ACEOF
   19993 cat confdefs.h >>conftest.$ac_ext
   19994 cat >>conftest.$ac_ext <<_ACEOF
   19995 /* end confdefs.h.  */
   19996 #include <$ac_header>
   19997 _ACEOF
   19998 if { (ac_try="$ac_cpp conftest.$ac_ext"
   19999 case "(($ac_try" in
   20000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20001   *) ac_try_echo=$ac_try;;
   20002 esac
   20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20004   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   20005   ac_status=$?
   20006   grep -v '^ *+' conftest.er1 >conftest.err
   20007   rm -f conftest.er1
   20008   cat conftest.err >&5
   20009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20010   (exit $ac_status); } >/dev/null; then
   20011   if test -s conftest.err; then
   20012     ac_cpp_err=$ac_c_preproc_warn_flag
   20013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   20014   else
   20015     ac_cpp_err=
   20016   fi
   20017 else
   20018   ac_cpp_err=yes
   20019 fi
   20020 if test -z "$ac_cpp_err"; then
   20021   ac_header_preproc=yes
   20022 else
   20023   echo "$as_me: failed program was:" >&5
   20024 sed 's/^/| /' conftest.$ac_ext >&5
   20025 
   20026   ac_header_preproc=no
   20027 fi
   20028 
   20029 rm -f conftest.err conftest.$ac_ext
   20030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   20031 echo "${ECHO_T}$ac_header_preproc" >&6; }
   20032 
   20033 # So?  What about this header?
   20034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   20035   yes:no: )
   20036     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   20037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   20038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   20039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   20040     ac_header_preproc=yes
   20041     ;;
   20042   no:yes:* )
   20043     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   20044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   20045     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   20046 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   20047     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   20048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   20049     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   20050 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   20051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   20052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   20053     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   20054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   20055     ( cat <<\_ASBOX
   20056 ## ----------------------------------- ##
   20057 ## Report this to llvmbugs (at] cs.uiuc.edu ##
   20058 ## ----------------------------------- ##
   20059 _ASBOX
   20060      ) | sed "s/^/$as_me: WARNING:     /" >&2
   20061     ;;
   20062 esac
   20063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   20064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   20065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20066   echo $ECHO_N "(cached) $ECHO_C" >&6
   20067 else
   20068   eval "$as_ac_Header=\$ac_header_preproc"
   20069 fi
   20070 ac_res=`eval echo '${'$as_ac_Header'}'`
   20071 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20072 echo "${ECHO_T}$ac_res" >&6; }
   20073 
   20074 fi
   20075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   20076   cat >>confdefs.h <<_ACEOF
   20077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   20078 _ACEOF
   20079 
   20080 fi
   20081 
   20082 done
   20083 
   20084 
   20085 for ac_func in getpagesize
   20086 do
   20087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   20089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   20090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   20091   echo $ECHO_N "(cached) $ECHO_C" >&6
   20092 else
   20093   cat >conftest.$ac_ext <<_ACEOF
   20094 /* confdefs.h.  */
   20095 _ACEOF
   20096 cat confdefs.h >>conftest.$ac_ext
   20097 cat >>conftest.$ac_ext <<_ACEOF
   20098 /* end confdefs.h.  */
   20099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   20100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   20101 #define $ac_func innocuous_$ac_func
   20102 
   20103 /* System header to define __stub macros and hopefully few prototypes,
   20104     which can conflict with char $ac_func (); below.
   20105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   20106     <limits.h> exists even on freestanding compilers.  */
   20107 
   20108 #ifdef __STDC__
   20109 # include <limits.h>
   20110 #else
   20111 # include <assert.h>
   20112 #endif
   20113 
   20114 #undef $ac_func
   20115 
   20116 /* Override any GCC internal prototype to avoid an error.
   20117    Use char because int might match the return type of a GCC
   20118    builtin and then its argument prototype would still apply.  */
   20119 #ifdef __cplusplus
   20120 extern "C"
   20121 #endif
   20122 char $ac_func ();
   20123 /* The GNU C library defines this for functions which it implements
   20124     to always fail with ENOSYS.  Some functions are actually named
   20125     something starting with __ and the normal name is an alias.  */
   20126 #if defined __stub_$ac_func || defined __stub___$ac_func
   20127 choke me
   20128 #endif
   20129 
   20130 int
   20131 main ()
   20132 {
   20133 return $ac_func ();
   20134   ;
   20135   return 0;
   20136 }
   20137 _ACEOF
   20138 rm -f conftest.$ac_objext conftest$ac_exeext
   20139 if { (ac_try="$ac_link"
   20140 case "(($ac_try" in
   20141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20142   *) ac_try_echo=$ac_try;;
   20143 esac
   20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20145   (eval "$ac_link") 2>conftest.er1
   20146   ac_status=$?
   20147   grep -v '^ *+' conftest.er1 >conftest.err
   20148   rm -f conftest.er1
   20149   cat conftest.err >&5
   20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20151   (exit $ac_status); } &&
   20152 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   20153   { (case "(($ac_try" in
   20154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20155   *) ac_try_echo=$ac_try;;
   20156 esac
   20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20158   (eval "$ac_try") 2>&5
   20159   ac_status=$?
   20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20161   (exit $ac_status); }; } &&
   20162 	 { ac_try='test -s conftest$ac_exeext'
   20163   { (case "(($ac_try" in
   20164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20165   *) ac_try_echo=$ac_try;;
   20166 esac
   20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20168   (eval "$ac_try") 2>&5
   20169   ac_status=$?
   20170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20171   (exit $ac_status); }; }; then
   20172   eval "$as_ac_var=yes"
   20173 else
   20174   echo "$as_me: failed program was:" >&5
   20175 sed 's/^/| /' conftest.$ac_ext >&5
   20176 
   20177 	eval "$as_ac_var=no"
   20178 fi
   20179 
   20180 rm -f core conftest.err conftest.$ac_objext \
   20181       conftest$ac_exeext conftest.$ac_ext
   20182 fi
   20183 ac_res=`eval echo '${'$as_ac_var'}'`
   20184 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20185 echo "${ECHO_T}$ac_res" >&6; }
   20186 if test `eval echo '${'$as_ac_var'}'` = yes; then
   20187   cat >>confdefs.h <<_ACEOF
   20188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20189 _ACEOF
   20190 
   20191 fi
   20192 done
   20193 
   20194 { echo "$as_me:$LINENO: checking for working mmap" >&5
   20195 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
   20196 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
   20197   echo $ECHO_N "(cached) $ECHO_C" >&6
   20198 else
   20199   if test "$cross_compiling" = yes; then
   20200   ac_cv_func_mmap_fixed_mapped=no
   20201 else
   20202   cat >conftest.$ac_ext <<_ACEOF
   20203 /* confdefs.h.  */
   20204 _ACEOF
   20205 cat confdefs.h >>conftest.$ac_ext
   20206 cat >>conftest.$ac_ext <<_ACEOF
   20207 /* end confdefs.h.  */
   20208 $ac_includes_default
   20209 /* malloc might have been renamed as rpl_malloc. */
   20210 #undef malloc
   20211 
   20212 /* Thanks to Mike Haertel and Jim Avera for this test.
   20213    Here is a matrix of mmap possibilities:
   20214 	mmap private not fixed
   20215 	mmap private fixed at somewhere currently unmapped
   20216 	mmap private fixed at somewhere already mapped
   20217 	mmap shared not fixed
   20218 	mmap shared fixed at somewhere currently unmapped
   20219 	mmap shared fixed at somewhere already mapped
   20220    For private mappings, we should verify that changes cannot be read()
   20221    back from the file, nor mmap's back from the file at a different
   20222    address.  (There have been systems where private was not correctly
   20223    implemented like the infamous i386 svr4.0, and systems where the
   20224    VM page cache was not coherent with the file system buffer cache
   20225    like early versions of FreeBSD and possibly contemporary NetBSD.)
   20226    For shared mappings, we should conversely verify that changes get
   20227    propagated back to all the places they're supposed to be.
   20228 
   20229    Grep wants private fixed already mapped.
   20230    The main things grep needs to know about mmap are:
   20231    * does it exist and is it safe to write into the mmap'd area
   20232    * how to use it (BSD variants)  */
   20233 
   20234 #include <fcntl.h>
   20235 #include <sys/mman.h>
   20236 
   20237 #if !STDC_HEADERS && !HAVE_STDLIB_H
   20238 char *malloc ();
   20239 #endif
   20240 
   20241 /* This mess was copied from the GNU getpagesize.h.  */
   20242 #if !HAVE_GETPAGESIZE
   20243 /* Assume that all systems that can run configure have sys/param.h.  */
   20244 # if !HAVE_SYS_PARAM_H
   20245 #  define HAVE_SYS_PARAM_H 1
   20246 # endif
   20247 
   20248 # ifdef _SC_PAGESIZE
   20249 #  define getpagesize() sysconf(_SC_PAGESIZE)
   20250 # else /* no _SC_PAGESIZE */
   20251 #  if HAVE_SYS_PARAM_H
   20252 #   include <sys/param.h>
   20253 #   ifdef EXEC_PAGESIZE
   20254 #    define getpagesize() EXEC_PAGESIZE
   20255 #   else /* no EXEC_PAGESIZE */
   20256 #    ifdef NBPG
   20257 #     define getpagesize() NBPG * CLSIZE
   20258 #     ifndef CLSIZE
   20259 #      define CLSIZE 1
   20260 #     endif /* no CLSIZE */
   20261 #    else /* no NBPG */
   20262 #     ifdef NBPC
   20263 #      define getpagesize() NBPC
   20264 #     else /* no NBPC */
   20265 #      ifdef PAGESIZE
   20266 #       define getpagesize() PAGESIZE
   20267 #      endif /* PAGESIZE */
   20268 #     endif /* no NBPC */
   20269 #    endif /* no NBPG */
   20270 #   endif /* no EXEC_PAGESIZE */
   20271 #  else /* no HAVE_SYS_PARAM_H */
   20272 #   define getpagesize() 8192	/* punt totally */
   20273 #  endif /* no HAVE_SYS_PARAM_H */
   20274 # endif /* no _SC_PAGESIZE */
   20275 
   20276 #endif /* no HAVE_GETPAGESIZE */
   20277 
   20278 int
   20279 main ()
   20280 {
   20281   char *data, *data2, *data3;
   20282   int i, pagesize;
   20283   int fd;
   20284 
   20285   pagesize = getpagesize ();
   20286 
   20287   /* First, make a file with some known garbage in it. */
   20288   data = (char *) malloc (pagesize);
   20289   if (!data)
   20290     return 1;
   20291   for (i = 0; i < pagesize; ++i)
   20292     *(data + i) = rand ();
   20293   umask (0);
   20294   fd = creat ("conftest.mmap", 0600);
   20295   if (fd < 0)
   20296     return 1;
   20297   if (write (fd, data, pagesize) != pagesize)
   20298     return 1;
   20299   close (fd);
   20300 
   20301   /* Next, try to mmap the file at a fixed address which already has
   20302      something else allocated at it.  If we can, also make sure that
   20303      we see the same garbage.  */
   20304   fd = open ("conftest.mmap", O_RDWR);
   20305   if (fd < 0)
   20306     return 1;
   20307   data2 = (char *) malloc (2 * pagesize);
   20308   if (!data2)
   20309     return 1;
   20310   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
   20311   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   20312 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   20313     return 1;
   20314   for (i = 0; i < pagesize; ++i)
   20315     if (*(data + i) != *(data2 + i))
   20316       return 1;
   20317 
   20318   /* Finally, make sure that changes to the mapped area do not
   20319      percolate back to the file as seen by read().  (This is a bug on
   20320      some variants of i386 svr4.0.)  */
   20321   for (i = 0; i < pagesize; ++i)
   20322     *(data2 + i) = *(data2 + i) + 1;
   20323   data3 = (char *) malloc (pagesize);
   20324   if (!data3)
   20325     return 1;
   20326   if (read (fd, data3, pagesize) != pagesize)
   20327     return 1;
   20328   for (i = 0; i < pagesize; ++i)
   20329     if (*(data + i) != *(data3 + i))
   20330       return 1;
   20331   close (fd);
   20332   return 0;
   20333 }
   20334 _ACEOF
   20335 rm -f conftest$ac_exeext
   20336 if { (ac_try="$ac_link"
   20337 case "(($ac_try" in
   20338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20339   *) ac_try_echo=$ac_try;;
   20340 esac
   20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20342   (eval "$ac_link") 2>&5
   20343   ac_status=$?
   20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   20346   { (case "(($ac_try" in
   20347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20348   *) ac_try_echo=$ac_try;;
   20349 esac
   20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20351   (eval "$ac_try") 2>&5
   20352   ac_status=$?
   20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20354   (exit $ac_status); }; }; then
   20355   ac_cv_func_mmap_fixed_mapped=yes
   20356 else
   20357   echo "$as_me: program exited with status $ac_status" >&5
   20358 echo "$as_me: failed program was:" >&5
   20359 sed 's/^/| /' conftest.$ac_ext >&5
   20360 
   20361 ( exit $ac_status )
   20362 ac_cv_func_mmap_fixed_mapped=no
   20363 fi
   20364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   20365 fi
   20366 
   20367 
   20368 fi
   20369 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
   20370 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
   20371 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   20372 
   20373 cat >>confdefs.h <<\_ACEOF
   20374 #define HAVE_MMAP 1
   20375 _ACEOF
   20376 
   20377 fi
   20378 rm -f conftest.mmap
   20379 
   20380   { echo "$as_me:$LINENO: checking for mmap of files" >&5
   20381 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
   20382 if test "${ac_cv_func_mmap_file+set}" = set; then
   20383   echo $ECHO_N "(cached) $ECHO_C" >&6
   20384 else
   20385    ac_ext=c
   20386 ac_cpp='$CPP $CPPFLAGS'
   20387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20390 
   20391   if test "$cross_compiling" = yes; then
   20392   ac_cv_func_mmap_file=no
   20393 else
   20394   cat >conftest.$ac_ext <<_ACEOF
   20395 
   20396     /* confdefs.h.  */
   20397 _ACEOF
   20398 cat confdefs.h >>conftest.$ac_ext
   20399 cat >>conftest.$ac_ext <<_ACEOF
   20400 /* end confdefs.h.  */
   20401 
   20402 #include <sys/types.h>
   20403 #include <sys/mman.h>
   20404 #include <fcntl.h>
   20405 
   20406 int
   20407 main ()
   20408 {
   20409 
   20410   int fd;
   20411   fd = creat ("foo",0777);
   20412   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
   20413   unlink ("foo");
   20414   return (fd != (int) MAP_FAILED);
   20415   ;
   20416   return 0;
   20417 }
   20418 _ACEOF
   20419 rm -f conftest$ac_exeext
   20420 if { (ac_try="$ac_link"
   20421 case "(($ac_try" in
   20422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20423   *) ac_try_echo=$ac_try;;
   20424 esac
   20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20426   (eval "$ac_link") 2>&5
   20427   ac_status=$?
   20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   20430   { (case "(($ac_try" in
   20431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20432   *) ac_try_echo=$ac_try;;
   20433 esac
   20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20435   (eval "$ac_try") 2>&5
   20436   ac_status=$?
   20437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20438   (exit $ac_status); }; }; then
   20439   ac_cv_func_mmap_file=yes
   20440 else
   20441   echo "$as_me: program exited with status $ac_status" >&5
   20442 echo "$as_me: failed program was:" >&5
   20443 sed 's/^/| /' conftest.$ac_ext >&5
   20444 
   20445 ( exit $ac_status )
   20446 ac_cv_func_mmap_file=no
   20447 fi
   20448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   20449 fi
   20450 
   20451 
   20452   ac_ext=c
   20453 ac_cpp='$CPP $CPPFLAGS'
   20454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20457 
   20458 
   20459 fi
   20460 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
   20461 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
   20462 if test "$ac_cv_func_mmap_file" = yes; then
   20463 
   20464 cat >>confdefs.h <<\_ACEOF
   20465 #define HAVE_MMAP_FILE
   20466 _ACEOF
   20467 
   20468    MMAP_FILE=yes
   20469 
   20470 fi
   20471 
   20472   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
   20473 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
   20474 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
   20475   echo $ECHO_N "(cached) $ECHO_C" >&6
   20476 else
   20477   if test "$llvm_cv_os_type" = "Interix" ; then
   20478    ac_cv_need_dev_zero_for_mmap=yes
   20479  else
   20480    ac_cv_need_dev_zero_for_mmap=no
   20481  fi
   20482 
   20483 fi
   20484 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
   20485 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
   20486 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
   20487 
   20488 cat >>confdefs.h <<\_ACEOF
   20489 #define NEED_DEV_ZERO_FOR_MMAP 1
   20490 _ACEOF
   20491 
   20492 fi
   20493 
   20494   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
   20495   then
   20496     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
   20497 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
   20498   fi
   20499   if test "$ac_cv_func_mmap_file" = "no"
   20500   then
   20501     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
   20502 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
   20503   fi
   20504 fi
   20505 
   20506 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
   20507 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
   20508 ac_ext=cpp
   20509 ac_cpp='$CXXCPP $CPPFLAGS'
   20510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   20513 
   20514 cat >conftest.$ac_ext <<_ACEOF
   20515 /* confdefs.h.  */
   20516 _ACEOF
   20517 cat confdefs.h >>conftest.$ac_ext
   20518 cat >>conftest.$ac_ext <<_ACEOF
   20519 /* end confdefs.h.  */
   20520 int main() {
   20521         volatile unsigned long val = 1;
   20522         __sync_synchronize();
   20523         __sync_val_compare_and_swap(&val, 1, 0);
   20524         __sync_add_and_fetch(&val, 1);
   20525         __sync_sub_and_fetch(&val, 1);
   20526         return 0;
   20527       }
   20528 
   20529 _ACEOF
   20530 rm -f conftest.$ac_objext conftest$ac_exeext
   20531 if { (ac_try="$ac_link"
   20532 case "(($ac_try" in
   20533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20534   *) ac_try_echo=$ac_try;;
   20535 esac
   20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20537   (eval "$ac_link") 2>conftest.er1
   20538   ac_status=$?
   20539   grep -v '^ *+' conftest.er1 >conftest.err
   20540   rm -f conftest.er1
   20541   cat conftest.err >&5
   20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20543   (exit $ac_status); } &&
   20544 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   20545   { (case "(($ac_try" in
   20546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20547   *) ac_try_echo=$ac_try;;
   20548 esac
   20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20550   (eval "$ac_try") 2>&5
   20551   ac_status=$?
   20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20553   (exit $ac_status); }; } &&
   20554 	 { ac_try='test -s conftest$ac_exeext'
   20555   { (case "(($ac_try" in
   20556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20557   *) ac_try_echo=$ac_try;;
   20558 esac
   20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20560   (eval "$ac_try") 2>&5
   20561   ac_status=$?
   20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20563   (exit $ac_status); }; }; then
   20564   ac_ext=c
   20565 ac_cpp='$CPP $CPPFLAGS'
   20566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20569 
   20570   { echo "$as_me:$LINENO: result: yes" >&5
   20571 echo "${ECHO_T}yes" >&6; }
   20572 
   20573 cat >>confdefs.h <<\_ACEOF
   20574 #define LLVM_HAS_ATOMICS 1
   20575 _ACEOF
   20576 
   20577 else
   20578   echo "$as_me: failed program was:" >&5
   20579 sed 's/^/| /' conftest.$ac_ext >&5
   20580 
   20581 	{ echo "$as_me:$LINENO: result: no" >&5
   20582 echo "${ECHO_T}no" >&6; }
   20583 
   20584 cat >>confdefs.h <<\_ACEOF
   20585 #define LLVM_HAS_ATOMICS 0
   20586 _ACEOF
   20587 
   20588   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
   20589 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
   20590 fi
   20591 
   20592 rm -f core conftest.err conftest.$ac_objext \
   20593       conftest$ac_exeext conftest.$ac_ext
   20594 
   20595 
   20596 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
   20597   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
   20598 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
   20599 if test "${llvm_cv_linux_mixed+set}" = set; then
   20600   echo $ECHO_N "(cached) $ECHO_C" >&6
   20601 else
   20602    ac_ext=c
   20603 ac_cpp='$CPP $CPPFLAGS'
   20604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20607 
   20608   cat >conftest.$ac_ext <<_ACEOF
   20609 /* confdefs.h.  */
   20610 _ACEOF
   20611 cat confdefs.h >>conftest.$ac_ext
   20612 cat >>conftest.$ac_ext <<_ACEOF
   20613 /* end confdefs.h.  */
   20614 #ifndef __x86_64__
   20615        error: Not x86-64 even if uname says so!
   20616       #endif
   20617 
   20618 int
   20619 main ()
   20620 {
   20621 
   20622   ;
   20623   return 0;
   20624 }
   20625 _ACEOF
   20626 rm -f conftest.$ac_objext
   20627 if { (ac_try="$ac_compile"
   20628 case "(($ac_try" in
   20629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20630   *) ac_try_echo=$ac_try;;
   20631 esac
   20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20633   (eval "$ac_compile") 2>conftest.er1
   20634   ac_status=$?
   20635   grep -v '^ *+' conftest.er1 >conftest.err
   20636   rm -f conftest.er1
   20637   cat conftest.err >&5
   20638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20639   (exit $ac_status); } &&
   20640 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   20641   { (case "(($ac_try" in
   20642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20643   *) ac_try_echo=$ac_try;;
   20644 esac
   20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20646   (eval "$ac_try") 2>&5
   20647   ac_status=$?
   20648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20649   (exit $ac_status); }; } &&
   20650 	 { ac_try='test -s conftest.$ac_objext'
   20651   { (case "(($ac_try" in
   20652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20653   *) ac_try_echo=$ac_try;;
   20654 esac
   20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20656   (eval "$ac_try") 2>&5
   20657   ac_status=$?
   20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20659   (exit $ac_status); }; }; then
   20660   llvm_cv_linux_mixed=no
   20661 else
   20662   echo "$as_me: failed program was:" >&5
   20663 sed 's/^/| /' conftest.$ac_ext >&5
   20664 
   20665 	llvm_cv_linux_mixed=yes
   20666 fi
   20667 
   20668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20669   ac_ext=c
   20670 ac_cpp='$CPP $CPPFLAGS'
   20671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20674 
   20675 
   20676 fi
   20677 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
   20678 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
   20679 
   20680   if test "$llvm_cv_linux_mixed" = "yes"; then
   20681     llvm_cv_target_arch="x86"
   20682     ARCH="x86"
   20683   fi
   20684 fi
   20685 
   20686 
   20687 for ac_func in __dso_handle
   20688 do
   20689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   20691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   20692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   20693   echo $ECHO_N "(cached) $ECHO_C" >&6
   20694 else
   20695   cat >conftest.$ac_ext <<_ACEOF
   20696 /* confdefs.h.  */
   20697 _ACEOF
   20698 cat confdefs.h >>conftest.$ac_ext
   20699 cat >>conftest.$ac_ext <<_ACEOF
   20700 /* end confdefs.h.  */
   20701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   20702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   20703 #define $ac_func innocuous_$ac_func
   20704 
   20705 /* System header to define __stub macros and hopefully few prototypes,
   20706     which can conflict with char $ac_func (); below.
   20707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   20708     <limits.h> exists even on freestanding compilers.  */
   20709 
   20710 #ifdef __STDC__
   20711 # include <limits.h>
   20712 #else
   20713 # include <assert.h>
   20714 #endif
   20715 
   20716 #undef $ac_func
   20717 
   20718 /* Override any GCC internal prototype to avoid an error.
   20719    Use char because int might match the return type of a GCC
   20720    builtin and then its argument prototype would still apply.  */
   20721 #ifdef __cplusplus
   20722 extern "C"
   20723 #endif
   20724 char $ac_func ();
   20725 /* The GNU C library defines this for functions which it implements
   20726     to always fail with ENOSYS.  Some functions are actually named
   20727     something starting with __ and the normal name is an alias.  */
   20728 #if defined __stub_$ac_func || defined __stub___$ac_func
   20729 choke me
   20730 #endif
   20731 
   20732 int
   20733 main ()
   20734 {
   20735 return $ac_func ();
   20736   ;
   20737   return 0;
   20738 }
   20739 _ACEOF
   20740 rm -f conftest.$ac_objext conftest$ac_exeext
   20741 if { (ac_try="$ac_link"
   20742 case "(($ac_try" in
   20743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20744   *) ac_try_echo=$ac_try;;
   20745 esac
   20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20747   (eval "$ac_link") 2>conftest.er1
   20748   ac_status=$?
   20749   grep -v '^ *+' conftest.er1 >conftest.err
   20750   rm -f conftest.er1
   20751   cat conftest.err >&5
   20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20753   (exit $ac_status); } &&
   20754 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   20755   { (case "(($ac_try" in
   20756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20757   *) ac_try_echo=$ac_try;;
   20758 esac
   20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20760   (eval "$ac_try") 2>&5
   20761   ac_status=$?
   20762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20763   (exit $ac_status); }; } &&
   20764 	 { ac_try='test -s conftest$ac_exeext'
   20765   { (case "(($ac_try" in
   20766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20767   *) ac_try_echo=$ac_try;;
   20768 esac
   20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20770   (eval "$ac_try") 2>&5
   20771   ac_status=$?
   20772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20773   (exit $ac_status); }; }; then
   20774   eval "$as_ac_var=yes"
   20775 else
   20776   echo "$as_me: failed program was:" >&5
   20777 sed 's/^/| /' conftest.$ac_ext >&5
   20778 
   20779 	eval "$as_ac_var=no"
   20780 fi
   20781 
   20782 rm -f core conftest.err conftest.$ac_objext \
   20783       conftest$ac_exeext conftest.$ac_ext
   20784 fi
   20785 ac_res=`eval echo '${'$as_ac_var'}'`
   20786 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20787 echo "${ECHO_T}$ac_res" >&6; }
   20788 if test `eval echo '${'$as_ac_var'}'` = yes; then
   20789   cat >>confdefs.h <<_ACEOF
   20790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20791 _ACEOF
   20792 
   20793 fi
   20794 done
   20795 
   20796 
   20797 SHLIBEXT=$libltdl_cv_shlibext
   20798 
   20799 
   20800 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
   20801 
   20802 
   20803 # Translate the various configuration directories and other basic
   20804 # information into substitutions that will end up in Makefile.config.in
   20805 # that these configured values can be used by the makefiles
   20806 if test "${prefix}" = "NONE" ; then
   20807   prefix="/usr/local"
   20808 fi
   20809 eval LLVM_PREFIX="${prefix}";
   20810 eval LLVM_BINDIR="${prefix}/bin";
   20811 eval LLVM_LIBDIR="${prefix}/lib";
   20812 eval LLVM_DATADIR="${prefix}/share/llvm";
   20813 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
   20814 eval LLVM_ETCDIR="${prefix}/etc/llvm";
   20815 eval LLVM_INCLUDEDIR="${prefix}/include";
   20816 eval LLVM_INFODIR="${prefix}/info";
   20817 eval LLVM_MANDIR="${prefix}/man";
   20818 LLVM_CONFIGTIME=`date`
   20819 
   20820 
   20821 
   20822 
   20823 
   20824 
   20825 
   20826 
   20827 
   20828 
   20829 
   20830 # Place the various directores into the config.h file as #defines so that we
   20831 # can know about the installation paths within LLVM.
   20832 
   20833 cat >>confdefs.h <<_ACEOF
   20834 #define LLVM_PREFIX "$LLVM_PREFIX"
   20835 _ACEOF
   20836 
   20837 
   20838 cat >>confdefs.h <<_ACEOF
   20839 #define LLVM_BINDIR "$LLVM_BINDIR"
   20840 _ACEOF
   20841 
   20842 
   20843 cat >>confdefs.h <<_ACEOF
   20844 #define LLVM_LIBDIR "$LLVM_LIBDIR"
   20845 _ACEOF
   20846 
   20847 
   20848 cat >>confdefs.h <<_ACEOF
   20849 #define LLVM_DATADIR "$LLVM_DATADIR"
   20850 _ACEOF
   20851 
   20852 
   20853 cat >>confdefs.h <<_ACEOF
   20854 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
   20855 _ACEOF
   20856 
   20857 
   20858 cat >>confdefs.h <<_ACEOF
   20859 #define LLVM_ETCDIR "$LLVM_ETCDIR"
   20860 _ACEOF
   20861 
   20862 
   20863 cat >>confdefs.h <<_ACEOF
   20864 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
   20865 _ACEOF
   20866 
   20867 
   20868 cat >>confdefs.h <<_ACEOF
   20869 #define LLVM_INFODIR "$LLVM_INFODIR"
   20870 _ACEOF
   20871 
   20872 
   20873 cat >>confdefs.h <<_ACEOF
   20874 #define LLVM_MANDIR "$LLVM_MANDIR"
   20875 _ACEOF
   20876 
   20877 
   20878 cat >>confdefs.h <<_ACEOF
   20879 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
   20880 _ACEOF
   20881 
   20882 
   20883 cat >>confdefs.h <<_ACEOF
   20884 #define LLVM_HOSTTRIPLE "$host"
   20885 _ACEOF
   20886 
   20887 
   20888 # Determine which bindings to build.
   20889 if test "$BINDINGS_TO_BUILD" = auto ; then
   20890   BINDINGS_TO_BUILD=""
   20891   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
   20892     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
   20893   fi
   20894 fi
   20895 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
   20896 
   20897 
   20898 # This isn't really configurey, but it avoids having to repeat the list in
   20899 # other files.
   20900 ALL_BINDINGS=ocaml
   20901 
   20902 
   20903 # Do any work necessary to ensure that bindings have what they need.
   20904 binding_prereqs_failed=0
   20905 for a_binding in $BINDINGS_TO_BUILD ; do
   20906   case "$a_binding" in
   20907   ocaml)
   20908     if test "x$OCAMLC" = x ; then
   20909       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
   20910 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
   20911       binding_prereqs_failed=1
   20912     fi
   20913     if test "x$OCAMLDEP" = x ; then
   20914       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
   20915 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
   20916       binding_prereqs_failed=1
   20917     fi
   20918     if test "x$OCAMLOPT" = x ; then
   20919       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
   20920 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
   20921           fi
   20922     if test "x$with_ocaml_libdir" != xauto ; then
   20923       OCAML_LIBDIR=$with_ocaml_libdir
   20924 
   20925     else
   20926       ocaml_stdlib="`"$OCAMLC" -where`"
   20927       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
   20928       then
   20929         # ocaml stdlib is beneath our prefix; use stdlib
   20930         OCAML_LIBDIR=$ocaml_stdlib
   20931 
   20932       else
   20933         # ocaml stdlib is outside our prefix; use libdir/ocaml
   20934         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
   20935 
   20936       fi
   20937     fi
   20938     ;;
   20939   esac
   20940 done
   20941 if test "$binding_prereqs_failed" = 1 ; then
   20942   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
   20943 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
   20944    { (exit 1); exit 1; }; }
   20945 fi
   20946 
   20947 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
   20948 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
   20949 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
   20950   echo $ECHO_N "(cached) $ECHO_C" >&6
   20951 else
   20952    ac_ext=cpp
   20953 ac_cpp='$CXXCPP $CPPFLAGS'
   20954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   20957 
   20958   oldcxxflags="$CXXFLAGS"
   20959   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
   20960   cat >conftest.$ac_ext <<_ACEOF
   20961 /* confdefs.h.  */
   20962 _ACEOF
   20963 cat confdefs.h >>conftest.$ac_ext
   20964 cat >>conftest.$ac_ext <<_ACEOF
   20965 /* end confdefs.h.  */
   20966 
   20967 int
   20968 main ()
   20969 {
   20970 
   20971   ;
   20972   return 0;
   20973 }
   20974 _ACEOF
   20975 rm -f conftest.$ac_objext
   20976 if { (ac_try="$ac_compile"
   20977 case "(($ac_try" in
   20978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20979   *) ac_try_echo=$ac_try;;
   20980 esac
   20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20982   (eval "$ac_compile") 2>conftest.er1
   20983   ac_status=$?
   20984   grep -v '^ *+' conftest.er1 >conftest.err
   20985   rm -f conftest.er1
   20986   cat conftest.err >&5
   20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20988   (exit $ac_status); } &&
   20989 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   20990   { (case "(($ac_try" in
   20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20992   *) ac_try_echo=$ac_try;;
   20993 esac
   20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20995   (eval "$ac_try") 2>&5
   20996   ac_status=$?
   20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20998   (exit $ac_status); }; } &&
   20999 	 { ac_try='test -s conftest.$ac_objext'
   21000   { (case "(($ac_try" in
   21001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21002   *) ac_try_echo=$ac_try;;
   21003 esac
   21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21005   (eval "$ac_try") 2>&5
   21006   ac_status=$?
   21007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21008   (exit $ac_status); }; }; then
   21009   llvm_cv_cxx_visibility_inlines_hidden=yes
   21010 else
   21011   echo "$as_me: failed program was:" >&5
   21012 sed 's/^/| /' conftest.$ac_ext >&5
   21013 
   21014 	llvm_cv_cxx_visibility_inlines_hidden=no
   21015 fi
   21016 
   21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21018   CXXFLAGS="$oldcxxflags"
   21019   ac_ext=c
   21020 ac_cpp='$CPP $CPPFLAGS'
   21021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   21022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   21023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   21024 
   21025 
   21026 fi
   21027 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
   21028 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
   21029 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
   21030   ENABLE_VISIBILITY_INLINES_HIDDEN=1
   21031 
   21032 else
   21033   ENABLE_VISIBILITY_INLINES_HIDDEN=0
   21034 
   21035 fi
   21036 
   21037 
   21038 if test "$llvm_cv_link_use_r" = "yes" ; then
   21039   RPATH="-Wl,-R"
   21040 else
   21041   RPATH="-Wl,-rpath"
   21042 fi
   21043 
   21044 
   21045 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
   21046   RDYNAMIC="-Wl,-export-dynamic"
   21047 else
   21048   RDYNAMIC=""
   21049 fi
   21050 
   21051 
   21052 
   21053 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
   21054 
   21055 
   21056 
   21057 
   21058 
   21059 
   21060 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
   21061 
   21062 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
   21063 
   21064 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
   21065 
   21066 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
   21067 
   21068 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
   21069 
   21070 
   21071 ac_config_files="$ac_config_files Makefile.config"
   21072 
   21073 ac_config_files="$ac_config_files llvm.spec"
   21074 
   21075 
   21076 ac_config_files="$ac_config_files docs/doxygen.cfg"
   21077 
   21078 if test -f ${srcdir}/tools/clang/README.txt; then
   21079   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
   21080 
   21081 fi
   21082 
   21083 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
   21084 
   21085 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
   21086 
   21087 ac_config_commands="$ac_config_commands setup"
   21088 
   21089 ac_config_commands="$ac_config_commands Makefile"
   21090 
   21091 
   21092 ac_config_commands="$ac_config_commands Makefile.common"
   21093 
   21094 
   21095 ac_config_commands="$ac_config_commands examples/Makefile"
   21096 
   21097 
   21098 ac_config_commands="$ac_config_commands lib/Makefile"
   21099 
   21100 
   21101 ac_config_commands="$ac_config_commands runtime/Makefile"
   21102 
   21103 
   21104 ac_config_commands="$ac_config_commands test/Makefile"
   21105 
   21106 
   21107 ac_config_commands="$ac_config_commands test/Makefile.tests"
   21108 
   21109 
   21110 ac_config_commands="$ac_config_commands unittests/Makefile"
   21111 
   21112 
   21113 ac_config_commands="$ac_config_commands tools/Makefile"
   21114 
   21115 
   21116 ac_config_commands="$ac_config_commands utils/Makefile"
   21117 
   21118 
   21119 ac_config_commands="$ac_config_commands projects/Makefile"
   21120 
   21121 
   21122 ac_config_commands="$ac_config_commands bindings/Makefile"
   21123 
   21124 
   21125 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
   21126 
   21127 
   21128 
   21129 cat >confcache <<\_ACEOF
   21130 # This file is a shell script that caches the results of configure
   21131 # tests run on this system so they can be shared between configure
   21132 # scripts and configure runs, see configure's option --config-cache.
   21133 # It is not useful on other systems.  If it contains results you don't
   21134 # want to keep, you may remove or edit it.
   21135 #
   21136 # config.status only pays attention to the cache file if you give it
   21137 # the --recheck option to rerun configure.
   21138 #
   21139 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   21140 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   21141 # following values.
   21142 
   21143 _ACEOF
   21144 
   21145 # The following way of writing the cache mishandles newlines in values,
   21146 # but we know of no workaround that is simple, portable, and efficient.
   21147 # So, we kill variables containing newlines.
   21148 # Ultrix sh set writes to stderr and can't be redirected directly,
   21149 # and sets the high bit in the cache file unless we assign to the vars.
   21150 (
   21151   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   21152     eval ac_val=\$$ac_var
   21153     case $ac_val in #(
   21154     *${as_nl}*)
   21155       case $ac_var in #(
   21156       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   21157 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   21158       esac
   21159       case $ac_var in #(
   21160       _ | IFS | as_nl) ;; #(
   21161       *) $as_unset $ac_var ;;
   21162       esac ;;
   21163     esac
   21164   done
   21165 
   21166   (set) 2>&1 |
   21167     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   21168     *${as_nl}ac_space=\ *)
   21169       # `set' does not quote correctly, so add quotes (double-quote
   21170       # substitution turns \\\\ into \\, and sed turns \\ into \).
   21171       sed -n \
   21172 	"s/'/'\\\\''/g;
   21173 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   21174       ;; #(
   21175     *)
   21176       # `set' quotes correctly as required by POSIX, so do not add quotes.
   21177       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   21178       ;;
   21179     esac |
   21180     sort
   21181 ) |
   21182   sed '
   21183      /^ac_cv_env_/b end
   21184      t clear
   21185      :clear
   21186      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   21187      t end
   21188      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   21189      :end' >>confcache
   21190 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   21191   if test -w "$cache_file"; then
   21192     test "x$cache_file" != "x/dev/null" &&
   21193       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
   21194 echo "$as_me: updating cache $cache_file" >&6;}
   21195     cat confcache >$cache_file
   21196   else
   21197     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
   21198 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   21199   fi
   21200 fi
   21201 rm -f confcache
   21202 
   21203 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   21204 # Let make expand exec_prefix.
   21205 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   21206 
   21207 DEFS=-DHAVE_CONFIG_H
   21208 
   21209 ac_libobjs=
   21210 ac_ltlibobjs=
   21211 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   21212   # 1. Remove the extension, and $U if already installed.
   21213   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   21214   ac_i=`echo "$ac_i" | sed "$ac_script"`
   21215   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   21216   #    will be set to the directory where LIBOBJS objects are built.
   21217   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   21218   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
   21219 done
   21220 LIBOBJS=$ac_libobjs
   21221 
   21222 LTLIBOBJS=$ac_ltlibobjs
   21223 
   21224 
   21225 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
   21226   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
   21227 Usually this means the macro was only invoked conditionally." >&5
   21228 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
   21229 Usually this means the macro was only invoked conditionally." >&2;}
   21230    { (exit 1); exit 1; }; }
   21231 fi
   21232 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
   21233   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
   21234 Usually this means the macro was only invoked conditionally." >&5
   21235 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
   21236 Usually this means the macro was only invoked conditionally." >&2;}
   21237    { (exit 1); exit 1; }; }
   21238 fi
   21239 
   21240 : ${CONFIG_STATUS=./config.status}
   21241 ac_clean_files_save=$ac_clean_files
   21242 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   21243 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
   21244 echo "$as_me: creating $CONFIG_STATUS" >&6;}
   21245 cat >$CONFIG_STATUS <<_ACEOF
   21246 #! $SHELL
   21247 # Generated by $as_me.
   21248 # Run this file to recreate the current configuration.
   21249 # Compiler output produced by configure, useful for debugging
   21250 # configure, is in config.log if it exists.
   21251 
   21252 debug=false
   21253 ac_cs_recheck=false
   21254 ac_cs_silent=false
   21255 SHELL=\${CONFIG_SHELL-$SHELL}
   21256 _ACEOF
   21257 
   21258 cat >>$CONFIG_STATUS <<\_ACEOF
   21259 ## --------------------- ##
   21260 ## M4sh Initialization.  ##
   21261 ## --------------------- ##
   21262 
   21263 # Be Bourne compatible
   21264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   21265   emulate sh
   21266   NULLCMD=:
   21267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   21268   # is contrary to our usage.  Disable this feature.
   21269   alias -g '${1+"$@"}'='"$@"'
   21270   setopt NO_GLOB_SUBST
   21271 else
   21272   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
   21273 fi
   21274 BIN_SH=xpg4; export BIN_SH # for Tru64
   21275 DUALCASE=1; export DUALCASE # for MKS sh
   21276 
   21277 
   21278 # PATH needs CR
   21279 # Avoid depending upon Character Ranges.
   21280 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   21281 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   21282 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   21283 as_cr_digits='0123456789'
   21284 as_cr_alnum=$as_cr_Letters$as_cr_digits
   21285 
   21286 # The user is always right.
   21287 if test "${PATH_SEPARATOR+set}" != set; then
   21288   echo "#! /bin/sh" >conf$$.sh
   21289   echo  "exit 0"   >>conf$$.sh
   21290   chmod +x conf$$.sh
   21291   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   21292     PATH_SEPARATOR=';'
   21293   else
   21294     PATH_SEPARATOR=:
   21295   fi
   21296   rm -f conf$$.sh
   21297 fi
   21298 
   21299 # Support unset when possible.
   21300 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   21301   as_unset=unset
   21302 else
   21303   as_unset=false
   21304 fi
   21305 
   21306 
   21307 # IFS
   21308 # We need space, tab and new line, in precisely that order.  Quoting is
   21309 # there to prevent editors from complaining about space-tab.
   21310 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   21311 # splitting by setting IFS to empty value.)
   21312 as_nl='
   21313 '
   21314 IFS=" ""	$as_nl"
   21315 
   21316 # Find who we are.  Look in the path if we contain no directory separator.
   21317 case $0 in
   21318   *[\\/]* ) as_myself=$0 ;;
   21319   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21320 for as_dir in $PATH
   21321 do
   21322   IFS=$as_save_IFS
   21323   test -z "$as_dir" && as_dir=.
   21324   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   21325 done
   21326 IFS=$as_save_IFS
   21327 
   21328      ;;
   21329 esac
   21330 # We did not find ourselves, most probably we were run as `sh COMMAND'
   21331 # in which case we are not to be found in the path.
   21332 if test "x$as_myself" = x; then
   21333   as_myself=$0
   21334 fi
   21335 if test ! -f "$as_myself"; then
   21336   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   21337   { (exit 1); exit 1; }
   21338 fi
   21339 
   21340 # Work around bugs in pre-3.0 UWIN ksh.
   21341 for as_var in ENV MAIL MAILPATH
   21342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   21343 done
   21344 PS1='$ '
   21345 PS2='> '
   21346 PS4='+ '
   21347 
   21348 # NLS nuisances.
   21349 for as_var in \
   21350   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   21351   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   21352   LC_TELEPHONE LC_TIME
   21353 do
   21354   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   21355     eval $as_var=C; export $as_var
   21356   else
   21357     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   21358   fi
   21359 done
   21360 
   21361 # Required to use basename.
   21362 if expr a : '\(a\)' >/dev/null 2>&1 &&
   21363    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   21364   as_expr=expr
   21365 else
   21366   as_expr=false
   21367 fi
   21368 
   21369 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   21370   as_basename=basename
   21371 else
   21372   as_basename=false
   21373 fi
   21374 
   21375 
   21376 # Name of the executable.
   21377 as_me=`$as_basename -- "$0" ||
   21378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   21379 	 X"$0" : 'X\(//\)$' \| \
   21380 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   21381 echo X/"$0" |
   21382     sed '/^.*\/\([^/][^/]*\)\/*$/{
   21383 	    s//\1/
   21384 	    q
   21385 	  }
   21386 	  /^X\/\(\/\/\)$/{
   21387 	    s//\1/
   21388 	    q
   21389 	  }
   21390 	  /^X\/\(\/\).*/{
   21391 	    s//\1/
   21392 	    q
   21393 	  }
   21394 	  s/.*/./; q'`
   21395 
   21396 # CDPATH.
   21397 $as_unset CDPATH
   21398 
   21399 
   21400 
   21401   as_lineno_1=$LINENO
   21402   as_lineno_2=$LINENO
   21403   test "x$as_lineno_1" != "x$as_lineno_2" &&
   21404   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   21405 
   21406   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   21407   # uniformly replaced by the line number.  The first 'sed' inserts a
   21408   # line-number line after each line using $LINENO; the second 'sed'
   21409   # does the real work.  The second script uses 'N' to pair each
   21410   # line-number line with the line containing $LINENO, and appends
   21411   # trailing '-' during substitution so that $LINENO is not a special
   21412   # case at line end.
   21413   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   21414   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   21415   # E. McMahon (1931-1989) for sed's syntax.  :-)
   21416   sed -n '
   21417     p
   21418     /[$]LINENO/=
   21419   ' <$as_myself |
   21420     sed '
   21421       s/[$]LINENO.*/&-/
   21422       t lineno
   21423       b
   21424       :lineno
   21425       N
   21426       :loop
   21427       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   21428       t loop
   21429       s/-\n.*//
   21430     ' >$as_me.lineno &&
   21431   chmod +x "$as_me.lineno" ||
   21432     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   21433    { (exit 1); exit 1; }; }
   21434 
   21435   # Don't try to exec as it changes $[0], causing all sort of problems
   21436   # (the dirname of $[0] is not the place where we might find the
   21437   # original and so on.  Autoconf is especially sensitive to this).
   21438   . "./$as_me.lineno"
   21439   # Exit status is that of the last command.
   21440   exit
   21441 }
   21442 
   21443 
   21444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   21445   as_dirname=dirname
   21446 else
   21447   as_dirname=false
   21448 fi
   21449 
   21450 ECHO_C= ECHO_N= ECHO_T=
   21451 case `echo -n x` in
   21452 -n*)
   21453   case `echo 'x\c'` in
   21454   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   21455   *)   ECHO_C='\c';;
   21456   esac;;
   21457 *)
   21458   ECHO_N='-n';;
   21459 esac
   21460 
   21461 if expr a : '\(a\)' >/dev/null 2>&1 &&
   21462    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   21463   as_expr=expr
   21464 else
   21465   as_expr=false
   21466 fi
   21467 
   21468 rm -f conf$$ conf$$.exe conf$$.file
   21469 if test -d conf$$.dir; then
   21470   rm -f conf$$.dir/conf$$.file
   21471 else
   21472   rm -f conf$$.dir
   21473   mkdir conf$$.dir
   21474 fi
   21475 echo >conf$$.file
   21476 if ln -s conf$$.file conf$$ 2>/dev/null; then
   21477   as_ln_s='ln -s'
   21478   # ... but there are two gotchas:
   21479   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   21480   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   21481   # In both cases, we have to default to `cp -p'.
   21482   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   21483     as_ln_s='cp -p'
   21484 elif ln conf$$.file conf$$ 2>/dev/null; then
   21485   as_ln_s=ln
   21486 else
   21487   as_ln_s='cp -p'
   21488 fi
   21489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   21490 rmdir conf$$.dir 2>/dev/null
   21491 
   21492 if mkdir -p . 2>/dev/null; then
   21493   as_mkdir_p=:
   21494 else
   21495   test -d ./-p && rmdir ./-p
   21496   as_mkdir_p=false
   21497 fi
   21498 
   21499 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
   21500 # systems may use methods other than mode bits to determine executability.
   21501 cat >conf$$.file <<_ASEOF
   21502 #! /bin/sh
   21503 exit 0
   21504 _ASEOF
   21505 chmod +x conf$$.file
   21506 if test -x conf$$.file >/dev/null 2>&1; then
   21507   as_executable_p="test -x"
   21508 else
   21509   as_executable_p=:
   21510 fi
   21511 rm -f conf$$.file
   21512 
   21513 # Sed expression to map a string onto a valid CPP name.
   21514 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   21515 
   21516 # Sed expression to map a string onto a valid variable name.
   21517 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   21518 
   21519 
   21520 exec 6>&1
   21521 
   21522 # Save the log message, to keep $[0] and so on meaningful, and to
   21523 # report actual input values of CONFIG_FILES etc. instead of their
   21524 # values after options handling.
   21525 ac_log="
   21526 This file was extended by llvm $as_me 3.1svn, which was
   21527 generated by GNU Autoconf 2.60.  Invocation command line was
   21528 
   21529   CONFIG_FILES    = $CONFIG_FILES
   21530   CONFIG_HEADERS  = $CONFIG_HEADERS
   21531   CONFIG_LINKS    = $CONFIG_LINKS
   21532   CONFIG_COMMANDS = $CONFIG_COMMANDS
   21533   $ $0 $@
   21534 
   21535 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   21536 "
   21537 
   21538 _ACEOF
   21539 
   21540 cat >>$CONFIG_STATUS <<_ACEOF
   21541 # Files that config.status was made for.
   21542 config_files="$ac_config_files"
   21543 config_headers="$ac_config_headers"
   21544 config_commands="$ac_config_commands"
   21545 
   21546 _ACEOF
   21547 
   21548 cat >>$CONFIG_STATUS <<\_ACEOF
   21549 ac_cs_usage="\
   21550 \`$as_me' instantiates files from templates according to the
   21551 current configuration.
   21552 
   21553 Usage: $0 [OPTIONS] [FILE]...
   21554 
   21555   -h, --help       print this help, then exit
   21556   -V, --version    print version number, then exit
   21557   -q, --quiet      do not print progress messages
   21558   -d, --debug      don't remove temporary files
   21559       --recheck    update $as_me by reconfiguring in the same conditions
   21560   --file=FILE[:TEMPLATE]
   21561 		   instantiate the configuration file FILE
   21562   --header=FILE[:TEMPLATE]
   21563 		   instantiate the configuration header FILE
   21564 
   21565 Configuration files:
   21566 $config_files
   21567 
   21568 Configuration headers:
   21569 $config_headers
   21570 
   21571 Configuration commands:
   21572 $config_commands
   21573 
   21574 Report bugs to <bug-autoconf@gnu.org>."
   21575 
   21576 _ACEOF
   21577 cat >>$CONFIG_STATUS <<_ACEOF
   21578 ac_cs_version="\\
   21579 llvm config.status 3.1svn
   21580 configured by $0, generated by GNU Autoconf 2.60,
   21581   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
   21582 
   21583 Copyright (C) 2006 Free Software Foundation, Inc.
   21584 This config.status script is free software; the Free Software Foundation
   21585 gives unlimited permission to copy, distribute and modify it."
   21586 
   21587 ac_pwd='$ac_pwd'
   21588 srcdir='$srcdir'
   21589 INSTALL='$INSTALL'
   21590 _ACEOF
   21591 
   21592 cat >>$CONFIG_STATUS <<\_ACEOF
   21593 # If no file are specified by the user, then we need to provide default
   21594 # value.  By we need to know if files were specified by the user.
   21595 ac_need_defaults=:
   21596 while test $# != 0
   21597 do
   21598   case $1 in
   21599   --*=*)
   21600     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   21601     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   21602     ac_shift=:
   21603     ;;
   21604   *)
   21605     ac_option=$1
   21606     ac_optarg=$2
   21607     ac_shift=shift
   21608     ;;
   21609   esac
   21610 
   21611   case $ac_option in
   21612   # Handling of the options.
   21613   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   21614     ac_cs_recheck=: ;;
   21615   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   21616     echo "$ac_cs_version"; exit ;;
   21617   --debug | --debu | --deb | --de | --d | -d )
   21618     debug=: ;;
   21619   --file | --fil | --fi | --f )
   21620     $ac_shift
   21621     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
   21622     ac_need_defaults=false;;
   21623   --header | --heade | --head | --hea )
   21624     $ac_shift
   21625     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
   21626     ac_need_defaults=false;;
   21627   --he | --h)
   21628     # Conflict between --help and --header
   21629     { echo "$as_me: error: ambiguous option: $1
   21630 Try \`$0 --help' for more information." >&2
   21631    { (exit 1); exit 1; }; };;
   21632   --help | --hel | -h )
   21633     echo "$ac_cs_usage"; exit ;;
   21634   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   21635   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   21636     ac_cs_silent=: ;;
   21637 
   21638   # This is an error.
   21639   -*) { echo "$as_me: error: unrecognized option: $1
   21640 Try \`$0 --help' for more information." >&2
   21641    { (exit 1); exit 1; }; } ;;
   21642 
   21643   *) ac_config_targets="$ac_config_targets $1"
   21644      ac_need_defaults=false ;;
   21645 
   21646   esac
   21647   shift
   21648 done
   21649 
   21650 ac_configure_extra_args=
   21651 
   21652 if $ac_cs_silent; then
   21653   exec 6>/dev/null
   21654   ac_configure_extra_args="$ac_configure_extra_args --silent"
   21655 fi
   21656 
   21657 _ACEOF
   21658 cat >>$CONFIG_STATUS <<_ACEOF
   21659 if \$ac_cs_recheck; then
   21660   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
   21661   CONFIG_SHELL=$SHELL
   21662   export CONFIG_SHELL
   21663   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   21664 fi
   21665 
   21666 _ACEOF
   21667 cat >>$CONFIG_STATUS <<\_ACEOF
   21668 exec 5>>config.log
   21669 {
   21670   echo
   21671   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   21672 ## Running $as_me. ##
   21673 _ASBOX
   21674   echo "$ac_log"
   21675 } >&5
   21676 
   21677 _ACEOF
   21678 cat >>$CONFIG_STATUS <<_ACEOF
   21679 #
   21680 # INIT-COMMANDS
   21681 #
   21682 llvm_src="${srcdir}"
   21683 
   21684 _ACEOF
   21685 
   21686 cat >>$CONFIG_STATUS <<\_ACEOF
   21687 
   21688 # Handling of arguments.
   21689 for ac_config_target in $ac_config_targets
   21690 do
   21691   case $ac_config_target in
   21692     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
   21693     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
   21694     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
   21695     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
   21696     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
   21697     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
   21698     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
   21699     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
   21700     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
   21701     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
   21702     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
   21703     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
   21704     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
   21705     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
   21706     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
   21707     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
   21708     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
   21709     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
   21710     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
   21711     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
   21712     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
   21713     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
   21714     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
   21715     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
   21716     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
   21717     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
   21718 
   21719   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
   21720 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   21721    { (exit 1); exit 1; }; };;
   21722   esac
   21723 done
   21724 
   21725 
   21726 # If the user did not use the arguments to specify the items to instantiate,
   21727 # then the envvar interface is used.  Set only those that are not.
   21728 # We use the long form for the default assignment because of an extremely
   21729 # bizarre bug on SunOS 4.1.3.
   21730 if $ac_need_defaults; then
   21731   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   21732   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   21733   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   21734 fi
   21735 
   21736 # Have a temporary directory for convenience.  Make it in the build tree
   21737 # simply because there is no reason against having it here, and in addition,
   21738 # creating and moving files from /tmp can sometimes cause problems.
   21739 # Hook for its removal unless debugging.
   21740 # Note that there is a small window in which the directory will not be cleaned:
   21741 # after its creation but before its name has been assigned to `$tmp'.
   21742 $debug ||
   21743 {
   21744   tmp=
   21745   trap 'exit_status=$?
   21746   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   21747 ' 0
   21748   trap '{ (exit 1); exit 1; }' 1 2 13 15
   21749 }
   21750 # Create a (secure) tmp directory for tmp files.
   21751 
   21752 {
   21753   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   21754   test -n "$tmp" && test -d "$tmp"
   21755 }  ||
   21756 {
   21757   tmp=./conf$$-$RANDOM
   21758   (umask 077 && mkdir "$tmp")
   21759 } ||
   21760 {
   21761    echo "$me: cannot create a temporary directory in ." >&2
   21762    { (exit 1); exit 1; }
   21763 }
   21764 
   21765 #
   21766 # Set up the sed scripts for CONFIG_FILES section.
   21767 #
   21768 
   21769 # No need to generate the scripts if there are no CONFIG_FILES.
   21770 # This happens for instance when ./config.status config.h
   21771 if test -n "$CONFIG_FILES"; then
   21772 
   21773 _ACEOF
   21774 
   21775 
   21776 
   21777 ac_delim='%!_!# '
   21778 for ac_last_try in false false false false false :; do
   21779   cat >conf$$subs.sed <<_ACEOF
   21780 SHELL!$SHELL$ac_delim
   21781 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
   21782 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
   21783 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
   21784 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
   21785 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
   21786 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
   21787 exec_prefix!$exec_prefix$ac_delim
   21788 prefix!$prefix$ac_delim
   21789 program_transform_name!$program_transform_name$ac_delim
   21790 bindir!$bindir$ac_delim
   21791 sbindir!$sbindir$ac_delim
   21792 libexecdir!$libexecdir$ac_delim
   21793 datarootdir!$datarootdir$ac_delim
   21794 datadir!$datadir$ac_delim
   21795 sysconfdir!$sysconfdir$ac_delim
   21796 sharedstatedir!$sharedstatedir$ac_delim
   21797 localstatedir!$localstatedir$ac_delim
   21798 includedir!$includedir$ac_delim
   21799 oldincludedir!$oldincludedir$ac_delim
   21800 docdir!$docdir$ac_delim
   21801 infodir!$infodir$ac_delim
   21802 htmldir!$htmldir$ac_delim
   21803 dvidir!$dvidir$ac_delim
   21804 pdfdir!$pdfdir$ac_delim
   21805 psdir!$psdir$ac_delim
   21806 libdir!$libdir$ac_delim
   21807 localedir!$localedir$ac_delim
   21808 mandir!$mandir$ac_delim
   21809 DEFS!$DEFS$ac_delim
   21810 ECHO_C!$ECHO_C$ac_delim
   21811 ECHO_N!$ECHO_N$ac_delim
   21812 ECHO_T!$ECHO_T$ac_delim
   21813 LIBS!$LIBS$ac_delim
   21814 build_alias!$build_alias$ac_delim
   21815 host_alias!$host_alias$ac_delim
   21816 target_alias!$target_alias$ac_delim
   21817 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
   21818 CC!$CC$ac_delim
   21819 CFLAGS!$CFLAGS$ac_delim
   21820 LDFLAGS!$LDFLAGS$ac_delim
   21821 CPPFLAGS!$CPPFLAGS$ac_delim
   21822 ac_ct_CC!$ac_ct_CC$ac_delim
   21823 EXEEXT!$EXEEXT$ac_delim
   21824 OBJEXT!$OBJEXT$ac_delim
   21825 CXX!$CXX$ac_delim
   21826 CXXFLAGS!$CXXFLAGS$ac_delim
   21827 ac_ct_CXX!$ac_ct_CXX$ac_delim
   21828 CPP!$CPP$ac_delim
   21829 subdirs!$subdirs$ac_delim
   21830 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
   21831 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
   21832 build!$build$ac_delim
   21833 build_cpu!$build_cpu$ac_delim
   21834 build_vendor!$build_vendor$ac_delim
   21835 build_os!$build_os$ac_delim
   21836 host!$host$ac_delim
   21837 host_cpu!$host_cpu$ac_delim
   21838 host_vendor!$host_vendor$ac_delim
   21839 host_os!$host_os$ac_delim
   21840 target!$target$ac_delim
   21841 target_cpu!$target_cpu$ac_delim
   21842 target_vendor!$target_vendor$ac_delim
   21843 target_os!$target_os$ac_delim
   21844 OS!$OS$ac_delim
   21845 HOST_OS!$HOST_OS$ac_delim
   21846 TARGET_OS!$TARGET_OS$ac_delim
   21847 LINKALL!$LINKALL$ac_delim
   21848 NOLINKALL!$NOLINKALL$ac_delim
   21849 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
   21850 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
   21851 ARCH!$ARCH$ac_delim
   21852 ENDIAN!$ENDIAN$ac_delim
   21853 GREP!$GREP$ac_delim
   21854 EGREP!$EGREP$ac_delim
   21855 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
   21856 BUILD_CC!$BUILD_CC$ac_delim
   21857 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
   21858 BUILD_CXX!$BUILD_CXX$ac_delim
   21859 CVSBUILD!$CVSBUILD$ac_delim
   21860 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
   21861 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
   21862 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
   21863 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
   21864 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
   21865 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
   21866 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
   21867 JIT!$JIT$ac_delim
   21868 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
   21869 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
   21870 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
   21871 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
   21872 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
   21873 ENABLE_PIC!$ENABLE_PIC$ac_delim
   21874 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
   21875 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
   21876 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
   21877 _ACEOF
   21878 
   21879   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
   21880     break
   21881   elif $ac_last_try; then
   21882     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   21883 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   21884    { (exit 1); exit 1; }; }
   21885   else
   21886     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   21887   fi
   21888 done
   21889 
   21890 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
   21891 if test -n "$ac_eof"; then
   21892   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
   21893   ac_eof=`expr $ac_eof + 1`
   21894 fi
   21895 
   21896 cat >>$CONFIG_STATUS <<_ACEOF
   21897 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
   21898 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   21899 _ACEOF
   21900 sed '
   21901 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
   21902 s/^/s,@/; s/!/@,|#_!!_#|/
   21903 :n
   21904 t n
   21905 s/'"$ac_delim"'$/,g/; t
   21906 s/$/\\/; p
   21907 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
   21908 ' >>$CONFIG_STATUS <conf$$subs.sed
   21909 rm -f conf$$subs.sed
   21910 cat >>$CONFIG_STATUS <<_ACEOF
   21911 CEOF$ac_eof
   21912 _ACEOF
   21913 
   21914 
   21915 ac_delim='%!_!# '
   21916 for ac_last_try in false false false false false :; do
   21917   cat >conf$$subs.sed <<_ACEOF
   21918 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
   21919 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
   21920 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
   21921 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
   21922 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
   21923 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
   21924 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
   21925 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
   21926 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
   21927 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
   21928 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
   21929 NM!$NM$ac_delim
   21930 ifGNUmake!$ifGNUmake$ac_delim
   21931 LN_S!$LN_S$ac_delim
   21932 CMP!$CMP$ac_delim
   21933 CP!$CP$ac_delim
   21934 DATE!$DATE$ac_delim
   21935 FIND!$FIND$ac_delim
   21936 MKDIR!$MKDIR$ac_delim
   21937 MV!$MV$ac_delim
   21938 RANLIB!$RANLIB$ac_delim
   21939 AR!$AR$ac_delim
   21940 RM!$RM$ac_delim
   21941 SED!$SED$ac_delim
   21942 TAR!$TAR$ac_delim
   21943 BINPWD!$BINPWD$ac_delim
   21944 GRAPHVIZ!$GRAPHVIZ$ac_delim
   21945 DOT!$DOT$ac_delim
   21946 FDP!$FDP$ac_delim
   21947 NEATO!$NEATO$ac_delim
   21948 TWOPI!$TWOPI$ac_delim
   21949 CIRCO!$CIRCO$ac_delim
   21950 GV!$GV$ac_delim
   21951 DOTTY!$DOTTY$ac_delim
   21952 XDOT_PY!$XDOT_PY$ac_delim
   21953 PERL!$PERL$ac_delim
   21954 HAVE_PERL!$HAVE_PERL$ac_delim
   21955 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
   21956 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
   21957 INSTALL_DATA!$INSTALL_DATA$ac_delim
   21958 BZIP2!$BZIP2$ac_delim
   21959 CAT!$CAT$ac_delim
   21960 DOXYGEN!$DOXYGEN$ac_delim
   21961 GROFF!$GROFF$ac_delim
   21962 GZIPBIN!$GZIPBIN$ac_delim
   21963 POD2HTML!$POD2HTML$ac_delim
   21964 POD2MAN!$POD2MAN$ac_delim
   21965 PDFROFF!$PDFROFF$ac_delim
   21966 RUNTEST!$RUNTEST$ac_delim
   21967 TCLSH!$TCLSH$ac_delim
   21968 ZIP!$ZIP$ac_delim
   21969 OCAMLC!$OCAMLC$ac_delim
   21970 OCAMLOPT!$OCAMLOPT$ac_delim
   21971 OCAMLDEP!$OCAMLDEP$ac_delim
   21972 OCAMLDOC!$OCAMLDOC$ac_delim
   21973 GAS!$GAS$ac_delim
   21974 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
   21975 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
   21976 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
   21977 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
   21978 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
   21979 LIBADD_DL!$LIBADD_DL$ac_delim
   21980 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
   21981 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
   21982 USE_UDIS86!$USE_UDIS86$ac_delim
   21983 USE_OPROFILE!$USE_OPROFILE$ac_delim
   21984 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
   21985 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
   21986 MMAP_FILE!$MMAP_FILE$ac_delim
   21987 SHLIBEXT!$SHLIBEXT$ac_delim
   21988 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
   21989 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
   21990 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
   21991 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
   21992 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
   21993 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
   21994 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
   21995 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
   21996 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
   21997 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
   21998 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
   21999 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
   22000 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
   22001 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
   22002 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
   22003 RPATH!$RPATH$ac_delim
   22004 RDYNAMIC!$RDYNAMIC$ac_delim
   22005 LIBOBJS!$LIBOBJS$ac_delim
   22006 LTLIBOBJS!$LTLIBOBJS$ac_delim
   22007 _ACEOF
   22008 
   22009   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
   22010     break
   22011   elif $ac_last_try; then
   22012     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   22013 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   22014    { (exit 1); exit 1; }; }
   22015   else
   22016     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   22017   fi
   22018 done
   22019 
   22020 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
   22021 if test -n "$ac_eof"; then
   22022   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
   22023   ac_eof=`expr $ac_eof + 1`
   22024 fi
   22025 
   22026 cat >>$CONFIG_STATUS <<_ACEOF
   22027 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
   22028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
   22029 _ACEOF
   22030 sed '
   22031 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
   22032 s/^/s,@/; s/!/@,|#_!!_#|/
   22033 :n
   22034 t n
   22035 s/'"$ac_delim"'$/,g/; t
   22036 s/$/\\/; p
   22037 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
   22038 ' >>$CONFIG_STATUS <conf$$subs.sed
   22039 rm -f conf$$subs.sed
   22040 cat >>$CONFIG_STATUS <<_ACEOF
   22041 :end
   22042 s/|#_!!_#|//g
   22043 CEOF$ac_eof
   22044 _ACEOF
   22045 
   22046 
   22047 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   22048 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   22049 # trailing colons and then remove the whole line if VPATH becomes empty
   22050 # (actually we leave an empty line to preserve line numbers).
   22051 if test "x$srcdir" = x.; then
   22052   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   22053 s/:*\$(srcdir):*/:/
   22054 s/:*\${srcdir}:*/:/
   22055 s/:*@srcdir@:*/:/
   22056 s/^\([^=]*=[	 ]*\):*/\1/
   22057 s/:*$//
   22058 s/^[^=]*=[	 ]*$//
   22059 }'
   22060 fi
   22061 
   22062 cat >>$CONFIG_STATUS <<\_ACEOF
   22063 fi # test -n "$CONFIG_FILES"
   22064 
   22065 
   22066 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
   22067 do
   22068   case $ac_tag in
   22069   :[FHLC]) ac_mode=$ac_tag; continue;;
   22070   esac
   22071   case $ac_mode$ac_tag in
   22072   :[FHL]*:*);;
   22073   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
   22074 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   22075    { (exit 1); exit 1; }; };;
   22076   :[FH]-) ac_tag=-:-;;
   22077   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   22078   esac
   22079   ac_save_IFS=$IFS
   22080   IFS=:
   22081   set x $ac_tag
   22082   IFS=$ac_save_IFS
   22083   shift
   22084   ac_file=$1
   22085   shift
   22086 
   22087   case $ac_mode in
   22088   :L) ac_source=$1;;
   22089   :[FH])
   22090     ac_file_inputs=
   22091     for ac_f
   22092     do
   22093       case $ac_f in
   22094       -) ac_f="$tmp/stdin";;
   22095       *) # Look for the file first in the build tree, then in the source tree
   22096 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   22097 	 # because $ac_f cannot contain `:'.
   22098 	 test -f "$ac_f" ||
   22099 	   case $ac_f in
   22100 	   [\\/$]*) false;;
   22101 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   22102 	   esac ||
   22103 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
   22104 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   22105    { (exit 1); exit 1; }; };;
   22106       esac
   22107       ac_file_inputs="$ac_file_inputs $ac_f"
   22108     done
   22109 
   22110     # Let's still pretend it is `configure' which instantiates (i.e., don't
   22111     # use $as_me), people would be surprised to read:
   22112     #    /* config.h.  Generated by config.status.  */
   22113     configure_input="Generated from "`IFS=:
   22114 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
   22115     if test x"$ac_file" != x-; then
   22116       configure_input="$ac_file.  $configure_input"
   22117       { echo "$as_me:$LINENO: creating $ac_file" >&5
   22118 echo "$as_me: creating $ac_file" >&6;}
   22119     fi
   22120 
   22121     case $ac_tag in
   22122     *:-:* | *:-) cat >"$tmp/stdin";;
   22123     esac
   22124     ;;
   22125   esac
   22126 
   22127   ac_dir=`$as_dirname -- "$ac_file" ||
   22128 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   22129 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   22130 	 X"$ac_file" : 'X\(//\)$' \| \
   22131 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   22132 echo X"$ac_file" |
   22133     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   22134 	    s//\1/
   22135 	    q
   22136 	  }
   22137 	  /^X\(\/\/\)[^/].*/{
   22138 	    s//\1/
   22139 	    q
   22140 	  }
   22141 	  /^X\(\/\/\)$/{
   22142 	    s//\1/
   22143 	    q
   22144 	  }
   22145 	  /^X\(\/\).*/{
   22146 	    s//\1/
   22147 	    q
   22148 	  }
   22149 	  s/.*/./; q'`
   22150   { as_dir="$ac_dir"
   22151   case $as_dir in #(
   22152   -*) as_dir=./$as_dir;;
   22153   esac
   22154   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
   22155     as_dirs=
   22156     while :; do
   22157       case $as_dir in #(
   22158       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
   22159       *) as_qdir=$as_dir;;
   22160       esac
   22161       as_dirs="'$as_qdir' $as_dirs"
   22162       as_dir=`$as_dirname -- "$as_dir" ||
   22163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   22164 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   22165 	 X"$as_dir" : 'X\(//\)$' \| \
   22166 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   22167 echo X"$as_dir" |
   22168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   22169 	    s//\1/
   22170 	    q
   22171 	  }
   22172 	  /^X\(\/\/\)[^/].*/{
   22173 	    s//\1/
   22174 	    q
   22175 	  }
   22176 	  /^X\(\/\/\)$/{
   22177 	    s//\1/
   22178 	    q
   22179 	  }
   22180 	  /^X\(\/\).*/{
   22181 	    s//\1/
   22182 	    q
   22183 	  }
   22184 	  s/.*/./; q'`
   22185       test -d "$as_dir" && break
   22186     done
   22187     test -z "$as_dirs" || eval "mkdir $as_dirs"
   22188   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
   22189 echo "$as_me: error: cannot create directory $as_dir" >&2;}
   22190    { (exit 1); exit 1; }; }; }
   22191   ac_builddir=.
   22192 
   22193 case "$ac_dir" in
   22194 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   22195 *)
   22196   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   22197   # A ".." for each directory in $ac_dir_suffix.
   22198   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   22199   case $ac_top_builddir_sub in
   22200   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   22201   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   22202   esac ;;
   22203 esac
   22204 ac_abs_top_builddir=$ac_pwd
   22205 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   22206 # for backward compatibility:
   22207 ac_top_builddir=$ac_top_build_prefix
   22208 
   22209 case $srcdir in
   22210   .)  # We are building in place.
   22211     ac_srcdir=.
   22212     ac_top_srcdir=$ac_top_builddir_sub
   22213     ac_abs_top_srcdir=$ac_pwd ;;
   22214   [\\/]* | ?:[\\/]* )  # Absolute name.
   22215     ac_srcdir=$srcdir$ac_dir_suffix;
   22216     ac_top_srcdir=$srcdir
   22217     ac_abs_top_srcdir=$srcdir ;;
   22218   *) # Relative name.
   22219     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   22220     ac_top_srcdir=$ac_top_build_prefix$srcdir
   22221     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   22222 esac
   22223 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   22224 
   22225 
   22226   case $ac_mode in
   22227   :F)
   22228   #
   22229   # CONFIG_FILE
   22230   #
   22231 
   22232   case $INSTALL in
   22233   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   22234   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   22235   esac
   22236 _ACEOF
   22237 
   22238 cat >>$CONFIG_STATUS <<\_ACEOF
   22239 # If the template does not know about datarootdir, expand it.
   22240 # FIXME: This hack should be removed a few years after 2.60.
   22241 ac_datarootdir_hack=; ac_datarootdir_seen=
   22242 
   22243 case `sed -n '/datarootdir/ {
   22244   p
   22245   q
   22246 }
   22247 /@datadir@/p
   22248 /@docdir@/p
   22249 /@infodir@/p
   22250 /@localedir@/p
   22251 /@mandir@/p
   22252 ' $ac_file_inputs` in
   22253 *datarootdir*) ac_datarootdir_seen=yes;;
   22254 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   22255   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   22256 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   22257 _ACEOF
   22258 cat >>$CONFIG_STATUS <<_ACEOF
   22259   ac_datarootdir_hack='
   22260   s&@datadir@&$datadir&g
   22261   s&@docdir@&$docdir&g
   22262   s&@infodir@&$infodir&g
   22263   s&@localedir@&$localedir&g
   22264   s&@mandir@&$mandir&g
   22265     s&\\\${datarootdir}&$datarootdir&g' ;;
   22266 esac
   22267 _ACEOF
   22268 
   22269 # Neutralize VPATH when `$srcdir' = `.'.
   22270 # Shell code in configure.ac might set extrasub.
   22271 # FIXME: do we really want to maintain this feature?
   22272 cat >>$CONFIG_STATUS <<_ACEOF
   22273   sed "$ac_vpsub
   22274 $extrasub
   22275 _ACEOF
   22276 cat >>$CONFIG_STATUS <<\_ACEOF
   22277 :t
   22278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   22279 s&@configure_input@&$configure_input&;t t
   22280 s&@top_builddir@&$ac_top_builddir_sub&;t t
   22281 s&@srcdir@&$ac_srcdir&;t t
   22282 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   22283 s&@top_srcdir@&$ac_top_srcdir&;t t
   22284 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   22285 s&@builddir@&$ac_builddir&;t t
   22286 s&@abs_builddir@&$ac_abs_builddir&;t t
   22287 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   22288 s&@INSTALL@&$ac_INSTALL&;t t
   22289 $ac_datarootdir_hack
   22290 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
   22291 
   22292 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   22293   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   22294   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   22295   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   22296 which seems to be undefined.  Please make sure it is defined." >&5
   22297 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   22298 which seems to be undefined.  Please make sure it is defined." >&2;}
   22299 
   22300   rm -f "$tmp/stdin"
   22301   case $ac_file in
   22302   -) cat "$tmp/out"; rm -f "$tmp/out";;
   22303   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
   22304   esac
   22305  ;;
   22306   :H)
   22307   #
   22308   # CONFIG_HEADER
   22309   #
   22310 _ACEOF
   22311 
   22312 # Transform confdefs.h into a sed script `conftest.defines', that
   22313 # substitutes the proper values into config.h.in to produce config.h.
   22314 rm -f conftest.defines conftest.tail
   22315 # First, append a space to every undef/define line, to ease matching.
   22316 echo 's/$/ /' >conftest.defines
   22317 # Then, protect against being on the right side of a sed subst, or in
   22318 # an unquoted here document, in config.status.  If some macros were
   22319 # called several times there might be several #defines for the same
   22320 # symbol, which is useless.  But do not sort them, since the last
   22321 # AC_DEFINE must be honored.
   22322 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   22323 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
   22324 # NAME is the cpp macro being defined, VALUE is the value it is being given.
   22325 # PARAMS is the parameter list in the macro definition--in most cases, it's
   22326 # just an empty string.
   22327 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
   22328 ac_dB='\\)[	 (].*,\\1define\\2'
   22329 ac_dC=' '
   22330 ac_dD=' ,'
   22331 
   22332 uniq confdefs.h |
   22333   sed -n '
   22334 	t rset
   22335 	:rset
   22336 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
   22337 	t ok
   22338 	d
   22339 	:ok
   22340 	s/[\\&,]/\\&/g
   22341 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
   22342 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
   22343   ' >>conftest.defines
   22344 
   22345 # Remove the space that was appended to ease matching.
   22346 # Then replace #undef with comments.  This is necessary, for
   22347 # example, in the case of _POSIX_SOURCE, which is predefined and required
   22348 # on some systems where configure will not decide to define it.
   22349 # (The regexp can be short, since the line contains either #define or #undef.)
   22350 echo 's/ $//
   22351 s,^[	 #]*u.*,/* & */,' >>conftest.defines
   22352 
   22353 # Break up conftest.defines:
   22354 ac_max_sed_lines=50
   22355 
   22356 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
   22357 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
   22358 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
   22359 # et cetera.
   22360 ac_in='$ac_file_inputs'
   22361 ac_out='"$tmp/out1"'
   22362 ac_nxt='"$tmp/out2"'
   22363 
   22364 while :
   22365 do
   22366   # Write a here document:
   22367     cat >>$CONFIG_STATUS <<_ACEOF
   22368     # First, check the format of the line:
   22369     cat >"\$tmp/defines.sed" <<\\CEOF
   22370 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
   22371 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
   22372 b
   22373 :def
   22374 _ACEOF
   22375   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
   22376   echo 'CEOF
   22377     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
   22378   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
   22379   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
   22380   grep . conftest.tail >/dev/null || break
   22381   rm -f conftest.defines
   22382   mv conftest.tail conftest.defines
   22383 done
   22384 rm -f conftest.defines conftest.tail
   22385 
   22386 echo "ac_result=$ac_in" >>$CONFIG_STATUS
   22387 cat >>$CONFIG_STATUS <<\_ACEOF
   22388   if test x"$ac_file" != x-; then
   22389     echo "/* $configure_input  */" >"$tmp/config.h"
   22390     cat "$ac_result" >>"$tmp/config.h"
   22391     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
   22392       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
   22393 echo "$as_me: $ac_file is unchanged" >&6;}
   22394     else
   22395       rm -f $ac_file
   22396       mv "$tmp/config.h" $ac_file
   22397     fi
   22398   else
   22399     echo "/* $configure_input  */"
   22400     cat "$ac_result"
   22401   fi
   22402   rm -f "$tmp/out12"
   22403  ;;
   22404 
   22405   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
   22406 echo "$as_me: executing $ac_file commands" >&6;}
   22407  ;;
   22408   esac
   22409 
   22410 
   22411   case $ac_file$ac_mode in
   22412     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
   22413    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
   22414     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
   22415    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
   22416     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
   22417    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
   22418     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
   22419    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
   22420     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
   22421    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
   22422     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
   22423    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
   22424     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
   22425    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
   22426     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
   22427    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
   22428     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
   22429    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
   22430     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
   22431    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
   22432     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
   22433    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
   22434     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
   22435    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
   22436     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
   22437    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
   22438 
   22439   esac
   22440 done # for ac_tag
   22441 
   22442 
   22443 { (exit 0); exit 0; }
   22444 _ACEOF
   22445 chmod +x $CONFIG_STATUS
   22446 ac_clean_files=$ac_clean_files_save
   22447 
   22448 
   22449 # configure is writing to config.log, and then calls config.status.
   22450 # config.status does its own redirection, appending to config.log.
   22451 # Unfortunately, on DOS this fails, as config.log is still kept open
   22452 # by configure, so config.status won't be able to write to it; its
   22453 # output is simply discarded.  So we exec the FD to /dev/null,
   22454 # effectively closing config.log, so it can be properly (re)opened and
   22455 # appended to by config.status.  When coming back to configure, we
   22456 # need to make the FD available again.
   22457 if test "$no_create" != yes; then
   22458   ac_cs_success=:
   22459   ac_config_status_args=
   22460   test "$silent" = yes &&
   22461     ac_config_status_args="$ac_config_status_args --quiet"
   22462   exec 5>/dev/null
   22463   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   22464   exec 5>>config.log
   22465   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   22466   # would make configure fail if this is the last instruction.
   22467   $ac_cs_success || { (exit 1); exit 1; }
   22468 fi
   22469 
   22470 #
   22471 # CONFIG_SUBDIRS section.
   22472 #
   22473 if test "$no_recursion" != yes; then
   22474 
   22475   # Remove --cache-file and --srcdir arguments so they do not pile up.
   22476   ac_sub_configure_args=
   22477   ac_prev=
   22478   eval "set x $ac_configure_args"
   22479   shift
   22480   for ac_arg
   22481   do
   22482     if test -n "$ac_prev"; then
   22483       ac_prev=
   22484       continue
   22485     fi
   22486     case $ac_arg in
   22487     -cache-file | --cache-file | --cache-fil | --cache-fi \
   22488     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   22489       ac_prev=cache_file ;;
   22490     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   22491     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
   22492     | --c=*)
   22493       ;;
   22494     --config-cache | -C)
   22495       ;;
   22496     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   22497       ac_prev=srcdir ;;
   22498     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   22499       ;;
   22500     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   22501       ac_prev=prefix ;;
   22502     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   22503       ;;
   22504     *)
   22505       case $ac_arg in
   22506       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22507       esac
   22508       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
   22509     esac
   22510   done
   22511 
   22512   # Always prepend --prefix to ensure using the same prefix
   22513   # in subdir configurations.
   22514   ac_arg="--prefix=$prefix"
   22515   case $ac_arg in
   22516   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22517   esac
   22518   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
   22519 
   22520   ac_popdir=`pwd`
   22521   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
   22522 
   22523     # Do not complain, so a configure script can configure whichever
   22524     # parts of a large source tree are present.
   22525     test -d "$srcdir/$ac_dir" || continue
   22526 
   22527     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
   22528     echo "$as_me:$LINENO: $ac_msg" >&5
   22529     echo "$ac_msg" >&6
   22530     { as_dir="$ac_dir"
   22531   case $as_dir in #(
   22532   -*) as_dir=./$as_dir;;
   22533   esac
   22534   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
   22535     as_dirs=
   22536     while :; do
   22537       case $as_dir in #(
   22538       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
   22539       *) as_qdir=$as_dir;;
   22540       esac
   22541       as_dirs="'$as_qdir' $as_dirs"
   22542       as_dir=`$as_dirname -- "$as_dir" ||
   22543 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   22544 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   22545 	 X"$as_dir" : 'X\(//\)$' \| \
   22546 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   22547 echo X"$as_dir" |
   22548     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   22549 	    s//\1/
   22550 	    q
   22551 	  }
   22552 	  /^X\(\/\/\)[^/].*/{
   22553 	    s//\1/
   22554 	    q
   22555 	  }
   22556 	  /^X\(\/\/\)$/{
   22557 	    s//\1/
   22558 	    q
   22559 	  }
   22560 	  /^X\(\/\).*/{
   22561 	    s//\1/
   22562 	    q
   22563 	  }
   22564 	  s/.*/./; q'`
   22565       test -d "$as_dir" && break
   22566     done
   22567     test -z "$as_dirs" || eval "mkdir $as_dirs"
   22568   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
   22569 echo "$as_me: error: cannot create directory $as_dir" >&2;}
   22570    { (exit 1); exit 1; }; }; }
   22571     ac_builddir=.
   22572 
   22573 case "$ac_dir" in
   22574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   22575 *)
   22576   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   22577   # A ".." for each directory in $ac_dir_suffix.
   22578   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   22579   case $ac_top_builddir_sub in
   22580   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   22581   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   22582   esac ;;
   22583 esac
   22584 ac_abs_top_builddir=$ac_pwd
   22585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   22586 # for backward compatibility:
   22587 ac_top_builddir=$ac_top_build_prefix
   22588 
   22589 case $srcdir in
   22590   .)  # We are building in place.
   22591     ac_srcdir=.
   22592     ac_top_srcdir=$ac_top_builddir_sub
   22593     ac_abs_top_srcdir=$ac_pwd ;;
   22594   [\\/]* | ?:[\\/]* )  # Absolute name.
   22595     ac_srcdir=$srcdir$ac_dir_suffix;
   22596     ac_top_srcdir=$srcdir
   22597     ac_abs_top_srcdir=$srcdir ;;
   22598   *) # Relative name.
   22599     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   22600     ac_top_srcdir=$ac_top_build_prefix$srcdir
   22601     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   22602 esac
   22603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   22604 
   22605 
   22606     cd "$ac_dir"
   22607 
   22608     # Check for guested configure; otherwise get Cygnus style configure.
   22609     if test -f "$ac_srcdir/configure.gnu"; then
   22610       ac_sub_configure=$ac_srcdir/configure.gnu
   22611     elif test -f "$ac_srcdir/configure"; then
   22612       ac_sub_configure=$ac_srcdir/configure
   22613     elif test -f "$ac_srcdir/configure.in"; then
   22614       # This should be Cygnus configure.
   22615       ac_sub_configure=$ac_aux_dir/configure
   22616     else
   22617       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
   22618 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
   22619       ac_sub_configure=
   22620     fi
   22621 
   22622     # The recursion is here.
   22623     if test -n "$ac_sub_configure"; then
   22624       # Make the cache file name correct relative to the subdirectory.
   22625       case $cache_file in
   22626       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
   22627       *) # Relative name.
   22628 	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
   22629       esac
   22630 
   22631       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
   22632 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
   22633       # The eval makes quoting arguments work.
   22634       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
   22635 	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
   22636 	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
   22637 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
   22638    { (exit 1); exit 1; }; }
   22639     fi
   22640 
   22641     cd "$ac_popdir"
   22642   done
   22643 fi
   22644 
   22645