Home | History | Annotate | Download | only in sample
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
      4 #
      5 # Report bugs to <bugs@yourdomain>.
      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 ## M4sh Initialization.  ##
     13 ## --------------------- ##
     14 
     15 # Be Bourne compatible
     16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     17   emulate sh
     18   NULLCMD=:
     19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     20   # is contrary to our usage.  Disable this feature.
     21   alias -g '${1+"$@"}'='"$@"'
     22   setopt NO_GLOB_SUBST
     23 else
     24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
     25 fi
     26 BIN_SH=xpg4; export BIN_SH # for Tru64
     27 DUALCASE=1; export DUALCASE # for MKS sh
     28 
     29 
     30 # PATH needs CR
     31 # Avoid depending upon Character Ranges.
     32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     35 as_cr_digits='0123456789'
     36 as_cr_alnum=$as_cr_Letters$as_cr_digits
     37 
     38 # The user is always right.
     39 if test "${PATH_SEPARATOR+set}" != set; then
     40   echo "#! /bin/sh" >conf$$.sh
     41   echo  "exit 0"   >>conf$$.sh
     42   chmod +x conf$$.sh
     43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     44     PATH_SEPARATOR=';'
     45   else
     46     PATH_SEPARATOR=:
     47   fi
     48   rm -f conf$$.sh
     49 fi
     50 
     51 # Support unset when possible.
     52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     53   as_unset=unset
     54 else
     55   as_unset=false
     56 fi
     57 
     58 
     59 # IFS
     60 # We need space, tab and new line, in precisely that order.  Quoting is
     61 # there to prevent editors from complaining about space-tab.
     62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     63 # splitting by setting IFS to empty value.)
     64 as_nl='
     65 '
     66 IFS=" ""	$as_nl"
     67 
     68 # Find who we are.  Look in the path if we contain no directory separator.
     69 case $0 in
     70   *[\\/]* ) as_myself=$0 ;;
     71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     72 for as_dir in $PATH
     73 do
     74   IFS=$as_save_IFS
     75   test -z "$as_dir" && as_dir=.
     76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     77 done
     78 IFS=$as_save_IFS
     79 
     80      ;;
     81 esac
     82 # We did not find ourselves, most probably we were run as `sh COMMAND'
     83 # in which case we are not to be found in the path.
     84 if test "x$as_myself" = x; then
     85   as_myself=$0
     86 fi
     87 if test ! -f "$as_myself"; then
     88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     89   { (exit 1); exit 1; }
     90 fi
     91 
     92 # Work around bugs in pre-3.0 UWIN ksh.
     93 for as_var in ENV MAIL MAILPATH
     94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     95 done
     96 PS1='$ '
     97 PS2='> '
     98 PS4='+ '
     99 
    100 # NLS nuisances.
    101 for as_var in \
    102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    104   LC_TELEPHONE LC_TIME
    105 do
    106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    107     eval $as_var=C; export $as_var
    108   else
    109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    110   fi
    111 done
    112 
    113 # Required to use basename.
    114 if expr a : '\(a\)' >/dev/null 2>&1 &&
    115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    116   as_expr=expr
    117 else
    118   as_expr=false
    119 fi
    120 
    121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    122   as_basename=basename
    123 else
    124   as_basename=false
    125 fi
    126 
    127 
    128 # Name of the executable.
    129 as_me=`$as_basename -- "$0" ||
    130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    131 	 X"$0" : 'X\(//\)$' \| \
    132 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    133 echo X/"$0" |
    134     sed '/^.*\/\([^/][^/]*\)\/*$/{
    135 	    s//\1/
    136 	    q
    137 	  }
    138 	  /^X\/\(\/\/\)$/{
    139 	    s//\1/
    140 	    q
    141 	  }
    142 	  /^X\/\(\/\).*/{
    143 	    s//\1/
    144 	    q
    145 	  }
    146 	  s/.*/./; q'`
    147 
    148 # CDPATH.
    149 $as_unset CDPATH
    150 
    151 
    152 if test "x$CONFIG_SHELL" = x; then
    153   if (eval ":") 2>/dev/null; then
    154   as_have_required=yes
    155 else
    156   as_have_required=no
    157 fi
    158 
    159   if test $as_have_required = yes && 	 (eval ":
    160 (as_func_return () {
    161   (exit \$1)
    162 }
    163 as_func_success () {
    164   as_func_return 0
    165 }
    166 as_func_failure () {
    167   as_func_return 1
    168 }
    169 as_func_ret_success () {
    170   return 0
    171 }
    172 as_func_ret_failure () {
    173   return 1
    174 }
    175 
    176 exitcode=0
    177 if as_func_success; then
    178   :
    179 else
    180   exitcode=1
    181   echo as_func_success failed.
    182 fi
    183 
    184 if as_func_failure; then
    185   exitcode=1
    186   echo as_func_failure succeeded.
    187 fi
    188 
    189 if as_func_ret_success; then
    190   :
    191 else
    192   exitcode=1
    193   echo as_func_ret_success failed.
    194 fi
    195 
    196 if as_func_ret_failure; then
    197   exitcode=1
    198   echo as_func_ret_failure succeeded.
    199 fi
    200 
    201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    202   :
    203 else
    204   exitcode=1
    205   echo positional parameters were not saved.
    206 fi
    207 
    208 test \$exitcode = 0) || { (exit 1); exit 1; }
    209 
    210 (
    211   as_lineno_1=\$LINENO
    212   as_lineno_2=\$LINENO
    213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    215 ") 2> /dev/null; then
    216   :
    217 else
    218   as_candidate_shells=
    219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    221 do
    222   IFS=$as_save_IFS
    223   test -z "$as_dir" && as_dir=.
    224   case $as_dir in
    225 	 /*)
    226 	   for as_base in sh bash ksh sh5; do
    227 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    228 	   done;;
    229        esac
    230 done
    231 IFS=$as_save_IFS
    232 
    233 
    234       for as_shell in $as_candidate_shells $SHELL; do
    235 	 # Try only shells that exist, to save several forks.
    236 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    237 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
    238 # Be Bourne compatible
    239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    240   emulate sh
    241   NULLCMD=:
    242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    243   # is contrary to our usage.  Disable this feature.
    244   alias -g '${1+"$@"}'='"$@"'
    245   setopt NO_GLOB_SUBST
    246 else
    247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
    248 fi
    249 BIN_SH=xpg4; export BIN_SH # for Tru64
    250 DUALCASE=1; export DUALCASE # for MKS sh
    251 
    252 :
    253 _ASEOF
    254 }; then
    255   CONFIG_SHELL=$as_shell
    256 	       as_have_required=yes
    257 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
    258 # Be Bourne compatible
    259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    260   emulate sh
    261   NULLCMD=:
    262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    263   # is contrary to our usage.  Disable this feature.
    264   alias -g '${1+"$@"}'='"$@"'
    265   setopt NO_GLOB_SUBST
    266 else
    267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
    268 fi
    269 BIN_SH=xpg4; export BIN_SH # for Tru64
    270 DUALCASE=1; export DUALCASE # for MKS sh
    271 
    272 :
    273 (as_func_return () {
    274   (exit $1)
    275 }
    276 as_func_success () {
    277   as_func_return 0
    278 }
    279 as_func_failure () {
    280   as_func_return 1
    281 }
    282 as_func_ret_success () {
    283   return 0
    284 }
    285 as_func_ret_failure () {
    286   return 1
    287 }
    288 
    289 exitcode=0
    290 if as_func_success; then
    291   :
    292 else
    293   exitcode=1
    294   echo as_func_success failed.
    295 fi
    296 
    297 if as_func_failure; then
    298   exitcode=1
    299   echo as_func_failure succeeded.
    300 fi
    301 
    302 if as_func_ret_success; then
    303   :
    304 else
    305   exitcode=1
    306   echo as_func_ret_success failed.
    307 fi
    308 
    309 if as_func_ret_failure; then
    310   exitcode=1
    311   echo as_func_ret_failure succeeded.
    312 fi
    313 
    314 if ( set x; as_func_ret_success y && test x = "$1" ); then
    315   :
    316 else
    317   exitcode=1
    318   echo positional parameters were not saved.
    319 fi
    320 
    321 test $exitcode = 0) || { (exit 1); exit 1; }
    322 
    323 (
    324   as_lineno_1=$LINENO
    325   as_lineno_2=$LINENO
    326   test "x$as_lineno_1" != "x$as_lineno_2" &&
    327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
    328 
    329 _ASEOF
    330 }; then
    331   break
    332 fi
    333 
    334 fi
    335 
    336       done
    337 
    338       if test "x$CONFIG_SHELL" != x; then
    339   for as_var in BASH_ENV ENV
    340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    341         done
    342         export CONFIG_SHELL
    343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    344 fi
    345 
    346 
    347     if test $as_have_required = no; then
    348   echo This script requires a shell more modern than all the
    349       echo shells that I found on your system.  Please install a
    350       echo modern shell, or manually run the script under such a
    351       echo shell if you do have one.
    352       { (exit 1); exit 1; }
    353 fi
    354 
    355 
    356 fi
    357 
    358 fi
    359 
    360 
    361 
    362 (eval "as_func_return () {
    363   (exit \$1)
    364 }
    365 as_func_success () {
    366   as_func_return 0
    367 }
    368 as_func_failure () {
    369   as_func_return 1
    370 }
    371 as_func_ret_success () {
    372   return 0
    373 }
    374 as_func_ret_failure () {
    375   return 1
    376 }
    377 
    378 exitcode=0
    379 if as_func_success; then
    380   :
    381 else
    382   exitcode=1
    383   echo as_func_success failed.
    384 fi
    385 
    386 if as_func_failure; then
    387   exitcode=1
    388   echo as_func_failure succeeded.
    389 fi
    390 
    391 if as_func_ret_success; then
    392   :
    393 else
    394   exitcode=1
    395   echo as_func_ret_success failed.
    396 fi
    397 
    398 if as_func_ret_failure; then
    399   exitcode=1
    400   echo as_func_ret_failure succeeded.
    401 fi
    402 
    403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    404   :
    405 else
    406   exitcode=1
    407   echo positional parameters were not saved.
    408 fi
    409 
    410 test \$exitcode = 0") || {
    411   echo No shell found that supports shell functions.
    412   echo Please tell autoconf@gnu.org about your system,
    413   echo including any error possibly output before this
    414   echo message
    415 }
    416 
    417 
    418 
    419   as_lineno_1=$LINENO
    420   as_lineno_2=$LINENO
    421   test "x$as_lineno_1" != "x$as_lineno_2" &&
    422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    423 
    424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    425   # uniformly replaced by the line number.  The first 'sed' inserts a
    426   # line-number line after each line using $LINENO; the second 'sed'
    427   # does the real work.  The second script uses 'N' to pair each
    428   # line-number line with the line containing $LINENO, and appends
    429   # trailing '-' during substitution so that $LINENO is not a special
    430   # case at line end.
    431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    433   # E. McMahon (1931-1989) for sed's syntax.  :-)
    434   sed -n '
    435     p
    436     /[$]LINENO/=
    437   ' <$as_myself |
    438     sed '
    439       s/[$]LINENO.*/&-/
    440       t lineno
    441       b
    442       :lineno
    443       N
    444       :loop
    445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    446       t loop
    447       s/-\n.*//
    448     ' >$as_me.lineno &&
    449   chmod +x "$as_me.lineno" ||
    450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    451    { (exit 1); exit 1; }; }
    452 
    453   # Don't try to exec as it changes $[0], causing all sort of problems
    454   # (the dirname of $[0] is not the place where we might find the
    455   # original and so on.  Autoconf is especially sensitive to this).
    456   . "./$as_me.lineno"
    457   # Exit status is that of the last command.
    458   exit
    459 }
    460 
    461 
    462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    463   as_dirname=dirname
    464 else
    465   as_dirname=false
    466 fi
    467 
    468 ECHO_C= ECHO_N= ECHO_T=
    469 case `echo -n x` in
    470 -n*)
    471   case `echo 'x\c'` in
    472   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    473   *)   ECHO_C='\c';;
    474   esac;;
    475 *)
    476   ECHO_N='-n';;
    477 esac
    478 
    479 if expr a : '\(a\)' >/dev/null 2>&1 &&
    480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    481   as_expr=expr
    482 else
    483   as_expr=false
    484 fi
    485 
    486 rm -f conf$$ conf$$.exe conf$$.file
    487 if test -d conf$$.dir; then
    488   rm -f conf$$.dir/conf$$.file
    489 else
    490   rm -f conf$$.dir
    491   mkdir conf$$.dir
    492 fi
    493 echo >conf$$.file
    494 if ln -s conf$$.file conf$$ 2>/dev/null; then
    495   as_ln_s='ln -s'
    496   # ... but there are two gotchas:
    497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    499   # In both cases, we have to default to `cp -p'.
    500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    501     as_ln_s='cp -p'
    502 elif ln conf$$.file conf$$ 2>/dev/null; then
    503   as_ln_s=ln
    504 else
    505   as_ln_s='cp -p'
    506 fi
    507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    508 rmdir conf$$.dir 2>/dev/null
    509 
    510 if mkdir -p . 2>/dev/null; then
    511   as_mkdir_p=:
    512 else
    513   test -d ./-p && rmdir ./-p
    514   as_mkdir_p=false
    515 fi
    516 
    517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
    518 # systems may use methods other than mode bits to determine executability.
    519 cat >conf$$.file <<_ASEOF
    520 #! /bin/sh
    521 exit 0
    522 _ASEOF
    523 chmod +x conf$$.file
    524 if test -x conf$$.file >/dev/null 2>&1; then
    525   as_executable_p="test -x"
    526 else
    527   as_executable_p=:
    528 fi
    529 rm -f conf$$.file
    530 
    531 # Sed expression to map a string onto a valid CPP name.
    532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    533 
    534 # Sed expression to map a string onto a valid variable name.
    535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    536 
    537 
    538 
    539 exec 7<&0 </dev/null 6>&1
    540 
    541 # Name of the host.
    542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    543 # so uname gets run too.
    544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    545 
    546 #
    547 # Initializations.
    548 #
    549 ac_default_prefix=/usr/local
    550 ac_clean_files=
    551 ac_config_libobj_dir=.
    552 LIBOBJS=
    553 cross_compiling=no
    554 subdirs=
    555 MFLAGS=
    556 MAKEFLAGS=
    557 SHELL=${CONFIG_SHELL-/bin/sh}
    558 
    559 # Identity of this package.
    560 PACKAGE_NAME='[SAMPLE]'
    561 PACKAGE_TARNAME='--sample--'
    562 PACKAGE_VERSION='[x.xx]'
    563 PACKAGE_STRING='[SAMPLE] [x.xx]'
    564 PACKAGE_BUGREPORT='bugs@yourdomain'
    565 
    566 ac_unique_file=""Makefile.common.in""
    567 # Factoring default headers for most tests.
    568 ac_includes_default="\
    569 #include <stdio.h>
    570 #if HAVE_SYS_TYPES_H
    571 # include <sys/types.h>
    572 #endif
    573 #if HAVE_SYS_STAT_H
    574 # include <sys/stat.h>
    575 #endif
    576 #if STDC_HEADERS
    577 # include <stdlib.h>
    578 # include <stddef.h>
    579 #else
    580 # if HAVE_STDLIB_H
    581 #  include <stdlib.h>
    582 # endif
    583 #endif
    584 #if HAVE_STRING_H
    585 # if !STDC_HEADERS && HAVE_MEMORY_H
    586 #  include <memory.h>
    587 # endif
    588 # include <string.h>
    589 #endif
    590 #if HAVE_STRINGS_H
    591 # include <strings.h>
    592 #endif
    593 #if HAVE_INTTYPES_H
    594 # include <inttypes.h>
    595 #endif
    596 #if HAVE_STDINT_H
    597 # include <stdint.h>
    598 #endif
    599 #if HAVE_UNISTD_H
    600 # include <unistd.h>
    601 #endif"
    602 
    603 ac_subst_vars='SHELL
    604 PATH_SEPARATOR
    605 PACKAGE_NAME
    606 PACKAGE_TARNAME
    607 PACKAGE_VERSION
    608 PACKAGE_STRING
    609 PACKAGE_BUGREPORT
    610 exec_prefix
    611 prefix
    612 program_transform_name
    613 bindir
    614 sbindir
    615 libexecdir
    616 datarootdir
    617 datadir
    618 sysconfdir
    619 sharedstatedir
    620 localstatedir
    621 includedir
    622 oldincludedir
    623 docdir
    624 infodir
    625 htmldir
    626 dvidir
    627 pdfdir
    628 psdir
    629 libdir
    630 localedir
    631 mandir
    632 DEFS
    633 ECHO_C
    634 ECHO_N
    635 ECHO_T
    636 LIBS
    637 build_alias
    638 host_alias
    639 target_alias
    640 LLVM_SRC
    641 LLVM_OBJ
    642 LLVM_VERSION
    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 ENABLE_POLLY
    655 LLVM_HAS_POLLY
    656 subdirs
    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_LIBCPP
    686 ENABLE_OPTIMIZED
    687 ENABLE_PROFILING
    688 DISABLE_ASSERTIONS
    689 ENABLE_EXPENSIVE_CHECKS
    690 EXPENSIVE_CHECKS
    691 DEBUG_RUNTIME
    692 DEBUG_SYMBOLS
    693 JIT
    694 TARGET_HAS_JIT
    695 ENABLE_DOCS
    696 ENABLE_DOXYGEN
    697 ENABLE_THREADS
    698 ENABLE_PTHREADS
    699 ENABLE_PIC
    700 ENABLE_SHARED
    701 ENABLE_EMBED_STDCXX
    702 ENABLE_TIMESTAMPS
    703 TARGETS_TO_BUILD
    704 LLVM_ENUM_TARGETS
    705 LLVM_ENUM_ASM_PRINTERS
    706 LLVM_ENUM_ASM_PARSERS
    707 LLVM_ENUM_DISASSEMBLERS
    708 OPTIMIZE_OPTION
    709 EXTRA_OPTIONS
    710 EXTRA_LD_OPTIONS
    711 BINUTILS_INCDIR
    712 NM
    713 ifGNUmake
    714 LN_S
    715 CMP
    716 CP
    717 DATE
    718 FIND
    719 MKDIR
    720 MV
    721 RANLIB
    722 AR
    723 RM
    724 SED
    725 TAR
    726 BINPWD
    727 GRAPHVIZ
    728 DOT
    729 FDP
    730 NEATO
    731 TWOPI
    732 CIRCO
    733 GV
    734 DOTTY
    735 XDOT_PY
    736 INSTALL_PROGRAM
    737 INSTALL_SCRIPT
    738 INSTALL_DATA
    739 BZIP2
    740 CAT
    741 DOXYGEN
    742 GROFF
    743 GZIPBIN
    744 POD2HTML
    745 POD2MAN
    746 PDFROFF
    747 RUNTEST
    748 TCLSH
    749 ZIP
    750 OCAMLC
    751 OCAMLOPT
    752 OCAMLDEP
    753 OCAMLDOC
    754 GAS
    755 HAVE_LINK_VERSION_SCRIPT
    756 INSTALL_LTDL_TRUE
    757 INSTALL_LTDL_FALSE
    758 CONVENIENCE_LTDL_TRUE
    759 CONVENIENCE_LTDL_FALSE
    760 LIBADD_DL
    761 NO_VARIADIC_MACROS
    762 NO_MISSING_FIELD_INITIALIZERS
    763 COVERED_SWITCH_DEFAULT
    764 USE_UDIS86
    765 USE_OPROFILE
    766 HAVE_PTHREAD
    767 HUGE_VAL_SANITY
    768 MMAP_FILE
    769 SHLIBEXT
    770 SHLIBPATH_VAR
    771 LLVM_PREFIX
    772 LLVM_BINDIR
    773 LLVM_LIBDIR
    774 LLVM_DATADIR
    775 LLVM_DOCSDIR
    776 LLVM_ETCDIR
    777 LLVM_INCLUDEDIR
    778 LLVM_INFODIR
    779 LLVM_MANDIR
    780 LLVM_CONFIGTIME
    781 BINDINGS_TO_BUILD
    782 ALL_BINDINGS
    783 OCAML_LIBDIR
    784 ENABLE_VISIBILITY_INLINES_HIDDEN
    785 RPATH
    786 RDYNAMIC
    787 LIBOBJS
    788 LTLIBOBJS'
    789 ac_subst_files=''
    790       ac_precious_vars='build_alias
    791 host_alias
    792 target_alias
    793 CC
    794 CFLAGS
    795 LDFLAGS
    796 CPPFLAGS
    797 CXX
    798 CXXFLAGS
    799 CCC
    800 CPP'
    801 ac_subdirs_all='tools/polly'
    802 
    803 # Initialize some variables set by options.
    804 ac_init_help=
    805 ac_init_version=false
    806 # The variables have the same names as the options, with
    807 # dashes changed to underlines.
    808 cache_file=/dev/null
    809 exec_prefix=NONE
    810 no_create=
    811 no_recursion=
    812 prefix=NONE
    813 program_prefix=NONE
    814 program_suffix=NONE
    815 program_transform_name=s,x,x,
    816 silent=
    817 site=
    818 srcdir=
    819 verbose=
    820 x_includes=NONE
    821 x_libraries=NONE
    822 
    823 # Installation directory options.
    824 # These are left unexpanded so users can "make install exec_prefix=/foo"
    825 # and all the variables that are supposed to be based on exec_prefix
    826 # by default will actually change.
    827 # Use braces instead of parens because sh, perl, etc. also accept them.
    828 # (The list follows the same order as the GNU Coding Standards.)
    829 bindir='${exec_prefix}/bin'
    830 sbindir='${exec_prefix}/sbin'
    831 libexecdir='${exec_prefix}/libexec'
    832 datarootdir='${prefix}/share'
    833 datadir='${datarootdir}'
    834 sysconfdir='${prefix}/etc'
    835 sharedstatedir='${prefix}/com'
    836 localstatedir='${prefix}/var'
    837 includedir='${prefix}/include'
    838 oldincludedir='/usr/include'
    839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    840 infodir='${datarootdir}/info'
    841 htmldir='${docdir}'
    842 dvidir='${docdir}'
    843 pdfdir='${docdir}'
    844 psdir='${docdir}'
    845 libdir='${exec_prefix}/lib'
    846 localedir='${datarootdir}/locale'
    847 mandir='${datarootdir}/man'
    848 
    849 ac_prev=
    850 ac_dashdash=
    851 for ac_option
    852 do
    853   # If the previous option needs an argument, assign it.
    854   if test -n "$ac_prev"; then
    855     eval $ac_prev=\$ac_option
    856     ac_prev=
    857     continue
    858   fi
    859 
    860   case $ac_option in
    861   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    862   *)	ac_optarg=yes ;;
    863   esac
    864 
    865   # Accept the important Cygnus configure options, so we can diagnose typos.
    866 
    867   case $ac_dashdash$ac_option in
    868   --)
    869     ac_dashdash=yes ;;
    870 
    871   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    872     ac_prev=bindir ;;
    873   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    874     bindir=$ac_optarg ;;
    875 
    876   -build | --build | --buil | --bui | --bu)
    877     ac_prev=build_alias ;;
    878   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    879     build_alias=$ac_optarg ;;
    880 
    881   -cache-file | --cache-file | --cache-fil | --cache-fi \
    882   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    883     ac_prev=cache_file ;;
    884   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    885   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    886     cache_file=$ac_optarg ;;
    887 
    888   --config-cache | -C)
    889     cache_file=config.cache ;;
    890 
    891   -datadir | --datadir | --datadi | --datad)
    892     ac_prev=datadir ;;
    893   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    894     datadir=$ac_optarg ;;
    895 
    896   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    897   | --dataroo | --dataro | --datar)
    898     ac_prev=datarootdir ;;
    899   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    900   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    901     datarootdir=$ac_optarg ;;
    902 
    903   -disable-* | --disable-*)
    904     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    905     # Reject names that are not valid shell variable names.
    906     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    907       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    908    { (exit 1); exit 1; }; }
    909     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    910     eval enable_$ac_feature=no ;;
    911 
    912   -docdir | --docdir | --docdi | --doc | --do)
    913     ac_prev=docdir ;;
    914   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    915     docdir=$ac_optarg ;;
    916 
    917   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    918     ac_prev=dvidir ;;
    919   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    920     dvidir=$ac_optarg ;;
    921 
    922   -enable-* | --enable-*)
    923     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    924     # Reject names that are not valid shell variable names.
    925     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    926       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    927    { (exit 1); exit 1; }; }
    928     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    929     eval enable_$ac_feature=\$ac_optarg ;;
    930 
    931   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    932   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    933   | --exec | --exe | --ex)
    934     ac_prev=exec_prefix ;;
    935   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    936   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    937   | --exec=* | --exe=* | --ex=*)
    938     exec_prefix=$ac_optarg ;;
    939 
    940   -gas | --gas | --ga | --g)
    941     # Obsolete; use --with-gas.
    942     with_gas=yes ;;
    943 
    944   -help | --help | --hel | --he | -h)
    945     ac_init_help=long ;;
    946   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    947     ac_init_help=recursive ;;
    948   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    949     ac_init_help=short ;;
    950 
    951   -host | --host | --hos | --ho)
    952     ac_prev=host_alias ;;
    953   -host=* | --host=* | --hos=* | --ho=*)
    954     host_alias=$ac_optarg ;;
    955 
    956   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    957     ac_prev=htmldir ;;
    958   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    959   | --ht=*)
    960     htmldir=$ac_optarg ;;
    961 
    962   -includedir | --includedir | --includedi | --included | --include \
    963   | --includ | --inclu | --incl | --inc)
    964     ac_prev=includedir ;;
    965   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    966   | --includ=* | --inclu=* | --incl=* | --inc=*)
    967     includedir=$ac_optarg ;;
    968 
    969   -infodir | --infodir | --infodi | --infod | --info | --inf)
    970     ac_prev=infodir ;;
    971   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    972     infodir=$ac_optarg ;;
    973 
    974   -libdir | --libdir | --libdi | --libd)
    975     ac_prev=libdir ;;
    976   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    977     libdir=$ac_optarg ;;
    978 
    979   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    980   | --libexe | --libex | --libe)
    981     ac_prev=libexecdir ;;
    982   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    983   | --libexe=* | --libex=* | --libe=*)
    984     libexecdir=$ac_optarg ;;
    985 
    986   -localedir | --localedir | --localedi | --localed | --locale)
    987     ac_prev=localedir ;;
    988   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    989     localedir=$ac_optarg ;;
    990 
    991   -localstatedir | --localstatedir | --localstatedi | --localstated \
    992   | --localstate | --localstat | --localsta | --localst | --locals)
    993     ac_prev=localstatedir ;;
    994   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    995   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    996     localstatedir=$ac_optarg ;;
    997 
    998   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    999     ac_prev=mandir ;;
   1000   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1001     mandir=$ac_optarg ;;
   1002 
   1003   -nfp | --nfp | --nf)
   1004     # Obsolete; use --without-fp.
   1005     with_fp=no ;;
   1006 
   1007   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1008   | --no-cr | --no-c | -n)
   1009     no_create=yes ;;
   1010 
   1011   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1012   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1013     no_recursion=yes ;;
   1014 
   1015   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1016   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1017   | --oldin | --oldi | --old | --ol | --o)
   1018     ac_prev=oldincludedir ;;
   1019   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1020   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1021   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1022     oldincludedir=$ac_optarg ;;
   1023 
   1024   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1025     ac_prev=prefix ;;
   1026   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1027     prefix=$ac_optarg ;;
   1028 
   1029   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1030   | --program-pre | --program-pr | --program-p)
   1031     ac_prev=program_prefix ;;
   1032   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1033   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1034     program_prefix=$ac_optarg ;;
   1035 
   1036   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1037   | --program-suf | --program-su | --program-s)
   1038     ac_prev=program_suffix ;;
   1039   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1040   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1041     program_suffix=$ac_optarg ;;
   1042 
   1043   -program-transform-name | --program-transform-name \
   1044   | --program-transform-nam | --program-transform-na \
   1045   | --program-transform-n | --program-transform- \
   1046   | --program-transform | --program-transfor \
   1047   | --program-transfo | --program-transf \
   1048   | --program-trans | --program-tran \
   1049   | --progr-tra | --program-tr | --program-t)
   1050     ac_prev=program_transform_name ;;
   1051   -program-transform-name=* | --program-transform-name=* \
   1052   | --program-transform-nam=* | --program-transform-na=* \
   1053   | --program-transform-n=* | --program-transform-=* \
   1054   | --program-transform=* | --program-transfor=* \
   1055   | --program-transfo=* | --program-transf=* \
   1056   | --program-trans=* | --program-tran=* \
   1057   | --progr-tra=* | --program-tr=* | --program-t=*)
   1058     program_transform_name=$ac_optarg ;;
   1059 
   1060   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1061     ac_prev=pdfdir ;;
   1062   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1063     pdfdir=$ac_optarg ;;
   1064 
   1065   -psdir | --psdir | --psdi | --psd | --ps)
   1066     ac_prev=psdir ;;
   1067   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1068     psdir=$ac_optarg ;;
   1069 
   1070   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1071   | -silent | --silent | --silen | --sile | --sil)
   1072     silent=yes ;;
   1073 
   1074   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1075     ac_prev=sbindir ;;
   1076   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1077   | --sbi=* | --sb=*)
   1078     sbindir=$ac_optarg ;;
   1079 
   1080   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1081   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1082   | --sharedst | --shareds | --shared | --share | --shar \
   1083   | --sha | --sh)
   1084     ac_prev=sharedstatedir ;;
   1085   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1086   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1087   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1088   | --sha=* | --sh=*)
   1089     sharedstatedir=$ac_optarg ;;
   1090 
   1091   -site | --site | --sit)
   1092     ac_prev=site ;;
   1093   -site=* | --site=* | --sit=*)
   1094     site=$ac_optarg ;;
   1095 
   1096   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1097     ac_prev=srcdir ;;
   1098   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1099     srcdir=$ac_optarg ;;
   1100 
   1101   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1102   | --syscon | --sysco | --sysc | --sys | --sy)
   1103     ac_prev=sysconfdir ;;
   1104   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1105   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1106     sysconfdir=$ac_optarg ;;
   1107 
   1108   -target | --target | --targe | --targ | --tar | --ta | --t)
   1109     ac_prev=target_alias ;;
   1110   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1111     target_alias=$ac_optarg ;;
   1112 
   1113   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1114     verbose=yes ;;
   1115 
   1116   -version | --version | --versio | --versi | --vers | -V)
   1117     ac_init_version=: ;;
   1118 
   1119   -with-* | --with-*)
   1120     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1121     # Reject names that are not valid shell variable names.
   1122     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
   1123       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1124    { (exit 1); exit 1; }; }
   1125     ac_package=`echo $ac_package| sed 's/-/_/g'`
   1126     eval with_$ac_package=\$ac_optarg ;;
   1127 
   1128   -without-* | --without-*)
   1129     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1130     # Reject names that are not valid shell variable names.
   1131     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
   1132       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1133    { (exit 1); exit 1; }; }
   1134     ac_package=`echo $ac_package | sed 's/-/_/g'`
   1135     eval with_$ac_package=no ;;
   1136 
   1137   --x)
   1138     # Obsolete; use --with-x.
   1139     with_x=yes ;;
   1140 
   1141   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1142   | --x-incl | --x-inc | --x-in | --x-i)
   1143     ac_prev=x_includes ;;
   1144   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1145   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1146     x_includes=$ac_optarg ;;
   1147 
   1148   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1149   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1150     ac_prev=x_libraries ;;
   1151   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1152   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1153     x_libraries=$ac_optarg ;;
   1154 
   1155   -*) { echo "$as_me: error: unrecognized option: $ac_option
   1156 Try \`$0 --help' for more information." >&2
   1157    { (exit 1); exit 1; }; }
   1158     ;;
   1159 
   1160   *=*)
   1161     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1162     # Reject names that are not valid shell variable names.
   1163     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
   1164       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   1165    { (exit 1); exit 1; }; }
   1166     eval $ac_envvar=\$ac_optarg
   1167     export $ac_envvar ;;
   1168 
   1169   *)
   1170     # FIXME: should be removed in autoconf 3.0.
   1171     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1172     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1173       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1174     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1175     ;;
   1176 
   1177   esac
   1178 done
   1179 
   1180 if test -n "$ac_prev"; then
   1181   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1182   { echo "$as_me: error: missing argument to $ac_option" >&2
   1183    { (exit 1); exit 1; }; }
   1184 fi
   1185 
   1186 # Be sure to have absolute directory names.
   1187 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1188 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1189 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1190 		libdir localedir mandir
   1191 do
   1192   eval ac_val=\$$ac_var
   1193   case $ac_val in
   1194     [\\/$]* | ?:[\\/]* )  continue;;
   1195     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1196   esac
   1197   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   1198    { (exit 1); exit 1; }; }
   1199 done
   1200 
   1201 # There might be people who depend on the old broken behavior: `$host'
   1202 # used to hold the argument of --host etc.
   1203 # FIXME: To remove some day.
   1204 build=$build_alias
   1205 host=$host_alias
   1206 target=$target_alias
   1207 
   1208 # FIXME: To remove some day.
   1209 if test "x$host_alias" != x; then
   1210   if test "x$build_alias" = x; then
   1211     cross_compiling=maybe
   1212     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1213     If a cross compiler is detected then cross compile mode will be used." >&2
   1214   elif test "x$build_alias" != "x$host_alias"; then
   1215     cross_compiling=yes
   1216   fi
   1217 fi
   1218 
   1219 ac_tool_prefix=
   1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1221 
   1222 test "$silent" = yes && exec 6>/dev/null
   1223 
   1224 
   1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1226 ac_ls_di=`ls -di .` &&
   1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1228   { echo "$as_me: error: Working directory cannot be determined" >&2
   1229    { (exit 1); exit 1; }; }
   1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1231   { echo "$as_me: error: pwd does not report name of working directory" >&2
   1232    { (exit 1); exit 1; }; }
   1233 
   1234 
   1235 # Find the source files, if location was not specified.
   1236 if test -z "$srcdir"; then
   1237   ac_srcdir_defaulted=yes
   1238   # Try the directory containing this script, then the parent directory.
   1239   ac_confdir=`$as_dirname -- "$0" ||
   1240 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1241 	 X"$0" : 'X\(//\)[^/]' \| \
   1242 	 X"$0" : 'X\(//\)$' \| \
   1243 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   1244 echo X"$0" |
   1245     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1246 	    s//\1/
   1247 	    q
   1248 	  }
   1249 	  /^X\(\/\/\)[^/].*/{
   1250 	    s//\1/
   1251 	    q
   1252 	  }
   1253 	  /^X\(\/\/\)$/{
   1254 	    s//\1/
   1255 	    q
   1256 	  }
   1257 	  /^X\(\/\).*/{
   1258 	    s//\1/
   1259 	    q
   1260 	  }
   1261 	  s/.*/./; q'`
   1262   srcdir=$ac_confdir
   1263   if test ! -r "$srcdir/$ac_unique_file"; then
   1264     srcdir=..
   1265   fi
   1266 else
   1267   ac_srcdir_defaulted=no
   1268 fi
   1269 if test ! -r "$srcdir/$ac_unique_file"; then
   1270   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1271   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   1272    { (exit 1); exit 1; }; }
   1273 fi
   1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1275 ac_abs_confdir=`(
   1276 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   1277    { (exit 1); exit 1; }; }
   1278 	pwd)`
   1279 # When building in place, set srcdir=.
   1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1281   srcdir=.
   1282 fi
   1283 # Remove unnecessary trailing slashes from srcdir.
   1284 # Double slashes in file names in object file debugging info
   1285 # mess up M-x gdb in Emacs.
   1286 case $srcdir in
   1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1288 esac
   1289 for ac_var in $ac_precious_vars; do
   1290   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1291   eval ac_env_${ac_var}_value=\$${ac_var}
   1292   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1293   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1294 done
   1295 
   1296 #
   1297 # Report the --help message.
   1298 #
   1299 if test "$ac_init_help" = "long"; then
   1300   # Omit some internal or obsolete options to make the list less imposing.
   1301   # This message is too long to be a string in the A/UX 3.1 sh.
   1302   cat <<_ACEOF
   1303 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
   1304 
   1305 Usage: $0 [OPTION]... [VAR=VALUE]...
   1306 
   1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1308 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1309 
   1310 Defaults for the options are specified in brackets.
   1311 
   1312 Configuration:
   1313   -h, --help              display this help and exit
   1314       --help=short        display options specific to this package
   1315       --help=recursive    display the short help of all the included packages
   1316   -V, --version           display version information and exit
   1317   -q, --quiet, --silent   do not print \`checking...' messages
   1318       --cache-file=FILE   cache test results in FILE [disabled]
   1319   -C, --config-cache      alias for \`--cache-file=config.cache'
   1320   -n, --no-create         do not create output files
   1321       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1322 
   1323 Installation directories:
   1324   --prefix=PREFIX         install architecture-independent files in PREFIX
   1325 			  [$ac_default_prefix]
   1326   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1327 			  [PREFIX]
   1328 
   1329 By default, \`make install' will install all the files in
   1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1332 for instance \`--prefix=\$HOME'.
   1333 
   1334 For better control, use the options below.
   1335 
   1336 Fine tuning of the installation directories:
   1337   --bindir=DIR           user executables [EPREFIX/bin]
   1338   --sbindir=DIR          system admin executables [EPREFIX/sbin]
   1339   --libexecdir=DIR       program executables [EPREFIX/libexec]
   1340   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
   1341   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
   1342   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   1343   --libdir=DIR           object code libraries [EPREFIX/lib]
   1344   --includedir=DIR       C header files [PREFIX/include]
   1345   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
   1346   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
   1347   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
   1348   --infodir=DIR          info documentation [DATAROOTDIR/info]
   1349   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
   1350   --mandir=DIR           man documentation [DATAROOTDIR/man]
   1351   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
   1352   --htmldir=DIR          html documentation [DOCDIR]
   1353   --dvidir=DIR           dvi documentation [DOCDIR]
   1354   --pdfdir=DIR           pdf documentation [DOCDIR]
   1355   --psdir=DIR            ps documentation [DOCDIR]
   1356 _ACEOF
   1357 
   1358   cat <<\_ACEOF
   1359 
   1360 System types:
   1361   --build=BUILD     configure for building on BUILD [guessed]
   1362   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1363   --target=TARGET   configure for building compilers for TARGET [HOST]
   1364 _ACEOF
   1365 fi
   1366 
   1367 if test -n "$ac_init_help"; then
   1368   case $ac_init_help in
   1369      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
   1370    esac
   1371   cat <<\_ACEOF
   1372 
   1373 Optional Features:
   1374   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1375   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1376   --enable-polly          Use polly if available (default is YES)
   1377   --enable-libcpp         Use libc++ if available (default is NO)
   1378   --enable-optimized      Compile with optimizations enabled (default is NO)
   1379   --enable-profiling      Compile with profiling enabled (default is NO)
   1380   --enable-assertions     Compile with assertion checks enabled (default is
   1381                           YES)
   1382   --enable-expensive-checks
   1383                           Compile with expensive debug checks enabled (default
   1384                           is NO)
   1385   --enable-debug-runtime  Build runtime libs with debug symbols (default is
   1386                           NO)
   1387   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
   1388                           optimization is on and YES if it's off)
   1389   --enable-jit            Enable Just In Time Compiling (default is YES)
   1390   --enable-docs           Build documents (default is YES)
   1391   --enable-doxygen        Build doxygen documentation (default is NO)
   1392   --enable-threads        Use threads if available (default is YES)
   1393   --enable-pthreads       Use pthreads if available (default is YES)
   1394   --enable-pic            Build LLVM with Position Independent Code (default
   1395                           is YES)
   1396   --enable-shared         Build a shared library and link tools against it
   1397                           (default is NO)
   1398   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
   1399                           Win32 DLL (default is YES)
   1400   --enable-timestamps     Enable embedding timestamp information in build
   1401                           (default is YES)
   1402   --enable-targets        Build specific host targets: all or
   1403                           target1,target2,... Valid targets are: host, x86,
   1404                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
   1405                           xcore, msp430, ptx, cbe, and cpp (default=all)
   1406   --enable-bindings       Build specific language bindings:
   1407                           all,auto,none,{binding-name} (default=auto)
   1408   --enable-libffi         Check for the presence of libffi (default is NO)
   1409   --enable-ltdl-install   install libltdl
   1410 
   1411 Optional Packages:
   1412   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1413   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1414   --with-llvmsrc          Location of LLVM Source Code
   1415   --with-llvmobj          Location of LLVM Object Code
   1416   --with-optimize-option  Select the compiler options to use for optimized
   1417                           builds
   1418   --with-extra-options    Specify additional options to compile LLVM with
   1419   --with-extra-ld-options Specify additional options to link LLVM with
   1420   --with-ocaml-libdir     Specify install location for ocaml bindings (default
   1421                           is stdlib)
   1422   --with-clang-resource-dir
   1423                           Relative directory from the Clang binary for
   1424                           resource files
   1425   --with-c-include-dirs   Colon separated list of directories clang will
   1426                           search for headers
   1427   --with-gcc-toolchain    Directory where gcc is installed.
   1428   --with-binutils-include Specify path to binutils/include/ containing
   1429                           plugin-api.h file for gold plugin.
   1430   --with-bug-report-url   Specify the URL where bug reports should be
   1431                           submitted (default=http://llvm.org/bugs/)
   1432   --with-tclinclude       directory where tcl headers are
   1433   --with-udis86=<path>    Use udis86 external x86 disassembler library
   1434   --with-oprofile=<prefix>
   1435                           Tell OProfile >= 0.9.4 how to symbolize JIT output
   1436 
   1437 Some influential environment variables:
   1438   CC          C compiler command
   1439   CFLAGS      C compiler flags
   1440   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1441               nonstandard directory <lib dir>
   1442   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1443               you have headers in a nonstandard directory <include dir>
   1444   CXX         C++ compiler command
   1445   CXXFLAGS    C++ compiler flags
   1446   CPP         C preprocessor
   1447 
   1448 Use these variables to override the choices made by `configure' or to help
   1449 it to find libraries and programs with nonstandard names/locations.
   1450 
   1451 Report bugs to <bugs@yourdomain>.
   1452 _ACEOF
   1453 ac_status=$?
   1454 fi
   1455 
   1456 if test "$ac_init_help" = "recursive"; then
   1457   # If there are subdirs, report their specific --help.
   1458   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1459     test -d "$ac_dir" || continue
   1460     ac_builddir=.
   1461 
   1462 case "$ac_dir" in
   1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1464 *)
   1465   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   1466   # A ".." for each directory in $ac_dir_suffix.
   1467   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   1468   case $ac_top_builddir_sub in
   1469   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1470   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1471   esac ;;
   1472 esac
   1473 ac_abs_top_builddir=$ac_pwd
   1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1475 # for backward compatibility:
   1476 ac_top_builddir=$ac_top_build_prefix
   1477 
   1478 case $srcdir in
   1479   .)  # We are building in place.
   1480     ac_srcdir=.
   1481     ac_top_srcdir=$ac_top_builddir_sub
   1482     ac_abs_top_srcdir=$ac_pwd ;;
   1483   [\\/]* | ?:[\\/]* )  # Absolute name.
   1484     ac_srcdir=$srcdir$ac_dir_suffix;
   1485     ac_top_srcdir=$srcdir
   1486     ac_abs_top_srcdir=$srcdir ;;
   1487   *) # Relative name.
   1488     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1489     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1490     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1491 esac
   1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1493 
   1494     cd "$ac_dir" || { ac_status=$?; continue; }
   1495     # Check for guested configure.
   1496     if test -f "$ac_srcdir/configure.gnu"; then
   1497       echo &&
   1498       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1499     elif test -f "$ac_srcdir/configure"; then
   1500       echo &&
   1501       $SHELL "$ac_srcdir/configure" --help=recursive
   1502     else
   1503       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1504     fi || ac_status=$?
   1505     cd "$ac_pwd" || { ac_status=$?; break; }
   1506   done
   1507 fi
   1508 
   1509 test -n "$ac_init_help" && exit $ac_status
   1510 if $ac_init_version; then
   1511   cat <<\_ACEOF
   1512 [SAMPLE] configure [x.xx]
   1513 generated by GNU Autoconf 2.60
   1514 
   1515 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   1516 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
   1517 This configure script is free software; the Free Software Foundation
   1518 gives unlimited permission to copy, distribute and modify it.
   1519 _ACEOF
   1520   exit
   1521 fi
   1522 cat >config.log <<_ACEOF
   1523 This file contains any messages produced by compilers while
   1524 running configure, to aid debugging if configure makes a mistake.
   1525 
   1526 It was created by [SAMPLE] $as_me [x.xx], which was
   1527 generated by GNU Autoconf 2.60.  Invocation command line was
   1528 
   1529   $ $0 $@
   1530 
   1531 _ACEOF
   1532 exec 5>>config.log
   1533 {
   1534 cat <<_ASUNAME
   1535 ## --------- ##
   1536 ## Platform. ##
   1537 ## --------- ##
   1538 
   1539 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1540 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1541 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1542 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1543 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1544 
   1545 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1546 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1547 
   1548 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1549 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1550 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1551 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1552 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1553 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1554 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1555 
   1556 _ASUNAME
   1557 
   1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1559 for as_dir in $PATH
   1560 do
   1561   IFS=$as_save_IFS
   1562   test -z "$as_dir" && as_dir=.
   1563   echo "PATH: $as_dir"
   1564 done
   1565 IFS=$as_save_IFS
   1566 
   1567 } >&5
   1568 
   1569 cat >&5 <<_ACEOF
   1570 
   1571 
   1572 ## ----------- ##
   1573 ## Core tests. ##
   1574 ## ----------- ##
   1575 
   1576 _ACEOF
   1577 
   1578 
   1579 # Keep a trace of the command line.
   1580 # Strip out --no-create and --no-recursion so they do not pile up.
   1581 # Strip out --silent because we don't want to record it for future runs.
   1582 # Also quote any args containing shell meta-characters.
   1583 # Make two passes to allow for proper duplicate-argument suppression.
   1584 ac_configure_args=
   1585 ac_configure_args0=
   1586 ac_configure_args1=
   1587 ac_must_keep_next=false
   1588 for ac_pass in 1 2
   1589 do
   1590   for ac_arg
   1591   do
   1592     case $ac_arg in
   1593     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1594     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1595     | -silent | --silent | --silen | --sile | --sil)
   1596       continue ;;
   1597     *\'*)
   1598       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1599     esac
   1600     case $ac_pass in
   1601     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1602     2)
   1603       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1604       if test $ac_must_keep_next = true; then
   1605 	ac_must_keep_next=false # Got value, back to normal.
   1606       else
   1607 	case $ac_arg in
   1608 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1609 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1610 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1611 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1612 	    case "$ac_configure_args0 " in
   1613 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1614 	    esac
   1615 	    ;;
   1616 	  -* ) ac_must_keep_next=true ;;
   1617 	esac
   1618       fi
   1619       ac_configure_args="$ac_configure_args '$ac_arg'"
   1620       ;;
   1621     esac
   1622   done
   1623 done
   1624 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1625 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1626 
   1627 # When interrupted or exit'd, cleanup temporary files, and complete
   1628 # config.log.  We remove comments because anyway the quotes in there
   1629 # would cause problems or look ugly.
   1630 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1631 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1632 trap 'exit_status=$?
   1633   # Save into config.log some information that might help in debugging.
   1634   {
   1635     echo
   1636 
   1637     cat <<\_ASBOX
   1638 ## ---------------- ##
   1639 ## Cache variables. ##
   1640 ## ---------------- ##
   1641 _ASBOX
   1642     echo
   1643     # The following way of writing the cache mishandles newlines in values,
   1644 (
   1645   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1646     eval ac_val=\$$ac_var
   1647     case $ac_val in #(
   1648     *${as_nl}*)
   1649       case $ac_var in #(
   1650       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   1651 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   1652       esac
   1653       case $ac_var in #(
   1654       _ | IFS | as_nl) ;; #(
   1655       *) $as_unset $ac_var ;;
   1656       esac ;;
   1657     esac
   1658   done
   1659   (set) 2>&1 |
   1660     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1661     *${as_nl}ac_space=\ *)
   1662       sed -n \
   1663 	"s/'\''/'\''\\\\'\'''\''/g;
   1664 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1665       ;; #(
   1666     *)
   1667       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1668       ;;
   1669     esac |
   1670     sort
   1671 )
   1672     echo
   1673 
   1674     cat <<\_ASBOX
   1675 ## ----------------- ##
   1676 ## Output variables. ##
   1677 ## ----------------- ##
   1678 _ASBOX
   1679     echo
   1680     for ac_var in $ac_subst_vars
   1681     do
   1682       eval ac_val=\$$ac_var
   1683       case $ac_val in
   1684       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1685       esac
   1686       echo "$ac_var='\''$ac_val'\''"
   1687     done | sort
   1688     echo
   1689 
   1690     if test -n "$ac_subst_files"; then
   1691       cat <<\_ASBOX
   1692 ## ------------------- ##
   1693 ## File substitutions. ##
   1694 ## ------------------- ##
   1695 _ASBOX
   1696       echo
   1697       for ac_var in $ac_subst_files
   1698       do
   1699 	eval ac_val=\$$ac_var
   1700 	case $ac_val in
   1701 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1702 	esac
   1703 	echo "$ac_var='\''$ac_val'\''"
   1704       done | sort
   1705       echo
   1706     fi
   1707 
   1708     if test -s confdefs.h; then
   1709       cat <<\_ASBOX
   1710 ## ----------- ##
   1711 ## confdefs.h. ##
   1712 ## ----------- ##
   1713 _ASBOX
   1714       echo
   1715       cat confdefs.h
   1716       echo
   1717     fi
   1718     test "$ac_signal" != 0 &&
   1719       echo "$as_me: caught signal $ac_signal"
   1720     echo "$as_me: exit $exit_status"
   1721   } >&5
   1722   rm -f core *.core core.conftest.* &&
   1723     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1724     exit $exit_status
   1725 ' 0
   1726 for ac_signal in 1 2 13 15; do
   1727   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1728 done
   1729 ac_signal=0
   1730 
   1731 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1732 rm -f -r conftest* confdefs.h
   1733 
   1734 # Predefined preprocessor variables.
   1735 
   1736 cat >>confdefs.h <<_ACEOF
   1737 #define PACKAGE_NAME "$PACKAGE_NAME"
   1738 _ACEOF
   1739 
   1740 
   1741 cat >>confdefs.h <<_ACEOF
   1742 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1743 _ACEOF
   1744 
   1745 
   1746 cat >>confdefs.h <<_ACEOF
   1747 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1748 _ACEOF
   1749 
   1750 
   1751 cat >>confdefs.h <<_ACEOF
   1752 #define PACKAGE_STRING "$PACKAGE_STRING"
   1753 _ACEOF
   1754 
   1755 
   1756 cat >>confdefs.h <<_ACEOF
   1757 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1758 _ACEOF
   1759 
   1760 
   1761 # Let the site file select an alternate cache file if it wants to.
   1762 # Prefer explicitly selected file to automatically selected ones.
   1763 if test -n "$CONFIG_SITE"; then
   1764   set x "$CONFIG_SITE"
   1765 elif test "x$prefix" != xNONE; then
   1766   set x "$prefix/share/config.site" "$prefix/etc/config.site"
   1767 else
   1768   set x "$ac_default_prefix/share/config.site" \
   1769 	"$ac_default_prefix/etc/config.site"
   1770 fi
   1771 shift
   1772 for ac_site_file
   1773 do
   1774   if test -r "$ac_site_file"; then
   1775     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1776 echo "$as_me: loading site script $ac_site_file" >&6;}
   1777     sed 's/^/| /' "$ac_site_file" >&5
   1778     . "$ac_site_file"
   1779   fi
   1780 done
   1781 
   1782 if test -r "$cache_file"; then
   1783   # Some versions of bash will fail to source /dev/null (special
   1784   # files actually), so we avoid doing that.
   1785   if test -f "$cache_file"; then
   1786     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1787 echo "$as_me: loading cache $cache_file" >&6;}
   1788     case $cache_file in
   1789       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   1790       *)                      . "./$cache_file";;
   1791     esac
   1792   fi
   1793 else
   1794   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   1795 echo "$as_me: creating cache $cache_file" >&6;}
   1796   >$cache_file
   1797 fi
   1798 
   1799 # Check that the precious variables saved in the cache have kept the same
   1800 # value.
   1801 ac_cache_corrupted=false
   1802 for ac_var in $ac_precious_vars; do
   1803   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1804   eval ac_new_set=\$ac_env_${ac_var}_set
   1805   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   1806   eval ac_new_val=\$ac_env_${ac_var}_value
   1807   case $ac_old_set,$ac_new_set in
   1808     set,)
   1809       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1810 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1811       ac_cache_corrupted=: ;;
   1812     ,set)
   1813       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   1814 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1815       ac_cache_corrupted=: ;;
   1816     ,);;
   1817     *)
   1818       if test "x$ac_old_val" != "x$ac_new_val"; then
   1819 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   1820 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1821 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
   1822 echo "$as_me:   former value:  $ac_old_val" >&2;}
   1823 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
   1824 echo "$as_me:   current value: $ac_new_val" >&2;}
   1825 	ac_cache_corrupted=:
   1826       fi;;
   1827   esac
   1828   # Pass precious variables to config.status.
   1829   if test "$ac_new_set" = set; then
   1830     case $ac_new_val in
   1831     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   1832     *) ac_arg=$ac_var=$ac_new_val ;;
   1833     esac
   1834     case " $ac_configure_args " in
   1835       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   1836       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   1837     esac
   1838   fi
   1839 done
   1840 if $ac_cache_corrupted; then
   1841   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   1842 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1843   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1844 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1845    { (exit 1); exit 1; }; }
   1846 fi
   1847 
   1848 
   1849 
   1850 
   1851 
   1852 
   1853 
   1854 
   1855 
   1856 
   1857 
   1858 
   1859 
   1860 
   1861 
   1862 
   1863 
   1864 
   1865 
   1866 
   1867 
   1868 
   1869 
   1870 
   1871 
   1872 ac_ext=c
   1873 ac_cpp='$CPP $CPPFLAGS'
   1874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1877 
   1878 
   1879 
   1880 LLVM_SRC_ROOT="../.."
   1881 LLVM_OBJ_ROOT="../.."
   1882 
   1883 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
   1884 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
   1885 
   1886 
   1887 # Check whether --with-llvmsrc was given.
   1888 if test "${with_llvmsrc+set}" = set; then
   1889   withval=$with_llvmsrc; llvm_src="$withval"
   1890 else
   1891   llvm_src="$LLVM_ABS_SRC_ROOT"
   1892 fi
   1893 
   1894   LLVM_SRC=$llvm_src
   1895 
   1896 
   1897 # Check whether --with-llvmobj was given.
   1898 if test "${with_llvmobj+set}" = set; then
   1899   withval=$with_llvmobj; llvm_obj="$withval"
   1900 else
   1901   llvm_obj="$LLVM_ABS_OBJ_ROOT"
   1902 fi
   1903 
   1904   LLVM_OBJ=$llvm_obj
   1905 
   1906   ac_config_commands="$ac_config_commands setup"
   1907 
   1908 
   1909 
   1910 { echo "$as_me:$LINENO: checking llvm-config" >&5
   1911 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
   1912 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
   1913 if ! test -f "$llvm_config_path" ; then
   1914    llvm_config_path="no"
   1915 fi
   1916 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
   1917 echo "${ECHO_T}$llvm_config_path" >&6; }
   1918 
   1919 { echo "$as_me:$LINENO: checking LLVM package version" >&5
   1920 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
   1921 if test "$llvm_config_path" != no ; then
   1922   llvm_package_version=`$llvm_config_path --version`
   1923 else
   1924   llvm_package_version="unknown";
   1925 fi
   1926 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
   1927 echo "${ECHO_T}$llvm_package_version" >&6; }
   1928 LLVM_VERSION=$llvm_package_version
   1929 
   1930 
   1931 
   1932 
   1933 ac_aux_dir=
   1934 for ac_dir in autoconf "$srcdir"/autoconf; do
   1935   if test -f "$ac_dir/install-sh"; then
   1936     ac_aux_dir=$ac_dir
   1937     ac_install_sh="$ac_aux_dir/install-sh -c"
   1938     break
   1939   elif test -f "$ac_dir/install.sh"; then
   1940     ac_aux_dir=$ac_dir
   1941     ac_install_sh="$ac_aux_dir/install.sh -c"
   1942     break
   1943   elif test -f "$ac_dir/shtool"; then
   1944     ac_aux_dir=$ac_dir
   1945     ac_install_sh="$ac_aux_dir/shtool install -c"
   1946     break
   1947   fi
   1948 done
   1949 if test -z "$ac_aux_dir"; then
   1950   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
   1951 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
   1952    { (exit 1); exit 1; }; }
   1953 fi
   1954 
   1955 # These three variables are undocumented and unsupported,
   1956 # and are intended to be withdrawn in a future Autoconf release.
   1957 # They can cause serious problems if a builder's source tree is in a directory
   1958 # whose full name contains unusual characters.
   1959 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   1960 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   1961 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   1962 
   1963 
   1964 
   1965 
   1966 ac_ext=c
   1967 ac_cpp='$CPP $CPPFLAGS'
   1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1971 if test -n "$ac_tool_prefix"; then
   1972   for ac_prog in clang llvm-gcc gcc
   1973   do
   1974     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   1975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1978 if test "${ac_cv_prog_CC+set}" = set; then
   1979   echo $ECHO_N "(cached) $ECHO_C" >&6
   1980 else
   1981   if test -n "$CC"; then
   1982   ac_cv_prog_CC="$CC" # Let the user override the test.
   1983 else
   1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1985 for as_dir in $PATH
   1986 do
   1987   IFS=$as_save_IFS
   1988   test -z "$as_dir" && as_dir=.
   1989   for ac_exec_ext in '' $ac_executable_extensions; do
   1990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   1991     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   1992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1993     break 2
   1994   fi
   1995 done
   1996 done
   1997 IFS=$as_save_IFS
   1998 
   1999 fi
   2000 fi
   2001 CC=$ac_cv_prog_CC
   2002 if test -n "$CC"; then
   2003   { echo "$as_me:$LINENO: result: $CC" >&5
   2004 echo "${ECHO_T}$CC" >&6; }
   2005 else
   2006   { echo "$as_me:$LINENO: result: no" >&5
   2007 echo "${ECHO_T}no" >&6; }
   2008 fi
   2009 
   2010 
   2011     test -n "$CC" && break
   2012   done
   2013 fi
   2014 if test -z "$CC"; then
   2015   ac_ct_CC=$CC
   2016   for ac_prog in clang llvm-gcc gcc
   2017 do
   2018   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2019 set dummy $ac_prog; ac_word=$2
   2020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2023   echo $ECHO_N "(cached) $ECHO_C" >&6
   2024 else
   2025   if test -n "$ac_ct_CC"; then
   2026   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2027 else
   2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2029 for as_dir in $PATH
   2030 do
   2031   IFS=$as_save_IFS
   2032   test -z "$as_dir" && as_dir=.
   2033   for ac_exec_ext in '' $ac_executable_extensions; do
   2034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   2035     ac_cv_prog_ac_ct_CC="$ac_prog"
   2036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2037     break 2
   2038   fi
   2039 done
   2040 done
   2041 IFS=$as_save_IFS
   2042 
   2043 fi
   2044 fi
   2045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2046 if test -n "$ac_ct_CC"; then
   2047   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2048 echo "${ECHO_T}$ac_ct_CC" >&6; }
   2049 else
   2050   { echo "$as_me:$LINENO: result: no" >&5
   2051 echo "${ECHO_T}no" >&6; }
   2052 fi
   2053 
   2054 
   2055   test -n "$ac_ct_CC" && break
   2056 done
   2057 
   2058   if test "x$ac_ct_CC" = x; then
   2059     CC=""
   2060   else
   2061     case $cross_compiling:$ac_tool_warned in
   2062 yes:)
   2063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2064 whose name does not start with the host triplet.  If you think this
   2065 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2067 whose name does not start with the host triplet.  If you think this
   2068 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2069 ac_tool_warned=yes ;;
   2070 esac
   2071     CC=$ac_ct_CC
   2072   fi
   2073 fi
   2074 
   2075 
   2076 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   2077 See \`config.log' for more details." >&5
   2078 echo "$as_me: error: no acceptable C compiler found in \$PATH
   2079 See \`config.log' for more details." >&2;}
   2080    { (exit 1); exit 1; }; }
   2081 
   2082 # Provide some information about the compiler.
   2083 echo "$as_me:$LINENO: checking for C compiler version" >&5
   2084 ac_compiler=`set X $ac_compile; echo $2`
   2085 { (ac_try="$ac_compiler --version >&5"
   2086 case "(($ac_try" in
   2087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2088   *) ac_try_echo=$ac_try;;
   2089 esac
   2090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2091   (eval "$ac_compiler --version >&5") 2>&5
   2092   ac_status=$?
   2093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2094   (exit $ac_status); }
   2095 { (ac_try="$ac_compiler -v >&5"
   2096 case "(($ac_try" in
   2097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2098   *) ac_try_echo=$ac_try;;
   2099 esac
   2100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2101   (eval "$ac_compiler -v >&5") 2>&5
   2102   ac_status=$?
   2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2104   (exit $ac_status); }
   2105 { (ac_try="$ac_compiler -V >&5"
   2106 case "(($ac_try" in
   2107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2108   *) ac_try_echo=$ac_try;;
   2109 esac
   2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2111   (eval "$ac_compiler -V >&5") 2>&5
   2112   ac_status=$?
   2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2114   (exit $ac_status); }
   2115 
   2116 cat >conftest.$ac_ext <<_ACEOF
   2117 /* confdefs.h.  */
   2118 _ACEOF
   2119 cat confdefs.h >>conftest.$ac_ext
   2120 cat >>conftest.$ac_ext <<_ACEOF
   2121 /* end confdefs.h.  */
   2122 
   2123 int
   2124 main ()
   2125 {
   2126 
   2127   ;
   2128   return 0;
   2129 }
   2130 _ACEOF
   2131 ac_clean_files_save=$ac_clean_files
   2132 ac_clean_files="$ac_clean_files a.out a.exe b.out"
   2133 # Try to create an executable without -o first, disregard a.out.
   2134 # It will help us diagnose broken compilers, and finding out an intuition
   2135 # of exeext.
   2136 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   2137 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
   2138 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2139 #
   2140 # List of possible output files, starting from the most likely.
   2141 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
   2142 # only as a last resort.  b.out is created by i960 compilers.
   2143 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
   2144 #
   2145 # The IRIX 6 linker writes into existing files which may not be
   2146 # executable, retaining their permissions.  Remove them first so a
   2147 # subsequent execution test works.
   2148 ac_rmfiles=
   2149 for ac_file in $ac_files
   2150 do
   2151   case $ac_file in
   2152     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2153     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   2154   esac
   2155 done
   2156 rm -f $ac_rmfiles
   2157 
   2158 if { (ac_try="$ac_link_default"
   2159 case "(($ac_try" in
   2160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2161   *) ac_try_echo=$ac_try;;
   2162 esac
   2163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2164   (eval "$ac_link_default") 2>&5
   2165   ac_status=$?
   2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2167   (exit $ac_status); }; then
   2168   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   2169 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   2170 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   2171 # so that the user can short-circuit this test for compilers unknown to
   2172 # Autoconf.
   2173 for ac_file in $ac_files
   2174 do
   2175   test -f "$ac_file" || continue
   2176   case $ac_file in
   2177     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
   2178 	;;
   2179     [ab].out )
   2180 	# We found the default executable, but exeext='' is most
   2181 	# certainly right.
   2182 	break;;
   2183     *.* )
   2184         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   2185 	then :; else
   2186 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2187 	fi
   2188 	# We set ac_cv_exeext here because the later test for it is not
   2189 	# safe: cross compilers may not add the suffix if given an `-o'
   2190 	# argument, so we may need to know it at that point already.
   2191 	# Even if this section looks crufty: it has the advantage of
   2192 	# actually working.
   2193 	break;;
   2194     * )
   2195 	break;;
   2196   esac
   2197 done
   2198 test "$ac_cv_exeext" = no && ac_cv_exeext=
   2199 
   2200 else
   2201   echo "$as_me: failed program was:" >&5
   2202 sed 's/^/| /' conftest.$ac_ext >&5
   2203 
   2204 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
   2205 See \`config.log' for more details." >&5
   2206 echo "$as_me: error: C compiler cannot create executables
   2207 See \`config.log' for more details." >&2;}
   2208    { (exit 77); exit 77; }; }
   2209 fi
   2210 
   2211 ac_exeext=$ac_cv_exeext
   2212 { echo "$as_me:$LINENO: result: $ac_file" >&5
   2213 echo "${ECHO_T}$ac_file" >&6; }
   2214 
   2215 # Check that the compiler produces executables we can run.  If not, either
   2216 # the compiler is broken, or we cross compile.
   2217 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   2218 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
   2219 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   2220 # If not cross compiling, check that we can run a simple program.
   2221 if test "$cross_compiling" != yes; then
   2222   if { ac_try='./$ac_file'
   2223   { (case "(($ac_try" in
   2224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2225   *) ac_try_echo=$ac_try;;
   2226 esac
   2227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2228   (eval "$ac_try") 2>&5
   2229   ac_status=$?
   2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2231   (exit $ac_status); }; }; then
   2232     cross_compiling=no
   2233   else
   2234     if test "$cross_compiling" = maybe; then
   2235 	cross_compiling=yes
   2236     else
   2237 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
   2238 If you meant to cross compile, use \`--host'.
   2239 See \`config.log' for more details." >&5
   2240 echo "$as_me: error: cannot run C compiled programs.
   2241 If you meant to cross compile, use \`--host'.
   2242 See \`config.log' for more details." >&2;}
   2243    { (exit 1); exit 1; }; }
   2244     fi
   2245   fi
   2246 fi
   2247 { echo "$as_me:$LINENO: result: yes" >&5
   2248 echo "${ECHO_T}yes" >&6; }
   2249 
   2250 rm -f a.out a.exe conftest$ac_cv_exeext b.out
   2251 ac_clean_files=$ac_clean_files_save
   2252 # Check that the compiler produces executables we can run.  If not, either
   2253 # the compiler is broken, or we cross compile.
   2254 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   2255 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
   2256 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
   2257 echo "${ECHO_T}$cross_compiling" >&6; }
   2258 
   2259 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
   2260 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
   2261 if { (ac_try="$ac_link"
   2262 case "(($ac_try" in
   2263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2264   *) ac_try_echo=$ac_try;;
   2265 esac
   2266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2267   (eval "$ac_link") 2>&5
   2268   ac_status=$?
   2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2270   (exit $ac_status); }; then
   2271   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2272 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2273 # work properly (i.e., refer to `conftest.exe'), while it won't with
   2274 # `rm'.
   2275 for ac_file in conftest.exe conftest conftest.*; do
   2276   test -f "$ac_file" || continue
   2277   case $ac_file in
   2278     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2279     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2280 	  break;;
   2281     * ) break;;
   2282   esac
   2283 done
   2284 else
   2285   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
   2286 See \`config.log' for more details." >&5
   2287 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
   2288 See \`config.log' for more details." >&2;}
   2289    { (exit 1); exit 1; }; }
   2290 fi
   2291 
   2292 rm -f conftest$ac_cv_exeext
   2293 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   2294 echo "${ECHO_T}$ac_cv_exeext" >&6; }
   2295 
   2296 rm -f conftest.$ac_ext
   2297 EXEEXT=$ac_cv_exeext
   2298 ac_exeext=$EXEEXT
   2299 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
   2300 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
   2301 if test "${ac_cv_objext+set}" = set; then
   2302   echo $ECHO_N "(cached) $ECHO_C" >&6
   2303 else
   2304   cat >conftest.$ac_ext <<_ACEOF
   2305 /* confdefs.h.  */
   2306 _ACEOF
   2307 cat confdefs.h >>conftest.$ac_ext
   2308 cat >>conftest.$ac_ext <<_ACEOF
   2309 /* end confdefs.h.  */
   2310 
   2311 int
   2312 main ()
   2313 {
   2314 
   2315   ;
   2316   return 0;
   2317 }
   2318 _ACEOF
   2319 rm -f conftest.o conftest.obj
   2320 if { (ac_try="$ac_compile"
   2321 case "(($ac_try" in
   2322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2323   *) ac_try_echo=$ac_try;;
   2324 esac
   2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2326   (eval "$ac_compile") 2>&5
   2327   ac_status=$?
   2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2329   (exit $ac_status); }; then
   2330   for ac_file in conftest.o conftest.obj conftest.*; do
   2331   test -f "$ac_file" || continue;
   2332   case $ac_file in
   2333     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
   2334     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2335        break;;
   2336   esac
   2337 done
   2338 else
   2339   echo "$as_me: failed program was:" >&5
   2340 sed 's/^/| /' conftest.$ac_ext >&5
   2341 
   2342 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
   2343 See \`config.log' for more details." >&5
   2344 echo "$as_me: error: cannot compute suffix of object files: cannot compile
   2345 See \`config.log' for more details." >&2;}
   2346    { (exit 1); exit 1; }; }
   2347 fi
   2348 
   2349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   2350 fi
   2351 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   2352 echo "${ECHO_T}$ac_cv_objext" >&6; }
   2353 OBJEXT=$ac_cv_objext
   2354 ac_objext=$OBJEXT
   2355 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   2356 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
   2357 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   2358   echo $ECHO_N "(cached) $ECHO_C" >&6
   2359 else
   2360   cat >conftest.$ac_ext <<_ACEOF
   2361 /* confdefs.h.  */
   2362 _ACEOF
   2363 cat confdefs.h >>conftest.$ac_ext
   2364 cat >>conftest.$ac_ext <<_ACEOF
   2365 /* end confdefs.h.  */
   2366 
   2367 int
   2368 main ()
   2369 {
   2370 #ifndef __GNUC__
   2371        choke me
   2372 #endif
   2373 
   2374   ;
   2375   return 0;
   2376 }
   2377 _ACEOF
   2378 rm -f conftest.$ac_objext
   2379 if { (ac_try="$ac_compile"
   2380 case "(($ac_try" in
   2381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2382   *) ac_try_echo=$ac_try;;
   2383 esac
   2384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2385   (eval "$ac_compile") 2>conftest.er1
   2386   ac_status=$?
   2387   grep -v '^ *+' conftest.er1 >conftest.err
   2388   rm -f conftest.er1
   2389   cat conftest.err >&5
   2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2391   (exit $ac_status); } &&
   2392 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2393   { (case "(($ac_try" in
   2394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2395   *) ac_try_echo=$ac_try;;
   2396 esac
   2397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2398   (eval "$ac_try") 2>&5
   2399   ac_status=$?
   2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2401   (exit $ac_status); }; } &&
   2402 	 { ac_try='test -s conftest.$ac_objext'
   2403   { (case "(($ac_try" in
   2404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2405   *) ac_try_echo=$ac_try;;
   2406 esac
   2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2408   (eval "$ac_try") 2>&5
   2409   ac_status=$?
   2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2411   (exit $ac_status); }; }; then
   2412   ac_compiler_gnu=yes
   2413 else
   2414   echo "$as_me: failed program was:" >&5
   2415 sed 's/^/| /' conftest.$ac_ext >&5
   2416 
   2417 	ac_compiler_gnu=no
   2418 fi
   2419 
   2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2421 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   2422 
   2423 fi
   2424 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   2425 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
   2426 GCC=`test $ac_compiler_gnu = yes && echo yes`
   2427 ac_test_CFLAGS=${CFLAGS+set}
   2428 ac_save_CFLAGS=$CFLAGS
   2429 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   2430 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
   2431 if test "${ac_cv_prog_cc_g+set}" = set; then
   2432   echo $ECHO_N "(cached) $ECHO_C" >&6
   2433 else
   2434   ac_save_c_werror_flag=$ac_c_werror_flag
   2435    ac_c_werror_flag=yes
   2436    ac_cv_prog_cc_g=no
   2437    CFLAGS="-g"
   2438    cat >conftest.$ac_ext <<_ACEOF
   2439 /* confdefs.h.  */
   2440 _ACEOF
   2441 cat confdefs.h >>conftest.$ac_ext
   2442 cat >>conftest.$ac_ext <<_ACEOF
   2443 /* end confdefs.h.  */
   2444 
   2445 int
   2446 main ()
   2447 {
   2448 
   2449   ;
   2450   return 0;
   2451 }
   2452 _ACEOF
   2453 rm -f conftest.$ac_objext
   2454 if { (ac_try="$ac_compile"
   2455 case "(($ac_try" in
   2456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2457   *) ac_try_echo=$ac_try;;
   2458 esac
   2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2460   (eval "$ac_compile") 2>conftest.er1
   2461   ac_status=$?
   2462   grep -v '^ *+' conftest.er1 >conftest.err
   2463   rm -f conftest.er1
   2464   cat conftest.err >&5
   2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2466   (exit $ac_status); } &&
   2467 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2468   { (case "(($ac_try" in
   2469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2470   *) ac_try_echo=$ac_try;;
   2471 esac
   2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2473   (eval "$ac_try") 2>&5
   2474   ac_status=$?
   2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2476   (exit $ac_status); }; } &&
   2477 	 { ac_try='test -s conftest.$ac_objext'
   2478   { (case "(($ac_try" in
   2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2480   *) ac_try_echo=$ac_try;;
   2481 esac
   2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2483   (eval "$ac_try") 2>&5
   2484   ac_status=$?
   2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2486   (exit $ac_status); }; }; then
   2487   ac_cv_prog_cc_g=yes
   2488 else
   2489   echo "$as_me: failed program was:" >&5
   2490 sed 's/^/| /' conftest.$ac_ext >&5
   2491 
   2492 	CFLAGS=""
   2493       cat >conftest.$ac_ext <<_ACEOF
   2494 /* confdefs.h.  */
   2495 _ACEOF
   2496 cat confdefs.h >>conftest.$ac_ext
   2497 cat >>conftest.$ac_ext <<_ACEOF
   2498 /* end confdefs.h.  */
   2499 
   2500 int
   2501 main ()
   2502 {
   2503 
   2504   ;
   2505   return 0;
   2506 }
   2507 _ACEOF
   2508 rm -f conftest.$ac_objext
   2509 if { (ac_try="$ac_compile"
   2510 case "(($ac_try" in
   2511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2512   *) ac_try_echo=$ac_try;;
   2513 esac
   2514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2515   (eval "$ac_compile") 2>conftest.er1
   2516   ac_status=$?
   2517   grep -v '^ *+' conftest.er1 >conftest.err
   2518   rm -f conftest.er1
   2519   cat conftest.err >&5
   2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2521   (exit $ac_status); } &&
   2522 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2523   { (case "(($ac_try" in
   2524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2525   *) ac_try_echo=$ac_try;;
   2526 esac
   2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2528   (eval "$ac_try") 2>&5
   2529   ac_status=$?
   2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2531   (exit $ac_status); }; } &&
   2532 	 { ac_try='test -s conftest.$ac_objext'
   2533   { (case "(($ac_try" in
   2534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2535   *) ac_try_echo=$ac_try;;
   2536 esac
   2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2538   (eval "$ac_try") 2>&5
   2539   ac_status=$?
   2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2541   (exit $ac_status); }; }; then
   2542   :
   2543 else
   2544   echo "$as_me: failed program was:" >&5
   2545 sed 's/^/| /' conftest.$ac_ext >&5
   2546 
   2547 	ac_c_werror_flag=$ac_save_c_werror_flag
   2548 	 CFLAGS="-g"
   2549 	 cat >conftest.$ac_ext <<_ACEOF
   2550 /* confdefs.h.  */
   2551 _ACEOF
   2552 cat confdefs.h >>conftest.$ac_ext
   2553 cat >>conftest.$ac_ext <<_ACEOF
   2554 /* end confdefs.h.  */
   2555 
   2556 int
   2557 main ()
   2558 {
   2559 
   2560   ;
   2561   return 0;
   2562 }
   2563 _ACEOF
   2564 rm -f conftest.$ac_objext
   2565 if { (ac_try="$ac_compile"
   2566 case "(($ac_try" in
   2567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2568   *) ac_try_echo=$ac_try;;
   2569 esac
   2570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2571   (eval "$ac_compile") 2>conftest.er1
   2572   ac_status=$?
   2573   grep -v '^ *+' conftest.er1 >conftest.err
   2574   rm -f conftest.er1
   2575   cat conftest.err >&5
   2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2577   (exit $ac_status); } &&
   2578 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2579   { (case "(($ac_try" in
   2580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2581   *) ac_try_echo=$ac_try;;
   2582 esac
   2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2584   (eval "$ac_try") 2>&5
   2585   ac_status=$?
   2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2587   (exit $ac_status); }; } &&
   2588 	 { ac_try='test -s conftest.$ac_objext'
   2589   { (case "(($ac_try" in
   2590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2591   *) ac_try_echo=$ac_try;;
   2592 esac
   2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2594   (eval "$ac_try") 2>&5
   2595   ac_status=$?
   2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2597   (exit $ac_status); }; }; then
   2598   ac_cv_prog_cc_g=yes
   2599 else
   2600   echo "$as_me: failed program was:" >&5
   2601 sed 's/^/| /' conftest.$ac_ext >&5
   2602 
   2603 
   2604 fi
   2605 
   2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2607 fi
   2608 
   2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2610 fi
   2611 
   2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2613    ac_c_werror_flag=$ac_save_c_werror_flag
   2614 fi
   2615 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   2616 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
   2617 if test "$ac_test_CFLAGS" = set; then
   2618   CFLAGS=$ac_save_CFLAGS
   2619 elif test $ac_cv_prog_cc_g = yes; then
   2620   if test "$GCC" = yes; then
   2621     CFLAGS="-g -O2"
   2622   else
   2623     CFLAGS="-g"
   2624   fi
   2625 else
   2626   if test "$GCC" = yes; then
   2627     CFLAGS="-O2"
   2628   else
   2629     CFLAGS=
   2630   fi
   2631 fi
   2632 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
   2633 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
   2634 if test "${ac_cv_prog_cc_c89+set}" = set; then
   2635   echo $ECHO_N "(cached) $ECHO_C" >&6
   2636 else
   2637   ac_cv_prog_cc_c89=no
   2638 ac_save_CC=$CC
   2639 cat >conftest.$ac_ext <<_ACEOF
   2640 /* confdefs.h.  */
   2641 _ACEOF
   2642 cat confdefs.h >>conftest.$ac_ext
   2643 cat >>conftest.$ac_ext <<_ACEOF
   2644 /* end confdefs.h.  */
   2645 #include <stdarg.h>
   2646 #include <stdio.h>
   2647 #include <sys/types.h>
   2648 #include <sys/stat.h>
   2649 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2650 struct buf { int x; };
   2651 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2652 static char *e (p, i)
   2653      char **p;
   2654      int i;
   2655 {
   2656   return p[i];
   2657 }
   2658 static char *f (char * (*g) (char **, int), char **p, ...)
   2659 {
   2660   char *s;
   2661   va_list v;
   2662   va_start (v,p);
   2663   s = g (p, va_arg (v,int));
   2664   va_end (v);
   2665   return s;
   2666 }
   2667 
   2668 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2669    function prototypes and stuff, but not '\xHH' hex character constants.
   2670    These don't provoke an error unfortunately, instead are silently treated
   2671    as 'x'.  The following induces an error, until -std is added to get
   2672    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   2673    array size at least.  It's necessary to write '\x00'==0 to get something
   2674    that's true only with -std.  */
   2675 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   2676 
   2677 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2678    inside strings and character constants.  */
   2679 #define FOO(x) 'x'
   2680 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   2681 
   2682 int test (int i, double x);
   2683 struct s1 {int (*f) (int a);};
   2684 struct s2 {int (*f) (double a);};
   2685 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2686 int argc;
   2687 char **argv;
   2688 int
   2689 main ()
   2690 {
   2691 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2692   ;
   2693   return 0;
   2694 }
   2695 _ACEOF
   2696 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   2697 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2698 do
   2699   CC="$ac_save_CC $ac_arg"
   2700   rm -f conftest.$ac_objext
   2701 if { (ac_try="$ac_compile"
   2702 case "(($ac_try" in
   2703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2704   *) ac_try_echo=$ac_try;;
   2705 esac
   2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2707   (eval "$ac_compile") 2>conftest.er1
   2708   ac_status=$?
   2709   grep -v '^ *+' conftest.er1 >conftest.err
   2710   rm -f conftest.er1
   2711   cat conftest.err >&5
   2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2713   (exit $ac_status); } &&
   2714 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2715   { (case "(($ac_try" in
   2716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2717   *) ac_try_echo=$ac_try;;
   2718 esac
   2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2720   (eval "$ac_try") 2>&5
   2721   ac_status=$?
   2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2723   (exit $ac_status); }; } &&
   2724 	 { ac_try='test -s conftest.$ac_objext'
   2725   { (case "(($ac_try" in
   2726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2727   *) ac_try_echo=$ac_try;;
   2728 esac
   2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2730   (eval "$ac_try") 2>&5
   2731   ac_status=$?
   2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2733   (exit $ac_status); }; }; then
   2734   ac_cv_prog_cc_c89=$ac_arg
   2735 else
   2736   echo "$as_me: failed program was:" >&5
   2737 sed 's/^/| /' conftest.$ac_ext >&5
   2738 
   2739 
   2740 fi
   2741 
   2742 rm -f core conftest.err conftest.$ac_objext
   2743   test "x$ac_cv_prog_cc_c89" != "xno" && break
   2744 done
   2745 rm -f conftest.$ac_ext
   2746 CC=$ac_save_CC
   2747 
   2748 fi
   2749 # AC_CACHE_VAL
   2750 case "x$ac_cv_prog_cc_c89" in
   2751   x)
   2752     { echo "$as_me:$LINENO: result: none needed" >&5
   2753 echo "${ECHO_T}none needed" >&6; } ;;
   2754   xno)
   2755     { echo "$as_me:$LINENO: result: unsupported" >&5
   2756 echo "${ECHO_T}unsupported" >&6; } ;;
   2757   *)
   2758     CC="$CC $ac_cv_prog_cc_c89"
   2759     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
   2760 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
   2761 esac
   2762 
   2763 
   2764 ac_ext=c
   2765 ac_cpp='$CPP $CPPFLAGS'
   2766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2769 
   2770 ac_ext=cpp
   2771 ac_cpp='$CXXCPP $CPPFLAGS'
   2772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   2775 if test -z "$CXX"; then
   2776   if test -n "$CCC"; then
   2777     CXX=$CCC
   2778   else
   2779     if test -n "$ac_tool_prefix"; then
   2780   for ac_prog in clang++ llvm-g++ g++
   2781   do
   2782     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2786 if test "${ac_cv_prog_CXX+set}" = set; then
   2787   echo $ECHO_N "(cached) $ECHO_C" >&6
   2788 else
   2789   if test -n "$CXX"; then
   2790   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   2791 else
   2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2793 for as_dir in $PATH
   2794 do
   2795   IFS=$as_save_IFS
   2796   test -z "$as_dir" && as_dir=.
   2797   for ac_exec_ext in '' $ac_executable_extensions; do
   2798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   2799     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   2800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2801     break 2
   2802   fi
   2803 done
   2804 done
   2805 IFS=$as_save_IFS
   2806 
   2807 fi
   2808 fi
   2809 CXX=$ac_cv_prog_CXX
   2810 if test -n "$CXX"; then
   2811   { echo "$as_me:$LINENO: result: $CXX" >&5
   2812 echo "${ECHO_T}$CXX" >&6; }
   2813 else
   2814   { echo "$as_me:$LINENO: result: no" >&5
   2815 echo "${ECHO_T}no" >&6; }
   2816 fi
   2817 
   2818 
   2819     test -n "$CXX" && break
   2820   done
   2821 fi
   2822 if test -z "$CXX"; then
   2823   ac_ct_CXX=$CXX
   2824   for ac_prog in clang++ llvm-g++ g++
   2825 do
   2826   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2827 set dummy $ac_prog; ac_word=$2
   2828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2830 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
   2831   echo $ECHO_N "(cached) $ECHO_C" >&6
   2832 else
   2833   if test -n "$ac_ct_CXX"; then
   2834   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   2835 else
   2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2837 for as_dir in $PATH
   2838 do
   2839   IFS=$as_save_IFS
   2840   test -z "$as_dir" && as_dir=.
   2841   for ac_exec_ext in '' $ac_executable_extensions; do
   2842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   2843     ac_cv_prog_ac_ct_CXX="$ac_prog"
   2844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2845     break 2
   2846   fi
   2847 done
   2848 done
   2849 IFS=$as_save_IFS
   2850 
   2851 fi
   2852 fi
   2853 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   2854 if test -n "$ac_ct_CXX"; then
   2855   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
   2856 echo "${ECHO_T}$ac_ct_CXX" >&6; }
   2857 else
   2858   { echo "$as_me:$LINENO: result: no" >&5
   2859 echo "${ECHO_T}no" >&6; }
   2860 fi
   2861 
   2862 
   2863   test -n "$ac_ct_CXX" && break
   2864 done
   2865 
   2866   if test "x$ac_ct_CXX" = x; then
   2867     CXX="g++"
   2868   else
   2869     case $cross_compiling:$ac_tool_warned in
   2870 yes:)
   2871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2872 whose name does not start with the host triplet.  If you think this
   2873 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2875 whose name does not start with the host triplet.  If you think this
   2876 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2877 ac_tool_warned=yes ;;
   2878 esac
   2879     CXX=$ac_ct_CXX
   2880   fi
   2881 fi
   2882 
   2883   fi
   2884 fi
   2885 # Provide some information about the compiler.
   2886 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
   2887 ac_compiler=`set X $ac_compile; echo $2`
   2888 { (ac_try="$ac_compiler --version >&5"
   2889 case "(($ac_try" in
   2890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2891   *) ac_try_echo=$ac_try;;
   2892 esac
   2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2894   (eval "$ac_compiler --version >&5") 2>&5
   2895   ac_status=$?
   2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2897   (exit $ac_status); }
   2898 { (ac_try="$ac_compiler -v >&5"
   2899 case "(($ac_try" in
   2900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2901   *) ac_try_echo=$ac_try;;
   2902 esac
   2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2904   (eval "$ac_compiler -v >&5") 2>&5
   2905   ac_status=$?
   2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2907   (exit $ac_status); }
   2908 { (ac_try="$ac_compiler -V >&5"
   2909 case "(($ac_try" in
   2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2911   *) ac_try_echo=$ac_try;;
   2912 esac
   2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2914   (eval "$ac_compiler -V >&5") 2>&5
   2915   ac_status=$?
   2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2917   (exit $ac_status); }
   2918 
   2919 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
   2920 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
   2921 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
   2922   echo $ECHO_N "(cached) $ECHO_C" >&6
   2923 else
   2924   cat >conftest.$ac_ext <<_ACEOF
   2925 /* confdefs.h.  */
   2926 _ACEOF
   2927 cat confdefs.h >>conftest.$ac_ext
   2928 cat >>conftest.$ac_ext <<_ACEOF
   2929 /* end confdefs.h.  */
   2930 
   2931 int
   2932 main ()
   2933 {
   2934 #ifndef __GNUC__
   2935        choke me
   2936 #endif
   2937 
   2938   ;
   2939   return 0;
   2940 }
   2941 _ACEOF
   2942 rm -f conftest.$ac_objext
   2943 if { (ac_try="$ac_compile"
   2944 case "(($ac_try" in
   2945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2946   *) ac_try_echo=$ac_try;;
   2947 esac
   2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2949   (eval "$ac_compile") 2>conftest.er1
   2950   ac_status=$?
   2951   grep -v '^ *+' conftest.er1 >conftest.err
   2952   rm -f conftest.er1
   2953   cat conftest.err >&5
   2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2955   (exit $ac_status); } &&
   2956 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   2957   { (case "(($ac_try" in
   2958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2959   *) ac_try_echo=$ac_try;;
   2960 esac
   2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2962   (eval "$ac_try") 2>&5
   2963   ac_status=$?
   2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2965   (exit $ac_status); }; } &&
   2966 	 { ac_try='test -s conftest.$ac_objext'
   2967   { (case "(($ac_try" in
   2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2969   *) ac_try_echo=$ac_try;;
   2970 esac
   2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2972   (eval "$ac_try") 2>&5
   2973   ac_status=$?
   2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2975   (exit $ac_status); }; }; then
   2976   ac_compiler_gnu=yes
   2977 else
   2978   echo "$as_me: failed program was:" >&5
   2979 sed 's/^/| /' conftest.$ac_ext >&5
   2980 
   2981 	ac_compiler_gnu=no
   2982 fi
   2983 
   2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2985 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   2986 
   2987 fi
   2988 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
   2989 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
   2990 GXX=`test $ac_compiler_gnu = yes && echo yes`
   2991 ac_test_CXXFLAGS=${CXXFLAGS+set}
   2992 ac_save_CXXFLAGS=$CXXFLAGS
   2993 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
   2994 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
   2995 if test "${ac_cv_prog_cxx_g+set}" = set; then
   2996   echo $ECHO_N "(cached) $ECHO_C" >&6
   2997 else
   2998   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   2999    ac_cxx_werror_flag=yes
   3000    ac_cv_prog_cxx_g=no
   3001    CXXFLAGS="-g"
   3002    cat >conftest.$ac_ext <<_ACEOF
   3003 /* confdefs.h.  */
   3004 _ACEOF
   3005 cat confdefs.h >>conftest.$ac_ext
   3006 cat >>conftest.$ac_ext <<_ACEOF
   3007 /* end confdefs.h.  */
   3008 
   3009 int
   3010 main ()
   3011 {
   3012 
   3013   ;
   3014   return 0;
   3015 }
   3016 _ACEOF
   3017 rm -f conftest.$ac_objext
   3018 if { (ac_try="$ac_compile"
   3019 case "(($ac_try" in
   3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3021   *) ac_try_echo=$ac_try;;
   3022 esac
   3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3024   (eval "$ac_compile") 2>conftest.er1
   3025   ac_status=$?
   3026   grep -v '^ *+' conftest.er1 >conftest.err
   3027   rm -f conftest.er1
   3028   cat conftest.err >&5
   3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3030   (exit $ac_status); } &&
   3031 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   3032   { (case "(($ac_try" in
   3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3034   *) ac_try_echo=$ac_try;;
   3035 esac
   3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3037   (eval "$ac_try") 2>&5
   3038   ac_status=$?
   3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3040   (exit $ac_status); }; } &&
   3041 	 { ac_try='test -s conftest.$ac_objext'
   3042   { (case "(($ac_try" in
   3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3044   *) ac_try_echo=$ac_try;;
   3045 esac
   3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3047   (eval "$ac_try") 2>&5
   3048   ac_status=$?
   3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3050   (exit $ac_status); }; }; then
   3051   ac_cv_prog_cxx_g=yes
   3052 else
   3053   echo "$as_me: failed program was:" >&5
   3054 sed 's/^/| /' conftest.$ac_ext >&5
   3055 
   3056 	CXXFLAGS=""
   3057       cat >conftest.$ac_ext <<_ACEOF
   3058 /* confdefs.h.  */
   3059 _ACEOF
   3060 cat confdefs.h >>conftest.$ac_ext
   3061 cat >>conftest.$ac_ext <<_ACEOF
   3062 /* end confdefs.h.  */
   3063 
   3064 int
   3065 main ()
   3066 {
   3067 
   3068   ;
   3069   return 0;
   3070 }
   3071 _ACEOF
   3072 rm -f conftest.$ac_objext
   3073 if { (ac_try="$ac_compile"
   3074 case "(($ac_try" in
   3075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3076   *) ac_try_echo=$ac_try;;
   3077 esac
   3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3079   (eval "$ac_compile") 2>conftest.er1
   3080   ac_status=$?
   3081   grep -v '^ *+' conftest.er1 >conftest.err
   3082   rm -f conftest.er1
   3083   cat conftest.err >&5
   3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3085   (exit $ac_status); } &&
   3086 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   3087   { (case "(($ac_try" in
   3088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3089   *) ac_try_echo=$ac_try;;
   3090 esac
   3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3092   (eval "$ac_try") 2>&5
   3093   ac_status=$?
   3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3095   (exit $ac_status); }; } &&
   3096 	 { ac_try='test -s conftest.$ac_objext'
   3097   { (case "(($ac_try" in
   3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3099   *) ac_try_echo=$ac_try;;
   3100 esac
   3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3102   (eval "$ac_try") 2>&5
   3103   ac_status=$?
   3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3105   (exit $ac_status); }; }; then
   3106   :
   3107 else
   3108   echo "$as_me: failed program was:" >&5
   3109 sed 's/^/| /' conftest.$ac_ext >&5
   3110 
   3111 	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3112 	 CXXFLAGS="-g"
   3113 	 cat >conftest.$ac_ext <<_ACEOF
   3114 /* confdefs.h.  */
   3115 _ACEOF
   3116 cat confdefs.h >>conftest.$ac_ext
   3117 cat >>conftest.$ac_ext <<_ACEOF
   3118 /* end confdefs.h.  */
   3119 
   3120 int
   3121 main ()
   3122 {
   3123 
   3124   ;
   3125   return 0;
   3126 }
   3127 _ACEOF
   3128 rm -f conftest.$ac_objext
   3129 if { (ac_try="$ac_compile"
   3130 case "(($ac_try" in
   3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3132   *) ac_try_echo=$ac_try;;
   3133 esac
   3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3135   (eval "$ac_compile") 2>conftest.er1
   3136   ac_status=$?
   3137   grep -v '^ *+' conftest.er1 >conftest.err
   3138   rm -f conftest.er1
   3139   cat conftest.err >&5
   3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3141   (exit $ac_status); } &&
   3142 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   3143   { (case "(($ac_try" in
   3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3145   *) ac_try_echo=$ac_try;;
   3146 esac
   3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3148   (eval "$ac_try") 2>&5
   3149   ac_status=$?
   3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3151   (exit $ac_status); }; } &&
   3152 	 { ac_try='test -s conftest.$ac_objext'
   3153   { (case "(($ac_try" in
   3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3155   *) ac_try_echo=$ac_try;;
   3156 esac
   3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3158   (eval "$ac_try") 2>&5
   3159   ac_status=$?
   3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3161   (exit $ac_status); }; }; then
   3162   ac_cv_prog_cxx_g=yes
   3163 else
   3164   echo "$as_me: failed program was:" >&5
   3165 sed 's/^/| /' conftest.$ac_ext >&5
   3166 
   3167 
   3168 fi
   3169 
   3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3171 fi
   3172 
   3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3174 fi
   3175 
   3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3177    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3178 fi
   3179 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
   3180 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
   3181 if test "$ac_test_CXXFLAGS" = set; then
   3182   CXXFLAGS=$ac_save_CXXFLAGS
   3183 elif test $ac_cv_prog_cxx_g = yes; then
   3184   if test "$GXX" = yes; then
   3185     CXXFLAGS="-g -O2"
   3186   else
   3187     CXXFLAGS="-g"
   3188   fi
   3189 else
   3190   if test "$GXX" = yes; then
   3191     CXXFLAGS="-O2"
   3192   else
   3193     CXXFLAGS=
   3194   fi
   3195 fi
   3196 ac_ext=c
   3197 ac_cpp='$CPP $CPPFLAGS'
   3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3201 
   3202 ac_ext=c
   3203 ac_cpp='$CPP $CPPFLAGS'
   3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3207 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   3208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
   3209 # On Suns, sometimes $CPP names a directory.
   3210 if test -n "$CPP" && test -d "$CPP"; then
   3211   CPP=
   3212 fi
   3213 if test -z "$CPP"; then
   3214   if test "${ac_cv_prog_CPP+set}" = set; then
   3215   echo $ECHO_N "(cached) $ECHO_C" >&6
   3216 else
   3217       # Double quotes because CPP needs to be expanded
   3218     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3219     do
   3220       ac_preproc_ok=false
   3221 for ac_c_preproc_warn_flag in '' yes
   3222 do
   3223   # Use a header file that comes with gcc, so configuring glibc
   3224   # with a fresh cross-compiler works.
   3225   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3226   # <limits.h> exists even on freestanding compilers.
   3227   # On the NeXT, cc -E runs the code through the compiler's parser,
   3228   # not just through cpp. "Syntax error" is here to catch this case.
   3229   cat >conftest.$ac_ext <<_ACEOF
   3230 /* confdefs.h.  */
   3231 _ACEOF
   3232 cat confdefs.h >>conftest.$ac_ext
   3233 cat >>conftest.$ac_ext <<_ACEOF
   3234 /* end confdefs.h.  */
   3235 #ifdef __STDC__
   3236 # include <limits.h>
   3237 #else
   3238 # include <assert.h>
   3239 #endif
   3240 		     Syntax error
   3241 _ACEOF
   3242 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3243 case "(($ac_try" in
   3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3245   *) ac_try_echo=$ac_try;;
   3246 esac
   3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3249   ac_status=$?
   3250   grep -v '^ *+' conftest.er1 >conftest.err
   3251   rm -f conftest.er1
   3252   cat conftest.err >&5
   3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3254   (exit $ac_status); } >/dev/null; then
   3255   if test -s conftest.err; then
   3256     ac_cpp_err=$ac_c_preproc_warn_flag
   3257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3258   else
   3259     ac_cpp_err=
   3260   fi
   3261 else
   3262   ac_cpp_err=yes
   3263 fi
   3264 if test -z "$ac_cpp_err"; then
   3265   :
   3266 else
   3267   echo "$as_me: failed program was:" >&5
   3268 sed 's/^/| /' conftest.$ac_ext >&5
   3269 
   3270   # Broken: fails on valid input.
   3271 continue
   3272 fi
   3273 
   3274 rm -f conftest.err conftest.$ac_ext
   3275 
   3276   # OK, works on sane cases.  Now check whether nonexistent headers
   3277   # can be detected and how.
   3278   cat >conftest.$ac_ext <<_ACEOF
   3279 /* confdefs.h.  */
   3280 _ACEOF
   3281 cat confdefs.h >>conftest.$ac_ext
   3282 cat >>conftest.$ac_ext <<_ACEOF
   3283 /* end confdefs.h.  */
   3284 #include <ac_nonexistent.h>
   3285 _ACEOF
   3286 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3287 case "(($ac_try" in
   3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3289   *) ac_try_echo=$ac_try;;
   3290 esac
   3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3293   ac_status=$?
   3294   grep -v '^ *+' conftest.er1 >conftest.err
   3295   rm -f conftest.er1
   3296   cat conftest.err >&5
   3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3298   (exit $ac_status); } >/dev/null; then
   3299   if test -s conftest.err; then
   3300     ac_cpp_err=$ac_c_preproc_warn_flag
   3301     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3302   else
   3303     ac_cpp_err=
   3304   fi
   3305 else
   3306   ac_cpp_err=yes
   3307 fi
   3308 if test -z "$ac_cpp_err"; then
   3309   # Broken: success on invalid input.
   3310 continue
   3311 else
   3312   echo "$as_me: failed program was:" >&5
   3313 sed 's/^/| /' conftest.$ac_ext >&5
   3314 
   3315   # Passes both tests.
   3316 ac_preproc_ok=:
   3317 break
   3318 fi
   3319 
   3320 rm -f conftest.err conftest.$ac_ext
   3321 
   3322 done
   3323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3324 rm -f conftest.err conftest.$ac_ext
   3325 if $ac_preproc_ok; then
   3326   break
   3327 fi
   3328 
   3329     done
   3330     ac_cv_prog_CPP=$CPP
   3331 
   3332 fi
   3333   CPP=$ac_cv_prog_CPP
   3334 else
   3335   ac_cv_prog_CPP=$CPP
   3336 fi
   3337 { echo "$as_me:$LINENO: result: $CPP" >&5
   3338 echo "${ECHO_T}$CPP" >&6; }
   3339 ac_preproc_ok=false
   3340 for ac_c_preproc_warn_flag in '' yes
   3341 do
   3342   # Use a header file that comes with gcc, so configuring glibc
   3343   # with a fresh cross-compiler works.
   3344   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3345   # <limits.h> exists even on freestanding compilers.
   3346   # On the NeXT, cc -E runs the code through the compiler's parser,
   3347   # not just through cpp. "Syntax error" is here to catch this case.
   3348   cat >conftest.$ac_ext <<_ACEOF
   3349 /* confdefs.h.  */
   3350 _ACEOF
   3351 cat confdefs.h >>conftest.$ac_ext
   3352 cat >>conftest.$ac_ext <<_ACEOF
   3353 /* end confdefs.h.  */
   3354 #ifdef __STDC__
   3355 # include <limits.h>
   3356 #else
   3357 # include <assert.h>
   3358 #endif
   3359 		     Syntax error
   3360 _ACEOF
   3361 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3362 case "(($ac_try" in
   3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3364   *) ac_try_echo=$ac_try;;
   3365 esac
   3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3368   ac_status=$?
   3369   grep -v '^ *+' conftest.er1 >conftest.err
   3370   rm -f conftest.er1
   3371   cat conftest.err >&5
   3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3373   (exit $ac_status); } >/dev/null; then
   3374   if test -s conftest.err; then
   3375     ac_cpp_err=$ac_c_preproc_warn_flag
   3376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3377   else
   3378     ac_cpp_err=
   3379   fi
   3380 else
   3381   ac_cpp_err=yes
   3382 fi
   3383 if test -z "$ac_cpp_err"; then
   3384   :
   3385 else
   3386   echo "$as_me: failed program was:" >&5
   3387 sed 's/^/| /' conftest.$ac_ext >&5
   3388 
   3389   # Broken: fails on valid input.
   3390 continue
   3391 fi
   3392 
   3393 rm -f conftest.err conftest.$ac_ext
   3394 
   3395   # OK, works on sane cases.  Now check whether nonexistent headers
   3396   # can be detected and how.
   3397   cat >conftest.$ac_ext <<_ACEOF
   3398 /* confdefs.h.  */
   3399 _ACEOF
   3400 cat confdefs.h >>conftest.$ac_ext
   3401 cat >>conftest.$ac_ext <<_ACEOF
   3402 /* end confdefs.h.  */
   3403 #include <ac_nonexistent.h>
   3404 _ACEOF
   3405 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3406 case "(($ac_try" in
   3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3408   *) ac_try_echo=$ac_try;;
   3409 esac
   3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3411   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3412   ac_status=$?
   3413   grep -v '^ *+' conftest.er1 >conftest.err
   3414   rm -f conftest.er1
   3415   cat conftest.err >&5
   3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3417   (exit $ac_status); } >/dev/null; then
   3418   if test -s conftest.err; then
   3419     ac_cpp_err=$ac_c_preproc_warn_flag
   3420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3421   else
   3422     ac_cpp_err=
   3423   fi
   3424 else
   3425   ac_cpp_err=yes
   3426 fi
   3427 if test -z "$ac_cpp_err"; then
   3428   # Broken: success on invalid input.
   3429 continue
   3430 else
   3431   echo "$as_me: failed program was:" >&5
   3432 sed 's/^/| /' conftest.$ac_ext >&5
   3433 
   3434   # Passes both tests.
   3435 ac_preproc_ok=:
   3436 break
   3437 fi
   3438 
   3439 rm -f conftest.err conftest.$ac_ext
   3440 
   3441 done
   3442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3443 rm -f conftest.err conftest.$ac_ext
   3444 if $ac_preproc_ok; then
   3445   :
   3446 else
   3447   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   3448 See \`config.log' for more details." >&5
   3449 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   3450 See \`config.log' for more details." >&2;}
   3451    { (exit 1); exit 1; }; }
   3452 fi
   3453 
   3454 ac_ext=c
   3455 ac_cpp='$CPP $CPPFLAGS'
   3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3459 
   3460 
   3461 
   3462 
   3463 # Check whether --enable-polly was given.
   3464 if test "${enable_polly+set}" = set; then
   3465   enableval=$enable_polly;
   3466 else
   3467   enableval=default
   3468 fi
   3469 
   3470 case "$enableval" in
   3471   yes) ENABLE_POLLY=1
   3472  ;;
   3473   no)  ENABLE_POLLY=0
   3474  ;;
   3475   default) ENABLE_POLLY=1
   3476  ;;
   3477   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
   3478 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
   3479    { (exit 1); exit 1; }; } ;;
   3480 esac
   3481 
   3482 
   3483 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
   3484   LLVM_HAS_POLLY=1
   3485 
   3486   subdirs="$subdirs tools/polly"
   3487 
   3488 fi
   3489 
   3490 
   3491 # Make sure we can run config.sub.
   3492 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   3493   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
   3494 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   3495    { (exit 1); exit 1; }; }
   3496 
   3497 { echo "$as_me:$LINENO: checking build system type" >&5
   3498 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
   3499 if test "${ac_cv_build+set}" = set; then
   3500   echo $ECHO_N "(cached) $ECHO_C" >&6
   3501 else
   3502   ac_build_alias=$build_alias
   3503 test "x$ac_build_alias" = x &&
   3504   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   3505 test "x$ac_build_alias" = x &&
   3506   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
   3507 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   3508    { (exit 1); exit 1; }; }
   3509 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   3510   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
   3511 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   3512    { (exit 1); exit 1; }; }
   3513 
   3514 fi
   3515 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
   3516 echo "${ECHO_T}$ac_cv_build" >&6; }
   3517 case $ac_cv_build in
   3518 *-*-*) ;;
   3519 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
   3520 echo "$as_me: error: invalid value of canonical build" >&2;}
   3521    { (exit 1); exit 1; }; };;
   3522 esac
   3523 build=$ac_cv_build
   3524 ac_save_IFS=$IFS; IFS='-'
   3525 set x $ac_cv_build
   3526 shift
   3527 build_cpu=$1
   3528 build_vendor=$2
   3529 shift; shift
   3530 # Remember, the first character of IFS is used to create $*,
   3531 # except with old shells:
   3532 build_os=$*
   3533 IFS=$ac_save_IFS
   3534 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   3535 
   3536 
   3537 { echo "$as_me:$LINENO: checking host system type" >&5
   3538 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
   3539 if test "${ac_cv_host+set}" = set; then
   3540   echo $ECHO_N "(cached) $ECHO_C" >&6
   3541 else
   3542   if test "x$host_alias" = x; then
   3543   ac_cv_host=$ac_cv_build
   3544 else
   3545   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   3546     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
   3547 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   3548    { (exit 1); exit 1; }; }
   3549 fi
   3550 
   3551 fi
   3552 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
   3553 echo "${ECHO_T}$ac_cv_host" >&6; }
   3554 case $ac_cv_host in
   3555 *-*-*) ;;
   3556 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
   3557 echo "$as_me: error: invalid value of canonical host" >&2;}
   3558    { (exit 1); exit 1; }; };;
   3559 esac
   3560 host=$ac_cv_host
   3561 ac_save_IFS=$IFS; IFS='-'
   3562 set x $ac_cv_host
   3563 shift
   3564 host_cpu=$1
   3565 host_vendor=$2
   3566 shift; shift
   3567 # Remember, the first character of IFS is used to create $*,
   3568 # except with old shells:
   3569 host_os=$*
   3570 IFS=$ac_save_IFS
   3571 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   3572 
   3573 
   3574 { echo "$as_me:$LINENO: checking target system type" >&5
   3575 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
   3576 if test "${ac_cv_target+set}" = set; then
   3577   echo $ECHO_N "(cached) $ECHO_C" >&6
   3578 else
   3579   if test "x$target_alias" = x; then
   3580   ac_cv_target=$ac_cv_host
   3581 else
   3582   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   3583     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
   3584 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
   3585    { (exit 1); exit 1; }; }
   3586 fi
   3587 
   3588 fi
   3589 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
   3590 echo "${ECHO_T}$ac_cv_target" >&6; }
   3591 case $ac_cv_target in
   3592 *-*-*) ;;
   3593 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
   3594 echo "$as_me: error: invalid value of canonical target" >&2;}
   3595    { (exit 1); exit 1; }; };;
   3596 esac
   3597 target=$ac_cv_target
   3598 ac_save_IFS=$IFS; IFS='-'
   3599 set x $ac_cv_target
   3600 shift
   3601 target_cpu=$1
   3602 target_vendor=$2
   3603 shift; shift
   3604 # Remember, the first character of IFS is used to create $*,
   3605 # except with old shells:
   3606 target_os=$*
   3607 IFS=$ac_save_IFS
   3608 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   3609 
   3610 
   3611 # The aliases save the names the user supplied, while $host etc.
   3612 # will get canonicalized.
   3613 test -n "$target_alias" &&
   3614   test "$program_prefix$program_suffix$program_transform_name" = \
   3615     NONENONEs,x,x, &&
   3616   program_prefix=${target_alias}-
   3617 
   3618 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
   3619 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
   3620 if test "${llvm_cv_os_type+set}" = set; then
   3621   echo $ECHO_N "(cached) $ECHO_C" >&6
   3622 else
   3623   case $host in
   3624   *-*-aix*)
   3625     llvm_cv_link_all_option="-Wl,--whole-archive"
   3626     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3627     llvm_cv_os_type="AIX"
   3628     llvm_cv_platform_type="Unix" ;;
   3629   *-*-irix*)
   3630     llvm_cv_link_all_option="-Wl,--whole-archive"
   3631     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3632     llvm_cv_os_type="IRIX"
   3633     llvm_cv_platform_type="Unix" ;;
   3634   *-*-cygwin*)
   3635     llvm_cv_link_all_option="-Wl,--whole-archive"
   3636     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3637     llvm_cv_os_type="Cygwin"
   3638     llvm_cv_platform_type="Unix" ;;
   3639   *-*-darwin*)
   3640     llvm_cv_link_all_option="-Wl,-all_load"
   3641     llvm_cv_no_link_all_option="-Wl,-noall_load"
   3642     llvm_cv_os_type="Darwin"
   3643     llvm_cv_platform_type="Unix" ;;
   3644   *-*-minix*)
   3645     llvm_cv_link_all_option="-Wl,-all_load"
   3646     llvm_cv_no_link_all_option="-Wl,-noall_load"
   3647     llvm_cv_os_type="Minix"
   3648     llvm_cv_platform_type="Unix" ;;
   3649   *-*-freebsd* | *-*-kfreebsd-gnu)
   3650     llvm_cv_link_all_option="-Wl,--whole-archive"
   3651     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3652     llvm_cv_os_type="FreeBSD"
   3653     llvm_cv_platform_type="Unix" ;;
   3654   *-*-openbsd*)
   3655     llvm_cv_link_all_option="-Wl,--whole-archive"
   3656     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3657     llvm_cv_os_type="OpenBSD"
   3658     llvm_cv_platform_type="Unix" ;;
   3659   *-*-netbsd*)
   3660     llvm_cv_link_all_option="-Wl,--whole-archive"
   3661     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3662     llvm_cv_os_type="NetBSD"
   3663     llvm_cv_platform_type="Unix" ;;
   3664   *-*-dragonfly*)
   3665     llvm_cv_link_all_option="-Wl,--whole-archive"
   3666     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3667     llvm_cv_os_type="DragonFly"
   3668     llvm_cv_platform_type="Unix" ;;
   3669   *-*-hpux*)
   3670     llvm_cv_link_all_option="-Wl,--whole-archive"
   3671     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3672     llvm_cv_os_type="HP-UX"
   3673     llvm_cv_platform_type="Unix" ;;
   3674   *-*-interix*)
   3675     llvm_cv_link_all_option="-Wl,--whole-archive"
   3676     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3677     llvm_cv_os_type="Interix"
   3678     llvm_cv_platform_type="Unix" ;;
   3679   *-*-linux*)
   3680     llvm_cv_link_all_option="-Wl,--whole-archive"
   3681     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3682     llvm_cv_os_type="Linux"
   3683     llvm_cv_platform_type="Unix" ;;
   3684   *-*-gnu*)
   3685     llvm_cv_link_all_option="-Wl,--whole-archive"
   3686     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3687     llvm_cv_os_type="GNU"
   3688     llvm_cv_platform_type="Unix" ;;
   3689   *-*-solaris*)
   3690     llvm_cv_link_all_option="-Wl,-z,allextract"
   3691     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
   3692     llvm_cv_os_type="SunOS"
   3693     llvm_cv_platform_type="Unix" ;;
   3694   *-*-auroraux*)
   3695     llvm_cv_link_all_option="-Wl,-z,allextract"
   3696     llvm_cv_link_all_option="-Wl,-z,defaultextract"
   3697     llvm_cv_os_type="AuroraUX"
   3698     llvm_cv_platform_type="Unix" ;;
   3699   *-*-win32*)
   3700     llvm_cv_link_all_option="-Wl,--whole-archive"
   3701     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3702     llvm_cv_os_type="Win32"
   3703     llvm_cv_platform_type="Win32" ;;
   3704   *-*-mingw*)
   3705     llvm_cv_link_all_option="-Wl,--whole-archive"
   3706     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3707     llvm_cv_os_type="MingW"
   3708     llvm_cv_platform_type="Win32" ;;
   3709   *-*-haiku*)
   3710     llvm_cv_link_all_option="-Wl,--whole-archive"
   3711     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3712     llvm_cv_os_type="Haiku"
   3713     llvm_cv_platform_type="Unix" ;;
   3714   *-unknown-eabi*)
   3715     llvm_cv_link_all_option="-Wl,--whole-archive"
   3716     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3717     llvm_cv_os_type="Freestanding"
   3718     llvm_cv_platform_type="Unix" ;;
   3719   *-unknown-elf*)
   3720     llvm_cv_link_all_option="-Wl,--whole-archive"
   3721     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3722     llvm_cv_os_type="Freestanding"
   3723     llvm_cv_platform_type="Unix" ;;
   3724   *)
   3725     llvm_cv_link_all_option=""
   3726     llvm_cv_no_link_all_option=""
   3727     llvm_cv_os_type="Unknown"
   3728     llvm_cv_platform_type="Unknown" ;;
   3729 esac
   3730 fi
   3731 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
   3732 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
   3733 
   3734 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
   3735 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
   3736 if test "${llvm_cv_target_os_type+set}" = set; then
   3737   echo $ECHO_N "(cached) $ECHO_C" >&6
   3738 else
   3739   case $target in
   3740   *-*-aix*)
   3741     llvm_cv_target_os_type="AIX" ;;
   3742   *-*-irix*)
   3743     llvm_cv_target_os_type="IRIX" ;;
   3744   *-*-cygwin*)
   3745     llvm_cv_target_os_type="Cygwin" ;;
   3746   *-*-darwin*)
   3747     llvm_cv_target_os_type="Darwin" ;;
   3748   *-*-minix*)
   3749     llvm_cv_target_os_type="Minix" ;;
   3750   *-*-freebsd* | *-*-kfreebsd-gnu)
   3751     llvm_cv_target_os_type="FreeBSD" ;;
   3752   *-*-openbsd*)
   3753     llvm_cv_target_os_type="OpenBSD" ;;
   3754   *-*-netbsd*)
   3755     llvm_cv_target_os_type="NetBSD" ;;
   3756   *-*-dragonfly*)
   3757     llvm_cv_target_os_type="DragonFly" ;;
   3758   *-*-hpux*)
   3759     llvm_cv_target_os_type="HP-UX" ;;
   3760   *-*-interix*)
   3761     llvm_cv_target_os_type="Interix" ;;
   3762   *-*-linux*)
   3763     llvm_cv_target_os_type="Linux" ;;
   3764   *-*-gnu*)
   3765     llvm_cv_target_os_type="GNU" ;;
   3766   *-*-solaris*)
   3767     llvm_cv_target_os_type="SunOS" ;;
   3768   *-*-auroraux*)
   3769     llvm_cv_target_os_type="AuroraUX" ;;
   3770   *-*-win32*)
   3771     llvm_cv_target_os_type="Win32" ;;
   3772   *-*-mingw*)
   3773     llvm_cv_target_os_type="MingW" ;;
   3774   *-*-haiku*)
   3775     llvm_cv_target_os_type="Haiku" ;;
   3776   *-*-rtems*)
   3777     llvm_cv_target_os_type="RTEMS" ;;
   3778   *-*-nacl*)
   3779     llvm_cv_target_os_type="NativeClient" ;;
   3780   *-unknown-eabi*)
   3781     llvm_cv_target_os_type="Freestanding" ;;
   3782   *)
   3783     llvm_cv_target_os_type="Unknown" ;;
   3784 esac
   3785 fi
   3786 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
   3787 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
   3788 
   3789 if test "$llvm_cv_os_type" = "Unknown" ; then
   3790   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
   3791 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
   3792    { (exit 1); exit 1; }; }
   3793 fi
   3794 
   3795 OS=$llvm_cv_os_type
   3796 
   3797 HOST_OS=$llvm_cv_os_type
   3798 
   3799 TARGET_OS=$llvm_cv_target_os_type
   3800 
   3801 
   3802 LINKALL=$llvm_cv_link_all_option
   3803 
   3804 NOLINKALL=$llvm_cv_no_link_all_option
   3805 
   3806 
   3807 case $llvm_cv_platform_type in
   3808   Unix)
   3809 
   3810 cat >>confdefs.h <<\_ACEOF
   3811 #define LLVM_ON_UNIX 1
   3812 _ACEOF
   3813 
   3814     LLVM_ON_UNIX=1
   3815 
   3816     LLVM_ON_WIN32=0
   3817 
   3818     ;;
   3819   Win32)
   3820 
   3821 cat >>confdefs.h <<\_ACEOF
   3822 #define LLVM_ON_WIN32 1
   3823 _ACEOF
   3824 
   3825     LLVM_ON_UNIX=0
   3826 
   3827     LLVM_ON_WIN32=1
   3828 
   3829     ;;
   3830 esac
   3831 
   3832 { echo "$as_me:$LINENO: checking target architecture" >&5
   3833 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
   3834 if test "${llvm_cv_target_arch+set}" = set; then
   3835   echo $ECHO_N "(cached) $ECHO_C" >&6
   3836 else
   3837   case $target in
   3838   i?86-*)                 llvm_cv_target_arch="x86" ;;
   3839   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
   3840   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
   3841   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
   3842   arm*-*)                 llvm_cv_target_arch="ARM" ;;
   3843   mips-*)                 llvm_cv_target_arch="Mips" ;;
   3844   xcore-*)                llvm_cv_target_arch="XCore" ;;
   3845   msp430-*)               llvm_cv_target_arch="MSP430" ;;
   3846   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
   3847   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
   3848   ptx-*)                  llvm_cv_target_arch="PTX" ;;
   3849   *)                      llvm_cv_target_arch="Unknown" ;;
   3850 esac
   3851 fi
   3852 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
   3853 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
   3854 
   3855 if test "$llvm_cv_target_arch" = "Unknown" ; then
   3856   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
   3857 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
   3858 fi
   3859 
   3860 # Determine the LLVM native architecture for the target
   3861 case "$llvm_cv_target_arch" in
   3862     x86)     LLVM_NATIVE_ARCH="X86" ;;
   3863     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
   3864     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
   3865 esac
   3866 
   3867 ARCH=$llvm_cv_target_arch
   3868 
   3869 
   3870 
   3871 
   3872 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   3873 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
   3874 if test "${ac_cv_path_GREP+set}" = set; then
   3875   echo $ECHO_N "(cached) $ECHO_C" >&6
   3876 else
   3877   # Extract the first word of "grep ggrep" to use in msg output
   3878 if test -z "$GREP"; then
   3879 set dummy grep ggrep; ac_prog_name=$2
   3880 if test "${ac_cv_path_GREP+set}" = set; then
   3881   echo $ECHO_N "(cached) $ECHO_C" >&6
   3882 else
   3883   ac_path_GREP_found=false
   3884 # Loop through the user's path and test for each of PROGNAME-LIST
   3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3887 do
   3888   IFS=$as_save_IFS
   3889   test -z "$as_dir" && as_dir=.
   3890   for ac_prog in grep ggrep; do
   3891   for ac_exec_ext in '' $ac_executable_extensions; do
   3892     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3893     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
   3894     # Check for GNU ac_path_GREP and select it if it is found.
   3895   # Check for GNU $ac_path_GREP
   3896 case `"$ac_path_GREP" --version 2>&1` in
   3897 *GNU*)
   3898   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3899 *)
   3900   ac_count=0
   3901   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3902   while :
   3903   do
   3904     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3905     mv "conftest.tmp" "conftest.in"
   3906     cp "conftest.in" "conftest.nl"
   3907     echo 'GREP' >> "conftest.nl"
   3908     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3909     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3910     ac_count=`expr $ac_count + 1`
   3911     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3912       # Best one so far, save it but keep looking for a better one
   3913       ac_cv_path_GREP="$ac_path_GREP"
   3914       ac_path_GREP_max=$ac_count
   3915     fi
   3916     # 10*(2^10) chars as input seems more than enough
   3917     test $ac_count -gt 10 && break
   3918   done
   3919   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3920 esac
   3921 
   3922 
   3923     $ac_path_GREP_found && break 3
   3924   done
   3925 done
   3926 
   3927 done
   3928 IFS=$as_save_IFS
   3929 
   3930 
   3931 fi
   3932 
   3933 GREP="$ac_cv_path_GREP"
   3934 if test -z "$GREP"; then
   3935   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3936 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3937    { (exit 1); exit 1; }; }
   3938 fi
   3939 
   3940 else
   3941   ac_cv_path_GREP=$GREP
   3942 fi
   3943 
   3944 
   3945 fi
   3946 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   3947 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
   3948  GREP="$ac_cv_path_GREP"
   3949 
   3950 
   3951 { echo "$as_me:$LINENO: checking for egrep" >&5
   3952 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
   3953 if test "${ac_cv_path_EGREP+set}" = set; then
   3954   echo $ECHO_N "(cached) $ECHO_C" >&6
   3955 else
   3956   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3957    then ac_cv_path_EGREP="$GREP -E"
   3958    else
   3959      # Extract the first word of "egrep" to use in msg output
   3960 if test -z "$EGREP"; then
   3961 set dummy egrep; ac_prog_name=$2
   3962 if test "${ac_cv_path_EGREP+set}" = set; then
   3963   echo $ECHO_N "(cached) $ECHO_C" >&6
   3964 else
   3965   ac_path_EGREP_found=false
   3966 # Loop through the user's path and test for each of PROGNAME-LIST
   3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3969 do
   3970   IFS=$as_save_IFS
   3971   test -z "$as_dir" && as_dir=.
   3972   for ac_prog in egrep; do
   3973   for ac_exec_ext in '' $ac_executable_extensions; do
   3974     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3975     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
   3976     # Check for GNU ac_path_EGREP and select it if it is found.
   3977   # Check for GNU $ac_path_EGREP
   3978 case `"$ac_path_EGREP" --version 2>&1` in
   3979 *GNU*)
   3980   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3981 *)
   3982   ac_count=0
   3983   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3984   while :
   3985   do
   3986     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3987     mv "conftest.tmp" "conftest.in"
   3988     cp "conftest.in" "conftest.nl"
   3989     echo 'EGREP' >> "conftest.nl"
   3990     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3991     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3992     ac_count=`expr $ac_count + 1`
   3993     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3994       # Best one so far, save it but keep looking for a better one
   3995       ac_cv_path_EGREP="$ac_path_EGREP"
   3996       ac_path_EGREP_max=$ac_count
   3997     fi
   3998     # 10*(2^10) chars as input seems more than enough
   3999     test $ac_count -gt 10 && break
   4000   done
   4001   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4002 esac
   4003 
   4004 
   4005     $ac_path_EGREP_found && break 3
   4006   done
   4007 done
   4008 
   4009 done
   4010 IFS=$as_save_IFS
   4011 
   4012 
   4013 fi
   4014 
   4015 EGREP="$ac_cv_path_EGREP"
   4016 if test -z "$EGREP"; then
   4017   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   4018 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   4019    { (exit 1); exit 1; }; }
   4020 fi
   4021 
   4022 else
   4023   ac_cv_path_EGREP=$EGREP
   4024 fi
   4025 
   4026 
   4027    fi
   4028 fi
   4029 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   4030 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
   4031  EGREP="$ac_cv_path_EGREP"
   4032 
   4033 
   4034 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   4035 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
   4036 if test "${ac_cv_header_stdc+set}" = set; then
   4037   echo $ECHO_N "(cached) $ECHO_C" >&6
   4038 else
   4039   cat >conftest.$ac_ext <<_ACEOF
   4040 /* confdefs.h.  */
   4041 _ACEOF
   4042 cat confdefs.h >>conftest.$ac_ext
   4043 cat >>conftest.$ac_ext <<_ACEOF
   4044 /* end confdefs.h.  */
   4045 #include <stdlib.h>
   4046 #include <stdarg.h>
   4047 #include <string.h>
   4048 #include <float.h>
   4049 
   4050 int
   4051 main ()
   4052 {
   4053 
   4054   ;
   4055   return 0;
   4056 }
   4057 _ACEOF
   4058 rm -f conftest.$ac_objext
   4059 if { (ac_try="$ac_compile"
   4060 case "(($ac_try" in
   4061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4062   *) ac_try_echo=$ac_try;;
   4063 esac
   4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4065   (eval "$ac_compile") 2>conftest.er1
   4066   ac_status=$?
   4067   grep -v '^ *+' conftest.er1 >conftest.err
   4068   rm -f conftest.er1
   4069   cat conftest.err >&5
   4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4071   (exit $ac_status); } &&
   4072 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4073   { (case "(($ac_try" in
   4074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4075   *) ac_try_echo=$ac_try;;
   4076 esac
   4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4078   (eval "$ac_try") 2>&5
   4079   ac_status=$?
   4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4081   (exit $ac_status); }; } &&
   4082 	 { ac_try='test -s conftest.$ac_objext'
   4083   { (case "(($ac_try" in
   4084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4085   *) ac_try_echo=$ac_try;;
   4086 esac
   4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4088   (eval "$ac_try") 2>&5
   4089   ac_status=$?
   4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4091   (exit $ac_status); }; }; then
   4092   ac_cv_header_stdc=yes
   4093 else
   4094   echo "$as_me: failed program was:" >&5
   4095 sed 's/^/| /' conftest.$ac_ext >&5
   4096 
   4097 	ac_cv_header_stdc=no
   4098 fi
   4099 
   4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4101 
   4102 if test $ac_cv_header_stdc = yes; then
   4103   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4104   cat >conftest.$ac_ext <<_ACEOF
   4105 /* confdefs.h.  */
   4106 _ACEOF
   4107 cat confdefs.h >>conftest.$ac_ext
   4108 cat >>conftest.$ac_ext <<_ACEOF
   4109 /* end confdefs.h.  */
   4110 #include <string.h>
   4111 
   4112 _ACEOF
   4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4114   $EGREP "memchr" >/dev/null 2>&1; then
   4115   :
   4116 else
   4117   ac_cv_header_stdc=no
   4118 fi
   4119 rm -f conftest*
   4120 
   4121 fi
   4122 
   4123 if test $ac_cv_header_stdc = yes; then
   4124   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4125   cat >conftest.$ac_ext <<_ACEOF
   4126 /* confdefs.h.  */
   4127 _ACEOF
   4128 cat confdefs.h >>conftest.$ac_ext
   4129 cat >>conftest.$ac_ext <<_ACEOF
   4130 /* end confdefs.h.  */
   4131 #include <stdlib.h>
   4132 
   4133 _ACEOF
   4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4135   $EGREP "free" >/dev/null 2>&1; then
   4136   :
   4137 else
   4138   ac_cv_header_stdc=no
   4139 fi
   4140 rm -f conftest*
   4141 
   4142 fi
   4143 
   4144 if test $ac_cv_header_stdc = yes; then
   4145   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4146   if test "$cross_compiling" = yes; then
   4147   :
   4148 else
   4149   cat >conftest.$ac_ext <<_ACEOF
   4150 /* confdefs.h.  */
   4151 _ACEOF
   4152 cat confdefs.h >>conftest.$ac_ext
   4153 cat >>conftest.$ac_ext <<_ACEOF
   4154 /* end confdefs.h.  */
   4155 #include <ctype.h>
   4156 #include <stdlib.h>
   4157 #if ((' ' & 0x0FF) == 0x020)
   4158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4160 #else
   4161 # define ISLOWER(c) \
   4162 		   (('a' <= (c) && (c) <= 'i') \
   4163 		     || ('j' <= (c) && (c) <= 'r') \
   4164 		     || ('s' <= (c) && (c) <= 'z'))
   4165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4166 #endif
   4167 
   4168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4169 int
   4170 main ()
   4171 {
   4172   int i;
   4173   for (i = 0; i < 256; i++)
   4174     if (XOR (islower (i), ISLOWER (i))
   4175 	|| toupper (i) != TOUPPER (i))
   4176       return 2;
   4177   return 0;
   4178 }
   4179 _ACEOF
   4180 rm -f conftest$ac_exeext
   4181 if { (ac_try="$ac_link"
   4182 case "(($ac_try" in
   4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4184   *) ac_try_echo=$ac_try;;
   4185 esac
   4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4187   (eval "$ac_link") 2>&5
   4188   ac_status=$?
   4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4191   { (case "(($ac_try" in
   4192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4193   *) ac_try_echo=$ac_try;;
   4194 esac
   4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4196   (eval "$ac_try") 2>&5
   4197   ac_status=$?
   4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4199   (exit $ac_status); }; }; then
   4200   :
   4201 else
   4202   echo "$as_me: program exited with status $ac_status" >&5
   4203 echo "$as_me: failed program was:" >&5
   4204 sed 's/^/| /' conftest.$ac_ext >&5
   4205 
   4206 ( exit $ac_status )
   4207 ac_cv_header_stdc=no
   4208 fi
   4209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4210 fi
   4211 
   4212 
   4213 fi
   4214 fi
   4215 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   4216 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
   4217 if test $ac_cv_header_stdc = yes; then
   4218 
   4219 cat >>confdefs.h <<\_ACEOF
   4220 #define STDC_HEADERS 1
   4221 _ACEOF
   4222 
   4223 fi
   4224 
   4225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4226 
   4227 
   4228 
   4229 
   4230 
   4231 
   4232 
   4233 
   4234 
   4235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4236 		  inttypes.h stdint.h unistd.h
   4237 do
   4238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4242   echo $ECHO_N "(cached) $ECHO_C" >&6
   4243 else
   4244   cat >conftest.$ac_ext <<_ACEOF
   4245 /* confdefs.h.  */
   4246 _ACEOF
   4247 cat confdefs.h >>conftest.$ac_ext
   4248 cat >>conftest.$ac_ext <<_ACEOF
   4249 /* end confdefs.h.  */
   4250 $ac_includes_default
   4251 
   4252 #include <$ac_header>
   4253 _ACEOF
   4254 rm -f conftest.$ac_objext
   4255 if { (ac_try="$ac_compile"
   4256 case "(($ac_try" in
   4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4258   *) ac_try_echo=$ac_try;;
   4259 esac
   4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4261   (eval "$ac_compile") 2>conftest.er1
   4262   ac_status=$?
   4263   grep -v '^ *+' conftest.er1 >conftest.err
   4264   rm -f conftest.er1
   4265   cat conftest.err >&5
   4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4267   (exit $ac_status); } &&
   4268 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4269   { (case "(($ac_try" in
   4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4271   *) ac_try_echo=$ac_try;;
   4272 esac
   4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4274   (eval "$ac_try") 2>&5
   4275   ac_status=$?
   4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4277   (exit $ac_status); }; } &&
   4278 	 { ac_try='test -s conftest.$ac_objext'
   4279   { (case "(($ac_try" in
   4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4281   *) ac_try_echo=$ac_try;;
   4282 esac
   4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4284   (eval "$ac_try") 2>&5
   4285   ac_status=$?
   4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4287   (exit $ac_status); }; }; then
   4288   eval "$as_ac_Header=yes"
   4289 else
   4290   echo "$as_me: failed program was:" >&5
   4291 sed 's/^/| /' conftest.$ac_ext >&5
   4292 
   4293 	eval "$as_ac_Header=no"
   4294 fi
   4295 
   4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4297 fi
   4298 ac_res=`eval echo '${'$as_ac_Header'}'`
   4299 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4300 echo "${ECHO_T}$ac_res" >&6; }
   4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4302   cat >>confdefs.h <<_ACEOF
   4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4304 _ACEOF
   4305 
   4306 fi
   4307 
   4308 done
   4309 
   4310 
   4311 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
   4312 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
   4313 if test "${ac_cv_c_bigendian+set}" = set; then
   4314   echo $ECHO_N "(cached) $ECHO_C" >&6
   4315 else
   4316   # See if sys/param.h defines the BYTE_ORDER macro.
   4317 cat >conftest.$ac_ext <<_ACEOF
   4318 /* confdefs.h.  */
   4319 _ACEOF
   4320 cat confdefs.h >>conftest.$ac_ext
   4321 cat >>conftest.$ac_ext <<_ACEOF
   4322 /* end confdefs.h.  */
   4323 #include <sys/types.h>
   4324 #include <sys/param.h>
   4325 
   4326 int
   4327 main ()
   4328 {
   4329 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
   4330  bogus endian macros
   4331 #endif
   4332 
   4333   ;
   4334   return 0;
   4335 }
   4336 _ACEOF
   4337 rm -f conftest.$ac_objext
   4338 if { (ac_try="$ac_compile"
   4339 case "(($ac_try" in
   4340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4341   *) ac_try_echo=$ac_try;;
   4342 esac
   4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4344   (eval "$ac_compile") 2>conftest.er1
   4345   ac_status=$?
   4346   grep -v '^ *+' conftest.er1 >conftest.err
   4347   rm -f conftest.er1
   4348   cat conftest.err >&5
   4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4350   (exit $ac_status); } &&
   4351 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4352   { (case "(($ac_try" in
   4353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4354   *) ac_try_echo=$ac_try;;
   4355 esac
   4356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4357   (eval "$ac_try") 2>&5
   4358   ac_status=$?
   4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4360   (exit $ac_status); }; } &&
   4361 	 { ac_try='test -s conftest.$ac_objext'
   4362   { (case "(($ac_try" in
   4363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4364   *) ac_try_echo=$ac_try;;
   4365 esac
   4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4367   (eval "$ac_try") 2>&5
   4368   ac_status=$?
   4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4370   (exit $ac_status); }; }; then
   4371   # It does; now see whether it defined to BIG_ENDIAN or not.
   4372 cat >conftest.$ac_ext <<_ACEOF
   4373 /* confdefs.h.  */
   4374 _ACEOF
   4375 cat confdefs.h >>conftest.$ac_ext
   4376 cat >>conftest.$ac_ext <<_ACEOF
   4377 /* end confdefs.h.  */
   4378 #include <sys/types.h>
   4379 #include <sys/param.h>
   4380 
   4381 int
   4382 main ()
   4383 {
   4384 #if BYTE_ORDER != BIG_ENDIAN
   4385  not big endian
   4386 #endif
   4387 
   4388   ;
   4389   return 0;
   4390 }
   4391 _ACEOF
   4392 rm -f conftest.$ac_objext
   4393 if { (ac_try="$ac_compile"
   4394 case "(($ac_try" in
   4395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4396   *) ac_try_echo=$ac_try;;
   4397 esac
   4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4399   (eval "$ac_compile") 2>conftest.er1
   4400   ac_status=$?
   4401   grep -v '^ *+' conftest.er1 >conftest.err
   4402   rm -f conftest.er1
   4403   cat conftest.err >&5
   4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4405   (exit $ac_status); } &&
   4406 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4407   { (case "(($ac_try" in
   4408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4409   *) ac_try_echo=$ac_try;;
   4410 esac
   4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4412   (eval "$ac_try") 2>&5
   4413   ac_status=$?
   4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4415   (exit $ac_status); }; } &&
   4416 	 { ac_try='test -s conftest.$ac_objext'
   4417   { (case "(($ac_try" in
   4418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4419   *) ac_try_echo=$ac_try;;
   4420 esac
   4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4422   (eval "$ac_try") 2>&5
   4423   ac_status=$?
   4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4425   (exit $ac_status); }; }; then
   4426   ac_cv_c_bigendian=yes
   4427 else
   4428   echo "$as_me: failed program was:" >&5
   4429 sed 's/^/| /' conftest.$ac_ext >&5
   4430 
   4431 	ac_cv_c_bigendian=no
   4432 fi
   4433 
   4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4435 else
   4436   echo "$as_me: failed program was:" >&5
   4437 sed 's/^/| /' conftest.$ac_ext >&5
   4438 
   4439 	# It does not; compile a test program.
   4440 if test "$cross_compiling" = yes; then
   4441   # try to guess the endianness by grepping values into an object file
   4442   ac_cv_c_bigendian=unknown
   4443   cat >conftest.$ac_ext <<_ACEOF
   4444 /* confdefs.h.  */
   4445 _ACEOF
   4446 cat confdefs.h >>conftest.$ac_ext
   4447 cat >>conftest.$ac_ext <<_ACEOF
   4448 /* end confdefs.h.  */
   4449 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   4450 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   4451 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
   4452 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   4453 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   4454 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
   4455 int
   4456 main ()
   4457 {
   4458  _ascii (); _ebcdic ();
   4459   ;
   4460   return 0;
   4461 }
   4462 _ACEOF
   4463 rm -f conftest.$ac_objext
   4464 if { (ac_try="$ac_compile"
   4465 case "(($ac_try" in
   4466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4467   *) ac_try_echo=$ac_try;;
   4468 esac
   4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4470   (eval "$ac_compile") 2>conftest.er1
   4471   ac_status=$?
   4472   grep -v '^ *+' conftest.er1 >conftest.err
   4473   rm -f conftest.er1
   4474   cat conftest.err >&5
   4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4476   (exit $ac_status); } &&
   4477 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4478   { (case "(($ac_try" in
   4479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4480   *) ac_try_echo=$ac_try;;
   4481 esac
   4482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4483   (eval "$ac_try") 2>&5
   4484   ac_status=$?
   4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4486   (exit $ac_status); }; } &&
   4487 	 { ac_try='test -s conftest.$ac_objext'
   4488   { (case "(($ac_try" in
   4489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4490   *) ac_try_echo=$ac_try;;
   4491 esac
   4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4493   (eval "$ac_try") 2>&5
   4494   ac_status=$?
   4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4496   (exit $ac_status); }; }; then
   4497   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
   4498   ac_cv_c_bigendian=yes
   4499 fi
   4500 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   4501   if test "$ac_cv_c_bigendian" = unknown; then
   4502     ac_cv_c_bigendian=no
   4503   else
   4504     # finding both strings is unlikely to happen, but who knows?
   4505     ac_cv_c_bigendian=unknown
   4506   fi
   4507 fi
   4508 else
   4509   echo "$as_me: failed program was:" >&5
   4510 sed 's/^/| /' conftest.$ac_ext >&5
   4511 
   4512 
   4513 fi
   4514 
   4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4516 else
   4517   cat >conftest.$ac_ext <<_ACEOF
   4518 /* confdefs.h.  */
   4519 _ACEOF
   4520 cat confdefs.h >>conftest.$ac_ext
   4521 cat >>conftest.$ac_ext <<_ACEOF
   4522 /* end confdefs.h.  */
   4523 $ac_includes_default
   4524 int
   4525 main ()
   4526 {
   4527 
   4528   /* Are we little or big endian?  From Harbison&Steele.  */
   4529   union
   4530   {
   4531     long int l;
   4532     char c[sizeof (long int)];
   4533   } u;
   4534   u.l = 1;
   4535   return u.c[sizeof (long int) - 1] == 1;
   4536 
   4537   ;
   4538   return 0;
   4539 }
   4540 _ACEOF
   4541 rm -f conftest$ac_exeext
   4542 if { (ac_try="$ac_link"
   4543 case "(($ac_try" in
   4544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4545   *) ac_try_echo=$ac_try;;
   4546 esac
   4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4548   (eval "$ac_link") 2>&5
   4549   ac_status=$?
   4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4552   { (case "(($ac_try" in
   4553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4554   *) ac_try_echo=$ac_try;;
   4555 esac
   4556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4557   (eval "$ac_try") 2>&5
   4558   ac_status=$?
   4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4560   (exit $ac_status); }; }; then
   4561   ac_cv_c_bigendian=no
   4562 else
   4563   echo "$as_me: program exited with status $ac_status" >&5
   4564 echo "$as_me: failed program was:" >&5
   4565 sed 's/^/| /' conftest.$ac_ext >&5
   4566 
   4567 ( exit $ac_status )
   4568 ac_cv_c_bigendian=yes
   4569 fi
   4570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4571 fi
   4572 
   4573 
   4574 fi
   4575 
   4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4577 fi
   4578 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
   4579 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
   4580 case $ac_cv_c_bigendian in
   4581   yes)
   4582     ENDIAN=big
   4583  ;;
   4584   no)
   4585     ENDIAN=little
   4586  ;;
   4587   *)
   4588     { { echo "$as_me:$LINENO: error: unknown endianness
   4589 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
   4590 echo "$as_me: error: unknown endianness
   4591 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
   4592    { (exit 1); exit 1; }; } ;;
   4593 esac
   4594 
   4595 
   4596 if test "$cross_compiling" = yes; then
   4597   LLVM_CROSS_COMPILING=1
   4598 
   4599 
   4600 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
   4601 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
   4602 if test "${ac_cv_build_exeext+set}" = set; then
   4603   echo $ECHO_N "(cached) $ECHO_C" >&6
   4604 else
   4605   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
   4606   ac_cv_build_exeext=.exe
   4607 else
   4608   ac_build_prefix=${build_alias}-
   4609 
   4610   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
   4611 set dummy ${ac_build_prefix}gcc; ac_word=$2
   4612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4614 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
   4615   echo $ECHO_N "(cached) $ECHO_C" >&6
   4616 else
   4617   if test -n "$BUILD_CC"; then
   4618   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
   4619 else
   4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4621 for as_dir in $PATH
   4622 do
   4623   IFS=$as_save_IFS
   4624   test -z "$as_dir" && as_dir=.
   4625   for ac_exec_ext in '' $ac_executable_extensions; do
   4626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4627     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
   4628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4629     break 2
   4630   fi
   4631 done
   4632 done
   4633 IFS=$as_save_IFS
   4634 
   4635 fi
   4636 fi
   4637 BUILD_CC=$ac_cv_prog_BUILD_CC
   4638 if test -n "$BUILD_CC"; then
   4639   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
   4640 echo "${ECHO_T}$BUILD_CC" >&6; }
   4641 else
   4642   { echo "$as_me:$LINENO: result: no" >&5
   4643 echo "${ECHO_T}no" >&6; }
   4644 fi
   4645 
   4646 
   4647   if test -z "$BUILD_CC"; then
   4648      # Extract the first word of "gcc", so it can be a program name with args.
   4649 set dummy 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="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 "cc", so it can be a program name with args.
   4687 set dummy cc; 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   ac_prog_rejected=no
   4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4698 for as_dir in $PATH
   4699 do
   4700   IFS=$as_save_IFS
   4701   test -z "$as_dir" && as_dir=.
   4702   for ac_exec_ext in '' $ac_executable_extensions; do
   4703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4704     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   4705        ac_prog_rejected=yes
   4706        continue
   4707      fi
   4708     ac_cv_prog_BUILD_CC="cc"
   4709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4710     break 2
   4711   fi
   4712 done
   4713 done
   4714 IFS=$as_save_IFS
   4715 
   4716 if test $ac_prog_rejected = yes; then
   4717   # We found a bogon in the path, so make sure we never use it.
   4718   set dummy $ac_cv_prog_BUILD_CC
   4719   shift
   4720   if test $# != 0; then
   4721     # We chose a different compiler from the bogus one.
   4722     # However, it has the same basename, so the bogon will be chosen
   4723     # first if we set BUILD_CC to just the basename; use the full file name.
   4724     shift
   4725     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
   4726   fi
   4727 fi
   4728 fi
   4729 fi
   4730 BUILD_CC=$ac_cv_prog_BUILD_CC
   4731 if test -n "$BUILD_CC"; then
   4732   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
   4733 echo "${ECHO_T}$BUILD_CC" >&6; }
   4734 else
   4735   { echo "$as_me:$LINENO: result: no" >&5
   4736 echo "${ECHO_T}no" >&6; }
   4737 fi
   4738 
   4739 
   4740      fi
   4741   fi
   4742   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
   4743 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   4744    { (exit 1); exit 1; }; }
   4745   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   4746   rm -f conftest*
   4747   echo 'int main () { return 0; }' > conftest.$ac_ext
   4748   ac_cv_build_exeext=
   4749   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
   4750   (eval $ac_build_link) 2>&5
   4751   ac_status=$?
   4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4753   (exit $ac_status); }; then
   4754     for file in conftest.*; do
   4755       case $file in
   4756       *.c | *.o | *.obj | *.dSYM) ;;
   4757       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
   4758       esac
   4759     done
   4760   else
   4761     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
   4762 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
   4763    { (exit 1); exit 1; }; }
   4764   fi
   4765   rm -f conftest*
   4766   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
   4767 fi
   4768 fi
   4769 
   4770 BUILD_EXEEXT=""
   4771 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
   4772 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
   4773 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
   4774 ac_build_exeext=$BUILD_EXEEXT
   4775 
   4776   ac_build_prefix=${build_alias}-
   4777   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
   4778 set dummy ${ac_build_prefix}g++; ac_word=$2
   4779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4781 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
   4782   echo $ECHO_N "(cached) $ECHO_C" >&6
   4783 else
   4784   if test -n "$BUILD_CXX"; then
   4785   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
   4786 else
   4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4788 for as_dir in $PATH
   4789 do
   4790   IFS=$as_save_IFS
   4791   test -z "$as_dir" && as_dir=.
   4792   for ac_exec_ext in '' $ac_executable_extensions; do
   4793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4794     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
   4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4796     break 2
   4797   fi
   4798 done
   4799 done
   4800 IFS=$as_save_IFS
   4801 
   4802 fi
   4803 fi
   4804 BUILD_CXX=$ac_cv_prog_BUILD_CXX
   4805 if test -n "$BUILD_CXX"; then
   4806   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
   4807 echo "${ECHO_T}$BUILD_CXX" >&6; }
   4808 else
   4809   { echo "$as_me:$LINENO: result: no" >&5
   4810 echo "${ECHO_T}no" >&6; }
   4811 fi
   4812 
   4813 
   4814   if test -z "$BUILD_CXX"; then
   4815      # Extract the first word of "g++", so it can be a program name with args.
   4816 set dummy 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="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 "c++", so it can be a program name with args.
   4854 set dummy c++; 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   ac_prog_rejected=no
   4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4865 for as_dir in $PATH
   4866 do
   4867   IFS=$as_save_IFS
   4868   test -z "$as_dir" && as_dir=.
   4869   for ac_exec_ext in '' $ac_executable_extensions; do
   4870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4871     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
   4872        ac_prog_rejected=yes
   4873        continue
   4874      fi
   4875     ac_cv_prog_BUILD_CXX="c++"
   4876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4877     break 2
   4878   fi
   4879 done
   4880 done
   4881 IFS=$as_save_IFS
   4882 
   4883 if test $ac_prog_rejected = yes; then
   4884   # We found a bogon in the path, so make sure we never use it.
   4885   set dummy $ac_cv_prog_BUILD_CXX
   4886   shift
   4887   if test $# != 0; then
   4888     # We chose a different compiler from the bogus one.
   4889     # However, it has the same basename, so the bogon will be chosen
   4890     # first if we set BUILD_CXX to just the basename; use the full file name.
   4891     shift
   4892     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
   4893   fi
   4894 fi
   4895 fi
   4896 fi
   4897 BUILD_CXX=$ac_cv_prog_BUILD_CXX
   4898 if test -n "$BUILD_CXX"; then
   4899   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
   4900 echo "${ECHO_T}$BUILD_CXX" >&6; }
   4901 else
   4902   { echo "$as_me:$LINENO: result: no" >&5
   4903 echo "${ECHO_T}no" >&6; }
   4904 fi
   4905 
   4906 
   4907      fi
   4908   fi
   4909 else
   4910   LLVM_CROSS_COMPILING=0
   4911 
   4912 fi
   4913 
   4914 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
   4915   cvsbuild="yes"
   4916   optimize="no"
   4917   CVSBUILD=CVSBUILD=1
   4918 
   4919 else
   4920   cvsbuild="no"
   4921   optimize="yes"
   4922 fi
   4923 
   4924 
   4925 # Check whether --enable-libcpp was given.
   4926 if test "${enable_libcpp+set}" = set; then
   4927   enableval=$enable_libcpp;
   4928 else
   4929   enableval=default
   4930 fi
   4931 
   4932 case "$enableval" in
   4933   yes) ENABLE_LIBCPP=1
   4934  ;;
   4935   no)  ENABLE_LIBCPP=0
   4936  ;;
   4937   default) ENABLE_LIBCPP=0
   4938 ;;
   4939   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
   4940 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
   4941    { (exit 1); exit 1; }; } ;;
   4942 esac
   4943 
   4944 # Check whether --enable-optimized was given.
   4945 if test "${enable_optimized+set}" = set; then
   4946   enableval=$enable_optimized;
   4947 else
   4948   enableval=$optimize
   4949 fi
   4950 
   4951 if test ${enableval} = "no" ; then
   4952   ENABLE_OPTIMIZED=
   4953 
   4954 else
   4955   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
   4956 
   4957 fi
   4958 
   4959 # Check whether --enable-profiling was given.
   4960 if test "${enable_profiling+set}" = set; then
   4961   enableval=$enable_profiling;
   4962 else
   4963   enableval="no"
   4964 fi
   4965 
   4966 if test ${enableval} = "no" ; then
   4967   ENABLE_PROFILING=
   4968 
   4969 else
   4970   ENABLE_PROFILING=ENABLE_PROFILING=1
   4971 
   4972 fi
   4973 
   4974 # Check whether --enable-assertions was given.
   4975 if test "${enable_assertions+set}" = set; then
   4976   enableval=$enable_assertions;
   4977 else
   4978   enableval="yes"
   4979 fi
   4980 
   4981 if test ${enableval} = "yes" ; then
   4982   DISABLE_ASSERTIONS=
   4983 
   4984 else
   4985   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
   4986 
   4987 fi
   4988 
   4989 # Check whether --enable-expensive-checks was given.
   4990 if test "${enable_expensive_checks+set}" = set; then
   4991   enableval=$enable_expensive_checks;
   4992 else
   4993   enableval="no"
   4994 fi
   4995 
   4996 if test ${enableval} = "yes" ; then
   4997   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
   4998 
   4999   EXPENSIVE_CHECKS=yes
   5000 
   5001 else
   5002   ENABLE_EXPENSIVE_CHECKS=
   5003 
   5004   EXPENSIVE_CHECKS=no
   5005 
   5006 fi
   5007 
   5008 # Check whether --enable-debug-runtime was given.
   5009 if test "${enable_debug_runtime+set}" = set; then
   5010   enableval=$enable_debug_runtime;
   5011 else
   5012   enableval=no
   5013 fi
   5014 
   5015 if test ${enableval} = "no" ; then
   5016   DEBUG_RUNTIME=
   5017 
   5018 else
   5019   DEBUG_RUNTIME=DEBUG_RUNTIME=1
   5020 
   5021 fi
   5022 
   5023 # Check whether --enable-debug-symbols was given.
   5024 if test "${enable_debug_symbols+set}" = set; then
   5025   enableval=$enable_debug_symbols;
   5026 else
   5027   enableval=no
   5028 fi
   5029 
   5030 if test ${enableval} = "no" ; then
   5031   DEBUG_SYMBOLS=
   5032 
   5033 else
   5034   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
   5035 
   5036 fi
   5037 
   5038 # Check whether --enable-jit was given.
   5039 if test "${enable_jit+set}" = set; then
   5040   enableval=$enable_jit;
   5041 else
   5042   enableval=default
   5043 fi
   5044 
   5045 if test ${enableval} = "no"
   5046 then
   5047   JIT=
   5048 
   5049 else
   5050   case "$llvm_cv_target_arch" in
   5051     x86)         TARGET_HAS_JIT=1
   5052  ;;
   5053     Sparc)       TARGET_HAS_JIT=0
   5054  ;;
   5055     PowerPC)     TARGET_HAS_JIT=1
   5056  ;;
   5057     x86_64)      TARGET_HAS_JIT=1
   5058  ;;
   5059     ARM)         TARGET_HAS_JIT=1
   5060  ;;
   5061     Mips)        TARGET_HAS_JIT=1
   5062  ;;
   5063     XCore)       TARGET_HAS_JIT=0
   5064  ;;
   5065     MSP430)      TARGET_HAS_JIT=0
   5066  ;;
   5067     Hexagon)     TARGET_HAS_JIT=0
   5068  ;;
   5069     MBlaze)      TARGET_HAS_JIT=0
   5070  ;;
   5071     PTX)         TARGET_HAS_JIT=0
   5072  ;;
   5073     *)           TARGET_HAS_JIT=0
   5074  ;;
   5075   esac
   5076 fi
   5077 
   5078 # Check whether --enable-docs was given.
   5079 if test "${enable_docs+set}" = set; then
   5080   enableval=$enable_docs;
   5081 else
   5082   enableval=default
   5083 fi
   5084 
   5085 case "$enableval" in
   5086   yes) ENABLE_DOCS=1
   5087  ;;
   5088   no)  ENABLE_DOCS=0
   5089  ;;
   5090   default) ENABLE_DOCS=1
   5091  ;;
   5092   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
   5093 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
   5094    { (exit 1); exit 1; }; } ;;
   5095 esac
   5096 
   5097 # Check whether --enable-doxygen was given.
   5098 if test "${enable_doxygen+set}" = set; then
   5099   enableval=$enable_doxygen;
   5100 else
   5101   enableval=default
   5102 fi
   5103 
   5104 case "$enableval" in
   5105   yes) ENABLE_DOXYGEN=1
   5106  ;;
   5107   no)  ENABLE_DOXYGEN=0
   5108  ;;
   5109   default) ENABLE_DOXYGEN=0
   5110  ;;
   5111   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
   5112 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
   5113    { (exit 1); exit 1; }; } ;;
   5114 esac
   5115 
   5116 # Check whether --enable-threads was given.
   5117 if test "${enable_threads+set}" = set; then
   5118   enableval=$enable_threads;
   5119 else
   5120   enableval=default
   5121 fi
   5122 
   5123 case "$enableval" in
   5124   yes) ENABLE_THREADS=1
   5125  ;;
   5126   no)  ENABLE_THREADS=0
   5127  ;;
   5128   default) ENABLE_THREADS=1
   5129  ;;
   5130   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
   5131 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
   5132    { (exit 1); exit 1; }; } ;;
   5133 esac
   5134 
   5135 cat >>confdefs.h <<_ACEOF
   5136 #define ENABLE_THREADS $ENABLE_THREADS
   5137 _ACEOF
   5138 
   5139 
   5140 # Check whether --enable-pthreads was given.
   5141 if test "${enable_pthreads+set}" = set; then
   5142   enableval=$enable_pthreads;
   5143 else
   5144   enableval=default
   5145 fi
   5146 
   5147 case "$enableval" in
   5148   yes) ENABLE_PTHREADS=1
   5149  ;;
   5150   no)  ENABLE_PTHREADS=0
   5151  ;;
   5152   default) ENABLE_PTHREADS=1
   5153  ;;
   5154   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
   5155 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
   5156    { (exit 1); exit 1; }; } ;;
   5157 esac
   5158 
   5159 # Check whether --enable-pic was given.
   5160 if test "${enable_pic+set}" = set; then
   5161   enableval=$enable_pic;
   5162 else
   5163   enableval=default
   5164 fi
   5165 
   5166 case "$enableval" in
   5167   yes) ENABLE_PIC=1
   5168  ;;
   5169   no)  ENABLE_PIC=0
   5170  ;;
   5171   default) ENABLE_PIC=1
   5172  ;;
   5173   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
   5174 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
   5175    { (exit 1); exit 1; }; } ;;
   5176 esac
   5177 
   5178 cat >>confdefs.h <<_ACEOF
   5179 #define ENABLE_PIC $ENABLE_PIC
   5180 _ACEOF
   5181 
   5182 
   5183 # Check whether --enable-shared was given.
   5184 if test "${enable_shared+set}" = set; then
   5185   enableval=$enable_shared;
   5186 else
   5187   enableval=default
   5188 fi
   5189 
   5190 case "$enableval" in
   5191   yes) ENABLE_SHARED=1
   5192  ;;
   5193   no)  ENABLE_SHARED=0
   5194  ;;
   5195   default) ENABLE_SHARED=0
   5196  ;;
   5197   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
   5198 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
   5199    { (exit 1); exit 1; }; } ;;
   5200 esac
   5201 
   5202 # Check whether --enable-embed-stdcxx was given.
   5203 if test "${enable_embed_stdcxx+set}" = set; then
   5204   enableval=$enable_embed_stdcxx;
   5205 else
   5206   enableval=default
   5207 fi
   5208 
   5209 case "$enableval" in
   5210   yes) ENABLE_EMBED_STDCXX=1
   5211  ;;
   5212   no)  ENABLE_EMBED_STDCXX=0
   5213  ;;
   5214   default) ENABLE_EMBED_STDCXX=1
   5215  ;;
   5216   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
   5217 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
   5218    { (exit 1); exit 1; }; } ;;
   5219 esac
   5220 
   5221 # Check whether --enable-timestamps was given.
   5222 if test "${enable_timestamps+set}" = set; then
   5223   enableval=$enable_timestamps;
   5224 else
   5225   enableval=default
   5226 fi
   5227 
   5228 case "$enableval" in
   5229   yes) ENABLE_TIMESTAMPS=1
   5230  ;;
   5231   no)  ENABLE_TIMESTAMPS=0
   5232  ;;
   5233   default) ENABLE_TIMESTAMPS=1
   5234  ;;
   5235   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
   5236 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
   5237    { (exit 1); exit 1; }; } ;;
   5238 esac
   5239 
   5240 cat >>confdefs.h <<_ACEOF
   5241 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
   5242 _ACEOF
   5243 
   5244 
   5245 TARGETS_TO_BUILD=""
   5246 # Check whether --enable-targets was given.
   5247 if test "${enable_targets+set}" = set; then
   5248   enableval=$enable_targets;
   5249 else
   5250   enableval=all
   5251 fi
   5252 
   5253 if test "$enableval" = host-only ; then
   5254   enableval=host
   5255 fi
   5256 case "$enableval" in
   5257   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze PTX" ;;
   5258   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
   5259       case "$a_target" in
   5260         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5261         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5262         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
   5263         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
   5264         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
   5265         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
   5266         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
   5267         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
   5268         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
   5269         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
   5270         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
   5271         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
   5272         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
   5273         host) case "$llvm_cv_target_arch" in
   5274             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5275             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5276             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
   5277             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
   5278             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
   5279             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
   5280             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
   5281             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
   5282             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
   5283             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
   5284             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
   5285             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
   5286             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
   5287 echo "$as_me: error: Can not set target to build" >&2;}
   5288    { (exit 1); exit 1; }; } ;;
   5289           esac ;;
   5290         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
   5291 echo "$as_me: error: Unrecognized target $a_target" >&2;}
   5292    { (exit 1); exit 1; }; } ;;
   5293       esac
   5294   done
   5295   ;;
   5296 esac
   5297 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
   5298 
   5299 
   5300 # Determine whether we are building LLVM support for the native architecture.
   5301 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
   5302 for a_target in $TARGETS_TO_BUILD; do
   5303   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
   5304 
   5305 cat >>confdefs.h <<_ACEOF
   5306 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
   5307 _ACEOF
   5308 
   5309     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
   5310     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
   5311     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
   5312     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
   5313     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
   5314       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
   5315     fi
   5316     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
   5317       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
   5318     fi
   5319 
   5320 cat >>confdefs.h <<_ACEOF
   5321 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
   5322 _ACEOF
   5323 
   5324 
   5325 cat >>confdefs.h <<_ACEOF
   5326 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
   5327 _ACEOF
   5328 
   5329 
   5330 cat >>confdefs.h <<_ACEOF
   5331 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
   5332 _ACEOF
   5333 
   5334 
   5335 cat >>confdefs.h <<_ACEOF
   5336 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
   5337 _ACEOF
   5338 
   5339     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
   5340 
   5341 cat >>confdefs.h <<_ACEOF
   5342 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
   5343 _ACEOF
   5344 
   5345     fi
   5346     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
   5347 
   5348 cat >>confdefs.h <<_ACEOF
   5349 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
   5350 _ACEOF
   5351 
   5352     fi
   5353   fi
   5354 done
   5355 
   5356 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
   5357 # target feature def files.
   5358 LLVM_ENUM_TARGETS=""
   5359 LLVM_ENUM_ASM_PRINTERS=""
   5360 LLVM_ENUM_ASM_PARSERS=""
   5361 LLVM_ENUM_DISASSEMBLERS=""
   5362 for target_to_build in $TARGETS_TO_BUILD; do
   5363   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
   5364   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
   5365     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
   5366   fi
   5367   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
   5368     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
   5369   fi
   5370   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
   5371     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
   5372   fi
   5373 done
   5374 
   5375 
   5376 
   5377 
   5378 
   5379 
   5380 # Check whether --with-optimize-option was given.
   5381 if test "${with_optimize_option+set}" = set; then
   5382   withval=$with_optimize_option;
   5383 else
   5384   withval=default
   5385 fi
   5386 
   5387 { echo "$as_me:$LINENO: checking optimization flags" >&5
   5388 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
   5389 case "$withval" in
   5390   default)
   5391     case "$llvm_cv_os_type" in
   5392     FreeBSD) optimize_option=-O2 ;;
   5393     MingW) optimize_option=-O2 ;;
   5394     *)     optimize_option=-O3 ;;
   5395     esac ;;
   5396   *) optimize_option="$withval" ;;
   5397 esac
   5398 OPTIMIZE_OPTION=$optimize_option
   5399 
   5400 { echo "$as_me:$LINENO: result: $optimize_option" >&5
   5401 echo "${ECHO_T}$optimize_option" >&6; }
   5402 
   5403 
   5404 # Check whether --with-extra-options was given.
   5405 if test "${with_extra_options+set}" = set; then
   5406   withval=$with_extra_options;
   5407 else
   5408   withval=default
   5409 fi
   5410 
   5411 case "$withval" in
   5412   default) EXTRA_OPTIONS= ;;
   5413   *) EXTRA_OPTIONS=$withval ;;
   5414 esac
   5415 EXTRA_OPTIONS=$EXTRA_OPTIONS
   5416 
   5417 
   5418 
   5419 # Check whether --with-extra-ld-options was given.
   5420 if test "${with_extra_ld_options+set}" = set; then
   5421   withval=$with_extra_ld_options;
   5422 else
   5423   withval=default
   5424 fi
   5425 
   5426 case "$withval" in
   5427   default) EXTRA_LD_OPTIONS= ;;
   5428   *) EXTRA_LD_OPTIONS=$withval ;;
   5429 esac
   5430 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
   5431 
   5432 
   5433 # Check whether --enable-bindings was given.
   5434 if test "${enable_bindings+set}" = set; then
   5435   enableval=$enable_bindings;
   5436 else
   5437   enableval=default
   5438 fi
   5439 
   5440 BINDINGS_TO_BUILD=""
   5441 case "$enableval" in
   5442   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
   5443   all ) BINDINGS_TO_BUILD="ocaml" ;;
   5444   none | no) BINDINGS_TO_BUILD="" ;;
   5445   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
   5446       case "$a_binding" in
   5447         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
   5448         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
   5449 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
   5450    { (exit 1); exit 1; }; } ;;
   5451       esac
   5452   done
   5453   ;;
   5454 esac
   5455 
   5456 
   5457 # Check whether --with-ocaml-libdir was given.
   5458 if test "${with_ocaml_libdir+set}" = set; then
   5459   withval=$with_ocaml_libdir;
   5460 else
   5461   withval=auto
   5462 fi
   5463 
   5464 case "$withval" in
   5465   auto) with_ocaml_libdir="$withval" ;;
   5466   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
   5467   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
   5468 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
   5469    { (exit 1); exit 1; }; } ;;
   5470 esac
   5471 
   5472 
   5473 # Check whether --with-clang-resource-dir was given.
   5474 if test "${with_clang_resource_dir+set}" = set; then
   5475   withval=$with_clang_resource_dir;
   5476 else
   5477   withval=""
   5478 fi
   5479 
   5480 
   5481 cat >>confdefs.h <<_ACEOF
   5482 #define CLANG_RESOURCE_DIR "$withval"
   5483 _ACEOF
   5484 
   5485 
   5486 
   5487 # Check whether --with-c-include-dirs was given.
   5488 if test "${with_c_include_dirs+set}" = set; then
   5489   withval=$with_c_include_dirs;
   5490 else
   5491   withval=""
   5492 fi
   5493 
   5494 
   5495 cat >>confdefs.h <<_ACEOF
   5496 #define C_INCLUDE_DIRS "$withval"
   5497 _ACEOF
   5498 
   5499 
   5500 # Clang normally uses the system c++ headers and libraries. With this option,
   5501 # clang will use the ones provided by a gcc installation instead. This option should
   5502 # be passed the same value that was used with --prefix when configuring gcc.
   5503 
   5504 # Check whether --with-gcc-toolchain was given.
   5505 if test "${with_gcc_toolchain+set}" = set; then
   5506   withval=$with_gcc_toolchain;
   5507 else
   5508   withval=""
   5509 fi
   5510 
   5511 
   5512 cat >>confdefs.h <<_ACEOF
   5513 #define GCC_INSTALL_PREFIX "$withval"
   5514 _ACEOF
   5515 
   5516 
   5517 
   5518 # Check whether --with-binutils-include was given.
   5519 if test "${with_binutils_include+set}" = set; then
   5520   withval=$with_binutils_include;
   5521 else
   5522   withval=default
   5523 fi
   5524 
   5525 case "$withval" in
   5526   default) WITH_BINUTILS_INCDIR=default ;;
   5527   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
   5528   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
   5529 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
   5530    { (exit 1); exit 1; }; } ;;
   5531 esac
   5532 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
   5533   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
   5534 
   5535   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
   5536      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
   5537      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
   5538 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
   5539    { (exit 1); exit 1; }; };
   5540   fi
   5541 fi
   5542 
   5543 
   5544 # Check whether --with-bug-report-url was given.
   5545 if test "${with_bug_report_url+set}" = set; then
   5546   withval=$with_bug_report_url;
   5547 else
   5548   withval="http://llvm.org/bugs/"
   5549 fi
   5550 
   5551 
   5552 cat >>confdefs.h <<_ACEOF
   5553 #define BUG_REPORT_URL "$withval"
   5554 _ACEOF
   5555 
   5556 
   5557 # Check whether --enable-libffi was given.
   5558 if test "${enable_libffi+set}" = set; then
   5559   enableval=$enable_libffi; case "$enableval" in
   5560     yes) llvm_cv_enable_libffi="yes" ;;
   5561     no)  llvm_cv_enable_libffi="no"  ;;
   5562     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
   5563 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
   5564    { (exit 1); exit 1; }; } ;;
   5565   esac
   5566 else
   5567   llvm_cv_enable_libffi=no
   5568 fi
   5569 
   5570 
   5571 
   5572 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
   5573 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
   5574 if test "${lt_cv_path_NM+set}" = set; then
   5575   echo $ECHO_N "(cached) $ECHO_C" >&6
   5576 else
   5577   if test -n "$NM"; then
   5578   # Let the user override the test.
   5579   lt_cv_path_NM="$NM"
   5580 else
   5581   lt_nm_to_check="${ac_tool_prefix}nm"
   5582   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   5583     lt_nm_to_check="$lt_nm_to_check nm"
   5584   fi
   5585   for lt_tmp_nm in $lt_nm_to_check; do
   5586     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   5587     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   5588       IFS="$lt_save_ifs"
   5589       test -z "$ac_dir" && ac_dir=.
   5590       tmp_nm="$ac_dir/$lt_tmp_nm"
   5591       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   5592 	# Check to see if the nm accepts a BSD-compat flag.
   5593 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
   5594 	#   nm: unknown option "B" ignored
   5595 	# Tru64's nm complains that /dev/null is an invalid object file
   5596 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   5597 	*/dev/null* | *'Invalid file or object type'*)
   5598 	  lt_cv_path_NM="$tmp_nm -B"
   5599 	  break
   5600 	  ;;
   5601 	*)
   5602 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   5603 	  */dev/null*)
   5604 	    lt_cv_path_NM="$tmp_nm -p"
   5605 	    break
   5606 	    ;;
   5607 	  *)
   5608 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   5609 	    continue # so that we can try to find one that supports BSD flags
   5610 	    ;;
   5611 	  esac
   5612 	  ;;
   5613 	esac
   5614       fi
   5615     done
   5616     IFS="$lt_save_ifs"
   5617   done
   5618   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
   5619 fi
   5620 fi
   5621 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
   5622 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
   5623 NM="$lt_cv_path_NM"
   5624 
   5625 
   5626 
   5627 { echo "$as_me:$LINENO: checking for GNU make" >&5
   5628 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
   5629 if test "${llvm_cv_gnu_make_command+set}" = set; then
   5630   echo $ECHO_N "(cached) $ECHO_C" >&6
   5631 else
   5632   llvm_cv_gnu_make_command=''
   5633  for a in "$MAKE" make gmake gnumake ; do
   5634   if test -z "$a" ; then continue ; fi ;
   5635   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
   5636   then
   5637    llvm_cv_gnu_make_command=$a ;
   5638    break;
   5639   fi
   5640  done
   5641 fi
   5642 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
   5643 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
   5644  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
   5645    ifGNUmake='' ;
   5646  else
   5647    ifGNUmake='#' ;
   5648    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
   5649 echo "${ECHO_T}\"Not found\"" >&6; };
   5650  fi
   5651 
   5652 
   5653 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
   5654 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
   5655 LN_S=$as_ln_s
   5656 if test "$LN_S" = "ln -s"; then
   5657   { echo "$as_me:$LINENO: result: yes" >&5
   5658 echo "${ECHO_T}yes" >&6; }
   5659 else
   5660   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
   5661 echo "${ECHO_T}no, using $LN_S" >&6; }
   5662 fi
   5663 
   5664 # Extract the first word of "cmp", so it can be a program name with args.
   5665 set dummy cmp; ac_word=$2
   5666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5668 if test "${ac_cv_path_CMP+set}" = set; then
   5669   echo $ECHO_N "(cached) $ECHO_C" >&6
   5670 else
   5671   case $CMP in
   5672   [\\/]* | ?:[\\/]*)
   5673   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
   5674   ;;
   5675   *)
   5676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5677 for as_dir in $PATH
   5678 do
   5679   IFS=$as_save_IFS
   5680   test -z "$as_dir" && as_dir=.
   5681   for ac_exec_ext in '' $ac_executable_extensions; do
   5682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5683     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
   5684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5685     break 2
   5686   fi
   5687 done
   5688 done
   5689 IFS=$as_save_IFS
   5690 
   5691   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
   5692   ;;
   5693 esac
   5694 fi
   5695 CMP=$ac_cv_path_CMP
   5696 if test -n "$CMP"; then
   5697   { echo "$as_me:$LINENO: result: $CMP" >&5
   5698 echo "${ECHO_T}$CMP" >&6; }
   5699 else
   5700   { echo "$as_me:$LINENO: result: no" >&5
   5701 echo "${ECHO_T}no" >&6; }
   5702 fi
   5703 
   5704 
   5705 # Extract the first word of "cp", so it can be a program name with args.
   5706 set dummy cp; ac_word=$2
   5707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5709 if test "${ac_cv_path_CP+set}" = set; then
   5710   echo $ECHO_N "(cached) $ECHO_C" >&6
   5711 else
   5712   case $CP in
   5713   [\\/]* | ?:[\\/]*)
   5714   ac_cv_path_CP="$CP" # Let the user override the test with a path.
   5715   ;;
   5716   *)
   5717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5718 for as_dir in $PATH
   5719 do
   5720   IFS=$as_save_IFS
   5721   test -z "$as_dir" && as_dir=.
   5722   for ac_exec_ext in '' $ac_executable_extensions; do
   5723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5724     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
   5725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5726     break 2
   5727   fi
   5728 done
   5729 done
   5730 IFS=$as_save_IFS
   5731 
   5732   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
   5733   ;;
   5734 esac
   5735 fi
   5736 CP=$ac_cv_path_CP
   5737 if test -n "$CP"; then
   5738   { echo "$as_me:$LINENO: result: $CP" >&5
   5739 echo "${ECHO_T}$CP" >&6; }
   5740 else
   5741   { echo "$as_me:$LINENO: result: no" >&5
   5742 echo "${ECHO_T}no" >&6; }
   5743 fi
   5744 
   5745 
   5746 # Extract the first word of "date", so it can be a program name with args.
   5747 set dummy date; ac_word=$2
   5748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5750 if test "${ac_cv_path_DATE+set}" = set; then
   5751   echo $ECHO_N "(cached) $ECHO_C" >&6
   5752 else
   5753   case $DATE in
   5754   [\\/]* | ?:[\\/]*)
   5755   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
   5756   ;;
   5757   *)
   5758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5759 for as_dir in $PATH
   5760 do
   5761   IFS=$as_save_IFS
   5762   test -z "$as_dir" && as_dir=.
   5763   for ac_exec_ext in '' $ac_executable_extensions; do
   5764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5765     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
   5766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5767     break 2
   5768   fi
   5769 done
   5770 done
   5771 IFS=$as_save_IFS
   5772 
   5773   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
   5774   ;;
   5775 esac
   5776 fi
   5777 DATE=$ac_cv_path_DATE
   5778 if test -n "$DATE"; then
   5779   { echo "$as_me:$LINENO: result: $DATE" >&5
   5780 echo "${ECHO_T}$DATE" >&6; }
   5781 else
   5782   { echo "$as_me:$LINENO: result: no" >&5
   5783 echo "${ECHO_T}no" >&6; }
   5784 fi
   5785 
   5786 
   5787 # Extract the first word of "find", so it can be a program name with args.
   5788 set dummy find; ac_word=$2
   5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5791 if test "${ac_cv_path_FIND+set}" = set; then
   5792   echo $ECHO_N "(cached) $ECHO_C" >&6
   5793 else
   5794   case $FIND in
   5795   [\\/]* | ?:[\\/]*)
   5796   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
   5797   ;;
   5798   *)
   5799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5800 for as_dir in $PATH
   5801 do
   5802   IFS=$as_save_IFS
   5803   test -z "$as_dir" && as_dir=.
   5804   for ac_exec_ext in '' $ac_executable_extensions; do
   5805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5806     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
   5807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5808     break 2
   5809   fi
   5810 done
   5811 done
   5812 IFS=$as_save_IFS
   5813 
   5814   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
   5815   ;;
   5816 esac
   5817 fi
   5818 FIND=$ac_cv_path_FIND
   5819 if test -n "$FIND"; then
   5820   { echo "$as_me:$LINENO: result: $FIND" >&5
   5821 echo "${ECHO_T}$FIND" >&6; }
   5822 else
   5823   { echo "$as_me:$LINENO: result: no" >&5
   5824 echo "${ECHO_T}no" >&6; }
   5825 fi
   5826 
   5827 
   5828 # Extract the first word of "grep", so it can be a program name with args.
   5829 set dummy grep; ac_word=$2
   5830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5832 if test "${ac_cv_path_GREP+set}" = set; then
   5833   echo $ECHO_N "(cached) $ECHO_C" >&6
   5834 else
   5835   case $GREP in
   5836   [\\/]* | ?:[\\/]*)
   5837   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
   5838   ;;
   5839   *)
   5840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5841 for as_dir in $PATH
   5842 do
   5843   IFS=$as_save_IFS
   5844   test -z "$as_dir" && as_dir=.
   5845   for ac_exec_ext in '' $ac_executable_extensions; do
   5846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5847     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
   5848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5849     break 2
   5850   fi
   5851 done
   5852 done
   5853 IFS=$as_save_IFS
   5854 
   5855   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
   5856   ;;
   5857 esac
   5858 fi
   5859 GREP=$ac_cv_path_GREP
   5860 if test -n "$GREP"; then
   5861   { echo "$as_me:$LINENO: result: $GREP" >&5
   5862 echo "${ECHO_T}$GREP" >&6; }
   5863 else
   5864   { echo "$as_me:$LINENO: result: no" >&5
   5865 echo "${ECHO_T}no" >&6; }
   5866 fi
   5867 
   5868 
   5869 # Extract the first word of "mkdir", so it can be a program name with args.
   5870 set dummy mkdir; ac_word=$2
   5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5873 if test "${ac_cv_path_MKDIR+set}" = set; then
   5874   echo $ECHO_N "(cached) $ECHO_C" >&6
   5875 else
   5876   case $MKDIR in
   5877   [\\/]* | ?:[\\/]*)
   5878   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
   5879   ;;
   5880   *)
   5881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5882 for as_dir in $PATH
   5883 do
   5884   IFS=$as_save_IFS
   5885   test -z "$as_dir" && as_dir=.
   5886   for ac_exec_ext in '' $ac_executable_extensions; do
   5887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5888     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
   5889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5890     break 2
   5891   fi
   5892 done
   5893 done
   5894 IFS=$as_save_IFS
   5895 
   5896   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
   5897   ;;
   5898 esac
   5899 fi
   5900 MKDIR=$ac_cv_path_MKDIR
   5901 if test -n "$MKDIR"; then
   5902   { echo "$as_me:$LINENO: result: $MKDIR" >&5
   5903 echo "${ECHO_T}$MKDIR" >&6; }
   5904 else
   5905   { echo "$as_me:$LINENO: result: no" >&5
   5906 echo "${ECHO_T}no" >&6; }
   5907 fi
   5908 
   5909 
   5910 # Extract the first word of "mv", so it can be a program name with args.
   5911 set dummy mv; ac_word=$2
   5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5914 if test "${ac_cv_path_MV+set}" = set; then
   5915   echo $ECHO_N "(cached) $ECHO_C" >&6
   5916 else
   5917   case $MV in
   5918   [\\/]* | ?:[\\/]*)
   5919   ac_cv_path_MV="$MV" # Let the user override the test with a path.
   5920   ;;
   5921   *)
   5922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5923 for as_dir in $PATH
   5924 do
   5925   IFS=$as_save_IFS
   5926   test -z "$as_dir" && as_dir=.
   5927   for ac_exec_ext in '' $ac_executable_extensions; do
   5928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5929     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
   5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5931     break 2
   5932   fi
   5933 done
   5934 done
   5935 IFS=$as_save_IFS
   5936 
   5937   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
   5938   ;;
   5939 esac
   5940 fi
   5941 MV=$ac_cv_path_MV
   5942 if test -n "$MV"; then
   5943   { echo "$as_me:$LINENO: result: $MV" >&5
   5944 echo "${ECHO_T}$MV" >&6; }
   5945 else
   5946   { echo "$as_me:$LINENO: result: no" >&5
   5947 echo "${ECHO_T}no" >&6; }
   5948 fi
   5949 
   5950 
   5951 if test -n "$ac_tool_prefix"; then
   5952   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5953 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5956 if test "${ac_cv_prog_RANLIB+set}" = set; then
   5957   echo $ECHO_N "(cached) $ECHO_C" >&6
   5958 else
   5959   if test -n "$RANLIB"; then
   5960   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5961 else
   5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5963 for as_dir in $PATH
   5964 do
   5965   IFS=$as_save_IFS
   5966   test -z "$as_dir" && as_dir=.
   5967   for ac_exec_ext in '' $ac_executable_extensions; do
   5968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5969     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5971     break 2
   5972   fi
   5973 done
   5974 done
   5975 IFS=$as_save_IFS
   5976 
   5977 fi
   5978 fi
   5979 RANLIB=$ac_cv_prog_RANLIB
   5980 if test -n "$RANLIB"; then
   5981   { echo "$as_me:$LINENO: result: $RANLIB" >&5
   5982 echo "${ECHO_T}$RANLIB" >&6; }
   5983 else
   5984   { echo "$as_me:$LINENO: result: no" >&5
   5985 echo "${ECHO_T}no" >&6; }
   5986 fi
   5987 
   5988 
   5989 fi
   5990 if test -z "$ac_cv_prog_RANLIB"; then
   5991   ac_ct_RANLIB=$RANLIB
   5992   # Extract the first word of "ranlib", so it can be a program name with args.
   5993 set dummy ranlib; ac_word=$2
   5994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5996 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   5997   echo $ECHO_N "(cached) $ECHO_C" >&6
   5998 else
   5999   if test -n "$ac_ct_RANLIB"; then
   6000   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6001 else
   6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6003 for as_dir in $PATH
   6004 do
   6005   IFS=$as_save_IFS
   6006   test -z "$as_dir" && as_dir=.
   6007   for ac_exec_ext in '' $ac_executable_extensions; do
   6008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6009     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6011     break 2
   6012   fi
   6013 done
   6014 done
   6015 IFS=$as_save_IFS
   6016 
   6017 fi
   6018 fi
   6019 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6020 if test -n "$ac_ct_RANLIB"; then
   6021   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   6022 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
   6023 else
   6024   { echo "$as_me:$LINENO: result: no" >&5
   6025 echo "${ECHO_T}no" >&6; }
   6026 fi
   6027 
   6028   if test "x$ac_ct_RANLIB" = x; then
   6029     RANLIB=":"
   6030   else
   6031     case $cross_compiling:$ac_tool_warned in
   6032 yes:)
   6033 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6034 whose name does not start with the host triplet.  If you think this
   6035 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6036 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   6037 whose name does not start with the host triplet.  If you think this
   6038 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   6039 ac_tool_warned=yes ;;
   6040 esac
   6041     RANLIB=$ac_ct_RANLIB
   6042   fi
   6043 else
   6044   RANLIB="$ac_cv_prog_RANLIB"
   6045 fi
   6046 
   6047 if test -n "$ac_tool_prefix"; then
   6048   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   6049 set dummy ${ac_tool_prefix}ar; ac_word=$2
   6050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6052 if test "${ac_cv_prog_AR+set}" = set; then
   6053   echo $ECHO_N "(cached) $ECHO_C" >&6
   6054 else
   6055   if test -n "$AR"; then
   6056   ac_cv_prog_AR="$AR" # Let the user override the test.
   6057 else
   6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6059 for as_dir in $PATH
   6060 do
   6061   IFS=$as_save_IFS
   6062   test -z "$as_dir" && as_dir=.
   6063   for ac_exec_ext in '' $ac_executable_extensions; do
   6064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6065     ac_cv_prog_AR="${ac_tool_prefix}ar"
   6066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6067     break 2
   6068   fi
   6069 done
   6070 done
   6071 IFS=$as_save_IFS
   6072 
   6073 fi
   6074 fi
   6075 AR=$ac_cv_prog_AR
   6076 if test -n "$AR"; then
   6077   { echo "$as_me:$LINENO: result: $AR" >&5
   6078 echo "${ECHO_T}$AR" >&6; }
   6079 else
   6080   { echo "$as_me:$LINENO: result: no" >&5
   6081 echo "${ECHO_T}no" >&6; }
   6082 fi
   6083 
   6084 
   6085 fi
   6086 if test -z "$ac_cv_prog_AR"; then
   6087   ac_ct_AR=$AR
   6088   # Extract the first word of "ar", so it can be a program name with args.
   6089 set dummy ar; ac_word=$2
   6090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6092 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
   6093   echo $ECHO_N "(cached) $ECHO_C" >&6
   6094 else
   6095   if test -n "$ac_ct_AR"; then
   6096   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6097 else
   6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6099 for as_dir in $PATH
   6100 do
   6101   IFS=$as_save_IFS
   6102   test -z "$as_dir" && as_dir=.
   6103   for ac_exec_ext in '' $ac_executable_extensions; do
   6104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6105     ac_cv_prog_ac_ct_AR="ar"
   6106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6107     break 2
   6108   fi
   6109 done
   6110 done
   6111 IFS=$as_save_IFS
   6112 
   6113 fi
   6114 fi
   6115 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6116 if test -n "$ac_ct_AR"; then
   6117   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
   6118 echo "${ECHO_T}$ac_ct_AR" >&6; }
   6119 else
   6120   { echo "$as_me:$LINENO: result: no" >&5
   6121 echo "${ECHO_T}no" >&6; }
   6122 fi
   6123 
   6124   if test "x$ac_ct_AR" = x; then
   6125     AR="false"
   6126   else
   6127     case $cross_compiling:$ac_tool_warned in
   6128 yes:)
   6129 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6130 whose name does not start with the host triplet.  If you think this
   6131 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6132 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   6133 whose name does not start with the host triplet.  If you think this
   6134 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   6135 ac_tool_warned=yes ;;
   6136 esac
   6137     AR=$ac_ct_AR
   6138   fi
   6139 else
   6140   AR="$ac_cv_prog_AR"
   6141 fi
   6142 
   6143 # Extract the first word of "rm", so it can be a program name with args.
   6144 set dummy rm; ac_word=$2
   6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6147 if test "${ac_cv_path_RM+set}" = set; then
   6148   echo $ECHO_N "(cached) $ECHO_C" >&6
   6149 else
   6150   case $RM in
   6151   [\\/]* | ?:[\\/]*)
   6152   ac_cv_path_RM="$RM" # Let the user override the test with a path.
   6153   ;;
   6154   *)
   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_path_RM="$as_dir/$ac_word$ac_exec_ext"
   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   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
   6171   ;;
   6172 esac
   6173 fi
   6174 RM=$ac_cv_path_RM
   6175 if test -n "$RM"; then
   6176   { echo "$as_me:$LINENO: result: $RM" >&5
   6177 echo "${ECHO_T}$RM" >&6; }
   6178 else
   6179   { echo "$as_me:$LINENO: result: no" >&5
   6180 echo "${ECHO_T}no" >&6; }
   6181 fi
   6182 
   6183 
   6184 # Extract the first word of "sed", so it can be a program name with args.
   6185 set dummy sed; ac_word=$2
   6186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6188 if test "${ac_cv_path_SED+set}" = set; then
   6189   echo $ECHO_N "(cached) $ECHO_C" >&6
   6190 else
   6191   case $SED in
   6192   [\\/]* | ?:[\\/]*)
   6193   ac_cv_path_SED="$SED" # Let the user override the test with a path.
   6194   ;;
   6195   *)
   6196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6197 for as_dir in $PATH
   6198 do
   6199   IFS=$as_save_IFS
   6200   test -z "$as_dir" && as_dir=.
   6201   for ac_exec_ext in '' $ac_executable_extensions; do
   6202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6203     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
   6204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6205     break 2
   6206   fi
   6207 done
   6208 done
   6209 IFS=$as_save_IFS
   6210 
   6211   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
   6212   ;;
   6213 esac
   6214 fi
   6215 SED=$ac_cv_path_SED
   6216 if test -n "$SED"; then
   6217   { echo "$as_me:$LINENO: result: $SED" >&5
   6218 echo "${ECHO_T}$SED" >&6; }
   6219 else
   6220   { echo "$as_me:$LINENO: result: no" >&5
   6221 echo "${ECHO_T}no" >&6; }
   6222 fi
   6223 
   6224 
   6225 # Extract the first word of "tar", so it can be a program name with args.
   6226 set dummy tar; ac_word=$2
   6227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6229 if test "${ac_cv_path_TAR+set}" = set; then
   6230   echo $ECHO_N "(cached) $ECHO_C" >&6
   6231 else
   6232   case $TAR in
   6233   [\\/]* | ?:[\\/]*)
   6234   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
   6235   ;;
   6236   *)
   6237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6238 for as_dir in $PATH
   6239 do
   6240   IFS=$as_save_IFS
   6241   test -z "$as_dir" && as_dir=.
   6242   for ac_exec_ext in '' $ac_executable_extensions; do
   6243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6244     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
   6245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6246     break 2
   6247   fi
   6248 done
   6249 done
   6250 IFS=$as_save_IFS
   6251 
   6252   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
   6253   ;;
   6254 esac
   6255 fi
   6256 TAR=$ac_cv_path_TAR
   6257 if test -n "$TAR"; then
   6258   { echo "$as_me:$LINENO: result: $TAR" >&5
   6259 echo "${ECHO_T}$TAR" >&6; }
   6260 else
   6261   { echo "$as_me:$LINENO: result: no" >&5
   6262 echo "${ECHO_T}no" >&6; }
   6263 fi
   6264 
   6265 
   6266 # Extract the first word of "pwd", so it can be a program name with args.
   6267 set dummy pwd; ac_word=$2
   6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6270 if test "${ac_cv_path_BINPWD+set}" = set; then
   6271   echo $ECHO_N "(cached) $ECHO_C" >&6
   6272 else
   6273   case $BINPWD in
   6274   [\\/]* | ?:[\\/]*)
   6275   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
   6276   ;;
   6277   *)
   6278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6279 for as_dir in $PATH
   6280 do
   6281   IFS=$as_save_IFS
   6282   test -z "$as_dir" && as_dir=.
   6283   for ac_exec_ext in '' $ac_executable_extensions; do
   6284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6285     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
   6286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6287     break 2
   6288   fi
   6289 done
   6290 done
   6291 IFS=$as_save_IFS
   6292 
   6293   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
   6294   ;;
   6295 esac
   6296 fi
   6297 BINPWD=$ac_cv_path_BINPWD
   6298 if test -n "$BINPWD"; then
   6299   { echo "$as_me:$LINENO: result: $BINPWD" >&5
   6300 echo "${ECHO_T}$BINPWD" >&6; }
   6301 else
   6302   { echo "$as_me:$LINENO: result: no" >&5
   6303 echo "${ECHO_T}no" >&6; }
   6304 fi
   6305 
   6306 
   6307 
   6308 # Extract the first word of "Graphviz", so it can be a program name with args.
   6309 set dummy Graphviz; ac_word=$2
   6310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6312 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
   6313   echo $ECHO_N "(cached) $ECHO_C" >&6
   6314 else
   6315   case $GRAPHVIZ in
   6316   [\\/]* | ?:[\\/]*)
   6317   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
   6318   ;;
   6319   *)
   6320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6321 for as_dir in $PATH
   6322 do
   6323   IFS=$as_save_IFS
   6324   test -z "$as_dir" && as_dir=.
   6325   for ac_exec_ext in '' $ac_executable_extensions; do
   6326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6327     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
   6328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6329     break 2
   6330   fi
   6331 done
   6332 done
   6333 IFS=$as_save_IFS
   6334 
   6335   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
   6336   ;;
   6337 esac
   6338 fi
   6339 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
   6340 if test -n "$GRAPHVIZ"; then
   6341   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
   6342 echo "${ECHO_T}$GRAPHVIZ" >&6; }
   6343 else
   6344   { echo "$as_me:$LINENO: result: no" >&5
   6345 echo "${ECHO_T}no" >&6; }
   6346 fi
   6347 
   6348 
   6349 if test "$GRAPHVIZ" != "echo Graphviz" ; then
   6350 
   6351 cat >>confdefs.h <<\_ACEOF
   6352 #define HAVE_GRAPHVIZ 1
   6353 _ACEOF
   6354 
   6355     if test "$llvm_cv_os_type" = "MingW" ; then
   6356     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6357   fi
   6358 
   6359 cat >>confdefs.h <<_ACEOF
   6360 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
   6361 _ACEOF
   6362 
   6363 fi
   6364 # Extract the first word of "dot", so it can be a program name with args.
   6365 set dummy dot; ac_word=$2
   6366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6368 if test "${ac_cv_path_DOT+set}" = set; then
   6369   echo $ECHO_N "(cached) $ECHO_C" >&6
   6370 else
   6371   case $DOT in
   6372   [\\/]* | ?:[\\/]*)
   6373   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
   6374   ;;
   6375   *)
   6376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6377 for as_dir in $PATH
   6378 do
   6379   IFS=$as_save_IFS
   6380   test -z "$as_dir" && as_dir=.
   6381   for ac_exec_ext in '' $ac_executable_extensions; do
   6382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6383     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
   6384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6385     break 2
   6386   fi
   6387 done
   6388 done
   6389 IFS=$as_save_IFS
   6390 
   6391   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
   6392   ;;
   6393 esac
   6394 fi
   6395 DOT=$ac_cv_path_DOT
   6396 if test -n "$DOT"; then
   6397   { echo "$as_me:$LINENO: result: $DOT" >&5
   6398 echo "${ECHO_T}$DOT" >&6; }
   6399 else
   6400   { echo "$as_me:$LINENO: result: no" >&5
   6401 echo "${ECHO_T}no" >&6; }
   6402 fi
   6403 
   6404 
   6405 if test "$DOT" != "echo dot" ; then
   6406 
   6407 cat >>confdefs.h <<\_ACEOF
   6408 #define HAVE_DOT 1
   6409 _ACEOF
   6410 
   6411     if test "$llvm_cv_os_type" = "MingW" ; then
   6412     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6413   fi
   6414 
   6415 cat >>confdefs.h <<_ACEOF
   6416 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
   6417 _ACEOF
   6418 
   6419 fi
   6420 # Extract the first word of "fdp", so it can be a program name with args.
   6421 set dummy fdp; ac_word=$2
   6422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6424 if test "${ac_cv_path_FDP+set}" = set; then
   6425   echo $ECHO_N "(cached) $ECHO_C" >&6
   6426 else
   6427   case $FDP in
   6428   [\\/]* | ?:[\\/]*)
   6429   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
   6430   ;;
   6431   *)
   6432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6433 for as_dir in $PATH
   6434 do
   6435   IFS=$as_save_IFS
   6436   test -z "$as_dir" && as_dir=.
   6437   for ac_exec_ext in '' $ac_executable_extensions; do
   6438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6439     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
   6440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6441     break 2
   6442   fi
   6443 done
   6444 done
   6445 IFS=$as_save_IFS
   6446 
   6447   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
   6448   ;;
   6449 esac
   6450 fi
   6451 FDP=$ac_cv_path_FDP
   6452 if test -n "$FDP"; then
   6453   { echo "$as_me:$LINENO: result: $FDP" >&5
   6454 echo "${ECHO_T}$FDP" >&6; }
   6455 else
   6456   { echo "$as_me:$LINENO: result: no" >&5
   6457 echo "${ECHO_T}no" >&6; }
   6458 fi
   6459 
   6460 
   6461 if test "$FDP" != "echo fdp" ; then
   6462 
   6463 cat >>confdefs.h <<\_ACEOF
   6464 #define HAVE_FDP 1
   6465 _ACEOF
   6466 
   6467     if test "$llvm_cv_os_type" = "MingW" ; then
   6468     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6469   fi
   6470 
   6471 cat >>confdefs.h <<_ACEOF
   6472 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
   6473 _ACEOF
   6474 
   6475 fi
   6476 # Extract the first word of "neato", so it can be a program name with args.
   6477 set dummy neato; ac_word=$2
   6478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6480 if test "${ac_cv_path_NEATO+set}" = set; then
   6481   echo $ECHO_N "(cached) $ECHO_C" >&6
   6482 else
   6483   case $NEATO in
   6484   [\\/]* | ?:[\\/]*)
   6485   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
   6486   ;;
   6487   *)
   6488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6489 for as_dir in $PATH
   6490 do
   6491   IFS=$as_save_IFS
   6492   test -z "$as_dir" && as_dir=.
   6493   for ac_exec_ext in '' $ac_executable_extensions; do
   6494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6495     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
   6496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6497     break 2
   6498   fi
   6499 done
   6500 done
   6501 IFS=$as_save_IFS
   6502 
   6503   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
   6504   ;;
   6505 esac
   6506 fi
   6507 NEATO=$ac_cv_path_NEATO
   6508 if test -n "$NEATO"; then
   6509   { echo "$as_me:$LINENO: result: $NEATO" >&5
   6510 echo "${ECHO_T}$NEATO" >&6; }
   6511 else
   6512   { echo "$as_me:$LINENO: result: no" >&5
   6513 echo "${ECHO_T}no" >&6; }
   6514 fi
   6515 
   6516 
   6517 if test "$NEATO" != "echo neato" ; then
   6518 
   6519 cat >>confdefs.h <<\_ACEOF
   6520 #define HAVE_NEATO 1
   6521 _ACEOF
   6522 
   6523     if test "$llvm_cv_os_type" = "MingW" ; then
   6524     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6525   fi
   6526 
   6527 cat >>confdefs.h <<_ACEOF
   6528 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
   6529 _ACEOF
   6530 
   6531 fi
   6532 # Extract the first word of "twopi", so it can be a program name with args.
   6533 set dummy twopi; ac_word=$2
   6534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6536 if test "${ac_cv_path_TWOPI+set}" = set; then
   6537   echo $ECHO_N "(cached) $ECHO_C" >&6
   6538 else
   6539   case $TWOPI in
   6540   [\\/]* | ?:[\\/]*)
   6541   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
   6542   ;;
   6543   *)
   6544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6545 for as_dir in $PATH
   6546 do
   6547   IFS=$as_save_IFS
   6548   test -z "$as_dir" && as_dir=.
   6549   for ac_exec_ext in '' $ac_executable_extensions; do
   6550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6551     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
   6552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6553     break 2
   6554   fi
   6555 done
   6556 done
   6557 IFS=$as_save_IFS
   6558 
   6559   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
   6560   ;;
   6561 esac
   6562 fi
   6563 TWOPI=$ac_cv_path_TWOPI
   6564 if test -n "$TWOPI"; then
   6565   { echo "$as_me:$LINENO: result: $TWOPI" >&5
   6566 echo "${ECHO_T}$TWOPI" >&6; }
   6567 else
   6568   { echo "$as_me:$LINENO: result: no" >&5
   6569 echo "${ECHO_T}no" >&6; }
   6570 fi
   6571 
   6572 
   6573 if test "$TWOPI" != "echo twopi" ; then
   6574 
   6575 cat >>confdefs.h <<\_ACEOF
   6576 #define HAVE_TWOPI 1
   6577 _ACEOF
   6578 
   6579     if test "$llvm_cv_os_type" = "MingW" ; then
   6580     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6581   fi
   6582 
   6583 cat >>confdefs.h <<_ACEOF
   6584 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
   6585 _ACEOF
   6586 
   6587 fi
   6588 # Extract the first word of "circo", so it can be a program name with args.
   6589 set dummy circo; ac_word=$2
   6590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6592 if test "${ac_cv_path_CIRCO+set}" = set; then
   6593   echo $ECHO_N "(cached) $ECHO_C" >&6
   6594 else
   6595   case $CIRCO in
   6596   [\\/]* | ?:[\\/]*)
   6597   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
   6598   ;;
   6599   *)
   6600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6601 for as_dir in $PATH
   6602 do
   6603   IFS=$as_save_IFS
   6604   test -z "$as_dir" && as_dir=.
   6605   for ac_exec_ext in '' $ac_executable_extensions; do
   6606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6607     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
   6608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6609     break 2
   6610   fi
   6611 done
   6612 done
   6613 IFS=$as_save_IFS
   6614 
   6615   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
   6616   ;;
   6617 esac
   6618 fi
   6619 CIRCO=$ac_cv_path_CIRCO
   6620 if test -n "$CIRCO"; then
   6621   { echo "$as_me:$LINENO: result: $CIRCO" >&5
   6622 echo "${ECHO_T}$CIRCO" >&6; }
   6623 else
   6624   { echo "$as_me:$LINENO: result: no" >&5
   6625 echo "${ECHO_T}no" >&6; }
   6626 fi
   6627 
   6628 
   6629 if test "$CIRCO" != "echo circo" ; then
   6630 
   6631 cat >>confdefs.h <<\_ACEOF
   6632 #define HAVE_CIRCO 1
   6633 _ACEOF
   6634 
   6635     if test "$llvm_cv_os_type" = "MingW" ; then
   6636     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6637   fi
   6638 
   6639 cat >>confdefs.h <<_ACEOF
   6640 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
   6641 _ACEOF
   6642 
   6643 fi
   6644 for ac_prog in gv gsview32
   6645 do
   6646   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6647 set dummy $ac_prog; ac_word=$2
   6648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6650 if test "${ac_cv_path_GV+set}" = set; then
   6651   echo $ECHO_N "(cached) $ECHO_C" >&6
   6652 else
   6653   case $GV in
   6654   [\\/]* | ?:[\\/]*)
   6655   ac_cv_path_GV="$GV" # Let the user override the test with a path.
   6656   ;;
   6657   *)
   6658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6659 for as_dir in $PATH
   6660 do
   6661   IFS=$as_save_IFS
   6662   test -z "$as_dir" && as_dir=.
   6663   for ac_exec_ext in '' $ac_executable_extensions; do
   6664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6665     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
   6666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6667     break 2
   6668   fi
   6669 done
   6670 done
   6671 IFS=$as_save_IFS
   6672 
   6673   ;;
   6674 esac
   6675 fi
   6676 GV=$ac_cv_path_GV
   6677 if test -n "$GV"; then
   6678   { echo "$as_me:$LINENO: result: $GV" >&5
   6679 echo "${ECHO_T}$GV" >&6; }
   6680 else
   6681   { echo "$as_me:$LINENO: result: no" >&5
   6682 echo "${ECHO_T}no" >&6; }
   6683 fi
   6684 
   6685 
   6686   test -n "$GV" && break
   6687 done
   6688 test -n "$GV" || GV="echo gv"
   6689 
   6690 if test "$GV" != "echo gv" ; then
   6691 
   6692 cat >>confdefs.h <<\_ACEOF
   6693 #define HAVE_GV 1
   6694 _ACEOF
   6695 
   6696     if test "$llvm_cv_os_type" = "MingW" ; then
   6697     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6698   fi
   6699 
   6700 cat >>confdefs.h <<_ACEOF
   6701 #define LLVM_PATH_GV "$GV${EXEEXT}"
   6702 _ACEOF
   6703 
   6704 fi
   6705 # Extract the first word of "dotty", so it can be a program name with args.
   6706 set dummy dotty; ac_word=$2
   6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6709 if test "${ac_cv_path_DOTTY+set}" = set; then
   6710   echo $ECHO_N "(cached) $ECHO_C" >&6
   6711 else
   6712   case $DOTTY in
   6713   [\\/]* | ?:[\\/]*)
   6714   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
   6715   ;;
   6716   *)
   6717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6718 for as_dir in $PATH
   6719 do
   6720   IFS=$as_save_IFS
   6721   test -z "$as_dir" && as_dir=.
   6722   for ac_exec_ext in '' $ac_executable_extensions; do
   6723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6724     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
   6725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6726     break 2
   6727   fi
   6728 done
   6729 done
   6730 IFS=$as_save_IFS
   6731 
   6732   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
   6733   ;;
   6734 esac
   6735 fi
   6736 DOTTY=$ac_cv_path_DOTTY
   6737 if test -n "$DOTTY"; then
   6738   { echo "$as_me:$LINENO: result: $DOTTY" >&5
   6739 echo "${ECHO_T}$DOTTY" >&6; }
   6740 else
   6741   { echo "$as_me:$LINENO: result: no" >&5
   6742 echo "${ECHO_T}no" >&6; }
   6743 fi
   6744 
   6745 
   6746 if test "$DOTTY" != "echo dotty" ; then
   6747 
   6748 cat >>confdefs.h <<\_ACEOF
   6749 #define HAVE_DOTTY 1
   6750 _ACEOF
   6751 
   6752     if test "$llvm_cv_os_type" = "MingW" ; then
   6753     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6754   fi
   6755 
   6756 cat >>confdefs.h <<_ACEOF
   6757 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
   6758 _ACEOF
   6759 
   6760 fi
   6761 # Extract the first word of "xdot.py", so it can be a program name with args.
   6762 set dummy xdot.py; ac_word=$2
   6763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6765 if test "${ac_cv_path_XDOT_PY+set}" = set; then
   6766   echo $ECHO_N "(cached) $ECHO_C" >&6
   6767 else
   6768   case $XDOT_PY in
   6769   [\\/]* | ?:[\\/]*)
   6770   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
   6771   ;;
   6772   *)
   6773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6774 for as_dir in $PATH
   6775 do
   6776   IFS=$as_save_IFS
   6777   test -z "$as_dir" && as_dir=.
   6778   for ac_exec_ext in '' $ac_executable_extensions; do
   6779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6780     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
   6781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6782     break 2
   6783   fi
   6784 done
   6785 done
   6786 IFS=$as_save_IFS
   6787 
   6788   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
   6789   ;;
   6790 esac
   6791 fi
   6792 XDOT_PY=$ac_cv_path_XDOT_PY
   6793 if test -n "$XDOT_PY"; then
   6794   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
   6795 echo "${ECHO_T}$XDOT_PY" >&6; }
   6796 else
   6797   { echo "$as_me:$LINENO: result: no" >&5
   6798 echo "${ECHO_T}no" >&6; }
   6799 fi
   6800 
   6801 
   6802 if test "$XDOT_PY" != "echo xdot.py" ; then
   6803 
   6804 cat >>confdefs.h <<\_ACEOF
   6805 #define HAVE_XDOT_PY 1
   6806 _ACEOF
   6807 
   6808     if test "$llvm_cv_os_type" = "MingW" ; then
   6809     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6810   fi
   6811 
   6812 cat >>confdefs.h <<_ACEOF
   6813 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
   6814 _ACEOF
   6815 
   6816 fi
   6817 
   6818 # Find a good install program.  We prefer a C program (faster),
   6819 # so one script is as good as another.  But avoid the broken or
   6820 # incompatible versions:
   6821 # SysV /etc/install, /usr/sbin/install
   6822 # SunOS /usr/etc/install
   6823 # IRIX /sbin/install
   6824 # AIX /bin/install
   6825 # AmigaOS /C/install, which installs bootblocks on floppy discs
   6826 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   6827 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   6828 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   6829 # OS/2's system install, which has a completely different semantic
   6830 # ./install, which can be erroneously created by make from ./install.sh.
   6831 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   6832 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
   6833 if test -z "$INSTALL"; then
   6834 if test "${ac_cv_path_install+set}" = set; then
   6835   echo $ECHO_N "(cached) $ECHO_C" >&6
   6836 else
   6837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6838 for as_dir in $PATH
   6839 do
   6840   IFS=$as_save_IFS
   6841   test -z "$as_dir" && as_dir=.
   6842   # Account for people who put trailing slashes in PATH elements.
   6843 case $as_dir/ in
   6844   ./ | .// | /cC/* | \
   6845   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   6846   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
   6847   /usr/ucb/* ) ;;
   6848   *)
   6849     # OSF1 and SCO ODT 3.0 have their own names for install.
   6850     # Don't use installbsd from OSF since it installs stuff as root
   6851     # by default.
   6852     for ac_prog in ginstall scoinst install; do
   6853       for ac_exec_ext in '' $ac_executable_extensions; do
   6854 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
   6855 	  if test $ac_prog = install &&
   6856 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   6857 	    # AIX install.  It has an incompatible calling convention.
   6858 	    :
   6859 	  elif test $ac_prog = install &&
   6860 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   6861 	    # program-specific install script used by HP pwplus--don't use.
   6862 	    :
   6863 	  else
   6864 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   6865 	    break 3
   6866 	  fi
   6867 	fi
   6868       done
   6869     done
   6870     ;;
   6871 esac
   6872 done
   6873 IFS=$as_save_IFS
   6874 
   6875 
   6876 fi
   6877   if test "${ac_cv_path_install+set}" = set; then
   6878     INSTALL=$ac_cv_path_install
   6879   else
   6880     # As a last resort, use the slow shell script.  Don't cache a
   6881     # value for INSTALL within a source directory, because that will
   6882     # break other packages using the cache if that directory is
   6883     # removed, or if the value is a relative name.
   6884     INSTALL=$ac_install_sh
   6885   fi
   6886 fi
   6887 { echo "$as_me:$LINENO: result: $INSTALL" >&5
   6888 echo "${ECHO_T}$INSTALL" >&6; }
   6889 
   6890 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   6891 # It thinks the first close brace ends the variable substitution.
   6892 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   6893 
   6894 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   6895 
   6896 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   6897 
   6898 case "$INSTALL" in
   6899  [\\/$]* | ?:[\\/]* ) ;;
   6900  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
   6901 esac
   6902 
   6903 # Extract the first word of "bzip2", so it can be a program name with args.
   6904 set dummy bzip2; ac_word=$2
   6905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6907 if test "${ac_cv_path_BZIP2+set}" = set; then
   6908   echo $ECHO_N "(cached) $ECHO_C" >&6
   6909 else
   6910   case $BZIP2 in
   6911   [\\/]* | ?:[\\/]*)
   6912   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
   6913   ;;
   6914   *)
   6915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6916 for as_dir in $PATH
   6917 do
   6918   IFS=$as_save_IFS
   6919   test -z "$as_dir" && as_dir=.
   6920   for ac_exec_ext in '' $ac_executable_extensions; do
   6921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6922     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
   6923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6924     break 2
   6925   fi
   6926 done
   6927 done
   6928 IFS=$as_save_IFS
   6929 
   6930   ;;
   6931 esac
   6932 fi
   6933 BZIP2=$ac_cv_path_BZIP2
   6934 if test -n "$BZIP2"; then
   6935   { echo "$as_me:$LINENO: result: $BZIP2" >&5
   6936 echo "${ECHO_T}$BZIP2" >&6; }
   6937 else
   6938   { echo "$as_me:$LINENO: result: no" >&5
   6939 echo "${ECHO_T}no" >&6; }
   6940 fi
   6941 
   6942 
   6943 # Extract the first word of "cat", so it can be a program name with args.
   6944 set dummy cat; ac_word=$2
   6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6947 if test "${ac_cv_path_CAT+set}" = set; then
   6948   echo $ECHO_N "(cached) $ECHO_C" >&6
   6949 else
   6950   case $CAT in
   6951   [\\/]* | ?:[\\/]*)
   6952   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
   6953   ;;
   6954   *)
   6955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6956 for as_dir in $PATH
   6957 do
   6958   IFS=$as_save_IFS
   6959   test -z "$as_dir" && as_dir=.
   6960   for ac_exec_ext in '' $ac_executable_extensions; do
   6961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6962     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
   6963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6964     break 2
   6965   fi
   6966 done
   6967 done
   6968 IFS=$as_save_IFS
   6969 
   6970   ;;
   6971 esac
   6972 fi
   6973 CAT=$ac_cv_path_CAT
   6974 if test -n "$CAT"; then
   6975   { echo "$as_me:$LINENO: result: $CAT" >&5
   6976 echo "${ECHO_T}$CAT" >&6; }
   6977 else
   6978   { echo "$as_me:$LINENO: result: no" >&5
   6979 echo "${ECHO_T}no" >&6; }
   6980 fi
   6981 
   6982 
   6983 # Extract the first word of "doxygen", so it can be a program name with args.
   6984 set dummy doxygen; ac_word=$2
   6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6987 if test "${ac_cv_path_DOXYGEN+set}" = set; then
   6988   echo $ECHO_N "(cached) $ECHO_C" >&6
   6989 else
   6990   case $DOXYGEN in
   6991   [\\/]* | ?:[\\/]*)
   6992   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
   6993   ;;
   6994   *)
   6995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6996 for as_dir in $PATH
   6997 do
   6998   IFS=$as_save_IFS
   6999   test -z "$as_dir" && as_dir=.
   7000   for ac_exec_ext in '' $ac_executable_extensions; do
   7001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7002     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   7003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7004     break 2
   7005   fi
   7006 done
   7007 done
   7008 IFS=$as_save_IFS
   7009 
   7010   ;;
   7011 esac
   7012 fi
   7013 DOXYGEN=$ac_cv_path_DOXYGEN
   7014 if test -n "$DOXYGEN"; then
   7015   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
   7016 echo "${ECHO_T}$DOXYGEN" >&6; }
   7017 else
   7018   { echo "$as_me:$LINENO: result: no" >&5
   7019 echo "${ECHO_T}no" >&6; }
   7020 fi
   7021 
   7022 
   7023 # Extract the first word of "groff", so it can be a program name with args.
   7024 set dummy groff; ac_word=$2
   7025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7027 if test "${ac_cv_path_GROFF+set}" = set; then
   7028   echo $ECHO_N "(cached) $ECHO_C" >&6
   7029 else
   7030   case $GROFF in
   7031   [\\/]* | ?:[\\/]*)
   7032   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
   7033   ;;
   7034   *)
   7035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7036 for as_dir in $PATH
   7037 do
   7038   IFS=$as_save_IFS
   7039   test -z "$as_dir" && as_dir=.
   7040   for ac_exec_ext in '' $ac_executable_extensions; do
   7041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7042     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
   7043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7044     break 2
   7045   fi
   7046 done
   7047 done
   7048 IFS=$as_save_IFS
   7049 
   7050   ;;
   7051 esac
   7052 fi
   7053 GROFF=$ac_cv_path_GROFF
   7054 if test -n "$GROFF"; then
   7055   { echo "$as_me:$LINENO: result: $GROFF" >&5
   7056 echo "${ECHO_T}$GROFF" >&6; }
   7057 else
   7058   { echo "$as_me:$LINENO: result: no" >&5
   7059 echo "${ECHO_T}no" >&6; }
   7060 fi
   7061 
   7062 
   7063 # Extract the first word of "gzip", so it can be a program name with args.
   7064 set dummy gzip; ac_word=$2
   7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7067 if test "${ac_cv_path_GZIPBIN+set}" = set; then
   7068   echo $ECHO_N "(cached) $ECHO_C" >&6
   7069 else
   7070   case $GZIPBIN in
   7071   [\\/]* | ?:[\\/]*)
   7072   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
   7073   ;;
   7074   *)
   7075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7076 for as_dir in $PATH
   7077 do
   7078   IFS=$as_save_IFS
   7079   test -z "$as_dir" && as_dir=.
   7080   for ac_exec_ext in '' $ac_executable_extensions; do
   7081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7082     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
   7083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7084     break 2
   7085   fi
   7086 done
   7087 done
   7088 IFS=$as_save_IFS
   7089 
   7090   ;;
   7091 esac
   7092 fi
   7093 GZIPBIN=$ac_cv_path_GZIPBIN
   7094 if test -n "$GZIPBIN"; then
   7095   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
   7096 echo "${ECHO_T}$GZIPBIN" >&6; }
   7097 else
   7098   { echo "$as_me:$LINENO: result: no" >&5
   7099 echo "${ECHO_T}no" >&6; }
   7100 fi
   7101 
   7102 
   7103 # Extract the first word of "pod2html", so it can be a program name with args.
   7104 set dummy pod2html; ac_word=$2
   7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7107 if test "${ac_cv_path_POD2HTML+set}" = set; then
   7108   echo $ECHO_N "(cached) $ECHO_C" >&6
   7109 else
   7110   case $POD2HTML in
   7111   [\\/]* | ?:[\\/]*)
   7112   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
   7113   ;;
   7114   *)
   7115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7116 for as_dir in $PATH
   7117 do
   7118   IFS=$as_save_IFS
   7119   test -z "$as_dir" && as_dir=.
   7120   for ac_exec_ext in '' $ac_executable_extensions; do
   7121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7122     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
   7123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7124     break 2
   7125   fi
   7126 done
   7127 done
   7128 IFS=$as_save_IFS
   7129 
   7130   ;;
   7131 esac
   7132 fi
   7133 POD2HTML=$ac_cv_path_POD2HTML
   7134 if test -n "$POD2HTML"; then
   7135   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
   7136 echo "${ECHO_T}$POD2HTML" >&6; }
   7137 else
   7138   { echo "$as_me:$LINENO: result: no" >&5
   7139 echo "${ECHO_T}no" >&6; }
   7140 fi
   7141 
   7142 
   7143 # Extract the first word of "pod2man", so it can be a program name with args.
   7144 set dummy pod2man; ac_word=$2
   7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7147 if test "${ac_cv_path_POD2MAN+set}" = set; then
   7148   echo $ECHO_N "(cached) $ECHO_C" >&6
   7149 else
   7150   case $POD2MAN in
   7151   [\\/]* | ?:[\\/]*)
   7152   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
   7153   ;;
   7154   *)
   7155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7156 for as_dir in $PATH
   7157 do
   7158   IFS=$as_save_IFS
   7159   test -z "$as_dir" && as_dir=.
   7160   for ac_exec_ext in '' $ac_executable_extensions; do
   7161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7162     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
   7163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7164     break 2
   7165   fi
   7166 done
   7167 done
   7168 IFS=$as_save_IFS
   7169 
   7170   ;;
   7171 esac
   7172 fi
   7173 POD2MAN=$ac_cv_path_POD2MAN
   7174 if test -n "$POD2MAN"; then
   7175   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
   7176 echo "${ECHO_T}$POD2MAN" >&6; }
   7177 else
   7178   { echo "$as_me:$LINENO: result: no" >&5
   7179 echo "${ECHO_T}no" >&6; }
   7180 fi
   7181 
   7182 
   7183 # Extract the first word of "pdfroff", so it can be a program name with args.
   7184 set dummy pdfroff; ac_word=$2
   7185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7187 if test "${ac_cv_path_PDFROFF+set}" = set; then
   7188   echo $ECHO_N "(cached) $ECHO_C" >&6
   7189 else
   7190   case $PDFROFF in
   7191   [\\/]* | ?:[\\/]*)
   7192   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
   7193   ;;
   7194   *)
   7195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7196 for as_dir in $PATH
   7197 do
   7198   IFS=$as_save_IFS
   7199   test -z "$as_dir" && as_dir=.
   7200   for ac_exec_ext in '' $ac_executable_extensions; do
   7201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7202     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
   7203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7204     break 2
   7205   fi
   7206 done
   7207 done
   7208 IFS=$as_save_IFS
   7209 
   7210   ;;
   7211 esac
   7212 fi
   7213 PDFROFF=$ac_cv_path_PDFROFF
   7214 if test -n "$PDFROFF"; then
   7215   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
   7216 echo "${ECHO_T}$PDFROFF" >&6; }
   7217 else
   7218   { echo "$as_me:$LINENO: result: no" >&5
   7219 echo "${ECHO_T}no" >&6; }
   7220 fi
   7221 
   7222 
   7223 # Extract the first word of "runtest", so it can be a program name with args.
   7224 set dummy runtest; ac_word=$2
   7225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7227 if test "${ac_cv_path_RUNTEST+set}" = set; then
   7228   echo $ECHO_N "(cached) $ECHO_C" >&6
   7229 else
   7230   case $RUNTEST in
   7231   [\\/]* | ?:[\\/]*)
   7232   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
   7233   ;;
   7234   *)
   7235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7236 for as_dir in $PATH
   7237 do
   7238   IFS=$as_save_IFS
   7239   test -z "$as_dir" && as_dir=.
   7240   for ac_exec_ext in '' $ac_executable_extensions; do
   7241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7242     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
   7243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7244     break 2
   7245   fi
   7246 done
   7247 done
   7248 IFS=$as_save_IFS
   7249 
   7250   ;;
   7251 esac
   7252 fi
   7253 RUNTEST=$ac_cv_path_RUNTEST
   7254 if test -n "$RUNTEST"; then
   7255   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
   7256 echo "${ECHO_T}$RUNTEST" >&6; }
   7257 else
   7258   { echo "$as_me:$LINENO: result: no" >&5
   7259 echo "${ECHO_T}no" >&6; }
   7260 fi
   7261 
   7262 
   7263 
   7264 no_itcl=true
   7265 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
   7266 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
   7267 
   7268 # Check whether --with-tclinclude was given.
   7269 if test "${with_tclinclude+set}" = set; then
   7270   withval=$with_tclinclude; with_tclinclude=${withval}
   7271 else
   7272   with_tclinclude=''
   7273 fi
   7274 
   7275 if test "${ac_cv_path_tclsh+set}" = set; then
   7276   echo $ECHO_N "(cached) $ECHO_C" >&6
   7277 else
   7278 
   7279 if test x"${with_tclinclude}" != x ; then
   7280   if test -f ${with_tclinclude}/tclsh ; then
   7281     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
   7282   elif test -f ${with_tclinclude}/src/tclsh ; then
   7283     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
   7284   else
   7285     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
   7286 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
   7287    { (exit 1); exit 1; }; }
   7288   fi
   7289 fi
   7290 fi
   7291 
   7292 
   7293 if test x"${ac_cv_path_tclsh}" = x ; then
   7294   { echo "$as_me:$LINENO: result: none" >&5
   7295 echo "${ECHO_T}none" >&6; }
   7296   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
   7297 do
   7298   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7299 set dummy $ac_prog; ac_word=$2
   7300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7302 if test "${ac_cv_path_TCLSH+set}" = set; then
   7303   echo $ECHO_N "(cached) $ECHO_C" >&6
   7304 else
   7305   case $TCLSH in
   7306   [\\/]* | ?:[\\/]*)
   7307   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
   7308   ;;
   7309   *)
   7310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7311 for as_dir in $PATH
   7312 do
   7313   IFS=$as_save_IFS
   7314   test -z "$as_dir" && as_dir=.
   7315   for ac_exec_ext in '' $ac_executable_extensions; do
   7316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7317     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
   7318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7319     break 2
   7320   fi
   7321 done
   7322 done
   7323 IFS=$as_save_IFS
   7324 
   7325   ;;
   7326 esac
   7327 fi
   7328 TCLSH=$ac_cv_path_TCLSH
   7329 if test -n "$TCLSH"; then
   7330   { echo "$as_me:$LINENO: result: $TCLSH" >&5
   7331 echo "${ECHO_T}$TCLSH" >&6; }
   7332 else
   7333   { echo "$as_me:$LINENO: result: no" >&5
   7334 echo "${ECHO_T}no" >&6; }
   7335 fi
   7336 
   7337 
   7338   test -n "$TCLSH" && break
   7339 done
   7340 
   7341   if test x"${TCLSH}" = x ; then
   7342     ac_cv_path_tclsh='';
   7343   else
   7344     ac_cv_path_tclsh="${TCLSH}";
   7345   fi
   7346 else
   7347   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
   7348 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
   7349   TCLSH="${ac_cv_path_tclsh}"
   7350 
   7351 fi
   7352 
   7353 # Extract the first word of "zip", so it can be a program name with args.
   7354 set dummy zip; ac_word=$2
   7355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7357 if test "${ac_cv_path_ZIP+set}" = set; then
   7358   echo $ECHO_N "(cached) $ECHO_C" >&6
   7359 else
   7360   case $ZIP in
   7361   [\\/]* | ?:[\\/]*)
   7362   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
   7363   ;;
   7364   *)
   7365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7366 for as_dir in $PATH
   7367 do
   7368   IFS=$as_save_IFS
   7369   test -z "$as_dir" && as_dir=.
   7370   for ac_exec_ext in '' $ac_executable_extensions; do
   7371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7372     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
   7373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7374     break 2
   7375   fi
   7376 done
   7377 done
   7378 IFS=$as_save_IFS
   7379 
   7380   ;;
   7381 esac
   7382 fi
   7383 ZIP=$ac_cv_path_ZIP
   7384 if test -n "$ZIP"; then
   7385   { echo "$as_me:$LINENO: result: $ZIP" >&5
   7386 echo "${ECHO_T}$ZIP" >&6; }
   7387 else
   7388   { echo "$as_me:$LINENO: result: no" >&5
   7389 echo "${ECHO_T}no" >&6; }
   7390 fi
   7391 
   7392 
   7393 for ac_prog in ocamlc
   7394 do
   7395   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7396 set dummy $ac_prog; ac_word=$2
   7397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7399 if test "${ac_cv_path_OCAMLC+set}" = set; then
   7400   echo $ECHO_N "(cached) $ECHO_C" >&6
   7401 else
   7402   case $OCAMLC in
   7403   [\\/]* | ?:[\\/]*)
   7404   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
   7405   ;;
   7406   *)
   7407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7408 for as_dir in $PATH
   7409 do
   7410   IFS=$as_save_IFS
   7411   test -z "$as_dir" && as_dir=.
   7412   for ac_exec_ext in '' $ac_executable_extensions; do
   7413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7414     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
   7415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7416     break 2
   7417   fi
   7418 done
   7419 done
   7420 IFS=$as_save_IFS
   7421 
   7422   ;;
   7423 esac
   7424 fi
   7425 OCAMLC=$ac_cv_path_OCAMLC
   7426 if test -n "$OCAMLC"; then
   7427   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
   7428 echo "${ECHO_T}$OCAMLC" >&6; }
   7429 else
   7430   { echo "$as_me:$LINENO: result: no" >&5
   7431 echo "${ECHO_T}no" >&6; }
   7432 fi
   7433 
   7434 
   7435   test -n "$OCAMLC" && break
   7436 done
   7437 
   7438 for ac_prog in ocamlopt
   7439 do
   7440   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7441 set dummy $ac_prog; ac_word=$2
   7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7444 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
   7445   echo $ECHO_N "(cached) $ECHO_C" >&6
   7446 else
   7447   case $OCAMLOPT in
   7448   [\\/]* | ?:[\\/]*)
   7449   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
   7450   ;;
   7451   *)
   7452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7453 for as_dir in $PATH
   7454 do
   7455   IFS=$as_save_IFS
   7456   test -z "$as_dir" && as_dir=.
   7457   for ac_exec_ext in '' $ac_executable_extensions; do
   7458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7459     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
   7460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7461     break 2
   7462   fi
   7463 done
   7464 done
   7465 IFS=$as_save_IFS
   7466 
   7467   ;;
   7468 esac
   7469 fi
   7470 OCAMLOPT=$ac_cv_path_OCAMLOPT
   7471 if test -n "$OCAMLOPT"; then
   7472   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
   7473 echo "${ECHO_T}$OCAMLOPT" >&6; }
   7474 else
   7475   { echo "$as_me:$LINENO: result: no" >&5
   7476 echo "${ECHO_T}no" >&6; }
   7477 fi
   7478 
   7479 
   7480   test -n "$OCAMLOPT" && break
   7481 done
   7482 
   7483 for ac_prog in ocamldep
   7484 do
   7485   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7486 set dummy $ac_prog; ac_word=$2
   7487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7489 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
   7490   echo $ECHO_N "(cached) $ECHO_C" >&6
   7491 else
   7492   case $OCAMLDEP in
   7493   [\\/]* | ?:[\\/]*)
   7494   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
   7495   ;;
   7496   *)
   7497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7498 for as_dir in $PATH
   7499 do
   7500   IFS=$as_save_IFS
   7501   test -z "$as_dir" && as_dir=.
   7502   for ac_exec_ext in '' $ac_executable_extensions; do
   7503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7504     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
   7505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7506     break 2
   7507   fi
   7508 done
   7509 done
   7510 IFS=$as_save_IFS
   7511 
   7512   ;;
   7513 esac
   7514 fi
   7515 OCAMLDEP=$ac_cv_path_OCAMLDEP
   7516 if test -n "$OCAMLDEP"; then
   7517   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
   7518 echo "${ECHO_T}$OCAMLDEP" >&6; }
   7519 else
   7520   { echo "$as_me:$LINENO: result: no" >&5
   7521 echo "${ECHO_T}no" >&6; }
   7522 fi
   7523 
   7524 
   7525   test -n "$OCAMLDEP" && break
   7526 done
   7527 
   7528 for ac_prog in ocamldoc
   7529 do
   7530   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7531 set dummy $ac_prog; ac_word=$2
   7532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7534 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
   7535   echo $ECHO_N "(cached) $ECHO_C" >&6
   7536 else
   7537   case $OCAMLDOC in
   7538   [\\/]* | ?:[\\/]*)
   7539   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
   7540   ;;
   7541   *)
   7542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7543 for as_dir in $PATH
   7544 do
   7545   IFS=$as_save_IFS
   7546   test -z "$as_dir" && as_dir=.
   7547   for ac_exec_ext in '' $ac_executable_extensions; do
   7548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7549     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
   7550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7551     break 2
   7552   fi
   7553 done
   7554 done
   7555 IFS=$as_save_IFS
   7556 
   7557   ;;
   7558 esac
   7559 fi
   7560 OCAMLDOC=$ac_cv_path_OCAMLDOC
   7561 if test -n "$OCAMLDOC"; then
   7562   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
   7563 echo "${ECHO_T}$OCAMLDOC" >&6; }
   7564 else
   7565   { echo "$as_me:$LINENO: result: no" >&5
   7566 echo "${ECHO_T}no" >&6; }
   7567 fi
   7568 
   7569 
   7570   test -n "$OCAMLDOC" && break
   7571 done
   7572 
   7573 for ac_prog in gas as
   7574 do
   7575   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7576 set dummy $ac_prog; ac_word=$2
   7577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7579 if test "${ac_cv_path_GAS+set}" = set; then
   7580   echo $ECHO_N "(cached) $ECHO_C" >&6
   7581 else
   7582   case $GAS in
   7583   [\\/]* | ?:[\\/]*)
   7584   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
   7585   ;;
   7586   *)
   7587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7588 for as_dir in $PATH
   7589 do
   7590   IFS=$as_save_IFS
   7591   test -z "$as_dir" && as_dir=.
   7592   for ac_exec_ext in '' $ac_executable_extensions; do
   7593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7594     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
   7595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7596     break 2
   7597   fi
   7598 done
   7599 done
   7600 IFS=$as_save_IFS
   7601 
   7602   ;;
   7603 esac
   7604 fi
   7605 GAS=$ac_cv_path_GAS
   7606 if test -n "$GAS"; then
   7607   { echo "$as_me:$LINENO: result: $GAS" >&5
   7608 echo "${ECHO_T}$GAS" >&6; }
   7609 else
   7610   { echo "$as_me:$LINENO: result: no" >&5
   7611 echo "${ECHO_T}no" >&6; }
   7612 fi
   7613 
   7614 
   7615   test -n "$GAS" && break
   7616 done
   7617 
   7618 
   7619 { echo "$as_me:$LINENO: checking for linker version" >&5
   7620 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
   7621 if test "${llvm_cv_link_version+set}" = set; then
   7622   echo $ECHO_N "(cached) $ECHO_C" >&6
   7623 else
   7624 
   7625    version_string="$(ld -v 2>&1 | head -1)"
   7626 
   7627    # Check for ld64.
   7628    if (echo "$version_string" | grep -q "ld64"); then
   7629      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
   7630    else
   7631      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
   7632    fi
   7633 
   7634 fi
   7635 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
   7636 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
   7637 
   7638 cat >>confdefs.h <<_ACEOF
   7639 #define HOST_LINK_VERSION "$llvm_cv_link_version"
   7640 _ACEOF
   7641 
   7642 
   7643 
   7644 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
   7645 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
   7646 if test "${llvm_cv_link_use_r+set}" = set; then
   7647   echo $ECHO_N "(cached) $ECHO_C" >&6
   7648 else
   7649    ac_ext=c
   7650 ac_cpp='$CPP $CPPFLAGS'
   7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7654 
   7655   oldcflags="$CFLAGS"
   7656   CFLAGS="$CFLAGS -Wl,-R."
   7657   cat >conftest.$ac_ext <<_ACEOF
   7658 /* confdefs.h.  */
   7659 _ACEOF
   7660 cat confdefs.h >>conftest.$ac_ext
   7661 cat >>conftest.$ac_ext <<_ACEOF
   7662 /* end confdefs.h.  */
   7663 
   7664 int
   7665 main ()
   7666 {
   7667 
   7668   ;
   7669   return 0;
   7670 }
   7671 _ACEOF
   7672 rm -f conftest.$ac_objext conftest$ac_exeext
   7673 if { (ac_try="$ac_link"
   7674 case "(($ac_try" in
   7675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7676   *) ac_try_echo=$ac_try;;
   7677 esac
   7678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7679   (eval "$ac_link") 2>conftest.er1
   7680   ac_status=$?
   7681   grep -v '^ *+' conftest.er1 >conftest.err
   7682   rm -f conftest.er1
   7683   cat conftest.err >&5
   7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7685   (exit $ac_status); } &&
   7686 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   7687   { (case "(($ac_try" in
   7688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7689   *) ac_try_echo=$ac_try;;
   7690 esac
   7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7692   (eval "$ac_try") 2>&5
   7693   ac_status=$?
   7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7695   (exit $ac_status); }; } &&
   7696 	 { ac_try='test -s conftest$ac_exeext'
   7697   { (case "(($ac_try" in
   7698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7699   *) ac_try_echo=$ac_try;;
   7700 esac
   7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7702   (eval "$ac_try") 2>&5
   7703   ac_status=$?
   7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7705   (exit $ac_status); }; }; then
   7706   llvm_cv_link_use_r=yes
   7707 else
   7708   echo "$as_me: failed program was:" >&5
   7709 sed 's/^/| /' conftest.$ac_ext >&5
   7710 
   7711 	llvm_cv_link_use_r=no
   7712 fi
   7713 
   7714 rm -f core conftest.err conftest.$ac_objext \
   7715       conftest$ac_exeext conftest.$ac_ext
   7716   CFLAGS="$oldcflags"
   7717   ac_ext=c
   7718 ac_cpp='$CPP $CPPFLAGS'
   7719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7722 
   7723 
   7724 fi
   7725 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
   7726 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
   7727 if test "$llvm_cv_link_use_r" = yes ; then
   7728 
   7729 cat >>confdefs.h <<\_ACEOF
   7730 #define HAVE_LINK_R 1
   7731 _ACEOF
   7732 
   7733   fi
   7734 
   7735 
   7736 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
   7737 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
   7738 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
   7739   echo $ECHO_N "(cached) $ECHO_C" >&6
   7740 else
   7741    ac_ext=c
   7742 ac_cpp='$CPP $CPPFLAGS'
   7743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7746 
   7747   oldcflags="$CFLAGS"
   7748   CFLAGS="$CFLAGS -Wl,-export-dynamic"
   7749   cat >conftest.$ac_ext <<_ACEOF
   7750 /* confdefs.h.  */
   7751 _ACEOF
   7752 cat confdefs.h >>conftest.$ac_ext
   7753 cat >>conftest.$ac_ext <<_ACEOF
   7754 /* end confdefs.h.  */
   7755 
   7756 int
   7757 main ()
   7758 {
   7759 
   7760   ;
   7761   return 0;
   7762 }
   7763 _ACEOF
   7764 rm -f conftest.$ac_objext conftest$ac_exeext
   7765 if { (ac_try="$ac_link"
   7766 case "(($ac_try" in
   7767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7768   *) ac_try_echo=$ac_try;;
   7769 esac
   7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7771   (eval "$ac_link") 2>conftest.er1
   7772   ac_status=$?
   7773   grep -v '^ *+' conftest.er1 >conftest.err
   7774   rm -f conftest.er1
   7775   cat conftest.err >&5
   7776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7777   (exit $ac_status); } &&
   7778 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   7779   { (case "(($ac_try" in
   7780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7781   *) ac_try_echo=$ac_try;;
   7782 esac
   7783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7784   (eval "$ac_try") 2>&5
   7785   ac_status=$?
   7786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7787   (exit $ac_status); }; } &&
   7788 	 { ac_try='test -s conftest$ac_exeext'
   7789   { (case "(($ac_try" in
   7790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7791   *) ac_try_echo=$ac_try;;
   7792 esac
   7793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7794   (eval "$ac_try") 2>&5
   7795   ac_status=$?
   7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7797   (exit $ac_status); }; }; then
   7798   llvm_cv_link_use_export_dynamic=yes
   7799 else
   7800   echo "$as_me: failed program was:" >&5
   7801 sed 's/^/| /' conftest.$ac_ext >&5
   7802 
   7803 	llvm_cv_link_use_export_dynamic=no
   7804 fi
   7805 
   7806 rm -f core conftest.err conftest.$ac_objext \
   7807       conftest$ac_exeext conftest.$ac_ext
   7808   CFLAGS="$oldcflags"
   7809   ac_ext=c
   7810 ac_cpp='$CPP $CPPFLAGS'
   7811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7814 
   7815 
   7816 fi
   7817 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
   7818 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
   7819 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
   7820 
   7821 cat >>confdefs.h <<\_ACEOF
   7822 #define HAVE_LINK_EXPORT_DYNAMIC 1
   7823 _ACEOF
   7824 
   7825   fi
   7826 
   7827 
   7828 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
   7829 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
   7830 if test "${llvm_cv_link_use_version_script+set}" = set; then
   7831   echo $ECHO_N "(cached) $ECHO_C" >&6
   7832 else
   7833    ac_ext=c
   7834 ac_cpp='$CPP $CPPFLAGS'
   7835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7838 
   7839   oldcflags="$CFLAGS"
   7840 
   7841   # The following code is from the autoconf manual,
   7842   # "11.13: Limitations of Usual Tools".
   7843   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
   7844   # Use mktemp if possible; otherwise fall back on mkdir,
   7845   # with $RANDOM to make collisions less likely.
   7846   : ${TMPDIR=/tmp}
   7847   {
   7848     tmp=`
   7849       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
   7850     ` &&
   7851     test -n "$tmp" && test -d "$tmp"
   7852   } || {
   7853     tmp=$TMPDIR/foo$$-$RANDOM
   7854     (umask 077 && mkdir "$tmp")
   7855   } || exit $?
   7856 
   7857   echo "{" > "$tmp/export.map"
   7858   echo "  global: main;" >> "$tmp/export.map"
   7859   echo "  local: *;" >> "$tmp/export.map"
   7860   echo "};" >> "$tmp/export.map"
   7861 
   7862   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
   7863   cat >conftest.$ac_ext <<_ACEOF
   7864 /* confdefs.h.  */
   7865 _ACEOF
   7866 cat confdefs.h >>conftest.$ac_ext
   7867 cat >>conftest.$ac_ext <<_ACEOF
   7868 /* end confdefs.h.  */
   7869 
   7870 int
   7871 main ()
   7872 {
   7873 
   7874   ;
   7875   return 0;
   7876 }
   7877 _ACEOF
   7878 rm -f conftest.$ac_objext conftest$ac_exeext
   7879 if { (ac_try="$ac_link"
   7880 case "(($ac_try" in
   7881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7882   *) ac_try_echo=$ac_try;;
   7883 esac
   7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7885   (eval "$ac_link") 2>conftest.er1
   7886   ac_status=$?
   7887   grep -v '^ *+' conftest.er1 >conftest.err
   7888   rm -f conftest.er1
   7889   cat conftest.err >&5
   7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7891   (exit $ac_status); } &&
   7892 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   7893   { (case "(($ac_try" in
   7894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7895   *) ac_try_echo=$ac_try;;
   7896 esac
   7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7898   (eval "$ac_try") 2>&5
   7899   ac_status=$?
   7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7901   (exit $ac_status); }; } &&
   7902 	 { ac_try='test -s conftest$ac_exeext'
   7903   { (case "(($ac_try" in
   7904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7905   *) ac_try_echo=$ac_try;;
   7906 esac
   7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7908   (eval "$ac_try") 2>&5
   7909   ac_status=$?
   7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7911   (exit $ac_status); }; }; then
   7912   llvm_cv_link_use_version_script=yes
   7913 else
   7914   echo "$as_me: failed program was:" >&5
   7915 sed 's/^/| /' conftest.$ac_ext >&5
   7916 
   7917 	llvm_cv_link_use_version_script=no
   7918 fi
   7919 
   7920 rm -f core conftest.err conftest.$ac_objext \
   7921       conftest$ac_exeext conftest.$ac_ext
   7922   rm "$tmp/export.map"
   7923   rmdir "$tmp"
   7924   CFLAGS="$oldcflags"
   7925   ac_ext=c
   7926 ac_cpp='$CPP $CPPFLAGS'
   7927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7930 
   7931 
   7932 fi
   7933 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
   7934 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
   7935 if test "$llvm_cv_link_use_version_script" = yes ; then
   7936   HAVE_LINK_VERSION_SCRIPT=1
   7937 
   7938   fi
   7939 
   7940 
   7941 
   7942 
   7943 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
   7944 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
   7945 if test "${ac_cv_c_const+set}" = set; then
   7946   echo $ECHO_N "(cached) $ECHO_C" >&6
   7947 else
   7948   cat >conftest.$ac_ext <<_ACEOF
   7949 /* confdefs.h.  */
   7950 _ACEOF
   7951 cat confdefs.h >>conftest.$ac_ext
   7952 cat >>conftest.$ac_ext <<_ACEOF
   7953 /* end confdefs.h.  */
   7954 
   7955 int
   7956 main ()
   7957 {
   7958 /* FIXME: Include the comments suggested by Paul. */
   7959 #ifndef __cplusplus
   7960   /* Ultrix mips cc rejects this.  */
   7961   typedef int charset[2];
   7962   const charset x;
   7963   /* SunOS 4.1.1 cc rejects this.  */
   7964   char const *const *ccp;
   7965   char **p;
   7966   /* NEC SVR4.0.2 mips cc rejects this.  */
   7967   struct point {int x, y;};
   7968   static struct point const zero = {0,0};
   7969   /* AIX XL C 1.02.0.0 rejects this.
   7970      It does not let you subtract one const X* pointer from another in
   7971      an arm of an if-expression whose if-part is not a constant
   7972      expression */
   7973   const char *g = "string";
   7974   ccp = &g + (g ? g-g : 0);
   7975   /* HPUX 7.0 cc rejects these. */
   7976   ++ccp;
   7977   p = (char**) ccp;
   7978   ccp = (char const *const *) p;
   7979   { /* SCO 3.2v4 cc rejects this.  */
   7980     char *t;
   7981     char const *s = 0 ? (char *) 0 : (char const *) 0;
   7982 
   7983     *t++ = 0;
   7984     if (s) return 0;
   7985   }
   7986   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   7987     int x[] = {25, 17};
   7988     const int *foo = &x[0];
   7989     ++foo;
   7990   }
   7991   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   7992     typedef const int *iptr;
   7993     iptr p = 0;
   7994     ++p;
   7995   }
   7996   { /* AIX XL C 1.02.0.0 rejects this saying
   7997        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   7998     struct s { int j; const int *ap[3]; };
   7999     struct s *b; b->j = 5;
   8000   }
   8001   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   8002     const int foo = 10;
   8003     if (!foo) return 0;
   8004   }
   8005   return !x[0] && !zero.x;
   8006 #endif
   8007 
   8008   ;
   8009   return 0;
   8010 }
   8011 _ACEOF
   8012 rm -f conftest.$ac_objext
   8013 if { (ac_try="$ac_compile"
   8014 case "(($ac_try" in
   8015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8016   *) ac_try_echo=$ac_try;;
   8017 esac
   8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8019   (eval "$ac_compile") 2>conftest.er1
   8020   ac_status=$?
   8021   grep -v '^ *+' conftest.er1 >conftest.err
   8022   rm -f conftest.er1
   8023   cat conftest.err >&5
   8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8025   (exit $ac_status); } &&
   8026 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8027   { (case "(($ac_try" in
   8028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8029   *) ac_try_echo=$ac_try;;
   8030 esac
   8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8032   (eval "$ac_try") 2>&5
   8033   ac_status=$?
   8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8035   (exit $ac_status); }; } &&
   8036 	 { ac_try='test -s conftest.$ac_objext'
   8037   { (case "(($ac_try" in
   8038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8039   *) ac_try_echo=$ac_try;;
   8040 esac
   8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8042   (eval "$ac_try") 2>&5
   8043   ac_status=$?
   8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8045   (exit $ac_status); }; }; then
   8046   ac_cv_c_const=yes
   8047 else
   8048   echo "$as_me: failed program was:" >&5
   8049 sed 's/^/| /' conftest.$ac_ext >&5
   8050 
   8051 	ac_cv_c_const=no
   8052 fi
   8053 
   8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8055 fi
   8056 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
   8057 echo "${ECHO_T}$ac_cv_c_const" >&6; }
   8058 if test $ac_cv_c_const = no; then
   8059 
   8060 cat >>confdefs.h <<\_ACEOF
   8061 #define const
   8062 _ACEOF
   8063 
   8064 fi
   8065 
   8066 
   8067 
   8068 
   8069 
   8070 
   8071 ac_header_dirent=no
   8072 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   8073   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   8074 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
   8075 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
   8076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8077   echo $ECHO_N "(cached) $ECHO_C" >&6
   8078 else
   8079   cat >conftest.$ac_ext <<_ACEOF
   8080 /* confdefs.h.  */
   8081 _ACEOF
   8082 cat confdefs.h >>conftest.$ac_ext
   8083 cat >>conftest.$ac_ext <<_ACEOF
   8084 /* end confdefs.h.  */
   8085 #include <sys/types.h>
   8086 #include <$ac_hdr>
   8087 
   8088 int
   8089 main ()
   8090 {
   8091 if ((DIR *) 0)
   8092 return 0;
   8093   ;
   8094   return 0;
   8095 }
   8096 _ACEOF
   8097 rm -f conftest.$ac_objext
   8098 if { (ac_try="$ac_compile"
   8099 case "(($ac_try" in
   8100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8101   *) ac_try_echo=$ac_try;;
   8102 esac
   8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8104   (eval "$ac_compile") 2>conftest.er1
   8105   ac_status=$?
   8106   grep -v '^ *+' conftest.er1 >conftest.err
   8107   rm -f conftest.er1
   8108   cat conftest.err >&5
   8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8110   (exit $ac_status); } &&
   8111 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8112   { (case "(($ac_try" in
   8113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8114   *) ac_try_echo=$ac_try;;
   8115 esac
   8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8117   (eval "$ac_try") 2>&5
   8118   ac_status=$?
   8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8120   (exit $ac_status); }; } &&
   8121 	 { ac_try='test -s conftest.$ac_objext'
   8122   { (case "(($ac_try" in
   8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8124   *) ac_try_echo=$ac_try;;
   8125 esac
   8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8127   (eval "$ac_try") 2>&5
   8128   ac_status=$?
   8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8130   (exit $ac_status); }; }; then
   8131   eval "$as_ac_Header=yes"
   8132 else
   8133   echo "$as_me: failed program was:" >&5
   8134 sed 's/^/| /' conftest.$ac_ext >&5
   8135 
   8136 	eval "$as_ac_Header=no"
   8137 fi
   8138 
   8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8140 fi
   8141 ac_res=`eval echo '${'$as_ac_Header'}'`
   8142 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8143 echo "${ECHO_T}$ac_res" >&6; }
   8144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8145   cat >>confdefs.h <<_ACEOF
   8146 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
   8147 _ACEOF
   8148 
   8149 ac_header_dirent=$ac_hdr; break
   8150 fi
   8151 
   8152 done
   8153 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   8154 if test $ac_header_dirent = dirent.h; then
   8155   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   8156 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   8157 if test "${ac_cv_search_opendir+set}" = set; then
   8158   echo $ECHO_N "(cached) $ECHO_C" >&6
   8159 else
   8160   ac_func_search_save_LIBS=$LIBS
   8161 cat >conftest.$ac_ext <<_ACEOF
   8162 /* confdefs.h.  */
   8163 _ACEOF
   8164 cat confdefs.h >>conftest.$ac_ext
   8165 cat >>conftest.$ac_ext <<_ACEOF
   8166 /* end confdefs.h.  */
   8167 
   8168 /* Override any GCC internal prototype to avoid an error.
   8169    Use char because int might match the return type of a GCC
   8170    builtin and then its argument prototype would still apply.  */
   8171 #ifdef __cplusplus
   8172 extern "C"
   8173 #endif
   8174 char opendir ();
   8175 int
   8176 main ()
   8177 {
   8178 return opendir ();
   8179   ;
   8180   return 0;
   8181 }
   8182 _ACEOF
   8183 for ac_lib in '' dir; do
   8184   if test -z "$ac_lib"; then
   8185     ac_res="none required"
   8186   else
   8187     ac_res=-l$ac_lib
   8188     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8189   fi
   8190   rm -f conftest.$ac_objext conftest$ac_exeext
   8191 if { (ac_try="$ac_link"
   8192 case "(($ac_try" in
   8193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8194   *) ac_try_echo=$ac_try;;
   8195 esac
   8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8197   (eval "$ac_link") 2>conftest.er1
   8198   ac_status=$?
   8199   grep -v '^ *+' conftest.er1 >conftest.err
   8200   rm -f conftest.er1
   8201   cat conftest.err >&5
   8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8203   (exit $ac_status); } &&
   8204 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8205   { (case "(($ac_try" in
   8206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8207   *) ac_try_echo=$ac_try;;
   8208 esac
   8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8210   (eval "$ac_try") 2>&5
   8211   ac_status=$?
   8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8213   (exit $ac_status); }; } &&
   8214 	 { ac_try='test -s conftest$ac_exeext'
   8215   { (case "(($ac_try" in
   8216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8217   *) ac_try_echo=$ac_try;;
   8218 esac
   8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8220   (eval "$ac_try") 2>&5
   8221   ac_status=$?
   8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8223   (exit $ac_status); }; }; then
   8224   ac_cv_search_opendir=$ac_res
   8225 else
   8226   echo "$as_me: failed program was:" >&5
   8227 sed 's/^/| /' conftest.$ac_ext >&5
   8228 
   8229 
   8230 fi
   8231 
   8232 rm -f core conftest.err conftest.$ac_objext \
   8233       conftest$ac_exeext
   8234   if test "${ac_cv_search_opendir+set}" = set; then
   8235   break
   8236 fi
   8237 done
   8238 if test "${ac_cv_search_opendir+set}" = set; then
   8239   :
   8240 else
   8241   ac_cv_search_opendir=no
   8242 fi
   8243 rm conftest.$ac_ext
   8244 LIBS=$ac_func_search_save_LIBS
   8245 fi
   8246 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   8247 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   8248 ac_res=$ac_cv_search_opendir
   8249 if test "$ac_res" != no; then
   8250   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8251 
   8252 fi
   8253 
   8254 else
   8255   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   8256 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   8257 if test "${ac_cv_search_opendir+set}" = set; then
   8258   echo $ECHO_N "(cached) $ECHO_C" >&6
   8259 else
   8260   ac_func_search_save_LIBS=$LIBS
   8261 cat >conftest.$ac_ext <<_ACEOF
   8262 /* confdefs.h.  */
   8263 _ACEOF
   8264 cat confdefs.h >>conftest.$ac_ext
   8265 cat >>conftest.$ac_ext <<_ACEOF
   8266 /* end confdefs.h.  */
   8267 
   8268 /* Override any GCC internal prototype to avoid an error.
   8269    Use char because int might match the return type of a GCC
   8270    builtin and then its argument prototype would still apply.  */
   8271 #ifdef __cplusplus
   8272 extern "C"
   8273 #endif
   8274 char opendir ();
   8275 int
   8276 main ()
   8277 {
   8278 return opendir ();
   8279   ;
   8280   return 0;
   8281 }
   8282 _ACEOF
   8283 for ac_lib in '' x; do
   8284   if test -z "$ac_lib"; then
   8285     ac_res="none required"
   8286   else
   8287     ac_res=-l$ac_lib
   8288     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8289   fi
   8290   rm -f conftest.$ac_objext conftest$ac_exeext
   8291 if { (ac_try="$ac_link"
   8292 case "(($ac_try" in
   8293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8294   *) ac_try_echo=$ac_try;;
   8295 esac
   8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8297   (eval "$ac_link") 2>conftest.er1
   8298   ac_status=$?
   8299   grep -v '^ *+' conftest.er1 >conftest.err
   8300   rm -f conftest.er1
   8301   cat conftest.err >&5
   8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8303   (exit $ac_status); } &&
   8304 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8305   { (case "(($ac_try" in
   8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8307   *) ac_try_echo=$ac_try;;
   8308 esac
   8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8310   (eval "$ac_try") 2>&5
   8311   ac_status=$?
   8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8313   (exit $ac_status); }; } &&
   8314 	 { ac_try='test -s conftest$ac_exeext'
   8315   { (case "(($ac_try" in
   8316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8317   *) ac_try_echo=$ac_try;;
   8318 esac
   8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8320   (eval "$ac_try") 2>&5
   8321   ac_status=$?
   8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8323   (exit $ac_status); }; }; then
   8324   ac_cv_search_opendir=$ac_res
   8325 else
   8326   echo "$as_me: failed program was:" >&5
   8327 sed 's/^/| /' conftest.$ac_ext >&5
   8328 
   8329 
   8330 fi
   8331 
   8332 rm -f core conftest.err conftest.$ac_objext \
   8333       conftest$ac_exeext
   8334   if test "${ac_cv_search_opendir+set}" = set; then
   8335   break
   8336 fi
   8337 done
   8338 if test "${ac_cv_search_opendir+set}" = set; then
   8339   :
   8340 else
   8341   ac_cv_search_opendir=no
   8342 fi
   8343 rm conftest.$ac_ext
   8344 LIBS=$ac_func_search_save_LIBS
   8345 fi
   8346 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   8347 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   8348 ac_res=$ac_cv_search_opendir
   8349 if test "$ac_res" != no; then
   8350   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8351 
   8352 fi
   8353 
   8354 fi
   8355 
   8356 
   8357 for ac_header in dlfcn.h
   8358 do
   8359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8361   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   8362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   8363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8364   echo $ECHO_N "(cached) $ECHO_C" >&6
   8365 fi
   8366 ac_res=`eval echo '${'$as_ac_Header'}'`
   8367 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8368 echo "${ECHO_T}$ac_res" >&6; }
   8369 else
   8370   # Is the header compilable?
   8371 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   8372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   8373 cat >conftest.$ac_ext <<_ACEOF
   8374 /* confdefs.h.  */
   8375 _ACEOF
   8376 cat confdefs.h >>conftest.$ac_ext
   8377 cat >>conftest.$ac_ext <<_ACEOF
   8378 /* end confdefs.h.  */
   8379 $ac_includes_default
   8380 #include <$ac_header>
   8381 _ACEOF
   8382 rm -f conftest.$ac_objext
   8383 if { (ac_try="$ac_compile"
   8384 case "(($ac_try" in
   8385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8386   *) ac_try_echo=$ac_try;;
   8387 esac
   8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8389   (eval "$ac_compile") 2>conftest.er1
   8390   ac_status=$?
   8391   grep -v '^ *+' conftest.er1 >conftest.err
   8392   rm -f conftest.er1
   8393   cat conftest.err >&5
   8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8395   (exit $ac_status); } &&
   8396 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8397   { (case "(($ac_try" in
   8398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8399   *) ac_try_echo=$ac_try;;
   8400 esac
   8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8402   (eval "$ac_try") 2>&5
   8403   ac_status=$?
   8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8405   (exit $ac_status); }; } &&
   8406 	 { ac_try='test -s conftest.$ac_objext'
   8407   { (case "(($ac_try" in
   8408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8409   *) ac_try_echo=$ac_try;;
   8410 esac
   8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8412   (eval "$ac_try") 2>&5
   8413   ac_status=$?
   8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8415   (exit $ac_status); }; }; then
   8416   ac_header_compiler=yes
   8417 else
   8418   echo "$as_me: failed program was:" >&5
   8419 sed 's/^/| /' conftest.$ac_ext >&5
   8420 
   8421 	ac_header_compiler=no
   8422 fi
   8423 
   8424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   8426 echo "${ECHO_T}$ac_header_compiler" >&6; }
   8427 
   8428 # Is the header present?
   8429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   8430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   8431 cat >conftest.$ac_ext <<_ACEOF
   8432 /* confdefs.h.  */
   8433 _ACEOF
   8434 cat confdefs.h >>conftest.$ac_ext
   8435 cat >>conftest.$ac_ext <<_ACEOF
   8436 /* end confdefs.h.  */
   8437 #include <$ac_header>
   8438 _ACEOF
   8439 if { (ac_try="$ac_cpp conftest.$ac_ext"
   8440 case "(($ac_try" in
   8441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8442   *) ac_try_echo=$ac_try;;
   8443 esac
   8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   8446   ac_status=$?
   8447   grep -v '^ *+' conftest.er1 >conftest.err
   8448   rm -f conftest.er1
   8449   cat conftest.err >&5
   8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8451   (exit $ac_status); } >/dev/null; then
   8452   if test -s conftest.err; then
   8453     ac_cpp_err=$ac_c_preproc_warn_flag
   8454     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   8455   else
   8456     ac_cpp_err=
   8457   fi
   8458 else
   8459   ac_cpp_err=yes
   8460 fi
   8461 if test -z "$ac_cpp_err"; then
   8462   ac_header_preproc=yes
   8463 else
   8464   echo "$as_me: failed program was:" >&5
   8465 sed 's/^/| /' conftest.$ac_ext >&5
   8466 
   8467   ac_header_preproc=no
   8468 fi
   8469 
   8470 rm -f conftest.err conftest.$ac_ext
   8471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   8472 echo "${ECHO_T}$ac_header_preproc" >&6; }
   8473 
   8474 # So?  What about this header?
   8475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   8476   yes:no: )
   8477     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   8478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   8479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   8480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   8481     ac_header_preproc=yes
   8482     ;;
   8483   no:yes:* )
   8484     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   8485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   8486     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   8487 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   8488     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   8489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   8490     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   8491 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   8492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   8493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   8494     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   8495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   8496     ( cat <<\_ASBOX
   8497 ## ------------------------------ ##
   8498 ## Report this to bugs@yourdomain ##
   8499 ## ------------------------------ ##
   8500 _ASBOX
   8501      ) | sed "s/^/$as_me: WARNING:     /" >&2
   8502     ;;
   8503 esac
   8504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   8505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   8506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8507   echo $ECHO_N "(cached) $ECHO_C" >&6
   8508 else
   8509   eval "$as_ac_Header=\$ac_header_preproc"
   8510 fi
   8511 ac_res=`eval echo '${'$as_ac_Header'}'`
   8512 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8513 echo "${ECHO_T}$ac_res" >&6; }
   8514 
   8515 fi
   8516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8517   cat >>confdefs.h <<_ACEOF
   8518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8519 _ACEOF
   8520 
   8521 fi
   8522 
   8523 done
   8524 
   8525 # Check whether --enable-ltdl-install was given.
   8526 if test "${enable_ltdl_install+set}" = set; then
   8527   enableval=$enable_ltdl_install;
   8528 fi
   8529 
   8530 
   8531 
   8532 
   8533 if test x"${enable_ltdl_install-no}" != xno; then
   8534   INSTALL_LTDL_TRUE=
   8535   INSTALL_LTDL_FALSE='#'
   8536 else
   8537   INSTALL_LTDL_TRUE='#'
   8538   INSTALL_LTDL_FALSE=
   8539 fi
   8540 
   8541 
   8542 
   8543 if test x"${enable_ltdl_convenience-no}" != xno; then
   8544   CONVENIENCE_LTDL_TRUE=
   8545   CONVENIENCE_LTDL_FALSE='#'
   8546 else
   8547   CONVENIENCE_LTDL_TRUE='#'
   8548   CONVENIENCE_LTDL_FALSE=
   8549 fi
   8550 
   8551 
   8552 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
   8553 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
   8554 library_names_spec=
   8555 libname_spec='lib$name'
   8556 soname_spec=
   8557 shrext_cmds=".so"
   8558 postinstall_cmds=
   8559 postuninstall_cmds=
   8560 finish_cmds=
   8561 finish_eval=
   8562 shlibpath_var=
   8563 shlibpath_overrides_runpath=unknown
   8564 version_type=none
   8565 dynamic_linker="$host_os ld.so"
   8566 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   8567 if test "$GCC" = yes; then
   8568   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   8569   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
   8570     # if the path contains ";" then we assume it to be the separator
   8571     # otherwise default to the standard path separator (i.e. ":") - it is
   8572     # assumed that no part of a normal pathname contains ";" but that should
   8573     # okay in the real world where ";" in dirpaths is itself problematic.
   8574     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   8575   else
   8576     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   8577   fi
   8578 else
   8579   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   8580 fi
   8581 need_lib_prefix=unknown
   8582 hardcode_into_libs=no
   8583 
   8584 # when you set need_version to no, make sure it does not cause -set_version
   8585 # flags to be left without arguments
   8586 need_version=unknown
   8587 
   8588 case $host_os in
   8589 aix3*)
   8590   version_type=linux
   8591   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   8592   shlibpath_var=LIBPATH
   8593 
   8594   # AIX 3 has no versioning support, so we append a major version to the name.
   8595   soname_spec='${libname}${release}${shared_ext}$major'
   8596   ;;
   8597 
   8598 aix4* | aix5*)
   8599   version_type=linux
   8600   need_lib_prefix=no
   8601   need_version=no
   8602   hardcode_into_libs=yes
   8603   if test "$host_cpu" = ia64; then
   8604     # AIX 5 supports IA64
   8605     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   8606     shlibpath_var=LD_LIBRARY_PATH
   8607   else
   8608     # With GCC up to 2.95.x, collect2 would create an import file
   8609     # for dependence libraries.  The import file would start with
   8610     # the line `#! .'.  This would cause the generated library to
   8611     # depend on `.', always an invalid library.  This was fixed in
   8612     # development snapshots of GCC prior to 3.0.
   8613     case $host_os in
   8614       aix4 | aix4.[01] | aix4.[01].*)
   8615       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   8616 	   echo ' yes '
   8617 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
   8618 	:
   8619       else
   8620 	can_build_shared=no
   8621       fi
   8622       ;;
   8623     esac
   8624     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   8625     # soname into executable. Probably we can add versioning support to
   8626     # collect2, so additional links can be useful in future.
   8627     if test "$aix_use_runtimelinking" = yes; then
   8628       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   8629       # instead of lib<name>.a to let people know that these are not
   8630       # typical AIX shared libraries.
   8631       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8632     else
   8633       # We preserve .a as extension for shared libraries through AIX4.2
   8634       # and later when we are not doing run time linking.
   8635       library_names_spec='${libname}${release}.a $libname.a'
   8636       soname_spec='${libname}${release}${shared_ext}$major'
   8637     fi
   8638     shlibpath_var=LIBPATH
   8639   fi
   8640   ;;
   8641 
   8642 amigaos*)
   8643   library_names_spec='$libname.ixlibrary $libname.a'
   8644   # Create ${libname}_ixlibrary.a entries in /sys/libs.
   8645   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'
   8646   ;;
   8647 
   8648 beos*)
   8649   library_names_spec='${libname}${shared_ext}'
   8650   dynamic_linker="$host_os ld.so"
   8651   shlibpath_var=LIBRARY_PATH
   8652   ;;
   8653 
   8654 bsdi[45]*)
   8655   version_type=linux
   8656   need_version=no
   8657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8658   soname_spec='${libname}${release}${shared_ext}$major'
   8659   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   8660   shlibpath_var=LD_LIBRARY_PATH
   8661   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   8662   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   8663   # the default ld.so.conf also contains /usr/contrib/lib and
   8664   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   8665   # libtool to hard-code these into programs
   8666   ;;
   8667 
   8668 cygwin* | mingw* | pw32*)
   8669   version_type=windows
   8670   shrext_cmds=".dll"
   8671   need_version=no
   8672   need_lib_prefix=no
   8673 
   8674   case $GCC,$host_os in
   8675   yes,cygwin* | yes,mingw* | yes,pw32*)
   8676     library_names_spec='$libname.dll.a'
   8677     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   8678     postinstall_cmds='base_file=`basename \${file}`~
   8679       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   8680       dldir=$destdir/`dirname \$dlpath`~
   8681       test -d \$dldir || mkdir -p \$dldir~
   8682       $install_prog $dir/$dlname \$dldir/$dlname~
   8683       chmod a+x \$dldir/$dlname'
   8684     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   8685       dlpath=$dir/\$dldll~
   8686        $rm \$dlpath'
   8687     shlibpath_overrides_runpath=yes
   8688 
   8689     case $host_os in
   8690     cygwin*)
   8691       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   8692       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   8693       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
   8694       ;;
   8695     mingw*)
   8696       # MinGW DLLs use traditional 'lib' prefix
   8697       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   8698       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   8699       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
   8700         # It is most probably a Windows format PATH printed by
   8701         # mingw gcc, but we are running on Cygwin. Gcc prints its search
   8702         # path with ; separators, and with drive letters. We can handle the
   8703         # drive letters (cygwin fileutils understands them), so leave them,
   8704         # especially as we might pass files found there to a mingw objdump,
   8705         # which wouldn't understand a cygwinified path. Ahh.
   8706         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   8707       else
   8708         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   8709       fi
   8710       ;;
   8711     pw32*)
   8712       # pw32 DLLs use 'pw' prefix rather than 'lib'
   8713       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   8714       ;;
   8715     esac
   8716     ;;
   8717 
   8718   *)
   8719     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   8720     ;;
   8721   esac
   8722   dynamic_linker='Win32 ld.exe'
   8723   # FIXME: first we should search . and the directory the executable is in
   8724   shlibpath_var=PATH
   8725   ;;
   8726 
   8727 darwin* | rhapsody*)
   8728   dynamic_linker="$host_os dyld"
   8729   version_type=darwin
   8730   need_lib_prefix=no
   8731   need_version=no
   8732   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   8733   soname_spec='${libname}${release}${major}$shared_ext'
   8734   shlibpath_overrides_runpath=yes
   8735   shlibpath_var=DYLD_LIBRARY_PATH
   8736   shrext_cmds='.dylib'
   8737   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   8738   if test "$GCC" = yes; then
   8739     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"`
   8740   else
   8741     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   8742   fi
   8743   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   8744   ;;
   8745 
   8746 dgux*)
   8747   version_type=linux
   8748   need_lib_prefix=no
   8749   need_version=no
   8750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   8751   soname_spec='${libname}${release}${shared_ext}$major'
   8752   shlibpath_var=LD_LIBRARY_PATH
   8753   ;;
   8754 
   8755 freebsd1.*)
   8756   dynamic_linker=no
   8757   ;;
   8758 
   8759 kfreebsd*-gnu)
   8760   version_type=linux
   8761   need_lib_prefix=no
   8762   need_version=no
   8763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8764   soname_spec='${libname}${release}${shared_ext}$major'
   8765   shlibpath_var=LD_LIBRARY_PATH
   8766   shlibpath_overrides_runpath=no
   8767   hardcode_into_libs=yes
   8768   dynamic_linker='GNU ld.so'
   8769   ;;
   8770 
   8771 freebsd* | dragonfly*)
   8772   # DragonFly does not have aout.  When/if they implement a new
   8773   # versioning mechanism, adjust this.
   8774   if test -x /usr/bin/objformat; then
   8775     objformat=`/usr/bin/objformat`
   8776   else
   8777     case $host_os in
   8778     freebsd[123].*) objformat=aout ;;
   8779     *) objformat=elf ;;
   8780     esac
   8781   fi
   8782   version_type=freebsd-$objformat
   8783   case $version_type in
   8784     freebsd-elf*)
   8785       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   8786       need_version=no
   8787       need_lib_prefix=no
   8788       ;;
   8789     freebsd-*)
   8790       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   8791       need_version=yes
   8792       ;;
   8793   esac
   8794   shlibpath_var=LD_LIBRARY_PATH
   8795   case $host_os in
   8796   freebsd2.*)
   8797     shlibpath_overrides_runpath=yes
   8798     ;;
   8799   freebsd3.[01]* | freebsdelf3.[01]*)
   8800     shlibpath_overrides_runpath=yes
   8801     hardcode_into_libs=yes
   8802     ;;
   8803   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   8804   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   8805     shlibpath_overrides_runpath=no
   8806     hardcode_into_libs=yes
   8807     ;;
   8808   freebsd*) # from 4.6 on
   8809     shlibpath_overrides_runpath=yes
   8810     hardcode_into_libs=yes
   8811     ;;
   8812   esac
   8813   ;;
   8814 
   8815 gnu*)
   8816   version_type=linux
   8817   need_lib_prefix=no
   8818   need_version=no
   8819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   8820   soname_spec='${libname}${release}${shared_ext}$major'
   8821   shlibpath_var=LD_LIBRARY_PATH
   8822   hardcode_into_libs=yes
   8823   ;;
   8824 
   8825 hpux9* | hpux10* | hpux11*)
   8826   # Give a soname corresponding to the major version so that dld.sl refuses to
   8827   # link against other versions.
   8828   version_type=sunos
   8829   need_lib_prefix=no
   8830   need_version=no
   8831   case $host_cpu in
   8832   ia64*)
   8833     shrext_cmds='.so'
   8834     hardcode_into_libs=yes
   8835     dynamic_linker="$host_os dld.so"
   8836     shlibpath_var=LD_LIBRARY_PATH
   8837     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   8838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8839     soname_spec='${libname}${release}${shared_ext}$major'
   8840     if test "X$HPUX_IA64_MODE" = X32; then
   8841       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   8842     else
   8843       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   8844     fi
   8845     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   8846     ;;
   8847    hppa*64*)
   8848      shrext_cmds='.sl'
   8849      hardcode_into_libs=yes
   8850      dynamic_linker="$host_os dld.sl"
   8851      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   8852      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   8853      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8854      soname_spec='${libname}${release}${shared_ext}$major'
   8855      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   8856      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   8857      ;;
   8858    *)
   8859     shrext_cmds='.sl'
   8860     dynamic_linker="$host_os dld.sl"
   8861     shlibpath_var=SHLIB_PATH
   8862     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   8863     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8864     soname_spec='${libname}${release}${shared_ext}$major'
   8865     ;;
   8866   esac
   8867   # HP-UX runs *really* slowly unless shared libraries are mode 555.
   8868   postinstall_cmds='chmod 555 $lib'
   8869   ;;
   8870 
   8871 interix3*)
   8872   version_type=linux
   8873   need_lib_prefix=no
   8874   need_version=no
   8875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8876   soname_spec='${libname}${release}${shared_ext}$major'
   8877   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   8878   shlibpath_var=LD_LIBRARY_PATH
   8879   shlibpath_overrides_runpath=no
   8880   hardcode_into_libs=yes
   8881   ;;
   8882 
   8883 irix5* | irix6* | nonstopux*)
   8884   case $host_os in
   8885     nonstopux*) version_type=nonstopux ;;
   8886     *)
   8887 	if test "$lt_cv_prog_gnu_ld" = yes; then
   8888 		version_type=linux
   8889 	else
   8890 		version_type=irix
   8891 	fi ;;
   8892   esac
   8893   need_lib_prefix=no
   8894   need_version=no
   8895   soname_spec='${libname}${release}${shared_ext}$major'
   8896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   8897   case $host_os in
   8898   irix5* | nonstopux*)
   8899     libsuff= shlibsuff=
   8900     ;;
   8901   *)
   8902     case $LD in # libtool.m4 will add one of these switches to LD
   8903     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   8904       libsuff= shlibsuff= libmagic=32-bit;;
   8905     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   8906       libsuff=32 shlibsuff=N32 libmagic=N32;;
   8907     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   8908       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   8909     *) libsuff= shlibsuff= libmagic=never-match;;
   8910     esac
   8911     ;;
   8912   esac
   8913   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   8914   shlibpath_overrides_runpath=no
   8915   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   8916   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   8917   hardcode_into_libs=yes
   8918   ;;
   8919 
   8920 # No shared lib support for Linux oldld, aout, or coff.
   8921 linux*oldld* | linux*aout* | linux*coff*)
   8922   dynamic_linker=no
   8923   ;;
   8924 
   8925 # This must be Linux ELF.
   8926 linux*)
   8927   version_type=linux
   8928   need_lib_prefix=no
   8929   need_version=no
   8930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8931   soname_spec='${libname}${release}${shared_ext}$major'
   8932   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   8933   shlibpath_var=LD_LIBRARY_PATH
   8934   shlibpath_overrides_runpath=no
   8935   # This implies no fast_install, which is unacceptable.
   8936   # Some rework will be needed to allow for fast_install
   8937   # before this can be enabled.
   8938   hardcode_into_libs=yes
   8939 
   8940   # Append ld.so.conf contents to the search path
   8941   if test -f /etc/ld.so.conf; then
   8942     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' ' '`
   8943     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   8944   fi
   8945 
   8946   # We used to test for /lib/ld.so.1 and disable shared libraries on
   8947   # powerpc, because MkLinux only supported shared libraries with the
   8948   # GNU dynamic linker.  Since this was broken with cross compilers,
   8949   # most powerpc-linux boxes support dynamic linking these days and
   8950   # people can always --disable-shared, the test was removed, and we
   8951   # assume the GNU/Linux dynamic linker is in use.
   8952   dynamic_linker='GNU/Linux ld.so'
   8953   ;;
   8954 
   8955 knetbsd*-gnu)
   8956   version_type=linux
   8957   need_lib_prefix=no
   8958   need_version=no
   8959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8960   soname_spec='${libname}${release}${shared_ext}$major'
   8961   shlibpath_var=LD_LIBRARY_PATH
   8962   shlibpath_overrides_runpath=no
   8963   hardcode_into_libs=yes
   8964   dynamic_linker='GNU ld.so'
   8965   ;;
   8966 
   8967 netbsd*)
   8968   version_type=sunos
   8969   need_lib_prefix=no
   8970   need_version=no
   8971   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   8972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   8973     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   8974     dynamic_linker='NetBSD (a.out) ld.so'
   8975   else
   8976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8977     soname_spec='${libname}${release}${shared_ext}$major'
   8978     dynamic_linker='NetBSD ld.elf_so'
   8979   fi
   8980   shlibpath_var=LD_LIBRARY_PATH
   8981   shlibpath_overrides_runpath=yes
   8982   hardcode_into_libs=yes
   8983   ;;
   8984 
   8985 newsos6)
   8986   version_type=linux
   8987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8988   shlibpath_var=LD_LIBRARY_PATH
   8989   shlibpath_overrides_runpath=yes
   8990   ;;
   8991 
   8992 nto-qnx*)
   8993   version_type=linux
   8994   need_lib_prefix=no
   8995   need_version=no
   8996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8997   soname_spec='${libname}${release}${shared_ext}$major'
   8998   shlibpath_var=LD_LIBRARY_PATH
   8999   shlibpath_overrides_runpath=yes
   9000   ;;
   9001 
   9002 openbsd*)
   9003   version_type=sunos
   9004   sys_lib_dlsearch_path_spec="/usr/lib"
   9005   need_lib_prefix=no
   9006   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
   9007   case $host_os in
   9008     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
   9009     *)                         need_version=no  ;;
   9010   esac
   9011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   9012   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   9013   shlibpath_var=LD_LIBRARY_PATH
   9014   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   9015     case $host_os in
   9016       openbsd2.[89] | openbsd2.[89].*)
   9017 	shlibpath_overrides_runpath=no
   9018 	;;
   9019       *)
   9020 	shlibpath_overrides_runpath=yes
   9021 	;;
   9022       esac
   9023   else
   9024     shlibpath_overrides_runpath=yes
   9025   fi
   9026   ;;
   9027 
   9028 os2*)
   9029   libname_spec='$name'
   9030   shrext_cmds=".dll"
   9031   need_lib_prefix=no
   9032   library_names_spec='$libname${shared_ext} $libname.a'
   9033   dynamic_linker='OS/2 ld.exe'
   9034   shlibpath_var=LIBPATH
   9035   ;;
   9036 
   9037 osf3* | osf4* | osf5*)
   9038   version_type=osf
   9039   need_lib_prefix=no
   9040   need_version=no
   9041   soname_spec='${libname}${release}${shared_ext}$major'
   9042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9043   shlibpath_var=LD_LIBRARY_PATH
   9044   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   9045   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   9046   ;;
   9047 
   9048 solaris*)
   9049   version_type=linux
   9050   need_lib_prefix=no
   9051   need_version=no
   9052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9053   soname_spec='${libname}${release}${shared_ext}$major'
   9054   shlibpath_var=LD_LIBRARY_PATH
   9055   shlibpath_overrides_runpath=yes
   9056   hardcode_into_libs=yes
   9057   # ldd complains unless libraries are executable
   9058   postinstall_cmds='chmod +x $lib'
   9059   ;;
   9060 
   9061 sunos4*)
   9062   version_type=sunos
   9063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   9064   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   9065   shlibpath_var=LD_LIBRARY_PATH
   9066   shlibpath_overrides_runpath=yes
   9067   if test "$with_gnu_ld" = yes; then
   9068     need_lib_prefix=no
   9069   fi
   9070   need_version=yes
   9071   ;;
   9072 
   9073 sysv4 | sysv4.3*)
   9074   version_type=linux
   9075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9076   soname_spec='${libname}${release}${shared_ext}$major'
   9077   shlibpath_var=LD_LIBRARY_PATH
   9078   case $host_vendor in
   9079     sni)
   9080       shlibpath_overrides_runpath=no
   9081       need_lib_prefix=no
   9082       export_dynamic_flag_spec='${wl}-Blargedynsym'
   9083       runpath_var=LD_RUN_PATH
   9084       ;;
   9085     siemens)
   9086       need_lib_prefix=no
   9087       ;;
   9088     motorola)
   9089       need_lib_prefix=no
   9090       need_version=no
   9091       shlibpath_overrides_runpath=no
   9092       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   9093       ;;
   9094   esac
   9095   ;;
   9096 
   9097 sysv4*MP*)
   9098   if test -d /usr/nec ;then
   9099     version_type=linux
   9100     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   9101     soname_spec='$libname${shared_ext}.$major'
   9102     shlibpath_var=LD_LIBRARY_PATH
   9103   fi
   9104   ;;
   9105 
   9106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   9107   version_type=freebsd-elf
   9108   need_lib_prefix=no
   9109   need_version=no
   9110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   9111   soname_spec='${libname}${release}${shared_ext}$major'
   9112   shlibpath_var=LD_LIBRARY_PATH
   9113   hardcode_into_libs=yes
   9114   if test "$with_gnu_ld" = yes; then
   9115     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   9116     shlibpath_overrides_runpath=no
   9117   else
   9118     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   9119     shlibpath_overrides_runpath=yes
   9120     case $host_os in
   9121       sco3.2v5*)
   9122         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   9123 	;;
   9124     esac
   9125   fi
   9126   sys_lib_dlsearch_path_spec='/usr/lib'
   9127   ;;
   9128 
   9129 uts4*)
   9130   version_type=linux
   9131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9132   soname_spec='${libname}${release}${shared_ext}$major'
   9133   shlibpath_var=LD_LIBRARY_PATH
   9134   ;;
   9135 
   9136 *)
   9137   dynamic_linker=no
   9138   ;;
   9139 esac
   9140 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
   9141 echo "${ECHO_T}$dynamic_linker" >&6; }
   9142 test "$dynamic_linker" = no && can_build_shared=no
   9143 
   9144 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   9145 if test "$GCC" = yes; then
   9146   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   9147 fi
   9148 
   9149 
   9150 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
   9151 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
   9152 if test "${libltdl_cv_shlibext+set}" = set; then
   9153   echo $ECHO_N "(cached) $ECHO_C" >&6
   9154 else
   9155 
   9156 module=yes
   9157 eval libltdl_cv_shlibext=$shrext_cmds
   9158 
   9159 fi
   9160 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
   9161 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
   9162 if test -n "$libltdl_cv_shlibext"; then
   9163 
   9164 cat >>confdefs.h <<_ACEOF
   9165 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
   9166 _ACEOF
   9167 
   9168 fi
   9169 
   9170 
   9171 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
   9172 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
   9173 if test "${libltdl_cv_shlibpath_var+set}" = set; then
   9174   echo $ECHO_N "(cached) $ECHO_C" >&6
   9175 else
   9176   libltdl_cv_shlibpath_var="$shlibpath_var"
   9177 fi
   9178 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
   9179 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
   9180 if test -n "$libltdl_cv_shlibpath_var"; then
   9181 
   9182 cat >>confdefs.h <<_ACEOF
   9183 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
   9184 _ACEOF
   9185 
   9186 fi
   9187 
   9188 
   9189 { echo "$as_me:$LINENO: checking for the default library search path" >&5
   9190 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
   9191 if test "${libltdl_cv_sys_search_path+set}" = set; then
   9192   echo $ECHO_N "(cached) $ECHO_C" >&6
   9193 else
   9194   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
   9195 fi
   9196 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
   9197 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
   9198 if test -n "$libltdl_cv_sys_search_path"; then
   9199   sys_search_path=
   9200   for dir in $libltdl_cv_sys_search_path; do
   9201     if test -z "$sys_search_path"; then
   9202       sys_search_path="$dir"
   9203     else
   9204       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
   9205     fi
   9206   done
   9207 
   9208 cat >>confdefs.h <<_ACEOF
   9209 #define LTDL_SYSSEARCHPATH "$sys_search_path"
   9210 _ACEOF
   9211 
   9212 fi
   9213 
   9214 { echo "$as_me:$LINENO: checking for objdir" >&5
   9215 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
   9216 if test "${libltdl_cv_objdir+set}" = set; then
   9217   echo $ECHO_N "(cached) $ECHO_C" >&6
   9218 else
   9219   libltdl_cv_objdir="$objdir"
   9220   if test -n "$objdir"; then
   9221     :
   9222   else
   9223     rm -f .libs 2>/dev/null
   9224     mkdir .libs 2>/dev/null
   9225     if test -d .libs; then
   9226       libltdl_cv_objdir=.libs
   9227     else
   9228       # MS-DOS does not allow filenames that begin with a dot.
   9229       libltdl_cv_objdir=_libs
   9230     fi
   9231   rmdir .libs 2>/dev/null
   9232   fi
   9233 
   9234 fi
   9235 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
   9236 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
   9237 
   9238 cat >>confdefs.h <<_ACEOF
   9239 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
   9240 _ACEOF
   9241 
   9242 
   9243 
   9244 
   9245 
   9246 
   9247 # Check for command to grab the raw symbol name followed by C symbol from nm.
   9248 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
   9249 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
   9250 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
   9251   echo $ECHO_N "(cached) $ECHO_C" >&6
   9252 else
   9253 
   9254 # These are sane defaults that work on at least a few old systems.
   9255 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   9256 
   9257 # Character class describing NM global symbol codes.
   9258 symcode='[BCDEGRST]'
   9259 
   9260 # Regexp to match symbols that can be accessed directly from C.
   9261 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   9262 
   9263 # Transform an extracted symbol line into a proper C declaration
   9264 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
   9265 
   9266 # Transform an extracted symbol line into symbol name and symbol address
   9267 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'"
   9268 
   9269 # Define system-specific variables.
   9270 case $host_os in
   9271 aix*)
   9272   symcode='[BCDT]'
   9273   ;;
   9274 cygwin* | mingw* | pw32*)
   9275   symcode='[ABCDGISTW]'
   9276   ;;
   9277 hpux*) # Its linker distinguishes data from code symbols
   9278   if test "$host_cpu" = ia64; then
   9279     symcode='[ABCDEGRST]'
   9280   fi
   9281   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   9282   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'"
   9283   ;;
   9284 linux*)
   9285   if test "$host_cpu" = ia64; then
   9286     symcode='[ABCDGIRSTW]'
   9287     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   9288     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'"
   9289   fi
   9290   ;;
   9291 irix* | nonstopux*)
   9292   symcode='[BCDEGRST]'
   9293   ;;
   9294 osf*)
   9295   symcode='[BCDEGQRST]'
   9296   ;;
   9297 solaris*)
   9298   symcode='[BDRT]'
   9299   ;;
   9300 sco3.2v5*)
   9301   symcode='[DT]'
   9302   ;;
   9303 sysv4.2uw2*)
   9304   symcode='[DT]'
   9305   ;;
   9306 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   9307   symcode='[ABDT]'
   9308   ;;
   9309 sysv4)
   9310   symcode='[DFNSTU]'
   9311   ;;
   9312 esac
   9313 
   9314 # Handle CRLF in mingw tool chain
   9315 opt_cr=
   9316 case $build_os in
   9317 mingw*)
   9318   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   9319   ;;
   9320 esac
   9321 
   9322 # If we're using GNU nm, then use its standard symbol codes.
   9323 case `$NM -V 2>&1` in
   9324 *GNU* | *'with BFD'*)
   9325   symcode='[ABCDGIRSTW]' ;;
   9326 esac
   9327 
   9328 # Try without a prefix undercore, then with it.
   9329 for ac_symprfx in "" "_"; do
   9330 
   9331   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   9332   symxfrm="\\1 $ac_symprfx\\2 \\2"
   9333 
   9334   # Write the raw and C identifiers.
   9335   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   9336 
   9337   # Check to see that the pipe works correctly.
   9338   pipe_works=no
   9339 
   9340   rm -f conftest*
   9341   cat > conftest.$ac_ext <<EOF
   9342 #ifdef __cplusplus
   9343 extern "C" {
   9344 #endif
   9345 char nm_test_var;
   9346 void nm_test_func(){}
   9347 #ifdef __cplusplus
   9348 }
   9349 #endif
   9350 int main(){nm_test_var='a';nm_test_func();return(0);}
   9351 EOF
   9352 
   9353   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9354   (eval $ac_compile) 2>&5
   9355   ac_status=$?
   9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9357   (exit $ac_status); }; then
   9358     # Now try to grab the symbols.
   9359     nlist=conftest.nm
   9360     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
   9361   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
   9362   ac_status=$?
   9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9364   (exit $ac_status); } && test -s "$nlist"; then
   9365       # Try sorting and uniquifying the output.
   9366       if sort "$nlist" | uniq > "$nlist"T; then
   9367 	mv -f "$nlist"T "$nlist"
   9368       else
   9369 	rm -f "$nlist"T
   9370       fi
   9371 
   9372       # Make sure that we snagged all the symbols we need.
   9373       if grep ' nm_test_var$' "$nlist" >/dev/null; then
   9374 	if grep ' nm_test_func$' "$nlist" >/dev/null; then
   9375 	  cat <<EOF > conftest.$ac_ext
   9376 #ifdef __cplusplus
   9377 extern "C" {
   9378 #endif
   9379 
   9380 EOF
   9381 	  # Now generate the symbol file.
   9382 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
   9383 
   9384 	  cat <<EOF >> conftest.$ac_ext
   9385 #if defined (__STDC__) && __STDC__
   9386 # define lt_ptr_t void *
   9387 #else
   9388 # define lt_ptr_t char *
   9389 # define const
   9390 #endif
   9391 
   9392 /* The mapping between symbol names and symbols. */
   9393 const struct {
   9394   const char *name;
   9395   lt_ptr_t address;
   9396 }
   9397 lt_preloaded_symbols[] =
   9398 {
   9399 EOF
   9400 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
   9401 	  cat <<\EOF >> conftest.$ac_ext
   9402   {0, (lt_ptr_t) 0}
   9403 };
   9404 
   9405 #ifdef __cplusplus
   9406 }
   9407 #endif
   9408 EOF
   9409 	  # Now try linking the two files.
   9410 	  mv conftest.$ac_objext conftstm.$ac_objext
   9411 	  lt_save_LIBS="$LIBS"
   9412 	  lt_save_CFLAGS="$CFLAGS"
   9413 	  LIBS="conftstm.$ac_objext"
   9414 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   9415 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9416   (eval $ac_link) 2>&5
   9417   ac_status=$?
   9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9419   (exit $ac_status); } && test -s conftest${ac_exeext}; then
   9420 	    pipe_works=yes
   9421 	  fi
   9422 	  LIBS="$lt_save_LIBS"
   9423 	  CFLAGS="$lt_save_CFLAGS"
   9424 	else
   9425 	  echo "cannot find nm_test_func in $nlist" >&5
   9426 	fi
   9427       else
   9428 	echo "cannot find nm_test_var in $nlist" >&5
   9429       fi
   9430     else
   9431       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   9432     fi
   9433   else
   9434     echo "$progname: failed program was:" >&5
   9435     cat conftest.$ac_ext >&5
   9436   fi
   9437   rm -f conftest* conftst*
   9438 
   9439   # Do not use the global_symbol_pipe unless it works.
   9440   if test "$pipe_works" = yes; then
   9441     break
   9442   else
   9443     lt_cv_sys_global_symbol_pipe=
   9444   fi
   9445 done
   9446 
   9447 fi
   9448 
   9449 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   9450   lt_cv_sys_global_symbol_to_cdecl=
   9451 fi
   9452 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   9453   { echo "$as_me:$LINENO: result: failed" >&5
   9454 echo "${ECHO_T}failed" >&6; }
   9455 else
   9456   { echo "$as_me:$LINENO: result: ok" >&5
   9457 echo "${ECHO_T}ok" >&6; }
   9458 fi
   9459 
   9460 
   9461 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
   9462 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
   9463 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
   9464   echo $ECHO_N "(cached) $ECHO_C" >&6
   9465 else
   9466   if test -n "$lt_cv_sys_global_symbol_pipe"; then
   9467     libltdl_cv_preloaded_symbols=yes
   9468   else
   9469     libltdl_cv_preloaded_symbols=no
   9470   fi
   9471 
   9472 fi
   9473 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
   9474 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
   9475 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
   9476 
   9477 cat >>confdefs.h <<\_ACEOF
   9478 #define HAVE_PRELOADED_SYMBOLS 1
   9479 _ACEOF
   9480 
   9481 fi
   9482 
   9483 LIBADD_DL=
   9484 
   9485 ac_ext=c
   9486 ac_cpp='$CPP $CPPFLAGS'
   9487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9490 
   9491 
   9492 { echo "$as_me:$LINENO: checking for shl_load" >&5
   9493 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
   9494 if test "${ac_cv_func_shl_load+set}" = set; then
   9495   echo $ECHO_N "(cached) $ECHO_C" >&6
   9496 else
   9497   cat >conftest.$ac_ext <<_ACEOF
   9498 /* confdefs.h.  */
   9499 _ACEOF
   9500 cat confdefs.h >>conftest.$ac_ext
   9501 cat >>conftest.$ac_ext <<_ACEOF
   9502 /* end confdefs.h.  */
   9503 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   9504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9505 #define shl_load innocuous_shl_load
   9506 
   9507 /* System header to define __stub macros and hopefully few prototypes,
   9508     which can conflict with char shl_load (); below.
   9509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9510     <limits.h> exists even on freestanding compilers.  */
   9511 
   9512 #ifdef __STDC__
   9513 # include <limits.h>
   9514 #else
   9515 # include <assert.h>
   9516 #endif
   9517 
   9518 #undef shl_load
   9519 
   9520 /* Override any GCC internal prototype to avoid an error.
   9521    Use char because int might match the return type of a GCC
   9522    builtin and then its argument prototype would still apply.  */
   9523 #ifdef __cplusplus
   9524 extern "C"
   9525 #endif
   9526 char shl_load ();
   9527 /* The GNU C library defines this for functions which it implements
   9528     to always fail with ENOSYS.  Some functions are actually named
   9529     something starting with __ and the normal name is an alias.  */
   9530 #if defined __stub_shl_load || defined __stub___shl_load
   9531 choke me
   9532 #endif
   9533 
   9534 int
   9535 main ()
   9536 {
   9537 return shl_load ();
   9538   ;
   9539   return 0;
   9540 }
   9541 _ACEOF
   9542 rm -f conftest.$ac_objext conftest$ac_exeext
   9543 if { (ac_try="$ac_link"
   9544 case "(($ac_try" in
   9545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9546   *) ac_try_echo=$ac_try;;
   9547 esac
   9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9549   (eval "$ac_link") 2>conftest.er1
   9550   ac_status=$?
   9551   grep -v '^ *+' conftest.er1 >conftest.err
   9552   rm -f conftest.er1
   9553   cat conftest.err >&5
   9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9555   (exit $ac_status); } &&
   9556 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9557   { (case "(($ac_try" in
   9558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9559   *) ac_try_echo=$ac_try;;
   9560 esac
   9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9562   (eval "$ac_try") 2>&5
   9563   ac_status=$?
   9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9565   (exit $ac_status); }; } &&
   9566 	 { ac_try='test -s conftest$ac_exeext'
   9567   { (case "(($ac_try" in
   9568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9569   *) ac_try_echo=$ac_try;;
   9570 esac
   9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9572   (eval "$ac_try") 2>&5
   9573   ac_status=$?
   9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9575   (exit $ac_status); }; }; then
   9576   ac_cv_func_shl_load=yes
   9577 else
   9578   echo "$as_me: failed program was:" >&5
   9579 sed 's/^/| /' conftest.$ac_ext >&5
   9580 
   9581 	ac_cv_func_shl_load=no
   9582 fi
   9583 
   9584 rm -f core conftest.err conftest.$ac_objext \
   9585       conftest$ac_exeext conftest.$ac_ext
   9586 fi
   9587 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
   9588 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
   9589 if test $ac_cv_func_shl_load = yes; then
   9590 
   9591 cat >>confdefs.h <<\_ACEOF
   9592 #define HAVE_SHL_LOAD 1
   9593 _ACEOF
   9594 
   9595 else
   9596   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
   9597 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
   9598 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
   9599   echo $ECHO_N "(cached) $ECHO_C" >&6
   9600 else
   9601   ac_check_lib_save_LIBS=$LIBS
   9602 LIBS="-ldld  $LIBS"
   9603 cat >conftest.$ac_ext <<_ACEOF
   9604 /* confdefs.h.  */
   9605 _ACEOF
   9606 cat confdefs.h >>conftest.$ac_ext
   9607 cat >>conftest.$ac_ext <<_ACEOF
   9608 /* end confdefs.h.  */
   9609 
   9610 /* Override any GCC internal prototype to avoid an error.
   9611    Use char because int might match the return type of a GCC
   9612    builtin and then its argument prototype would still apply.  */
   9613 #ifdef __cplusplus
   9614 extern "C"
   9615 #endif
   9616 char shl_load ();
   9617 int
   9618 main ()
   9619 {
   9620 return shl_load ();
   9621   ;
   9622   return 0;
   9623 }
   9624 _ACEOF
   9625 rm -f conftest.$ac_objext conftest$ac_exeext
   9626 if { (ac_try="$ac_link"
   9627 case "(($ac_try" in
   9628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9629   *) ac_try_echo=$ac_try;;
   9630 esac
   9631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9632   (eval "$ac_link") 2>conftest.er1
   9633   ac_status=$?
   9634   grep -v '^ *+' conftest.er1 >conftest.err
   9635   rm -f conftest.er1
   9636   cat conftest.err >&5
   9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9638   (exit $ac_status); } &&
   9639 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9640   { (case "(($ac_try" in
   9641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9642   *) ac_try_echo=$ac_try;;
   9643 esac
   9644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9645   (eval "$ac_try") 2>&5
   9646   ac_status=$?
   9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9648   (exit $ac_status); }; } &&
   9649 	 { ac_try='test -s conftest$ac_exeext'
   9650   { (case "(($ac_try" in
   9651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9652   *) ac_try_echo=$ac_try;;
   9653 esac
   9654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9655   (eval "$ac_try") 2>&5
   9656   ac_status=$?
   9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9658   (exit $ac_status); }; }; then
   9659   ac_cv_lib_dld_shl_load=yes
   9660 else
   9661   echo "$as_me: failed program was:" >&5
   9662 sed 's/^/| /' conftest.$ac_ext >&5
   9663 
   9664 	ac_cv_lib_dld_shl_load=no
   9665 fi
   9666 
   9667 rm -f core conftest.err conftest.$ac_objext \
   9668       conftest$ac_exeext conftest.$ac_ext
   9669 LIBS=$ac_check_lib_save_LIBS
   9670 fi
   9671 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
   9672 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
   9673 if test $ac_cv_lib_dld_shl_load = yes; then
   9674 
   9675 cat >>confdefs.h <<\_ACEOF
   9676 #define HAVE_SHL_LOAD 1
   9677 _ACEOF
   9678 
   9679 	LIBADD_DL="$LIBADD_DL -ldld"
   9680 else
   9681   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   9682 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   9683 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   9684   echo $ECHO_N "(cached) $ECHO_C" >&6
   9685 else
   9686   ac_check_lib_save_LIBS=$LIBS
   9687 LIBS="-ldl  $LIBS"
   9688 cat >conftest.$ac_ext <<_ACEOF
   9689 /* confdefs.h.  */
   9690 _ACEOF
   9691 cat confdefs.h >>conftest.$ac_ext
   9692 cat >>conftest.$ac_ext <<_ACEOF
   9693 /* end confdefs.h.  */
   9694 
   9695 /* Override any GCC internal prototype to avoid an error.
   9696    Use char because int might match the return type of a GCC
   9697    builtin and then its argument prototype would still apply.  */
   9698 #ifdef __cplusplus
   9699 extern "C"
   9700 #endif
   9701 char dlopen ();
   9702 int
   9703 main ()
   9704 {
   9705 return dlopen ();
   9706   ;
   9707   return 0;
   9708 }
   9709 _ACEOF
   9710 rm -f conftest.$ac_objext conftest$ac_exeext
   9711 if { (ac_try="$ac_link"
   9712 case "(($ac_try" in
   9713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9714   *) ac_try_echo=$ac_try;;
   9715 esac
   9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9717   (eval "$ac_link") 2>conftest.er1
   9718   ac_status=$?
   9719   grep -v '^ *+' conftest.er1 >conftest.err
   9720   rm -f conftest.er1
   9721   cat conftest.err >&5
   9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9723   (exit $ac_status); } &&
   9724 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9725   { (case "(($ac_try" in
   9726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9727   *) ac_try_echo=$ac_try;;
   9728 esac
   9729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9730   (eval "$ac_try") 2>&5
   9731   ac_status=$?
   9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9733   (exit $ac_status); }; } &&
   9734 	 { ac_try='test -s conftest$ac_exeext'
   9735   { (case "(($ac_try" in
   9736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9737   *) ac_try_echo=$ac_try;;
   9738 esac
   9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9740   (eval "$ac_try") 2>&5
   9741   ac_status=$?
   9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9743   (exit $ac_status); }; }; then
   9744   ac_cv_lib_dl_dlopen=yes
   9745 else
   9746   echo "$as_me: failed program was:" >&5
   9747 sed 's/^/| /' conftest.$ac_ext >&5
   9748 
   9749 	ac_cv_lib_dl_dlopen=no
   9750 fi
   9751 
   9752 rm -f core conftest.err conftest.$ac_objext \
   9753       conftest$ac_exeext conftest.$ac_ext
   9754 LIBS=$ac_check_lib_save_LIBS
   9755 fi
   9756 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   9757 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   9758 if test $ac_cv_lib_dl_dlopen = yes; then
   9759 
   9760 cat >>confdefs.h <<\_ACEOF
   9761 #define HAVE_LIBDL 1
   9762 _ACEOF
   9763 
   9764 	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
   9765 else
   9766   cat >conftest.$ac_ext <<_ACEOF
   9767 /* confdefs.h.  */
   9768 _ACEOF
   9769 cat confdefs.h >>conftest.$ac_ext
   9770 cat >>conftest.$ac_ext <<_ACEOF
   9771 /* end confdefs.h.  */
   9772 #if HAVE_DLFCN_H
   9773 #  include <dlfcn.h>
   9774 #endif
   9775 
   9776 int
   9777 main ()
   9778 {
   9779 dlopen(0, 0);
   9780   ;
   9781   return 0;
   9782 }
   9783 _ACEOF
   9784 rm -f conftest.$ac_objext conftest$ac_exeext
   9785 if { (ac_try="$ac_link"
   9786 case "(($ac_try" in
   9787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9788   *) ac_try_echo=$ac_try;;
   9789 esac
   9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9791   (eval "$ac_link") 2>conftest.er1
   9792   ac_status=$?
   9793   grep -v '^ *+' conftest.er1 >conftest.err
   9794   rm -f conftest.er1
   9795   cat conftest.err >&5
   9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9797   (exit $ac_status); } &&
   9798 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9799   { (case "(($ac_try" in
   9800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9801   *) ac_try_echo=$ac_try;;
   9802 esac
   9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9804   (eval "$ac_try") 2>&5
   9805   ac_status=$?
   9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9807   (exit $ac_status); }; } &&
   9808 	 { ac_try='test -s conftest$ac_exeext'
   9809   { (case "(($ac_try" in
   9810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9811   *) ac_try_echo=$ac_try;;
   9812 esac
   9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9814   (eval "$ac_try") 2>&5
   9815   ac_status=$?
   9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9817   (exit $ac_status); }; }; then
   9818 
   9819 cat >>confdefs.h <<\_ACEOF
   9820 #define HAVE_LIBDL 1
   9821 _ACEOF
   9822  libltdl_cv_func_dlopen="yes"
   9823 else
   9824   echo "$as_me: failed program was:" >&5
   9825 sed 's/^/| /' conftest.$ac_ext >&5
   9826 
   9827 	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
   9828 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
   9829 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
   9830   echo $ECHO_N "(cached) $ECHO_C" >&6
   9831 else
   9832   ac_check_lib_save_LIBS=$LIBS
   9833 LIBS="-lsvld  $LIBS"
   9834 cat >conftest.$ac_ext <<_ACEOF
   9835 /* confdefs.h.  */
   9836 _ACEOF
   9837 cat confdefs.h >>conftest.$ac_ext
   9838 cat >>conftest.$ac_ext <<_ACEOF
   9839 /* end confdefs.h.  */
   9840 
   9841 /* Override any GCC internal prototype to avoid an error.
   9842    Use char because int might match the return type of a GCC
   9843    builtin and then its argument prototype would still apply.  */
   9844 #ifdef __cplusplus
   9845 extern "C"
   9846 #endif
   9847 char dlopen ();
   9848 int
   9849 main ()
   9850 {
   9851 return dlopen ();
   9852   ;
   9853   return 0;
   9854 }
   9855 _ACEOF
   9856 rm -f conftest.$ac_objext conftest$ac_exeext
   9857 if { (ac_try="$ac_link"
   9858 case "(($ac_try" in
   9859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9860   *) ac_try_echo=$ac_try;;
   9861 esac
   9862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9863   (eval "$ac_link") 2>conftest.er1
   9864   ac_status=$?
   9865   grep -v '^ *+' conftest.er1 >conftest.err
   9866   rm -f conftest.er1
   9867   cat conftest.err >&5
   9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9869   (exit $ac_status); } &&
   9870 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9871   { (case "(($ac_try" in
   9872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9873   *) ac_try_echo=$ac_try;;
   9874 esac
   9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9876   (eval "$ac_try") 2>&5
   9877   ac_status=$?
   9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9879   (exit $ac_status); }; } &&
   9880 	 { ac_try='test -s conftest$ac_exeext'
   9881   { (case "(($ac_try" in
   9882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9883   *) ac_try_echo=$ac_try;;
   9884 esac
   9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9886   (eval "$ac_try") 2>&5
   9887   ac_status=$?
   9888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9889   (exit $ac_status); }; }; then
   9890   ac_cv_lib_svld_dlopen=yes
   9891 else
   9892   echo "$as_me: failed program was:" >&5
   9893 sed 's/^/| /' conftest.$ac_ext >&5
   9894 
   9895 	ac_cv_lib_svld_dlopen=no
   9896 fi
   9897 
   9898 rm -f core conftest.err conftest.$ac_objext \
   9899       conftest$ac_exeext conftest.$ac_ext
   9900 LIBS=$ac_check_lib_save_LIBS
   9901 fi
   9902 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
   9903 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
   9904 if test $ac_cv_lib_svld_dlopen = yes; then
   9905 
   9906 cat >>confdefs.h <<\_ACEOF
   9907 #define HAVE_LIBDL 1
   9908 _ACEOF
   9909 
   9910 	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
   9911 else
   9912   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
   9913 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
   9914 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
   9915   echo $ECHO_N "(cached) $ECHO_C" >&6
   9916 else
   9917   ac_check_lib_save_LIBS=$LIBS
   9918 LIBS="-ldld  $LIBS"
   9919 cat >conftest.$ac_ext <<_ACEOF
   9920 /* confdefs.h.  */
   9921 _ACEOF
   9922 cat confdefs.h >>conftest.$ac_ext
   9923 cat >>conftest.$ac_ext <<_ACEOF
   9924 /* end confdefs.h.  */
   9925 
   9926 /* Override any GCC internal prototype to avoid an error.
   9927    Use char because int might match the return type of a GCC
   9928    builtin and then its argument prototype would still apply.  */
   9929 #ifdef __cplusplus
   9930 extern "C"
   9931 #endif
   9932 char dld_link ();
   9933 int
   9934 main ()
   9935 {
   9936 return dld_link ();
   9937   ;
   9938   return 0;
   9939 }
   9940 _ACEOF
   9941 rm -f conftest.$ac_objext conftest$ac_exeext
   9942 if { (ac_try="$ac_link"
   9943 case "(($ac_try" in
   9944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9945   *) ac_try_echo=$ac_try;;
   9946 esac
   9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9948   (eval "$ac_link") 2>conftest.er1
   9949   ac_status=$?
   9950   grep -v '^ *+' conftest.er1 >conftest.err
   9951   rm -f conftest.er1
   9952   cat conftest.err >&5
   9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9954   (exit $ac_status); } &&
   9955 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9956   { (case "(($ac_try" in
   9957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9958   *) ac_try_echo=$ac_try;;
   9959 esac
   9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9961   (eval "$ac_try") 2>&5
   9962   ac_status=$?
   9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9964   (exit $ac_status); }; } &&
   9965 	 { ac_try='test -s conftest$ac_exeext'
   9966   { (case "(($ac_try" in
   9967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9968   *) ac_try_echo=$ac_try;;
   9969 esac
   9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9971   (eval "$ac_try") 2>&5
   9972   ac_status=$?
   9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9974   (exit $ac_status); }; }; then
   9975   ac_cv_lib_dld_dld_link=yes
   9976 else
   9977   echo "$as_me: failed program was:" >&5
   9978 sed 's/^/| /' conftest.$ac_ext >&5
   9979 
   9980 	ac_cv_lib_dld_dld_link=no
   9981 fi
   9982 
   9983 rm -f core conftest.err conftest.$ac_objext \
   9984       conftest$ac_exeext conftest.$ac_ext
   9985 LIBS=$ac_check_lib_save_LIBS
   9986 fi
   9987 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
   9988 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
   9989 if test $ac_cv_lib_dld_dld_link = yes; then
   9990 
   9991 cat >>confdefs.h <<\_ACEOF
   9992 #define HAVE_DLD 1
   9993 _ACEOF
   9994 
   9995 	 	LIBADD_DL="$LIBADD_DL -ldld"
   9996 else
   9997   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
   9998 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
   9999 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
   10000   echo $ECHO_N "(cached) $ECHO_C" >&6
   10001 else
   10002   cat >conftest.$ac_ext <<_ACEOF
   10003 /* confdefs.h.  */
   10004 _ACEOF
   10005 cat confdefs.h >>conftest.$ac_ext
   10006 cat >>conftest.$ac_ext <<_ACEOF
   10007 /* end confdefs.h.  */
   10008 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
   10009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10010 #define _dyld_func_lookup innocuous__dyld_func_lookup
   10011 
   10012 /* System header to define __stub macros and hopefully few prototypes,
   10013     which can conflict with char _dyld_func_lookup (); below.
   10014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10015     <limits.h> exists even on freestanding compilers.  */
   10016 
   10017 #ifdef __STDC__
   10018 # include <limits.h>
   10019 #else
   10020 # include <assert.h>
   10021 #endif
   10022 
   10023 #undef _dyld_func_lookup
   10024 
   10025 /* Override any GCC internal prototype to avoid an error.
   10026    Use char because int might match the return type of a GCC
   10027    builtin and then its argument prototype would still apply.  */
   10028 #ifdef __cplusplus
   10029 extern "C"
   10030 #endif
   10031 char _dyld_func_lookup ();
   10032 /* The GNU C library defines this for functions which it implements
   10033     to always fail with ENOSYS.  Some functions are actually named
   10034     something starting with __ and the normal name is an alias.  */
   10035 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
   10036 choke me
   10037 #endif
   10038 
   10039 int
   10040 main ()
   10041 {
   10042 return _dyld_func_lookup ();
   10043   ;
   10044   return 0;
   10045 }
   10046 _ACEOF
   10047 rm -f conftest.$ac_objext conftest$ac_exeext
   10048 if { (ac_try="$ac_link"
   10049 case "(($ac_try" in
   10050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10051   *) ac_try_echo=$ac_try;;
   10052 esac
   10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10054   (eval "$ac_link") 2>conftest.er1
   10055   ac_status=$?
   10056   grep -v '^ *+' conftest.er1 >conftest.err
   10057   rm -f conftest.er1
   10058   cat conftest.err >&5
   10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10060   (exit $ac_status); } &&
   10061 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10062   { (case "(($ac_try" in
   10063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10064   *) ac_try_echo=$ac_try;;
   10065 esac
   10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10067   (eval "$ac_try") 2>&5
   10068   ac_status=$?
   10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10070   (exit $ac_status); }; } &&
   10071 	 { ac_try='test -s conftest$ac_exeext'
   10072   { (case "(($ac_try" in
   10073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10074   *) ac_try_echo=$ac_try;;
   10075 esac
   10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10077   (eval "$ac_try") 2>&5
   10078   ac_status=$?
   10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10080   (exit $ac_status); }; }; then
   10081   ac_cv_func__dyld_func_lookup=yes
   10082 else
   10083   echo "$as_me: failed program was:" >&5
   10084 sed 's/^/| /' conftest.$ac_ext >&5
   10085 
   10086 	ac_cv_func__dyld_func_lookup=no
   10087 fi
   10088 
   10089 rm -f core conftest.err conftest.$ac_objext \
   10090       conftest$ac_exeext conftest.$ac_ext
   10091 fi
   10092 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
   10093 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
   10094 if test $ac_cv_func__dyld_func_lookup = yes; then
   10095 
   10096 cat >>confdefs.h <<\_ACEOF
   10097 #define HAVE_DYLD 1
   10098 _ACEOF
   10099 
   10100 fi
   10101 
   10102 
   10103 fi
   10104 
   10105 
   10106 fi
   10107 
   10108 
   10109 fi
   10110 
   10111 rm -f core conftest.err conftest.$ac_objext \
   10112       conftest$ac_exeext conftest.$ac_ext
   10113 
   10114 fi
   10115 
   10116 
   10117 fi
   10118 
   10119 
   10120 fi
   10121 
   10122 
   10123 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
   10124 then
   10125   lt_save_LIBS="$LIBS"
   10126   LIBS="$LIBS $LIBADD_DL"
   10127 
   10128 for ac_func in dlerror
   10129 do
   10130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   10132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   10133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   10134   echo $ECHO_N "(cached) $ECHO_C" >&6
   10135 else
   10136   cat >conftest.$ac_ext <<_ACEOF
   10137 /* confdefs.h.  */
   10138 _ACEOF
   10139 cat confdefs.h >>conftest.$ac_ext
   10140 cat >>conftest.$ac_ext <<_ACEOF
   10141 /* end confdefs.h.  */
   10142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   10143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10144 #define $ac_func innocuous_$ac_func
   10145 
   10146 /* System header to define __stub macros and hopefully few prototypes,
   10147     which can conflict with char $ac_func (); below.
   10148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10149     <limits.h> exists even on freestanding compilers.  */
   10150 
   10151 #ifdef __STDC__
   10152 # include <limits.h>
   10153 #else
   10154 # include <assert.h>
   10155 #endif
   10156 
   10157 #undef $ac_func
   10158 
   10159 /* Override any GCC internal prototype to avoid an error.
   10160    Use char because int might match the return type of a GCC
   10161    builtin and then its argument prototype would still apply.  */
   10162 #ifdef __cplusplus
   10163 extern "C"
   10164 #endif
   10165 char $ac_func ();
   10166 /* The GNU C library defines this for functions which it implements
   10167     to always fail with ENOSYS.  Some functions are actually named
   10168     something starting with __ and the normal name is an alias.  */
   10169 #if defined __stub_$ac_func || defined __stub___$ac_func
   10170 choke me
   10171 #endif
   10172 
   10173 int
   10174 main ()
   10175 {
   10176 return $ac_func ();
   10177   ;
   10178   return 0;
   10179 }
   10180 _ACEOF
   10181 rm -f conftest.$ac_objext conftest$ac_exeext
   10182 if { (ac_try="$ac_link"
   10183 case "(($ac_try" in
   10184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10185   *) ac_try_echo=$ac_try;;
   10186 esac
   10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10188   (eval "$ac_link") 2>conftest.er1
   10189   ac_status=$?
   10190   grep -v '^ *+' conftest.er1 >conftest.err
   10191   rm -f conftest.er1
   10192   cat conftest.err >&5
   10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10194   (exit $ac_status); } &&
   10195 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10196   { (case "(($ac_try" in
   10197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10198   *) ac_try_echo=$ac_try;;
   10199 esac
   10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10201   (eval "$ac_try") 2>&5
   10202   ac_status=$?
   10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10204   (exit $ac_status); }; } &&
   10205 	 { ac_try='test -s conftest$ac_exeext'
   10206   { (case "(($ac_try" in
   10207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10208   *) ac_try_echo=$ac_try;;
   10209 esac
   10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10211   (eval "$ac_try") 2>&5
   10212   ac_status=$?
   10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10214   (exit $ac_status); }; }; then
   10215   eval "$as_ac_var=yes"
   10216 else
   10217   echo "$as_me: failed program was:" >&5
   10218 sed 's/^/| /' conftest.$ac_ext >&5
   10219 
   10220 	eval "$as_ac_var=no"
   10221 fi
   10222 
   10223 rm -f core conftest.err conftest.$ac_objext \
   10224       conftest$ac_exeext conftest.$ac_ext
   10225 fi
   10226 ac_res=`eval echo '${'$as_ac_var'}'`
   10227 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10228 echo "${ECHO_T}$ac_res" >&6; }
   10229 if test `eval echo '${'$as_ac_var'}'` = yes; then
   10230   cat >>confdefs.h <<_ACEOF
   10231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10232 _ACEOF
   10233 
   10234 fi
   10235 done
   10236 
   10237   LIBS="$lt_save_LIBS"
   10238 fi
   10239 ac_ext=c
   10240 ac_cpp='$CPP $CPPFLAGS'
   10241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   10244 
   10245 
   10246 
   10247 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
   10248 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
   10249 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
   10250   echo $ECHO_N "(cached) $ECHO_C" >&6
   10251 else
   10252   ac_cv_sys_symbol_underscore=no
   10253   cat > conftest.$ac_ext <<EOF
   10254 void nm_test_func(){}
   10255 int main(){nm_test_func;return 0;}
   10256 EOF
   10257   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   10258   (eval $ac_compile) 2>&5
   10259   ac_status=$?
   10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10261   (exit $ac_status); }; then
   10262     # Now try to grab the symbols.
   10263     ac_nlist=conftest.nm
   10264     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
   10265   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
   10266   ac_status=$?
   10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10268   (exit $ac_status); } && test -s "$ac_nlist"; then
   10269       # See whether the symbols have a leading underscore.
   10270       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
   10271         ac_cv_sys_symbol_underscore=yes
   10272       else
   10273         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
   10274 	  :
   10275         else
   10276 	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
   10277         fi
   10278       fi
   10279     else
   10280       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
   10281     fi
   10282   else
   10283     echo "configure: failed program was:" >&5
   10284     cat conftest.c >&5
   10285   fi
   10286   rm -rf conftest*
   10287 
   10288 fi
   10289 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
   10290 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
   10291 
   10292 
   10293 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
   10294   if test x"$libltdl_cv_func_dlopen" = xyes ||
   10295      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
   10296 	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
   10297 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
   10298 if test "${libltdl_cv_need_uscore+set}" = set; then
   10299   echo $ECHO_N "(cached) $ECHO_C" >&6
   10300 else
   10301   libltdl_cv_need_uscore=unknown
   10302           save_LIBS="$LIBS"
   10303           LIBS="$LIBS $LIBADD_DL"
   10304 	  if test "$cross_compiling" = yes; then :
   10305   libltdl_cv_need_uscore=cross
   10306 else
   10307   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   10308   lt_status=$lt_dlunknown
   10309   cat > conftest.$ac_ext <<EOF
   10310 #line 10303 "configure"
   10311 #include "confdefs.h"
   10312 
   10313 #if HAVE_DLFCN_H
   10314 #include <dlfcn.h>
   10315 #endif
   10316 
   10317 #include <stdio.h>
   10318 
   10319 #ifdef RTLD_GLOBAL
   10320 #  define LT_DLGLOBAL		RTLD_GLOBAL
   10321 #else
   10322 #  ifdef DL_GLOBAL
   10323 #    define LT_DLGLOBAL		DL_GLOBAL
   10324 #  else
   10325 #    define LT_DLGLOBAL		0
   10326 #  endif
   10327 #endif
   10328 
   10329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   10330    find out it does not work in some platform. */
   10331 #ifndef LT_DLLAZY_OR_NOW
   10332 #  ifdef RTLD_LAZY
   10333 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   10334 #  else
   10335 #    ifdef DL_LAZY
   10336 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   10337 #    else
   10338 #      ifdef RTLD_NOW
   10339 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   10340 #      else
   10341 #        ifdef DL_NOW
   10342 #          define LT_DLLAZY_OR_NOW	DL_NOW
   10343 #        else
   10344 #          define LT_DLLAZY_OR_NOW	0
   10345 #        endif
   10346 #      endif
   10347 #    endif
   10348 #  endif
   10349 #endif
   10350 
   10351 #ifdef __cplusplus
   10352 extern "C" void exit (int);
   10353 #endif
   10354 
   10355 void fnord() { int i=42;}
   10356 int main ()
   10357 {
   10358   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   10359   int status = $lt_dlunknown;
   10360 
   10361   if (self)
   10362     {
   10363       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   10364       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   10365       /* dlclose (self); */
   10366     }
   10367   else
   10368     puts (dlerror ());
   10369 
   10370     exit (status);
   10371 }
   10372 EOF
   10373   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   10374   (eval $ac_link) 2>&5
   10375   ac_status=$?
   10376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10377   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   10378     (./conftest; exit; ) >&5 2>/dev/null
   10379     lt_status=$?
   10380     case x$lt_status in
   10381       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
   10382       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
   10383       x$lt_dlunknown|x*)  ;;
   10384     esac
   10385   else :
   10386     # compilation failed
   10387 
   10388   fi
   10389 fi
   10390 rm -fr conftest*
   10391 
   10392 	  LIBS="$save_LIBS"
   10393 
   10394 fi
   10395 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
   10396 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
   10397   fi
   10398 fi
   10399 
   10400 if test x"$libltdl_cv_need_uscore" = xyes; then
   10401 
   10402 cat >>confdefs.h <<\_ACEOF
   10403 #define NEED_USCORE 1
   10404 _ACEOF
   10405 
   10406 fi
   10407 
   10408 
   10409 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
   10410 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
   10411 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
   10412   echo $ECHO_N "(cached) $ECHO_C" >&6
   10413 else
   10414   # PORTME does your system automatically load deplibs for dlopen?
   10415   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
   10416   # For now, we just catch OSes we know something about -- in the
   10417   # future, we'll try test this programmatically.
   10418   libltdl_cv_sys_dlopen_deplibs=unknown
   10419   case "$host_os" in
   10420   aix3*|aix4.1.*|aix4.2.*)
   10421     # Unknown whether this is true for these versions of AIX, but
   10422     # we want this `case' here to explicitly catch those versions.
   10423     libltdl_cv_sys_dlopen_deplibs=unknown
   10424     ;;
   10425   aix[45]*)
   10426     libltdl_cv_sys_dlopen_deplibs=yes
   10427     ;;
   10428   darwin*)
   10429     # Assuming the user has installed a libdl from somewhere, this is true
   10430     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
   10431     libltdl_cv_sys_dlopen_deplibs=yes
   10432     ;;
   10433   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
   10434     # GNU and its variants, using gnu ld.so (Glibc)
   10435     libltdl_cv_sys_dlopen_deplibs=yes
   10436     ;;
   10437   hpux10*|hpux11*)
   10438     libltdl_cv_sys_dlopen_deplibs=yes
   10439     ;;
   10440   interix*)
   10441     libltdl_cv_sys_dlopen_deplibs=yes
   10442     ;;
   10443   irix[12345]*|irix6.[01]*)
   10444     # Catch all versions of IRIX before 6.2, and indicate that we don't
   10445     # know how it worked for any of those versions.
   10446     libltdl_cv_sys_dlopen_deplibs=unknown
   10447     ;;
   10448   irix*)
   10449     # The case above catches anything before 6.2, and it's known that
   10450     # at 6.2 and later dlopen does load deplibs.
   10451     libltdl_cv_sys_dlopen_deplibs=yes
   10452     ;;
   10453   netbsd*)
   10454     libltdl_cv_sys_dlopen_deplibs=yes
   10455     ;;
   10456   openbsd*)
   10457     libltdl_cv_sys_dlopen_deplibs=yes
   10458     ;;
   10459   osf[1234]*)
   10460     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
   10461     # it did *not* use an RPATH in a shared library to find objects the
   10462     # library depends on, so we explicitly say `no'.
   10463     libltdl_cv_sys_dlopen_deplibs=no
   10464     ;;
   10465   osf5.0|osf5.0a|osf5.1)
   10466     # dlopen *does* load deplibs and with the right loader patch applied
   10467     # it even uses RPATH in a shared library to search for shared objects
   10468     # that the library depends on, but there's no easy way to know if that
   10469     # patch is installed.  Since this is the case, all we can really
   10470     # say is unknown -- it depends on the patch being installed.  If
   10471     # it is, this changes to `yes'.  Without it, it would be `no'.
   10472     libltdl_cv_sys_dlopen_deplibs=unknown
   10473     ;;
   10474   osf*)
   10475     # the two cases above should catch all versions of osf <= 5.1.  Read
   10476     # the comments above for what we know about them.
   10477     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
   10478     # is used to find them so we can finally say `yes'.
   10479     libltdl_cv_sys_dlopen_deplibs=yes
   10480     ;;
   10481   solaris*)
   10482     libltdl_cv_sys_dlopen_deplibs=yes
   10483     ;;
   10484   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   10485     libltdl_cv_sys_dlopen_deplibs=yes
   10486     ;;
   10487   esac
   10488 
   10489 fi
   10490 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
   10491 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
   10492 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
   10493 
   10494 cat >>confdefs.h <<\_ACEOF
   10495 #define LTDL_DLOPEN_DEPLIBS 1
   10496 _ACEOF
   10497 
   10498 fi
   10499 
   10500 
   10501 for ac_header in argz.h
   10502 do
   10503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10505   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10508   echo $ECHO_N "(cached) $ECHO_C" >&6
   10509 fi
   10510 ac_res=`eval echo '${'$as_ac_Header'}'`
   10511 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10512 echo "${ECHO_T}$ac_res" >&6; }
   10513 else
   10514   # Is the header compilable?
   10515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   10517 cat >conftest.$ac_ext <<_ACEOF
   10518 /* confdefs.h.  */
   10519 _ACEOF
   10520 cat confdefs.h >>conftest.$ac_ext
   10521 cat >>conftest.$ac_ext <<_ACEOF
   10522 /* end confdefs.h.  */
   10523 $ac_includes_default
   10524 #include <$ac_header>
   10525 _ACEOF
   10526 rm -f conftest.$ac_objext
   10527 if { (ac_try="$ac_compile"
   10528 case "(($ac_try" in
   10529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10530   *) ac_try_echo=$ac_try;;
   10531 esac
   10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10533   (eval "$ac_compile") 2>conftest.er1
   10534   ac_status=$?
   10535   grep -v '^ *+' conftest.er1 >conftest.err
   10536   rm -f conftest.er1
   10537   cat conftest.err >&5
   10538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10539   (exit $ac_status); } &&
   10540 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10541   { (case "(($ac_try" in
   10542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10543   *) ac_try_echo=$ac_try;;
   10544 esac
   10545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10546   (eval "$ac_try") 2>&5
   10547   ac_status=$?
   10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10549   (exit $ac_status); }; } &&
   10550 	 { ac_try='test -s conftest.$ac_objext'
   10551   { (case "(($ac_try" in
   10552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10553   *) ac_try_echo=$ac_try;;
   10554 esac
   10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10556   (eval "$ac_try") 2>&5
   10557   ac_status=$?
   10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10559   (exit $ac_status); }; }; then
   10560   ac_header_compiler=yes
   10561 else
   10562   echo "$as_me: failed program was:" >&5
   10563 sed 's/^/| /' conftest.$ac_ext >&5
   10564 
   10565 	ac_header_compiler=no
   10566 fi
   10567 
   10568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10570 echo "${ECHO_T}$ac_header_compiler" >&6; }
   10571 
   10572 # Is the header present?
   10573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   10575 cat >conftest.$ac_ext <<_ACEOF
   10576 /* confdefs.h.  */
   10577 _ACEOF
   10578 cat confdefs.h >>conftest.$ac_ext
   10579 cat >>conftest.$ac_ext <<_ACEOF
   10580 /* end confdefs.h.  */
   10581 #include <$ac_header>
   10582 _ACEOF
   10583 if { (ac_try="$ac_cpp conftest.$ac_ext"
   10584 case "(($ac_try" in
   10585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10586   *) ac_try_echo=$ac_try;;
   10587 esac
   10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10589   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10590   ac_status=$?
   10591   grep -v '^ *+' conftest.er1 >conftest.err
   10592   rm -f conftest.er1
   10593   cat conftest.err >&5
   10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10595   (exit $ac_status); } >/dev/null; then
   10596   if test -s conftest.err; then
   10597     ac_cpp_err=$ac_c_preproc_warn_flag
   10598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   10599   else
   10600     ac_cpp_err=
   10601   fi
   10602 else
   10603   ac_cpp_err=yes
   10604 fi
   10605 if test -z "$ac_cpp_err"; then
   10606   ac_header_preproc=yes
   10607 else
   10608   echo "$as_me: failed program was:" >&5
   10609 sed 's/^/| /' conftest.$ac_ext >&5
   10610 
   10611   ac_header_preproc=no
   10612 fi
   10613 
   10614 rm -f conftest.err conftest.$ac_ext
   10615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10616 echo "${ECHO_T}$ac_header_preproc" >&6; }
   10617 
   10618 # So?  What about this header?
   10619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   10620   yes:no: )
   10621     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   10622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   10624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   10625     ac_header_preproc=yes
   10626     ;;
   10627   no:yes:* )
   10628     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   10629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   10630     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   10631 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   10632     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   10633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   10634     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   10635 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   10636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   10638     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   10639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   10640     ( cat <<\_ASBOX
   10641 ## ------------------------------ ##
   10642 ## Report this to bugs@yourdomain ##
   10643 ## ------------------------------ ##
   10644 _ASBOX
   10645      ) | sed "s/^/$as_me: WARNING:     /" >&2
   10646     ;;
   10647 esac
   10648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10651   echo $ECHO_N "(cached) $ECHO_C" >&6
   10652 else
   10653   eval "$as_ac_Header=\$ac_header_preproc"
   10654 fi
   10655 ac_res=`eval echo '${'$as_ac_Header'}'`
   10656 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10657 echo "${ECHO_T}$ac_res" >&6; }
   10658 
   10659 fi
   10660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   10661   cat >>confdefs.h <<_ACEOF
   10662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10663 _ACEOF
   10664 
   10665 fi
   10666 
   10667 done
   10668 
   10669 
   10670 { echo "$as_me:$LINENO: checking for error_t" >&5
   10671 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
   10672 if test "${ac_cv_type_error_t+set}" = set; then
   10673   echo $ECHO_N "(cached) $ECHO_C" >&6
   10674 else
   10675   cat >conftest.$ac_ext <<_ACEOF
   10676 /* confdefs.h.  */
   10677 _ACEOF
   10678 cat confdefs.h >>conftest.$ac_ext
   10679 cat >>conftest.$ac_ext <<_ACEOF
   10680 /* end confdefs.h.  */
   10681 #if HAVE_ARGZ_H
   10682 #  include <argz.h>
   10683 #endif
   10684 
   10685 typedef error_t ac__type_new_;
   10686 int
   10687 main ()
   10688 {
   10689 if ((ac__type_new_ *) 0)
   10690   return 0;
   10691 if (sizeof (ac__type_new_))
   10692   return 0;
   10693   ;
   10694   return 0;
   10695 }
   10696 _ACEOF
   10697 rm -f conftest.$ac_objext
   10698 if { (ac_try="$ac_compile"
   10699 case "(($ac_try" in
   10700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10701   *) ac_try_echo=$ac_try;;
   10702 esac
   10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10704   (eval "$ac_compile") 2>conftest.er1
   10705   ac_status=$?
   10706   grep -v '^ *+' conftest.er1 >conftest.err
   10707   rm -f conftest.er1
   10708   cat conftest.err >&5
   10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10710   (exit $ac_status); } &&
   10711 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10712   { (case "(($ac_try" in
   10713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10714   *) ac_try_echo=$ac_try;;
   10715 esac
   10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10717   (eval "$ac_try") 2>&5
   10718   ac_status=$?
   10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10720   (exit $ac_status); }; } &&
   10721 	 { ac_try='test -s conftest.$ac_objext'
   10722   { (case "(($ac_try" in
   10723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10724   *) ac_try_echo=$ac_try;;
   10725 esac
   10726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10727   (eval "$ac_try") 2>&5
   10728   ac_status=$?
   10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10730   (exit $ac_status); }; }; then
   10731   ac_cv_type_error_t=yes
   10732 else
   10733   echo "$as_me: failed program was:" >&5
   10734 sed 's/^/| /' conftest.$ac_ext >&5
   10735 
   10736 	ac_cv_type_error_t=no
   10737 fi
   10738 
   10739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10740 fi
   10741 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
   10742 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
   10743 if test $ac_cv_type_error_t = yes; then
   10744 
   10745 cat >>confdefs.h <<_ACEOF
   10746 #define HAVE_ERROR_T 1
   10747 _ACEOF
   10748 
   10749 
   10750 else
   10751 
   10752 cat >>confdefs.h <<\_ACEOF
   10753 #define error_t int
   10754 _ACEOF
   10755 
   10756 fi
   10757 
   10758 
   10759 
   10760 
   10761 
   10762 
   10763 
   10764 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
   10765 do
   10766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   10768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   10769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   10770   echo $ECHO_N "(cached) $ECHO_C" >&6
   10771 else
   10772   cat >conftest.$ac_ext <<_ACEOF
   10773 /* confdefs.h.  */
   10774 _ACEOF
   10775 cat confdefs.h >>conftest.$ac_ext
   10776 cat >>conftest.$ac_ext <<_ACEOF
   10777 /* end confdefs.h.  */
   10778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   10779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10780 #define $ac_func innocuous_$ac_func
   10781 
   10782 /* System header to define __stub macros and hopefully few prototypes,
   10783     which can conflict with char $ac_func (); below.
   10784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10785     <limits.h> exists even on freestanding compilers.  */
   10786 
   10787 #ifdef __STDC__
   10788 # include <limits.h>
   10789 #else
   10790 # include <assert.h>
   10791 #endif
   10792 
   10793 #undef $ac_func
   10794 
   10795 /* Override any GCC internal prototype to avoid an error.
   10796    Use char because int might match the return type of a GCC
   10797    builtin and then its argument prototype would still apply.  */
   10798 #ifdef __cplusplus
   10799 extern "C"
   10800 #endif
   10801 char $ac_func ();
   10802 /* The GNU C library defines this for functions which it implements
   10803     to always fail with ENOSYS.  Some functions are actually named
   10804     something starting with __ and the normal name is an alias.  */
   10805 #if defined __stub_$ac_func || defined __stub___$ac_func
   10806 choke me
   10807 #endif
   10808 
   10809 int
   10810 main ()
   10811 {
   10812 return $ac_func ();
   10813   ;
   10814   return 0;
   10815 }
   10816 _ACEOF
   10817 rm -f conftest.$ac_objext conftest$ac_exeext
   10818 if { (ac_try="$ac_link"
   10819 case "(($ac_try" in
   10820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10821   *) ac_try_echo=$ac_try;;
   10822 esac
   10823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10824   (eval "$ac_link") 2>conftest.er1
   10825   ac_status=$?
   10826   grep -v '^ *+' conftest.er1 >conftest.err
   10827   rm -f conftest.er1
   10828   cat conftest.err >&5
   10829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10830   (exit $ac_status); } &&
   10831 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10832   { (case "(($ac_try" in
   10833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10834   *) ac_try_echo=$ac_try;;
   10835 esac
   10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10837   (eval "$ac_try") 2>&5
   10838   ac_status=$?
   10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10840   (exit $ac_status); }; } &&
   10841 	 { ac_try='test -s conftest$ac_exeext'
   10842   { (case "(($ac_try" in
   10843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10844   *) ac_try_echo=$ac_try;;
   10845 esac
   10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10847   (eval "$ac_try") 2>&5
   10848   ac_status=$?
   10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10850   (exit $ac_status); }; }; then
   10851   eval "$as_ac_var=yes"
   10852 else
   10853   echo "$as_me: failed program was:" >&5
   10854 sed 's/^/| /' conftest.$ac_ext >&5
   10855 
   10856 	eval "$as_ac_var=no"
   10857 fi
   10858 
   10859 rm -f core conftest.err conftest.$ac_objext \
   10860       conftest$ac_exeext conftest.$ac_ext
   10861 fi
   10862 ac_res=`eval echo '${'$as_ac_var'}'`
   10863 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10864 echo "${ECHO_T}$ac_res" >&6; }
   10865 if test `eval echo '${'$as_ac_var'}'` = yes; then
   10866   cat >>confdefs.h <<_ACEOF
   10867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10868 _ACEOF
   10869 
   10870 fi
   10871 done
   10872 
   10873 
   10874 
   10875 
   10876 
   10877 
   10878 
   10879 
   10880 
   10881 
   10882 
   10883 
   10884 
   10885 
   10886 
   10887 
   10888 
   10889 
   10890 
   10891 
   10892 
   10893 
   10894 
   10895 
   10896 
   10897 
   10898 
   10899 
   10900 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
   10901 		  stdio.h unistd.h
   10902 do
   10903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10905   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10908   echo $ECHO_N "(cached) $ECHO_C" >&6
   10909 fi
   10910 ac_res=`eval echo '${'$as_ac_Header'}'`
   10911 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10912 echo "${ECHO_T}$ac_res" >&6; }
   10913 else
   10914   # Is the header compilable?
   10915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   10917 cat >conftest.$ac_ext <<_ACEOF
   10918 /* confdefs.h.  */
   10919 _ACEOF
   10920 cat confdefs.h >>conftest.$ac_ext
   10921 cat >>conftest.$ac_ext <<_ACEOF
   10922 /* end confdefs.h.  */
   10923 $ac_includes_default
   10924 #include <$ac_header>
   10925 _ACEOF
   10926 rm -f conftest.$ac_objext
   10927 if { (ac_try="$ac_compile"
   10928 case "(($ac_try" in
   10929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10930   *) ac_try_echo=$ac_try;;
   10931 esac
   10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10933   (eval "$ac_compile") 2>conftest.er1
   10934   ac_status=$?
   10935   grep -v '^ *+' conftest.er1 >conftest.err
   10936   rm -f conftest.er1
   10937   cat conftest.err >&5
   10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10939   (exit $ac_status); } &&
   10940 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10941   { (case "(($ac_try" in
   10942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10943   *) ac_try_echo=$ac_try;;
   10944 esac
   10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10946   (eval "$ac_try") 2>&5
   10947   ac_status=$?
   10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10949   (exit $ac_status); }; } &&
   10950 	 { ac_try='test -s conftest.$ac_objext'
   10951   { (case "(($ac_try" in
   10952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10953   *) ac_try_echo=$ac_try;;
   10954 esac
   10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10956   (eval "$ac_try") 2>&5
   10957   ac_status=$?
   10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10959   (exit $ac_status); }; }; then
   10960   ac_header_compiler=yes
   10961 else
   10962   echo "$as_me: failed program was:" >&5
   10963 sed 's/^/| /' conftest.$ac_ext >&5
   10964 
   10965 	ac_header_compiler=no
   10966 fi
   10967 
   10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10970 echo "${ECHO_T}$ac_header_compiler" >&6; }
   10971 
   10972 # Is the header present?
   10973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   10975 cat >conftest.$ac_ext <<_ACEOF
   10976 /* confdefs.h.  */
   10977 _ACEOF
   10978 cat confdefs.h >>conftest.$ac_ext
   10979 cat >>conftest.$ac_ext <<_ACEOF
   10980 /* end confdefs.h.  */
   10981 #include <$ac_header>
   10982 _ACEOF
   10983 if { (ac_try="$ac_cpp conftest.$ac_ext"
   10984 case "(($ac_try" in
   10985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10986   *) ac_try_echo=$ac_try;;
   10987 esac
   10988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10989   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10990   ac_status=$?
   10991   grep -v '^ *+' conftest.er1 >conftest.err
   10992   rm -f conftest.er1
   10993   cat conftest.err >&5
   10994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10995   (exit $ac_status); } >/dev/null; then
   10996   if test -s conftest.err; then
   10997     ac_cpp_err=$ac_c_preproc_warn_flag
   10998     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   10999   else
   11000     ac_cpp_err=
   11001   fi
   11002 else
   11003   ac_cpp_err=yes
   11004 fi
   11005 if test -z "$ac_cpp_err"; then
   11006   ac_header_preproc=yes
   11007 else
   11008   echo "$as_me: failed program was:" >&5
   11009 sed 's/^/| /' conftest.$ac_ext >&5
   11010 
   11011   ac_header_preproc=no
   11012 fi
   11013 
   11014 rm -f conftest.err conftest.$ac_ext
   11015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   11016 echo "${ECHO_T}$ac_header_preproc" >&6; }
   11017 
   11018 # So?  What about this header?
   11019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   11020   yes:no: )
   11021     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   11022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   11023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   11024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   11025     ac_header_preproc=yes
   11026     ;;
   11027   no:yes:* )
   11028     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   11029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   11030     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   11031 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   11032     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   11033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   11034     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   11035 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   11036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   11038     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   11039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   11040     ( cat <<\_ASBOX
   11041 ## ------------------------------ ##
   11042 ## Report this to bugs@yourdomain ##
   11043 ## ------------------------------ ##
   11044 _ASBOX
   11045      ) | sed "s/^/$as_me: WARNING:     /" >&2
   11046     ;;
   11047 esac
   11048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11051   echo $ECHO_N "(cached) $ECHO_C" >&6
   11052 else
   11053   eval "$as_ac_Header=\$ac_header_preproc"
   11054 fi
   11055 ac_res=`eval echo '${'$as_ac_Header'}'`
   11056 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11057 echo "${ECHO_T}$ac_res" >&6; }
   11058 
   11059 fi
   11060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11061   cat >>confdefs.h <<_ACEOF
   11062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11063 _ACEOF
   11064 
   11065 fi
   11066 
   11067 done
   11068 
   11069 
   11070 
   11071 
   11072 
   11073 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
   11074 do
   11075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11077   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11080   echo $ECHO_N "(cached) $ECHO_C" >&6
   11081 fi
   11082 ac_res=`eval echo '${'$as_ac_Header'}'`
   11083 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11084 echo "${ECHO_T}$ac_res" >&6; }
   11085 else
   11086   # Is the header compilable?
   11087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   11088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   11089 cat >conftest.$ac_ext <<_ACEOF
   11090 /* confdefs.h.  */
   11091 _ACEOF
   11092 cat confdefs.h >>conftest.$ac_ext
   11093 cat >>conftest.$ac_ext <<_ACEOF
   11094 /* end confdefs.h.  */
   11095 $ac_includes_default
   11096 #include <$ac_header>
   11097 _ACEOF
   11098 rm -f conftest.$ac_objext
   11099 if { (ac_try="$ac_compile"
   11100 case "(($ac_try" in
   11101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11102   *) ac_try_echo=$ac_try;;
   11103 esac
   11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11105   (eval "$ac_compile") 2>conftest.er1
   11106   ac_status=$?
   11107   grep -v '^ *+' conftest.er1 >conftest.err
   11108   rm -f conftest.er1
   11109   cat conftest.err >&5
   11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11111   (exit $ac_status); } &&
   11112 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11113   { (case "(($ac_try" in
   11114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11115   *) ac_try_echo=$ac_try;;
   11116 esac
   11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11118   (eval "$ac_try") 2>&5
   11119   ac_status=$?
   11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11121   (exit $ac_status); }; } &&
   11122 	 { ac_try='test -s conftest.$ac_objext'
   11123   { (case "(($ac_try" in
   11124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11125   *) ac_try_echo=$ac_try;;
   11126 esac
   11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11128   (eval "$ac_try") 2>&5
   11129   ac_status=$?
   11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11131   (exit $ac_status); }; }; then
   11132   ac_header_compiler=yes
   11133 else
   11134   echo "$as_me: failed program was:" >&5
   11135 sed 's/^/| /' conftest.$ac_ext >&5
   11136 
   11137 	ac_header_compiler=no
   11138 fi
   11139 
   11140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   11142 echo "${ECHO_T}$ac_header_compiler" >&6; }
   11143 
   11144 # Is the header present?
   11145 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   11146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   11147 cat >conftest.$ac_ext <<_ACEOF
   11148 /* confdefs.h.  */
   11149 _ACEOF
   11150 cat confdefs.h >>conftest.$ac_ext
   11151 cat >>conftest.$ac_ext <<_ACEOF
   11152 /* end confdefs.h.  */
   11153 #include <$ac_header>
   11154 _ACEOF
   11155 if { (ac_try="$ac_cpp conftest.$ac_ext"
   11156 case "(($ac_try" in
   11157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11158   *) ac_try_echo=$ac_try;;
   11159 esac
   11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11161   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   11162   ac_status=$?
   11163   grep -v '^ *+' conftest.er1 >conftest.err
   11164   rm -f conftest.er1
   11165   cat conftest.err >&5
   11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11167   (exit $ac_status); } >/dev/null; then
   11168   if test -s conftest.err; then
   11169     ac_cpp_err=$ac_c_preproc_warn_flag
   11170     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   11171   else
   11172     ac_cpp_err=
   11173   fi
   11174 else
   11175   ac_cpp_err=yes
   11176 fi
   11177 if test -z "$ac_cpp_err"; then
   11178   ac_header_preproc=yes
   11179 else
   11180   echo "$as_me: failed program was:" >&5
   11181 sed 's/^/| /' conftest.$ac_ext >&5
   11182 
   11183   ac_header_preproc=no
   11184 fi
   11185 
   11186 rm -f conftest.err conftest.$ac_ext
   11187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   11188 echo "${ECHO_T}$ac_header_preproc" >&6; }
   11189 
   11190 # So?  What about this header?
   11191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   11192   yes:no: )
   11193     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   11194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   11195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   11196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   11197     ac_header_preproc=yes
   11198     ;;
   11199   no:yes:* )
   11200     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   11201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   11202     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   11203 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   11204     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   11205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   11206     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   11207 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   11208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   11210     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   11211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   11212     ( cat <<\_ASBOX
   11213 ## ------------------------------ ##
   11214 ## Report this to bugs@yourdomain ##
   11215 ## ------------------------------ ##
   11216 _ASBOX
   11217      ) | sed "s/^/$as_me: WARNING:     /" >&2
   11218     ;;
   11219 esac
   11220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11223   echo $ECHO_N "(cached) $ECHO_C" >&6
   11224 else
   11225   eval "$as_ac_Header=\$ac_header_preproc"
   11226 fi
   11227 ac_res=`eval echo '${'$as_ac_Header'}'`
   11228 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11229 echo "${ECHO_T}$ac_res" >&6; }
   11230 
   11231 fi
   11232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11233   cat >>confdefs.h <<_ACEOF
   11234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11235 _ACEOF
   11236 
   11237 fi
   11238 
   11239 done
   11240 
   11241 
   11242 
   11243 for ac_header in string.h strings.h
   11244 do
   11245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11247   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11250   echo $ECHO_N "(cached) $ECHO_C" >&6
   11251 fi
   11252 ac_res=`eval echo '${'$as_ac_Header'}'`
   11253 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11254 echo "${ECHO_T}$ac_res" >&6; }
   11255 else
   11256   # Is the header compilable?
   11257 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   11258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   11259 cat >conftest.$ac_ext <<_ACEOF
   11260 /* confdefs.h.  */
   11261 _ACEOF
   11262 cat confdefs.h >>conftest.$ac_ext
   11263 cat >>conftest.$ac_ext <<_ACEOF
   11264 /* end confdefs.h.  */
   11265 $ac_includes_default
   11266 #include <$ac_header>
   11267 _ACEOF
   11268 rm -f conftest.$ac_objext
   11269 if { (ac_try="$ac_compile"
   11270 case "(($ac_try" in
   11271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11272   *) ac_try_echo=$ac_try;;
   11273 esac
   11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11275   (eval "$ac_compile") 2>conftest.er1
   11276   ac_status=$?
   11277   grep -v '^ *+' conftest.er1 >conftest.err
   11278   rm -f conftest.er1
   11279   cat conftest.err >&5
   11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11281   (exit $ac_status); } &&
   11282 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11283   { (case "(($ac_try" in
   11284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11285   *) ac_try_echo=$ac_try;;
   11286 esac
   11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11288   (eval "$ac_try") 2>&5
   11289   ac_status=$?
   11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11291   (exit $ac_status); }; } &&
   11292 	 { ac_try='test -s conftest.$ac_objext'
   11293   { (case "(($ac_try" in
   11294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11295   *) ac_try_echo=$ac_try;;
   11296 esac
   11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11298   (eval "$ac_try") 2>&5
   11299   ac_status=$?
   11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11301   (exit $ac_status); }; }; then
   11302   ac_header_compiler=yes
   11303 else
   11304   echo "$as_me: failed program was:" >&5
   11305 sed 's/^/| /' conftest.$ac_ext >&5
   11306 
   11307 	ac_header_compiler=no
   11308 fi
   11309 
   11310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   11312 echo "${ECHO_T}$ac_header_compiler" >&6; }
   11313 
   11314 # Is the header present?
   11315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   11316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   11317 cat >conftest.$ac_ext <<_ACEOF
   11318 /* confdefs.h.  */
   11319 _ACEOF
   11320 cat confdefs.h >>conftest.$ac_ext
   11321 cat >>conftest.$ac_ext <<_ACEOF
   11322 /* end confdefs.h.  */
   11323 #include <$ac_header>
   11324 _ACEOF
   11325 if { (ac_try="$ac_cpp conftest.$ac_ext"
   11326 case "(($ac_try" in
   11327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11328   *) ac_try_echo=$ac_try;;
   11329 esac
   11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11331   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   11332   ac_status=$?
   11333   grep -v '^ *+' conftest.er1 >conftest.err
   11334   rm -f conftest.er1
   11335   cat conftest.err >&5
   11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11337   (exit $ac_status); } >/dev/null; then
   11338   if test -s conftest.err; then
   11339     ac_cpp_err=$ac_c_preproc_warn_flag
   11340     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   11341   else
   11342     ac_cpp_err=
   11343   fi
   11344 else
   11345   ac_cpp_err=yes
   11346 fi
   11347 if test -z "$ac_cpp_err"; then
   11348   ac_header_preproc=yes
   11349 else
   11350   echo "$as_me: failed program was:" >&5
   11351 sed 's/^/| /' conftest.$ac_ext >&5
   11352 
   11353   ac_header_preproc=no
   11354 fi
   11355 
   11356 rm -f conftest.err conftest.$ac_ext
   11357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   11358 echo "${ECHO_T}$ac_header_preproc" >&6; }
   11359 
   11360 # So?  What about this header?
   11361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   11362   yes:no: )
   11363     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   11364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   11365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   11366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   11367     ac_header_preproc=yes
   11368     ;;
   11369   no:yes:* )
   11370     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   11371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   11372     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   11373 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   11374     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   11375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   11376     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   11377 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   11378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   11380     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   11381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   11382     ( cat <<\_ASBOX
   11383 ## ------------------------------ ##
   11384 ## Report this to bugs@yourdomain ##
   11385 ## ------------------------------ ##
   11386 _ASBOX
   11387      ) | sed "s/^/$as_me: WARNING:     /" >&2
   11388     ;;
   11389 esac
   11390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11393   echo $ECHO_N "(cached) $ECHO_C" >&6
   11394 else
   11395   eval "$as_ac_Header=\$ac_header_preproc"
   11396 fi
   11397 ac_res=`eval echo '${'$as_ac_Header'}'`
   11398 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11399 echo "${ECHO_T}$ac_res" >&6; }
   11400 
   11401 fi
   11402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11403   cat >>confdefs.h <<_ACEOF
   11404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11405 _ACEOF
   11406  break
   11407 fi
   11408 
   11409 done
   11410 
   11411 
   11412 
   11413 
   11414 for ac_func in strchr index
   11415 do
   11416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11420   echo $ECHO_N "(cached) $ECHO_C" >&6
   11421 else
   11422   cat >conftest.$ac_ext <<_ACEOF
   11423 /* confdefs.h.  */
   11424 _ACEOF
   11425 cat confdefs.h >>conftest.$ac_ext
   11426 cat >>conftest.$ac_ext <<_ACEOF
   11427 /* end confdefs.h.  */
   11428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11430 #define $ac_func innocuous_$ac_func
   11431 
   11432 /* System header to define __stub macros and hopefully few prototypes,
   11433     which can conflict with char $ac_func (); below.
   11434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11435     <limits.h> exists even on freestanding compilers.  */
   11436 
   11437 #ifdef __STDC__
   11438 # include <limits.h>
   11439 #else
   11440 # include <assert.h>
   11441 #endif
   11442 
   11443 #undef $ac_func
   11444 
   11445 /* Override any GCC internal prototype to avoid an error.
   11446    Use char because int might match the return type of a GCC
   11447    builtin and then its argument prototype would still apply.  */
   11448 #ifdef __cplusplus
   11449 extern "C"
   11450 #endif
   11451 char $ac_func ();
   11452 /* The GNU C library defines this for functions which it implements
   11453     to always fail with ENOSYS.  Some functions are actually named
   11454     something starting with __ and the normal name is an alias.  */
   11455 #if defined __stub_$ac_func || defined __stub___$ac_func
   11456 choke me
   11457 #endif
   11458 
   11459 int
   11460 main ()
   11461 {
   11462 return $ac_func ();
   11463   ;
   11464   return 0;
   11465 }
   11466 _ACEOF
   11467 rm -f conftest.$ac_objext conftest$ac_exeext
   11468 if { (ac_try="$ac_link"
   11469 case "(($ac_try" in
   11470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11471   *) ac_try_echo=$ac_try;;
   11472 esac
   11473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11474   (eval "$ac_link") 2>conftest.er1
   11475   ac_status=$?
   11476   grep -v '^ *+' conftest.er1 >conftest.err
   11477   rm -f conftest.er1
   11478   cat conftest.err >&5
   11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11480   (exit $ac_status); } &&
   11481 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11482   { (case "(($ac_try" in
   11483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11484   *) ac_try_echo=$ac_try;;
   11485 esac
   11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11487   (eval "$ac_try") 2>&5
   11488   ac_status=$?
   11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11490   (exit $ac_status); }; } &&
   11491 	 { ac_try='test -s conftest$ac_exeext'
   11492   { (case "(($ac_try" in
   11493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11494   *) ac_try_echo=$ac_try;;
   11495 esac
   11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11497   (eval "$ac_try") 2>&5
   11498   ac_status=$?
   11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11500   (exit $ac_status); }; }; then
   11501   eval "$as_ac_var=yes"
   11502 else
   11503   echo "$as_me: failed program was:" >&5
   11504 sed 's/^/| /' conftest.$ac_ext >&5
   11505 
   11506 	eval "$as_ac_var=no"
   11507 fi
   11508 
   11509 rm -f core conftest.err conftest.$ac_objext \
   11510       conftest$ac_exeext conftest.$ac_ext
   11511 fi
   11512 ac_res=`eval echo '${'$as_ac_var'}'`
   11513 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11514 echo "${ECHO_T}$ac_res" >&6; }
   11515 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11516   cat >>confdefs.h <<_ACEOF
   11517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11518 _ACEOF
   11519  break
   11520 fi
   11521 done
   11522 
   11523 
   11524 
   11525 for ac_func in strrchr rindex
   11526 do
   11527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11531   echo $ECHO_N "(cached) $ECHO_C" >&6
   11532 else
   11533   cat >conftest.$ac_ext <<_ACEOF
   11534 /* confdefs.h.  */
   11535 _ACEOF
   11536 cat confdefs.h >>conftest.$ac_ext
   11537 cat >>conftest.$ac_ext <<_ACEOF
   11538 /* end confdefs.h.  */
   11539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11541 #define $ac_func innocuous_$ac_func
   11542 
   11543 /* System header to define __stub macros and hopefully few prototypes,
   11544     which can conflict with char $ac_func (); below.
   11545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11546     <limits.h> exists even on freestanding compilers.  */
   11547 
   11548 #ifdef __STDC__
   11549 # include <limits.h>
   11550 #else
   11551 # include <assert.h>
   11552 #endif
   11553 
   11554 #undef $ac_func
   11555 
   11556 /* Override any GCC internal prototype to avoid an error.
   11557    Use char because int might match the return type of a GCC
   11558    builtin and then its argument prototype would still apply.  */
   11559 #ifdef __cplusplus
   11560 extern "C"
   11561 #endif
   11562 char $ac_func ();
   11563 /* The GNU C library defines this for functions which it implements
   11564     to always fail with ENOSYS.  Some functions are actually named
   11565     something starting with __ and the normal name is an alias.  */
   11566 #if defined __stub_$ac_func || defined __stub___$ac_func
   11567 choke me
   11568 #endif
   11569 
   11570 int
   11571 main ()
   11572 {
   11573 return $ac_func ();
   11574   ;
   11575   return 0;
   11576 }
   11577 _ACEOF
   11578 rm -f conftest.$ac_objext conftest$ac_exeext
   11579 if { (ac_try="$ac_link"
   11580 case "(($ac_try" in
   11581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11582   *) ac_try_echo=$ac_try;;
   11583 esac
   11584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11585   (eval "$ac_link") 2>conftest.er1
   11586   ac_status=$?
   11587   grep -v '^ *+' conftest.er1 >conftest.err
   11588   rm -f conftest.er1
   11589   cat conftest.err >&5
   11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11591   (exit $ac_status); } &&
   11592 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11593   { (case "(($ac_try" in
   11594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11595   *) ac_try_echo=$ac_try;;
   11596 esac
   11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11598   (eval "$ac_try") 2>&5
   11599   ac_status=$?
   11600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11601   (exit $ac_status); }; } &&
   11602 	 { ac_try='test -s conftest$ac_exeext'
   11603   { (case "(($ac_try" in
   11604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11605   *) ac_try_echo=$ac_try;;
   11606 esac
   11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11608   (eval "$ac_try") 2>&5
   11609   ac_status=$?
   11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11611   (exit $ac_status); }; }; then
   11612   eval "$as_ac_var=yes"
   11613 else
   11614   echo "$as_me: failed program was:" >&5
   11615 sed 's/^/| /' conftest.$ac_ext >&5
   11616 
   11617 	eval "$as_ac_var=no"
   11618 fi
   11619 
   11620 rm -f core conftest.err conftest.$ac_objext \
   11621       conftest$ac_exeext conftest.$ac_ext
   11622 fi
   11623 ac_res=`eval echo '${'$as_ac_var'}'`
   11624 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11625 echo "${ECHO_T}$ac_res" >&6; }
   11626 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11627   cat >>confdefs.h <<_ACEOF
   11628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11629 _ACEOF
   11630  break
   11631 fi
   11632 done
   11633 
   11634 
   11635 
   11636 for ac_func in memcpy bcopy
   11637 do
   11638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11642   echo $ECHO_N "(cached) $ECHO_C" >&6
   11643 else
   11644   cat >conftest.$ac_ext <<_ACEOF
   11645 /* confdefs.h.  */
   11646 _ACEOF
   11647 cat confdefs.h >>conftest.$ac_ext
   11648 cat >>conftest.$ac_ext <<_ACEOF
   11649 /* end confdefs.h.  */
   11650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11652 #define $ac_func innocuous_$ac_func
   11653 
   11654 /* System header to define __stub macros and hopefully few prototypes,
   11655     which can conflict with char $ac_func (); below.
   11656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11657     <limits.h> exists even on freestanding compilers.  */
   11658 
   11659 #ifdef __STDC__
   11660 # include <limits.h>
   11661 #else
   11662 # include <assert.h>
   11663 #endif
   11664 
   11665 #undef $ac_func
   11666 
   11667 /* Override any GCC internal prototype to avoid an error.
   11668    Use char because int might match the return type of a GCC
   11669    builtin and then its argument prototype would still apply.  */
   11670 #ifdef __cplusplus
   11671 extern "C"
   11672 #endif
   11673 char $ac_func ();
   11674 /* The GNU C library defines this for functions which it implements
   11675     to always fail with ENOSYS.  Some functions are actually named
   11676     something starting with __ and the normal name is an alias.  */
   11677 #if defined __stub_$ac_func || defined __stub___$ac_func
   11678 choke me
   11679 #endif
   11680 
   11681 int
   11682 main ()
   11683 {
   11684 return $ac_func ();
   11685   ;
   11686   return 0;
   11687 }
   11688 _ACEOF
   11689 rm -f conftest.$ac_objext conftest$ac_exeext
   11690 if { (ac_try="$ac_link"
   11691 case "(($ac_try" in
   11692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11693   *) ac_try_echo=$ac_try;;
   11694 esac
   11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11696   (eval "$ac_link") 2>conftest.er1
   11697   ac_status=$?
   11698   grep -v '^ *+' conftest.er1 >conftest.err
   11699   rm -f conftest.er1
   11700   cat conftest.err >&5
   11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11702   (exit $ac_status); } &&
   11703 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11704   { (case "(($ac_try" in
   11705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11706   *) ac_try_echo=$ac_try;;
   11707 esac
   11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11709   (eval "$ac_try") 2>&5
   11710   ac_status=$?
   11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11712   (exit $ac_status); }; } &&
   11713 	 { ac_try='test -s conftest$ac_exeext'
   11714   { (case "(($ac_try" in
   11715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11716   *) ac_try_echo=$ac_try;;
   11717 esac
   11718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11719   (eval "$ac_try") 2>&5
   11720   ac_status=$?
   11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11722   (exit $ac_status); }; }; then
   11723   eval "$as_ac_var=yes"
   11724 else
   11725   echo "$as_me: failed program was:" >&5
   11726 sed 's/^/| /' conftest.$ac_ext >&5
   11727 
   11728 	eval "$as_ac_var=no"
   11729 fi
   11730 
   11731 rm -f core conftest.err conftest.$ac_objext \
   11732       conftest$ac_exeext conftest.$ac_ext
   11733 fi
   11734 ac_res=`eval echo '${'$as_ac_var'}'`
   11735 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11736 echo "${ECHO_T}$ac_res" >&6; }
   11737 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11738   cat >>confdefs.h <<_ACEOF
   11739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11740 _ACEOF
   11741  break
   11742 fi
   11743 done
   11744 
   11745 
   11746 
   11747 for ac_func in memmove strcmp
   11748 do
   11749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11753   echo $ECHO_N "(cached) $ECHO_C" >&6
   11754 else
   11755   cat >conftest.$ac_ext <<_ACEOF
   11756 /* confdefs.h.  */
   11757 _ACEOF
   11758 cat confdefs.h >>conftest.$ac_ext
   11759 cat >>conftest.$ac_ext <<_ACEOF
   11760 /* end confdefs.h.  */
   11761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11763 #define $ac_func innocuous_$ac_func
   11764 
   11765 /* System header to define __stub macros and hopefully few prototypes,
   11766     which can conflict with char $ac_func (); below.
   11767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11768     <limits.h> exists even on freestanding compilers.  */
   11769 
   11770 #ifdef __STDC__
   11771 # include <limits.h>
   11772 #else
   11773 # include <assert.h>
   11774 #endif
   11775 
   11776 #undef $ac_func
   11777 
   11778 /* Override any GCC internal prototype to avoid an error.
   11779    Use char because int might match the return type of a GCC
   11780    builtin and then its argument prototype would still apply.  */
   11781 #ifdef __cplusplus
   11782 extern "C"
   11783 #endif
   11784 char $ac_func ();
   11785 /* The GNU C library defines this for functions which it implements
   11786     to always fail with ENOSYS.  Some functions are actually named
   11787     something starting with __ and the normal name is an alias.  */
   11788 #if defined __stub_$ac_func || defined __stub___$ac_func
   11789 choke me
   11790 #endif
   11791 
   11792 int
   11793 main ()
   11794 {
   11795 return $ac_func ();
   11796   ;
   11797   return 0;
   11798 }
   11799 _ACEOF
   11800 rm -f conftest.$ac_objext conftest$ac_exeext
   11801 if { (ac_try="$ac_link"
   11802 case "(($ac_try" in
   11803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11804   *) ac_try_echo=$ac_try;;
   11805 esac
   11806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11807   (eval "$ac_link") 2>conftest.er1
   11808   ac_status=$?
   11809   grep -v '^ *+' conftest.er1 >conftest.err
   11810   rm -f conftest.er1
   11811   cat conftest.err >&5
   11812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11813   (exit $ac_status); } &&
   11814 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11815   { (case "(($ac_try" in
   11816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11817   *) ac_try_echo=$ac_try;;
   11818 esac
   11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11820   (eval "$ac_try") 2>&5
   11821   ac_status=$?
   11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11823   (exit $ac_status); }; } &&
   11824 	 { ac_try='test -s conftest$ac_exeext'
   11825   { (case "(($ac_try" in
   11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11827   *) ac_try_echo=$ac_try;;
   11828 esac
   11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11830   (eval "$ac_try") 2>&5
   11831   ac_status=$?
   11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11833   (exit $ac_status); }; }; then
   11834   eval "$as_ac_var=yes"
   11835 else
   11836   echo "$as_me: failed program was:" >&5
   11837 sed 's/^/| /' conftest.$ac_ext >&5
   11838 
   11839 	eval "$as_ac_var=no"
   11840 fi
   11841 
   11842 rm -f core conftest.err conftest.$ac_objext \
   11843       conftest$ac_exeext conftest.$ac_ext
   11844 fi
   11845 ac_res=`eval echo '${'$as_ac_var'}'`
   11846 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11847 echo "${ECHO_T}$ac_res" >&6; }
   11848 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11849   cat >>confdefs.h <<_ACEOF
   11850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11851 _ACEOF
   11852 
   11853 fi
   11854 done
   11855 
   11856 
   11857 
   11858 
   11859 for ac_func in closedir opendir readdir
   11860 do
   11861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11865   echo $ECHO_N "(cached) $ECHO_C" >&6
   11866 else
   11867   cat >conftest.$ac_ext <<_ACEOF
   11868 /* confdefs.h.  */
   11869 _ACEOF
   11870 cat confdefs.h >>conftest.$ac_ext
   11871 cat >>conftest.$ac_ext <<_ACEOF
   11872 /* end confdefs.h.  */
   11873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11875 #define $ac_func innocuous_$ac_func
   11876 
   11877 /* System header to define __stub macros and hopefully few prototypes,
   11878     which can conflict with char $ac_func (); below.
   11879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11880     <limits.h> exists even on freestanding compilers.  */
   11881 
   11882 #ifdef __STDC__
   11883 # include <limits.h>
   11884 #else
   11885 # include <assert.h>
   11886 #endif
   11887 
   11888 #undef $ac_func
   11889 
   11890 /* Override any GCC internal prototype to avoid an error.
   11891    Use char because int might match the return type of a GCC
   11892    builtin and then its argument prototype would still apply.  */
   11893 #ifdef __cplusplus
   11894 extern "C"
   11895 #endif
   11896 char $ac_func ();
   11897 /* The GNU C library defines this for functions which it implements
   11898     to always fail with ENOSYS.  Some functions are actually named
   11899     something starting with __ and the normal name is an alias.  */
   11900 #if defined __stub_$ac_func || defined __stub___$ac_func
   11901 choke me
   11902 #endif
   11903 
   11904 int
   11905 main ()
   11906 {
   11907 return $ac_func ();
   11908   ;
   11909   return 0;
   11910 }
   11911 _ACEOF
   11912 rm -f conftest.$ac_objext conftest$ac_exeext
   11913 if { (ac_try="$ac_link"
   11914 case "(($ac_try" in
   11915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11916   *) ac_try_echo=$ac_try;;
   11917 esac
   11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11919   (eval "$ac_link") 2>conftest.er1
   11920   ac_status=$?
   11921   grep -v '^ *+' conftest.er1 >conftest.err
   11922   rm -f conftest.er1
   11923   cat conftest.err >&5
   11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11925   (exit $ac_status); } &&
   11926 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11927   { (case "(($ac_try" in
   11928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11929   *) ac_try_echo=$ac_try;;
   11930 esac
   11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11932   (eval "$ac_try") 2>&5
   11933   ac_status=$?
   11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11935   (exit $ac_status); }; } &&
   11936 	 { ac_try='test -s conftest$ac_exeext'
   11937   { (case "(($ac_try" in
   11938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11939   *) ac_try_echo=$ac_try;;
   11940 esac
   11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11942   (eval "$ac_try") 2>&5
   11943   ac_status=$?
   11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11945   (exit $ac_status); }; }; then
   11946   eval "$as_ac_var=yes"
   11947 else
   11948   echo "$as_me: failed program was:" >&5
   11949 sed 's/^/| /' conftest.$ac_ext >&5
   11950 
   11951 	eval "$as_ac_var=no"
   11952 fi
   11953 
   11954 rm -f core conftest.err conftest.$ac_objext \
   11955       conftest$ac_exeext conftest.$ac_ext
   11956 fi
   11957 ac_res=`eval echo '${'$as_ac_var'}'`
   11958 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11959 echo "${ECHO_T}$ac_res" >&6; }
   11960 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11961   cat >>confdefs.h <<_ACEOF
   11962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11963 _ACEOF
   11964 
   11965 fi
   11966 done
   11967 
   11968 
   11969 
   11970 { echo "$as_me:$LINENO: checking tool compatibility" >&5
   11971 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
   11972 
   11973 ICC=no
   11974 IXX=no
   11975 case $CC in
   11976   icc*|icpc*)
   11977     ICC=yes
   11978     IXX=yes
   11979     ;;
   11980    *)
   11981     ;;
   11982 esac
   11983 
   11984 if test "$GCC" != "yes" && test "$ICC" != "yes"
   11985 then
   11986   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
   11987 echo "$as_me: error: gcc|icc required but not found" >&2;}
   11988    { (exit 1); exit 1; }; }
   11989 fi
   11990 
   11991 if test "$GXX" != "yes" && test "$IXX" != "yes"
   11992 then
   11993   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
   11994 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
   11995    { (exit 1); exit 1; }; }
   11996 fi
   11997 
   11998 if test "$GCC" = "yes"
   11999 then
   12000   cat >conftest.$ac_ext <<_ACEOF
   12001 #if !defined(__GNUC__) || __GNUC__ < 3
   12002 #error Unsupported GCC version
   12003 #endif
   12004 
   12005 _ACEOF
   12006 rm -f conftest.$ac_objext
   12007 if { (ac_try="$ac_compile"
   12008 case "(($ac_try" in
   12009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12010   *) ac_try_echo=$ac_try;;
   12011 esac
   12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12013   (eval "$ac_compile") 2>conftest.er1
   12014   ac_status=$?
   12015   grep -v '^ *+' conftest.er1 >conftest.err
   12016   rm -f conftest.er1
   12017   cat conftest.err >&5
   12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12019   (exit $ac_status); } &&
   12020 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12021   { (case "(($ac_try" in
   12022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12023   *) ac_try_echo=$ac_try;;
   12024 esac
   12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12026   (eval "$ac_try") 2>&5
   12027   ac_status=$?
   12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12029   (exit $ac_status); }; } &&
   12030 	 { ac_try='test -s conftest.$ac_objext'
   12031   { (case "(($ac_try" in
   12032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12033   *) ac_try_echo=$ac_try;;
   12034 esac
   12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12036   (eval "$ac_try") 2>&5
   12037   ac_status=$?
   12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12039   (exit $ac_status); }; }; then
   12040   :
   12041 else
   12042   echo "$as_me: failed program was:" >&5
   12043 sed 's/^/| /' conftest.$ac_ext >&5
   12044 
   12045 	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
   12046 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
   12047    { (exit 1); exit 1; }; }
   12048 fi
   12049 
   12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12051 fi
   12052 
   12053 if test -z "$llvm_cv_gnu_make_command"
   12054 then
   12055   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
   12056 echo "$as_me: error: GNU Make required but not found" >&2;}
   12057    { (exit 1); exit 1; }; }
   12058 fi
   12059 
   12060 { echo "$as_me:$LINENO: result: ok" >&5
   12061 echo "${ECHO_T}ok" >&6; }
   12062 
   12063 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
   12064 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
   12065 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
   12066 
   12067 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
   12068 
   12069 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
   12070 
   12071 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
   12072 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
   12073 
   12074 
   12075 
   12076 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
   12077 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
   12078 if test "${ac_cv_lib_m_sin+set}" = set; then
   12079   echo $ECHO_N "(cached) $ECHO_C" >&6
   12080 else
   12081   ac_check_lib_save_LIBS=$LIBS
   12082 LIBS="-lm  $LIBS"
   12083 cat >conftest.$ac_ext <<_ACEOF
   12084 /* confdefs.h.  */
   12085 _ACEOF
   12086 cat confdefs.h >>conftest.$ac_ext
   12087 cat >>conftest.$ac_ext <<_ACEOF
   12088 /* end confdefs.h.  */
   12089 
   12090 /* Override any GCC internal prototype to avoid an error.
   12091    Use char because int might match the return type of a GCC
   12092    builtin and then its argument prototype would still apply.  */
   12093 #ifdef __cplusplus
   12094 extern "C"
   12095 #endif
   12096 char sin ();
   12097 int
   12098 main ()
   12099 {
   12100 return sin ();
   12101   ;
   12102   return 0;
   12103 }
   12104 _ACEOF
   12105 rm -f conftest.$ac_objext conftest$ac_exeext
   12106 if { (ac_try="$ac_link"
   12107 case "(($ac_try" in
   12108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12109   *) ac_try_echo=$ac_try;;
   12110 esac
   12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12112   (eval "$ac_link") 2>conftest.er1
   12113   ac_status=$?
   12114   grep -v '^ *+' conftest.er1 >conftest.err
   12115   rm -f conftest.er1
   12116   cat conftest.err >&5
   12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12118   (exit $ac_status); } &&
   12119 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12120   { (case "(($ac_try" in
   12121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12122   *) ac_try_echo=$ac_try;;
   12123 esac
   12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12125   (eval "$ac_try") 2>&5
   12126   ac_status=$?
   12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12128   (exit $ac_status); }; } &&
   12129 	 { ac_try='test -s conftest$ac_exeext'
   12130   { (case "(($ac_try" in
   12131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12132   *) ac_try_echo=$ac_try;;
   12133 esac
   12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12135   (eval "$ac_try") 2>&5
   12136   ac_status=$?
   12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12138   (exit $ac_status); }; }; then
   12139   ac_cv_lib_m_sin=yes
   12140 else
   12141   echo "$as_me: failed program was:" >&5
   12142 sed 's/^/| /' conftest.$ac_ext >&5
   12143 
   12144 	ac_cv_lib_m_sin=no
   12145 fi
   12146 
   12147 rm -f core conftest.err conftest.$ac_objext \
   12148       conftest$ac_exeext conftest.$ac_ext
   12149 LIBS=$ac_check_lib_save_LIBS
   12150 fi
   12151 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
   12152 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
   12153 if test $ac_cv_lib_m_sin = yes; then
   12154   cat >>confdefs.h <<_ACEOF
   12155 #define HAVE_LIBM 1
   12156 _ACEOF
   12157 
   12158   LIBS="-lm $LIBS"
   12159 
   12160 fi
   12161 
   12162 if test "$llvm_cv_os_type" = "MingW" ; then
   12163 
   12164 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
   12165 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
   12166 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
   12167   echo $ECHO_N "(cached) $ECHO_C" >&6
   12168 else
   12169   ac_check_lib_save_LIBS=$LIBS
   12170 LIBS="-limagehlp  $LIBS"
   12171 cat >conftest.$ac_ext <<_ACEOF
   12172 /* confdefs.h.  */
   12173 _ACEOF
   12174 cat confdefs.h >>conftest.$ac_ext
   12175 cat >>conftest.$ac_ext <<_ACEOF
   12176 /* end confdefs.h.  */
   12177 
   12178 
   12179 int
   12180 main ()
   12181 {
   12182 return main ();
   12183   ;
   12184   return 0;
   12185 }
   12186 _ACEOF
   12187 rm -f conftest.$ac_objext conftest$ac_exeext
   12188 if { (ac_try="$ac_link"
   12189 case "(($ac_try" in
   12190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12191   *) ac_try_echo=$ac_try;;
   12192 esac
   12193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12194   (eval "$ac_link") 2>conftest.er1
   12195   ac_status=$?
   12196   grep -v '^ *+' conftest.er1 >conftest.err
   12197   rm -f conftest.er1
   12198   cat conftest.err >&5
   12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12200   (exit $ac_status); } &&
   12201 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12202   { (case "(($ac_try" in
   12203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12204   *) ac_try_echo=$ac_try;;
   12205 esac
   12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12207   (eval "$ac_try") 2>&5
   12208   ac_status=$?
   12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12210   (exit $ac_status); }; } &&
   12211 	 { ac_try='test -s conftest$ac_exeext'
   12212   { (case "(($ac_try" in
   12213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12214   *) ac_try_echo=$ac_try;;
   12215 esac
   12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12217   (eval "$ac_try") 2>&5
   12218   ac_status=$?
   12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12220   (exit $ac_status); }; }; then
   12221   ac_cv_lib_imagehlp_main=yes
   12222 else
   12223   echo "$as_me: failed program was:" >&5
   12224 sed 's/^/| /' conftest.$ac_ext >&5
   12225 
   12226 	ac_cv_lib_imagehlp_main=no
   12227 fi
   12228 
   12229 rm -f core conftest.err conftest.$ac_objext \
   12230       conftest$ac_exeext conftest.$ac_ext
   12231 LIBS=$ac_check_lib_save_LIBS
   12232 fi
   12233 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
   12234 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
   12235 if test $ac_cv_lib_imagehlp_main = yes; then
   12236   cat >>confdefs.h <<_ACEOF
   12237 #define HAVE_LIBIMAGEHLP 1
   12238 _ACEOF
   12239 
   12240   LIBS="-limagehlp $LIBS"
   12241 
   12242 fi
   12243 
   12244 
   12245 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
   12246 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
   12247 if test "${ac_cv_lib_psapi_main+set}" = set; then
   12248   echo $ECHO_N "(cached) $ECHO_C" >&6
   12249 else
   12250   ac_check_lib_save_LIBS=$LIBS
   12251 LIBS="-lpsapi  $LIBS"
   12252 cat >conftest.$ac_ext <<_ACEOF
   12253 /* confdefs.h.  */
   12254 _ACEOF
   12255 cat confdefs.h >>conftest.$ac_ext
   12256 cat >>conftest.$ac_ext <<_ACEOF
   12257 /* end confdefs.h.  */
   12258 
   12259 
   12260 int
   12261 main ()
   12262 {
   12263 return main ();
   12264   ;
   12265   return 0;
   12266 }
   12267 _ACEOF
   12268 rm -f conftest.$ac_objext conftest$ac_exeext
   12269 if { (ac_try="$ac_link"
   12270 case "(($ac_try" in
   12271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12272   *) ac_try_echo=$ac_try;;
   12273 esac
   12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12275   (eval "$ac_link") 2>conftest.er1
   12276   ac_status=$?
   12277   grep -v '^ *+' conftest.er1 >conftest.err
   12278   rm -f conftest.er1
   12279   cat conftest.err >&5
   12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12281   (exit $ac_status); } &&
   12282 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12283   { (case "(($ac_try" in
   12284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12285   *) ac_try_echo=$ac_try;;
   12286 esac
   12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12288   (eval "$ac_try") 2>&5
   12289   ac_status=$?
   12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12291   (exit $ac_status); }; } &&
   12292 	 { ac_try='test -s conftest$ac_exeext'
   12293   { (case "(($ac_try" in
   12294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12295   *) ac_try_echo=$ac_try;;
   12296 esac
   12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12298   (eval "$ac_try") 2>&5
   12299   ac_status=$?
   12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12301   (exit $ac_status); }; }; then
   12302   ac_cv_lib_psapi_main=yes
   12303 else
   12304   echo "$as_me: failed program was:" >&5
   12305 sed 's/^/| /' conftest.$ac_ext >&5
   12306 
   12307 	ac_cv_lib_psapi_main=no
   12308 fi
   12309 
   12310 rm -f core conftest.err conftest.$ac_objext \
   12311       conftest$ac_exeext conftest.$ac_ext
   12312 LIBS=$ac_check_lib_save_LIBS
   12313 fi
   12314 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
   12315 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
   12316 if test $ac_cv_lib_psapi_main = yes; then
   12317   cat >>confdefs.h <<_ACEOF
   12318 #define HAVE_LIBPSAPI 1
   12319 _ACEOF
   12320 
   12321   LIBS="-lpsapi $LIBS"
   12322 
   12323 fi
   12324 
   12325 fi
   12326 
   12327 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
   12328 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
   12329 if test "${ac_cv_search_dlopen+set}" = set; then
   12330   echo $ECHO_N "(cached) $ECHO_C" >&6
   12331 else
   12332   ac_func_search_save_LIBS=$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 /* Override any GCC internal prototype to avoid an error.
   12341    Use char because int might match the return type of a GCC
   12342    builtin and then its argument prototype would still apply.  */
   12343 #ifdef __cplusplus
   12344 extern "C"
   12345 #endif
   12346 char dlopen ();
   12347 int
   12348 main ()
   12349 {
   12350 return dlopen ();
   12351   ;
   12352   return 0;
   12353 }
   12354 _ACEOF
   12355 for ac_lib in '' dl; do
   12356   if test -z "$ac_lib"; then
   12357     ac_res="none required"
   12358   else
   12359     ac_res=-l$ac_lib
   12360     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12361   fi
   12362   rm -f conftest.$ac_objext conftest$ac_exeext
   12363 if { (ac_try="$ac_link"
   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_link") 2>conftest.er1
   12370   ac_status=$?
   12371   grep -v '^ *+' conftest.er1 >conftest.err
   12372   rm -f conftest.er1
   12373   cat conftest.err >&5
   12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12375   (exit $ac_status); } &&
   12376 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12377   { (case "(($ac_try" in
   12378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12379   *) ac_try_echo=$ac_try;;
   12380 esac
   12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12382   (eval "$ac_try") 2>&5
   12383   ac_status=$?
   12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12385   (exit $ac_status); }; } &&
   12386 	 { ac_try='test -s conftest$ac_exeext'
   12387   { (case "(($ac_try" in
   12388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12389   *) ac_try_echo=$ac_try;;
   12390 esac
   12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12392   (eval "$ac_try") 2>&5
   12393   ac_status=$?
   12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12395   (exit $ac_status); }; }; then
   12396   ac_cv_search_dlopen=$ac_res
   12397 else
   12398   echo "$as_me: failed program was:" >&5
   12399 sed 's/^/| /' conftest.$ac_ext >&5
   12400 
   12401 
   12402 fi
   12403 
   12404 rm -f core conftest.err conftest.$ac_objext \
   12405       conftest$ac_exeext
   12406   if test "${ac_cv_search_dlopen+set}" = set; then
   12407   break
   12408 fi
   12409 done
   12410 if test "${ac_cv_search_dlopen+set}" = set; then
   12411   :
   12412 else
   12413   ac_cv_search_dlopen=no
   12414 fi
   12415 rm conftest.$ac_ext
   12416 LIBS=$ac_func_search_save_LIBS
   12417 fi
   12418 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
   12419 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
   12420 ac_res=$ac_cv_search_dlopen
   12421 if test "$ac_res" != no; then
   12422   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12423 
   12424 cat >>confdefs.h <<\_ACEOF
   12425 #define HAVE_DLOPEN 1
   12426 _ACEOF
   12427 
   12428 else
   12429   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
   12430 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
   12431 fi
   12432 
   12433 
   12434 if test "$llvm_cv_enable_libffi" = "yes" ; then
   12435   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
   12436 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
   12437 if test "${ac_cv_search_ffi_call+set}" = set; then
   12438   echo $ECHO_N "(cached) $ECHO_C" >&6
   12439 else
   12440   ac_func_search_save_LIBS=$LIBS
   12441 cat >conftest.$ac_ext <<_ACEOF
   12442 /* confdefs.h.  */
   12443 _ACEOF
   12444 cat confdefs.h >>conftest.$ac_ext
   12445 cat >>conftest.$ac_ext <<_ACEOF
   12446 /* end confdefs.h.  */
   12447 
   12448 /* Override any GCC internal prototype to avoid an error.
   12449    Use char because int might match the return type of a GCC
   12450    builtin and then its argument prototype would still apply.  */
   12451 #ifdef __cplusplus
   12452 extern "C"
   12453 #endif
   12454 char ffi_call ();
   12455 int
   12456 main ()
   12457 {
   12458 return ffi_call ();
   12459   ;
   12460   return 0;
   12461 }
   12462 _ACEOF
   12463 for ac_lib in '' ffi; do
   12464   if test -z "$ac_lib"; then
   12465     ac_res="none required"
   12466   else
   12467     ac_res=-l$ac_lib
   12468     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12469   fi
   12470   rm -f conftest.$ac_objext conftest$ac_exeext
   12471 if { (ac_try="$ac_link"
   12472 case "(($ac_try" in
   12473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12474   *) ac_try_echo=$ac_try;;
   12475 esac
   12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12477   (eval "$ac_link") 2>conftest.er1
   12478   ac_status=$?
   12479   grep -v '^ *+' conftest.er1 >conftest.err
   12480   rm -f conftest.er1
   12481   cat conftest.err >&5
   12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12483   (exit $ac_status); } &&
   12484 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12485   { (case "(($ac_try" in
   12486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12487   *) ac_try_echo=$ac_try;;
   12488 esac
   12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12490   (eval "$ac_try") 2>&5
   12491   ac_status=$?
   12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12493   (exit $ac_status); }; } &&
   12494 	 { ac_try='test -s conftest$ac_exeext'
   12495   { (case "(($ac_try" in
   12496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12497   *) ac_try_echo=$ac_try;;
   12498 esac
   12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12500   (eval "$ac_try") 2>&5
   12501   ac_status=$?
   12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12503   (exit $ac_status); }; }; then
   12504   ac_cv_search_ffi_call=$ac_res
   12505 else
   12506   echo "$as_me: failed program was:" >&5
   12507 sed 's/^/| /' conftest.$ac_ext >&5
   12508 
   12509 
   12510 fi
   12511 
   12512 rm -f core conftest.err conftest.$ac_objext \
   12513       conftest$ac_exeext
   12514   if test "${ac_cv_search_ffi_call+set}" = set; then
   12515   break
   12516 fi
   12517 done
   12518 if test "${ac_cv_search_ffi_call+set}" = set; then
   12519   :
   12520 else
   12521   ac_cv_search_ffi_call=no
   12522 fi
   12523 rm conftest.$ac_ext
   12524 LIBS=$ac_func_search_save_LIBS
   12525 fi
   12526 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
   12527 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
   12528 ac_res=$ac_cv_search_ffi_call
   12529 if test "$ac_res" != no; then
   12530   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12531 
   12532 cat >>confdefs.h <<\_ACEOF
   12533 #define HAVE_FFI_CALL 1
   12534 _ACEOF
   12535 
   12536 else
   12537   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
   12538 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
   12539    { (exit 1); exit 1; }; }
   12540 fi
   12541 
   12542 fi
   12543 
   12544 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
   12545 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
   12546 if test "${ac_cv_search_mallinfo+set}" = set; then
   12547   echo $ECHO_N "(cached) $ECHO_C" >&6
   12548 else
   12549   ac_func_search_save_LIBS=$LIBS
   12550 cat >conftest.$ac_ext <<_ACEOF
   12551 /* confdefs.h.  */
   12552 _ACEOF
   12553 cat confdefs.h >>conftest.$ac_ext
   12554 cat >>conftest.$ac_ext <<_ACEOF
   12555 /* end confdefs.h.  */
   12556 
   12557 /* Override any GCC internal prototype to avoid an error.
   12558    Use char because int might match the return type of a GCC
   12559    builtin and then its argument prototype would still apply.  */
   12560 #ifdef __cplusplus
   12561 extern "C"
   12562 #endif
   12563 char mallinfo ();
   12564 int
   12565 main ()
   12566 {
   12567 return mallinfo ();
   12568   ;
   12569   return 0;
   12570 }
   12571 _ACEOF
   12572 for ac_lib in '' malloc; do
   12573   if test -z "$ac_lib"; then
   12574     ac_res="none required"
   12575   else
   12576     ac_res=-l$ac_lib
   12577     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12578   fi
   12579   rm -f conftest.$ac_objext conftest$ac_exeext
   12580 if { (ac_try="$ac_link"
   12581 case "(($ac_try" in
   12582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12583   *) ac_try_echo=$ac_try;;
   12584 esac
   12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12586   (eval "$ac_link") 2>conftest.er1
   12587   ac_status=$?
   12588   grep -v '^ *+' conftest.er1 >conftest.err
   12589   rm -f conftest.er1
   12590   cat conftest.err >&5
   12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12592   (exit $ac_status); } &&
   12593 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12594   { (case "(($ac_try" in
   12595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12596   *) ac_try_echo=$ac_try;;
   12597 esac
   12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12599   (eval "$ac_try") 2>&5
   12600   ac_status=$?
   12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12602   (exit $ac_status); }; } &&
   12603 	 { ac_try='test -s conftest$ac_exeext'
   12604   { (case "(($ac_try" in
   12605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12606   *) ac_try_echo=$ac_try;;
   12607 esac
   12608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12609   (eval "$ac_try") 2>&5
   12610   ac_status=$?
   12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12612   (exit $ac_status); }; }; then
   12613   ac_cv_search_mallinfo=$ac_res
   12614 else
   12615   echo "$as_me: failed program was:" >&5
   12616 sed 's/^/| /' conftest.$ac_ext >&5
   12617 
   12618 
   12619 fi
   12620 
   12621 rm -f core conftest.err conftest.$ac_objext \
   12622       conftest$ac_exeext
   12623   if test "${ac_cv_search_mallinfo+set}" = set; then
   12624   break
   12625 fi
   12626 done
   12627 if test "${ac_cv_search_mallinfo+set}" = set; then
   12628   :
   12629 else
   12630   ac_cv_search_mallinfo=no
   12631 fi
   12632 rm conftest.$ac_ext
   12633 LIBS=$ac_func_search_save_LIBS
   12634 fi
   12635 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
   12636 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
   12637 ac_res=$ac_cv_search_mallinfo
   12638 if test "$ac_res" != no; then
   12639   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12640 
   12641 cat >>confdefs.h <<\_ACEOF
   12642 #define HAVE_MALLINFO 1
   12643 _ACEOF
   12644 
   12645 fi
   12646 
   12647 
   12648 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
   12649 
   12650 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
   12651 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
   12652 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
   12653   echo $ECHO_N "(cached) $ECHO_C" >&6
   12654 else
   12655   ac_check_lib_save_LIBS=$LIBS
   12656 LIBS="-lpthread  $LIBS"
   12657 cat >conftest.$ac_ext <<_ACEOF
   12658 /* confdefs.h.  */
   12659 _ACEOF
   12660 cat confdefs.h >>conftest.$ac_ext
   12661 cat >>conftest.$ac_ext <<_ACEOF
   12662 /* end confdefs.h.  */
   12663 
   12664 /* Override any GCC internal prototype to avoid an error.
   12665    Use char because int might match the return type of a GCC
   12666    builtin and then its argument prototype would still apply.  */
   12667 #ifdef __cplusplus
   12668 extern "C"
   12669 #endif
   12670 char pthread_mutex_init ();
   12671 int
   12672 main ()
   12673 {
   12674 return pthread_mutex_init ();
   12675   ;
   12676   return 0;
   12677 }
   12678 _ACEOF
   12679 rm -f conftest.$ac_objext conftest$ac_exeext
   12680 if { (ac_try="$ac_link"
   12681 case "(($ac_try" in
   12682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12683   *) ac_try_echo=$ac_try;;
   12684 esac
   12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12686   (eval "$ac_link") 2>conftest.er1
   12687   ac_status=$?
   12688   grep -v '^ *+' conftest.er1 >conftest.err
   12689   rm -f conftest.er1
   12690   cat conftest.err >&5
   12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12692   (exit $ac_status); } &&
   12693 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12694   { (case "(($ac_try" in
   12695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12696   *) ac_try_echo=$ac_try;;
   12697 esac
   12698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12699   (eval "$ac_try") 2>&5
   12700   ac_status=$?
   12701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12702   (exit $ac_status); }; } &&
   12703 	 { ac_try='test -s conftest$ac_exeext'
   12704   { (case "(($ac_try" in
   12705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12706   *) ac_try_echo=$ac_try;;
   12707 esac
   12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12709   (eval "$ac_try") 2>&5
   12710   ac_status=$?
   12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12712   (exit $ac_status); }; }; then
   12713   ac_cv_lib_pthread_pthread_mutex_init=yes
   12714 else
   12715   echo "$as_me: failed program was:" >&5
   12716 sed 's/^/| /' conftest.$ac_ext >&5
   12717 
   12718 	ac_cv_lib_pthread_pthread_mutex_init=no
   12719 fi
   12720 
   12721 rm -f core conftest.err conftest.$ac_objext \
   12722       conftest$ac_exeext conftest.$ac_ext
   12723 LIBS=$ac_check_lib_save_LIBS
   12724 fi
   12725 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
   12726 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
   12727 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
   12728   cat >>confdefs.h <<_ACEOF
   12729 #define HAVE_LIBPTHREAD 1
   12730 _ACEOF
   12731 
   12732   LIBS="-lpthread $LIBS"
   12733 
   12734 fi
   12735 
   12736   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
   12737 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
   12738 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
   12739   echo $ECHO_N "(cached) $ECHO_C" >&6
   12740 else
   12741   ac_func_search_save_LIBS=$LIBS
   12742 cat >conftest.$ac_ext <<_ACEOF
   12743 /* confdefs.h.  */
   12744 _ACEOF
   12745 cat confdefs.h >>conftest.$ac_ext
   12746 cat >>conftest.$ac_ext <<_ACEOF
   12747 /* end confdefs.h.  */
   12748 
   12749 /* Override any GCC internal prototype to avoid an error.
   12750    Use char because int might match the return type of a GCC
   12751    builtin and then its argument prototype would still apply.  */
   12752 #ifdef __cplusplus
   12753 extern "C"
   12754 #endif
   12755 char pthread_mutex_lock ();
   12756 int
   12757 main ()
   12758 {
   12759 return pthread_mutex_lock ();
   12760   ;
   12761   return 0;
   12762 }
   12763 _ACEOF
   12764 for ac_lib in '' pthread; do
   12765   if test -z "$ac_lib"; then
   12766     ac_res="none required"
   12767   else
   12768     ac_res=-l$ac_lib
   12769     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12770   fi
   12771   rm -f conftest.$ac_objext conftest$ac_exeext
   12772 if { (ac_try="$ac_link"
   12773 case "(($ac_try" in
   12774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12775   *) ac_try_echo=$ac_try;;
   12776 esac
   12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12778   (eval "$ac_link") 2>conftest.er1
   12779   ac_status=$?
   12780   grep -v '^ *+' conftest.er1 >conftest.err
   12781   rm -f conftest.er1
   12782   cat conftest.err >&5
   12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12784   (exit $ac_status); } &&
   12785 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12786   { (case "(($ac_try" in
   12787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12788   *) ac_try_echo=$ac_try;;
   12789 esac
   12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12791   (eval "$ac_try") 2>&5
   12792   ac_status=$?
   12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12794   (exit $ac_status); }; } &&
   12795 	 { ac_try='test -s conftest$ac_exeext'
   12796   { (case "(($ac_try" in
   12797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12798   *) ac_try_echo=$ac_try;;
   12799 esac
   12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12801   (eval "$ac_try") 2>&5
   12802   ac_status=$?
   12803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12804   (exit $ac_status); }; }; then
   12805   ac_cv_search_pthread_mutex_lock=$ac_res
   12806 else
   12807   echo "$as_me: failed program was:" >&5
   12808 sed 's/^/| /' conftest.$ac_ext >&5
   12809 
   12810 
   12811 fi
   12812 
   12813 rm -f core conftest.err conftest.$ac_objext \
   12814       conftest$ac_exeext
   12815   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
   12816   break
   12817 fi
   12818 done
   12819 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
   12820   :
   12821 else
   12822   ac_cv_search_pthread_mutex_lock=no
   12823 fi
   12824 rm conftest.$ac_ext
   12825 LIBS=$ac_func_search_save_LIBS
   12826 fi
   12827 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
   12828 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
   12829 ac_res=$ac_cv_search_pthread_mutex_lock
   12830 if test "$ac_res" != no; then
   12831   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12832 
   12833 cat >>confdefs.h <<\_ACEOF
   12834 #define HAVE_PTHREAD_MUTEX_LOCK 1
   12835 _ACEOF
   12836 
   12837 fi
   12838 
   12839   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
   12840 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
   12841 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
   12842   echo $ECHO_N "(cached) $ECHO_C" >&6
   12843 else
   12844   ac_func_search_save_LIBS=$LIBS
   12845 cat >conftest.$ac_ext <<_ACEOF
   12846 /* confdefs.h.  */
   12847 _ACEOF
   12848 cat confdefs.h >>conftest.$ac_ext
   12849 cat >>conftest.$ac_ext <<_ACEOF
   12850 /* end confdefs.h.  */
   12851 
   12852 /* Override any GCC internal prototype to avoid an error.
   12853    Use char because int might match the return type of a GCC
   12854    builtin and then its argument prototype would still apply.  */
   12855 #ifdef __cplusplus
   12856 extern "C"
   12857 #endif
   12858 char pthread_rwlock_init ();
   12859 int
   12860 main ()
   12861 {
   12862 return pthread_rwlock_init ();
   12863   ;
   12864   return 0;
   12865 }
   12866 _ACEOF
   12867 for ac_lib in '' pthread; do
   12868   if test -z "$ac_lib"; then
   12869     ac_res="none required"
   12870   else
   12871     ac_res=-l$ac_lib
   12872     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12873   fi
   12874   rm -f conftest.$ac_objext conftest$ac_exeext
   12875 if { (ac_try="$ac_link"
   12876 case "(($ac_try" in
   12877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12878   *) ac_try_echo=$ac_try;;
   12879 esac
   12880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12881   (eval "$ac_link") 2>conftest.er1
   12882   ac_status=$?
   12883   grep -v '^ *+' conftest.er1 >conftest.err
   12884   rm -f conftest.er1
   12885   cat conftest.err >&5
   12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12887   (exit $ac_status); } &&
   12888 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12889   { (case "(($ac_try" in
   12890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12891   *) ac_try_echo=$ac_try;;
   12892 esac
   12893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12894   (eval "$ac_try") 2>&5
   12895   ac_status=$?
   12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12897   (exit $ac_status); }; } &&
   12898 	 { ac_try='test -s conftest$ac_exeext'
   12899   { (case "(($ac_try" in
   12900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12901   *) ac_try_echo=$ac_try;;
   12902 esac
   12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12904   (eval "$ac_try") 2>&5
   12905   ac_status=$?
   12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12907   (exit $ac_status); }; }; then
   12908   ac_cv_search_pthread_rwlock_init=$ac_res
   12909 else
   12910   echo "$as_me: failed program was:" >&5
   12911 sed 's/^/| /' conftest.$ac_ext >&5
   12912 
   12913 
   12914 fi
   12915 
   12916 rm -f core conftest.err conftest.$ac_objext \
   12917       conftest$ac_exeext
   12918   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
   12919   break
   12920 fi
   12921 done
   12922 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
   12923   :
   12924 else
   12925   ac_cv_search_pthread_rwlock_init=no
   12926 fi
   12927 rm conftest.$ac_ext
   12928 LIBS=$ac_func_search_save_LIBS
   12929 fi
   12930 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
   12931 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
   12932 ac_res=$ac_cv_search_pthread_rwlock_init
   12933 if test "$ac_res" != no; then
   12934   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12935 
   12936 cat >>confdefs.h <<\_ACEOF
   12937 #define HAVE_PTHREAD_RWLOCK_INIT 1
   12938 _ACEOF
   12939 
   12940 fi
   12941 
   12942   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
   12943 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
   12944 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
   12945   echo $ECHO_N "(cached) $ECHO_C" >&6
   12946 else
   12947   ac_func_search_save_LIBS=$LIBS
   12948 cat >conftest.$ac_ext <<_ACEOF
   12949 /* confdefs.h.  */
   12950 _ACEOF
   12951 cat confdefs.h >>conftest.$ac_ext
   12952 cat >>conftest.$ac_ext <<_ACEOF
   12953 /* end confdefs.h.  */
   12954 
   12955 /* Override any GCC internal prototype to avoid an error.
   12956    Use char because int might match the return type of a GCC
   12957    builtin and then its argument prototype would still apply.  */
   12958 #ifdef __cplusplus
   12959 extern "C"
   12960 #endif
   12961 char pthread_getspecific ();
   12962 int
   12963 main ()
   12964 {
   12965 return pthread_getspecific ();
   12966   ;
   12967   return 0;
   12968 }
   12969 _ACEOF
   12970 for ac_lib in '' pthread; do
   12971   if test -z "$ac_lib"; then
   12972     ac_res="none required"
   12973   else
   12974     ac_res=-l$ac_lib
   12975     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12976   fi
   12977   rm -f conftest.$ac_objext conftest$ac_exeext
   12978 if { (ac_try="$ac_link"
   12979 case "(($ac_try" in
   12980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12981   *) ac_try_echo=$ac_try;;
   12982 esac
   12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12984   (eval "$ac_link") 2>conftest.er1
   12985   ac_status=$?
   12986   grep -v '^ *+' conftest.er1 >conftest.err
   12987   rm -f conftest.er1
   12988   cat conftest.err >&5
   12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12990   (exit $ac_status); } &&
   12991 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12992   { (case "(($ac_try" in
   12993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12994   *) ac_try_echo=$ac_try;;
   12995 esac
   12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12997   (eval "$ac_try") 2>&5
   12998   ac_status=$?
   12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13000   (exit $ac_status); }; } &&
   13001 	 { ac_try='test -s conftest$ac_exeext'
   13002   { (case "(($ac_try" in
   13003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13004   *) ac_try_echo=$ac_try;;
   13005 esac
   13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13007   (eval "$ac_try") 2>&5
   13008   ac_status=$?
   13009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13010   (exit $ac_status); }; }; then
   13011   ac_cv_search_pthread_getspecific=$ac_res
   13012 else
   13013   echo "$as_me: failed program was:" >&5
   13014 sed 's/^/| /' conftest.$ac_ext >&5
   13015 
   13016 
   13017 fi
   13018 
   13019 rm -f core conftest.err conftest.$ac_objext \
   13020       conftest$ac_exeext
   13021   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
   13022   break
   13023 fi
   13024 done
   13025 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
   13026   :
   13027 else
   13028   ac_cv_search_pthread_getspecific=no
   13029 fi
   13030 rm conftest.$ac_ext
   13031 LIBS=$ac_func_search_save_LIBS
   13032 fi
   13033 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
   13034 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
   13035 ac_res=$ac_cv_search_pthread_getspecific
   13036 if test "$ac_res" != no; then
   13037   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13038 
   13039 cat >>confdefs.h <<\_ACEOF
   13040 #define HAVE_PTHREAD_GETSPECIFIC 1
   13041 _ACEOF
   13042 
   13043 fi
   13044 
   13045 fi
   13046 
   13047 
   13048 # Check whether --with-udis86 was given.
   13049 if test "${with_udis86+set}" = set; then
   13050   withval=$with_udis86;
   13051       USE_UDIS86=1
   13052 
   13053       case "$withval" in
   13054         /usr/lib|yes) ;;
   13055         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
   13056       esac
   13057 
   13058 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
   13059 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
   13060 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
   13061   echo $ECHO_N "(cached) $ECHO_C" >&6
   13062 else
   13063   ac_check_lib_save_LIBS=$LIBS
   13064 LIBS="-ludis86  $LIBS"
   13065 cat >conftest.$ac_ext <<_ACEOF
   13066 /* confdefs.h.  */
   13067 _ACEOF
   13068 cat confdefs.h >>conftest.$ac_ext
   13069 cat >>conftest.$ac_ext <<_ACEOF
   13070 /* end confdefs.h.  */
   13071 
   13072 /* Override any GCC internal prototype to avoid an error.
   13073    Use char because int might match the return type of a GCC
   13074    builtin and then its argument prototype would still apply.  */
   13075 #ifdef __cplusplus
   13076 extern "C"
   13077 #endif
   13078 char ud_init ();
   13079 int
   13080 main ()
   13081 {
   13082 return ud_init ();
   13083   ;
   13084   return 0;
   13085 }
   13086 _ACEOF
   13087 rm -f conftest.$ac_objext conftest$ac_exeext
   13088 if { (ac_try="$ac_link"
   13089 case "(($ac_try" in
   13090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13091   *) ac_try_echo=$ac_try;;
   13092 esac
   13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13094   (eval "$ac_link") 2>conftest.er1
   13095   ac_status=$?
   13096   grep -v '^ *+' conftest.er1 >conftest.err
   13097   rm -f conftest.er1
   13098   cat conftest.err >&5
   13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13100   (exit $ac_status); } &&
   13101 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13102   { (case "(($ac_try" in
   13103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13104   *) ac_try_echo=$ac_try;;
   13105 esac
   13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13107   (eval "$ac_try") 2>&5
   13108   ac_status=$?
   13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13110   (exit $ac_status); }; } &&
   13111 	 { ac_try='test -s conftest$ac_exeext'
   13112   { (case "(($ac_try" in
   13113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13114   *) ac_try_echo=$ac_try;;
   13115 esac
   13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13117   (eval "$ac_try") 2>&5
   13118   ac_status=$?
   13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13120   (exit $ac_status); }; }; then
   13121   ac_cv_lib_udis86_ud_init=yes
   13122 else
   13123   echo "$as_me: failed program was:" >&5
   13124 sed 's/^/| /' conftest.$ac_ext >&5
   13125 
   13126 	ac_cv_lib_udis86_ud_init=no
   13127 fi
   13128 
   13129 rm -f core conftest.err conftest.$ac_objext \
   13130       conftest$ac_exeext conftest.$ac_ext
   13131 LIBS=$ac_check_lib_save_LIBS
   13132 fi
   13133 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
   13134 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
   13135 if test $ac_cv_lib_udis86_ud_init = yes; then
   13136   cat >>confdefs.h <<_ACEOF
   13137 #define HAVE_LIBUDIS86 1
   13138 _ACEOF
   13139 
   13140   LIBS="-ludis86 $LIBS"
   13141 
   13142 else
   13143 
   13144         echo "Error! You need to have libudis86 around."
   13145         exit -1
   13146 
   13147 fi
   13148 
   13149 
   13150 else
   13151   USE_UDIS86=0
   13152 
   13153 fi
   13154 
   13155 
   13156 cat >>confdefs.h <<_ACEOF
   13157 #define USE_UDIS86 $USE_UDIS86
   13158 _ACEOF
   13159 
   13160 
   13161 
   13162 # Check whether --with-oprofile was given.
   13163 if test "${with_oprofile+set}" = set; then
   13164   withval=$with_oprofile;
   13165       USE_OPROFILE=1
   13166 
   13167       case "$withval" in
   13168         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
   13169         no) llvm_cv_oppath=
   13170             USE_OPROFILE=0
   13171  ;;
   13172         *) llvm_cv_oppath="${withval}/lib/oprofile"
   13173            CPPFLAGS="-I${withval}/include";;
   13174       esac
   13175       if test -n "$llvm_cv_oppath" ; then
   13176         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
   13177                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
   13178 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
   13179 if test "${ac_cv_search_bfd_init+set}" = set; then
   13180   echo $ECHO_N "(cached) $ECHO_C" >&6
   13181 else
   13182   ac_func_search_save_LIBS=$LIBS
   13183 cat >conftest.$ac_ext <<_ACEOF
   13184 /* confdefs.h.  */
   13185 _ACEOF
   13186 cat confdefs.h >>conftest.$ac_ext
   13187 cat >>conftest.$ac_ext <<_ACEOF
   13188 /* end confdefs.h.  */
   13189 
   13190 /* Override any GCC internal prototype to avoid an error.
   13191    Use char because int might match the return type of a GCC
   13192    builtin and then its argument prototype would still apply.  */
   13193 #ifdef __cplusplus
   13194 extern "C"
   13195 #endif
   13196 char bfd_init ();
   13197 int
   13198 main ()
   13199 {
   13200 return bfd_init ();
   13201   ;
   13202   return 0;
   13203 }
   13204 _ACEOF
   13205 for ac_lib in '' bfd; do
   13206   if test -z "$ac_lib"; then
   13207     ac_res="none required"
   13208   else
   13209     ac_res=-l$ac_lib
   13210     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13211   fi
   13212   rm -f conftest.$ac_objext conftest$ac_exeext
   13213 if { (ac_try="$ac_link"
   13214 case "(($ac_try" in
   13215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13216   *) ac_try_echo=$ac_try;;
   13217 esac
   13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13219   (eval "$ac_link") 2>conftest.er1
   13220   ac_status=$?
   13221   grep -v '^ *+' conftest.er1 >conftest.err
   13222   rm -f conftest.er1
   13223   cat conftest.err >&5
   13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13225   (exit $ac_status); } &&
   13226 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13227   { (case "(($ac_try" in
   13228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13229   *) ac_try_echo=$ac_try;;
   13230 esac
   13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13232   (eval "$ac_try") 2>&5
   13233   ac_status=$?
   13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13235   (exit $ac_status); }; } &&
   13236 	 { ac_try='test -s conftest$ac_exeext'
   13237   { (case "(($ac_try" in
   13238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13239   *) ac_try_echo=$ac_try;;
   13240 esac
   13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13242   (eval "$ac_try") 2>&5
   13243   ac_status=$?
   13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13245   (exit $ac_status); }; }; then
   13246   ac_cv_search_bfd_init=$ac_res
   13247 else
   13248   echo "$as_me: failed program was:" >&5
   13249 sed 's/^/| /' conftest.$ac_ext >&5
   13250 
   13251 
   13252 fi
   13253 
   13254 rm -f core conftest.err conftest.$ac_objext \
   13255       conftest$ac_exeext
   13256   if test "${ac_cv_search_bfd_init+set}" = set; then
   13257   break
   13258 fi
   13259 done
   13260 if test "${ac_cv_search_bfd_init+set}" = set; then
   13261   :
   13262 else
   13263   ac_cv_search_bfd_init=no
   13264 fi
   13265 rm conftest.$ac_ext
   13266 LIBS=$ac_func_search_save_LIBS
   13267 fi
   13268 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
   13269 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
   13270 ac_res=$ac_cv_search_bfd_init
   13271 if test "$ac_res" != no; then
   13272   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13273 
   13274 fi
   13275 
   13276         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
   13277 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
   13278 if test "${ac_cv_search_op_open_agent+set}" = set; then
   13279   echo $ECHO_N "(cached) $ECHO_C" >&6
   13280 else
   13281   ac_func_search_save_LIBS=$LIBS
   13282 cat >conftest.$ac_ext <<_ACEOF
   13283 /* confdefs.h.  */
   13284 _ACEOF
   13285 cat confdefs.h >>conftest.$ac_ext
   13286 cat >>conftest.$ac_ext <<_ACEOF
   13287 /* end confdefs.h.  */
   13288 
   13289 /* Override any GCC internal prototype to avoid an error.
   13290    Use char because int might match the return type of a GCC
   13291    builtin and then its argument prototype would still apply.  */
   13292 #ifdef __cplusplus
   13293 extern "C"
   13294 #endif
   13295 char op_open_agent ();
   13296 int
   13297 main ()
   13298 {
   13299 return op_open_agent ();
   13300   ;
   13301   return 0;
   13302 }
   13303 _ACEOF
   13304 for ac_lib in '' opagent; do
   13305   if test -z "$ac_lib"; then
   13306     ac_res="none required"
   13307   else
   13308     ac_res=-l$ac_lib
   13309     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13310   fi
   13311   rm -f conftest.$ac_objext conftest$ac_exeext
   13312 if { (ac_try="$ac_link"
   13313 case "(($ac_try" in
   13314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13315   *) ac_try_echo=$ac_try;;
   13316 esac
   13317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13318   (eval "$ac_link") 2>conftest.er1
   13319   ac_status=$?
   13320   grep -v '^ *+' conftest.er1 >conftest.err
   13321   rm -f conftest.er1
   13322   cat conftest.err >&5
   13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13324   (exit $ac_status); } &&
   13325 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13326   { (case "(($ac_try" in
   13327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13328   *) ac_try_echo=$ac_try;;
   13329 esac
   13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13331   (eval "$ac_try") 2>&5
   13332   ac_status=$?
   13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13334   (exit $ac_status); }; } &&
   13335 	 { ac_try='test -s conftest$ac_exeext'
   13336   { (case "(($ac_try" in
   13337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13338   *) ac_try_echo=$ac_try;;
   13339 esac
   13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13341   (eval "$ac_try") 2>&5
   13342   ac_status=$?
   13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13344   (exit $ac_status); }; }; then
   13345   ac_cv_search_op_open_agent=$ac_res
   13346 else
   13347   echo "$as_me: failed program was:" >&5
   13348 sed 's/^/| /' conftest.$ac_ext >&5
   13349 
   13350 
   13351 fi
   13352 
   13353 rm -f core conftest.err conftest.$ac_objext \
   13354       conftest$ac_exeext
   13355   if test "${ac_cv_search_op_open_agent+set}" = set; then
   13356   break
   13357 fi
   13358 done
   13359 if test "${ac_cv_search_op_open_agent+set}" = set; then
   13360   :
   13361 else
   13362   ac_cv_search_op_open_agent=no
   13363 fi
   13364 rm conftest.$ac_ext
   13365 LIBS=$ac_func_search_save_LIBS
   13366 fi
   13367 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
   13368 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
   13369 ac_res=$ac_cv_search_op_open_agent
   13370 if test "$ac_res" != no; then
   13371   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13372 
   13373 else
   13374 
   13375           echo "Error! You need to have libopagent around."
   13376           exit -1
   13377 
   13378 fi
   13379 
   13380         if test "${ac_cv_header_opagent_h+set}" = set; then
   13381   { echo "$as_me:$LINENO: checking for opagent.h" >&5
   13382 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
   13383 if test "${ac_cv_header_opagent_h+set}" = set; then
   13384   echo $ECHO_N "(cached) $ECHO_C" >&6
   13385 fi
   13386 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
   13387 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
   13388 else
   13389   # Is the header compilable?
   13390 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
   13391 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
   13392 cat >conftest.$ac_ext <<_ACEOF
   13393 /* confdefs.h.  */
   13394 _ACEOF
   13395 cat confdefs.h >>conftest.$ac_ext
   13396 cat >>conftest.$ac_ext <<_ACEOF
   13397 /* end confdefs.h.  */
   13398 $ac_includes_default
   13399 #include <opagent.h>
   13400 _ACEOF
   13401 rm -f conftest.$ac_objext
   13402 if { (ac_try="$ac_compile"
   13403 case "(($ac_try" in
   13404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13405   *) ac_try_echo=$ac_try;;
   13406 esac
   13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13408   (eval "$ac_compile") 2>conftest.er1
   13409   ac_status=$?
   13410   grep -v '^ *+' conftest.er1 >conftest.err
   13411   rm -f conftest.er1
   13412   cat conftest.err >&5
   13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13414   (exit $ac_status); } &&
   13415 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13416   { (case "(($ac_try" in
   13417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13418   *) ac_try_echo=$ac_try;;
   13419 esac
   13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13421   (eval "$ac_try") 2>&5
   13422   ac_status=$?
   13423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13424   (exit $ac_status); }; } &&
   13425 	 { ac_try='test -s conftest.$ac_objext'
   13426   { (case "(($ac_try" in
   13427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13428   *) ac_try_echo=$ac_try;;
   13429 esac
   13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13431   (eval "$ac_try") 2>&5
   13432   ac_status=$?
   13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13434   (exit $ac_status); }; }; then
   13435   ac_header_compiler=yes
   13436 else
   13437   echo "$as_me: failed program was:" >&5
   13438 sed 's/^/| /' conftest.$ac_ext >&5
   13439 
   13440 	ac_header_compiler=no
   13441 fi
   13442 
   13443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13445 echo "${ECHO_T}$ac_header_compiler" >&6; }
   13446 
   13447 # Is the header present?
   13448 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
   13449 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
   13450 cat >conftest.$ac_ext <<_ACEOF
   13451 /* confdefs.h.  */
   13452 _ACEOF
   13453 cat confdefs.h >>conftest.$ac_ext
   13454 cat >>conftest.$ac_ext <<_ACEOF
   13455 /* end confdefs.h.  */
   13456 #include <opagent.h>
   13457 _ACEOF
   13458 if { (ac_try="$ac_cpp conftest.$ac_ext"
   13459 case "(($ac_try" in
   13460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13461   *) ac_try_echo=$ac_try;;
   13462 esac
   13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13464   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   13465   ac_status=$?
   13466   grep -v '^ *+' conftest.er1 >conftest.err
   13467   rm -f conftest.er1
   13468   cat conftest.err >&5
   13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13470   (exit $ac_status); } >/dev/null; then
   13471   if test -s conftest.err; then
   13472     ac_cpp_err=$ac_c_preproc_warn_flag
   13473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   13474   else
   13475     ac_cpp_err=
   13476   fi
   13477 else
   13478   ac_cpp_err=yes
   13479 fi
   13480 if test -z "$ac_cpp_err"; then
   13481   ac_header_preproc=yes
   13482 else
   13483   echo "$as_me: failed program was:" >&5
   13484 sed 's/^/| /' conftest.$ac_ext >&5
   13485 
   13486   ac_header_preproc=no
   13487 fi
   13488 
   13489 rm -f conftest.err conftest.$ac_ext
   13490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13491 echo "${ECHO_T}$ac_header_preproc" >&6; }
   13492 
   13493 # So?  What about this header?
   13494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   13495   yes:no: )
   13496     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
   13497 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13498     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
   13499 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
   13500     ac_header_preproc=yes
   13501     ;;
   13502   no:yes:* )
   13503     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
   13504 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
   13505     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
   13506 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
   13507     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
   13508 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
   13509     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
   13510 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   13511     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
   13512 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
   13513     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
   13514 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
   13515     ( cat <<\_ASBOX
   13516 ## ------------------------------ ##
   13517 ## Report this to bugs@yourdomain ##
   13518 ## ------------------------------ ##
   13519 _ASBOX
   13520      ) | sed "s/^/$as_me: WARNING:     /" >&2
   13521     ;;
   13522 esac
   13523 { echo "$as_me:$LINENO: checking for opagent.h" >&5
   13524 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
   13525 if test "${ac_cv_header_opagent_h+set}" = set; then
   13526   echo $ECHO_N "(cached) $ECHO_C" >&6
   13527 else
   13528   ac_cv_header_opagent_h=$ac_header_preproc
   13529 fi
   13530 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
   13531 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
   13532 
   13533 fi
   13534 if test $ac_cv_header_opagent_h = yes; then
   13535   :
   13536 else
   13537 
   13538           echo "Error! You need to have opagent.h around."
   13539           exit -1
   13540 
   13541 fi
   13542 
   13543 
   13544       fi
   13545 
   13546 else
   13547 
   13548       USE_OPROFILE=0
   13549 
   13550 
   13551 fi
   13552 
   13553 
   13554 cat >>confdefs.h <<_ACEOF
   13555 #define USE_OPROFILE $USE_OPROFILE
   13556 _ACEOF
   13557 
   13558 
   13559 
   13560 
   13561 
   13562 
   13563 
   13564 
   13565 ac_header_dirent=no
   13566 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   13567   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   13568 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
   13569 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
   13570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13571   echo $ECHO_N "(cached) $ECHO_C" >&6
   13572 else
   13573   cat >conftest.$ac_ext <<_ACEOF
   13574 /* confdefs.h.  */
   13575 _ACEOF
   13576 cat confdefs.h >>conftest.$ac_ext
   13577 cat >>conftest.$ac_ext <<_ACEOF
   13578 /* end confdefs.h.  */
   13579 #include <sys/types.h>
   13580 #include <$ac_hdr>
   13581 
   13582 int
   13583 main ()
   13584 {
   13585 if ((DIR *) 0)
   13586 return 0;
   13587   ;
   13588   return 0;
   13589 }
   13590 _ACEOF
   13591 rm -f conftest.$ac_objext
   13592 if { (ac_try="$ac_compile"
   13593 case "(($ac_try" in
   13594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13595   *) ac_try_echo=$ac_try;;
   13596 esac
   13597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13598   (eval "$ac_compile") 2>conftest.er1
   13599   ac_status=$?
   13600   grep -v '^ *+' conftest.er1 >conftest.err
   13601   rm -f conftest.er1
   13602   cat conftest.err >&5
   13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13604   (exit $ac_status); } &&
   13605 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13606   { (case "(($ac_try" in
   13607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13608   *) ac_try_echo=$ac_try;;
   13609 esac
   13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13611   (eval "$ac_try") 2>&5
   13612   ac_status=$?
   13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13614   (exit $ac_status); }; } &&
   13615 	 { ac_try='test -s conftest.$ac_objext'
   13616   { (case "(($ac_try" in
   13617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13618   *) ac_try_echo=$ac_try;;
   13619 esac
   13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13621   (eval "$ac_try") 2>&5
   13622   ac_status=$?
   13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13624   (exit $ac_status); }; }; then
   13625   eval "$as_ac_Header=yes"
   13626 else
   13627   echo "$as_me: failed program was:" >&5
   13628 sed 's/^/| /' conftest.$ac_ext >&5
   13629 
   13630 	eval "$as_ac_Header=no"
   13631 fi
   13632 
   13633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13634 fi
   13635 ac_res=`eval echo '${'$as_ac_Header'}'`
   13636 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13637 echo "${ECHO_T}$ac_res" >&6; }
   13638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   13639   cat >>confdefs.h <<_ACEOF
   13640 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
   13641 _ACEOF
   13642 
   13643 ac_header_dirent=$ac_hdr; break
   13644 fi
   13645 
   13646 done
   13647 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   13648 if test $ac_header_dirent = dirent.h; then
   13649   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   13650 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   13651 if test "${ac_cv_search_opendir+set}" = set; then
   13652   echo $ECHO_N "(cached) $ECHO_C" >&6
   13653 else
   13654   ac_func_search_save_LIBS=$LIBS
   13655 cat >conftest.$ac_ext <<_ACEOF
   13656 /* confdefs.h.  */
   13657 _ACEOF
   13658 cat confdefs.h >>conftest.$ac_ext
   13659 cat >>conftest.$ac_ext <<_ACEOF
   13660 /* end confdefs.h.  */
   13661 
   13662 /* Override any GCC internal prototype to avoid an error.
   13663    Use char because int might match the return type of a GCC
   13664    builtin and then its argument prototype would still apply.  */
   13665 #ifdef __cplusplus
   13666 extern "C"
   13667 #endif
   13668 char opendir ();
   13669 int
   13670 main ()
   13671 {
   13672 return opendir ();
   13673   ;
   13674   return 0;
   13675 }
   13676 _ACEOF
   13677 for ac_lib in '' dir; do
   13678   if test -z "$ac_lib"; then
   13679     ac_res="none required"
   13680   else
   13681     ac_res=-l$ac_lib
   13682     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13683   fi
   13684   rm -f conftest.$ac_objext conftest$ac_exeext
   13685 if { (ac_try="$ac_link"
   13686 case "(($ac_try" in
   13687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13688   *) ac_try_echo=$ac_try;;
   13689 esac
   13690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13691   (eval "$ac_link") 2>conftest.er1
   13692   ac_status=$?
   13693   grep -v '^ *+' conftest.er1 >conftest.err
   13694   rm -f conftest.er1
   13695   cat conftest.err >&5
   13696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13697   (exit $ac_status); } &&
   13698 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13699   { (case "(($ac_try" in
   13700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13701   *) ac_try_echo=$ac_try;;
   13702 esac
   13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13704   (eval "$ac_try") 2>&5
   13705   ac_status=$?
   13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13707   (exit $ac_status); }; } &&
   13708 	 { ac_try='test -s conftest$ac_exeext'
   13709   { (case "(($ac_try" in
   13710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13711   *) ac_try_echo=$ac_try;;
   13712 esac
   13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13714   (eval "$ac_try") 2>&5
   13715   ac_status=$?
   13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13717   (exit $ac_status); }; }; then
   13718   ac_cv_search_opendir=$ac_res
   13719 else
   13720   echo "$as_me: failed program was:" >&5
   13721 sed 's/^/| /' conftest.$ac_ext >&5
   13722 
   13723 
   13724 fi
   13725 
   13726 rm -f core conftest.err conftest.$ac_objext \
   13727       conftest$ac_exeext
   13728   if test "${ac_cv_search_opendir+set}" = set; then
   13729   break
   13730 fi
   13731 done
   13732 if test "${ac_cv_search_opendir+set}" = set; then
   13733   :
   13734 else
   13735   ac_cv_search_opendir=no
   13736 fi
   13737 rm conftest.$ac_ext
   13738 LIBS=$ac_func_search_save_LIBS
   13739 fi
   13740 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   13741 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   13742 ac_res=$ac_cv_search_opendir
   13743 if test "$ac_res" != no; then
   13744   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13745 
   13746 fi
   13747 
   13748 else
   13749   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   13750 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   13751 if test "${ac_cv_search_opendir+set}" = set; then
   13752   echo $ECHO_N "(cached) $ECHO_C" >&6
   13753 else
   13754   ac_func_search_save_LIBS=$LIBS
   13755 cat >conftest.$ac_ext <<_ACEOF
   13756 /* confdefs.h.  */
   13757 _ACEOF
   13758 cat confdefs.h >>conftest.$ac_ext
   13759 cat >>conftest.$ac_ext <<_ACEOF
   13760 /* end confdefs.h.  */
   13761 
   13762 /* Override any GCC internal prototype to avoid an error.
   13763    Use char because int might match the return type of a GCC
   13764    builtin and then its argument prototype would still apply.  */
   13765 #ifdef __cplusplus
   13766 extern "C"
   13767 #endif
   13768 char opendir ();
   13769 int
   13770 main ()
   13771 {
   13772 return opendir ();
   13773   ;
   13774   return 0;
   13775 }
   13776 _ACEOF
   13777 for ac_lib in '' x; do
   13778   if test -z "$ac_lib"; then
   13779     ac_res="none required"
   13780   else
   13781     ac_res=-l$ac_lib
   13782     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13783   fi
   13784   rm -f conftest.$ac_objext conftest$ac_exeext
   13785 if { (ac_try="$ac_link"
   13786 case "(($ac_try" in
   13787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13788   *) ac_try_echo=$ac_try;;
   13789 esac
   13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13791   (eval "$ac_link") 2>conftest.er1
   13792   ac_status=$?
   13793   grep -v '^ *+' conftest.er1 >conftest.err
   13794   rm -f conftest.er1
   13795   cat conftest.err >&5
   13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13797   (exit $ac_status); } &&
   13798 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13799   { (case "(($ac_try" in
   13800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13801   *) ac_try_echo=$ac_try;;
   13802 esac
   13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13804   (eval "$ac_try") 2>&5
   13805   ac_status=$?
   13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13807   (exit $ac_status); }; } &&
   13808 	 { ac_try='test -s conftest$ac_exeext'
   13809   { (case "(($ac_try" in
   13810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13811   *) ac_try_echo=$ac_try;;
   13812 esac
   13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13814   (eval "$ac_try") 2>&5
   13815   ac_status=$?
   13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13817   (exit $ac_status); }; }; then
   13818   ac_cv_search_opendir=$ac_res
   13819 else
   13820   echo "$as_me: failed program was:" >&5
   13821 sed 's/^/| /' conftest.$ac_ext >&5
   13822 
   13823 
   13824 fi
   13825 
   13826 rm -f core conftest.err conftest.$ac_objext \
   13827       conftest$ac_exeext
   13828   if test "${ac_cv_search_opendir+set}" = set; then
   13829   break
   13830 fi
   13831 done
   13832 if test "${ac_cv_search_opendir+set}" = set; then
   13833   :
   13834 else
   13835   ac_cv_search_opendir=no
   13836 fi
   13837 rm conftest.$ac_ext
   13838 LIBS=$ac_func_search_save_LIBS
   13839 fi
   13840 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   13841 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   13842 ac_res=$ac_cv_search_opendir
   13843 if test "$ac_res" != no; then
   13844   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13845 
   13846 fi
   13847 
   13848 fi
   13849 
   13850 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
   13851 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
   13852 if test "${ac_cv_header_mmap_anon+set}" = set; then
   13853   echo $ECHO_N "(cached) $ECHO_C" >&6
   13854 else
   13855    ac_ext=c
   13856 ac_cpp='$CPP $CPPFLAGS'
   13857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   13860 
   13861   cat >conftest.$ac_ext <<_ACEOF
   13862 /* confdefs.h.  */
   13863 _ACEOF
   13864 cat confdefs.h >>conftest.$ac_ext
   13865 cat >>conftest.$ac_ext <<_ACEOF
   13866 /* end confdefs.h.  */
   13867 #include <sys/mman.h>
   13868 #include <unistd.h>
   13869 #include <fcntl.h>
   13870 int
   13871 main ()
   13872 {
   13873 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
   13874   ;
   13875   return 0;
   13876 }
   13877 _ACEOF
   13878 rm -f conftest.$ac_objext
   13879 if { (ac_try="$ac_compile"
   13880 case "(($ac_try" in
   13881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13882   *) ac_try_echo=$ac_try;;
   13883 esac
   13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13885   (eval "$ac_compile") 2>conftest.er1
   13886   ac_status=$?
   13887   grep -v '^ *+' conftest.er1 >conftest.err
   13888   rm -f conftest.er1
   13889   cat conftest.err >&5
   13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13891   (exit $ac_status); } &&
   13892 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13893   { (case "(($ac_try" in
   13894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13895   *) ac_try_echo=$ac_try;;
   13896 esac
   13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13898   (eval "$ac_try") 2>&5
   13899   ac_status=$?
   13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13901   (exit $ac_status); }; } &&
   13902 	 { ac_try='test -s conftest.$ac_objext'
   13903   { (case "(($ac_try" in
   13904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13905   *) ac_try_echo=$ac_try;;
   13906 esac
   13907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13908   (eval "$ac_try") 2>&5
   13909   ac_status=$?
   13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13911   (exit $ac_status); }; }; then
   13912   ac_cv_header_mmap_anon=yes
   13913 else
   13914   echo "$as_me: failed program was:" >&5
   13915 sed 's/^/| /' conftest.$ac_ext >&5
   13916 
   13917 	ac_cv_header_mmap_anon=no
   13918 fi
   13919 
   13920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13921   ac_ext=c
   13922 ac_cpp='$CPP $CPPFLAGS'
   13923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   13926 
   13927 
   13928 fi
   13929 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
   13930 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
   13931 if test "$ac_cv_header_mmap_anon" = yes; then
   13932 
   13933 cat >>confdefs.h <<\_ACEOF
   13934 #define HAVE_MMAP_ANONYMOUS 1
   13935 _ACEOF
   13936 
   13937 fi
   13938 
   13939 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
   13940 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
   13941 if test "${ac_cv_header_stat_broken+set}" = set; then
   13942   echo $ECHO_N "(cached) $ECHO_C" >&6
   13943 else
   13944   cat >conftest.$ac_ext <<_ACEOF
   13945 /* confdefs.h.  */
   13946 _ACEOF
   13947 cat confdefs.h >>conftest.$ac_ext
   13948 cat >>conftest.$ac_ext <<_ACEOF
   13949 /* end confdefs.h.  */
   13950 #include <sys/types.h>
   13951 #include <sys/stat.h>
   13952 
   13953 #if defined S_ISBLK && defined S_IFDIR
   13954 # if S_ISBLK (S_IFDIR)
   13955 You lose.
   13956 # endif
   13957 #endif
   13958 
   13959 #if defined S_ISBLK && defined S_IFCHR
   13960 # if S_ISBLK (S_IFCHR)
   13961 You lose.
   13962 # endif
   13963 #endif
   13964 
   13965 #if defined S_ISLNK && defined S_IFREG
   13966 # if S_ISLNK (S_IFREG)
   13967 You lose.
   13968 # endif
   13969 #endif
   13970 
   13971 #if defined S_ISSOCK && defined S_IFREG
   13972 # if S_ISSOCK (S_IFREG)
   13973 You lose.
   13974 # endif
   13975 #endif
   13976 
   13977 _ACEOF
   13978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13979   $EGREP "You lose" >/dev/null 2>&1; then
   13980   ac_cv_header_stat_broken=yes
   13981 else
   13982   ac_cv_header_stat_broken=no
   13983 fi
   13984 rm -f conftest*
   13985 
   13986 fi
   13987 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
   13988 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
   13989 if test $ac_cv_header_stat_broken = yes; then
   13990 
   13991 cat >>confdefs.h <<\_ACEOF
   13992 #define STAT_MACROS_BROKEN 1
   13993 _ACEOF
   13994 
   13995 fi
   13996 
   13997 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
   13998 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
   13999 if test "${ac_cv_header_sys_wait_h+set}" = set; then
   14000   echo $ECHO_N "(cached) $ECHO_C" >&6
   14001 else
   14002   cat >conftest.$ac_ext <<_ACEOF
   14003 /* confdefs.h.  */
   14004 _ACEOF
   14005 cat confdefs.h >>conftest.$ac_ext
   14006 cat >>conftest.$ac_ext <<_ACEOF
   14007 /* end confdefs.h.  */
   14008 #include <sys/types.h>
   14009 #include <sys/wait.h>
   14010 #ifndef WEXITSTATUS
   14011 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
   14012 #endif
   14013 #ifndef WIFEXITED
   14014 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   14015 #endif
   14016 
   14017 int
   14018 main ()
   14019 {
   14020   int s;
   14021   wait (&s);
   14022   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   14023   ;
   14024   return 0;
   14025 }
   14026 _ACEOF
   14027 rm -f conftest.$ac_objext
   14028 if { (ac_try="$ac_compile"
   14029 case "(($ac_try" in
   14030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14031   *) ac_try_echo=$ac_try;;
   14032 esac
   14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14034   (eval "$ac_compile") 2>conftest.er1
   14035   ac_status=$?
   14036   grep -v '^ *+' conftest.er1 >conftest.err
   14037   rm -f conftest.er1
   14038   cat conftest.err >&5
   14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14040   (exit $ac_status); } &&
   14041 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   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_try") 2>&5
   14048   ac_status=$?
   14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14050   (exit $ac_status); }; } &&
   14051 	 { ac_try='test -s conftest.$ac_objext'
   14052   { (case "(($ac_try" in
   14053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14054   *) ac_try_echo=$ac_try;;
   14055 esac
   14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14057   (eval "$ac_try") 2>&5
   14058   ac_status=$?
   14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14060   (exit $ac_status); }; }; then
   14061   ac_cv_header_sys_wait_h=yes
   14062 else
   14063   echo "$as_me: failed program was:" >&5
   14064 sed 's/^/| /' conftest.$ac_ext >&5
   14065 
   14066 	ac_cv_header_sys_wait_h=no
   14067 fi
   14068 
   14069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14070 fi
   14071 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
   14072 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
   14073 if test $ac_cv_header_sys_wait_h = yes; then
   14074 
   14075 cat >>confdefs.h <<\_ACEOF
   14076 #define HAVE_SYS_WAIT_H 1
   14077 _ACEOF
   14078 
   14079 fi
   14080 
   14081 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
   14082 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
   14083 if test "${ac_cv_header_time+set}" = set; then
   14084   echo $ECHO_N "(cached) $ECHO_C" >&6
   14085 else
   14086   cat >conftest.$ac_ext <<_ACEOF
   14087 /* confdefs.h.  */
   14088 _ACEOF
   14089 cat confdefs.h >>conftest.$ac_ext
   14090 cat >>conftest.$ac_ext <<_ACEOF
   14091 /* end confdefs.h.  */
   14092 #include <sys/types.h>
   14093 #include <sys/time.h>
   14094 #include <time.h>
   14095 
   14096 int
   14097 main ()
   14098 {
   14099 if ((struct tm *) 0)
   14100 return 0;
   14101   ;
   14102   return 0;
   14103 }
   14104 _ACEOF
   14105 rm -f conftest.$ac_objext
   14106 if { (ac_try="$ac_compile"
   14107 case "(($ac_try" in
   14108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14109   *) ac_try_echo=$ac_try;;
   14110 esac
   14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14112   (eval "$ac_compile") 2>conftest.er1
   14113   ac_status=$?
   14114   grep -v '^ *+' conftest.er1 >conftest.err
   14115   rm -f conftest.er1
   14116   cat conftest.err >&5
   14117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14118   (exit $ac_status); } &&
   14119 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14120   { (case "(($ac_try" in
   14121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14122   *) ac_try_echo=$ac_try;;
   14123 esac
   14124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14125   (eval "$ac_try") 2>&5
   14126   ac_status=$?
   14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14128   (exit $ac_status); }; } &&
   14129 	 { ac_try='test -s conftest.$ac_objext'
   14130   { (case "(($ac_try" in
   14131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14132   *) ac_try_echo=$ac_try;;
   14133 esac
   14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14135   (eval "$ac_try") 2>&5
   14136   ac_status=$?
   14137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14138   (exit $ac_status); }; }; then
   14139   ac_cv_header_time=yes
   14140 else
   14141   echo "$as_me: failed program was:" >&5
   14142 sed 's/^/| /' conftest.$ac_ext >&5
   14143 
   14144 	ac_cv_header_time=no
   14145 fi
   14146 
   14147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14148 fi
   14149 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
   14150 echo "${ECHO_T}$ac_cv_header_time" >&6; }
   14151 if test $ac_cv_header_time = yes; then
   14152 
   14153 cat >>confdefs.h <<\_ACEOF
   14154 #define TIME_WITH_SYS_TIME 1
   14155 _ACEOF
   14156 
   14157 fi
   14158 
   14159 
   14160 
   14161 
   14162 
   14163 
   14164 
   14165 
   14166 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
   14167 do
   14168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14170   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14173   echo $ECHO_N "(cached) $ECHO_C" >&6
   14174 fi
   14175 ac_res=`eval echo '${'$as_ac_Header'}'`
   14176 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14177 echo "${ECHO_T}$ac_res" >&6; }
   14178 else
   14179   # Is the header compilable?
   14180 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14182 cat >conftest.$ac_ext <<_ACEOF
   14183 /* confdefs.h.  */
   14184 _ACEOF
   14185 cat confdefs.h >>conftest.$ac_ext
   14186 cat >>conftest.$ac_ext <<_ACEOF
   14187 /* end confdefs.h.  */
   14188 $ac_includes_default
   14189 #include <$ac_header>
   14190 _ACEOF
   14191 rm -f conftest.$ac_objext
   14192 if { (ac_try="$ac_compile"
   14193 case "(($ac_try" in
   14194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14195   *) ac_try_echo=$ac_try;;
   14196 esac
   14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14198   (eval "$ac_compile") 2>conftest.er1
   14199   ac_status=$?
   14200   grep -v '^ *+' conftest.er1 >conftest.err
   14201   rm -f conftest.er1
   14202   cat conftest.err >&5
   14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14204   (exit $ac_status); } &&
   14205 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14206   { (case "(($ac_try" in
   14207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14208   *) ac_try_echo=$ac_try;;
   14209 esac
   14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14211   (eval "$ac_try") 2>&5
   14212   ac_status=$?
   14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14214   (exit $ac_status); }; } &&
   14215 	 { ac_try='test -s conftest.$ac_objext'
   14216   { (case "(($ac_try" in
   14217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14218   *) ac_try_echo=$ac_try;;
   14219 esac
   14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14221   (eval "$ac_try") 2>&5
   14222   ac_status=$?
   14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14224   (exit $ac_status); }; }; then
   14225   ac_header_compiler=yes
   14226 else
   14227   echo "$as_me: failed program was:" >&5
   14228 sed 's/^/| /' conftest.$ac_ext >&5
   14229 
   14230 	ac_header_compiler=no
   14231 fi
   14232 
   14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14235 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14236 
   14237 # Is the header present?
   14238 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14240 cat >conftest.$ac_ext <<_ACEOF
   14241 /* confdefs.h.  */
   14242 _ACEOF
   14243 cat confdefs.h >>conftest.$ac_ext
   14244 cat >>conftest.$ac_ext <<_ACEOF
   14245 /* end confdefs.h.  */
   14246 #include <$ac_header>
   14247 _ACEOF
   14248 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14249 case "(($ac_try" in
   14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14251   *) ac_try_echo=$ac_try;;
   14252 esac
   14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14255   ac_status=$?
   14256   grep -v '^ *+' conftest.er1 >conftest.err
   14257   rm -f conftest.er1
   14258   cat conftest.err >&5
   14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14260   (exit $ac_status); } >/dev/null; then
   14261   if test -s conftest.err; then
   14262     ac_cpp_err=$ac_c_preproc_warn_flag
   14263     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   14264   else
   14265     ac_cpp_err=
   14266   fi
   14267 else
   14268   ac_cpp_err=yes
   14269 fi
   14270 if test -z "$ac_cpp_err"; then
   14271   ac_header_preproc=yes
   14272 else
   14273   echo "$as_me: failed program was:" >&5
   14274 sed 's/^/| /' conftest.$ac_ext >&5
   14275 
   14276   ac_header_preproc=no
   14277 fi
   14278 
   14279 rm -f conftest.err conftest.$ac_ext
   14280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14281 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14282 
   14283 # So?  What about this header?
   14284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14285   yes:no: )
   14286     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14290     ac_header_preproc=yes
   14291     ;;
   14292   no:yes:* )
   14293     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14295     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14296 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14297     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14299     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14300 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14303     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14305     ( cat <<\_ASBOX
   14306 ## ------------------------------ ##
   14307 ## Report this to bugs@yourdomain ##
   14308 ## ------------------------------ ##
   14309 _ASBOX
   14310      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14311     ;;
   14312 esac
   14313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14316   echo $ECHO_N "(cached) $ECHO_C" >&6
   14317 else
   14318   eval "$as_ac_Header=\$ac_header_preproc"
   14319 fi
   14320 ac_res=`eval echo '${'$as_ac_Header'}'`
   14321 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14322 echo "${ECHO_T}$ac_res" >&6; }
   14323 
   14324 fi
   14325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14326   cat >>confdefs.h <<_ACEOF
   14327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14328 _ACEOF
   14329 
   14330 fi
   14331 
   14332 done
   14333 
   14334 
   14335 
   14336 
   14337 
   14338 
   14339 
   14340 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
   14341 do
   14342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14344   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14347   echo $ECHO_N "(cached) $ECHO_C" >&6
   14348 fi
   14349 ac_res=`eval echo '${'$as_ac_Header'}'`
   14350 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14351 echo "${ECHO_T}$ac_res" >&6; }
   14352 else
   14353   # Is the header compilable?
   14354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14356 cat >conftest.$ac_ext <<_ACEOF
   14357 /* confdefs.h.  */
   14358 _ACEOF
   14359 cat confdefs.h >>conftest.$ac_ext
   14360 cat >>conftest.$ac_ext <<_ACEOF
   14361 /* end confdefs.h.  */
   14362 $ac_includes_default
   14363 #include <$ac_header>
   14364 _ACEOF
   14365 rm -f conftest.$ac_objext
   14366 if { (ac_try="$ac_compile"
   14367 case "(($ac_try" in
   14368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14369   *) ac_try_echo=$ac_try;;
   14370 esac
   14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14372   (eval "$ac_compile") 2>conftest.er1
   14373   ac_status=$?
   14374   grep -v '^ *+' conftest.er1 >conftest.err
   14375   rm -f conftest.er1
   14376   cat conftest.err >&5
   14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14378   (exit $ac_status); } &&
   14379 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14380   { (case "(($ac_try" in
   14381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14382   *) ac_try_echo=$ac_try;;
   14383 esac
   14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14385   (eval "$ac_try") 2>&5
   14386   ac_status=$?
   14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14388   (exit $ac_status); }; } &&
   14389 	 { ac_try='test -s conftest.$ac_objext'
   14390   { (case "(($ac_try" in
   14391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14392   *) ac_try_echo=$ac_try;;
   14393 esac
   14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14395   (eval "$ac_try") 2>&5
   14396   ac_status=$?
   14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14398   (exit $ac_status); }; }; then
   14399   ac_header_compiler=yes
   14400 else
   14401   echo "$as_me: failed program was:" >&5
   14402 sed 's/^/| /' conftest.$ac_ext >&5
   14403 
   14404 	ac_header_compiler=no
   14405 fi
   14406 
   14407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14409 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14410 
   14411 # Is the header present?
   14412 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14414 cat >conftest.$ac_ext <<_ACEOF
   14415 /* confdefs.h.  */
   14416 _ACEOF
   14417 cat confdefs.h >>conftest.$ac_ext
   14418 cat >>conftest.$ac_ext <<_ACEOF
   14419 /* end confdefs.h.  */
   14420 #include <$ac_header>
   14421 _ACEOF
   14422 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14423 case "(($ac_try" in
   14424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14425   *) ac_try_echo=$ac_try;;
   14426 esac
   14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14428   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14429   ac_status=$?
   14430   grep -v '^ *+' conftest.er1 >conftest.err
   14431   rm -f conftest.er1
   14432   cat conftest.err >&5
   14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14434   (exit $ac_status); } >/dev/null; then
   14435   if test -s conftest.err; then
   14436     ac_cpp_err=$ac_c_preproc_warn_flag
   14437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   14438   else
   14439     ac_cpp_err=
   14440   fi
   14441 else
   14442   ac_cpp_err=yes
   14443 fi
   14444 if test -z "$ac_cpp_err"; then
   14445   ac_header_preproc=yes
   14446 else
   14447   echo "$as_me: failed program was:" >&5
   14448 sed 's/^/| /' conftest.$ac_ext >&5
   14449 
   14450   ac_header_preproc=no
   14451 fi
   14452 
   14453 rm -f conftest.err conftest.$ac_ext
   14454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14455 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14456 
   14457 # So?  What about this header?
   14458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14459   yes:no: )
   14460     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14464     ac_header_preproc=yes
   14465     ;;
   14466   no:yes:* )
   14467     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14469     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14470 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14471     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14473     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14474 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14477     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14479     ( cat <<\_ASBOX
   14480 ## ------------------------------ ##
   14481 ## Report this to bugs@yourdomain ##
   14482 ## ------------------------------ ##
   14483 _ASBOX
   14484      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14485     ;;
   14486 esac
   14487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14490   echo $ECHO_N "(cached) $ECHO_C" >&6
   14491 else
   14492   eval "$as_ac_Header=\$ac_header_preproc"
   14493 fi
   14494 ac_res=`eval echo '${'$as_ac_Header'}'`
   14495 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14496 echo "${ECHO_T}$ac_res" >&6; }
   14497 
   14498 fi
   14499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14500   cat >>confdefs.h <<_ACEOF
   14501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14502 _ACEOF
   14503 
   14504 fi
   14505 
   14506 done
   14507 
   14508 
   14509 
   14510 for ac_header in utime.h windows.h
   14511 do
   14512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14514   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14517   echo $ECHO_N "(cached) $ECHO_C" >&6
   14518 fi
   14519 ac_res=`eval echo '${'$as_ac_Header'}'`
   14520 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14521 echo "${ECHO_T}$ac_res" >&6; }
   14522 else
   14523   # Is the header compilable?
   14524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14526 cat >conftest.$ac_ext <<_ACEOF
   14527 /* confdefs.h.  */
   14528 _ACEOF
   14529 cat confdefs.h >>conftest.$ac_ext
   14530 cat >>conftest.$ac_ext <<_ACEOF
   14531 /* end confdefs.h.  */
   14532 $ac_includes_default
   14533 #include <$ac_header>
   14534 _ACEOF
   14535 rm -f conftest.$ac_objext
   14536 if { (ac_try="$ac_compile"
   14537 case "(($ac_try" in
   14538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14539   *) ac_try_echo=$ac_try;;
   14540 esac
   14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14542   (eval "$ac_compile") 2>conftest.er1
   14543   ac_status=$?
   14544   grep -v '^ *+' conftest.er1 >conftest.err
   14545   rm -f conftest.er1
   14546   cat conftest.err >&5
   14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14548   (exit $ac_status); } &&
   14549 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14550   { (case "(($ac_try" in
   14551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14552   *) ac_try_echo=$ac_try;;
   14553 esac
   14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14555   (eval "$ac_try") 2>&5
   14556   ac_status=$?
   14557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14558   (exit $ac_status); }; } &&
   14559 	 { ac_try='test -s conftest.$ac_objext'
   14560   { (case "(($ac_try" in
   14561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14562   *) ac_try_echo=$ac_try;;
   14563 esac
   14564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14565   (eval "$ac_try") 2>&5
   14566   ac_status=$?
   14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14568   (exit $ac_status); }; }; then
   14569   ac_header_compiler=yes
   14570 else
   14571   echo "$as_me: failed program was:" >&5
   14572 sed 's/^/| /' conftest.$ac_ext >&5
   14573 
   14574 	ac_header_compiler=no
   14575 fi
   14576 
   14577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14579 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14580 
   14581 # Is the header present?
   14582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14584 cat >conftest.$ac_ext <<_ACEOF
   14585 /* confdefs.h.  */
   14586 _ACEOF
   14587 cat confdefs.h >>conftest.$ac_ext
   14588 cat >>conftest.$ac_ext <<_ACEOF
   14589 /* end confdefs.h.  */
   14590 #include <$ac_header>
   14591 _ACEOF
   14592 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14593 case "(($ac_try" in
   14594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14595   *) ac_try_echo=$ac_try;;
   14596 esac
   14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14599   ac_status=$?
   14600   grep -v '^ *+' conftest.er1 >conftest.err
   14601   rm -f conftest.er1
   14602   cat conftest.err >&5
   14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14604   (exit $ac_status); } >/dev/null; then
   14605   if test -s conftest.err; then
   14606     ac_cpp_err=$ac_c_preproc_warn_flag
   14607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   14608   else
   14609     ac_cpp_err=
   14610   fi
   14611 else
   14612   ac_cpp_err=yes
   14613 fi
   14614 if test -z "$ac_cpp_err"; then
   14615   ac_header_preproc=yes
   14616 else
   14617   echo "$as_me: failed program was:" >&5
   14618 sed 's/^/| /' conftest.$ac_ext >&5
   14619 
   14620   ac_header_preproc=no
   14621 fi
   14622 
   14623 rm -f conftest.err conftest.$ac_ext
   14624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14625 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14626 
   14627 # So?  What about this header?
   14628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14629   yes:no: )
   14630     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14634     ac_header_preproc=yes
   14635     ;;
   14636   no:yes:* )
   14637     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14639     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14640 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14641     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14643     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14644 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14647     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14649     ( cat <<\_ASBOX
   14650 ## ------------------------------ ##
   14651 ## Report this to bugs@yourdomain ##
   14652 ## ------------------------------ ##
   14653 _ASBOX
   14654      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14655     ;;
   14656 esac
   14657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14660   echo $ECHO_N "(cached) $ECHO_C" >&6
   14661 else
   14662   eval "$as_ac_Header=\$ac_header_preproc"
   14663 fi
   14664 ac_res=`eval echo '${'$as_ac_Header'}'`
   14665 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14666 echo "${ECHO_T}$ac_res" >&6; }
   14667 
   14668 fi
   14669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14670   cat >>confdefs.h <<_ACEOF
   14671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14672 _ACEOF
   14673 
   14674 fi
   14675 
   14676 done
   14677 
   14678 
   14679 
   14680 
   14681 
   14682 
   14683 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
   14684 do
   14685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14687   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14690   echo $ECHO_N "(cached) $ECHO_C" >&6
   14691 fi
   14692 ac_res=`eval echo '${'$as_ac_Header'}'`
   14693 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14694 echo "${ECHO_T}$ac_res" >&6; }
   14695 else
   14696   # Is the header compilable?
   14697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14699 cat >conftest.$ac_ext <<_ACEOF
   14700 /* confdefs.h.  */
   14701 _ACEOF
   14702 cat confdefs.h >>conftest.$ac_ext
   14703 cat >>conftest.$ac_ext <<_ACEOF
   14704 /* end confdefs.h.  */
   14705 $ac_includes_default
   14706 #include <$ac_header>
   14707 _ACEOF
   14708 rm -f conftest.$ac_objext
   14709 if { (ac_try="$ac_compile"
   14710 case "(($ac_try" in
   14711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14712   *) ac_try_echo=$ac_try;;
   14713 esac
   14714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14715   (eval "$ac_compile") 2>conftest.er1
   14716   ac_status=$?
   14717   grep -v '^ *+' conftest.er1 >conftest.err
   14718   rm -f conftest.er1
   14719   cat conftest.err >&5
   14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14721   (exit $ac_status); } &&
   14722 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14723   { (case "(($ac_try" in
   14724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14725   *) ac_try_echo=$ac_try;;
   14726 esac
   14727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14728   (eval "$ac_try") 2>&5
   14729   ac_status=$?
   14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14731   (exit $ac_status); }; } &&
   14732 	 { ac_try='test -s conftest.$ac_objext'
   14733   { (case "(($ac_try" in
   14734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14735   *) ac_try_echo=$ac_try;;
   14736 esac
   14737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14738   (eval "$ac_try") 2>&5
   14739   ac_status=$?
   14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14741   (exit $ac_status); }; }; then
   14742   ac_header_compiler=yes
   14743 else
   14744   echo "$as_me: failed program was:" >&5
   14745 sed 's/^/| /' conftest.$ac_ext >&5
   14746 
   14747 	ac_header_compiler=no
   14748 fi
   14749 
   14750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14752 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14753 
   14754 # Is the header present?
   14755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14757 cat >conftest.$ac_ext <<_ACEOF
   14758 /* confdefs.h.  */
   14759 _ACEOF
   14760 cat confdefs.h >>conftest.$ac_ext
   14761 cat >>conftest.$ac_ext <<_ACEOF
   14762 /* end confdefs.h.  */
   14763 #include <$ac_header>
   14764 _ACEOF
   14765 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14766 case "(($ac_try" in
   14767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14768   *) ac_try_echo=$ac_try;;
   14769 esac
   14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14772   ac_status=$?
   14773   grep -v '^ *+' conftest.er1 >conftest.err
   14774   rm -f conftest.er1
   14775   cat conftest.err >&5
   14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14777   (exit $ac_status); } >/dev/null; then
   14778   if test -s conftest.err; then
   14779     ac_cpp_err=$ac_c_preproc_warn_flag
   14780     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   14781   else
   14782     ac_cpp_err=
   14783   fi
   14784 else
   14785   ac_cpp_err=yes
   14786 fi
   14787 if test -z "$ac_cpp_err"; then
   14788   ac_header_preproc=yes
   14789 else
   14790   echo "$as_me: failed program was:" >&5
   14791 sed 's/^/| /' conftest.$ac_ext >&5
   14792 
   14793   ac_header_preproc=no
   14794 fi
   14795 
   14796 rm -f conftest.err conftest.$ac_ext
   14797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14798 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14799 
   14800 # So?  What about this header?
   14801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14802   yes:no: )
   14803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14807     ac_header_preproc=yes
   14808     ;;
   14809   no:yes:* )
   14810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14812     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14813 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14814     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14816     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14817 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14820     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14822     ( cat <<\_ASBOX
   14823 ## ------------------------------ ##
   14824 ## Report this to bugs@yourdomain ##
   14825 ## ------------------------------ ##
   14826 _ASBOX
   14827      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14828     ;;
   14829 esac
   14830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14833   echo $ECHO_N "(cached) $ECHO_C" >&6
   14834 else
   14835   eval "$as_ac_Header=\$ac_header_preproc"
   14836 fi
   14837 ac_res=`eval echo '${'$as_ac_Header'}'`
   14838 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14839 echo "${ECHO_T}$ac_res" >&6; }
   14840 
   14841 fi
   14842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14843   cat >>confdefs.h <<_ACEOF
   14844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14845 _ACEOF
   14846 
   14847 fi
   14848 
   14849 done
   14850 
   14851 
   14852 
   14853 
   14854 
   14855 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
   14856 do
   14857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14859   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14862   echo $ECHO_N "(cached) $ECHO_C" >&6
   14863 fi
   14864 ac_res=`eval echo '${'$as_ac_Header'}'`
   14865 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14866 echo "${ECHO_T}$ac_res" >&6; }
   14867 else
   14868   # Is the header compilable?
   14869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14871 cat >conftest.$ac_ext <<_ACEOF
   14872 /* confdefs.h.  */
   14873 _ACEOF
   14874 cat confdefs.h >>conftest.$ac_ext
   14875 cat >>conftest.$ac_ext <<_ACEOF
   14876 /* end confdefs.h.  */
   14877 $ac_includes_default
   14878 #include <$ac_header>
   14879 _ACEOF
   14880 rm -f conftest.$ac_objext
   14881 if { (ac_try="$ac_compile"
   14882 case "(($ac_try" in
   14883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14884   *) ac_try_echo=$ac_try;;
   14885 esac
   14886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14887   (eval "$ac_compile") 2>conftest.er1
   14888   ac_status=$?
   14889   grep -v '^ *+' conftest.er1 >conftest.err
   14890   rm -f conftest.er1
   14891   cat conftest.err >&5
   14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14893   (exit $ac_status); } &&
   14894 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   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); }; } &&
   14904 	 { ac_try='test -s conftest.$ac_objext'
   14905   { (case "(($ac_try" in
   14906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14907   *) ac_try_echo=$ac_try;;
   14908 esac
   14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14910   (eval "$ac_try") 2>&5
   14911   ac_status=$?
   14912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14913   (exit $ac_status); }; }; then
   14914   ac_header_compiler=yes
   14915 else
   14916   echo "$as_me: failed program was:" >&5
   14917 sed 's/^/| /' conftest.$ac_ext >&5
   14918 
   14919 	ac_header_compiler=no
   14920 fi
   14921 
   14922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14924 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14925 
   14926 # Is the header present?
   14927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14929 cat >conftest.$ac_ext <<_ACEOF
   14930 /* confdefs.h.  */
   14931 _ACEOF
   14932 cat confdefs.h >>conftest.$ac_ext
   14933 cat >>conftest.$ac_ext <<_ACEOF
   14934 /* end confdefs.h.  */
   14935 #include <$ac_header>
   14936 _ACEOF
   14937 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14938 case "(($ac_try" in
   14939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14940   *) ac_try_echo=$ac_try;;
   14941 esac
   14942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14944   ac_status=$?
   14945   grep -v '^ *+' conftest.er1 >conftest.err
   14946   rm -f conftest.er1
   14947   cat conftest.err >&5
   14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14949   (exit $ac_status); } >/dev/null; then
   14950   if test -s conftest.err; then
   14951     ac_cpp_err=$ac_c_preproc_warn_flag
   14952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   14953   else
   14954     ac_cpp_err=
   14955   fi
   14956 else
   14957   ac_cpp_err=yes
   14958 fi
   14959 if test -z "$ac_cpp_err"; then
   14960   ac_header_preproc=yes
   14961 else
   14962   echo "$as_me: failed program was:" >&5
   14963 sed 's/^/| /' conftest.$ac_ext >&5
   14964 
   14965   ac_header_preproc=no
   14966 fi
   14967 
   14968 rm -f conftest.err conftest.$ac_ext
   14969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14970 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14971 
   14972 # So?  What about this header?
   14973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14974   yes:no: )
   14975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14979     ac_header_preproc=yes
   14980     ;;
   14981   no:yes:* )
   14982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14984     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14985 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14986     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14988     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14989 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14992     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14994     ( cat <<\_ASBOX
   14995 ## ------------------------------ ##
   14996 ## Report this to bugs@yourdomain ##
   14997 ## ------------------------------ ##
   14998 _ASBOX
   14999      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15000     ;;
   15001 esac
   15002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15005   echo $ECHO_N "(cached) $ECHO_C" >&6
   15006 else
   15007   eval "$as_ac_Header=\$ac_header_preproc"
   15008 fi
   15009 ac_res=`eval echo '${'$as_ac_Header'}'`
   15010 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15011 echo "${ECHO_T}$ac_res" >&6; }
   15012 
   15013 fi
   15014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15015   cat >>confdefs.h <<_ACEOF
   15016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15017 _ACEOF
   15018 
   15019 fi
   15020 
   15021 done
   15022 
   15023 
   15024 for ac_header in valgrind/valgrind.h
   15025 do
   15026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15028   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15031   echo $ECHO_N "(cached) $ECHO_C" >&6
   15032 fi
   15033 ac_res=`eval echo '${'$as_ac_Header'}'`
   15034 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15035 echo "${ECHO_T}$ac_res" >&6; }
   15036 else
   15037   # Is the header compilable?
   15038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15040 cat >conftest.$ac_ext <<_ACEOF
   15041 /* confdefs.h.  */
   15042 _ACEOF
   15043 cat confdefs.h >>conftest.$ac_ext
   15044 cat >>conftest.$ac_ext <<_ACEOF
   15045 /* end confdefs.h.  */
   15046 $ac_includes_default
   15047 #include <$ac_header>
   15048 _ACEOF
   15049 rm -f conftest.$ac_objext
   15050 if { (ac_try="$ac_compile"
   15051 case "(($ac_try" in
   15052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15053   *) ac_try_echo=$ac_try;;
   15054 esac
   15055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15056   (eval "$ac_compile") 2>conftest.er1
   15057   ac_status=$?
   15058   grep -v '^ *+' conftest.er1 >conftest.err
   15059   rm -f conftest.er1
   15060   cat conftest.err >&5
   15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15062   (exit $ac_status); } &&
   15063 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15064   { (case "(($ac_try" in
   15065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15066   *) ac_try_echo=$ac_try;;
   15067 esac
   15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15069   (eval "$ac_try") 2>&5
   15070   ac_status=$?
   15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15072   (exit $ac_status); }; } &&
   15073 	 { ac_try='test -s conftest.$ac_objext'
   15074   { (case "(($ac_try" in
   15075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15076   *) ac_try_echo=$ac_try;;
   15077 esac
   15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15079   (eval "$ac_try") 2>&5
   15080   ac_status=$?
   15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15082   (exit $ac_status); }; }; then
   15083   ac_header_compiler=yes
   15084 else
   15085   echo "$as_me: failed program was:" >&5
   15086 sed 's/^/| /' conftest.$ac_ext >&5
   15087 
   15088 	ac_header_compiler=no
   15089 fi
   15090 
   15091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15093 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15094 
   15095 # Is the header present?
   15096 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15098 cat >conftest.$ac_ext <<_ACEOF
   15099 /* confdefs.h.  */
   15100 _ACEOF
   15101 cat confdefs.h >>conftest.$ac_ext
   15102 cat >>conftest.$ac_ext <<_ACEOF
   15103 /* end confdefs.h.  */
   15104 #include <$ac_header>
   15105 _ACEOF
   15106 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15107 case "(($ac_try" in
   15108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15109   *) ac_try_echo=$ac_try;;
   15110 esac
   15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15113   ac_status=$?
   15114   grep -v '^ *+' conftest.er1 >conftest.err
   15115   rm -f conftest.er1
   15116   cat conftest.err >&5
   15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15118   (exit $ac_status); } >/dev/null; then
   15119   if test -s conftest.err; then
   15120     ac_cpp_err=$ac_c_preproc_warn_flag
   15121     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15122   else
   15123     ac_cpp_err=
   15124   fi
   15125 else
   15126   ac_cpp_err=yes
   15127 fi
   15128 if test -z "$ac_cpp_err"; then
   15129   ac_header_preproc=yes
   15130 else
   15131   echo "$as_me: failed program was:" >&5
   15132 sed 's/^/| /' conftest.$ac_ext >&5
   15133 
   15134   ac_header_preproc=no
   15135 fi
   15136 
   15137 rm -f conftest.err conftest.$ac_ext
   15138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15139 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15140 
   15141 # So?  What about this header?
   15142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15143   yes:no: )
   15144     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15148     ac_header_preproc=yes
   15149     ;;
   15150   no:yes:* )
   15151     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15153     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15154 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15155     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15157     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15158 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15161     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15163     ( cat <<\_ASBOX
   15164 ## ------------------------------ ##
   15165 ## Report this to bugs@yourdomain ##
   15166 ## ------------------------------ ##
   15167 _ASBOX
   15168      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15169     ;;
   15170 esac
   15171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15174   echo $ECHO_N "(cached) $ECHO_C" >&6
   15175 else
   15176   eval "$as_ac_Header=\$ac_header_preproc"
   15177 fi
   15178 ac_res=`eval echo '${'$as_ac_Header'}'`
   15179 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15180 echo "${ECHO_T}$ac_res" >&6; }
   15181 
   15182 fi
   15183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15184   cat >>confdefs.h <<_ACEOF
   15185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15186 _ACEOF
   15187 
   15188 fi
   15189 
   15190 done
   15191 
   15192 
   15193 for ac_header in fenv.h
   15194 do
   15195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15197   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15200   echo $ECHO_N "(cached) $ECHO_C" >&6
   15201 fi
   15202 ac_res=`eval echo '${'$as_ac_Header'}'`
   15203 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15204 echo "${ECHO_T}$ac_res" >&6; }
   15205 else
   15206   # Is the header compilable?
   15207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15209 cat >conftest.$ac_ext <<_ACEOF
   15210 /* confdefs.h.  */
   15211 _ACEOF
   15212 cat confdefs.h >>conftest.$ac_ext
   15213 cat >>conftest.$ac_ext <<_ACEOF
   15214 /* end confdefs.h.  */
   15215 $ac_includes_default
   15216 #include <$ac_header>
   15217 _ACEOF
   15218 rm -f conftest.$ac_objext
   15219 if { (ac_try="$ac_compile"
   15220 case "(($ac_try" in
   15221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15222   *) ac_try_echo=$ac_try;;
   15223 esac
   15224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15225   (eval "$ac_compile") 2>conftest.er1
   15226   ac_status=$?
   15227   grep -v '^ *+' conftest.er1 >conftest.err
   15228   rm -f conftest.er1
   15229   cat conftest.err >&5
   15230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15231   (exit $ac_status); } &&
   15232 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15233   { (case "(($ac_try" in
   15234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15235   *) ac_try_echo=$ac_try;;
   15236 esac
   15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15238   (eval "$ac_try") 2>&5
   15239   ac_status=$?
   15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15241   (exit $ac_status); }; } &&
   15242 	 { ac_try='test -s conftest.$ac_objext'
   15243   { (case "(($ac_try" in
   15244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15245   *) ac_try_echo=$ac_try;;
   15246 esac
   15247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15248   (eval "$ac_try") 2>&5
   15249   ac_status=$?
   15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15251   (exit $ac_status); }; }; then
   15252   ac_header_compiler=yes
   15253 else
   15254   echo "$as_me: failed program was:" >&5
   15255 sed 's/^/| /' conftest.$ac_ext >&5
   15256 
   15257 	ac_header_compiler=no
   15258 fi
   15259 
   15260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15262 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15263 
   15264 # Is the header present?
   15265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15267 cat >conftest.$ac_ext <<_ACEOF
   15268 /* confdefs.h.  */
   15269 _ACEOF
   15270 cat confdefs.h >>conftest.$ac_ext
   15271 cat >>conftest.$ac_ext <<_ACEOF
   15272 /* end confdefs.h.  */
   15273 #include <$ac_header>
   15274 _ACEOF
   15275 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15276 case "(($ac_try" in
   15277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15278   *) ac_try_echo=$ac_try;;
   15279 esac
   15280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15281   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15282   ac_status=$?
   15283   grep -v '^ *+' conftest.er1 >conftest.err
   15284   rm -f conftest.er1
   15285   cat conftest.err >&5
   15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15287   (exit $ac_status); } >/dev/null; then
   15288   if test -s conftest.err; then
   15289     ac_cpp_err=$ac_c_preproc_warn_flag
   15290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15291   else
   15292     ac_cpp_err=
   15293   fi
   15294 else
   15295   ac_cpp_err=yes
   15296 fi
   15297 if test -z "$ac_cpp_err"; then
   15298   ac_header_preproc=yes
   15299 else
   15300   echo "$as_me: failed program was:" >&5
   15301 sed 's/^/| /' conftest.$ac_ext >&5
   15302 
   15303   ac_header_preproc=no
   15304 fi
   15305 
   15306 rm -f conftest.err conftest.$ac_ext
   15307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15308 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15309 
   15310 # So?  What about this header?
   15311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15312   yes:no: )
   15313     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15317     ac_header_preproc=yes
   15318     ;;
   15319   no:yes:* )
   15320     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15322     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15323 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15324     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15326     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15327 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15330     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15332     ( cat <<\_ASBOX
   15333 ## ------------------------------ ##
   15334 ## Report this to bugs@yourdomain ##
   15335 ## ------------------------------ ##
   15336 _ASBOX
   15337      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15338     ;;
   15339 esac
   15340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15343   echo $ECHO_N "(cached) $ECHO_C" >&6
   15344 else
   15345   eval "$as_ac_Header=\$ac_header_preproc"
   15346 fi
   15347 ac_res=`eval echo '${'$as_ac_Header'}'`
   15348 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15349 echo "${ECHO_T}$ac_res" >&6; }
   15350 
   15351 fi
   15352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15353   cat >>confdefs.h <<_ACEOF
   15354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15355 _ACEOF
   15356 
   15357 fi
   15358 
   15359 done
   15360 
   15361 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
   15362 
   15363 for ac_header in pthread.h
   15364 do
   15365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15367   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15370   echo $ECHO_N "(cached) $ECHO_C" >&6
   15371 fi
   15372 ac_res=`eval echo '${'$as_ac_Header'}'`
   15373 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15374 echo "${ECHO_T}$ac_res" >&6; }
   15375 else
   15376   # Is the header compilable?
   15377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15379 cat >conftest.$ac_ext <<_ACEOF
   15380 /* confdefs.h.  */
   15381 _ACEOF
   15382 cat confdefs.h >>conftest.$ac_ext
   15383 cat >>conftest.$ac_ext <<_ACEOF
   15384 /* end confdefs.h.  */
   15385 $ac_includes_default
   15386 #include <$ac_header>
   15387 _ACEOF
   15388 rm -f conftest.$ac_objext
   15389 if { (ac_try="$ac_compile"
   15390 case "(($ac_try" in
   15391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15392   *) ac_try_echo=$ac_try;;
   15393 esac
   15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15395   (eval "$ac_compile") 2>conftest.er1
   15396   ac_status=$?
   15397   grep -v '^ *+' conftest.er1 >conftest.err
   15398   rm -f conftest.er1
   15399   cat conftest.err >&5
   15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15401   (exit $ac_status); } &&
   15402 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15403   { (case "(($ac_try" in
   15404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15405   *) ac_try_echo=$ac_try;;
   15406 esac
   15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15408   (eval "$ac_try") 2>&5
   15409   ac_status=$?
   15410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15411   (exit $ac_status); }; } &&
   15412 	 { ac_try='test -s conftest.$ac_objext'
   15413   { (case "(($ac_try" in
   15414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15415   *) ac_try_echo=$ac_try;;
   15416 esac
   15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15418   (eval "$ac_try") 2>&5
   15419   ac_status=$?
   15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15421   (exit $ac_status); }; }; then
   15422   ac_header_compiler=yes
   15423 else
   15424   echo "$as_me: failed program was:" >&5
   15425 sed 's/^/| /' conftest.$ac_ext >&5
   15426 
   15427 	ac_header_compiler=no
   15428 fi
   15429 
   15430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15432 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15433 
   15434 # Is the header present?
   15435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15437 cat >conftest.$ac_ext <<_ACEOF
   15438 /* confdefs.h.  */
   15439 _ACEOF
   15440 cat confdefs.h >>conftest.$ac_ext
   15441 cat >>conftest.$ac_ext <<_ACEOF
   15442 /* end confdefs.h.  */
   15443 #include <$ac_header>
   15444 _ACEOF
   15445 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15446 case "(($ac_try" in
   15447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15448   *) ac_try_echo=$ac_try;;
   15449 esac
   15450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15452   ac_status=$?
   15453   grep -v '^ *+' conftest.er1 >conftest.err
   15454   rm -f conftest.er1
   15455   cat conftest.err >&5
   15456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15457   (exit $ac_status); } >/dev/null; then
   15458   if test -s conftest.err; then
   15459     ac_cpp_err=$ac_c_preproc_warn_flag
   15460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15461   else
   15462     ac_cpp_err=
   15463   fi
   15464 else
   15465   ac_cpp_err=yes
   15466 fi
   15467 if test -z "$ac_cpp_err"; then
   15468   ac_header_preproc=yes
   15469 else
   15470   echo "$as_me: failed program was:" >&5
   15471 sed 's/^/| /' conftest.$ac_ext >&5
   15472 
   15473   ac_header_preproc=no
   15474 fi
   15475 
   15476 rm -f conftest.err conftest.$ac_ext
   15477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15478 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15479 
   15480 # So?  What about this header?
   15481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15482   yes:no: )
   15483     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15487     ac_header_preproc=yes
   15488     ;;
   15489   no:yes:* )
   15490     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15492     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15493 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15494     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15496     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15497 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15500     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15502     ( cat <<\_ASBOX
   15503 ## ------------------------------ ##
   15504 ## Report this to bugs@yourdomain ##
   15505 ## ------------------------------ ##
   15506 _ASBOX
   15507      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15508     ;;
   15509 esac
   15510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15513   echo $ECHO_N "(cached) $ECHO_C" >&6
   15514 else
   15515   eval "$as_ac_Header=\$ac_header_preproc"
   15516 fi
   15517 ac_res=`eval echo '${'$as_ac_Header'}'`
   15518 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15519 echo "${ECHO_T}$ac_res" >&6; }
   15520 
   15521 fi
   15522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15523   cat >>confdefs.h <<_ACEOF
   15524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15525 _ACEOF
   15526  HAVE_PTHREAD=1
   15527 
   15528 else
   15529   HAVE_PTHREAD=0
   15530 
   15531 fi
   15532 
   15533 done
   15534 
   15535 else
   15536   HAVE_PTHREAD=0
   15537 
   15538 fi
   15539 
   15540 if test "$llvm_cv_enable_libffi" = "yes" ; then
   15541 
   15542 
   15543 for ac_header in ffi.h ffi/ffi.h
   15544 do
   15545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15547   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15550   echo $ECHO_N "(cached) $ECHO_C" >&6
   15551 fi
   15552 ac_res=`eval echo '${'$as_ac_Header'}'`
   15553 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15554 echo "${ECHO_T}$ac_res" >&6; }
   15555 else
   15556   # Is the header compilable?
   15557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15559 cat >conftest.$ac_ext <<_ACEOF
   15560 /* confdefs.h.  */
   15561 _ACEOF
   15562 cat confdefs.h >>conftest.$ac_ext
   15563 cat >>conftest.$ac_ext <<_ACEOF
   15564 /* end confdefs.h.  */
   15565 $ac_includes_default
   15566 #include <$ac_header>
   15567 _ACEOF
   15568 rm -f conftest.$ac_objext
   15569 if { (ac_try="$ac_compile"
   15570 case "(($ac_try" in
   15571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15572   *) ac_try_echo=$ac_try;;
   15573 esac
   15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15575   (eval "$ac_compile") 2>conftest.er1
   15576   ac_status=$?
   15577   grep -v '^ *+' conftest.er1 >conftest.err
   15578   rm -f conftest.er1
   15579   cat conftest.err >&5
   15580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15581   (exit $ac_status); } &&
   15582 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15583   { (case "(($ac_try" in
   15584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15585   *) ac_try_echo=$ac_try;;
   15586 esac
   15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15588   (eval "$ac_try") 2>&5
   15589   ac_status=$?
   15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15591   (exit $ac_status); }; } &&
   15592 	 { ac_try='test -s conftest.$ac_objext'
   15593   { (case "(($ac_try" in
   15594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15595   *) ac_try_echo=$ac_try;;
   15596 esac
   15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15598   (eval "$ac_try") 2>&5
   15599   ac_status=$?
   15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15601   (exit $ac_status); }; }; then
   15602   ac_header_compiler=yes
   15603 else
   15604   echo "$as_me: failed program was:" >&5
   15605 sed 's/^/| /' conftest.$ac_ext >&5
   15606 
   15607 	ac_header_compiler=no
   15608 fi
   15609 
   15610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15612 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15613 
   15614 # Is the header present?
   15615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15617 cat >conftest.$ac_ext <<_ACEOF
   15618 /* confdefs.h.  */
   15619 _ACEOF
   15620 cat confdefs.h >>conftest.$ac_ext
   15621 cat >>conftest.$ac_ext <<_ACEOF
   15622 /* end confdefs.h.  */
   15623 #include <$ac_header>
   15624 _ACEOF
   15625 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15626 case "(($ac_try" in
   15627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15628   *) ac_try_echo=$ac_try;;
   15629 esac
   15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15632   ac_status=$?
   15633   grep -v '^ *+' conftest.er1 >conftest.err
   15634   rm -f conftest.er1
   15635   cat conftest.err >&5
   15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15637   (exit $ac_status); } >/dev/null; then
   15638   if test -s conftest.err; then
   15639     ac_cpp_err=$ac_c_preproc_warn_flag
   15640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15641   else
   15642     ac_cpp_err=
   15643   fi
   15644 else
   15645   ac_cpp_err=yes
   15646 fi
   15647 if test -z "$ac_cpp_err"; then
   15648   ac_header_preproc=yes
   15649 else
   15650   echo "$as_me: failed program was:" >&5
   15651 sed 's/^/| /' conftest.$ac_ext >&5
   15652 
   15653   ac_header_preproc=no
   15654 fi
   15655 
   15656 rm -f conftest.err conftest.$ac_ext
   15657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15658 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15659 
   15660 # So?  What about this header?
   15661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15662   yes:no: )
   15663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15667     ac_header_preproc=yes
   15668     ;;
   15669   no:yes:* )
   15670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15682     ( cat <<\_ASBOX
   15683 ## ------------------------------ ##
   15684 ## Report this to bugs@yourdomain ##
   15685 ## ------------------------------ ##
   15686 _ASBOX
   15687      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15688     ;;
   15689 esac
   15690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15693   echo $ECHO_N "(cached) $ECHO_C" >&6
   15694 else
   15695   eval "$as_ac_Header=\$ac_header_preproc"
   15696 fi
   15697 ac_res=`eval echo '${'$as_ac_Header'}'`
   15698 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15699 echo "${ECHO_T}$ac_res" >&6; }
   15700 
   15701 fi
   15702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15703   cat >>confdefs.h <<_ACEOF
   15704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15705 _ACEOF
   15706 
   15707 fi
   15708 
   15709 done
   15710 
   15711 fi
   15712 
   15713 
   15714 for ac_header in CrashReporterClient.h
   15715 do
   15716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15718   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15721   echo $ECHO_N "(cached) $ECHO_C" >&6
   15722 fi
   15723 ac_res=`eval echo '${'$as_ac_Header'}'`
   15724 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15725 echo "${ECHO_T}$ac_res" >&6; }
   15726 else
   15727   # Is the header compilable?
   15728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15730 cat >conftest.$ac_ext <<_ACEOF
   15731 /* confdefs.h.  */
   15732 _ACEOF
   15733 cat confdefs.h >>conftest.$ac_ext
   15734 cat >>conftest.$ac_ext <<_ACEOF
   15735 /* end confdefs.h.  */
   15736 $ac_includes_default
   15737 #include <$ac_header>
   15738 _ACEOF
   15739 rm -f conftest.$ac_objext
   15740 if { (ac_try="$ac_compile"
   15741 case "(($ac_try" in
   15742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15743   *) ac_try_echo=$ac_try;;
   15744 esac
   15745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15746   (eval "$ac_compile") 2>conftest.er1
   15747   ac_status=$?
   15748   grep -v '^ *+' conftest.er1 >conftest.err
   15749   rm -f conftest.er1
   15750   cat conftest.err >&5
   15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15752   (exit $ac_status); } &&
   15753 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15754   { (case "(($ac_try" in
   15755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15756   *) ac_try_echo=$ac_try;;
   15757 esac
   15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15759   (eval "$ac_try") 2>&5
   15760   ac_status=$?
   15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15762   (exit $ac_status); }; } &&
   15763 	 { ac_try='test -s conftest.$ac_objext'
   15764   { (case "(($ac_try" in
   15765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15766   *) ac_try_echo=$ac_try;;
   15767 esac
   15768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15769   (eval "$ac_try") 2>&5
   15770   ac_status=$?
   15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15772   (exit $ac_status); }; }; then
   15773   ac_header_compiler=yes
   15774 else
   15775   echo "$as_me: failed program was:" >&5
   15776 sed 's/^/| /' conftest.$ac_ext >&5
   15777 
   15778 	ac_header_compiler=no
   15779 fi
   15780 
   15781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15783 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15784 
   15785 # Is the header present?
   15786 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15788 cat >conftest.$ac_ext <<_ACEOF
   15789 /* confdefs.h.  */
   15790 _ACEOF
   15791 cat confdefs.h >>conftest.$ac_ext
   15792 cat >>conftest.$ac_ext <<_ACEOF
   15793 /* end confdefs.h.  */
   15794 #include <$ac_header>
   15795 _ACEOF
   15796 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15797 case "(($ac_try" in
   15798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15799   *) ac_try_echo=$ac_try;;
   15800 esac
   15801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15802   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15803   ac_status=$?
   15804   grep -v '^ *+' conftest.er1 >conftest.err
   15805   rm -f conftest.er1
   15806   cat conftest.err >&5
   15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15808   (exit $ac_status); } >/dev/null; then
   15809   if test -s conftest.err; then
   15810     ac_cpp_err=$ac_c_preproc_warn_flag
   15811     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15812   else
   15813     ac_cpp_err=
   15814   fi
   15815 else
   15816   ac_cpp_err=yes
   15817 fi
   15818 if test -z "$ac_cpp_err"; then
   15819   ac_header_preproc=yes
   15820 else
   15821   echo "$as_me: failed program was:" >&5
   15822 sed 's/^/| /' conftest.$ac_ext >&5
   15823 
   15824   ac_header_preproc=no
   15825 fi
   15826 
   15827 rm -f conftest.err conftest.$ac_ext
   15828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15829 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15830 
   15831 # So?  What about this header?
   15832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15833   yes:no: )
   15834     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15838     ac_header_preproc=yes
   15839     ;;
   15840   no:yes:* )
   15841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15843     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15844 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15845     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15847     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15848 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15851     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15853     ( cat <<\_ASBOX
   15854 ## ------------------------------ ##
   15855 ## Report this to bugs@yourdomain ##
   15856 ## ------------------------------ ##
   15857 _ASBOX
   15858      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15859     ;;
   15860 esac
   15861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15864   echo $ECHO_N "(cached) $ECHO_C" >&6
   15865 else
   15866   eval "$as_ac_Header=\$ac_header_preproc"
   15867 fi
   15868 ac_res=`eval echo '${'$as_ac_Header'}'`
   15869 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15870 echo "${ECHO_T}$ac_res" >&6; }
   15871 
   15872 fi
   15873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15874   cat >>confdefs.h <<_ACEOF
   15875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15876 _ACEOF
   15877 
   15878 fi
   15879 
   15880 done
   15881 
   15882 
   15883 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
   15884 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
   15885 cat >conftest.$ac_ext <<_ACEOF
   15886 /* confdefs.h.  */
   15887 _ACEOF
   15888 cat confdefs.h >>conftest.$ac_ext
   15889 cat >>conftest.$ac_ext <<_ACEOF
   15890 /* end confdefs.h.  */
   15891 extern const char *__crashreporter_info__;
   15892       int main() {
   15893         __crashreporter_info__ = "test";
   15894         return 0;
   15895       }
   15896 
   15897 _ACEOF
   15898 rm -f conftest.$ac_objext conftest$ac_exeext
   15899 if { (ac_try="$ac_link"
   15900 case "(($ac_try" in
   15901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15902   *) ac_try_echo=$ac_try;;
   15903 esac
   15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15905   (eval "$ac_link") 2>conftest.er1
   15906   ac_status=$?
   15907   grep -v '^ *+' conftest.er1 >conftest.err
   15908   rm -f conftest.er1
   15909   cat conftest.err >&5
   15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15911   (exit $ac_status); } &&
   15912 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15913   { (case "(($ac_try" in
   15914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15915   *) ac_try_echo=$ac_try;;
   15916 esac
   15917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15918   (eval "$ac_try") 2>&5
   15919   ac_status=$?
   15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15921   (exit $ac_status); }; } &&
   15922 	 { ac_try='test -s conftest$ac_exeext'
   15923   { (case "(($ac_try" in
   15924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15925   *) ac_try_echo=$ac_try;;
   15926 esac
   15927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15928   (eval "$ac_try") 2>&5
   15929   ac_status=$?
   15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15931   (exit $ac_status); }; }; then
   15932   { echo "$as_me:$LINENO: result: yes" >&5
   15933 echo "${ECHO_T}yes" >&6; }
   15934 
   15935 cat >>confdefs.h <<\_ACEOF
   15936 #define HAVE_CRASHREPORTER_INFO 1
   15937 _ACEOF
   15938 
   15939 else
   15940   echo "$as_me: failed program was:" >&5
   15941 sed 's/^/| /' conftest.$ac_ext >&5
   15942 
   15943 	{ echo "$as_me:$LINENO: result: no" >&5
   15944 echo "${ECHO_T}no" >&6; }
   15945 
   15946 cat >>confdefs.h <<\_ACEOF
   15947 #define HAVE_CRASHREPORTER_INFO 0
   15948 _ACEOF
   15949 
   15950 fi
   15951 
   15952 rm -f core conftest.err conftest.$ac_objext \
   15953       conftest$ac_exeext conftest.$ac_ext
   15954 
   15955 
   15956 
   15957 
   15958   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
   15959 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
   15960 if test "${ac_cv_huge_val_sanity+set}" = set; then
   15961   echo $ECHO_N "(cached) $ECHO_C" >&6
   15962 else
   15963 
   15964     ac_ext=cpp
   15965 ac_cpp='$CXXCPP $CPPFLAGS'
   15966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   15969 
   15970     ac_save_CXXFLAGS=$CXXFLAGS
   15971     CXXFLAGS+=" -pedantic"
   15972     if test "$cross_compiling" = yes; then
   15973   ac_cv_huge_val_sanity=yes
   15974 else
   15975   cat >conftest.$ac_ext <<_ACEOF
   15976 /* confdefs.h.  */
   15977 _ACEOF
   15978 cat confdefs.h >>conftest.$ac_ext
   15979 cat >>conftest.$ac_ext <<_ACEOF
   15980 /* end confdefs.h.  */
   15981 #include <math.h>
   15982 int
   15983 main ()
   15984 {
   15985 double x = HUGE_VAL; return x != x;
   15986   ;
   15987   return 0;
   15988 }
   15989 _ACEOF
   15990 rm -f conftest$ac_exeext
   15991 if { (ac_try="$ac_link"
   15992 case "(($ac_try" in
   15993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15994   *) ac_try_echo=$ac_try;;
   15995 esac
   15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15997   (eval "$ac_link") 2>&5
   15998   ac_status=$?
   15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   16001   { (case "(($ac_try" in
   16002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16003   *) ac_try_echo=$ac_try;;
   16004 esac
   16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16006   (eval "$ac_try") 2>&5
   16007   ac_status=$?
   16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16009   (exit $ac_status); }; }; then
   16010   ac_cv_huge_val_sanity=yes
   16011 else
   16012   echo "$as_me: program exited with status $ac_status" >&5
   16013 echo "$as_me: failed program was:" >&5
   16014 sed 's/^/| /' conftest.$ac_ext >&5
   16015 
   16016 ( exit $ac_status )
   16017 ac_cv_huge_val_sanity=no
   16018 fi
   16019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   16020 fi
   16021 
   16022 
   16023     CXXFLAGS=$ac_save_CXXFLAGS
   16024     ac_ext=c
   16025 ac_cpp='$CPP $CPPFLAGS'
   16026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16029 
   16030 
   16031 fi
   16032 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
   16033 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
   16034   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
   16035 
   16036 
   16037 { echo "$as_me:$LINENO: checking for pid_t" >&5
   16038 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
   16039 if test "${ac_cv_type_pid_t+set}" = set; then
   16040   echo $ECHO_N "(cached) $ECHO_C" >&6
   16041 else
   16042   cat >conftest.$ac_ext <<_ACEOF
   16043 /* confdefs.h.  */
   16044 _ACEOF
   16045 cat confdefs.h >>conftest.$ac_ext
   16046 cat >>conftest.$ac_ext <<_ACEOF
   16047 /* end confdefs.h.  */
   16048 $ac_includes_default
   16049 typedef pid_t ac__type_new_;
   16050 int
   16051 main ()
   16052 {
   16053 if ((ac__type_new_ *) 0)
   16054   return 0;
   16055 if (sizeof (ac__type_new_))
   16056   return 0;
   16057   ;
   16058   return 0;
   16059 }
   16060 _ACEOF
   16061 rm -f conftest.$ac_objext
   16062 if { (ac_try="$ac_compile"
   16063 case "(($ac_try" in
   16064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16065   *) ac_try_echo=$ac_try;;
   16066 esac
   16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16068   (eval "$ac_compile") 2>conftest.er1
   16069   ac_status=$?
   16070   grep -v '^ *+' conftest.er1 >conftest.err
   16071   rm -f conftest.er1
   16072   cat conftest.err >&5
   16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16074   (exit $ac_status); } &&
   16075 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16076   { (case "(($ac_try" in
   16077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16078   *) ac_try_echo=$ac_try;;
   16079 esac
   16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16081   (eval "$ac_try") 2>&5
   16082   ac_status=$?
   16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16084   (exit $ac_status); }; } &&
   16085 	 { ac_try='test -s conftest.$ac_objext'
   16086   { (case "(($ac_try" in
   16087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16088   *) ac_try_echo=$ac_try;;
   16089 esac
   16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16091   (eval "$ac_try") 2>&5
   16092   ac_status=$?
   16093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16094   (exit $ac_status); }; }; then
   16095   ac_cv_type_pid_t=yes
   16096 else
   16097   echo "$as_me: failed program was:" >&5
   16098 sed 's/^/| /' conftest.$ac_ext >&5
   16099 
   16100 	ac_cv_type_pid_t=no
   16101 fi
   16102 
   16103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16104 fi
   16105 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
   16106 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
   16107 if test $ac_cv_type_pid_t = yes; then
   16108   :
   16109 else
   16110 
   16111 cat >>confdefs.h <<_ACEOF
   16112 #define pid_t int
   16113 _ACEOF
   16114 
   16115 fi
   16116 
   16117 { echo "$as_me:$LINENO: checking for size_t" >&5
   16118 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
   16119 if test "${ac_cv_type_size_t+set}" = set; then
   16120   echo $ECHO_N "(cached) $ECHO_C" >&6
   16121 else
   16122   cat >conftest.$ac_ext <<_ACEOF
   16123 /* confdefs.h.  */
   16124 _ACEOF
   16125 cat confdefs.h >>conftest.$ac_ext
   16126 cat >>conftest.$ac_ext <<_ACEOF
   16127 /* end confdefs.h.  */
   16128 $ac_includes_default
   16129 typedef size_t ac__type_new_;
   16130 int
   16131 main ()
   16132 {
   16133 if ((ac__type_new_ *) 0)
   16134   return 0;
   16135 if (sizeof (ac__type_new_))
   16136   return 0;
   16137   ;
   16138   return 0;
   16139 }
   16140 _ACEOF
   16141 rm -f conftest.$ac_objext
   16142 if { (ac_try="$ac_compile"
   16143 case "(($ac_try" in
   16144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16145   *) ac_try_echo=$ac_try;;
   16146 esac
   16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16148   (eval "$ac_compile") 2>conftest.er1
   16149   ac_status=$?
   16150   grep -v '^ *+' conftest.er1 >conftest.err
   16151   rm -f conftest.er1
   16152   cat conftest.err >&5
   16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16154   (exit $ac_status); } &&
   16155 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16156   { (case "(($ac_try" in
   16157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16158   *) ac_try_echo=$ac_try;;
   16159 esac
   16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16161   (eval "$ac_try") 2>&5
   16162   ac_status=$?
   16163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16164   (exit $ac_status); }; } &&
   16165 	 { ac_try='test -s conftest.$ac_objext'
   16166   { (case "(($ac_try" in
   16167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16168   *) ac_try_echo=$ac_try;;
   16169 esac
   16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16171   (eval "$ac_try") 2>&5
   16172   ac_status=$?
   16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16174   (exit $ac_status); }; }; then
   16175   ac_cv_type_size_t=yes
   16176 else
   16177   echo "$as_me: failed program was:" >&5
   16178 sed 's/^/| /' conftest.$ac_ext >&5
   16179 
   16180 	ac_cv_type_size_t=no
   16181 fi
   16182 
   16183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16184 fi
   16185 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
   16186 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
   16187 if test $ac_cv_type_size_t = yes; then
   16188   :
   16189 else
   16190 
   16191 cat >>confdefs.h <<_ACEOF
   16192 #define size_t unsigned int
   16193 _ACEOF
   16194 
   16195 fi
   16196 
   16197 
   16198 cat >>confdefs.h <<_ACEOF
   16199 #define RETSIGTYPE void
   16200 _ACEOF
   16201 
   16202 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
   16203 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
   16204 if test "${ac_cv_struct_tm+set}" = set; then
   16205   echo $ECHO_N "(cached) $ECHO_C" >&6
   16206 else
   16207   cat >conftest.$ac_ext <<_ACEOF
   16208 /* confdefs.h.  */
   16209 _ACEOF
   16210 cat confdefs.h >>conftest.$ac_ext
   16211 cat >>conftest.$ac_ext <<_ACEOF
   16212 /* end confdefs.h.  */
   16213 #include <sys/types.h>
   16214 #include <time.h>
   16215 
   16216 int
   16217 main ()
   16218 {
   16219 struct tm *tp; tp->tm_sec;
   16220   ;
   16221   return 0;
   16222 }
   16223 _ACEOF
   16224 rm -f conftest.$ac_objext
   16225 if { (ac_try="$ac_compile"
   16226 case "(($ac_try" in
   16227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16228   *) ac_try_echo=$ac_try;;
   16229 esac
   16230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16231   (eval "$ac_compile") 2>conftest.er1
   16232   ac_status=$?
   16233   grep -v '^ *+' conftest.er1 >conftest.err
   16234   rm -f conftest.er1
   16235   cat conftest.err >&5
   16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16237   (exit $ac_status); } &&
   16238 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16239   { (case "(($ac_try" in
   16240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16241   *) ac_try_echo=$ac_try;;
   16242 esac
   16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16244   (eval "$ac_try") 2>&5
   16245   ac_status=$?
   16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16247   (exit $ac_status); }; } &&
   16248 	 { ac_try='test -s conftest.$ac_objext'
   16249   { (case "(($ac_try" in
   16250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16251   *) ac_try_echo=$ac_try;;
   16252 esac
   16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16254   (eval "$ac_try") 2>&5
   16255   ac_status=$?
   16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16257   (exit $ac_status); }; }; then
   16258   ac_cv_struct_tm=time.h
   16259 else
   16260   echo "$as_me: failed program was:" >&5
   16261 sed 's/^/| /' conftest.$ac_ext >&5
   16262 
   16263 	ac_cv_struct_tm=sys/time.h
   16264 fi
   16265 
   16266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16267 fi
   16268 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
   16269 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
   16270 if test $ac_cv_struct_tm = sys/time.h; then
   16271 
   16272 cat >>confdefs.h <<\_ACEOF
   16273 #define TM_IN_SYS_TIME 1
   16274 _ACEOF
   16275 
   16276 fi
   16277 
   16278 { echo "$as_me:$LINENO: checking for int64_t" >&5
   16279 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
   16280 if test "${ac_cv_type_int64_t+set}" = set; then
   16281   echo $ECHO_N "(cached) $ECHO_C" >&6
   16282 else
   16283   cat >conftest.$ac_ext <<_ACEOF
   16284 /* confdefs.h.  */
   16285 _ACEOF
   16286 cat confdefs.h >>conftest.$ac_ext
   16287 cat >>conftest.$ac_ext <<_ACEOF
   16288 /* end confdefs.h.  */
   16289 $ac_includes_default
   16290 typedef int64_t ac__type_new_;
   16291 int
   16292 main ()
   16293 {
   16294 if ((ac__type_new_ *) 0)
   16295   return 0;
   16296 if (sizeof (ac__type_new_))
   16297   return 0;
   16298   ;
   16299   return 0;
   16300 }
   16301 _ACEOF
   16302 rm -f conftest.$ac_objext
   16303 if { (ac_try="$ac_compile"
   16304 case "(($ac_try" in
   16305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16306   *) ac_try_echo=$ac_try;;
   16307 esac
   16308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16309   (eval "$ac_compile") 2>conftest.er1
   16310   ac_status=$?
   16311   grep -v '^ *+' conftest.er1 >conftest.err
   16312   rm -f conftest.er1
   16313   cat conftest.err >&5
   16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16315   (exit $ac_status); } &&
   16316 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16317   { (case "(($ac_try" in
   16318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16319   *) ac_try_echo=$ac_try;;
   16320 esac
   16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16322   (eval "$ac_try") 2>&5
   16323   ac_status=$?
   16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16325   (exit $ac_status); }; } &&
   16326 	 { ac_try='test -s conftest.$ac_objext'
   16327   { (case "(($ac_try" in
   16328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16329   *) ac_try_echo=$ac_try;;
   16330 esac
   16331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16332   (eval "$ac_try") 2>&5
   16333   ac_status=$?
   16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16335   (exit $ac_status); }; }; then
   16336   ac_cv_type_int64_t=yes
   16337 else
   16338   echo "$as_me: failed program was:" >&5
   16339 sed 's/^/| /' conftest.$ac_ext >&5
   16340 
   16341 	ac_cv_type_int64_t=no
   16342 fi
   16343 
   16344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16345 fi
   16346 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
   16347 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
   16348 if test $ac_cv_type_int64_t = yes; then
   16349 
   16350 cat >>confdefs.h <<_ACEOF
   16351 #define HAVE_INT64_T 1
   16352 _ACEOF
   16353 
   16354 
   16355 else
   16356   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
   16357 echo "$as_me: error: Type int64_t required but not found" >&2;}
   16358    { (exit 1); exit 1; }; }
   16359 fi
   16360 
   16361 { echo "$as_me:$LINENO: checking for uint64_t" >&5
   16362 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
   16363 if test "${ac_cv_type_uint64_t+set}" = set; then
   16364   echo $ECHO_N "(cached) $ECHO_C" >&6
   16365 else
   16366   cat >conftest.$ac_ext <<_ACEOF
   16367 /* confdefs.h.  */
   16368 _ACEOF
   16369 cat confdefs.h >>conftest.$ac_ext
   16370 cat >>conftest.$ac_ext <<_ACEOF
   16371 /* end confdefs.h.  */
   16372 $ac_includes_default
   16373 typedef uint64_t ac__type_new_;
   16374 int
   16375 main ()
   16376 {
   16377 if ((ac__type_new_ *) 0)
   16378   return 0;
   16379 if (sizeof (ac__type_new_))
   16380   return 0;
   16381   ;
   16382   return 0;
   16383 }
   16384 _ACEOF
   16385 rm -f conftest.$ac_objext
   16386 if { (ac_try="$ac_compile"
   16387 case "(($ac_try" in
   16388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16389   *) ac_try_echo=$ac_try;;
   16390 esac
   16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16392   (eval "$ac_compile") 2>conftest.er1
   16393   ac_status=$?
   16394   grep -v '^ *+' conftest.er1 >conftest.err
   16395   rm -f conftest.er1
   16396   cat conftest.err >&5
   16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16398   (exit $ac_status); } &&
   16399 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16400   { (case "(($ac_try" in
   16401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16402   *) ac_try_echo=$ac_try;;
   16403 esac
   16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16405   (eval "$ac_try") 2>&5
   16406   ac_status=$?
   16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16408   (exit $ac_status); }; } &&
   16409 	 { ac_try='test -s conftest.$ac_objext'
   16410   { (case "(($ac_try" in
   16411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16412   *) ac_try_echo=$ac_try;;
   16413 esac
   16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16415   (eval "$ac_try") 2>&5
   16416   ac_status=$?
   16417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16418   (exit $ac_status); }; }; then
   16419   ac_cv_type_uint64_t=yes
   16420 else
   16421   echo "$as_me: failed program was:" >&5
   16422 sed 's/^/| /' conftest.$ac_ext >&5
   16423 
   16424 	ac_cv_type_uint64_t=no
   16425 fi
   16426 
   16427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16428 fi
   16429 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
   16430 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
   16431 if test $ac_cv_type_uint64_t = yes; then
   16432 
   16433 cat >>confdefs.h <<_ACEOF
   16434 #define HAVE_UINT64_T 1
   16435 _ACEOF
   16436 
   16437 
   16438 else
   16439   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
   16440 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
   16441 if test "${ac_cv_type_u_int64_t+set}" = set; then
   16442   echo $ECHO_N "(cached) $ECHO_C" >&6
   16443 else
   16444   cat >conftest.$ac_ext <<_ACEOF
   16445 /* confdefs.h.  */
   16446 _ACEOF
   16447 cat confdefs.h >>conftest.$ac_ext
   16448 cat >>conftest.$ac_ext <<_ACEOF
   16449 /* end confdefs.h.  */
   16450 $ac_includes_default
   16451 typedef u_int64_t ac__type_new_;
   16452 int
   16453 main ()
   16454 {
   16455 if ((ac__type_new_ *) 0)
   16456   return 0;
   16457 if (sizeof (ac__type_new_))
   16458   return 0;
   16459   ;
   16460   return 0;
   16461 }
   16462 _ACEOF
   16463 rm -f conftest.$ac_objext
   16464 if { (ac_try="$ac_compile"
   16465 case "(($ac_try" in
   16466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16467   *) ac_try_echo=$ac_try;;
   16468 esac
   16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16470   (eval "$ac_compile") 2>conftest.er1
   16471   ac_status=$?
   16472   grep -v '^ *+' conftest.er1 >conftest.err
   16473   rm -f conftest.er1
   16474   cat conftest.err >&5
   16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16476   (exit $ac_status); } &&
   16477 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16478   { (case "(($ac_try" in
   16479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16480   *) ac_try_echo=$ac_try;;
   16481 esac
   16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16483   (eval "$ac_try") 2>&5
   16484   ac_status=$?
   16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16486   (exit $ac_status); }; } &&
   16487 	 { ac_try='test -s conftest.$ac_objext'
   16488   { (case "(($ac_try" in
   16489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16490   *) ac_try_echo=$ac_try;;
   16491 esac
   16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16493   (eval "$ac_try") 2>&5
   16494   ac_status=$?
   16495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16496   (exit $ac_status); }; }; then
   16497   ac_cv_type_u_int64_t=yes
   16498 else
   16499   echo "$as_me: failed program was:" >&5
   16500 sed 's/^/| /' conftest.$ac_ext >&5
   16501 
   16502 	ac_cv_type_u_int64_t=no
   16503 fi
   16504 
   16505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16506 fi
   16507 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
   16508 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
   16509 if test $ac_cv_type_u_int64_t = yes; then
   16510 
   16511 cat >>confdefs.h <<_ACEOF
   16512 #define HAVE_U_INT64_T 1
   16513 _ACEOF
   16514 
   16515 
   16516 else
   16517   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
   16518 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
   16519    { (exit 1); exit 1; }; }
   16520 fi
   16521 
   16522 fi
   16523 
   16524 
   16525 
   16526 
   16527 
   16528 
   16529 
   16530 
   16531 
   16532 
   16533 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
   16534 do
   16535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   16537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   16538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   16539   echo $ECHO_N "(cached) $ECHO_C" >&6
   16540 else
   16541   cat >conftest.$ac_ext <<_ACEOF
   16542 /* confdefs.h.  */
   16543 _ACEOF
   16544 cat confdefs.h >>conftest.$ac_ext
   16545 cat >>conftest.$ac_ext <<_ACEOF
   16546 /* end confdefs.h.  */
   16547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   16548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   16549 #define $ac_func innocuous_$ac_func
   16550 
   16551 /* System header to define __stub macros and hopefully few prototypes,
   16552     which can conflict with char $ac_func (); below.
   16553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   16554     <limits.h> exists even on freestanding compilers.  */
   16555 
   16556 #ifdef __STDC__
   16557 # include <limits.h>
   16558 #else
   16559 # include <assert.h>
   16560 #endif
   16561 
   16562 #undef $ac_func
   16563 
   16564 /* Override any GCC internal prototype to avoid an error.
   16565    Use char because int might match the return type of a GCC
   16566    builtin and then its argument prototype would still apply.  */
   16567 #ifdef __cplusplus
   16568 extern "C"
   16569 #endif
   16570 char $ac_func ();
   16571 /* The GNU C library defines this for functions which it implements
   16572     to always fail with ENOSYS.  Some functions are actually named
   16573     something starting with __ and the normal name is an alias.  */
   16574 #if defined __stub_$ac_func || defined __stub___$ac_func
   16575 choke me
   16576 #endif
   16577 
   16578 int
   16579 main ()
   16580 {
   16581 return $ac_func ();
   16582   ;
   16583   return 0;
   16584 }
   16585 _ACEOF
   16586 rm -f conftest.$ac_objext conftest$ac_exeext
   16587 if { (ac_try="$ac_link"
   16588 case "(($ac_try" in
   16589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16590   *) ac_try_echo=$ac_try;;
   16591 esac
   16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16593   (eval "$ac_link") 2>conftest.er1
   16594   ac_status=$?
   16595   grep -v '^ *+' conftest.er1 >conftest.err
   16596   rm -f conftest.er1
   16597   cat conftest.err >&5
   16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16599   (exit $ac_status); } &&
   16600 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16601   { (case "(($ac_try" in
   16602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16603   *) ac_try_echo=$ac_try;;
   16604 esac
   16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16606   (eval "$ac_try") 2>&5
   16607   ac_status=$?
   16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16609   (exit $ac_status); }; } &&
   16610 	 { ac_try='test -s conftest$ac_exeext'
   16611   { (case "(($ac_try" in
   16612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16613   *) ac_try_echo=$ac_try;;
   16614 esac
   16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16616   (eval "$ac_try") 2>&5
   16617   ac_status=$?
   16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16619   (exit $ac_status); }; }; then
   16620   eval "$as_ac_var=yes"
   16621 else
   16622   echo "$as_me: failed program was:" >&5
   16623 sed 's/^/| /' conftest.$ac_ext >&5
   16624 
   16625 	eval "$as_ac_var=no"
   16626 fi
   16627 
   16628 rm -f core conftest.err conftest.$ac_objext \
   16629       conftest$ac_exeext conftest.$ac_ext
   16630 fi
   16631 ac_res=`eval echo '${'$as_ac_var'}'`
   16632 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16633 echo "${ECHO_T}$ac_res" >&6; }
   16634 if test `eval echo '${'$as_ac_var'}'` = yes; then
   16635   cat >>confdefs.h <<_ACEOF
   16636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16637 _ACEOF
   16638 
   16639 fi
   16640 done
   16641 
   16642 
   16643 
   16644 
   16645 
   16646 for ac_func in powf fmodf strtof round
   16647 do
   16648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   16650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   16651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   16652   echo $ECHO_N "(cached) $ECHO_C" >&6
   16653 else
   16654   cat >conftest.$ac_ext <<_ACEOF
   16655 /* confdefs.h.  */
   16656 _ACEOF
   16657 cat confdefs.h >>conftest.$ac_ext
   16658 cat >>conftest.$ac_ext <<_ACEOF
   16659 /* end confdefs.h.  */
   16660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   16661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   16662 #define $ac_func innocuous_$ac_func
   16663 
   16664 /* System header to define __stub macros and hopefully few prototypes,
   16665     which can conflict with char $ac_func (); below.
   16666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   16667     <limits.h> exists even on freestanding compilers.  */
   16668 
   16669 #ifdef __STDC__
   16670 # include <limits.h>
   16671 #else
   16672 # include <assert.h>
   16673 #endif
   16674 
   16675 #undef $ac_func
   16676 
   16677 /* Override any GCC internal prototype to avoid an error.
   16678    Use char because int might match the return type of a GCC
   16679    builtin and then its argument prototype would still apply.  */
   16680 #ifdef __cplusplus
   16681 extern "C"
   16682 #endif
   16683 char $ac_func ();
   16684 /* The GNU C library defines this for functions which it implements
   16685     to always fail with ENOSYS.  Some functions are actually named
   16686     something starting with __ and the normal name is an alias.  */
   16687 #if defined __stub_$ac_func || defined __stub___$ac_func
   16688 choke me
   16689 #endif
   16690 
   16691 int
   16692 main ()
   16693 {
   16694 return $ac_func ();
   16695   ;
   16696   return 0;
   16697 }
   16698 _ACEOF
   16699 rm -f conftest.$ac_objext conftest$ac_exeext
   16700 if { (ac_try="$ac_link"
   16701 case "(($ac_try" in
   16702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16703   *) ac_try_echo=$ac_try;;
   16704 esac
   16705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16706   (eval "$ac_link") 2>conftest.er1
   16707   ac_status=$?
   16708   grep -v '^ *+' conftest.er1 >conftest.err
   16709   rm -f conftest.er1
   16710   cat conftest.err >&5
   16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16712   (exit $ac_status); } &&
   16713 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16714   { (case "(($ac_try" in
   16715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16716   *) ac_try_echo=$ac_try;;
   16717 esac
   16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16719   (eval "$ac_try") 2>&5
   16720   ac_status=$?
   16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16722   (exit $ac_status); }; } &&
   16723 	 { ac_try='test -s conftest$ac_exeext'
   16724   { (case "(($ac_try" in
   16725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16726   *) ac_try_echo=$ac_try;;
   16727 esac
   16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16729   (eval "$ac_try") 2>&5
   16730   ac_status=$?
   16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16732   (exit $ac_status); }; }; then
   16733   eval "$as_ac_var=yes"
   16734 else
   16735   echo "$as_me: failed program was:" >&5
   16736 sed 's/^/| /' conftest.$ac_ext >&5
   16737 
   16738 	eval "$as_ac_var=no"
   16739 fi
   16740 
   16741 rm -f core conftest.err conftest.$ac_objext \
   16742       conftest$ac_exeext conftest.$ac_ext
   16743 fi
   16744 ac_res=`eval echo '${'$as_ac_var'}'`
   16745 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16746 echo "${ECHO_T}$ac_res" >&6; }
   16747 if test `eval echo '${'$as_ac_var'}'` = yes; then
   16748   cat >>confdefs.h <<_ACEOF
   16749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16750 _ACEOF
   16751 
   16752 fi
   16753 done
   16754 
   16755 
   16756 
   16757 
   16758 
   16759 
   16760 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
   16761 do
   16762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16763 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   16764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   16765 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   16766   echo $ECHO_N "(cached) $ECHO_C" >&6
   16767 else
   16768   cat >conftest.$ac_ext <<_ACEOF
   16769 /* confdefs.h.  */
   16770 _ACEOF
   16771 cat confdefs.h >>conftest.$ac_ext
   16772 cat >>conftest.$ac_ext <<_ACEOF
   16773 /* end confdefs.h.  */
   16774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   16775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   16776 #define $ac_func innocuous_$ac_func
   16777 
   16778 /* System header to define __stub macros and hopefully few prototypes,
   16779     which can conflict with char $ac_func (); below.
   16780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   16781     <limits.h> exists even on freestanding compilers.  */
   16782 
   16783 #ifdef __STDC__
   16784 # include <limits.h>
   16785 #else
   16786 # include <assert.h>
   16787 #endif
   16788 
   16789 #undef $ac_func
   16790 
   16791 /* Override any GCC internal prototype to avoid an error.
   16792    Use char because int might match the return type of a GCC
   16793    builtin and then its argument prototype would still apply.  */
   16794 #ifdef __cplusplus
   16795 extern "C"
   16796 #endif
   16797 char $ac_func ();
   16798 /* The GNU C library defines this for functions which it implements
   16799     to always fail with ENOSYS.  Some functions are actually named
   16800     something starting with __ and the normal name is an alias.  */
   16801 #if defined __stub_$ac_func || defined __stub___$ac_func
   16802 choke me
   16803 #endif
   16804 
   16805 int
   16806 main ()
   16807 {
   16808 return $ac_func ();
   16809   ;
   16810   return 0;
   16811 }
   16812 _ACEOF
   16813 rm -f conftest.$ac_objext conftest$ac_exeext
   16814 if { (ac_try="$ac_link"
   16815 case "(($ac_try" in
   16816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16817   *) ac_try_echo=$ac_try;;
   16818 esac
   16819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16820   (eval "$ac_link") 2>conftest.er1
   16821   ac_status=$?
   16822   grep -v '^ *+' conftest.er1 >conftest.err
   16823   rm -f conftest.er1
   16824   cat conftest.err >&5
   16825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16826   (exit $ac_status); } &&
   16827 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16828   { (case "(($ac_try" in
   16829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16830   *) ac_try_echo=$ac_try;;
   16831 esac
   16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16833   (eval "$ac_try") 2>&5
   16834   ac_status=$?
   16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16836   (exit $ac_status); }; } &&
   16837 	 { ac_try='test -s conftest$ac_exeext'
   16838   { (case "(($ac_try" in
   16839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16840   *) ac_try_echo=$ac_try;;
   16841 esac
   16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16843   (eval "$ac_try") 2>&5
   16844   ac_status=$?
   16845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16846   (exit $ac_status); }; }; then
   16847   eval "$as_ac_var=yes"
   16848 else
   16849   echo "$as_me: failed program was:" >&5
   16850 sed 's/^/| /' conftest.$ac_ext >&5
   16851 
   16852 	eval "$as_ac_var=no"
   16853 fi
   16854 
   16855 rm -f core conftest.err conftest.$ac_objext \
   16856       conftest$ac_exeext conftest.$ac_ext
   16857 fi
   16858 ac_res=`eval echo '${'$as_ac_var'}'`
   16859 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16860 echo "${ECHO_T}$ac_res" >&6; }
   16861 if test `eval echo '${'$as_ac_var'}'` = yes; then
   16862   cat >>confdefs.h <<_ACEOF
   16863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16864 _ACEOF
   16865 
   16866 fi
   16867 done
   16868 
   16869 
   16870 
   16871 
   16872 for ac_func in isatty mkdtemp mkstemp
   16873 do
   16874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   16876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   16877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   16878   echo $ECHO_N "(cached) $ECHO_C" >&6
   16879 else
   16880   cat >conftest.$ac_ext <<_ACEOF
   16881 /* confdefs.h.  */
   16882 _ACEOF
   16883 cat confdefs.h >>conftest.$ac_ext
   16884 cat >>conftest.$ac_ext <<_ACEOF
   16885 /* end confdefs.h.  */
   16886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   16887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   16888 #define $ac_func innocuous_$ac_func
   16889 
   16890 /* System header to define __stub macros and hopefully few prototypes,
   16891     which can conflict with char $ac_func (); below.
   16892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   16893     <limits.h> exists even on freestanding compilers.  */
   16894 
   16895 #ifdef __STDC__
   16896 # include <limits.h>
   16897 #else
   16898 # include <assert.h>
   16899 #endif
   16900 
   16901 #undef $ac_func
   16902 
   16903 /* Override any GCC internal prototype to avoid an error.
   16904    Use char because int might match the return type of a GCC
   16905    builtin and then its argument prototype would still apply.  */
   16906 #ifdef __cplusplus
   16907 extern "C"
   16908 #endif
   16909 char $ac_func ();
   16910 /* The GNU C library defines this for functions which it implements
   16911     to always fail with ENOSYS.  Some functions are actually named
   16912     something starting with __ and the normal name is an alias.  */
   16913 #if defined __stub_$ac_func || defined __stub___$ac_func
   16914 choke me
   16915 #endif
   16916 
   16917 int
   16918 main ()
   16919 {
   16920 return $ac_func ();
   16921   ;
   16922   return 0;
   16923 }
   16924 _ACEOF
   16925 rm -f conftest.$ac_objext conftest$ac_exeext
   16926 if { (ac_try="$ac_link"
   16927 case "(($ac_try" in
   16928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16929   *) ac_try_echo=$ac_try;;
   16930 esac
   16931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16932   (eval "$ac_link") 2>conftest.er1
   16933   ac_status=$?
   16934   grep -v '^ *+' conftest.er1 >conftest.err
   16935   rm -f conftest.er1
   16936   cat conftest.err >&5
   16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16938   (exit $ac_status); } &&
   16939 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16940   { (case "(($ac_try" in
   16941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16942   *) ac_try_echo=$ac_try;;
   16943 esac
   16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16945   (eval "$ac_try") 2>&5
   16946   ac_status=$?
   16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16948   (exit $ac_status); }; } &&
   16949 	 { ac_try='test -s conftest$ac_exeext'
   16950   { (case "(($ac_try" in
   16951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16952   *) ac_try_echo=$ac_try;;
   16953 esac
   16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16955   (eval "$ac_try") 2>&5
   16956   ac_status=$?
   16957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16958   (exit $ac_status); }; }; then
   16959   eval "$as_ac_var=yes"
   16960 else
   16961   echo "$as_me: failed program was:" >&5
   16962 sed 's/^/| /' conftest.$ac_ext >&5
   16963 
   16964 	eval "$as_ac_var=no"
   16965 fi
   16966 
   16967 rm -f core conftest.err conftest.$ac_objext \
   16968       conftest$ac_exeext conftest.$ac_ext
   16969 fi
   16970 ac_res=`eval echo '${'$as_ac_var'}'`
   16971 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16972 echo "${ECHO_T}$ac_res" >&6; }
   16973 if test `eval echo '${'$as_ac_var'}'` = yes; then
   16974   cat >>confdefs.h <<_ACEOF
   16975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16976 _ACEOF
   16977 
   16978 fi
   16979 done
   16980 
   16981 
   16982 
   16983 
   16984 
   16985 
   16986 
   16987 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
   16988 do
   16989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   16991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   16992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   16993   echo $ECHO_N "(cached) $ECHO_C" >&6
   16994 else
   16995   cat >conftest.$ac_ext <<_ACEOF
   16996 /* confdefs.h.  */
   16997 _ACEOF
   16998 cat confdefs.h >>conftest.$ac_ext
   16999 cat >>conftest.$ac_ext <<_ACEOF
   17000 /* end confdefs.h.  */
   17001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17003 #define $ac_func innocuous_$ac_func
   17004 
   17005 /* System header to define __stub macros and hopefully few prototypes,
   17006     which can conflict with char $ac_func (); below.
   17007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17008     <limits.h> exists even on freestanding compilers.  */
   17009 
   17010 #ifdef __STDC__
   17011 # include <limits.h>
   17012 #else
   17013 # include <assert.h>
   17014 #endif
   17015 
   17016 #undef $ac_func
   17017 
   17018 /* Override any GCC internal prototype to avoid an error.
   17019    Use char because int might match the return type of a GCC
   17020    builtin and then its argument prototype would still apply.  */
   17021 #ifdef __cplusplus
   17022 extern "C"
   17023 #endif
   17024 char $ac_func ();
   17025 /* The GNU C library defines this for functions which it implements
   17026     to always fail with ENOSYS.  Some functions are actually named
   17027     something starting with __ and the normal name is an alias.  */
   17028 #if defined __stub_$ac_func || defined __stub___$ac_func
   17029 choke me
   17030 #endif
   17031 
   17032 int
   17033 main ()
   17034 {
   17035 return $ac_func ();
   17036   ;
   17037   return 0;
   17038 }
   17039 _ACEOF
   17040 rm -f conftest.$ac_objext conftest$ac_exeext
   17041 if { (ac_try="$ac_link"
   17042 case "(($ac_try" in
   17043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17044   *) ac_try_echo=$ac_try;;
   17045 esac
   17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17047   (eval "$ac_link") 2>conftest.er1
   17048   ac_status=$?
   17049   grep -v '^ *+' conftest.er1 >conftest.err
   17050   rm -f conftest.er1
   17051   cat conftest.err >&5
   17052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17053   (exit $ac_status); } &&
   17054 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17055   { (case "(($ac_try" in
   17056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17057   *) ac_try_echo=$ac_try;;
   17058 esac
   17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17060   (eval "$ac_try") 2>&5
   17061   ac_status=$?
   17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17063   (exit $ac_status); }; } &&
   17064 	 { ac_try='test -s conftest$ac_exeext'
   17065   { (case "(($ac_try" in
   17066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17067   *) ac_try_echo=$ac_try;;
   17068 esac
   17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17070   (eval "$ac_try") 2>&5
   17071   ac_status=$?
   17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17073   (exit $ac_status); }; }; then
   17074   eval "$as_ac_var=yes"
   17075 else
   17076   echo "$as_me: failed program was:" >&5
   17077 sed 's/^/| /' conftest.$ac_ext >&5
   17078 
   17079 	eval "$as_ac_var=no"
   17080 fi
   17081 
   17082 rm -f core conftest.err conftest.$ac_objext \
   17083       conftest$ac_exeext conftest.$ac_ext
   17084 fi
   17085 ac_res=`eval echo '${'$as_ac_var'}'`
   17086 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17087 echo "${ECHO_T}$ac_res" >&6; }
   17088 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17089   cat >>confdefs.h <<_ACEOF
   17090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17091 _ACEOF
   17092 
   17093 fi
   17094 done
   17095 
   17096 
   17097 
   17098 
   17099 for ac_func in strerror strerror_r setenv
   17100 do
   17101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17102 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17105   echo $ECHO_N "(cached) $ECHO_C" >&6
   17106 else
   17107   cat >conftest.$ac_ext <<_ACEOF
   17108 /* confdefs.h.  */
   17109 _ACEOF
   17110 cat confdefs.h >>conftest.$ac_ext
   17111 cat >>conftest.$ac_ext <<_ACEOF
   17112 /* end confdefs.h.  */
   17113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17115 #define $ac_func innocuous_$ac_func
   17116 
   17117 /* System header to define __stub macros and hopefully few prototypes,
   17118     which can conflict with char $ac_func (); below.
   17119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17120     <limits.h> exists even on freestanding compilers.  */
   17121 
   17122 #ifdef __STDC__
   17123 # include <limits.h>
   17124 #else
   17125 # include <assert.h>
   17126 #endif
   17127 
   17128 #undef $ac_func
   17129 
   17130 /* Override any GCC internal prototype to avoid an error.
   17131    Use char because int might match the return type of a GCC
   17132    builtin and then its argument prototype would still apply.  */
   17133 #ifdef __cplusplus
   17134 extern "C"
   17135 #endif
   17136 char $ac_func ();
   17137 /* The GNU C library defines this for functions which it implements
   17138     to always fail with ENOSYS.  Some functions are actually named
   17139     something starting with __ and the normal name is an alias.  */
   17140 #if defined __stub_$ac_func || defined __stub___$ac_func
   17141 choke me
   17142 #endif
   17143 
   17144 int
   17145 main ()
   17146 {
   17147 return $ac_func ();
   17148   ;
   17149   return 0;
   17150 }
   17151 _ACEOF
   17152 rm -f conftest.$ac_objext conftest$ac_exeext
   17153 if { (ac_try="$ac_link"
   17154 case "(($ac_try" in
   17155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17156   *) ac_try_echo=$ac_try;;
   17157 esac
   17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17159   (eval "$ac_link") 2>conftest.er1
   17160   ac_status=$?
   17161   grep -v '^ *+' conftest.er1 >conftest.err
   17162   rm -f conftest.er1
   17163   cat conftest.err >&5
   17164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17165   (exit $ac_status); } &&
   17166 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17167   { (case "(($ac_try" in
   17168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17169   *) ac_try_echo=$ac_try;;
   17170 esac
   17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17172   (eval "$ac_try") 2>&5
   17173   ac_status=$?
   17174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17175   (exit $ac_status); }; } &&
   17176 	 { ac_try='test -s conftest$ac_exeext'
   17177   { (case "(($ac_try" in
   17178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17179   *) ac_try_echo=$ac_try;;
   17180 esac
   17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17182   (eval "$ac_try") 2>&5
   17183   ac_status=$?
   17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17185   (exit $ac_status); }; }; then
   17186   eval "$as_ac_var=yes"
   17187 else
   17188   echo "$as_me: failed program was:" >&5
   17189 sed 's/^/| /' conftest.$ac_ext >&5
   17190 
   17191 	eval "$as_ac_var=no"
   17192 fi
   17193 
   17194 rm -f core conftest.err conftest.$ac_objext \
   17195       conftest$ac_exeext conftest.$ac_ext
   17196 fi
   17197 ac_res=`eval echo '${'$as_ac_var'}'`
   17198 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17199 echo "${ECHO_T}$ac_res" >&6; }
   17200 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17201   cat >>confdefs.h <<_ACEOF
   17202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17203 _ACEOF
   17204 
   17205 fi
   17206 done
   17207 
   17208 
   17209 
   17210 
   17211 
   17212 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
   17213 do
   17214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17218   echo $ECHO_N "(cached) $ECHO_C" >&6
   17219 else
   17220   cat >conftest.$ac_ext <<_ACEOF
   17221 /* confdefs.h.  */
   17222 _ACEOF
   17223 cat confdefs.h >>conftest.$ac_ext
   17224 cat >>conftest.$ac_ext <<_ACEOF
   17225 /* end confdefs.h.  */
   17226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17228 #define $ac_func innocuous_$ac_func
   17229 
   17230 /* System header to define __stub macros and hopefully few prototypes,
   17231     which can conflict with char $ac_func (); below.
   17232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17233     <limits.h> exists even on freestanding compilers.  */
   17234 
   17235 #ifdef __STDC__
   17236 # include <limits.h>
   17237 #else
   17238 # include <assert.h>
   17239 #endif
   17240 
   17241 #undef $ac_func
   17242 
   17243 /* Override any GCC internal prototype to avoid an error.
   17244    Use char because int might match the return type of a GCC
   17245    builtin and then its argument prototype would still apply.  */
   17246 #ifdef __cplusplus
   17247 extern "C"
   17248 #endif
   17249 char $ac_func ();
   17250 /* The GNU C library defines this for functions which it implements
   17251     to always fail with ENOSYS.  Some functions are actually named
   17252     something starting with __ and the normal name is an alias.  */
   17253 #if defined __stub_$ac_func || defined __stub___$ac_func
   17254 choke me
   17255 #endif
   17256 
   17257 int
   17258 main ()
   17259 {
   17260 return $ac_func ();
   17261   ;
   17262   return 0;
   17263 }
   17264 _ACEOF
   17265 rm -f conftest.$ac_objext conftest$ac_exeext
   17266 if { (ac_try="$ac_link"
   17267 case "(($ac_try" in
   17268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17269   *) ac_try_echo=$ac_try;;
   17270 esac
   17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17272   (eval "$ac_link") 2>conftest.er1
   17273   ac_status=$?
   17274   grep -v '^ *+' conftest.er1 >conftest.err
   17275   rm -f conftest.er1
   17276   cat conftest.err >&5
   17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17278   (exit $ac_status); } &&
   17279 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17280   { (case "(($ac_try" in
   17281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17282   *) ac_try_echo=$ac_try;;
   17283 esac
   17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17285   (eval "$ac_try") 2>&5
   17286   ac_status=$?
   17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17288   (exit $ac_status); }; } &&
   17289 	 { ac_try='test -s conftest$ac_exeext'
   17290   { (case "(($ac_try" in
   17291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17292   *) ac_try_echo=$ac_try;;
   17293 esac
   17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17295   (eval "$ac_try") 2>&5
   17296   ac_status=$?
   17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17298   (exit $ac_status); }; }; then
   17299   eval "$as_ac_var=yes"
   17300 else
   17301   echo "$as_me: failed program was:" >&5
   17302 sed 's/^/| /' conftest.$ac_ext >&5
   17303 
   17304 	eval "$as_ac_var=no"
   17305 fi
   17306 
   17307 rm -f core conftest.err conftest.$ac_objext \
   17308       conftest$ac_exeext conftest.$ac_ext
   17309 fi
   17310 ac_res=`eval echo '${'$as_ac_var'}'`
   17311 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17312 echo "${ECHO_T}$ac_res" >&6; }
   17313 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17314   cat >>confdefs.h <<_ACEOF
   17315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17316 _ACEOF
   17317 
   17318 fi
   17319 done
   17320 
   17321 
   17322 
   17323 
   17324 
   17325 
   17326 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
   17327 do
   17328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17329 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17331 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17332   echo $ECHO_N "(cached) $ECHO_C" >&6
   17333 else
   17334   cat >conftest.$ac_ext <<_ACEOF
   17335 /* confdefs.h.  */
   17336 _ACEOF
   17337 cat confdefs.h >>conftest.$ac_ext
   17338 cat >>conftest.$ac_ext <<_ACEOF
   17339 /* end confdefs.h.  */
   17340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17342 #define $ac_func innocuous_$ac_func
   17343 
   17344 /* System header to define __stub macros and hopefully few prototypes,
   17345     which can conflict with char $ac_func (); below.
   17346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17347     <limits.h> exists even on freestanding compilers.  */
   17348 
   17349 #ifdef __STDC__
   17350 # include <limits.h>
   17351 #else
   17352 # include <assert.h>
   17353 #endif
   17354 
   17355 #undef $ac_func
   17356 
   17357 /* Override any GCC internal prototype to avoid an error.
   17358    Use char because int might match the return type of a GCC
   17359    builtin and then its argument prototype would still apply.  */
   17360 #ifdef __cplusplus
   17361 extern "C"
   17362 #endif
   17363 char $ac_func ();
   17364 /* The GNU C library defines this for functions which it implements
   17365     to always fail with ENOSYS.  Some functions are actually named
   17366     something starting with __ and the normal name is an alias.  */
   17367 #if defined __stub_$ac_func || defined __stub___$ac_func
   17368 choke me
   17369 #endif
   17370 
   17371 int
   17372 main ()
   17373 {
   17374 return $ac_func ();
   17375   ;
   17376   return 0;
   17377 }
   17378 _ACEOF
   17379 rm -f conftest.$ac_objext conftest$ac_exeext
   17380 if { (ac_try="$ac_link"
   17381 case "(($ac_try" in
   17382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17383   *) ac_try_echo=$ac_try;;
   17384 esac
   17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17386   (eval "$ac_link") 2>conftest.er1
   17387   ac_status=$?
   17388   grep -v '^ *+' conftest.er1 >conftest.err
   17389   rm -f conftest.er1
   17390   cat conftest.err >&5
   17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17392   (exit $ac_status); } &&
   17393 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17394   { (case "(($ac_try" in
   17395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17396   *) ac_try_echo=$ac_try;;
   17397 esac
   17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17399   (eval "$ac_try") 2>&5
   17400   ac_status=$?
   17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17402   (exit $ac_status); }; } &&
   17403 	 { ac_try='test -s conftest$ac_exeext'
   17404   { (case "(($ac_try" in
   17405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17406   *) ac_try_echo=$ac_try;;
   17407 esac
   17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17409   (eval "$ac_try") 2>&5
   17410   ac_status=$?
   17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17412   (exit $ac_status); }; }; then
   17413   eval "$as_ac_var=yes"
   17414 else
   17415   echo "$as_me: failed program was:" >&5
   17416 sed 's/^/| /' conftest.$ac_ext >&5
   17417 
   17418 	eval "$as_ac_var=no"
   17419 fi
   17420 
   17421 rm -f core conftest.err conftest.$ac_objext \
   17422       conftest$ac_exeext conftest.$ac_ext
   17423 fi
   17424 ac_res=`eval echo '${'$as_ac_var'}'`
   17425 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17426 echo "${ECHO_T}$ac_res" >&6; }
   17427 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17428   cat >>confdefs.h <<_ACEOF
   17429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17430 _ACEOF
   17431 
   17432 fi
   17433 done
   17434 
   17435 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
   17436 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
   17437 if test "${llvm_cv_c_printf_a+set}" = set; then
   17438   echo $ECHO_N "(cached) $ECHO_C" >&6
   17439 else
   17440   ac_ext=c
   17441 ac_cpp='$CPP $CPPFLAGS'
   17442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17445 
   17446  if test "$cross_compiling" = yes; then
   17447   llvmac_cv_c_printf_a=no
   17448 else
   17449   cat >conftest.$ac_ext <<_ACEOF
   17450 
   17451   /* confdefs.h.  */
   17452 _ACEOF
   17453 cat confdefs.h >>conftest.$ac_ext
   17454 cat >>conftest.$ac_ext <<_ACEOF
   17455 /* end confdefs.h.  */
   17456 
   17457 #include <stdio.h>
   17458 #include <stdlib.h>
   17459 
   17460 int
   17461 main ()
   17462 {
   17463 
   17464 volatile double A, B;
   17465 char Buffer[100];
   17466 A = 1;
   17467 A /= 10.0;
   17468 sprintf(Buffer, "%a", A);
   17469 B = atof(Buffer);
   17470 if (A != B)
   17471   return (1);
   17472 if (A != 0x1.999999999999ap-4)
   17473   return (1);
   17474 return (0);
   17475   ;
   17476   return 0;
   17477 }
   17478 _ACEOF
   17479 rm -f conftest$ac_exeext
   17480 if { (ac_try="$ac_link"
   17481 case "(($ac_try" in
   17482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17483   *) ac_try_echo=$ac_try;;
   17484 esac
   17485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17486   (eval "$ac_link") 2>&5
   17487   ac_status=$?
   17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   17490   { (case "(($ac_try" in
   17491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17492   *) ac_try_echo=$ac_try;;
   17493 esac
   17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17495   (eval "$ac_try") 2>&5
   17496   ac_status=$?
   17497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17498   (exit $ac_status); }; }; then
   17499   llvm_cv_c_printf_a=yes
   17500 else
   17501   echo "$as_me: program exited with status $ac_status" >&5
   17502 echo "$as_me: failed program was:" >&5
   17503 sed 's/^/| /' conftest.$ac_ext >&5
   17504 
   17505 ( exit $ac_status )
   17506 llvmac_cv_c_printf_a=no
   17507 fi
   17508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   17509 fi
   17510 
   17511 
   17512  ac_ext=c
   17513 ac_cpp='$CPP $CPPFLAGS'
   17514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17517 
   17518 fi
   17519 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
   17520 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
   17521  if test "$llvm_cv_c_printf_a" = "yes"; then
   17522 
   17523 cat >>confdefs.h <<\_ACEOF
   17524 #define HAVE_PRINTF_A 1
   17525 _ACEOF
   17526 
   17527  fi
   17528 
   17529 
   17530 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
   17531 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
   17532 if test "${ac_cv_func_rand48+set}" = set; then
   17533   echo $ECHO_N "(cached) $ECHO_C" >&6
   17534 else
   17535   ac_ext=cpp
   17536 ac_cpp='$CXXCPP $CPPFLAGS'
   17537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   17540 
   17541    cat >conftest.$ac_ext <<_ACEOF
   17542 /* confdefs.h.  */
   17543 _ACEOF
   17544 cat confdefs.h >>conftest.$ac_ext
   17545 cat >>conftest.$ac_ext <<_ACEOF
   17546 /* end confdefs.h.  */
   17547 #include <stdlib.h>
   17548 int
   17549 main ()
   17550 {
   17551 srand48(0);lrand48();drand48();
   17552   ;
   17553   return 0;
   17554 }
   17555 _ACEOF
   17556 rm -f conftest.$ac_objext
   17557 if { (ac_try="$ac_compile"
   17558 case "(($ac_try" in
   17559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17560   *) ac_try_echo=$ac_try;;
   17561 esac
   17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17563   (eval "$ac_compile") 2>conftest.er1
   17564   ac_status=$?
   17565   grep -v '^ *+' conftest.er1 >conftest.err
   17566   rm -f conftest.er1
   17567   cat conftest.err >&5
   17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17569   (exit $ac_status); } &&
   17570 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   17571   { (case "(($ac_try" in
   17572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17573   *) ac_try_echo=$ac_try;;
   17574 esac
   17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17576   (eval "$ac_try") 2>&5
   17577   ac_status=$?
   17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17579   (exit $ac_status); }; } &&
   17580 	 { ac_try='test -s conftest.$ac_objext'
   17581   { (case "(($ac_try" in
   17582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17583   *) ac_try_echo=$ac_try;;
   17584 esac
   17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17586   (eval "$ac_try") 2>&5
   17587   ac_status=$?
   17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17589   (exit $ac_status); }; }; then
   17590   ac_cv_func_rand48=yes
   17591 else
   17592   echo "$as_me: failed program was:" >&5
   17593 sed 's/^/| /' conftest.$ac_ext >&5
   17594 
   17595 	ac_cv_func_rand48=no
   17596 fi
   17597 
   17598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17599   ac_ext=c
   17600 ac_cpp='$CPP $CPPFLAGS'
   17601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17604 
   17605 fi
   17606 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
   17607 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
   17608 
   17609 if test "$ac_cv_func_rand48" = "yes" ; then
   17610 
   17611 cat >>confdefs.h <<\_ACEOF
   17612 #define HAVE_RAND48 1
   17613 _ACEOF
   17614 
   17615 fi
   17616 
   17617 
   17618 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
   17619 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
   17620 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
   17621   echo $ECHO_N "(cached) $ECHO_C" >&6
   17622 else
   17623   cat >conftest.$ac_ext <<_ACEOF
   17624 /* confdefs.h.  */
   17625 _ACEOF
   17626 cat confdefs.h >>conftest.$ac_ext
   17627 cat >>conftest.$ac_ext <<_ACEOF
   17628 /* end confdefs.h.  */
   17629 $ac_includes_default
   17630 int
   17631 main ()
   17632 {
   17633 #ifndef strerror_s
   17634   char *p = (char *) strerror_s;
   17635   return !p;
   17636 #endif
   17637 
   17638   ;
   17639   return 0;
   17640 }
   17641 _ACEOF
   17642 rm -f conftest.$ac_objext
   17643 if { (ac_try="$ac_compile"
   17644 case "(($ac_try" in
   17645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17646   *) ac_try_echo=$ac_try;;
   17647 esac
   17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17649   (eval "$ac_compile") 2>conftest.er1
   17650   ac_status=$?
   17651   grep -v '^ *+' conftest.er1 >conftest.err
   17652   rm -f conftest.er1
   17653   cat conftest.err >&5
   17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17655   (exit $ac_status); } &&
   17656 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17657   { (case "(($ac_try" in
   17658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17659   *) ac_try_echo=$ac_try;;
   17660 esac
   17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17662   (eval "$ac_try") 2>&5
   17663   ac_status=$?
   17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17665   (exit $ac_status); }; } &&
   17666 	 { ac_try='test -s conftest.$ac_objext'
   17667   { (case "(($ac_try" in
   17668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17669   *) ac_try_echo=$ac_try;;
   17670 esac
   17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17672   (eval "$ac_try") 2>&5
   17673   ac_status=$?
   17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17675   (exit $ac_status); }; }; then
   17676   ac_cv_have_decl_strerror_s=yes
   17677 else
   17678   echo "$as_me: failed program was:" >&5
   17679 sed 's/^/| /' conftest.$ac_ext >&5
   17680 
   17681 	ac_cv_have_decl_strerror_s=no
   17682 fi
   17683 
   17684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17685 fi
   17686 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
   17687 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
   17688 if test $ac_cv_have_decl_strerror_s = yes; then
   17689 
   17690 cat >>confdefs.h <<_ACEOF
   17691 #define HAVE_DECL_STRERROR_S 1
   17692 _ACEOF
   17693 
   17694 
   17695 else
   17696   cat >>confdefs.h <<_ACEOF
   17697 #define HAVE_DECL_STRERROR_S 0
   17698 _ACEOF
   17699 
   17700 
   17701 fi
   17702 
   17703 
   17704 
   17705 if test "$llvm_cv_os_type" = "MingW" ; then
   17706   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
   17707 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
   17708 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
   17709   echo $ECHO_N "(cached) $ECHO_C" >&6
   17710 else
   17711   ac_check_lib_save_LIBS=$LIBS
   17712 LIBS="-lgcc  $LIBS"
   17713 cat >conftest.$ac_ext <<_ACEOF
   17714 /* confdefs.h.  */
   17715 _ACEOF
   17716 cat confdefs.h >>conftest.$ac_ext
   17717 cat >>conftest.$ac_ext <<_ACEOF
   17718 /* end confdefs.h.  */
   17719 
   17720 /* Override any GCC internal prototype to avoid an error.
   17721    Use char because int might match the return type of a GCC
   17722    builtin and then its argument prototype would still apply.  */
   17723 #ifdef __cplusplus
   17724 extern "C"
   17725 #endif
   17726 char _alloca ();
   17727 int
   17728 main ()
   17729 {
   17730 return _alloca ();
   17731   ;
   17732   return 0;
   17733 }
   17734 _ACEOF
   17735 rm -f conftest.$ac_objext conftest$ac_exeext
   17736 if { (ac_try="$ac_link"
   17737 case "(($ac_try" in
   17738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17739   *) ac_try_echo=$ac_try;;
   17740 esac
   17741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17742   (eval "$ac_link") 2>conftest.er1
   17743   ac_status=$?
   17744   grep -v '^ *+' conftest.er1 >conftest.err
   17745   rm -f conftest.er1
   17746   cat conftest.err >&5
   17747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17748   (exit $ac_status); } &&
   17749 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17750   { (case "(($ac_try" in
   17751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17752   *) ac_try_echo=$ac_try;;
   17753 esac
   17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17755   (eval "$ac_try") 2>&5
   17756   ac_status=$?
   17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17758   (exit $ac_status); }; } &&
   17759 	 { ac_try='test -s conftest$ac_exeext'
   17760   { (case "(($ac_try" in
   17761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17762   *) ac_try_echo=$ac_try;;
   17763 esac
   17764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17765   (eval "$ac_try") 2>&5
   17766   ac_status=$?
   17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17768   (exit $ac_status); }; }; then
   17769   ac_cv_lib_gcc__alloca=yes
   17770 else
   17771   echo "$as_me: failed program was:" >&5
   17772 sed 's/^/| /' conftest.$ac_ext >&5
   17773 
   17774 	ac_cv_lib_gcc__alloca=no
   17775 fi
   17776 
   17777 rm -f core conftest.err conftest.$ac_objext \
   17778       conftest$ac_exeext conftest.$ac_ext
   17779 LIBS=$ac_check_lib_save_LIBS
   17780 fi
   17781 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
   17782 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
   17783 if test $ac_cv_lib_gcc__alloca = yes; then
   17784 
   17785 cat >>confdefs.h <<\_ACEOF
   17786 #define HAVE__ALLOCA 1
   17787 _ACEOF
   17788 
   17789 fi
   17790 
   17791   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
   17792 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
   17793 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
   17794   echo $ECHO_N "(cached) $ECHO_C" >&6
   17795 else
   17796   ac_check_lib_save_LIBS=$LIBS
   17797 LIBS="-lgcc  $LIBS"
   17798 cat >conftest.$ac_ext <<_ACEOF
   17799 /* confdefs.h.  */
   17800 _ACEOF
   17801 cat confdefs.h >>conftest.$ac_ext
   17802 cat >>conftest.$ac_ext <<_ACEOF
   17803 /* end confdefs.h.  */
   17804 
   17805 /* Override any GCC internal prototype to avoid an error.
   17806    Use char because int might match the return type of a GCC
   17807    builtin and then its argument prototype would still apply.  */
   17808 #ifdef __cplusplus
   17809 extern "C"
   17810 #endif
   17811 char __alloca ();
   17812 int
   17813 main ()
   17814 {
   17815 return __alloca ();
   17816   ;
   17817   return 0;
   17818 }
   17819 _ACEOF
   17820 rm -f conftest.$ac_objext conftest$ac_exeext
   17821 if { (ac_try="$ac_link"
   17822 case "(($ac_try" in
   17823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17824   *) ac_try_echo=$ac_try;;
   17825 esac
   17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17827   (eval "$ac_link") 2>conftest.er1
   17828   ac_status=$?
   17829   grep -v '^ *+' conftest.er1 >conftest.err
   17830   rm -f conftest.er1
   17831   cat conftest.err >&5
   17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17833   (exit $ac_status); } &&
   17834 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17835   { (case "(($ac_try" in
   17836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17837   *) ac_try_echo=$ac_try;;
   17838 esac
   17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17840   (eval "$ac_try") 2>&5
   17841   ac_status=$?
   17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17843   (exit $ac_status); }; } &&
   17844 	 { ac_try='test -s conftest$ac_exeext'
   17845   { (case "(($ac_try" in
   17846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17847   *) ac_try_echo=$ac_try;;
   17848 esac
   17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17850   (eval "$ac_try") 2>&5
   17851   ac_status=$?
   17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17853   (exit $ac_status); }; }; then
   17854   ac_cv_lib_gcc___alloca=yes
   17855 else
   17856   echo "$as_me: failed program was:" >&5
   17857 sed 's/^/| /' conftest.$ac_ext >&5
   17858 
   17859 	ac_cv_lib_gcc___alloca=no
   17860 fi
   17861 
   17862 rm -f core conftest.err conftest.$ac_objext \
   17863       conftest$ac_exeext conftest.$ac_ext
   17864 LIBS=$ac_check_lib_save_LIBS
   17865 fi
   17866 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
   17867 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
   17868 if test $ac_cv_lib_gcc___alloca = yes; then
   17869 
   17870 cat >>confdefs.h <<\_ACEOF
   17871 #define HAVE___ALLOCA 1
   17872 _ACEOF
   17873 
   17874 fi
   17875 
   17876   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
   17877 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
   17878 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
   17879   echo $ECHO_N "(cached) $ECHO_C" >&6
   17880 else
   17881   ac_check_lib_save_LIBS=$LIBS
   17882 LIBS="-lgcc  $LIBS"
   17883 cat >conftest.$ac_ext <<_ACEOF
   17884 /* confdefs.h.  */
   17885 _ACEOF
   17886 cat confdefs.h >>conftest.$ac_ext
   17887 cat >>conftest.$ac_ext <<_ACEOF
   17888 /* end confdefs.h.  */
   17889 
   17890 /* Override any GCC internal prototype to avoid an error.
   17891    Use char because int might match the return type of a GCC
   17892    builtin and then its argument prototype would still apply.  */
   17893 #ifdef __cplusplus
   17894 extern "C"
   17895 #endif
   17896 char __chkstk ();
   17897 int
   17898 main ()
   17899 {
   17900 return __chkstk ();
   17901   ;
   17902   return 0;
   17903 }
   17904 _ACEOF
   17905 rm -f conftest.$ac_objext conftest$ac_exeext
   17906 if { (ac_try="$ac_link"
   17907 case "(($ac_try" in
   17908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17909   *) ac_try_echo=$ac_try;;
   17910 esac
   17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17912   (eval "$ac_link") 2>conftest.er1
   17913   ac_status=$?
   17914   grep -v '^ *+' conftest.er1 >conftest.err
   17915   rm -f conftest.er1
   17916   cat conftest.err >&5
   17917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17918   (exit $ac_status); } &&
   17919 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17920   { (case "(($ac_try" in
   17921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17922   *) ac_try_echo=$ac_try;;
   17923 esac
   17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17925   (eval "$ac_try") 2>&5
   17926   ac_status=$?
   17927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17928   (exit $ac_status); }; } &&
   17929 	 { ac_try='test -s conftest$ac_exeext'
   17930   { (case "(($ac_try" in
   17931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17932   *) ac_try_echo=$ac_try;;
   17933 esac
   17934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17935   (eval "$ac_try") 2>&5
   17936   ac_status=$?
   17937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17938   (exit $ac_status); }; }; then
   17939   ac_cv_lib_gcc___chkstk=yes
   17940 else
   17941   echo "$as_me: failed program was:" >&5
   17942 sed 's/^/| /' conftest.$ac_ext >&5
   17943 
   17944 	ac_cv_lib_gcc___chkstk=no
   17945 fi
   17946 
   17947 rm -f core conftest.err conftest.$ac_objext \
   17948       conftest$ac_exeext conftest.$ac_ext
   17949 LIBS=$ac_check_lib_save_LIBS
   17950 fi
   17951 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
   17952 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
   17953 if test $ac_cv_lib_gcc___chkstk = yes; then
   17954 
   17955 cat >>confdefs.h <<\_ACEOF
   17956 #define HAVE___CHKSTK 1
   17957 _ACEOF
   17958 
   17959 fi
   17960 
   17961   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
   17962 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
   17963 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
   17964   echo $ECHO_N "(cached) $ECHO_C" >&6
   17965 else
   17966   ac_check_lib_save_LIBS=$LIBS
   17967 LIBS="-lgcc  $LIBS"
   17968 cat >conftest.$ac_ext <<_ACEOF
   17969 /* confdefs.h.  */
   17970 _ACEOF
   17971 cat confdefs.h >>conftest.$ac_ext
   17972 cat >>conftest.$ac_ext <<_ACEOF
   17973 /* end confdefs.h.  */
   17974 
   17975 /* Override any GCC internal prototype to avoid an error.
   17976    Use char because int might match the return type of a GCC
   17977    builtin and then its argument prototype would still apply.  */
   17978 #ifdef __cplusplus
   17979 extern "C"
   17980 #endif
   17981 char ___chkstk ();
   17982 int
   17983 main ()
   17984 {
   17985 return ___chkstk ();
   17986   ;
   17987   return 0;
   17988 }
   17989 _ACEOF
   17990 rm -f conftest.$ac_objext conftest$ac_exeext
   17991 if { (ac_try="$ac_link"
   17992 case "(($ac_try" in
   17993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17994   *) ac_try_echo=$ac_try;;
   17995 esac
   17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17997   (eval "$ac_link") 2>conftest.er1
   17998   ac_status=$?
   17999   grep -v '^ *+' conftest.er1 >conftest.err
   18000   rm -f conftest.er1
   18001   cat conftest.err >&5
   18002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18003   (exit $ac_status); } &&
   18004 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18005   { (case "(($ac_try" in
   18006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18007   *) ac_try_echo=$ac_try;;
   18008 esac
   18009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18010   (eval "$ac_try") 2>&5
   18011   ac_status=$?
   18012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18013   (exit $ac_status); }; } &&
   18014 	 { ac_try='test -s conftest$ac_exeext'
   18015   { (case "(($ac_try" in
   18016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18017   *) ac_try_echo=$ac_try;;
   18018 esac
   18019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18020   (eval "$ac_try") 2>&5
   18021   ac_status=$?
   18022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18023   (exit $ac_status); }; }; then
   18024   ac_cv_lib_gcc____chkstk=yes
   18025 else
   18026   echo "$as_me: failed program was:" >&5
   18027 sed 's/^/| /' conftest.$ac_ext >&5
   18028 
   18029 	ac_cv_lib_gcc____chkstk=no
   18030 fi
   18031 
   18032 rm -f core conftest.err conftest.$ac_objext \
   18033       conftest$ac_exeext conftest.$ac_ext
   18034 LIBS=$ac_check_lib_save_LIBS
   18035 fi
   18036 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
   18037 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
   18038 if test $ac_cv_lib_gcc____chkstk = yes; then
   18039 
   18040 cat >>confdefs.h <<\_ACEOF
   18041 #define HAVE____CHKSTK 1
   18042 _ACEOF
   18043 
   18044 fi
   18045 
   18046 
   18047   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
   18048 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
   18049 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
   18050   echo $ECHO_N "(cached) $ECHO_C" >&6
   18051 else
   18052   ac_check_lib_save_LIBS=$LIBS
   18053 LIBS="-lgcc  $LIBS"
   18054 cat >conftest.$ac_ext <<_ACEOF
   18055 /* confdefs.h.  */
   18056 _ACEOF
   18057 cat confdefs.h >>conftest.$ac_ext
   18058 cat >>conftest.$ac_ext <<_ACEOF
   18059 /* end confdefs.h.  */
   18060 
   18061 /* Override any GCC internal prototype to avoid an error.
   18062    Use char because int might match the return type of a GCC
   18063    builtin and then its argument prototype would still apply.  */
   18064 #ifdef __cplusplus
   18065 extern "C"
   18066 #endif
   18067 char __ashldi3 ();
   18068 int
   18069 main ()
   18070 {
   18071 return __ashldi3 ();
   18072   ;
   18073   return 0;
   18074 }
   18075 _ACEOF
   18076 rm -f conftest.$ac_objext conftest$ac_exeext
   18077 if { (ac_try="$ac_link"
   18078 case "(($ac_try" in
   18079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18080   *) ac_try_echo=$ac_try;;
   18081 esac
   18082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18083   (eval "$ac_link") 2>conftest.er1
   18084   ac_status=$?
   18085   grep -v '^ *+' conftest.er1 >conftest.err
   18086   rm -f conftest.er1
   18087   cat conftest.err >&5
   18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18089   (exit $ac_status); } &&
   18090 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18091   { (case "(($ac_try" in
   18092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18093   *) ac_try_echo=$ac_try;;
   18094 esac
   18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18096   (eval "$ac_try") 2>&5
   18097   ac_status=$?
   18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18099   (exit $ac_status); }; } &&
   18100 	 { ac_try='test -s conftest$ac_exeext'
   18101   { (case "(($ac_try" in
   18102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18103   *) ac_try_echo=$ac_try;;
   18104 esac
   18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18106   (eval "$ac_try") 2>&5
   18107   ac_status=$?
   18108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18109   (exit $ac_status); }; }; then
   18110   ac_cv_lib_gcc___ashldi3=yes
   18111 else
   18112   echo "$as_me: failed program was:" >&5
   18113 sed 's/^/| /' conftest.$ac_ext >&5
   18114 
   18115 	ac_cv_lib_gcc___ashldi3=no
   18116 fi
   18117 
   18118 rm -f core conftest.err conftest.$ac_objext \
   18119       conftest$ac_exeext conftest.$ac_ext
   18120 LIBS=$ac_check_lib_save_LIBS
   18121 fi
   18122 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
   18123 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
   18124 if test $ac_cv_lib_gcc___ashldi3 = yes; then
   18125 
   18126 cat >>confdefs.h <<\_ACEOF
   18127 #define HAVE___ASHLDI3 1
   18128 _ACEOF
   18129 
   18130 fi
   18131 
   18132   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
   18133 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
   18134 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
   18135   echo $ECHO_N "(cached) $ECHO_C" >&6
   18136 else
   18137   ac_check_lib_save_LIBS=$LIBS
   18138 LIBS="-lgcc  $LIBS"
   18139 cat >conftest.$ac_ext <<_ACEOF
   18140 /* confdefs.h.  */
   18141 _ACEOF
   18142 cat confdefs.h >>conftest.$ac_ext
   18143 cat >>conftest.$ac_ext <<_ACEOF
   18144 /* end confdefs.h.  */
   18145 
   18146 /* Override any GCC internal prototype to avoid an error.
   18147    Use char because int might match the return type of a GCC
   18148    builtin and then its argument prototype would still apply.  */
   18149 #ifdef __cplusplus
   18150 extern "C"
   18151 #endif
   18152 char __ashrdi3 ();
   18153 int
   18154 main ()
   18155 {
   18156 return __ashrdi3 ();
   18157   ;
   18158   return 0;
   18159 }
   18160 _ACEOF
   18161 rm -f conftest.$ac_objext conftest$ac_exeext
   18162 if { (ac_try="$ac_link"
   18163 case "(($ac_try" in
   18164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18165   *) ac_try_echo=$ac_try;;
   18166 esac
   18167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18168   (eval "$ac_link") 2>conftest.er1
   18169   ac_status=$?
   18170   grep -v '^ *+' conftest.er1 >conftest.err
   18171   rm -f conftest.er1
   18172   cat conftest.err >&5
   18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18174   (exit $ac_status); } &&
   18175 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18176   { (case "(($ac_try" in
   18177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18178   *) ac_try_echo=$ac_try;;
   18179 esac
   18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18181   (eval "$ac_try") 2>&5
   18182   ac_status=$?
   18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18184   (exit $ac_status); }; } &&
   18185 	 { ac_try='test -s conftest$ac_exeext'
   18186   { (case "(($ac_try" in
   18187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18188   *) ac_try_echo=$ac_try;;
   18189 esac
   18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18191   (eval "$ac_try") 2>&5
   18192   ac_status=$?
   18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18194   (exit $ac_status); }; }; then
   18195   ac_cv_lib_gcc___ashrdi3=yes
   18196 else
   18197   echo "$as_me: failed program was:" >&5
   18198 sed 's/^/| /' conftest.$ac_ext >&5
   18199 
   18200 	ac_cv_lib_gcc___ashrdi3=no
   18201 fi
   18202 
   18203 rm -f core conftest.err conftest.$ac_objext \
   18204       conftest$ac_exeext conftest.$ac_ext
   18205 LIBS=$ac_check_lib_save_LIBS
   18206 fi
   18207 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
   18208 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
   18209 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
   18210 
   18211 cat >>confdefs.h <<\_ACEOF
   18212 #define HAVE___ASHRDI3 1
   18213 _ACEOF
   18214 
   18215 fi
   18216 
   18217   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
   18218 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
   18219 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
   18220   echo $ECHO_N "(cached) $ECHO_C" >&6
   18221 else
   18222   ac_check_lib_save_LIBS=$LIBS
   18223 LIBS="-lgcc  $LIBS"
   18224 cat >conftest.$ac_ext <<_ACEOF
   18225 /* confdefs.h.  */
   18226 _ACEOF
   18227 cat confdefs.h >>conftest.$ac_ext
   18228 cat >>conftest.$ac_ext <<_ACEOF
   18229 /* end confdefs.h.  */
   18230 
   18231 /* Override any GCC internal prototype to avoid an error.
   18232    Use char because int might match the return type of a GCC
   18233    builtin and then its argument prototype would still apply.  */
   18234 #ifdef __cplusplus
   18235 extern "C"
   18236 #endif
   18237 char __divdi3 ();
   18238 int
   18239 main ()
   18240 {
   18241 return __divdi3 ();
   18242   ;
   18243   return 0;
   18244 }
   18245 _ACEOF
   18246 rm -f conftest.$ac_objext conftest$ac_exeext
   18247 if { (ac_try="$ac_link"
   18248 case "(($ac_try" in
   18249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18250   *) ac_try_echo=$ac_try;;
   18251 esac
   18252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18253   (eval "$ac_link") 2>conftest.er1
   18254   ac_status=$?
   18255   grep -v '^ *+' conftest.er1 >conftest.err
   18256   rm -f conftest.er1
   18257   cat conftest.err >&5
   18258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18259   (exit $ac_status); } &&
   18260 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18261   { (case "(($ac_try" in
   18262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18263   *) ac_try_echo=$ac_try;;
   18264 esac
   18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18266   (eval "$ac_try") 2>&5
   18267   ac_status=$?
   18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18269   (exit $ac_status); }; } &&
   18270 	 { ac_try='test -s conftest$ac_exeext'
   18271   { (case "(($ac_try" in
   18272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18273   *) ac_try_echo=$ac_try;;
   18274 esac
   18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18276   (eval "$ac_try") 2>&5
   18277   ac_status=$?
   18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18279   (exit $ac_status); }; }; then
   18280   ac_cv_lib_gcc___divdi3=yes
   18281 else
   18282   echo "$as_me: failed program was:" >&5
   18283 sed 's/^/| /' conftest.$ac_ext >&5
   18284 
   18285 	ac_cv_lib_gcc___divdi3=no
   18286 fi
   18287 
   18288 rm -f core conftest.err conftest.$ac_objext \
   18289       conftest$ac_exeext conftest.$ac_ext
   18290 LIBS=$ac_check_lib_save_LIBS
   18291 fi
   18292 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
   18293 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
   18294 if test $ac_cv_lib_gcc___divdi3 = yes; then
   18295 
   18296 cat >>confdefs.h <<\_ACEOF
   18297 #define HAVE___DIVDI3 1
   18298 _ACEOF
   18299 
   18300 fi
   18301 
   18302   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
   18303 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
   18304 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
   18305   echo $ECHO_N "(cached) $ECHO_C" >&6
   18306 else
   18307   ac_check_lib_save_LIBS=$LIBS
   18308 LIBS="-lgcc  $LIBS"
   18309 cat >conftest.$ac_ext <<_ACEOF
   18310 /* confdefs.h.  */
   18311 _ACEOF
   18312 cat confdefs.h >>conftest.$ac_ext
   18313 cat >>conftest.$ac_ext <<_ACEOF
   18314 /* end confdefs.h.  */
   18315 
   18316 /* Override any GCC internal prototype to avoid an error.
   18317    Use char because int might match the return type of a GCC
   18318    builtin and then its argument prototype would still apply.  */
   18319 #ifdef __cplusplus
   18320 extern "C"
   18321 #endif
   18322 char __fixdfdi ();
   18323 int
   18324 main ()
   18325 {
   18326 return __fixdfdi ();
   18327   ;
   18328   return 0;
   18329 }
   18330 _ACEOF
   18331 rm -f conftest.$ac_objext conftest$ac_exeext
   18332 if { (ac_try="$ac_link"
   18333 case "(($ac_try" in
   18334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18335   *) ac_try_echo=$ac_try;;
   18336 esac
   18337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18338   (eval "$ac_link") 2>conftest.er1
   18339   ac_status=$?
   18340   grep -v '^ *+' conftest.er1 >conftest.err
   18341   rm -f conftest.er1
   18342   cat conftest.err >&5
   18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18344   (exit $ac_status); } &&
   18345 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18346   { (case "(($ac_try" in
   18347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18348   *) ac_try_echo=$ac_try;;
   18349 esac
   18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18351   (eval "$ac_try") 2>&5
   18352   ac_status=$?
   18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18354   (exit $ac_status); }; } &&
   18355 	 { ac_try='test -s conftest$ac_exeext'
   18356   { (case "(($ac_try" in
   18357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18358   *) ac_try_echo=$ac_try;;
   18359 esac
   18360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18361   (eval "$ac_try") 2>&5
   18362   ac_status=$?
   18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18364   (exit $ac_status); }; }; then
   18365   ac_cv_lib_gcc___fixdfdi=yes
   18366 else
   18367   echo "$as_me: failed program was:" >&5
   18368 sed 's/^/| /' conftest.$ac_ext >&5
   18369 
   18370 	ac_cv_lib_gcc___fixdfdi=no
   18371 fi
   18372 
   18373 rm -f core conftest.err conftest.$ac_objext \
   18374       conftest$ac_exeext conftest.$ac_ext
   18375 LIBS=$ac_check_lib_save_LIBS
   18376 fi
   18377 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
   18378 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
   18379 if test $ac_cv_lib_gcc___fixdfdi = yes; then
   18380 
   18381 cat >>confdefs.h <<\_ACEOF
   18382 #define HAVE___FIXDFDI 1
   18383 _ACEOF
   18384 
   18385 fi
   18386 
   18387   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
   18388 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
   18389 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
   18390   echo $ECHO_N "(cached) $ECHO_C" >&6
   18391 else
   18392   ac_check_lib_save_LIBS=$LIBS
   18393 LIBS="-lgcc  $LIBS"
   18394 cat >conftest.$ac_ext <<_ACEOF
   18395 /* confdefs.h.  */
   18396 _ACEOF
   18397 cat confdefs.h >>conftest.$ac_ext
   18398 cat >>conftest.$ac_ext <<_ACEOF
   18399 /* end confdefs.h.  */
   18400 
   18401 /* Override any GCC internal prototype to avoid an error.
   18402    Use char because int might match the return type of a GCC
   18403    builtin and then its argument prototype would still apply.  */
   18404 #ifdef __cplusplus
   18405 extern "C"
   18406 #endif
   18407 char __fixsfdi ();
   18408 int
   18409 main ()
   18410 {
   18411 return __fixsfdi ();
   18412   ;
   18413   return 0;
   18414 }
   18415 _ACEOF
   18416 rm -f conftest.$ac_objext conftest$ac_exeext
   18417 if { (ac_try="$ac_link"
   18418 case "(($ac_try" in
   18419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18420   *) ac_try_echo=$ac_try;;
   18421 esac
   18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18423   (eval "$ac_link") 2>conftest.er1
   18424   ac_status=$?
   18425   grep -v '^ *+' conftest.er1 >conftest.err
   18426   rm -f conftest.er1
   18427   cat conftest.err >&5
   18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18429   (exit $ac_status); } &&
   18430 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18431   { (case "(($ac_try" in
   18432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18433   *) ac_try_echo=$ac_try;;
   18434 esac
   18435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18436   (eval "$ac_try") 2>&5
   18437   ac_status=$?
   18438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18439   (exit $ac_status); }; } &&
   18440 	 { ac_try='test -s conftest$ac_exeext'
   18441   { (case "(($ac_try" in
   18442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18443   *) ac_try_echo=$ac_try;;
   18444 esac
   18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18446   (eval "$ac_try") 2>&5
   18447   ac_status=$?
   18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18449   (exit $ac_status); }; }; then
   18450   ac_cv_lib_gcc___fixsfdi=yes
   18451 else
   18452   echo "$as_me: failed program was:" >&5
   18453 sed 's/^/| /' conftest.$ac_ext >&5
   18454 
   18455 	ac_cv_lib_gcc___fixsfdi=no
   18456 fi
   18457 
   18458 rm -f core conftest.err conftest.$ac_objext \
   18459       conftest$ac_exeext conftest.$ac_ext
   18460 LIBS=$ac_check_lib_save_LIBS
   18461 fi
   18462 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
   18463 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
   18464 if test $ac_cv_lib_gcc___fixsfdi = yes; then
   18465 
   18466 cat >>confdefs.h <<\_ACEOF
   18467 #define HAVE___FIXSFDI 1
   18468 _ACEOF
   18469 
   18470 fi
   18471 
   18472   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
   18473 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
   18474 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
   18475   echo $ECHO_N "(cached) $ECHO_C" >&6
   18476 else
   18477   ac_check_lib_save_LIBS=$LIBS
   18478 LIBS="-lgcc  $LIBS"
   18479 cat >conftest.$ac_ext <<_ACEOF
   18480 /* confdefs.h.  */
   18481 _ACEOF
   18482 cat confdefs.h >>conftest.$ac_ext
   18483 cat >>conftest.$ac_ext <<_ACEOF
   18484 /* end confdefs.h.  */
   18485 
   18486 /* Override any GCC internal prototype to avoid an error.
   18487    Use char because int might match the return type of a GCC
   18488    builtin and then its argument prototype would still apply.  */
   18489 #ifdef __cplusplus
   18490 extern "C"
   18491 #endif
   18492 char __floatdidf ();
   18493 int
   18494 main ()
   18495 {
   18496 return __floatdidf ();
   18497   ;
   18498   return 0;
   18499 }
   18500 _ACEOF
   18501 rm -f conftest.$ac_objext conftest$ac_exeext
   18502 if { (ac_try="$ac_link"
   18503 case "(($ac_try" in
   18504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18505   *) ac_try_echo=$ac_try;;
   18506 esac
   18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18508   (eval "$ac_link") 2>conftest.er1
   18509   ac_status=$?
   18510   grep -v '^ *+' conftest.er1 >conftest.err
   18511   rm -f conftest.er1
   18512   cat conftest.err >&5
   18513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18514   (exit $ac_status); } &&
   18515 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18516   { (case "(($ac_try" in
   18517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18518   *) ac_try_echo=$ac_try;;
   18519 esac
   18520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18521   (eval "$ac_try") 2>&5
   18522   ac_status=$?
   18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18524   (exit $ac_status); }; } &&
   18525 	 { ac_try='test -s conftest$ac_exeext'
   18526   { (case "(($ac_try" in
   18527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18528   *) ac_try_echo=$ac_try;;
   18529 esac
   18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18531   (eval "$ac_try") 2>&5
   18532   ac_status=$?
   18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18534   (exit $ac_status); }; }; then
   18535   ac_cv_lib_gcc___floatdidf=yes
   18536 else
   18537   echo "$as_me: failed program was:" >&5
   18538 sed 's/^/| /' conftest.$ac_ext >&5
   18539 
   18540 	ac_cv_lib_gcc___floatdidf=no
   18541 fi
   18542 
   18543 rm -f core conftest.err conftest.$ac_objext \
   18544       conftest$ac_exeext conftest.$ac_ext
   18545 LIBS=$ac_check_lib_save_LIBS
   18546 fi
   18547 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
   18548 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
   18549 if test $ac_cv_lib_gcc___floatdidf = yes; then
   18550 
   18551 cat >>confdefs.h <<\_ACEOF
   18552 #define HAVE___FLOATDIDF 1
   18553 _ACEOF
   18554 
   18555 fi
   18556 
   18557   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
   18558 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
   18559 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
   18560   echo $ECHO_N "(cached) $ECHO_C" >&6
   18561 else
   18562   ac_check_lib_save_LIBS=$LIBS
   18563 LIBS="-lgcc  $LIBS"
   18564 cat >conftest.$ac_ext <<_ACEOF
   18565 /* confdefs.h.  */
   18566 _ACEOF
   18567 cat confdefs.h >>conftest.$ac_ext
   18568 cat >>conftest.$ac_ext <<_ACEOF
   18569 /* end confdefs.h.  */
   18570 
   18571 /* Override any GCC internal prototype to avoid an error.
   18572    Use char because int might match the return type of a GCC
   18573    builtin and then its argument prototype would still apply.  */
   18574 #ifdef __cplusplus
   18575 extern "C"
   18576 #endif
   18577 char __lshrdi3 ();
   18578 int
   18579 main ()
   18580 {
   18581 return __lshrdi3 ();
   18582   ;
   18583   return 0;
   18584 }
   18585 _ACEOF
   18586 rm -f conftest.$ac_objext conftest$ac_exeext
   18587 if { (ac_try="$ac_link"
   18588 case "(($ac_try" in
   18589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18590   *) ac_try_echo=$ac_try;;
   18591 esac
   18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18593   (eval "$ac_link") 2>conftest.er1
   18594   ac_status=$?
   18595   grep -v '^ *+' conftest.er1 >conftest.err
   18596   rm -f conftest.er1
   18597   cat conftest.err >&5
   18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18599   (exit $ac_status); } &&
   18600 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18601   { (case "(($ac_try" in
   18602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18603   *) ac_try_echo=$ac_try;;
   18604 esac
   18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18606   (eval "$ac_try") 2>&5
   18607   ac_status=$?
   18608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18609   (exit $ac_status); }; } &&
   18610 	 { ac_try='test -s conftest$ac_exeext'
   18611   { (case "(($ac_try" in
   18612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18613   *) ac_try_echo=$ac_try;;
   18614 esac
   18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18616   (eval "$ac_try") 2>&5
   18617   ac_status=$?
   18618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18619   (exit $ac_status); }; }; then
   18620   ac_cv_lib_gcc___lshrdi3=yes
   18621 else
   18622   echo "$as_me: failed program was:" >&5
   18623 sed 's/^/| /' conftest.$ac_ext >&5
   18624 
   18625 	ac_cv_lib_gcc___lshrdi3=no
   18626 fi
   18627 
   18628 rm -f core conftest.err conftest.$ac_objext \
   18629       conftest$ac_exeext conftest.$ac_ext
   18630 LIBS=$ac_check_lib_save_LIBS
   18631 fi
   18632 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
   18633 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
   18634 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
   18635 
   18636 cat >>confdefs.h <<\_ACEOF
   18637 #define HAVE___LSHRDI3 1
   18638 _ACEOF
   18639 
   18640 fi
   18641 
   18642   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
   18643 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
   18644 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
   18645   echo $ECHO_N "(cached) $ECHO_C" >&6
   18646 else
   18647   ac_check_lib_save_LIBS=$LIBS
   18648 LIBS="-lgcc  $LIBS"
   18649 cat >conftest.$ac_ext <<_ACEOF
   18650 /* confdefs.h.  */
   18651 _ACEOF
   18652 cat confdefs.h >>conftest.$ac_ext
   18653 cat >>conftest.$ac_ext <<_ACEOF
   18654 /* end confdefs.h.  */
   18655 
   18656 /* Override any GCC internal prototype to avoid an error.
   18657    Use char because int might match the return type of a GCC
   18658    builtin and then its argument prototype would still apply.  */
   18659 #ifdef __cplusplus
   18660 extern "C"
   18661 #endif
   18662 char __moddi3 ();
   18663 int
   18664 main ()
   18665 {
   18666 return __moddi3 ();
   18667   ;
   18668   return 0;
   18669 }
   18670 _ACEOF
   18671 rm -f conftest.$ac_objext conftest$ac_exeext
   18672 if { (ac_try="$ac_link"
   18673 case "(($ac_try" in
   18674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18675   *) ac_try_echo=$ac_try;;
   18676 esac
   18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18678   (eval "$ac_link") 2>conftest.er1
   18679   ac_status=$?
   18680   grep -v '^ *+' conftest.er1 >conftest.err
   18681   rm -f conftest.er1
   18682   cat conftest.err >&5
   18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18684   (exit $ac_status); } &&
   18685 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18686   { (case "(($ac_try" in
   18687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18688   *) ac_try_echo=$ac_try;;
   18689 esac
   18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18691   (eval "$ac_try") 2>&5
   18692   ac_status=$?
   18693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18694   (exit $ac_status); }; } &&
   18695 	 { ac_try='test -s conftest$ac_exeext'
   18696   { (case "(($ac_try" in
   18697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18698   *) ac_try_echo=$ac_try;;
   18699 esac
   18700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18701   (eval "$ac_try") 2>&5
   18702   ac_status=$?
   18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18704   (exit $ac_status); }; }; then
   18705   ac_cv_lib_gcc___moddi3=yes
   18706 else
   18707   echo "$as_me: failed program was:" >&5
   18708 sed 's/^/| /' conftest.$ac_ext >&5
   18709 
   18710 	ac_cv_lib_gcc___moddi3=no
   18711 fi
   18712 
   18713 rm -f core conftest.err conftest.$ac_objext \
   18714       conftest$ac_exeext conftest.$ac_ext
   18715 LIBS=$ac_check_lib_save_LIBS
   18716 fi
   18717 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
   18718 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
   18719 if test $ac_cv_lib_gcc___moddi3 = yes; then
   18720 
   18721 cat >>confdefs.h <<\_ACEOF
   18722 #define HAVE___MODDI3 1
   18723 _ACEOF
   18724 
   18725 fi
   18726 
   18727   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
   18728 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
   18729 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
   18730   echo $ECHO_N "(cached) $ECHO_C" >&6
   18731 else
   18732   ac_check_lib_save_LIBS=$LIBS
   18733 LIBS="-lgcc  $LIBS"
   18734 cat >conftest.$ac_ext <<_ACEOF
   18735 /* confdefs.h.  */
   18736 _ACEOF
   18737 cat confdefs.h >>conftest.$ac_ext
   18738 cat >>conftest.$ac_ext <<_ACEOF
   18739 /* end confdefs.h.  */
   18740 
   18741 /* Override any GCC internal prototype to avoid an error.
   18742    Use char because int might match the return type of a GCC
   18743    builtin and then its argument prototype would still apply.  */
   18744 #ifdef __cplusplus
   18745 extern "C"
   18746 #endif
   18747 char __udivdi3 ();
   18748 int
   18749 main ()
   18750 {
   18751 return __udivdi3 ();
   18752   ;
   18753   return 0;
   18754 }
   18755 _ACEOF
   18756 rm -f conftest.$ac_objext conftest$ac_exeext
   18757 if { (ac_try="$ac_link"
   18758 case "(($ac_try" in
   18759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18760   *) ac_try_echo=$ac_try;;
   18761 esac
   18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18763   (eval "$ac_link") 2>conftest.er1
   18764   ac_status=$?
   18765   grep -v '^ *+' conftest.er1 >conftest.err
   18766   rm -f conftest.er1
   18767   cat conftest.err >&5
   18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18769   (exit $ac_status); } &&
   18770 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18771   { (case "(($ac_try" in
   18772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18773   *) ac_try_echo=$ac_try;;
   18774 esac
   18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18776   (eval "$ac_try") 2>&5
   18777   ac_status=$?
   18778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18779   (exit $ac_status); }; } &&
   18780 	 { ac_try='test -s conftest$ac_exeext'
   18781   { (case "(($ac_try" in
   18782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18783   *) ac_try_echo=$ac_try;;
   18784 esac
   18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18786   (eval "$ac_try") 2>&5
   18787   ac_status=$?
   18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18789   (exit $ac_status); }; }; then
   18790   ac_cv_lib_gcc___udivdi3=yes
   18791 else
   18792   echo "$as_me: failed program was:" >&5
   18793 sed 's/^/| /' conftest.$ac_ext >&5
   18794 
   18795 	ac_cv_lib_gcc___udivdi3=no
   18796 fi
   18797 
   18798 rm -f core conftest.err conftest.$ac_objext \
   18799       conftest$ac_exeext conftest.$ac_ext
   18800 LIBS=$ac_check_lib_save_LIBS
   18801 fi
   18802 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
   18803 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
   18804 if test $ac_cv_lib_gcc___udivdi3 = yes; then
   18805 
   18806 cat >>confdefs.h <<\_ACEOF
   18807 #define HAVE___UDIVDI3 1
   18808 _ACEOF
   18809 
   18810 fi
   18811 
   18812   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
   18813 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
   18814 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
   18815   echo $ECHO_N "(cached) $ECHO_C" >&6
   18816 else
   18817   ac_check_lib_save_LIBS=$LIBS
   18818 LIBS="-lgcc  $LIBS"
   18819 cat >conftest.$ac_ext <<_ACEOF
   18820 /* confdefs.h.  */
   18821 _ACEOF
   18822 cat confdefs.h >>conftest.$ac_ext
   18823 cat >>conftest.$ac_ext <<_ACEOF
   18824 /* end confdefs.h.  */
   18825 
   18826 /* Override any GCC internal prototype to avoid an error.
   18827    Use char because int might match the return type of a GCC
   18828    builtin and then its argument prototype would still apply.  */
   18829 #ifdef __cplusplus
   18830 extern "C"
   18831 #endif
   18832 char __umoddi3 ();
   18833 int
   18834 main ()
   18835 {
   18836 return __umoddi3 ();
   18837   ;
   18838   return 0;
   18839 }
   18840 _ACEOF
   18841 rm -f conftest.$ac_objext conftest$ac_exeext
   18842 if { (ac_try="$ac_link"
   18843 case "(($ac_try" in
   18844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18845   *) ac_try_echo=$ac_try;;
   18846 esac
   18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18848   (eval "$ac_link") 2>conftest.er1
   18849   ac_status=$?
   18850   grep -v '^ *+' conftest.er1 >conftest.err
   18851   rm -f conftest.er1
   18852   cat conftest.err >&5
   18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18854   (exit $ac_status); } &&
   18855 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18856   { (case "(($ac_try" in
   18857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18858   *) ac_try_echo=$ac_try;;
   18859 esac
   18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18861   (eval "$ac_try") 2>&5
   18862   ac_status=$?
   18863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18864   (exit $ac_status); }; } &&
   18865 	 { ac_try='test -s conftest$ac_exeext'
   18866   { (case "(($ac_try" in
   18867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18868   *) ac_try_echo=$ac_try;;
   18869 esac
   18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18871   (eval "$ac_try") 2>&5
   18872   ac_status=$?
   18873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18874   (exit $ac_status); }; }; then
   18875   ac_cv_lib_gcc___umoddi3=yes
   18876 else
   18877   echo "$as_me: failed program was:" >&5
   18878 sed 's/^/| /' conftest.$ac_ext >&5
   18879 
   18880 	ac_cv_lib_gcc___umoddi3=no
   18881 fi
   18882 
   18883 rm -f core conftest.err conftest.$ac_objext \
   18884       conftest$ac_exeext conftest.$ac_ext
   18885 LIBS=$ac_check_lib_save_LIBS
   18886 fi
   18887 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
   18888 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
   18889 if test $ac_cv_lib_gcc___umoddi3 = yes; then
   18890 
   18891 cat >>confdefs.h <<\_ACEOF
   18892 #define HAVE___UMODDI3 1
   18893 _ACEOF
   18894 
   18895 fi
   18896 
   18897 
   18898   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
   18899 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
   18900 if test "${ac_cv_lib_gcc___main+set}" = set; then
   18901   echo $ECHO_N "(cached) $ECHO_C" >&6
   18902 else
   18903   ac_check_lib_save_LIBS=$LIBS
   18904 LIBS="-lgcc  $LIBS"
   18905 cat >conftest.$ac_ext <<_ACEOF
   18906 /* confdefs.h.  */
   18907 _ACEOF
   18908 cat confdefs.h >>conftest.$ac_ext
   18909 cat >>conftest.$ac_ext <<_ACEOF
   18910 /* end confdefs.h.  */
   18911 
   18912 /* Override any GCC internal prototype to avoid an error.
   18913    Use char because int might match the return type of a GCC
   18914    builtin and then its argument prototype would still apply.  */
   18915 #ifdef __cplusplus
   18916 extern "C"
   18917 #endif
   18918 char __main ();
   18919 int
   18920 main ()
   18921 {
   18922 return __main ();
   18923   ;
   18924   return 0;
   18925 }
   18926 _ACEOF
   18927 rm -f conftest.$ac_objext conftest$ac_exeext
   18928 if { (ac_try="$ac_link"
   18929 case "(($ac_try" in
   18930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18931   *) ac_try_echo=$ac_try;;
   18932 esac
   18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18934   (eval "$ac_link") 2>conftest.er1
   18935   ac_status=$?
   18936   grep -v '^ *+' conftest.er1 >conftest.err
   18937   rm -f conftest.er1
   18938   cat conftest.err >&5
   18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18940   (exit $ac_status); } &&
   18941 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18942   { (case "(($ac_try" in
   18943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18944   *) ac_try_echo=$ac_try;;
   18945 esac
   18946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18947   (eval "$ac_try") 2>&5
   18948   ac_status=$?
   18949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18950   (exit $ac_status); }; } &&
   18951 	 { ac_try='test -s conftest$ac_exeext'
   18952   { (case "(($ac_try" in
   18953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18954   *) ac_try_echo=$ac_try;;
   18955 esac
   18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18957   (eval "$ac_try") 2>&5
   18958   ac_status=$?
   18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18960   (exit $ac_status); }; }; then
   18961   ac_cv_lib_gcc___main=yes
   18962 else
   18963   echo "$as_me: failed program was:" >&5
   18964 sed 's/^/| /' conftest.$ac_ext >&5
   18965 
   18966 	ac_cv_lib_gcc___main=no
   18967 fi
   18968 
   18969 rm -f core conftest.err conftest.$ac_objext \
   18970       conftest$ac_exeext conftest.$ac_ext
   18971 LIBS=$ac_check_lib_save_LIBS
   18972 fi
   18973 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
   18974 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
   18975 if test $ac_cv_lib_gcc___main = yes; then
   18976 
   18977 cat >>confdefs.h <<\_ACEOF
   18978 #define HAVE___MAIN 1
   18979 _ACEOF
   18980 
   18981 fi
   18982 
   18983   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
   18984 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
   18985 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
   18986   echo $ECHO_N "(cached) $ECHO_C" >&6
   18987 else
   18988   ac_check_lib_save_LIBS=$LIBS
   18989 LIBS="-lgcc  $LIBS"
   18990 cat >conftest.$ac_ext <<_ACEOF
   18991 /* confdefs.h.  */
   18992 _ACEOF
   18993 cat confdefs.h >>conftest.$ac_ext
   18994 cat >>conftest.$ac_ext <<_ACEOF
   18995 /* end confdefs.h.  */
   18996 
   18997 /* Override any GCC internal prototype to avoid an error.
   18998    Use char because int might match the return type of a GCC
   18999    builtin and then its argument prototype would still apply.  */
   19000 #ifdef __cplusplus
   19001 extern "C"
   19002 #endif
   19003 char __cmpdi2 ();
   19004 int
   19005 main ()
   19006 {
   19007 return __cmpdi2 ();
   19008   ;
   19009   return 0;
   19010 }
   19011 _ACEOF
   19012 rm -f conftest.$ac_objext conftest$ac_exeext
   19013 if { (ac_try="$ac_link"
   19014 case "(($ac_try" in
   19015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19016   *) ac_try_echo=$ac_try;;
   19017 esac
   19018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19019   (eval "$ac_link") 2>conftest.er1
   19020   ac_status=$?
   19021   grep -v '^ *+' conftest.er1 >conftest.err
   19022   rm -f conftest.er1
   19023   cat conftest.err >&5
   19024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19025   (exit $ac_status); } &&
   19026 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19027   { (case "(($ac_try" in
   19028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19029   *) ac_try_echo=$ac_try;;
   19030 esac
   19031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19032   (eval "$ac_try") 2>&5
   19033   ac_status=$?
   19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19035   (exit $ac_status); }; } &&
   19036 	 { ac_try='test -s conftest$ac_exeext'
   19037   { (case "(($ac_try" in
   19038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19039   *) ac_try_echo=$ac_try;;
   19040 esac
   19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19042   (eval "$ac_try") 2>&5
   19043   ac_status=$?
   19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19045   (exit $ac_status); }; }; then
   19046   ac_cv_lib_gcc___cmpdi2=yes
   19047 else
   19048   echo "$as_me: failed program was:" >&5
   19049 sed 's/^/| /' conftest.$ac_ext >&5
   19050 
   19051 	ac_cv_lib_gcc___cmpdi2=no
   19052 fi
   19053 
   19054 rm -f core conftest.err conftest.$ac_objext \
   19055       conftest$ac_exeext conftest.$ac_ext
   19056 LIBS=$ac_check_lib_save_LIBS
   19057 fi
   19058 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
   19059 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
   19060 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
   19061 
   19062 cat >>confdefs.h <<\_ACEOF
   19063 #define HAVE___CMPDI2 1
   19064 _ACEOF
   19065 
   19066 fi
   19067 
   19068 fi
   19069 
   19070 if test "$llvm_cv_os_type" = "MingW" ; then
   19071   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
   19072 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
   19073   cat >conftest.$ac_ext <<_ACEOF
   19074 #include <windows.h>
   19075 #include <imagehlp.h>
   19076 extern void foo(PENUMLOADED_MODULES_CALLBACK);
   19077 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
   19078 _ACEOF
   19079 rm -f conftest.$ac_objext
   19080 if { (ac_try="$ac_compile"
   19081 case "(($ac_try" in
   19082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19083   *) ac_try_echo=$ac_try;;
   19084 esac
   19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19086   (eval "$ac_compile") 2>conftest.er1
   19087   ac_status=$?
   19088   grep -v '^ *+' conftest.er1 >conftest.err
   19089   rm -f conftest.er1
   19090   cat conftest.err >&5
   19091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19092   (exit $ac_status); } &&
   19093 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19094   { (case "(($ac_try" in
   19095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19096   *) ac_try_echo=$ac_try;;
   19097 esac
   19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19099   (eval "$ac_try") 2>&5
   19100   ac_status=$?
   19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19102   (exit $ac_status); }; } &&
   19103 	 { ac_try='test -s conftest.$ac_objext'
   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); }; }; then
   19113 
   19114   { echo "$as_me:$LINENO: result: yes" >&5
   19115 echo "${ECHO_T}yes" >&6; }
   19116   llvm_cv_win32_elmcb_pcstr="PCSTR"
   19117 
   19118 else
   19119   echo "$as_me: failed program was:" >&5
   19120 sed 's/^/| /' conftest.$ac_ext >&5
   19121 
   19122 
   19123   { echo "$as_me:$LINENO: result: no" >&5
   19124 echo "${ECHO_T}no" >&6; }
   19125   llvm_cv_win32_elmcb_pcstr="PSTR"
   19126 
   19127 fi
   19128 
   19129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19130 
   19131 cat >>confdefs.h <<_ACEOF
   19132 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
   19133 _ACEOF
   19134 
   19135 fi
   19136 
   19137 
   19138 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
   19139 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
   19140 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
   19141   echo $ECHO_N "(cached) $ECHO_C" >&6
   19142 else
   19143   ac_ext=cpp
   19144 ac_cpp='$CXXCPP $CPPFLAGS'
   19145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19148 
   19149    cat >conftest.$ac_ext <<_ACEOF
   19150 /* confdefs.h.  */
   19151 _ACEOF
   19152 cat confdefs.h >>conftest.$ac_ext
   19153 cat >>conftest.$ac_ext <<_ACEOF
   19154 /* end confdefs.h.  */
   19155 #include <math.h>
   19156 int
   19157 main ()
   19158 {
   19159 float f; isnan(f);
   19160   ;
   19161   return 0;
   19162 }
   19163 _ACEOF
   19164 rm -f conftest.$ac_objext
   19165 if { (ac_try="$ac_compile"
   19166 case "(($ac_try" in
   19167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19168   *) ac_try_echo=$ac_try;;
   19169 esac
   19170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19171   (eval "$ac_compile") 2>conftest.er1
   19172   ac_status=$?
   19173   grep -v '^ *+' conftest.er1 >conftest.err
   19174   rm -f conftest.er1
   19175   cat conftest.err >&5
   19176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19177   (exit $ac_status); } &&
   19178 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19179   { (case "(($ac_try" in
   19180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19181   *) ac_try_echo=$ac_try;;
   19182 esac
   19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19184   (eval "$ac_try") 2>&5
   19185   ac_status=$?
   19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19187   (exit $ac_status); }; } &&
   19188 	 { ac_try='test -s conftest.$ac_objext'
   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); }; }; then
   19198   ac_cv_func_isnan_in_math_h=yes
   19199 else
   19200   echo "$as_me: failed program was:" >&5
   19201 sed 's/^/| /' conftest.$ac_ext >&5
   19202 
   19203 	ac_cv_func_isnan_in_math_h=no
   19204 fi
   19205 
   19206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19207   ac_ext=c
   19208 ac_cpp='$CPP $CPPFLAGS'
   19209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19212 
   19213 fi
   19214 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
   19215 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
   19216 
   19217 
   19218 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
   19219 
   19220 cat >>confdefs.h <<\_ACEOF
   19221 #define HAVE_ISNAN_IN_MATH_H 1
   19222 _ACEOF
   19223 
   19224 fi
   19225 
   19226 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
   19227 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
   19228 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
   19229   echo $ECHO_N "(cached) $ECHO_C" >&6
   19230 else
   19231   ac_ext=cpp
   19232 ac_cpp='$CXXCPP $CPPFLAGS'
   19233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19236 
   19237    cat >conftest.$ac_ext <<_ACEOF
   19238 /* confdefs.h.  */
   19239 _ACEOF
   19240 cat confdefs.h >>conftest.$ac_ext
   19241 cat >>conftest.$ac_ext <<_ACEOF
   19242 /* end confdefs.h.  */
   19243 #include <cmath>
   19244 int
   19245 main ()
   19246 {
   19247 float f; isnan(f);
   19248   ;
   19249   return 0;
   19250 }
   19251 _ACEOF
   19252 rm -f conftest.$ac_objext
   19253 if { (ac_try="$ac_compile"
   19254 case "(($ac_try" in
   19255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19256   *) ac_try_echo=$ac_try;;
   19257 esac
   19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19259   (eval "$ac_compile") 2>conftest.er1
   19260   ac_status=$?
   19261   grep -v '^ *+' conftest.er1 >conftest.err
   19262   rm -f conftest.er1
   19263   cat conftest.err >&5
   19264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19265   (exit $ac_status); } &&
   19266 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19267   { (case "(($ac_try" in
   19268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19269   *) ac_try_echo=$ac_try;;
   19270 esac
   19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19272   (eval "$ac_try") 2>&5
   19273   ac_status=$?
   19274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19275   (exit $ac_status); }; } &&
   19276 	 { ac_try='test -s conftest.$ac_objext'
   19277   { (case "(($ac_try" in
   19278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19279   *) ac_try_echo=$ac_try;;
   19280 esac
   19281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19282   (eval "$ac_try") 2>&5
   19283   ac_status=$?
   19284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19285   (exit $ac_status); }; }; then
   19286   ac_cv_func_isnan_in_cmath=yes
   19287 else
   19288   echo "$as_me: failed program was:" >&5
   19289 sed 's/^/| /' conftest.$ac_ext >&5
   19290 
   19291 	ac_cv_func_isnan_in_cmath=no
   19292 fi
   19293 
   19294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19295   ac_ext=c
   19296 ac_cpp='$CPP $CPPFLAGS'
   19297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19300 
   19301 fi
   19302 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
   19303 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
   19304 
   19305 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
   19306 
   19307 cat >>confdefs.h <<\_ACEOF
   19308 #define HAVE_ISNAN_IN_CMATH 1
   19309 _ACEOF
   19310 
   19311 fi
   19312 
   19313 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
   19314 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
   19315 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
   19316   echo $ECHO_N "(cached) $ECHO_C" >&6
   19317 else
   19318   ac_ext=cpp
   19319 ac_cpp='$CXXCPP $CPPFLAGS'
   19320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19323 
   19324    cat >conftest.$ac_ext <<_ACEOF
   19325 /* confdefs.h.  */
   19326 _ACEOF
   19327 cat confdefs.h >>conftest.$ac_ext
   19328 cat >>conftest.$ac_ext <<_ACEOF
   19329 /* end confdefs.h.  */
   19330 #include <cmath>
   19331 int
   19332 main ()
   19333 {
   19334 float f; std::isnan(f);
   19335   ;
   19336   return 0;
   19337 }
   19338 _ACEOF
   19339 rm -f conftest.$ac_objext
   19340 if { (ac_try="$ac_compile"
   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_compile") 2>conftest.er1
   19347   ac_status=$?
   19348   grep -v '^ *+' conftest.er1 >conftest.err
   19349   rm -f conftest.er1
   19350   cat conftest.err >&5
   19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19352   (exit $ac_status); } &&
   19353 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19354   { (case "(($ac_try" in
   19355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19356   *) ac_try_echo=$ac_try;;
   19357 esac
   19358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19359   (eval "$ac_try") 2>&5
   19360   ac_status=$?
   19361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19362   (exit $ac_status); }; } &&
   19363 	 { ac_try='test -s conftest.$ac_objext'
   19364   { (case "(($ac_try" in
   19365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19366   *) ac_try_echo=$ac_try;;
   19367 esac
   19368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19369   (eval "$ac_try") 2>&5
   19370   ac_status=$?
   19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19372   (exit $ac_status); }; }; then
   19373   ac_cv_func_std_isnan_in_cmath=yes
   19374 else
   19375   echo "$as_me: failed program was:" >&5
   19376 sed 's/^/| /' conftest.$ac_ext >&5
   19377 
   19378 	ac_cv_func_std_isnan_in_cmath=no
   19379 fi
   19380 
   19381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19382   ac_ext=c
   19383 ac_cpp='$CPP $CPPFLAGS'
   19384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19387 
   19388 fi
   19389 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
   19390 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
   19391 
   19392 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
   19393 
   19394 cat >>confdefs.h <<\_ACEOF
   19395 #define HAVE_STD_ISNAN_IN_CMATH 1
   19396 _ACEOF
   19397 
   19398 fi
   19399 
   19400 
   19401 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
   19402 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
   19403 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
   19404   echo $ECHO_N "(cached) $ECHO_C" >&6
   19405 else
   19406   ac_ext=cpp
   19407 ac_cpp='$CXXCPP $CPPFLAGS'
   19408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19411 
   19412    cat >conftest.$ac_ext <<_ACEOF
   19413 /* confdefs.h.  */
   19414 _ACEOF
   19415 cat confdefs.h >>conftest.$ac_ext
   19416 cat >>conftest.$ac_ext <<_ACEOF
   19417 /* end confdefs.h.  */
   19418 #include <math.h>
   19419 int
   19420 main ()
   19421 {
   19422 float f; isinf(f);
   19423   ;
   19424   return 0;
   19425 }
   19426 _ACEOF
   19427 rm -f conftest.$ac_objext
   19428 if { (ac_try="$ac_compile"
   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_compile") 2>conftest.er1
   19435   ac_status=$?
   19436   grep -v '^ *+' conftest.er1 >conftest.err
   19437   rm -f conftest.er1
   19438   cat conftest.err >&5
   19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19440   (exit $ac_status); } &&
   19441 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19442   { (case "(($ac_try" in
   19443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19444   *) ac_try_echo=$ac_try;;
   19445 esac
   19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19447   (eval "$ac_try") 2>&5
   19448   ac_status=$?
   19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19450   (exit $ac_status); }; } &&
   19451 	 { ac_try='test -s conftest.$ac_objext'
   19452   { (case "(($ac_try" in
   19453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19454   *) ac_try_echo=$ac_try;;
   19455 esac
   19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19457   (eval "$ac_try") 2>&5
   19458   ac_status=$?
   19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19460   (exit $ac_status); }; }; then
   19461   ac_cv_func_isinf_in_math_h=yes
   19462 else
   19463   echo "$as_me: failed program was:" >&5
   19464 sed 's/^/| /' conftest.$ac_ext >&5
   19465 
   19466 	ac_cv_func_isinf_in_math_h=no
   19467 fi
   19468 
   19469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19470   ac_ext=c
   19471 ac_cpp='$CPP $CPPFLAGS'
   19472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19475 
   19476 fi
   19477 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
   19478 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
   19479 
   19480 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
   19481 
   19482 cat >>confdefs.h <<\_ACEOF
   19483 #define HAVE_ISINF_IN_MATH_H 1
   19484 _ACEOF
   19485 
   19486 fi
   19487 
   19488 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
   19489 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
   19490 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
   19491   echo $ECHO_N "(cached) $ECHO_C" >&6
   19492 else
   19493   ac_ext=cpp
   19494 ac_cpp='$CXXCPP $CPPFLAGS'
   19495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19498 
   19499    cat >conftest.$ac_ext <<_ACEOF
   19500 /* confdefs.h.  */
   19501 _ACEOF
   19502 cat confdefs.h >>conftest.$ac_ext
   19503 cat >>conftest.$ac_ext <<_ACEOF
   19504 /* end confdefs.h.  */
   19505 #include <cmath>
   19506 int
   19507 main ()
   19508 {
   19509 float f; isinf(f);
   19510   ;
   19511   return 0;
   19512 }
   19513 _ACEOF
   19514 rm -f conftest.$ac_objext
   19515 if { (ac_try="$ac_compile"
   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_compile") 2>conftest.er1
   19522   ac_status=$?
   19523   grep -v '^ *+' conftest.er1 >conftest.err
   19524   rm -f conftest.er1
   19525   cat conftest.err >&5
   19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19527   (exit $ac_status); } &&
   19528 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19529   { (case "(($ac_try" in
   19530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19531   *) ac_try_echo=$ac_try;;
   19532 esac
   19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19534   (eval "$ac_try") 2>&5
   19535   ac_status=$?
   19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19537   (exit $ac_status); }; } &&
   19538 	 { ac_try='test -s conftest.$ac_objext'
   19539   { (case "(($ac_try" in
   19540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19541   *) ac_try_echo=$ac_try;;
   19542 esac
   19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19544   (eval "$ac_try") 2>&5
   19545   ac_status=$?
   19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19547   (exit $ac_status); }; }; then
   19548   ac_cv_func_isinf_in_cmath=yes
   19549 else
   19550   echo "$as_me: failed program was:" >&5
   19551 sed 's/^/| /' conftest.$ac_ext >&5
   19552 
   19553 	ac_cv_func_isinf_in_cmath=no
   19554 fi
   19555 
   19556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19557   ac_ext=c
   19558 ac_cpp='$CPP $CPPFLAGS'
   19559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19562 
   19563 fi
   19564 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
   19565 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
   19566 
   19567 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
   19568 
   19569 cat >>confdefs.h <<\_ACEOF
   19570 #define HAVE_ISINF_IN_CMATH 1
   19571 _ACEOF
   19572 
   19573 fi
   19574 
   19575 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
   19576 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
   19577 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
   19578   echo $ECHO_N "(cached) $ECHO_C" >&6
   19579 else
   19580   ac_ext=cpp
   19581 ac_cpp='$CXXCPP $CPPFLAGS'
   19582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19585 
   19586    cat >conftest.$ac_ext <<_ACEOF
   19587 /* confdefs.h.  */
   19588 _ACEOF
   19589 cat confdefs.h >>conftest.$ac_ext
   19590 cat >>conftest.$ac_ext <<_ACEOF
   19591 /* end confdefs.h.  */
   19592 #include <cmath>
   19593 int
   19594 main ()
   19595 {
   19596 float f; std::isinf(f);
   19597   ;
   19598   return 0;
   19599 }
   19600 _ACEOF
   19601 rm -f conftest.$ac_objext
   19602 if { (ac_try="$ac_compile"
   19603 case "(($ac_try" in
   19604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19605   *) ac_try_echo=$ac_try;;
   19606 esac
   19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19608   (eval "$ac_compile") 2>conftest.er1
   19609   ac_status=$?
   19610   grep -v '^ *+' conftest.er1 >conftest.err
   19611   rm -f conftest.er1
   19612   cat conftest.err >&5
   19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19614   (exit $ac_status); } &&
   19615 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19616   { (case "(($ac_try" in
   19617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19618   *) ac_try_echo=$ac_try;;
   19619 esac
   19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19621   (eval "$ac_try") 2>&5
   19622   ac_status=$?
   19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19624   (exit $ac_status); }; } &&
   19625 	 { ac_try='test -s conftest.$ac_objext'
   19626   { (case "(($ac_try" in
   19627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19628   *) ac_try_echo=$ac_try;;
   19629 esac
   19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19631   (eval "$ac_try") 2>&5
   19632   ac_status=$?
   19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19634   (exit $ac_status); }; }; then
   19635   ac_cv_func_std_isinf_in_cmath=yes
   19636 else
   19637   echo "$as_me: failed program was:" >&5
   19638 sed 's/^/| /' conftest.$ac_ext >&5
   19639 
   19640 	ac_cv_func_std_isinf_in_cmath=no
   19641 fi
   19642 
   19643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19644   ac_ext=c
   19645 ac_cpp='$CPP $CPPFLAGS'
   19646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19649 
   19650 fi
   19651 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
   19652 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
   19653 
   19654 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
   19655 
   19656 cat >>confdefs.h <<\_ACEOF
   19657 #define HAVE_STD_ISINF_IN_CMATH 1
   19658 _ACEOF
   19659 
   19660 fi
   19661 
   19662 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
   19663 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
   19664 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
   19665   echo $ECHO_N "(cached) $ECHO_C" >&6
   19666 else
   19667   ac_ext=cpp
   19668 ac_cpp='$CXXCPP $CPPFLAGS'
   19669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19672 
   19673    cat >conftest.$ac_ext <<_ACEOF
   19674 /* confdefs.h.  */
   19675 _ACEOF
   19676 cat confdefs.h >>conftest.$ac_ext
   19677 cat >>conftest.$ac_ext <<_ACEOF
   19678 /* end confdefs.h.  */
   19679 #include <ieeefp.h>
   19680 int
   19681 main ()
   19682 {
   19683 float f; finite(f);
   19684   ;
   19685   return 0;
   19686 }
   19687 _ACEOF
   19688 rm -f conftest.$ac_objext
   19689 if { (ac_try="$ac_compile"
   19690 case "(($ac_try" in
   19691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19692   *) ac_try_echo=$ac_try;;
   19693 esac
   19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19695   (eval "$ac_compile") 2>conftest.er1
   19696   ac_status=$?
   19697   grep -v '^ *+' conftest.er1 >conftest.err
   19698   rm -f conftest.er1
   19699   cat conftest.err >&5
   19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19701   (exit $ac_status); } &&
   19702 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19703   { (case "(($ac_try" in
   19704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19705   *) ac_try_echo=$ac_try;;
   19706 esac
   19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19708   (eval "$ac_try") 2>&5
   19709   ac_status=$?
   19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19711   (exit $ac_status); }; } &&
   19712 	 { ac_try='test -s conftest.$ac_objext'
   19713   { (case "(($ac_try" in
   19714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19715   *) ac_try_echo=$ac_try;;
   19716 esac
   19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19718   (eval "$ac_try") 2>&5
   19719   ac_status=$?
   19720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19721   (exit $ac_status); }; }; then
   19722   ac_cv_func_finite_in_ieeefp_h=yes
   19723 else
   19724   echo "$as_me: failed program was:" >&5
   19725 sed 's/^/| /' conftest.$ac_ext >&5
   19726 
   19727 	ac_cv_func_finite_in_ieeefp_h=no
   19728 fi
   19729 
   19730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19731   ac_ext=c
   19732 ac_cpp='$CPP $CPPFLAGS'
   19733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19736 
   19737 fi
   19738 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
   19739 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
   19740 
   19741 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
   19742 
   19743 cat >>confdefs.h <<\_ACEOF
   19744 #define HAVE_FINITE_IN_IEEEFP_H 1
   19745 _ACEOF
   19746 
   19747 fi
   19748 
   19749 
   19750 
   19751 if test "$llvm_cv_platform_type" = "Unix" ; then
   19752 
   19753 
   19754 for ac_header in stdlib.h unistd.h
   19755 do
   19756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   19757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19758   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   19759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   19760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19761   echo $ECHO_N "(cached) $ECHO_C" >&6
   19762 fi
   19763 ac_res=`eval echo '${'$as_ac_Header'}'`
   19764 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   19765 echo "${ECHO_T}$ac_res" >&6; }
   19766 else
   19767   # Is the header compilable?
   19768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   19769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   19770 cat >conftest.$ac_ext <<_ACEOF
   19771 /* confdefs.h.  */
   19772 _ACEOF
   19773 cat confdefs.h >>conftest.$ac_ext
   19774 cat >>conftest.$ac_ext <<_ACEOF
   19775 /* end confdefs.h.  */
   19776 $ac_includes_default
   19777 #include <$ac_header>
   19778 _ACEOF
   19779 rm -f conftest.$ac_objext
   19780 if { (ac_try="$ac_compile"
   19781 case "(($ac_try" in
   19782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19783   *) ac_try_echo=$ac_try;;
   19784 esac
   19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19786   (eval "$ac_compile") 2>conftest.er1
   19787   ac_status=$?
   19788   grep -v '^ *+' conftest.er1 >conftest.err
   19789   rm -f conftest.er1
   19790   cat conftest.err >&5
   19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19792   (exit $ac_status); } &&
   19793 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19794   { (case "(($ac_try" in
   19795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19796   *) ac_try_echo=$ac_try;;
   19797 esac
   19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19799   (eval "$ac_try") 2>&5
   19800   ac_status=$?
   19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19802   (exit $ac_status); }; } &&
   19803 	 { ac_try='test -s conftest.$ac_objext'
   19804   { (case "(($ac_try" in
   19805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19806   *) ac_try_echo=$ac_try;;
   19807 esac
   19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19809   (eval "$ac_try") 2>&5
   19810   ac_status=$?
   19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19812   (exit $ac_status); }; }; then
   19813   ac_header_compiler=yes
   19814 else
   19815   echo "$as_me: failed program was:" >&5
   19816 sed 's/^/| /' conftest.$ac_ext >&5
   19817 
   19818 	ac_header_compiler=no
   19819 fi
   19820 
   19821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   19823 echo "${ECHO_T}$ac_header_compiler" >&6; }
   19824 
   19825 # Is the header present?
   19826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   19827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   19828 cat >conftest.$ac_ext <<_ACEOF
   19829 /* confdefs.h.  */
   19830 _ACEOF
   19831 cat confdefs.h >>conftest.$ac_ext
   19832 cat >>conftest.$ac_ext <<_ACEOF
   19833 /* end confdefs.h.  */
   19834 #include <$ac_header>
   19835 _ACEOF
   19836 if { (ac_try="$ac_cpp conftest.$ac_ext"
   19837 case "(($ac_try" in
   19838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19839   *) ac_try_echo=$ac_try;;
   19840 esac
   19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   19843   ac_status=$?
   19844   grep -v '^ *+' conftest.er1 >conftest.err
   19845   rm -f conftest.er1
   19846   cat conftest.err >&5
   19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19848   (exit $ac_status); } >/dev/null; then
   19849   if test -s conftest.err; then
   19850     ac_cpp_err=$ac_c_preproc_warn_flag
   19851     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   19852   else
   19853     ac_cpp_err=
   19854   fi
   19855 else
   19856   ac_cpp_err=yes
   19857 fi
   19858 if test -z "$ac_cpp_err"; then
   19859   ac_header_preproc=yes
   19860 else
   19861   echo "$as_me: failed program was:" >&5
   19862 sed 's/^/| /' conftest.$ac_ext >&5
   19863 
   19864   ac_header_preproc=no
   19865 fi
   19866 
   19867 rm -f conftest.err conftest.$ac_ext
   19868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   19869 echo "${ECHO_T}$ac_header_preproc" >&6; }
   19870 
   19871 # So?  What about this header?
   19872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   19873   yes:no: )
   19874     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   19875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   19876     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   19877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   19878     ac_header_preproc=yes
   19879     ;;
   19880   no:yes:* )
   19881     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   19882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   19883     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   19884 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   19885     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   19886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   19887     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   19888 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   19889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   19890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   19891     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   19892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   19893     ( cat <<\_ASBOX
   19894 ## ------------------------------ ##
   19895 ## Report this to bugs@yourdomain ##
   19896 ## ------------------------------ ##
   19897 _ASBOX
   19898      ) | sed "s/^/$as_me: WARNING:     /" >&2
   19899     ;;
   19900 esac
   19901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   19902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   19903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19904   echo $ECHO_N "(cached) $ECHO_C" >&6
   19905 else
   19906   eval "$as_ac_Header=\$ac_header_preproc"
   19907 fi
   19908 ac_res=`eval echo '${'$as_ac_Header'}'`
   19909 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   19910 echo "${ECHO_T}$ac_res" >&6; }
   19911 
   19912 fi
   19913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   19914   cat >>confdefs.h <<_ACEOF
   19915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   19916 _ACEOF
   19917 
   19918 fi
   19919 
   19920 done
   19921 
   19922 
   19923 for ac_func in getpagesize
   19924 do
   19925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   19926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   19927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   19928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   19929   echo $ECHO_N "(cached) $ECHO_C" >&6
   19930 else
   19931   cat >conftest.$ac_ext <<_ACEOF
   19932 /* confdefs.h.  */
   19933 _ACEOF
   19934 cat confdefs.h >>conftest.$ac_ext
   19935 cat >>conftest.$ac_ext <<_ACEOF
   19936 /* end confdefs.h.  */
   19937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   19938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   19939 #define $ac_func innocuous_$ac_func
   19940 
   19941 /* System header to define __stub macros and hopefully few prototypes,
   19942     which can conflict with char $ac_func (); below.
   19943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   19944     <limits.h> exists even on freestanding compilers.  */
   19945 
   19946 #ifdef __STDC__
   19947 # include <limits.h>
   19948 #else
   19949 # include <assert.h>
   19950 #endif
   19951 
   19952 #undef $ac_func
   19953 
   19954 /* Override any GCC internal prototype to avoid an error.
   19955    Use char because int might match the return type of a GCC
   19956    builtin and then its argument prototype would still apply.  */
   19957 #ifdef __cplusplus
   19958 extern "C"
   19959 #endif
   19960 char $ac_func ();
   19961 /* The GNU C library defines this for functions which it implements
   19962     to always fail with ENOSYS.  Some functions are actually named
   19963     something starting with __ and the normal name is an alias.  */
   19964 #if defined __stub_$ac_func || defined __stub___$ac_func
   19965 choke me
   19966 #endif
   19967 
   19968 int
   19969 main ()
   19970 {
   19971 return $ac_func ();
   19972   ;
   19973   return 0;
   19974 }
   19975 _ACEOF
   19976 rm -f conftest.$ac_objext conftest$ac_exeext
   19977 if { (ac_try="$ac_link"
   19978 case "(($ac_try" in
   19979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19980   *) ac_try_echo=$ac_try;;
   19981 esac
   19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19983   (eval "$ac_link") 2>conftest.er1
   19984   ac_status=$?
   19985   grep -v '^ *+' conftest.er1 >conftest.err
   19986   rm -f conftest.er1
   19987   cat conftest.err >&5
   19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19989   (exit $ac_status); } &&
   19990 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19991   { (case "(($ac_try" in
   19992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19993   *) ac_try_echo=$ac_try;;
   19994 esac
   19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19996   (eval "$ac_try") 2>&5
   19997   ac_status=$?
   19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19999   (exit $ac_status); }; } &&
   20000 	 { ac_try='test -s conftest$ac_exeext'
   20001   { (case "(($ac_try" in
   20002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20003   *) ac_try_echo=$ac_try;;
   20004 esac
   20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20006   (eval "$ac_try") 2>&5
   20007   ac_status=$?
   20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20009   (exit $ac_status); }; }; then
   20010   eval "$as_ac_var=yes"
   20011 else
   20012   echo "$as_me: failed program was:" >&5
   20013 sed 's/^/| /' conftest.$ac_ext >&5
   20014 
   20015 	eval "$as_ac_var=no"
   20016 fi
   20017 
   20018 rm -f core conftest.err conftest.$ac_objext \
   20019       conftest$ac_exeext conftest.$ac_ext
   20020 fi
   20021 ac_res=`eval echo '${'$as_ac_var'}'`
   20022 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20023 echo "${ECHO_T}$ac_res" >&6; }
   20024 if test `eval echo '${'$as_ac_var'}'` = yes; then
   20025   cat >>confdefs.h <<_ACEOF
   20026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20027 _ACEOF
   20028 
   20029 fi
   20030 done
   20031 
   20032 { echo "$as_me:$LINENO: checking for working mmap" >&5
   20033 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
   20034 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
   20035   echo $ECHO_N "(cached) $ECHO_C" >&6
   20036 else
   20037   if test "$cross_compiling" = yes; then
   20038   ac_cv_func_mmap_fixed_mapped=no
   20039 else
   20040   cat >conftest.$ac_ext <<_ACEOF
   20041 /* confdefs.h.  */
   20042 _ACEOF
   20043 cat confdefs.h >>conftest.$ac_ext
   20044 cat >>conftest.$ac_ext <<_ACEOF
   20045 /* end confdefs.h.  */
   20046 $ac_includes_default
   20047 /* malloc might have been renamed as rpl_malloc. */
   20048 #undef malloc
   20049 
   20050 /* Thanks to Mike Haertel and Jim Avera for this test.
   20051    Here is a matrix of mmap possibilities:
   20052 	mmap private not fixed
   20053 	mmap private fixed at somewhere currently unmapped
   20054 	mmap private fixed at somewhere already mapped
   20055 	mmap shared not fixed
   20056 	mmap shared fixed at somewhere currently unmapped
   20057 	mmap shared fixed at somewhere already mapped
   20058    For private mappings, we should verify that changes cannot be read()
   20059    back from the file, nor mmap's back from the file at a different
   20060    address.  (There have been systems where private was not correctly
   20061    implemented like the infamous i386 svr4.0, and systems where the
   20062    VM page cache was not coherent with the file system buffer cache
   20063    like early versions of FreeBSD and possibly contemporary NetBSD.)
   20064    For shared mappings, we should conversely verify that changes get
   20065    propagated back to all the places they're supposed to be.
   20066 
   20067    Grep wants private fixed already mapped.
   20068    The main things grep needs to know about mmap are:
   20069    * does it exist and is it safe to write into the mmap'd area
   20070    * how to use it (BSD variants)  */
   20071 
   20072 #include <fcntl.h>
   20073 #include <sys/mman.h>
   20074 
   20075 #if !STDC_HEADERS && !HAVE_STDLIB_H
   20076 char *malloc ();
   20077 #endif
   20078 
   20079 /* This mess was copied from the GNU getpagesize.h.  */
   20080 #if !HAVE_GETPAGESIZE
   20081 /* Assume that all systems that can run configure have sys/param.h.  */
   20082 # if !HAVE_SYS_PARAM_H
   20083 #  define HAVE_SYS_PARAM_H 1
   20084 # endif
   20085 
   20086 # ifdef _SC_PAGESIZE
   20087 #  define getpagesize() sysconf(_SC_PAGESIZE)
   20088 # else /* no _SC_PAGESIZE */
   20089 #  if HAVE_SYS_PARAM_H
   20090 #   include <sys/param.h>
   20091 #   ifdef EXEC_PAGESIZE
   20092 #    define getpagesize() EXEC_PAGESIZE
   20093 #   else /* no EXEC_PAGESIZE */
   20094 #    ifdef NBPG
   20095 #     define getpagesize() NBPG * CLSIZE
   20096 #     ifndef CLSIZE
   20097 #      define CLSIZE 1
   20098 #     endif /* no CLSIZE */
   20099 #    else /* no NBPG */
   20100 #     ifdef NBPC
   20101 #      define getpagesize() NBPC
   20102 #     else /* no NBPC */
   20103 #      ifdef PAGESIZE
   20104 #       define getpagesize() PAGESIZE
   20105 #      endif /* PAGESIZE */
   20106 #     endif /* no NBPC */
   20107 #    endif /* no NBPG */
   20108 #   endif /* no EXEC_PAGESIZE */
   20109 #  else /* no HAVE_SYS_PARAM_H */
   20110 #   define getpagesize() 8192	/* punt totally */
   20111 #  endif /* no HAVE_SYS_PARAM_H */
   20112 # endif /* no _SC_PAGESIZE */
   20113 
   20114 #endif /* no HAVE_GETPAGESIZE */
   20115 
   20116 int
   20117 main ()
   20118 {
   20119   char *data, *data2, *data3;
   20120   int i, pagesize;
   20121   int fd;
   20122 
   20123   pagesize = getpagesize ();
   20124 
   20125   /* First, make a file with some known garbage in it. */
   20126   data = (char *) malloc (pagesize);
   20127   if (!data)
   20128     return 1;
   20129   for (i = 0; i < pagesize; ++i)
   20130     *(data + i) = rand ();
   20131   umask (0);
   20132   fd = creat ("conftest.mmap", 0600);
   20133   if (fd < 0)
   20134     return 1;
   20135   if (write (fd, data, pagesize) != pagesize)
   20136     return 1;
   20137   close (fd);
   20138 
   20139   /* Next, try to mmap the file at a fixed address which already has
   20140      something else allocated at it.  If we can, also make sure that
   20141      we see the same garbage.  */
   20142   fd = open ("conftest.mmap", O_RDWR);
   20143   if (fd < 0)
   20144     return 1;
   20145   data2 = (char *) malloc (2 * pagesize);
   20146   if (!data2)
   20147     return 1;
   20148   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
   20149   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   20150 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   20151     return 1;
   20152   for (i = 0; i < pagesize; ++i)
   20153     if (*(data + i) != *(data2 + i))
   20154       return 1;
   20155 
   20156   /* Finally, make sure that changes to the mapped area do not
   20157      percolate back to the file as seen by read().  (This is a bug on
   20158      some variants of i386 svr4.0.)  */
   20159   for (i = 0; i < pagesize; ++i)
   20160     *(data2 + i) = *(data2 + i) + 1;
   20161   data3 = (char *) malloc (pagesize);
   20162   if (!data3)
   20163     return 1;
   20164   if (read (fd, data3, pagesize) != pagesize)
   20165     return 1;
   20166   for (i = 0; i < pagesize; ++i)
   20167     if (*(data + i) != *(data3 + i))
   20168       return 1;
   20169   close (fd);
   20170   return 0;
   20171 }
   20172 _ACEOF
   20173 rm -f conftest$ac_exeext
   20174 if { (ac_try="$ac_link"
   20175 case "(($ac_try" in
   20176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20177   *) ac_try_echo=$ac_try;;
   20178 esac
   20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20180   (eval "$ac_link") 2>&5
   20181   ac_status=$?
   20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20183   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   20184   { (case "(($ac_try" in
   20185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20186   *) ac_try_echo=$ac_try;;
   20187 esac
   20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20189   (eval "$ac_try") 2>&5
   20190   ac_status=$?
   20191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20192   (exit $ac_status); }; }; then
   20193   ac_cv_func_mmap_fixed_mapped=yes
   20194 else
   20195   echo "$as_me: program exited with status $ac_status" >&5
   20196 echo "$as_me: failed program was:" >&5
   20197 sed 's/^/| /' conftest.$ac_ext >&5
   20198 
   20199 ( exit $ac_status )
   20200 ac_cv_func_mmap_fixed_mapped=no
   20201 fi
   20202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   20203 fi
   20204 
   20205 
   20206 fi
   20207 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
   20208 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
   20209 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   20210 
   20211 cat >>confdefs.h <<\_ACEOF
   20212 #define HAVE_MMAP 1
   20213 _ACEOF
   20214 
   20215 fi
   20216 rm -f conftest.mmap
   20217 
   20218   { echo "$as_me:$LINENO: checking for mmap of files" >&5
   20219 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
   20220 if test "${ac_cv_func_mmap_file+set}" = set; then
   20221   echo $ECHO_N "(cached) $ECHO_C" >&6
   20222 else
   20223    ac_ext=c
   20224 ac_cpp='$CPP $CPPFLAGS'
   20225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20228 
   20229   if test "$cross_compiling" = yes; then
   20230   ac_cv_func_mmap_file=no
   20231 else
   20232   cat >conftest.$ac_ext <<_ACEOF
   20233 
   20234     /* confdefs.h.  */
   20235 _ACEOF
   20236 cat confdefs.h >>conftest.$ac_ext
   20237 cat >>conftest.$ac_ext <<_ACEOF
   20238 /* end confdefs.h.  */
   20239 
   20240 #include <sys/types.h>
   20241 #include <sys/mman.h>
   20242 #include <fcntl.h>
   20243 
   20244 int
   20245 main ()
   20246 {
   20247 
   20248   int fd;
   20249   fd = creat ("foo",0777);
   20250   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
   20251   unlink ("foo");
   20252   return (fd != (int) MAP_FAILED);
   20253   ;
   20254   return 0;
   20255 }
   20256 _ACEOF
   20257 rm -f conftest$ac_exeext
   20258 if { (ac_try="$ac_link"
   20259 case "(($ac_try" in
   20260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20261   *) ac_try_echo=$ac_try;;
   20262 esac
   20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20264   (eval "$ac_link") 2>&5
   20265   ac_status=$?
   20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20267   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   20268   { (case "(($ac_try" in
   20269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20270   *) ac_try_echo=$ac_try;;
   20271 esac
   20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20273   (eval "$ac_try") 2>&5
   20274   ac_status=$?
   20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20276   (exit $ac_status); }; }; then
   20277   ac_cv_func_mmap_file=yes
   20278 else
   20279   echo "$as_me: program exited with status $ac_status" >&5
   20280 echo "$as_me: failed program was:" >&5
   20281 sed 's/^/| /' conftest.$ac_ext >&5
   20282 
   20283 ( exit $ac_status )
   20284 ac_cv_func_mmap_file=no
   20285 fi
   20286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   20287 fi
   20288 
   20289 
   20290   ac_ext=c
   20291 ac_cpp='$CPP $CPPFLAGS'
   20292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20295 
   20296 
   20297 fi
   20298 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
   20299 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
   20300 if test "$ac_cv_func_mmap_file" = yes; then
   20301 
   20302 cat >>confdefs.h <<\_ACEOF
   20303 #define HAVE_MMAP_FILE
   20304 _ACEOF
   20305 
   20306    MMAP_FILE=yes
   20307 
   20308 fi
   20309 
   20310   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
   20311 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
   20312 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
   20313   echo $ECHO_N "(cached) $ECHO_C" >&6
   20314 else
   20315   if test "$llvm_cv_os_type" = "Interix" ; then
   20316    ac_cv_need_dev_zero_for_mmap=yes
   20317  else
   20318    ac_cv_need_dev_zero_for_mmap=no
   20319  fi
   20320 
   20321 fi
   20322 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
   20323 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
   20324 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
   20325 
   20326 cat >>confdefs.h <<\_ACEOF
   20327 #define NEED_DEV_ZERO_FOR_MMAP 1
   20328 _ACEOF
   20329 
   20330 fi
   20331 
   20332   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
   20333   then
   20334     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
   20335 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
   20336   fi
   20337   if test "$ac_cv_func_mmap_file" = "no"
   20338   then
   20339     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
   20340 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
   20341   fi
   20342 fi
   20343 
   20344 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
   20345 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
   20346 ac_ext=cpp
   20347 ac_cpp='$CXXCPP $CPPFLAGS'
   20348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   20351 
   20352 cat >conftest.$ac_ext <<_ACEOF
   20353 /* confdefs.h.  */
   20354 _ACEOF
   20355 cat confdefs.h >>conftest.$ac_ext
   20356 cat >>conftest.$ac_ext <<_ACEOF
   20357 /* end confdefs.h.  */
   20358 int main() {
   20359         volatile unsigned long val = 1;
   20360         __sync_synchronize();
   20361         __sync_val_compare_and_swap(&val, 1, 0);
   20362         __sync_add_and_fetch(&val, 1);
   20363         __sync_sub_and_fetch(&val, 1);
   20364         return 0;
   20365       }
   20366 
   20367 _ACEOF
   20368 rm -f conftest.$ac_objext conftest$ac_exeext
   20369 if { (ac_try="$ac_link"
   20370 case "(($ac_try" in
   20371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20372   *) ac_try_echo=$ac_try;;
   20373 esac
   20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20375   (eval "$ac_link") 2>conftest.er1
   20376   ac_status=$?
   20377   grep -v '^ *+' conftest.er1 >conftest.err
   20378   rm -f conftest.er1
   20379   cat conftest.err >&5
   20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20381   (exit $ac_status); } &&
   20382 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   20383   { (case "(($ac_try" in
   20384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20385   *) ac_try_echo=$ac_try;;
   20386 esac
   20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20388   (eval "$ac_try") 2>&5
   20389   ac_status=$?
   20390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20391   (exit $ac_status); }; } &&
   20392 	 { ac_try='test -s conftest$ac_exeext'
   20393   { (case "(($ac_try" in
   20394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20395   *) ac_try_echo=$ac_try;;
   20396 esac
   20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20398   (eval "$ac_try") 2>&5
   20399   ac_status=$?
   20400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20401   (exit $ac_status); }; }; then
   20402   ac_ext=c
   20403 ac_cpp='$CPP $CPPFLAGS'
   20404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20407 
   20408   { echo "$as_me:$LINENO: result: yes" >&5
   20409 echo "${ECHO_T}yes" >&6; }
   20410 
   20411 cat >>confdefs.h <<\_ACEOF
   20412 #define LLVM_HAS_ATOMICS 1
   20413 _ACEOF
   20414 
   20415 else
   20416   echo "$as_me: failed program was:" >&5
   20417 sed 's/^/| /' conftest.$ac_ext >&5
   20418 
   20419 	{ echo "$as_me:$LINENO: result: no" >&5
   20420 echo "${ECHO_T}no" >&6; }
   20421 
   20422 cat >>confdefs.h <<\_ACEOF
   20423 #define LLVM_HAS_ATOMICS 0
   20424 _ACEOF
   20425 
   20426   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
   20427 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
   20428 fi
   20429 
   20430 rm -f core conftest.err conftest.$ac_objext \
   20431       conftest$ac_exeext conftest.$ac_ext
   20432 
   20433 
   20434 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
   20435   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
   20436 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
   20437 if test "${llvm_cv_linux_mixed+set}" = set; then
   20438   echo $ECHO_N "(cached) $ECHO_C" >&6
   20439 else
   20440    ac_ext=c
   20441 ac_cpp='$CPP $CPPFLAGS'
   20442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20445 
   20446   cat >conftest.$ac_ext <<_ACEOF
   20447 /* confdefs.h.  */
   20448 _ACEOF
   20449 cat confdefs.h >>conftest.$ac_ext
   20450 cat >>conftest.$ac_ext <<_ACEOF
   20451 /* end confdefs.h.  */
   20452 #ifndef __x86_64__
   20453        error: Not x86-64 even if uname says so!
   20454       #endif
   20455 
   20456 int
   20457 main ()
   20458 {
   20459 
   20460   ;
   20461   return 0;
   20462 }
   20463 _ACEOF
   20464 rm -f conftest.$ac_objext
   20465 if { (ac_try="$ac_compile"
   20466 case "(($ac_try" in
   20467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20468   *) ac_try_echo=$ac_try;;
   20469 esac
   20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20471   (eval "$ac_compile") 2>conftest.er1
   20472   ac_status=$?
   20473   grep -v '^ *+' conftest.er1 >conftest.err
   20474   rm -f conftest.er1
   20475   cat conftest.err >&5
   20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20477   (exit $ac_status); } &&
   20478 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   20479   { (case "(($ac_try" in
   20480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20481   *) ac_try_echo=$ac_try;;
   20482 esac
   20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20484   (eval "$ac_try") 2>&5
   20485   ac_status=$?
   20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20487   (exit $ac_status); }; } &&
   20488 	 { ac_try='test -s conftest.$ac_objext'
   20489   { (case "(($ac_try" in
   20490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20491   *) ac_try_echo=$ac_try;;
   20492 esac
   20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20494   (eval "$ac_try") 2>&5
   20495   ac_status=$?
   20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20497   (exit $ac_status); }; }; then
   20498   llvm_cv_linux_mixed=no
   20499 else
   20500   echo "$as_me: failed program was:" >&5
   20501 sed 's/^/| /' conftest.$ac_ext >&5
   20502 
   20503 	llvm_cv_linux_mixed=yes
   20504 fi
   20505 
   20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20507   ac_ext=c
   20508 ac_cpp='$CPP $CPPFLAGS'
   20509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20512 
   20513 
   20514 fi
   20515 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
   20516 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
   20517 
   20518   if test "$llvm_cv_linux_mixed" = "yes"; then
   20519     llvm_cv_target_arch="x86"
   20520     ARCH="x86"
   20521   fi
   20522 fi
   20523 
   20524 
   20525 for ac_func in __dso_handle
   20526 do
   20527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   20529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   20530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   20531   echo $ECHO_N "(cached) $ECHO_C" >&6
   20532 else
   20533   cat >conftest.$ac_ext <<_ACEOF
   20534 /* confdefs.h.  */
   20535 _ACEOF
   20536 cat confdefs.h >>conftest.$ac_ext
   20537 cat >>conftest.$ac_ext <<_ACEOF
   20538 /* end confdefs.h.  */
   20539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   20540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   20541 #define $ac_func innocuous_$ac_func
   20542 
   20543 /* System header to define __stub macros and hopefully few prototypes,
   20544     which can conflict with char $ac_func (); below.
   20545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   20546     <limits.h> exists even on freestanding compilers.  */
   20547 
   20548 #ifdef __STDC__
   20549 # include <limits.h>
   20550 #else
   20551 # include <assert.h>
   20552 #endif
   20553 
   20554 #undef $ac_func
   20555 
   20556 /* Override any GCC internal prototype to avoid an error.
   20557    Use char because int might match the return type of a GCC
   20558    builtin and then its argument prototype would still apply.  */
   20559 #ifdef __cplusplus
   20560 extern "C"
   20561 #endif
   20562 char $ac_func ();
   20563 /* The GNU C library defines this for functions which it implements
   20564     to always fail with ENOSYS.  Some functions are actually named
   20565     something starting with __ and the normal name is an alias.  */
   20566 #if defined __stub_$ac_func || defined __stub___$ac_func
   20567 choke me
   20568 #endif
   20569 
   20570 int
   20571 main ()
   20572 {
   20573 return $ac_func ();
   20574   ;
   20575   return 0;
   20576 }
   20577 _ACEOF
   20578 rm -f conftest.$ac_objext conftest$ac_exeext
   20579 if { (ac_try="$ac_link"
   20580 case "(($ac_try" in
   20581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20582   *) ac_try_echo=$ac_try;;
   20583 esac
   20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20585   (eval "$ac_link") 2>conftest.er1
   20586   ac_status=$?
   20587   grep -v '^ *+' conftest.er1 >conftest.err
   20588   rm -f conftest.er1
   20589   cat conftest.err >&5
   20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20591   (exit $ac_status); } &&
   20592 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   20593   { (case "(($ac_try" in
   20594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20595   *) ac_try_echo=$ac_try;;
   20596 esac
   20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20598   (eval "$ac_try") 2>&5
   20599   ac_status=$?
   20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20601   (exit $ac_status); }; } &&
   20602 	 { ac_try='test -s conftest$ac_exeext'
   20603   { (case "(($ac_try" in
   20604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20605   *) ac_try_echo=$ac_try;;
   20606 esac
   20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20608   (eval "$ac_try") 2>&5
   20609   ac_status=$?
   20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20611   (exit $ac_status); }; }; then
   20612   eval "$as_ac_var=yes"
   20613 else
   20614   echo "$as_me: failed program was:" >&5
   20615 sed 's/^/| /' conftest.$ac_ext >&5
   20616 
   20617 	eval "$as_ac_var=no"
   20618 fi
   20619 
   20620 rm -f core conftest.err conftest.$ac_objext \
   20621       conftest$ac_exeext conftest.$ac_ext
   20622 fi
   20623 ac_res=`eval echo '${'$as_ac_var'}'`
   20624 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20625 echo "${ECHO_T}$ac_res" >&6; }
   20626 if test `eval echo '${'$as_ac_var'}'` = yes; then
   20627   cat >>confdefs.h <<_ACEOF
   20628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20629 _ACEOF
   20630 
   20631 fi
   20632 done
   20633 
   20634 
   20635 SHLIBEXT=$libltdl_cv_shlibext
   20636 
   20637 
   20638 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
   20639 
   20640 
   20641 # Translate the various configuration directories and other basic
   20642 # information into substitutions that will end up in Makefile.config.in
   20643 # that these configured values can be used by the makefiles
   20644 if test "${prefix}" = "NONE" ; then
   20645   prefix="/usr/local"
   20646 fi
   20647 eval LLVM_PREFIX="${prefix}";
   20648 eval LLVM_BINDIR="${prefix}/bin";
   20649 eval LLVM_LIBDIR="${prefix}/lib";
   20650 eval LLVM_DATADIR="${prefix}/share/llvm";
   20651 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
   20652 eval LLVM_ETCDIR="${prefix}/etc/llvm";
   20653 eval LLVM_INCLUDEDIR="${prefix}/include";
   20654 eval LLVM_INFODIR="${prefix}/info";
   20655 eval LLVM_MANDIR="${prefix}/man";
   20656 LLVM_CONFIGTIME=`date`
   20657 
   20658 
   20659 
   20660 
   20661 
   20662 
   20663 
   20664 
   20665 
   20666 
   20667 
   20668 # Place the various directores into the config.h file as #defines so that we
   20669 # can know about the installation paths within LLVM.
   20670 
   20671 cat >>confdefs.h <<_ACEOF
   20672 #define LLVM_PREFIX "$LLVM_PREFIX"
   20673 _ACEOF
   20674 
   20675 
   20676 cat >>confdefs.h <<_ACEOF
   20677 #define LLVM_BINDIR "$LLVM_BINDIR"
   20678 _ACEOF
   20679 
   20680 
   20681 cat >>confdefs.h <<_ACEOF
   20682 #define LLVM_LIBDIR "$LLVM_LIBDIR"
   20683 _ACEOF
   20684 
   20685 
   20686 cat >>confdefs.h <<_ACEOF
   20687 #define LLVM_DATADIR "$LLVM_DATADIR"
   20688 _ACEOF
   20689 
   20690 
   20691 cat >>confdefs.h <<_ACEOF
   20692 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
   20693 _ACEOF
   20694 
   20695 
   20696 cat >>confdefs.h <<_ACEOF
   20697 #define LLVM_ETCDIR "$LLVM_ETCDIR"
   20698 _ACEOF
   20699 
   20700 
   20701 cat >>confdefs.h <<_ACEOF
   20702 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
   20703 _ACEOF
   20704 
   20705 
   20706 cat >>confdefs.h <<_ACEOF
   20707 #define LLVM_INFODIR "$LLVM_INFODIR"
   20708 _ACEOF
   20709 
   20710 
   20711 cat >>confdefs.h <<_ACEOF
   20712 #define LLVM_MANDIR "$LLVM_MANDIR"
   20713 _ACEOF
   20714 
   20715 
   20716 cat >>confdefs.h <<_ACEOF
   20717 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
   20718 _ACEOF
   20719 
   20720 
   20721 cat >>confdefs.h <<_ACEOF
   20722 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
   20723 _ACEOF
   20724 
   20725 
   20726 # Determine which bindings to build.
   20727 if test "$BINDINGS_TO_BUILD" = auto ; then
   20728   BINDINGS_TO_BUILD=""
   20729   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
   20730     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
   20731   fi
   20732 fi
   20733 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
   20734 
   20735 
   20736 # This isn't really configurey, but it avoids having to repeat the list in
   20737 # other files.
   20738 ALL_BINDINGS=ocaml
   20739 
   20740 
   20741 # Do any work necessary to ensure that bindings have what they need.
   20742 binding_prereqs_failed=0
   20743 for a_binding in $BINDINGS_TO_BUILD ; do
   20744   case "$a_binding" in
   20745   ocaml)
   20746     if test "x$OCAMLC" = x ; then
   20747       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
   20748 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
   20749       binding_prereqs_failed=1
   20750     fi
   20751     if test "x$OCAMLDEP" = x ; then
   20752       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
   20753 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
   20754       binding_prereqs_failed=1
   20755     fi
   20756     if test "x$OCAMLOPT" = x ; then
   20757       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
   20758 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
   20759           fi
   20760     if test "x$with_ocaml_libdir" != xauto ; then
   20761       OCAML_LIBDIR=$with_ocaml_libdir
   20762 
   20763     else
   20764       ocaml_stdlib="`"$OCAMLC" -where`"
   20765       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
   20766       then
   20767         # ocaml stdlib is beneath our prefix; use stdlib
   20768         OCAML_LIBDIR=$ocaml_stdlib
   20769 
   20770       else
   20771         # ocaml stdlib is outside our prefix; use libdir/ocaml
   20772         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
   20773 
   20774       fi
   20775     fi
   20776     ;;
   20777   esac
   20778 done
   20779 if test "$binding_prereqs_failed" = 1 ; then
   20780   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
   20781 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
   20782    { (exit 1); exit 1; }; }
   20783 fi
   20784 
   20785 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
   20786 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
   20787 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
   20788   echo $ECHO_N "(cached) $ECHO_C" >&6
   20789 else
   20790    ac_ext=cpp
   20791 ac_cpp='$CXXCPP $CPPFLAGS'
   20792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   20795 
   20796   oldcxxflags="$CXXFLAGS"
   20797   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
   20798   cat >conftest.$ac_ext <<_ACEOF
   20799 /* confdefs.h.  */
   20800 _ACEOF
   20801 cat confdefs.h >>conftest.$ac_ext
   20802 cat >>conftest.$ac_ext <<_ACEOF
   20803 /* end confdefs.h.  */
   20804 
   20805 int
   20806 main ()
   20807 {
   20808 
   20809   ;
   20810   return 0;
   20811 }
   20812 _ACEOF
   20813 rm -f conftest.$ac_objext
   20814 if { (ac_try="$ac_compile"
   20815 case "(($ac_try" in
   20816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20817   *) ac_try_echo=$ac_try;;
   20818 esac
   20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20820   (eval "$ac_compile") 2>conftest.er1
   20821   ac_status=$?
   20822   grep -v '^ *+' conftest.er1 >conftest.err
   20823   rm -f conftest.er1
   20824   cat conftest.err >&5
   20825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20826   (exit $ac_status); } &&
   20827 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   20828   { (case "(($ac_try" in
   20829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20830   *) ac_try_echo=$ac_try;;
   20831 esac
   20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20833   (eval "$ac_try") 2>&5
   20834   ac_status=$?
   20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20836   (exit $ac_status); }; } &&
   20837 	 { ac_try='test -s conftest.$ac_objext'
   20838   { (case "(($ac_try" in
   20839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20840   *) ac_try_echo=$ac_try;;
   20841 esac
   20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20843   (eval "$ac_try") 2>&5
   20844   ac_status=$?
   20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20846   (exit $ac_status); }; }; then
   20847   llvm_cv_cxx_visibility_inlines_hidden=yes
   20848 else
   20849   echo "$as_me: failed program was:" >&5
   20850 sed 's/^/| /' conftest.$ac_ext >&5
   20851 
   20852 	llvm_cv_cxx_visibility_inlines_hidden=no
   20853 fi
   20854 
   20855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20856   CXXFLAGS="$oldcxxflags"
   20857   ac_ext=c
   20858 ac_cpp='$CPP $CPPFLAGS'
   20859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20862 
   20863 
   20864 fi
   20865 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
   20866 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
   20867 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
   20868   ENABLE_VISIBILITY_INLINES_HIDDEN=1
   20869 
   20870 else
   20871   ENABLE_VISIBILITY_INLINES_HIDDEN=0
   20872 
   20873 fi
   20874 
   20875 
   20876 if test "$llvm_cv_link_use_r" = "yes" ; then
   20877   RPATH="-Wl,-R"
   20878 else
   20879   RPATH="-Wl,-rpath"
   20880 fi
   20881 
   20882 
   20883 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
   20884   RDYNAMIC="-Wl,-export-dynamic"
   20885 else
   20886   RDYNAMIC=""
   20887 fi
   20888 
   20889 
   20890 
   20891 
   20892 ac_config_files="$ac_config_files Makefile.common"
   20893 
   20894 ac_config_files="$ac_config_files Makefile.llvm.config"
   20895 
   20896 
   20897 ac_config_commands="$ac_config_commands Makefile"
   20898 
   20899 
   20900 ac_config_commands="$ac_config_commands lib/Makefile"
   20901 
   20902 
   20903 ac_config_commands="$ac_config_commands lib/sample/Makefile"
   20904 
   20905 
   20906 ac_config_commands="$ac_config_commands tools/Makefile"
   20907 
   20908 
   20909 ac_config_commands="$ac_config_commands tools/sample/Makefile"
   20910 
   20911 
   20912 
   20913 cat >confcache <<\_ACEOF
   20914 # This file is a shell script that caches the results of configure
   20915 # tests run on this system so they can be shared between configure
   20916 # scripts and configure runs, see configure's option --config-cache.
   20917 # It is not useful on other systems.  If it contains results you don't
   20918 # want to keep, you may remove or edit it.
   20919 #
   20920 # config.status only pays attention to the cache file if you give it
   20921 # the --recheck option to rerun configure.
   20922 #
   20923 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   20924 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   20925 # following values.
   20926 
   20927 _ACEOF
   20928 
   20929 # The following way of writing the cache mishandles newlines in values,
   20930 # but we know of no workaround that is simple, portable, and efficient.
   20931 # So, we kill variables containing newlines.
   20932 # Ultrix sh set writes to stderr and can't be redirected directly,
   20933 # and sets the high bit in the cache file unless we assign to the vars.
   20934 (
   20935   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   20936     eval ac_val=\$$ac_var
   20937     case $ac_val in #(
   20938     *${as_nl}*)
   20939       case $ac_var in #(
   20940       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   20941 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   20942       esac
   20943       case $ac_var in #(
   20944       _ | IFS | as_nl) ;; #(
   20945       *) $as_unset $ac_var ;;
   20946       esac ;;
   20947     esac
   20948   done
   20949 
   20950   (set) 2>&1 |
   20951     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   20952     *${as_nl}ac_space=\ *)
   20953       # `set' does not quote correctly, so add quotes (double-quote
   20954       # substitution turns \\\\ into \\, and sed turns \\ into \).
   20955       sed -n \
   20956 	"s/'/'\\\\''/g;
   20957 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   20958       ;; #(
   20959     *)
   20960       # `set' quotes correctly as required by POSIX, so do not add quotes.
   20961       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   20962       ;;
   20963     esac |
   20964     sort
   20965 ) |
   20966   sed '
   20967      /^ac_cv_env_/b end
   20968      t clear
   20969      :clear
   20970      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   20971      t end
   20972      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   20973      :end' >>confcache
   20974 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   20975   if test -w "$cache_file"; then
   20976     test "x$cache_file" != "x/dev/null" &&
   20977       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
   20978 echo "$as_me: updating cache $cache_file" >&6;}
   20979     cat confcache >$cache_file
   20980   else
   20981     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
   20982 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   20983   fi
   20984 fi
   20985 rm -f confcache
   20986 
   20987 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   20988 # Let make expand exec_prefix.
   20989 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   20990 
   20991 # Transform confdefs.h into DEFS.
   20992 # Protect against shell expansion while executing Makefile rules.
   20993 # Protect against Makefile macro expansion.
   20994 #
   20995 # If the first sed substitution is executed (which looks for macros that
   20996 # take arguments), then branch to the quote section.  Otherwise,
   20997 # look for a macro that doesn't take arguments.
   20998 ac_script='
   20999 t clear
   21000 :clear
   21001 s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
   21002 t quote
   21003 s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
   21004 t quote
   21005 b any
   21006 :quote
   21007 s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
   21008 s/\[/\\&/g
   21009 s/\]/\\&/g
   21010 s/\$/$$/g
   21011 H
   21012 :any
   21013 ${
   21014 	g
   21015 	s/^\n//
   21016 	s/\n/ /g
   21017 	p
   21018 }
   21019 '
   21020 DEFS=`sed -n "$ac_script" confdefs.h`
   21021 
   21022 
   21023 ac_libobjs=
   21024 ac_ltlibobjs=
   21025 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   21026   # 1. Remove the extension, and $U if already installed.
   21027   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   21028   ac_i=`echo "$ac_i" | sed "$ac_script"`
   21029   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   21030   #    will be set to the directory where LIBOBJS objects are built.
   21031   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   21032   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
   21033 done
   21034 LIBOBJS=$ac_libobjs
   21035 
   21036 LTLIBOBJS=$ac_ltlibobjs
   21037 
   21038 
   21039 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
   21040   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
   21041 Usually this means the macro was only invoked conditionally." >&5
   21042 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
   21043 Usually this means the macro was only invoked conditionally." >&2;}
   21044    { (exit 1); exit 1; }; }
   21045 fi
   21046 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
   21047   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
   21048 Usually this means the macro was only invoked conditionally." >&5
   21049 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
   21050 Usually this means the macro was only invoked conditionally." >&2;}
   21051    { (exit 1); exit 1; }; }
   21052 fi
   21053 
   21054 : ${CONFIG_STATUS=./config.status}
   21055 ac_clean_files_save=$ac_clean_files
   21056 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   21057 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
   21058 echo "$as_me: creating $CONFIG_STATUS" >&6;}
   21059 cat >$CONFIG_STATUS <<_ACEOF
   21060 #! $SHELL
   21061 # Generated by $as_me.
   21062 # Run this file to recreate the current configuration.
   21063 # Compiler output produced by configure, useful for debugging
   21064 # configure, is in config.log if it exists.
   21065 
   21066 debug=false
   21067 ac_cs_recheck=false
   21068 ac_cs_silent=false
   21069 SHELL=\${CONFIG_SHELL-$SHELL}
   21070 _ACEOF
   21071 
   21072 cat >>$CONFIG_STATUS <<\_ACEOF
   21073 ## --------------------- ##
   21074 ## M4sh Initialization.  ##
   21075 ## --------------------- ##
   21076 
   21077 # Be Bourne compatible
   21078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   21079   emulate sh
   21080   NULLCMD=:
   21081   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   21082   # is contrary to our usage.  Disable this feature.
   21083   alias -g '${1+"$@"}'='"$@"'
   21084   setopt NO_GLOB_SUBST
   21085 else
   21086   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
   21087 fi
   21088 BIN_SH=xpg4; export BIN_SH # for Tru64
   21089 DUALCASE=1; export DUALCASE # for MKS sh
   21090 
   21091 
   21092 # PATH needs CR
   21093 # Avoid depending upon Character Ranges.
   21094 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   21095 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   21096 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   21097 as_cr_digits='0123456789'
   21098 as_cr_alnum=$as_cr_Letters$as_cr_digits
   21099 
   21100 # The user is always right.
   21101 if test "${PATH_SEPARATOR+set}" != set; then
   21102   echo "#! /bin/sh" >conf$$.sh
   21103   echo  "exit 0"   >>conf$$.sh
   21104   chmod +x conf$$.sh
   21105   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   21106     PATH_SEPARATOR=';'
   21107   else
   21108     PATH_SEPARATOR=:
   21109   fi
   21110   rm -f conf$$.sh
   21111 fi
   21112 
   21113 # Support unset when possible.
   21114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   21115   as_unset=unset
   21116 else
   21117   as_unset=false
   21118 fi
   21119 
   21120 
   21121 # IFS
   21122 # We need space, tab and new line, in precisely that order.  Quoting is
   21123 # there to prevent editors from complaining about space-tab.
   21124 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   21125 # splitting by setting IFS to empty value.)
   21126 as_nl='
   21127 '
   21128 IFS=" ""	$as_nl"
   21129 
   21130 # Find who we are.  Look in the path if we contain no directory separator.
   21131 case $0 in
   21132   *[\\/]* ) as_myself=$0 ;;
   21133   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21134 for as_dir in $PATH
   21135 do
   21136   IFS=$as_save_IFS
   21137   test -z "$as_dir" && as_dir=.
   21138   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   21139 done
   21140 IFS=$as_save_IFS
   21141 
   21142      ;;
   21143 esac
   21144 # We did not find ourselves, most probably we were run as `sh COMMAND'
   21145 # in which case we are not to be found in the path.
   21146 if test "x$as_myself" = x; then
   21147   as_myself=$0
   21148 fi
   21149 if test ! -f "$as_myself"; then
   21150   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   21151   { (exit 1); exit 1; }
   21152 fi
   21153 
   21154 # Work around bugs in pre-3.0 UWIN ksh.
   21155 for as_var in ENV MAIL MAILPATH
   21156 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   21157 done
   21158 PS1='$ '
   21159 PS2='> '
   21160 PS4='+ '
   21161 
   21162 # NLS nuisances.
   21163 for as_var in \
   21164   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   21165   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   21166   LC_TELEPHONE LC_TIME
   21167 do
   21168   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   21169     eval $as_var=C; export $as_var
   21170   else
   21171     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   21172   fi
   21173 done
   21174 
   21175 # Required to use basename.
   21176 if expr a : '\(a\)' >/dev/null 2>&1 &&
   21177    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   21178   as_expr=expr
   21179 else
   21180   as_expr=false
   21181 fi
   21182 
   21183 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   21184   as_basename=basename
   21185 else
   21186   as_basename=false
   21187 fi
   21188 
   21189 
   21190 # Name of the executable.
   21191 as_me=`$as_basename -- "$0" ||
   21192 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   21193 	 X"$0" : 'X\(//\)$' \| \
   21194 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   21195 echo X/"$0" |
   21196     sed '/^.*\/\([^/][^/]*\)\/*$/{
   21197 	    s//\1/
   21198 	    q
   21199 	  }
   21200 	  /^X\/\(\/\/\)$/{
   21201 	    s//\1/
   21202 	    q
   21203 	  }
   21204 	  /^X\/\(\/\).*/{
   21205 	    s//\1/
   21206 	    q
   21207 	  }
   21208 	  s/.*/./; q'`
   21209 
   21210 # CDPATH.
   21211 $as_unset CDPATH
   21212 
   21213 
   21214 
   21215   as_lineno_1=$LINENO
   21216   as_lineno_2=$LINENO
   21217   test "x$as_lineno_1" != "x$as_lineno_2" &&
   21218   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   21219 
   21220   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   21221   # uniformly replaced by the line number.  The first 'sed' inserts a
   21222   # line-number line after each line using $LINENO; the second 'sed'
   21223   # does the real work.  The second script uses 'N' to pair each
   21224   # line-number line with the line containing $LINENO, and appends
   21225   # trailing '-' during substitution so that $LINENO is not a special
   21226   # case at line end.
   21227   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   21228   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   21229   # E. McMahon (1931-1989) for sed's syntax.  :-)
   21230   sed -n '
   21231     p
   21232     /[$]LINENO/=
   21233   ' <$as_myself |
   21234     sed '
   21235       s/[$]LINENO.*/&-/
   21236       t lineno
   21237       b
   21238       :lineno
   21239       N
   21240       :loop
   21241       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   21242       t loop
   21243       s/-\n.*//
   21244     ' >$as_me.lineno &&
   21245   chmod +x "$as_me.lineno" ||
   21246     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   21247    { (exit 1); exit 1; }; }
   21248 
   21249   # Don't try to exec as it changes $[0], causing all sort of problems
   21250   # (the dirname of $[0] is not the place where we might find the
   21251   # original and so on.  Autoconf is especially sensitive to this).
   21252   . "./$as_me.lineno"
   21253   # Exit status is that of the last command.
   21254   exit
   21255 }
   21256 
   21257 
   21258 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   21259   as_dirname=dirname
   21260 else
   21261   as_dirname=false
   21262 fi
   21263 
   21264 ECHO_C= ECHO_N= ECHO_T=
   21265 case `echo -n x` in
   21266 -n*)
   21267   case `echo 'x\c'` in
   21268   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   21269   *)   ECHO_C='\c';;
   21270   esac;;
   21271 *)
   21272   ECHO_N='-n';;
   21273 esac
   21274 
   21275 if expr a : '\(a\)' >/dev/null 2>&1 &&
   21276    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   21277   as_expr=expr
   21278 else
   21279   as_expr=false
   21280 fi
   21281 
   21282 rm -f conf$$ conf$$.exe conf$$.file
   21283 if test -d conf$$.dir; then
   21284   rm -f conf$$.dir/conf$$.file
   21285 else
   21286   rm -f conf$$.dir
   21287   mkdir conf$$.dir
   21288 fi
   21289 echo >conf$$.file
   21290 if ln -s conf$$.file conf$$ 2>/dev/null; then
   21291   as_ln_s='ln -s'
   21292   # ... but there are two gotchas:
   21293   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   21294   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   21295   # In both cases, we have to default to `cp -p'.
   21296   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   21297     as_ln_s='cp -p'
   21298 elif ln conf$$.file conf$$ 2>/dev/null; then
   21299   as_ln_s=ln
   21300 else
   21301   as_ln_s='cp -p'
   21302 fi
   21303 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   21304 rmdir conf$$.dir 2>/dev/null
   21305 
   21306 if mkdir -p . 2>/dev/null; then
   21307   as_mkdir_p=:
   21308 else
   21309   test -d ./-p && rmdir ./-p
   21310   as_mkdir_p=false
   21311 fi
   21312 
   21313 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
   21314 # systems may use methods other than mode bits to determine executability.
   21315 cat >conf$$.file <<_ASEOF
   21316 #! /bin/sh
   21317 exit 0
   21318 _ASEOF
   21319 chmod +x conf$$.file
   21320 if test -x conf$$.file >/dev/null 2>&1; then
   21321   as_executable_p="test -x"
   21322 else
   21323   as_executable_p=:
   21324 fi
   21325 rm -f conf$$.file
   21326 
   21327 # Sed expression to map a string onto a valid CPP name.
   21328 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   21329 
   21330 # Sed expression to map a string onto a valid variable name.
   21331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   21332 
   21333 
   21334 exec 6>&1
   21335 
   21336 # Save the log message, to keep $[0] and so on meaningful, and to
   21337 # report actual input values of CONFIG_FILES etc. instead of their
   21338 # values after options handling.
   21339 ac_log="
   21340 This file was extended by [SAMPLE] $as_me [x.xx], which was
   21341 generated by GNU Autoconf 2.60.  Invocation command line was
   21342 
   21343   CONFIG_FILES    = $CONFIG_FILES
   21344   CONFIG_HEADERS  = $CONFIG_HEADERS
   21345   CONFIG_LINKS    = $CONFIG_LINKS
   21346   CONFIG_COMMANDS = $CONFIG_COMMANDS
   21347   $ $0 $@
   21348 
   21349 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   21350 "
   21351 
   21352 _ACEOF
   21353 
   21354 cat >>$CONFIG_STATUS <<_ACEOF
   21355 # Files that config.status was made for.
   21356 config_files="$ac_config_files"
   21357 config_commands="$ac_config_commands"
   21358 
   21359 _ACEOF
   21360 
   21361 cat >>$CONFIG_STATUS <<\_ACEOF
   21362 ac_cs_usage="\
   21363 \`$as_me' instantiates files from templates according to the
   21364 current configuration.
   21365 
   21366 Usage: $0 [OPTIONS] [FILE]...
   21367 
   21368   -h, --help       print this help, then exit
   21369   -V, --version    print version number, then exit
   21370   -q, --quiet      do not print progress messages
   21371   -d, --debug      don't remove temporary files
   21372       --recheck    update $as_me by reconfiguring in the same conditions
   21373   --file=FILE[:TEMPLATE]
   21374 		   instantiate the configuration file FILE
   21375 
   21376 Configuration files:
   21377 $config_files
   21378 
   21379 Configuration commands:
   21380 $config_commands
   21381 
   21382 Report bugs to <bug-autoconf@gnu.org>."
   21383 
   21384 _ACEOF
   21385 cat >>$CONFIG_STATUS <<_ACEOF
   21386 ac_cs_version="\\
   21387 [SAMPLE] config.status [x.xx]
   21388 configured by $0, generated by GNU Autoconf 2.60,
   21389   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
   21390 
   21391 Copyright (C) 2006 Free Software Foundation, Inc.
   21392 This config.status script is free software; the Free Software Foundation
   21393 gives unlimited permission to copy, distribute and modify it."
   21394 
   21395 ac_pwd='$ac_pwd'
   21396 srcdir='$srcdir'
   21397 INSTALL='$INSTALL'
   21398 _ACEOF
   21399 
   21400 cat >>$CONFIG_STATUS <<\_ACEOF
   21401 # If no file are specified by the user, then we need to provide default
   21402 # value.  By we need to know if files were specified by the user.
   21403 ac_need_defaults=:
   21404 while test $# != 0
   21405 do
   21406   case $1 in
   21407   --*=*)
   21408     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   21409     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   21410     ac_shift=:
   21411     ;;
   21412   *)
   21413     ac_option=$1
   21414     ac_optarg=$2
   21415     ac_shift=shift
   21416     ;;
   21417   esac
   21418 
   21419   case $ac_option in
   21420   # Handling of the options.
   21421   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   21422     ac_cs_recheck=: ;;
   21423   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   21424     echo "$ac_cs_version"; exit ;;
   21425   --debug | --debu | --deb | --de | --d | -d )
   21426     debug=: ;;
   21427   --file | --fil | --fi | --f )
   21428     $ac_shift
   21429     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
   21430     ac_need_defaults=false;;
   21431   --he | --h |  --help | --hel | -h )
   21432     echo "$ac_cs_usage"; exit ;;
   21433   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   21434   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   21435     ac_cs_silent=: ;;
   21436 
   21437   # This is an error.
   21438   -*) { echo "$as_me: error: unrecognized option: $1
   21439 Try \`$0 --help' for more information." >&2
   21440    { (exit 1); exit 1; }; } ;;
   21441 
   21442   *) ac_config_targets="$ac_config_targets $1"
   21443      ac_need_defaults=false ;;
   21444 
   21445   esac
   21446   shift
   21447 done
   21448 
   21449 ac_configure_extra_args=
   21450 
   21451 if $ac_cs_silent; then
   21452   exec 6>/dev/null
   21453   ac_configure_extra_args="$ac_configure_extra_args --silent"
   21454 fi
   21455 
   21456 _ACEOF
   21457 cat >>$CONFIG_STATUS <<_ACEOF
   21458 if \$ac_cs_recheck; then
   21459   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
   21460   CONFIG_SHELL=$SHELL
   21461   export CONFIG_SHELL
   21462   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   21463 fi
   21464 
   21465 _ACEOF
   21466 cat >>$CONFIG_STATUS <<\_ACEOF
   21467 exec 5>>config.log
   21468 {
   21469   echo
   21470   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   21471 ## Running $as_me. ##
   21472 _ASBOX
   21473   echo "$ac_log"
   21474 } >&5
   21475 
   21476 _ACEOF
   21477 cat >>$CONFIG_STATUS <<_ACEOF
   21478 #
   21479 # INIT-COMMANDS
   21480 #
   21481 llvm_src="${LLVM_SRC}"
   21482 
   21483 _ACEOF
   21484 
   21485 cat >>$CONFIG_STATUS <<\_ACEOF
   21486 
   21487 # Handling of arguments.
   21488 for ac_config_target in $ac_config_targets
   21489 do
   21490   case $ac_config_target in
   21491     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
   21492     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
   21493     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
   21494     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
   21495     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
   21496     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
   21497     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
   21498     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
   21499 
   21500   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
   21501 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   21502    { (exit 1); exit 1; }; };;
   21503   esac
   21504 done
   21505 
   21506 
   21507 # If the user did not use the arguments to specify the items to instantiate,
   21508 # then the envvar interface is used.  Set only those that are not.
   21509 # We use the long form for the default assignment because of an extremely
   21510 # bizarre bug on SunOS 4.1.3.
   21511 if $ac_need_defaults; then
   21512   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   21513   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   21514 fi
   21515 
   21516 # Have a temporary directory for convenience.  Make it in the build tree
   21517 # simply because there is no reason against having it here, and in addition,
   21518 # creating and moving files from /tmp can sometimes cause problems.
   21519 # Hook for its removal unless debugging.
   21520 # Note that there is a small window in which the directory will not be cleaned:
   21521 # after its creation but before its name has been assigned to `$tmp'.
   21522 $debug ||
   21523 {
   21524   tmp=
   21525   trap 'exit_status=$?
   21526   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   21527 ' 0
   21528   trap '{ (exit 1); exit 1; }' 1 2 13 15
   21529 }
   21530 # Create a (secure) tmp directory for tmp files.
   21531 
   21532 {
   21533   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   21534   test -n "$tmp" && test -d "$tmp"
   21535 }  ||
   21536 {
   21537   tmp=./conf$$-$RANDOM
   21538   (umask 077 && mkdir "$tmp")
   21539 } ||
   21540 {
   21541    echo "$me: cannot create a temporary directory in ." >&2
   21542    { (exit 1); exit 1; }
   21543 }
   21544 
   21545 #
   21546 # Set up the sed scripts for CONFIG_FILES section.
   21547 #
   21548 
   21549 # No need to generate the scripts if there are no CONFIG_FILES.
   21550 # This happens for instance when ./config.status config.h
   21551 if test -n "$CONFIG_FILES"; then
   21552 
   21553 _ACEOF
   21554 
   21555 
   21556 
   21557 ac_delim='%!_!# '
   21558 for ac_last_try in false false false false false :; do
   21559   cat >conf$$subs.sed <<_ACEOF
   21560 SHELL!$SHELL$ac_delim
   21561 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
   21562 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
   21563 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
   21564 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
   21565 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
   21566 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
   21567 exec_prefix!$exec_prefix$ac_delim
   21568 prefix!$prefix$ac_delim
   21569 program_transform_name!$program_transform_name$ac_delim
   21570 bindir!$bindir$ac_delim
   21571 sbindir!$sbindir$ac_delim
   21572 libexecdir!$libexecdir$ac_delim
   21573 datarootdir!$datarootdir$ac_delim
   21574 datadir!$datadir$ac_delim
   21575 sysconfdir!$sysconfdir$ac_delim
   21576 sharedstatedir!$sharedstatedir$ac_delim
   21577 localstatedir!$localstatedir$ac_delim
   21578 includedir!$includedir$ac_delim
   21579 oldincludedir!$oldincludedir$ac_delim
   21580 docdir!$docdir$ac_delim
   21581 infodir!$infodir$ac_delim
   21582 htmldir!$htmldir$ac_delim
   21583 dvidir!$dvidir$ac_delim
   21584 pdfdir!$pdfdir$ac_delim
   21585 psdir!$psdir$ac_delim
   21586 libdir!$libdir$ac_delim
   21587 localedir!$localedir$ac_delim
   21588 mandir!$mandir$ac_delim
   21589 DEFS!$DEFS$ac_delim
   21590 ECHO_C!$ECHO_C$ac_delim
   21591 ECHO_N!$ECHO_N$ac_delim
   21592 ECHO_T!$ECHO_T$ac_delim
   21593 LIBS!$LIBS$ac_delim
   21594 build_alias!$build_alias$ac_delim
   21595 host_alias!$host_alias$ac_delim
   21596 target_alias!$target_alias$ac_delim
   21597 LLVM_SRC!$LLVM_SRC$ac_delim
   21598 LLVM_OBJ!$LLVM_OBJ$ac_delim
   21599 LLVM_VERSION!$LLVM_VERSION$ac_delim
   21600 CC!$CC$ac_delim
   21601 CFLAGS!$CFLAGS$ac_delim
   21602 LDFLAGS!$LDFLAGS$ac_delim
   21603 CPPFLAGS!$CPPFLAGS$ac_delim
   21604 ac_ct_CC!$ac_ct_CC$ac_delim
   21605 EXEEXT!$EXEEXT$ac_delim
   21606 OBJEXT!$OBJEXT$ac_delim
   21607 CXX!$CXX$ac_delim
   21608 CXXFLAGS!$CXXFLAGS$ac_delim
   21609 ac_ct_CXX!$ac_ct_CXX$ac_delim
   21610 CPP!$CPP$ac_delim
   21611 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
   21612 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
   21613 subdirs!$subdirs$ac_delim
   21614 build!$build$ac_delim
   21615 build_cpu!$build_cpu$ac_delim
   21616 build_vendor!$build_vendor$ac_delim
   21617 build_os!$build_os$ac_delim
   21618 host!$host$ac_delim
   21619 host_cpu!$host_cpu$ac_delim
   21620 host_vendor!$host_vendor$ac_delim
   21621 host_os!$host_os$ac_delim
   21622 target!$target$ac_delim
   21623 target_cpu!$target_cpu$ac_delim
   21624 target_vendor!$target_vendor$ac_delim
   21625 target_os!$target_os$ac_delim
   21626 OS!$OS$ac_delim
   21627 HOST_OS!$HOST_OS$ac_delim
   21628 TARGET_OS!$TARGET_OS$ac_delim
   21629 LINKALL!$LINKALL$ac_delim
   21630 NOLINKALL!$NOLINKALL$ac_delim
   21631 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
   21632 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
   21633 ARCH!$ARCH$ac_delim
   21634 ENDIAN!$ENDIAN$ac_delim
   21635 GREP!$GREP$ac_delim
   21636 EGREP!$EGREP$ac_delim
   21637 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
   21638 BUILD_CC!$BUILD_CC$ac_delim
   21639 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
   21640 BUILD_CXX!$BUILD_CXX$ac_delim
   21641 CVSBUILD!$CVSBUILD$ac_delim
   21642 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
   21643 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
   21644 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
   21645 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
   21646 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
   21647 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
   21648 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
   21649 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
   21650 JIT!$JIT$ac_delim
   21651 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
   21652 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
   21653 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
   21654 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
   21655 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
   21656 ENABLE_PIC!$ENABLE_PIC$ac_delim
   21657 _ACEOF
   21658 
   21659   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
   21660     break
   21661   elif $ac_last_try; then
   21662     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   21663 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   21664    { (exit 1); exit 1; }; }
   21665   else
   21666     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   21667   fi
   21668 done
   21669 
   21670 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
   21671 if test -n "$ac_eof"; then
   21672   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
   21673   ac_eof=`expr $ac_eof + 1`
   21674 fi
   21675 
   21676 cat >>$CONFIG_STATUS <<_ACEOF
   21677 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
   21678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   21679 _ACEOF
   21680 sed '
   21681 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
   21682 s/^/s,@/; s/!/@,|#_!!_#|/
   21683 :n
   21684 t n
   21685 s/'"$ac_delim"'$/,g/; t
   21686 s/$/\\/; p
   21687 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
   21688 ' >>$CONFIG_STATUS <conf$$subs.sed
   21689 rm -f conf$$subs.sed
   21690 cat >>$CONFIG_STATUS <<_ACEOF
   21691 CEOF$ac_eof
   21692 _ACEOF
   21693 
   21694 
   21695 ac_delim='%!_!# '
   21696 for ac_last_try in false false false false false :; do
   21697   cat >conf$$subs.sed <<_ACEOF
   21698 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
   21699 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
   21700 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
   21701 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
   21702 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
   21703 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
   21704 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
   21705 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
   21706 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
   21707 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
   21708 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
   21709 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
   21710 NM!$NM$ac_delim
   21711 ifGNUmake!$ifGNUmake$ac_delim
   21712 LN_S!$LN_S$ac_delim
   21713 CMP!$CMP$ac_delim
   21714 CP!$CP$ac_delim
   21715 DATE!$DATE$ac_delim
   21716 FIND!$FIND$ac_delim
   21717 MKDIR!$MKDIR$ac_delim
   21718 MV!$MV$ac_delim
   21719 RANLIB!$RANLIB$ac_delim
   21720 AR!$AR$ac_delim
   21721 RM!$RM$ac_delim
   21722 SED!$SED$ac_delim
   21723 TAR!$TAR$ac_delim
   21724 BINPWD!$BINPWD$ac_delim
   21725 GRAPHVIZ!$GRAPHVIZ$ac_delim
   21726 DOT!$DOT$ac_delim
   21727 FDP!$FDP$ac_delim
   21728 NEATO!$NEATO$ac_delim
   21729 TWOPI!$TWOPI$ac_delim
   21730 CIRCO!$CIRCO$ac_delim
   21731 GV!$GV$ac_delim
   21732 DOTTY!$DOTTY$ac_delim
   21733 XDOT_PY!$XDOT_PY$ac_delim
   21734 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
   21735 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
   21736 INSTALL_DATA!$INSTALL_DATA$ac_delim
   21737 BZIP2!$BZIP2$ac_delim
   21738 CAT!$CAT$ac_delim
   21739 DOXYGEN!$DOXYGEN$ac_delim
   21740 GROFF!$GROFF$ac_delim
   21741 GZIPBIN!$GZIPBIN$ac_delim
   21742 POD2HTML!$POD2HTML$ac_delim
   21743 POD2MAN!$POD2MAN$ac_delim
   21744 PDFROFF!$PDFROFF$ac_delim
   21745 RUNTEST!$RUNTEST$ac_delim
   21746 TCLSH!$TCLSH$ac_delim
   21747 ZIP!$ZIP$ac_delim
   21748 OCAMLC!$OCAMLC$ac_delim
   21749 OCAMLOPT!$OCAMLOPT$ac_delim
   21750 OCAMLDEP!$OCAMLDEP$ac_delim
   21751 OCAMLDOC!$OCAMLDOC$ac_delim
   21752 GAS!$GAS$ac_delim
   21753 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
   21754 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
   21755 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
   21756 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
   21757 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
   21758 LIBADD_DL!$LIBADD_DL$ac_delim
   21759 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
   21760 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
   21761 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
   21762 USE_UDIS86!$USE_UDIS86$ac_delim
   21763 USE_OPROFILE!$USE_OPROFILE$ac_delim
   21764 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
   21765 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
   21766 MMAP_FILE!$MMAP_FILE$ac_delim
   21767 SHLIBEXT!$SHLIBEXT$ac_delim
   21768 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
   21769 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
   21770 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
   21771 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
   21772 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
   21773 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
   21774 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
   21775 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
   21776 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
   21777 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
   21778 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
   21779 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
   21780 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
   21781 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
   21782 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
   21783 RPATH!$RPATH$ac_delim
   21784 RDYNAMIC!$RDYNAMIC$ac_delim
   21785 LIBOBJS!$LIBOBJS$ac_delim
   21786 LTLIBOBJS!$LTLIBOBJS$ac_delim
   21787 _ACEOF
   21788 
   21789   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
   21790     break
   21791   elif $ac_last_try; then
   21792     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   21793 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   21794    { (exit 1); exit 1; }; }
   21795   else
   21796     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   21797   fi
   21798 done
   21799 
   21800 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
   21801 if test -n "$ac_eof"; then
   21802   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
   21803   ac_eof=`expr $ac_eof + 1`
   21804 fi
   21805 
   21806 cat >>$CONFIG_STATUS <<_ACEOF
   21807 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
   21808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
   21809 _ACEOF
   21810 sed '
   21811 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
   21812 s/^/s,@/; s/!/@,|#_!!_#|/
   21813 :n
   21814 t n
   21815 s/'"$ac_delim"'$/,g/; t
   21816 s/$/\\/; p
   21817 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
   21818 ' >>$CONFIG_STATUS <conf$$subs.sed
   21819 rm -f conf$$subs.sed
   21820 cat >>$CONFIG_STATUS <<_ACEOF
   21821 :end
   21822 s/|#_!!_#|//g
   21823 CEOF$ac_eof
   21824 _ACEOF
   21825 
   21826 
   21827 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   21828 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   21829 # trailing colons and then remove the whole line if VPATH becomes empty
   21830 # (actually we leave an empty line to preserve line numbers).
   21831 if test "x$srcdir" = x.; then
   21832   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   21833 s/:*\$(srcdir):*/:/
   21834 s/:*\${srcdir}:*/:/
   21835 s/:*@srcdir@:*/:/
   21836 s/^\([^=]*=[	 ]*\):*/\1/
   21837 s/:*$//
   21838 s/^[^=]*=[	 ]*$//
   21839 }'
   21840 fi
   21841 
   21842 cat >>$CONFIG_STATUS <<\_ACEOF
   21843 fi # test -n "$CONFIG_FILES"
   21844 
   21845 
   21846 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
   21847 do
   21848   case $ac_tag in
   21849   :[FHLC]) ac_mode=$ac_tag; continue;;
   21850   esac
   21851   case $ac_mode$ac_tag in
   21852   :[FHL]*:*);;
   21853   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
   21854 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   21855    { (exit 1); exit 1; }; };;
   21856   :[FH]-) ac_tag=-:-;;
   21857   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   21858   esac
   21859   ac_save_IFS=$IFS
   21860   IFS=:
   21861   set x $ac_tag
   21862   IFS=$ac_save_IFS
   21863   shift
   21864   ac_file=$1
   21865   shift
   21866 
   21867   case $ac_mode in
   21868   :L) ac_source=$1;;
   21869   :[FH])
   21870     ac_file_inputs=
   21871     for ac_f
   21872     do
   21873       case $ac_f in
   21874       -) ac_f="$tmp/stdin";;
   21875       *) # Look for the file first in the build tree, then in the source tree
   21876 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   21877 	 # because $ac_f cannot contain `:'.
   21878 	 test -f "$ac_f" ||
   21879 	   case $ac_f in
   21880 	   [\\/$]*) false;;
   21881 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   21882 	   esac ||
   21883 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
   21884 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   21885    { (exit 1); exit 1; }; };;
   21886       esac
   21887       ac_file_inputs="$ac_file_inputs $ac_f"
   21888     done
   21889 
   21890     # Let's still pretend it is `configure' which instantiates (i.e., don't
   21891     # use $as_me), people would be surprised to read:
   21892     #    /* config.h.  Generated by config.status.  */
   21893     configure_input="Generated from "`IFS=:
   21894 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
   21895     if test x"$ac_file" != x-; then
   21896       configure_input="$ac_file.  $configure_input"
   21897       { echo "$as_me:$LINENO: creating $ac_file" >&5
   21898 echo "$as_me: creating $ac_file" >&6;}
   21899     fi
   21900 
   21901     case $ac_tag in
   21902     *:-:* | *:-) cat >"$tmp/stdin";;
   21903     esac
   21904     ;;
   21905   esac
   21906 
   21907   ac_dir=`$as_dirname -- "$ac_file" ||
   21908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21909 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   21910 	 X"$ac_file" : 'X\(//\)$' \| \
   21911 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   21912 echo X"$ac_file" |
   21913     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21914 	    s//\1/
   21915 	    q
   21916 	  }
   21917 	  /^X\(\/\/\)[^/].*/{
   21918 	    s//\1/
   21919 	    q
   21920 	  }
   21921 	  /^X\(\/\/\)$/{
   21922 	    s//\1/
   21923 	    q
   21924 	  }
   21925 	  /^X\(\/\).*/{
   21926 	    s//\1/
   21927 	    q
   21928 	  }
   21929 	  s/.*/./; q'`
   21930   { as_dir="$ac_dir"
   21931   case $as_dir in #(
   21932   -*) as_dir=./$as_dir;;
   21933   esac
   21934   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
   21935     as_dirs=
   21936     while :; do
   21937       case $as_dir in #(
   21938       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
   21939       *) as_qdir=$as_dir;;
   21940       esac
   21941       as_dirs="'$as_qdir' $as_dirs"
   21942       as_dir=`$as_dirname -- "$as_dir" ||
   21943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21944 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   21945 	 X"$as_dir" : 'X\(//\)$' \| \
   21946 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   21947 echo X"$as_dir" |
   21948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21949 	    s//\1/
   21950 	    q
   21951 	  }
   21952 	  /^X\(\/\/\)[^/].*/{
   21953 	    s//\1/
   21954 	    q
   21955 	  }
   21956 	  /^X\(\/\/\)$/{
   21957 	    s//\1/
   21958 	    q
   21959 	  }
   21960 	  /^X\(\/\).*/{
   21961 	    s//\1/
   21962 	    q
   21963 	  }
   21964 	  s/.*/./; q'`
   21965       test -d "$as_dir" && break
   21966     done
   21967     test -z "$as_dirs" || eval "mkdir $as_dirs"
   21968   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
   21969 echo "$as_me: error: cannot create directory $as_dir" >&2;}
   21970    { (exit 1); exit 1; }; }; }
   21971   ac_builddir=.
   21972 
   21973 case "$ac_dir" in
   21974 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   21975 *)
   21976   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   21977   # A ".." for each directory in $ac_dir_suffix.
   21978   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   21979   case $ac_top_builddir_sub in
   21980   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   21981   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   21982   esac ;;
   21983 esac
   21984 ac_abs_top_builddir=$ac_pwd
   21985 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   21986 # for backward compatibility:
   21987 ac_top_builddir=$ac_top_build_prefix
   21988 
   21989 case $srcdir in
   21990   .)  # We are building in place.
   21991     ac_srcdir=.
   21992     ac_top_srcdir=$ac_top_builddir_sub
   21993     ac_abs_top_srcdir=$ac_pwd ;;
   21994   [\\/]* | ?:[\\/]* )  # Absolute name.
   21995     ac_srcdir=$srcdir$ac_dir_suffix;
   21996     ac_top_srcdir=$srcdir
   21997     ac_abs_top_srcdir=$srcdir ;;
   21998   *) # Relative name.
   21999     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   22000     ac_top_srcdir=$ac_top_build_prefix$srcdir
   22001     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   22002 esac
   22003 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   22004 
   22005 
   22006   case $ac_mode in
   22007   :F)
   22008   #
   22009   # CONFIG_FILE
   22010   #
   22011 
   22012   case $INSTALL in
   22013   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   22014   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   22015   esac
   22016 _ACEOF
   22017 
   22018 cat >>$CONFIG_STATUS <<\_ACEOF
   22019 # If the template does not know about datarootdir, expand it.
   22020 # FIXME: This hack should be removed a few years after 2.60.
   22021 ac_datarootdir_hack=; ac_datarootdir_seen=
   22022 
   22023 case `sed -n '/datarootdir/ {
   22024   p
   22025   q
   22026 }
   22027 /@datadir@/p
   22028 /@docdir@/p
   22029 /@infodir@/p
   22030 /@localedir@/p
   22031 /@mandir@/p
   22032 ' $ac_file_inputs` in
   22033 *datarootdir*) ac_datarootdir_seen=yes;;
   22034 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   22035   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   22036 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   22037 _ACEOF
   22038 cat >>$CONFIG_STATUS <<_ACEOF
   22039   ac_datarootdir_hack='
   22040   s&@datadir@&$datadir&g
   22041   s&@docdir@&$docdir&g
   22042   s&@infodir@&$infodir&g
   22043   s&@localedir@&$localedir&g
   22044   s&@mandir@&$mandir&g
   22045     s&\\\${datarootdir}&$datarootdir&g' ;;
   22046 esac
   22047 _ACEOF
   22048 
   22049 # Neutralize VPATH when `$srcdir' = `.'.
   22050 # Shell code in configure.ac might set extrasub.
   22051 # FIXME: do we really want to maintain this feature?
   22052 cat >>$CONFIG_STATUS <<_ACEOF
   22053   sed "$ac_vpsub
   22054 $extrasub
   22055 _ACEOF
   22056 cat >>$CONFIG_STATUS <<\_ACEOF
   22057 :t
   22058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   22059 s&@configure_input@&$configure_input&;t t
   22060 s&@top_builddir@&$ac_top_builddir_sub&;t t
   22061 s&@srcdir@&$ac_srcdir&;t t
   22062 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   22063 s&@top_srcdir@&$ac_top_srcdir&;t t
   22064 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   22065 s&@builddir@&$ac_builddir&;t t
   22066 s&@abs_builddir@&$ac_abs_builddir&;t t
   22067 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   22068 s&@INSTALL@&$ac_INSTALL&;t t
   22069 $ac_datarootdir_hack
   22070 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
   22071 
   22072 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   22073   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   22074   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   22075   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   22076 which seems to be undefined.  Please make sure it is defined." >&5
   22077 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   22078 which seems to be undefined.  Please make sure it is defined." >&2;}
   22079 
   22080   rm -f "$tmp/stdin"
   22081   case $ac_file in
   22082   -) cat "$tmp/out"; rm -f "$tmp/out";;
   22083   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
   22084   esac
   22085  ;;
   22086 
   22087 
   22088   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
   22089 echo "$as_me: executing $ac_file commands" >&6;}
   22090  ;;
   22091   esac
   22092 
   22093 
   22094   case $ac_file$ac_mode in
   22095     "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
   22096    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
   22097     "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
   22098    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
   22099     "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
   22100    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
   22101     "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
   22102    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
   22103     "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
   22104    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
   22105 
   22106   esac
   22107 done # for ac_tag
   22108 
   22109 
   22110 { (exit 0); exit 0; }
   22111 _ACEOF
   22112 chmod +x $CONFIG_STATUS
   22113 ac_clean_files=$ac_clean_files_save
   22114 
   22115 
   22116 # configure is writing to config.log, and then calls config.status.
   22117 # config.status does its own redirection, appending to config.log.
   22118 # Unfortunately, on DOS this fails, as config.log is still kept open
   22119 # by configure, so config.status won't be able to write to it; its
   22120 # output is simply discarded.  So we exec the FD to /dev/null,
   22121 # effectively closing config.log, so it can be properly (re)opened and
   22122 # appended to by config.status.  When coming back to configure, we
   22123 # need to make the FD available again.
   22124 if test "$no_create" != yes; then
   22125   ac_cs_success=:
   22126   ac_config_status_args=
   22127   test "$silent" = yes &&
   22128     ac_config_status_args="$ac_config_status_args --quiet"
   22129   exec 5>/dev/null
   22130   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   22131   exec 5>>config.log
   22132   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   22133   # would make configure fail if this is the last instruction.
   22134   $ac_cs_success || { (exit 1); exit 1; }
   22135 fi
   22136 
   22137 #
   22138 # CONFIG_SUBDIRS section.
   22139 #
   22140 if test "$no_recursion" != yes; then
   22141 
   22142   # Remove --cache-file and --srcdir arguments so they do not pile up.
   22143   ac_sub_configure_args=
   22144   ac_prev=
   22145   eval "set x $ac_configure_args"
   22146   shift
   22147   for ac_arg
   22148   do
   22149     if test -n "$ac_prev"; then
   22150       ac_prev=
   22151       continue
   22152     fi
   22153     case $ac_arg in
   22154     -cache-file | --cache-file | --cache-fil | --cache-fi \
   22155     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   22156       ac_prev=cache_file ;;
   22157     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   22158     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
   22159     | --c=*)
   22160       ;;
   22161     --config-cache | -C)
   22162       ;;
   22163     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   22164       ac_prev=srcdir ;;
   22165     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   22166       ;;
   22167     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   22168       ac_prev=prefix ;;
   22169     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   22170       ;;
   22171     *)
   22172       case $ac_arg in
   22173       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22174       esac
   22175       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
   22176     esac
   22177   done
   22178 
   22179   # Always prepend --prefix to ensure using the same prefix
   22180   # in subdir configurations.
   22181   ac_arg="--prefix=$prefix"
   22182   case $ac_arg in
   22183   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22184   esac
   22185   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
   22186 
   22187   ac_popdir=`pwd`
   22188   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
   22189 
   22190     # Do not complain, so a configure script can configure whichever
   22191     # parts of a large source tree are present.
   22192     test -d "$srcdir/$ac_dir" || continue
   22193 
   22194     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
   22195     echo "$as_me:$LINENO: $ac_msg" >&5
   22196     echo "$ac_msg" >&6
   22197     { as_dir="$ac_dir"
   22198   case $as_dir in #(
   22199   -*) as_dir=./$as_dir;;
   22200   esac
   22201   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
   22202     as_dirs=
   22203     while :; do
   22204       case $as_dir in #(
   22205       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
   22206       *) as_qdir=$as_dir;;
   22207       esac
   22208       as_dirs="'$as_qdir' $as_dirs"
   22209       as_dir=`$as_dirname -- "$as_dir" ||
   22210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   22211 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   22212 	 X"$as_dir" : 'X\(//\)$' \| \
   22213 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   22214 echo X"$as_dir" |
   22215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   22216 	    s//\1/
   22217 	    q
   22218 	  }
   22219 	  /^X\(\/\/\)[^/].*/{
   22220 	    s//\1/
   22221 	    q
   22222 	  }
   22223 	  /^X\(\/\/\)$/{
   22224 	    s//\1/
   22225 	    q
   22226 	  }
   22227 	  /^X\(\/\).*/{
   22228 	    s//\1/
   22229 	    q
   22230 	  }
   22231 	  s/.*/./; q'`
   22232       test -d "$as_dir" && break
   22233     done
   22234     test -z "$as_dirs" || eval "mkdir $as_dirs"
   22235   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
   22236 echo "$as_me: error: cannot create directory $as_dir" >&2;}
   22237    { (exit 1); exit 1; }; }; }
   22238     ac_builddir=.
   22239 
   22240 case "$ac_dir" in
   22241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   22242 *)
   22243   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   22244   # A ".." for each directory in $ac_dir_suffix.
   22245   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   22246   case $ac_top_builddir_sub in
   22247   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   22248   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   22249   esac ;;
   22250 esac
   22251 ac_abs_top_builddir=$ac_pwd
   22252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   22253 # for backward compatibility:
   22254 ac_top_builddir=$ac_top_build_prefix
   22255 
   22256 case $srcdir in
   22257   .)  # We are building in place.
   22258     ac_srcdir=.
   22259     ac_top_srcdir=$ac_top_builddir_sub
   22260     ac_abs_top_srcdir=$ac_pwd ;;
   22261   [\\/]* | ?:[\\/]* )  # Absolute name.
   22262     ac_srcdir=$srcdir$ac_dir_suffix;
   22263     ac_top_srcdir=$srcdir
   22264     ac_abs_top_srcdir=$srcdir ;;
   22265   *) # Relative name.
   22266     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   22267     ac_top_srcdir=$ac_top_build_prefix$srcdir
   22268     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   22269 esac
   22270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   22271 
   22272 
   22273     cd "$ac_dir"
   22274 
   22275     # Check for guested configure; otherwise get Cygnus style configure.
   22276     if test -f "$ac_srcdir/configure.gnu"; then
   22277       ac_sub_configure=$ac_srcdir/configure.gnu
   22278     elif test -f "$ac_srcdir/configure"; then
   22279       ac_sub_configure=$ac_srcdir/configure
   22280     elif test -f "$ac_srcdir/configure.in"; then
   22281       # This should be Cygnus configure.
   22282       ac_sub_configure=$ac_aux_dir/configure
   22283     else
   22284       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
   22285 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
   22286       ac_sub_configure=
   22287     fi
   22288 
   22289     # The recursion is here.
   22290     if test -n "$ac_sub_configure"; then
   22291       # Make the cache file name correct relative to the subdirectory.
   22292       case $cache_file in
   22293       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
   22294       *) # Relative name.
   22295 	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
   22296       esac
   22297 
   22298       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
   22299 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
   22300       # The eval makes quoting arguments work.
   22301       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
   22302 	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
   22303 	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
   22304 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
   22305    { (exit 1); exit 1; }; }
   22306     fi
   22307 
   22308     cd "$ac_popdir"
   22309   done
   22310 fi
   22311 
   22312